From 539216a6cd32c612c79e301f100ed7501b62a3ad Mon Sep 17 00:00:00 2001 From: zlecheng Date: Mon, 17 Jun 2024 21:32:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=BC=96=E8=BE=91=E5=99=A8=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/401-fe355076.js | 1 + assets/404-36998c71.js | 1 + assets/AntvDemo-a4e1863e.js | 1 + assets/AntvProblem-e82d1272.js | 1 + assets/ElementConfig-515dad6a.js | 1 + assets/HomeView-b4da75f2.js | 1 + assets/LoginView-eb17913e.js | 1 + assets/cssMode-621d8e2c.js | 7 +++++++ assets/freemarker2-ee95ffdf.js | 7 +++++++ assets/handlebars-19f7ba3c.js | 7 +++++++ assets/html-8f178da2.js | 7 +++++++ assets/htmlMode-84f22c63.js | 7 +++++++ assets/index-8027a4c8.js | 36 ++++++++++++++++++++++++++++++++ assets/index-8c106f3c.js | 27 ++++++++++++++++++++++++ assets/index-a95b2668.js | 2 ++ assets/javascript-9ad19f92.js | 7 +++++++ assets/jsonMode-57aeeb1f.js | 7 +++++++ assets/liquid-5e309bd0.js | 7 +++++++ assets/mdx-77cd1361.js | 7 +++++++ assets/python-d8688bf7.js | 7 +++++++ assets/razor-7c7068fa.js | 7 +++++++ assets/tsMode-462d6c5a.js | 7 +++++++ assets/typescript-59dd792e.js | 7 +++++++ assets/xml-c1ef13e6.js | 7 +++++++ assets/yaml-07c2d025.js | 7 +++++++ index.html | 2 +- 26 files changed, 178 insertions(+), 1 deletion(-) create mode 100644 assets/401-fe355076.js create mode 100644 assets/404-36998c71.js create mode 100644 assets/AntvDemo-a4e1863e.js create mode 100644 assets/AntvProblem-e82d1272.js create mode 100644 assets/ElementConfig-515dad6a.js create mode 100644 assets/HomeView-b4da75f2.js create mode 100644 assets/LoginView-eb17913e.js create mode 100644 assets/cssMode-621d8e2c.js create mode 100644 assets/freemarker2-ee95ffdf.js create mode 100644 assets/handlebars-19f7ba3c.js create mode 100644 assets/html-8f178da2.js create mode 100644 assets/htmlMode-84f22c63.js create mode 100644 assets/index-8027a4c8.js create mode 100644 assets/index-8c106f3c.js create mode 100644 assets/index-a95b2668.js create mode 100644 assets/javascript-9ad19f92.js create mode 100644 assets/jsonMode-57aeeb1f.js create mode 100644 assets/liquid-5e309bd0.js create mode 100644 assets/mdx-77cd1361.js create mode 100644 assets/python-d8688bf7.js create mode 100644 assets/razor-7c7068fa.js create mode 100644 assets/tsMode-462d6c5a.js create mode 100644 assets/typescript-59dd792e.js create mode 100644 assets/xml-c1ef13e6.js create mode 100644 assets/yaml-07c2d025.js diff --git a/assets/401-fe355076.js b/assets/401-fe355076.js new file mode 100644 index 0000000..111a8a0 --- /dev/null +++ b/assets/401-fe355076.js @@ -0,0 +1 @@ +import{_ as a,X as e,r as t,a as s,o as l,c as r,b as o,w as n,e as u,g as c,f as d,p as i,q as p}from"./index-8c106f3c.js";const f=""+new URL("401-a61ddb94.gif",import.meta.url).href,h=a=>(i("data-v-6ed89bc2"),a=a(),p(),a),_={class:"errPage-container"},m=h((()=>c("h1",{class:"text-jumbo text-ginormous"},"401错误!",-1))),b=h((()=>c("h2",null,"您没有访问权限!",-1))),g=h((()=>c("h6",null,"对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面",-1))),w={class:"list-unstyled"},k={class:"link-type"},x=["src"],y=a({__name:"401",setup(a){let{proxy:i}=e();const p=t(f+"?"+ +new Date);function h(){i.$route.query.noGoBack?i.$router.push({path:"/"}):i.$router.go(-1)}return(a,e)=>{const t=s("el-button"),i=s("router-link"),f=s("el-col"),y=s("el-row");return l(),r("div",_,[o(t,{icon:"arrow-left",class:"pan-back-btn",onClick:h},{default:n((()=>[u(" 返回 ")])),_:1}),o(y,null,{default:n((()=>[o(f,{span:12},{default:n((()=>[m,b,g,c("ul",w,[c("li",k,[o(i,{to:"/"},{default:n((()=>[u(" 回首页 ")])),_:1})])])])),_:1}),o(f,{span:12},{default:n((()=>[c("img",{src:d(p),width:"313",height:"428",alt:"Girl has dropped her ice cream."},null,8,x)])),_:1})])),_:1})])}}},[["__scopeId","data-v-6ed89bc2"]]);export{y as default}; diff --git a/assets/404-36998c71.js b/assets/404-36998c71.js new file mode 100644 index 0000000..a4f4586 --- /dev/null +++ b/assets/404-36998c71.js @@ -0,0 +1 @@ +import{_ as a,a5 as s,a as t,o as l,c as i,g as c,t as d,f as e,b as r,w as _,a6 as n,e as p,p as o,q as f}from"./index-8c106f3c.js";const h=""+new URL("404-538aa4d7.png",import.meta.url).href,u=""+new URL("404_cloud-98e7ac66.png",import.meta.url).href,v=a=>(o("data-v-30a21f83"),a=a(),f(),a),m={class:"wscn-http404-container"},g={class:"wscn-http404"},b=n('
404404404404
',1),w={class:"bullshit"},L=v((()=>c("div",{class:"bullshit__oops"},"404错误!",-1))),R={class:"bullshit__headline"},U=v((()=>c("div",{class:"bullshit__info"}," 对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。 ",-1))),x=a({__name:"404",setup(a){let n=s((()=>"找不到网页!"));return(a,s)=>{const o=t("router-link");return l(),i("div",m,[c("div",g,[b,c("div",w,[L,c("div",R,d(e(n)),1),U,r(o,{to:"/",class:"bullshit__return-home"},{default:_((()=>[p(" 返回首页 ")])),_:1})])])])}}},[["__scopeId","data-v-30a21f83"]]);export{x as default}; diff --git a/assets/AntvDemo-a4e1863e.js b/assets/AntvDemo-a4e1863e.js new file mode 100644 index 0000000..60975b3 --- /dev/null +++ b/assets/AntvDemo-a4e1863e.js @@ -0,0 +1 @@ +import{s as t,v as e,x as n,y as i,z as s,A as r,B as o,C as l,D as a,E as h,G as c,H as u,I as d,J as g,K as p,L as f,M as m,N as y,O as b,P as v,Q as x,R as w,S as C,U as P,V as E,W as S,_ as A,X as M,r as O,l as T,a as N,m as k,o as j,c as L,b as B,w as R,f as D,Y as I,e as V,t as z,n as $,g as F}from"./index-8c106f3c.js";"object"==typeof window&&window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((t=>{Object.prototype.hasOwnProperty.call(t,"append")||Object.defineProperty(t,"append",{configurable:!0,enumerable:!0,writable:!0,value(...t){const e=document.createDocumentFragment();t.forEach((t=>{const n=t instanceof Node;e.appendChild(n?t:document.createTextNode(String(t)))})),this.appendChild(e)}})}));class G{get disposed(){return!0===this._disposed}dispose(){this._disposed=!0}}(G||(G={})).dispose=function(){return(t,e,n)=>{const i=n.value,s=t.__proto__;n.value=function(){this.disposed||(i.call(this),s.dispose.call(this))}}};class _{constructor(){this.isDisposed=!1,this.items=new Set}get disposed(){return this.isDisposed}dispose(){this.isDisposed||(this.isDisposed=!0,this.items.forEach((t=>{t.dispose()})),this.items.clear())}contains(t){return this.items.has(t)}add(t){this.items.add(t)}remove(t){this.items.delete(t)}clear(){this.items.clear()}}function q(t,e,n){if(n)switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2]);case 4:return t.call(e,n[0],n[1],n[2],n[3]);case 5:return t.call(e,n[0],n[1],n[2],n[3],n[4]);case 6:return t.call(e,n[0],n[1],n[2],n[3],n[4],n[5]);default:return t.apply(e,n)}return t.call(e)}function H(t,e,...n){return q(t,e,n)}function U(t){return null!=t&&(t instanceof Promise||"object"==typeof(e=t)&&e.then&&"function"==typeof e.then);var e}function W(...t){const e=[];if(t.forEach((t=>{Array.isArray(t)?e.push(...t):e.push(t)})),e.some((t=>U(t)))){const t=e.map((t=>U(t)?t:Promise.resolve(!1!==t)));return Promise.all(t).then((t=>t.reduce(((t,e)=>!1!==e&&t),!0)))}return e.every((t=>!1!==t))}function X(t,e){const n=[];for(let i=0;i{e.add(t)})),e};class Y{constructor(){this.listeners={}}on(t,e,n){return null==e||(this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e,n)),this}once(t,e,n){const i=(...s)=>(this.off(t,i),X([e,n],s));return this.on(t,i,this)}off(t,e,n){if(!(t||e||n))return this.listeners={},this;const i=this.listeners;return(t?[t]:Object.keys(i)).forEach((t=>{const s=i[t];if(s)if(e||n)for(let i=s.length-2;i>=0;i-=2)e&&s[i]!==e||n&&s[i+1]!==n||s.splice(i,2);else delete i[t]})),this}trigger(t,...e){let n=!0;if("*"!==t){const i=this.listeners[t];null!=i&&(n=X([...i],e))}const i=this.listeners["*"];return null!=i?W([n,X([...i],[t,...e])]):n}emit(t,...e){return this.trigger(t,...e)}}const Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Q=/^\s*class\s+/.test(`${class{}}`)||/^\s*class\s*\{/.test(`${class{}}`);function K(t,e){let n;return Q?n=class extends e{}:(n=function(){return e.apply(this,arguments)},function(t,e){function n(){this.constructor=t}Z(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(n,e)),Object.defineProperty(n,"name",{value:t}),n}function tt(t){return"__proto__"===t}function et(t,e,n="/"){let i;const s=Array.isArray(e)?e:e.split(n);if(s.length)for(i=t;s.length;){const t=s.shift();if(Object(i)!==i||!t||!(t in i))return;i=i[t]}return i}function nt(t,e,n,i="/"){const s=Array.isArray(e)?e:e.split(i),r=s.pop();if(r&&!tt(r)){let e=t;s.forEach((t=>{tt(t)||(null==e[t]&&(e[t]={}),e=e[t])})),e[r]=n}return t}function it(t,e,n="/"){const i=Array.isArray(e)?e.slice():e.split(n),s=i.pop();if(s)if(i.length>0){const e=et(t,i);e&&delete e[s]}else delete t[s];return t}class st extends Y{}(st||(st={})).dispose=G.dispose,function(t,...e){[G].forEach((e=>{Object.getOwnPropertyNames(e.prototype).forEach((n=>{"constructor"!==n&&Object.defineProperty(t.prototype,n,Object.getOwnPropertyDescriptor(e.prototype,n))}))}))}(st);const rt=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},ot=rt((t=>t.replace(/\B([A-Z])/g,"-$1").toLowerCase())),lt=rt((n=>t(e(n)).replace(/ /g,"")));function at(t){let e=2166136261,n=!1,i=t;for(let s=0,r=i.length;s127&&!n&&(i=unescape(encodeURIComponent(i)),t=i.charCodeAt(s),n=!0),e^=t,e+=(e<<1)+(e<<4)+(e<<7)+(e<<8)+(e<<24)}return e>>>0}function ht(){let t="";for(let e=0,n=36;en?l-n:1,h=e.length>n+l?n+l:e.length;s[0]=l;let c=l;for(let t=1;tn)return;const u=i;i=s,s=u}const o=i[e.length];return o>n?void 0:o}function ut(t){return"string"==typeof t&&"%"===t.slice(-1)}function dt(t,e){if(null==t)return 0;let n;if("string"==typeof t){if(n=parseFloat(t),ut(t)&&(n/=100,Number.isFinite(n)))return n*e}else n=t;return Number.isFinite(n)?n>0&&n<1?n*e:n:0}function gt(t){if("object"==typeof t){let e=0,n=0,i=0,s=0;return null!=t.vertical&&Number.isFinite(t.vertical)&&(n=s=t.vertical),null!=t.horizontal&&Number.isFinite(t.horizontal)&&(i=e=t.horizontal),null!=t.left&&Number.isFinite(t.left)&&(e=t.left),null!=t.top&&Number.isFinite(t.top)&&(n=t.top),null!=t.right&&Number.isFinite(t.right)&&(i=t.right),null!=t.bottom&&Number.isFinite(t.bottom)&&(s=t.bottom),{top:n,right:i,bottom:s,left:e}}let e=0;return null!=t&&Number.isFinite(t)&&(e=t),{top:e,right:e,bottom:e,left:e}}let pt=!1,ft=!1,mt=!1,yt=!1,bt=!1,vt=!1,xt=!1,wt=!1,Ct=!1,Pt=!1,Et=!1,St=!1,At=!1,Mt=!1,Ot=!1,Tt=!1;if("object"==typeof navigator){const t=navigator.userAgent;pt=t.indexOf("Macintosh")>=0,ft=!!t.match(/(iPad|iPhone|iPod)/g),mt=t.indexOf("Windows")>=0,yt=t.indexOf("MSIE")>=0,bt=!!t.match(/Trident\/7\./),vt=!!t.match(/Edge\//),xt=t.indexOf("Mozilla/")>=0&&t.indexOf("MSIE")<0&&t.indexOf("Edge/")<0,Ct=t.indexOf("Chrome/")>=0&&t.indexOf("Edge/")<0,Pt=t.indexOf("Opera/")>=0||t.indexOf("OPR/")>=0,Et=t.indexOf("Firefox/")>=0,St=t.indexOf("AppleWebKit/")>=0&&t.indexOf("Chrome/")<0&&t.indexOf("Edge/")<0,"object"==typeof document&&(Tt=!document.createElementNS||"[object SVGForeignObjectElement]"!=`${document.createElementNS("http://www.w3.org/2000/svg","foreignObject")}`||t.indexOf("Opera/")>=0)}if("object"==typeof window&&(wt=null!=window.chrome&&null!=window.chrome.app&&null!=window.chrome.app.runtime,Mt=null!=window.PointerEvent&&!pt),"object"==typeof document){At="ontouchstart"in document.documentElement;try{const t=Object.defineProperty({},"passive",{get(){Ot=!0}}),e=document.createElement("div");e.addEventListener&&e.addEventListener("click",(()=>{}),t)}catch(J){}}var Nt;!function(t){t.IS_MAC=pt,t.IS_IOS=ft,t.IS_WINDOWS=mt,t.IS_IE=yt,t.IS_IE11=bt,t.IS_EDGE=vt,t.IS_NETSCAPE=xt,t.IS_CHROME_APP=wt,t.IS_CHROME=Ct,t.IS_OPERA=Pt,t.IS_FIREFOX=Et,t.IS_SAFARI=St,t.SUPPORT_TOUCH=At,t.SUPPORT_POINTER=Mt,t.SUPPORT_PASSIVE=Ot,t.NO_FOREIGNOBJECT=Tt,t.SUPPORT_FOREIGNOBJECT=!t.NO_FOREIGNOBJECT}(Nt||(Nt={})),function(t){function e(){const t=window.module;return null!=t&&null!=t.hot&&null!=t.hot.status?t.hot.status():"unkonwn"}t.getHMRStatus=e,t.isApplyingHMR=function(){return"apply"===e()};const n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};t.isEventSupported=function(t){const e=document.createElement(n[t]||"div"),i=`on${t}`;let s=i in e;return s||(e.setAttribute(i,"return;"),s="function"==typeof e[i]),s}}(Nt||(Nt={}));const kt=/[\t\r\n\f]/g,jt=/\S+/g,Lt=t=>` ${t} `;function Bt(t){return t&&t.getAttribute&&t.getAttribute("class")||""}function Rt(t,e){if(null==t||null==e)return!1;const n=Lt(Bt(t)),i=Lt(e);return 1===t.nodeType&&n.replace(kt," ").includes(i)}function Dt(t,e){if(null!=t&&null!=e){if("function"==typeof e)return Dt(t,e(Bt(t)));if("string"==typeof e&&1===t.nodeType){const n=e.match(jt)||[],i=Lt(Bt(t)).replace(kt," ");let s=n.reduce(((t,e)=>t.indexOf(Lt(e))<0?`${t}${e} `:t),i);s=s.trim(),i!==s&&t.setAttribute("class",s)}}}function It(t,e){if(null!=t){if("function"==typeof e)return It(t,e(Bt(t)));if((!e||"string"==typeof e)&&1===t.nodeType){const n=(e||"").match(jt)||[],i=Lt(Bt(t)).replace(kt," ");let s=n.reduce(((t,e)=>{const n=Lt(e);return t.indexOf(n)>-1?t.replace(n," "):t}),i);s=e?s.trim():"",i!==s&&t.setAttribute("class",s)}}}function Vt(t,e,n){if(null!=t&&null!=e)if(null==n||"string"!=typeof e){if("function"==typeof e)return Vt(t,e(Bt(t),n),n);"string"==typeof e&&(e.match(jt)||[]).forEach((e=>{Rt(t,e)?It(t,e):Dt(t,e)}))}else n?Dt(t,e):It(t,e)}let zt=0;function $t(t){return null!=t.id&&""!==t.id||(t.id=(zt+=1,`v${zt}`)),t.id}function Ft(t){return null!=t&&"function"==typeof t.getScreenCTM&&t instanceof SVGElement}const Gt={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xml:"http://www.w3.org/XML/1998/namespace",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml"};function _t(t,e=document){return e.createElement(t)}function qt(t,e=Gt.xhtml,n=document){return n.createElementNS(e,t)}function Ht(t,e=document){return qt(t,Gt.svg,e)}function Ut(t){if(t){const e=`${t}`,{documentElement:n}=function(t,e={}){let n;try{const i=new DOMParser;null!=e.async&&(i.async=e.async),n=i.parseFromString(t,e.mimeType||"text/xml")}catch(i){n=void 0}if(!n||n.getElementsByTagName("parsererror").length)throw new Error(`Invalid XML: ${t}`);return n}(e,{async:!1});return n}const e=document.createElementNS(Gt.svg,"svg");return e.setAttributeNS(Gt.xmlns,"xmlns:xlink",Gt.xlink),e.setAttribute("version","1.1"),e}function Wt(t){let e=0,n=t.previousSibling;for(;n;)1===n.nodeType&&(e+=1),n=n.previousSibling;return e}function Xt(t,e,n){const i=t.ownerSVGElement;let s=t.parentNode;for(;s&&s!==n&&s!==i;){if(Rt(s,e))return s;s=s.parentNode}return null}function Jt(t,e){const n=e&&e.parentNode;return t===n||!!(n&&1===n.nodeType&&16&t.compareDocumentPosition(n))}function Yt(t){t&&(Array.isArray(t)?t:[t]).forEach((t=>{t.parentNode&&t.parentNode.removeChild(t)}))}function Zt(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Qt(t,e){(Array.isArray(e)?e:[e]).forEach((e=>{null!=e&&t.appendChild(e)}))}function Kt(t,e){const n=t.firstChild;return n?te(n,e):Qt(t,e)}function te(t,e){const n=t.parentNode;n&&(Array.isArray(e)?e:[e]).forEach((e=>{null!=e&&n.insertBefore(e,t)}))}function ee(t,e){null!=e&&e.appendChild(t)}function ne(t){try{return t instanceof HTMLElement}catch(e){return"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument}}const ie=["viewBox","attributeName","attributeType","repeatCount","textLength","lengthAdjust"];function se(t,e){const n=ae(e);n.ns?t.hasAttributeNS(n.ns,n.local)&&t.removeAttributeNS(n.ns,n.local):t.hasAttribute(e)&&t.removeAttribute(e)}function re(t,e,n){if(null==n)return se(t,e);const i=ae(e);i.ns&&"string"==typeof n?t.setAttributeNS(i.ns,e,n):"id"===e?t.id=`${n}`:t.setAttribute(e,`${n}`)}function oe(t,e){Object.keys(e).forEach((n=>{re(t,n,e[n])}))}function le(t,e,n){if(null==e){const e=t.attributes,n={};for(let t=0;t{const i=ie.includes(n)?n:ot(n);e[i]=t[n]})),e}function ce(t){const e={};return t.split(";").forEach((t=>{const n=t.trim();if(n){const t=n.split("=");t.length&&(e[t[0].trim()]=t[1]?t[1].trim():"")}})),e}function ue(t,e){return Object.keys(e).forEach((n=>{if("class"===n)t[n]=t[n]?`${t[n]} ${e[n]}`:e[n];else if("style"===n){const i="object"==typeof t[n],s="object"==typeof e[n];let r,o;i&&s?(r=t[n],o=e[n]):i?(r=t[n],o=ce(e[n])):s?(r=ce(t[n]),o=e[n]):(r=ce(t[n]),o=ce(e[n])),t[n]=ue(r,o)}else t[n]=e[n]})),t}function de(t,e,i={}){const s=i.offset||0,r=[],o=[];let l,a,h=null;for(let c=0;c=a&&c=0?atob(r):unescape(encodeURIComponent(r));const l=new Uint8Array(o.length);for(let a=0;an(null,t)));const i=()=>{n(new Error(`Failed to load image: ${t}`))},s=window.FileReader?t=>{if(200===t.status){const e=new FileReader;e.onload=t=>{const e=t.target.result;n(null,e)},e.onerror=i,e.readAsDataURL(t.response)}else i()}:e=>{if(200===e.status){let i=t.split(".").pop()||"png";"svg"===i&&(i="svg+xml");const s=`data:image/${i};base64,`,r=new Uint8Array(e.response),o=s+btoa((t=>{const e=[];for(let n=0;ns(r))),r.send()},t.dataUriToBlob=n,t.downloadBlob=i,t.downloadDataUri=function(t,e){i(n(t),e)},t.svgToDataUrl=function(t,e={}){let n=null;const i=e=>(null==n&&(n=function(t){const e=t.match(/]*viewBox\s*=\s*(["']?)(.+?)\1[^>]*>/i);return e&&e[2]?e[2].replace(/\s+/," ").split(" "):null}(t)),null!=n?s(n[e]):null),r=e=>{const n=t.match(e);return n&&n[2]?s(n[2]):null};let o=e.width;if(null==o&&(o=r(/]*width\s*=\s*(["']?)(.+?)\1[^>]*>/i)),null==o&&(o=i(2)),null==o)throw new Error("Can not parse width from svg string");let l=e.height;if(null==l&&(l=r(/]*height\s*=\s*(["']?)(.+?)\1[^>]*>/i)),null==l&&(l=i(3)),null==l)throw new Error("Can not parse height from svg string");return`data:image/svg+xml,${encodeURIComponent(t).replace(/'/g,"%27").replace(/"/g,"%22")}`}}(ge||(ge={}));const fe={px:t=>t,mm:t=>pe*t,cm:t=>pe*t*10,in:t=>pe*t*25.4,pt:t=>pe*(25.4*t/72),pc:t=>pe*(25.4*t/6)};var me;!function(t){function e(t,e,n){const i=document.createElement("div"),s=i.style;s.display="inline-block",s.position="absolute",s.left="-15000px",s.top="-15000px",s.width=t+(n||"px"),s.height=e+(n||"px"),document.body.appendChild(i);const r=i.getBoundingClientRect(),o={width:r.width||0,height:r.height||0};return document.body.removeChild(i),o}t.measure=e,t.toPx=function(t,n){null==pe&&(pe=e("1","1","mm").width);const i=n?fe[n]:null;return i?i(t):t}}(me||(me={}));const ye=/-(.)/g,be={},ve=["webkit","ms","moz","o"],xe=document?document.createElement("div").style:{};function we(t,e){const n=t.ownerDocument&&t.ownerDocument.defaultView&&t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):window.getComputedStyle(t,null);return n&&e?n.getPropertyValue(e)||n[e]:n}const Ce={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function Pe(t,e,n){if("string"!=typeof e)for(const i in e)Pe(t,i,e[i]);else{const i=/^--/.test(e);if(i||(e=function(t){const e=t.replace(ye,((t,e)=>e.toUpperCase()));if(null==be[e]){const t=e.charAt(0).toUpperCase()+e.slice(1);be[e]=e in xe?e:function(t){for(let e=0;e{e[n]=Se(t,n)})),e}if("string"==typeof n)return void 0===i?Se(t,n):void function(t,n,i){const s=e(n),r=Ee.get(t);r?r[s]=i:Ee.set(t,{[s]:i})}(t,n,i);for(const e in n)Ae(t,e,n[e])}class Me{get[Symbol.toStringTag](){return Me.toStringTag}get type(){return this.node.nodeName}get id(){return this.node.id}set id(t){this.node.id=t}constructor(t,e,n){if(!t)throw new TypeError("Invalid element to create vector");let i;if(Me.isVector(t))i=t.node;else if("string"==typeof t)if("svg"===t.toLowerCase())i=Ut();else if("<"===t[0]){const e=Ut(t);i=document.importNode(e.firstChild,!0)}else i=document.createElementNS(Gt.svg,t);else i=t;this.node=i,e&&this.setAttributes(e),n&&this.append(n)}transform(t,e){return null==t?Ze(this.node):(Ze(this.node,t,e),this)}translate(t,e=0,n={}){return null==t?Qe(this.node):(Qe(this.node,t,e,n),this)}rotate(t,e,n,i={}){return null==t?Ke(this.node):(Ke(this.node,t,e,n,i),this)}scale(t,e){return null==t?tn(this.node):(tn(this.node,t,e),this)}getTransformToElement(t){const e=Me.toNode(t);return en(this.node,e)}removeAttribute(t){return se(this.node,t),this}getAttribute(t){return e=this.node,n=t,e.getAttribute(n);var e,n}setAttribute(t,e){return re(this.node,t,e),this}setAttributes(t){return oe(this.node,t),this}attr(t,e){return null==t?le(this.node):"string"==typeof t&&void 0===e?le(this.node,t):("object"==typeof t?le(this.node,t):le(this.node,t,e),this)}svg(){return this.node instanceof SVGSVGElement?this:Me.create(this.node.ownerSVGElement)}defs(){const t=this.svg()||this,e=t.node.getElementsByTagName("defs")[0];return e?Me.create(e):Me.create("defs").appendTo(t)}text(t,e={}){return je(this.node,t,e),this}tagName(){return function(t,e=!0){const n=t.nodeName;return e?n.toLowerCase():n.toUpperCase()}(this.node)}clone(){return Me.create(this.node.cloneNode(!0))}remove(){return Yt(this.node),this}empty(){return Zt(this.node),this}append(t){return Qt(this.node,Me.toNodes(t)),this}appendTo(t){return ee(this.node,Me.isVector(t)?t.node:t),this}prepend(t){return Kt(this.node,Me.toNodes(t)),this}before(t){return te(this.node,Me.toNodes(t)),this}replace(t){return this.node.parentNode&&this.node.parentNode.replaceChild(Me.toNode(t),this.node),Me.create(t)}first(){return this.node.firstChild?Me.create(this.node.firstChild):null}last(){return this.node.lastChild?Me.create(this.node.lastChild):null}get(t){const e=this.node.childNodes[t];return e?Me.create(e):null}indexOf(t){return Array.prototype.slice.call(this.node.childNodes).indexOf(Me.toNode(t))}find(t){const e=[],n=(i=this.node,s=t,i.querySelectorAll(s));var i,s;if(n)for(let r=0,o=n.length;ri(t))):[i(t)]}}(Me||(Me={}));const Oe=document.createElement("canvas").getContext("2d");function Te(t,e,n){const i=n.eol,s=n.baseSize,r=n.lineHeight;let o,l=0;const a={},h=e.length-1;for(let c=0;c<=h;c+=1){let r=e[c],a=null;if("object"==typeof r){const t=r.attrs,e=Me.create("tspan",t);o=e.node;let u=r.t;i&&c===h&&(u+=i),o.textContent=u;const d=t.class;d&&e.addClass(d),n.includeAnnotationIndices&&e.attr("annotations",r.annotations.join(",")),a=parseFloat(t["font-size"]),void 0===a&&(a=s),a&&a>l&&(l=a)}else i&&c===h&&(r+=i),o=document.createTextNode(r||" "),s&&s>l&&(l=s);t.appendChild(o)}return l&&(a.maxFontSize=l),r?a.lineHeight=r:l&&(a.lineHeight=1.2*l),a}const Ne=/em$/;function ke(t,e){const n=parseFloat(t);return Ne.test(t)?n*e:n}function je(t,e,n={}){e=e.replace(/ /g," ");const i=n.eol;let s=n.textPath;const r=n.textVerticalAnchor,o="middle"===r||"bottom"===r||"top"===r;let l=n.x;void 0===l&&(l=t.getAttribute("x")||0);const a=n.includeAnnotationIndices;let h=n.annotations;h&&!Array.isArray(h)&&(h=[h]);const c=n.lineHeight,u="auto"===c,d=u?"1.5em":c||"1em";let g=!0;const p=t.children;1===p.length&&"TITLE"===p[0].tagName.toUpperCase()&&(g=!1),g&&Zt(t),le(t,{"xml:space":"preserve",display:e||n.displayEmpty?null:"none"});const f=le(t,"font-size");let m,y,b=parseFloat(f);b||(b=16,!o&&!h||f||le(t,"font-size",`${b}`)),s?("string"==typeof s&&(s={d:s}),m=function(t,e){const n=Me.create(e),i=Me.create("textPath"),s=t.d;if(s&&void 0===t["xlink:href"]){const t=Me.create("path").attr("d",s).appendTo(n.defs());i.attr("xlink:href",`#${t.id}`)}return"object"==typeof t&&i.attr(t),i.node}(s,t)):m=document.createDocumentFragment();let v,x=0;const w=e.split("\n"),C=[],P=w.length-1;for(let E=0;E<=P;E+=1){y=d;let t="v-line";const e=Ht("tspan");let n,r=w[E];if(r)if(h){n=Te(e,de(r,h,{offset:-x,includeAnnotationIndices:a}),{eol:E!==P&&i,baseSize:b,lineHeight:u?null:d,includeAnnotationIndices:a});const t=n.lineHeight;t&&u&&0!==E&&(y=t),0===E&&(v=.8*n.maxFontSize)}else i&&E!==P&&(r+=i),e.textContent=r;else{e.textContent="-",t+=" v-empty-line";const i=e.style;i.fillOpacity=0,i.strokeOpacity=0,h&&(n={})}n&&C.push(n),E>0&&e.setAttribute("dy",y),(E>0||s)&&e.setAttribute("x",l),e.className.baseVal=t,m.appendChild(e),x+=r.length+1}if(o)if(h)y=function(t,e,n,i){if(!Array.isArray(e))return 0;const s=e.length;if(!s)return 0;let r=e[0];const o=ke(r.maxFontSize,n)||n;let l=0;const a=ke(i,n);for(let u=1;u0?(t=parseFloat(d)||1,t*=P,Ne.test(d)||(t/=b)):t=0,r){case"middle":y=.3-t/2+"em";break;case"bottom":y=-t-.3+"em"}}else 0===r?y="0em":r?y=r:(y=0,null==t.getAttribute("y")&&t.setAttribute("y",`${v||"0.8em"}`));m.firstChild.setAttribute("dy",y),t.appendChild(m)}function Le(t,e={}){if(!t)return{width:0};const n=[],i=e["font-size"]?`${parseFloat(e["font-size"])}px`:"14px";return n.push(e["font-style"]||"normal"),n.push(e["font-variant"]||"normal"),n.push(e["font-weight"]||400),n.push(i),n.push(e["font-family"]||"sans-serif"),Oe.font=n.join(" "),Oe.measureText(t)}function Be(t,e,n,i={}){if(e>=n)return[t,""];const s=t.length,r={};let o=Math.round(e/n*s-1);for(o<0&&(o=0);o>=0&&oe)o-=1;else{if(!(a<=e))break;o+=1}}return[t.slice(0,o),t.slice(o)]}const Re=.551784;function De(t,e,n=NaN){const i=t.getAttribute(e);if(null==i)return n;const s=parseFloat(i);return Number.isNaN(s)?n:s}function Ie(t){return`M ${t.map((t=>`${t.x} ${t.y}`)).join(" L")}`}function Ve(t){const e=[],n=t.points;if(n)for(let i=0,s=n.numberOfItems;i=0){const s=function(t){const e=Ye(t,{x:0,y:1}),n=Ye(t,{x:1,y:0}),i=180/Math.PI*Math.atan2(e.y,e.x)-90;return{skewX:i,skewY:180/Math.PI*Math.atan2(n.y,n.x),translateX:t.e,translateY:t.f,scaleX:Math.sqrt(t.a*t.a+t.b*t.b),scaleY:Math.sqrt(t.c*t.c+t.d*t.d),rotation:i}}(We(t));e=[s.translateX,s.translateY],n=[s.rotation],i=[s.scaleX,s.scaleY];const r=[];0===e[0]&&0===e[1]||r.push(`translate(${e.join(",")})`),1===i[0]&&1===i[1]||r.push(`scale(${i.join(",")})`),0!==n[0]&&r.push(`rotate(${n[0]})`),t=r.join(" ")}else{const r=t.match(/translate\((.*?)\)/);r&&(e=r[1].split(s));const o=t.match(/rotate\((.*?)\)/);o&&(n=o[1].split(s));const l=t.match(/scale\((.*?)\)/);l&&(i=l[1].split(s))}}const s=i&&i[0]?parseFloat(i[0]):1;return{raw:t||"",translation:{tx:e&&e[0]?parseInt(e[0],10):0,ty:e&&e[1]?parseInt(e[1],10):0},rotation:{angle:n&&n[0]?parseInt(n[0],10):0,cx:n&&n[1]?parseInt(n[1],10):void 0,cy:n&&n[2]?parseInt(n[2],10):void 0},scale:{sx:s,sy:i&&i[1]?parseFloat(i[1]):s}}}function Ye(t,e){return{x:e.x*t.a+e.y*t.c+0,y:e.x*t.b+e.y*t.d+0}}function Ze(t,e,n={}){if(null==e)return We(le(t,"transform"));if(n.absolute)return void t.setAttribute("transform",Xe(e));const i=t.transform,s=Ue(e);i.baseVal.appendItem(s)}function Qe(t,e,n=0,i={}){let s=le(t,"transform");const r=Je(s);if(null==e)return r.translation;s=r.raw,s=s.replace(/translate\([^)]*\)/g,"").trim();const o=`translate(${i.absolute?e:r.translation.tx+e},${i.absolute?n:r.translation.ty+n})`;t.setAttribute("transform",`${o} ${s}`.trim())}function Ke(t,e,n,i,s={}){let r=le(t,"transform");const o=Je(r);if(null==e)return o.rotation;r=o.raw,r=r.replace(/rotate\([^)]*\)/g,"").trim(),e%=360;const l=`rotate(${s.absolute?e:o.rotation.angle+e}${null!=n&&null!=i?`,${n},${i}`:""})`;t.setAttribute("transform",`${r} ${l}`.trim())}function tn(t,e,n){let i=le(t,"transform");const s=Je(i);if(null==e)return s.scale;n=null==n?e:n,i=s.raw,i=i.replace(/scale\([^)]*\)/g,"").trim();const r=`scale(${e},${n})`;t.setAttribute("transform",`${i} ${r}`.trim())}function en(t,e){if(Ft(e)&&Ft(t)){const n=e.getScreenCTM(),i=t.getScreenCTM();if(n&&i)return n.inverse().multiply(i)}return He()}var nn,sn,rn;!function(t){const e={};t.get=function(t){return e[t]||{}},t.register=function(t,n){e[t]=n},t.unregister=function(t){delete e[t]}}(nn||(nn={})),function(t){const e=new WeakMap;t.ensure=function(t){return e.has(t)||e.set(t,{events:Object.create(null)}),e.get(t)},t.get=function(t){return e.get(t)},t.remove=function(t){return e.delete(t)}}(sn||(sn={})),function(t){t.returnTrue=()=>!0,t.returnFalse=()=>!1,t.stopPropagationCallback=function(t){t.stopPropagation()},t.addEventListener=function(t,e,n){null!=t.addEventListener&&t.addEventListener(e,n)},t.removeEventListener=function(t,e,n){null!=t.removeEventListener&&t.removeEventListener(e,n)}}(rn||(rn={})),function(t){const e=/[^\x20\t\r\n\f]+/g,n=/^([^.]*)(?:\.(.+)|)/;t.splitType=function(t){return(t||"").match(e)||[""]},t.normalizeType=function(t){const e=n.exec(t)||[];return{originType:e[1]?e[1].trim():e[1],namespaces:e[2]?e[2].split(".").map((t=>t.trim())).sort():[]}},t.isValidTarget=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},t.isValidSelector=function(t,e){if(e){const n=t;return null!=n.querySelector&&null!=n.querySelector(e)}return!0}}(rn||(rn={})),function(t){let e=0;const n=new WeakMap;t.ensureHandlerId=function(t){return n.has(t)||(n.set(t,e),e+=1),n.get(t)},t.getHandlerId=function(t){return n.get(t)},t.removeHandlerId=function(t){return n.delete(t)},t.setHandlerId=function(t,e){return n.set(t,e)}}(rn||(rn={})),(rn||(rn={})).getHandlerQueue=function(t,e){const n=[],i=sn.get(t),s=i&&i.events&&i.events[e.type],r=s&&s.handlers||[],o=s?s.delegateCount:0;if(o>0&&!("click"===e.type&&"number"==typeof e.button&&e.button>=1))for(let l=e.target;l!==t;l=l.parentNode||t)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){const e=[],i={};for(let n=0;n{e.push(t)})),i[o]=e.includes(l)}i[o]&&e.push(s)}e.length&&n.push({elem:l,handlers:e})}return ot.addProperty(n,e[n])))}(on||(on={})),nn.register("load",{noBubble:!0}),nn.register("beforeunload",{postDispatch(t,e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}),nn.register("mouseenter",{delegateType:"mouseover",bindType:"mouseover",handle(t,e){let n;const i=e.relatedTarget,s=e.handleObj;return i&&(i===t||rn.contains(t,i))||(e.type=s.originType,n=s.handler.call(t,e),e.type="mouseover"),n}}),nn.register("mouseleave",{delegateType:"mouseout",bindType:"mouseout",handle(t,e){let n;const i=e.relatedTarget,s=e.handleObj;return i&&(i===t||rn.contains(t,i))||(e.type=s.originType,n=s.handler.call(t,e),e.type="mouseout"),n}});var ln,an,hn,cn=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s{const{originType:n,namespaces:i}=rn.normalizeType(e);if(!n)return;let u=n,d=nn.get(u);u=(o?d.delegateType:d.bindType)||u,d=nn.get(u);const g=Object.assign({type:u,originType:n,data:r,selector:o,guid:c,handler:s,namespace:i.join(".")},l),p=a.events;let f=p[u];f||(f=p[u]={handlers:[],delegateCount:0},d.setup&&!1!==d.setup(t,r,i,h)||rn.addEventListener(t,u,h)),d.add&&(rn.removeHandlerId(g.handler),d.add(t,g),rn.setHandlerId(g.handler,c)),o?(f.handlers.splice(f.delegateCount,0,g),f.delegateCount+=1):f.handlers.push(g)}))},t.off=function t(e,n,i,s,r){const o=sn.get(e);if(!o)return;const l=o.events;l&&(rn.splitType(n).forEach((n=>{const{originType:a,namespaces:h}=rn.normalizeType(n);if(!a)return void Object.keys(l).forEach((r=>{t(e,r+n,i,s,!0)}));let c=a;const u=nn.get(c);c=(s?u.delegateType:u.bindType)||c;const d=l[c]||{},g=h.length>0?new RegExp(`(^|\\.)${h.join("\\.(?:.*\\.|)")}(\\.|$)`):null,p=d.handlers.length;for(let t=d.handlers.length-1;t>=0;t-=1){const n=d.handlers[t];!r&&a!==n.originType||i&&rn.getHandlerId(i)!==n.guid||!(null==g||n.namespace&&g.test(n.namespace))||!(null==s||s===n.selector||"**"===s&&n.selector)||(d.handlers.splice(t,1),n.selector&&(d.delegateCount-=1),u.remove&&u.remove(e,n))}p&&0===d.handlers.length&&(u.teardown&&!1!==u.teardown(e,h,o.handler)||rn.removeEventListener(e,c,o.handler),delete l[c])})),0===Object.keys(l).length&&sn.remove(e))},t.dispatch=n,t.trigger=function(t,n,i,s){let r=t,o="string"==typeof t?t:t.type,l="string"==typeof t||null==r.namespace?[]:r.namespace.split(".");const a=i;if(3===a.nodeType||8===a.nodeType)return;o.indexOf(".")>-1&&(l=o.split("."),o=l.shift(),l.sort());const h=o.indexOf(":")<0&&`on${o}`;r=t instanceof on?t:new on(o,"object"==typeof t?t:null),r.namespace=l.join("."),r.rnamespace=r.namespace?new RegExp(`(^|\\.)${l.join("\\.(?:.*\\.|)")}(\\.|$)`):null,r.result=void 0,r.target||(r.target=a);const c=[r];Array.isArray(n)?c.push(...n):c.push(n);const u=nn.get(o);if(!s&&u.trigger&&!1===u.trigger(a,r,n))return;let d;const g=[a];if(!s&&!u.noBubble&&!rn.isWindow(a)){d=u.delegateType||o;let t=a,e=a.parentNode;for(;null!=e;)g.push(e),t=e,e=e.parentNode;if(t===(a.ownerDocument||document)){const e=t.defaultView||t.parentWindow||window;g.push(e)}}let p=a;for(let e=0,f=g.length;e1?d:u.bindType||o;const n=sn.get(t);n&&n.events[r.type]&&n.handler&&n.handler.call(t,...c);const i=h&&t[h]||null;i&&rn.isValidTarget(t)&&(r.result=i.call(t,...c),!1===r.result&&r.preventDefault())}if(r.type=o,!s&&!r.isDefaultPrevented()){const t=u.preventDefault;if((null==t||!1===t(g.pop(),r,n))&&rn.isValidTarget(a)&&h&&"function"==typeof a[o]&&!rn.isWindow(a)){const t=a[h];t&&(a[h]=null),e=o,r.isPropagationStopped()&&p.addEventListener(o,rn.stopPropagationCallback),a[o](),r.isPropagationStopped()&&p.removeEventListener(o,rn.stopPropagationCallback),e=void 0,t&&(a[h]=t)}}return r.result}}(ln||(ln={})),function(t){t.on=function(t,e,n,i,s){return hn.on(t,e,n,i,s),t},t.once=function(t,e,n,i,s){return hn.on(t,e,n,i,s,!0),t},t.off=function(t,e,n,i){return hn.off(t,e,n,i),t},t.trigger=function(t,e,n,i){return ln.trigger(e,n,t,i),t}}(an||(an={})),function(t){t.on=function e(n,i,s,r,o,l){if("object"==typeof i)return"string"!=typeof s&&(r=r||s,s=void 0),void Object.keys(i).forEach((t=>e(n,t,s,r,i[t],l)));if(null==r&&null==o?(o=s,r=s=void 0):null==o&&("string"==typeof s?(o=r,r=void 0):(o=r,r=s,s=void 0)),!1===o)o=rn.returnFalse;else if(!o)return;if(l){const e=o;o=function(i,...s){return t.off(n,i),e.call(this,i,...s)},rn.setHandlerId(o,rn.ensureHandlerId(e))}ln.on(n,i,o,r,s)},t.off=function t(e,n,i,s){const r=n;if(r&&null!=r.preventDefault&&null!=r.handleObj){const e=r.handleObj;t(r.delegateTarget,e.namespace?`${e.originType}.${e.namespace}`:e.originType,e.selector,e.handler)}else if("object"!=typeof n)!1!==i&&"function"!=typeof i||(s=i,i=void 0),!1===s&&(s=rn.returnFalse),ln.off(e,n,s,i);else{const s=n;Object.keys(s).forEach((n=>t(e,n,i,s[n])))}}}(hn||(hn={}));class un{constructor(t,e,n){this.animationFrameId=0,this.deltaX=0,this.deltaY=0,this.eventName=Nt.isEventSupported("wheel")?"wheel":"mousewheel",this.target=t,this.onWheelCallback=e,this.onWheelGuard=n,this.onWheel=this.onWheel.bind(this),this.didWheel=this.didWheel.bind(this)}enable(){this.target.addEventListener(this.eventName,this.onWheel,{passive:!1})}disable(){this.target.removeEventListener(this.eventName,this.onWheel)}onWheel(t){if(null!=this.onWheelGuard&&!this.onWheelGuard(t))return;let e;this.deltaX+=t.deltaX,this.deltaY+=t.deltaY,t.preventDefault(),0===this.deltaX&&0===this.deltaY||(t.stopPropagation(),e=!0),!0===e&&0===this.animationFrameId&&(this.animationFrameId=requestAnimationFrame((()=>{this.didWheel(t)})))}didWheel(t){this.animationFrameId=0,this.onWheelCallback(t,this.deltaX,this.deltaY),this.deltaX=0,this.deltaY=0}}function dn(t){const e=t.getBoundingClientRect(),n=t.ownerDocument.defaultView;return{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}}function gn(t,e=60){let n=null;return(...i)=>{n&&clearTimeout(n),n=window.setTimeout((()=>{t.apply(this,i)}),e)}}const pn="undefined"!=typeof ResizeObserver?function(t){let e=null,n=[];const i=gn((()=>{n.forEach((e=>{e(t)}))})),s=()=>{e&&(e.disconnect(),n=[],e=null)};return{element:t,bind:s=>{e||(e=(()=>{const e=new ResizeObserver(i);return e.observe(t),i(),e})()),-1===n.indexOf(s)&&n.push(s)},destroy:s,unbind:t=>{const i=n.indexOf(t);-1!==i&&n.splice(i,1),0===n.length&&e&&s()}}}:function(t){let e=null,n=[];const i=gn((()=>{n.forEach((e=>e(t)))})),s=()=>{e&&e.parentNode&&(e.contentDocument&&e.contentDocument.defaultView.removeEventListener("resize",i),e.parentNode.removeChild(e),e=null,n=[])};return{element:t,bind:s=>{e||(e=(()=>{"static"===getComputedStyle(t).position&&(t.style.position="relative");const e=document.createElement("object");return e.onload=()=>{e.contentDocument.defaultView.addEventListener("resize",i),i()},e.style.display="block",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height="100%",e.style.width="100%",e.style.overflow="hidden",e.style.pointerEvents="none",e.style.zIndex="-1",e.style.opacity="0",e.setAttribute("tabindex","-1"),e.type="text/html",t.appendChild(e),e.data="about:blank",e})()),-1===n.indexOf(s)&&n.push(s)},destroy:s,unbind:t=>{const i=n.indexOf(t);-1!==i&&n.splice(i,1),0===n.length&&e&&s()}}};var fn,mn,yn,bn,vn;!function(t){const e=new WeakMap;function n(t){let n=e.get(t);return n||(n=pn(t),e.set(t,n),n)}t.bind=(t,e)=>{const i=n(t);return i.bind(e),()=>i.unbind(e)},t.clear=t=>{var i;(i=n(t)).destroy(),e.delete(i.element)}}(fn||(fn={}));class xn{constructor(t={}){this.comparator=t.comparator||xn.defaultComparator,this.index={},this.data=t.data||[],this.heapify()}isEmpty(){return 0===this.data.length}insert(t,e,n){const i={priority:t,value:e},s=this.data.length;return n&&(i.id=n,this.index[n]=s),this.data.push(i),this.bubbleUp(s),this}peek(){return this.data[0]?this.data[0].value:null}peekPriority(){return this.data[0]?this.data[0].priority:null}updatePriority(t,e){const n=this.index[t];if(void 0===n)throw new Error(`Node with id '${t}' was not found in the heap.`);const i=this.data,s=i[n].priority,r=this.comparator(e,s);r<0?(i[n].priority=e,this.bubbleUp(n)):r>0&&(i[n].priority=e,this.bubbleDown(n))}remove(){const t=this.data,e=t[0],n=t.pop();return e.id&&delete this.index[e.id],t.length>0&&(t[0]=n,n.id&&(this.index[n.id]=0),this.bubbleDown(0)),e?e.value:null}heapify(){for(let t=0;t0&&(i=s-1>>>1,this.comparator(e[s].priority,e[i].priority)<0);){n=e[i],e[i]=e[s];let t=e[s].id;null!=t&&(this.index[t]=i),e[s]=n,t=e[s].id,null!=t&&(this.index[t]=s),s=i}}bubbleDown(t){const e=this.data,n=e.length-1;let i=t;for(;;){const t=1+(i<<1),s=t+1;let r=i;if(t<=n&&this.comparator(e[t].priority,e[r].priority)<0&&(r=t),s<=n&&this.comparator(e[s].priority,e[r].priority)<0&&(r=s),r===i)break;{const t=e[r];e[r]=e[i];let n=e[i].id;null!=n&&(this.index[n]=r),e[i]=t,n=e[i].id,null!=n&&(this.index[n]=i),i=r}}}}(xn||(xn={})).defaultComparator=(t,e)=>t-e,(mn||(mn={})).run=function(t,e,n=((t,e)=>1)){const i={},s={},r={},o=new xn;for(i[e]=0,Object.keys(t).forEach((t=>{t!==e&&(i[t]=1/0),o.insert(i[t],t,t)}));!o.isEmpty();){const e=o.remove();r[e]=!0;const l=t[e]||[];for(let t=0;t{const e=this[t].toString(16);return e.length<2?`0${e}`:e})).join("")}`}toRGBA(){return this.toArray()}toHSLA(){return wn.rgba2hsla(this.r,this.g,this.b,this.a)}toCSS(t){const e=`${this.r},${this.g},${this.b},`;return t?`rgb(${e})`:`rgba(${e},${this.a})`}toGrey(){return wn.makeGrey(Math.round((this.r+this.g+this.b)/3),this.a)}toArray(){return[this.r,this.g,this.b,this.a]}toString(){return this.toCSS()}}!function(t){function e(e){return new t([...a(e),1])}function n(e){const n=e.toLowerCase().match(/^rgba?\(([\s.,0-9]+)\)/);if(n){const e=n[1].split(/\s*,\s*/).map((t=>parseInt(t,10)));return new t(e)}return null}function s(t,e,n){n<0&&++n,n>1&&--n;const i=6*n;return i<1?t+(e-t)*i:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function r(e){const n=e.toLowerCase().match(/^hsla?\(([\s.,0-9]+)\)/);if(n){const e=n[2].split(/\s*,\s*/),i=(parseFloat(e[0])%360+360)%360/360,s=parseFloat(e[1])/100,r=parseFloat(e[2])/100,l=null==e[3]?1:parseInt(e[3],10);return new t(o(i,s,r,l))}return null}function o(t,e,n,i){const r=Array.isArray(t)?t[0]:t,o=Array.isArray(t)?t[1]:e,l=Array.isArray(t)?t[2]:n,a=Array.isArray(t)?t[3]:i,h=l<=.5?l*(o+1):l+o-l*o,c=2*l-h;return[256*s(c,h,r+1/3),256*s(c,h,r),256*s(c,h,r-1/3),null==a?1:a]}function l(e){return new t(Math.round(256*Math.random()),Math.round(256*Math.random()),Math.round(256*Math.random()),e?void 0:parseFloat(Math.random().toFixed(2)))}function a(t){const e=0===t.indexOf("#")?t:`#${t}`;let n=Number(`0x${e.substr(1)}`);if(4!==e.length&&7!==e.length||Number.isNaN(n))throw new Error("Invalid hex color.");const i=4===e.length?4:8,s=(1<{const t=n&s;return n>>=i,4===i?17*t:t}));return[r[2],r[1],r[0]]}function h(t,e,n){const i=t=>t.length<2?`0${t}`:t;return`${i(t.toString(16))}${i(e.toString(16))}${i(n.toString(16))}`}function c(t,e){if("string"==typeof t){const n="#"===t[0],s=parseInt(n?t.substr(1):t,16),r=i((s>>16)+e,0,255),o=i((s>>8&255)+e,0,255);return`${n?"#":""}${(i((255&s)+e,0,255)|o<<8|r<<16).toString(16)}`}const n=a(c(h(t[0],t[1],t[2]),e));return[n[0],n[1],n[2],t[3]]}t.fromArray=function(e){return new t(e)},t.fromHex=e,t.fromRGBA=n,t.fromHSLA=r,t.fromString=function(i){if(i.startsWith("#"))return e(i);if(i.startsWith("rgb"))return n(i);const s=t.named[i];return s?e(s):r(i)},t.makeGrey=function(e,n){return t.fromArray([e,e,e,n])},t.rgba2hsla=function(t,e,n,i){const s=Array.isArray(t)?t[0]:t,r=Array.isArray(t)?t[1]:e,o=Array.isArray(t)?t[2]:n,l=Array.isArray(t)?t[3]:i,a=Math.max(s,r,o),h=Math.min(s,r,o),c=(a+h)/2;let u=0,d=0;if(h!==a){const t=a-h;switch(d=c>.5?t/(2-a-h):t/(a+h),a){case s:u=(r-o)/t+(r186?"#000000":"#ffffff":`${n?"#":""}${h(255-i,255-s,255-r)}`}const n=t[0],i=t[1],s=t[2],r=t[3];return e?.299*n+.587*i+.114*s>186?[0,0,0,r]:[255,255,255,r]:[255-n,255-i,255-s,r]},t.lighten=function(t,e){return c(t,e)},t.darken=function(t,e){return c(t,-e)}}(wn||(wn={})),(wn||(wn={})).named={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",burntsienna:"#ea7e5d",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};class Cn{constructor(){this.clear()}clear(){this.map=new WeakMap,this.arr=[]}has(t){return this.map.has(t)}get(t){return this.map.get(t)}set(t,e){this.map.set(t,e),this.arr.push(t)}delete(t){const e=this.arr.indexOf(t);e>=0&&this.arr.splice(e,1);const n=this.map.get(t);return this.map.delete(t),n}each(t){this.arr.forEach((e=>{const n=this.map.get(e);t(n,e)}))}dispose(){this.clear()}}!function(t){function e(t){const e=[],n=[];return Array.isArray(t)?e.push(...t):t.split("|").forEach((t=>{-1===t.indexOf("&")?e.push(t):n.push(...t.split("&"))})),{or:e,and:n}}t.parse=e,t.equals=function(t,n){if(null!=t&&null!=n){const i=e(t),s=e(n),r=i.or.sort(),o=s.or.sort(),l=i.and.sort(),a=s.and.sort(),h=(t,e)=>t.length===e.length&&(0===t.length||t.every(((t,n)=>t===e[n])));return h(r,o)&&h(l,a)}return null==t&&null==n},t.isMatch=function(t,n,i){if(null==n||Array.isArray(n)&&0===n.length)return!i||!0!==t.altKey&&!0!==t.ctrlKey&&!0!==t.metaKey&&!0!==t.shiftKey;const{or:s,and:r}=e(n),o=e=>{const n=`${e.toLowerCase()}Key`;return!0===t[n]};return s.some((t=>o(t)))&&r.every((t=>o(t)))}}(yn||(yn={})),function(t){t.linear=t=>t,t.quad=t=>t*t,t.cubic=t=>t*t*t,t.inout=t=>{if(t<=0)return 0;if(t>=1)return 1;const e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)},t.exponential=t=>Math.pow(2,10*(t-1)),t.bounce=t=>{for(let e=0,n=1;;e+=n,n/=2)if(t>=(7-4*e)/11){const i=(11-6*e-11*t)/4;return-i*i+n*n}}}(bn||(bn={})),(bn||(bn={})).decorators={reverse:t=>e=>1-t(1-e),reflect:t=>e=>.5*(e<.5?t(2*e):2-t(2-2*e)),clamp:(t,e=0,n=1)=>i=>{const s=t(i);return sn?n:s},back:(t=1.70158)=>e=>e*e*((t+1)*e-t),elastic:(t=1.5)=>e=>Math.pow(2,10*(e-1))*Math.cos(20*Math.PI*t/3*e)},function(t){function e(t){const e=t/1;if(e<1/2.75)return 7.5625*e*e;if(e<2/2.75){const t=e-1.5/2.75;return 7.5625*t*t+.75}if(e<2.5/2.75){const t=e-2.25/2.75;return 7.5625*t*t+.9375}{const t=e-2.625/2.75;return 7.5625*t*t+.984375}}function n(t){return 1-e(1-t)}t.easeInSine=function(t){return-1*Math.cos(t*(Math.PI/2))+1},t.easeOutSine=function(t){return Math.sin(t*(Math.PI/2))},t.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.easeInQuad=function(t){return t*t},t.easeOutQuad=function(t){return t*(2-t)},t.easeInOutQuad=function(t){return t<.5?2*t*t:(4-2*t)*t-1},t.easeInCubic=function(t){return t*t*t},t.easeOutCubic=function(t){const e=t-1;return e*e*e+1},t.easeInOutCubic=function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},t.easeInQuart=function(t){return t*t*t*t},t.easeOutQuart=function(t){const e=t-1;return 1-e*e*e*e},t.easeInOutQuart=function(t){const e=t-1;return t<.5?8*t*t*t*t:1-8*e*e*e*e},t.easeInQuint=function(t){return t*t*t*t*t},t.easeOutQuint=function(t){const e=t-1;return 1+e*e*e*e*e},t.easeInOutQuint=function(t){const e=t-1;return t<.5?16*t*t*t*t*t:1+16*e*e*e*e*e},t.easeInExpo=function(t){return 0===t?0:Math.pow(2,10*(t-1))},t.easeOutExpo=function(t){return 1===t?1:1-Math.pow(2,-10*t)},t.easeInOutExpo=function(t){if(0===t||1===t)return t;const e=2*t,n=e-1;return e<1?.5*Math.pow(2,10*n):.5*(2-Math.pow(2,-10*n))},t.easeInCirc=function(t){const e=t/1;return-1*(Math.sqrt(1-e*t)-1)},t.easeOutCirc=function(t){const e=t-1;return Math.sqrt(1-e*e)},t.easeInOutCirc=function(t){const e=2*t,n=e-2;return e<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-n*n)+1)},t.easeInBack=function(t,e=1.70158){return t*t*((e+1)*t-e)},t.easeOutBack=function(t,e=1.70158){const n=t/1-1;return n*n*((e+1)*n+e)+1},t.easeInOutBack=function(t,e=1.70158){const n=2*t,i=n-2,s=1.525*e;return n<1?.5*n*n*((s+1)*n-s):.5*(i*i*((s+1)*i+s)+2)},t.easeInElastic=function(t,e=.7){if(0===t||1===t)return t;const n=t/1-1,i=1-e,s=i/(2*Math.PI)*Math.asin(1);return-Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/i)},t.easeOutElastic=function(t,e=.7){const n=1-e,i=2*t;if(0===t||1===t)return t;const s=n/(2*Math.PI)*Math.asin(1);return Math.pow(2,-10*i)*Math.sin((i-s)*(2*Math.PI)/n)+1},t.easeInOutElastic=function(t,e=.65){const n=1-e;if(0===t||1===t)return t;const i=2*t,s=i-1,r=n/(2*Math.PI)*Math.asin(1);return i<1?Math.pow(2,10*s)*Math.sin((s-r)*(2*Math.PI)/n)*-.5:Math.pow(2,-10*s)*Math.sin((s-r)*(2*Math.PI)/n)*.5+1},t.easeOutBounce=e,t.easeInBounce=n,t.easeInOutBounce=function(t){return t<.5?.5*n(2*t):.5*e(2*t-1)+.5}}(bn||(bn={})),function(t){t.number=(t,e)=>{const n=e-t;return e=>t+n*e},t.object=(t,e)=>{const n=Object.keys(t);return i=>{const s={};for(let r=n.length-1;-1!==r;r-=1){const o=n[r];s[o]=t[o]+(e[o]-t[o])*i}return s}},t.unit=(t,e)=>{const n=/(-?[0-9]*.[0-9]*)(px|em|cm|mm|in|pt|pc|%)/,i=n.exec(t),s=n.exec(e),r=s?s[1]:"",o=i?+i[1]:0,l=s?+s[1]:0,a=r.indexOf("."),h=a>0?r[1].length-a-1:0,c=l-o,u=i?i[2]:"";return t=>(o+c*t).toFixed(h)+u},t.color=(t,e)=>{const n=parseInt(t.slice(1),16),i=parseInt(e.slice(1),16),s=255&n,r=(255&i)-s,o=65280&n,l=(65280&i)-o,a=16711680&n,h=(16711680&i)-a;return t=>`#${(1<<24|s+r*t&255|o+l*t&65280|a+h*t&16711680).toString(16).slice(1)}`}}(vn||(vn={}));const Pn=[];function En(t,e){const n=Pn.find((e=>e.name===t));if(!(n&&(n.loadTimes+=1,n.loadTimes>1)||Nt.isApplyingHMR())){const n=document.createElement("style");n.setAttribute("type","text/css"),n.textContent=e;const i=document.querySelector("head");i&&i.insertBefore(n,i.firstChild),Pn.push({name:t,loadTimes:1,styleElement:n})}}function Sn(t){const e=Pn.findIndex((e=>e.name===t));if(e>-1){const t=Pn[e];if(t.loadTimes-=1,t.loadTimes>0)return;let n=t.styleElement;n&&n.parentNode&&n.parentNode.removeChild(n),n=null,Pn.splice(e,1)}}var An,Mn;!function(t){t.toDeg=function(t){return 180*t/Math.PI%360},t.toRad=function(t,e=!1){return(e?t:t%360)*Math.PI/180},t.normalize=function(t){return t%360+(t<0?360:0)}}(An||(An={})),function(t){t.round=function(t,e=0){return Number.isInteger(t)?t:+t.toFixed(e)},t.random=function(t,e){let n,i;if(null==e?(i=null==t?1:t,n=0):(i=e,n=null==t?0:t),in?n:t:te?e:t},t.snapToGrid=function(t,e){return e*Math.round(t/e)},t.containsPoint=function(t,e){return null!=e&&null!=t&&e.x>=t.x&&e.x<=t.x+t.width&&e.y>=t.y&&e.y<=t.y+t.height},t.squaredLength=function(t,e){const n=t.x-e.x,i=t.y-e.y;return n*n+i*i}}(Mn||(Mn={}));class On{valueOf(){return this.toJSON()}toString(){return JSON.stringify(this.toJSON())}}class Tn extends On{constructor(t,e){super(),this.x=null==t?0:t,this.y=null==e?0:e}round(t=0){return this.x=Mn.round(this.x,t),this.y=Mn.round(this.y,t),this}add(t,e){const n=Tn.create(t,e);return this.x+=n.x,this.y+=n.y,this}update(t,e){const n=Tn.create(t,e);return this.x=n.x,this.y=n.y,this}translate(t,e){const n=Tn.create(t,e);return this.x+=n.x,this.y+=n.y,this}rotate(t,e){const n=Tn.rotate(this,t,e);return this.x=n.x,this.y=n.y,this}scale(t,e,n=new Tn){const i=Tn.create(n);return this.x=i.x+t*(this.x-i.x),this.y=i.y+e*(this.y-i.y),this}closest(t){if(1===t.length)return Tn.create(t[0]);let e=null,n=1/0;return t.forEach((t=>{const i=this.squaredDistance(t);ii&&(o=(this.x+this.width-i)/(p.x-i)),p.y>s&&(c=(this.y+this.height-s)/(p.y-s));const f=n.topRight;f.x>i&&(l=(this.x+this.width-i)/(f.x-i)),f.ys&&(d=(this.y+this.height-s)/(m.y-s)),{sx:Math.min(r,o,l,a),sy:Math.min(h,c,u,d)}}getMaxUniformScaleToFit(t,e=this.center){const n=this.getMaxScaleToFit(t,e);return Math.min(n.sx,n.sy)}containsPoint(t,e){return Mn.containsPoint(this,Tn.create(t,e))}containsRect(t,e,n,i){const s=Nn.create(t,e,n,i),r=this.x,o=this.y,l=this.width,a=this.height,h=s.x,c=s.y,u=s.width,d=s.height;return 0!==l&&0!==a&&0!==u&&0!==d&&h>=r&&c>=o&&h+u<=r+l&&c+d<=o+a}intersectsWithLine(t){const e=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],n=[],i=[];return e.forEach((e=>{const s=t.intersectsWithLine(e);null!==s&&i.indexOf(s.toString())<0&&(n.push(s),i.push(s.toString()))})),n.length>0?n:null}intersectsWithLineFromCenterToPoint(t,e){const n=Tn.clone(t),i=this.center;let s=null;null!=e&&0!==e&&n.rotate(e,i);const r=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],o=new kn(i,n);for(let l=r.length-1;l>=0;l-=1){const t=r[l].intersectsWithLine(o);if(null!==t){s=t;break}}return s&&null!=e&&0!==e&&s.rotate(-e,i),s}intersectsWithRect(t,e,n,i){const s=Nn.create(t,e,n,i);if(!this.isIntersectWithRect(s))return null;const r=this.origin,o=this.corner,l=s.origin,a=s.corner,h=Math.max(r.x,l.x),c=Math.max(r.y,l.y);return new Nn(h,c,Math.min(o.x,a.x)-h,Math.min(o.y,a.y)-c)}isIntersectWithRect(t,e,n,i){const s=Nn.create(t,e,n,i),r=this.origin,o=this.corner,l=s.origin,a=s.corner;return!(a.x<=r.x||a.y<=r.y||l.x>=o.x||l.y>=o.y)}normalize(){let t=this.x,e=this.y,n=this.width,i=this.height;return this.width<0&&(t=this.x+this.width,n=-this.width),this.height<0&&(e=this.y+this.height,i=-this.height),this.x=t,this.y=e,this.width=n,this.height=i,this}union(t){const e=Nn.clone(t),n=this.origin,i=this.corner,s=e.origin,r=e.corner,o=Math.min(n.x,s.x),l=Math.min(n.y,s.y),a=Math.max(i.x,r.x),h=Math.max(i.y,r.y);return new Nn(o,l,a-o,h-l)}getNearestSideToPoint(t){const e=Tn.clone(t),n=e.x-this.x,i=this.x+this.width-e.x,s=e.y-this.y;let r=n,o="left";return i=1?n.clone():e.lerp(n,t)}pointAtLength(t){const e=this.start,n=this.end;let i=!0;t<0&&(i=!1,t=-t);const s=this.length();if(t>=s)return i?n.clone():e.clone();const r=(i?t:s-t)/s;return this.pointAt(r)}divideAt(t){const e=this.pointAt(t);return[new kn(this.start,e),new kn(e,this.end)]}divideAtLength(t){const e=this.pointAtLength(t);return[new kn(this.start,e),new kn(e,this.end)]}containsPoint(t){const e=this.start,n=this.end;if(0!==e.cross(t,n))return!1;const i=this.length();return!(new kn(e,t).length()>i||new kn(t,n).length()>i)}intersect(t,e){const n=t.intersectsWithLine(this,e);return n?Array.isArray(n)?n:[n]:null}intersectsWithLine(t){const e=new Tn(this.end.x-this.start.x,this.end.y-this.start.y),n=new Tn(t.end.x-t.start.x,t.end.y-t.start.y),i=e.x*n.y-e.y*n.x,s=new Tn(t.start.x-this.start.x,t.start.y-this.start.y),r=s.x*n.y-s.y*n.x,o=s.x*e.y-s.y*e.x;if(0===i||r*i<0||o*i<0)return null;if(i>0){if(r>i||o>i)return null}else if(r0&&(i-=r,s-=o,l=i*r+s*o,l<0&&(l=0))),l<0?-1:l>0?1:0}equals(t){return null!=t&&this.start.x===t.start.x&&this.start.y===t.start.y&&this.end.x===t.end.x&&this.end.y===t.end.y}clone(){return new kn(this.start,this.end)}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.end.serialize()].join(" ")}}!function(t){t.isLine=function(e){return null!=e&&e instanceof t}}(kn||(kn={}));class jn extends On{get center(){return new Tn(this.x,this.y)}constructor(t,e,n,i){super(),this.x=null==t?0:t,this.y=null==e?0:e,this.a=null==n?0:n,this.b=null==i?0:i}bbox(){return Nn.fromEllipse(this)}getCenter(){return this.center}inflate(t,e){const n=t,i=null!=e?e:t;return this.a+=2*n,this.b+=2*i,this}normalizedDistance(t,e){const n=Tn.create(t,e),i=n.x-this.x,s=n.y-this.y,r=this.a,o=this.b;return i*i/(r*r)+s*s/(o*o)}containsPoint(t,e){return this.normalizedDistance(t,e)<=1}intersectsWithLine(t){const e=[],n=this.a,i=this.b,s=t.start,r=t.end,o=t.vector(),l=s.diff(new Tn(this.x,this.y)),a=new Tn(o.x/(n*n),o.y/(i*i)),h=new Tn(l.x/(n*n),l.y/(i*i)),c=o.dot(a),u=o.dot(h),d=u*u-c*(l.dot(h)-1);if(d<0)return null;if(d>0){const t=Math.sqrt(d),n=(-u-t)/c,i=(-u+t)/c;if((n<0||n>1)&&(i<0||i>1))return null;n>=0&&n<=1&&e.push(s.lerp(r,n)),i>=0&&i<=1&&e.push(s.lerp(r,i))}else{const t=-u/c;if(!(t>=0&&t<=1))return null;e.push(s.lerp(r,t))}return e}intersectsWithLineFromCenterToPoint(t,e=0){const n=Tn.clone(t);e&&n.rotate(e,this.getCenter());const i=n.x-this.x,s=n.y-this.y;let r;if(0===i)return r=this.bbox().getNearestPointToPoint(n),e?r.rotate(-e,this.getCenter()):r;const o=s/i,l=o*o,a=this.a*this.a,h=this.b*this.b;let c=Math.sqrt(1/(1/a+l/h));c=i<0?-c:c;const u=o*c;return r=new Tn(this.x+c,this.y+u),e?r.rotate(-e,this.getCenter()):r}tangentTheta(t){const e=Tn.clone(t),n=e.x,i=e.y,s=this.a,r=this.b,o=this.bbox().center,l=o.x,a=o.y,h=n>o.x+s/2,c=no.x?i-30:i+30,u=s*s/(n-l)-s*s*(i-a)*(d-a)/(r*r*(n-l))+l):(u=i>o.y?n+30:n-30,d=r*r/(i-a)-r*r*(n-l)*(u-l)/(s*s*(i-a))+a),new Tn(u,d).theta(e)}scale(t,e){return this.a*=t,this.b*=e,this}rotate(t,e){const n=Nn.fromEllipse(this);n.rotate(t,e);const i=jn.fromRect(n);return this.a=i.a,this.b=i.b,this.x=i.x,this.y=i.y,this}translate(t,e){const n=Tn.create(t,e);return this.x+=n.x,this.y+=n.y,this}equals(t){return null!=t&&t.x===this.x&&t.y===this.y&&t.a===this.a&&t.b===this.b}clone(){return new jn(this.x,this.y,this.a,this.b)}toJSON(){return{x:this.x,y:this.y,a:this.a,b:this.b}}serialize(){return`${this.x} ${this.y} ${this.a} ${this.b}`}}!function(t){t.isEllipse=function(e){return null!=e&&e instanceof t}}(jn||(jn={})),function(t){function e(e){return t.isEllipse(e)?e.clone():Array.isArray(e)?new t(e[0],e[1],e[2],e[3]):new t(e.x,e.y,e.a,e.b)}t.create=function(n,i,s,r){return null==n||"number"==typeof n?new t(n,i,s,r):e(n)},t.parse=e,t.fromRect=function(e){const n=e.center;return new t(n.x,n.y,e.width/2,e.height/2)}}(jn||(jn={}));const Ln=new RegExp("^[\\s\\dLMCZz,.]*$");function Bn(t){return"string"==typeof t&&Ln.test(t)}function Rn(t,e){return(t%e+e)%e}function Dn(t,e={}){const n=[];return t&&t.length&&t.forEach((t=>{Array.isArray(t)?n.push({x:t[0],y:t[1]}):n.push({x:t.x,y:t.y})})),function(t,e,n,i,s){const r=[],o=t[t.length-1],l=null!=e&&e>0,a=e||0;if(i&&l){const e=(t=t.slice())[0],n=new Tn(o.x+(e.x-o.x)/2,o.y+(e.y-o.y)/2);t.splice(0,0,n)}let h=t[0],c=1;for(n?r.push("M",h.x,h.y):r.push("L",h.x,h.y);c<(i?t.length:t.length-1);){let e=t[Rn(c,t.length)],n=h.x-e.x,i=h.y-e.y;if(l&&(0!==n||0!==i)&&(null==s||s.indexOf(c-1)<0)){let s=Math.sqrt(n*n+i*i);const o=n*Math.min(a,s/2)/s,l=i*Math.min(a,s/2)/s,h=e.x+o,u=e.y+l;r.push("L",h,u);let d=t[Rn(c+1,t.length)];for(;c"string"==typeof t?t:+t.toFixed(3))).join(" ")}(n,e.round,null==e.initialMove||e.initialMove,e.close,e.exclude)}function In(t,e,n,i,s=0,r=0,o=0,l,a){if(0===n||0===i)return[];l-=t,a-=e,n=Math.abs(n),i=Math.abs(i);const h=-l/2,c=-a/2,u=Math.cos(s*Math.PI/180),d=Math.sin(s*Math.PI/180),g=u*h+d*c,p=-1*d*h+u*c,f=g*g,m=p*p,y=n*n,b=i*i,v=f/y+m/b;let x;if(v>1)n=Math.sqrt(v)*n,i=Math.sqrt(v)*i,x=0;else{let t=1;r===o&&(t=-1),x=t*Math.sqrt((y*b-y*m-b*f)/(y*m+b*f))}const w=x*n*p/i,C=-1*x*i*g/n,P=u*w-d*C+l/2,E=d*w+u*C+a/2;let S=Math.atan2((p-C)/i,(g-w)/n)-Math.atan2(0,1),A=S>=0?S:2*Math.PI+S;S=Math.atan2((-p-C)/i,(-g-w)/n)-Math.atan2((p-C)/i,(g-w)/n);let M=S>=0?S:2*Math.PI+S;0===o&&M>0?M-=2*Math.PI:0!==o&&M<0&&(M+=2*Math.PI);const O=2*M/Math.PI,T=Math.ceil(O<0?-1*O:O),N=M/T,k=8/3*Math.sin(N/4)*Math.sin(N/4)/Math.sin(N/2),j=u*n,L=u*i,B=d*n,R=d*i;let D=Math.cos(A),I=Math.sin(A),V=-k*(j*I+R*D),z=-k*(B*I-L*D),$=0,F=0;const G=[];for(let _=0;_+t.toFixed(2)))}function Vn(t,e,n,i,s=0,r=0,o=0,l,a){const h=[],c=In(t,e,n,i,s,r,o,l,a);if(null!=c)for(let u=0,d=c.length;uTn.create(t)))}else this.points=[]}scale(t,e,n=new Tn){return this.points.forEach((i=>i.scale(t,e,n))),this}rotate(t,e){return this.points.forEach((n=>n.rotate(t,e))),this}translate(t,e){const n=Tn.create(t,e);return this.points.forEach((t=>t.translate(n.x,n.y))),this}round(t=0){return this.points.forEach((e=>e.round(t))),this}bbox(){if(0===this.points.length)return new Nn;let t=1/0,e=-1/0,n=1/0,i=-1/0;const s=this.points;for(let r=0,o=s.length;re&&(e=l),ai&&(i=a)}return new Nn(t,n,e-t,i-n)}closestPoint(t){const e=this.closestPointLength(t);return this.pointAtLength(e)}closestPointLength(t){const e=this.points,n=e.length;if(0===n||1===n)return 0;let i=0,s=0,r=1/0;for(let o=0,l=n-1;oh.y||i>r.y&&i<=h.y){const e=r.x-n>h.x-n?r.x-n:h.x-n;if(e>=0){const s=new Tn(n+e,i),r=new kn(t,s);c.intersectsWithLine(r)&&(l+=1)}}o=a}return l%2==1}intersectsWithLine(t){const e=[];for(let n=0,i=this.points.length-1;n0?e:null}isDifferentiable(){for(let t=0,e=this.points.length-1;t=1)return e[n-1].clone();const i=this.length()*t;return this.pointAtLength(i)}pointAtLength(t){const e=this.points,n=e.length;if(0===n)return null;if(1===n)return e[0].clone();let i=!0;t<0&&(i=!1,t=-t);let s=0;for(let r=0,o=n-1;r1&&(t=1);const n=this.length()*t;return this.tangentAtLength(n)}tangentAtLength(t){const e=this.points,n=e.length;if(0===n||1===n)return null;let i,s=!0;t<0&&(s=!1,t=-t);let r=0;for(let o=0,l=n-1;on.x)&&(n=t[u]);const i=[];for(let u=0;u{let n=t[2]-e[2];return 0===n&&(n=e[1]-t[1]),n})),i.length>2){const t=i[i.length-1];i.unshift(t)}const s={},r=[],o=t=>`${t[0].toString()}@${t[1]}`;for(;0!==i.length;){const t=i.pop(),e=t[0];if(s[o(t)])continue;let n=!1;for(;!n;)if(r.length<2)r.push(t),n=!0;else{const l=r.pop(),a=l[0],h=r.pop(),c=h[0],u=c.cross(a,e);if(u<0)r.push(h),r.push(l),r.push(t),n=!0;else if(0===u){const t=1e-10,n=a.angleBetween(c,e);Math.abs(n-180)2&&r.pop();let a=-1;for(let u=0,d=r.length;u0){const t=r.slice(a),e=r.slice(0,a);h=t.concat(e)}else h=r;const c=[];for(let u=0,d=h.length;ut.equals(this.points[e])))}clone(){return new zn(this.points.map((t=>t.clone())))}toJSON(){return this.points.map((t=>t.toJSON()))}serialize(){return this.points.map((t=>`${t.serialize()}`)).join(" ")}}!function(t){t.isPolyline=function(e){return null!=e&&e instanceof t}}(zn||(zn={})),function(t){t.parse=function(e){const n=e.trim();if(""===n)return new t;const i=[],s=n.split(/\s*,\s*|\s+/);for(let t=0,r=s.length;t0&&y<1&&d.push(y)}else x=f*f-4*m*p,w=Math.sqrt(x),x<0||(b=(-f+w)/(2*p),b>0&&b<1&&d.push(b),v=(-f-w)/(2*p),v>0&&v<1&&d.push(v));let S=d.length;const A=S;for(;S;)S-=1,y=d[S],E=1-y,C=E*E*E*s+3*E*E*y*o+3*E*y*y*a+y*y*y*c,g[0][S]=C,P=E*E*E*r+3*E*E*y*l+3*E*y*y*h+y*y*y*u,g[1][S]=P;d[A]=0,d[A+1]=1,g[0][A]=s,g[1][A]=r,g[0][A+1]=c,g[1][A+1]=u,d.length=A+2,g[0].length=A+2,g[1].length=A+2;const M=Math.min.apply(null,g[0]),O=Math.min.apply(null,g[1]),T=Math.max.apply(null,g[0]),N=Math.max.apply(null,g[1]);return new Nn(M,O,T-M,N-O)}closestPoint(t,e={}){return this.pointAtT(this.closestPointT(t,e))}closestPointLength(t,e={}){const n=this.getOptions(e);return this.lengthAtT(this.closestPointT(t,n),n)}closestPointNormalizedLength(t,e={}){const n=this.getOptions(e),i=this.closestPointLength(t,n);if(!i)return 0;const s=this.length(n);return 0===s?0:i/s}closestPointT(t,e={}){const n=this.getPrecision(e),i=this.getDivisions(e),s=Math.pow(10,-n);let r=null,o=0,l=0,a=0,h=0,c=0,u=null;const d=i.length;let g=d>0?1/d:0;for(i.forEach(((e,n)=>{const i=e.start.distance(t),s=e.end.distance(t),d=i+s;(null==u||d=1)return this.divideAtT(1);const n=this.tAt(t,e);return this.divideAtT(n)}divideAtLength(t,e={}){const n=this.tAtLength(t,e);return this.divideAtT(n)}divide(t){return this.divideAtT(t)}divideAtT(t){const e=this.start,n=this.controlPoint1,i=this.controlPoint2,s=this.end;if(t<=0)return[new $n(e,e,e,e),new $n(e,n,i,s)];if(t>=1)return[new $n(e,n,i,s),new $n(s,s,s,s)];const r=this.getSkeletonPoints(t),o=r.startControlPoint1,l=r.startControlPoint2,a=r.divider,h=r.dividerControlPoint1,c=r.dividerControlPoint2;return[new $n(e,o,l,a),new $n(a,h,c,s)]}endpointDistance(){return this.start.distance(this.end)}getSkeletonPoints(t){const e=this.start,n=this.controlPoint1,i=this.controlPoint2,s=this.end;if(t<=0)return{startControlPoint1:e.clone(),startControlPoint2:e.clone(),divider:e.clone(),dividerControlPoint1:n.clone(),dividerControlPoint2:i.clone()};if(t>=1)return{startControlPoint1:n.clone(),startControlPoint2:i.clone(),divider:s.clone(),dividerControlPoint1:s.clone(),dividerControlPoint2:s.clone()};const r=new kn(e,n).pointAt(t),o=new kn(n,i).pointAt(t),l=new kn(i,s).pointAt(t),a=new kn(r,o).pointAt(t),h=new kn(o,l).pointAt(t);return{startControlPoint1:r,startControlPoint2:a,divider:new kn(a,h).pointAt(t),dividerControlPoint1:h,dividerControlPoint2:l}}getSubdivisions(t={}){const e=this.getPrecision(t);let n=[new $n(this.start,this.controlPoint1,this.controlPoint2,this.end)];if(0===e)return n;let i=this.endpointDistance();const s=Math.pow(10,-e);let r=0;for(;;){r+=1;const t=[];n.forEach((e=>{const n=e.divide(.5);t.push(n[0],n[1])}));const e=t.reduce(((t,e)=>t+e.endpointDistance()),0);if(r>1&&(0!==e?(e-i)/e:0)t+e.endpointDistance()),0)}lengthAtT(t,e={}){if(t<=0)return 0;const n=void 0===e.precision?this.PRECISION:e.precision;return this.divide(t)[0].length({precision:n})}pointAt(t,e={}){if(t<=0)return this.start.clone();if(t>=1)return this.end.clone();const n=this.tAt(t,e);return this.pointAtT(n)}pointAtLength(t,e={}){const n=this.tAtLength(t,e);return this.pointAtT(n)}pointAtT(t){return t<=0?this.start.clone():t>=1?this.end.clone():this.getSkeletonPoints(t).divider}isDifferentiable(){const t=this.start,e=this.controlPoint1,n=this.controlPoint2,i=this.end;return!(t.equals(e)&&e.equals(n)&&n.equals(i))}tangentAt(t,e={}){if(!this.isDifferentiable())return null;t<0?t=0:t>1&&(t=1);const n=this.tAt(t,e);return this.tangentAtT(n)}tangentAtLength(t,e={}){if(!this.isDifferentiable())return null;const n=this.tAtLength(t,e);return this.tangentAtT(n)}tangentAtT(t){if(!this.isDifferentiable())return null;t<0&&(t=0),t>1&&(t=1);const e=this.getSkeletonPoints(t),n=e.startControlPoint2,i=e.dividerControlPoint1,s=e.divider,r=new kn(n,i);return r.translate(s.x-n.x,s.y-n.y),r}getPrecision(t={}){return null==t.precision?this.PRECISION:t.precision}getDivisions(t={}){if(null!=t.subdivisions)return t.subdivisions;const e=this.getPrecision(t);return this.getSubdivisions({precision:e})}getOptions(t={}){return{precision:this.getPrecision(t),subdivisions:this.getDivisions(t)}}tAt(t,e={}){if(t<=0)return 0;if(t>=1)return 1;const n=this.getOptions(e),i=this.length(n)*t;return this.tAtLength(i,n)}tAtLength(t,e={}){let n=!0;t<0&&(n=!1,t=-t);const i=this.getPrecision(e),s=this.getDivisions(e),r={precision:i,subdivisions:s};let o,l,a=null,h=0,c=0,u=0;const d=s.length;let g=d>0?1/d:0;for(let m=0;mn.push(t.end.clone()))),n}toPolyline(t={}){return new zn(this.toPoints(t))}scale(t,e,n){return this.start.scale(t,e,n),this.controlPoint1.scale(t,e,n),this.controlPoint2.scale(t,e,n),this.end.scale(t,e,n),this}rotate(t,e){return this.start.rotate(t,e),this.controlPoint1.rotate(t,e),this.controlPoint2.rotate(t,e),this.end.rotate(t,e),this}translate(t,e){return"number"==typeof t?(this.start.translate(t,e),this.controlPoint1.translate(t,e),this.controlPoint2.translate(t,e),this.end.translate(t,e)):(this.start.translate(t),this.controlPoint1.translate(t),this.controlPoint2.translate(t),this.end.translate(t)),this}equals(t){return null!=t&&this.start.equals(t.start)&&this.controlPoint1.equals(t.controlPoint1)&&this.controlPoint2.equals(t.controlPoint2)&&this.end.equals(t.end)}clone(){return new $n(this.start,this.controlPoint1,this.controlPoint2,this.end)}toJSON(){return{start:this.start.toJSON(),controlPoint1:this.controlPoint1.toJSON(),controlPoint2:this.controlPoint2.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.controlPoint1.serialize(),this.controlPoint2.serialize(),this.end.serialize()].join(" ")}}!function(t){t.isCurve=function(e){return null!=e&&e instanceof t}}($n||($n={})),function(t){function e(t){const e=t.length,n=[],i=[];let s=2;n[0]=t[0]/s;for(let r=1;rTn.clone(t))),i=[],s=[],r=n.length-1;if(1===r)return i[0]=new Tn((2*n[0].x+n[1].x)/3,(2*n[0].y+n[1].y)/3),s[0]=new Tn(2*i[0].x-n[0].x,2*i[0].y-n[0].y),[i,s];const o=[];for(let e=1;e=1?n:n*t}divideAtT(t){if(this.divideAt)return this.divideAt(t);throw new Error("Neither `divideAtT` nor `divideAt` method is implemented.")}pointAtT(t){if(this.pointAt)return this.pointAt(t);throw new Error("Neither `pointAtT` nor `pointAt` method is implemented.")}tangentAtT(t){if(this.tangentAt)return this.tangentAt(t);throw new Error("Neither `tangentAtT` nor `tangentAt` method is implemented.")}}class Gn extends Fn{constructor(t,e){super(),kn.isLine(t)?this.endPoint=t.end.clone().round(2):this.endPoint=Tn.create(t,e).round(2)}get type(){return"L"}get line(){return new kn(this.start,this.end)}bbox(){return this.line.bbox()}closestPoint(t){return this.line.closestPoint(t)}closestPointLength(t){return this.line.closestPointLength(t)}closestPointNormalizedLength(t){return this.line.closestPointNormalizedLength(t)}closestPointTangent(t){return this.line.closestPointTangent(t)}length(){return this.line.length()}divideAt(t){const e=this.line.divideAt(t);return[new Gn(e[0]),new Gn(e[1])]}divideAtLength(t){const e=this.line.divideAtLength(t);return[new Gn(e[0]),new Gn(e[1])]}getSubdivisions(){return[]}pointAt(t){return this.line.pointAt(t)}pointAtLength(t){return this.line.pointAtLength(t)}tangentAt(t){return this.line.tangentAt(t)}tangentAtLength(t){return this.line.tangentAtLength(t)}isDifferentiable(){return null!=this.previousSegment&&!this.start.equals(this.end)}clone(){return new Gn(this.end)}scale(t,e,n){return this.end.scale(t,e,n),this}rotate(t,e){return this.end.rotate(t,e),this}translate(t,e){return"number"==typeof t?this.end.translate(t,e):this.end.translate(t),this}equals(t){return this.type===t.type&&this.start.equals(t.start)&&this.end.equals(t.end)}toJSON(){return{type:this.type,start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){const t=this.end;return`${this.type} ${t.x} ${t.y}`}}!function(t){t.create=function(...e){const n=e.length,i=e[0];if(kn.isLine(i))return new t(i);if(Tn.isPointLike(i))return 1===n?new t(i):e.map((e=>new t(e)));if(2===n)return new t(+e[0],+e[1]);const s=[];for(let r=0;r1&&(c=Math.sqrt(c),n*=c,i*=c);const y=n*n,b=i*i,v=(r===o?-1:1)*Math.sqrt(Math.abs((y*b-y*h*h-b*s*s)/(y*h*h+b*s*s)));f=v*n*h/i+(t+l)/2,m=v*-i*s/n+(e+a)/2,g=Math.asin((e-m)/i),p=Math.asin((a-m)/i),g=tp&&(g-=2*Math.PI),!o&&p>g&&(p-=2*Math.PI)}let b=p-g;if(Math.abs(b)>c){const t=p,e=l,r=a;p=g+c*(o&&p>g?1:-1),y=Xn(l=f+n*Math.cos(p),a=m+i*Math.sin(p),n,i,s,0,o,e,r,[p,t,f,m])}b=p-g;const v=Math.cos(g),x=Math.sin(g),w=Math.cos(p),C=Math.sin(p),P=Math.tan(b/4),E=4/3*(n*P),S=4/3*(i*P),A=[t,e],M=[t+E*x,e-S*v],O=[l+E*C,a-S*w],T=[l,a];if(M[0]=2*A[0]-M[0],M[1]=2*A[1]-M[1],h)return[M,O,T].concat(y);{y=[M,O,T].concat(y).join().split(",");const t=[],e=y.length;for(let n=0;n{const o=[];let l=e.toLowerCase();n.replace(i,((t,e)=>(e&&o.push(+e),t))),"m"===l&&o.length>2&&(r.push([e,...o.splice(0,2)]),l="l",e="m"===e?"l":"L");const a=s[l];for(;o.length>=a&&(r.push([e,...o.splice(0,a)]),a););return t})),r}(t);if(!e||!e.length)return[["M",0,0]];let n=0,i=0,s=0,r=0;const o=[];for(let l=0,a=e.length;l7){t[n].shift();const i=t[n];for(;i.length;)r[n]="A",n+=1,t.splice(n,0,["C"].concat(i.splice(0,6)));t.splice(n,1),l=e.length}}const r=[];let o="",l=e.length;for(let a=0;a0&&(o=r[a-1])),e[a]=i(e[a],n,o),"A"!==r[a]&&"C"===t&&(r[a]="C"),s(e,a);const l=e[a],h=l.length;n.x=l[h-2],n.y=l[h-1],n.bx=parseFloat(l[h-4])||n.x,n.by=parseFloat(l[h-3])||n.y}return e[0][0]&&"M"===e[0][0]||e.unshift(["M",0,0]),e}function Yn(t){return Jn(t).map((t=>t.map((t=>"string"==typeof t?t:Mn.round(t,2))))).join(",").split(",").join(" ")}!function(t){t.create=function(...e){const n=e.length,i=e[0];if($n.isCurve(i))return new t(i);if(Tn.isPointLike(i)){if(3===n)return new t(e[0],e[1],e[2]);const i=[];for(let s=0;s{0===n&&this.appendSegment(Zn.createSegment("M",t.start)),null==e||e.end.equals(t.start)||this.appendSegment(Zn.createSegment("M",t.start)),kn.isLine(t)?this.appendSegment(Zn.createSegment("L",t.end)):$n.isCurve(t)&&this.appendSegment(Zn.createSegment("C",t.controlPoint1,t.controlPoint2,t.end)),e=t}))}else t.forEach((t=>{t.isSegment&&this.appendSegment(t)}));else null!=t&&(kn.isLine(t)?(this.appendSegment(Zn.createSegment("M",t.start)),this.appendSegment(Zn.createSegment("L",t.end))):$n.isCurve(t)?(this.appendSegment(Zn.createSegment("M",t.start)),this.appendSegment(Zn.createSegment("C",t.controlPoint1,t.controlPoint2,t.end))):zn.isPolyline(t)?t.points&&t.points.length&&t.points.forEach(((t,e)=>{const n=0===e?Zn.createSegment("M",t):Zn.createSegment("L",t);this.appendSegment(n)})):t.isSegment&&this.appendSegment(t))}get start(){const t=this.segments,e=t.length;if(0===e)return null;for(let n=0;n=0;n-=1){const e=t[n];if(e.isVisible)return e.end}return t[e-1].end}moveTo(...t){return this.appendSegment(qn.create.call(null,...t))}lineTo(...t){return this.appendSegment(Gn.create.call(null,...t))}curveTo(...t){return this.appendSegment(Hn.create.call(null,...t))}arcTo(t,e,n,i,s,r,o){const l=this.end||new Tn,a="number"==typeof r?In(l.x,l.y,t,e,n,i,s,r,o):In(l.x,l.y,t,e,n,i,s,r.x,r.y);if(null!=a)for(let h=0,c=a.length;hn||t<0)throw new Error("Index out of range.");let i,s=null,r=null;if(0!==n&&(t>=1?(s=this.segments[t-1],r=s.nextSegment):(s=null,r=this.segments[0])),Array.isArray(e))for(let o=0,l=e.length;o=e||n<0)throw new Error("Index out of range.");return n}segmentAt(t,e={}){const n=this.segmentIndexAt(t,e);return n?this.getSegment(n):null}segmentAtLength(t,e={}){const n=this.segmentIndexAtLength(t,e);return n?this.getSegment(n):null}segmentIndexAt(t,e={}){if(0===this.segments.length)return null;const n=Mn.clamp(t,0,1),i=this.getOptions(e),s=this.length(i)*n;return this.segmentIndexAtLength(s,i)}segmentIndexAtLength(t,e={}){const n=this.segments.length;if(0===n)return null;let i=!0;t<0&&(i=!1,t=-t);const s=this.getPrecision(e),r=this.getSubdivisions(e);let o=0,l=null;for(let a=0;a=1)return this.end.clone();const n=this.getOptions(e),i=this.length(n)*t;return this.pointAtLength(i,n)}pointAtLength(t,e={}){if(0===this.segments.length)return null;if(0===t)return this.start.clone();let n=!0;t<0&&(n=!1,t=-t);const i=this.getPrecision(e),s=this.getSubdivisions(e);let r,o=0;for(let l=0,a=this.segments.length;l=n)return e[n-1].pointAtT(1);const s=Mn.clamp(t.value,0,1);return e[i].pointAtT(s)}divideAt(t,e={}){if(0===this.segments.length)return null;const n=Mn.clamp(t,0,1),i=this.getOptions(e),s=this.length(i)*n;return this.divideAtLength(s,i)}divideAtLength(t,e={}){if(0===this.segments.length)return null;let n=!0;t<0&&(n=!1,t=-t);const i=this.getPrecision(e),s=this.getSubdivisions(e);let r,o,l,a,h,c=0;for(let b=0,v=this.segments.length;b=n&&(i=n-1,s=1);const r=this.getPrecision(e),o=this.getSubdivisions(e);let l=0;for(let c=0;c=e)return this.segments[e-1].tangentAtT(1);const i=Mn.clamp(t.value,0,1);return this.segments[n].tangentAtT(i)}getPrecision(t={}){return null==t.precision?this.PRECISION:t.precision}getSubdivisions(t={}){if(null==t.segmentSubdivisions){const e=this.getPrecision(t);return this.getSegmentSubdivisions({precision:e})}return t.segmentSubdivisions}getOptions(t={}){return{precision:this.getPrecision(t),segmentSubdivisions:this.getSubdivisions(t)}}toPoints(t={}){const e=this.segments,n=e.length;if(0===n)return null;const i=this.getSubdivisions(t),s=[];let r=[];for(let o=0;o0?e.forEach((t=>r.push(t.start))):r.push(t.start)}else r.length>0&&(r.push(e[o-1].end),s.push(r),r=[])}return r.length>0&&(r.push(this.end),s.push(r)),s}toPolylines(t={}){const e=this.toPoints(t);return e?e.map((t=>new zn(t))):null}scale(t,e,n){return this.segments.forEach((i=>i.scale(t,e,n))),this}rotate(t,e){return this.segments.forEach((n=>n.rotate(t,e))),this}translate(t,e){return"number"==typeof t?this.segments.forEach((n=>n.translate(t,e))):this.segments.forEach((e=>e.translate(t))),this}clone(){const t=new Zn;return this.segments.forEach((e=>t.appendSegment(e.clone()))),t}equals(t){if(null==t)return!1;const e=this.segments,n=t.segments,i=e.length;if(n.length!==i)return!1;for(let s=0;st.toJSON()))}serialize(){if(!this.isValid())throw new Error("Invalid path segments.");return this.segments.map((t=>t.serialize())).join(" ")}toString(){return this.serialize()}}!function(t){t.isPath=function(e){return null!=e&&e instanceof t}}(Zn||(Zn={})),function(t){function e(t,...e){if("M"===t)return qn.create.call(null,...e);if("L"===t)return Gn.create.call(null,...e);if("C"===t)return Hn.create.call(null,...e);if("z"===t||"Z"===t)return _n.create();throw new Error(`Invalid path segment type "${t}"`)}t.parse=function(n){if(!n)return new t;const i=new t,s=t.normalize(n).match(/(?:[a-zA-Z] *)(?:(?:-?\d+(?:\.\d+)?(?:e[-+]?\d+)? *,? *)|(?:-?\.\d+ *,? *))+|(?:[a-zA-Z] *)(?! |\d|-|\.)/g);if(null!=s)for(let t=0,r=s.length;t+t)),s=e.call(null,t,...n);i.appendSegment(s)}}return i},t.createSegment=e}(Zn||(Zn={})),function(t){t.normalize=Yn,t.isValid=Bn,t.drawArc=Vn,t.drawPoints=Dn,t.arcToCurves=In}(Zn||(Zn={}));class Qn{constructor(t){this.options=Object.assign({},t),this.data=this.options.data||{},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this)}get names(){return Object.keys(this.data)}register(t,e,n=!1){if("object"==typeof t)return void Object.entries(t).forEach((([t,n])=>{this.register(t,n,e)}));!this.exist(t)||n||Nt.isApplyingHMR()||this.onDuplicated(t);const i=this.options.process,s=i?H(i,this,t,e):e;return this.data[t]=s,s}unregister(t){const e=t?this.data[t]:null;return delete this.data[t],e}get(t){return t?this.data[t]:null}exist(t){return!!t&&null!=this.data[t]}onDuplicated(t){try{throw this.options.onConflict&&H(this.options.onConflict,this,t),new Error(`${s(this.options.type)} with name '${t}' already registered.`)}catch(e){throw e}}onNotFound(t,e){throw new Error(this.getSpellingSuggestion(t,e))}getSpellingSuggestion(t,e){const n=this.getSpellingSuggestionForName(t),i=e?`${e} ${r(this.options.type)}`:this.options.type;return`${s(i)} with name '${t}' does not exist.${n?` Did you mean '${n}'?`:""}`}getSpellingSuggestionForName(t){return function(t,e,n){const i=Math.min(2,Math.floor(.34*t.length));let s,r=Math.floor(.4*t.length)+1,o=!1;const l=t.toLowerCase();for(const a of e){const e=a;if(void 0!==e&&Math.abs(e.length-l.length)<=i){const n=e.toLowerCase();if(n===l){if(e===t)continue;return a}if(o)continue;if(e.length<3)continue;const i=ct(l,n,r-1);if(void 0===i)continue;i<3?(o=!0,s=a):(r=i,s=a)}}return s}(t,Object.keys(this.data))}}!function(t){t.create=function(e){return new t(e)}}(Qn||(Qn={}));const Kn={color:"#aaaaaa",thickness:1,markup:"rect",update(t,e){const n=e.thickness*e.sx,i=e.thickness*e.sy;le(t,{width:n,height:i,rx:n,ry:i,fill:e.color})}},ti={color:"#aaaaaa",thickness:1,markup:"rect",update(t,e){const n=e.sx<=1?e.thickness*e.sx:e.thickness;le(t,{width:n,height:n,rx:n,ry:n,fill:e.color})}},ei={color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(t,e){let n;const i=e.width,s=e.height,r=e.thickness;n=i-r>=0&&s-r>=0?["M",i,0,"H0 M0 0 V0",s].join(" "):"M 0 0 0 0",le(t,{d:n,stroke:e.color,"stroke-width":e.thickness})}},ni=[{color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(t,e){let n;const i=e.width,s=e.height,r=e.thickness;n=i-r>=0&&s-r>=0?["M",i,0,"H0 M0 0 V0",s].join(" "):"M 0 0 0 0",le(t,{d:n,stroke:e.color,"stroke-width":e.thickness})}},{color:"rgba(224,224,224,0.2)",thickness:3,factor:4,markup:"path",update(t,e){let n;const i=e.factor||1,s=e.width*i,r=e.height*i,o=e.thickness;n=s-o>=0&&r-o>=0?["M",s,0,"H0 M0 0 V0",r].join(" "):"M 0 0 0 0",e.width=s,e.height=r,le(t,{d:n,stroke:e.color,"stroke-width":e.thickness})}}],ii=Object.freeze(Object.defineProperty({__proto__:null,dot:Kn,doubleMesh:ni,fixedDot:ti,mesh:ei},Symbol.toStringTag,{value:"Module"}));class si{constructor(){this.patterns={},this.root=Me.create(Ut(),{width:"100%",height:"100%"},[Ht("defs")]).node}add(t,e){const n=this.root.childNodes[0];n&&n.appendChild(e),this.patterns[t]=e,Me.create("rect",{width:"100%",height:"100%",fill:`url(#${t})`}).appendTo(this.root)}get(t){return this.patterns[t]}has(t){return null!=this.patterns[t]}}!function(t){t.presets=ii,t.registry=Qn.create({type:"grid"}),t.registry.register(t.presets,!0)}(si||(si={}));const ri=function(t){const e=document.createElement("canvas"),n=t.width,i=t.height;e.width=2*n,e.height=i;const s=e.getContext("2d");return s.drawImage(t,0,0,n,i),s.translate(2*n,0),s.scale(-1,1),s.drawImage(t,0,0,n,i),e},oi=function(t){const e=document.createElement("canvas"),n=t.width,i=t.height;e.width=n,e.height=2*i;const s=e.getContext("2d");return s.drawImage(t,0,0,n,i),s.translate(0,2*i),s.scale(1,-1),s.drawImage(t,0,0,n,i),e},li=function(t){const e=document.createElement("canvas"),n=t.width,i=t.height;e.width=2*n,e.height=2*i;const s=e.getContext("2d");return s.drawImage(t,0,0,n,i),s.setTransform(-1,0,0,-1,e.width,e.height),s.drawImage(t,0,0,n,i),s.setTransform(-1,0,0,1,e.width,0),s.drawImage(t,0,0,n,i),s.setTransform(1,0,0,-1,0,e.height),s.drawImage(t,0,0,n,i),e},ai=Object.freeze(Object.defineProperty({__proto__:null,flipX:ri,flipXY:li,flipY:oi,watermark:function(t,e){const n=t.width,i=t.height,s=document.createElement("canvas");s.width=3*n,s.height=3*i;const r=s.getContext("2d"),o=null!=e.angle?-e.angle:-20,l=An.toRad(o),a=s.width/4,h=s.height/4;for(let c=0;c<4;c+=1)for(let e=0;e<4;e+=1)(c+e)%2>0&&(r.setTransform(1,0,0,1,(2*c-1)*a,(2*e-1)*h),r.rotate(l),r.drawImage(t,-n/2,-i/2,n,i));return s}},Symbol.toStringTag,{value:"Module"}));var hi;function ci(t,e){return null!=t?t:e}function ui(t,e){return null!=t&&Number.isFinite(t)?t:e}!function(t){t.presets=Object.assign({},ai),t.presets["flip-x"]=ri,t.presets["flip-y"]=oi,t.presets["flip-xy"]=li,t.registry=Qn.create({type:"background pattern"}),t.registry.register(t.presets,!0)}(hi||(hi={}));const di=Object.freeze(Object.defineProperty({__proto__:null,blur:function(t={}){const e=ui(t.x,2);return`\n \n \n \n `.trim()},brightness:function(t={}){const e=ui(t.amount,1);return`\n \n \n \n \n \n \n \n `.trim()},contrast:function(t={}){const e=ui(t.amount,1),n=.5-e/2;return`\n \n \n \n \n \n \n \n `.trim()},dropShadow:function(t={}){const e=ui(t.dx,0),n=ui(t.dy,0),i=ci(t.color,"black"),s=ui(t.blur,4),r=ui(t.opacity,1);return"SVGFEDropShadowElement"in window?`\n \n `.trim():`\n \n \n \n \n \n \n \n \n \n \n \n `.trim()},grayScale:function(t={}){const e=ui(t.amount,1),n=.7152-.7152*(1-e);return`\n \n \n \n `.trim()},highlight:function(t={}){const e=ci(t.color,"red"),n=ui(t.blur,0),i=ui(t.width,1);return`\n \n \n \n \n \n \n \n `.trim()},hueRotate:function(t={}){return`\n \n \n \n `.trim()},invert:function(t={}){const e=ui(t.amount,1),n=1-e;return`\n \n \n \n \n \n \n \n `.trim()},outline:function(t={}){const e=ci(t.color,"blue"),n=ui(t.width,1),i=ui(t.margin,2);return`\n \n \n \n \n \n \n \n \n \n \n \n `.trim()},saturate:function(t={}){return`\n \n \n \n `.trim()},sepia:function(t={}){const e=ui(t.amount,1);return`\n \n \n \n `.trim()}},Symbol.toStringTag,{value:"Module"}));var gi;!function(t){t.presets=di,t.registry=Qn.create({type:"filter"}),t.registry.register(t.presets,!0)}(gi||(gi={}));const pi={xlinkHref:"xlink:href",xlinkShow:"xlink:show",xlinkRole:"xlink:role",xlinkType:"xlink:type",xlinkArcrole:"xlink:arcrole",xlinkTitle:"xlink:title",xlinkActuate:"xlink:actuate",xmlSpace:"xml:space",xmlBase:"xml:base",xmlLang:"xml:lang",preserveAspectRatio:"preserveAspectRatio",requiredExtension:"requiredExtension",requiredFeatures:"requiredFeatures",systemLanguage:"systemLanguage",externalResourcesRequired:"externalResourceRequired"},fi={position:Vi("x","width","origin")},mi={position:Vi("y","height","origin")},yi={position:Vi("x","width","corner")},bi={position:Vi("y","height","corner")},vi={set:zi("width","width")},xi={set:zi("height","height")},wi={set:zi("rx","width")},Ci={set:zi("ry","height")},Pi={set:(t=>{const e=zi("r","width"),n=zi("r","height");return function(t,i){const s=i.refBBox;return H(s.height>s.width?e:n,this,t,i)}})()},Ei={set(t,{refBBox:e}){let n=parseFloat(t);const i=ut(t);i&&(n/=100);const s=Math.sqrt(e.height*e.height+e.width*e.width);let r;return Number.isFinite(n)&&(r=i||n>=0&&n<=1?n*s:Math.max(n+s,0)),{r:r}}},Si={set:zi("cx","width")},Ai={set:zi("cy","height")},Mi={set:Fi({resetOffset:!0})},Oi={set:Fi({resetOffset:!1})},Ti={set:Gi({resetOffset:!0})},Ni={set:Gi({resetOffset:!1})},ki=Pi,ji=Mi,Li=Ti,Bi=fi,Ri=mi,Di=vi,Ii=xi;function Vi(t,e,n){return(i,{refBBox:s})=>{if(null==i)return null;let r=parseFloat(i);const o=ut(i);let l;if(o&&(r/=100),Number.isFinite(r)){const i=s[n];l=o||r>0&&r<1?i[t]+s[e]*r:i[t]+r}const a=new Tn;return a[t]=l||0,a}}function zi(t,e){return function(n,{refBBox:i}){let s=parseFloat(n);const r=ut(n);r&&(s/=100);const o={};if(Number.isFinite(s)){const n=r||s>=0&&s<=1?s*i[e]:Math.max(s+i[e],0);o[t]=n}return o}}function $i(t,e){const n="x6-shape",i=e&&e.resetOffset;return function(e,{elem:s,refBBox:r}){let o=Ae(s,n);if(!o||o.value!==e){const i=t(e);o={value:e,shape:i,shapeBBox:i.bbox()},Ae(s,n,o)}const l=o.shape.clone(),a=o.shapeBBox.clone(),h=a.getOrigin(),c=r.getOrigin();a.x=c.x,a.y=c.y;const u=r.getMaxScaleToFit(a,c),d=0===a.width||0===r.width?1:u.sx,g=0===a.height||0===r.height?1:u.sy;return l.scale(d,g,h),i&&l.translate(-h.x,-h.y),l}}function Fi(t){const e=$i((function(t){return Zn.parse(t)}),t);return(t,n)=>({d:e(t,n).serialize()})}function Gi(t){const e=$i((t=>new zn(t)),t);return(t,n)=>({points:e(t,n).serialize()})}const _i={qualify:o,set:(t,{view:e})=>`url(#${e.graph.defineGradient(t)})`},qi={qualify:o,set(t,{view:e}){const n=e.cell,i=Object.assign({},t);if(n.isEdge()&&"linearGradient"===i.type){const t=e,s=t.sourcePoint,r=t.targetPoint;i.id=`gradient-${i.type}-${n.id}`,i.attrs=Object.assign(Object.assign({},i.attrs),{x1:s.x,y1:s.y,x2:r.x,y2:r.y,gradientUnits:"userSpaceOnUse"}),e.graph.defs.remove(i.id)}return`url(#${e.graph.defineGradient(i)})`}},Hi={qualify:(t,{attrs:e})=>null==e.textWrap||!o(e.textWrap),set(t,{view:e,elem:n,attrs:i}){const s="x6-text",r=Ae(n,s),o=t=>{try{return JSON.parse(t)}catch(e){return t}},l={x:i.x,eol:i.eol,annotations:o(i.annotations),textPath:o(i["text-path"]||i.textPath),textVerticalAnchor:i["text-vertical-anchor"]||i.textVerticalAnchor,displayEmpty:"true"===(i["display-empty"]||i.displayEmpty),lineHeight:i["line-height"]||i.lineHeight},a=i["font-size"]||i.fontSize,h=JSON.stringify([t,l]);if(a&&n.setAttribute("font-size",a),null==r||r!==h){const i=l.textPath;if(null!=i&&"object"==typeof i){const t=i.selector;if("string"==typeof t){const n=e.find(t)[0];n instanceof SVGPathElement&&($t(n),l.textPath=Object.assign({"xlink:href":`#${n.id}`},i))}}je(n,`${t}`,l),Ae(n,s,h)}}},Ui={qualify:o,set(t,{view:e,elem:n,attrs:i,refBBox:s}){const r=t,o=r.width||0;ut(o)?s.width*=parseFloat(o)/100:o<=0?s.width+=o:s.width=o;const l=r.height||0;let a;ut(l)?s.height*=parseFloat(l)/100:l<=0?s.height+=l:s.height=l;let h=r.text;null==h&&(h=i.text),a=null!=h?function(t,e,n={},i={}){const s=e.width,r=e.height,o=i.eol||"\n",{width:l}=Le(t,n);if(ls)){a.push(d);break}if(m===u-1){const[t]=Be(d,s-f,g,n);a.push(p?`${t}${p}`:t)}else{const[t,e]=Be(d,s,g,n);a.push(t),d=e,g=Le(d,n).width}}return a.join(o)}(`${h}`,s,{"font-weight":i["font-weight"]||i.fontWeight,"font-size":i["font-size"]||i.fontSize,"font-family":i["font-family"]||i.fontFamily,lineHeight:i.lineHeight},{ellipsis:r.ellipsis}):"",H(Hi.set,this,a,{view:e,elem:n,attrs:i,refBBox:s,cell:e.cell})}},Wi=(t,{attrs:e})=>void 0!==e.text,Xi={qualify:Wi},Ji={qualify:Wi},Yi={qualify:Wi},Zi={qualify:Wi},Qi={qualify:Wi},Ki={qualify:Wi},ts={qualify:(t,{elem:e})=>e instanceof SVGElement,set(t,{elem:e}){const n="x6-title",i=`${t}`,s=Ae(e,n);if(null==s||s!==i){Ae(e,n,i);const t=e.firstChild;if(t&&"TITLE"===t.tagName.toUpperCase())t.textContent=i;else{const n=document.createElementNS(e.namespaceURI,"title");n.textContent=i,e.insertBefore(n,t)}}}},es={offset:is("x","width","right")},ns={offset:is("y","height","bottom")};function is(t,e,n){return(i,{refBBox:s})=>{const r=new Tn;let o;return o="middle"===i?s[e]/2:i===n?s[e]:"number"==typeof i&&Number.isFinite(i)?i>-1&&i<1?-s[e]*i:-i:ut(i)?s[e]*parseFloat(i)/100:0,r[t]=-(s[t]+o),r}}const ss={qualify:o,set(t,{elem:e}){Pe(e,t)}},rs={set(t,{elem:e}){e.innerHTML=`${t}`}},os={qualify:o,set:(t,{view:e})=>`url(#${e.graph.defineFilter(t)})`};function ls(t,e,n){let i,s;"object"==typeof e?(i=e.x,s=e.y):(i=e,s=n);const r=Zn.parse(t),o=r.bbox();if(o){let t=-o.height/2-o.y,e=-o.width/2-o.x;"number"==typeof i&&(e-=i),"number"==typeof s&&(t-=s),r.translate(e,t)}return r.serialize()}var as=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s{var{r:e}=t,n=ps(t,["r"]);const i=e||5;return Object.assign(Object.assign({cx:i},n),{tagName:"circle",r:i})};var ms=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s{var{width:e,height:n,offset:i,open:s,flip:r}=t,o=gs(t,["width","height","offset","open","flip"]);let l=n||6;const a=e||10,h=!0===s,c=!0===r,u=Object.assign(Object.assign({},o),{tagName:"path"});c&&(l=-l);const d=new Zn;return d.moveTo(0,l).lineTo(a,0),h?u.fill="none":(d.lineTo(a,l),d.close()),u.d=ls(d.serialize(),{x:i||-a/2,y:l/2}),u},block:t=>{var{size:e,width:n,height:i,offset:s,open:r}=t;return hs({size:e,width:n,height:i,offset:s},!0===r,!0,void 0,as(t,["size","width","height","offset","open"]))},circle:fs,circlePlus:t=>{var{r:e}=t,n=ps(t,["r"]);const i=e||5,s=new Zn;return s.moveTo(i,0).lineTo(i,2*i),s.moveTo(0,i).lineTo(2*i,i),{children:[Object.assign(Object.assign({},fs({r:i})),{fill:"none"}),Object.assign(Object.assign({},n),{tagName:"path",d:ls(s.serialize(),-i)})]}},classic:t=>{var{size:e,width:n,height:i,offset:s,factor:r}=t;return hs({size:e,width:n,height:i,offset:s},!1,!1,r,as(t,["size","width","height","offset","factor"]))},cross:t=>{var{size:e,width:n,height:i,offset:s}=t,r=ds(t,["size","width","height","offset"]);const o=e||10,l=n||o,a=i||o,h=new Zn;return h.moveTo(0,0).lineTo(l,a).moveTo(0,a).lineTo(l,0),Object.assign(Object.assign({},r),{tagName:"path",fill:"none",d:ls(h.serialize(),s||-l/2)})},diamond:t=>{var{size:e,width:n,height:i,offset:s}=t,r=cs(t,["size","width","height","offset"]);const o=e||10,l=n||o,a=i||o,h=new Zn;return h.moveTo(0,a/2).lineTo(l/2,0).lineTo(l,a/2).lineTo(l/2,a).close(),Object.assign(Object.assign({},r),{tagName:"path",d:ls(h.serialize(),null==s?-l/2:s)})},ellipse:t=>{var{rx:e,ry:n}=t,i=ms(t,["rx","ry"]);const s=e||5,r=n||5;return Object.assign(Object.assign({cx:s},i),{tagName:"ellipse",rx:s,ry:r})},path:t=>{var{d:e,offsetX:n,offsetY:i}=t,s=us(t,["d","offsetX","offsetY"]);return Object.assign(Object.assign({},s),{tagName:"path",d:ls(e,n,i)})}},Symbol.toStringTag,{value:"Module"}));var bs;!function(t){t.presets=ys,t.registry=Qn.create({type:"marker"}),t.registry.register(t.presets,!0)}(bs||(bs={})),(bs||(bs={})).normalize=ls;var vs=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);sEs("marker-start",t,e,n)},Cs={qualify:xs,set:(t,{view:e,attrs:n})=>Es("marker-end",t,e,n,{transform:"rotate(180)"})},Ps={qualify:xs,set:(t,{view:e,attrs:n})=>Es("marker-mid",t,e,n)};function Es(t,e,n,i,s={}){const r="string"==typeof e?{name:e}:e,{name:o,args:l}=r,a=vs(r,["name","args"]);let h=a;if(o&&"string"==typeof o){const t=bs.registry.get(o);if(!t)return bs.registry.onNotFound(o);h=t(Object.assign(Object.assign({},a),l))}const c=Object.assign(Object.assign(Object.assign({},function(t,e){const n={},i=t.stroke;"string"==typeof i&&(n.stroke=i,n.fill=i);let s=t.strokeOpacity;if(null==s&&(s=t["stroke-opacity"]),null==s&&(s=t.opacity),null!=s&&(n["stroke-opacity"]=s,n["fill-opacity"]=s),"marker-mid"!==e){const i=parseFloat(t.strokeWidth||t["stroke-width"]);if(Number.isFinite(i)&&i>1){const t=Math.ceil(i/2);n.refX="marker-start"===e?t:-t}}return n}(i,t)),s),h);return{[t]:`url(#${n.graph.defineMarker(c)})`}}const Ss=(t,{view:e})=>e.cell.isEdge(),As={qualify:Ss,set(t,e){var n,i,s,r;const o=e.view,l=t.reverse||!1,a=t.stubs||0;let h;if(Number.isFinite(a)&&0!==a)if(l){let t,e;const l=o.getConnectionLength()||0;a<0?(t=(l+a)/2,e=-a):(t=a,e=l-2*a);const c=o.getConnection();h=null===(r=null===(s=null===(i=null===(n=null==c?void 0:c.divideAtLength(t))||void 0===n?void 0:n[1])||void 0===i?void 0:i.divideAtLength(e))||void 0===s?void 0:s[0])||void 0===r?void 0:r.serialize()}else{let t;t=a<0?((o.getConnectionLength()||0)+a)/2:a;const e=o.getConnection();if(e){const n=e.divideAtLength(t),i=e.divideAtLength(-t);n&&i&&(h=`${n[0].serialize()} ${i[1].serialize()}`)}}return{d:h||o.getConnectionPathData()}}},Ms={qualify:Ss,set:Ls("getTangentAtLength",{rotate:!0})},Os={qualify:Ss,set:Ls("getTangentAtLength",{rotate:!1})},Ts={qualify:Ss,set:Ls("getTangentAtRatio",{rotate:!0})},Ns={qualify:Ss,set:Ls("getTangentAtRatio",{rotate:!1})},ks=Ms,js=Ts;function Ls(t,e){const n={x:1,y:0};return(i,s)=>{let r,o;const l=s.view,a=l[t](Number(i));return a?(o=e.rotate?a.vector().vectorAngle(n):0,r=a.start):(r=l.path.start,o=0),0===o?{transform:`translate(${r.x},${r.y}')`}:{transform:`translate(${r.x},${r.y}') rotate(${o})`}}}const Bs=Object.freeze(Object.defineProperty({__proto__:null,annotations:Zi,atConnectionLength:ks,atConnectionLengthIgnoreGradient:Os,atConnectionLengthKeepGradient:Ms,atConnectionRatio:js,atConnectionRatioIgnoreGradient:Ns,atConnectionRatioKeepGradient:Ts,connection:As,displayEmpty:Ki,eol:Qi,fill:_i,filter:os,html:rs,lineHeight:Xi,port:{set:t=>null!=t&&"object"==typeof t&&t.id?t.id:t},ref:{},refCx:Si,refCy:Ai,refD:ji,refDKeepOffset:Oi,refDResetOffset:Mi,refDx:yi,refDy:bi,refHeight:xi,refHeight2:Ii,refPoints:Li,refPointsKeepOffset:Ni,refPointsResetOffset:Ti,refR:ki,refRCircumscribed:Ei,refRInscribed:Pi,refRx:wi,refRy:Ci,refWidth:vi,refWidth2:Di,refX:fi,refX2:Bi,refY:mi,refY2:Ri,resetOffset:{offset:(t,{refBBox:e})=>t?{x:-e.x,y:-e.y}:{x:0,y:0}},sourceMarker:ws,stroke:qi,style:ss,targetMarker:Cs,text:Hi,textPath:Yi,textVerticalAnchor:Ji,textWrap:Ui,title:ts,vertexMarker:Ps,xAlign:es,yAlign:ns},Symbol.toStringTag,{value:"Module"}));var Rs;(Rs||(Rs={})).isValidDefinition=function(t,e,n){if(null!=t){if("string"==typeof t)return!0;if("function"!=typeof t.qualify||H(t.qualify,this,e,n))return!0}return!1},function(t){t.presets=Object.assign(Object.assign({},pi),Bs),t.registry=Qn.create({type:"attribute definition"}),t.registry.register(t.presets,!0)}(Rs||(Rs={}));const Ds={prefixCls:"x6",autoInsertCSS:!0,useCSSSelector:!0,prefix:t=>`${Ds.prefixCls}-${t}`},Is=Ds.prefix("highlighted"),Vs={highlight(t,e,n){Dt(e,n&&n.className||Is)},unhighlight(t,e,n){It(e,n&&n.className||Is)}},zs=Ds.prefix("highlight-opacity"),$s={highlight(t,e){Dt(e,zs)},unhighlight(t,e){It(e,zs)}};var Fs;!function(t){const e=Ht("svg");function n(t,e){const n=function(t,e){const n=Fe.createSVGPoint();return n.x=t,n.y=e,n}(t.x,t.y).matrixTransform(e);return new Tn(n.x,n.y)}function i(t,n){const i=e.createSVGPoint();i.x=t.x,i.y=t.y;const s=i.matrixTransform(n);i.x=t.x+t.width,i.y=t.y;const r=i.matrixTransform(n);i.x=t.x+t.width,i.y=t.y+t.height;const o=i.matrixTransform(n);i.x=t.x,i.y=t.y+t.height;const l=i.matrixTransform(n),a=Math.min(s.x,r.x,o.x,l.x),h=Math.max(s.x,r.x,o.x,l.x),c=Math.min(s.y,r.y,o.y,l.y),u=Math.max(s.y,r.y,o.y,l.y);return new Nn(a,c,h-a,u-c)}function s(t,e={}){let n;if(!t.ownerSVGElement||!Ft(t)){if(ne(t)){const{left:e,top:n,width:i,height:s}=r(t);return new Nn(e,n,i,s)}return new Nn(0,0,0,0)}let o=e.target;if(!e.recursive){try{n=t.getBBox()}catch(l){n={x:t.clientLeft,y:t.clientTop,width:t.clientWidth,height:t.clientHeight}}return o?i(n,en(t,o)):Nn.create(n)}{const e=t.childNodes,i=e.length;if(0===i)return s(t,{target:o});o||(o=t);for(let t=0;t{const n=t.getAttribute(e),i=n?parseFloat(n):0;return Number.isNaN(i)?0:i};switch(t instanceof SVGElement&&t.nodeName.toLowerCase()){case"rect":return new Nn(e("x"),e("y"),e("width"),e("height"));case"circle":return new jn(e("cx"),e("cy"),e("r"),e("r"));case"ellipse":return new jn(e("cx"),e("cy"),e("rx"),e("ry"));case"polyline":{const e=Ve(t);return new zn(e)}case"polygon":{const e=Ve(t);return e.length>1&&e.push(e[0]),new zn(e)}case"path":{let e=t.getAttribute("d");return Zn.isValid(e)||(e=Zn.normalize(e)),Zn.parse(e)}case"line":return new kn(e("x1"),e("y1"),e("x2"),e("y2"))}return s(t)}function l(t){if(null==t)return null;let e=t;do{let t=e.tagName;if("string"!=typeof t)return null;if(t=t.toUpperCase(),Rt(e,"x6-port"))e=e.nextElementSibling;else if("G"===t)e=e.firstElementChild;else{if("TITLE"!==t)break;e=e.nextElementSibling}}while(e);return e}t.transformPoint=n,t.transformLine=function(t,e){return new kn(n(t.start,e),n(t.end,e))},t.transformPolyline=function(t,e){let i=t instanceof zn?t.points:t;return Array.isArray(i)||(i=[]),new zn(i.map((t=>n(t,e))))},t.transformRectangle=i,t.bbox=function(t,e,n){let s;const r=t.ownerSVGElement;if(!r)return new Nn(0,0,0,0);try{s=t.getBBox()}catch(o){s={x:t.clientLeft,y:t.clientTop,width:t.clientWidth,height:t.clientHeight}}return e?Nn.create(s):i(s,en(t,n||r))},t.getBBox=s,t.getBoundingOffsetRect=r,t.toGeometryShape=o,t.translateAndAutoOrient=function(t,e,n,i){const r=Tn.create(e),o=Tn.create(n);i||(i=t instanceof SVGSVGElement?t:t.ownerSVGElement);const l=tn(t);t.setAttribute("transform","");const a=s(t,{target:i}).scale(l.sx,l.sy),h=Ue();h.setTranslate(-a.x-a.width/2,-a.y-a.height/2);const c=Ue(),u=r.angleBetween(o,r.clone().translate(1,0));u&&c.setRotate(u,0,0);const d=Ue(),g=r.clone().move(o,a.width/2);d.setTranslate(2*r.x-g.x,2*r.y-g.y);const p=en(t,i),f=Ue();f.setMatrix(d.matrix.multiply(c.matrix.multiply(h.matrix.multiply(p.scale(l.sx,l.sy))))),t.setAttribute("transform",Xe(f.matrix))},t.findShapeNode=l,t.getBBoxV2=function(t){const e=l(t);if(!Ft(e)){if(ne(t)){const{left:e,top:n,width:i,height:s}=r(t);return new Nn(e,n,i,s)}return new Nn(0,0,0,0)}return o(e).bbox()||Nn.create()}}(Fs||(Fs={}));const Gs={padding:3,rx:0,ry:0,attrs:{"stroke-width":3,stroke:"#FEB663"}},_s={highlight(t,e,n){const i=qs.getHighlighterId(e,n);if(qs.hasCache(i))return;n=l({},n,Gs);const s=Me.create(e);let r,o;try{r=s.toPathData()}catch(u){o=Fs.bbox(s.node,!0),r=ze(Object.assign(Object.assign({},n),o))}const a=Ht("path");if(le(a,Object.assign({d:r,"pointer-events":"none","vector-effect":"non-scaling-stroke",fill:"none"},n.attrs?he(n.attrs):null)),t.isEdgeElement(e))le(a,"d",t.getConnectionPathData());else{let e=s.getTransformToElement(t.container);const i=n.padding;if(i){null==o&&(o=Fs.bbox(s.node,!0));const t=o.x+o.width/2,n=o.y+o.height/2;o=Fs.transformRectangle(o,e);const r=Math.max(o.width,1),l=Math.max(o.height,1),a=(r+i)/r,h=(l+i)/l,c=He({a:a,b:0,c:0,d:h,e:t-a*t,f:n-h*n});e=e.multiply(c)}Ze(a,e)}Dt(a,Ds.prefix("highlight-stroke"));const h=t.cell,c=()=>qs.removeHighlighter(i);h.on("removed",c),h.model&&h.model.on("reseted",c),t.container.appendChild(a),qs.setCache(i,a)},unhighlight(t,e,n){qs.removeHighlighter(qs.getHighlighterId(e,n))}};var qs;!function(t){t.getHighlighterId=function(t,e){return $t(t),t.id+JSON.stringify(e)};const e={};t.setCache=function(t,n){e[t]=n},t.hasCache=function(t){return null!=e[t]},t.removeHighlighter=function(t){const n=e[t];n&&(Yt(n),delete e[t])}}(qs||(qs={}));const Hs=Object.freeze(Object.defineProperty({__proto__:null,className:Vs,opacity:$s,stroke:_s},Symbol.toStringTag,{value:"Module"}));var Us;function Ws(t,e={}){return new Tn(dt(e.x,t.width),dt(e.y,t.height))}function Xs(t,e,n){return Object.assign({angle:e,position:t.toJSON()},n)}function Js(t,e,n,i){const s=e.getCenter(),r=e.getTopCenter(),o=e.width/e.height,l=jn.fromRect(e),a=t.length;return t.map(((t,e)=>{const h=n+i(e,a),c=r.clone().rotate(-h,s).scale(o,1,s),u=t.compensateRotate?-l.tangentTheta(c):0;return(t.dx||t.dy)&&c.translate(t.dx||0,t.dy||0),t.dr&&c.move(s,t.dr),Xs(c.round(),u,t)}))}(Us||(Us={})).check=function(t,e){if("function"!=typeof e.highlight)throw new Error(`Highlighter '${t}' is missing required \`highlight()\` method`);if("function"!=typeof e.unhighlight)throw new Error(`Highlighter '${t}' is missing required \`unhighlight()\` method`)},function(t){t.presets=Hs,t.registry=Qn.create({type:"highlighter"}),t.registry.register(t.presets,!0)}(Us||(Us={}));var Ys=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s{var{strict:n}=t,o=Ys(t,["strict"]);const l=n||i.strict?(e+1)/(r+1):(e+.5)/r,a=s.pointAt(l);return(o.dx||o.dy)&&a.translate(o.dx||0,o.dy||0),Xs(a.round(),0,o)}))}const Qs=Object.freeze(Object.defineProperty({__proto__:null,absolute:(t,e)=>t.map((({x:t,y:n,angle:i})=>Xs(Ws(e,{x:t,y:n}),i||0))),bottom:(t,e,n)=>Zs(t,e.getBottomLeft(),e.getBottomRight(),n),ellipse:(t,e,n)=>{const i=n.start||0,s=n.step||20;return Js(t,e,i,((t,e)=>(t+.5-e/2)*s))},ellipseSpread:(t,e,n)=>{const i=n.start||0,s=n.step||360/t.length;return Js(t,e,i,(t=>t*s))},left:(t,e,n)=>Zs(t,e.getTopLeft(),e.getBottomLeft(),n),line:(t,e,n)=>Zs(t,Ws(e,n.start||e.getOrigin()),Ws(e,n.end||e.getCorner()),n),right:(t,e,n)=>Zs(t,e.getTopRight(),e.getBottomRight(),n),top:(t,e,n)=>Zs(t,e.getTopLeft(),e.getTopRight(),n)},Symbol.toStringTag,{value:"Module"}));var Ks;!function(t){t.presets=Qs,t.registry=Qn.create({type:"port layout"}),t.registry.register(t.presets,!0)}(Ks||(Ks={}));const tr={position:{x:0,y:0},angle:0,attrs:{".":{y:"0","text-anchor":"start"}}};function er(t,e){const{x:n,y:i,angle:s,attrs:r}=e||{};return l({},{angle:s,attrs:r,position:{x:n,y:i}},t,tr)}function nr(t,e,n,i){const s=null!=i.offset?i.offset:15,r=e.getCenter().theta(t),o=sr(e);let l,a,h,c,u=0;return ro[2]?(l=".3em",a=s,h=0,c="start"):ro[2]?(l=".3em",a=-s,h=0,c="end"):r-270&&r<-90?(o="start",a=r-180):o="end",er({position:t.clone().move(s,i).diff(t).round().round().toJSON(),angle:e?a:0,attrs:{".":{y:l,"text-anchor":o}}},n)}const or=Object.freeze(Object.defineProperty({__proto__:null,bottom:(t,e,n)=>er({position:{x:0,y:15},attrs:{".":{y:".6em","text-anchor":"middle"}}},n),inside:(t,e,n)=>ir(t,e,!1,n),insideOriented:(t,e,n)=>ir(t,e,!0,n),left:(t,e,n)=>er({position:{x:-15,y:0},attrs:{".":{y:".3em","text-anchor":"end"}}},n),manual:(t,e,n)=>er({position:e.getTopLeft()},n),outside:(t,e,n)=>nr(t,e,!1,n),outsideOriented:(t,e,n)=>nr(t,e,!0,n),radial:(t,e,n)=>rr(t.diff(e.getCenter()),!1,n),radialOriented:(t,e,n)=>rr(t.diff(e.getCenter()),!0,n),right:(t,e,n)=>er({position:{x:15,y:0},attrs:{".":{y:".3em","text-anchor":"start"}}},n),top:(t,e,n)=>er({position:{x:0,y:-15},attrs:{".":{"text-anchor":"middle"}}},n)},Symbol.toStringTag,{value:"Module"}));var lr,ar,hr;!function(t){t.presets=or,t.registry=Qn.create({type:"port label layout"}),t.registry.register(t.presets,!0)}(lr||(lr={}));class cr extends st{get priority(){return 2}constructor(){super(),this.cid=ar.uniqueId(),cr.views[this.cid]=this}confirmUpdate(t,e){return 0}empty(t=this.container){return Zt(t),this}unmount(t=this.container){return Yt(t),this}remove(t=this.container){return t===this.container&&(this.removeEventListeners(document),this.onRemove(),delete cr.views[this.cid]),this.unmount(t),this}onRemove(){}setClass(t,e=this.container){e.classList.value=Array.isArray(t)?t.join(" "):t}addClass(t,e=this.container){return Dt(e,Array.isArray(t)?t.join(" "):t),this}removeClass(t,e=this.container){return It(e,Array.isArray(t)?t.join(" "):t),this}setStyle(t,e=this.container){return Pe(e,t),this}setAttrs(t,e=this.container){return null!=t&&null!=e&&le(e,t),this}findAttr(t,e=this.container){let n=e;for(;n&&1===n.nodeType;){const e=n.getAttribute(t);if(null!=e)return e;if(n===this.container)return null;n=n.parentNode}return null}find(t,e=this.container,n=this.selectors){return cr.find(t,e,n).elems}findOne(t,e=this.container,n=this.selectors){const i=this.find(t,e,n);return i.length>0?i[0]:null}findByAttr(t,e=this.container){let n=e;for(;n&&n.getAttribute;){const e=n.getAttribute(t);if((null!=e||n===this.container)&&"false"!==e)return n;n=n.parentNode}return null}getSelector(t,e){let n;if(t===this.container)return"string"==typeof e&&(n=`> ${e}`),n;if(t){const i=Wt(t)+1;n=`${t.tagName.toLowerCase()}:nth-child(${i})`,e&&(n+=` > ${e}`),n=this.getSelector(t.parentNode,n)}return n}prefixClassName(t){return Ds.prefix(t)}delegateEvents(t,e){if(null==t)return this;e||this.undelegateEvents();const n=/^(\S+)\s*(.*)$/;return Object.keys(t).forEach((e=>{const i=e.match(n);if(null==i)return;const s=this.getEventHandler(t[e]);"function"==typeof s&&this.delegateEvent(i[1],i[2],s)})),this}undelegateEvents(){return an.off(this.container,this.getEventNamespace()),this}delegateDocumentEvents(t,e){return this.addEventListeners(document,t,e),this}undelegateDocumentEvents(){return this.removeEventListeners(document),this}delegateEvent(t,e,n){return an.on(this.container,t+this.getEventNamespace(),e,n),this}undelegateEvent(t,e,n){const i=t+this.getEventNamespace();return null==e?an.off(this.container,i):"string"==typeof e?an.off(this.container,i,e,n):an.off(this.container,i,e),this}addEventListeners(t,e,n){if(null==e)return this;const i=this.getEventNamespace();return Object.keys(e).forEach((s=>{const r=this.getEventHandler(e[s]);"function"==typeof r&&an.on(t,s+i,n,r)})),this}removeEventListeners(t){return null!=t&&an.off(t,this.getEventNamespace()),this}getEventNamespace(){return`.${Ds.prefixCls}-event-${this.cid}`}getEventHandler(t){let e;if("string"==typeof t){const n=this[t];"function"==typeof n&&(e=(...t)=>n.call(this,...t))}else e=(...e)=>t.call(this,...e);return e}getEventTarget(t,e={}){const{target:n,type:i,clientX:s=0,clientY:r=0}=t;return e.fromPoint||"touchmove"===i||"touchend"===i?document.elementFromPoint(s,r):n}stopPropagation(t){return this.setEventData(t,{propagationStopped:!0}),this}isPropagationStopped(t){return!0===this.getEventData(t).propagationStopped}getEventData(t){return this.eventData(t)}setEventData(t,e){return this.eventData(t,e)}eventData(t,e){if(null==t)throw new TypeError("Event object required");let n=t.data;const i=`__${this.cid}__`;return null==e?null==n?{}:n[i]||{}:(null==n&&(n=t.data={}),null==n[i]?n[i]=Object.assign({},e):n[i]=Object.assign(Object.assign({},n[i]),e),n[i])}normalizeEvent(t){return cr.normalizeEvent(t)}}!function(t){t.createElement=function(t,e){return e?Ht(t||"g"):qt(t||"div")},t.find=function(t,e,n){if(!t||"."===t)return{elems:[e]};if(n){const e=n[t];if(e)return{elems:Array.isArray(e)?e:[e]}}{const n=t.includes(">")?`:scope ${t}`:t;return{isCSSSelector:!0,elems:Array.prototype.slice.call(e.querySelectorAll(n))}}},t.normalizeEvent=function(t){let e=t;const n=t.originalEvent,i=n&&n.changedTouches&&n.changedTouches[0];if(i){for(const e in t)void 0===i[e]&&(i[e]=t[e]);e=i}const s=e.target;if(s){const t=s.correspondingUseElement;t&&(e.target=t)}return e}}(cr||(cr={})),function(t){t.views={},t.getView=function(e){return t.views[e]||null}}(cr||(cr={})),function(t){let e=0;t.uniqueId=function(){const t=`v${e}`;return e+=1,t}}(ar||(ar={}));class ur{constructor(t){this.view=t,this.clean()}clean(){this.elemCache&&this.elemCache.dispose(),this.elemCache=new Cn,this.pathCache={}}get(t){return this.elemCache.has(t)||this.elemCache.set(t,{}),this.elemCache.get(t)}getData(t){const e=this.get(t);return e.data||(e.data={}),e.data}getMatrix(t){const e=this.get(t);if(null==e.matrix){const n=this.view.container;e.matrix=function(t,e){let n=He();if(Ft(e)&&Ft(t)){let i=t;const s=[];for(;i&&i!==e;){const t=We(i.getAttribute("transform")||null);s.push(t),i=i.parentNode}s.reverse().forEach((t=>{n=n.multiply(t)}))}return n}(t,n)}return He(e.matrix)}getShape(t){const e=this.get(t);return null==e.shape&&(e.shape=Fs.toGeometryShape(t)),e.shape.clone()}getBoundingRect(t){const e=this.get(t);return null==e.boundingRect&&(e.boundingRect=Fs.getBBoxV2(t)),e.boundingRect.clone()}}!function(t){function e(t){return null!=t&&"string"==typeof t}function n(t,e={ns:Gt.svg}){const n=document.createDocumentFragment(),i={},s={},r=[{markup:Array.isArray(t)?t:[t],parent:n,ns:e.ns}];for(;r.length>0;){const t=r.pop();let e=t.ns||Gt.svg;const n=t.markup,o=t.parent;n.forEach((t=>{const n=t.tagName;if(!n)throw new TypeError("Invalid tagName");t.ns&&(e=t.ns);const l=e?qt(n,e):_t(n),a=t.attrs;a&&le(l,he(a));const h=t.style;h&&Pe(l,h);const c=t.className;null!=c&&l.setAttribute("class",Array.isArray(c)?c.join(" "):c),t.textContent&&(l.textContent=t.textContent);const u=t.selector;if(null!=u){if(s[u])throw new TypeError("Selector must be unique");s[u]=l}if(t.groupSelector){let e=t.groupSelector;Array.isArray(e)||(e=[e]),e.forEach((t=>{i[t]||(i[t]=[]),i[t].push(l)}))}o.appendChild(l);const d=t.children;Array.isArray(d)&&r.push({ns:e,markup:d,parent:l})}))}return Object.keys(i).forEach((t=>{if(s[t])throw new Error("Ambiguous group selector");s[t]=i[t]})),{fragment:n,selectors:s,groups:i}}function i(t){return t instanceof SVGElement?Ht("g"):_t("div")}t.isJSONMarkup=function(t){return null!=t&&!e(t)},t.isStringMarkup=e,t.clone=function(t){return null==t||e(t)?t:a(t)},t.sanitize=function(t){return`${t}`.trim().replace(/[\r|\n]/g," ").replace(/>\s+<")},t.parseJSONMarkup=n,t.renderMarkup=function(t){if(e(t)){const e=Me.createVectors(t),n=e.length;if(1===n)return{elem:e[0].node};if(n>1){const t=i(e[0].node);return e.forEach((e=>{t.appendChild(e.node)})),{elem:t}}return{}}const s=n(t),r=s.fragment;let o=null;return r.childNodes.length>1?(o=i(r.firstChild),o.appendChild(r)):o=r.firstChild,{elem:o,selectors:s.selectors}},t.parseLabelStringMarkup=function(t){const e=Me.createVectors(t),n=document.createDocumentFragment();for(let i=0,s=e.length;i ${r} > ${i}`:`> ${r}`,s;const o=e.parentNode;return s=o&&o.childNodes.length>1?`${r}:nth-child(${Wt(e)+1})`:r,i&&(s+=` > ${i}`),t(e.parentNode,n,s)}return i},function(t){t.getPortContainerMarkup=function(){return"g"},t.getPortMarkup=function(){return{tagName:"circle",selector:"circle",attrs:{r:10,fill:"#FFFFFF",stroke:"#000000"}}},t.getPortLabelMarkup=function(){return{tagName:"text",selector:"text",attrs:{fill:"#000000"}}}}(hr||(hr={})),(hr||(hr={})).getEdgeMarkup=function(){return[{tagName:"path",selector:"wrap",groupSelector:"lines",attrs:{fill:"none",cursor:"pointer",stroke:"transparent",strokeLinecap:"round"}},{tagName:"path",selector:"line",groupSelector:"lines",attrs:{fill:"none",pointerEvents:"none"}}]},(hr||(hr={})).getForeignObjectMarkup=function(t=!1){return{tagName:"foreignObject",selector:"fo",children:[{ns:Gt.xhtml,tagName:"body",selector:"foBody",attrs:{xmlns:Gt.xhtml},style:{width:"100%",height:"100%",background:"transparent"},children:t?[]:[{tagName:"div",selector:"foContent",style:{width:"100%",height:"100%"}}]}]}};class dr{constructor(t){this.view=t}get cell(){return this.view.cell}getDefinition(t){return this.cell.getAttrDefinition(t)}processAttrs(t,e){let n,i,s,r;const o=[];return Object.keys(e).forEach((i=>{const s=e[i],r=this.getDefinition(i),l=H(Rs.isValidDefinition,this.view,r,s,{elem:t,attrs:e,cell:this.cell,view:this.view});if(r&&l)"string"==typeof r?(null==n&&(n={}),n[r]=s):null!==s&&o.push({name:i,definition:r});else{null==n&&(n={});const t=ie.includes(i)?i:ot(i);n[t]=s}})),o.forEach((({name:t,definition:n})=>{const o=e[t];"function"==typeof n.set&&(null==i&&(i={}),i[t]=o),"function"==typeof n.offset&&(null==s&&(s={}),s[t]=o),"function"==typeof n.position&&(null==r&&(r={}),r[t]=o)})),{raw:e,normal:n,set:i,offset:s,position:r}}mergeProcessedAttrs(t,e){t.set=Object.assign(Object.assign({},t.set),e.set),t.position=Object.assign(Object.assign({},t.position),e.position),t.offset=Object.assign(Object.assign({},t.offset),e.offset);const n=t.normal&&t.normal.transform;null!=n&&e.normal&&(e.normal.transform=n),t.normal=e.normal}findAttrs(t,e,n,i){const s=[],r=new Cn;return Object.keys(t).forEach((l=>{const a=t[l];if(!o(a))return;const{isCSSSelector:c,elems:u}=cr.find(l,e,i);n[l]=u;for(let t=0,e=u.length;t{const e=r.get(t),n=e.attrs;e.attrs=n.reduceRight(((t,e)=>c(t,e)),{})})),r}updateRelativeAttrs(t,e,n){const i=e.raw||{};let s=e.normal||{};const r=e.set,o=e.position,l=e.offset,a=()=>({elem:t,cell:this.cell,view:this.view,attrs:i,refBBox:n.clone()});if(null!=r&&Object.keys(r).forEach((t=>{const e=r[t],n=this.getDefinition(t);if(null!=n){const i=H(n.set,this.view,e,a());"object"==typeof i?s=Object.assign(Object.assign({},s),i):null!=i&&(s[t]=i)}})),t instanceof HTMLElement)return void this.view.setAttrs(s,t);const h=s.transform,c=We(h?`${h}`:null),u=new Tn(c.e,c.f);h&&(delete s.transform,c.e=0,c.f=0);let d=!1;null!=o&&Object.keys(o).forEach((t=>{const e=o[t],n=this.getDefinition(t);if(null!=n){const t=H(n.position,this.view,e,a());null!=t&&(d=!0,u.translate(Tn.create(t)))}})),this.view.setAttrs(s,t);let g=!1;if(null!=l){const e=this.view.getBoundingRectOfElement(t);if(e.width>0&&e.height>0){const n=Fs.transformRectangle(e,c);Object.keys(l).forEach((e=>{const s=l[e],r=this.getDefinition(e);if(null!=r){const e=H(r.offset,this.view,s,{elem:t,cell:this.cell,view:this.view,attrs:i,refBBox:n});null!=e&&(g=!0,u.translate(Tn.create(e)))}}))}}(null!=h||d||g)&&(u.round(1),c.e=u.x,c.f=u.y,t.setAttribute("transform",Xe(c)))}update(t,e,n){const i={},s=this.findAttrs(n.attrs||e,t,i,n.selectors),r=n.attrs?this.findAttrs(e,t,i,n.selectors):s,o=[];s.each((e=>{const s=e.elem,l=e.attrs,a=this.processAttrs(s,l);if(null==a.set&&null==a.position&&null==a.offset)this.view.setAttrs(a.normal,s);else{const e=r.get(s),h=e?e.attrs:null,c=h&&null==l.ref?h.ref:l.ref;let u;if(c){if(u=(i[c]||this.view.find(c,t,n.selectors))[0],!u)throw new Error(`"${c}" reference does not exist.`)}else u=null;const d={node:s,refNode:u,attributes:h,processedAttributes:a},g=o.findIndex((t=>t.refNode===s));g>-1?o.splice(g,0,d):o.push(d)}}));const l=new Cn;let a;o.forEach((e=>{const i=e.node,s=e.refNode;let r;const o=null!=s&&null!=n.rotatableNode&&Jt(n.rotatableNode,s);if(s&&(r=l.get(s)),!r){const e=o?n.rotatableNode:t;r=s?Fs.getBBox(s,{target:e}):n.rootBBox,s&&l.set(s,r)}let h;n.attrs&&e.attributes?(h=this.processAttrs(i,e.attributes),this.mergeProcessedAttrs(h,e.processedAttributes)):h=e.processedAttributes;let c=r;o&&null!=n.rotatableNode&&!n.rotatableNode.contains(i)&&(a||(a=We(le(n.rotatableNode,"transform"))),c=Fs.transformRectangle(r,a)),this.updateRelativeAttrs(i,h,c)}))}}class gr{get cell(){return this.view.cell}constructor(t,e,n=[]){this.view=t;const i={},s={};let r=0;Object.keys(e).forEach((t=>{let n=e[t];Array.isArray(n)||(n=[n]),n.forEach((e=>{let n=i[e];n||(r+=1,n=i[e]=1<{i[t]||(r+=1,i[t]=1<25)throw new Error("Maximum number of flags exceeded.");this.flags=i,this.attrs=s,this.bootstrap=n}getFlag(t){const e=this.flags;return null==e?0:Array.isArray(t)?t.reduce(((t,n)=>t|e[n]),0):0|e[t]}hasAction(t,e){return t&this.getFlag(e)}removeAction(t,e){return t^t&this.getFlag(e)}getBootstrapFlag(){return this.getFlag(this.bootstrap)}getChangedFlag(){let t=0;return this.attrs?(Object.keys(this.attrs).forEach((e=>{this.cell.hasChanged(e)&&(t|=this.attrs[e])})),t):t}}var pr=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);snull!=e?u([...Array.isArray(t)?t:[t],...Array.isArray(e)?e:[e]]):Array.isArray(t)?[...t]:[t],n=a(this.getDefaults()),{bootstrap:i,actions:s,events:r,documentEvents:o}=t,l=pr(t,["bootstrap","actions","events","documentEvents"]);return i&&(n.bootstrap=e(n.bootstrap,i)),s&&Object.entries(s).forEach((([t,i])=>{const s=n.actions[t];i&&s?n.actions[t]=e(s,i):i&&(n.actions[t]=e(i))})),r&&(n.events=Object.assign(Object.assign({},n.events),r)),t.documentEvents&&(n.documentEvents=Object.assign(Object.assign({},n.documentEvents),o)),c(n,l)}get[Symbol.toStringTag](){return fr.toStringTag}constructor(t,e={}){super(),this.cell=t,this.options=this.ensureOptions(e),this.graph=this.options.graph,this.attr=new dr(this),this.flag=new gr(this,this.options.actions,this.options.bootstrap),this.cache=new ur(this),this.setContainer(this.ensureContainer()),this.setup(),this.init()}init(){}onRemove(){this.removeTools()}get priority(){return this.options.priority}get rootSelector(){return this.options.rootSelector}getConstructor(){return this.constructor}ensureOptions(t){return this.getConstructor().getOptions(t)}getContainerTagName(){return this.options.isSvgElement?"g":"div"}getContainerStyle(){}getContainerAttrs(){return{"data-cell-id":this.cell.id,"data-shape":this.cell.shape}}getContainerClassName(){return this.prefixClassName("cell")}ensureContainer(){return cr.createElement(this.getContainerTagName(),this.options.isSvgElement)}setContainer(t){if(this.container!==t){this.undelegateEvents(),this.container=t,null!=this.options.events&&this.delegateEvents(this.options.events);const e=this.getContainerAttrs();null!=e&&this.setAttrs(e,t);const n=this.getContainerStyle();null!=n&&this.setStyle(n,t);const i=this.getContainerClassName();null!=i&&this.addClass(i,t)}return this}isNodeView(){return!1}isEdgeView(){return!1}render(){return this}confirmUpdate(t,e={}){return 0}getBootstrapFlag(){return this.flag.getBootstrapFlag()}getFlag(t){return this.flag.getFlag(t)}hasAction(t,e){return this.flag.hasAction(t,e)}removeAction(t,e){return this.flag.removeAction(t,e)}handleAction(t,e,n,i){if(this.hasAction(t,e)){n();const s=[e];return i&&("string"==typeof i?s.push(i):s.push(...i)),this.removeAction(t,s)}return t}setup(){this.cell.on("changed",(({options:t})=>this.onAttrsChange(t)))}onAttrsChange(t){let e=this.flag.getChangedFlag();!t.updated&&e&&(t.dirty&&this.hasAction(e,"update")&&(e|=this.getFlag("render")),t.toolId&&(t.async=!1),null!=this.graph&&this.graph.renderer.requestViewUpdate(this,e,t))}parseJSONMarkup(t,e){const n=hr.parseJSONMarkup(t),i=n.selectors,s=this.rootSelector;if(e&&s){if(i[s])throw new Error("Invalid root selector");i[s]=e}return n}can(t){let e=this.graph.options.interacting;if("function"==typeof e&&(e=H(e,this.graph,this)),"object"==typeof e){let n=e[t];return"function"==typeof n&&(n=H(n,this.graph,this)),!1!==n}return"boolean"==typeof e&&e}cleanCache(){return this.cache.clean(),this}getCache(t){return this.cache.get(t)}getDataOfElement(t){return this.cache.getData(t)}getMatrixOfElement(t){return this.cache.getMatrix(t)}getShapeOfElement(t){return this.cache.getShape(t)}getBoundingRectOfElement(t){return this.cache.getBoundingRect(t)}getBBoxOfElement(t){const e=this.getBoundingRectOfElement(t),n=this.getMatrixOfElement(t),i=this.getRootRotatedMatrix(),s=this.getRootTranslatedMatrix();return Fs.transformRectangle(e,s.multiply(i).multiply(n))}getUnrotatedBBoxOfElement(t){const e=this.getBoundingRectOfElement(t),n=this.getMatrixOfElement(t),i=this.getRootTranslatedMatrix();return Fs.transformRectangle(e,i.multiply(n))}getBBox(t={}){let e;if(t.useCellGeometry){const t=this.cell,n=t.isNode()?t.getAngle():0;e=t.getBBox().bbox(n)}else e=this.getBBoxOfElement(this.container);return this.graph.coord.localToGraphRect(e)}getRootTranslatedMatrix(){const t=this.cell,e=t.isNode()?t.getPosition():{x:0,y:0};return He().translate(e.x,e.y)}getRootRotatedMatrix(){let t=He();const e=this.cell,n=e.isNode()?e.getAngle():0;if(n){const i=e.getBBox(),s=i.width/2,r=i.height/2;t=t.translate(s,r).rotate(n).translate(-s,-r)}return t}findMagnet(t=this.container){return this.findByAttr("magnet",t)}updateAttrs(t,e,n={}){null==n.rootBBox&&(n.rootBBox=new Nn),null==n.selectors&&(n.selectors=this.selectors),this.attr.update(t,e,n)}isEdgeElement(t){return this.cell.isEdge()&&(null==t||t===this.container)}prepareHighlight(t,e={}){const n=t||this.container;return e.partial=n===this.container,n}highlight(t,e={}){const n=this.prepareHighlight(t,e);return this.notify("cell:highlight",{magnet:n,options:e,view:this,cell:this.cell}),this.isEdgeView()?this.notify("edge:highlight",{magnet:n,options:e,view:this,edge:this.cell,cell:this.cell}):this.isNodeView()&&this.notify("node:highlight",{magnet:n,options:e,view:this,node:this.cell,cell:this.cell}),this}unhighlight(t,e={}){const n=this.prepareHighlight(t,e);return this.notify("cell:unhighlight",{magnet:n,options:e,view:this,cell:this.cell}),this.isNodeView()?this.notify("node:unhighlight",{magnet:n,options:e,view:this,node:this.cell,cell:this.cell}):this.isEdgeView()&&this.notify("edge:unhighlight",{magnet:n,options:e,view:this,edge:this.cell,cell:this.cell}),this}notifyUnhighlight(t,e){}getEdgeTerminal(t,e,n,i,s){const r=this.cell,o=this.findAttr("port",t),l=t.getAttribute("data-selector"),a={cell:r.id};return null!=l&&(a.magnet=l),null!=o?(a.port=o,r.isNode()&&(r.hasPort(o)||null!=l||(a.selector=this.getSelector(t)))):null==l&&this.container!==t&&(a.selector=this.getSelector(t)),a}getMagnetFromEdgeTerminal(t){const e=this.cell,n=this.container,i=t.port;let s,r=t.magnet;return null!=i&&e.isNode()&&e.hasPort(i)?s=this.findPortElem(i,r)||n:(r||(r=t.selector),r||null==i||(r=`[port="${i}"]`),s=this.findOne(r,n,this.selectors)),s}hasTools(t){const e=this.tools;return null!=e&&(null==t||e.name===t)}addTools(t){if(!this.can("toolsAddable"))return this;if(this.removeTools(),t){const e=mr.isToolsView(t)?t:new mr(t);this.tools=e,e.config({view:this}),e.mount()}return this}updateTools(t={}){return this.tools&&this.tools.update(t),this}removeTools(){return this.tools&&(this.tools.remove(),this.tools=null),this}hideTools(){return this.tools&&this.tools.hide(),this}showTools(){return this.tools&&this.tools.show(),this}renderTools(){const t=this.cell.getTools();return this.addTools(t),this}notify(t,e){return this.trigger(t,e),this.graph.trigger(t,e),this}getEventArgs(t,e,n){const i=this,s=i.cell;return null==e||null==n?{e:t,view:i,cell:s}:{e:t,x:e,y:n,view:i,cell:s}}onClick(t,e,n){this.notify("cell:click",this.getEventArgs(t,e,n))}onDblClick(t,e,n){this.notify("cell:dblclick",this.getEventArgs(t,e,n))}onContextMenu(t,e,n){this.notify("cell:contextmenu",this.getEventArgs(t,e,n))}onMouseDown(t,e,n){this.cell.model&&(this.cachedModelForMouseEvent=this.cell.model,this.cachedModelForMouseEvent.startBatch("mouse")),this.notify("cell:mousedown",this.getEventArgs(t,e,n))}onMouseUp(t,e,n){this.notify("cell:mouseup",this.getEventArgs(t,e,n)),this.cachedModelForMouseEvent&&(this.cachedModelForMouseEvent.stopBatch("mouse",{cell:this.cell}),this.cachedModelForMouseEvent=null)}onMouseMove(t,e,n){this.notify("cell:mousemove",this.getEventArgs(t,e,n))}onMouseOver(t){this.notify("cell:mouseover",this.getEventArgs(t))}onMouseOut(t){this.notify("cell:mouseout",this.getEventArgs(t))}onMouseEnter(t){this.notify("cell:mouseenter",this.getEventArgs(t))}onMouseLeave(t){this.notify("cell:mouseleave",this.getEventArgs(t))}onMouseWheel(t,e,n,i){this.notify("cell:mousewheel",Object.assign({delta:i},this.getEventArgs(t,e,n)))}onCustomEvent(t,e,n,i){this.notify("cell:customevent",Object.assign({name:e},this.getEventArgs(t,n,i))),this.notify(e,Object.assign({},this.getEventArgs(t,n,i)))}onMagnetMouseDown(t,e,n,i){}onMagnetDblClick(t,e,n,i){}onMagnetContextMenu(t,e,n,i){}onLabelMouseDown(t,e,n){}checkMouseleave(t){const e=this.getEventTarget(t,{fromPoint:!0}),n=this.graph.findViewByElem(e);n!==this&&(this.onMouseLeave(t),n&&n.onMouseEnter(t))}}fr.defaults={isSvgElement:!0,rootSelector:"root",priority:0,bootstrap:[],actions:{}},function(t){t.Flag=gr,t.Attr=dr}(fr||(fr={})),function(t){t.toStringTag=`X6.${t.name}`,t.isCellView=function(e){if(null==e)return!1;if(e instanceof t)return!0;const n=e[Symbol.toStringTag],i=e;return(null==n||n===t.toStringTag)&&"function"==typeof i.isNodeView&&"function"==typeof i.isEdgeView&&"function"==typeof i.confirmUpdate}}(fr||(fr={})),function(t){t.priority=function(t){return function(e){e.config({priority:t})}},t.bootstrap=function(t){return function(e){e.config({bootstrap:t})}}}(fr||(fr={})),(fr||(fr={})).registry=Qn.create({type:"view"});class mr extends cr{get name(){return this.options.name}get graph(){return this.cellView.graph}get cell(){return this.cellView.cell}get[Symbol.toStringTag](){return mr.toStringTag}constructor(t={}){super(),this.svgContainer=this.createContainer(!0,t),this.htmlContainer=this.createContainer(!1,t),this.config(t)}createContainer(t,e){const n=t?cr.createElement("g",!0):cr.createElement("div",!1);return Dt(n,this.prefixClassName("cell-tools")),e.className&&Dt(n,e.className),n}config(t){if(this.options=Object.assign(Object.assign({},this.options),t),!fr.isCellView(t.view)||t.view===this.cellView)return this;this.cellView=t.view,this.cell.isEdge()?(Dt(this.svgContainer,this.prefixClassName("edge-tools")),Dt(this.htmlContainer,this.prefixClassName("edge-tools"))):this.cell.isNode()&&(Dt(this.svgContainer,this.prefixClassName("node-tools")),Dt(this.htmlContainer,this.prefixClassName("node-tools"))),this.svgContainer.setAttribute("data-cell-id",this.cell.id),this.htmlContainer.setAttribute("data-cell-id",this.cell.id),this.name&&(this.svgContainer.setAttribute("data-tools-name",this.name),this.htmlContainer.setAttribute("data-tools-name",this.name));const e=this.options.items;if(!Array.isArray(e))return this;this.tools=[];const n=[];e.forEach((t=>{mr.ToolItem.isToolItem(t)?"vertices"===t.name?n.unshift(t):n.push(t):"vertices"===("object"==typeof t?t.name:t)?n.unshift(t):n.push(t)}));for(let i=0;i{t.toolId!==e.cid&&e.isVisible()&&e.update()})),this}focus(t){const e=this.tools;return e&&e.forEach((e=>{t===e?e.show():e.hide()})),this}blur(t){const e=this.tools;return e&&e.forEach((e=>{e===t||e.isVisible()||(e.show(),e.update())})),this}hide(){return this.focus(null)}show(){return this.blur(null)}remove(){const t=this.tools;return t&&(t.forEach((t=>t.remove())),this.tools=null),Yt(this.svgContainer),Yt(this.htmlContainer),super.remove()}mount(){const t=this.tools,e=this.cellView;if(e&&t){const n=t.some((t=>!1!==t.options.isSVGElement)),i=t.some((t=>!1===t.options.isSVGElement));n&&(this.options.local?e.container:e.graph.view.decorator).appendChild(this.svgContainer),i&&this.graph.container.appendChild(this.htmlContainer)}return this}}function yr(t,e){return 0===e?"0%":`${Math.round(t/e*100)}%`}function br(t){return(e,n,i,s)=>n.isEdgeElement(i)?function(t,e,n,i,s){const r=n.getConnection();if(!r)return e;const o=r.closestPointLength(s);if(t){const t=r.length();e.anchor={name:"ratio",args:{ratio:o/t}}}else e.anchor={name:"length",args:{length:o}};return e}(t,e,n,0,s):function(t,e,n,i,s){const r=n.cell,o=r.getAngle(),l=n.getUnrotatedBBoxOfElement(i),a=r.getBBox().getCenter(),h=Tn.create(s).rotate(o,a);let c=h.x-l.x,u=h.y-l.y;return t&&(c=yr(c,l.width),u=yr(u,l.height)),e.anchor={name:"topLeft",args:{dx:c,dy:u,rotate:!0}},e}(t,e,n,i,s)}!function(t){t.toStringTag=`X6.${t.name}`,t.isToolsView=function(e){if(null==e)return!1;if(e instanceof t)return!0;const n=e[Symbol.toStringTag],i=e;return(null==n||n===t.toStringTag)&&null!=i.graph&&null!=i.cell&&"function"==typeof i.config&&"function"==typeof i.update&&"function"==typeof i.focus&&"function"==typeof i.blur&&"function"==typeof i.show&&"function"==typeof i.hide}}(mr||(mr={})),function(t){class e extends cr{static getDefaults(){return this.defaults}static config(t){this.defaults=this.getOptions(t)}static getOptions(t){return c(a(this.getDefaults()),t)}get graph(){return this.cellView.graph}get cell(){return this.cellView.cell}get name(){return this.options.name}get[Symbol.toStringTag](){return e.toStringTag}constructor(t={}){super(),this.visible=!0,this.options=this.getOptions(t),this.container=cr.createElement(this.options.tagName||"g",!1!==this.options.isSVGElement),Dt(this.container,this.prefixClassName("cell-tool")),"string"==typeof this.options.className&&Dt(this.container,this.options.className),this.init()}init(){}getOptions(t){return this.constructor.getOptions(t)}delegateEvents(){return this.options.events&&super.delegateEvents(this.options.events),this}config(t,e){return this.cellView=t,this.parent=e,this.stamp(this.container),this.cell.isEdge()?Dt(this.container,this.prefixClassName("edge-tool")):this.cell.isNode()&&Dt(this.container,this.prefixClassName("node-tool")),this.name&&this.container.setAttribute("data-tool-name",this.name),this.delegateEvents(),this}render(){this.empty();const t=this.options.markup;if(t){const e=hr.parseJSONMarkup(t);this.container.appendChild(e.fragment),this.childNodes=e.selectors}return this.onRender(),this}onRender(){}update(){return this}stamp(t){t&&t.setAttribute("data-cell-id",this.cellView.cell.id)}show(){return this.container.style.display="",this.visible=!0,this}hide(){return this.container.style.display="none",this.visible=!1,this}isVisible(){return this.visible}focus(){const t=this.options.focusOpacity;return null!=t&&Number.isFinite(t)&&(this.container.style.opacity=`${t}`),this.parent.focus(this),this}blur(){return this.container.style.opacity="",this.parent.blur(this),this}guard(t){return null==this.graph||null==this.cellView||this.graph.view.guard(t,this.cellView)}}var n;e.defaults={isSVGElement:!0,tagName:"g"},t.ToolItem=e,function(t){let e=0;t.define=function(t){const n=K((i=t.name)?lt(i):(e+=1,`CustomTool${e}`),this);var i;return n.config(t),n}}(e=t.ToolItem||(t.ToolItem={})),(n=e=t.ToolItem||(t.ToolItem={})).toStringTag=`X6.${n.name}`,n.isToolItem=function(t){if(null==t)return!1;if(t instanceof n)return!0;const e=t[Symbol.toStringTag],i=t;return(null==e||e===n.toStringTag)&&null!=i.graph&&null!=i.cell&&"function"==typeof i.config&&"function"==typeof i.update&&"function"==typeof i.focus&&"function"==typeof i.blur&&"function"==typeof i.show&&"function"==typeof i.hide&&"function"==typeof i.isVisible}}(mr||(mr={}));const vr=br(!0),xr=br(!1),wr=Object.freeze(Object.defineProperty({__proto__:null,noop:t=>t,pinAbsolute:xr,pinRelative:vr},Symbol.toStringTag,{value:"Module"}));var Cr;function Pr(t,e,n,i){return H(Cr.presets.pinRelative,this.graph,{},e,n,t,this.cell,i,{}).anchor}function Er(t,e){return e?t.cell.getBBox():t.cell.isEdge()?t.getConnection().bbox():t.getUnrotatedBBoxOfElement(t.container)}!function(t){t.presets=wr,t.registry=Qn.create({type:"connection strategy"}),t.registry.register(t.presets,!0)}(Cr||(Cr={}));class Sr extends mr.ToolItem{onRender(){Dt(this.container,this.prefixClassName("cell-tool-button")),this.update()}update(){return this.updatePosition(),this}updatePosition(){const t=this.cellView.cell.isEdge()?this.getEdgeMatrix():this.getNodeMatrix();Ze(this.container,t,{absolute:!0})}getNodeMatrix(){const t=this.cellView,e=this.options;let{x:n=0,y:i=0}=e;const{offset:s,useCellGeometry:r,rotate:o}=e;let l=Er(t,r);const a=t.cell.getAngle();o||(l=l.bbox(a));let h=0,c=0;"number"==typeof s?(h=s,c=s):"object"==typeof s&&(h=s.x,c=s.y),n=dt(n,l.width),i=dt(i,l.height);let u=He().translate(l.x+l.width/2,l.y+l.height/2);return o&&(u=u.rotate(a)),u=u.translate(n+h-l.width/2,i+c-l.height/2),u}getEdgeMatrix(){const t=this.cellView,e=this.options,{offset:n=0,distance:i=0,rotate:s}=e;let r,o,l;const a=dt(i,1);r=a>=0&&a<=1?t.getTangentAtRatio(a):t.getTangentAtLength(a),r?(o=r.start,l=r.vector().vectorAngle(new Tn(1,0))||0):(o=t.getConnection().start,l=0);let h=He().translate(o.x,o.y).rotate(l);return h="object"==typeof n?h.translate(n.x||0,n.y||0):h.translate(0,n),s||(h=h.rotate(-l)),h}onMouseDown(t){if(this.guard(t))return;t.stopPropagation(),t.preventDefault();const e=this.options.onClick;"function"==typeof e&&H(e,this.cellView,{e:t,view:this.cellView,cell:this.cellView.cell,btn:this})}}(Sr||(Sr={})).config({name:"button",useCellGeometry:!0,events:{mousedown:"onMouseDown",touchstart:"onMouseDown"}}),function(t){t.Remove=t.define({name:"button-remove",markup:[{tagName:"circle",selector:"button",attrs:{r:7,fill:"#FF1D00",cursor:"pointer"}},{tagName:"path",selector:"icon",attrs:{d:"M -3 -3 3 3 M -3 3 3 -3",fill:"none",stroke:"#FFFFFF","stroke-width":2,"pointer-events":"none"}}],distance:60,offset:0,useCellGeometry:!0,onClick({view:t,btn:e}){e.parent.remove(),t.cell.remove({ui:!0,toolId:e.cid})}})}(Sr||(Sr={}));var Ar=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s{this.stopHandleListening(t),t.remove()}))}renderHandles(){const t=this.vertices;for(let e=0,n=t.length;ethis.guard(t),attrs:this.options.attrs||{}});s&&s(r),r.updatePosition(n.x,n.y),this.stamp(r.container),this.container.appendChild(r.container),this.handles.push(r),this.startHandleListening(r)}}updateHandles(){const t=this.vertices;for(let e=0,n=t.length;e0?n[t-1]:e.sourceAnchor,s=t0){const i=this.getNeighborPoints(e),s=i.prev,r=i.next;Math.abs(t.x-s.x)new t.Handle(e),markup:[{tagName:"path",selector:"connection",className:e,attrs:{fill:"none",stroke:"transparent","stroke-width":10,cursor:"pointer"}}],events:{[`mousedown .${e}`]:"onPathMouseDown",[`touchstart .${e}`]:"onPathMouseDown"}})}(Or||(Or={}));class Tr extends mr.ToolItem{constructor(){super(...arguments),this.handles=[]}get vertices(){return this.cellView.cell.getVertices()}update(){return this.render(),this}onRender(){Dt(this.container,this.prefixClassName("edge-tool-segments")),this.resetHandles();const t=this.cellView,e=[...this.vertices];e.unshift(t.sourcePoint),e.push(t.targetPoint);for(let n=0,i=e.length;nthis.guard(t),attrs:this.options.attrs||{}});return this.options.processHandle&&this.options.processHandle(i),this.updateHandle(i,t,e),this.container.appendChild(i.container),this.startHandleListening(i),i}startHandleListening(t){t.on("change",this.onHandleChange,this),t.on("changing",this.onHandleChanging,this),t.on("changed",this.onHandleChanged,this)}stopHandleListening(t){t.off("change",this.onHandleChange,this),t.off("changing",this.onHandleChanging,this),t.off("changed",this.onHandleChanged,this)}resetHandles(){const t=this.handles;this.handles=[],t&&t.forEach((t=>{this.stopHandleListening(t),t.remove()}))}shiftHandleIndexes(t){const e=this.handles;for(let n=0,i=e.length;nnew t.Handle(e),anchor:Pr})}(Tr||(Tr={}));class Nr extends mr.ToolItem{get type(){return this.options.type}onRender(){Dt(this.container,this.prefixClassName(`edge-tool-${this.type}-anchor`)),this.toggleArea(!1),this.update()}update(){const t=this.type;return this.cellView.getTerminalView(t)?(this.updateAnchor(),this.updateArea(),this.container.style.display=""):this.container.style.display="none",this}updateAnchor(){const t=this.childNodes;if(!t)return;const e=t.anchor;if(!e)return;const n=this.type,i=this.cellView,s=this.options,r=i.getTerminalAnchor(n),o=i.cell.prop([n,"anchor"]);e.setAttribute("transform",`translate(${r.x}, ${r.y})`);const l=o?s.customAnchorAttrs:s.defaultAnchorAttrs;l&&Object.keys(l).forEach((t=>{e.setAttribute(t,l[t])}))}updateArea(){const t=this.childNodes;if(!t)return;const e=t.area;if(!e)return;const n=this.type,i=this.cellView,s=i.getTerminalView(n);if(s){const t=s.cell,r=i.getTerminalMagnet(n);let o,l,a,h=this.options.areaPadding||0;Number.isFinite(h)||(h=0),s.isEdgeElement(r)?(o=s.getBBox(),l=0,a=o.getCenter()):(o=s.getUnrotatedBBoxOfElement(r),l=t.getAngle(),a=o.getCenter(),l&&a.rotate(-l,t.getBBox().getCenter())),o.inflate(h),le(e,{x:-o.width/2,y:-o.height/2,width:o.width,height:o.height,transform:`translate(${a.x}, ${a.y}) rotate(${l})`})}}toggleArea(t){if(this.childNodes){const e=this.childNodes.area;e&&(e.style.display=t?"":"none")}}onMouseDown(t){this.guard(t)||(t.stopPropagation(),t.preventDefault(),this.graph.view.undelegateEvents(),this.options.documentEvents&&this.delegateDocumentEvents(this.options.documentEvents),this.focus(),this.toggleArea(this.options.restrictArea),this.cell.startBatch("move-anchor",{ui:!0,toolId:this.cid}))}resetAnchor(t){const e=this.type,n=this.cell;t?n.prop([e,"anchor"],t,{rewrite:!0,ui:!0,toolId:this.cid}):n.removeProp([e,"anchor"],{ui:!0,toolId:this.cid})}onMouseMove(t){const e=this.type,n=this.cellView,i=n.getTerminalView(e);if(null==i)return;const s=this.normalizeEvent(t),r=i.cell,o=n.getTerminalMagnet(e);let l=this.graph.coord.clientToLocalPoint(s.clientX,s.clientY);const a=this.options.snap;if("function"==typeof a){const t=H(a,n,l,i,o,e,n,this);l=Tn.create(t)}if(this.options.restrictArea)if(i.isEdgeElement(o)){const t=i.getClosestPoint(l);t&&(l=t)}else{const t=i.getUnrotatedBBoxOfElement(o),e=r.getAngle(),n=r.getBBox().getCenter(),s=l.clone().rotate(e,n);t.containsPoint(s)||(l=t.getNearestPointToPoint(s).rotate(-e,n))}let h;const c=this.options.anchor;"function"==typeof c&&(h=H(c,n,l,i,o,e,n,this)),this.resetAnchor(h),this.update()}onMouseUp(t){this.graph.view.delegateEvents(),this.undelegateDocumentEvents(),this.blur(),this.toggleArea(!1);const e=this.cellView;this.options.removeRedundancies&&e.removeRedundantLinearVertices({ui:!0,toolId:this.cid}),this.cell.stopBatch("move-anchor",{ui:!0,toolId:this.cid})}onDblClick(){const t=this.options.resetAnchor;t&&this.resetAnchor(!0===t?void 0:t),this.update()}}(Nr||(Nr={})).config({tagName:"g",markup:[{tagName:"circle",selector:"anchor",attrs:{cursor:"pointer"}},{tagName:"rect",selector:"area",attrs:{"pointer-events":"none",fill:"none",stroke:"#33334F","stroke-dasharray":"2,4",rx:5,ry:5}}],events:{mousedown:"onMouseDown",touchstart:"onMouseDown",dblclick:"onDblClick"},documentEvents:{mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"},customAnchorAttrs:{"stroke-width":4,stroke:"#33334F",fill:"#FFFFFF",r:5},defaultAnchorAttrs:{"stroke-width":2,stroke:"#FFFFFF",fill:"#33334F",r:6},areaPadding:6,snapRadius:10,resetAnchor:!0,restrictArea:!0,removeRedundancies:!0,anchor:Pr,snap(t,e,n,i,s,r){const o=r.options.snapRadius||0,l="source"===i,a=l?0:-1,h=this.cell.getVertexAt(a)||this.getTerminalAnchor(l?"target":"source");return h&&(Math.abs(h.x-t.x){this.editor&&(this.editor.focus(),this.selectText())}))}selectText(){if(window.getSelection&&this.editor){const t=document.createRange(),e=window.getSelection();t.selectNodeContents(this.editor),e.removeAllRanges(),e.addRange(t)}}getCellText(){const{getText:t}=this.options;if("function"==typeof t)return H(t,this.cellView,{cell:this.cell,index:this.labelIndex});if("string"==typeof t){if(this.cell.isNode())return this.cell.attr(t);if(this.cell.isEdge()&&-1!==this.labelIndex)return this.cell.prop(`labels/${this.labelIndex}/attrs/${t}`)}}setCellText(t){const e=this.options.setText;if("function"!=typeof e){if("string"==typeof e){if(this.cell.isNode())return void(null!==t&&this.cell.attr(e,t));if(this.cell.isEdge()){const n=this.cell;if(-1===this.labelIndex){if(t){const i={position:{distance:this.distance},attrs:{}};nt(i,`attrs/${e}`,t),n.appendLabel(i)}}else null!==t?n.prop(`labels/${this.labelIndex}/attrs/${e}`,t):"number"==typeof this.labelIndex&&n.removeLabelAt(this.labelIndex)}}}else H(e,this.cellView,{cell:this.cell,value:t,index:this.labelIndex,distance:this.distance})}onRemove(){const t=this.cellView;t&&t.off("cell:dblclick",this.dblClick),this.removeElement()}}(Ir||(Ir={})).config({tagName:"div",isSVGElement:!1,events:{mousedown:"onMouseDown"},documentEvents:{mousedown:"onDocumentMouseDown"}}),function(t){t.NodeEditor=t.define({attrs:{fontSize:14,fontFamily:"Arial, helvetica, sans-serif",color:"#000",backgroundColor:"#fff"},getText:"text/text",setText:"text/text"}),t.EdgeEditor=t.define({attrs:{fontSize:14,fontFamily:"Arial, helvetica, sans-serif",color:"#000",backgroundColor:"#fff"},labelAddable:!0,getText:"label/text",setText:"label/text"})}(Ir||(Ir={}));var Vr,zr,$r=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s0?n.closest(u):null!=i.fallbackAt?Qr(t,i.fallbackAt):H(io,this,t,e,n,i)})),oo=Object.freeze(Object.defineProperty({__proto__:null,closest:so,length:function(t,e,n,i){const s=null!=i.length?i.length:20;return t.getPointAtLength(s)},orth:ro,ratio:function(t,e,n,i){let s=null!=i.ratio?i.ratio:.5;return s>1&&(s/=100),t.getPointAtRatio(s)}},Symbol.toStringTag,{value:"Module"}));var lo;function ao(t,e,n){let i;if("object"==typeof n){if(Number.isFinite(n.y)){const i=new kn(e,t),{start:s,end:r}=i.parallel(n.y);e=s,t=r}i=n.x}else i=n;if(null==i||!Number.isFinite(i))return t;const s=t.distance(e);return 0===i&&s>0?t:t.move(e,-Math.min(i,s-1))}function ho(t){const e=t.getAttribute("stroke-width");return null===e?0:parseFloat(e)||0}!function(t){t.presets=oo,t.registry=Qn.create({type:"edge endpoint"}),t.registry.register(t.presets,!0)}(lo||(lo={}));const co=function(t,e,n,i){const s=e.getBBoxOfElement(n);i.stroked&&s.inflate(ho(n)/2);const r=t.intersect(s);return ao(r&&r.length?t.start.closest(r):t.end,t.start,i.offset)},uo=Object.freeze(Object.defineProperty({__proto__:null,anchor:function(t,e,n,i){const{alignOffset:s,align:r}=i;return r&&function(t,e,n=0){const{start:i,end:s}=t;let r,o,l,a;switch(e){case"left":a="x",r=s,o=i,l=-1;break;case"right":a="x",r=i,o=s,l=1;break;case"top":a="y",r=s,o=i,l=-1;break;case"bottom":a="y",r=i,o=s,l=1;break;default:return}i[a]Tn.create(t)));l.unshift(r),l.push(o);let a=null;const h=[];for(let c=0,u=l.length-1;ce.y?"N":"S":t.y===e.y?t.x>e.x?"W":"E":null}function o(t,n,i){const s=new Tn(t.x,n.y),o=new Tn(n.x,t.y),l=r(t,s),a=r(t,o),h=i?e[i]:null,c=l===i||l!==h&&(a===h||a!==i)?s:o;return{points:[c],direction:r(c,n)}}function l(t,e,n){const s=i(t,e,n);return{points:[s],direction:r(s,e)}}t.getBBoxSize=s,t.getBearing=r,t.vertexToVertex=o,t.nodeToVertex=l,t.vertexToNode=function(t,e,n,o){const l=[new Tn(t.x,e.y),new Tn(e.x,t.y)],a=l.filter((t=>!n.containsPoint(t))),h=a.filter((e=>r(e,t)!==o));let c;if(h.length>0)return c=h.filter((e=>r(t,e)===o)).pop(),c=c||h[0],{points:[c],direction:r(c,e)};{c=d(l,a)[0];const h=Tn.create(e).move(c,-s(n,o)/2);return{points:[i(h,t,n),h],direction:r(h,e)}}},t.nodeToNode=function(t,e,n,i){let a=l(e,t,i);const h=a.points[0];if(n.containsPoint(h)){a=l(t,e,n);const c=a.points[0];if(i.containsPoint(c)){const u=Tn.create(t).move(c,-s(n,r(t,c))/2),d=Tn.create(e).move(h,-s(i,r(e,h))/2),g=new kn(u,d).getCenter(),p=l(t,g,n),f=o(g,e,p.direction);a.points=[p.points[0],f.points[0]],a.direction=f.direction}}return a},t.insideNode=function(t,e,s,o,l){const a=s.union(o).inflate(1),h=a.getCenter(),c=h.distance(e)>h.distance(t),u=c?e:t,d=c?t:e;let g,p,f,m;return l?(g=Tn.fromPolar(a.width+a.height,n[l],u),g=a.getNearestPointToPoint(g).move(g,-1)):g=a.getNearestPointToPoint(u).move(u,1),p=i(g,d,a),g.round().equals(p.round())?(p=Tn.fromPolar(a.width+a.height,An.toRad(g.theta(u))+Math.PI/2,d),p=a.getNearestPointToPoint(p).move(d,1).round(),f=i(g,p,a),m=c?[p,f,g]:[g,f,p]):m=c?[p,g]:[g,p],{points:m,direction:r(c?g:p,e)}}}(vo||(vo={}));const xo={step:10,maxLoopCount:2e3,precision:1,maxDirectionChange:90,perpendicular:!0,excludeTerminals:[],excludeNodes:[],excludeShapes:[],startDirections:["top","right","bottom","left"],endDirections:["top","right","bottom","left"],directionMap:{top:{x:0,y:-1},right:{x:1,y:0},bottom:{x:0,y:1},left:{x:-1,y:0}},cost(){return wo(this.step,this)},directions(){const t=wo(this.step,this),e=wo(this.cost,this);return[{cost:e,offsetX:t,offsetY:0},{cost:e,offsetX:-t,offsetY:0},{cost:e,offsetX:0,offsetY:t},{cost:e,offsetX:0,offsetY:-t}]},penalties(){const t=wo(this.step,this);return{0:0,45:t/2,90:t/2}},paddingBox(){const t=wo(this.step,this);return{x:-t,y:-t,width:2*t,height:2*t}},fallbackRouter:bo,draggingRouter:null,snapToGrid:!0};function wo(t,e){return"function"==typeof t?t.call(e):t}class Co{constructor(){this.items=[],this.hash={},this.values={}}add(t,e){this.hash[t]?this.items.splice(this.items.indexOf(t),1):this.hash[t]=1,this.values[t]=e;const n=g(this.items,t,(t=>this.values[t]));this.items.splice(n,0,t)}pop(){const t=this.items.shift();return t&&(this.hash[t]=2),t}isOpen(t){return 1===this.hash[t]}isClose(t){return 2===this.hash[t]}isEmpty(){return 0===this.items.length}}class Po{constructor(t){this.options=t,this.mapGridSize=100,this.map={}}build(t,e){const n=this.options,i=n.excludeTerminals.reduce(((n,i)=>{const s=e[i];if(s){const e=t.getCell(s.cell);e&&n.push(e)}return n}),[]);let s=[];const r=t.getCell(e.getSourceCellId());r&&(s=p(s,r.getAncestors().map((t=>t.id))));const o=t.getCell(e.getTargetCellId());o&&(s=p(s,o.getAncestors().map((t=>t.id))));const l=this.mapGridSize;return t.getNodes().reduce(((t,e)=>{const r=i.some((t=>t.id===e.id)),o=!!e.shape&&n.excludeShapes.includes(e.shape),a=n.excludeNodes.some((t=>"string"==typeof t?e.id===t:t===e)),h=s.includes(e.id);if(!(o||r||a||h)){const i=e.getBBox().moveAndExpand(n.paddingBox),s=i.getOrigin().snapToGrid(l),r=i.getCorner().snapToGrid(l);for(let e=s.x;e<=r.x;e+=l)for(let n=s.y;n<=r.y;n+=l){const s=new Tn(e,n).toString();null==t[s]&&(t[s]=[]),t[s].push(i)}}return t}),this.map),this}isAccessible(t){const e=t.clone().snapToGrid(this.mapGridSize).toString(),n=this.map[e];return!n||n.every((e=>!e.containsPoint(t)))}}function Eo(t,e){const n=t.sourceBBox.clone();return e&&e.paddingBox?n.moveAndExpand(e.paddingBox):n}function So(t,e){const n=t.targetBBox.clone();return e&&e.paddingBox?n.moveAndExpand(e.paddingBox):n}function Ao(t,e){return t.sourceAnchor?t.sourceAnchor:Eo(t,e).getCenter()}function Mo(t,e,n,i,s){const r=360/n,o=t.theta(function(t,e,n,i){const s=i.step,r=e.x-t.x,o=e.y-t.y,l=r/n.x*s,a=o/n.y*s;return new Tn(t.x+l,t.y+a)}(t,e,i,s)),l=An.normalize(o+r/2);return r*Math.floor(l/r)}function Oo(t,e){const n=Math.abs(t-e);return n>180?360-n:n}function To(t,e){if(!t)return e;const n=Math.abs(t),i=Math.round(n/e);return i?e+(n-i*e)/i:n}function No(t,e){return t.round(e)}function ko(t,e,n){return No(function(t,e){const n=e.source,i=Mn.snapToGrid(t.x-n.x,e.x)+n.x,s=Mn.snapToGrid(t.y-n.y,e.y)+n.y;return new Tn(i,s)}(t.clone(),e),n)}function jo(t){return t.toString()}function Lo(t){return new Tn(0===t.x?0:Math.abs(t.x)/t.x,0===t.y?0:Math.abs(t.y)/t.y)}function Bo(t,e){let n=1/0;for(let i=0,s=e.length;i{if(n.includes(a)){const n=o[a],h=new Tn(t.x+n.x*(Math.abs(l.x)+e.width),t.y+n.y*(Math.abs(l.y)+e.height)),c=new kn(t,h).intersect(e)||[];let u,d=null;for(let e=0;eu)&&(u=i,d=n)}if(d){let t=ko(d,i,r);e.containsPoint(t)&&(t=ko(t.translate(n.x*i.x,n.y*i.y),i,r)),s.push(t)}}return s}),[]);return e.containsPoint(t)||a.push(ko(t,i,r)),a}function Do(t,e,n,i,s){const r=[];let o,l=Lo(s.diff(n)),a=jo(n),h=t[a];for(;h;){o=e[a];const n=Lo(o.diff(h));n.equals(l)||(r.unshift(o),l=n),a=jo(h),h=t[a]}const c=e[a];return Lo(c.diff(i)).equals(l)||r.unshift(c),r}function Io(t,e,n,i,s){const r=s.precision;let o,l;var a,h;o=Nn.isRectangle(e)?No(Ao(t,s).clone(),r):No(e.clone(),r),l=Nn.isRectangle(n)?No((a=t,h=s,a.targetAnchor?a.targetAnchor:So(a,h).getCenter()).clone(),r):No(n.clone(),r);const c=(u=s.step,g=l,{source:(d=o).clone(),x:To(g.x-d.x,u),y:To(g.y-d.y,u)});var u,d,g;const p=o,f=l;let m,y;if(m=Nn.isRectangle(e)?Ro(p,e,s.startDirections,c,s):[p],y=Nn.isRectangle(n)?Ro(l,n,s.endDirections,c,s):[f],m=m.filter((t=>i.isAccessible(t))),y=y.filter((t=>i.isAccessible(t))),m.length>0&&y.length>0){const t=new Co,e={},n={},o={};for(let i=0,s=m.length;i{e.gridOffsetX=e.offsetX/n*t.x,e.gridOffsetY=e.offsetY/n*t.y})),e.directions}(c,s),g=d.length,b=y.reduce(((t,e)=>{const n=jo(e);return t.push(n),t}),[]),v=Tn.equalPoints(m,y);let x=s.maxLoopCount;for(;!t.isEmpty()&&x>0;){const m=t.pop(),w=e[m],C=n[m],P=o[m],E=w.equals(p),S=null==C;let A;if(A=S?a?E?null:Mo(p,w,g,c,s):l:Mo(C,w,g,c,s),(!S||!v)&&b.indexOf(m)>=0)return s.previousDirectionAngle=A,Do(n,e,w,p,f);for(let l=0;ls.maxDirectionChange)continue;const m=ko(w.clone().translate(h.gridOffsetX||0,h.gridOffsetY||0),c,r),v=jo(m);if(t.isClose(v)||!i.isAccessible(m))continue;if(b.indexOf(v)>=0&&!m.equals(f)&&Oo(p,Mo(m,f,g,c,s))>s.maxDirectionChange)continue;const x=P+h.cost+(E?0:s.penalties[u]);(!t.isOpen(v)||x(e[n]="fallbackRouter"===n||"draggingRouter"===n||"fallbackRoute"===n?t[n]:wo(t[n],t),e)),{});if(e.padding){const t=gt(e.padding);e.paddingBox={x:-t.left,y:-t.top,width:t.left+t.right,height:t.top+t.bottom}}return e.directions.forEach((t=>{const e=new Tn(0,0),n=new Tn(t.offsetX,t.offsetY);t.angle=An.normalize(e.theta(n))})),e}(e),s=Eo(n,i),r=So(n,i),o=Ao(n,i),l=new Po(i).build(n.graph.model,n.cell),a=t.map((t=>Tn.create(t))),h=[];let c,u,d=o;for(let g=0,p=a.length;g<=p;g+=1){let e=null;if(c=u||s,u=a[g],null==u){u=r;const t=n.cell;if((null==t.getSourceCellId()||null==t.getTargetCellId())&&"function"==typeof i.draggingRouter){const t=c===s?o:c,r=u.getOrigin();e=H(i.draggingRouter,n,t,r,i)}}if(null==e&&(e=Io(n,c,u,l,i)),null===e)return H(i.fallbackRouter,this,t,i,n);const p=e[0];p&&p.equals(d)&&e.shift(),d=e[e.length-1]||d,h.push(...e)}return i.snapToGrid?function(t,e=10){if(t.length<=1)return t;for(let n=0,i=t.length;n90){const t=r;r=o,o=t}const l=i%90<45?r:o,a=new kn(t,l),h=90*Math.ceil(i/90),c=Tn.fromPolar(a.squaredLength(),An.toRad(h+135),l),u=new kn(e,c),d=a.intersectsWithLine(u),g=d||e,p=d?g:t,f=360/n.directions.length,m=p.theta(e),y=An.normalize(m+f/2),b=f*Math.floor(y/f);return n.previousDirectionAngle=b,g&&s.push(g.round()),s.push(e),s}};function Fo(t,e){if(null!=e&&!1!==e){const n="boolean"==typeof e?0:e;if(n>0){const e=Tn.create(t[1]).move(t[2],n),i=Tn.create(t[1]).move(t[0],n);return[e.toJSON(),...t,i.toJSON()]}{const e=t[1];return[Object.assign({},e),...t,Object.assign({},e)]}}return t}const Go=Object.freeze(Object.defineProperty({__proto__:null,er:function(t,e,n){const i=e.offset||32,s=null==e.min?16:e.min;let r=0,o=e.direction;const l=n.sourceBBox,a=n.targetBBox,h=l.getCenter(),c=a.getCenter();if("number"==typeof i&&(r=i),null==o){let t=a.left-l.right,e=a.top-l.bottom;t>=0&&e>=0?o=t>=e?"L":"T":t<=0&&e>=0?(t=l.left-a.right,o=t>=0&&t>=e?"R":"T"):t>=0&&e<=0?(e=l.top-a.bottom,o=e>=0?t>=e?"L":"B":"L"):(t=l.left-a.right,e=l.top-a.bottom,o=t>=0&&e>=0?t>=e?"R":"B":t<=0&&e>=0?"B":t>=0&&e<=0||Math.abs(t)>Math.abs(e)?"R":"B")}let u,d,g;"H"===o?o=c.x-h.x>=0?"L":"R":"V"===o&&(o=c.y-h.y>=0?"T":"B"),"center"===i&&("L"===o?r=(a.left-l.right)/2:"R"===o?r=(l.left-a.right)/2:"T"===o?r=(a.top-l.bottom)/2:"B"===o&&(r=(l.top-a.bottom)/2));const p="L"===o||"R"===o;if(p){if(c.y===h.y)return[...t];g="L"===o?1:-1,u="x",d="width"}else{if(c.x===h.x)return[...t];g="T"===o?1:-1,u="y",d="height"}const f=h.clone(),m=c.clone();if(f[u]+=g*(l[d]/2+r),m[u]-=g*(a[d]/2+r),p){const t=f.x,e=m.x,n=l.width/2+s,i=a.width/2+s;c.x>h.x?e<=t&&(f.x=Math.max(e,h.x+n),m.x=Math.min(t,c.x-i)):e>=t&&(f.x=Math.min(e,h.x-n),m.x=Math.max(t,c.x+i))}else{const t=f.y,e=m.y,n=l.height/2+s,i=a.height/2+s;c.y>h.y?e<=t&&(f.y=Math.max(e,h.y+n),m.y=Math.min(t,c.y-i)):e>=t&&(f.y=Math.min(e,h.y-n),m.y=Math.max(t,c.y+i))}return[f.toJSON(),...t,m.toJSON()]},loop:function(t,e,n){const i=e.width||50,s=(e.height||80)/2,r=e.angle||"auto",o=n.sourceAnchor,l=n.targetAnchor,a=n.sourceBBox,h=n.targetBBox;if(o.equals(l)){const t=t=>{const e=An.toRad(t),n=Math.sin(e),r=Math.cos(e),l=new Tn(o.x+r*i,o.y+n*i),a=new Tn(l.x-r*s,l.y-n*s),h=a.clone().rotate(-90,l),c=a.clone().rotate(90,l);return[h.toJSON(),l.toJSON(),c.toJSON()]},n=t=>{const e=o.clone().move(t,-1),n=new kn(e,t);return!a.containsPoint(t)&&!a.intersectsWithLine(n)},l=[0,90,180,270,45,135,225,315];if("number"==typeof r)return Fo(t(r),e.merge);const h=a.getCenter();if(h.equals(o))return Fo(t(0),e.merge);const c=h.angleBetween(o,h.clone().translate(1,0));let u=t(c);if(n(u[1]))return Fo(u,e.merge);for(let i=1,s=l.length;i0?a[h]=l[h]:l[h]=a[h],[l.toJSON(),...t,a.toJSON()]},orth:bo},Symbol.toStringTag,{value:"Module"}));var _o;!function(t){t.presets=Go,t.registry=Qn.create({type:"router"}),t.registry.register(t.presets,!0)}(_o||(_o={}));const qo=1/3,Ho=2/3;function Uo(t,e,n=[]){const i=[t,...n,e],s=[];return i.forEach(((t,e)=>{const n=i[e+1];null!=n&&s.push(new kn(t,n))})),s}function Wo(t,e){return new kn(t,e).squaredLength()}function Xo(t,e,n,i){const s=new Zn;let r;return r=Zn.createSegment("M",t[0].start),s.appendSegment(r),t.forEach(((o,l)=>{if(Jo.includes(o)){let t,i,l,a;if("arc"===n){t=-90,i=o.start.diff(o.end),(i.x<0||0===i.x&&i.y<0)&&(t+=180);const e=o.getCenter(),n=new kn(e,o.end).rotate(t,e);let h;h=new kn(o.start,e),l=h.pointAt(2/3).rotate(t,o.start),a=n.pointAt(1/3).rotate(-t,n.end),r=Zn.createSegment("C",l,a,n.end),s.appendSegment(r),h=new kn(e,o.end),l=n.pointAt(1/3).rotate(t,n.end),a=h.pointAt(1/3).rotate(-t,o.end),r=Zn.createSegment("C",l,a,o.end),s.appendSegment(r)}else if("gap"===n)r=Zn.createSegment("M",o.end),s.appendSegment(r);else if("cubic"===n){t=o.start.theta(o.end);const n=.6*e;let h=1.35*e;i=o.start.diff(o.end),(i.x<0||0===i.x&&i.y<0)&&(h*=-1),l=new Tn(o.start.x+n,o.start.y+h).rotate(t,o.start),a=new Tn(o.end.x-n,o.end.y+h).rotate(t,o.end),r=Zn.createSegment("C",l,a,o.end),s.appendSegment(r)}}else{const e=t[l+1];0===i||!e||Jo.includes(e)?(r=Zn.createSegment("L",o.end),s.appendSegment(r)):function(t,e,n,i,s){const r=n.distance(i)/2,o=n.distance(s)/2,l=-Math.min(t,r),a=-Math.min(t,o),h=n.clone().move(i,l).round(),c=n.clone().move(s,a).round(),u=new Tn(qo*h.x+Ho*n.x,Ho*n.y+qo*h.y),d=new Tn(qo*c.x+Ho*n.x,Ho*n.y+qo*c.y);let g;g=Zn.createSegment("L",h),e.appendSegment(g),g=Zn.createSegment("C",u,d,c),e.appendSegment(g)}(i,s,o.end,o.start,e.end)}})),s}let Jo,Yo;const Zo=Object.freeze(Object.defineProperty({__proto__:null,jumpover:function(t,e,n,i={}){Jo=[],Yo=[],function(t){let e=t.graph._jumpOverUpdateList;if(null==e&&(e=t.graph._jumpOverUpdateList=[],t.graph.on("cell:mouseup",(()=>{const e=t.graph._jumpOverUpdateList;setTimeout((()=>{for(let t=0;t{e=t.graph._jumpOverUpdateList=[]}))),e.indexOf(t)<0){e.push(t);const n=()=>e.splice(e.indexOf(t),1);t.cell.once("change:connector",n),t.cell.once("removed",n)}}(this);const s=i.size||5,r=i.type||"arc",o=i.radius||0,l=i.ignoreConnectors||["smooth"],a=this.graph,h=a.model.getEdges();if(1===h.length)return Xo(Uo(t,e,n),s,r,o);const c=this.cell,u=h.indexOf(c),d=a.options.connecting.connector||{},g=h.filter(((t,e)=>{const n=t.getConnector()||d;return!(l.includes(n.name)||e>u&&"jumpover"===n.name)})),p=g.map((t=>a.findViewByCell(t))),f=Uo(t,e,n),m=p.map((t=>null==t?[]:t===this?f:Uo(t.sourcePoint,t.targetPoint,t.routePoints))),y=[];f.forEach((t=>{const e=g.reduce(((e,n,i)=>{if(n!==c){const n=function(t,e){const n=[];return e.forEach((e=>{const i=t.intersectsWithLine(e);i&&n.push(i)})),n}(t,m[i]);e.push(...n)}return e}),[]).sort(((e,n)=>Wo(t.start,e)-Wo(t.start,n)));var n,i,r;e.length>0?y.push(...(n=t,i=e,r=s,i.reduce(((t,e,s)=>{if(Yo.includes(e))return t;const o=t.pop()||n,l=Tn.create(e).move(o.start,-r);let a=Tn.create(e).move(o.start,+r);const h=i[s+1];if(null!=h){const t=a.distance(h);t<=r&&(a=h.move(o.start,t),Yo.push(h))}else if(l.distance(o.end)<2*r+1)return t.push(o),t;if(a.distance(o.start)<2*r+1)return t.push(o),t;const c=new kn(l,a);return Jo.push(c),t.push(new kn(o.start,l),c,new kn(a,o.end)),t}),[]))):y.push(t)}));const b=Xo(y,s,r,o);return Jo=[],Yo=[],i.raw?b:b.serialize()},loop:function(t,e,n,i={}){const s=3===n.length?0:1,r=Tn.create(n[0+s]),o=Tn.create(n[2+s]),l=Tn.create(n[1+s]);if(!Tn.equals(t,e)){const n=new Tn((t.x+e.x)/2,(t.y+e.y)/2),i=n.angleBetween(Tn.create(t).rotate(90,n),l);i>1&&(r.rotate(180-i,n),o.rotate(180-i,n),l.rotate(180-i,n))}const a=`\n M ${t.x} ${t.y}\n Q ${r.x} ${r.y} ${l.x} ${l.y}\n Q ${o.x} ${o.y} ${e.x} ${e.y}\n `;return i.raw?Zn.parse(a):a},normal:function(t,e,n,i={}){const s=[t,...n,e],r=new zn(s),o=new Zn(r);return i.raw?o:o.serialize()},rounded:function(t,e,n,i={}){const s=new Zn;s.appendSegment(Zn.createSegment("M",t));const r=1/3,o=2/3,l=i.radius||10;let a,h;for(let c=0,u=n.length;c=Math.abs(t.y-e.y)?"H":"V"),"H"===r){const n=(t.x+e.x)/2;s.appendSegment(Zn.createSegment("C",n,t.y,n,e.y,e.x,e.y))}else{const n=(t.y+e.y)/2;s.appendSegment(Zn.createSegment("C",t.x,n,e.x,n,e.x,e.y))}return i.raw?s:s.serialize()}},Symbol.toStringTag,{value:"Module"}));var Qo;!function(t){t.presets=Zo,t.registry=Qn.create({type:"connector"}),t.registry.register(t.presets,!0)}(Qo||(Qo={}));var Ko=globalThis&&globalThis.__decorate||function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};class tl extends st{constructor(t={}){super(),this.pending=!1,this.changing=!1,this.data={},this.mutate(a(t)),this.changed={}}mutate(t,e={}){const n=!0===e.unset,i=!0===e.silent,s=[],r=this.changing;this.changing=!0,r||(this.previous=a(this.data),this.changed={});const o=this.data,l=this.previous,h=this.changed;if(Object.keys(t).forEach((e=>{const i=e,r=t[i];f(o[i],r)||s.push(i),f(l[i],r)?delete h[i]:h[i]=r,n?delete o[i]:o[i]=r})),!i&&s.length>0&&(this.pending=!0,this.pendingOptions=e,s.forEach((t=>{this.emit("change:*",{key:t,options:e,store:this,current:o[t],previous:l[t]})}))),r)return this;if(!i)for(;this.pending;)this.pending=!1,this.emit("changed",{current:o,previous:l,store:this,options:this.pendingOptions});return this.pending=!1,this.changing=!1,this.pendingOptions=null,this}get(t,e){if(null==t)return this.data;const n=this.data[t];return null==n?e:n}getPrevious(t){if(this.previous){const e=this.previous[t];return null==e?void 0:e}}set(t,e,n){return null!=t&&("object"==typeof t?this.mutate(t,e):this.mutate({[t]:e},n)),this}remove(t,e){const n=void 0,i={};let s;if("string"==typeof t)i[t]=n,s=e;else if(Array.isArray(t))t.forEach((t=>i[t]=n)),s=e;else{for(const t in this.data)i[t]=n;s=t}return this.mutate(i,Object.assign(Object.assign({},s),{unset:!0})),this}getByPath(t){return et(this.data,t,"/")}setByPath(t,e,n={}){const i="/",s=Array.isArray(t)?[...t]:t.split(i),r=Array.isArray(t)?t.join(i):t,o=s[0],l=s.length;if(n.propertyPath=r,n.propertyValue=e,n.propertyPathArray=s,1===l)this.set(o,e,n);else{const r={};let h=r,u=o;for(let t=1;t0:t in this.changed}getChanges(t){if(null==t)return this.hasChanged()?a(this.changed):null;const e=this.changing?this.previous:this.data,n={};let i;for(const s in t){const r=t[s];f(e[s],r)||(n[s]=r,i=!0)}return i?a(n):null}toJSON(){return a(this.data)}clone(){return new(0,this.constructor)(this.data)}dispose(){this.off(),this.data={},this.previous={},this.changed={},this.pending=!1,this.changing=!1,this.pendingOptions=null,this.trigger("disposed",{store:this})}}Ko([st.dispose()],tl.prototype,"dispose",null);class el{constructor(t){this.cell=t,this.ids={},this.cache={}}get(){return Object.keys(this.ids)}start(t,e,n={},i="/"){const s=this.cell.getPropByPath(t),r=m(n,el.defaultOptions),o=this.getTiming(r.timing),l=this.getInterp(r.interp,s,e);let a=0;const h=Array.isArray(t)?t.join(i):t,c=Array.isArray(t)?t:t.split(i),u=()=>{const t=(new Date).getTime();0===a&&(a=t);let e=(t-a)/r.duration;e<1?this.ids[h]=requestAnimationFrame(u):e=1;const i=l(o(e));this.cell.setPropByPath(c,i),n.progress&&n.progress(Object.assign({progress:e,currentValue:i},this.getArgs(h))),1===e&&(this.cell.notify("transition:complete",this.getArgs(h)),n.complete&&n.complete(this.getArgs(h)),this.cell.notify("transition:finish",this.getArgs(h)),n.finish&&n.finish(this.getArgs(h)),this.clean(h))};return setTimeout((()=>{this.stop(t,void 0,i),this.cache[h]={startValue:s,targetValue:e,options:r},this.ids[h]=requestAnimationFrame(u),this.cell.notify("transition:start",this.getArgs(h)),n.start&&n.start(this.getArgs(h))}),n.delay),this.stop.bind(this,t,i,n)}stop(t,e={},n="/"){const i=Array.isArray(t)?t:t.split(n);return Object.keys(this.ids).filter((t=>f(i,t.split(n).slice(0,i.length)))).forEach((t=>{cancelAnimationFrame(this.ids[t]);const n=this.cache[t],i=this.getArgs(t),s=Object.assign(Object.assign({},n.options),e),r=s.jumpedToEnd;r&&null!=n.targetValue&&(this.cell.setPropByPath(t,n.targetValue),this.cell.notify("transition:end",Object.assign({},i)),this.cell.notify("transition:complete",Object.assign({},i)),s.complete&&s.complete(Object.assign({},i)));const o=Object.assign({jumpedToEnd:r},i);this.cell.notify("transition:stop",Object.assign({},o)),s.stop&&s.stop(Object.assign({},o)),this.cell.notify("transition:finish",Object.assign({},i)),s.finish&&s.finish(Object.assign({},i)),this.clean(t)})),this}clean(t){delete this.ids[t],delete this.cache[t]}getTiming(t){return"string"==typeof t?bn[t]:t}getInterp(t,e,n){return t?t(e,n):"number"==typeof n?vn.number(e,n):"string"==typeof n?"#"===n[0]?vn.color(e,n):vn.unit(e,n):vn.object(e,n)}getArgs(t){const e=this.cache[t];return{path:t,startValue:e.startValue,targetValue:e.targetValue,cell:this.cell}}}(el||(el={})).defaultOptions={delay:10,duration:100,timing:"linear"};var nl,il=globalThis&&globalThis.__decorate||function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o},sl=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s{"function"==typeof t&&this.propHooks.push(t)}))),i&&(this.attrHooks=Object.assign(Object.assign({},this.attrHooks),i)),this.defaults=c({},this.defaults,s)}static getMarkup(){return this.markup}static getDefaults(t){return t?this.defaults:a(this.defaults)}static getAttrHooks(){return this.attrHooks}static applyPropHooks(t,e){return this.propHooks.reduce(((e,n)=>n?H(n,t,e):e),e)}get[Symbol.toStringTag](){return rl.toStringTag}constructor(t={}){super();const e=this.constructor.getDefaults(!0),n=c({},this.preprocess(e),this.preprocess(t));this.id=n.id||ht(),this.store=new tl(n),this.animation=new el(this),this.setup(),this.init(),this.postprocess(t)}init(){}get model(){return this._model}set model(t){this._model!==t&&(this._model=t)}preprocess(t,e){const n=t.id,i=this.constructor.applyPropHooks(this,t);return null==n&&!0!==e&&(i.id=ht()),i}postprocess(t){}setup(){this.store.on("change:*",(t=>{const{key:e,current:n,previous:i,options:s}=t;this.notify("change:*",{key:e,options:s,current:n,previous:i,cell:this}),this.notify(`change:${e}`,{options:s,current:n,previous:i,cell:this});const r=e;"source"!==r&&"target"!==r||this.notify("change:terminal",{type:r,current:n,previous:i,options:s,cell:this})})),this.store.on("changed",(({options:t})=>this.notify("changed",{options:t,cell:this})))}notify(t,e){this.trigger(t,e);const n=this.model;return n&&(n.notify(`cell:${t}`,e),this.isNode()?n.notify(`node:${t}`,Object.assign(Object.assign({},e),{node:this})):this.isEdge()&&n.notify(`edge:${t}`,Object.assign(Object.assign({},e),{edge:this}))),this}isNode(){return!1}isEdge(){return!1}isSameStore(t){return this.store===t.store}get view(){return this.store.get("view")}get shape(){return this.store.get("shape","")}getProp(t,e){return null==t?this.store.get():this.store.get(t,e)}setProp(t,e,n){if("string"==typeof t)this.store.set(t,e,n);else{const n=this.preprocess(t,!0);this.store.set(c({},this.getProp(),n),e),this.postprocess(t)}return this}removeProp(t,e){return"string"==typeof t||Array.isArray(t)?this.store.removeByPath(t,e):this.store.remove(e),this}hasChanged(t){return null==t?this.store.hasChanged():this.store.hasChanged(t)}getPropByPath(t){return this.store.getByPath(t)}setPropByPath(t,e,n={}){return this.model&&("children"===t?this._children=e?e.map((t=>this.model.getCell(t))).filter((t=>null!=t)):null:"parent"===t&&(this._parent=e?this.model.getCell(e):null)),this.store.setByPath(t,e,n),this}removePropByPath(t,e={}){const n=Array.isArray(t)?t:t.split("/");return"attrs"===n[0]&&(e.dirty=!0),this.store.removeByPath(n,e),this}prop(t,e,n){return null==t?this.getProp():"string"==typeof t||Array.isArray(t)?1===arguments.length?this.getPropByPath(t):null==e?this.removePropByPath(t,n||{}):this.setPropByPath(t,e,n||{}):this.setProp(t,e||{})}previous(t){return this.store.getPrevious(t)}get zIndex(){return this.getZIndex()}set zIndex(t){null==t?this.removeZIndex():this.setZIndex(t)}getZIndex(){return this.store.get("zIndex")}setZIndex(t,e={}){return this.store.set("zIndex",t,e),this}removeZIndex(t={}){return this.store.remove("zIndex",t),this}toFront(t={}){const e=this.model;if(e){let n,i=e.getMaxZIndex();t.deep?(n=this.getDescendants({deep:!0,breadthFirst:!0}),n.unshift(this)):n=[this],i=i-n.length+1;const s=e.total();let r=e.indexOf(this)!==s-n.length;r||(r=n.some(((t,e)=>t.getZIndex()!==i+e))),r&&this.batchUpdate("to-front",(()=>{i+=n.length,n.forEach(((e,n)=>{e.setZIndex(i+n,t)}))}))}return this}toBack(t={}){const e=this.model;if(e){let n,i=e.getMinZIndex();t.deep?(n=this.getDescendants({deep:!0,breadthFirst:!0}),n.unshift(this)):n=[this];let s=0!==e.indexOf(this);s||(s=n.some(((t,e)=>t.getZIndex()!==i+e))),s&&this.batchUpdate("to-back",(()=>{i-=n.length,n.forEach(((e,n)=>{e.setZIndex(i+n,t)}))}))}return this}get markup(){return this.getMarkup()}set markup(t){null==t?this.removeMarkup():this.setMarkup(t)}getMarkup(){let t=this.store.get("markup");return null==t&&(t=this.constructor.getMarkup()),t}setMarkup(t,e={}){return this.store.set("markup",t,e),this}removeMarkup(t={}){return this.store.remove("markup",t),this}get attrs(){return this.getAttrs()}set attrs(t){null==t?this.removeAttrs():this.setAttrs(t)}getAttrs(){const t=this.store.get("attrs");return t?Object.assign({},t):{}}setAttrs(t,e={}){if(null==t)this.removeAttrs(e);else{const n=t=>this.store.set("attrs",t,e);if(!0===e.overwrite)n(t);else{const i=this.getAttrs();!1===e.deep?n(Object.assign(Object.assign({},i),t)):n(c({},i,t))}}return this}replaceAttrs(t,e={}){return this.setAttrs(t,Object.assign(Object.assign({},e),{overwrite:!0}))}updateAttrs(t,e={}){return this.setAttrs(t,Object.assign(Object.assign({},e),{deep:!1}))}removeAttrs(t={}){return this.store.remove("attrs",t),this}getAttrDefinition(t){if(!t)return null;const n=this.constructor.getAttrHooks()||{};let i=n[t]||Rs.registry.get(t);if(!i){const s=e(t);i=n[s]||Rs.registry.get(s)}return i||null}getAttrByPath(t){return null==t||""===t?this.getAttrs():this.getPropByPath(this.prefixAttrPath(t))}setAttrByPath(t,e,n={}){return this.setPropByPath(this.prefixAttrPath(t),e,n),this}removeAttrByPath(t,e={}){return this.removePropByPath(this.prefixAttrPath(t),e),this}prefixAttrPath(t){return Array.isArray(t)?["attrs"].concat(t):`attrs/${t}`}attr(t,e,n){return null==t?this.getAttrByPath():"string"==typeof t||Array.isArray(t)?1===arguments.length?this.getAttrByPath(t):null==e?this.removeAttrByPath(t,n||{}):this.setAttrByPath(t,e,n||{}):this.setAttrs(t,e||{})}get visible(){return this.isVisible()}set visible(t){this.setVisible(t)}setVisible(t,e={}){return this.store.set("visible",t,e),this}isVisible(){return!1!==this.store.get("visible")}show(t={}){return this.isVisible()||this.setVisible(!0,t),this}hide(t={}){return this.isVisible()&&this.setVisible(!1,t),this}toggleVisible(t,e={}){const n="boolean"==typeof t?e:t;return("boolean"==typeof t?t:!this.isVisible())?this.show(n):this.hide(n),this}get data(){return this.getData()}set data(t){this.setData(t)}getData(){return this.store.get("data")}setData(t,e={}){if(null==t)this.removeData(e);else{const n=t=>this.store.set("data",t,e);if(!0===e.overwrite)n(t);else{const i=this.getData();!1===e.deep?n("object"==typeof t?Object.assign(Object.assign({},i),t):t):n(c({},i,t))}}return this}replaceData(t,e={}){return this.setData(t,Object.assign(Object.assign({},e),{overwrite:!0}))}updateData(t,e={}){return this.setData(t,Object.assign(Object.assign({},e),{deep:!1}))}removeData(t={}){return this.store.remove("data",t),this}get parent(){return this.getParent()}get children(){return this.getChildren()}getParentId(){return this.store.get("parent")}getParent(){const t=this.getParentId();if(t&&this.model){const e=this.model.getCell(t);return this._parent=e,e}return null}getChildren(){const t=this.store.get("children");if(t&&t.length&&this.model){const e=t.map((t=>{var e;return null===(e=this.model)||void 0===e?void 0:e.getCell(t)})).filter((t=>null!=t));return this._children=e,[...e]}return null}hasParent(){return null!=this.parent}isParentOf(t){return null!=t&&t.getParent()===this}isChildOf(t){return null!=t&&this.getParent()===t}eachChild(t,e){return this.children&&this.children.forEach(t,e),this}filterChild(t,e){return this.children?this.children.filter(t,e):[]}getChildCount(){return null==this.children?0:this.children.length}getChildIndex(t){return null==this.children?-1:this.children.indexOf(t)}getChildAt(t){return null!=this.children&&t>=0?this.children[t]:null}getAncestors(t={}){const e=[];let n=this.getParent();for(;n;)e.push(n),n=!1!==t.deep?n.getParent():null;return e}getDescendants(t={}){if(!1!==t.deep){if(t.breadthFirst){const t=[],e=this.getChildren()||[];for(;e.length>0;){const n=e.shift(),i=n.getChildren();t.push(n),i&&e.push(...i)}return t}{const e=this.getChildren()||[];return e.forEach((n=>{e.push(...n.getDescendants(t))})),e}}return this.getChildren()||[]}isDescendantOf(t,e={}){if(null==t)return!1;if(!1!==e.deep){let e=this.getParent();for(;e;){if(e===t)return!0;e=e.getParent()}return!1}return this.isChildOf(t)}isAncestorOf(t,e={}){return null!=t&&t.isDescendantOf(this,e)}contains(t){return this.isAncestorOf(t)}getCommonAncestor(...t){return rl.getCommonAncestor(this,...t)}setParent(t,e={}){return this._parent=t,t?this.store.set("parent",t.id,e):this.store.remove("parent",e),this}setChildren(t,e={}){return this._children=t,null!=t?this.store.set("children",t.map((t=>t.id)),e):this.store.remove("children",e),this}unembed(t,e={}){const n=this.children;if(null!=n&&null!=t){const i=this.getChildIndex(t);-1!==i&&(n.splice(i,1),t.setParent(null,e),this.setChildren(n,e))}return this}embed(t,e={}){return t.addTo(this,e),this}addTo(t,e={}){return rl.isCell(t)?t.addChild(this,e):t.addCell(this,e),this}insertTo(t,e,n={}){return t.insertChild(this,e,n),this}addChild(t,e={}){return this.insertChild(t,void 0,e)}insertChild(t,e,n={}){if(null!=t&&t!==this){const i=t.getParent(),s=this!==i;let r=e;if(null==r&&(r=this.getChildCount(),s||(r-=1)),i){const e=i.getChildren();if(e){const s=e.indexOf(t);s>=0&&(t.setParent(null,n),e.splice(s,1),i.setChildren(e,n))}}let o=this.children;if(null==o?(o=[],o.push(t)):o.splice(r,0,t),t.setParent(this,n),this.setChildren(o,n),s&&this.model){const t=this.model.getIncomingEdges(this),e=this.model.getOutgoingEdges(this);t&&t.forEach((t=>t.updateParent(n))),e&&e.forEach((t=>t.updateParent(n)))}this.model&&this.model.addCell(t,n)}return this}removeFromParent(t={}){const e=this.getParent();if(null!=e){const n=e.getChildIndex(this);e.removeChildAt(n,t)}return this}removeChild(t,e={}){const n=this.getChildIndex(t);return this.removeChildAt(n,e)}removeChildAt(t,e={}){const n=this.getChildAt(t);return null!=this.children&&null!=n&&(this.unembed(n,e),n.remove(e)),n}remove(t={}){return this.batchUpdate("remove",(()=>{const e=this.getParent();e&&e.removeChild(this,t),!1!==t.deep&&this.eachChild((e=>e.remove(t))),this.model&&this.model.removeCell(this,t)})),this}transition(t,e,n={},i="/"){return this.animation.start(t,e,n,i)}stopTransition(t,e,n="/"){return this.animation.stop(t,e,n),this}getTransitions(){return this.animation.get()}translate(t,e,n){return this}scale(t,e,n,i){return this}addTools(t,e,n){const i=Array.isArray(t)?t:[t],s="string"==typeof e?e:null,r="object"==typeof e?e:"object"==typeof n?n:{};if(r.reset)return this.setTools({name:s,items:i,local:r.local},r);let o=a(this.getTools());return null==o||null==s||o.name===s?(null==o&&(o={}),o.items||(o.items=[]),o.name=s,o.items=[...o.items,...i],this.setTools(Object.assign({},o),r)):void 0}setTools(t,e={}){return null==t?this.removeTools():this.store.set("tools",rl.normalizeTools(t),e),this}getTools(){return this.store.get("tools")}removeTools(t={}){return this.store.remove("tools",t),this}hasTools(t){const e=this.getTools();return null!=e&&(null==t||e.name===t)}hasTool(t){const e=this.getTools();return null!=e&&e.items.some((e=>"string"==typeof e?e===t:e.name===t))}removeTool(t,e={}){const n=a(this.getTools());if(n){let i=!1;const s=n.items.slice(),r=t=>{s.splice(t,1),i=!0};if("number"==typeof t)r(t);else for(let e=s.length-1;e>=0;e-=1){const n=s[e];("string"==typeof n?n===t:n.name===t)&&r(e)}i&&(n.items=s,this.setTools(n,e))}return this}getBBox(t){return new Nn}getConnectionPoint(t,e){return new Tn}toJSON(t={}){const e=Object.assign({},this.store.get()),i=Object.prototype.toString,s=this.isNode()?"node":this.isEdge()?"edge":"cell";if(!e.shape){const t=this.constructor;throw new Error(`Unable to serialize ${s} missing "shape" prop, check the ${s} "${t.name||i.call(t)}"`)}const r=this.constructor,l=!0===t.diff,h=e.attrs||{},c=r.getDefaults(!0),u=l?this.preprocess(c,!0):c,d=u.attrs||{},g={};Object.entries(e).forEach((([t,n])=>{if(null!=n&&!Array.isArray(n)&&"object"==typeof n&&!o(n))throw new Error(`Can only serialize ${s} with plain-object props, but got a "${i.call(n)}" type of key "${t}" on ${s} "${this.id}"`);if("attrs"!==t&&"shape"!==t&&l){const i=u[t];f(n,i)&&delete e[t]}})),Object.keys(h).forEach((t=>{const e=h[t],i=d[t];Object.keys(e).forEach((s=>{const r=e[s],o=i?i[s]:null;null==r||"object"!=typeof r||Array.isArray(r)?null!=i&&f(o,r)||(null==g[t]&&(g[t]={}),g[t][s]=r):Object.keys(r).forEach((e=>{const l=r[e];null!=i&&null!=o&&n(o)&&f(o[e],l)||(null==g[t]&&(g[t]={}),null==g[t][s]&&(g[t][s]={}),g[t][s][e]=l)}))}))}));const p=Object.assign(Object.assign({},e),{attrs:y(g)?void 0:g});null==p.attrs&&delete p.attrs;const m=p;return 0===m.angle&&delete m.angle,a(m)}clone(t={}){if(!t.deep){const e=Object.assign({},this.store.get());return t.keepId||delete e.id,delete e.parent,delete e.children,new(0,this.constructor)(e)}return rl.deepClone(this)[this.id]}findView(t){return t.findViewByCell(this)}startBatch(t,e={},n=this.model){return this.notify("batch:start",{name:t,data:e,cell:this}),n&&n.startBatch(t,Object.assign(Object.assign({},e),{cell:this})),this}stopBatch(t,e={},n=this.model){return n&&n.stopBatch(t,Object.assign(Object.assign({},e),{cell:this})),this.notify("batch:stop",{name:t,data:e,cell:this}),this}batchUpdate(t,e,n){const i=this.model;this.startBatch(t,n,i);const s=e();return this.stopBatch(t,n,i),s}dispose(){this.removeFromParent(),this.store.dispose()}}rl.defaults={},rl.attrHooks={},rl.propHooks=[],il([st.dispose()],rl.prototype,"dispose",null),(rl||(rl={})).normalizeTools=function(t){return"string"==typeof t?{items:[t]}:Array.isArray(t)?{items:t}:t.items?t:{items:[t]}},function(t){t.toStringTag=`X6.${t.name}`,t.isCell=function(e){if(null==e)return!1;if(e instanceof t)return!0;const n=e[Symbol.toStringTag],i=e;return(null==n||n===t.toStringTag)&&"function"==typeof i.isNode&&"function"==typeof i.isEdge&&"function"==typeof i.prop&&"function"==typeof i.attr}}(rl||(rl={})),function(t){t.getCommonAncestor=function(...t){const e=t.filter((t=>null!=t)).map((t=>t.getAncestors())).sort(((t,e)=>t.length-e.length));return e.shift().find((t=>e.every((e=>e.includes(t)))))||null},t.getCellsBBox=function(t,e={}){let n=null;for(let i=0,s=t.length;i(t[e.id]=e.clone(),t)),{});return e.forEach((t=>{const e=n[t.id];if(e.isEdge()){const t=e.getSourceCellId(),i=e.getTargetCellId();t&&n[t]&&e.setSource(Object.assign(Object.assign({},e.getSource()),{cell:n[t].id})),i&&n[i]&&e.setTarget(Object.assign(Object.assign({},e.getTarget()),{cell:n[i].id}))}const i=t.getParent();i&&n[i.id]&&e.setParent(n[i.id]);const s=t.getChildren();if(s&&s.length){const t=s.reduce(((t,e)=>(n[e.id]&&t.push(n[e.id]),t)),[]);t.length>0&&e.setChildren(t)}})),n}}(rl||(rl={})),function(t){t.config({propHooks(e){var{tools:n}=e,i=sl(e,["tools"]);return n&&(i.tools=t.normalizeTools(n)),i}})}(rl||(rl={})),function(t){let e,n;t.exist=function(t,i){return i?null!=e&&e.exist(t):null!=n&&n.exist(t)},t.setEdgeRegistry=function(t){e=t},t.setNodeRegistry=function(t){n=t}}(nl||(nl={}));class ol{constructor(t){this.ports=[],this.groups={},this.init(a(t))}getPorts(){return this.ports}getGroup(t){return null!=t?this.groups[t]:null}getPortsByGroup(t){return this.ports.filter((e=>e.group===t||null==e.group&&null==t))}getPortsLayoutByGroup(t,e){const n=this.getPortsByGroup(t),i=t?this.getGroup(t):null,s=i?i.position:null,r=s?s.name:null;let o;if(null!=r){const t=Ks.registry.get(r);if(null==t)return Ks.registry.onNotFound(r);o=t}else o=Ks.presets.left;const l=n.map((t=>t&&t.position&&t.position.args||{})),a=s&&s.args||{};return o(l,e,a).map(((t,i)=>{const s=n[i];return{portLayout:t,portId:s.id,portSize:s.size,portAttrs:s.attrs,labelSize:s.label.size,labelLayout:this.getPortLabelLayout(s,Tn.create(t.position),e)}}))}init(t){const{groups:e,items:n}=t;null!=e&&Object.keys(e).forEach((t=>{this.groups[t]=this.parseGroup(e[t])})),Array.isArray(n)&&n.forEach((t=>{this.ports.push(this.parsePort(t))}))}parseGroup(t){return Object.assign(Object.assign({},t),{label:this.getLabel(t,!0),position:this.getPortPosition(t.position,!0)})}parsePort(t){const e=Object.assign({},t),n=this.getGroup(t.group)||{};return e.markup=e.markup||n.markup,e.attrs=c({},n.attrs,e.attrs),e.position=this.createPosition(n,e),e.label=c({},n.label,this.getLabel(e)),e.zIndex=this.getZIndex(n,e),e.size=Object.assign(Object.assign({},n.size),e.size),e}getZIndex(t,e){return"number"==typeof e.zIndex?e.zIndex:"number"==typeof t.zIndex||"auto"===t.zIndex?t.zIndex:"auto"}createPosition(t,e){return c({name:"left",args:{}},t.position,{args:e.args})}getPortPosition(t,e=!1){if(null==t){if(e)return{name:"left",args:{}}}else{if("string"==typeof t)return{name:t,args:{}};if(Array.isArray(t))return{name:"absolute",args:{x:t[0],y:t[1]}};if("object"==typeof t)return t}return{args:{}}}getPortLabelPosition(t,e=!1){if(null==t){if(e)return{name:"left",args:{}}}else{if("string"==typeof t)return{name:t,args:{}};if("object"==typeof t)return t}return{args:{}}}getLabel(t,e=!1){const n=t.label||{};return n.position=this.getPortLabelPosition(n.position,e),n}getPortLabelLayout(t,e,n){const i=t.label.position.name||"left",s=t.label.position.args||{},r=lr.registry.get(i)||lr.presets.left;return r?r(e,n,s):null}}var ll=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s{var s;(null===(s=n.exclude)||void 0===s?void 0:s.includes(i))||i.translate(t,e,n)}))):(this.startBatch("translate",n),this.store.set("position",s,n),this.eachChild((i=>{var s;(null===(s=n.exclude)||void 0===s?void 0:s.includes(i))||i.translate(t,e,n)})),this.stopBatch("translate",n)),this}angle(t,e){return null==t?this.getAngle():this.rotate(t,e)}getAngle(){return this.store.get("angle",0)}rotate(t,e={}){const n=this.getAngle();if(e.center){const i=this.getSize(),s=this.getPosition(),r=this.getBBox().getCenter();r.rotate(n-t,e.center);const o=r.x-i.width/2-s.x,l=r.y-i.height/2-s.y;this.startBatch("rotate",{angle:t,options:e}),this.setPosition(s.x+o,s.y+l,e),this.rotate(t,Object.assign(Object.assign({},e),{center:null})),this.stopBatch("rotate")}else this.store.set("angle",e.absolute?t:(n+t)%360,e);return this}getBBox(t={}){if(t.deep){const t=this.getDescendants({deep:!0,breadthFirst:!0});return t.push(this),rl.getCellsBBox(t)}return Nn.fromPositionAndSize(this.getPosition(),this.getSize())}getConnectionPoint(t,e){const n=this.getBBox(),i=n.getCenter(),s=t.getTerminal(e);if(null==s)return i;const r=s.port;if(!r||!this.hasPort(r))return i;const o=this.getPort(r);if(!o||!o.group)return i;const l=this.getPortsPosition(o.group)[r].position,a=Tn.create(l).translate(n.getOrigin()),h=this.getAngle();return h&&a.rotate(-h,i),a}fit(t={}){const e=(this.getChildren()||[]).filter((t=>t.isNode()));if(0===e.length)return this;this.startBatch("fit-embeds",t),t.deep&&e.forEach((e=>e.fit(t)));let{x:n,y:i,width:s,height:r}=rl.getCellsBBox(e);const o=gt(t.padding);return n-=o.left,i-=o.top,s+=o.left+o.right,r+=o.bottom+o.top,this.store.set({position:{x:n,y:i},size:{width:s,height:r}},t),this.stopBatch("fit-embeds"),this}get portContainerMarkup(){return this.getPortContainerMarkup()}set portContainerMarkup(t){this.setPortContainerMarkup(t)}getDefaultPortContainerMarkup(){return this.store.get("defaultPortContainerMarkup")||hr.getPortContainerMarkup()}getPortContainerMarkup(){return this.store.get("portContainerMarkup")||this.getDefaultPortContainerMarkup()}setPortContainerMarkup(t,e={}){return this.store.set("portContainerMarkup",hr.clone(t),e),this}get portMarkup(){return this.getPortMarkup()}set portMarkup(t){this.setPortMarkup(t)}getDefaultPortMarkup(){return this.store.get("defaultPortMarkup")||hr.getPortMarkup()}getPortMarkup(){return this.store.get("portMarkup")||this.getDefaultPortMarkup()}setPortMarkup(t,e={}){return this.store.set("portMarkup",hr.clone(t),e),this}get portLabelMarkup(){return this.getPortLabelMarkup()}set portLabelMarkup(t){this.setPortLabelMarkup(t)}getDefaultPortLabelMarkup(){return this.store.get("defaultPortLabelMarkup")||hr.getPortLabelMarkup()}getPortLabelMarkup(){return this.store.get("portLabelMarkup")||this.getDefaultPortLabelMarkup()}setPortLabelMarkup(t,e={}){return this.store.set("portLabelMarkup",hr.clone(t),e),this}get ports(){const t=this.store.get("ports",{items:[]});return null==t.items&&(t.items=[]),t}getPorts(){return a(this.ports.items)}getPortsByGroup(t){return this.getPorts().filter((e=>e.group===t))}getPort(t){return a(this.ports.items.find((e=>e.id&&e.id===t)))}getPortAt(t){return this.ports.items[t]||null}hasPorts(){return this.ports.items.length>0}hasPort(t){return-1!==this.getPortIndex(t)}getPortIndex(t){const e="string"==typeof t?t:t.id;return null!=e?this.ports.items.findIndex((t=>t.id===e)):-1}getPortsPosition(t){const e=this.getSize();return this.port.getPortsLayoutByGroup(t,new Nn(0,0,e.width,e.height)).reduce(((t,e)=>{const n=e.portLayout;return t[e.portId]={position:Object.assign({},n.position),angle:n.angle||0},t}),{})}getPortProp(t,e){return this.getPropByPath(this.prefixPortPath(t,e))}setPortProp(t,e,n,i){if("string"==typeof e||Array.isArray(e)){const s=this.prefixPortPath(t,e),r=n;return this.setPropByPath(s,r,i)}const s=this.prefixPortPath(t),r=e;return this.setPropByPath(s,r,n)}removePortProp(t,e,n){return"string"==typeof e||Array.isArray(e)?this.removePropByPath(this.prefixPortPath(t,e),n):this.removePropByPath(this.prefixPortPath(t),e)}portProp(t,e,n,i){return null==e?this.getPortProp(t):"string"==typeof e||Array.isArray(e)?2===arguments.length?this.getPortProp(t,e):null==n?this.removePortProp(t,e,i):this.setPortProp(t,e,n,i):this.setPortProp(t,e,n)}prefixPortPath(t,e){const n=this.getPortIndex(t);if(-1===n)throw new Error(`Unable to find port with id: "${t}"`);return null==e||""===e?["ports","items",`${n}`]:Array.isArray(e)?["ports","items",`${n}`,...e]:`ports/items/${n}/${e}`}addPort(t,e){const n=[...this.ports.items];return n.push(t),this.setPropByPath("ports/items",n,e),this}addPorts(t,e){return this.setPropByPath("ports/items",[...this.ports.items,...t],e),this}insertPort(t,e,n){const i=[...this.ports.items];return i.splice(t,0,e),this.setPropByPath("ports/items",i,n),this}removePort(t,e={}){return this.removePortAt(this.getPortIndex(t),e)}removePortAt(t,e={}){if(t>=0){const n=[...this.ports.items];n.splice(t,1),e.rewrite=!0,this.setPropByPath("ports/items",n,e)}return this}removePorts(t,e){let n;if(Array.isArray(t)){if(n=e||{},t.length){n.rewrite=!0;const e=[...this.ports.items].filter((e=>!t.some((t=>{const n="string"==typeof t?t:t.id;return e.id===n}))));this.setPropByPath("ports/items",e,n)}}else n=t||{},n.rewrite=!0,this.setPropByPath("ports/items",[],n);return this}getParsedPorts(){return this.port.getPorts()}getParsedGroups(){return this.port.groups}getPortsLayoutByGroup(t,e){return this.port.getPortsLayoutByGroup(t,e)}initPorts(){this.updatePortData(),this.on("change:ports",(()=>{this.processRemovedPort(),this.updatePortData()}))}processRemovedPort(){const t=this.ports,e={};t.items.forEach((t=>{t.id&&(e[t.id]=!0)}));const n={};(this.store.getPrevious("ports")||{items:[]}).items.forEach((t=>{t.id&&!e[t.id]&&(n[t.id]=!0)}));const i=this.model;i&&!y(n)&&(i.getConnectedEdges(this,{incoming:!0}).forEach((t=>{const e=t.getTargetPortId();e&&n[e]&&t.remove()})),i.getConnectedEdges(this,{outgoing:!0}).forEach((t=>{const e=t.getSourcePortId();e&&n[e]&&t.remove()})))}validatePorts(){const t={},e=[];return this.ports.items.forEach((n=>{"object"!=typeof n&&e.push(`Invalid port ${n}.`),null==n.id&&(n.id=this.generatePortId()),t[n.id]&&e.push("Duplicitied port id."),t[n.id]=!0})),e}generatePortId(){return ht()}updatePortData(){const t=this.validatePorts();if(t.length>0)throw this.store.set("ports",this.store.getPrevious("ports")),new Error(t.join(" "));const e=this.port?this.port.getPorts():null;this.port=new ol(this.ports);const n=this.port.getPorts(),i=e?n.filter((t=>e.find((e=>e.id===t.id))?null:t)):[...n],s=e?e.filter((t=>n.find((e=>e.id===t.id))?null:t)):[];i.length>0&&this.notify("ports:added",{added:i,cell:this,node:this}),s.length>0&&this.notify("ports:removed",{removed:s,cell:this,node:this})}};al.defaults={angle:0,position:{x:0,y:0},size:{width:1,height:1}},function(t){t.toStringTag=`X6.${t.name}`,t.isNode=function(e){if(null==e)return!1;if(e instanceof t)return!0;const n=e[Symbol.toStringTag],i=e;return(null==n||n===t.toStringTag)&&"function"==typeof i.isNode&&"function"==typeof i.isEdge&&"function"==typeof i.prop&&"function"==typeof i.attr&&"function"==typeof i.size&&"function"==typeof i.position}}(al||(al={})),(al||(al={})).config({propHooks(t){var{ports:e}=t,n=ll(t,["ports"]);return e&&(n.ports=Array.isArray(e)?{items:e}:e),n}}),function(t){t.registry=Qn.create({type:"node",process(e,n){if(nl.exist(e,!0))throw new Error(`Node with name '${e}' was registered by anthor Edge`);if("function"==typeof n)return n.config({shape:e}),n;let i=t;const{inherit:s}=n,r=ll(n,["inherit"]);if(s)if("string"==typeof s){const t=this.get(s);null==t?this.onNotFound(s,"inherited"):i=t}else i=s;null==r.constructorName&&(r.constructorName=e);const o=i.define.call(i,r);return o.config({shape:e}),o}}),nl.setNodeRegistry(t.registry)}(al||(al={})),function(t){let e=0;t.define=function(n){const{constructorName:i,overwrite:s}=n,r=ll(n,["constructorName","overwrite"]),o=K((l=i||r.shape)?lt(l):(e+=1,`CustomNode${e}`),this);var l;return o.config(r),r.shape&&t.registry.register(r.shape,o,s),o},t.create=function(e){const n=e.shape||"rect",i=t.registry.get(n);return i?new i(e):t.registry.onNotFound(n)}}(al||(al={}));var hl=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s"string"==typeof t||"number"==typeof t;if(null!=n)if(rl.isCell(n))c.source={cell:n.id};else if(u(n))c.source={cell:n};else if(Tn.isPoint(n))c.source=n.toJSON();else if(Array.isArray(n))c.source={x:n[0],y:n[1]};else{const t=n.cell;rl.isCell(t)?c.source=Object.assign(Object.assign({},n),{cell:t.id}):c.source=n}if(null!=i||null!=s){let t=c.source;if(null!=i){const e=u(i)?i:i.id;t?t.cell=e:t=c.source={cell:e}}null!=s&&t&&(t.port=s)}else null!=r&&(c.source=Tn.create(r).toJSON());if(null!=o)if(rl.isCell(o))c.target={cell:o.id};else if(u(o))c.target={cell:o};else if(Tn.isPoint(o))c.target=o.toJSON();else if(Array.isArray(o))c.target={x:o[0],y:o[1]};else{const t=o.cell;rl.isCell(t)?c.target=Object.assign(Object.assign({},o),{cell:t.id}):c.target=o}if(null!=l||null!=a){let t=c.target;if(null!=l){const e=u(l)?l:l.id;t?t.cell=e:t=c.target={cell:e}}null!=a&&t&&(t.port=a)}else null!=h&&(c.target=Tn.create(h).toJSON());return super.preprocess(c,e)}setup(){super.setup(),this.on("change:labels",(t=>this.onLabelsChanged(t))),this.on("change:vertices",(t=>this.onVertexsChanged(t)))}isEdge(){return!0}disconnect(t={}){return this.store.set({source:{x:0,y:0},target:{x:0,y:0}},t),this}get source(){return this.getSource()}set source(t){this.setSource(t)}getSource(){return this.getTerminal("source")}getSourceCellId(){return this.source.cell}getSourcePortId(){return this.source.port}setSource(t,e,n={}){return this.setTerminal("source",t,e,n)}get target(){return this.getTarget()}set target(t){this.setTarget(t)}getTarget(){return this.getTerminal("target")}getTargetCellId(){return this.target.cell}getTargetPortId(){return this.target.port}setTarget(t,e,n={}){return this.setTerminal("target",t,e,n)}getTerminal(t){return Object.assign({},this.store.get(t))}setTerminal(t,e,n,i={}){if(rl.isCell(e))return this.store.set(t,c({},n,{cell:e.id}),i),this;const s=e;return Tn.isPoint(e)||null!=s.x&&null!=s.y?(this.store.set(t,c({},n,{x:s.x,y:s.y}),i),this):(this.store.set(t,a(e),i),this)}getSourcePoint(){return this.getTerminalPoint("source")}getTargetPoint(){return this.getTerminalPoint("target")}getTerminalPoint(t){const e=this[t];if(Tn.isPointLike(e))return Tn.create(e);const n=this.getTerminalCell(t);return n?n.getConnectionPoint(this,t):new Tn}getSourceCell(){return this.getTerminalCell("source")}getTargetCell(){return this.getTerminalCell("target")}getTerminalCell(t){if(this.model){const e="source"===t?this.getSourceCellId():this.getTargetCellId();if(e)return this.model.getCell(e)}return null}getSourceNode(){return this.getTerminalNode("source")}getTargetNode(){return this.getTerminalNode("target")}getTerminalNode(t){let e=this;const n={};for(;e&&e.isEdge();){if(n[e.id])return null;n[e.id]=!0,e=e.getTerminalCell(t)}return e&&e.isNode()?e:null}get router(){return this.getRouter()}set router(t){null==t?this.removeRouter():this.setRouter(t)}getRouter(){return this.store.get("router")}setRouter(t,e,n){return"object"==typeof t?this.store.set("router",t,e):this.store.set("router",{name:t,args:e},n),this}removeRouter(t={}){return this.store.remove("router",t),this}get connector(){return this.getConnector()}set connector(t){null==t?this.removeConnector():this.setConnector(t)}getConnector(){return this.store.get("connector")}setConnector(t,e,n){return"object"==typeof t?this.store.set("connector",t,e):this.store.set("connector",{name:t,args:e},n),this}removeConnector(t={}){return this.store.remove("connector",t)}getDefaultLabel(){const t=this.constructor,e=this.store.get("defaultLabel")||t.defaultLabel||{};return a(e)}get labels(){return this.getLabels()}set labels(t){this.setLabels(t)}getLabels(){return[...this.store.get("labels",[])].map((t=>this.parseLabel(t)))}setLabels(t,e={}){return this.store.set("labels",Array.isArray(t)?t:[t],e),this}insertLabel(t,e,n={}){const i=this.getLabels(),s=i.length;let r=null!=e&&Number.isFinite(e)?e:s;return r<0&&(r=s+r+1),i.splice(r,0,this.parseLabel(t)),this.setLabels(i,n)}appendLabel(t,e={}){return this.insertLabel(t,-1,e)}getLabelAt(t){const e=this.getLabels();return null!=t&&Number.isFinite(t)?this.parseLabel(e[t]):null}setLabelAt(t,e,n={}){if(null!=t&&Number.isFinite(t)){const i=this.getLabels();i[t]=this.parseLabel(e),this.setLabels(i,n)}return this}removeLabelAt(t,e={}){const n=this.getLabels(),i=null!=t&&Number.isFinite(t)?t:-1,s=n.splice(i,1);return this.setLabels(n,e),s.length?s[0]:null}parseLabel(t){return"string"==typeof t?this.constructor.parseStringLabel(t):t}onLabelsChanged({previous:t,current:e}){const n=t&&e?e.filter((e=>t.find((t=>e===t||f(e,t)))?null:e)):e?[...e]:[],i=t&&e?t.filter((t=>e.find((e=>t===e||f(t,e)))?null:t)):t?[...t]:[];n.length>0&&this.notify("labels:added",{added:n,cell:this,edge:this}),i.length>0&&this.notify("labels:removed",{removed:i,cell:this,edge:this})}get vertices(){return this.getVertices()}set vertices(t){this.setVertices(t)}getVertices(){return[...this.store.get("vertices",[])]}setVertices(t,e={}){const n=Array.isArray(t)?t:[t];return this.store.set("vertices",n.map((t=>Tn.toJSON(t))),e),this}insertVertex(t,e,n={}){const i=this.getVertices(),s=i.length;let r=null!=e&&Number.isFinite(e)?e:s;return r<0&&(r=s+r+1),i.splice(r,0,Tn.toJSON(t)),this.setVertices(i,n)}appendVertex(t,e={}){return this.insertVertex(t,-1,e)}getVertexAt(t){return null!=t&&Number.isFinite(t)?this.getVertices()[t]:null}setVertexAt(t,e,n={}){if(null!=t&&Number.isFinite(t)){const i=this.getVertices();i[t]=e,this.setVertices(i,n)}return this}removeVertexAt(t,e={}){const n=this.getVertices(),i=null!=t&&Number.isFinite(t)?t:-1;return n.splice(i,1),this.setVertices(n,e)}onVertexsChanged({previous:t,current:e}){const n=t&&e?e.filter((e=>t.find((t=>Tn.equals(e,t)))?null:e)):e?[...e]:[],i=t&&e?t.filter((t=>e.find((e=>Tn.equals(t,e)))?null:t)):t?[...t]:[];n.length>0&&this.notify("vertexs:added",{added:n,cell:this,edge:this}),i.length>0&&this.notify("vertexs:removed",{removed:i,cell:this,edge:this})}getDefaultMarkup(){return this.store.get("defaultMarkup")||hr.getEdgeMarkup()}getMarkup(){return super.getMarkup()||this.getDefaultMarkup()}translate(t,e,n={}){return n.translateBy=n.translateBy||this.id,n.tx=t,n.ty=e,this.applyToPoints((n=>({x:(n.x||0)+t,y:(n.y||0)+e})),n)}scale(t,e,n,i={}){return this.applyToPoints((i=>Tn.create(i).scale(t,e,n).toJSON()),i)}applyToPoints(t,e={}){const n={},i=this.getSource(),s=this.getTarget();Tn.isPointLike(i)&&(n.source=t(i)),Tn.isPointLike(s)&&(n.target=t(s));const r=this.getVertices();return r.length>0&&(n.vertices=r.map(t)),this.store.set(n,e),this}getBBox(){return this.getPolyline().bbox()}getConnectionPoint(){return this.getPolyline().pointAt(.5)}getPolyline(){const t=[this.getSourcePoint(),...this.getVertices().map((t=>Tn.create(t))),this.getTargetPoint()];return new zn(t)}updateParent(t){let e=null;const n=this.getSourceCell(),i=this.getTargetCell(),s=this.getParent();return n&&i&&(e=n===i||n.isDescendantOf(i)?i:i.isDescendantOf(n)?n:rl.getCommonAncestor(n,i)),!s||e&&e.id===s.id||s.unembed(this,t),e&&e.embed(this,t),e}hasLoop(t={}){const e=this.getSource(),n=this.getTarget(),i=e.cell,s=n.cell;if(!i||!s)return!1;let r=i===s;if(!r&&t.deep&&this._model){const e=this.getSourceCell(),n=this.getTargetCell();e&&n&&(r=e.isAncestorOf(n,t)||n.isAncestorOf(e,t))}return r}getFragmentAncestor(){const t=[this,this.getSourceNode(),this.getTargetNode()].filter((t=>null!=t));return this.getCommonAncestor(...t)}isFragmentDescendantOf(t){const e=this.getFragmentAncestor();return!!e&&(e.id===t.id||e.isDescendantOf(t))}};cl.defaults={},(cl||(cl={})).equalTerminals=function(t,e){const n=t,i=e;return n.cell===i.cell&&(n.port===i.port||null==n.port&&null==i.port)},function(t){t.defaultLabel={markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"}],attrs:{text:{fill:"#000",fontSize:14,textAnchor:"middle",textVerticalAnchor:"middle",pointerEvents:"none"},rect:{ref:"label",fill:"#fff",rx:3,ry:3,refWidth:1,refHeight:1,refX:0,refY:0}},position:{distance:.5}},t.parseStringLabel=function(t){return{attrs:{label:{text:t}}}}}(cl||(cl={})),function(t){t.toStringTag=`X6.${t.name}`,t.isEdge=function(e){if(null==e)return!1;if(e instanceof t)return!0;const n=e[Symbol.toStringTag],i=e;return(null==n||n===t.toStringTag)&&"function"==typeof i.isNode&&"function"==typeof i.isEdge&&"function"==typeof i.prop&&"function"==typeof i.attr&&"function"==typeof i.disconnect&&"function"==typeof i.getSource&&"function"==typeof i.getTarget}}(cl||(cl={})),function(t){t.registry=Qn.create({type:"edge",process(e,n){if(nl.exist(e,!1))throw new Error(`Edge with name '${e}' was registered by anthor Node`);if("function"==typeof n)return n.config({shape:e}),n;let i=t;const{inherit:s="edge"}=n,r=hl(n,["inherit"]);if("string"==typeof s){const t=this.get(s||"edge");null==t&&s?this.onNotFound(s,"inherited"):i=t}else i=s;null==r.constructorName&&(r.constructorName=e);const o=i.define.call(i,r);return o.config({shape:e}),o}}),nl.setEdgeRegistry(t.registry)}(cl||(cl={})),function(t){let e=0;t.define=function(n){const{constructorName:i,overwrite:s}=n,r=hl(n,["constructorName","overwrite"]),o=K((l=i||r.shape)?lt(l):(e+=1,`CustomEdge${e}`),this);var l;return o.config(r),r.shape&&t.registry.register(r.shape,o,s),o},t.create=function(e){const n=e.shape||"edge",i=t.registry.get(n);return i?new i(e):t.registry.onNotFound(n)}}(cl||(cl={})),function(t){const e="basic.edge";t.config({shape:e,propHooks(e){const{label:n,vertices:i}=e,s=hl(e,["label","vertices"]);if(n){null==s.labels&&(s.labels=[]);const e="string"==typeof n?t.parseStringLabel(n):n;s.labels.push(e)}return i&&Array.isArray(i)&&(s.vertices=i.map((t=>Tn.create(t).toJSON()))),s}}),t.registry.register(e,t)}(cl||(cl={}));class ul extends st{constructor(t,e={}){super(),this.length=0,this.comparator=e.comparator||"zIndex",this.clean(),t&&this.reset(t,{silent:!0})}toJSON(){return this.cells.map((t=>t.toJSON()))}add(t,e,n){let i,s;"number"==typeof e?(i=e,s=Object.assign({merge:!1},n)):(i=this.length,s=Object.assign({merge:!1},e)),i>this.length&&(i=this.length),i<0&&(i+=this.length+1);const r=Array.isArray(t)?t:[t],o=this.comparator&&"number"!=typeof e&&!1!==s.sort,l=this.comparator||null;let a=!1;const h=[],c=[];return r.forEach((t=>{const e=this.get(t);e?s.merge&&!t.isSameStore(e)&&(e.setProp(t.getProp(),n),c.push(e),o&&!a&&(a=null==l||"function"==typeof l?e.hasChanged():"string"==typeof l?e.hasChanged(l):l.some((t=>e.hasChanged(t))))):(h.push(t),this.reference(t))})),h.length&&(o&&(a=!0),this.cells.splice(i,0,...h),this.length=this.cells.length),a&&this.sort({silent:!0}),s.silent||(h.forEach(((t,e)=>{const n={cell:t,index:i+e,options:s};this.trigger("added",n),s.dryrun||t.notify("added",Object.assign({},n))})),a&&this.trigger("sorted"),(h.length||c.length)&&this.trigger("updated",{added:h,merged:c,removed:[],options:s})),this}remove(t,e={}){const n=Array.isArray(t)?t:[t],i=this.removeCells(n,e);return!e.silent&&i.length>0&&this.trigger("updated",{options:e,removed:i,added:[],merged:[]}),Array.isArray(t)?i:i[0]}removeCells(t,e){const n=[];for(let i=0;ithis.unreference(t))),this.clean(),this.add(t,Object.assign({silent:!0},e)),!e.silent){const t=this.cells.slice();this.trigger("reseted",{options:e,previous:n,current:t});const i=[],s=[];t.forEach((t=>{n.some((e=>e.id===t.id))||i.push(t)})),n.forEach((e=>{t.some((t=>t.id===e.id))||s.push(e)})),this.trigger("updated",{options:e,added:i,removed:s,merged:[]})}return this}push(t,e){return this.add(t,this.length,e)}pop(t){const e=this.at(this.length-1);return this.remove(e,t)}unshift(t,e){return this.add(t,0,e)}shift(t){const e=this.at(0);return this.remove(e,t)}get(t){if(null==t)return null;const e="string"==typeof t||"number"==typeof t?t:t.id;return this.map[e]||null}has(t){return null!=this.get(t)}at(t){return t<0&&(t+=this.length),this.cells[t]||null}first(){return this.at(0)}last(){return this.at(-1)}indexOf(t){return this.cells.indexOf(t)}toArray(){return this.cells.slice()}sort(t={}){return null!=this.comparator&&(this.cells=b(this.cells,this.comparator),t.silent||this.trigger("sorted")),this}clone(){return new(0,this.constructor)(this.cells.slice(),{comparator:this.comparator})}reference(t){this.map[t.id]=t,t.on("*",this.notifyCellEvent,this)}unreference(t){t.off("*",this.notifyCellEvent,this),delete this.map[t.id]}notifyCellEvent(t,e){const n=e.cell;this.trigger(`cell:${t}`,e),n&&(n.isNode()?this.trigger(`node:${t}`,Object.assign(Object.assign({},e),{node:n})):n.isEdge()&&this.trigger(`edge:${t}`,Object.assign(Object.assign({},e),{edge:n})))}clean(){this.length=0,this.cells=[],this.map={}}}class dl extends st{get[Symbol.toStringTag](){return dl.toStringTag}constructor(t=[]){super(),this.batches={},this.addings=new WeakMap,this.nodes={},this.edges={},this.outgoings={},this.incomings={},this.collection=new ul(t),this.setup()}notify(t,e){this.trigger(t,e);const n=this.graph;return n&&("sorted"===t||"reseted"===t||"updated"===t?n.trigger(`model:${t}`,e):n.trigger(t,e)),this}setup(){const t=this.collection;t.on("sorted",(()=>this.notify("sorted",null))),t.on("updated",(t=>this.notify("updated",t))),t.on("cell:change:zIndex",(()=>this.sortOnChangeZ())),t.on("added",(({cell:t})=>{this.onCellAdded(t)})),t.on("removed",(t=>{const e=t.cell;this.onCellRemoved(e,t.options),this.notify("cell:removed",t),e.isNode()?this.notify("node:removed",Object.assign(Object.assign({},t),{node:e})):e.isEdge()&&this.notify("edge:removed",Object.assign(Object.assign({},t),{edge:e}))})),t.on("reseted",(t=>{this.onReset(t.current),this.notify("reseted",t)})),t.on("edge:change:source",(({edge:t})=>this.onEdgeTerminalChanged(t,"source"))),t.on("edge:change:target",(({edge:t})=>{this.onEdgeTerminalChanged(t,"target")}))}sortOnChangeZ(){this.collection.sort()}onCellAdded(t){const e=t.id;t.isEdge()?(t.updateParent(),this.edges[e]=!0,this.onEdgeTerminalChanged(t,"source"),this.onEdgeTerminalChanged(t,"target")):this.nodes[e]=!0}onCellRemoved(t,e){const n=t.id;if(t.isEdge()){delete this.edges[n];const e=t.getSource(),i=t.getTarget();if(e&&e.cell){const t=this.outgoings[e.cell],i=t?t.indexOf(n):-1;i>=0&&(t.splice(i,1),0===t.length&&delete this.outgoings[e.cell])}if(i&&i.cell){const t=this.incomings[i.cell],e=t?t.indexOf(n):-1;e>=0&&(t.splice(e,1),0===t.length&&delete this.incomings[i.cell])}}else delete this.nodes[n];e.clear||(e.disconnectEdges?this.disconnectConnectedEdges(t,e):this.removeConnectedEdges(t,e)),t.model===this&&(t.model=null)}onReset(t){this.nodes={},this.edges={},this.outgoings={},this.incomings={},t.forEach((t=>this.onCellAdded(t)))}onEdgeTerminalChanged(t,e){const n="source"===e?this.outgoings:this.incomings,i=t.previous(e);if(i&&i.cell){const e=rl.isCell(i.cell)?i.cell.id:i.cell,s=n[e],r=s?s.indexOf(t.id):-1;r>=0&&(s.splice(r,1),0===s.length&&delete n[e])}const s=t.getTerminal(e);if(s&&s.cell){const e=rl.isCell(s.cell)?s.cell.id:s.cell,i=n[e]||[];-1===i.indexOf(t.id)&&i.push(t.id),n[e]=i}}prepareCell(t,e){return t.model||e&&e.dryrun||(t.model=this),null==t.zIndex&&t.setZIndex(this.getMaxZIndex()+1,{silent:!0}),t}resetCells(t,e={}){return t.map((t=>this.prepareCell(t,Object.assign(Object.assign({},e),{dryrun:!0})))),this.collection.reset(t,e),t.map((t=>this.prepareCell(t,{options:e}))),this}clear(t={}){const e=this.getCells();if(0===e.length)return this;const n=Object.assign(Object.assign({},t),{clear:!0});return this.batchUpdate("clear",(()=>{const t=e.sort(((t,e)=>(t.isEdge()?1:2)-(e.isEdge()?1:2)));for(;t.length>0;){const e=t.shift();e&&e.remove(n)}}),n),this}addNode(t,e={}){const n=al.isNode(t)?t:this.createNode(t);return this.addCell(n,e),n}updateNode(t,e={}){const n=this.createNode(t),i=n.getProp();return n.dispose(),this.updateCell(i,e)}createNode(t){return al.create(t)}addEdge(t,e={}){const n=cl.isEdge(t)?t:this.createEdge(t);return this.addCell(n,e),n}createEdge(t){return cl.create(t)}updateEdge(t,e={}){const n=this.createEdge(t),i=n.getProp();return n.dispose(),this.updateCell(i,e)}addCell(t,e={}){return Array.isArray(t)?this.addCells(t,e):(this.collection.has(t)||this.addings.has(t)||(this.addings.set(t,!0),this.collection.add(this.prepareCell(t,e),e),t.eachChild((t=>this.addCell(t,e))),this.addings.delete(t)),this)}addCells(t,e={}){const n=t.length;if(0===n)return this;const i=Object.assign(Object.assign({},e),{position:n-1,maxPosition:n-1});return this.startBatch("add",Object.assign(Object.assign({},i),{cells:t})),t.forEach((t=>{this.addCell(t,i),i.position-=1})),this.stopBatch("add",Object.assign(Object.assign({},i),{cells:t})),this}updateCell(t,e={}){const n=t.id&&this.getCell(t.id);return!!n&&this.batchUpdate("update",(()=>(Object.entries(t).forEach((([t,i])=>n.setProp(t,i,e))),!0)),t)}removeCell(t,e={}){const n="string"==typeof t?this.getCell(t):t;return n&&this.has(n)?this.collection.remove(n,e):null}updateCellId(t,e){this.startBatch("update",{id:e}),t.prop("id",e);const n=t.clone({keepId:!0});return this.addCell(n),this.getConnectedEdges(t).forEach((n=>{const i=n.getSourceCell(),s=n.getTargetCell();i===t&&n.setSource(Object.assign(Object.assign({},n.getSource()),{cell:e})),s===t&&n.setTarget(Object.assign(Object.assign({},n.getTarget()),{cell:e}))})),this.removeCell(t),this.stopBatch("update",{id:e}),n}removeCells(t,e={}){return t.length?this.batchUpdate("remove",(()=>t.map((t=>this.removeCell(t,e))))):[]}removeConnectedEdges(t,e={}){const n=this.getConnectedEdges(t);return n.forEach((t=>{t.remove(e)})),n}disconnectConnectedEdges(t,e={}){const n="string"==typeof t?t:t.id;this.getConnectedEdges(t).forEach((t=>{const i=t.getSourceCellId(),s=t.getTargetCellId();i===n&&t.setSource({x:0,y:0},e),s===n&&t.setTarget({x:0,y:0},e)}))}has(t){return this.collection.has(t)}total(){return this.collection.length}indexOf(t){return this.collection.indexOf(t)}getCell(t){return this.collection.get(t)}getCells(){return this.collection.toArray()}getFirstCell(){return this.collection.first()}getLastCell(){return this.collection.last()}getMinZIndex(){const t=this.collection.first();return t&&t.getZIndex()||0}getMaxZIndex(){const t=this.collection.last();return t&&t.getZIndex()||0}getCellsFromCache(t){return t?Object.keys(t).map((t=>this.getCell(t))).filter((t=>null!=t)):[]}getNodes(){return this.getCellsFromCache(this.nodes)}getEdges(){return this.getCellsFromCache(this.edges)}getOutgoingEdges(t){const e="string"==typeof t?t:t.id,n=this.outgoings[e];return n?n.map((t=>this.getCell(t))).filter((t=>t&&t.isEdge())):null}getIncomingEdges(t){const e="string"==typeof t?t:t.id,n=this.incomings[e];return n?n.map((t=>this.getCell(t))).filter((t=>t&&t.isEdge())):null}getConnectedEdges(t,e={}){const n=[],i="string"==typeof t?this.getCell(t):t;if(null==i)return n;const s={},r=e.indirect;let o=e.incoming,l=e.outgoing;null==o&&null==l&&(o=l=!0);const a=(t,e)=>{const i=e?this.getOutgoingEdges(t):this.getIncomingEdges(t);if(null!=i&&i.forEach((t=>{s[t.id]||(n.push(t),s[t.id]=!0,r&&(o&&a(t,!1),l&&a(t,!0)))})),r&&t.isEdge()){const i=e?t.getTargetCell():t.getSourceCell();i&&i.isEdge()&&(s[i.id]||(n.push(i),a(i,e)))}};if(l&&a(i,!0),o&&a(i,!1),e.deep){const t=i.getDescendants({deep:!0}),r={};t.forEach((t=>{t.isNode()&&(r[t.id]=!0)}));const a=(t,i)=>{const o=i?this.getOutgoingEdges(t.id):this.getIncomingEdges(t.id);null!=o&&o.forEach((t=>{if(!s[t.id]){const i=t.getSourceCell(),o=t.getTargetCell();if(!e.enclosed&&i&&r[i.id]&&o&&r[o.id])return;n.push(t),s[t.id]=!0}}))};t.forEach((t=>{t.isEdge()||(l&&a(t,!0),o&&a(t,!1))}))}return n}isBoundary(t,e){const n="string"==typeof t?this.getCell(t):t,i=e?this.getIncomingEdges(n):this.getOutgoingEdges(n);return null==i||0===i.length}getBoundaryNodes(t){const e=[];return Object.keys(this.nodes).forEach((n=>{if(this.isBoundary(n,t)){const t=this.getCell(n);t&&e.push(t)}})),e}getRoots(){return this.getBoundaryNodes(!0)}getLeafs(){return this.getBoundaryNodes(!1)}isRoot(t){return this.isBoundary(t,!0)}isLeaf(t){return this.isBoundary(t,!1)}getNeighbors(t,e={}){let n=e.incoming,i=e.outgoing;null==n&&null==i&&(n=i=!0);const s=this.getConnectedEdges(t,e).reduce(((s,r)=>{const o=r.hasLoop(e),l=r.getSourceCell(),a=r.getTargetCell();return n&&l&&l.isNode()&&!s[l.id]&&(!o&&(l===t||e.deep&&l.isDescendantOf(t))||(s[l.id]=l)),i&&a&&a.isNode()&&!s[a.id]&&(!o&&(a===t||e.deep&&a.isDescendantOf(t))||(s[a.id]=a)),s}),{});if(t.isEdge()){if(n){const e=t.getSourceCell();e&&e.isNode()&&!s[e.id]&&(s[e.id]=e)}if(i){const e=t.getTargetCell();e&&e.isNode()&&!s[e.id]&&(s[e.id]=e)}}return Object.keys(s).map((t=>s[t]))}isNeighbor(t,e,n={}){let i=n.incoming,s=n.outgoing;return null==i&&null==s&&(i=s=!0),this.getConnectedEdges(t,n).some((t=>{const n=t.getSourceCell(),r=t.getTargetCell();return!(!i||!n||n.id!==e.id)||!(!s||!r||r.id!==e.id)}))}getSuccessors(t,e={}){const n=[];return this.search(t,((i,s)=>{i!==t&&this.matchDistance(s,e.distance)&&n.push(i)}),Object.assign(Object.assign({},e),{outgoing:!0})),n}isSuccessor(t,e,n={}){let i=!1;return this.search(t,((s,r)=>{if(s===e&&s!==t&&this.matchDistance(r,n.distance))return i=!0,!1}),Object.assign(Object.assign({},n),{outgoing:!0})),i}getPredecessors(t,e={}){const n=[];return this.search(t,((i,s)=>{i!==t&&this.matchDistance(s,e.distance)&&n.push(i)}),Object.assign(Object.assign({},e),{incoming:!0})),n}isPredecessor(t,e,n={}){let i=!1;return this.search(t,((s,r)=>{if(s===e&&s!==t&&this.matchDistance(r,n.distance))return i=!0,!1}),Object.assign(Object.assign({},n),{incoming:!0})),i}matchDistance(t,e){return null==e||("function"==typeof e?e(t):!(!Array.isArray(e)||!e.includes(t))||t===e)}getCommonAncestor(...t){const e=[];return t.forEach((t=>{t&&(Array.isArray(t)?e.push(...t):e.push(t))})),rl.getCommonAncestor(...e)}getSubGraph(t,e={}){const n=[],i={},s=[],r=[],o=t=>{i[t.id]||(n.push(t),i[t.id]=t,t.isEdge()&&r.push(t),t.isNode()&&s.push(t))};return t.forEach((t=>{o(t),e.deep&&t.getDescendants({deep:!0}).forEach((t=>o(t)))})),r.forEach((t=>{const e=t.getSourceCell(),r=t.getTargetCell();e&&!i[e.id]&&(n.push(e),i[e.id]=e,e.isNode()&&s.push(e)),r&&!i[r.id]&&(n.push(r),i[r.id]=r,r.isNode()&&s.push(r))})),s.forEach((t=>{this.getConnectedEdges(t,e).forEach((t=>{const e=t.getSourceCell(),s=t.getTargetCell();!i[t.id]&&e&&i[e.id]&&s&&i[s.id]&&(n.push(t),i[t.id]=t)}))})),n}cloneSubGraph(t,e={}){const n=this.getSubGraph(t,e);return this.cloneCells(n)}cloneCells(t){return rl.cloneCells(t)}getNodesFromPoint(t,e){const n="number"==typeof t?{x:t,y:e||0}:t;return this.getNodes().filter((t=>t.getBBox().containsPoint(n)))}getNodesInArea(t,e,n,i,s){const r="number"==typeof t?new Nn(t,e,n,i):Nn.create(t),o="number"==typeof t?s:e,l=o&&o.strict;return this.getNodes().filter((t=>{const e=t.getBBox();return l?r.containsRect(e):r.isIntersectWithRect(e)}))}getEdgesInArea(t,e,n,i,s){const r="number"==typeof t?new Nn(t,e,n,i):Nn.create(t),o="number"==typeof t?s:e,l=o&&o.strict;return this.getEdges().filter((t=>{const e=t.getBBox();return 0===e.width?e.inflate(1,0):0===e.height&&e.inflate(0,1),l?r.containsRect(e):r.isIntersectWithRect(e)}))}getNodesUnderNode(t,e={}){const n=t.getBBox();return(null==e.by||"bbox"===e.by?this.getNodesInArea(n):this.getNodesFromPoint(n[e.by])).filter((e=>t.id!==e.id&&!e.isDescendantOf(t)))}getAllCellsBBox(){return this.getCellsBBox(this.getCells())}getCellsBBox(t,e={}){return rl.getCellsBBox(t,e)}search(t,e,n={}){n.breadthFirst?this.breadthFirstSearch(t,e,n):this.depthFirstSearch(t,e,n)}breadthFirstSearch(t,e,n={}){const i=[],s={},r={};for(i.push(t),r[t.id]=0;i.length>0;){const t=i.shift();null==t||s[t.id]||(s[t.id]=!0,!1!==H(e,this,t,r[t.id])&&this.getNeighbors(t,n).forEach((e=>{r[e.id]=r[t.id]+1,i.push(e)})))}}depthFirstSearch(t,e,n={}){const i=[],s={},r={};for(i.push(t),r[t.id]=0;i.length>0;){const t=i.pop();if(null==t||s[t.id])continue;if(s[t.id]=!0,!1===H(e,this,t,r[t.id]))continue;const o=this.getNeighbors(t,n),l=i.length;o.forEach((e=>{r[e.id]=r[t.id]+1,i.splice(l,0,e)}))}}getShortestPath(t,e,n={}){const i={};this.getEdges().forEach((t=>{const e=t.getSourceCellId(),s=t.getTargetCellId();e&&s&&(i[e]||(i[e]=[]),i[s]||(i[s]=[]),i[e].push(s),n.directed||i[s].push(e))}));const s="string"==typeof t?t:t.id,r=mn.run(i,s,n.weight),o=[];let l="string"==typeof e?e:e.id;for(r[l]&&o.push(l);l=r[l];)o.unshift(l);return o}translate(t,e,n){return this.getCells().filter((t=>!t.hasParent())).forEach((i=>i.translate(t,e,n))),this}resize(t,e,n){return this.resizeCells(t,e,this.getCells(),n)}resizeCells(t,e,n,i={}){const s=this.getCellsBBox(n);if(s){const r=Math.max(t/s.width,0),o=Math.max(e/s.height,0),l=s.getOrigin();n.forEach((t=>t.scale(r,o,l,i)))}return this}toJSON(t={}){return dl.toJSON(this.getCells(),t)}parseJSON(t){return dl.fromJSON(t)}fromJSON(t,e={}){const n=this.parseJSON(t);return this.resetCells(n,e),this}startBatch(t,e={}){return this.batches[t]=(this.batches[t]||0)+1,this.notify("batch:start",{name:t,data:e}),this}stopBatch(t,e={}){return this.batches[t]=(this.batches[t]||0)-1,this.notify("batch:stop",{name:t,data:e}),this}batchUpdate(t,e,n={}){this.startBatch(t,n);const i=e();return this.stopBatch(t,n),i}hasActiveBatch(t=Object.keys(this.batches)){return(Array.isArray(t)?t:[t]).some((t=>this.batches[t]>0))}}!function(t){t.toStringTag=`X6.${t.name}`,t.isModel=function(e){if(null==e)return!1;if(e instanceof t)return!0;const n=e[Symbol.toStringTag],i=e;return(null==n||n===t.toStringTag)&&"function"==typeof i.addNode&&"function"==typeof i.addEdge&&null!=i.collection}}(dl||(dl={})),function(t){t.toJSON=function(t,e={}){return{cells:t.map((t=>t.toJSON(e)))}},t.fromJSON=function(t){const e=[];return Array.isArray(t)?e.push(...t):(t.cells&&e.push(...t.cells),t.nodes&&t.nodes.forEach((t=>{null==t.shape&&(t.shape="rect"),e.push(t)})),t.edges&&t.edges.forEach((t=>{null==t.shape&&(t.shape="edge"),e.push(t)}))),e.map((t=>{const e=t.shape;if(e){if(al.registry.exist(e))return al.create(t);if(cl.registry.exist(e))return cl.create(t)}throw new Error("The `shape` should be specified when creating a node/edge instance")}))}}(dl||(dl={}));var gl=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);sArray.isArray(t)?t.join(","):Tn.isPointLike(t)?`${t.x}, ${t.y}`:"")).join(" ")}t.pointsToString=e,t.config({propHooks(t){const{points:n}=t,i=vl(t,["points"]);if(n){const t=e(n);t&&nt(i,"attrs/body/refPoints",t)}return i}})}(xl||(xl={})),yl("polygon",{},{parent:xl}),yl("polyline",{},{parent:xl});var wl=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s{const{imageUrl:n,imageWidth:i,imageHeight:s}=e,r=fl(e,["imageUrl","imageWidth","imageHeight"]);if(null!=n||null!=i||null!=s){const e=()=>{if(r.attrs){const e=r.attrs.image;null!=n&&(e[t]=n),null!=i&&(e.width=i),null!=s&&(e.height=s),r.attrs.image=e}};r.attrs?(null==r.attrs.image&&(r.attrs.image={}),e()):(r.attrs={image:{}},e())}return r}}()},{selector:"image"}),yl("circle",{attrs:{body:{refCx:"50%",refCy:"50%",refR:"50%"}}});class Pl extends fr{constructor(){super(...arguments),this.portsCache={}}get[Symbol.toStringTag](){return Pl.toStringTag}getContainerClassName(){const t=[super.getContainerClassName(),this.prefixClassName("node")];return this.can("nodeMovable")||t.push(this.prefixClassName("node-immovable")),t.join(" ")}updateClassName(t){const e=t.target;if(e.hasAttribute("magnet")){const t=this.prefixClassName("port-unconnectable");this.can("magnetConnectable")?It(e,t):Dt(e,t)}else{const t=this.prefixClassName("node-immovable");this.can("nodeMovable")?this.removeClass(t):this.addClass(t)}}isNodeView(){return!0}confirmUpdate(t,e={}){let n=t;return this.hasAction(n,"ports")&&(this.removePorts(),this.cleanPortsCache()),this.hasAction(n,"render")?(this.render(),n=this.removeAction(n,["render","update","resize","translate","rotate","ports","tools"])):(n=this.handleAction(n,"resize",(()=>this.resize()),"update"),n=this.handleAction(n,"update",(()=>this.update()),"ports"),n=this.handleAction(n,"translate",(()=>this.translate())),n=this.handleAction(n,"rotate",(()=>this.rotate())),n=this.handleAction(n,"ports",(()=>this.renderPorts())),n=this.handleAction(n,"tools",(()=>{this.getFlag("tools")===t?this.renderTools():this.updateTools(e)}))),n}update(t){this.cleanCache(),this.removePorts();const e=this.cell,n=e.getSize(),i=e.getAttrs();this.updateAttrs(this.container,i,{attrs:t===i?null:t,rootBBox:new Nn(0,0,n.width,n.height),selectors:this.selectors}),this.renderPorts()}renderMarkup(){const t=this.cell.markup;if(t){if("string"==typeof t)throw new TypeError("Not support string markup.");return this.renderJSONMarkup(t)}throw new TypeError("Invalid node markup.")}renderJSONMarkup(t){const e=this.parseJSONMarkup(t,this.container);this.selectors=e.selectors,this.container.appendChild(e.fragment)}render(){return this.empty(),this.renderMarkup(),this.resize(),this.updateTransform(),this.renderTools(),this}resize(){this.cell.getAngle()&&this.rotate(),this.update()}translate(){this.updateTransform()}rotate(){this.updateTransform()}getTranslationString(){const t=this.cell.getPosition();return`translate(${t.x},${t.y})`}getRotationString(){const t=this.cell.getAngle();if(t){const e=this.cell.getSize();return`rotate(${t},${e.width/2},${e.height/2})`}}updateTransform(){let t=this.getTranslationString();const e=this.getRotationString();e&&(t+=` ${e}`),this.container.setAttribute("transform",t)}findPortElem(t,e){const n=t?this.portsCache[t]:null;if(!n)return null;const i=n.portContentElement,s=n.portContentSelectors||{};return this.findOne(e,i,s)}cleanPortsCache(){this.portsCache={}}removePorts(){Object.values(this.portsCache).forEach((t=>{Yt(t.portElement)}))}renderPorts(){const t=this.container,e=[];t.childNodes.forEach((t=>{e.push(t)}));const n=this.cell.getParsedPorts(),i=v(n,"zIndex"),s="auto";i[s]&&i[s].forEach((n=>{const i=this.getPortElement(n);t.append(i),e.push(i)})),Object.keys(i).forEach((t=>{if(t!==s){const n=parseInt(t,10);this.appendPorts(i[t],n,e)}})),this.updatePorts()}appendPorts(t,e,n){const i=t.map((t=>this.getPortElement(t)));n[e]||e<0?te(n[Math.max(e,0)],i):Qt(this.container,i)}getPortElement(t){const e=this.portsCache[t.id];return e?e.portElement:this.createPortElement(t)}createPortElement(t){let e=hr.renderMarkup(this.cell.getPortContainerMarkup());const n=e.elem;if(null==n)throw new Error("Invalid port container markup.");e=hr.renderMarkup(this.getPortMarkup(t));const i=e.elem,s=e.selectors;if(null==i)throw new Error("Invalid port markup.");this.setAttrs({port:t.id,"port-group":t.group},i);let r="x6-port";t.group&&(r+=` x6-port-${t.group}`),Dt(n,r),Dt(n,"x6-port"),Dt(i,"x6-port-body"),n.appendChild(i);let o,l,a=s;if(this.existPortLabel(t)){if(e=hr.renderMarkup(this.getPortLabelMarkup(t.label)),o=e.elem,l=e.selectors,null==o)throw new Error("Invalid port label markup.");if(s&&l){for(const t in l)if(s[t]&&t!==this.rootSelector)throw new Error("Selectors within port must be unique.");a=Object.assign(Object.assign({},s),l)}Dt(o,"x6-port-label"),n.appendChild(o)}return this.portsCache[t.id]={portElement:n,portSelectors:a,portLabelElement:o,portLabelSelectors:l,portContentElement:i,portContentSelectors:s},this.graph.options.onPortRendered&&this.graph.options.onPortRendered({port:t,node:this.cell,container:n,selectors:a,labelContainer:o,labelSelectors:l,contentContainer:i,contentSelectors:s}),n}updatePorts(){const t=this.cell.getParsedGroups(),e=Object.keys(t);0===e.length?this.updatePortGroup():e.forEach((t=>this.updatePortGroup(t)))}updatePortGroup(t){const e=Nn.fromSize(this.cell.getSize()),n=this.cell.getPortsLayoutByGroup(t,e);for(let i=0,s=n.length;is.options.clickThreshold||this.notify("node:magnet:click",Object.assign({magnet:e},this.getEventArgs(t,n,i)))}onMagnetDblClick(t,e,n,i){this.notify("node:magnet:dblclick",Object.assign({magnet:e},this.getEventArgs(t,n,i)))}onMagnetContextMenu(t,e,n,i){this.notify("node:magnet:contextmenu",Object.assign({magnet:e},this.getEventArgs(t,n,i)))}onMagnetMouseDown(t,e,n,i){this.startMagnetDragging(t,n,i)}onCustomEvent(t,e,n,i){this.notify("node:customevent",Object.assign({name:e},this.getEventArgs(t,n,i))),super.onCustomEvent(t,e,n,i)}prepareEmbedding(t){const e=this.graph,n=this.getEventData(t).cell||this.cell,i=e.findViewByCell(n),s=e.snapToGrid(t.clientX,t.clientY);this.notify("node:embed",{e:t,node:n,view:i,cell:n,x:s.x,y:s.y,currentParent:n.getParent()})}processEmbedding(t,e){const n=e.cell||this.cell,i=e.graph||this.graph,s=i.options.embedding,r=s.findParent;let o="function"==typeof r?H(r,i,{view:this,node:this.cell}).filter((t=>rl.isCell(t)&&this.cell.id!==t.id&&!t.isDescendantOf(this.cell))):i.model.getNodesUnderNode(n,{by:r});if(s.frontOnly&&o.length>0){const t=v(o,"zIndex"),e=x(Object.keys(t).map((t=>parseInt(t,10))));e&&(o=t[e])}o=o.filter((t=>t.visible));let l=null;const a=e.candidateEmbedView,h=s.validate;for(let u=o.length-1;u>=0;u-=1){const t=o[u];if(a&&a.cell.id===t.id){l=a;break}{const e=t.findView(i);if(H(h,i,{child:this.cell,parent:e.cell,childView:this,parentView:e})){l=e;break}}}this.clearEmbedding(e),l&&l.highlight(null,{type:"embedding"}),e.candidateEmbedView=l;const c=i.snapToGrid(t.clientX,t.clientY);this.notify("node:embedding",{e:t,cell:n,node:n,view:i.findViewByCell(n),x:c.x,y:c.y,currentParent:n.getParent(),candidateParent:l?l.cell:null})}clearEmbedding(t){const e=t.candidateEmbedView;e&&(e.unhighlight(null,{type:"embedding"}),t.candidateEmbedView=null)}finalizeEmbedding(t,e){this.graph.startBatch("embedding");const n=e.cell||this.cell,i=e.graph||this.graph,s=i.findViewByCell(n),r=n.getParent(),o=e.candidateEmbedView;if(o?(o.unhighlight(null,{type:"embedding"}),e.candidateEmbedView=null,null!=r&&r.id===o.cell.id||o.cell.insertChild(n,void 0,{ui:!0})):r&&r.unembed(n,{ui:!0}),i.model.getConnectedEdges(n,{deep:!0}).forEach((t=>{t.updateParent({ui:!0})})),s&&o){const e=i.snapToGrid(t.clientX,t.clientY);s.notify("node:embedded",{e:t,cell:n,x:e.x,y:e.y,node:n,view:i.findViewByCell(n),previousParent:r,currentParent:n.getParent()})}this.graph.stopBatch("embedding")}getDelegatedView(){let t=this.cell,e=this;for(;e&&!t.isEdge();){if(!t.hasParent()||e.can("stopDelegateOnDragging"))return e;t=t.getParent(),e=this.graph.findViewByCell(t)}return null}validateMagnet(t,e,n){if("passive"!==e.getAttribute("magnet")){const i=this.graph.options.connecting.validateMagnet;return!i||H(i,this.graph,{e:n,magnet:e,view:t,cell:t.cell})}return!1}startMagnetDragging(t,e,n){if(!this.can("magnetConnectable"))return;t.stopPropagation();const i=t.currentTarget,s=this.graph;this.setEventData(t,{targetMagnet:i}),this.validateMagnet(this,i,t)?(s.options.magnetThreshold<=0&&this.startConnectting(t,i,e,n),this.setEventData(t,{action:"magnet"}),this.stopPropagation(t)):this.onMouseDown(t,e,n),s.view.delegateDragEvents(t,this)}startConnectting(t,e,n,i){this.graph.model.startBatch("add-edge");const s=this.createEdgeFromMagnet(e,n,i);s.setEventData(t,s.prepareArrowheadDragging("target",{x:n,y:i,isNewEdge:!0,fallbackAction:"remove"})),this.setEventData(t,{edgeView:s}),s.notifyMouseDown(t,n,i)}getDefaultEdge(t,e){let n;const i=this.graph.options.connecting.createEdge;return i&&(n=H(i,this.graph,{sourceMagnet:e,sourceView:t,sourceCell:t.cell})),n}createEdgeFromMagnet(t,e,n){const i=this.graph,s=i.model,r=this.getDefaultEdge(this,t);return r.setSource(Object.assign(Object.assign({},r.getSource()),this.getEdgeTerminal(t,e,n,r,"source"))),r.setTarget(Object.assign(Object.assign({},r.getTarget()),{x:e,y:n})),r.addTo(s,{async:!1,ui:!0}),r.findView(i)}dragMagnet(t,e,n){const i=this.getEventData(t),s=i.edgeView;if(s)s.onMouseMove(t,e,n),this.autoScrollGraph(t.clientX,t.clientY);else{const s=this.graph,r=s.options.magnetThreshold,o=this.getEventTarget(t),l=i.targetMagnet;if("onleave"===r){if(l===o||l.contains(o))return}else if(s.view.getMouseMovedCount(t)<=r)return;this.startConnectting(t,l,e,n)}}stopMagnetDragging(t,e,n){const i=this.eventData(t).edgeView;i&&(i.onMouseUp(t,e,n),this.graph.model.stopBatch("add-edge"))}notifyUnhandledMouseDown(t,e,n){this.notify("node:unhandled:mousedown",{e:t,x:e,y:n,view:this,cell:this.cell,node:this.cell})}notifyNodeMove(t,e,n,i,s){let r=[s];const o=this.graph.getPlugin("selection");if(o&&o.isSelectionMovable()){const t=o.getSelectedCells();t.includes(s)&&(r=t.filter((t=>t.isNode())))}r.forEach((s=>{this.notify(t,{e:e,x:n,y:i,cell:s,node:s,view:s.findView(this.graph)})}))}getRestrictArea(t){const e=this.graph.options.translating.restrict,n="function"==typeof e?H(e,this.graph,t):e;return"number"==typeof n?this.graph.transform.getGraphArea().inflate(n):!0===n?this.graph.transform.getGraphArea():n||null}startNodeDragging(t,e,n){const i=this.getDelegatedView();if(null==i||!i.can("nodeMovable"))return this.notifyUnhandledMouseDown(t,e,n);this.setEventData(t,{targetView:i,action:"move"});const s=Tn.create(i.cell.getPosition());i.setEventData(t,{moving:!1,offset:s.diff(e,n),restrict:this.getRestrictArea(i)})}dragNode(t,e,n){const i=this.cell,s=this.graph,r=s.getGridSize(),o=this.getEventData(t),l=o.offset,a=o.restrict;o.moving||(o.moving=!0,this.addClass("node-moving"),this.notifyNodeMove("node:move",t,e,n,this.cell)),this.autoScrollGraph(t.clientX,t.clientY);const h=Mn.snapToGrid(e+l.x,r),c=Mn.snapToGrid(n+l.y,r);i.setPosition(h,c,{restrict:a,deep:!0,ui:!0}),s.options.embedding.enabled&&(o.embedding||(this.prepareEmbedding(t),o.embedding=!0),this.processEmbedding(t,o))}stopNodeDragging(t,e,n){const i=this.getEventData(t);i.embedding&&this.finalizeEmbedding(t,i),i.moving&&(this.removeClass("node-moving"),this.notifyNodeMove("node:moved",t,e,n,this.cell)),i.moving=!1,i.embedding=!1}autoScrollGraph(t,e){const n=this.graph.getPlugin("scroller");n&&n.autoScroll(t,e)}}!function(t){t.toStringTag=`X6.${t.name}`,t.isNodeView=function(e){if(null==e)return!1;if(e instanceof t)return!0;const n=e[Symbol.toStringTag],i=e;return(null==n||n===t.toStringTag)&&"function"==typeof i.isNodeView&&"function"==typeof i.isEdgeView&&"function"==typeof i.confirmUpdate&&"function"==typeof i.update&&"function"==typeof i.findPortElem&&"function"==typeof i.resize&&"function"==typeof i.rotate&&"function"==typeof i.translate}}(Pl||(Pl={})),Pl.config({isSvgElement:!0,priority:0,bootstrap:["render"],actions:{view:["render"],markup:["render"],attrs:["update"],size:["resize","ports","tools"],angle:["rotate","tools"],position:["translate","tools"],ports:["ports"],tools:["tools"]}}),Pl.registry.register("node",Pl,!0);class El extends fr{constructor(){super(...arguments),this.POINT_ROUNDING=2}get[Symbol.toStringTag](){return El.toStringTag}getContainerClassName(){return[super.getContainerClassName(),this.prefixClassName("edge")].join(" ")}get sourceBBox(){const t=this.sourceView;if(!t){const t=this.cell.getSource();return new Nn(t.x,t.y)}const e=this.sourceMagnet;return t.isEdgeElement(e)?new Nn(this.sourceAnchor.x,this.sourceAnchor.y):t.getBBoxOfElement(e||t.container)}get targetBBox(){const t=this.targetView;if(!t){const t=this.cell.getTarget();return new Nn(t.x,t.y)}const e=this.targetMagnet;return t.isEdgeElement(e)?new Nn(this.targetAnchor.x,this.targetAnchor.y):t.getBBoxOfElement(e||t.container)}isEdgeView(){return!0}confirmUpdate(t,e={}){let n=t;if(this.hasAction(n,"source")){if(!this.updateTerminalProperties("source"))return n;n=this.removeAction(n,"source")}if(this.hasAction(n,"target")){if(!this.updateTerminalProperties("target"))return n;n=this.removeAction(n,"target")}const i=this.graph,s=this.sourceView,r=this.targetView;return i&&(s&&!i.renderer.isViewMounted(s)||r&&!i.renderer.isViewMounted(r))?n:this.hasAction(n,"render")?(this.render(),n=this.removeAction(n,["render","update","labels","tools"]),n):(n=this.handleAction(n,"update",(()=>this.update(e))),n=this.handleAction(n,"labels",(()=>this.onLabelsChange(e))),n=this.handleAction(n,"tools",(()=>this.renderTools())),n)}render(){return this.empty(),this.renderMarkup(),this.labelContainer=null,this.renderLabels(),this.update(),this.renderTools(),this}renderMarkup(){const t=this.cell.markup;if(t){if("string"==typeof t)throw new TypeError("Not support string markup.");return this.renderJSONMarkup(t)}throw new TypeError("Invalid edge markup.")}renderJSONMarkup(t){const e=this.parseJSONMarkup(t,this.container);this.selectors=e.selectors,this.container.append(e.fragment)}customizeLabels(){if(this.labelContainer){const t=this.cell,e=t.labels;for(let n=0,i=e.length;n1&&e[n[1]]){if(2===i)return"object"==typeof t.propertyValue&&w(t.propertyValue,"markup");if("markup"!==n[2])return!1}}return!0}parseLabelMarkup(t){return t?"string"==typeof t?this.parseLabelStringMarkup(t):this.parseJSONMarkup(t):null}parseLabelStringMarkup(t){const e=Me.createVectors(t),n=document.createDocumentFragment();for(let i=0,s=e.length;i1||"G"!==i[0].nodeName.toUpperCase()?Me.create("g").append(e):Me.create(i[0]),n.addClass(this.prefixClassName("edge-label")),{node:n.node,selectors:t.selectors}}updateLabels(){if(this.labelContainer){const t=this.cell,e=t.labels,n=this.can("edgeLabelMovable"),i=t.getDefaultLabel();for(let s=0,r=e.length;st.toJSON())),l=o.length;return s===l?0:(e.setVertices(o.slice(1,l-1),t),s-l)}getTerminalView(t){switch(t){case"source":return this.sourceView||null;case"target":return this.targetView||null;default:throw new Error(`Unknown terminal type '${t}'`)}}getTerminalAnchor(t){switch(t){case"source":return Tn.create(this.sourceAnchor);case"target":return Tn.create(this.targetAnchor);default:throw new Error(`Unknown terminal type '${t}'`)}}getTerminalConnectionPoint(t){switch(t){case"source":return Tn.create(this.sourcePoint);case"target":return Tn.create(this.targetPoint);default:throw new Error(`Unknown terminal type '${t}'`)}}getTerminalMagnet(t,e={}){switch(t){case"source":{if(e.raw)return this.sourceMagnet;const t=this.sourceView;return t?this.sourceMagnet||t.container:null}case"target":{if(e.raw)return this.targetMagnet;const t=this.targetView;return t?this.targetMagnet||t.container:null}default:throw new Error(`Unknown terminal type '${t}'`)}}updateConnection(t={}){const e=this.cell;if(t.translateBy&&e.isFragmentDescendantOf(t.translateBy)){const e=t.tx||0,n=t.ty||0;this.routePoints=new zn(this.routePoints).translate(e,n).points,this.translateConnectionPoints(e,n),this.path.translate(e,n)}else{const t=e.getVertices(),n=this.findAnchors(t);this.sourceAnchor=n.source,this.targetAnchor=n.target,this.routePoints=this.findRoutePoints(t);const i=this.findConnectionPoints(this.routePoints,this.sourceAnchor,this.targetAnchor);this.sourcePoint=i.source,this.targetPoint=i.target;const s=this.findMarkerPoints(this.routePoints,this.sourcePoint,this.targetPoint);this.path=this.findPath(this.routePoints,s.source||this.sourcePoint,s.target||this.targetPoint)}this.cleanCache()}findAnchors(t){const e=this.cell,n=e.source,i=e.target,s=t[0],r=t[t.length-1];return i.priority&&!n.priority?this.findAnchorsOrdered("target",r,"source",s):this.findAnchorsOrdered("source",s,"target",r)}findAnchorsOrdered(t,e,n,i){let s,r;const o=this.cell,l=o[t],a=o[n],h=this.getTerminalView(t),c=this.getTerminalView(n),u=this.getTerminalMagnet(t),d=this.getTerminalMagnet(n);if(h){let n;n=e?Tn.create(e):c?d:Tn.create(a),s=this.getAnchor(l.anchor,h,u,n,t)}else s=Tn.create(l);if(c){const t=Tn.create(i||s);r=this.getAnchor(a.anchor,c,d,t,n)}else r=Tn.isPointLike(a)?Tn.create(a):new Tn;return{[t]:s,[n]:r}}getAnchor(t,e,n,i,s){const r=e.isEdgeElement(n),o=this.graph.options.connecting;let l,a="string"==typeof t?{name:t}:t;if(!a){const t=r?("source"===s?o.sourceEdgeAnchor:o.targetEdgeAnchor)||o.edgeAnchor:("source"===s?o.sourceAnchor:o.targetAnchor)||o.anchor;a="string"==typeof t?{name:t}:t}if(!a)throw new Error("Anchor should be specified.");const h=a.name;if(r){const t=lo.registry.get(h);if("function"!=typeof t)return lo.registry.onNotFound(h);l=H(t,this,e,n,i,a.args||{},s)}else{const t=no.registry.get(h);if("function"!=typeof t)return no.registry.onNotFound(h);l=H(t,this,e,n,i,a.args||{},s)}return l?l.round(this.POINT_ROUNDING):new Tn}findRoutePoints(t=[]){const e=this.graph.options.connecting.router||_o.presets.normal,n=this.cell.getRouter()||e;let i;if("function"==typeof n)i=H(n,this,t,{},this);else{const e="string"==typeof n?n:n.name,s="string"==typeof n?{}:n.args||{},r=e?_o.registry.get(e):_o.presets.normal;if("function"!=typeof r)return _o.registry.onNotFound(e);i=H(r,this,t,s,this)}return null==i?t.map((t=>Tn.create(t))):i.map((t=>Tn.create(t)))}findConnectionPoints(t,e,n){const i=this.cell,s=this.graph.options.connecting,r=i.getSource(),o=i.getTarget(),l=this.sourceView,a=this.targetView,h=t[0],c=t[t.length-1];let u,d;if(l&&!l.isEdgeElement(this.sourceMagnet)){const t=this.sourceMagnet||l.container,i=new kn(h||n,e),o=r.connectionPoint||s.sourceConnectionPoint||s.connectionPoint;u=this.getConnectionPoint(o,l,t,i,"source")}else u=e;if(a&&!a.isEdgeElement(this.targetMagnet)){const t=this.targetMagnet||a.container,i=o.connectionPoint||s.targetConnectionPoint||s.connectionPoint,r=new kn(c||e,n);d=this.getConnectionPoint(i,a,t,r,"target")}else d=n;return{source:u,target:d}}getConnectionPoint(t,e,n,i,s){const r=i.end;if(null==t)return r;const o="string"==typeof t?t:t.name,l="string"==typeof t?{}:t.args,a=go.registry.get(o);if("function"!=typeof a)return go.registry.onNotFound(o);const h=H(a,this,i,e,n,l||{},s);return h?h.round(this.POINT_ROUNDING):r}findMarkerPoints(t,e,n){const i=t=>{const e=this.cell.getAttrs(),n=Object.keys(e);for(let i=0,s=n.length;i0?y/p:0),h&&(y=-1*(p-y)||1),s.distance=y,l||(f=c.tangentAtT(g)),f)m=f.pointOffset(d);else{const t=c.pointAtT(g),e=d.diff(t);m={x:e.x,y:e.y}}return s.offset=m,s.angle=o,s}normalizeLabelPosition(t){return"number"==typeof t?{distance:t}:t}getLabelTransformationMatrix(t){const e=this.normalizeLabelPosition(t),n=e.options||{},i=e.angle||0,s=e.distance,r=s>0&&s<=1;let o=0;const l={x:0,y:0},a=e.offset;a&&("number"==typeof a?o=a:(null!=a.x&&(l.x=a.x),null!=a.y&&(l.y=a.y)));const h=0!==l.x||0!==l.y||0===o,c=n.keepGradient,u=n.ensureLegibility,d=this.path,g={segmentSubdivisions:this.getConnectionSubdivisions()},p=r?s*this.getConnectionLength():s,f=d.tangentAtLength(p,g);let m,y=i;if(f){if(h)m=f.start,m.translate(l);else{const t=f.clone();t.rotate(-90,f.start),t.setLength(o),m=t.end}c&&(y=f.angle()+i,u&&(y=An.normalize((y+90)%180-90)))}else m=d.start,h&&m.translate(l);return He().translate(m.x,m.y).rotate(y)}getVertexIndex(t,e){const n=this.cell.getVertices(),i=this.getClosestPointLength(new Tn(t,e));let s=0;if(null!=i)for(const r=n.length;s(e[s]=t,e[s+1]=t.container===n?void 0:n,e)}beforeArrowheadDragging(t){t.zIndex=this.cell.zIndex,this.cell.toFront();const e=this.container.style;t.pointerEvents=e.pointerEvents,e.pointerEvents="none",this.graph.options.connecting.highlight&&this.highlightAvailableMagnets(t)}afterArrowheadDragging(t){null!=t.zIndex&&(this.cell.setZIndex(t.zIndex,{ui:!0}),t.zIndex=null),this.container.style.pointerEvents=t.pointerEvents||"",this.graph.options.connecting.highlight&&this.unhighlightAvailableMagnets(t)}validateConnection(t,e,n,i,s,r,o){const l=this.graph.options.connecting,a=l.allowLoop,h=l.allowNode,c=l.allowEdge,u=l.allowPort,d=l.allowMulti,g=l.validateConnection,p=r?r.cell:null,f="target"===s?n:t,m="target"===s?i:e;let y=!0;const b=l=>{const a="source"===s?o?o.port:null:p?p.getSourcePortId():null,h="target"===s?o?o.port:null:p?p.getTargetPortId():null;return H(l,this.graph,{edge:p,edgeView:r,sourceView:t,targetView:n,sourcePort:a,targetPort:h,sourceMagnet:e,targetMagnet:i,sourceCell:t?t.cell:null,targetCell:n?n.cell:null,type:s})};if(null!=a&&("boolean"==typeof a?a||t!==n||(y=!1):y=b(a)),y&&null!=u&&("boolean"==typeof u?!u&&m&&(y=!1):y=b(u)),y&&null!=c&&("boolean"==typeof c?!c&&El.isEdgeView(f)&&(y=!1):y=b(c)),y&&null!=h&&null==m&&("boolean"==typeof h?!h&&Pl.isNodeView(f)&&(y=!1):y=b(h)),y&&null!=d&&r){const t=r.cell,e="source"===s?o:t.getSource(),n="target"===s?o:t.getTarget(),i=o?this.graph.getCellById(o.cell):null;if(e&&n&&e.cell&&n.cell&&i)if("function"==typeof d)y=b(d);else{const t=this.graph.model.getConnectedEdges(i,{outgoing:"source"===s,incoming:"target"===s});t.length&&("withPort"===d?t.some((t=>{const i=t.getSource(),s=t.getTarget();return i&&s&&i.cell===e.cell&&s.cell===n.cell&&null!=i.port&&i.port===e.port&&null!=s.port&&s.port===n.port}))&&(y=!1):d||t.some((t=>{const i=t.getSource(),s=t.getTarget();return i&&s&&i.cell===e.cell&&s.cell===n.cell}))&&(y=!1))}}return y&&null!=g&&(y=b(g)),y}allowConnectToBlank(t){const e=this.graph,n=e.options.connecting.allowBlank;if("function"!=typeof n)return!!n;const i=e.findViewByCell(t),s=t.getSourceCell(),r=t.getTargetCell(),o=e.findViewByCell(s),l=e.findViewByCell(r);return H(n,e,{edge:t,edgeView:i,sourceCell:s,targetCell:r,sourceView:o,targetView:l,sourcePort:t.getSourcePortId(),targetPort:t.getTargetPortId(),sourceMagnet:i.sourceMagnet,targetMagnet:i.targetMagnet})}validateEdge(t,e,n){const i=this.graph;if(!this.allowConnectToBlank(t)){const e=t.getSourceCellId(),n=t.getTargetCellId();if(!e||!n)return!1}const s=i.options.connecting.validateEdge;return!s||H(s,i,{edge:t,type:e,previous:n})}arrowheadDragging(t,e,n,i){i.x=e,i.y=n,i.currentTarget!==t&&(i.currentMagnet&&i.currentView&&i.currentView.unhighlight(i.currentMagnet,{type:"magnetAdsorbed"}),i.currentView=this.graph.findViewByElem(t),i.currentView?(i.currentMagnet=i.currentView.findMagnet(t),i.currentMagnet&&this.validateConnection(...i.getValidateConnectionArgs(i.currentView,i.currentMagnet),i.currentView.getEdgeTerminal(i.currentMagnet,e,n,this.cell,i.terminalType))?i.currentView.highlight(i.currentMagnet,{type:"magnetAdsorbed"}):i.currentMagnet=null):i.currentMagnet=null),i.currentTarget=t,this.cell.prop(i.terminalType,{x:e,y:n},Object.assign(Object.assign({},i.options),{ui:!0}))}arrowheadDragged(t,e,n){const i=t.currentView,s=t.currentMagnet;if(!s||!i)return;i.unhighlight(s,{type:"magnetAdsorbed"});const r=t.terminalType,o=i.getEdgeTerminal(s,e,n,this.cell,r);this.cell.setTerminal(r,o,{ui:!0})}snapArrowhead(t,e,n){const i=this.graph,{snap:s,allowEdge:r}=i.options.connecting,o="object"==typeof s&&s.radius||50,l=i.renderer.findViewsInArea({x:t-o,y:e-o,width:2*o,height:2*o},{nodeOnly:!0});if(r){const n=i.renderer.findEdgeViewsFromPoint({x:t,y:e},o).filter((t=>t!==this));l.push(...n)}const a=n.closestView||null,h=n.closestMagnet||null;let c;n.closestView=null,n.closestMagnet=null;let u=Number.MAX_SAFE_INTEGER;const d=new Tn(t,e);let g;l.forEach((i=>{if("false"!==i.container.getAttribute("magnet")){if(i.isNodeView())c=i.cell.getBBox().getCenter().distance(d);else if(i.isEdgeView()){const t=i.getClosestPoint(d);c=t?t.distance(d):Number.MAX_SAFE_INTEGER}c{if("false"!==s.getAttribute("magnet")){const r=i.getBBoxOfElement(s);c=d.distance(r.getCenter()),cthis.validateConnection(...t.getValidateConnectionArgs(s,e),s.getEdgeTerminal(e,t.x,t.y,this.cell,t.terminalType))));if(o.length>0){for(let t=0,e=o.length;t{const n=this.graph.findViewByCell(t);n&&(e[t].forEach((t=>{n.unhighlight(t,{type:"magnetAvailable"})})),n.unhighlight(null,{type:"nodeAvailable"}))})),t.marked=null}startArrowheadDragging(t,e,n){if(!this.can("arrowheadMovable"))return void this.notifyUnhandledMouseDown(t,e,n);const i=t.target.getAttribute("data-terminal"),s=this.prepareArrowheadDragging(i,{x:e,y:n});this.setEventData(t,s)}dragArrowhead(t,e,n){const i=this.getEventData(t);this.graph.options.connecting.snap?this.snapArrowhead(e,n,i):this.arrowheadDragging(this.getEventTarget(t),e,n,i)}stopArrowheadDragging(t,e,n){const i=this.graph,s=this.getEventData(t);i.options.connecting.snap?this.snapArrowheadEnd(s):this.arrowheadDragged(s,e,n),this.validateEdge(this.cell,s.terminalType,s.initialTerminal)?(this.finishEmbedding(s),this.notifyConnectionEvent(s,t)):this.fallbackConnection(s),this.afterArrowheadDragging(s)}startLabelDragging(t,e,n){if(this.can("edgeLabelMovable")){const e=t.currentTarget,n=parseInt(e.getAttribute("data-index"),10),i=this.getLabelPositionAngle(n),s=this.getLabelPositionArgs(n),r=this.getDefaultLabelPositionArgs(),o=this.mergeLabelPositionArgs(s,r);this.setEventData(t,{index:n,positionAngle:i,positionArgs:o,stopPropagation:!0,action:"drag-label"})}else this.setEventData(t,{stopPropagation:!0});this.graph.view.delegateDragEvents(t,this)}dragLabel(t,e,n){const i=this.getEventData(t),s=this.cell.getLabelAt(i.index),r=c({},s,{position:this.getLabelPosition(e,n,i.positionAngle,i.positionArgs)});this.cell.setLabelAt(i.index,r)}stopLabelDragging(t,e,n){}}!function(t){t.toStringTag=`X6.${t.name}`,t.isEdgeView=function(e){if(null==e)return!1;if(e instanceof t)return!0;const n=e[Symbol.toStringTag],i=e;return(null==n||n===t.toStringTag)&&"function"==typeof i.isNodeView&&"function"==typeof i.isEdgeView&&"function"==typeof i.confirmUpdate&&"function"==typeof i.update&&"function"==typeof i.getConnection}}(El||(El={})),El.config({isSvgElement:!0,priority:1,bootstrap:["render","source","target"],actions:{view:["render"],markup:["render"],attrs:["update"],source:["source","update"],target:["target","update"],router:["update"],connector:["update"],labels:["labels"],defaultLabel:["labels"],tools:["tools"],vertices:["vertices","update"]}}),El.registry.register("edge",El,!0);var Sl=globalThis&&globalThis.__decorate||function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};class Al extends cr{get options(){return this.graph.options}constructor(t){super(),this.graph=t;const{selectors:e,fragment:n}=hr.parseJSONMarkup(Al.markup);this.background=e.background,this.grid=e.grid,this.svg=e.svg,this.defs=e.defs,this.viewport=e.viewport,this.primer=e.primer,this.stage=e.stage,this.decorator=e.decorator,this.overlay=e.overlay,this.container=this.options.container,this.restore=Al.snapshoot(this.container),Dt(this.container,this.prefixClassName("graph")),Qt(this.container,n),this.delegateEvents()}delegateEvents(){const t=this.constructor;return super.delegateEvents(t.events),this}guard(t,e){return"mousedown"===t.type&&2===t.button||!(!this.options.guard||!this.options.guard(t,e))||(t.data&&void 0!==t.data.guarded?t.data.guarded:!(e&&e.cell&&rl.isCell(e.cell)||this.svg===t.target||this.container===t.target||this.svg.contains(t.target)))}findView(t){return this.graph.findViewByElem(t)}onDblClick(t){this.options.preventDefaultDblClick&&t.preventDefault();const e=this.normalizeEvent(t),n=this.findView(e.target);if(this.guard(e,n))return;const i=this.graph.snapToGrid(e.clientX,e.clientY);n?n.onDblClick(e,i.x,i.y):this.graph.trigger("blank:dblclick",{e:e,x:i.x,y:i.y})}onClick(t){if(this.getMouseMovedCount(t)<=this.options.clickThreshold){const e=this.normalizeEvent(t),n=this.findView(e.target);if(this.guard(e,n))return;const i=this.graph.snapToGrid(e.clientX,e.clientY);n?n.onClick(e,i.x,i.y):this.graph.trigger("blank:click",{e:e,x:i.x,y:i.y})}}isPreventDefaultContextMenu(t){let e=this.options.preventDefaultContextMenu;return"function"==typeof e&&(e=H(e,this.graph,{view:t})),e}onContextMenu(t){const e=this.normalizeEvent(t),n=this.findView(e.target);if(this.isPreventDefaultContextMenu(n)&&t.preventDefault(),this.guard(e,n))return;const i=this.graph.snapToGrid(e.clientX,e.clientY);n?n.onContextMenu(e,i.x,i.y):this.graph.trigger("blank:contextmenu",{e:e,x:i.x,y:i.y})}delegateDragEvents(t,e){null==t.data&&(t.data={}),this.setEventData(t,{currentView:e||null,mouseMovedCount:0,startPosition:{x:t.clientX,y:t.clientY}});const n=this.constructor;this.delegateDocumentEvents(n.documentEvents,t.data),this.undelegateEvents()}getMouseMovedCount(t){return this.getEventData(t).mouseMovedCount||0}onMouseDown(t){const e=this.normalizeEvent(t),n=this.findView(e.target);if(this.guard(e,n))return;this.options.preventDefaultMouseDown&&t.preventDefault();const i=this.graph.snapToGrid(e.clientX,e.clientY);n?n.onMouseDown(e,i.x,i.y):(this.options.preventDefaultBlankAction&&["touchstart"].includes(e.type)&&t.preventDefault(),this.graph.trigger("blank:mousedown",{e:e,x:i.x,y:i.y})),this.delegateDragEvents(e,n)}onMouseMove(t){const e=this.getEventData(t),n=e.startPosition;if(n&&n.x===t.clientX&&n.y===t.clientY)return;if(null==e.mouseMovedCount&&(e.mouseMovedCount=0),e.mouseMovedCount+=1,e.mouseMovedCount<=this.options.moveThreshold)return;const i=this.normalizeEvent(t),s=this.graph.snapToGrid(i.clientX,i.clientY),r=e.currentView;r?r.onMouseMove(i,s.x,s.y):this.graph.trigger("blank:mousemove",{e:i,x:s.x,y:s.y}),this.setEventData(i,e)}onMouseUp(t){this.undelegateDocumentEvents();const e=this.normalizeEvent(t),n=this.graph.snapToGrid(e.clientX,e.clientY),i=this.getEventData(t).currentView;if(i?i.onMouseUp(e,n.x,n.y):this.graph.trigger("blank:mouseup",{e:e,x:n.x,y:n.y}),!t.isPropagationStopped()){const e=new on(t,{type:"click",data:t.data});this.onClick(e)}t.stopImmediatePropagation(),this.delegateEvents()}onMouseOver(t){const e=this.normalizeEvent(t),n=this.findView(e.target);if(!this.guard(e,n))if(n)n.onMouseOver(e);else{if(this.container===e.target)return;this.graph.trigger("blank:mouseover",{e:e})}}onMouseOut(t){const e=this.normalizeEvent(t),n=this.findView(e.target);if(!this.guard(e,n))if(n)n.onMouseOut(e);else{if(this.container===e.target)return;this.graph.trigger("blank:mouseout",{e:e})}}onMouseEnter(t){const e=this.normalizeEvent(t),n=this.findView(e.target);if(this.guard(e,n))return;const i=this.graph.findViewByElem(e.relatedTarget);if(n){if(i===n)return;n.onMouseEnter(e)}else{if(i)return;this.graph.trigger("graph:mouseenter",{e:e})}}onMouseLeave(t){const e=this.normalizeEvent(t),n=this.findView(e.target);if(this.guard(e,n))return;const i=this.graph.findViewByElem(e.relatedTarget);if(n){if(i===n)return;n.onMouseLeave(e)}else{if(i)return;this.graph.trigger("graph:mouseleave",{e:e})}}onMouseWheel(t){const e=this.normalizeEvent(t),n=this.findView(e.target);if(this.guard(e,n))return;const i=e.originalEvent,s=this.graph.snapToGrid(i.clientX,i.clientY),r=Math.max(-1,Math.min(1,i.wheelDelta||-i.detail));n?n.onMouseWheel(e,s.x,s.y,r):this.graph.trigger("blank:mousewheel",{e:e,delta:r,x:s.x,y:s.y})}onCustomEvent(t){const e=t.currentTarget,n=e.getAttribute("event")||e.getAttribute("data-event");if(n){const i=this.findView(e);if(i){const e=this.normalizeEvent(t);if(this.guard(e,i))return;const s=this.graph.snapToGrid(e.clientX,e.clientY);i.onCustomEvent(e,n,s.x,s.y)}}}handleMagnetEvent(t,e){const n=t.currentTarget,i=n.getAttribute("magnet");if(i&&"false"!==i.toLowerCase()){const i=this.findView(n);if(i){const s=this.normalizeEvent(t);if(this.guard(s,i))return;const r=this.graph.snapToGrid(s.clientX,s.clientY);H(e,this.graph,i,s,n,r.x,r.y)}}}onMagnetMouseDown(t){this.handleMagnetEvent(t,((t,e,n,i,s)=>{t.onMagnetMouseDown(e,n,i,s)}))}onMagnetDblClick(t){this.handleMagnetEvent(t,((t,e,n,i,s)=>{t.onMagnetDblClick(e,n,i,s)}))}onMagnetContextMenu(t){const e=this.findView(t.target);this.isPreventDefaultContextMenu(e)&&t.preventDefault(),this.handleMagnetEvent(t,((t,e,n,i,s)=>{t.onMagnetContextMenu(e,n,i,s)}))}onLabelMouseDown(t){const e=t.currentTarget,n=this.findView(e);if(n){const e=this.normalizeEvent(t);if(this.guard(e,n))return;const i=this.graph.snapToGrid(e.clientX,e.clientY);n.onLabelMouseDown(e,i.x,i.y)}}onImageDragStart(){return!1}dispose(){this.undelegateEvents(),this.undelegateDocumentEvents(),this.restore(),this.restore=()=>{}}}Sl([cr.dispose()],Al.prototype,"dispose",null),function(t){const e=`${Ds.prefixCls}-graph`;t.markup=[{ns:Gt.xhtml,tagName:"div",selector:"background",className:`${e}-background`},{ns:Gt.xhtml,tagName:"div",selector:"grid",className:`${e}-grid`},{ns:Gt.svg,tagName:"svg",selector:"svg",className:`${e}-svg`,attrs:{width:"100%",height:"100%","xmlns:xlink":Gt.xlink},children:[{tagName:"defs",selector:"defs"},{tagName:"g",selector:"viewport",className:`${e}-svg-viewport`,children:[{tagName:"g",selector:"primer",className:`${e}-svg-primer`},{tagName:"g",selector:"stage",className:`${e}-svg-stage`},{tagName:"g",selector:"decorator",className:`${e}-svg-decorator`},{tagName:"g",selector:"overlay",className:`${e}-svg-overlay`}]}]}],t.snapshoot=function(t){const e=t.cloneNode();return t.childNodes.forEach((t=>e.appendChild(t))),()=>{for(Zt(t);t.attributes.length>0;)t.removeAttribute(t.attributes[0].name);for(let n=0,i=e.attributes.length;nt.appendChild(e)))}}}(Al||(Al={})),function(t){const e=Ds.prefixCls;t.events={dblclick:"onDblClick",contextmenu:"onContextMenu",touchstart:"onMouseDown",mousedown:"onMouseDown",mouseover:"onMouseOver",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousewheel:"onMouseWheel",DOMMouseScroll:"onMouseWheel",[`mouseenter .${e}-cell`]:"onMouseEnter",[`mouseleave .${e}-cell`]:"onMouseLeave",[`mouseenter .${e}-cell-tools`]:"onMouseEnter",[`mouseleave .${e}-cell-tools`]:"onMouseLeave",[`mousedown .${e}-cell [event]`]:"onCustomEvent",[`touchstart .${e}-cell [event]`]:"onCustomEvent",[`mousedown .${e}-cell [data-event]`]:"onCustomEvent",[`touchstart .${e}-cell [data-event]`]:"onCustomEvent",[`dblclick .${e}-cell [magnet]`]:"onMagnetDblClick",[`contextmenu .${e}-cell [magnet]`]:"onMagnetContextMenu",[`mousedown .${e}-cell [magnet]`]:"onMagnetMouseDown",[`touchstart .${e}-cell [magnet]`]:"onMagnetMouseDown",[`dblclick .${e}-cell [data-magnet]`]:"onMagnetDblClick",[`contextmenu .${e}-cell [data-magnet]`]:"onMagnetContextMenu",[`mousedown .${e}-cell [data-magnet]`]:"onMagnetMouseDown",[`touchstart .${e}-cell [data-magnet]`]:"onMagnetMouseDown",[`dragstart .${e}-cell image`]:"onImageDragStart",[`mousedown .${e}-edge .${e}-edge-label`]:"onLabelMouseDown",[`touchstart .${e}-edge .${e}-edge-label`]:"onLabelMouseDown"},t.documentEvents={mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"}}(Al||(Al={}));class Ml extends G{get options(){return this.graph.options}get model(){return this.graph.model}get view(){return this.graph.view}constructor(t){super(),this.graph=t,this.init()}init(){}}var Ol=globalThis&&globalThis.__decorate||function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};class Tl extends Ml{init(){En("core",".x6-graph {\n position: relative;\n outline: none;\n touch-action: none;\n}\n.x6-graph-background,\n.x6-graph-grid,\n.x6-graph-svg {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.x6-graph-background-stage,\n.x6-graph-grid-stage,\n.x6-graph-svg-stage {\n user-select: none;\n}\n.x6-graph.x6-graph-pannable {\n cursor: grab;\n cursor: -moz-grab;\n cursor: -webkit-grab;\n}\n.x6-graph.x6-graph-panning {\n cursor: grabbing;\n cursor: -moz-grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n}\n.x6-node {\n cursor: move;\n /* stylelint-disable-next-line */\n}\n.x6-node.x6-node-immovable {\n cursor: default;\n}\n.x6-node * {\n -webkit-user-drag: none;\n}\n.x6-node .scalable * {\n vector-effect: non-scaling-stroke;\n}\n.x6-node [magnet='true'] {\n cursor: crosshair;\n transition: opacity 0.3s;\n}\n.x6-node [magnet='true']:hover {\n opacity: 0.7;\n}\n.x6-node foreignObject {\n display: block;\n overflow: visible;\n background-color: transparent;\n}\n.x6-node foreignObject > body {\n position: static;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n overflow: visible;\n background-color: transparent;\n}\n.x6-edge .source-marker,\n.x6-edge .target-marker {\n vector-effect: non-scaling-stroke;\n}\n.x6-edge .connection {\n stroke-linejoin: round;\n fill: none;\n}\n.x6-edge .connection-wrap {\n cursor: move;\n opacity: 0;\n fill: none;\n stroke: #000;\n stroke-width: 15;\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n.x6-edge .connection-wrap:hover {\n opacity: 0.4;\n stroke-opacity: 0.4;\n}\n.x6-edge .vertices {\n cursor: move;\n opacity: 0;\n}\n.x6-edge .vertices .vertex {\n fill: #1abc9c;\n}\n.x6-edge .vertices .vertex :hover {\n fill: #34495e;\n stroke: none;\n}\n.x6-edge .vertices .vertex-remove {\n cursor: pointer;\n fill: #fff;\n}\n.x6-edge .vertices .vertex-remove-area {\n cursor: pointer;\n opacity: 0.1;\n}\n.x6-edge .vertices .vertex-group:hover .vertex-remove-area {\n opacity: 1;\n}\n.x6-edge .arrowheads {\n cursor: move;\n opacity: 0;\n}\n.x6-edge .arrowheads .arrowhead {\n fill: #1abc9c;\n}\n.x6-edge .arrowheads .arrowhead :hover {\n fill: #f39c12;\n stroke: none;\n}\n.x6-edge .tools {\n cursor: pointer;\n opacity: 0;\n}\n.x6-edge .tools .tool-options {\n display: none;\n}\n.x6-edge .tools .tool-remove circle {\n fill: #f00;\n}\n.x6-edge .tools .tool-remove path {\n fill: #fff;\n}\n.x6-edge:hover .vertices,\n.x6-edge:hover .arrowheads,\n.x6-edge:hover .tools {\n opacity: 1;\n}\n.x6-highlight-opacity {\n opacity: 0.3;\n}\n.x6-cell-tool-editor {\n position: relative;\n display: inline-block;\n min-height: 1em;\n margin: 0;\n padding: 0;\n line-height: 1;\n white-space: normal;\n text-align: center;\n vertical-align: top;\n overflow-wrap: normal;\n outline: none;\n transform-origin: 0 0;\n -webkit-user-drag: none;\n}\n.x6-edge-tool-editor {\n border: 1px solid #275fc5;\n border-radius: 2px;\n}\n")}dispose(){Sn("core")}}Ol([Tl.dispose()],Tl.prototype,"dispose",null);var Nl,kl=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s{const n=e[t];"boolean"==typeof n?a[t].enabled=n:a[t]=Object.assign(Object.assign({},a[t]),n)})),a}}(Nl||(Nl={})),(Nl||(Nl={})).defaults={x:0,y:0,scaling:{min:.01,max:16},grid:{size:10,visible:!1},background:!1,panning:{enabled:!1,eventTypes:["leftMouseDown"]},mousewheel:{enabled:!1,factor:1.2,zoomAtMousePosition:!0},highlighting:{default:{name:"stroke",args:{padding:3}},nodeAvailable:{name:"className",args:{className:Ds.prefix("available-node")}},magnetAvailable:{name:"className",args:{className:Ds.prefix("available-magnet")}}},connecting:{snap:!1,allowLoop:!0,allowNode:!0,allowEdge:!1,allowPort:!0,allowBlank:!0,allowMulti:!0,highlight:!1,anchor:"center",edgeAnchor:"ratio",connectionPoint:"boundary",router:"normal",connector:"normal",validateConnection:({type:t,sourceView:e,targetView:n})=>null!=("target"===t?n:e),createEdge:()=>new bl},translating:{restrict:!1},embedding:{enabled:!1,findParent:"bbox",frontOnly:!0,validate:()=>!0},moveThreshold:0,clickThreshold:0,magnetThreshold:0,preventDefaultDblClick:!0,preventDefaultMouseDown:!1,preventDefaultContextMenu:!0,preventDefaultBlankAction:!0,interacting:{edgeLabelMovable:!1},async:!0,virtual:!1,guard:()=>!1};var jl=globalThis&&globalThis.__decorate||function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o},Ll=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s{const o=`pattern_${r}`,l=n.a||1,a=n.d||1,{update:h,markup:c}=t,u=Ll(t,["update","markup"]),d=Object.assign(Object.assign(Object.assign({},u),s[r]),{sx:l,sy:a,ox:n.e||0,oy:n.f||0,width:e*l,height:e*a});i.has(o)||i.add(o,Me.create("pattern",{id:o,patternUnits:"userSpaceOnUse"},Me.createVectors(c)).node);const g=i.get(o);"function"==typeof h&&h(g.childNodes[0],d);let p=d.ox%d.width;p<0&&(p+=d.width);let f=d.oy%d.height;f<0&&(f+=d.height),le(g,{x:p,y:f,width:d.width,height:d.height})}));const r=(new XMLSerializer).serializeToString(i.root),o=`url(data:image/svg+xml;base64,${btoa(r)})`;this.elem.style.backgroundImage=o}getInstance(){return this.instance||(this.instance=new si),this.instance}resolveGrid(t){if(!t)return[];const e=t.type;if(null==e)return[Object.assign(Object.assign({},si.presets.dot),t.args)];const n=si.registry.get(e);if(n){let e=t.args||[];return Array.isArray(e)||(e=[e]),Array.isArray(n)?n.map(((t,n)=>Object.assign(Object.assign({},t),e[n]))):[Object.assign(Object.assign({},n),e[0])]}return si.registry.onNotFound(e)}dispose(){this.stopListening(),this.clear()}}jl([Ml.dispose()],Bl.prototype,"dispose",null);class Rl extends Ml{get container(){return this.graph.view.container}get viewport(){return this.graph.view.viewport}get stage(){return this.graph.view.stage}init(){this.resize()}getMatrix(){const t=this.viewport.getAttribute("transform");return t!==this.viewportTransformString&&(this.viewportMatrix=this.viewport.getCTM(),this.viewportTransformString=t),He(this.viewportMatrix)}setMatrix(t){const e=He(t),n=Xe(e);this.viewport.setAttribute("transform",n),this.viewportMatrix=e,this.viewportTransformString=n}resize(t,e){let n=void 0===t?this.options.width:t,i=void 0===e?this.options.height:e;this.options.width=n,this.options.height=i,"number"==typeof n&&(n=Math.round(n)),"number"==typeof i&&(i=Math.round(i)),this.container.style.width=null==n?"":`${n}px`,this.container.style.height=null==i?"":`${i}px`;const s=this.getComputedSize();return this.graph.trigger("resize",Object.assign({},s)),this}getComputedSize(){let t=this.options.width,e=this.options.height;return P(t)||(t=this.container.clientWidth),P(e)||(e=this.container.clientHeight),{width:t,height:e}}getScale(){return function(t){let e,n,i,s;return t?(e=null==t.a?1:t.a,s=null==t.d?1:t.d,n=t.b,i=t.c):e=s=1,{sx:n?Math.sqrt(e*e+n*n):e,sy:i?Math.sqrt(i*i+s*s):s}}(this.getMatrix())}scale(t,e=t,n=0,i=0){if(t=this.clampScale(t),e=this.clampScale(e),n||i){const s=this.getTranslation(),r=s.tx-n*(t-1),o=s.ty-i*(e-1);r===s.tx&&o===s.ty||this.translate(r,o)}const s=this.getMatrix();return s.a=t,s.d=e,this.setMatrix(s),this.graph.trigger("scale",{sx:t,sy:e,ox:n,oy:i}),this}clampScale(t){const e=this.graph.options.scaling;return i(t,e.min||.01,e.max||16)}getZoom(){return this.getScale().sx}zoom(t,e){e=e||{};let n=t,i=t;const s=this.getScale(),r=this.getComputedSize();let o=r.width/2,l=r.height/2;if(e.absolute||(n+=s.sx,i+=s.sy),e.scaleGrid&&(n=Math.round(n/e.scaleGrid)*e.scaleGrid,i=Math.round(i/e.scaleGrid)*e.scaleGrid),e.maxScale&&(n=Math.min(e.maxScale,n),i=Math.min(e.maxScale,i)),e.minScale&&(n=Math.max(e.minScale,n),i=Math.max(e.minScale,i)),e.center&&(o=e.center.x,l=e.center.y),n=this.clampScale(n),i=this.clampScale(i),o||l){const t=this.getTranslation(),e=o-(o-t.tx)*(n/s.sx),r=l-(l-t.ty)*(i/s.sy);e===t.tx&&r===t.ty||this.translate(e,r)}return this.scale(n,i),this}getRotation(){return function(t){let e={x:0,y:1};t&&(e=Ye(t,e));const n=180*Math.atan2(e.y,e.x)/Math.PI%360-90;return{angle:n%360+(n<0?360:0)}}(this.getMatrix())}rotate(t,e,n){if(null==e||null==n){const t=Fs.getBBox(this.stage);e=t.width/2,n=t.height/2}const i=this.getMatrix().translate(e,n).rotate(t).translate(-e,-n);return this.setMatrix(i),this}getTranslation(){return{tx:(t=this.getMatrix())&&t.e||0,ty:t&&t.f||0};var t}translate(t,e){const n=this.getMatrix();n.e=t||0,n.f=e||0,this.setMatrix(n);const i=this.getTranslation();return this.options.x=i.tx,this.options.y=i.ty,this.graph.trigger("translate",Object.assign({},i)),this}setOrigin(t,e){return this.translate(t||0,e||0)}fitToContent(t,e,n,i){if("object"==typeof t){const s=t;t=s.gridWidth||1,e=s.gridHeight||1,n=s.padding||0,i=s}else t=t||1,e=e||1,n=n||0,null==i&&(i={});const s=gt(n),r=i.border||0,o=i.contentArea?Nn.create(i.contentArea):this.getContentArea(i);r>0&&o.inflate(r);const l=this.getScale(),a=this.getTranslation(),h=l.sx,c=l.sy;o.x*=h,o.y*=c,o.width*=h,o.height*=c;let u=Math.max(Math.ceil((o.width+o.x)/t),1)*t,d=Math.max(Math.ceil((o.height+o.y)/e),1)*e,g=0,p=0;("negative"===i.allowNewOrigin&&o.x<0||"positive"===i.allowNewOrigin&&o.x>=0||"any"===i.allowNewOrigin)&&(g=Math.ceil(-o.x/t)*t,g+=s.left,u+=g),("negative"===i.allowNewOrigin&&o.y<0||"positive"===i.allowNewOrigin&&o.y>=0||"any"===i.allowNewOrigin)&&(p=Math.ceil(-o.y/e)*e,p+=s.top,d+=p),u+=s.right,d+=s.bottom,u=Math.max(u,i.minWidth||0),d=Math.max(d,i.minHeight||0),u=Math.min(u,i.maxWidth||Number.MAX_SAFE_INTEGER),d=Math.min(d,i.maxHeight||Number.MAX_SAFE_INTEGER);const f=this.getComputedSize(),m=u!==f.width||d!==f.height;return(g!==a.tx||p!==a.ty)&&this.translate(g,p),m&&this.resize(u,d),new Nn(-g/h,-p/c,u/h,d/c)}scaleContentToFit(t={}){this.scaleContentToFitImpl(t)}scaleContentToFitImpl(t={},e=!0){let n,s;if(t.contentArea){const e=t.contentArea;n=this.graph.localToGraph(e),s=Tn.create(e)}else n=this.getContentBBox(t),s=this.graph.graphToLocal(n);if(!n.width||!n.height)return;const r=gt(t.padding),o=t.minScale||0,l=t.maxScale||Number.MAX_SAFE_INTEGER,a=t.minScaleX||o,h=t.maxScaleX||l,c=t.minScaleY||o,u=t.maxScaleY||l;let d;if(t.viewportArea)d=t.viewportArea;else{const t=this.getComputedSize(),e=this.getTranslation();d={x:e.tx,y:e.ty,width:t.width,height:t.height}}d=Nn.create(d).moveAndExpand({x:r.left,y:r.top,width:-r.left-r.right,height:-r.top-r.bottom});const g=this.getScale();let p=d.width/n.width*g.sx,f=d.height/n.height*g.sy;!1!==t.preserveAspectRatio&&(p=f=Math.min(p,f));const m=t.scaleGrid;if(m&&(p=m*Math.floor(p/m),f=m*Math.floor(f/m)),p=i(p,a,h),f=i(f,c,u),this.scale(p,f),e){const t=this.options,e=d.x-s.x*p-t.x,n=d.y-s.y*f-t.y;this.translate(e,n)}}getContentArea(t={}){return!1!==t.useCellGeometry?this.model.getAllCellsBBox()||new Nn:Fs.getBBox(this.stage)}getContentBBox(t={}){return this.graph.localToGraph(this.getContentArea(t))}getGraphArea(){const t=Nn.fromSize(this.getComputedSize());return this.graph.graphToLocal(t)}zoomToRect(t,e={}){const n=Nn.create(t),i=this.graph;e.contentArea=n,null==e.viewportArea&&(e.viewportArea={x:i.options.x,y:i.options.y,width:this.options.width,height:this.options.height}),this.scaleContentToFitImpl(e,!1);const s=n.getCenter();return this.centerPoint(s.x,s.y),this}zoomToFit(t={}){return this.zoomToRect(this.getContentArea(t),t)}centerPoint(t,e){const n=this.getComputedSize(),i=this.getScale(),s=this.getTranslation(),r=n.width/2,o=n.height/2;e="number"==typeof e?e:o,t=r-(t="number"==typeof t?t:r)*i.sx,e=o-e*i.sy,s.tx===t&&s.ty===e||this.translate(t,e)}centerContent(t){const e=this.graph.getContentArea(t).getCenter();this.centerPoint(e.x,e.y)}centerCell(t){return this.positionCell(t,"center")}positionPoint(t,e,n){const i=this.getComputedSize();(e=dt(e,Math.max(0,i.width)))<0&&(e=i.width+e),(n=dt(n,Math.max(0,i.height)))<0&&(n=i.height+n);const s=this.getTranslation(),r=this.getScale(),o=e-t.x*r.sx,l=n-t.y*r.sy;s.tx===o&&s.ty===l||this.translate(o,l)}positionRect(t,e){const n=Nn.create(t);switch(e){case"center":return this.positionPoint(n.getCenter(),"50%","50%");case"top":return this.positionPoint(n.getTopCenter(),"50%",0);case"top-right":return this.positionPoint(n.getTopRight(),"100%",0);case"right":return this.positionPoint(n.getRightMiddle(),"100%","50%");case"bottom-right":return this.positionPoint(n.getBottomRight(),"100%","100%");case"bottom":return this.positionPoint(n.getBottomCenter(),"50%","100%");case"bottom-left":return this.positionPoint(n.getBottomLeft(),0,"100%");case"left":return this.positionPoint(n.getLeftMiddle(),0,"50%");case"top-left":return this.positionPoint(n.getTopLeft(),0,0);default:return this}}positionCell(t,e){const n=t.getBBox();return this.positionRect(n,e)}positionContent(t,e){const n=this.graph.getContentArea(e);return this.positionRect(n,t)}}var Dl=globalThis&&globalThis.__decorate||function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};class Il extends Ml{get elem(){return this.view.background}init(){this.startListening(),this.options.background&&this.draw(this.options.background)}startListening(){this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this)}stopListening(){this.graph.off("scale",this.update,this),this.graph.off("translate",this.update,this)}updateBackgroundImage(t={}){let e=t.size||"auto auto",n=t.position||"center";const i=this.graph.transform.getScale(),s=this.graph.translate();"object"==typeof n&&(n=`${s.tx+i.sx*(n.x||0)}px ${s.ty+i.sy*(n.y||0)}px`),"object"==typeof e&&(e=Nn.fromSize(e).scale(i.sx,i.sy),e=`${e.width}px ${e.height}px`),this.elem.style.backgroundSize=e,this.elem.style.backgroundPosition=n}drawBackgroundImage(t,e={}){if(!(t instanceof HTMLImageElement))return void(this.elem.style.backgroundImage="");const n=this.optionsCache;if(n&&n.image!==e.image)return;let i;const s=e.opacity,r=e.size;let o=e.repeat||"no-repeat";const l=hi.registry.get(o);if("function"==typeof l){const n=e.quality||1;t.width*=n,t.height*=n;const s=l(t,e);if(!(s instanceof HTMLCanvasElement))throw new Error("Background pattern must return an HTML Canvas instance");i=s.toDataURL("image/png"),o=e.repeat&&o!==e.repeat?e.repeat:"repeat","object"==typeof r?(r.width*=s.width/t.width,r.height*=s.height/t.height):void 0===r&&(e.size={width:s.width/n,height:s.height/n})}else i=t.src,void 0===r&&(e.size={width:t.width,height:t.height});null!=n&&"object"==typeof e.size&&e.image===n.image&&e.repeat===n.repeat&&e.quality===n.quality&&(n.size=C(e.size));const a=this.elem.style;a.backgroundImage=`url(${i})`,a.backgroundRepeat=o,a.opacity=null==s||s>=1?"":`${s}`,this.updateBackgroundImage(e)}updateBackgroundColor(t){this.elem.style.backgroundColor=t||""}updateBackgroundOptions(t){this.graph.options.background=t}update(){this.optionsCache&&this.updateBackgroundImage(this.optionsCache)}draw(t){const e=t||{};if(this.updateBackgroundOptions(t),this.updateBackgroundColor(e.color),e.image){this.optionsCache=C(e);const n=document.createElement("img");n.onload=()=>this.drawBackgroundImage(n,t),n.setAttribute("crossorigin","anonymous"),n.src=e.image}else this.drawBackgroundImage(null),this.optionsCache=null}clear(){this.draw()}dispose(){this.clear(),this.stopListening()}}Dl([Ml.dispose()],Il.prototype,"dispose",null);var Vl=globalThis&&globalThis.__decorate||function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};class zl extends Ml{get widgetOptions(){return this.options.panning}get pannable(){return this.widgetOptions&&!0===this.widgetOptions.enabled}init(){this.startListening(),this.updateClassName()}startListening(){const t=this.widgetOptions.eventTypes;t&&(t.includes("leftMouseDown")&&(this.graph.on("blank:mousedown",this.preparePanning,this),this.graph.on("node:unhandled:mousedown",this.preparePanning,this),this.graph.on("edge:unhandled:mousedown",this.preparePanning,this)),t.includes("rightMouseDown")&&(this.onRightMouseDown=this.onRightMouseDown.bind(this),an.on(this.graph.container,"mousedown",this.onRightMouseDown)),t.includes("mouseWheel")&&(this.mousewheelHandle=new un(this.graph.container,this.onMouseWheel.bind(this),this.allowMouseWheel.bind(this)),this.mousewheelHandle.enable()))}stopListening(){const t=this.widgetOptions.eventTypes;t&&(t.includes("leftMouseDown")&&(this.graph.off("blank:mousedown",this.preparePanning,this),this.graph.off("node:unhandled:mousedown",this.preparePanning,this),this.graph.off("edge:unhandled:mousedown",this.preparePanning,this)),t.includes("rightMouseDown")&&an.off(this.graph.container,"mousedown",this.onRightMouseDown),t.includes("mouseWheel")&&this.mousewheelHandle&&this.mousewheelHandle.disable())}preparePanning({e:t}){const e=this.graph.getPlugin("selection"),n=e&&e.allowRubberband(t,!0);(this.allowPanning(t,!0)||this.allowPanning(t)&&!n)&&this.startPanning(t)}allowPanning(t,e){return this.pannable&&yn.isMatch(t,this.widgetOptions.modifiers,e)}startPanning(t){const e=this.view.normalizeEvent(t);this.clientX=e.clientX,this.clientY=e.clientY,this.panning=!0,this.updateClassName(),an.on(document.body,{"mousemove.panning touchmove.panning":this.pan.bind(this),"mouseup.panning touchend.panning":this.stopPanning.bind(this),"mouseleave.panning":this.stopPanning.bind(this)}),an.on(window,"mouseup.panning",this.stopPanning.bind(this))}pan(t){const e=this.view.normalizeEvent(t),n=e.clientX-this.clientX,i=e.clientY-this.clientY;this.clientX=e.clientX,this.clientY=e.clientY,this.graph.translateBy(n,i)}stopPanning(t){this.panning=!1,this.updateClassName(),an.off(document.body,".panning"),an.off(window,".panning")}updateClassName(){const t=this.view.container,e=this.view.prefixClassName("graph-panning"),n=this.view.prefixClassName("graph-pannable");this.pannable?this.panning?(Dt(t,e),It(t,n)):(It(t,e),Dt(t,n)):(It(t,e),It(t,n))}onRightMouseDown(t){2===t.button&&this.allowPanning(t,!0)&&this.startPanning(t)}allowMouseWheel(t){return this.pannable&&!t.ctrlKey}onMouseWheel(t,e,n){t.ctrlKey||this.graph.translateBy(-e,-n)}autoPanning(t,e){const n=10,i=this.graph.getGraphArea();let s=0,r=0;t<=i.left+n&&(s=-10),e<=i.top+n&&(r=-10),t>=i.right-n&&(s=n),e>=i.bottom-n&&(r=n),0===s&&0===r||this.graph.translateBy(-s,-r)}enablePanning(){this.pannable||(this.widgetOptions.enabled=!0,this.updateClassName())}disablePanning(){this.pannable&&(this.widgetOptions.enabled=!1,this.updateClassName())}dispose(){this.stopListening()}}Vl([Ml.dispose()],zl.prototype,"dispose",null);var $l=globalThis&&globalThis.__decorate||function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};class Fl extends Ml{constructor(){super(...arguments),this.cumulatedFactor=1}get widgetOptions(){return this.options.mousewheel}init(){this.container=this.graph.container,this.target=this.widgetOptions.global?document:this.container,this.mousewheelHandle=new un(this.target,this.onMouseWheel.bind(this),this.allowMouseWheel.bind(this)),this.widgetOptions.enabled&&this.enable(!0)}get disabled(){return!0!==this.widgetOptions.enabled}enable(t){(this.disabled||t)&&(this.widgetOptions.enabled=!0,this.mousewheelHandle.enable())}disable(){this.disabled||(this.widgetOptions.enabled=!1,this.mousewheelHandle.disable())}allowMouseWheel(t){const e=this.widgetOptions.guard;return(null==e||e.call(t))&&yn.isMatch(t,this.widgetOptions.modifiers)}onMouseWheel(t){const e=this.widgetOptions.guard;if((null==e||e.call(t))&&yn.isMatch(t,this.widgetOptions.modifiers)){const e=this.widgetOptions.factor||1.2;null==this.currentScale&&(this.startPos={x:t.clientX,y:t.clientY},this.currentScale=this.graph.transform.getScale().sx),t.deltaY<0?this.currentScale<.15?this.cumulatedFactor=(this.currentScale+.01)/this.currentScale:this.cumulatedFactor=Math.round(this.currentScale*e*20)/20/this.currentScale:this.currentScale<=.15?this.cumulatedFactor=(this.currentScale-.01)/this.currentScale:this.cumulatedFactor=Math.round(this.currentScale*(1/e)*20)/20/this.currentScale,this.cumulatedFactor=Math.max(.01,Math.min(this.currentScale*this.cumulatedFactor,160)/this.currentScale);const n=this.currentScale;let s=this.graph.transform.clampScale(n*this.cumulatedFactor);const r=this.widgetOptions.minScale||Number.MIN_SAFE_INTEGER,o=this.widgetOptions.maxScale||Number.MAX_SAFE_INTEGER;if(s=i(s,r,o),s!==n)if(this.widgetOptions.zoomAtMousePosition){const t=this.graph.getPlugin("scroller")?this.graph.clientToLocal(this.startPos):this.graph.clientToGraph(this.startPos);this.graph.zoom(s,{absolute:!0,center:t.clone()})}else this.graph.zoom(s,{absolute:!0});this.currentScale=null,this.cumulatedFactor=1}}dispose(){this.disable()}}$l([G.dispose()],Fl.prototype,"dispose",null);var Gl,_l=globalThis&&globalThis.__decorate||function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};class ql extends Ml{init(){this.resetRenderArea=E(this.resetRenderArea,200,{leading:!0}),this.resetRenderArea(),this.startListening()}startListening(){this.graph.on("translate",this.resetRenderArea,this),this.graph.on("scale",this.resetRenderArea,this),this.graph.on("resize",this.resetRenderArea,this)}stopListening(){this.graph.off("translate",this.resetRenderArea,this),this.graph.off("scale",this.resetRenderArea,this),this.graph.off("resize",this.resetRenderArea,this)}enableVirtualRender(){this.options.virtual=!0,this.resetRenderArea()}disableVirtualRender(){this.options.virtual=!1,this.graph.renderer.setRenderArea(void 0)}resetRenderArea(){if(this.options.virtual){const t=this.graph.getGraphArea();this.graph.renderer.setRenderArea(t)}}dispose(){this.stopListening()}}_l([Ml.dispose()],ql.prototype,"dispose",null);class Hl{constructor(){this.isFlushing=!1,this.isFlushPending=!1,this.scheduleId=0,this.queue=[],this.frameInterval=33,this.initialTime=Date.now()}queueJob(t){if(t.priority&Gl.PRIOR)t.cb();else{const e=this.findInsertionIndex(t);e>=0&&this.queue.splice(e,0,t)}}queueFlush(){this.isFlushing||this.isFlushPending||(this.isFlushPending=!0,this.scheduleJob())}queueFlushSync(){this.isFlushing||this.isFlushPending||(this.isFlushPending=!0,this.flushJobsSync())}clearJobs(){this.queue.length=0,this.isFlushing=!1,this.isFlushPending=!1,this.cancelScheduleJob()}flushJobs(){this.isFlushPending=!1,this.isFlushing=!0;const t=this.getCurrentTime();let e;for(;(e=this.queue.shift())&&(e.cb(),!(this.getCurrentTime()-t>=this.frameInterval)););this.isFlushing=!1,this.queue.length&&this.queueFlush()}flushJobsSync(){let t;for(this.isFlushPending=!1,this.isFlushing=!0;t=this.queue.shift();)try{t.cb()}catch(e){}this.isFlushing=!1}findInsertionIndex(t){let e=0,n=this.queue.length,i=n-1;const s=t.priority;for(;e<=i;){const t=(i-e>>1)+e;s<=this.queue[t].priority?e=t+1:(n=t,i=t-1)}return n}scheduleJob(){"requestIdleCallback"in window?(this.scheduleId&&this.cancelScheduleJob(),this.scheduleId=window.requestIdleCallback(this.flushJobs.bind(this),{timeout:100})):(this.scheduleId&&this.cancelScheduleJob(),this.scheduleId=window.setTimeout(this.flushJobs.bind(this)))}cancelScheduleJob(){"cancelIdleCallback"in window?(this.scheduleId&&window.cancelIdleCallback(this.scheduleId),this.scheduleId=0):(this.scheduleId&&clearTimeout(this.scheduleId),this.scheduleId=0)}getCurrentTime(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now():Date.now()-this.initialTime}}!function(t){t[t.RenderEdge=2]="RenderEdge",t[t.RenderNode=4]="RenderNode",t[t.Update=8]="Update",t[t.PRIOR=1048576]="PRIOR"}(Gl||(Gl={}));var Ul=globalThis&&globalThis.__decorate||function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};class Wl extends G{get model(){return this.graph.model}get container(){return this.graph.view.stage}constructor(t){super(),this.views={},this.willRemoveViews={},this.queue=new Hl,this.graph=t,this.init()}init(){this.startListening(),this.renderViews(this.model.getCells())}startListening(){this.model.on("reseted",this.onModelReseted,this),this.model.on("cell:added",this.onCellAdded,this),this.model.on("cell:removed",this.onCellRemoved,this),this.model.on("cell:change:zIndex",this.onCellZIndexChanged,this),this.model.on("cell:change:visible",this.onCellVisibleChanged,this)}stopListening(){this.model.off("reseted",this.onModelReseted,this),this.model.off("cell:added",this.onCellAdded,this),this.model.off("cell:removed",this.onCellRemoved,this),this.model.off("cell:change:zIndex",this.onCellZIndexChanged,this),this.model.off("cell:change:visible",this.onCellVisibleChanged,this)}onModelReseted({options:t}){this.queue.clearJobs(),this.removeZPivots(),this.resetViews(),this.renderViews(this.model.getCells(),t)}onCellAdded({cell:t,options:e}){this.renderViews([t],e)}onCellRemoved({cell:t}){this.removeViews([t])}onCellZIndexChanged({cell:t,options:e}){const n=this.views[t.id];n&&this.requestViewUpdate(n.view,Wl.FLAG_INSERT,e,Gl.Update,!0)}onCellVisibleChanged({cell:t,current:e}){this.toggleVisible(t,!!e)}requestViewUpdate(t,e,n={},i=Gl.Update,s=!0){const r=t.cell.id,o=this.views[r];if(!o)return;o.flag=e,o.options=n;const l=t.hasAction(e,["translate","resize","rotate"]);t.isNodeView()&&l&&(i=Gl.PRIOR,s=!1),this.queue.queueJob({id:r,priority:i,cb:()=>{this.renderViewInArea(t,e,n)}}),this.getEffectedEdges(t).forEach((t=>{this.requestViewUpdate(t.view,t.flag,n,i,!1)})),s&&this.flush()}setRenderArea(t){this.renderArea=t,this.flushWaittingViews()}isViewMounted(t){if(null==t)return!1;const e=this.views[t.cell.id];return!!e&&e.state===Wl.ViewState.MOUNTED}renderViews(t,e={}){t.sort(((t,e)=>t.isNode()&&e.isEdge()?-1:0)),t.forEach((t=>{const n=t.id;let i=0,s=this.views[n];if(s)i=Wl.FLAG_INSERT;else{const r=this.createCellView(t);r&&(r.graph=this.graph,i=Wl.FLAG_INSERT|r.getBootstrapFlag(),s={view:r,flag:i,options:e,state:Wl.ViewState.CREATED},this.views[n]=s)}s&&this.requestViewUpdate(s.view,i,e,this.getRenderPriority(s.view),!1)})),this.flush()}renderViewInArea(t,e,n={}){const i=t.cell,s=i.id,r=this.views[s];if(!r)return;let o=0;this.isUpdateable(t)||r.state===Wl.ViewState.MOUNTED?(o=this.updateView(t,e,n),r.flag=o):r.state=Wl.ViewState.WAITTING,o&&i.isEdge()&&0==(o&t.getFlag(["source","target"]))&&this.queue.queueJob({id:s,priority:Gl.RenderEdge,cb:()=>{this.updateView(t,e,n)}})}removeViews(t){t.forEach((t=>{const e=t.id,n=this.views[e];n&&(this.willRemoveViews[e]=n,delete this.views[e],this.queue.queueJob({id:e,priority:this.getRenderPriority(n.view),cb:()=>{this.removeView(n.view)}}))})),this.flush()}flush(){this.graph.options.async?this.queue.queueFlush():this.queue.queueFlushSync()}flushWaittingViews(){Object.values(this.views).forEach((t=>{if(t&&t.state===Wl.ViewState.WAITTING){const{view:e,flag:n,options:i}=t;this.requestViewUpdate(e,n,i,this.getRenderPriority(e),!1)}})),this.flush()}updateView(t,e,n={}){if(null==t)return 0;if(fr.isCellView(t)){if(e&Wl.FLAG_REMOVE)return this.removeView(t.cell),0;e&Wl.FLAG_INSERT&&(this.insertView(t),e^=Wl.FLAG_INSERT)}return e?t.confirmUpdate(e,n):0}insertView(t){const e=this.views[t.cell.id];if(e){const n=t.cell.getZIndex(),i=this.addZPivot(n);this.container.insertBefore(t.container,i),t.cell.isVisible()||this.toggleVisible(t.cell,!1),e.state=Wl.ViewState.MOUNTED,this.graph.trigger("view:mounted",{view:t})}}resetViews(){this.willRemoveViews=Object.assign(Object.assign({},this.views),this.willRemoveViews),Object.values(this.willRemoveViews).forEach((t=>{t&&this.removeView(t.view)})),this.views={},this.willRemoveViews={}}removeView(t){const e=t.cell,n=this.willRemoveViews[e.id];n&&t&&(n.view.remove(),delete this.willRemoveViews[e.id],this.graph.trigger("view:unmounted",{view:t}))}toggleVisible(t,e){const n=this.model.getConnectedEdges(t);for(let s=0,r=n.length;si&&(i=e)}const s=this.container;if(i!==-1/0){const t=e[i];s.insertBefore(n,t.nextSibling)}else s.insertBefore(n,s.firstChild);return n}removeZPivots(){this.zPivots&&Object.values(this.zPivots).forEach((t=>{t&&t.parentNode&&t.parentNode.removeChild(t)})),this.zPivots={}}createCellView(t){const e={graph:this.graph},n=this.graph.options.createCellView;if(n){const i=H(n,this.graph,t);if(i)return new i(t,e);if(null===i)return null}const i=t.view;if(null!=i&&"string"==typeof i){const n=fr.registry.get(i);return n?new n(t,e):fr.registry.onNotFound(i)}return t.isNode()?new Pl(t,e):t.isEdge()?new El(t,e):null}getEffectedEdges(t){const e=[],n=t.cell,i=this.model.getConnectedEdges(n);for(let s=0,r=i.length;s=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};class Jl extends Ml{constructor(){super(...arguments),this.schedule=new Wl(this.graph)}requestViewUpdate(t,e,n={}){this.schedule.requestViewUpdate(t,e,n)}isViewMounted(t){return this.schedule.isViewMounted(t)}setRenderArea(t){this.schedule.setRenderArea(t)}findViewByElem(t){if(null==t)return null;const e=this.options.container,n="string"==typeof t?e.querySelector(t):t instanceof Element?t:t[0];if(n){const t=this.graph.view.findAttr("data-cell-id",n);if(t){const e=this.schedule.views;if(e[t])return e[t].view}}return null}findViewByCell(t){if(null==t)return null;const e=rl.isCell(t)?t.id:t,n=this.schedule.views;return n[e]?n[e].view:null}findViewsFromPoint(t){const e={x:t.x,y:t.y};return this.model.getCells().map((t=>this.findViewByCell(t))).filter((t=>null!=t&&Fs.getBBox(t.container,{target:this.view.stage}).containsPoint(e)))}findEdgeViewsFromPoint(t,e=5){return this.model.getEdges().map((t=>this.findViewByCell(t))).filter((n=>{if(null!=n){const i=n.getClosestPoint(t);if(i)return i.distance(t)<=e}return!1}))}findViewsInArea(t,e={}){const n=Nn.create(t);return this.model.getCells().map((t=>this.findViewByCell(t))).filter((t=>{if(t){if(e.nodeOnly&&!t.isNodeView())return!1;const i=Fs.getBBox(t.container,{target:this.view.stage});return 0===i.width?i.inflate(1,0):0===i.height&&i.inflate(0,1),e.strict?n.containsRect(i):n.isIntersectWithRect(i)}return!1}))}dispose(){this.schedule.dispose()}}Xl([Ml.dispose()],Jl.prototype,"dispose",null);var Yl=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s${t.stops.map((t=>{const e=null!=t.opacity&&Number.isFinite(t.opacity)?t.opacity:1;return``})).join("")}`,s=Object.assign({id:e},t.attrs);Me.create(i,s).appendTo(this.defs)}return e}marker(t){const{id:e,refX:n,refY:i,markerUnits:s,markerOrient:r,tagName:o,children:l}=t,a=Yl(t,["id","refX","refY","markerUnits","markerOrient","tagName","children"]);let h=e;if(h||(h=`marker-${this.cid}-${at(JSON.stringify(t))}`),!this.isDefined(h)){"path"!==o&&delete a.d;const t=Me.create("marker",{refX:n,refY:i,id:h,overflow:"visible",orient:null!=r?r:"auto",markerUnits:s||"userSpaceOnUse"},l?l.map((t=>{var{tagName:e}=t,n=Yl(t,["tagName"]);return Me.create(`${e}`||"path",he(Object.assign(Object.assign({},a),n)))})):[Me.create(o||"path",he(a))]);this.defs.appendChild(t.node)}return h}remove(t){const e=this.svg.getElementById(t);e&&e.parentNode&&e.parentNode.removeChild(e)}}class Ql extends Ml{getClientMatrix(){return He(this.view.stage.getScreenCTM())}getClientOffset(){const t=this.view.svg.getBoundingClientRect();return new Tn(t.left,t.top)}getPageOffset(){return this.getClientOffset().translate(window.scrollX,window.scrollY)}snapToGrid(t,e){return("number"==typeof t?this.clientToLocalPoint(t,e):this.clientToLocalPoint(t.x,t.y)).snapToGrid(this.graph.getGridSize())}localToGraphPoint(t,e){const n=Tn.create(t,e);return Fs.transformPoint(n,this.graph.matrix())}localToClientPoint(t,e){const n=Tn.create(t,e);return Fs.transformPoint(n,this.getClientMatrix())}localToPagePoint(t,e){return("number"==typeof t?this.localToGraphPoint(t,e):this.localToGraphPoint(t)).translate(this.getPageOffset())}localToGraphRect(t,e,n,i){const s=Nn.create(t,e,n,i);return Fs.transformRectangle(s,this.graph.matrix())}localToClientRect(t,e,n,i){const s=Nn.create(t,e,n,i);return Fs.transformRectangle(s,this.getClientMatrix())}localToPageRect(t,e,n,i){return("number"==typeof t?this.localToGraphRect(t,e,n,i):this.localToGraphRect(t)).translate(this.getPageOffset())}graphToLocalPoint(t,e){const n=Tn.create(t,e);return Fs.transformPoint(n,this.graph.matrix().inverse())}clientToLocalPoint(t,e){const n=Tn.create(t,e);return Fs.transformPoint(n,this.getClientMatrix().inverse())}clientToGraphPoint(t,e){const n=Tn.create(t,e);return Fs.transformPoint(n,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalPoint(t,e){const n=Tn.create(t,e).diff(this.getPageOffset());return this.graphToLocalPoint(n)}graphToLocalRect(t,e,n,i){const s=Nn.create(t,e,n,i);return Fs.transformRectangle(s,this.graph.matrix().inverse())}clientToLocalRect(t,e,n,i){const s=Nn.create(t,e,n,i);return Fs.transformRectangle(s,this.getClientMatrix().inverse())}clientToGraphRect(t,e,n,i){const s=Nn.create(t,e,n,i);return Fs.transformRectangle(s,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalRect(t,e,n,i){const s=Nn.create(t,e,n,i),r=this.getPageOffset();return s.x-=r.x,s.y-=r.y,this.graphToLocalRect(s)}}var Kl=globalThis&&globalThis.__decorate||function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};class ta extends Ml{constructor(){super(...arguments),this.highlights={}}init(){this.startListening()}startListening(){this.graph.on("cell:highlight",this.onCellHighlight,this),this.graph.on("cell:unhighlight",this.onCellUnhighlight,this)}stopListening(){this.graph.off("cell:highlight",this.onCellHighlight,this),this.graph.off("cell:unhighlight",this.onCellUnhighlight,this)}onCellHighlight({view:t,magnet:e,options:n={}}){const i=this.resolveHighlighter(n);if(!i)return;const s=this.getHighlighterId(e,i);if(!this.highlights[s]){const n=i.highlighter;n.highlight(t,e,Object.assign({},i.args)),this.highlights[s]={cellView:t,magnet:e,highlighter:n,args:i.args}}}onCellUnhighlight({magnet:t,options:e={}}){const n=this.resolveHighlighter(e);if(!n)return;const i=this.getHighlighterId(t,n);this.unhighlight(i)}resolveHighlighter(t){const e=this.options;let n=t.highlighter;if(null==n){const i=t.type;n=i&&e.highlighting[i]||e.highlighting.default}if(null==n)return null;const i="string"==typeof n?{name:n}:n,s=i.name,r=Us.registry.get(s);return null==r?Us.registry.onNotFound(s):(Us.check(s,r),{name:s,highlighter:r,args:i.args||{}})}getHighlighterId(t,e){return $t(t),e.name+t.id+JSON.stringify(e.args)}unhighlight(t){const e=this.highlights[t];e&&(e.highlighter.unhighlight(e.cellView,e.magnet,e.args),delete this.highlights[t])}dispose(){Object.keys(this.highlights).forEach((t=>this.unhighlight(t))),this.stopListening()}}Kl([ta.dispose()],ta.prototype,"dispose",null);var ea=globalThis&&globalThis.__decorate||function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};class na extends Ml{getScroller(){const t=this.graph.getPlugin("scroller");return t&&t.options.enabled?t:null}getContainer(){const t=this.getScroller();return t?t.container.parentElement:this.graph.container.parentElement}getSensorTarget(){const t=this.options.autoResize;if(t)return"boolean"==typeof t?this.getContainer():t}init(){if(this.options.autoResize){const t=this.getSensorTarget();t&&fn.bind(t,(()=>{const e=t.offsetWidth,n=t.offsetHeight;this.resize(e,n)}))}}resize(t,e){const n=this.getScroller();n?n.resize(t,e):this.graph.transform.resize(t,e)}dispose(){fn.clear(this.graph.container)}}ea([Ml.dispose()],na.prototype,"dispose",null);var ia=globalThis&&globalThis.__decorate||function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};class sa extends st{get container(){return this.options.container}get[Symbol.toStringTag](){return sa.toStringTag}constructor(t){super(),this.installedPlugins=new Set,this.options=Nl.get(t),this.css=new Tl(this),this.view=new Al(this),this.defs=new Zl(this),this.coord=new Ql(this),this.transform=new Rl(this),this.highlight=new ta(this),this.grid=new Bl(this),this.background=new Il(this),this.options.model?this.model=this.options.model:(this.model=new dl,this.model.graph=this),this.renderer=new Jl(this),this.panning=new zl(this),this.mousewheel=new Fl(this),this.virtualRender=new ql(this),this.size=new na(this)}isNode(t){return t.isNode()}isEdge(t){return t.isEdge()}resetCells(t,e={}){return this.model.resetCells(t,e),this}clearCells(t={}){return this.model.clear(t),this}toJSON(t={}){return this.model.toJSON(t)}parseJSON(t){return this.model.parseJSON(t)}fromJSON(t,e={}){return this.model.fromJSON(t,e),this}getCellById(t){return this.model.getCell(t)}addNode(t,e={}){return this.model.addNode(t,e)}addNodes(t,e={}){return this.addCell(t.map((t=>al.isNode(t)?t:this.createNode(t))),e)}createNode(t){return this.model.createNode(t)}removeNode(t,e={}){return this.model.removeCell(t,e)}addEdge(t,e={}){return this.model.addEdge(t,e)}addEdges(t,e={}){return this.addCell(t.map((t=>cl.isEdge(t)?t:this.createEdge(t))),e)}removeEdge(t,e={}){return this.model.removeCell(t,e)}createEdge(t){return this.model.createEdge(t)}addCell(t,e={}){return this.model.addCell(t,e),this}removeCell(t,e={}){return this.model.removeCell(t,e)}removeCells(t,e={}){return this.model.removeCells(t,e)}removeConnectedEdges(t,e={}){return this.model.removeConnectedEdges(t,e)}disconnectConnectedEdges(t,e={}){return this.model.disconnectConnectedEdges(t,e),this}hasCell(t){return this.model.has(t)}getCells(){return this.model.getCells()}getCellCount(){return this.model.total()}getNodes(){return this.model.getNodes()}getEdges(){return this.model.getEdges()}getOutgoingEdges(t){return this.model.getOutgoingEdges(t)}getIncomingEdges(t){return this.model.getIncomingEdges(t)}getConnectedEdges(t,e={}){return this.model.getConnectedEdges(t,e)}getRootNodes(){return this.model.getRoots()}getLeafNodes(){return this.model.getLeafs()}isRootNode(t){return this.model.isRoot(t)}isLeafNode(t){return this.model.isLeaf(t)}getNeighbors(t,e={}){return this.model.getNeighbors(t,e)}isNeighbor(t,e,n={}){return this.model.isNeighbor(t,e,n)}getSuccessors(t,e={}){return this.model.getSuccessors(t,e)}isSuccessor(t,e,n={}){return this.model.isSuccessor(t,e,n)}getPredecessors(t,e={}){return this.model.getPredecessors(t,e)}isPredecessor(t,e,n={}){return this.model.isPredecessor(t,e,n)}getCommonAncestor(...t){return this.model.getCommonAncestor(...t)}getSubGraph(t,e={}){return this.model.getSubGraph(t,e)}cloneSubGraph(t,e={}){return this.model.cloneSubGraph(t,e)}cloneCells(t){return this.model.cloneCells(t)}getNodesFromPoint(t,e){return this.model.getNodesFromPoint(t,e)}getNodesInArea(t,e,n,i,s){return this.model.getNodesInArea(t,e,n,i,s)}getNodesUnderNode(t,e={}){return this.model.getNodesUnderNode(t,e)}searchCell(t,e,n={}){return this.model.search(t,e,n),this}getShortestPath(t,e,n={}){return this.model.getShortestPath(t,e,n)}getAllCellsBBox(){return this.model.getAllCellsBBox()}getCellsBBox(t,e={}){return this.model.getCellsBBox(t,e)}startBatch(t,e={}){this.model.startBatch(t,e)}stopBatch(t,e={}){this.model.stopBatch(t,e)}batchUpdate(t,e,n){const i="string"==typeof t?t:"update",s="string"==typeof t?e:t,r="function"==typeof e?n:e;this.startBatch(i,r);const o=s();return this.stopBatch(i,r),o}updateCellId(t,e){return this.model.updateCellId(t,e)}findView(t){return rl.isCell(t)?this.findViewByCell(t):this.findViewByElem(t)}findViews(t){return Nn.isRectangleLike(t)?this.findViewsInArea(t):Tn.isPointLike(t)?this.findViewsFromPoint(t):[]}findViewByCell(t){return this.renderer.findViewByCell(t)}findViewByElem(t){return this.renderer.findViewByElem(t)}findViewsFromPoint(t,e){const n="number"==typeof t?{x:t,y:e}:t;return this.renderer.findViewsFromPoint(n)}findViewsInArea(t,e,n,i,s){const r="number"==typeof t?{x:t,y:e,width:n,height:i}:t,o="number"==typeof t?s:e;return this.renderer.findViewsInArea(r,o)}matrix(t){return void 0===t?this.transform.getMatrix():(this.transform.setMatrix(t),this)}resize(t,e){const n=this.getPlugin("scroller");return n?n.resize(t,e):this.transform.resize(t,e),this}scale(t,e=t,n=0,i=0){return void 0===t?this.transform.getScale():(this.transform.scale(t,e,n,i),this)}zoom(t,e){const n=this.getPlugin("scroller");if(n){if(void 0===t)return n.zoom();n.zoom(t,e)}else{if(void 0===t)return this.transform.getZoom();this.transform.zoom(t,e)}return this}zoomTo(t,e={}){const n=this.getPlugin("scroller");return n?n.zoom(t,Object.assign(Object.assign({},e),{absolute:!0})):this.transform.zoom(t,Object.assign(Object.assign({},e),{absolute:!0})),this}zoomToRect(t,e={}){const n=this.getPlugin("scroller");return n?n.zoomToRect(t,e):this.transform.zoomToRect(t,e),this}zoomToFit(t={}){const e=this.getPlugin("scroller");return e?e.zoomToFit(t):this.transform.zoomToFit(t),this}rotate(t,e,n){return void 0===t?this.transform.getRotation():(this.transform.rotate(t,e,n),this)}translate(t,e){return void 0===t?this.transform.getTranslation():(this.transform.translate(t,e),this)}translateBy(t,e){const n=this.translate(),i=n.tx+t,s=n.ty+e;return this.translate(i,s)}getGraphArea(){return this.transform.getGraphArea()}getContentArea(t={}){return this.transform.getContentArea(t)}getContentBBox(t={}){return this.transform.getContentBBox(t)}fitToContent(t,e,n,i){return this.transform.fitToContent(t,e,n,i)}scaleContentToFit(t={}){return this.transform.scaleContentToFit(t),this}center(t){return this.centerPoint(t)}centerPoint(t,e,n){const i=this.getPlugin("scroller");return i?i.centerPoint(t,e,n):this.transform.centerPoint(t,e),this}centerContent(t){const e=this.getPlugin("scroller");return e?e.centerContent(t):this.transform.centerContent(t),this}centerCell(t,e){const n=this.getPlugin("scroller");return n?n.centerCell(t,e):this.transform.centerCell(t),this}positionPoint(t,e,n,i={}){const s=this.getPlugin("scroller");return s?s.positionPoint(t,e,n,i):this.transform.positionPoint(t,e,n),this}positionRect(t,e,n){const i=this.getPlugin("scroller");return i?i.positionRect(t,e,n):this.transform.positionRect(t,e),this}positionCell(t,e,n){const i=this.getPlugin("scroller");return i?i.positionCell(t,e,n):this.transform.positionCell(t,e),this}positionContent(t,e){const n=this.getPlugin("scroller");return n?n.positionContent(t,e):this.transform.positionContent(t,e),this}snapToGrid(t,e){return this.coord.snapToGrid(t,e)}pageToLocal(t,e,n,i){return Nn.isRectangleLike(t)?this.coord.pageToLocalRect(t):"number"==typeof t&&"number"==typeof e&&"number"==typeof n&&"number"==typeof i?this.coord.pageToLocalRect(t,e,n,i):this.coord.pageToLocalPoint(t,e)}localToPage(t,e,n,i){return Nn.isRectangleLike(t)?this.coord.localToPageRect(t):"number"==typeof t&&"number"==typeof e&&"number"==typeof n&&"number"==typeof i?this.coord.localToPageRect(t,e,n,i):this.coord.localToPagePoint(t,e)}clientToLocal(t,e,n,i){return Nn.isRectangleLike(t)?this.coord.clientToLocalRect(t):"number"==typeof t&&"number"==typeof e&&"number"==typeof n&&"number"==typeof i?this.coord.clientToLocalRect(t,e,n,i):this.coord.clientToLocalPoint(t,e)}localToClient(t,e,n,i){return Nn.isRectangleLike(t)?this.coord.localToClientRect(t):"number"==typeof t&&"number"==typeof e&&"number"==typeof n&&"number"==typeof i?this.coord.localToClientRect(t,e,n,i):this.coord.localToClientPoint(t,e)}localToGraph(t,e,n,i){return Nn.isRectangleLike(t)?this.coord.localToGraphRect(t):"number"==typeof t&&"number"==typeof e&&"number"==typeof n&&"number"==typeof i?this.coord.localToGraphRect(t,e,n,i):this.coord.localToGraphPoint(t,e)}graphToLocal(t,e,n,i){return Nn.isRectangleLike(t)?this.coord.graphToLocalRect(t):"number"==typeof t&&"number"==typeof e&&"number"==typeof n&&"number"==typeof i?this.coord.graphToLocalRect(t,e,n,i):this.coord.graphToLocalPoint(t,e)}clientToGraph(t,e,n,i){return Nn.isRectangleLike(t)?this.coord.clientToGraphRect(t):"number"==typeof t&&"number"==typeof e&&"number"==typeof n&&"number"==typeof i?this.coord.clientToGraphRect(t,e,n,i):this.coord.clientToGraphPoint(t,e)}defineFilter(t){return this.defs.filter(t)}defineGradient(t){return this.defs.gradient(t)}defineMarker(t){return this.defs.marker(t)}getGridSize(){return this.grid.getGridSize()}setGridSize(t){return this.grid.setGridSize(t),this}showGrid(){return this.grid.show(),this}hideGrid(){return this.grid.hide(),this}clearGrid(){return this.grid.clear(),this}drawGrid(t){return this.grid.draw(t),this}updateBackground(){return this.background.update(),this}drawBackground(t,e){const n=this.getPlugin("scroller");return null==n||null!=this.options.background&&e?this.background.draw(t):n.drawBackground(t,e),this}clearBackground(t){const e=this.getPlugin("scroller");return null==e||null!=this.options.background&&t?this.background.clear():e.clearBackground(t),this}enableVirtualRender(){return this.virtualRender.enableVirtualRender(),this}disableVirtualRender(){return this.virtualRender.disableVirtualRender(),this}isMouseWheelEnabled(){return!this.mousewheel.disabled}enableMouseWheel(){return this.mousewheel.enable(),this}disableMouseWheel(){return this.mousewheel.disable(),this}toggleMouseWheel(t){return null==t?this.isMouseWheelEnabled()?this.disableMouseWheel():this.enableMouseWheel():t?this.enableMouseWheel():this.disableMouseWheel(),this}isPannable(){const t=this.getPlugin("scroller");return t?t.isPannable():this.panning.pannable}enablePanning(){const t=this.getPlugin("scroller");return t?t.enablePanning():this.panning.enablePanning(),this}disablePanning(){const t=this.getPlugin("scroller");return t?t.disablePanning():this.panning.disablePanning(),this}togglePanning(t){return null==t?this.isPannable()?this.disablePanning():this.enablePanning():t!==this.isPannable()&&(t?this.enablePanning():this.disablePanning()),this}use(t,...e){return this.installedPlugins.has(t)||(this.installedPlugins.add(t),t.init(this,...e)),this}getPlugin(t){return Array.from(this.installedPlugins).find((e=>e.name===t))}getPlugins(t){return Array.from(this.installedPlugins).filter((e=>t.includes(e.name)))}enablePlugins(t){let e=t;Array.isArray(e)||(e=[e]);const n=this.getPlugins(e);return null==n||n.forEach((t=>{var e;null===(e=null==t?void 0:t.enable)||void 0===e||e.call(t)})),this}disablePlugins(t){let e=t;Array.isArray(e)||(e=[e]);const n=this.getPlugins(e);return null==n||n.forEach((t=>{var e;null===(e=null==t?void 0:t.disable)||void 0===e||e.call(t)})),this}isPluginEnabled(t){var e;const n=this.getPlugin(t);return null===(e=null==n?void 0:n.isEnabled)||void 0===e?void 0:e.call(n)}disposePlugins(t){let e=t;Array.isArray(e)||(e=[e]);const n=this.getPlugins(e);return null==n||n.forEach((t=>{t.dispose()})),this}dispose(){this.clearCells(),this.off(),this.css.dispose(),this.defs.dispose(),this.grid.dispose(),this.coord.dispose(),this.transform.dispose(),this.highlight.dispose(),this.background.dispose(),this.mousewheel.dispose(),this.panning.dispose(),this.view.dispose(),this.renderer.dispose(),this.installedPlugins.forEach((t=>{t.dispose()}))}}ia([st.dispose()],sa.prototype,"dispose",null),function(t){t.View=Al,t.Renderer=Jl,t.MouseWheel=Fl,t.DefsManager=Zl,t.GridManager=Bl,t.CoordManager=Ql,t.TransformManager=Rl,t.HighlightManager=ta,t.BackgroundManager=Il}(sa||(sa={})),function(t){t.toStringTag=`X6.${t.name}`,t.isGraph=function(e){if(null==e)return!1;if(e instanceof t)return!0;const n=e[Symbol.toStringTag];return null==n||n===t.toStringTag}}(sa||(sa={})),function(t){t.render=function(e,n){const i=e instanceof HTMLElement?new t({container:e}):new t(e);return null!=n&&i.fromJSON(n),i}}(sa||(sa={})),function(t){t.registerNode=al.registry.register,t.registerEdge=cl.registry.register,t.registerView=fr.registry.register,t.registerAttr=Rs.registry.register,t.registerGrid=si.registry.register,t.registerFilter=gi.registry.register,t.registerNodeTool=Vr.registry.register,t.registerEdgeTool=zr.registry.register,t.registerBackground=hi.registry.register,t.registerHighlighter=Us.registry.register,t.registerPortLayout=Ks.registry.register,t.registerPortLabelLayout=lr.registry.register,t.registerMarker=bs.registry.register,t.registerRouter=_o.registry.register,t.registerConnector=Qo.registry.register,t.registerAnchor=no.registry.register,t.registerEdgeAnchor=lo.registry.register,t.registerConnectionPoint=go.registry.register}(sa||(sa={})),function(t){t.unregisterNode=al.registry.unregister,t.unregisterEdge=cl.registry.unregister,t.unregisterView=fr.registry.unregister,t.unregisterAttr=Rs.registry.unregister,t.unregisterGrid=si.registry.unregister,t.unregisterFilter=gi.registry.unregister,t.unregisterNodeTool=Vr.registry.unregister,t.unregisterEdgeTool=zr.registry.unregister,t.unregisterBackground=hi.registry.unregister,t.unregisterHighlighter=Us.registry.unregister,t.unregisterPortLayout=Ks.registry.unregister,t.unregisterPortLabelLayout=lr.registry.unregister,t.unregisterMarker=bs.registry.unregister,t.unregisterRouter=_o.registry.unregister,t.unregisterConnector=Qo.registry.unregister,t.unregisterAnchor=no.registry.unregister,t.unregisterEdgeAnchor=lo.registry.unregister,t.unregisterConnectionPoint=go.registry.unregister}(sa||(sa={}));var ra=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s{const n=t.shapeMaps[this.cell.shape];if(n){const{effect:t}=n;t&&!t.includes(e)||this.renderHTMLComponent()}}))}confirmUpdate(t){const n=super.confirmUpdate(t);return this.handleAction(n,e.action,(()=>this.renderHTMLComponent()))}renderHTMLComponent(){const e=this.selectors&&this.selectors.foContent;if(e){Zt(e);const n=t.shapeMaps[this.cell.shape];if(!n)return;let{html:i}=n;"function"==typeof i&&(i=i(this.cell)),i&&("string"==typeof i?e.innerHTML=i:Qt(e,i))}}}var n;t.View=e,(n=e=t.View||(t.View={})).action="html",n.config({bootstrap:[n.action],actions:{html:n.action}}),Pl.registry.register("html-view",n,!0)}(oa||(oa={})),function(t){t.config({view:"html-view",markup:[{tagName:"rect",selector:"body"},Object.assign({},hr.getForeignObjectMarkup()),{tagName:"text",selector:"label"}],attrs:{body:{fill:"none",stroke:"none",refWidth:"100%",refHeight:"100%"},fo:{refWidth:"100%",refHeight:"100%"}}}),al.registry.register("html",t,!0)}(oa||(oa={})),function(t){t.shapeMaps={},t.register=function(e){const{shape:n,html:i,effect:s,inherit:r}=e,o=ra(e,["shape","html","effect","inherit"]);if(!n)throw new Error("should specify shape in config");t.shapeMaps[n]={html:i,effect:s},sa.registerNode(n,Object.assign({inherit:r||"html"},o),!0)}}(oa||(oa={}));var la=globalThis&&globalThis.__decorate||function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};class aa extends cr{get targetScroller(){return this.options.target.getPlugin("scroller")}get targetGraph(){return this.options.target}get targetModel(){return this.targetGraph.model}get snapline(){return this.options.target.getPlugin("snapline")}constructor(t){super(),this.name="dnd",this.options=Object.assign(Object.assign({},aa.defaults),t),this.init()}init(){En(this.name,".x6-widget-dnd {\n position: absolute;\n top: -10000px;\n left: -10000px;\n z-index: 999999;\n display: none;\n cursor: move;\n opacity: 0.7;\n pointer-events: 'cursor';\n}\n.x6-widget-dnd.dragging {\n display: inline-block;\n}\n.x6-widget-dnd.dragging * {\n pointer-events: none !important;\n}\n.x6-widget-dnd .x6-graph {\n background: transparent;\n box-shadow: none;\n}\n"),this.container=document.createElement("div"),Dt(this.container,this.prefixClassName("widget-dnd")),this.draggingGraph=new sa(Object.assign(Object.assign({},this.options.delegateGraphOptions),{container:document.createElement("div"),width:1,height:1,async:!1})),Qt(this.container,this.draggingGraph.container)}start(t,e){const n=e;n.preventDefault(),this.targetModel.startBatch("dnd"),Dt(this.container,"dragging"),ee(this.container,this.options.draggingContainer||document.body),this.sourceNode=t,this.prepareDragging(t,n.clientX,n.clientY);const i=this.updateNodePosition(n.clientX,n.clientY);this.isSnaplineEnabled()&&(this.snapline.captureCursorOffset({e:n,node:t,cell:t,view:this.draggingView,x:i.x,y:i.y}),this.draggingNode.on("change:position",this.snap,this)),this.delegateDocumentEvents(aa.documentEvents,n.data)}isSnaplineEnabled(){return this.snapline&&this.snapline.isEnabled()}prepareDragging(t,e,n){const i=this.draggingGraph,s=i.model,r=this.options.getDragNode(t,{sourceNode:t,draggingGraph:i,targetGraph:this.targetGraph});r.position(0,0);let o=5;if(this.isSnaplineEnabled()&&(o+=this.snapline.options.tolerance||0),this.isSnaplineEnabled()||this.options.scaled){const t=this.targetGraph.transform.getScale();i.scale(t.sx,t.sy),o*=Math.max(t.sx,t.sy)}else i.scale(1,1);this.clearDragging(),s.resetCells([r]);const l=i.findViewByCell(r);l.undelegateEvents(),l.cell.off("changed"),i.fitToContent({padding:o,allowNewOrigin:"any"});const a=l.getBBox();this.geometryBBox=l.getBBox({useCellGeometry:!0}),this.delta=this.geometryBBox.getTopLeft().diff(a.getTopLeft()),this.draggingNode=r,this.draggingView=l,this.draggingBBox=r.getBBox(),this.padding=o,this.originOffset=this.updateGraphPosition(e,n)}updateGraphPosition(t,e){const n=document.body.scrollTop||document.documentElement.scrollTop,i=this.delta,s=this.geometryBBox,r=this.padding||5,o={left:t-i.x-s.width/2-r,top:e-i.y-s.height/2-r+n};return this.draggingGraph&&Pe(this.container,{left:`${o.left}px`,top:`${o.top}px`}),o}updateNodePosition(t,e){const n=this.targetGraph.clientToLocal(t,e),i=this.draggingBBox;return n.x-=i.width/2,n.y-=i.height/2,this.draggingNode.position(n.x,n.y),n}snap({cell:t,current:e,options:n}){const i=t;if(n.snapped){const t=this.draggingBBox;i.position(t.x+n.tx,t.y+n.ty,{silent:!0}),this.draggingView.translate(),i.position(e.x,e.y,{silent:!0}),this.snapOffset={x:n.tx,y:n.ty}}else this.snapOffset=null}onDragging(t){const e=this.draggingView;if(e){t.preventDefault();const n=this.normalizeEvent(t),i=n.clientX,s=n.clientY;this.updateGraphPosition(i,s);const r=this.updateNodePosition(i,s),o=this.targetGraph.options.embedding.enabled,l=(o||this.isSnaplineEnabled())&&this.isInsideValidArea({x:i,y:s});if(o){e.setEventData(n,{graph:this.targetGraph,candidateEmbedView:this.candidateEmbedView});const t=e.getEventData(n);l?e.processEmbedding(n,t):e.clearEmbedding(t),this.candidateEmbedView=t.candidateEmbedView}this.isSnaplineEnabled()&&(l?this.snapline.snapOnMoving({e:n,view:e,x:r.x,y:r.y}):this.snapline.hide())}}onDragEnd(t){const e=this.draggingNode;if(e){const n=this.normalizeEvent(t),i=this.draggingView,s=this.draggingBBox,r=this.snapOffset;let o=s.x,l=s.y;r&&(o+=r.x,l+=r.y),e.position(o,l,{silent:!0});const a=this.drop(e,{x:n.clientX,y:n.clientY}),h=t=>{t?(this.onDropped(e),this.targetGraph.options.embedding.enabled&&i&&(i.setEventData(n,{cell:t,graph:this.targetGraph,candidateEmbedView:this.candidateEmbedView}),i.finalizeEmbedding(n,i.getEventData(n)))):this.onDropInvalid(),this.candidateEmbedView=null,this.targetModel.stopBatch("dnd")};U(a)?(this.undelegateDocumentEvents(),a.then(h)):h(a)}}clearDragging(){this.draggingNode&&(this.sourceNode=null,this.draggingNode.remove(),this.draggingNode=null,this.draggingView=null,this.delta=null,this.padding=null,this.snapOffset=null,this.originOffset=null,this.undelegateDocumentEvents())}onDropped(t){this.draggingNode===t&&(this.clearDragging(),It(this.container,"dragging"),Yt(this.container))}onDropInvalid(){const t=this.draggingNode;t&&this.onDropped(t)}isInsideValidArea(t){let e,n=null;const i=this.targetGraph,s=this.targetScroller;this.options.dndContainer&&(n=this.getDropArea(this.options.dndContainer));const r=n&&n.containsPoint(t);if(s)if(s.options.autoResize)e=this.getDropArea(s.container);else{const t=this.getDropArea(s.container);e=this.getDropArea(i.container).intersectsWithRect(t)}else e=this.getDropArea(i.container);return!r&&e&&e.containsPoint(t)}getDropArea(t){const e=dn(t),n=document.body.scrollTop||document.documentElement.scrollTop,i=document.body.scrollLeft||document.documentElement.scrollLeft;return Nn.create({x:e.left+parseInt(Pe(t,"border-left-width"),10)-i,y:e.top+parseInt(Pe(t,"border-top-width"),10)-n,width:t.clientWidth,height:t.clientHeight})}drop(t,e){if(this.isInsideValidArea(e)){const n=this.targetGraph,i=n.model,s=n.clientToLocal(e),r=this.sourceNode,o=this.options.getDropNode(t,{sourceNode:r,draggingNode:t,targetGraph:this.targetGraph,draggingGraph:this.draggingGraph}),l=o.getBBox();s.x+=l.x-l.width/2,s.y+=l.y-l.height/2;const a=this.snapOffset?1:n.getGridSize();o.position(Mn.snapToGrid(s.x,a),Mn.snapToGrid(s.y,a)),o.removeZIndex();const h=this.options.validateNode,c=!h||h(o,{sourceNode:r,draggingNode:t,droppingNode:o,targetGraph:n,draggingGraph:this.draggingGraph});return"boolean"==typeof c?c?(i.addCell(o,{stencil:this.cid}),o):null:function(...t){const e=W(t);return"boolean"==typeof e?Promise.resolve(e):e}(c).then((t=>t?(i.addCell(o,{stencil:this.cid}),o):null))}return null}onRemove(){this.draggingGraph&&(this.draggingGraph.view.remove(),this.draggingGraph.dispose())}dispose(){this.remove(),Sn(this.name)}}la([cr.dispose()],aa.prototype,"dispose",null),function(t){t.defaults={getDragNode:t=>t.clone(),getDropNode:t=>t.clone()},t.documentEvents={mousemove:"onDragging",touchmove:"onDragging",mouseup:"onDragEnd",touchend:"onDragEnd",touchcancel:"onDragEnd"}}(aa||(aa={}));const ha=[{id:1,label:"计算机科学",founder:"Alan Turing",children:[{id:2,label:"编程语言",founder:"Grace Hopper",children:[{id:3,label:"Java",founder:"James Gosling",children:[]},{id:4,label:"Python",founder:"Guido van Rossum",children:[]},{id:5,label:"C++",founder:"Bjarne Stroustrup",children:[]}]},{id:6,label:"数据结构与算法",founder:"Edsger W. Dijkstra",children:[{id:7,label:"排序算法",founder:"Donald Knuth",children:[]},{id:8,label:"查找算法",founder:"John McCarthy",children:[]}]}]},{id:9,label:"计算机网络",founder:"Vint Cerf",children:[{id:10,label:"网络协议",founder:"Robert E. Kahn",children:[{id:11,label:"TCP/IP",founder:"Vint Cerf",children:[]},{id:12,label:"HTTP",founder:"Tim Berners-Lee",children:[]}]},{id:13,label:"网络安全",founder:"Whitfield Diffie",children:[{id:14,label:"加密技术",founder:"Ron Rivest",children:[]},{id:15,label:"防火墙",founder:"Nir Zuk",children:[]}]}]},{id:16,label:"数据库",founder:"Edgar F. Codd",children:[{id:17,label:"关系型数据库",founder:"E. F. Codd",children:[{id:18,label:"MySQL",founder:"Michael Widenius",children:[]},{id:19,label:"Oracle",founder:"Larry Ellison",children:[]},{id:20,label:"SQL Server",founder:"Microsoft",children:[]}]},{id:21,label:"NoSQL数据库",founder:"Johan Oskarsson",children:[{id:22,label:"MongoDB",founder:"Dwight Merriman",children:[]},{id:23,label:"Redis",founder:"Salvatore Sanfilippo",children:[]}]}]},{id:24,label:"操作系统",founder:"Gary Kildall",children:[{id:25,label:"Windows",founder:"Microsoft",children:[]},{id:26,label:"Linux",founder:"Linus Torvalds",children:[]}]},{id:27,label:"人工智能",founder:"Linus Torvaldsdsds",children:[]}],ca={translating:{restrict:!0},grid:!0,background:{color:"transparent"},scaling:{min:.5,max:2},panning:{enabled:!0,modifiers:"alt"},connecting:{router:{name:"er"},connector:{name:"rounded",args:{radius:8}},connectionPoint:"anchor",allowBlank:!1,allowMulti:!1,allowLoop:!1,snap:{radius:20},createEdge:()=>new bl({attrs:{line:{stroke:"#409eff",strokeWidth:1,targetMarker:{name:"block",width:12,height:8}}},zIndex:"-1"}),validateConnection:({targetMagnet:t})=>!!t},highlighting:{magnetAdsorbed:{name:"stroke",args:{attrs:{fill:"#028FA6",stroke:"#028FA6"}}}},interacting:function(t){return!(null!=t.cell.getData()&&!t.cell.getData().disableMove)||{nodeMovable:!1}}},ua={groups:{top:{position:"top",attrs:{circle:{r:3,magnet:!0,stroke:"#028FA6",strokeWidth:1,fill:"#fff",style:{visibility:"hidden"}}}},right:{position:{name:"absolute",args:{x:76.5,y:26.5}},attrs:{circle:{r:3,magnet:!0,stroke:"#028FA6",strokeWidth:1,fill:"#fff",style:{visibility:"hidden"}}}},bottom:{position:"bottom",attrs:{circle:{r:3,magnet:!0,stroke:"#028FA6",strokeWidth:1,fill:"#fff",style:{visibility:"hidden"}}}},left:{position:{name:"absolute",args:{x:23.5,y:26.5}},attrs:{circle:{r:3,magnet:!0,stroke:"#028FA6",strokeWidth:1,fill:"#fff",style:{visibility:"hidden"}}}}},items:[{group:"top"},{group:"right"},{group:"bottom"},{group:"left"}]};sa.prototype.isHistoryEnabled=function(){const t=this.getPlugin("history");return!!t&&t.isEnabled()},sa.prototype.enableHistory=function(){const t=this.getPlugin("history");return t&&t.enable(),this},sa.prototype.disableHistory=function(){const t=this.getPlugin("history");return t&&t.disable(),this},sa.prototype.toggleHistory=function(t){const e=this.getPlugin("history");return e&&e.toggleEnabled(t),this},sa.prototype.undo=function(t){const e=this.getPlugin("history");return e&&e.undo(t),this},sa.prototype.redo=function(t){const e=this.getPlugin("history");return e&&e.redo(t),this},sa.prototype.undoAndCancel=function(t){const e=this.getPlugin("history");return e&&e.cancel(t),this},sa.prototype.canUndo=function(){const t=this.getPlugin("history");return!!t&&t.canUndo()},sa.prototype.canRedo=function(){const t=this.getPlugin("history");return!!t&&t.canRedo()},sa.prototype.cleanHistory=function(t){const e=this.getPlugin("history");return e&&e.clean(t),this},sa.prototype.getHistoryStackSize=function(){return this.getPlugin("history").getSize()},sa.prototype.getUndoStackSize=function(){return this.getPlugin("history").getUndoSize()},sa.prototype.getRedoStackSize=function(){return this.getPlugin("history").getRedoSize()},sa.prototype.getUndoRemainSize=function(){return this.getPlugin("history").getUndoRemainSize()};var da,ga=globalThis&&globalThis.__decorate||function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};class pa extends st{constructor(t={}){super(),this.name="history",this.batchCommands=null,this.batchLevel=0,this.lastBatchIndex=-1,this.freezed=!1,this.stackSize=0,this.handlers=[];const{stackSize:e=0}=t;this.stackSize=e,this.options=da.getOptions(t),this.validator=new pa.Validator({history:this,cancelInvalid:this.options.cancelInvalid})}init(t){this.graph=t,this.model=this.graph.model,this.clean(),this.startListening()}isEnabled(){return!this.disabled}enable(){this.disabled&&(this.options.enabled=!0)}disable(){this.disabled||(this.options.enabled=!1)}toggleEnabled(t){return null!=t?t!==this.isEnabled()&&(t?this.enable():this.disable()):this.isEnabled()?this.disable():this.enable(),this}undo(t={}){if(!this.disabled){const e=this.undoStack.pop();e&&(this.revertCommand(e,t),this.redoStack.push(e),this.notify("undo",e,t))}return this}redo(t={}){if(!this.disabled){const e=this.redoStack.pop();e&&(this.applyCommand(e,t),this.undoStackPush(e),this.notify("redo",e,t))}return this}cancel(t={}){if(!this.disabled){const e=this.undoStack.pop();e&&(this.revertCommand(e,t),this.redoStack=[],this.notify("cancel",e,t))}return this}getSize(){return this.stackSize}getUndoRemainSize(){const t=this.undoStack.length;return this.stackSize-t}getUndoSize(){return this.undoStack.length}getRedoSize(){return this.redoStack.length}canUndo(){return!this.disabled&&this.undoStack.length>0}canRedo(){return!this.disabled&&this.redoStack.length>0}clean(t={}){return this.undoStack=[],this.redoStack=[],this.notify("clean",null,t),this}get disabled(){return!0!==this.options.enabled}validate(t,...e){return this.validator.validate(t,...e),this}startListening(){this.model.on("batch:start",this.initBatchCommand,this),this.model.on("batch:stop",this.storeBatchCommand,this),this.options.eventNames&&this.options.eventNames.forEach(((t,e)=>{this.handlers[e]=this.addCommand.bind(this,t),this.model.on(t,this.handlers[e])})),this.validator.on("invalid",(t=>this.trigger("invalid",t)))}stopListening(){this.model.off("batch:start",this.initBatchCommand,this),this.model.off("batch:stop",this.storeBatchCommand,this),this.options.eventNames&&(this.options.eventNames.forEach(((t,e)=>{this.model.off(t,this.handlers[e])})),this.handlers.length=0),this.validator.off("invalid")}createCommand(t){return{batch:!!t&&t.batch,data:{}}}revertCommand(t,e){this.freezed=!0;const n=Array.isArray(t)?da.sortBatchCommands(t):[t];for(let i=n.length-1;i>=0;i-=1){const t=n[i],s=Object.assign(Object.assign({},e),S(t.options,this.options.revertOptionsList||[]));this.executeCommand(t,!0,s)}this.freezed=!1}applyCommand(t,e){this.freezed=!0;const n=Array.isArray(t)?da.sortBatchCommands(t):[t];for(let i=0;i=0&&(e||n)){const e=this.batchCommands.findIndex((e=>(o&&e.modelChange||e.data.id===r.id)&&e.event===t));e<0||da.isAddEvent(t)||da.isRemoveEvent(t)?l=this.createCommand({batch:!0}):(l=this.batchCommands[e],this.batchCommands.splice(e,1)),this.batchCommands.push(l),this.lastBatchIndex=this.batchCommands.length-1}}else l=this.createCommand({batch:!1});if(da.isAddEvent(t)||da.isRemoveEvent(t)){const e=l.data;return l.event=t,l.options=i,e.id=r.id,e.props=a(r.toJSON()),r.isEdge()?e.edge=!0:r.isNode()&&(e.node=!0),this.push(l,i)}if(da.isChangeEvent(t)){const n=e.key,s=l.data;return l.batch&&l.event||(l.event=t,l.options=i,s.key=n,null==s.prev&&(s.prev={}),s.prev[n]=a(r.previous(n)),o?l.modelChange=!0:s.id=r.id),null==s.next&&(s.next={}),s.next[n]=a(r.prop(n)),this.push(l,i)}const h=this.options.afterAddCommand;h&&H(h,this,t,e,l),this.push(l,i)}initBatchCommand(t){this.freezed||(this.batchCommands?this.batchLevel+=1:(this.batchCommands=[this.createCommand({batch:!0})],this.batchLevel=0,this.lastBatchIndex=-1))}storeBatchCommand(t){if(!this.freezed)if(this.batchCommands&&this.batchLevel<=0){const e=this.filterBatchCommand(this.batchCommands);e.length>0&&(this.redoStack=[],this.undoStackPush(e),this.consolidateCommands(),this.notify("add",e,t)),this.batchCommands=null,this.lastBatchIndex=-1,this.batchLevel=0}else this.batchCommands&&this.batchLevel>0&&(this.batchLevel-=1)}filterBatchCommand(t){let e=t.slice();const n=[];for(;e.length>0;){const t=e.shift(),i=t.event,s=t.data.id;if(null!=i&&(null!=s||t.modelChange)){if(da.isAddEvent(i)){const t=e.findIndex((t=>da.isRemoveEvent(t.event)&&t.data.id===s));if(t>=0){e=e.filter(((e,n)=>tda.isAddEvent(t.event)&&t.data.id===s));if(t>=0){e.splice(t,1);continue}}else if(da.isChangeEvent(i)){const e=t.data;if(f(e.prev,e.next))continue}n.push(t)}}return n}notify(t,e,n){const i=null==e?null:Array.isArray(e)?e:[e];this.emit(t,{cmds:i,options:n}),this.graph.trigger(`history:${t}`,{cmds:i,options:n}),this.emit("change",{cmds:i,options:n}),this.graph.trigger("history:change",{cmds:i,options:n})}push(t,e){this.redoStack=[],t.batch?(this.lastBatchIndex=Math.max(this.lastBatchIndex,0),this.emit("batch",{cmd:t,options:e})):(this.undoStackPush(t),this.consolidateCommands(),this.notify("add",t,e))}consolidateCommands(){var t;const e=this.undoStack[this.undoStack.length-1],n=this.undoStack[this.undoStack.length-2];if(!Array.isArray(e))return;const i=new Set(e.map((t=>t.event)));if(2!==i.size||!i.has("cell:change:parent")||!i.has("cell:change:children"))return;if(!e.every((t=>{var e;return t.batch&&(null===(e=t.options)||void 0===e?void 0:e.ui)})))return;if(!Array.isArray(n)||1!==n.length)return;const s=n[0];"cell:change:position"===s.event&&(null===(t=s.options)||void 0===t?void 0:t.ui)&&(n.push(...e),this.undoStack.pop())}undoStackPush(t){0!==this.stackSize?(this.undoStack.length>=this.stackSize&&this.undoStack.shift(),this.undoStack.push(t)):this.undoStack.push(t)}ensureUndefinedAttrs(t,e){null!==t&&null!==e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).forEach((n=>{t.hasOwnProperty(n)?"object"==typeof t[n]&&"object"==typeof e[n]&&this.ensureUndefinedAttrs(t[n],e[n]):t[n]=void 0}))}dispose(){this.validator.dispose(),this.clean(),this.stopListening(),this.off()}}ga([st.dispose()],pa.prototype,"dispose",null),function(t){class e extends st{constructor(t){super(),this.map={},this.command=t.history,this.cancelInvalid=!1!==t.cancelInvalid,this.command.on("add",this.onCommandAdded,this)}onCommandAdded({cmds:t}){return Array.isArray(t)?t.every((t=>this.isValidCommand(t))):this.isValidCommand(t)}isValidCommand(t){if(t.options&&!1===t.options.validation)return!0;const e=t.event&&this.map[t.event]||[];let n=null;return e.forEach((e=>{let i=0;const s=r=>{const o=e[i];i+=1;try{if(!o)return void(n=r);o(r,t,s)}catch(l){s(l)}};s(n)})),!n||(this.cancelInvalid&&this.command.cancel(),this.emit("invalid",{err:n}),!1)}validate(t,...e){const n=Array.isArray(t)?t:t.split(/\s+/);return e.forEach((t=>{if("function"!=typeof t)throw new Error(`${n.join(" ")} requires callback functions.`)})),n.forEach((t=>{null==this.map[t]&&(this.map[t]=[]),this.map[t].push(e)})),this}dispose(){this.command.off("add",this.onCommandAdded,this)}}ga([st.dispose()],e.prototype,"dispose",null),t.Validator=e}(pa||(pa={})),function(t){t.isAddEvent=function(t){return"cell:added"===t},t.isRemoveEvent=function(t){return"cell:removed"===t},t.isChangeEvent=function(t){return null!=t&&t.startsWith("cell:change:")},t.getOptions=function(e){const n=["cell:added","cell:removed","cell:change:*"],i=["batch:start","batch:stop"],s=e.eventNames?e.eventNames.filter((e=>!(t.isChangeEvent(e)||n.includes(e)||i.includes(e)))):n;return Object.assign(Object.assign({enabled:!0},e),{eventNames:s,applyOptionsList:e.applyOptionsList||["propertyPath"],revertOptionsList:e.revertOptionsList||["propertyPath"]})},t.sortBatchCommands=function(e){const n=[];for(let i=0,s=e.length;i=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};class ma extends st{constructor(){super(),this.name="export"}get view(){return this.graph.view}init(t){this.graph=t}exportPNG(t="chart",e={}){this.toPNG((e=>{ge.downloadDataUri(e,t)}),e)}exportJPEG(t="chart",e={}){this.toPNG((e=>{ge.downloadDataUri(e,t)}),e)}exportSVG(t="chart",e={}){this.toSVG((e=>{ge.downloadDataUri(ge.svgToDataUrl(e),t)}),e)}toSVG(t,e={}){this.notify("before:export",e);const n=this.view.svg,i=Me.create(n).clone();let s=i.node;const r=i.findOne(`.${this.view.prefixClassName("graph-svg-stage")}`),o=e.viewBox||this.graph.graphToLocal(this.graph.getContentBBox()),l=e.preserveDimensions;if(l){const t="boolean"==typeof l?o:l;i.attr({width:t.width,height:t.height})}if(i.removeAttribute("style").attr("viewBox",[o.x,o.y,o.width,o.height].join(" ")),r.removeAttribute("transform"),!1!==e.copyStyles){const t=n.ownerDocument,e=Array.from(n.querySelectorAll("*")),i=Array.from(s.querySelectorAll("*")),r=t.styleSheets.length,o=[];for(let n=r-1;n>=0;n-=1)o[n]=t.styleSheets[n],t.styleSheets[n].disabled=!0;const l={};e.forEach(((t,e)=>{const n=window.getComputedStyle(t,null),i={};Object.keys(n).forEach((t=>{i[t]=n.getPropertyValue(t)})),l[e]=i})),r!==t.styleSheets.length&&o.forEach(((e,n)=>{t.styleSheets[n]=e}));for(let n=0;n{const n=window.getComputedStyle(t,null),i=l[e],s={};Object.keys(n).forEach((t=>{P(t)||n.getPropertyValue(t)===i[t]||(s[t]=n.getPropertyValue(t))})),a[e]=s})),i.forEach(((t,e)=>{Pe(t,a[e])}))}const a=e.stylesheet;if("string"==typeof a){const t=n.ownerDocument.implementation.createDocument(null,"xml",null).createCDATASection(a);i.prepend(Me.create("style",{type:"text/css"},[t]))}const h=()=>{const n=e.beforeSerialize;if("function"==typeof n){const t=H(n,this.graph,s);t instanceof SVGSVGElement&&(s=t)}const i=(new XMLSerializer).serializeToString(s).replace(/ /g," ");this.notify("after:export",e),t(i)};if(e.serializeImages){const t=i.find("image").map((t=>new Promise((e=>{const n=t.attr("xlink:href")||t.attr("href");ge.imageToDataUri(n,((n,i)=>{!n&&i&&t.attr("xlink:href",i),e()}))}))));Promise.all(t).then(h)}else h()}toDataURL(t,e){let n=e.viewBox||this.graph.getContentBBox();const i=gt(e.padding);e.width&&e.height&&(i.left+i.right>=e.width&&(i.left=i.right=0),i.top+i.bottom>=e.height&&(i.top=i.bottom=0));const s=new Nn(-i.left,-i.top,i.left+i.right,i.top+i.bottom);if(e.width&&e.height){const t=n.width+i.left+i.right,r=n.height+i.top+i.bottom;s.scale(t/e.width,r/e.height)}n=Nn.create(n).moveAndExpand(s);const r="number"==typeof e.width&&"number"==typeof e.height?{width:e.width,height:e.height}:n;let o=e.ratio?parseFloat(e.ratio):1;Number.isFinite(o)&&0!==o||(o=1);const l={width:Math.max(Math.round(r.width*o),1),height:Math.max(Math.round(r.height*o),1)};{const t=document.createElement("canvas"),e=t.getContext("2d");t.width=l.width,t.height=l.height;const n=l.width-1,i=l.height-1;e.fillStyle="rgb(1,1,1)",e.fillRect(n,i,1,1);const s=e.getImageData(n,i,1,1).data;if(1!==s[0]||1!==s[1]||1!==s[2])throw new Error("size exceeded")}const a=new Image;a.onload=()=>{const n=document.createElement("canvas");n.width=l.width,n.height=l.height;const i=n.getContext("2d");i.fillStyle=e.backgroundColor||"white",i.fillRect(0,0,l.width,l.height);try{i.drawImage(a,0,0,l.width,l.height);const s=n.toDataURL(e.type,e.quality);t(s)}catch(s){}},this.toSVG((t=>{a.src=`data:image/svg+xml,${encodeURIComponent(t)}`}),Object.assign(Object.assign({},e),{viewBox:n,serializeImages:!0,preserveDimensions:Object.assign({},l)}))}toPNG(t,e={}){this.toDataURL(t,Object.assign(Object.assign({},e),{type:"image/png"}))}toJPEG(t,e={}){this.toDataURL(t,Object.assign(Object.assign({},e),{type:"image/jpeg"}))}notify(t,e){this.trigger(t,e),this.graph.trigger(t,e)}dispose(){this.off()}}fa([st.dispose()],ma.prototype,"dispose",null);var ya,ba=globalThis&&globalThis.__decorate||function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};class va extends cr{get graph(){return this.options.graph}get boxClassName(){return this.prefixClassName(ya.classNames.box)}get $boxes(){return function(t,e){const n=[];let i=t.firstChild;for(;i;i=i.nextSibling)1===i.nodeType&&(e&&!Rt(i,e)||n.push(i));return n}(this.container,this.boxClassName)}get handleOptions(){return this.options}constructor(t){super(),this.options=t,this.options.model&&(this.options.collection=this.options.model.collection),this.options.collection?this.collection=this.options.collection:(this.collection=new ul([],{comparator:ya.depthComparator}),this.options.collection=this.collection),this.boxCount=0,this.createContainer(),this.startListening()}startListening(){const t=this.graph,e=this.collection;this.delegateEvents({[`mousedown .${this.boxClassName}`]:"onSelectionBoxMouseDown",[`touchstart .${this.boxClassName}`]:"onSelectionBoxMouseDown"},!0),t.on("scale",this.onGraphTransformed,this),t.on("translate",this.onGraphTransformed,this),t.model.on("updated",this.onModelUpdated,this),e.on("added",this.onCellAdded,this),e.on("removed",this.onCellRemoved,this),e.on("reseted",this.onReseted,this),e.on("updated",this.onCollectionUpdated,this),e.on("node:change:position",this.onNodePositionChanged,this),e.on("cell:changed",this.onCellChanged,this)}stopListening(){const t=this.graph,e=this.collection;this.undelegateEvents(),t.off("scale",this.onGraphTransformed,this),t.off("translate",this.onGraphTransformed,this),t.model.off("updated",this.onModelUpdated,this),e.off("added",this.onCellAdded,this),e.off("removed",this.onCellRemoved,this),e.off("reseted",this.onReseted,this),e.off("updated",this.onCollectionUpdated,this),e.off("node:change:position",this.onNodePositionChanged,this),e.off("cell:changed",this.onCellChanged,this)}onRemove(){this.stopListening()}onGraphTransformed(){this.updateSelectionBoxes()}onCellChanged(){this.updateSelectionBoxes()}onNodePositionChanged({node:t,options:e}){const{showNodeSelectionBox:n,pointerEvents:i}=this.options,{ui:s,selection:r,translateBy:o,snapped:l}=e,a=!(!0===n&&"none"!==i||this.translating||r),h=s&&o&&t.id===o;if(a&&(h||l)){this.translating=!0;const n=t.position(),i=t.previous("position"),s=n.x-i.x,r=n.y-i.y;0===s&&0===r||this.translateSelectedNodes(s,r,t,e),this.translating=!1}}onModelUpdated({removed:t}){t&&t.length&&this.unselect(t)}isEmpty(){return this.length<=0}isSelected(t){return this.collection.has(t)}get length(){return this.collection.length}get cells(){return this.collection.toArray()}select(t,e={}){e.dryrun=!0;const n=this.filter(Array.isArray(t)?t:[t]);return this.collection.add(n,e),this}unselect(t,e={}){return e.dryrun=!0,this.collection.remove(Array.isArray(t)?t:[t],e),this}reset(t,e={}){if(t){if(e.batch){const n=this.filter(Array.isArray(t)?t:[t]);return this.collection.reset(n,Object.assign(Object.assign({},e),{ui:!0})),this}const n=this.cells,i=this.filter(Array.isArray(t)?t:[t]),s={},r={};n.forEach((t=>s[t.id]=t)),i.forEach((t=>r[t.id]=t));const o=[],l=[];return i.forEach((t=>{s[t.id]||o.push(t)})),n.forEach((t=>{r[t.id]||l.push(t)})),l.length&&this.unselect(l,Object.assign(Object.assign({},e),{ui:!0})),o.length&&this.select(o,Object.assign(Object.assign({},e),{ui:!0})),0===l.length&&0===o.length&&this.updateContainer(),this}return this.clean(e)}clean(t={}){return this.length&&(!1===t.batch?this.unselect(this.cells,t):this.collection.reset([],Object.assign(Object.assign({},t),{ui:!0}))),this}setFilter(t){this.options.filter=t}setContent(t){this.options.content=t}startSelecting(t){let e,n;t=this.normalizeEvent(t),this.clean();const i=this.graph.container;if(null!=t.offsetX&&null!=t.offsetY&&i.contains(t.target))e=t.offsetX,n=t.offsetY;else{const s=dn(i),r=i.scrollLeft,o=i.scrollTop;e=t.clientX-s.left+window.pageXOffset+r,n=t.clientY-s.top+window.pageYOffset+o}Pe(this.container,{top:n,left:e,width:1,height:1}),this.setEventData(t,{action:"selecting",clientX:t.clientX,clientY:t.clientY,offsetX:e,offsetY:n,scrollerX:0,scrollerY:0,moving:!1}),this.delegateDocumentEvents(ya.documentEvents,t.data)}filter(t){const e=this.options.filter;return t.filter((t=>Array.isArray(e)?e.some((e=>"string"==typeof e?t.shape===e:t.id===e.id)):"function"!=typeof e||H(e,this.graph,t)))}stopSelecting(t){const e=this.graph,n=this.getEventData(t);switch(n.action){case"selecting":{let t=this.container.getBoundingClientRect().width,n=this.container.getBoundingClientRect().height;const i=dn(this.container),s=e.pageToLocal(i.left,i.top),r=e.transform.getScale();t/=r.sx,n/=r.sy;const o=new Nn(s.x,s.y,t,n),l=this.getCellViewsInArea(o).map((t=>t.cell));this.reset(l,{batch:!0}),this.hideRubberband();break}case"translating":{const i=e.snapToGrid(t.clientX,t.clientY);if(!this.options.following){const t=n;this.updateSelectedNodesPosition({dx:t.clientX-t.originX,dy:t.clientY-t.originY})}this.graph.model.stopBatch("move-selection"),this.notifyBoxEvent("box:mouseup",t,i.x,i.y);break}default:this.clean()}}onMouseUp(t){this.getEventData(t).action&&(this.stopSelecting(t),this.undelegateDocumentEvents())}onSelectionBoxMouseDown(t){this.options.following||t.stopPropagation();const e=this.normalizeEvent(t);this.options.movable&&this.startTranslating(e);const n=this.getCellViewFromElem(e.target);this.setEventData(e,{activeView:n});const i=this.graph.snapToGrid(e.clientX,e.clientY);this.notifyBoxEvent("box:mousedown",e,i.x,i.y),this.delegateDocumentEvents(ya.documentEvents,e.data)}startTranslating(t){this.graph.model.startBatch("move-selection");const e=this.graph.snapToGrid(t.clientX,t.clientY);this.setEventData(t,{action:"translating",clientX:e.x,clientY:e.y,originX:e.x,originY:e.y})}getRestrictArea(){const t=this.graph.options.translating.restrict,e="function"==typeof t?H(t,this.graph,null):t;return"number"==typeof e?this.graph.transform.getGraphArea().inflate(e):!0===e?this.graph.transform.getGraphArea():e||null}getSelectionOffset(t,e){let n=t.x-e.clientX,i=t.y-e.clientY;const s=this.getRestrictArea();if(s){const r=this.collection.toArray(),o=rl.getCellsBBox(r,{deep:!0})||Nn.create(),l=s.x-o.x,a=s.y-o.y,h=s.x+s.width-(o.x+o.width),c=s.y+s.height-(o.y+o.height);if(n=h?0:n,i=r<=a||r>=c?0:i}}return{dx:n,dy:i}}updateElementPosition(t,e,n){const i=Pe(t,"left"),s=Pe(t,"top"),r=i?parseFloat(i):0,o=s?parseFloat(s):0;Pe(t,"left",r+e),Pe(t,"top",o+n)}updateSelectedNodesPosition(t){const{dx:e,dy:n}=t;if(e||n)if(this.translateSelectedNodes(e,n),this.boxesUpdated)this.collection.length>1&&this.updateSelectionBoxes();else{const t=this.graph.transform.getScale();for(let i=0,s=this.$boxes.length;i{t.getDescendants({deep:!0}).forEach((t=>{s[t.id]=!0}))})),i&&i.translateBy){const t=this.graph.getCellById(i.translateBy);t&&(s[t.id]=!0,t.getDescendants({deep:!0}).forEach((t=>{s[t.id]=!0})),r.push(t))}this.collection.toArray().forEach((n=>{if(!s[n.id]){const o=Object.assign(Object.assign({},i),{selection:this.cid,exclude:r});n.translate(t,e,o),this.graph.model.getConnectedEdges(n).forEach((n=>{s[n.id]||(n.translate(t,e,o),s[n.id]=!0)}))}}))}getCellViewsInArea(t){const e=this.graph,n={strict:this.options.strict};let i=[];return this.options.rubberNode&&(i=i.concat(e.model.getNodesInArea(t,n).map((t=>e.renderer.findViewByCell(t))).filter((t=>null!=t)))),this.options.rubberEdge&&(i=i.concat(e.model.getEdgesInArea(t,n).map((t=>e.renderer.findViewByCell(t))).filter((t=>null!=t)))),i}notifyBoxEvent(t,e,n,i){const s=this.getEventData(e).activeView;this.trigger(t,{e:e,view:s,x:n,y:i,cell:s.cell})}getSelectedClassName(t){return this.prefixClassName((t.isNode()?"node":"edge")+"-selected")}addCellSelectedClassName(t){const e=this.graph.renderer.findViewByCell(t);e&&e.addClass(this.getSelectedClassName(t))}removeCellUnSelectedClassName(t){const e=this.graph.renderer.findViewByCell(t);e&&e.removeClass(this.getSelectedClassName(t))}destroySelectionBox(t){this.removeCellUnSelectedClassName(t),this.canShowSelectionBox(t)&&(Yt(this.container.querySelector(`[data-cell-id="${t.id}"]`)),0===this.$boxes.length&&this.hide(),this.boxCount=Math.max(0,this.boxCount-1))}destroyAllSelectionBoxes(t){t.forEach((t=>this.removeCellUnSelectedClassName(t))),this.hide(),Yt(this.$boxes),this.boxCount=0}hide(){It(this.container,this.prefixClassName(ya.classNames.rubberband)),It(this.container,this.prefixClassName(ya.classNames.selected))}showRubberband(){Dt(this.container,this.prefixClassName(ya.classNames.rubberband))}hideRubberband(){It(this.container,this.prefixClassName(ya.classNames.rubberband))}showSelected(){se(this.container,"style"),Dt(this.container,this.prefixClassName(ya.classNames.selected))}createContainer(){this.container=document.createElement("div"),Dt(this.container,this.prefixClassName(ya.classNames.root)),this.options.className&&Dt(this.container,this.options.className),this.selectionContainer=document.createElement("div"),Dt(this.selectionContainer,this.prefixClassName(ya.classNames.inner)),this.selectionContent=document.createElement("div"),Dt(this.selectionContent,this.prefixClassName(ya.classNames.content)),Qt(this.selectionContainer,this.selectionContent),le(this.selectionContainer,"data-selection-length",this.collection.length),Kt(this.container,this.selectionContainer)}updateContainerPosition(t){(t.dx||t.dy)&&this.updateElementPosition(this.selectionContainer,t.dx,t.dy)}updateContainer(){const t={x:1/0,y:1/0},e={x:0,y:0};this.collection.toArray().filter((t=>this.canShowSelectionBox(t))).forEach((n=>{const i=this.graph.renderer.findViewByCell(n);if(i){const n=i.getBBox({useCellGeometry:!0});t.x=Math.min(t.x,n.x),t.y=Math.min(t.y,n.y),e.x=Math.max(e.x,n.x+n.width),e.y=Math.max(e.y,n.y+n.height)}})),Pe(this.selectionContainer,{position:"absolute",pointerEvents:"none",left:t.x,top:t.y,width:e.x-t.x,height:e.y-t.y}),le(this.selectionContainer,"data-selection-length",this.collection.length);const n=this.options.content;if(n)if("function"==typeof n){const t=H(n,this.graph,this,this.selectionContent);t&&(this.selectionContent.innerHTML=t)}else this.selectionContent.innerHTML=n;this.collection.length>0&&!this.container.parentNode?ee(this.container,this.graph.container):this.collection.length<=0&&this.container.parentNode&&this.container.parentNode.removeChild(this.container)}canShowSelectionBox(t){return t.isNode()&&!0===this.options.showNodeSelectionBox||t.isEdge()&&!0===this.options.showEdgeSelectionBox}createSelectionBox(t){if(this.addCellSelectedClassName(t),this.canShowSelectionBox(t)){const e=this.graph.renderer.findViewByCell(t);if(e){const n=e.getBBox({useCellGeometry:!0}),i=this.boxClassName,s=document.createElement("div");Dt(s,i),Dt(s,`${i}-${t.isNode()?"node":"edge"}`),le(s,"data-cell-id",t.id),Pe(s,{position:"absolute",left:n.x,top:n.y,width:n.width,height:n.height,pointerEvents:this.options.pointerEvents||"auto"}),ee(s,this.container),this.showSelected(),this.boxCount+=1}}}updateSelectionBoxes(){this.collection.length>0&&(this.boxesUpdated=!0,this.confirmUpdate())}confirmUpdate(){if(this.boxCount){this.hide();for(let t=0,e=this.$boxes.length;t{this.listenCellRemoveEvent(t),this.createSelectionBox(t)})),this.updateContainer()}onCellAdded({cell:t}){this.listenCellRemoveEvent(t),this.createSelectionBox(t),this.updateContainer()}listenCellRemoveEvent(t){t.off("removed",this.onCellRemoved,this),t.on("removed",this.onCellRemoved,this)}onCollectionUpdated({added:t,removed:e,options:n}){t.forEach((t=>{this.trigger("cell:selected",{cell:t,options:n}),t.isNode()?this.trigger("node:selected",{cell:t,options:n,node:t}):t.isEdge()&&this.trigger("edge:selected",{cell:t,options:n,edge:t})})),e.forEach((t=>{this.trigger("cell:unselected",{cell:t,options:n}),t.isNode()?this.trigger("node:unselected",{cell:t,options:n,node:t}):t.isEdge()&&this.trigger("edge:unselected",{cell:t,options:n,edge:t})}));const i={added:t,removed:e,options:n,selected:this.cells.filter((t=>!!this.graph.getCellById(t.id)))};this.trigger("selection:changed",i)}dispose(){this.clean(),this.remove(),this.off()}}ba([cr.dispose()],va.prototype,"dispose",null),function(t){const e="widget-selection";t.classNames={root:e,inner:`${e}-inner`,box:`${e}-box`,content:`${e}-content`,rubberband:`${e}-rubberband`,selected:`${e}-selected`},t.documentEvents={mousemove:"adjustSelection",touchmove:"adjustSelection",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"},t.depthComparator=function(t){return t.getAncestors().length}}(ya||(ya={})),sa.prototype.isSelectionEnabled=function(){const t=this.getPlugin("selection");return!!t&&t.isEnabled()},sa.prototype.enableSelection=function(){const t=this.getPlugin("selection");return t&&t.enable(),this},sa.prototype.disableSelection=function(){const t=this.getPlugin("selection");return t&&t.disable(),this},sa.prototype.toggleSelection=function(t){const e=this.getPlugin("selection");return e&&e.toggleEnabled(t),this},sa.prototype.isMultipleSelection=function(){const t=this.getPlugin("selection");return!!t&&t.isMultipleSelection()},sa.prototype.enableMultipleSelection=function(){const t=this.getPlugin("selection");return t&&t.enableMultipleSelection(),this},sa.prototype.disableMultipleSelection=function(){const t=this.getPlugin("selection");return t&&t.disableMultipleSelection(),this},sa.prototype.toggleMultipleSelection=function(t){const e=this.getPlugin("selection");return e&&e.toggleMultipleSelection(t),this},sa.prototype.isSelectionMovable=function(){const t=this.getPlugin("selection");return!!t&&t.isSelectionMovable()},sa.prototype.enableSelectionMovable=function(){const t=this.getPlugin("selection");return t&&t.enableSelectionMovable(),this},sa.prototype.disableSelectionMovable=function(){const t=this.getPlugin("selection");return t&&t.disableSelectionMovable(),this},sa.prototype.toggleSelectionMovable=function(t){const e=this.getPlugin("selection");return e&&e.toggleSelectionMovable(t),this},sa.prototype.isRubberbandEnabled=function(){const t=this.getPlugin("selection");return!!t&&t.isRubberbandEnabled()},sa.prototype.enableRubberband=function(){const t=this.getPlugin("selection");return t&&t.enableRubberband(),this},sa.prototype.disableRubberband=function(){const t=this.getPlugin("selection");return t&&t.disableRubberband(),this},sa.prototype.toggleRubberband=function(t){const e=this.getPlugin("selection");return e&&e.toggleRubberband(t),this},sa.prototype.isStrictRubberband=function(){const t=this.getPlugin("selection");return!!t&&t.isStrictRubberband()},sa.prototype.enableStrictRubberband=function(){const t=this.getPlugin("selection");return t&&t.enableStrictRubberband(),this},sa.prototype.disableStrictRubberband=function(){const t=this.getPlugin("selection");return t&&t.disableStrictRubberband(),this},sa.prototype.toggleStrictRubberband=function(t){const e=this.getPlugin("selection");return e&&e.toggleStrictRubberband(t),this},sa.prototype.setRubberbandModifiers=function(t){const e=this.getPlugin("selection");return e&&e.setRubberbandModifiers(t),this},sa.prototype.setSelectionFilter=function(t){const e=this.getPlugin("selection");return e&&e.setSelectionFilter(t),this},sa.prototype.setSelectionDisplayContent=function(t){const e=this.getPlugin("selection");return e&&e.setSelectionDisplayContent(t),this},sa.prototype.isSelectionEmpty=function(){const t=this.getPlugin("selection");return!t||t.isEmpty()},sa.prototype.cleanSelection=function(t){const e=this.getPlugin("selection");return e&&e.clean(t),this},sa.prototype.resetSelection=function(t,e){const n=this.getPlugin("selection");return n&&n.reset(t,e),this},sa.prototype.getSelectedCells=function(){const t=this.getPlugin("selection");return t?t.getSelectedCells():[]},sa.prototype.getSelectedCellCount=function(){const t=this.getPlugin("selection");return t?t.getSelectedCellCount():0},sa.prototype.isSelected=function(t){const e=this.getPlugin("selection");return!!e&&e.isSelected(t)},sa.prototype.select=function(t,e){const n=this.getPlugin("selection");return n&&n.select(t,e),this},sa.prototype.unselect=function(t,e){const n=this.getPlugin("selection");return n?n.unselect(t,e):this};var xa=globalThis&&globalThis.__decorate||function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o};class wa extends st{get rubberbandDisabled(){return!0!==this.options.enabled||!0!==this.options.rubberband}get disabled(){return!0!==this.options.enabled}get length(){return this.selectionImpl.length}get cells(){return this.selectionImpl.cells}constructor(t={}){super(),this.name="selection",this.movedMap=new WeakMap,this.unselectMap=new WeakMap,this.options=c({enabled:!0},wa.defaultOptions,t),En(this.name,".x6-widget-selection {\n position: absolute;\n top: 0;\n left: 0;\n display: none;\n width: 0;\n height: 0;\n touch-action: none;\n}\n.x6-widget-selection-rubberband {\n display: block;\n overflow: visible;\n opacity: 0.3;\n}\n.x6-widget-selection-selected {\n display: block;\n}\n.x6-widget-selection-box {\n cursor: move;\n}\n.x6-widget-selection-inner[data-selection-length='0'],\n.x6-widget-selection-inner[data-selection-length='1'] {\n display: none;\n}\n.x6-widget-selection-content {\n position: absolute;\n top: 100%;\n right: -20px;\n left: -20px;\n margin-top: 30px;\n padding: 6px;\n line-height: 14px;\n text-align: center;\n border-radius: 6px;\n}\n.x6-widget-selection-content:empty {\n display: none;\n}\n.x6-widget-selection-rubberband {\n background-color: #3498db;\n border: 2px solid #2980b9;\n}\n.x6-widget-selection-box {\n box-sizing: content-box !important;\n margin-top: -4px;\n margin-left: -4px;\n padding-right: 4px;\n padding-bottom: 4px;\n border: 2px dashed #feb663;\n box-shadow: 2px 2px 5px #d3d3d3;\n}\n.x6-widget-selection-inner {\n box-sizing: content-box !important;\n margin-top: -8px;\n margin-left: -8px;\n padding-right: 12px;\n padding-bottom: 12px;\n border: 2px solid #feb663;\n box-shadow: 2px 2px 5px #d3d3d3;\n}\n.x6-widget-selection-content {\n color: #fff;\n font-size: 10px;\n background-color: #6a6b8a;\n}\n")}init(t){this.graph=t,this.selectionImpl=new va(Object.assign(Object.assign({},this.options),{graph:t})),this.setup(),this.startListening()}isEnabled(){return!this.disabled}enable(){this.disabled&&(this.options.enabled=!0)}disable(){this.disabled||(this.options.enabled=!1)}toggleEnabled(t){return null!=t?t!==this.isEnabled()&&(t?this.enable():this.disable()):this.isEnabled()?this.disable():this.enable(),this}isMultipleSelection(){return this.isMultiple()}enableMultipleSelection(){return this.enableMultiple(),this}disableMultipleSelection(){return this.disableMultiple(),this}toggleMultipleSelection(t){return null!=t?t!==this.isMultipleSelection()&&(t?this.enableMultipleSelection():this.disableMultipleSelection()):this.isMultipleSelection()?this.disableMultipleSelection():this.enableMultipleSelection(),this}isSelectionMovable(){return!1!==this.options.movable}enableSelectionMovable(){return this.selectionImpl.options.movable=!0,this}disableSelectionMovable(){return this.selectionImpl.options.movable=!1,this}toggleSelectionMovable(t){return null!=t?t!==this.isSelectionMovable()&&(t?this.enableSelectionMovable():this.disableSelectionMovable()):this.isSelectionMovable()?this.disableSelectionMovable():this.enableSelectionMovable(),this}isRubberbandEnabled(){return!this.rubberbandDisabled}enableRubberband(){return this.rubberbandDisabled&&(this.options.rubberband=!0),this}disableRubberband(){return this.rubberbandDisabled||(this.options.rubberband=!1),this}toggleRubberband(t){return null!=t?t!==this.isRubberbandEnabled()&&(t?this.enableRubberband():this.disableRubberband()):this.isRubberbandEnabled()?this.disableRubberband():this.enableRubberband(),this}isStrictRubberband(){return!0===this.selectionImpl.options.strict}enableStrictRubberband(){return this.selectionImpl.options.strict=!0,this}disableStrictRubberband(){return this.selectionImpl.options.strict=!1,this}toggleStrictRubberband(t){return null!=t?t!==this.isStrictRubberband()&&(t?this.enableStrictRubberband():this.disableStrictRubberband()):this.isStrictRubberband()?this.disableStrictRubberband():this.enableStrictRubberband(),this}setRubberbandModifiers(t){this.setModifiers(t)}setSelectionFilter(t){return this.setFilter(t),this}setSelectionDisplayContent(t){return this.setContent(t),this}isEmpty(){return this.length<=0}clean(t={}){return this.selectionImpl.clean(t),this}reset(t,e={}){return this.selectionImpl.reset(t?this.getCells(t):[],e),this}getSelectedCells(){return this.cells}getSelectedCellCount(){return this.length}isSelected(t){return this.selectionImpl.isSelected(t)}select(t,e={}){const n=this.getCells(t);return n.length&&(this.isMultiple()?this.selectionImpl.select(n,e):this.reset(n.slice(0,1),e)),this}unselect(t,e={}){return this.selectionImpl.unselect(this.getCells(t),e),this}setup(){this.selectionImpl.on("*",((t,e)=>{this.trigger(t,e),this.graph.trigger(t,e)}))}startListening(){this.graph.on("blank:mousedown",this.onBlankMouseDown,this),this.graph.on("blank:click",this.onBlankClick,this),this.graph.on("cell:mousemove",this.onCellMouseMove,this),this.graph.on("cell:mouseup",this.onCellMouseUp,this),this.selectionImpl.on("box:mousedown",this.onBoxMouseDown,this)}stopListening(){this.graph.off("blank:mousedown",this.onBlankMouseDown,this),this.graph.off("blank:click",this.onBlankClick,this),this.graph.off("cell:mousemove",this.onCellMouseMove,this),this.graph.off("cell:mouseup",this.onCellMouseUp,this),this.selectionImpl.off("box:mousedown",this.onBoxMouseDown,this)}onBlankMouseDown({e:t}){const e=this.graph.panning.allowPanning(t,!0),n=this.graph.getPlugin("scroller"),i=n&&n.allowPanning(t,!0);(this.allowRubberband(t,!0)||this.allowRubberband(t)&&!i&&!e)&&this.startRubberband(t)}onBlankClick(){this.clean()}allowRubberband(t,e){return!this.rubberbandDisabled&&yn.isMatch(t,this.options.modifiers,e)}allowMultipleSelection(t){return this.isMultiple()&&yn.isMatch(t,this.options.multipleSelectionModifiers)}onCellMouseMove({cell:t}){this.movedMap.set(t,!0)}onCellMouseUp({e:t,cell:e}){const n=this.options;let i=this.disabled;!i&&this.movedMap.has(e)&&(i=!1===n.selectCellOnMoved,i||(i=!1===n.selectNodeOnMoved&&e.isNode()),i||(i=!1===n.selectEdgeOnMoved&&e.isEdge())),i||(this.allowMultipleSelection(t)?this.unselectMap.has(e)?this.unselectMap.delete(e):this.isSelected(e)?this.unselect(e):this.select(e):this.reset(e)),this.movedMap.delete(e)}onBoxMouseDown({e:t,cell:e}){this.disabled||this.allowMultipleSelection(t)&&(this.unselect(e),this.unselectMap.set(e,!0))}getCells(t){return(Array.isArray(t)?t:[t]).map((t=>"string"==typeof t?this.graph.getCellById(t):t)).filter((t=>null!=t))}startRubberband(t){return this.rubberbandDisabled||this.selectionImpl.startSelecting(t),this}isMultiple(){return!1!==this.options.multiple}enableMultiple(){return this.options.multiple=!0,this}disableMultiple(){return this.options.multiple=!1,this}setModifiers(t){return this.options.modifiers=t,this}setContent(t){return this.selectionImpl.setContent(t),this}setFilter(t){return this.selectionImpl.setFilter(t),this}dispose(){this.stopListening(),this.off(),this.selectionImpl.dispose(),Sn(this.name)}}xa([st.dispose()],wa.prototype,"dispose",null),(wa||(wa={})).defaultOptions={rubberband:!1,rubberNode:!0,rubberEdge:!1,pointerEvents:"auto",multiple:!0,multipleSelectionModifiers:["ctrl","meta"],movable:!0,strict:!1,selectCellOnMoved:!1,selectNodeOnMoved:!1,selectEdgeOnMoved:!1,following:!0,content:null};const Ca=""+new URL("data-05c28a0c.svg",import.meta.url).href,Pa=t=>{const e=t.zoom();return parseFloat(100*e).toFixed(0)},Ea=(t,e)=>{for(let n=0,i=t.length;n{var t;(t=n,new Promise((e=>{t.toPNG((t=>{e(t)}),{width:526,height:268,backgroundColor:"rgba(25, 87, 121, 0.18)",quality:1,copyStyles:!1,padding:16,stylesheet:"\n .cu_html_container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n }\n .cu_html_container .cu_html_top {\n width: 53px;\n height: 53px;\n border-radius: 50%;\n }\n .cu_html_container .cu_html_title,\n .cu_html_container .cu_html_desc {\n max-width: 100px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n overflow: hidden;\n }\n "})}))).then((t=>{d.value=t,o.value=!0}))},p=()=>{const t=n.toJSON();c.value=t,r.value=!0,u.value=(t=>{let e=JSON.parse(JSON.stringify(t.getNodes()));const n=t.getEdges();let i=[],s=[];n.map((t=>{const e=t.getSourceCellId();i.push(e);const n=t.getTargetCellId();s.push(n)}));for(let r=0;r{n.zoomTo(1).centerContent(),a.value=Pa(n)},m=()=>{n.undo()},y=t=>{n.zoom(t?.1:-.1).centerContent(),a.value=Pa(n)},b=()=>{n.clearCells()};oa.register({shape:"cu-data-node",width:100,height:104,zIndex:1,effect:["data"],html(t){const{name:e,createPerson:n}=t.getData(),i=document.createElement("div");i.setAttribute("class","cu_html_container");const s=document.createElement("img");s.setAttribute("class","cu_html_top");const r=Ca;s.setAttribute("src",r),ge.imageToDataUri(r,(function(t,e){s.src=e}));const o=document.createElement("div");o.setAttribute("class","cu_html_title"),o.innerText=e;const l=document.createElement("div");return l.setAttribute("class","cu_html_desc"),l.innerText=`创建人-${n}`,i.appendChild(s),i.appendChild(o),i.appendChild(l),i}});let v=null;return T((()=>{n=new sa({container:e.$refs.graphContainer,width:"100%",height:800,...ca}),i=new aa({target:n,scaled:!1}),n.use(new pa({enabled:!0})).use(new wa({enabled:!0,rubberband:!0,showNodeSelectionBox:!0})).use(new ma),h.value=n.canUndo(),n.on("history:change",(()=>{h.value=n.canUndo()})),n.on("node:mouseenter",(()=>{const t=document.getElementById("graphContainer").querySelectorAll(".x6-port-body");Ea(t,!0)})),n.on("node:mouseleave",(()=>{const t=document.getElementById("graphContainer").querySelectorAll(".x6-port-body");Ea(t,!1)})),n.on("node:contextmenu",(({e:t,node:e})=>{const i=n.clientToGraph(t.clientX,t.clientY);(({x:t,y:e,node:i,edge:s,type:r})=>{v&&document.getElementById("graphContainer").removeChild(v),v=document.createElement("div"),v.setAttribute("class","div-menu-container"),v.style.left=t+30+"px",v.style.top=e+"px";const o=document.createElement("div");o.setAttribute("class","div-menu-item"),o.innerText=0===r?"删除节点":"删除边",o.addEventListener("click",(()=>{0===r?n.removeNode(i):n.removeEdge(s),v.style.display="none"})),v.appendChild(o),document.getElementById("graphContainer").appendChild(v),document.body.addEventListener("click",(()=>{v&&(v.style.display="none")}))})({x:i.x,y:i.y,node:e,type:0})})),n.on("node:click",(({node:t})=>{n.cleanSelection(),l.value=t,s.value=!0}))})),(t,e)=>{var v,x;const w=N("el-col"),C=N("el-button"),P=N("el-row"),E=N("Pouring"),S=N("el-icon"),A=N("el-tooltip"),M=N("el-tree"),O=N("el-input"),T=N("el-form-item"),G=N("el-form"),_=N("el-drawer"),q=N("el-text"),H=N("json-viewer"),U=N("el-collapse-item"),W=N("el-collapse"),X=k("tooltip");return j(),L("div",Sa,[B(P,null,{default:R((()=>[B(w,{span:4}),B(w,{span:20},{default:R((()=>[B(C,{type:"primary",size:"small",onClick:e[0]||(e[0]=t=>y(!0))},{default:R((()=>[V("放大")])),_:1}),B(C,{type:"primary",size:"small"},{default:R((()=>[V("当前比例:"+z(D(a))+"%",1)])),_:1}),B(C,{type:"primary",size:"small",onClick:f},{default:R((()=>[V("恢复到初始比例")])),_:1}),B(C,{type:"primary",size:"small",onClick:e[1]||(e[1]=t=>y(!1))},{default:R((()=>[V("缩小")])),_:1}),B(C,{type:"primary",size:"small",onClick:e[2]||(e[2]=t=>D(n).centerContent())},{default:R((()=>[V("内容居中")])),_:1}),B(C,{type:"primary",size:"small",onClick:p},{default:R((()=>[V("数据导出")])),_:1}),B(C,{type:"primary",size:"small",onClick:g},{default:R((()=>[V("导出PNG")])),_:1}),B(C,{type:"primary",size:"small",onClick:b},{default:R((()=>[V("清空画布")])),_:1}),B(C,{type:"primary",size:"small",disabled:!D(h),onClick:m},{default:R((()=>[V("撤销")])),_:1},8,["disabled"])])),_:1})])),_:1}),B(P,null,{default:R((()=>[B(w,{span:4},{default:R((()=>[B(M,{data:D(ha),"default-expand-all":""},{default:R((({node:t,data:e})=>[$((j(),L("div",{class:"cu-tree-node",onMousedown:t=>((t,e,s)=>{const r=n.createNode({shape:"cu-data-node",width:100,height:104,label:null==s?void 0:s.label,data:{name:null==s?void 0:s.label,disableMove:!0,createPerson:s.founder},ports:{...ua,items:[{group:"left",id:"port-left"},{group:"right",id:"port-right"}]}});i.start(r,t)})(t,0,e)},[B(A,{effect:"dark",content:t.label+"(创建人"+e.founder+")",placement:"top"},{default:R((()=>[F("span",null,[B(S,null,{default:R((()=>[B(E)])),_:1}),V(z(t.label),1)])])),_:2},1032,["content"])],40,Aa)),[[X]])])),_:1},8,["data"])])),_:1}),B(w,{span:20},{default:R((()=>[F("div",Ma,null,512)])),_:1})])),_:1}),B(_,{modelValue:D(s),"onUpdate:modelValue":e[10]||(e[10]=t=>I(s)?s.value=t:null),title:null==(x=null==(v=D(l))?void 0:v.data)?void 0:x.name},{footer:R((()=>[F("div",Oa,[B(C,{onClick:e[8]||(e[8]=t=>s.value=!1)},{default:R((()=>[V("关闭")])),_:1}),B(C,{type:"primary",onClick:e[9]||(e[9]=t=>s.value=!1)},{default:R((()=>[V("保存")])),_:1})])])),default:R((()=>[B(G,{model:D(l),disabled:"","label-width":"100"},{default:R((()=>[B(P,null,{default:R((()=>[B(w,{span:24},{default:R((()=>[B(T,{label:"节点ID"},{default:R((()=>[B(O,{modelValue:D(l).id,"onUpdate:modelValue":e[3]||(e[3]=t=>D(l).id=t),placeholder:"Approved by"},null,8,["modelValue"])])),_:1})])),_:1}),B(w,{span:24},{default:R((()=>[B(T,{label:"节点类型"},{default:R((()=>[B(O,{modelValue:D(l).shape,"onUpdate:modelValue":e[4]||(e[4]=t=>D(l).shape=t),placeholder:"Approved by"},null,8,["modelValue"])])),_:1})])),_:1}),B(w,{span:24},{default:R((()=>[B(T,{label:"节点view"},{default:R((()=>[B(O,{modelValue:D(l).view,"onUpdate:modelValue":e[5]||(e[5]=t=>D(l).view=t),placeholder:"Approved by"},null,8,["modelValue"])])),_:1})])),_:1}),B(w,{span:24},{default:R((()=>[B(T,{label:"节点层级"},{default:R((()=>[B(O,{modelValue:D(l).zIndex,"onUpdate:modelValue":e[6]||(e[6]=t=>D(l).zIndex=t),placeholder:"Approved by"},null,8,["modelValue"])])),_:1})])),_:1}),B(w,{span:24},{default:R((()=>[B(T,{label:"科目创建人"},{default:R((()=>[B(O,{modelValue:D(l).data.createPerson,"onUpdate:modelValue":e[7]||(e[7]=t=>D(l).data.createPerson=t),placeholder:"Approved by"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1})])),_:1},8,["model"])])),_:1},8,["modelValue","title"]),B(_,{modelValue:D(r),"onUpdate:modelValue":e[11]||(e[11]=t=>I(r)?r.value=t:null),title:"数据导出预览"},{default:R((()=>[B(W,{accordion:""},{default:R((()=>[B(U,{name:"1"},{title:R((()=>[B(q,{type:"primary"},{default:R((()=>[V("官方导出的数据格式")])),_:1})])),default:R((()=>[F("div",null,[B(H,{value:D(c),"expand-depth":3,copyable:""},null,8,["value"])])])),_:1}),B(U,{name:"2"},{title:R((()=>[B(q,{type:"primary"},{default:R((()=>[V("自定义导出的数据格式")])),_:1})])),default:R((()=>[F("div",null,[B(H,{value:D(u),"expand-depth":3,copyable:""},null,8,["value"])])])),_:1})])),_:1})])),_:1},8,["modelValue"]),B(_,{modelValue:D(o),"onUpdate:modelValue":e[12]||(e[12]=t=>I(o)?o.value=t:null),title:"图片导出预览"},{default:R((()=>[F("img",{src:D(d),alt:""},null,8,Ta)])),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-4594f205"]]);export{Na as default}; diff --git a/assets/AntvProblem-e82d1272.js b/assets/AntvProblem-e82d1272.js new file mode 100644 index 0000000..5036c2f --- /dev/null +++ b/assets/AntvProblem-e82d1272.js @@ -0,0 +1 @@ +import{_ as s,a,o as e,c as l,g as t,e as c,b as d,w as o,F as n,d as r,Z as u}from"./index-8c106f3c.js";const i={class:"custom-block tip"},m=s({},[["render",function(s,m){const p=a("el-button"),f=a("el-card"),g=a("el-col"),_=a("el-row");return e(),l("div",null,[t("div",i,[c(" 不同风格的插画组件库 讲不同的故事,拿来即用,与近百位插画师共创的多套精美插画组件库,像拼积木一样创造插画。近100位插画师在维护我们的插 画套件,不断新增的场景插画, 让你的项目看起来专业有趣;我们跟随潮流创造出不同风格的插画套件,丰富的场景插画和基础人物造型与元素可供下载, 满足你的日常使用。 你也可以通过插画套件提供的元素,在创作台中拼出想要的场景。"),d(p,{type:"success",link:""},{default:o((()=>[c(" --小羊丁插画 ")])),_:1})]),d(_,{gutter:24},{default:o((()=>[(e(),l(n,null,r(12,(s=>d(g,{key:s,span:6,class:"ls-item"},{default:o((()=>[d(f,{shadow:"hover",class:"card-item",style:u({background:"url(/src/assets/images/img"+s+".png)"})},null,8,["style"])])),_:2},1024))),64))])),_:1})])}],["__scopeId","data-v-d73d6b26"]]);export{m as default}; diff --git a/assets/ElementConfig-515dad6a.js b/assets/ElementConfig-515dad6a.js new file mode 100644 index 0000000..09fcd21 --- /dev/null +++ b/assets/ElementConfig-515dad6a.js @@ -0,0 +1 @@ +import{a as e,o as s,c as a,b as d,w as o,g as r}from"./index-8c106f3c.js";const l={class:"app-container"},t=r("h2",null,"表头超出配置",-1),n={__name:"ElementConfig",setup(r){const n=[{date:"2016-05-03",name:"Tom",address:"No. 189, Grove St, Los Angeles"},{date:"2016-05-02",name:"Tom",address:"No. 189, Grove St, Los Angeles"},{date:"2016-05-04",name:"Tom",address:"No. 189, Grove St, Los Angeles"},{date:"2016-05-01",name:"Tom",address:"No. 189, Grove St, Los Angeles"}];return(r,p)=>{const m=e("el-table-column"),b=e("el-table");return s(),a("div",l,[t,d(b,{data:n,style:{width:"100%"}},{default:o((()=>[d(m,{prop:"date",label:"这个是",width:"120"}),d(m,{prop:"name",label:"Name",width:"120"}),d(m,{prop:"address",label:"Address"}),d(m,{prop:"address",label:"Address"}),d(m,{prop:"address",label:"Address"}),d(m,{prop:"address",label:"Address"}),d(m,{prop:"address",label:"Address"})])),_:1})])}}};export{n as default}; diff --git a/assets/HomeView-b4da75f2.js b/assets/HomeView-b4da75f2.js new file mode 100644 index 0000000..1c6246c --- /dev/null +++ b/assets/HomeView-b4da75f2.js @@ -0,0 +1 @@ +import{_ as e,r as t,l as a,a as l,m as n,n as s,f as i,o,c as m,b as c,w as u,F as d,d as p,i as r,e as f,t as _,p as v,q as y,g as h}from"./index-8c106f3c.js";const w=[{time:"2023/06/18",content:"1、tree组件添加tooltip显示时机控制,2、图片导出优化"},{time:"2023/06/17",content:"1、画布缩放功能添加,2、画布内容居中,3、节点数据导出和自定义导出数据格式(还在优化中……),4、节点导出Png功能,5、画布清空功能6、画布历史记录功能"}],x={class:"app-container home-container"},g=(T=()=>h("h4",null,"更新内容",-1),v("data-v-5f22ccfc"),T=T(),y(),T),k={__name:"HomeView",setup(e){const v=t([]),y=t(!1);return a((()=>{y.value=!0,new Promise((e=>{e(w)})).then((e=>{setTimeout((()=>{v.value=e}),850)})).finally((()=>{setTimeout((()=>{y.value=!1}),800)}))})),(e,t)=>{const a=l("el-text"),h=l("el-card"),w=l("el-timeline-item"),k=l("el-timeline"),P=n("loading");return s((o(),m("div",x,[c(k,null,{default:u((()=>[(o(!0),m(d,null,p(i(v),((e,t)=>(o(),r(w,{key:t,timestamp:e.time,placement:"top"},{default:u((()=>[c(h,null,{default:u((()=>[g,(o(!0),m(d,null,p(e.content.split(","),((e,t)=>(o(),m("div",{key:t},[c(a,{type:"info"},{default:u((()=>[f(_(e),1)])),_:2},1024)])))),128))])),_:2},1024)])),_:2},1032,["timestamp"])))),128))])),_:1})])),[[P,i(y)]])}}},P=e(k,[["__scopeId","data-v-5f22ccfc"]]);var T;export{P as default}; diff --git a/assets/LoginView-eb17913e.js b/assets/LoginView-eb17913e.js new file mode 100644 index 0000000..c31ccab --- /dev/null +++ b/assets/LoginView-eb17913e.js @@ -0,0 +1 @@ +import{_ as a,o as n,c as r}from"./index-8c106f3c.js";const s={class:"app-container"},e=a({},[["render",function(a,e){return n(),r("div",s,"这是登录页")}]]);export{e as default}; diff --git a/assets/cssMode-621d8e2c.js b/assets/cssMode-621d8e2c.js new file mode 100644 index 0000000..b9d4710 --- /dev/null +++ b/assets/cssMode-621d8e2c.js @@ -0,0 +1,7 @@ +import{m as e}from"./index-8027a4c8.js";import"./index-8c106f3c.js"; +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o=(e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let u of r(o))i.call(e,u)||u===a||t(e,u,{get:()=>o[u],enumerable:!(s=n(o,u))||s.enumerable});return e},a={};o(a,e,"default");var s,u,c,d,g,l,h,f,p,m,v,_,w,b,k,y,E,x,C,A,I,S,R,T,D,M,P,F,L,j,O,N,U,W,V,H,K,z,X,B,$,q,Q,G,J,Y,Z,ee,te,ne=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=a.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(u=s||(s={})).MIN_VALUE=-2147483648,u.MAX_VALUE=2147483647,(d=c||(c={})).MIN_VALUE=0,d.MAX_VALUE=2147483647,(l=g||(g={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=c.MAX_VALUE),t===Number.MAX_VALUE&&(t=c.MAX_VALUE),{line:e,character:t}},l.is=function(e){var t=e;return rt.objectLiteral(t)&&rt.uinteger(t.line)&&rt.uinteger(t.character)},(f=h||(h={})).create=function(e,t,n,r){if(rt.uinteger(e)&&rt.uinteger(t)&&rt.uinteger(n)&&rt.uinteger(r))return{start:g.create(e,t),end:g.create(n,r)};if(g.is(e)&&g.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},f.is=function(e){var t=e;return rt.objectLiteral(t)&&g.is(t.start)&&g.is(t.end)},(m=p||(p={})).create=function(e,t){return{uri:e,range:t}},m.is=function(e){var t=e;return rt.defined(t)&&h.is(t.range)&&(rt.string(t.uri)||rt.undefined(t.uri))},(_=v||(v={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},_.is=function(e){var t=e;return rt.defined(t)&&h.is(t.targetRange)&&rt.string(t.targetUri)&&(h.is(t.targetSelectionRange)||rt.undefined(t.targetSelectionRange))&&(h.is(t.originSelectionRange)||rt.undefined(t.originSelectionRange))},(b=w||(w={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},b.is=function(e){var t=e;return rt.numberRange(t.red,0,1)&&rt.numberRange(t.green,0,1)&&rt.numberRange(t.blue,0,1)&&rt.numberRange(t.alpha,0,1)},(y=k||(k={})).create=function(e,t){return{range:e,color:t}},y.is=function(e){var t=e;return h.is(t.range)&&w.is(t.color)},(x=E||(E={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},x.is=function(e){var t=e;return rt.string(t.label)&&(rt.undefined(t.textEdit)||W.is(t))&&(rt.undefined(t.additionalTextEdits)||rt.typedArray(t.additionalTextEdits,W.is))},(A=C||(C={})).Comment="comment",A.Imports="imports",A.Region="region",(S=I||(I={})).create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return rt.defined(n)&&(o.startCharacter=n),rt.defined(r)&&(o.endCharacter=r),rt.defined(i)&&(o.kind=i),o},S.is=function(e){var t=e;return rt.uinteger(t.startLine)&&rt.uinteger(t.startLine)&&(rt.undefined(t.startCharacter)||rt.uinteger(t.startCharacter))&&(rt.undefined(t.endCharacter)||rt.uinteger(t.endCharacter))&&(rt.undefined(t.kind)||rt.string(t.kind))},(T=R||(R={})).create=function(e,t){return{location:e,message:t}},T.is=function(e){var t=e;return rt.defined(t)&&p.is(t.location)&&rt.string(t.message)},(M=D||(D={})).Error=1,M.Warning=2,M.Information=3,M.Hint=4,(F=P||(P={})).Unnecessary=1,F.Deprecated=2,(L||(L={})).is=function(e){var t=e;return null!=t&&rt.string(t.href)},(O=j||(j={})).create=function(e,t,n,r,i,o){var a={range:e,message:t};return rt.defined(n)&&(a.severity=n),rt.defined(r)&&(a.code=r),rt.defined(i)&&(a.source=i),rt.defined(o)&&(a.relatedInformation=o),a},O.is=function(e){var t,n=e;return rt.defined(n)&&h.is(n.range)&&rt.string(n.message)&&(rt.number(n.severity)||rt.undefined(n.severity))&&(rt.integer(n.code)||rt.string(n.code)||rt.undefined(n.code))&&(rt.undefined(n.codeDescription)||rt.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(rt.string(n.source)||rt.undefined(n.source))&&(rt.undefined(n.relatedInformation)||rt.typedArray(n.relatedInformation,R.is))},(U=N||(N={})).create=function(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i},U.is=function(e){var t=e;return rt.defined(t)&&rt.string(t.title)&&rt.string(t.command)},(V=W||(W={})).replace=function(e,t){return{range:e,newText:t}},V.insert=function(e,t){return{range:{start:e,end:e},newText:t}},V.del=function(e){return{range:e,newText:""}},V.is=function(e){var t=e;return rt.objectLiteral(t)&&rt.string(t.newText)&&h.is(t.range)},(K=H||(H={})).create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},K.is=function(e){var t=e;return void 0!==t&&rt.objectLiteral(t)&&rt.string(t.label)&&(rt.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(rt.string(t.description)||void 0===t.description)},(z||(z={})).is=function(e){return"string"==typeof e},(B=X||(X={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},B.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},B.del=function(e,t){return{range:e,newText:"",annotationId:t}},B.is=function(e){var t=e;return W.is(t)&&(H.is(t.annotationId)||z.is(t.annotationId))},(q=$||($={})).create=function(e,t){return{textDocument:e,edits:t}},q.is=function(e){var t=e;return rt.defined(t)&&se.is(t.textDocument)&&Array.isArray(t.edits)},(G=Q||(Q={})).create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},G.is=function(e){var t=e;return t&&"create"===t.kind&&rt.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||rt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||rt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||z.is(t.annotationId))},(Y=J||(J={})).create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},Y.is=function(e){var t=e;return t&&"rename"===t.kind&&rt.string(t.oldUri)&&rt.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||rt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||rt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||z.is(t.annotationId))},(ee=Z||(Z={})).create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},ee.is=function(e){var t=e;return t&&"delete"===t.kind&&rt.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||rt.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||rt.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||z.is(t.annotationId))},(te||(te={})).is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return rt.string(e.kind)?Q.is(e)||J.is(e)||Z.is(e):$.is(e)})))};var re,ie,oe,ae,se,ue,ce,de,ge,le,he,fe,pe,me,ve,_e,we,be,ke,ye,Ee,xe,Ce,Ae,Ie,Se,Re,Te,De,Me,Pe,Fe,Le,je,Oe,Ne,Ue,We,Ve,He,Ke,ze,Xe,Be,$e,qe,Qe,Ge,Je,Ye,Ze,et,tt=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=W.insert(e,t):z.is(n)?(i=n,r=X.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=X.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=W.replace(e,t):z.is(n)?(i=n,r=X.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=X.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=W.del(e):z.is(t)?(r=t,n=X.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=X.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),nt=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(z.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new nt(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if($.is(e)){var n=new tt(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new tt(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(se.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new tt(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new tt(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new nt,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(H.is(t)||z.is(t)?r=t:n=t,void 0===r?i=Q.create(e,n):(o=z.is(r)?r:this._changeAnnotations.manage(r),i=Q.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(H.is(n)||z.is(n)?i=n:r=n,void 0===i?o=J.create(e,t,r):(a=z.is(i)?i:this._changeAnnotations.manage(i),o=J.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(H.is(t)||z.is(t)?r=t:n=t,void 0===r?i=Z.create(e,n):(o=z.is(r)?r:this._changeAnnotations.manage(r),i=Z.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),(ie=re||(re={})).create=function(e){return{uri:e}},ie.is=function(e){var t=e;return rt.defined(t)&&rt.string(t.uri)},(ae=oe||(oe={})).create=function(e,t){return{uri:e,version:t}},ae.is=function(e){var t=e;return rt.defined(t)&&rt.string(t.uri)&&rt.integer(t.version)},(ue=se||(se={})).create=function(e,t){return{uri:e,version:t}},ue.is=function(e){var t=e;return rt.defined(t)&&rt.string(t.uri)&&(null===t.version||rt.integer(t.version))},(de=ce||(ce={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},de.is=function(e){var t=e;return rt.defined(t)&&rt.string(t.uri)&&rt.string(t.languageId)&&rt.integer(t.version)&&rt.string(t.text)},(le=ge||(ge={})).PlainText="plaintext",le.Markdown="markdown",(et=ge||(ge={})).is=function(e){var t=e;return t===et.PlainText||t===et.Markdown},(he||(he={})).is=function(e){var t=e;return rt.objectLiteral(e)&&ge.is(t.kind)&&rt.string(t.value)},(pe=fe||(fe={})).Text=1,pe.Method=2,pe.Function=3,pe.Constructor=4,pe.Field=5,pe.Variable=6,pe.Class=7,pe.Interface=8,pe.Module=9,pe.Property=10,pe.Unit=11,pe.Value=12,pe.Enum=13,pe.Keyword=14,pe.Snippet=15,pe.Color=16,pe.File=17,pe.Reference=18,pe.Folder=19,pe.EnumMember=20,pe.Constant=21,pe.Struct=22,pe.Event=23,pe.Operator=24,pe.TypeParameter=25,(ve=me||(me={})).PlainText=1,ve.Snippet=2,(_e||(_e={})).Deprecated=1,(be=we||(we={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},be.is=function(e){var t=e;return t&&rt.string(t.newText)&&h.is(t.insert)&&h.is(t.replace)},(ye=ke||(ke={})).asIs=1,ye.adjustIndentation=2,(Ee||(Ee={})).create=function(e){return{label:e}},(xe||(xe={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Ae=Ce||(Ce={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Ae.is=function(e){var t=e;return rt.string(t)||rt.objectLiteral(t)&&rt.string(t.language)&&rt.string(t.value)},(Ie||(Ie={})).is=function(e){var t=e;return!!t&&rt.objectLiteral(t)&&(he.is(t.contents)||Ce.is(t.contents)||rt.typedArray(t.contents,Ce.is))&&(void 0===e.range||h.is(e.range))},(Se||(Se={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Re||(Re={})).create=function(e,t){for(var n=[],r=2;r=0;a--){var s=i[a],u=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");r=r.substring(0,u)+s.newText+r.substring(c,r.length),o=u}return r}}(Ze||(Ze={}));var rt,it,ot,at=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return g.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return g.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{a.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(a.editor.onDidCreateModel(r)),this._disposables.push(a.editor.onWillDisposeModel(i)),this._disposables.push(a.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{a.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{a.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),a.editor.getModels().forEach(r)}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"==typeof t.code?String(t.code):t.code;return{severity:ut(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=a.editor.getModel(e);i&&i.getLanguageId()===t&&a.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{}))}};function ut(e){switch(e){case D.Error:return a.MarkerSeverity.Error;case D.Warning:return a.MarkerSeverity.Warning;case D.Information:return a.MarkerSeverity.Info;case D.Hint:return a.MarkerSeverity.Hint;default:return a.MarkerSeverity.Info}}var ct=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),dt(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new a.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:ht(e.kind)};var n,r;return e.textEdit&&(void 0!==(r=e.textEdit).insert&&void 0!==r.replace?t.range={insert:lt(e.textEdit.insert),replace:lt(e.textEdit.replace)}:t.range=lt(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(ft)),e.insertTextFormat===me.Snippet&&(t.insertTextRules=a.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function dt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function gt(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function lt(e){if(e)return new a.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function ht(e){const t=a.languages.CompletionItemKind;switch(e){case fe.Text:return t.Text;case fe.Method:return t.Method;case fe.Function:return t.Function;case fe.Constructor:return t.Constructor;case fe.Field:return t.Field;case fe.Variable:return t.Variable;case fe.Class:return t.Class;case fe.Interface:return t.Interface;case fe.Module:return t.Module;case fe.Property:return t.Property;case fe.Unit:return t.Unit;case fe.Value:return t.Value;case fe.Enum:return t.Enum;case fe.Keyword:return t.Keyword;case fe.Snippet:return t.Snippet;case fe.Color:return t.Color;case fe.File:return t.File;case fe.Reference:return t.Reference}return t.Property}function ft(e){if(e)return{range:lt(e.range),text:e.newText}}var pt=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),dt(t)))).then((e=>{if(e)return{range:lt(e.range),contents:vt(e.contents)}}))}};function mt(e){return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function vt(e){if(e)return Array.isArray(e)?e.map(mt):[mt(e)]}var _t=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),dt(t)))).then((e=>{if(e)return e.map((e=>({range:lt(e.range),kind:wt(e.kind)})))}))}};function wt(e){switch(e){case Te.Read:return a.languages.DocumentHighlightKind.Read;case Te.Write:return a.languages.DocumentHighlightKind.Write;case Te.Text:return a.languages.DocumentHighlightKind.Text}return a.languages.DocumentHighlightKind.Text}var bt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),dt(t)))).then((e=>{if(e)return[kt(e)]}))}};function kt(e){return{uri:a.Uri.parse(e.uri),range:lt(e.range)}}var yt=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),dt(t)))).then((e=>{if(e)return e.map(kt)}))}},Et=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),dt(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=a.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:lt(i.range),text:i.newText}})}return{edits:t}}(e)))}},xt=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>"children"in e?Ct(e):{name:e.name,detail:"",containerName:e.containerName,kind:At(e.kind),range:lt(e.location.range),selectionRange:lt(e.location.range),tags:[]}))}))}};function Ct(e){return{name:e.name,detail:e.detail??"",kind:At(e.kind),range:lt(e.range),selectionRange:lt(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map((e=>Ct(e)))}}function At(e){let t=a.languages.SymbolKind;switch(e){case Pe.File:return t.File;case Pe.Module:return t.Module;case Pe.Namespace:return t.Namespace;case Pe.Package:return t.Package;case Pe.Class:return t.Class;case Pe.Method:return t.Method;case Pe.Property:return t.Property;case Pe.Field:return t.Field;case Pe.Constructor:return t.Constructor;case Pe.Enum:return t.Enum;case Pe.Interface:return t.Interface;case Pe.Function:return t.Function;case Pe.Variable:return t.Variable;case Pe.Constant:return t.Constant;case Pe.String:return t.String;case Pe.Number:return t.Number;case Pe.Boolean:return t.Boolean;case Pe.Array:return t.Array}return t.Function}var It=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:lt(e.range),url:e.target})))}}))}},St=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,Tt(t)).then((e=>{if(e&&0!==e.length)return e.map(ft)}))))}},Rt=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),gt(t),Tt(n)).then((e=>{if(e&&0!==e.length)return e.map(ft)}))))}};function Tt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Dt=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:lt(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,gt(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=ft(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(ft)),t}))}))}},Mt=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case C.Comment:return a.languages.FoldingRangeKind.Comment;case C.Imports:return a.languages.FoldingRangeKind.Imports;case C.Region:return a.languages.FoldingRangeKind.Region}}(e.kind)),t}))}))}},Pt=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(dt)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:lt(e.range)}),e=e.parent;return t}))}))}};function Ft(e){const t=[],n=[],r=new ne(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:r}=e;jt(n),r.completionItems&&n.push(a.languages.registerCompletionItemProvider(t,new ct(i,["/","-",":"]))),r.hovers&&n.push(a.languages.registerHoverProvider(t,new pt(i))),r.documentHighlights&&n.push(a.languages.registerDocumentHighlightProvider(t,new _t(i))),r.definitions&&n.push(a.languages.registerDefinitionProvider(t,new bt(i))),r.references&&n.push(a.languages.registerReferenceProvider(t,new yt(i))),r.documentSymbols&&n.push(a.languages.registerDocumentSymbolProvider(t,new xt(i))),r.rename&&n.push(a.languages.registerRenameProvider(t,new Et(i))),r.colors&&n.push(a.languages.registerColorProvider(t,new Dt(i))),r.foldingRanges&&n.push(a.languages.registerFoldingRangeProvider(t,new Mt(i))),r.diagnostics&&n.push(new st(t,i,e.onDidChange)),r.selectionRanges&&n.push(a.languages.registerSelectionRangeProvider(t,new Pt(i))),r.documentFormattingEdits&&n.push(a.languages.registerDocumentFormattingEditProvider(t,new St(i))),r.documentRangeFormattingEdits&&n.push(a.languages.registerDocumentRangeFormattingEditProvider(t,new Rt(i)))}(),t.push(Lt(n)),Lt(t)}function Lt(e){return{dispose:()=>jt(e)}}function jt(e){for(;e.length;)e.pop().dispose()}export{ct as CompletionAdapter,bt as DefinitionAdapter,st as DiagnosticsAdapter,Dt as DocumentColorAdapter,St as DocumentFormattingEditProvider,_t as DocumentHighlightAdapter,It as DocumentLinkAdapter,Rt as DocumentRangeFormattingEditProvider,xt as DocumentSymbolAdapter,Mt as FoldingRangeAdapter,pt as HoverAdapter,yt as ReferenceAdapter,Et as RenameAdapter,Pt as SelectionRangeAdapter,ne as WorkerManager,dt as fromPosition,gt as fromRange,Ft as setupMode,lt as toRange,ft as toTextEdit}; diff --git a/assets/freemarker2-ee95ffdf.js b/assets/freemarker2-ee95ffdf.js new file mode 100644 index 0000000..db391c0 --- /dev/null +++ b/assets/freemarker2-ee95ffdf.js @@ -0,0 +1,7 @@ +import{m as e}from"./index-8027a4c8.js";import"./index-8c106f3c.js"; +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,_=(e,_,r,a)=>{if(_&&"object"==typeof _||"function"==typeof _)for(let s of o(_))i.call(e,s)||s===r||t(e,s,{get:()=>_[s],enumerable:!(a=n(_,s))||a.enumerable});return e},r={};_(r,e,"default");var a=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],s=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],u={close:">",id:"angle",open:"<"},c={close:"\\]",id:"bracket",open:"\\["},d={close:"[>\\]]",id:"auto",open:"[<\\[]"},l={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},k={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function p(e){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${e.open}--`,`--${e.close}`]},autoCloseBefore:"\n\r\t }]),.:;=",autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${e.open}#(?:${s.join("|")})([^/${e.close}]*(?!/)${e.close})[^${e.open}]*$`),end:new RegExp(`${e.open}/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${e.open}#(?!(?:${a.join("|")}))([a-zA-Z_]+)([^/${e.close}]*(?!/)${e.close})[^${e.open}]*$`),afterText:new RegExp(`^${e.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${e.close}$`),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${e.open}#(?!(?:${a.join("|")}))([a-zA-Z_]+)([^/${e.close}]*(?!/)${e.close})[^${e.open}]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function g(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:"\n\r\t }]),.:;=",autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${s.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${a.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${a.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function A(e,t){const n=`_${e.id}_${t.id}`,o=e=>e.replace(/__id__/g,n),i=e=>{const t=e.source.replace(/__id__/g,n);return new RegExp(t,e.flags)};return{unicode:!0,includeLF:!1,start:o("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[o("open__id__")]:new RegExp(e.open),[o("close__id__")]:new RegExp(e.close),[o("iOpen1__id__")]:new RegExp(t.open1),[o("iOpen2__id__")]:new RegExp(t.open2),[o("iClose__id__")]:new RegExp(t.close),[o("startTag__id__")]:i(/(@open__id__)(#)/),[o("endTag__id__")]:i(/(@open__id__)(\/#)/),[o("startOrEndTag__id__")]:i(/(@open__id__)(\/?#)/),[o("closeTag1__id__")]:i(/((?:@blank)*)(@close__id__)/),[o("closeTag2__id__")]:i(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[o("default__id__")]:[{include:o("@directive_token__id__")},{include:o("@interpolation_and_text_token__id__")}],[o("fmExpression__id__.directive")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("fmExpression__id__.interpolation")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@expression_token__id__")},{include:o("@greater_operators_token__id__")}],[o("inParen__id__.plain")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("inParen__id__.gt")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@expression_token__id__")},{include:o("@greater_operators_token__id__")}],[o("noSpaceExpression__id__")]:[{include:o("@no_space_expression_end_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("unifiedCall__id__")]:[{include:o("@unified_call_token__id__")}],[o("singleString__id__")]:[{include:o("@string_single_token__id__")}],[o("doubleString__id__")]:[{include:o("@string_double_token__id__")}],[o("rawSingleString__id__")]:[{include:o("@string_single_raw_token__id__")}],[o("rawDoubleString__id__")]:[{include:o("@string_double_raw_token__id__")}],[o("expressionComment__id__")]:[{include:o("@expression_comment_token__id__")}],[o("noParse__id__")]:[{include:o("@no_parse_token__id__")}],[o("terseComment__id__")]:[{include:o("@terse_comment_token__id__")}],[o("directive_token__id__")]:[[i(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:o("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:o("@fmExpression__id__.directive")}]],[i(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(@open__id__)(@)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:o("@unifiedCall__id__")}]],[i(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(@open__id__)#--/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:{token:"comment",next:o("@terseComment__id__")}],[i(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:o("@fmExpression__id__.directive")}]]],[o("interpolation_and_text_token__id__")]:[[i(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:"bracket"===t.id?"@brackets.interpolation":"delimiter.interpolation"},{token:"bracket"===t.id?"delimiter.interpolation":"@brackets.interpolation",next:o("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[o("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[o("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[o("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[o("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[o("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:o("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:o("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:o("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:o("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:o("@inParen__id__.gt")},"@default":{token:"@brackets",next:o("@inParen__id__.plain")}}},"\\]":{cases:{..."bracket"===t.id?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},..."bracket"===e.id?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:o("@inParen__id__.gt")},"\\)":{cases:{[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:o("@inParen__id__.gt")},"@default":{token:"@brackets",next:o("@inParen__id__.plain")}}},"\\}":{cases:{..."bracket"===t.id?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[o("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:o("@expressionComment__id__")}]],[o("directive_end_token__id__")]:[[/>/,"bracket"===e.id?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[i(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[o("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[o("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:o("@fmExpression__id__.directive")}]],[o("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:o("@fmExpression__id__.directive")}]],[i(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:o("@noSpaceExpression__id__")}]],[o("no_parse_token__id__")]:[[i(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[o("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[o("terse_comment_token__id__")]:[[i(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function m(e){const t=A(u,e),n=A(c,e),o=A(d,e);return{...t,...n,...o,unicode:!0,includeLF:!1,start:`default_auto_${e.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...t.tokenizer,...n.tokenizer,...o.tokenizer}}}var f={conf:p(u),language:A(u,l)},F={conf:p(c),language:A(c,l)},b={conf:p(u),language:A(u,k)},x={conf:p(c),language:A(c,k)},$={conf:g(),language:m(l)},D={conf:g(),language:m(k)};export{b as TagAngleInterpolationBracket,f as TagAngleInterpolationDollar,D as TagAutoInterpolationBracket,$ as TagAutoInterpolationDollar,x as TagBracketInterpolationBracket,F as TagBracketInterpolationDollar}; diff --git a/assets/handlebars-19f7ba3c.js b/assets/handlebars-19f7ba3c.js new file mode 100644 index 0000000..2bd5c81 --- /dev/null +++ b/assets/handlebars-19f7ba3c.js @@ -0,0 +1,7 @@ +import{m as e}from"./index-8027a4c8.js";import"./index-8c106f3c.js"; +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,m=(e,m,l,i)=>{if(m&&"object"==typeof m||"function"==typeof m)for(let o of a(m))r.call(e,o)||o===l||t(e,o,{get:()=>m[o],enumerable:!(i=n(m,o))||i.enumerable});return e},l={};m(l,e,"default");var i=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${i.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:l.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${i.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:l.languages.IndentAction.Indent}}]},s={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{o as conf,s as language}; diff --git a/assets/html-8f178da2.js b/assets/html-8f178da2.js new file mode 100644 index 0000000..07d68e1 --- /dev/null +++ b/assets/html-8f178da2.js @@ -0,0 +1,7 @@ +import{m as e}from"./index-8027a4c8.js";import"./index-8c106f3c.js"; +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,o=(e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let d of i(o))r.call(e,d)||d===a||t(e,d,{get:()=>o[d],enumerable:!(s=n(o,d))||s.enumerable});return e},a={};o(a,e,"default");var s=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],d={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${s.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${s.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#endregion\\b.*--\x3e")}}},m={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{d as conf,m as language}; diff --git a/assets/htmlMode-84f22c63.js b/assets/htmlMode-84f22c63.js new file mode 100644 index 0000000..c584030 --- /dev/null +++ b/assets/htmlMode-84f22c63.js @@ -0,0 +1,7 @@ +import{m as e}from"./index-8027a4c8.js";import"./index-8c106f3c.js"; +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o=(e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let u of r(o))i.call(e,u)||u===a||t(e,u,{get:()=>o[u],enumerable:!(s=n(o,u))||s.enumerable});return e},a={};o(a,e,"default");var s,u,c,d,g,l,h,f,p,m,v,_,w,k,b,y,E,x,C,I,A,S,R,T,D,P,M,F,L,j,O,N,U,W,V,H,K,z,X,B,$,q,Q,G,J,Y,Z,ee,te,ne=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=a.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(u=s||(s={})).MIN_VALUE=-2147483648,u.MAX_VALUE=2147483647,(d=c||(c={})).MIN_VALUE=0,d.MAX_VALUE=2147483647,(l=g||(g={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=c.MAX_VALUE),t===Number.MAX_VALUE&&(t=c.MAX_VALUE),{line:e,character:t}},l.is=function(e){var t=e;return rt.objectLiteral(t)&&rt.uinteger(t.line)&&rt.uinteger(t.character)},(f=h||(h={})).create=function(e,t,n,r){if(rt.uinteger(e)&&rt.uinteger(t)&&rt.uinteger(n)&&rt.uinteger(r))return{start:g.create(e,t),end:g.create(n,r)};if(g.is(e)&&g.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},f.is=function(e){var t=e;return rt.objectLiteral(t)&&g.is(t.start)&&g.is(t.end)},(m=p||(p={})).create=function(e,t){return{uri:e,range:t}},m.is=function(e){var t=e;return rt.defined(t)&&h.is(t.range)&&(rt.string(t.uri)||rt.undefined(t.uri))},(_=v||(v={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},_.is=function(e){var t=e;return rt.defined(t)&&h.is(t.targetRange)&&rt.string(t.targetUri)&&(h.is(t.targetSelectionRange)||rt.undefined(t.targetSelectionRange))&&(h.is(t.originSelectionRange)||rt.undefined(t.originSelectionRange))},(k=w||(w={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},k.is=function(e){var t=e;return rt.numberRange(t.red,0,1)&&rt.numberRange(t.green,0,1)&&rt.numberRange(t.blue,0,1)&&rt.numberRange(t.alpha,0,1)},(y=b||(b={})).create=function(e,t){return{range:e,color:t}},y.is=function(e){var t=e;return h.is(t.range)&&w.is(t.color)},(x=E||(E={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},x.is=function(e){var t=e;return rt.string(t.label)&&(rt.undefined(t.textEdit)||W.is(t))&&(rt.undefined(t.additionalTextEdits)||rt.typedArray(t.additionalTextEdits,W.is))},(I=C||(C={})).Comment="comment",I.Imports="imports",I.Region="region",(S=A||(A={})).create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return rt.defined(n)&&(o.startCharacter=n),rt.defined(r)&&(o.endCharacter=r),rt.defined(i)&&(o.kind=i),o},S.is=function(e){var t=e;return rt.uinteger(t.startLine)&&rt.uinteger(t.startLine)&&(rt.undefined(t.startCharacter)||rt.uinteger(t.startCharacter))&&(rt.undefined(t.endCharacter)||rt.uinteger(t.endCharacter))&&(rt.undefined(t.kind)||rt.string(t.kind))},(T=R||(R={})).create=function(e,t){return{location:e,message:t}},T.is=function(e){var t=e;return rt.defined(t)&&p.is(t.location)&&rt.string(t.message)},(P=D||(D={})).Error=1,P.Warning=2,P.Information=3,P.Hint=4,(F=M||(M={})).Unnecessary=1,F.Deprecated=2,(L||(L={})).is=function(e){var t=e;return null!=t&&rt.string(t.href)},(O=j||(j={})).create=function(e,t,n,r,i,o){var a={range:e,message:t};return rt.defined(n)&&(a.severity=n),rt.defined(r)&&(a.code=r),rt.defined(i)&&(a.source=i),rt.defined(o)&&(a.relatedInformation=o),a},O.is=function(e){var t,n=e;return rt.defined(n)&&h.is(n.range)&&rt.string(n.message)&&(rt.number(n.severity)||rt.undefined(n.severity))&&(rt.integer(n.code)||rt.string(n.code)||rt.undefined(n.code))&&(rt.undefined(n.codeDescription)||rt.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(rt.string(n.source)||rt.undefined(n.source))&&(rt.undefined(n.relatedInformation)||rt.typedArray(n.relatedInformation,R.is))},(U=N||(N={})).create=function(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i},U.is=function(e){var t=e;return rt.defined(t)&&rt.string(t.title)&&rt.string(t.command)},(V=W||(W={})).replace=function(e,t){return{range:e,newText:t}},V.insert=function(e,t){return{range:{start:e,end:e},newText:t}},V.del=function(e){return{range:e,newText:""}},V.is=function(e){var t=e;return rt.objectLiteral(t)&&rt.string(t.newText)&&h.is(t.range)},(K=H||(H={})).create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},K.is=function(e){var t=e;return void 0!==t&&rt.objectLiteral(t)&&rt.string(t.label)&&(rt.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(rt.string(t.description)||void 0===t.description)},(z||(z={})).is=function(e){return"string"==typeof e},(B=X||(X={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},B.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},B.del=function(e,t){return{range:e,newText:"",annotationId:t}},B.is=function(e){var t=e;return W.is(t)&&(H.is(t.annotationId)||z.is(t.annotationId))},(q=$||($={})).create=function(e,t){return{textDocument:e,edits:t}},q.is=function(e){var t=e;return rt.defined(t)&&se.is(t.textDocument)&&Array.isArray(t.edits)},(G=Q||(Q={})).create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},G.is=function(e){var t=e;return t&&"create"===t.kind&&rt.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||rt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||rt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||z.is(t.annotationId))},(Y=J||(J={})).create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},Y.is=function(e){var t=e;return t&&"rename"===t.kind&&rt.string(t.oldUri)&&rt.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||rt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||rt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||z.is(t.annotationId))},(ee=Z||(Z={})).create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},ee.is=function(e){var t=e;return t&&"delete"===t.kind&&rt.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||rt.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||rt.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||z.is(t.annotationId))},(te||(te={})).is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return rt.string(e.kind)?Q.is(e)||J.is(e)||Z.is(e):$.is(e)})))};var re,ie,oe,ae,se,ue,ce,de,ge,le,he,fe,pe,me,ve,_e,we,ke,be,ye,Ee,xe,Ce,Ie,Ae,Se,Re,Te,De,Pe,Me,Fe,Le,je,Oe,Ne,Ue,We,Ve,He,Ke,ze,Xe,Be,$e,qe,Qe,Ge,Je,Ye,Ze,et,tt=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=W.insert(e,t):z.is(n)?(i=n,r=X.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=X.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=W.replace(e,t):z.is(n)?(i=n,r=X.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=X.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=W.del(e):z.is(t)?(r=t,n=X.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=X.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),nt=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(z.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new nt(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if($.is(e)){var n=new tt(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new tt(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(se.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new tt(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new tt(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new nt,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(H.is(t)||z.is(t)?r=t:n=t,void 0===r?i=Q.create(e,n):(o=z.is(r)?r:this._changeAnnotations.manage(r),i=Q.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(H.is(n)||z.is(n)?i=n:r=n,void 0===i?o=J.create(e,t,r):(a=z.is(i)?i:this._changeAnnotations.manage(i),o=J.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(H.is(t)||z.is(t)?r=t:n=t,void 0===r?i=Z.create(e,n):(o=z.is(r)?r:this._changeAnnotations.manage(r),i=Z.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),(ie=re||(re={})).create=function(e){return{uri:e}},ie.is=function(e){var t=e;return rt.defined(t)&&rt.string(t.uri)},(ae=oe||(oe={})).create=function(e,t){return{uri:e,version:t}},ae.is=function(e){var t=e;return rt.defined(t)&&rt.string(t.uri)&&rt.integer(t.version)},(ue=se||(se={})).create=function(e,t){return{uri:e,version:t}},ue.is=function(e){var t=e;return rt.defined(t)&&rt.string(t.uri)&&(null===t.version||rt.integer(t.version))},(de=ce||(ce={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},de.is=function(e){var t=e;return rt.defined(t)&&rt.string(t.uri)&&rt.string(t.languageId)&&rt.integer(t.version)&&rt.string(t.text)},(le=ge||(ge={})).PlainText="plaintext",le.Markdown="markdown",(et=ge||(ge={})).is=function(e){var t=e;return t===et.PlainText||t===et.Markdown},(he||(he={})).is=function(e){var t=e;return rt.objectLiteral(e)&&ge.is(t.kind)&&rt.string(t.value)},(pe=fe||(fe={})).Text=1,pe.Method=2,pe.Function=3,pe.Constructor=4,pe.Field=5,pe.Variable=6,pe.Class=7,pe.Interface=8,pe.Module=9,pe.Property=10,pe.Unit=11,pe.Value=12,pe.Enum=13,pe.Keyword=14,pe.Snippet=15,pe.Color=16,pe.File=17,pe.Reference=18,pe.Folder=19,pe.EnumMember=20,pe.Constant=21,pe.Struct=22,pe.Event=23,pe.Operator=24,pe.TypeParameter=25,(ve=me||(me={})).PlainText=1,ve.Snippet=2,(_e||(_e={})).Deprecated=1,(ke=we||(we={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},ke.is=function(e){var t=e;return t&&rt.string(t.newText)&&h.is(t.insert)&&h.is(t.replace)},(ye=be||(be={})).asIs=1,ye.adjustIndentation=2,(Ee||(Ee={})).create=function(e){return{label:e}},(xe||(xe={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Ie=Ce||(Ce={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Ie.is=function(e){var t=e;return rt.string(t)||rt.objectLiteral(t)&&rt.string(t.language)&&rt.string(t.value)},(Ae||(Ae={})).is=function(e){var t=e;return!!t&&rt.objectLiteral(t)&&(he.is(t.contents)||Ce.is(t.contents)||rt.typedArray(t.contents,Ce.is))&&(void 0===e.range||h.is(e.range))},(Se||(Se={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Re||(Re={})).create=function(e,t){for(var n=[],r=2;r=0;a--){var s=i[a],u=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");r=r.substring(0,u)+s.newText+r.substring(c,r.length),o=u}return r}}(Ze||(Ze={}));var rt,it,ot,at=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return g.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return g.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{a.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(a.editor.onDidCreateModel(r)),this._disposables.push(a.editor.onWillDisposeModel(i)),this._disposables.push(a.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{a.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{a.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),a.editor.getModels().forEach(r)}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"==typeof t.code?String(t.code):t.code;return{severity:ut(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=a.editor.getModel(e);i&&i.getLanguageId()===t&&a.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{}))}};function ut(e){switch(e){case D.Error:return a.MarkerSeverity.Error;case D.Warning:return a.MarkerSeverity.Warning;case D.Information:return a.MarkerSeverity.Info;case D.Hint:return a.MarkerSeverity.Hint;default:return a.MarkerSeverity.Info}}var ct=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),dt(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new a.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:ht(e.kind)};var n,r;return e.textEdit&&(void 0!==(r=e.textEdit).insert&&void 0!==r.replace?t.range={insert:lt(e.textEdit.insert),replace:lt(e.textEdit.replace)}:t.range=lt(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(ft)),e.insertTextFormat===me.Snippet&&(t.insertTextRules=a.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function dt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function gt(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function lt(e){if(e)return new a.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function ht(e){const t=a.languages.CompletionItemKind;switch(e){case fe.Text:return t.Text;case fe.Method:return t.Method;case fe.Function:return t.Function;case fe.Constructor:return t.Constructor;case fe.Field:return t.Field;case fe.Variable:return t.Variable;case fe.Class:return t.Class;case fe.Interface:return t.Interface;case fe.Module:return t.Module;case fe.Property:return t.Property;case fe.Unit:return t.Unit;case fe.Value:return t.Value;case fe.Enum:return t.Enum;case fe.Keyword:return t.Keyword;case fe.Snippet:return t.Snippet;case fe.Color:return t.Color;case fe.File:return t.File;case fe.Reference:return t.Reference}return t.Property}function ft(e){if(e)return{range:lt(e.range),text:e.newText}}var pt=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),dt(t)))).then((e=>{if(e)return{range:lt(e.range),contents:vt(e.contents)}}))}};function mt(e){return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function vt(e){if(e)return Array.isArray(e)?e.map(mt):[mt(e)]}var _t=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),dt(t)))).then((e=>{if(e)return e.map((e=>({range:lt(e.range),kind:wt(e.kind)})))}))}};function wt(e){switch(e){case Te.Read:return a.languages.DocumentHighlightKind.Read;case Te.Write:return a.languages.DocumentHighlightKind.Write;case Te.Text:return a.languages.DocumentHighlightKind.Text}return a.languages.DocumentHighlightKind.Text}var kt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),dt(t)))).then((e=>{if(e)return[bt(e)]}))}};function bt(e){return{uri:a.Uri.parse(e.uri),range:lt(e.range)}}var yt=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),dt(t)))).then((e=>{if(e)return e.map(bt)}))}},Et=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),dt(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=a.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:lt(i.range),text:i.newText}})}return{edits:t}}(e)))}},xt=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>"children"in e?Ct(e):{name:e.name,detail:"",containerName:e.containerName,kind:It(e.kind),range:lt(e.location.range),selectionRange:lt(e.location.range),tags:[]}))}))}};function Ct(e){return{name:e.name,detail:e.detail??"",kind:It(e.kind),range:lt(e.range),selectionRange:lt(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map((e=>Ct(e)))}}function It(e){let t=a.languages.SymbolKind;switch(e){case Me.File:return t.File;case Me.Module:return t.Module;case Me.Namespace:return t.Namespace;case Me.Package:return t.Package;case Me.Class:return t.Class;case Me.Method:return t.Method;case Me.Property:return t.Property;case Me.Field:return t.Field;case Me.Constructor:return t.Constructor;case Me.Enum:return t.Enum;case Me.Interface:return t.Interface;case Me.Function:return t.Function;case Me.Variable:return t.Variable;case Me.Constant:return t.Constant;case Me.String:return t.String;case Me.Number:return t.Number;case Me.Boolean:return t.Boolean;case Me.Array:return t.Array}return t.Function}var At=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:lt(e.range),url:e.target})))}}))}},St=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,Tt(t)).then((e=>{if(e&&0!==e.length)return e.map(ft)}))))}},Rt=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),gt(t),Tt(n)).then((e=>{if(e&&0!==e.length)return e.map(ft)}))))}};function Tt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Dt=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:lt(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,gt(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=ft(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(ft)),t}))}))}},Pt=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case C.Comment:return a.languages.FoldingRangeKind.Comment;case C.Imports:return a.languages.FoldingRangeKind.Imports;case C.Region:return a.languages.FoldingRangeKind.Region}}(e.kind)),t}))}))}},Mt=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(dt)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:lt(e.range)}),e=e.parent;return t}))}))}},Ft=class extends ct{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function Lt(e){const t=new ne(e),n=(...e)=>t.getLanguageServiceWorker(...e);let r=e.languageId;a.languages.registerCompletionItemProvider(r,new Ft(n)),a.languages.registerHoverProvider(r,new pt(n)),a.languages.registerDocumentHighlightProvider(r,new _t(n)),a.languages.registerLinkProvider(r,new At(n)),a.languages.registerFoldingRangeProvider(r,new Pt(n)),a.languages.registerDocumentSymbolProvider(r,new xt(n)),a.languages.registerSelectionRangeProvider(r,new Mt(n)),a.languages.registerRenameProvider(r,new Et(n)),"html"===r&&(a.languages.registerDocumentFormattingEditProvider(r,new St(n)),a.languages.registerDocumentRangeFormattingEditProvider(r,new Rt(n)))}function jt(e){const t=[],n=[],r=new ne(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:r}=e;Nt(n),r.completionItems&&n.push(a.languages.registerCompletionItemProvider(t,new Ft(i))),r.hovers&&n.push(a.languages.registerHoverProvider(t,new pt(i))),r.documentHighlights&&n.push(a.languages.registerDocumentHighlightProvider(t,new _t(i))),r.links&&n.push(a.languages.registerLinkProvider(t,new At(i))),r.documentSymbols&&n.push(a.languages.registerDocumentSymbolProvider(t,new xt(i))),r.rename&&n.push(a.languages.registerRenameProvider(t,new Et(i))),r.foldingRanges&&n.push(a.languages.registerFoldingRangeProvider(t,new Pt(i))),r.selectionRanges&&n.push(a.languages.registerSelectionRangeProvider(t,new Mt(i))),r.documentFormattingEdits&&n.push(a.languages.registerDocumentFormattingEditProvider(t,new St(i))),r.documentRangeFormattingEdits&&n.push(a.languages.registerDocumentRangeFormattingEditProvider(t,new Rt(i)))}(),t.push(Ot(n)),Ot(t)}function Ot(e){return{dispose:()=>Nt(e)}}function Nt(e){for(;e.length;)e.pop().dispose()}export{ct as CompletionAdapter,kt as DefinitionAdapter,st as DiagnosticsAdapter,Dt as DocumentColorAdapter,St as DocumentFormattingEditProvider,_t as DocumentHighlightAdapter,At as DocumentLinkAdapter,Rt as DocumentRangeFormattingEditProvider,xt as DocumentSymbolAdapter,Pt as FoldingRangeAdapter,pt as HoverAdapter,yt as ReferenceAdapter,Et as RenameAdapter,Mt as SelectionRangeAdapter,ne as WorkerManager,dt as fromPosition,gt as fromRange,jt as setupMode,Lt as setupMode1,lt as toRange,ft as toTextEdit}; diff --git a/assets/index-8027a4c8.js b/assets/index-8027a4c8.js new file mode 100644 index 0000000..2aa7aa5 --- /dev/null +++ b/assets/index-8027a4c8.js @@ -0,0 +1,36 @@ +import{$ as e,a0 as t,a1 as i,a2 as n,r as o,l as s,a3 as r,o as a,c as l,g as c,Z as d,f as h,b as u,a4 as g,a as m,w as p,e as f}from"./index-8c106f3c.js";function _(e,t=0){return e[e.length-(1+t)]}function b(e,t,i=((e,t)=>e===t)){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0,o=e.length;n0))return e;n=e-1}}return-(i+1)}(e.length,(n=>i(e[n],t)))}function S(e,t,i){if((e|=0)>=t.length)throw new TypeError("invalid index");const n=t[Math.floor(t.length*Math.random())],o=[],s=[],r=[];for(const a of t){const e=i(a,n);e<0?o.push(a):e>0?s.push(a):r.push(a)}return e!!e))}function y(e){let t=0;for(let i=0;i0}function I(e,t=(e=>e)){const i=new Set;return e.filter((e=>{const n=t(e);return!i.has(n)&&(i.add(n),!0)}))}function A(e,t){return e.length>0?e[0]:t}function N(e,t){let i="number"==typeof t?e:0;"number"==typeof t?i=e:(i=0,t=e);const n=[];if(i<=t)for(let o=i;ot;o--)n.push(o);return n}function k(e,t,i){const n=e.slice(0,t),o=e.slice(t);return n.concat(i,o)}function D(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function O(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function x(e,t){for(const i of t)e.push(i)}function M(e){return Array.isArray(e)?e:[e]}function P(e,t,i,n){const o=F(e,t);let s=e.splice(o,i);return void 0===s&&(s=[]),function(e,t,i){const n=F(e,t),o=e.length,s=i.length;e.length=o+s;for(let r=o-1;r>=n;r--)e[r+s]=e[r];for(let r=0;rt(e(i),e(n))}(H=B||(B={})).isLessThan=function(e){return e<0},H.isLessThanOrEqual=function(e){return e<=0},H.isGreaterThan=function(e){return e>0},H.isNeitherLessOrGreaterThan=function(e){return 0===e},H.greaterThan=1,H.lessThan=-1,H.neitherLessOrGreaterThan=0;const U=(e,t)=>e-t,V=(e,t)=>U(e?1:0,t?1:0);function G(e){return(t,i)=>-e(t,i)}class z{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 t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class K{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new K((t=>this.iterate((i=>!e(i)||t(i)))))}map(e){return new K((t=>this.iterate((i=>t(e(i))))))}findLast(e){let t;return this.iterate((i=>(e(i)&&(t=i),!0))),t}findLastMaxBy(e){let t,i=!0;return this.iterate((n=>((i||B.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0))),t}}K.empty=new K((e=>{}));class Y{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort(((i,n)=>t(e[i],e[n])));return new Y(i)}apply(e){return e.map(((t,i)=>e[this._indexMap[i]]))}inverse(){const e=this._indexMap.slice();for(let t=0;t{t[e]=i&&"object"==typeof i?re(i):i})),t}const ae=Object.prototype.hasOwnProperty;function le(e,t){return ce(e,t,new Set)}function ce(e,t,i){if(te(e))return e;const n=t(e);if(void 0!==n)return n;if(Array.isArray(e)){const n=[];for(const o of e)n.push(ce(o,t,i));return n}if($(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const n={};for(const o in e)ae.call(e,o)&&(n[o]=ce(e[o],t,i));return i.delete(e),n}return e}function de(e,t,i=!0){return $(e)?($(t)&&Object.keys(t).forEach((n=>{n in e?i&&($(e[n])&&$(t[n])?de(e[n],t[n],i):e[n]=t[n]):e[n]=t[n]})),e):t}function he(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let i,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;i=0;function me(e,t){let i;return i=0===t.length?e:e.replace(/{(\d+)}/g,((e,i)=>{const n=i[0],o=t[n];let s=e;return"string"==typeof o?s=o:"number"!=typeof o&&"boolean"!=typeof o&&null!=o||(s=String(o)),s})),ge&&(i=`[${i.replace(/[aeiou]/g,"$&$&")}]`),i}function pe(e,t,i,...n){var o,s="object"==typeof t?t.key:t,r=((t={"":["--------------------------------------------------------------------------------------------","Copyright (c) Microsoft Corporation. All rights reserved.","Licensed under the MIT License. See License.txt in the project root for license information.","--------------------------------------------------------------------------------------------","Do not edit this file. It is machine generated."],version:"1.0.0",contents:{"vs/base/browser/ui/actionbar/actionViewItems":{titleLabel:"{0} ({1})"},"vs/base/browser/ui/button/button":{"button dropdown more actions":"更多操作..."},"vs/base/browser/ui/dialog/dialog":{dialogClose:"关闭对话框",dialogErrorMessage:"错误",dialogInfoMessage:"信息",dialogPendingMessage:"正在进行",dialogWarningMessage:"警告",ok:"确定"},"vs/base/browser/ui/dropdown/dropdownActionViewItem":{moreActions:"更多操作..."},"vs/base/browser/ui/findinput/findInput":{defaultLabel:"输入"},"vs/base/browser/ui/findinput/findInputToggles":{caseDescription:"区分大小写",regexDescription:"使用正则表达式",wordsDescription:"全字匹配"},"vs/base/browser/ui/findinput/replaceInput":{defaultLabel:"输入","label.preserveCaseToggle":"保留大小写"},"vs/base/browser/ui/hover/hoverWidget":{acessibleViewHint:"在辅助视图中用 {0} 检查此项。",acessibleViewHintNoKbOpen:"通过命令“打开辅助视图”在辅助视图中检查此项,该命令当前无法通过键绑定触发。"},"vs/base/browser/ui/icons/iconSelectBox":{"iconSelect.noResults":"无结果","iconSelect.placeholder":"搜索图标"},"vs/base/browser/ui/inputbox/inputBox":{alertErrorMessage:"错误: {0}",alertInfoMessage:"信息: {0}",alertWarningMessage:"警告: {0}",clearedInput:"清除的输入","history.inputbox.hint.suffix.inparens":" (使用 {0} 查看历史记录)","history.inputbox.hint.suffix.noparens":" 或使用 {0} 以查看历史记录"},"vs/base/browser/ui/keybindingLabel/keybindingLabel":{unbound:"未绑定"},"vs/base/browser/ui/menu/menubar":{mAppMenu:"应用程序菜单",mMore:"更多"},"vs/base/browser/ui/selectBox/selectBoxCustom":{selectBox:"选择框"},"vs/base/browser/ui/splitview/paneview":{viewSection:"{0}部分"},"vs/base/browser/ui/toolbar/toolbar":{moreActions:"更多操作..."},"vs/base/browser/ui/tree/abstractTree":{close:"关闭",filter:"筛选器",fuzzySearch:"模糊匹配","not found":"未找到元素。","type to filter":"要筛选的类型","type to search":"要搜索的类型"},"vs/base/browser/ui/tree/treeDefaults":{"collapse all":"全部折叠"},"vs/base/common/actions":{"submenu.empty":"(空)"},"vs/base/common/date":{"date.fromNow.days.plural":"{0} 天","date.fromNow.days.plural.ago":"{0} 天前","date.fromNow.days.singular":"{0} 天","date.fromNow.days.singular.ago":"{0} 天前","date.fromNow.hours.plural":"{0} 小时","date.fromNow.hours.plural.ago":"{0} 小时前","date.fromNow.hours.plural.ago.fullWord":"{0} 小时前","date.fromNow.hours.plural.fullWord":"{0} 小时","date.fromNow.hours.singular":"{0} 小时","date.fromNow.hours.singular.ago":"{0} 小时前","date.fromNow.hours.singular.ago.fullWord":"{0} 小时前","date.fromNow.hours.singular.fullWord":"{0} 小时","date.fromNow.in":"{0} 后","date.fromNow.minutes.plural":"{0} 分钟","date.fromNow.minutes.plural.ago":"{0} 分钟前","date.fromNow.minutes.plural.ago.fullWord":"{0} 分钟前","date.fromNow.minutes.plural.fullWord":"{0} 分钟","date.fromNow.minutes.singular":"{0} 分钟","date.fromNow.minutes.singular.ago":"{0} 分钟前","date.fromNow.minutes.singular.ago.fullWord":"{0} 分钟前","date.fromNow.minutes.singular.fullWord":"{0} 分钟","date.fromNow.months.plural":"{0} 个月","date.fromNow.months.plural.ago":"{0} 个月前","date.fromNow.months.plural.ago.fullWord":"{0} 个月前","date.fromNow.months.plural.fullWord":"{0} 个月","date.fromNow.months.singular":"{0} 个月","date.fromNow.months.singular.ago":"{0} 个月前","date.fromNow.months.singular.ago.fullWord":"{0} 个月前","date.fromNow.months.singular.fullWord":"{0} 月","date.fromNow.now":"现在","date.fromNow.seconds.plural":"{0} 秒","date.fromNow.seconds.plural.ago":"{0} 秒前","date.fromNow.seconds.plural.ago.fullWord":"{0} 秒前","date.fromNow.seconds.plural.fullWord":"{0} 秒","date.fromNow.seconds.singular":"{0} 秒","date.fromNow.seconds.singular.ago":"{0} 秒前","date.fromNow.seconds.singular.ago.fullWord":"{0} 秒前","date.fromNow.seconds.singular.fullWord":"{0} 秒","date.fromNow.weeks.plural":"{0} 周","date.fromNow.weeks.plural.ago":"{0} 周前","date.fromNow.weeks.plural.ago.fullWord":"{0} 周前","date.fromNow.weeks.plural.fullWord":"{0} 周","date.fromNow.weeks.singular":"{0} 周","date.fromNow.weeks.singular.ago":"{0} 周前","date.fromNow.weeks.singular.ago.fullWord":"{0} 周前","date.fromNow.weeks.singular.fullWord":"{0} 周","date.fromNow.years.plural":"{0} 年","date.fromNow.years.plural.ago":"{0} 年前","date.fromNow.years.plural.ago.fullWord":"{0} 年前","date.fromNow.years.plural.fullWord":"{0} 年","date.fromNow.years.singular":"{0} 年","date.fromNow.years.singular.ago":"{0} 年前","date.fromNow.years.singular.ago.fullWord":"{0} 年前","date.fromNow.years.singular.fullWord":"{0} 年","duration.d":"{0} 天","duration.h":"{0} 小时","duration.h.full":"{0} 小时","duration.m":"{0} 分钟","duration.m.full":"{0} 分钟","duration.ms":"{0} 毫秒","duration.ms.full":"{0} 毫秒","duration.s":"{0} 秒","duration.s.full":"{0} 秒"},"vs/base/common/errorMessage":{"error.defaultMessage":"出现未知错误。有关详细信息,请参阅日志。","error.moreErrors":"{0} 个(共 {1} 个错误)",nodeExceptionMessage:"发生了系统错误 ({0})","stackTrace.format":"{0}: {1}"},"vs/base/common/jsonErrorMessages":{"error.closeBraceExpected":"需要右大括号","error.closeBracketExpected":"需要右括号","error.colonExpected":"需要冒号","error.commaExpected":"需要逗号","error.endOfFileExpected":"文件应结束","error.invalidNumberFormat":"数字格式无效","error.invalidSymbol":"无效符号","error.propertyNameExpected":"需要属性名","error.valueExpected":"需要值"},"vs/base/common/keybindingLabels":{altKey:"Alt","altKey.long":"Alt","cmdKey.long":"Command",ctrlKey:"Ctrl","ctrlKey.long":"Control","optKey.long":"选项",shiftKey:"Shift","shiftKey.long":"Shift",superKey:"超键","superKey.long":"超键",windowsKey:"Windows","windowsKey.long":"Windows"},"vs/base/common/platform":{ensureLoaderPluginIsLoaded:"_"},"vs/base/node/zip":{incompleteExtract:"解压不完整。找到了 {0} / {1} 个项目","invalid file":"提取 {0} 时出错。文件无效。",notFound:"在 Zip 中找不到 {0}。"},"vs/editor/browser/controller/textAreaHandler":{accessibilityModeOff:"现在无法访问编辑器。",accessibilityOffAriaLabel:"{0} 若要启用屏幕阅读器优化模式,请使用 {1}",accessibilityOffAriaLabelNoKb:"{0} 若要启用屏幕阅读器优化模式,请使用 {1} 打开快速选取,然后运行“切换屏幕阅读器辅助功能模式”命令;当前无法通过键盘触发此命令。",accessibilityOffAriaLabelNoKbs:"{0} 请通过使用 {1} 访问键绑定编辑器并运行它,为“切换屏幕阅读器辅助功能模式”命令分配键绑定。",editor:"编辑器"},"vs/editor/browser/coreCommands":{removedCursor:"已删除辅助游标",stickydesc:"即使转到较长的行,也一直到末尾"},"vs/editor/browser/editorExtensions":{miRedo:"恢复(&&R)",miSelectAll:"全选(&&S)",miUndo:"撤消(&&U)",redo:"恢复",selectAll:"选择全部",undo:"撤消"},"vs/editor/browser/services/hoverService/hoverWidget":{hoverhint:"按住 {0} 键将鼠标悬停"},"vs/editor/browser/services/hoverService/updatableHoverWidget":{"iconLabel.loading":"正在加载…"},"vs/editor/browser/widget/codeEditor/codeEditorWidget":{"cursors.maximum":"已将光标数限制为 {0}。请考虑使用 [查找和替换](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace)进行较大的更改或增加编辑器多光标限制设置。",goToSetting:"增加多光标限制"},"vs/editor/browser/widget/diffEditor/commands":{accessibleDiffViewer:"可访问的差异查看器",collapseAllUnchangedRegions:"折叠所有未更改的区域",diffEditor:"差异编辑器","editor.action.accessibleDiffViewer.next":"转至下一个差异","editor.action.accessibleDiffViewer.prev":"转至上一个差异",exitCompareMove:"退出比较移动",revert:"还原",showAllUnchangedRegions:"显示所有未更改的区域",switchSide:"切换侧面",toggleCollapseUnchangedRegions:"切换折叠未更改的区域",toggleShowMovedCodeBlocks:"切换显示移动的代码块",toggleUseInlineViewWhenSpaceIsLimited:"在空间受限时切换使用内联视图"},"vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer":{accessibleDiffViewerCloseIcon:"可访问差异查看器中“关闭”的图标。",accessibleDiffViewerInsertIcon:"可访问差异查看器中“插入”的图标。",accessibleDiffViewerRemoveIcon:"可访问差异查看器中“删除”的图标。",ariaLabel:"可访问的差异查看器。使用向上和向下箭头导航。",blankLine:"空白",deleteLine:"- {0}原始行{1}",equalLine:"{0}原始行{1}修改的行{2}",header:"差异 {0}/ {1}: 原始行 {2},{3},修改后的行 {4},{5}",insertLine:"+ {0}修改的行{1}","label.close":"关闭",more_lines_changed:"更改了 {0} 行",no_lines_changed:"未更改行",one_line_changed:"更改了 1 行",unchangedLine:"{0} 未更改的行 {1}"},"vs/editor/browser/widget/diffEditor/components/diffEditorEditors":{"diff-aria-navigation-tip":" 使用 {0} 打开辅助功能帮助。"},"vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin":{"diff.clipboard.copyChangedLineContent.label":"复制更改的行({0})","diff.clipboard.copyChangedLinesContent.label":"复制更改的行","diff.clipboard.copyChangedLinesContent.single.label":"复制更改的行","diff.clipboard.copyDeletedLineContent.label":"复制已删除的行({0})","diff.clipboard.copyDeletedLinesContent.label":"复制已删除的行","diff.clipboard.copyDeletedLinesContent.single.label":"复制已删除的行","diff.inline.revertChange.label":"还原此更改"},"vs/editor/browser/widget/diffEditor/diffEditor.contribution":{"Open Accessible Diff Viewer":"打开可访问差异查看器",revertHunk:"还原块",revertSelection:"还原所选内容",showMoves:"显示移动的代码块",useInlineViewWhenSpaceIsLimited:"空间受限时使用内联视图"},"vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature":{"diff.bottom":"单击或拖动可在下方显示更多内容","diff.hiddenLines.expandAll":"双击展开","diff.hiddenLines.top":"单击或拖动可在上面显示更多内容",foldUnchanged:"折叠未更改的区域",hiddenLines:"{0} 个隐藏的行",showUnchangedRegion:"显示未更改的区域"},"vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature":{codeMovedFrom:"代码已从行 {0}-{1} 移动",codeMovedFromWithChanges:"代码已从行 {0}-{1} 移动,有更改",codeMovedTo:"代码已移动到行 {0} {1}",codeMovedToWithChanges:"代码已移动至行 {0}-{1},有更改"},"vs/editor/browser/widget/diffEditor/features/revertButtonsFeature":{revertChange:"还原更改",revertSelectedChanges:"还原所选更改"},"vs/editor/browser/widget/diffEditor/registrations.contribution":{"diffEditor.move.border":"在差异编辑器中移动的文本的边框颜色。","diffEditor.moveActive.border":"在差异编辑器中移动的文本的活动边框颜色。","diffEditor.unchangedRegionShadow":"未更改区域小组件周围的阴影颜色。",diffInsertIcon:"差异编辑器中插入项的线条修饰。",diffRemoveIcon:"差异编辑器中删除项的线条修饰。"},"vs/editor/browser/widget/multiDiffEditor/colors":{"multiDiffEditor.background":"多文件差异编辑器的背景色","multiDiffEditor.border":"多文件差异编辑器的边框颜色","multiDiffEditor.headerBackground":"差异编辑器标题的背景色"},"vs/editor/common/config/editorConfigurationSchema":{codeLens:"控制是否在编辑器中显示 CodeLens。",detectIndentation:"控制在基于文件内容打开文件时是否自动检测 {0} 和 {1}。","diffAlgorithm.advanced":"使用高级差异算法。","diffAlgorithm.legacy":"使用旧差异算法。","editor.experimental.asyncTokenization":"控制是否应在 Web 辅助进程上异步进行标记化。","editor.experimental.asyncTokenizationLogging":"控制是否应记录异步词汇切分。仅用于调试。","editor.experimental.asyncTokenizationVerification":"控制是否应对旧版后台令牌化验证异步令牌化。可能会减慢令牌化速度。仅用于调试。",editorConfigurationTitle:"编辑器","hideUnchangedRegions.contextLineCount":"控制在比较未改变的区域时使用多少行作为上下文。","hideUnchangedRegions.enabled":"控制差异编辑器是否显示未更改的区域。","hideUnchangedRegions.minimumLineCount":"控制将多少行用作未更改区域的最小值。","hideUnchangedRegions.revealLineCount":"控制用于未更改区域的行数。",ignoreTrimWhitespace:"启用后,差异编辑器将忽略前导空格或尾随空格中的更改。",indentSize:'用于缩进或 `"tabSize"` 的空格数,可使用 `#editor.tabSize#` 中的值。当 `#editor.detectIndentation#` 处于打开状态时,将根据文件内容替代此设置。',insertSpaces:"按 `Tab` 时插入空格。当 {0} 打开时,将根据文件内容替代此设置。",largeFileOptimizations:"对大型文件进行特殊处理,禁用某些内存密集型功能。",maxComputationTime:"超时(以毫秒为单位),之后将取消差异计算。使用0表示没有超时。",maxFileSize:"要为其计算差异的最大文件大小(MB)。使用 0 表示无限制。",maxTokenizationLineLength:"由于性能原因,超过这个长度的行将不会被标记",renderGutterMenu:"启用后,差异编辑器将显示用于还原和阶段操作的特殊装订线。",renderIndicators:"控制差异编辑器是否为添加/删除的更改显示 +/- 指示符号。",renderMarginRevertIcon:"启用后,差异编辑器会在其字形边距中显示箭头以还原更改。",renderSideBySideInlineBreakpoint:"如果差异编辑器宽度小于此值,则使用内联视图。","schema.brackets":"定义增加和减少缩进的括号。","schema.closeBracket":"右方括号字符或字符串序列。","schema.colorizedBracketPairs":"如果启用方括号对着色,则按照其嵌套级别定义已着色的方括号对。","schema.openBracket":"左方括号字符或字符串序列。","semanticHighlighting.configuredByTheme":'语义突出显示是由当前颜色主题的 "semanticHighlighting" 设置配置的。',"semanticHighlighting.enabled":"控制是否为支持它的语言显示语义突出显示。","semanticHighlighting.false":"对所有颜色主题禁用语义突出显示。","semanticHighlighting.true":"对所有颜色主题启用语义突出显示。",showEmptyDecorations:"控制差异编辑器是否显示空修饰,以查看插入或删除字符的位置。",showMoves:"控制差异编辑器是否应显示检测到的代码移动。",sideBySide:"控制差异编辑器的显示方式是并排还是内联。",stablePeek:"保持速览编辑器处于打开状态,即使双击其中的内容或者点击 `Escape` 键也是如此。",tabSize:"一个制表符等于的空格数。当 {0} 打开时,将根据文件内容替代此设置。",trimAutoWhitespace:"删除自动插入的尾随空白符号。",useInlineViewWhenSpaceIsLimited:"如果启用并且编辑器宽度太小,则使用内联视图。",wordBasedSuggestions:"控制是否应根据文档中的字词计算补全,以及从哪些文档中计算补全。","wordBasedSuggestions.allDocuments":"建议所有打开的文档中的字词。","wordBasedSuggestions.currentDocument":"仅建议活动文档中的字词。","wordBasedSuggestions.matchingDocuments":"建议使用同一语言的所有打开的文档中的字词。","wordBasedSuggestions.off":"关闭基于字词的建议。","wordWrap.inherit":"行将根据 {0} 设置进行换行。","wordWrap.off":"永不换行。","wordWrap.on":"将在视区宽度处换行。"},"vs/editor/common/config/editorOptions":{acceptSuggestionOnCommitCharacter:"控制是否应在遇到提交字符时接受建议。例如,在 JavaScript 中,半角分号 (`;`) 可以为提交字符,能够在接受建议的同时键入该字符。",acceptSuggestionOnEnter:"控制除了 `Tab` 键以外, `Enter` 键是否同样可以接受建议。这能减少“插入新行”和“接受建议”命令之间的歧义。",acceptSuggestionOnEnterSmart:"仅当建议包含文本改动时才可使用 `Enter` 键进行接受。",accessibilityPageSize:"控制编辑器中可由屏幕阅读器一次读出的行数。我们检测到屏幕阅读器时,会自动将默认值设置为 500。警告: 如果行数大于默认值,可能会影响性能。",accessibilitySupport:"控制 UI 是否应在已针对屏幕阅读器进行优化的模式下运行。","accessibilitySupport.auto":"连接屏幕阅读器后使用平台 API 进行检测。","accessibilitySupport.off":"假定未连接屏幕阅读器。","accessibilitySupport.on":"针对屏幕阅读器的使用进行优化。",alternativeDeclarationCommand:'当"转到声明"的结果为当前位置时将要执行的替代命令的 ID。',alternativeDefinitionCommand:'当"转到定义"的结果为当前位置时将要执行的替代命令的 ID。',alternativeImplementationCommand:'当"转到实现"的结果为当前位置时将要执行的替代命令的 ID。',alternativeReferenceCommand:'当"转到引用"的结果是当前位置时正在执行的替代命令 ID。',alternativeTypeDefinitionCommand:'当"转到类型定义"的结果是当前位置时正在执行的备用命令 ID。',autoClosingBrackets:"控制编辑器是否在左括号后自动插入右括号。",autoClosingComments:"控制在用户添加打开注释后编辑器是否应自动关闭注释。",autoClosingDelete:"控制在删除时编辑器是否应删除相邻的右引号或右方括号。",autoClosingOvertype:"控制编辑器是否应改写右引号或右括号。",autoClosingQuotes:"控制编辑器是否在左引号后自动插入右引号。",autoIndent:"控制编辑器是否应在用户键入、粘贴、移动或缩进行时自动调整缩进。",autoSurround:"控制在键入引号或方括号时,编辑器是否应自动将所选内容括起来。","bracketPairColorization.enabled":"控制是否启用括号对着色。请使用 {0} 重写括号突出显示颜色。","bracketPairColorization.independentColorPoolPerBracketType":"控制每个方括号类型是否具有自己的独立颜色池。",codeLens:"控制是否在编辑器中显示 CodeLens。",codeLensFontFamily:"控制 CodeLens 的字体系列。",codeLensFontSize:"控制 CodeLens 的字号(以像素为单位)。设置为 0 时,将使用 90% 的 `#editor.fontSize#`。",colorDecoratorActivatedOn:"控制从颜色修饰器显示颜色选取器的条件",colorDecorators:"控制编辑器是否显示内联颜色修饰器和颜色选取器。",colorDecoratorsLimit:"控制可一次性在编辑器中呈现的最大颜色修饰器数。",columnSelection:"启用使用鼠标和键进行列选择。","comments.ignoreEmptyLines":"控制在对行注释执行切换、添加或删除操作时,是否应忽略空行。","comments.insertSpace":"控制在注释时是否插入空格字符。",copyWithSyntaxHighlighting:"控制在复制时是否同时复制语法高亮。",cursorBlinking:"控制光标的动画样式。",cursorSmoothCaretAnimation:"控制是否启用平滑插入动画。","cursorSmoothCaretAnimation.explicit":"仅当用户使用显式手势移动光标时,才启用平滑脱字号动画。","cursorSmoothCaretAnimation.off":"已禁用平滑脱字号动画。","cursorSmoothCaretAnimation.on":"始终启用平滑脱字号动画。",cursorStyle:"控制光标样式。",cursorSurroundingLines:"控制光标周围可见的前置行(最小值为 0)和尾随行(最小值为 1)的最小数目。在其他一些编辑器中称为 “scrollOff” 或 “scrollOffset”。",cursorSurroundingLinesStyle:"控制何时应强制执行 `#editor.cursorSurroundingLines#`。","cursorSurroundingLinesStyle.all":'始终强制执行 "cursorSurroundingLines"',"cursorSurroundingLinesStyle.default":'仅当通过键盘或 API 触发时,才会强制执行"光标环绕行"。',cursorWidth:"当 `#editor.cursorStyle#` 设置为 `line` 时,控制光标的宽度。",defaultColorDecorators:"控制是否应使用默认文档颜色提供程序显示内联颜色修饰",definitionLinkOpensInPeek:'控制"转到定义"鼠标手势是否始终打开预览小部件。',deprecated:'此设置已弃用,请改用单独的设置,如"editor.suggest.showKeywords"或"editor.suggest.showSnippets"。',dragAndDrop:"控制在编辑器中是否允许通过拖放来移动选中内容。","dropIntoEditor.enabled":"控制是否可以通过按住 Shift`键将文件拖放到编辑器中(而不是在编辑器中打开该文件)。","dropIntoEditor.showDropSelector":"控制将文件放入编辑器时是否显示小组件。使用此小组件可以控制文件的删除方式。","dropIntoEditor.showDropSelector.afterDrop":"将文件放入编辑器后显示放置选择器小组件。","dropIntoEditor.showDropSelector.never":"切勿显示放置选择器小组件。而是始终使用默认删除提供程序。","editor.autoClosingBrackets.beforeWhitespace":"仅当光标位于空白字符左侧时,才自动闭合括号。","editor.autoClosingBrackets.languageDefined":"使用语言配置确定何时自动闭合括号。","editor.autoClosingComments.beforeWhitespace":"仅当光标位于空格左侧时自动关闭注释。","editor.autoClosingComments.languageDefined":"使用语言配置确定何时自动关闭注释。","editor.autoClosingDelete.auto":"仅在自动插入时才删除相邻的右引号或右括号。","editor.autoClosingOvertype.auto":"仅在自动插入时才改写右引号或右括号。","editor.autoClosingQuotes.beforeWhitespace":"仅当光标位于空白字符左侧时,才自动闭合引号。","editor.autoClosingQuotes.languageDefined":"使用语言配置确定何时自动闭合引号。","editor.autoIndent.advanced":"编辑器将保留当前行的缩进、使用语言定义的括号并调用语言定义的特定 onEnterRules。","editor.autoIndent.brackets":"编辑器将保留当前行的缩进并遵循语言定义的括号。","editor.autoIndent.full":"编辑器将保留当前行的缩进,使用语言定义的括号,调用由语言定义的特殊输入规则,并遵循由语言定义的缩进规则。","editor.autoIndent.keep":"编辑器将保留当前行的缩进。","editor.autoIndent.none":"编辑器不会自动插入缩进。","editor.autoSurround.brackets":"使用括号而非引号来包住所选内容。","editor.autoSurround.languageDefined":"使用语言配置确定何时自动包住所选内容。","editor.autoSurround.quotes":"使用引号而非括号来包住所选内容。","editor.colorDecoratorActivatedOn.click":"单击颜色修饰器时显示颜色选取器","editor.colorDecoratorActivatedOn.clickAndHover":"在颜色修饰器单击和悬停时使颜色选取器同时显示","editor.colorDecoratorActivatedOn.hover":"使颜色选取器在颜色修饰器悬停时显示","editor.editor.gotoLocation.multipleDeclarations":'控制存在多个目标位置时"转到声明"命令的行为。',"editor.editor.gotoLocation.multipleDefinitions":'控制存在多个目标位置时"转到定义"命令的行为。',"editor.editor.gotoLocation.multipleImplemenattions":'控制存在多个目标位置时"转到实现"命令的行为。',"editor.editor.gotoLocation.multipleReferences":'控制存在多个目标位置时"转到引用"命令的行为。',"editor.editor.gotoLocation.multipleTypeDefinitions":'控制存在多个目标位置时"转到类型定义"命令的行为。',"editor.find.autoFindInSelection.always":"始终自动打开“在选定内容中查找”。","editor.find.autoFindInSelection.multiline":"选择多行内容时,自动打开“在选定内容中查找”。","editor.find.autoFindInSelection.never":"从不自动打开“在选定内容中查找”(默认)。","editor.find.seedSearchStringFromSelection.always":"始终为编辑器选择中的搜索字符串设定种子,包括光标位置的字词。","editor.find.seedSearchStringFromSelection.never":"切勿为编辑器选择中的搜索字符串设定种子。","editor.find.seedSearchStringFromSelection.selection":"仅为编辑器选择中的搜索字符串设定种子。","editor.gotoLocation.multiple.deprecated":'此设置已弃用,请改用单独的设置,如"editor.editor.gotoLocation.multipleDefinitions"或"editor.editor.gotoLocation.multipleImplementations"。',"editor.gotoLocation.multiple.goto":"转到主结果,并对其他结果启用无速览导航","editor.gotoLocation.multiple.gotoAndPeek":"转到主结果并显示速览视图","editor.gotoLocation.multiple.peek":"显示结果的速览视图(默认)","editor.guides.bracketPairs":"控制是否启用括号对指南。","editor.guides.bracketPairs.active":"仅为活动括号对启用括号对参考线。","editor.guides.bracketPairs.false":"禁用括号对参考线。","editor.guides.bracketPairs.true":"启用括号对参考线。","editor.guides.bracketPairsHorizontal":"控制是否启用水平括号对指南。","editor.guides.bracketPairsHorizontal.active":"仅为活动括号对启用水平参考线。","editor.guides.bracketPairsHorizontal.false":"禁用水平括号对参考线。","editor.guides.bracketPairsHorizontal.true":"启用水平参考线作为垂直括号对参考线的添加项。","editor.guides.highlightActiveBracketPair":"控制编辑器是否应突出显示活动的括号对。","editor.guides.highlightActiveIndentation":"控制是否突出显示编辑器中活动的缩进参考线。","editor.guides.highlightActiveIndentation.always":"突出显示活动缩进参考线,即使突出显示了括号参考线。","editor.guides.highlightActiveIndentation.false":"不要突出显示活动缩进参考线。","editor.guides.highlightActiveIndentation.true":"突出显示活动缩进参考线。","editor.guides.indentation":"控制编辑器是否显示缩进参考线。","editor.inlayHints.off":"已禁用内嵌提示","editor.inlayHints.offUnlessPressed":"默认情况下隐藏内嵌提示,并在按住 {0} 时显示","editor.inlayHints.on":"已启用内嵌提示","editor.inlayHints.onUnlessPressed":"默认情况下显示内嵌提示,并在按住 {0} 时隐藏","editor.lightbulb.enabled.off":"禁用代码操作菜单。","editor.lightbulb.enabled.on":"当光标与代码一起排列或在空的行时,显示代码操作菜单。","editor.lightbulb.enabled.onCode":"当光标与代码一起排列时,显示代码操作菜单。","editor.stickyScroll.defaultModel":"定义用于确定要粘贴的行的模型。如果大纲模型不存在,它将回退到回退到缩进模型的折叠提供程序模型上。在所有三种情况下都遵循此顺序。","editor.stickyScroll.enabled":"在编辑器顶部的滚动过程中显示嵌套的当前作用域。","editor.stickyScroll.maxLineCount":"定义要显示的最大粘滞行数。","editor.stickyScroll.scrollWithEditor":"使用编辑器的水平滚动条启用粘滞滚动。","editor.suggest.matchOnWordStartOnly":"启用后,IntelliSense 筛选要求第一个字符在单词开头匹配,例如 “Console” 或 “WebContext” 上的 “c”,但 “description” 上的 _not_。禁用后,IntelliSense 将显示更多结果,但仍按匹配质量对其进行排序。","editor.suggest.showClasss":"启用后,IntelliSense 将显示“类”建议。","editor.suggest.showColors":"启用后,IntelliSense 将显示“颜色”建议。","editor.suggest.showConstants":"启用后,IntelliSense 将显示“常量”建议。","editor.suggest.showConstructors":"启用后,IntelliSense 将显示“构造函数”建议。","editor.suggest.showCustomcolors":"启用后,IntelliSense 将显示“自定义颜色”建议。","editor.suggest.showDeprecated":"启用后,IntelliSense 将显示`已弃用`建议。","editor.suggest.showEnumMembers":'启用后,IntelliSense 将显示 "enumMember" 建议。',"editor.suggest.showEnums":"启用后,IntelliSense 将显示“枚举”建议。","editor.suggest.showEvents":"启用后,IntelliSense 将显示“事件”建议。","editor.suggest.showFields":"启用后,IntelliSense 将显示“字段”建议。","editor.suggest.showFiles":"启用后,IntelliSense 将显示“文件”建议。","editor.suggest.showFolders":"启用后,IntelliSense 将显示“文件夹”建议。","editor.suggest.showFunctions":"启用后,IntelliSense 将显示“函数”建议。","editor.suggest.showInterfaces":"启用后,IntelliSense 将显示“接口”建议。","editor.suggest.showIssues":'启用后,IntelliSense 将显示"问题"建议。',"editor.suggest.showKeywords":"启用后,IntelliSense 将显示“关键字”建议。","editor.suggest.showMethods":"启用后,IntelliSense 将显示“方法”建议。","editor.suggest.showModules":"启用后,IntelliSense 将显示“模块”建议。","editor.suggest.showOperators":"启用后,IntelliSense 将显示“操作符”建议。","editor.suggest.showPropertys":"启用后,IntelliSense 将显示“属性”建议。","editor.suggest.showReferences":"启用后,IntelliSense 将显示“参考”建议。","editor.suggest.showSnippets":"启用后,IntelliSense 将显示“片段”建议。","editor.suggest.showStructs":"启用后,IntelliSense 将显示“结构”建议。","editor.suggest.showTexts":"启用后,IntelliSense 将显示“文本”建议。","editor.suggest.showTypeParameters":'启用后,IntelliSense 将显示 "typeParameter" 建议。',"editor.suggest.showUnits":"启用后,IntelliSense 将显示“单位”建议。","editor.suggest.showUsers":'启用后,IntelliSense 将显示"用户"建议。',"editor.suggest.showValues":"启用后,IntelliSense 将显示“值”建议。","editor.suggest.showVariables":"启用后,IntelliSense 将显示“变量”建议。",editorViewAccessibleLabel:"编辑器内容",emptySelectionClipboard:"控制在没有选择内容时进行复制是否复制当前行。",enabled:"在编辑器中启用代码操作小灯泡提示。",experimentalWhitespaceRendering:"控制是否使用新的实验性方法呈现空格。","experimentalWhitespaceRendering.font":"使用包含字体字符的新呈现方法。","experimentalWhitespaceRendering.off":"使用稳定呈现方法。","experimentalWhitespaceRendering.svg":"将新的呈现方法与 svg 配合使用。",fastScrollSensitivity:'按下"Alt"时滚动速度倍增。',"find.addExtraSpaceOnTop":'控制 "查找小部件" 是否应在编辑器顶部添加额外的行。如果为 true, 则可以在 "查找小工具" 可见时滚动到第一行之外。',"find.autoFindInSelection":"控制自动打开“在选定内容中查找”的条件。","find.cursorMoveOnType":"控制在键入时光标是否应跳转以查找匹配项。","find.globalFindClipboard":"控制“查找”小组件是否读取或修改 macOS 的共享查找剪贴板。","find.loop":"控制在找不到其他匹配项时,是否自动从开头(或结尾)重新开始搜索。","find.seedSearchStringFromSelection":"控制是否将编辑器选中内容作为搜索词填入到查找小组件中。",folding:"控制编辑器是否启用了代码折叠。",foldingHighlight:"控制编辑器是否应突出显示折叠范围。",foldingImportsByDefault:"控制编辑器是否自动折叠导入范围。",foldingMaximumRegions:"可折叠区域的最大数量。如果当前源具有大量可折叠区域,那么增加此值可能会导致编辑器的响应速度变慢。",foldingStrategy:"控制计算折叠范围的策略。","foldingStrategy.auto":"使用特定于语言的折叠策略(如果可用),否则使用基于缩进的策略。","foldingStrategy.indentation":"使用基于缩进的折叠策略。",fontFamily:"控制字体系列。",fontFeatureSettings:'显式 "font-feature-settings" CSS 属性。如果只需打开/关闭连字,可以改为传递布尔值。',fontLigatures:'启用/禁用字体连字("calt" 和 "liga" 字体特性)。将此更改为字符串,可对 "font-feature-settings" CSS 属性进行精细控制。',fontLigaturesGeneral:'配置字体连字或字体特性。可以是用于启用/禁用连字的布尔值,或用于设置 CSS "font-feature-settings" 属性值的字符串。',fontSize:"控制字体大小(像素)。",fontVariationSettings:"显式“font-variation-settings”CSS 属性。如果只需将 font-weight 转换为 font-variation-settings,则可以改为传递布尔值。",fontVariations:"启用/禁用从 font-weight 到 font-variation-settings 的转换。将此项更改为字符串,以便对“font-variation-settings”CSS 属性进行细化控制。",fontVariationsGeneral:"配置字体变体。可以是用于启用/禁用从 font-weight 到 font-variation-settings 的转换的布尔值,也可以是 CSS“font-variation-settings”属性值的字符串。",fontWeight:"控制字体粗细。接受关键字“正常”和“加粗”,或者接受介于 1 至 1000 之间的数字。",fontWeightErrorMessage:"仅允许使用关键字“正常”和“加粗”,或使用介于 1 至 1000 之间的数字。",formatOnPaste:"控制编辑器是否自动格式化粘贴的内容。格式化程序必须可用,并且能针对文档中的某一范围进行格式化。",formatOnType:"控制编辑器在键入一行后是否自动格式化该行。",glyphMargin:"控制编辑器是否应呈现垂直字形边距。字形边距最常用于调试。",hideCursorInOverviewRuler:"控制是否在概览标尺中隐藏光标。","hover.above":"如果有空间,首选在线条上方显示悬停。","hover.delay":"控制显示悬停提示前的等待时间 (毫秒)。","hover.enabled":"控制是否显示悬停提示。","hover.hidingDelay":"控制隐藏悬停提示前的等待时间(毫秒)。需要启用“editor.hover.sticky”。","hover.sticky":"控制当鼠标移动到悬停提示上时,其是否保持可见。","inlayHints.enable":"在编辑器中启用内联提示。","inlayHints.fontFamily":"控制编辑器中嵌入提示的字体系列。设置为空时,将使用 {0}。","inlayHints.fontSize":"控制编辑器中嵌入提示的字号。默认情况下,当配置的值小于 {1} 或大于编辑器字号时,将使用 {0}。","inlayHints.padding":"在编辑器中启用叠加提示周围的填充。",inline:"快速建议显示为虚影文本",inlineCompletionsAccessibilityVerbose:"控制在显示内联完成时是否应向屏幕阅读器用户提供辅助功能提示。","inlineEdit.backgroundColoring":"控制是否为内联编辑的背景着色。","inlineEdit.enabled":"控制是否在编辑器中显示内联编辑。","inlineEdit.fontFamily":"控制内联编辑的字体系列。","inlineEdit.showToolbar":"控制何时显示内联编辑工具栏。","inlineEdit.showToolbar.always":"每当显示内联建议时,显示内联编辑工具栏。","inlineEdit.showToolbar.never":"切勿显示内联编辑工具栏。","inlineEdit.showToolbar.onHover":"将鼠标悬停在内联建议上时显示内联编辑工具栏。","inlineSuggest.enabled":"控制是否在编辑器中自动显示内联建议。","inlineSuggest.fontFamily":"控制内联建议的字体系列。","inlineSuggest.showToolbar":"控制何时显示内联建议工具栏。","inlineSuggest.showToolbar.always":"每当显示内联建议时,显示内联建议工具栏。","inlineSuggest.showToolbar.never":"从不显示内联建议工具栏。","inlineSuggest.showToolbar.onHover":"将鼠标悬停在内联建议上时显示内联建议工具栏。","inlineSuggest.suppressSuggestions":"控制内联建议如何与建议小组件交互。如果启用,当内联建议可用时,不会自动显示建议小组件。",letterSpacing:"控制字母间距(像素)。",lineHeight:"控制行高。\r\n - 使用 0 根据字号自动计算行高。\r\n - 介于 0 和 8 之间的值将用作字号的乘数。\r\n - 大于或等于 8 的值将用作有效值。",lineNumbers:"控制行号的显示。","lineNumbers.interval":"每 10 行显示一次行号。","lineNumbers.off":"不显示行号。","lineNumbers.on":"将行号显示为绝对行数。","lineNumbers.relative":"将行号显示为与光标相隔的行数。",linkedEditing:"控制编辑器是否已启用链接编辑。相关符号(如 HTML 标记)将在编辑时进行更新,具体取决于语言。",links:"控制是否在编辑器中检测链接并使其可被点击。",matchBrackets:"突出显示匹配的括号。","minimap.autohide":"控制是否自动隐藏缩略图。","minimap.enabled":"控制是否显示缩略图。","minimap.maxColumn":"限制缩略图的宽度,控制其最多显示的列数。","minimap.renderCharacters":"渲染每行的实际字符,而不是色块。","minimap.scale":"在迷你地图中绘制的内容比例: 1、2 或 3。","minimap.sectionHeaderFontSize":"控制缩略图中节标题的字号。","minimap.showMarkSectionHeaders":"控制 MARK: 命令是否在缩略图中显示为节标题。","minimap.showRegionSectionHeaders":"控制命名区域是否在缩略图中显示为节标题。","minimap.showSlider":"控制何时显示迷你地图滑块。","minimap.side":"控制在哪一侧显示缩略图。","minimap.size":"控制迷你地图的大小。","minimap.size.fill":"迷你地图将根据需要拉伸或缩小以填充编辑器的高度(不滚动)。","minimap.size.fit":"迷你地图将根据需要缩小,永远不会大于编辑器(不滚动)。","minimap.size.proportional":"迷你地图的大小与编辑器内容相同(并且可能滚动)。",mouseWheelScrollSensitivity:"对鼠标滚轮滚动事件的 `deltaX` 和 `deltaY` 乘上的系数。",mouseWheelZoom:"按住 `Ctrl` 键并滚动鼠标滚轮时对编辑器字体大小进行缩放。","mouseWheelZoom.mac":"按住 Cmd 键并滚动鼠标滚轮时对编辑器字体大小进行缩放。",multiCursorLimit:"控制一次可以在活动编辑器中显示的最大游标数。",multiCursorMergeOverlapping:"当多个光标重叠时进行合并。",multiCursorModifier:"用于使用鼠标添加多个游标的修饰符。“转到定义”和“打开链接”鼠标手势将进行调整,使其不与 [多光标修饰符](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier)冲突。","multiCursorModifier.alt":"映射为 `Alt` (Windows 和 Linux) 或 `Option` (macOS)。","multiCursorModifier.ctrlCmd":"映射为 `Ctrl` (Windows 和 Linux) 或 `Command` (macOS)。",multiCursorPaste:"控制粘贴时粘贴文本的行计数与光标计数相匹配。","multiCursorPaste.full":"每个光标粘贴全文。","multiCursorPaste.spread":"每个光标粘贴一行文本。",occurrencesHighlight:"控制是否应突出显示在打开的文件中的出现次数。","occurrencesHighlight.multiFile":"实验性: 突出显示所有有效打开文件的出现次数。","occurrencesHighlight.off":"不突出显示出现次数。","occurrencesHighlight.singleFile":"仅突出显示当前文件中的出现次数。",off:"已禁用快速建议",on:"快速建议显示在建议小组件内",overviewRulerBorder:"控制是否在概览标尺周围绘制边框。","padding.bottom":"控制编辑器的底边和最后一行之间的间距量。","padding.top":"控制编辑器的顶边和第一行之间的间距量。","parameterHints.cycle":"控制参数提示菜单在到达列表末尾时进行循环还是关闭。","parameterHints.enabled":"在输入时显示含有参数文档和类型信息的小面板。","pasteAs.enabled":"控制是否可以以不同的方式粘贴内容。","pasteAs.showPasteSelector":"控制将内容粘贴到编辑器时是否显示小组件。使用此小组件可以控制文件的粘贴方式。","pasteAs.showPasteSelector.afterPaste":"将内容粘贴到编辑器后显示粘贴选择器小组件。","pasteAs.showPasteSelector.never":"切勿显示粘贴选择器小组件。而是始终使用默认粘贴行为。",peekWidgetDefaultFocus:"控制是将焦点放在内联编辑器上还是放在预览小部件中的树上。","peekWidgetDefaultFocus.editor":"打开预览时将焦点放在编辑器上","peekWidgetDefaultFocus.tree":"打开速览时聚焦树",quickSuggestions:"控制键入时是否应自动显示建议。这可以用于在注释、字符串和其他代码中键入时进行控制。可配置快速建议以显示为虚影文本或建议小组件。另请注意控制建议是否由特殊字符触发的“{0}”设置。","quickSuggestions.comments":"在注释内启用快速建议。","quickSuggestions.other":"在字符串和注释外启用快速建议。","quickSuggestions.strings":"在字符串内启用快速建议。",quickSuggestionsDelay:"控制显示快速建议前的等待时间 (毫秒)。",renameOnType:"控制是否在编辑器中输入时自动重命名。",renameOnTypeDeprecate:'已弃用,请改用 "editor.linkedEditing"。',renderControlCharacters:"控制编辑器是否显示控制字符。",renderFinalNewline:"当文件以换行符结束时, 呈现最后一行的行号。",renderLineHighlight:"控制编辑器的当前行进行高亮显示的方式。","renderLineHighlight.all":"同时突出显示导航线和当前行。",renderLineHighlightOnlyWhenFocus:"控制编辑器是否仅在焦点在编辑器时突出显示当前行。",renderWhitespace:"控制编辑器在空白字符上显示符号的方式。","renderWhitespace.boundary":"呈现空格字符(字词之间的单个空格除外)。","renderWhitespace.selection":"仅在选定文本上呈现空白字符。","renderWhitespace.trailing":"仅呈现尾随空格字符。",roundedSelection:"控制选区是否有圆角。",rulers:"在一定数量的等宽字符后显示垂直标尺。输入多个值,显示多个标尺。若数组为空,则不绘制标尺。","rulers.color":"此编辑器标尺的颜色。","rulers.size":"此编辑器标尺将渲染的等宽字符数。",screenReaderAnnounceInlineSuggestion:"控制内联建议是否由屏幕阅读器公布。",scrollBeyondLastColumn:"控制编辑器水平滚动时可以超过范围的字符数。",scrollBeyondLastLine:"控制编辑器是否可以滚动到最后一行之后。",scrollPredominantAxis:"同时垂直和水平滚动时,仅沿主轴滚动。在触控板上垂直滚动时,可防止水平漂移。","scrollbar.horizontal":"控制水平滚动条的可见性。","scrollbar.horizontal.auto":"水平滚动条仅在必要时可见。","scrollbar.horizontal.fit":"水平滚动条将始终隐藏。","scrollbar.horizontal.visible":"水平滚动条将始终可见。","scrollbar.horizontalScrollbarSize":"水平滚动条的高度。","scrollbar.ignoreHorizontalScrollbarInContentHeight":"设置后,水平滚动条将不会增加编辑器内容的大小。","scrollbar.scrollByPage":"控制单击按页滚动还是跳转到单击位置。","scrollbar.vertical":"控制垂直滚动条的可见性。","scrollbar.vertical.auto":"垂直滚动条仅在必要时可见。","scrollbar.vertical.fit":"垂直滚动条将始终隐藏。","scrollbar.vertical.visible":"垂直滚动条将始终可见。","scrollbar.verticalScrollbarSize":"垂直滚动条的宽度。",selectLeadingAndTrailingWhitespace:"是否应始终选择前导和尾随空格。",selectSubwords:"是否应选择子字(如“fooBar”或“foo_bar”中的“foo”)。",selectionClipboard:"控制是否支持 Linux 主剪贴板。",selectionHighlight:"控制编辑器是否应突出显示与所选内容类似的匹配项。",showDeprecated:"控制加删除线被弃用的变量。",showFoldingControls:"控制何时显示行号槽上的折叠控件。","showFoldingControls.always":"始终显示折叠控件。","showFoldingControls.mouseover":"仅在鼠标位于装订线上方时显示折叠控件。","showFoldingControls.never":"切勿显示折叠控件并减小装订线大小。",showUnused:"控制是否淡化未使用的代码。",smoothScrolling:"控制编辑器是否使用动画滚动。",snippetSuggestions:"控制代码片段是否与其他建议一起显示及其排列的位置。","snippetSuggestions.bottom":"在其他建议下方显示代码片段建议。","snippetSuggestions.inline":"在其他建议中穿插显示代码片段建议。","snippetSuggestions.none":"不显示代码片段建议。","snippetSuggestions.top":"在其他建议上方显示代码片段建议。",stickyTabStops:"在使用空格进行缩进时模拟制表符的选择行为。所选内容将始终使用制表符停止位。","suggest.filterGraceful":"控制对建议的筛选和排序是否考虑小的拼写错误。","suggest.insertMode":"控制接受补全时是否覆盖单词。请注意,这取决于扩展选择使用此功能。","suggest.insertMode.always":"自动触发 IntelliSense 时始终选择建议。","suggest.insertMode.insert":"插入建议而不覆盖光标右侧的文本。","suggest.insertMode.never":"自动触发 IntelliSense 时,切勿选择建议。","suggest.insertMode.replace":"插入建议并覆盖光标右侧的文本。","suggest.insertMode.whenQuickSuggestion":"仅在键入时触发 IntelliSense 时才选择建议。","suggest.insertMode.whenTriggerCharacter":"仅当从触发器字符触发 IntelliSense 时,才选择建议。","suggest.localityBonus":"控制排序时是否首选光标附近的字词。","suggest.maxVisibleSuggestions.dep":"此设置已弃用。现在可以调整建议小组件的大小。","suggest.preview":"控制是否在编辑器中预览建议结果。","suggest.selectionMode":"控制在显示小组件时是否选择建议。请注意,这仅适用于(“#editor.quickSuggestions#”和“#editor.suggestOnTriggerCharacters#”)自动触发的建议,并且始终在显式调用时选择建议,例如通过“Ctrl+Space”。","suggest.shareSuggestSelections":"控制是否在多个工作区和窗口间共享记忆的建议选项(需要 `#editor.suggestSelection#`)。","suggest.showIcons":"控制是否在建议中显示或隐藏图标。","suggest.showInlineDetails":"控制建议详细信息是随标签内联显示还是仅显示在详细信息小组件中。","suggest.showStatusBar":"控制建议小部件底部的状态栏的可见性。","suggest.snippetsPreventQuickSuggestions":"控制活动代码段是否阻止快速建议。",suggestFontSize:"建议小组件的字号。设置为 {0} 时,将使用 {1} 的值。",suggestLineHeight:"建议小组件的行高。设置为 {0} 时,将使用 {1} 的值。最小值为 8。",suggestOnTriggerCharacters:"控制在键入触发字符后是否自动显示建议。",suggestSelection:"控制在建议列表中如何预先选择建议。","suggestSelection.first":"始终选择第一个建议。","suggestSelection.recentlyUsed":"选择最近的建议,除非进一步键入选择其他项。例如 `console. -> console.log`,因为最近补全过 `log`。","suggestSelection.recentlyUsedByPrefix":"根据之前补全过的建议的前缀来进行选择。例如,`co -> console`、`con -> const`。",tabCompletion:"启用 Tab 补全。","tabCompletion.off":"禁用 Tab 补全。","tabCompletion.on":"在按下 Tab 键时进行 Tab 补全,将插入最佳匹配建议。","tabCompletion.onlySnippets":'在前缀匹配时进行 Tab 补全。在 "quickSuggestions" 未启用时体验最好。',tabFocusMode:"控制编辑器是接收选项卡还是将其延迟到工作台进行导航。",unfoldOnClickAfterEndOfLine:"控制单击已折叠的行后面的空内容是否会展开该行。","unicodeHighlight.allowedCharacters":"定义未突出显示的允许字符。","unicodeHighlight.allowedLocales":"未突出显示在允许区域设置中常见的 Unicode 字符。","unicodeHighlight.ambiguousCharacters":"控制是否突出显示可能与基本 ASCII 字符混淆的字符,但当前用户区域设置中常见的字符除外。","unicodeHighlight.includeComments":"控制注释中的字符是否也应进行 Unicode 突出显示。","unicodeHighlight.includeStrings":"控制字符串中的字符是否也应进行 Unicode 突出显示。","unicodeHighlight.invisibleCharacters":"控制是否突出显示仅保留空格或完全没有宽度的字符。","unicodeHighlight.nonBasicASCII":"控制是否突出显示所有非基本 ASCII 字符。只有介于 U+0020 到 U+007E 之间的字符、制表符、换行符和回车符才被视为基本 ASCII。",unusualLineTerminators:"删除可能导致问题的异常行终止符。","unusualLineTerminators.auto":"自动删除异常的行终止符。","unusualLineTerminators.off":"忽略异常的行终止符。","unusualLineTerminators.prompt":"提示删除异常的行终止符。",useTabStops:"空格和制表符的插入和删除与制表位对齐。",wordBreak:"控制中文/日语/韩语(CJK)文本使用的断字规则。","wordBreak.keepAll":"中文/日语/韩语(CJK)文本不应使用断字功能。非 CJK 文本行为与普通文本行为相同。","wordBreak.normal":"使用默认换行规则。",wordSegmenterLocales:"执行与字词相关的导航或操作时用于分词的区域设置。指定要识别的字词的 BCP 47 语言标记(如 ja、zh-CN、zh-Hant-TW 等)。",wordSeparators:"执行单词相关的导航或操作时作为单词分隔符的字符。",wordWrap:"控制折行的方式。","wordWrap.bounded":"在视区宽度和 `#editor.wordWrapColumn#` 中的较小值处折行。","wordWrap.off":"永不换行。","wordWrap.on":"将在视区宽度处换行。","wordWrap.wordWrapColumn":"在 `#editor.wordWrapColumn#` 处折行。",wordWrapColumn:"在 `#editor.wordWrap#` 为 `wordWrapColumn` 或 `bounded` 时,控制编辑器的折行列。",wrappingIndent:"控制折行的缩进。","wrappingIndent.deepIndent":"折行的缩进量比其父级多 2。","wrappingIndent.indent":"折行的缩进量比其父级多 1。","wrappingIndent.none":"没有缩进。折行从第 1 列开始。","wrappingIndent.same":"折行的缩进量与其父级相同。",wrappingStrategy:"控制计算包装点的算法。请注意,在辅助功能模式下,高级版将用于提供最佳体验。","wrappingStrategy.advanced":"将包装点计算委托给浏览器。这是一个缓慢算法,可能会导致大型文件被冻结,但它在所有情况下都正常工作。","wrappingStrategy.simple":"假定所有字符的宽度相同。这是一种快速算法,适用于等宽字体和某些字形宽度相等的文字(如拉丁字符)。"},"vs/editor/common/core/editorColorRegistry":{caret:"编辑器光标颜色。",deprecatedEditorActiveIndentGuide:"“editorIndentGuide.activeBackground” 已弃用。请改用 “editorIndentGuide.activeBackground1”。",deprecatedEditorActiveLineNumber:'"Id" 已被弃用,请改用 "editorLineNumber.activeForeground"。',deprecatedEditorIndentGuides:"“editorIndentGuide.background” 已弃用。请改用 “editorIndentGuide.background1”。",editorActiveIndentGuide:"编辑器活动缩进参考线的颜色。",editorActiveIndentGuide1:"编辑器活动缩进参考线 (1) 的颜色。",editorActiveIndentGuide2:"编辑器活动缩进参考线 (2) 的颜色。",editorActiveIndentGuide3:"编辑器活动缩进参考线 (3) 的颜色。",editorActiveIndentGuide4:"编辑器活动缩进参考线 (4) 的颜色。",editorActiveIndentGuide5:"编辑器活动缩进参考线 (5) 的颜色。",editorActiveIndentGuide6:"编辑器活动缩进参考线 (6) 的颜色。",editorActiveLineNumber:"编辑器活动行号的颜色",editorBracketHighlightForeground1:"括号的前景色(1)。需要启用括号对着色。",editorBracketHighlightForeground2:"括号的前景色(2)。需要启用括号对着色。",editorBracketHighlightForeground3:"括号的前景色(3)。需要启用括号对着色。",editorBracketHighlightForeground4:"括号的前景色(4)。需要启用括号对着色。",editorBracketHighlightForeground5:"括号的前景色(5)。需要启用括号对着色。",editorBracketHighlightForeground6:"括号的前景色(6)。需要启用括号对着色。",editorBracketHighlightUnexpectedBracketForeground:"方括号出现意外的前景色。",editorBracketMatchBackground:"匹配括号的背景色",editorBracketMatchBorder:"匹配括号外框的颜色","editorBracketPairGuide.activeBackground1":"活动括号对指南的背景色(1)。需要启用括号对指南。","editorBracketPairGuide.activeBackground2":"活动括号对指南的背景色(2)。需要启用括号对指南。","editorBracketPairGuide.activeBackground3":"活动括号对指南的背景色(3)。需要启用括号对指南。","editorBracketPairGuide.activeBackground4":"活动括号对指南的背景色(4)。需要启用括号对指南。","editorBracketPairGuide.activeBackground5":"活动括号对指南的背景色(5)。需要启用括号对指南。","editorBracketPairGuide.activeBackground6":"活动括号对指南的背景色(6)。需要启用括号对指南。","editorBracketPairGuide.background1":"非活动括号对指南的背景色(1)。需要启用括号对指南。","editorBracketPairGuide.background2":"非活动括号对指南的背景色(2)。需要启用括号对指南。","editorBracketPairGuide.background3":"非活动括号对指南的背景色(3)。需要启用括号对指南。","editorBracketPairGuide.background4":"非活动括号对指南的背景色(4)。需要启用括号对指南。","editorBracketPairGuide.background5":"非活动括号对指南的背景色(5)。需要启用括号对指南。","editorBracketPairGuide.background6":"非活动括号对指南的背景色(6)。需要启用括号对指南。",editorCodeLensForeground:"编辑器 CodeLens 的前景色",editorCursorBackground:"编辑器光标的背景色。可以自定义块型光标覆盖字符的颜色。",editorDimmedLineNumber:"将 editor.renderFinalNewline 设置为灰色时最终编辑器行的颜色。",editorGhostTextBackground:"编辑器中虚影文本的背景色。",editorGhostTextBorder:"编辑器中虚影文本的边框颜色。",editorGhostTextForeground:"编辑器中虚影文本的前景色。",editorGutter:"编辑器导航线的背景色。导航线包括边缘符号和行号。",editorIndentGuides:"编辑器缩进参考线的颜色。",editorIndentGuides1:"编辑器缩进参考线 (1) 的颜色。",editorIndentGuides2:"编辑器缩进参考线 (2) 的颜色。",editorIndentGuides3:"编辑器缩进参考线 (3) 的颜色。",editorIndentGuides4:"编辑器缩进参考线 (4) 的颜色。",editorIndentGuides5:"编辑器缩进参考线 (5) 的颜色。",editorIndentGuides6:"编辑器缩进参考线 (6) 的颜色。",editorLineNumbers:"编辑器行号的颜色。",editorMultiCursorPrimaryBackground:"存在多个游标时主要编辑器游标的背景色。允许自定义块游标重叠的字符的颜色。",editorMultiCursorPrimaryForeground:"存在多个游标时主要编辑器游标的颜色。",editorMultiCursorSecondaryBackground:"存在多个游标时辅助编辑器游标的背景色。允许自定义块游标重叠的字符的颜色。",editorMultiCursorSecondaryForeground:"存在多个游标时辅助编辑器游标的颜色。",editorOverviewRulerBackground:"编辑器概述标尺的背景色。",editorOverviewRulerBorder:"概览标尺边框的颜色。",editorRuler:"编辑器标尺的颜色。","editorUnicodeHighlight.background":"用于突出显示 Unicode 字符的背景颜色。","editorUnicodeHighlight.border":"用于突出显示 Unicode 字符的边框颜色。",editorWhitespaces:"编辑器中空白字符的颜色。",lineHighlight:"光标所在行高亮内容的背景颜色。",lineHighlightBorderBox:"光标所在行四周边框的背景颜色。",overviewRuleError:"概览标尺中错误标记的颜色。",overviewRuleInfo:"概览标尺中信息标记的颜色。",overviewRuleWarning:"概览标尺中警告标记的颜色。",overviewRulerRangeHighlight:"用于突出显示范围的概述标尺标记颜色。颜色必须透明,以免隐藏下面的修饰效果。",rangeHighlight:"背景颜色的高亮范围,喜欢通过快速打开和查找功能。颜色必须透明,以免隐藏下面的修饰效果。",rangeHighlightBorder:"高亮区域边框的背景颜色。",symbolHighlight:"高亮显示符号的背景颜色,例如转到定义或转到下一个/上一个符号。颜色必须透明,以免隐藏下面的修饰效果。",symbolHighlightBorder:"高亮显示符号周围的边框的背景颜色。",unnecessaryCodeBorder:"编辑器中不必要(未使用)的源代码的边框颜色。",unnecessaryCodeOpacity:'非必须(未使用)代码的在编辑器中显示的不透明度。例如,"#000000c0" 将以 75% 的不透明度显示代码。对于高对比度主题,请使用 ”editorUnnecessaryCode.border“ 主题来为非必须代码添加下划线,以避免颜色淡化。'},"vs/editor/common/editorContextKeys":{accessibleDiffViewerVisible:"可访问差异查看器是否可见",comparingMovedCode:"是否选择移动的代码块进行比较",diffEditorHasChanges:"差异编辑器是否有更改",diffEditorInlineMode:"内联模式是否处于活动状态",diffEditorModifiedUri:"已修改的文档的 URI",diffEditorModifiedWritable:"修改项在差异编辑器是否可写",diffEditorOriginalUri:"原始文档的 URI",diffEditorOriginalWritable:"修改项在差异编辑器是否可写",diffEditorRenderSideBySideInlineBreakpointReached:"是否已到达差异编辑器并排呈现内联断点",editorColumnSelection:'是否已启用 "editor.columnSelection"',editorFocus:"编辑器或编辑器小组件是否具有焦点(例如焦点在“查找”小组件中)",editorHasCodeActionsProvider:"编辑器是否具有代码操作提供程序",editorHasCodeLensProvider:"编辑器是否具有 CodeLens 提供程序",editorHasCompletionItemProvider:"编辑器是否具有补全项提供程序",editorHasDeclarationProvider:"编辑器是否具有声明提供程序",editorHasDefinitionProvider:"编辑器是否具有定义提供程序",editorHasDocumentFormattingProvider:"编辑器是否具有文档格式设置提供程序",editorHasDocumentHighlightProvider:"编辑器是否具有文档突出显示提供程序",editorHasDocumentSelectionFormattingProvider:"编辑器是否具有文档选择格式设置提供程序",editorHasDocumentSymbolProvider:"编辑器是否具有文档符号提供程序",editorHasHoverProvider:"编辑器是否具有悬停提供程序",editorHasImplementationProvider:"编辑器是否具有实现提供程序",editorHasInlayHintsProvider:"编辑器是否具有内联提示提供程序",editorHasMultipleDocumentFormattingProvider:"编辑器是否具有多个文档格式设置提供程序",editorHasMultipleDocumentSelectionFormattingProvider:"编辑器是否有多个文档选择格式设置提供程序",editorHasMultipleSelections:"编辑器是否有多个选择",editorHasReferenceProvider:"编辑器是否具有引用提供程序",editorHasRenameProvider:"编辑器是否具有重命名提供程序",editorHasSelection:"编辑器是否已选定文本",editorHasSignatureHelpProvider:"编辑器是否具有签名帮助提供程序",editorHasTypeDefinitionProvider:"编辑器是否具有类型定义提供程序",editorHoverFocused:"是否聚焦编辑器悬停",editorHoverVisible:"编辑器软键盘是否可见",editorLangId:"编辑器的语言标识符",editorReadonly:"编辑器是否为只读",editorTabMovesFocus:'"Tab" 是否将焦点移出编辑器',editorTextFocus:"编辑器文本是否具有焦点(光标是否闪烁)",inCompositeEditor:"该编辑器是否是更大的编辑器(例如笔记本)的一部分",inDiffEditor:"上下文是否为差异编辑器",inMultiDiffEditor:"上下文是否为多个差异编辑器",isEmbeddedDiffEditor:"上下文是否为嵌入式差异编辑器",multiDiffEditorAllCollapsed:"是否折叠多差异编辑器中的所有文件",standaloneColorPickerFocused:"独立颜色选取器是否聚焦",standaloneColorPickerVisible:"独立颜色选取器是否可见",stickyScrollFocused:"是否聚焦粘性滚动",stickyScrollVisible:"粘性滚动是否可见",textInputFocus:"编辑器或 RTF 输入是否有焦点(光标是否闪烁)"},"vs/editor/common/languages":{Array:"数组",Boolean:"布尔值",Class:"类",Constant:"常数",Constructor:"构造函数",Enum:"枚举",EnumMember:"枚举成员",Event:"事件",Field:"字段",File:"文件",Function:"函数",Interface:"接口",Key:"键",Method:"方法",Module:"模块",Namespace:"命名空间",Null:"Null",Number:"数字",Object:"对象",Operator:"运算符",Package:"包",Property:"属性",String:"字符串",Struct:"结构",TypeParameter:"类型参数",Variable:"变量",symbolAriaLabel:"{0} ({1})"},"vs/editor/common/languages/modesRegistry":{"plainText.alias":"纯文本"},"vs/editor/common/model/editStack":{edit:"输入"},"vs/editor/common/standaloneStrings":{accessibilityHelpMessage:"按 Alt+F1 可打开辅助功能选项。",accessibilityHelpTitle:"辅助功能帮助",auto_off:"对该应用程序进行配置但不优化,以配合屏幕读取器的使用。",auto_on:"对该应用程序进行配置并优化,以配合屏幕读取器的使用。",bulkEditServiceSummary:"在 {1} 个文件中进行了 {0} 次编辑",changeConfigToOnMac:"将应用程序配置为使用屏幕阅读器 (Command+E) 进行优化。",changeConfigToOnWinLinux:"将应用程序配置为使用屏幕阅读器 (Control+E) 进行优化。",editableDiffEditor:"在一个差异编辑器的窗格中。",editableEditor:"在代码编辑器中。",editorViewAccessibleLabel:"编辑器内容",gotoLineActionLabel:"转到行/列...",helpQuickAccess:"显示所有快速访问提供程序",inspectTokens:"开发人员: 检查令牌",listAnnouncementsCommand:"运行命令: 列出信号公告以概览公告及其当前状态。",listSignalSoundsCommand:"运行命令: 列出信号声音以概览所有声音及其当前状态。",openingDocs:"打开辅助功能文档页。",quickChatCommand:"切换快速聊天({0})以打开或关闭聊天会话。",quickChatCommandNoKb:"当前无法通过键绑定触发快速聊天切换。",quickCommandActionHelp:"显示并运行命令",quickCommandActionLabel:"命令面板",quickOutlineActionLabel:"转到符号...",quickOutlineByCategoryActionLabel:"按类别转到符号...",readonlyDiffEditor:"在差异编辑器的只读窗格中。",readonlyEditor:"在只读代码编辑器中。",screenReaderModeDisabled:"已禁用屏幕阅读器优化模式。",screenReaderModeEnabled:"已启用屏幕阅读器优化模式。",showAccessibilityHelpAction:"显示辅助功能帮助",startInlineChatCommand:"开始内联聊天({0})以创建编辑器聊天会话。",startInlineChatCommandNoKb:"命令:当前无法通过键绑定启动内联聊天。",stickScrollKb:"聚焦粘滞滚动({0})以聚焦当前嵌套的作用域。",stickScrollNoKb:"聚焦粘滞滚动以聚焦当前嵌套的范围。当前无法通过键绑定触发。",tabFocusModeOffMsg:"在当前编辑器中按 Tab 将插入选项卡字符。将此行为切换 {0}。",tabFocusModeOffMsgNoKb:"在当前编辑器中按 Tab 会插入制表符。当前无法通过键绑定触发命令 {0}。",tabFocusModeOnMsg:"在当前编辑器中按 Tab 会将焦点移动到下一个可聚焦元素。将此行为切换 {0}。",tabFocusModeOnMsgNoKb:"在当前编辑器中按 Tab 会将焦点移动到下一个可聚焦的元素。当前无法通过按键绑定触发命令 {0}。",toggleHighContrast:"切换高对比度主题"},"vs/editor/common/viewLayout/viewLineRenderer":{"overflow.chars":"{0} 字符",showMore:"显示更多({0})"},"vs/editor/contrib/anchorSelect/browser/anchorSelect":{anchorSet:"定位点设置为 {0}:{1}",cancelSelectionAnchor:"取消选择定位点",goToSelectionAnchor:"转到选择定位点",selectFromAnchorToCursor:"选择从定位点到光标",selectionAnchor:"选择定位点",setSelectionAnchor:"设置选择定位点"},"vs/editor/contrib/bracketMatching/browser/bracketMatching":{miGoToBracket:"转到括号(&&B)",overviewRulerBracketMatchForeground:"概览标尺上表示匹配括号的标记颜色。","smartSelect.jumpBracket":"转到括号","smartSelect.removeBrackets":"删除括号","smartSelect.selectToBracket":"选择括号所有内容","smartSelect.selectToBracketDescription":"选择其中的文本,包括括号或大括号"},"vs/editor/contrib/caretOperations/browser/caretOperations":{"caret.moveLeft":"向左移动所选文本","caret.moveRight":"向右移动所选文本"},"vs/editor/contrib/caretOperations/browser/transpose":{"transposeLetters.label":"转置字母"},"vs/editor/contrib/clipboard/browser/clipboard":{"actions.clipboard.copyLabel":"复制","actions.clipboard.copyWithSyntaxHighlightingLabel":"复制并突出显示语法","actions.clipboard.cutLabel":"剪切","actions.clipboard.pasteLabel":"粘贴","copy as":"复制为",miCopy:"复制(&&C)",miCut:"剪切(&&T)",miPaste:"粘贴(&&P)",share:"共享"},"vs/editor/contrib/codeAction/browser/codeAction":{applyCodeActionFailed:"应用代码操作时发生未知错误"},"vs/editor/contrib/codeAction/browser/codeActionCommands":{"args.schema.apply":"控制何时应用返回的操作。","args.schema.apply.first":"始终应用第一个返回的代码操作。","args.schema.apply.ifSingle":"如果仅返回的第一个代码操作,则应用该操作。","args.schema.apply.never":"不要应用返回的代码操作。","args.schema.kind":"要运行的代码操作的种类。","args.schema.preferred":"如果只应返回首选代码操作,则应返回控件。","autoFix.label":"自动修复...","editor.action.autoFix.noneMessage":"没有可用的自动修复程序","editor.action.codeAction.noneMessage":"没有可用的代码操作","editor.action.codeAction.noneMessage.kind":'没有适用于"{0}"的代码操作',"editor.action.codeAction.noneMessage.preferred":"没有可用的首选代码操作","editor.action.codeAction.noneMessage.preferred.kind":'没有适用于"{0}"的首选代码操作',"editor.action.organize.noneMessage":"没有可用的整理 import 语句操作","editor.action.quickFix.noneMessage":"没有可用的代码操作","editor.action.refactor.noneMessage":"没有可用的重构操作","editor.action.refactor.noneMessage.kind":'没有可用的"{0}"重构',"editor.action.refactor.noneMessage.preferred":"没有可用的首选重构","editor.action.refactor.noneMessage.preferred.kind":'没有适用于"{0}"的首选重构',"editor.action.source.noneMessage":"没有可用的源代码操作","editor.action.source.noneMessage.kind":"没有适用于“ {0}”的源操作","editor.action.source.noneMessage.preferred":"没有可用的首选源操作","editor.action.source.noneMessage.preferred.kind":'没有适用于"{0}"的首选源操作',"fixAll.label":"全部修复","fixAll.noneMessage":"没有可用的“全部修复”操作","organizeImports.label":"整理 import 语句","quickfix.trigger.label":"快速修复...","refactor.label":"重构...","source.label":"源代码操作..."},"vs/editor/contrib/codeAction/browser/codeActionContributions":{includeNearbyQuickFixes:"启用/禁用在当前未进行诊断时显示行内最近的快速修复。",showCodeActionHeaders:"启用/禁用在代码操作菜单中显示组标头。"},"vs/editor/contrib/codeAction/browser/codeActionController":{editingNewSelection:"上下文: {0} 位于行 {1} 和列 {2}。",hideMoreActions:"隐藏已禁用项",showMoreActions:"显示已禁用项"},"vs/editor/contrib/codeAction/browser/codeActionMenu":{"codeAction.widget.id.convert":"重写","codeAction.widget.id.extract":"提取","codeAction.widget.id.inline":"内联","codeAction.widget.id.more":"更多操作...","codeAction.widget.id.move":"移动","codeAction.widget.id.quickfix":"快速修复","codeAction.widget.id.source":"源代码操作","codeAction.widget.id.surround":"外侧代码"},"vs/editor/contrib/codeAction/browser/lightBulbWidget":{codeAction:"显示代码操作",codeActionAutoRun:"运行:{0}",codeActionWithKb:"显示代码操作({0})",preferredcodeActionWithKb:"显示代码操作。首选可用的快速修复({0})"},"vs/editor/contrib/codelens/browser/codelensController":{placeHolder:"选择命令",showLensOnLine:"显示当前行的 Code Lens 命令"},"vs/editor/contrib/colorPicker/browser/colorPickerWidget":{clickToToggleColorOptions:"单击以切换颜色选项 (rgb/hsl/hex)",closeIcon:"用于关闭颜色选取器的图标"},"vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions":{hideColorPicker:"隐藏颜色选取器",hideColorPickerDescription:"隐藏独立颜色选取器。",insertColorWithStandaloneColorPicker:"使用独立颜色选取器插入颜色",insertColorWithStandaloneColorPickerDescription:"使用重点独立颜色选取器插入十六进制/RGB/HSL 颜色。",mishowOrFocusStandaloneColorPicker:"&&显示或聚焦独立颜色选取器",showOrFocusStandaloneColorPicker:"显示或聚焦独立颜色选取器",showOrFocusStandaloneColorPickerDescription:"显示或聚焦使用默认颜色提供程序的独立颜色选取器。它将显示十六进制/RGB/HSL 颜色。"},"vs/editor/contrib/comment/browser/comment":{"comment.block":"切换块注释","comment.line":"切换行注释","comment.line.add":"添加行注释","comment.line.remove":"删除行注释",miToggleBlockComment:"切换块注释(&&B)",miToggleLineComment:"切换行注释(&&T)"},"vs/editor/contrib/contextmenu/browser/contextmenu":{"action.showContextMenu.label":"显示编辑器上下文菜单","context.minimap.minimap":"缩略图","context.minimap.renderCharacters":"呈现字符","context.minimap.size":"垂直大小","context.minimap.size.fill":"填充","context.minimap.size.fit":"适应","context.minimap.size.proportional":"成比例","context.minimap.slider":"滑块","context.minimap.slider.always":"始终","context.minimap.slider.mouseover":"鼠标悬停"},"vs/editor/contrib/cursorUndo/browser/cursorUndo":{"cursor.redo":"光标重做","cursor.undo":"光标撤消"},"vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution":{pasteAs:"粘贴为...","pasteAs.kind":"要尝试应用的粘贴编辑的类型。如果未提供或有多个此类编辑,编辑器将显示一个选取器。",pasteAsText:"粘贴为文本"},"vs/editor/contrib/dropOrPasteInto/browser/copyPasteController":{pasteAsError:"找不到“{0}”的粘贴编辑",pasteAsPickerPlaceholder:"选择粘贴操作",pasteAsProgress:"正在运行粘贴处理程序",pasteIntoEditorProgress:"正在运行粘贴处理程序。单击以取消",pasteWidgetVisible:"是否显示粘贴小组件",postPasteWidgetTitle:"显示粘贴选项..."},"vs/editor/contrib/dropOrPasteInto/browser/defaultProviders":{"defaultDropProvider.uriList.path":"插入路径","defaultDropProvider.uriList.paths":"插入路径","defaultDropProvider.uriList.relativePath":"插入相对路径","defaultDropProvider.uriList.relativePaths":"插入相对路径","defaultDropProvider.uriList.uri":"插入 URI","defaultDropProvider.uriList.uris":"插入 URI",pasteHtmlLabel:"插入 HTML","text.label":"插入纯文本"},"vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution":{defaultProviderDescription:"将默认放置提供程序配置为用于给定 MIME 类型的内容。"},"vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController":{dropIntoEditorProgress:"正在运行放置处理程序。单击以取消",dropWidgetVisible:"是否显示放置小组件",postDropWidgetTitle:"显示放置选项..."},"vs/editor/contrib/editorState/browser/keybindingCancellation":{cancellableOperation:"编辑器是否运行可取消的操作,例如“预览引用”"},"vs/editor/contrib/find/browser/findController":{"findMatchAction.goToMatch":"转到“匹配”...","findMatchAction.inputPlaceHolder":"键入数字以转到特定匹配项(介于 1 和 {0} 之间)","findMatchAction.inputValidationMessage":"请键入介于 1 和 {0} 之间的数字","findMatchAction.noResults":"无匹配项。请尝试搜索其他内容。",findNextMatchAction:"查找下一个",findPreviousMatchAction:"查找上一个",miFind:"查找(&&F)",miReplace:"替换(&&R)",nextSelectionMatchFindAction:"查找下一个选择",previousSelectionMatchFindAction:"查找上一个选择",startFindAction:"查找",startFindWithArgsAction:"使用参数查找",startFindWithSelectionAction:"查找选定内容",startReplace:"替换","too.large.for.replaceall":"文件太大,无法执行全部替换操作。"},"vs/editor/contrib/find/browser/findWidget":{ariaSearchNoResult:"为“{1}”找到 {0}",ariaSearchNoResultEmpty:"找到 {0}",ariaSearchNoResultWithLineNum:"在 {2} 处找到“{1}”的 {0}",ariaSearchNoResultWithLineNumNoCurrentMatch:"为“{1}”找到 {0}","ctrlEnter.keybindingChanged":"Ctrl+Enter 现在由全部替换改为插入换行。你可以修改editor.action.replaceAll 的按键绑定以覆盖此行为。",findCollapsedIcon:"用于指示编辑器查找小组件已折叠的图标。",findExpandedIcon:"用于指示编辑器查找小组件已展开的图标。",findNextMatchIcon:"编辑器查找小组件中的“查找下一个”图标。",findPreviousMatchIcon:"编辑器查找小组件中的“查找上一个”图标。",findReplaceAllIcon:"编辑器查找小组件中的“全部替换”图标。",findReplaceIcon:"编辑器查找小组件中的“替换”图标。",findSelectionIcon:"编辑器查找小组件中的“在选定内容中查找”图标。","label.closeButton":"关闭","label.find":"查找","label.findDialog":"查找/替换","label.matchesLocation":"第 {0} 项,共 {1} 项","label.nextMatchButton":"下一个匹配项","label.noResults":"无结果","label.previousMatchButton":"上一个匹配项","label.replace":"替换","label.replaceAllButton":"全部替换","label.replaceButton":"替换","label.toggleReplaceButton":"切换替换","label.toggleSelectionFind":"在选定内容中查找","placeholder.find":"查找","placeholder.replace":"替换","title.matchesCountLimit":"仅高亮了前 {0} 个结果,但所有查找操作均针对全文。"},"vs/editor/contrib/folding/browser/folding":{"createManualFoldRange.label":"根据所选内容创建折叠范围","foldAction.label":"折叠","foldAllAction.label":"全部折叠","foldAllBlockComments.label":"折叠所有块注释","foldAllExcept.label":"折叠除选定项以外的所有项","foldAllMarkerRegions.label":"折叠所有区域","foldLevelAction.label":"折叠级别 {0}","foldRecursivelyAction.label":"以递归方式折叠","gotoNextFold.label":"转到下一个折叠范围","gotoParentFold.label":"跳转到父级折叠","gotoPreviousFold.label":"转到上一个折叠范围","removeManualFoldingRanges.label":"删除手动折叠范围","toggleFoldAction.label":"切换折叠","unFoldRecursivelyAction.label":"以递归方式展开","unfoldAction.label":"展开","unfoldAllAction.label":"全部展开","unfoldAllExcept.label":"展开除所选区域之外的所有区域","unfoldAllMarkerRegions.label":"展开所有区域"},"vs/editor/contrib/folding/browser/foldingDecorations":{"editorGutter.foldingControlForeground":"编辑器装订线中折叠控件的颜色。",foldBackgroundBackground:"折叠范围后面的背景颜色。颜色必须设为透明,以免隐藏底层装饰。",foldingCollapsedIcon:"编辑器字形边距中已折叠的范围的图标。",foldingExpandedIcon:"编辑器字形边距中已展开的范围的图标。",foldingManualCollapedIcon:"编辑器字形边距中手动折叠的范围的图标。",foldingManualExpandedIcon:"编辑器字形边距中手动展开的范围的图标。",linesCollapsed:"单击以展开范围。",linesExpanded:"单击以折叠范围。"},"vs/editor/contrib/fontZoom/browser/fontZoom":{"EditorFontZoomIn.label":"增大编辑器字号","EditorFontZoomOut.label":"减小编辑器字号","EditorFontZoomReset.label":"重置编辑器字号"},"vs/editor/contrib/format/browser/formatActions":{"formatDocument.label":"格式化文档","formatSelection.label":"格式化选定内容"},"vs/editor/contrib/gotoError/browser/gotoError":{"markerAction.next.label":"转到下一个问题 (错误、警告、信息)","markerAction.nextInFiles.label":"转到文件中的下一个问题 (错误、警告、信息)","markerAction.previous.label":"转到上一个问题 (错误、警告、信息)","markerAction.previousInFiles.label":"转到文件中的上一个问题 (错误、警告、信息)",miGotoNextProblem:"下一个问题(&&P)",miGotoPreviousProblem:"上一个问题(&&P)",nextMarkerIcon:"“转到下一个”标记的图标。",previousMarkerIcon:"“转到上一个”标记的图标。"},"vs/editor/contrib/gotoError/browser/gotoErrorWidget":{Error:"错误",Hint:"提示",Info:"信息",Warning:"警告",change:"{0} 个问题(共 {1} 个)",editorMarkerNavigationBackground:"编辑器标记导航小组件背景色。",editorMarkerNavigationError:"编辑器标记导航小组件错误颜色。",editorMarkerNavigationErrorHeaderBackground:"编辑器标记导航小组件错误标题背景色。",editorMarkerNavigationInfo:"编辑器标记导航小组件信息颜色。",editorMarkerNavigationInfoHeaderBackground:"编辑器标记导航小组件信息标题背景色。",editorMarkerNavigationWarning:"编辑器标记导航小组件警告颜色。",editorMarkerNavigationWarningBackground:"编辑器标记导航小组件警告标题背景色。","marker aria":"{1} 中的 {0}",problems:"{0} 个问题(共 {1} 个)"},"vs/editor/contrib/gotoSymbol/browser/goToCommands":{"actions.goToDecl.label":"转到定义","actions.goToDeclToSide.label":"打开侧边的定义","actions.goToDeclaration.label":"转到声明","actions.goToImplementation.label":"转到实现","actions.goToTypeDefinition.label":"转到类型定义","actions.peekDecl.label":"查看声明","actions.peekImplementation.label":"查看实现","actions.peekTypeDefinition.label":"快速查看类型定义","actions.previewDecl.label":"速览定义","decl.generic.noResults":"未找到声明","decl.noResultWord":"未找到“{0}”的声明","decl.title":"声明","def.title":"定义","generic.noResult":"无“{0}”的结果","generic.noResults":"找不到定义","generic.title":"位置","goToImplementation.generic.noResults":"未找到实现","goToImplementation.noResultWord":"未找到“{0}”的实现","goToReferences.label":"转到引用","goToTypeDefinition.generic.noResults":"未找到类型定义","goToTypeDefinition.noResultWord":"未找到“{0}”的类型定义","impl.title":"实现","label.generic":"转到任何符号",miGotoDeclaration:"转到声明(&&D)",miGotoDefinition:"转到定义(&&D)",miGotoImplementation:"转到实现(&&I)",miGotoReference:"转到引用(&&R)",miGotoTypeDefinition:"转到类型定义(&&T)",noResultWord:"未找到“{0}”的任何定义","peek.submenu":"快速查看","ref.title":"引用","references.action.label":"查看引用","references.no":'未找到"{0}"的引用',"references.noGeneric":"未找到引用","typedef.title":"类型定义"},"vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition":{multipleResults:"单击显示 {0} 个定义。"},"vs/editor/contrib/gotoSymbol/browser/peek/referencesController":{labelLoading:"正在加载...","metaTitle.N":"{0} ({1})",referenceSearchVisible:"引用速览是否可见,例如“速览引用”或“速览定义”"},"vs/editor/contrib/gotoSymbol/browser/peek/referencesTree":{referenceCount:"{0} 个引用",referencesCount:"{0} 个引用",treeAriaLabel:"引用"},"vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget":{missingPreviewMessage:"无可用预览",noResults:"无结果","peekView.alternateTitle":"引用"},"vs/editor/contrib/gotoSymbol/browser/referencesModel":{"aria.fileReferences.1":"{0} 中有 1 个符号,完整路径: {1}","aria.fileReferences.N":"{1} 中有 {0} 个符号,完整路径: {2}","aria.oneReference":"在列 {2} 行 {1} 的 {0} 中","aria.oneReference.preview":"在列 {3} 行 {2} 的 {1} 中的 {0}","aria.result.0":"未找到结果","aria.result.1":"在 {0} 中找到 1 个符号","aria.result.n1":"在 {1} 中找到 {0} 个符号","aria.result.nm":"在 {1} 个文件中找到 {0} 个符号"},"vs/editor/contrib/gotoSymbol/browser/symbolNavigation":{hasSymbols:"是否存在只能通过键盘导航的符号位置。",location:"{1} 的符号 {0}","location.kb":"{1} 的符号 {0},下一个使用 {2}"},"vs/editor/contrib/hover/browser/hoverActions":{decreaseHoverVerbosityLevel:"降低悬停详细程度级别",goToBottomHover:"转到底部悬停",goToBottomHoverDescription:"转到编辑器悬停的底部。",goToTopHover:"转到顶部悬停",goToTopHoverDescription:"转到编辑器悬停的顶部。",increaseHoverVerbosityLevel:"提高悬停详细程度级别",pageDownHover:"向下翻页悬停",pageDownHoverDescription:"将编辑器悬停向下翻页。",pageUpHover:"向上翻页悬停",pageUpHoverDescription:"将编辑器悬停向上翻页。",scrollDownHover:"向下滚动悬停",scrollDownHoverDescription:"向下滚动编辑器悬停。",scrollLeftHover:"向左滚动悬停",scrollLeftHoverDescription:"向左滚动编辑器悬停。",scrollRightHover:"向右滚动悬停",scrollRightHoverDescription:"向右滚动编辑器悬停。",scrollUpHover:"向上滚动悬停",scrollUpHoverDescription:"向上滚动编辑器悬停。",showDefinitionPreviewHover:"显示定义预览悬停",showDefinitionPreviewHoverDescription:"在编辑器中显示定义预览悬停。",showOrFocusHover:"显示或聚焦悬停","showOrFocusHover.focus.autoFocusImmediately":"悬停在出现时会自动获得焦点。","showOrFocusHover.focus.focusIfVisible":"仅当悬停已可见时,才会获得焦点。","showOrFocusHover.focus.noAutoFocus":"悬停不会自动获得焦点。",showOrFocusHoverDescription:"显示或聚焦编辑器悬停,该悬停将在当前光标位置显示符号的文档、引用和其他内容。"},"vs/editor/contrib/hover/browser/markdownHoverParticipant":{decreaseHoverVerbosity:"用于降低悬停详细程度的图标。",decreaseVerbosity:"降低详细程度",decreaseVerbosityWithKb:"降低详细程度({0})",increaseHoverVerbosity:"用于提高悬停详细程度的图标。",increaseVerbosity:"提高详细程度",increaseVerbosityWithKb:"提高详细程度({0})","modesContentHover.loading":"正在加载...","stopped rendering":"由于性能原因,长线的呈现已暂停。可通过`editor.stopRenderingLineAfter`配置此设置。","too many characters":"出于性能原因,未对长行进行解析。解析长度阈值可通过“editor.maxTokenizationLineLength”进行配置。"},"vs/editor/contrib/hover/browser/markerHoverParticipant":{checkingForQuickFixes:"正在检查快速修复...",noQuickFixes:"没有可用的快速修复","quick fixes":"快速修复...","view problem":"查看问题"},"vs/editor/contrib/indentation/browser/indentation":{changeTabDisplaySize:"更改制表符显示大小",changeTabDisplaySizeDescription:"更改制表符的等效空间大小。",configuredTabSize:"已配置制表符大小",currentTabSize:"当前选项卡大小",defaultTabSize:"默认选项卡大小",detectIndentation:"从内容中检测缩进方式",detectIndentationDescription:"检测内容的缩进。","editor.reindentlines":"重新缩进行","editor.reindentlinesDescription":"重新设计编辑器的行缩进。","editor.reindentselectedlines":"重新缩进所选行","editor.reindentselectedlinesDescription":"重新设计编辑器所选行的缩进。",indentUsingSpaces:"使用空格缩进",indentUsingSpacesDescription:"使用空格缩进。",indentUsingTabs:"使用制表符缩进",indentUsingTabsDescription:"使用制表符缩进。",indentationToSpaces:"将缩进转换为空格",indentationToSpacesDescription:"将制表符缩进转换为空格。",indentationToTabs:"将缩进转换为制表符",indentationToTabsDescription:"将空格缩进转换为制表符。",selectTabWidth:"选择当前文件的制表符大小"},"vs/editor/contrib/inlayHints/browser/inlayHintsHover":{"hint.cmd":"执行命令","hint.dbl":"双击以插入","hint.def":"转到定义({0})","hint.defAndCommand":"转到定义 ({0}),点击右键以查看详细信息","links.navigate.kb.alt":"alt + 点击","links.navigate.kb.alt.mac":"option + 点击","links.navigate.kb.meta":"ctrl + 点击","links.navigate.kb.meta.mac":"cmd + 点击"},"vs/editor/contrib/inlineCompletions/browser/commands":{accept:"接受",acceptLine:"接受行",acceptWord:"接受 Word","action.inlineSuggest.accept":"接受内联建议","action.inlineSuggest.acceptNextLine":"接受内联建议的下一行","action.inlineSuggest.acceptNextWord":"接受内联建议的下一个字","action.inlineSuggest.alwaysShowToolbar":"始终显示工具栏","action.inlineSuggest.hide":"隐藏内联建议","action.inlineSuggest.showNext":"显示下一个内联建议","action.inlineSuggest.showPrevious":"显示上一个内联建议","action.inlineSuggest.trigger":"触发内联建议"},"vs/editor/contrib/inlineCompletions/browser/hoverParticipant":{inlineSuggestionFollows:"建议:"},"vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys":{inlineSuggestionHasIndentation:"内联建议是否以空白开头",inlineSuggestionHasIndentationLessThanTabSize:"内联建议是否以小于选项卡插入内容的空格开头",inlineSuggestionVisible:"内联建议是否可见",suppressSuggestions:"是否应抑制当前建议"},"vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController":{showAccessibleViewHint:"在辅助视图中检查此项 ({0})"},"vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget":{content:"{0} ({1})",next:"下一个",parameterHintsNextIcon:"“显示下一个参数”提示的图标。",parameterHintsPreviousIcon:"“显示上一个参数”提示的图标。",previous:"上一个"},"vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace":{"InPlaceReplaceAction.next.label":"替换为下一个值","InPlaceReplaceAction.previous.label":"替换为上一个值"},"vs/editor/contrib/lineSelection/browser/lineSelection":{expandLineSelection:"展开行选择"},"vs/editor/contrib/linesOperations/browser/linesOperations":{duplicateSelection:"重复选择","editor.transformToCamelcase":"转换为驼峰式大小写","editor.transformToKebabcase":"转换为 Kebab 案例","editor.transformToLowercase":"转换为小写","editor.transformToPascalcase":"转换为帕斯卡式大小写形式","editor.transformToSnakecase":"转换为蛇形命名法","editor.transformToTitlecase":"转换为词首字母大写","editor.transformToUppercase":"转换为大写","editor.transpose":"转置光标处的字符","lines.copyDown":"向下复制行","lines.copyUp":"向上复制行","lines.delete":"删除行","lines.deleteAllLeft":"删除左侧所有内容","lines.deleteAllRight":"删除右侧所有内容","lines.deleteDuplicates":"删除重复行","lines.indent":"行缩进","lines.insertAfter":"在下面插入行","lines.insertBefore":"在上面插入行","lines.joinLines":"合并行","lines.moveDown":"向下移动行","lines.moveUp":"向上移动行","lines.outdent":"行减少缩进","lines.sortAscending":"按升序排列行","lines.sortDescending":"按降序排列行","lines.trimTrailingWhitespace":"裁剪尾随空格",miCopyLinesDown:"向下复制一行(&&P)",miCopyLinesUp:"向上复制一行(&&C)",miDuplicateSelection:"重复选择(&&D)",miMoveLinesDown:"向下移动一行(&&L)",miMoveLinesUp:"向上移动一行(&&V)"},"vs/editor/contrib/linkedEditing/browser/linkedEditing":{editorLinkedEditingBackground:"编辑器根据类型自动重命名时的背景色。","linkedEditing.label":"启动链接编辑"},"vs/editor/contrib/links/browser/links":{"invalid.url":"此链接格式不正确,无法打开: {0}",label:"打开链接","links.navigate.executeCmd":"执行命令","links.navigate.follow":"打开链接","links.navigate.kb.alt":"alt + 单击","links.navigate.kb.alt.mac":"option + 单击","links.navigate.kb.meta":"ctrl + 单击","links.navigate.kb.meta.mac":"cmd + 单击","missing.url":"此链接目标已丢失,无法打开。","tooltip.explanation":"执行命令 {0}"},"vs/editor/contrib/message/browser/messageController":{messageVisible:"编辑器当前是否正在显示内联消息"},"vs/editor/contrib/multicursor/browser/multicursor":{addSelectionToNextFindMatch:"将下一个查找匹配项添加到选择",addSelectionToPreviousFindMatch:"将选择内容添加到上一查找匹配项","changeAll.label":"更改所有匹配项",cursorAdded:"添加的光标: {0}",cursorsAdded:"添加的游标: {0}",miAddSelectionToNextFindMatch:"添加下一个匹配项(&&N)",miAddSelectionToPreviousFindMatch:"添加上一个匹配项(&&R)",miInsertCursorAbove:"在上面添加光标(&&A)",miInsertCursorAtEndOfEachLineSelected:"在行尾添加光标(&&U)",miInsertCursorBelow:"在下面添加光标(&&D)",miSelectHighlights:"选择所有匹配项(&&O)",moveSelectionToNextFindMatch:"将上次选择移动到下一个查找匹配项",moveSelectionToPreviousFindMatch:"将上个选择内容移动到上一查找匹配项","mutlicursor.addCursorsToBottom":"在底部添加光标","mutlicursor.addCursorsToTop":"在顶部添加光标","mutlicursor.focusNextCursor":"聚焦下一个光标","mutlicursor.focusNextCursor.description":"聚焦下一个光标","mutlicursor.focusPreviousCursor":"聚焦上一个光标","mutlicursor.focusPreviousCursor.description":"聚焦上一个光标","mutlicursor.insertAbove":"在上面添加光标","mutlicursor.insertAtEndOfEachLineSelected":"在行尾添加光标","mutlicursor.insertBelow":"在下面添加光标",selectAllOccurrencesOfFindMatch:"选择所有找到的查找匹配项"},"vs/editor/contrib/parameterHints/browser/parameterHints":{"parameterHints.trigger.label":"触发参数提示"},"vs/editor/contrib/parameterHints/browser/parameterHintsWidget":{editorHoverWidgetHighlightForeground:"参数提示中活动项的前景色。",hint:"{0},提示",parameterHintsNextIcon:"“显示下一个参数”提示的图标。",parameterHintsPreviousIcon:"“显示上一个参数”提示的图标。"},"vs/editor/contrib/peekView/browser/peekView":{inReferenceSearchEditor:"速览中是否嵌入了当前代码编辑器","label.close":"关闭",peekViewBorder:"速览视图边框和箭头颜色。",peekViewEditorBackground:"速览视图编辑器背景色。",peekViewEditorGutterBackground:"速览视图编辑器中装订线的背景色。",peekViewEditorMatchHighlight:"在速览视图编辑器中匹配突出显示颜色。",peekViewEditorMatchHighlightBorder:"在速览视图编辑器中匹配项的突出显示边框。",peekViewEditorStickScrollBackground:"速览视图编辑器中粘滞滚动的背景色。",peekViewResultsBackground:"速览视图结果列表背景色。",peekViewResultsFileForeground:"速览视图结果列表中文件节点的前景色。",peekViewResultsMatchForeground:"速览视图结果列表中行节点的前景色。",peekViewResultsMatchHighlight:"在速览视图结果列表中匹配突出显示颜色。",peekViewResultsSelectionBackground:"速览视图结果列表中所选条目的背景色。",peekViewResultsSelectionForeground:"速览视图结果列表中所选条目的前景色。",peekViewTitleBackground:"速览视图标题区域背景颜色。",peekViewTitleForeground:"速览视图标题颜色。",peekViewTitleInfoForeground:"速览视图标题信息颜色。"},"vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess":{cannotRunGotoLine:"先打开文本编辑器然后跳转到行。",gotoLineColumnLabel:"转到第 {0} 行第 {1} 个字符。",gotoLineLabel:"转到行 {0}。",gotoLineLabelEmpty:"当前行: {0},字符: {1}。 键入要导航到的行号。",gotoLineLabelEmptyWithLimit:"当前行: {0},字符: {1}。键入要导航到的行号(介于 1 至 {2} 之间)。"},"vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess":{_constructor:"构造函数 ({0})",array:"数组({0})",boolean:"布尔值({0})",cannotRunGotoSymbolWithoutEditor:"要转到符号,首先打开具有符号信息的文本编辑器。",cannotRunGotoSymbolWithoutSymbolProvider:"活动文本编辑器不提供符号信息。",class:"类({0})",constant:"常量({0})",enum:"枚举({0})",enumMember:"枚举成员({0})",event:"事件({0})",field:"字段({0})",file:"文件({0})",function:"函数({0})",interface:"接口({0})",key:"键({0})",method:"方法({0})",modules:"模块({0})",namespace:"命名空间({0})",noMatchingSymbolResults:"没有匹配的编辑器符号",noSymbolResults:"没有编辑器符号",number:"数字({0})",object:"对象({0})",openToBottom:"在底部打开",openToSide:"在侧边打开",operator:"运算符({0})",package:"包({0})",property:"属性({0})",string:"字符串({0})",struct:"结构({0})",symbols:"符号({0})",typeParameter:"类型参数({0})",variable:"变量({0})"},"vs/editor/contrib/readOnlyMessage/browser/contribution":{"editor.readonly":"无法在只读编辑器中编辑","editor.simple.readonly":"无法在只读输入中编辑"},"vs/editor/contrib/rename/browser/rename":{aria:"成功将“{0}”重命名为“{1}”。摘要: {2}",enablePreview:"启用/禁用重命名之前预览更改的功能",focusNextRenameSuggestion:"聚焦下一个重命名建议",focusPreviousRenameSuggestion:"聚焦上一个重命名建议",label:"正在将“{0}”重命名为“{1}”","no result":"无结果。",quotableLabel:"将 {0} 重命名为 {1}","rename.failed":"重命名无法计算修改","rename.failedApply":"重命名无法应用修改","rename.label":"重命名符号",resolveRenameLocationFailed:"解析重命名位置时发生未知错误"},"vs/editor/contrib/rename/browser/renameWidget":{cancelRenameSuggestionsButton:"取消",generateRenameSuggestionsButton:"生成新的名称建议",label:"按 {0} 进行重命名,按 {1} 进行预览",renameAriaLabel:'重命名输入。键入新名称并按 "Enter" 提交。',renameInputFocused:"是否聚焦重命名输入小组件",renameInputVisible:"重命名输入小组件是否可见",renameSuggestionsReceivedAria:"已收到 {0} 重命名建议"},"vs/editor/contrib/smartSelect/browser/smartSelect":{miSmartSelectGrow:"扩大选区(&&E)",miSmartSelectShrink:"缩小选区(&&S)","smartSelect.expand":"展开选择","smartSelect.shrink":"收起选择"},"vs/editor/contrib/snippet/browser/snippetController2":{hasNextTabstop:"在代码片段模式下时是否存在下一制表位",hasPrevTabstop:"在代码片段模式下时是否存在上一制表位",inSnippetMode:"编辑器目前是否在代码片段模式下",next:"转到下一个占位符..."},"vs/editor/contrib/snippet/browser/snippetVariables":{April:"四月",AprilShort:"4月",August:"八月",AugustShort:"8月",December:"十二月",DecemberShort:"12月",February:"二月",FebruaryShort:"2月",Friday:"星期五",FridayShort:"周五",January:"一月",JanuaryShort:"1月",July:"七月",JulyShort:"7月",June:"六月",JuneShort:"6月",March:"三月",MarchShort:"3月",May:"5月",MayShort:"5月",Monday:"星期一",MondayShort:"周一",November:"十一月",NovemberShort:"11 月",October:"十月",OctoberShort:"10月",Saturday:"星期六",SaturdayShort:"周六",September:"九月",SeptemberShort:"9月",Sunday:"星期天",SundayShort:"周日",Thursday:"星期四",ThursdayShort:"周四",Tuesday:"星期二",TuesdayShort:"周二",Wednesday:"星期三",WednesdayShort:"周三"},"vs/editor/contrib/stickyScroll/browser/stickyScrollActions":{focusStickyScroll:"将焦点放在编辑器粘性滚动上","goToFocusedStickyScrollLine.title":"转到聚焦的粘性滚动行",miStickyScroll:"粘滞滚动(&&S)",mifocusStickyScroll:"聚焦粘性滚动(&&F)",mitoggleStickyScroll:"切换编辑器粘滞滚动","selectEditor.title":"选择编辑器","selectNextStickyScrollLine.title":"选择下一个编辑器粘性滚动行","selectPreviousStickyScrollLine.title":"选择上一个粘性滚动行",stickyScroll:"粘滞滚动",toggleEditorStickyScroll:"切换编辑器粘滞滚动","toggleEditorStickyScroll.description":"切换/启用编辑器粘性滚动,该滚动显示视区顶部的嵌套范围"},"vs/editor/contrib/suggest/browser/suggest":{acceptSuggestionOnEnter:"按 Enter 时是否会插入建议",suggestWidgetDetailsVisible:"建议详细信息是否可见",suggestWidgetHasSelection:"是否以任何建议为中心",suggestWidgetMultipleSuggestions:"是否存在多条建议可供选择",suggestionCanResolve:"当前建议是否支持解析更多详细信息",suggestionHasInsertAndReplaceRange:"当前建议是否具有插入和替换行为",suggestionInsertMode:"默认行为是否是插入或替换",suggestionMakesTextEdit:"插入当前建议是否会导致更改或导致已键入所有内容"},"vs/editor/contrib/suggest/browser/suggestController":{"accept.insert":"插入","accept.replace":"替换","aria.alert.snippet":"选择“{0}”后进行了其他 {1} 次编辑","detail.less":"显示更多","detail.more":"显示更少","suggest.reset.label":"重置建议小组件大小","suggest.trigger.label":"触发建议"},"vs/editor/contrib/suggest/browser/suggestWidget":{ariaCurrenttSuggestionReadDetails:"{0},文档: {1}",editorSuggestWidgetBackground:"建议小组件的背景色。",editorSuggestWidgetBorder:"建议小组件的边框颜色。",editorSuggestWidgetFocusHighlightForeground:"当某项获得焦点时,在建议小组件中突出显示的匹配项的颜色。",editorSuggestWidgetForeground:"建议小组件的前景色。",editorSuggestWidgetHighlightForeground:"建议小组件中匹配内容的高亮颜色。",editorSuggestWidgetSelectedBackground:"建议小组件中所选条目的背景色。",editorSuggestWidgetSelectedForeground:"建议小组件中所选条目的前景色。",editorSuggestWidgetSelectedIconForeground:"建议小组件中所选条目的图标前景色。",editorSuggestWidgetStatusForeground:"建议小组件状态的前景色。","label.desc":"{0},{1}","label.detail":"{0} {1}","label.full":"{0} {1},{2}",suggest:"建议","suggestWidget.loading":"正在加载...","suggestWidget.noSuggestions":"无建议。"},"vs/editor/contrib/suggest/browser/suggestWidgetDetails":{"details.close":"关闭",loading:"正在加载…"},"vs/editor/contrib/suggest/browser/suggestWidgetRenderer":{readMore:"了解详细信息",suggestMoreInfoIcon:"建议小组件中的详细信息的图标。"},"vs/editor/contrib/suggest/browser/suggestWidgetStatus":{content:"{0} ({1})"},"vs/editor/contrib/symbolIcons/browser/symbolIcons":{"symbolIcon.arrayForeground":"数组符号的前景色。这些符号将显示在大纲、痕迹导航栏和建议小组件中。","symbolIcon.booleanForeground":"布尔符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.classForeground":"类符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.colorForeground":"颜色符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.constantForeground":"常量符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.constructorForeground":"构造函数符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.enumeratorForeground":"枚举符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.enumeratorMemberForeground":"枚举器成员符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.eventForeground":"事件符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.fieldForeground":"字段符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.fileForeground":"文件符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.folderForeground":"文件夹符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.functionForeground":"函数符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.interfaceForeground":"接口符号的前景色。这些符号将显示在大纲、痕迹导航栏和建议小组件中。","symbolIcon.keyForeground":"键符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.keywordForeground":"关键字符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.methodForeground":"方法符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.moduleForeground":"模块符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.namespaceForeground":"命名空间符号的前景颜色。这些符号出现在轮廓、痕迹导航栏和建议小部件中。","symbolIcon.nullForeground":"空符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.numberForeground":"数字符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.objectForeground":"对象符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.operatorForeground":"运算符符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.packageForeground":"包符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.propertyForeground":"属性符号的前景色。这些符号出现在大纲、痕迹导航栏和建议小组件中。","symbolIcon.referenceForeground":"参考符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.snippetForeground":"片段符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.stringForeground":"字符串符号的前景颜色。这些符号出现在轮廓、痕迹导航栏和建议小部件中。","symbolIcon.structForeground":"结构符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.textForeground":"文本符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.typeParameterForeground":"类型参数符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.unitForeground":"单位符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。","symbolIcon.variableForeground":"变量符号的前景颜色。这些符号出现在大纲、痕迹导航栏和建议小部件中。"},"vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode":{tabMovesFocusDescriptions:"确定 Tab 键是在工作台周围移动焦点,还是在当前编辑器中插入制表符。这也称为制表符补漏白、制表符导航或制表符焦点模式。","toggle.tabMovesFocus":"切换 Tab 键移动焦点","toggle.tabMovesFocus.off":"Tab 键将插入制表符","toggle.tabMovesFocus.on":"Tab 键将移动到下一可聚焦的元素"},"vs/editor/contrib/tokenization/browser/tokenization":{forceRetokenize:"开发人员: 强制重新进行标记"},"vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter":{"action.unicodeHighlight.disableHighlightingInComments":"禁用批注中字符的突出显示","action.unicodeHighlight.disableHighlightingInStrings":"禁用字符串中字符的突出显示","action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters":"禁止突出显示歧义字符","action.unicodeHighlight.disableHighlightingOfInvisibleCharacters":"禁止突出显示不可见字符","action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters":"禁止突出显示非基本 ASCII 字符","action.unicodeHighlight.showExcludeOptions":"显示排除选项","unicodeHighlight.adjustSettings":"调整设置","unicodeHighlight.allowCommonCharactersInLanguage":"允许语言“{0}”中更常见的 unicode 字符。","unicodeHighlight.characterIsAmbiguous":"字符 {0} 可能会与字符 {1} 混淆,后者在源代码中更为常见。","unicodeHighlight.characterIsAmbiguousASCII":"字符 {0} 可能会与 ASCII 字符 {1} 混淆,后者在源代码中更为常见。","unicodeHighlight.characterIsInvisible":"字符 {0} 不可见。","unicodeHighlight.characterIsNonBasicAscii":"字符 {0} 不是基本 ASCII 字符。","unicodeHighlight.configureUnicodeHighlightOptions":"配置 Unicode 突出显示选项","unicodeHighlight.disableHighlightingInComments.shortLabel":"禁用批注中的突出显示","unicodeHighlight.disableHighlightingInStrings.shortLabel":"禁用字符串中的突出显示","unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel":"禁用不明确的突出显示","unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel":"禁用不可见突出显示","unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel":"禁用非 ASCII 突出显示","unicodeHighlight.excludeCharFromBeingHighlighted":"在突出显示内容中排除{0}","unicodeHighlight.excludeInvisibleCharFromBeingHighlighted":"不突出显示 {0} (不可见字符)","unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters":"本文档包含许多不明确的 unicode 字符","unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters":"本文档包含许多不可见的 unicode 字符","unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters":"本文档包含许多非基本 ASCII unicode 字符",warningIcon:"扩展编辑器中随警告消息一同显示的图标。"},"vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators":{"unusualLineTerminators.detail":"文件“{0}”包含一个或多个异常的行终止符,例如行分隔符(LS)或段落分隔符(PS)。\r\n\r\n建议从文件中删除它们。可通过“editor.unusualLineTerminators”进行配置。","unusualLineTerminators.fix":"删除异常行终止符(&&R)","unusualLineTerminators.ignore":"忽略","unusualLineTerminators.message":"检测到异常行终止符","unusualLineTerminators.title":"异常行终止符"},"vs/editor/contrib/wordHighlighter/browser/highlightDecorations":{overviewRulerWordHighlightForeground:"用于突出显示符号的概述标尺标记颜色。颜色必须透明,以免隐藏下面的修饰效果。",overviewRulerWordHighlightStrongForeground:"用于突出显示写权限符号的概述标尺标记颜色。颜色必须透明,以免隐藏下面的修饰效果。",overviewRulerWordHighlightTextForeground:"符号在文本中出现时的概述标尺标记颜色。颜色必须透明,以免隐藏下层的修饰。",wordHighlight:"读取访问期间符号的背景色,例如读取变量时。颜色必须透明,以免隐藏下面的修饰效果。",wordHighlightBorder:"符号在进行读取访问操作时的边框颜色,例如读取变量。",wordHighlightStrong:"写入访问过程中符号的背景色,例如写入变量时。颜色必须透明,以免隐藏下面的修饰效果。",wordHighlightStrongBorder:"符号在进行写入访问操作时的边框颜色,例如写入变量。",wordHighlightText:"符号在文本中出现时的背景色。颜色必须透明,以免隐藏下层的修饰。",wordHighlightTextBorder:"符号在文本中出现时的边框颜色。"},"vs/editor/contrib/wordHighlighter/browser/wordHighlighter":{"wordHighlight.next.label":"转到下一个突出显示的符号","wordHighlight.previous.label":"转到上一个突出显示的符号","wordHighlight.trigger.label":"触发符号高亮"},"vs/editor/contrib/wordOperations/browser/wordOperations":{deleteInsideWord:"删除 Word"},"vs/platform/accessibilitySignal/browser/accessibilitySignalService":{"accessibility.signals.chatRequestSent":"已发送聊天请求","accessibility.signals.clear":"清除","accessibility.signals.format":"格式","accessibility.signals.lineHasBreakpoint":"断点","accessibility.signals.lineHasError":"行上的错误","accessibility.signals.lineHasFoldedArea":"已折叠","accessibility.signals.lineHasWarning":"行上的警告","accessibility.signals.noInlayHints":"无内嵌提示","accessibility.signals.notebookCellCompleted":"笔记本单元格已完成","accessibility.signals.notebookCellFailed":"笔记本单元格失败","accessibility.signals.onDebugBreak":"断点","accessibility.signals.positionHasError":"错误","accessibility.signals.positionHasWarning":"警告","accessibility.signals.progress":"进度","accessibility.signals.save":"保存","accessibility.signals.taskCompleted":"任务已完成","accessibility.signals.taskFailed":"任务失败","accessibility.signals.terminalBell":"终端钟","accessibility.signals.terminalCommandFailed":"命令失败","accessibility.signals.terminalQuickFix":"快速修复","accessibilitySignals.chatRequestSent":"已发送聊天请求","accessibilitySignals.chatResponseReceived":"已收到聊天响应","accessibilitySignals.clear":"清除","accessibilitySignals.diffLineDeleted":"已删除差异行","accessibilitySignals.diffLineInserted":"已插入差异线","accessibilitySignals.diffLineModified":"差异行已修改","accessibilitySignals.format":"格式","accessibilitySignals.lineHasBreakpoint.name":"行上的断点","accessibilitySignals.lineHasError.name":"行上的错误","accessibilitySignals.lineHasFoldedArea.name":"行上的折叠区域","accessibilitySignals.lineHasInlineSuggestion.name":"行上的内联建议","accessibilitySignals.lineHasWarning.name":"行上的警告","accessibilitySignals.noInlayHints":"行上无嵌入提示","accessibilitySignals.notebookCellCompleted":"笔记本单元格已完成","accessibilitySignals.notebookCellFailed":"笔记本单元格失败","accessibilitySignals.onDebugBreak.name":"调试程序已在断点处停止","accessibilitySignals.positionHasError.name":"出错位置","accessibilitySignals.positionHasWarning.name":"警告位置","accessibilitySignals.progress":"进度","accessibilitySignals.save":"保存","accessibilitySignals.taskCompleted":"任务已完成","accessibilitySignals.taskFailed":"任务失败","accessibilitySignals.terminalBell":"终端钟","accessibilitySignals.terminalCommandFailed":"终端命令失败","accessibilitySignals.terminalQuickFix.name":"终端快速修复","accessibilitySignals.voiceRecordingStarted":"语音录制已启动","accessibilitySignals.voiceRecordingStopped":"语音录制已停止"},"vs/platform/action/common/actionCommonCategories":{developer:"开发人员",file:"文件",help:"帮助",preferences:"首选项",test:"测试",view:"查看"},"vs/platform/actions/browser/buttonbar":{labelWithKeybinding:"{0} ({1})"},"vs/platform/actions/browser/menuEntryActionViewItem":{titleAndKb:"{0} ({1})",titleAndKbAndAlt:"{0}\r\n[{1}] {2}"},"vs/platform/actions/browser/toolbar":{hide:"隐藏",resetThisMenu:"重置菜单"},"vs/platform/actions/common/menuResetAction":{title:"重置所有菜单"},"vs/platform/actions/common/menuService":{"configure keybinding":"配置键绑定","hide.label":"隐藏“{0}”"},"vs/platform/actionWidget/browser/actionList":{customQuickFixWidget:"操作小组件","customQuickFixWidget.labels":"{0},禁用原因: {1}",label:"按 {0} 以应用","label-preview":"按 {0} 以应用,按 {1} 以预览"},"vs/platform/actionWidget/browser/actionWidget":{"acceptSelected.title":"接受所选操作","actionBar.toggledBackground":"操作栏中切换的操作项的背景色。",codeActionMenuVisible:"操作小组件列表是否可见","hideCodeActionWidget.title":"隐藏操作小组件","previewSelected.title":"预览所选操作","selectNextCodeAction.title":"选择下一个操作","selectPrevCodeAction.title":"选择上一个操作"},"vs/platform/configuration/common/configurationRegistry":{"config.policy.duplicate":'无法注册 "{0}"。关联的策略 {1} 已向 {2} 注册。',"config.property.duplicate":"无法注册“{0}”。此属性已注册。","config.property.empty":"无法注册空属性","config.property.languageDefault":'无法注册“{0}”。其符合描述特定语言编辑器设置的表达式 "\\\\[.*\\\\]$"。请使用 "configurationDefaults"。',"defaultLanguageConfiguration.description":"配置要为 {0} 语言替代的设置。","defaultLanguageConfigurationOverrides.title":"默认语言配置替代","overrideSettings.defaultDescription":"针对某种语言,配置替代编辑器设置。","overrideSettings.errorMessage":"此设置不支持按语言配置。"},"vs/platform/contextkey/browser/contextKeyService":{getContextKeyInfo:"用于返回上下文键的相关信息的命令"},"vs/platform/contextkey/common/contextkey":{"contextkey.parser.error.closingParenthesis":'右括号 ")"',"contextkey.parser.error.emptyString":"上下文键表达式为空","contextkey.parser.error.emptyString.hint":'忘记写入表达式了吗? 还可以放置 "false" 或 "true" 以始终分别评估为 false 或 true。',"contextkey.parser.error.expectedButGot":'应为: {0}\r\n收到的: "{1}"。',"contextkey.parser.error.noInAfterNot":'"not" 后面的 "in"。',"contextkey.parser.error.unexpectedEOF":"意外的表达式结尾","contextkey.parser.error.unexpectedEOF.hint":"忘记放置上下文键了吗?","contextkey.parser.error.unexpectedToken":"意外的令牌","contextkey.parser.error.unexpectedToken.hint":"忘记在令牌之前放置 && 或 || 了吗?","contextkey.scanner.errorForLinter":"意外的令牌。","contextkey.scanner.errorForLinterWithHint":"意外的令牌。提示: {0}"},"vs/platform/contextkey/common/contextkeys":{inputFocus:"键盘焦点是否在输入框中",isIOS:"操作系统是否为 iOS",isLinux:"操作系统是否为 Linux",isMac:"操作系统是否 macOS",isMacNative:"操作系统是否是非浏览器平台上的 macOS",isMobile:"平台是否为 Web 浏览器",isWeb:"平台是否为 Web 浏览器",isWindows:"操作系统是否为 Windows",productQualityType:"VS Code 的质量类型"},"vs/platform/contextkey/common/scanner":{"contextkey.scanner.hint.didYouForgetToEscapeSlash":'忘记转义 "/"(斜杠)字符了吗? 在该字符前放置两个反斜杠以进行转义,例如 "\\\\/"。',"contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote":"忘记左引号或右引号了吗?","contextkey.scanner.hint.didYouMean1":"你指的是 {0} 吗?","contextkey.scanner.hint.didYouMean2":"你指的是 {0} 还是 {1}?","contextkey.scanner.hint.didYouMean3":"你指的是 {0}、{1} 还是 {2}?"},"vs/platform/dialogs/common/dialogs":{cancelButton:"取消",moreFile:"...1 个其他文件未显示",moreFiles:"...{0} 个其他文件未显示",okButton:"确定(&&O)",yesButton:"是(&&Y)"},"vs/platform/dialogs/electron-main/dialogMainService":{open:"打开",openFile:"打开文件",openFolder:"打开文件夹",openWorkspace:"打开(&&O)",openWorkspaceTitle:"从文件打开工作区"},"vs/platform/dnd/browser/dnd":{fileTooLarge:"文件太大,无法以无标题的编辑器形式打开。请先将其上传到文件资源管理器,然后重试。"},"vs/platform/environment/node/argv":{add:"将文件夹添加到上一个活动窗口。",category:"使用 --list-extensions 时,按提供的类别筛选已安装的扩展。",cliDataDir:"应在其中存储 CLI 元数据的目录。","deprecated.useInstead":"请改用 {0}。",diff:"将两个文件相互比较。",disableChromiumSandbox:"仅当需要在 Linux 上以 sudo 用户身份启动应用程序或在 Windows 上的 applocker 环境中以提升的用户身份运行时,才使用此选项。",disableExtension:"禁用提供的扩展。此选项不会持久化,并且仅在命令打开新窗口时有效。",disableExtensions:"禁用所有已安装的扩展。此选项不会持久化,并且仅在命令打开新窗口时有效。",disableGPU:"禁用 GPU 硬件加速。",experimentalApis:"为扩展启用实验性 API 功能。可以输入一个或多个扩展的 ID 来进行单独启用。",extensionHomePath:"设置扩展的根路径。",extensionsManagement:"扩展管理",goto:"打开路径下的文件并定位到特定行和特定列。",help:"打印使用情况。","inspect-brk-extensions":"允许扩展宿主在启动后暂停时进行扩展的调试和分析。您可以在开发人员工具中找到连接 URI。","inspect-extensions":"允许调试和分析扩展。您可以在开发人员工具中找到连接 URI。","install prerelease":"使用 --install-extension 时安装扩展的预发行版本",installExtension:"安装或更新扩展。参数是 VSIX 的扩展 ID 或路径。扩展的标识符为 '${publisher}.${name}'。使用 '--force' 参数更新到最新版本。若要安装特定版本,请提供 '@${version}'。例如:'vscode.csharp@1.2.3'。",listExtensions:"列出已安装的扩展。",locale:"要使用的区域设置(例如 en-US 或 zh-TW)。",log:'要使用的日志级别。默认值为 "info"。允许的值为 "critical"、"error"、"warn"、"info"、"debug"、"trace"、"off"。还可以通过以下格式传递扩展 ID 和日志级别以配置扩展的日志级别: "${publisher}.${name}:${logLevel}"。例如: "vscode.csharp:trace"。可以接收一个或多个此类条目。',merge:"通过提供文件的两个修改版本的路径、两个修改版本的共同来源,以及保存合并结果的输出文件来执行三向合并。",newWindow:"强制打开新窗口。",options:"选项",optionsUpperCase:"选项",paths:"路径","prof-startup":"启动期间运行 CPU 探查器。",profileName:"使用给定的配置文件打开所提供的文件夹或工作区,并将配置文件与工作区相关联。如果配置文件不存在,则会创建一个新的空配置文件。",reuseWindow:"强制在已打开的窗口中打开文件或文件夹。",showVersions:"使用 --list-extensions 时,显示已安装扩展的版本。",status:"打印进程使用情况和诊断信息。",stdinUnix:'要从 stdin 中读取,请追加 "-" (例如 "ps aux | grep code | {0} -\')',stdinWindows:'要读取其他程序的输出,请追加 "-" (例如 "echo Hello World | {0} -\')',subcommands:"子命令",telemetry:"显示 VS Code 收集的所有遥测事件。",troubleshooting:"故障排查","turn sync":"打开或关闭同步。",uninstallExtension:"卸载扩展。",unknownCommit:"未知提交",unknownVersion:"未知版本",updateExtensions:"更新已安装的扩展。",usage:"使用情况",userDataDir:"指定保存用户数据的目录。可用于打开多个不同的 Code 实例。",verbose:"打印详细输出(表示 - 等待)。",version:"打印版本。",wait:"等文件关闭后再返回。"},"vs/platform/environment/node/argvHelper":{deprecatedArgument:"已弃用选项“{0}”: {1}",emptyValue:"选项“{0}”需要非空值。忽略该选项。",gotoValidation:'"--goto" 模式中的参数格式应为 "FILE(:LINE(:CHARACTER))"。',multipleValues:"对选项“{0}”进行了多次定义。使用值“{1}”。",unknownOption:'警告: "{0}"不在已知选项列表中,但仍传递给 Electron/Chromium。',unknownSubCommandOption:"警告:“{0}”不在子命令“{1}”的已知选项列表中"},"vs/platform/extensionManagement/common/abstractExtensionManagementService":{MarketPlaceDisabled:"市场未启用","incompatible platform":"'{0}' 扩展在 {1} 中对于 {2} 不可用。","malicious extension":"无法安装 '{0}' 扩展,因为其被报告为存在问题。",multipleDependentsError:"无法卸载扩展“{0}”。“{1}”、“{2}”以及其他扩展都依赖于它。",multipleIndirectDependentsError:"无法卸载扩展“{0}”。该操作会一并卸载依赖于它的扩展“{1}”、“{2}”、“{3}”和其他扩展。",notFoundCompatibleDependency:"无法安装“{0}”扩展,因为它与当前 {1} 版本不兼容(版本 {2})。",notFoundDeprecatedReplacementExtension:"无法安装“{0}”扩展,因为它已被弃用,并且找不到替换扩展“{1}”。",notFoundReleaseExtension:"由于 '{0}' 扩展没有发布版本,因此无法安装。",singleDependentError:"无法卸载扩展“{0}”。扩展“{1}”依赖于它。",singleIndirectDependentError:"无法卸载扩展“{0}”。该操作会一并卸载依赖于它的扩展“{1}”和“{2}”。",twoDependentsError:"无法卸载扩展“{0}”。扩展“{1}”和“{2}”依赖于它。",twoIndirectDependentsError:"无法卸载扩展“{0}”。该操作会一并卸载依赖于它的扩展“{1}”、“{2}”和“{3}”。"},"vs/platform/extensionManagement/common/extensionManagement":{extensions:"扩展",preferences:"首选项"},"vs/platform/extensionManagement/common/extensionManagementCLI":{alreadyInstalled:"已安装扩展“{0}”。","alreadyInstalled-checkAndUpdate":'已安装扩展 "{0}" v{1}。使用 "--force" 选项更新到最新版本,或提供 "@" 以安装特定版本,例如: "{2}@1.2.3"。',builtin:"扩展“{0}”是内置扩展,无法卸载",cancelVsixInstall:"已取消安装扩展“{0}”。","error while installing extensions":"安装扩展时出错: {0}",errorInstallingExtension:"安装扩展 {0} 时出错: {1}",errorUpdatingExtension:"更新扩展 {0} 时出错:{1}",forceDowngrade:'已安装扩展“{0}”v{1} 的较新版本。请使用 "--force" 选项降级到旧版本。',forceUninstall:'用户已将扩展“{0}”标记为内置扩展。请使用 "--force" 选项将其卸载。',"installation failed":"未能安装扩展: {0}",installing:"正在安装扩展“{0}”...","installing builtin ":"正在安装内置扩展“{0}”...","installing builtin with version":"正在安装内置扩展“{0}”v{1}…","installing with version":"正在安装扩展“{0}”v{1}...",installingExtensions:"正在安装扩展…",installingExtensionsOnLocation:"正在 {0} 上安装扩展…",listFromLocation:"{0} 上安装的扩展:",notFound:"找不到扩展“{0}”。",notInstalled:"未安装扩展“{0}”。",notInstalleddOnLocation:"{1} 上未安装扩展“{0}”。",successInstall:"已成功安装扩展“{0}”v{1}。",successUninstall:"已成功卸载扩展“{0}”!",successUninstallFromLocation:"已成功从 {1} 卸载扩展“{0}”!",successUpdate:"已成功更新扩展“{0}”v{1}。",successVsixInstall:"已成功安装扩展“{0}”。",uninstalling:"正在卸载 {0}…",updateExtensionsNewVersionsAvailable:"正在更新扩展:{0}",updateExtensionsNoExtensions:"没有要更新的扩展",updateExtensionsQuery:"正在提取 {0} 扩展的最新版本",updateMessage:'将扩展 "{0}" 更新到版本 {1}',useId:"确认使用了包括发布者在内的完整扩展 ID,例如: {0}"},"vs/platform/extensionManagement/common/extensionNls":{missingNLSKey:"无法找到键 {0} 的消息。"},"vs/platform/extensionManagement/common/extensionsScannerService":{fileReadFail:"无法读取文件 {0}: {1}。",jsonInvalidFormat:"格式 {0} 无效: 应为 JSON 对象。",jsonParseFail:"无法解析 {0}: [{1}, {2}] {3}.",jsonParseInvalidType:"清单文件 {0} 无效: 不是 JSON 对象。",jsonsParseReportErrors:"未能分析 {0}: {1}。"},"vs/platform/extensionManagement/node/extensionManagementService":{MarketPlaceDisabled:"市场未启用","Not a Marketplace extension":"只能重新安装商店中的扩展","cannot read":"无法从 {0} 读取扩展",errorDeleting:"安装扩展“{1}”时无法删除现有文件夹“{0}”。请手动删除此文件夹,然后重试",incompatible:"无法安装扩展“{0}”,因为它与 VS Code“{1}”不兼容。",removeError:"删除扩展时出错: {0}。请重启 VS Code,然后重试。",renameError:"将 {0} 重命名为 {1} 时发生未知错误",restartCode:"请在重新安装{0}之前重新启动 VS Code。"},"vs/platform/extensionManagement/node/extensionManagementUtil":{invalidManifest:"VSIX 无效: package.json 不是 JSON 文件。"},"vs/platform/extensions/common/extensionValidator":{"extensionDescription.activationEvents1":"属性“{0}”可以省略,否则其类型必须是 `string[]`","extensionDescription.activationEvents2":"如果扩展没有“{1}”或“{2}”属性,则应省略属性“{0}”。","extensionDescription.browser1":"属性“{0}”可以省略,否则其类型必须是 `string`","extensionDescription.browser2":"应在扩展文件夹({1})中包含 `browser` ({0})。这可能会使扩展不可移植。","extensionDescription.engines":"属性“{0}”是必要属性,其类型必须是 `object`","extensionDescription.engines.vscode":"属性“{0}”是必需的,其类型必须是 `string`","extensionDescription.extensionDependencies":"属性“{0}”可以省略,否则其类型必须是 `string[]`","extensionDescription.extensionKind":"仅当同时定义了属性“main”时,才能定义属性“{0}”。","extensionDescription.main1":"属性 `{0}` 可以省略,否则其类型必须是 `string`","extensionDescription.main2":"应在扩展文件夹({1})中包含 `main` ({0})。这可能会使扩展不可移植。","extensionDescription.name":"属性“{0}”是必需的,其类型必须是 `string`","extensionDescription.publisher":"属性 publisher 的类型必须是 `string`。","extensionDescription.version":"属性“{0}”是必需的,其类型必须是 `string`",notSemver:"扩展版本与 semver 不兼容。",versionMismatch:"扩展与 Code {0} 不兼容。扩展需要: {1}。",versionSpecificity1:'"engines.vscode" ({0}) 中指定的版本不够具体。对于 1.0.0 之前的 vscode 版本,请至少定义主要和次要想要的版本。例如: ^0.10.0、0.10.x、0.11.0 等。',versionSpecificity2:'"engines.vscode" ({0}) 中指定的版本不够具体。对于 1.0.0 之后的 vscode 版本,请至少定义主要想要的版本。例如: ^1.10.0、1.10.x、1.x.x、2.x.x 等。',versionSyntax:'无法解析 "engines.vscode" 的值 {0}。请改为如 ^1.22.0, ^1.22.x 等。'},"vs/platform/externalTerminal/node/externalTerminalService":{"console.title":"VS Code 控制台","ext.term.app.not.found":'找不到终端应用程序 "{0}"',"linux.term.failed":"“{0}”失败,退出代码为 {1}","mac.terminal.script.failed":"脚本“{0}”失败,退出代码为 {1}","mac.terminal.type.not.supported":"不支持“{0}”","press.any.key":"按任意键继续..."},"vs/platform/files/browser/htmlFileSystemProvider":{fileSystemNotAllowedError:"权限不足。请重试并允许该操作。",fileSystemRenameError:"仅文件支持重命名。"},"vs/platform/files/browser/indexedDBFileSystemProvider":{dirIsNotEmpty:"目录不为空",fileExceedsStorageQuota:"文件超出可用存储配额",fileIsDirectory:"文件为目录",fileNotDirectory:"文件不是目录",fileNotExists:"文件不存在",internal:"IndexedDB 文件系统提供程序中发生内部错误。({0})"},"vs/platform/files/common/files":{sizeB:"{0} B",sizeGB:"{0} GB",sizeKB:"{0} KB",sizeMB:"{0} MB",sizeTB:"{0} TB",unknownError:"未知错误"},"vs/platform/files/common/fileService":{deleteFailedAtomicUnsupported:'无法自动删除文件"{0}",因为提供程序不支持它。',deleteFailedNonEmptyFolder:"无法删除非空文件夹“{0}”。",deleteFailedNotFound:"无法删除不存在的文件 '{0}'",deleteFailedTrashAndAtomicUnsupported:'无法以原子方式删除文件 "{0}",因为已启用使用回收站。',deleteFailedTrashUnsupported:'无法通过回收站删除文件"{0}",因为提供程序不支持它。',"err.read":"无法读取文件'{0}' ({1})","err.readonly":"无法修改只读文件“{0}”","err.write":'无法写入文件"{0}"({1})',fileExists:"如果未设置覆盖标记,则无法创建文件“{0}”,因为它已存在",fileIsDirectoryReadError:'无法读取实际上是一个目录的文件"{0}"',fileIsDirectoryWriteError:'无法写入实际上是一个目录的文件"{0}"',fileModifiedError:"自以下时间已修改的文件:",fileNotFoundError:"无法解析不存在的文件 '{0}'",fileNotModifiedError:"自以下时间未修改的文件:",fileTooLargeError:"无法读取文件“{0}”,该文件太大,无法打开",invalidPath:'无法解析具有相对文件路径"{0}"的文件系统提供程序',mkdirExistsError:'无法创建已存在但不是目录的文件夹"{0}"',noProviderFound:'ENOPRO: 未找到资源 "{0}" 的文件系统提供程序',unableToMoveCopyError1:'当源"{0}"与目标"{1}"在不区分大小写的文件系统上具有不同路径大小写时,无法复制',unableToMoveCopyError2:'当源"{0}"是目标"{1}"的父级时,无法移动/复制。',unableToMoveCopyError3:'无法移动/复制"{0}",因为目标"{1}"已存在于目标位置。',unableToMoveCopyError4:'无法将"{0}"移动/复制到"{1}"中,因为文件将替换包含该文件的文件夹。',writeFailedAtomicUnlock:'无法解锁文件 "{0}",因为已启用原子写入。',writeFailedAtomicUnsupported1:'无法以原子方式写入文件 "{0}",因为提供程序不支持它。',writeFailedAtomicUnsupported2:"无法以原子方式写入文件 '{0}',因为提供程序不支持未缓冲的写入。",writeFailedUnlockUnsupported:"无法解锁文件“{0}”,因为提供程序不支持它。"},"vs/platform/files/common/io":{fileTooLargeError:"文件太大,无法打开"},"vs/platform/files/electron-main/diskFileSystemProviderServer":{binFailed:"未能将“{0}”移动到回收站({1})",trashFailed:"未能将“{0}”移动到垃圾桶({1})"},"vs/platform/files/node/diskFileSystemProvider":{copyError:'无法将 "{0}" 复制到 "{1}" ({2}) 中。',fileCopyErrorPathCase:"文件不能复制到仅大小写不同的相同路径",fileExists:"文件已存在",fileMoveCopyErrorExists:"目标上的文件已存在,因此不会移动/复制到其中,除非指定了覆盖",fileMoveCopyErrorNotFound:"要移动/复制的文件不存在",fileNotExists:"文件不存在",moveError:'无法将 "{0}" 移动到 "{1}" ({2}) 中。'},"vs/platform/history/browser/contextScopedHistoryWidget":{suggestWidgetVisible:"建议是否可见"},"vs/platform/issue/electron-main/issueMainService":{cancel:"取消",confirmCloseIssueReporter:"您的输入将不会保存。确实要关闭此窗口吗?",issueReporter:"问题报告程序",issueReporterWriteToClipboard:"数据太多,无法直接发送到 GitHub。数据将被复制到剪贴板,请将其粘贴到打开的 GitHub 问题页。",local:"本地",ok:"确定(&&O)",processExplorer:"进程管理器","trace.detail":"请创建问题并手动附加以下文件:\r\n{0}","trace.message":"已成功创建跟踪文件","trace.ok":"确定(&&O)",yes:"是(&&Y)"},"vs/platform/keybinding/common/abstractKeybindingService":{"first.chord":"({0})已按下。正在等待按下第二个键...","missing.chord":"组合键({0},{1})不是命令。","next.chord":"已按下({0})。正在等待第二个键..."},"vs/platform/keyboardLayout/common/keyboardConfig":{dispatch:'控制按键的分派逻辑以使用 "code" (推荐) 或 "keyCode"。',keyboardConfigurationTitle:"键盘",mapAltGrToCtrlAlt:"控制是否应将 AltGraph+ 修饰符视为 Ctrl+Alt+。"},"vs/platform/languagePacks/common/languagePacks":{currentDisplayLanguage:" (当前)"},"vs/platform/languagePacks/common/localizedStrings":{close:"关闭",find:"查找",open:"打开"},"vs/platform/list/browser/listService":{"Fast Scroll Sensitivity":'按下"Alt"时滚动速度倍增。',"Mouse Wheel Scroll Sensitivity":"对鼠标滚轮滚动事件的 `deltaX` 和 `deltaY` 乘上的系数。",defaultFindMatchTypeSettingKey:"控制在工作台中搜索列表和树时使用的匹配类型。","defaultFindMatchTypeSettingKey.contiguous":"在搜索时使用连续匹配。","defaultFindMatchTypeSettingKey.fuzzy":"在搜索时使用模糊匹配。",defaultFindModeSettingKey:"控制工作台中列表和树的默认查找模式。","defaultFindModeSettingKey.filter":"搜索时筛选元素。","defaultFindModeSettingKey.highlight":"搜索时突出显示元素。进一步向上和向下导航将仅遍历突出显示的元素。","expand mode":"控制在单击文件夹名称时如何扩展树文件夹。请注意,如果不适用,某些树和列表可能会选择忽略此设置。","horizontalScrolling setting":"控制工作台上的列表和树是否支持水平滚动。警告: 打开此设置会影响性能。",keyboardNavigationSettingKey:"控制工作台中的列表和树的键盘导航样式。它可为“简单”、“突出显示”或“筛选”。","keyboardNavigationSettingKey.filter":"筛选器键盘导航将筛选出并隐藏与键盘输入不匹配的所有元素。","keyboardNavigationSettingKey.highlight":"高亮键盘导航会突出显示与键盘输入相匹配的元素。进一步向上和向下导航将仅遍历突出显示的元素。","keyboardNavigationSettingKey.simple":"简单键盘导航聚焦与键盘输入相匹配的元素。仅对前缀进行匹配。",keyboardNavigationSettingKeyDeprecated:'请改用 "workbench.list.defaultFindMode" 和 "workbench.list.typeNavigationMode"。',"list smoothScrolling setting":"控制列表和树是否具有平滑滚动效果。","list.scrollByPage":"控制在滚动条中单击时是否逐页单击。",multiSelectModifier:"在通过鼠标多选树和列表条目时使用的修改键 (例如“资源管理器”、“打开的编辑器”和“源代码管理”视图)。“在侧边打开”功能所需的鼠标动作 (若可用) 将会相应调整,不与多选修改键冲突。","multiSelectModifier.alt":"映射为 `Alt` (Windows 和 Linux) 或 `Option` (macOS)。","multiSelectModifier.ctrlCmd":"映射为 `Ctrl` (Windows 和 Linux) 或 `Command` (macOS)。",openModeModifier:"控制如何使用鼠标打开树和列表中的项(若支持)。请注意,如果此设置不适用,某些树和列表可能会选择忽略它。","render tree indent guides":"控制树是否应呈现缩进参考线。","sticky scroll":"控制是否在树中启用粘性滚动。","sticky scroll maximum items":"控制启用`#workbench.tree.enableStickyScroll#`时树中显示的粘性元素数。","tree indent setting":"控制树缩进(以像素为单位)。",typeNavigationMode2:"控制类型导航在工作台的列表和树中的工作方式。如果设置为`trigger`,则在运行 `list.triggerTypeNavigation` 命令后,类型导航将开始。",workbenchConfigurationTitle:"工作台"},"vs/platform/log/common/log":{debug:"调试",error:"错误",info:"信息",off:"关",trace:"跟踪",warn:"警告"},"vs/platform/markers/common/markers":{"sev.error":"错误","sev.info":"信息","sev.warning":"警告"},"vs/platform/menubar/electron-main/menubar":{cancel:"取消",mAbout:"关于 {0}",mBringToFront:"全部置于顶层",mEdit:"编辑(&&E)",mFile:"文件(&&F)",mGoto:"转到(&&G)",mHelp:"帮助(&&H)",mHide:"隐藏 {0}",mHideOthers:"隐藏其他",mMergeAllWindows:"合并所有窗口",mMinimize:"最小化",mMoveTabToNewWindow:"移动标签页到新窗口",mNewTab:"新建标签页",mRun:"运行(&&R)",mSelection:"选择(&&S)",mServices:"服务",mShowAll:"全部显示",mShowNextTab:"显示下一个选项卡",mShowPreviousTab:"显示上一个选项卡",mTerminal:"终端(&&T)",mView:"查看(&&V)",mWindow:"窗口",mZoom:"缩放",miCheckForUpdates:"检查更新(&&U)...",miCheckingForUpdates:"正在检查更新...",miDownloadUpdate:"下载可用更新(&&O)",miDownloadingUpdate:"正在下载更新...",miInstallUpdate:"安装更新(&&U)...",miInstallingUpdate:"正在安装更新...",miNewWindow:"新建窗口(&&W)",miPreferences:"首选项(&&P)",miQuit:"退出 {0}",miRestartToUpdate:"重新启动以更新(&&U)",miSwitchWindow:"切换窗口(&&W)...",quit:"退出(&&Q)",quitMessage:"是否确实要退出?"},"vs/platform/native/electron-main/nativeHostMainService":{cancel:"取消",cantCreateBinFolder:"无法安装 Shell 命令“{0}”。",cantUninstall:"无法卸载 Shell 命令“{0}”。",ok:"确定(&&O)",sourceMissing:'在 "{0}" 中找不到 shell 脚本',warnEscalation:'{0}将通过 "osascript" 提示需要管理员权限才可安装 shell 命令。',warnEscalationUninstall:'{0} 将使用 "osascript" 来提示获取管理员权限,从而卸载 Shell 命令。'},"vs/platform/quickinput/browser/commandsQuickAccess":{canNotRun:'命令 "{0}" 导致错误',commandPickAriaLabelWithKeybinding:"{0}, {1}",commonlyUsed:"常用",morecCommands:"其他命令",recentlyUsed:"最近使用",suggested:"类似命令"},"vs/platform/quickinput/browser/helpQuickAccess":{helpPickAriaLabel:"{0}, {1}"},"vs/platform/quickinput/browser/quickInput":{inputModeEntry:'按 "Enter" 以确认或按 "Esc" 以取消',inputModeEntryDescription:'{0} (按 "Enter" 以确认或按 "Esc" 以取消)',"quickInput.back":"上一步","quickInput.steps":"{0}/{1}","quickInputBox.ariaLabel":"在此输入可缩小结果范围。"},"vs/platform/quickinput/browser/quickInputController":{custom:"自定义",ok:"确定","quickInput.back":"上一步","quickInput.backWithKeybinding":"后退 ({0})","quickInput.checkAll":"切换所有复选框","quickInput.countSelected":"已选 {0} 项","quickInput.visibleCount":"{0} 个结果"},"vs/platform/quickinput/browser/quickInputTree":{quickInput:"快速输入"},"vs/platform/quickinput/browser/quickInputUtils":{executeCommand:'单击以执行命令 "{0}"'},"vs/platform/quickinput/browser/quickPickPin":{pinCommand:"固定命令",pinnedCommand:"已固定命令","terminal.commands.pinned":"已固定"},"vs/platform/remoteTunnel/common/remoteTunnel":{remoteTunnelLog:"远程隧道服务"},"vs/platform/remoteTunnel/node/remoteTunnelService":{"remoteTunnelService.authorizing":"正在以 {0} 的身份连接({1})","remoteTunnelService.building":"正在从源生成 CLI","remoteTunnelService.openTunnel":"正在打开隧道","remoteTunnelService.openTunnelWithName":"正在打开隧道 {0}","remoteTunnelService.serviceInstallFailed":"未能安装隧道即服务,从会话开始..."},"vs/platform/request/common/request":{httpConfigurationTitle:"HTTP",proxy:'要使用的代理设置。如果未设置,则将从 "http_proxy" 和 "https_proxy" 环境变量中继承。',proxyAuthorization:'要作为每个网络请求的 "Proxy-Authorization" 标头发送的值。',proxyKerberosServicePrincipal:"使用 HTTP 代理替代 Kerberos 身份验证的主体服务名称。未设置此选项时,将使用基于代理主机名的默认值。",proxySupport:"对扩展使用代理支持。",proxySupportFallback:"在未找到代理的情况下,启用扩展的代理支持,回退到请求选项。",proxySupportOff:"禁用对扩展的代理支持。",proxySupportOn:"为扩展启用代理支持。",proxySupportOverride:"为扩展启用代理支持,覆盖请求选项。",request:"网络请求",strictSSL:"控制是否根据提供的 CA 列表验证代理服务器证书。",systemCertificates:"控制是否应从操作系统加载 CA 证书。(在 Windows 和 macOS 上, 关闭此窗口后需要重新加载窗口。)",systemCertificatesV2:"控制是否应启用从 OS 实验性加载 CA 证书。这使用比默认的障碍更通用的方法。"},"vs/platform/shell/node/shellEnv":{resolveShellEnvError:"无法解析 shell 环境: {0}",resolveShellEnvExitError:"来自生成的 shell 的意外退出代码(代码 {0}、信号 {1})",resolveShellEnvTimeout:"无法在合理的时间内解析 shell 环境。请检查 shell 配置,然后重启。"},"vs/platform/telemetry/common/telemetryLogAppender":{telemetryLog:"遥测{0}"},"vs/platform/telemetry/common/telemetryService":{enableTelemetryDeprecated:"如果此设置为 false,则无论新设置的值如何,都不会发送遥测数据。已弃用,推荐使用 {0} 设置。","telemetry.crashReports":"崩溃报告","telemetry.docsAndPrivacyStatement":"详细了解[我们收集的数据]({0})和我们的[隐私声明]({1})。","telemetry.docsStatement":"详细了解[我们收集的数据]({0})。","telemetry.enableTelemetry":"启用要收集的诊断数据。这有助于我们更好地了解 {0} 的执行情况以及哪里需要改进。","telemetry.enableTelemetryMd":"启用要收集的诊断数据。这有助于我们更好地了解 {0} 的执行情况以及哪里需要改进。[阅读详细信息]({1})关于我们收集的内容和隐私声明。","telemetry.errors":"错误遥测","telemetry.restart":"若要使崩溃报告更改生效,必须完全重新启动应用程序。","telemetry.telemetryLevel.crash":"发送 OS 级别故障报告。","telemetry.telemetryLevel.default":"发送使用情况数据、错误、故障报告。","telemetry.telemetryLevel.deprecated":"****注意:*** 如果此设置为“关闭”,则无论其他遥测设置如何,都不会发送遥测数据。如果此设置为“关闭”以外的任何选项,并且使用弃用的设置禁用遥测,则不会发送遥测数据。*","telemetry.telemetryLevel.error":"发送常规错误遥测和故障报告。","telemetry.telemetryLevel.off":"禁用所有产品遥测。","telemetry.telemetryLevel.tableDescription":"下表概述了每个设置所发送的数据:","telemetry.telemetryLevelMd":"控制 {0} 遥测、第一方扩展遥测和参与的第三方扩展遥测。一些第三方扩展可能不遵守此设置。请查阅特定扩展的文档以确定。遥测有助于我们更好地了解 {0} 的执行情况、需要改进的地方以及功能的使用方式。","telemetry.usage":"用法数据",telemetryConfigurationTitle:"遥测"},"vs/platform/terminal/common/terminalLogService":{terminalLoggerName:"终端"},"vs/platform/terminal/common/terminalPlatformConfiguration":{"terminal.integrated.automationProfile.linux":"要在 Linux 上用于自动化相关终端使用(如任务和调试)的终端配置文件。","terminal.integrated.automationProfile.osx":"要在 macOS 上用于自动化相关终端使用(如任务和调试)的终端配置文件。","terminal.integrated.automationProfile.windows":"要用于自动化相关终端使用(如任务和调试)的终端配置文件。如果设置了 {0} (现已弃用),则当前将忽略此设置。","terminal.integrated.confirmIgnoreProcesses":"使用 {0} 设置时要忽略的一组流程名称。","terminal.integrated.defaultProfile.linux":"Linux 上的默认终端配置文件。","terminal.integrated.defaultProfile.osx":"macOS 上的默认终端配置文件。","terminal.integrated.defaultProfile.windows":"Windows 上的默认终端配置文件。","terminal.integrated.inheritEnv":"新 shell 是否应从 VS Code 继承其环境,这可能会生成登录 shell,以确保初始化 $PATH 和其他开发变量。这不会对 Windows 造成影响。","terminal.integrated.persistentSessionScrollback":"控制重新连接到永久性终端会话时将还原的最大行数。增加此数量将以占用更多内存为代价还原更多的回滚行,并增加在启动时连接到终端所需的时间。此设置需要重启才能生效,并应设置为小于或等于 `#terminal.integrated.scrollback#` 的值。","terminal.integrated.profile":"一组用于 {0} 的终端配置文件自定义,可在该平台上添加、移除或更改终端的启动方式。配置文件由强制路径、可选参数和其他演示选项组成。\r\n\r\n要替代现有配置文件,请使用其配置文件名称作为键,例如:\r\n\r\n{1}\r\n\r\n{2}详细了解如何对配置文件进行配置{3}。","terminal.integrated.showLinkHover":"是否显示终端输出中链接的悬停。","terminal.integrated.useWslProfiles":"控制是否在终端下拉列表中显示 WSL 发行版","terminalAutomationProfile.path":"shell 可执行文件的单个路径。",terminalIntegratedConfigurationTitle:"集成终端","terminalProfile.args":"用于运行 shell 可执行文件的可选参数集。","terminalProfile.color":"要与终端图标关联的主题颜色 ID。","terminalProfile.env":'具有将添加到终端配置文件进程的环境变量的对象。设置为 "null" 以从基本环境中删除环境变量。',"terminalProfile.icon":"要与终端图标关联的 codicon ID。","terminalProfile.linuxExtensionId":"扩展终端的 ID","terminalProfile.linuxExtensionIdentifier":"提供此配置文件的扩展。","terminalProfile.linuxExtensionTitle":"扩展终端的名称","terminalProfile.osxExtensionId":"扩展终端的 ID","terminalProfile.osxExtensionIdentifier":"提供此配置文件的扩展。","terminalProfile.osxExtensionTitle":"扩展终端的名称","terminalProfile.overrideName":"是否将检测正在运行程序的动态终端标题替换为静态配置文件名称。","terminalProfile.path":"指向 shell 可执行文件的单一路径或一个路径数组(当一个路径失败时,这些路径将被用作回退)。","terminalProfile.windowsExtensionId":"扩展终端的 ID","terminalProfile.windowsExtensionIdentifier":"提供此配置文件的扩展。","terminalProfile.windowsExtensionTitle":"扩展终端的名称","terminalProfile.windowsSource":"将自动检测 shell 路径的配置文件源。请注意,非标准可执行文件位置不受支持,必须在新的配置文件中手动创建。"},"vs/platform/terminal/common/terminalProfiles":{terminalAutomaticProfile:"自动检测默认值"},"vs/platform/terminal/node/ptyHostMain":{ptyHost:"Pty 主机"},"vs/platform/terminal/node/ptyService":{"terminal-history-restored":"还原的历史记录"},"vs/platform/terminal/node/terminalProcess":{"launchFail.cwdDoesNotExist":"启动目录(cwd)“{0}”不存在","launchFail.cwdNotDirectory":"启动目录(cwd)“{0}”不是一个目录","launchFail.executableDoesNotExist":"shell 可执行文件“{0}”的路径不存在","launchFail.executableIsNotFileOrSymlink":'shell 可执行文件 "{0}" 的路径非文件或符号链接'},"vs/platform/theme/common/colors/baseColors":{activeContrastBorder:"在活动元素周围额外的一层边框,用来提高对比度从而区别其他元素。",contrastBorder:"在元素周围额外的一层边框,用来提高对比度从而区别其他元素。",descriptionForeground:"提供其他信息的说明文本的前景色,例如标签文本。",disabledForeground:"已禁用元素的整体前景色。仅在未由组件替代时才能使用此颜色。",errorForeground:"错误信息的整体前景色。此颜色仅在不被组件覆盖时适用。",focusBorder:"焦点元素的整体边框颜色。此颜色仅在不被其他组件覆盖时适用。",foreground:"整体前景色。此颜色仅在不被组件覆盖时适用。",iconForeground:"工作台中图标的默认颜色。",selectionBackground:"工作台所选文本的背景颜色(例如输入字段或文本区域)。注意,本设置不适用于编辑器。",textBlockQuoteBackground:"文本中块引用的背景颜色。",textBlockQuoteBorder:"文本中块引用的边框颜色。",textCodeBlockBackground:"文本中代码块的背景颜色。",textLinkActiveForeground:"文本中链接在点击或鼠标悬停时的前景色 。",textLinkForeground:"文本中链接的前景色。",textPreformatBackground:"预格式化文本段的背景色。",textPreformatForeground:"预格式化文本段的前景色。",textSeparatorForeground:"文字分隔符的颜色。"},"vs/platform/theme/common/colors/chartsColors":{chartsBlue:"图表可视化效果中使用的蓝色。",chartsForeground:"图表中使用的前景颜色。",chartsGreen:"图表可视化效果中使用的绿色。",chartsLines:"用于图表中的水平线条的颜色。",chartsOrange:"图表可视化效果中使用的橙色。",chartsPurple:"图表可视化效果中使用的紫色。",chartsRed:"图表可视化效果中使用的红色。",chartsYellow:"图表可视化效果中使用的黄色。"},"vs/platform/theme/common/colors/editorColors":{activeLinkForeground:"活动链接颜色。",breadcrumbsBackground:"导航路径项的背景色。",breadcrumbsFocusForeground:"焦点导航路径的颜色",breadcrumbsSelectedBackground:"导航路径项选择器的背景色。",breadcrumbsSelectedForeground:"已选导航路径项的颜色。",diffDiagonalFill:"差异编辑器的对角线填充颜色。对角线填充用于并排差异视图。","diffEditor.unchangedCodeBackground":"差异编辑器中未更改代码的背景色。","diffEditor.unchangedRegionBackground":"差异编辑器中未更改块的背景色。","diffEditor.unchangedRegionForeground":"差异编辑器中未更改块的前景色。",diffEditorBorder:"两个文本编辑器之间的边框颜色。",diffEditorInserted:"已插入的文本的背景色。颜色必须透明,以免隐藏下面的修饰效果。",diffEditorInsertedLineGutter:"插入行的边距的背景色。",diffEditorInsertedLines:"已插入的行的背景色。颜色必须透明,以免隐藏下面的修饰效果。",diffEditorInsertedOutline:"插入的文本的轮廓颜色。",diffEditorOverviewInserted:"插入内容的差异概述标尺前景。",diffEditorOverviewRemoved:"删除内容的差异概述标尺前景。",diffEditorRemoved:"已删除的文本的背景色。颜色必须透明,以免隐藏下面的修饰效果。",diffEditorRemovedLineGutter:"删除行的边距的背景色。",diffEditorRemovedLines:"已删除的行的背景色。颜色必须透明,以免隐藏下面的修饰效果。",diffEditorRemovedOutline:"被删除文本的轮廓颜色。",editorBackground:"编辑器背景色。","editorError.background":"编辑器中错误文本的背景色。颜色必须透明,以免隐藏下面的修饰效果。","editorError.foreground":"编辑器中错误波浪线的前景色。",editorFindMatch:"当前搜索匹配项的颜色。",editorFindMatchBorder:"当前搜索匹配项的边框颜色。",editorForeground:"编辑器默认前景色。","editorHint.foreground":"编辑器中提示波浪线的前景色。",editorInactiveSelection:"非活动编辑器中所选内容的颜色,颜色必须透明,以免隐藏下面的装饰效果。","editorInfo.background":"编辑器中信息文本的背景色。颜色必须透明,以免隐藏下面的修饰效果。","editorInfo.foreground":"编辑器中信息波浪线的前景色。",editorInlayHintBackground:"内联提示的背景色",editorInlayHintBackgroundParameter:"参数内联提示的背景色",editorInlayHintBackgroundTypes:"类型内联提示的背景色",editorInlayHintForeground:"内联提示的前景色",editorInlayHintForegroundParameter:"参数内联提示的前景色",editorInlayHintForegroundTypes:"类型内联提示的前景色",editorLightBulbAiForeground:"用于灯泡 AI 图标的颜色。",editorLightBulbAutoFixForeground:"用于灯泡自动修复操作图标的颜色。",editorLightBulbForeground:"用于灯泡操作图标的颜色。",editorSelectionBackground:"编辑器所选内容的颜色。",editorSelectionForeground:"用以彰显高对比度的所选文本的颜色。",editorSelectionHighlight:"具有与所选项相关内容的区域的颜色。颜色必须透明,以免隐藏下面的修饰效果。",editorSelectionHighlightBorder:"与所选项内容相同的区域的边框颜色。",editorStickyScrollBackground:"编辑器中粘滞滚动的背景色",editorStickyScrollBorder:"编辑器中粘滞滚动的边框颜色",editorStickyScrollHoverBackground:"在编辑器中悬停时粘滞滚动的背景色",editorStickyScrollShadow:" 编辑器中粘滞滚动的阴影颜色","editorWarning.background":"编辑器中警告文本的背景色。颜色必须透明,以免隐藏下面的修饰效果。","editorWarning.foreground":"编辑器中警告波浪线的前景色。",editorWidgetBackground:"编辑器组件(如查找/替换)背景颜色。",editorWidgetBorder:"编辑器小部件的边框颜色。此颜色仅在小部件有边框且不被小部件重写时适用。",editorWidgetForeground:"编辑器小部件的前景色,如查找/替换。",editorWidgetResizeBorder:"编辑器小部件大小调整条的边框颜色。此颜色仅在小部件有调整边框且不被小部件颜色覆盖时使用。",errorBorder:"如果设置,编辑器中错误的双下划线颜色。",findMatchHighlight:"其他搜索匹配项的颜色。颜色必须透明,以免隐藏下面的修饰效果。",findMatchHighlightBorder:"其他搜索匹配项的边框颜色。",findRangeHighlight:"限制搜索范围的颜色。颜色必须透明,以免隐藏下面的修饰效果。",findRangeHighlightBorder:"限制搜索的范围的边框颜色。颜色必须透明,以免隐藏下面的修饰效果。",hintBorder:"如果设置,编辑器中提示的双下划线颜色。",hoverBackground:"编辑器悬停提示的背景颜色。",hoverBorder:"光标悬停时编辑器的边框颜色。",hoverForeground:"编辑器悬停的前景颜色。",hoverHighlight:"在下面突出显示悬停的字词。颜色必须透明,以免隐藏下面的修饰效果。",infoBorder:"如果设置,编辑器中信息的双下划线颜色。",mergeBorder:"内联合并冲突中标头和分割线的边框颜色。",mergeCommonContentBackground:"内联合并冲突中的常见祖先内容背景。颜色必须透明,以免隐藏下面的修饰效果。",mergeCommonHeaderBackground:"内联合并冲突中的常见祖先标头背景。颜色必须透明,以免隐藏下面的修饰效果。",mergeCurrentContentBackground:"内联合并冲突中的当前内容背景。颜色必须透明,以免隐藏下面的修饰效果。",mergeCurrentHeaderBackground:"当前标题背景的内联合并冲突。颜色必须透明,以免隐藏下面的修饰效果。",mergeIncomingContentBackground:"内联合并冲突中的传入内容背景。颜色必须透明,以免隐藏下面的修饰效果。",mergeIncomingHeaderBackground:"内联合并冲突中的传入标题背景。颜色必须透明,以免隐藏下面的修饰效果。",overviewRulerCommonContentForeground:"内联合并冲突中共同祖先区域的概览标尺前景色。",overviewRulerCurrentContentForeground:"内联合并冲突中当前版本区域的概览标尺前景色。",overviewRulerFindMatchForeground:"用于查找匹配项的概述标尺标记颜色。颜色必须透明,以免隐藏下面的修饰效果。",overviewRulerIncomingContentForeground:"内联合并冲突中传入的版本区域的概览标尺前景色。",overviewRulerSelectionHighlightForeground:"用于突出显示所选内容的概述标尺标记颜色。颜色必须透明,以免隐藏下面的修饰效果。",problemsErrorIconForeground:"用于问题错误图标的颜色。",problemsInfoIconForeground:"用于问题信息图标的颜色。",problemsWarningIconForeground:"用于问题警告图标的颜色。",snippetFinalTabstopHighlightBackground:"代码片段中最后的 Tab 位的高亮背景色。",snippetFinalTabstopHighlightBorder:"代码片段中最后的制表位的高亮边框颜色。",snippetTabstopHighlightBackground:"代码片段 Tab 位的高亮背景色。",snippetTabstopHighlightBorder:"代码片段 Tab 位的高亮边框颜色。",statusBarBackground:"编辑器悬停状态栏的背景色。",toolbarActiveBackground:"将鼠标悬停在操作上时的工具栏背景",toolbarHoverBackground:"使用鼠标悬停在操作上时显示工具栏背景",toolbarHoverOutline:"使用鼠标悬停在操作上时显示工具栏轮廓",warningBorder:"如果设置,编辑器中警告的双下划线颜色。",widgetBorder:"编辑器内小组件(如查找/替换)的边框颜色。",widgetShadow:"编辑器内小组件(如查找/替换)的阴影颜色。"},"vs/platform/theme/common/colors/inputColors":{buttonBackground:"按钮背景色。",buttonBorder:"按钮边框颜色。",buttonForeground:"按钮前景色。",buttonHoverBackground:"按钮在悬停时的背景颜色。",buttonSecondaryBackground:"辅助按钮背景色。",buttonSecondaryForeground:"辅助按钮前景色。",buttonSecondaryHoverBackground:"悬停时的辅助按钮背景色。",buttonSeparator:"按钮分隔符颜色。","checkbox.background":"复选框小部件的背景颜色。","checkbox.border":"复选框小部件的边框颜色。","checkbox.foreground":"复选框小部件的前景色。","checkbox.select.background":"选择复选框小组件所在的元素时该小组件的背景色。","checkbox.select.border":"选择复选框小组件所在的元素时该小组件的边框颜色。",dropdownBackground:"下拉列表背景色。",dropdownBorder:"下拉列表边框。",dropdownForeground:"下拉列表前景色。",dropdownListBackground:"下拉列表背景色。",inputBoxActiveOptionBorder:"输入字段中已激活选项的边框颜色。",inputBoxBackground:"输入框背景色。",inputBoxBorder:"输入框边框。",inputBoxForeground:"输入框前景色。","inputOption.activeBackground":"输入字段中选项的背景悬停颜色。","inputOption.activeForeground":"输入字段中已激活的选项的前景色。","inputOption.hoverBackground":"输入字段中激活选项的背景颜色。",inputPlaceholderForeground:"输入框中占位符的前景色。",inputValidationErrorBackground:"输入验证结果为错误级别时的背景色。",inputValidationErrorBorder:"严重性为错误时输入验证的边框颜色。",inputValidationErrorForeground:"输入验证结果为错误级别时的前景色。",inputValidationInfoBackground:"输入验证结果为信息级别时的背景色。",inputValidationInfoBorder:"严重性为信息时输入验证的边框颜色。",inputValidationInfoForeground:"输入验证结果为信息级别时的前景色。",inputValidationWarningBackground:"严重性为警告时输入验证的背景色。",inputValidationWarningBorder:"严重性为警告时输入验证的边框颜色。",inputValidationWarningForeground:"输入验证结果为警告级别时的前景色。",keybindingLabelBackground:"键绑定标签背景色。键绑定标签用于表示键盘快捷方式。",keybindingLabelBorder:"键绑定标签边框色。键绑定标签用于表示键盘快捷方式。",keybindingLabelBottomBorder:"键绑定标签边框底部色。键绑定标签用于表示键盘快捷方式。",keybindingLabelForeground:"键绑定标签前景色。键绑定标签用于表示键盘快捷方式。"},"vs/platform/theme/common/colors/listColors":{highlight:"在列表或树中搜索时,其中匹配内容的高亮颜色。",invalidItemForeground:"列表或树中无效项的前景色,例如资源管理器中没有解析的根目录。",listActiveSelectionBackground:"已选项在列表或树活动时的背景颜色。活动的列表或树具有键盘焦点,非活动的没有。",listActiveSelectionForeground:"已选项在列表或树活动时的前景颜色。活动的列表或树具有键盘焦点,非活动的没有。",listActiveSelectionIconForeground:"已选项在列表/树活动时的列表/树图标前景颜色。活动的列表/树具有键盘焦点,非活动的则没有。",listDeemphasizedForeground:"取消强调的项的列表/树前景色。",listDropBackground:"使用鼠标移动项目时,列表或树进行拖放的背景颜色。",listDropBetweenBackground:"使用鼠标在项目之间移动项时,列表/树拖放边框的颜色。",listErrorForeground:"包含错误的列表项的前景颜色。",listFilterMatchHighlight:"筛选后的匹配项的背景颜色。",listFilterMatchHighlightBorder:"筛选后的匹配项的边框颜色。",listFilterWidgetBackground:"列表和树中类型筛选器小组件的背景色。",listFilterWidgetNoMatchesOutline:"当没有匹配项时,列表和树中类型筛选器小组件的轮廓颜色。",listFilterWidgetOutline:"列表和树中类型筛选器小组件的轮廓颜色。",listFilterWidgetShadow:"列表和树中类型筛选器小组件的阴影颜色。",listFocusAndSelectionOutline:"当列表/树处于活动状态且已选择时,重点项的列表/树边框颜色。活动的列表/树具有键盘焦点,但非活动的则没有。",listFocusBackground:"焦点项在列表或树活动时的背景颜色。活动的列表或树具有键盘焦点,非活动的没有。",listFocusForeground:"焦点项在列表或树活动时的前景颜色。活动的列表或树具有键盘焦点,非活动的没有。",listFocusHighlightForeground:"在列表或树中搜索时,匹配活动聚焦项的突出显示内容的列表/树前景色。",listFocusOutline:"列表/树活动时,焦点项目的列表/树边框色。活动的列表/树具有键盘焦点,非活动的没有。",listHoverBackground:"使用鼠标移动项目时,列表或树的背景颜色。",listHoverForeground:"鼠标在项目上悬停时,列表或树的前景颜色。",listInactiveFocusBackground:"非活动的列表或树控件中焦点项的背景颜色。活动的列表或树具有键盘焦点,非活动的没有。",listInactiveFocusOutline:"列表/数非活动时,焦点项目的列表/树边框色。活动的列表/树具有键盘焦点,非活动的没有。",listInactiveSelectionBackground:"已选项在列表或树非活动时的背景颜色。活动的列表或树具有键盘焦点,非活动的没有。",listInactiveSelectionForeground:"已选项在列表或树非活动时的前景颜色。活动的列表或树具有键盘焦点,非活动的没有。",listInactiveSelectionIconForeground:"已选项在列表/树非活动时的图标前景颜色。活动的列表/树具有键盘焦点,非活动的则没有。",listWarningForeground:"包含警告的列表项的前景颜色。",tableColumnsBorder:"列之间的表边框颜色。",tableOddRowsBackgroundColor:"奇数表行的背景色。",treeInactiveIndentGuidesStroke:"非活动缩进参考线的树描边颜色。",treeIndentGuidesStroke:"缩进参考线的树描边颜色。"},"vs/platform/theme/common/colors/menuColors":{menuBackground:"菜单项的背景颜色。",menuBorder:"菜单的边框颜色。",menuForeground:"菜单项的前景颜色。",menuSelectionBackground:"菜单中所选菜单项的背景色。",menuSelectionBorder:"菜单中所选菜单项的边框颜色。",menuSelectionForeground:"菜单中选定菜单项的前景色。",menuSeparatorBackground:"菜单中分隔线的颜色。"},"vs/platform/theme/common/colors/minimapColors":{minimapBackground:"迷你地图背景颜色。",minimapError:"用于错误的迷你地图标记颜色。",minimapFindMatchHighlight:"用于查找匹配项的迷你地图标记颜色。",minimapForegroundOpacity:'在缩略图中呈现的前景元素的不透明度。例如,"#000000c0" 将呈现不透明度为 75% 的元素。',minimapInfo:"信息的迷你地图标记颜色。",minimapSelectionHighlight:"编辑器选区在迷你地图中对应的标记颜色。",minimapSelectionOccurrenceHighlight:"用于重复编辑器选择的缩略图标记颜色。",minimapSliderActiveBackground:"单击时,迷你地图滑块的背景颜色。",minimapSliderBackground:"迷你地图滑块背景颜色。",minimapSliderHoverBackground:"悬停时,迷你地图滑块的背景颜色。",overviewRuleWarning:"用于警告的迷你地图标记颜色。"},"vs/platform/theme/common/colors/miscColors":{badgeBackground:"Badge 背景色。Badge 是小型的信息标签,如表示搜索结果数量的标签。",badgeForeground:"Badge 前景色。Badge 是小型的信息标签,如表示搜索结果数量的标签。",progressBarBackground:"表示长时间操作的进度条的背景色。",sashActiveBorder:"活动框格的边框颜色。",scrollbarShadow:"表示视图被滚动的滚动条阴影。",scrollbarSliderActiveBackground:"滚动条滑块在被点击时的背景色。",scrollbarSliderBackground:"滚动条滑块背景色",scrollbarSliderHoverBackground:"滚动条滑块在悬停时的背景色"},"vs/platform/theme/common/colors/quickpickColors":{pickerBackground:"背景颜色快速选取器。快速选取器小部件是选取器(如命令调色板)的容器。",pickerForeground:"前景颜色快速选取器。快速选取器小部件是命令调色板等选取器的容器。",pickerGroupBorder:"快速选取器分组边框的颜色。",pickerGroupForeground:"快速选取器分组标签的颜色。",pickerTitleBackground:"标题背景颜色快速选取器。快速选取器小部件是命令调色板等选取器的容器。","quickInput.list.focusBackground deprecation":"请改用 quickInputList.focusBackground","quickInput.listFocusBackground":"焦点项目的快速选择器背景色。","quickInput.listFocusForeground":"焦点项目的快速选择器前景色。","quickInput.listFocusIconForeground":"焦点项目的快速选取器图标前景色。"},"vs/platform/theme/common/colors/searchColors":{"search.resultsInfoForeground":"搜索 Viewlet 完成消息中文本的颜色。","searchEditor.editorFindMatchBorder":"搜索编辑器查询匹配的边框颜色。","searchEditor.queryMatch":"搜索编辑器查询匹配的颜色。"},"vs/platform/theme/common/iconRegistry":{"iconDefinition.fontCharacter":"与图标定义关联的字体字符。","iconDefinition.fontId":"要使用的字体的 ID。如果未设置,则使用最先定义的字体。",nextChangeIcon:"“转到下一个编辑器位置”图标。",previousChangeIcon:"“转到上一个编辑器位置”图标。",widgetClose:"小组件中“关闭”操作的图标。"},"vs/platform/theme/common/tokenClassificationRegistry":{abstract:"用于抽象符号的样式。",async:"用于异步的符号的样式。",class:"类样式。",comment:"注释的样式。",declaration:"所有符号声明的样式。",decorator:"修饰器和注释的样式。",deprecated:"用于已弃用的符号的样式。",documentation:"用于文档中引用的样式。",enum:"枚举的样式。",enumMember:"枚举成员的样式。",event:"事件的样式。",function:"函数样式",interface:"接口样式。",keyword:"关键字的样式。",labels:"文本样式",macro:"宏样式。",member:"成员函数的样式",method:"成员(成员函数)的样式",modification:"用于写入访问的样式。",namespace:"命名空间的样式。",number:"数字样式。",operator:"运算符的样式。",parameter:"参数样式。",property:"属性的样式。",readonly:"用于只读符号的样式。",regexp:"表达式的样式。","schema.fontStyle.error":'字形必须为 "italic" (斜体)、"bold" (粗体)、"underline" (下划线)、"strikethrough" (删除线) 或是上述的组合。空字符串将取消设置的所有字形。',"schema.token.background.warning":"暂不支持标记背景色。","schema.token.bold":'将字形设置为粗体或取消粗体设置。请注意,如果存在 "fontStyle",则会替代此设置。',"schema.token.fontStyle":'设置规则的所有字形: "italic" (斜体)、"bold" (粗体)、"underline" (下划线)、"strikethrough" (删除线) 或是上述的组合。所有未列出的字形都将取消设置。空字符串将取消设置的所有字形。',"schema.token.fontStyle.none":"无 (清除继承的设置)","schema.token.foreground":"标记的前景色。","schema.token.italic":'将字形设置为倾斜或取消倾斜设置。请注意,如果存在 "fontStyle",则会替代此设置。',"schema.token.settings":"标记的颜色和样式。","schema.token.strikethrough":'将字形设置为下划线或取消下划线设置。请注意,如果存在 "fontStyle",则会替代此设置。',"schema.token.underline":'将字形设置为下划线或取消下划线设置。请注意,如果存在 "fontStyle",则会替代此设置。',static:"用于静态符号的样式。",string:"字符串的样式。",struct:"结构样式。",type:"类型的样式。",typeParameter:"类型参数的样式。",variable:"变量的样式。"},"vs/platform/undoRedo/common/undoRedoService":{cannotResourceRedoDueToInProgressUndoRedo:"无法重做“{0}”,因为已有一项撤消或重做操作正在运行。",cannotResourceUndoDueToInProgressUndoRedo:"无法撤销“{0}”,因为已有一项撤消或重做操作正在运行。",cannotWorkspaceRedo:"无法在所有文件中重做“{0}”。{1}",cannotWorkspaceRedoDueToChanges:"无法对所有文件重做“{0}”,因为已更改 {1}",cannotWorkspaceRedoDueToInMeantimeUndoRedo:"无法跨所有文件重做“{0}”,因为同时发生了一项撤消或重做操作",cannotWorkspaceRedoDueToInProgressUndoRedo:"无法跨所有文件重做“{0}”,因为 {1} 上已有一项撤消或重做操作正在运行",cannotWorkspaceUndo:"无法在所有文件中撤消“{0}”。{1}",cannotWorkspaceUndoDueToChanges:"无法撤消所有文件的“{0}”,因为已更改 {1}",cannotWorkspaceUndoDueToInMeantimeUndoRedo:"无法跨所有文件撤销“{0}”,因为同时发生了一项撤消或重做操作",cannotWorkspaceUndoDueToInProgressUndoRedo:"无法跨所有文件撤销“{0}”,因为 {1} 上已有一项撤消或重做操作正在运行",confirmDifferentSource:"是否要撤消“{0}”?","confirmDifferentSource.no":"否","confirmDifferentSource.yes":"是(&&Y)",confirmWorkspace:"是否要在所有文件中撤消“{0}”?",externalRemoval:"以下文件已关闭并且已在磁盘上修改: {0}。",noParallelUniverses:"以下文件已以不兼容的方式修改: {0}。",nok:"撤消此文件(&&F)",ok:"在 {0} 个文件中撤消(&&U)"},"vs/platform/update/common/update.config.contribution":{default:"启用自动更新检查。代码将定期自动检查更新。",deprecated:"此设置已弃用,请改用“{0}”。",enableWindowsBackgroundUpdates:"启用在 Windows 上后台下载和安装新的 VS Code 版本。",enableWindowsBackgroundUpdatesTitle:"在 Windows 上启用后台更新",manual:"禁用自动后台更新检查。如果手动检查更新,更新将可用。",none:"禁用更新。",showReleaseNotes:"在更新后显示发行说明。发行说明将从 Microsoft 联机服务中获取。",start:"仅在启动时检查更新。禁用自动后台更新检查。",updateConfigurationTitle:"更新",updateMode:"配置是否接收自动更新。更改后需要重新启动。更新是从微软在线服务获取的。"},"vs/platform/userDataProfile/common/userDataProfile":{defaultProfile:"默认"},"vs/platform/userDataSync/common/abstractSynchronizer":{incompatible:"无法同步 {0},因为它的本地版本 {1} 与其远程版本 {2} 不兼容","incompatible sync data":"无法分析同步数据,因为它与当前版本不兼容。"},"vs/platform/userDataSync/common/keybindingsSync":{errorInvalidSettings:"无法同步键绑定,因为文件中的内容无效。请打开文件并进行更正。"},"vs/platform/userDataSync/common/settingsSync":{errorInvalidSettings:"无法同步设置,因为设置文件中存在错误/警告。"},"vs/platform/userDataSync/common/userDataAutoSyncService":{"default service changed":"默认服务已更改,因此无法同步","service changed":"同步服务已更改,因此无法同步","session expired":"无法同步,因为当前会话已过期","turned off":"无法同步,因为同步在云中已关闭","turned off machine":"无法同步,因为已从另一台计算机上关闭了此计算机上的同步。"},"vs/platform/userDataSync/common/userDataSync":{"app.extension.identifier.errorMessage":'预期的格式 "${publisher}.${name}"。例如: "vscode.csharp"。',"settings sync":"设置同步","settingsSync.ignoredExtensions":'同步时要忽略的扩展列表。扩展的标识符始终为 "${publisher}.${name}"。例如: "vscode.csharp"。',"settingsSync.ignoredSettings":"配置在同步时要忽略的设置。","settingsSync.keybindingsPerPlatform":"为每个平台各自同步键绑定。"},"vs/platform/userDataSync/common/userDataSyncLog":{userDataSyncLog:"设置同步"},"vs/platform/userDataSync/common/userDataSyncMachines":{"error incompatible":"无法读取计算机数据,因为当前版本不兼容。请更新 {0},然后重试。"},"vs/platform/userDataSync/common/userDataSyncResourceProvider":{"incompatible sync data":"无法分析同步数据,因为它与当前版本不兼容。"},"vs/platform/windows/electron-main/windowImpl":{appGone:"窗口意外终止",appGoneDetailEmptyWindow:"对此造成的不便,我们深表歉意。可以打开新的空窗口以重新启动。",appGoneDetailWorkspace:"我们对此不便表示抱歉! 请重启该窗口以从上次停止的位置继续。",appGoneDetails:'窗口意外终止(原因: "{0}",代码: "{1}")',appStalled:"窗口未响应",appStalledDetail:"你可以重新打开或关闭窗口,或者保持等待。",close:"关闭(&&C)",doNotRestoreEditors:"不还原编辑器",hiddenMenuBar:"你仍可以通过 Alt 键访问菜单栏。",newWindow:"新建窗口(&&N)",reopen:"重新打开(&&R)",wait:"继续等待(&&K)"},"vs/platform/windows/electron-main/windowsMainService":{allow:"允许(&&A)",cancel:"取消(&&C)",confirmOpenDetail:"路径“{0}”使用不允许的主机。除非信任主机,否则应按“取消”",confirmOpenMessage:"在允许的主机列表中找不到主机“{0}”。是否仍要允许?",doNotAskAgain:'永久允许主机 "{0}"',learnMore:"了解详细信息(&&L)",ok:"确定(&&O)",pathNotExistDetail:"此计算机上不存在路径“{0}”。",pathNotExistTitle:"路径不存在",uriInvalidDetail:"URI“{0}”无效,无法打开。",uriInvalidTitle:"无法打开 uri"},"vs/platform/workspace/common/workspace":{codeWorkspace:"Code 工作区"},"vs/platform/workspaces/electron-main/workspacesHistoryMainService":{cancel:"取消(&&C)",clearButtonLabel:"清除(&&C)",confirmClearDetail:"此操作不可逆!",confirmClearRecentsMessage:"是否要清除最近打开的所有文件和工作区?",newWindow:"新窗口",newWindowDesc:"打开新窗口",recentFolders:"最近使用的文件夹",recentFoldersAndWorkspaces:"最近使用的文件夹和工作区",untitledWorkspace:"无标题(工作区)",workspaceName:"{0} (工作区)"},"vs/platform/workspaces/electron-main/workspacesManagementMainService":{ok:"确定(&&O)",workspaceOpenedDetail:"已在另一个窗口打开工作区。请先关闭该窗口,然后重试。",workspaceOpenedMessage:"无法保存工作区“{0}”"},"vs/server/node/remoteExtensionHostAgentCli":{remotecli:"远程 CLI"},"vs/server/node/serverEnvironmentService":{acceptLicenseTerms:"如果已设置,则用户接受服务器许可条款,并将在没有用户提示的情况下启用服务器。","connection-token":"必须包含在所有请求中的机密。","connection-token-file":"包含连接令牌的文件的路径。","default-folder":"未在浏览器 URL 中指定输入时要打开的工作区文件夹。已针对当前工作目录解析相对或绝对路径。","default-workspace":"未在浏览器 URL 中指定输入时要打开的工作区。已针对当前工作目录解析相对或绝对路径。",host:"服务器应侦听的主机名或 IP 地址。如果未设置,则默认为 “localhost”。",port:"服务器应侦听的端口。如果传递了 0,则会选取一个随机的空闲端口。如果传递了采用 num-num 格式的范围,则将从范围中选择(包含结束)空闲端口。","server-base-path":"提供 Web UI 和代码服务器的路径。默认为 “/”。`",serverDataDir:"指定保存服务器数据的目录。","socket-path":"服务器要侦听的套接字文件的路径。","start-server":"安装或卸载扩展时启动服务器。将与 “install-extension”、“install-builtin-extension” 和 “uninstall-extension” 结合使用。","telemetry-level":"设置初始遥测级别。有效级别为: “off”、 crash”、“error” 和 “all”。如果未指定,服务器将在客户端连接之前发送遥测数据,然后将使用客户端遥测设置。将此项设置为 “off” 等效于 --disable-telemetry","without-connection-token":"在没有连接令牌的情况下运行。仅当通过其他方式保护连接时才使用此项。"},"vs/server/node/serverServices":{remoteExtensionLog:"服务器"},"win32/i18n/messages":{AddContextMenuFiles:"将“通过 %1 打开”操作添加到 Windows 资源管理器文件上下文菜单",AddContextMenuFolders:"将“通过 %1 打开”操作添加到 Windows 资源管理器目录上下文菜单",AddToPath:"添加到 PATH (需要重启 shell)",AdditionalIcons:"其他图标:",AssociateWithFiles:"将 %1 注册为受支持的文件类型的编辑器",ConfirmUninstall:"确定要完全删除 %1 及其所有组件?",CreateDesktopIcon:"创建桌面图标(&D)",CreateQuickLaunchIcon:'创建 "快速启动" 图标(&Q)',FinishedLabel:"安装程序已在计算机上安装好 [name]。选择安装的快捷方式即可启动该应用程序。",OpenWithCodeContextMenu:"使用 %1 打开(&I)",Other:"其他:",RunAfter:"安装后运行 %1",SourceFile:"%1 源文件",UpdatingVisualStudioCode:"正在更新 Visual Studio Code..."},"vs/code/electron-main/app":{cancel:"否(&&N)",confirmOpenDetail:"如果你未发起此请求,则可能表示有人试图攻击你的系统。除非你采取了明确操作来发起此请求,否则应按“否”",confirmOpenMessageFileOrFolder:"外部应用程序想要在 {1} 中打开“{0}”。是否要打开此文件或文件夹?",confirmOpenMessageFolder:"外部应用程序想要在 {0} 中打开“{1}”。是否要打开此文件夹?",confirmOpenMessageWorkspace:"外部应用程序想要在 {0} 中打开“{1}”。是否要打开此工作区文件?",doNotAskAgainLocal:"允许在不询问的情况下打开本地路径",doNotAskAgainRemote:"允许在不询问的情况下打开远程路径",open:"是(&Y)"},"vs/code/electron-main/main":{close:"关闭(&C)",mainLog:"主进程",secondInstanceAdmin:"{0} 的另一个实例已在以管理员身份运行。",secondInstanceAdminDetail:"请先关闭另一个实例,然后重试。",secondInstanceNoResponse:"{0} 的另一实例正在运行但没有响应",secondInstanceNoResponseDetail:"请先关闭其他所有实例,然后重试。",startupDataDirError:"无法写入程序用户数据。",startupUserDataAndExtensionsDirErrorDetail:"{0}\r\n\r\n请确保以下目录是可写的:\r\n\r\n{1}",statusWarning:"警告: --status 参数只能在已运行 {0} 时使用。请在启动 {0} 后再次运行它。"},"vs/code/electron-sandbox/issue/issueReporterPage":{chooseExtension:"扩展",completeInEnglish:"请使用英文进行填写。",descriptionEmptyValidation:"需要描述。",descriptionTooShortValidation:"请提供更长的说明。",details:"请输入详细信息。",disableExtensions:"禁用所有扩展并重新加载窗口",disableExtensionsLabelText:"请试着在{0}之后重现问题。如果此问题仅在扩展运行时才能重现,那么这可能是一个扩展的问题。",extensionData:"扩展没有要包含的其他数据。",extensionWithNoBugsUrl:"问题报告程序无法为此扩展创建问题,因为它没有指定用于报告问题的 URL。请查看此扩展的应用商店页面,以便查看是否有其他说明。",extensionWithNonstandardBugsUrl:"问题报告程序无法为此扩展创建问题。请访问{0}报告问题。",issueSourceEmptyValidation:"问题源是必需的。",issueSourceLabel:"提交到",issueTitleLabel:"标题",issueTitleRequired:"请输入标题。",issueTypeLabel:"这是一个",reviewGuidanceLabel:'在此处报告问题之前,请查看我们提供的指南。',sendExperiments:"包括 A/B 试验信息",sendExtensionData:"包括其他扩展信息",sendExtensions:"包含已启用的扩展",sendProcessInfo:"包含当前运行中的进程",sendSystemInfo:"包含系统信息",sendWorkspaceInfo:"包含工作区元数据",show:"显示",titleEmptyValidation:"标题是必需的。",titleLengthValidation:"标题太长。"},"vs/code/electron-sandbox/issue/issueReporterService":{bugDescription:"请分享能稳定重现此问题的必要步骤,并包含实际和预期的结果。我们支持 GitHub 版的 Markdown。您将能在 GitHub 上预览时编辑这个问题并添加截图。",bugReporter:"Bug 报告",closed:"已关闭",createOnGitHub:"在 GitHub 上创建",description:"说明",disabledExtensions:"扩展已禁用",elsewhereDescription:'"{0}" 扩展更倾向于使用外部问题报告器。要转到该问题报告体验,请点击下面的按钮。',extension:"扩展",featureRequest:"功能请求",featureRequestDescription:"请描述您希望能够使用的功能。我们支持 GitHub 版的 Markdown。您将能在 GitHub 上预览时编辑问题并添加截图。",handlesIssuesElsewhere:"此扩展处理 VS Code 之外的问题",hide:"隐藏",loadingData:"正在加载数据…",marketplace:"扩展市场",noCurrentExperiments:"无当前试验。",noSimilarIssues:"没有找到类似问题",open:"打开",openIssueReporter:"打开外部问题报告器",pasteData:"所需的数据太大,无法直接发送。我们已经将其写入剪贴板,请粘贴。",performanceIssue:"性能问题",performanceIssueDesciption:"这个性能问题是在什么时候发生的? 是在启动时,还是在一系列特定的操作之后? 我们支持 GitHub 版的 Markdown。您将能在 GitHub 上预览时编辑这个问题并添加截图。",previewOnGitHub:"在 GitHub 中预览",rateLimited:"超出 GitHub 查询限制。请稍候。",selectExtension:"选择扩展",selectSource:"选择源",show:"显示",similarIssues:"类似的问题",stepsToReproduce:"重现步骤",unknown:"不知道",vscode:"Visual Studio Code"},"vs/code/electron-sandbox/processExplorer/processExplorerMain":{copy:"复制",copyAll:"全部复制",cpu:"CPU (%)",debug:"调试",forceKillProcess:"强制结束进程",killProcess:"结束进程",memory:"内存(MB)",name:"进程名称",pid:"PID"},"vs/code/node/cliProcessMain":{cli:"CLI"},"vs/code/node/sharedProcess/sharedProcessMain":{sharedLog:"共享进程"},"vs/workbench/api/browser/mainThreadAuthentication":{allow:"允许(&&A)",confirmLogin:'扩展"{0}"希望使用{1}登录。',confirmRelogin:"扩展“{0}”希望你使用 {1} 重新登录。",learnMore:"了解详细信息",signedOut:"已成功注销。"},"vs/workbench/api/browser/mainThreadCLICommands":{"cannot be installed":"无法安装“{0}”扩展,因为它被声明为不在此安装程序中运行。"},"vs/workbench/api/browser/mainThreadComments":{commentsViewIcon:"查看备注视图的图标。"},"vs/workbench/api/browser/mainThreadCustomEditors":{defaultEditLabel:"编辑",vetoExtHostRestart:"无法保存自定义编辑器“{0}”。"},"vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant":{"timeout.onWillCreateEditSessionIdentity":"10000ms 后已中止 onWillCreateEditSessionIdentity-event"},"vs/workbench/api/browser/mainThreadExtensionService":{disabledDep:"无法激活“{0}”扩展,因为它依赖于“{1}”扩展,该扩展已禁用。是否要启用扩展并重新加载窗口?",disabledDepNoAction:"无法激活“{0}”扩展,因为它依赖于被禁用的“{1}”扩展。","enable dep":"启用和重新加载","install missing dep":"安装并重新加载",manageWorkspaceTrust:"管理工作区信任",notSupportedInWorkspace:'无法激活 "{0}" 扩展,因为它依赖于当前工作区中不支持的 "{1}" 扩展',reload:"重新加载窗口","reload window":'无法激活 "{0}" 扩展, 因为它依赖于未加载的 "{1}" 扩展。是否要重新加载窗口以加载扩展名?',restrictedMode:'无法激活 "{0}" 扩展,因为它依赖于受限模式下不支持的 "{1}" 扩展',uninstalledDep:"无法激活“{0}”扩展,因为它依赖于“{2}”中的“{1}”扩展,而该扩展未安装。是否要安装扩展并重新加载窗口?",unknownDep:"无法激活“{0}”扩展,因为它依赖未知的“{1}”扩展。"},"vs/workbench/api/browser/mainThreadFileSystemEventService":{again:"不再询问","ask.1.copy":'扩展 "{0}" 希望通过复制此文件来进行重构更改',"ask.1.create":'扩展 "{0}" 希望通过创建此文件来进行重构更改',"ask.1.delete":'扩展 "{0}" 希望通过删除此文件来进行重构更改',"ask.1.move":'扩展 "{0}" 希望通过移动此文件来进行重构更改',"ask.N.copy":"{0} 扩展希望通过复制此文件来进行重构更改","ask.N.create":"{0} 扩展希望通过创建此文件来进行重构更改","ask.N.delete":"{0} 扩展希望通过删除此文件来进行重构更改","ask.N.move":"{0} 扩展希望通过移动此文件来进行重构更改",cancel:"跳过更改",label:"“文件操作需要预览”的重置选项","msg-copy":"正在运行“文件复制”参与者…","msg-create":'正在运行"文件创建"参与者...',"msg-delete":'正在运行"文件删除"参与者...',"msg-rename":'正在运行"文件重命名"参与者...',"msg-write":"正在运行“文件写入”参与者...",ok:"确定(&&O)",preview:"显示预览(&&P)"},"vs/workbench/api/browser/mainThreadLanguageModels":{languageModelsAccountId:"语言模型"},"vs/workbench/api/browser/mainThreadMessageService":{cancel:"取消",defaultSource:"扩展",manageExtension:"管理扩展",ok:"确定(&&O)"},"vs/workbench/api/browser/mainThreadNotebookSaveParticipant":{"timeout.onWillSave":"1750ms 后中止 onWillSaveNotebookDocument-event"},"vs/workbench/api/browser/mainThreadProgress":{manageExtension:"管理扩展"},"vs/workbench/api/browser/mainThreadSaveParticipant":{"timeout.onWillSave":"在 1750ms 后终止了 onWillSaveTextDocument 事件"},"vs/workbench/api/browser/mainThreadTask":{"task.label":"{0}: {1}"},"vs/workbench/api/browser/mainThreadTunnelService":{"remote.tunnel.openTunnel":"扩展 {0} 具有转发端口 {1}。需要以超级用户身份运行,才能在本地使用端口 {2}。","remote.tunnelsView.elevationButton":"使用端口 {0} 作为 Sudo…"},"vs/workbench/api/browser/mainThreadUriOpeners":{openerFailedMessage:'无法使用 "{0}" 打开 uri: {1}',openerFailedUseDefault:"使用默认 opener 打开"},"vs/workbench/api/browser/mainThreadWebviews":{errorMessage:"还原视图时出错: {0}"},"vs/workbench/api/browser/mainThreadWorkspace":{folderStatusChangeFolder:"扩展“{0}”更改了工作区中的文件夹",folderStatusMessageAddMultipleFolders:"扩展“{0}”添加了 {1} 个文件夹到工作区",folderStatusMessageAddSingleFolder:"扩展“{0}”添加了 1 个文件夹到工作区",folderStatusMessageRemoveMultipleFolders:"扩展“{0}”从工作区删除了 {1} 个文件夹",folderStatusMessageRemoveSingleFolder:"扩展“{0}”从工作区删除了 1 个文件夹"},"vs/workbench/api/browser/statusBarExtensionPoint":{accessibilityInformation:"定义在状态栏条目聚焦时要使用的角色和 aria 标签。","accessibilityInformation.label":"状态栏条目的 aria 标签。默认为条目的文本。","accessibilityInformation.role":"定义屏幕阅读器如何与其交互的状态栏条目的角色。有关 aria 角色的详细信息,请参阅此处 https://w3c.github.io/aria/#widget_roles",alignment:"状态栏条目的对齐方式。",command:"点击状态栏条目时要执行的命令。",id:'状态栏条目的标识符。在扩展中必须具有唯一性。调用 "vscode.window.createStatusBarItem(id, ...)"-API 时必须使用相同的值',invalid:"状态栏项贡献无效。",name:"条目名称,例如“Python 语言指示器”、“Git 状态”等。尽量使名称长度保持较短,但其描述性足以让用户了解状态栏项包含的内容。",priority:"状态栏条目的优先级。值越高,意味着应在左侧显示更多项。",text:'要为该条目显示的文本。可以使用 "$()" 语法(例如 "Hello $(globe)!")在文本中嵌入图标',tooltip:"条目的工具提示文本。","vscode.extension.contributes.statusBarItems":"将项目贡献到状态栏。"},"vs/workbench/api/browser/viewsExtensionPoint":{ViewContainerDoesnotExist:"视图容器“{0}”不存在。所有注册到其中的视图将被添加到“资源管理器”中。",ViewContainerRequiresProposedAPI:"查看容器“{0}”需要将 “enabledApiProposals: [“contribViewsRemote”]” 添加到“远程”。",duplicateView1:"无法注册具有相同 ID“{0}”的多个视图",duplicateView2:"已注册 ID 为“{0}”的视图。",optenum:"属性“{0}”可被省略或必须是 {1} 之一",optstring:'属性 "{0}" 可以省略,或者必须为 "string" 类型',requirearray:"视图必须是一个数组",requireidstring:"属性“{0}”是必需的,并且必须为具有非空值的类型 `string`。只允许使用字母数字字符、 “_” 和 “-”。",requirenonemptystring:"属性“{0}”是必需的,并且必须为具有非空值的类型 `string`",requirestring:'属性 "{0}" 是必需项并且必须为 "string" 类型',unknownViewType:"未知视图类型“{0}”。","view container id":"ID","view container location":"位置","view container title":"标题","view id":"ID","view name title":"名称","viewcontainer requirearray":"视图容器必须为数组",views:"视图","views.container.activitybar":"向活动栏提供视图容器","views.container.panel":"向面板提供视图容器","views.contributed":"向“提供的视图”容器提供视图","views.debug":"向活动栏中的“调试”容器提供视图","views.explorer":"向活动栏中的“资源管理器”容器提供视图","views.remote":"在活动栏中为远程容器提供视图。要为此容器提供帮助,需要启用enableProposedApi。","views.scm":"向活动栏中的“源代码管理”容器提供视图","views.test":"向活动栏中的“测试”容器提供视图",viewsContainers:"查看容器","vscode.extension.contributes.view.accessibilityHelpContent":"在此视图中调用辅助功能帮助对话框时,此内容将作为 markdown 字符串呈现给用户。当以 格式提供时,将解析键绑定。如果没有键绑定,将会通过用于配置一个键绑定的链接指示这一点。","vscode.extension.contributes.view.contextualTitle":"当视图移出其原始位置时的用户可读上下文。默认情况下,将使用视图的容器名称。","vscode.extension.contributes.view.group":"视图中的嵌套组","vscode.extension.contributes.view.icon":"视图图标的路径。无法显示视图名称时,将显示视图图标。可以接受任何图像文件类型,但建议图标采用 SVG 格式。","vscode.extension.contributes.view.id":'视图的标识符。这在所有视图中都应是唯一的。建议将扩展 ID 包含在视图 ID 中。使用此选项通过 "vscode.window.registerTreeDataProviderForView" API 注册数据提供程序。也可通过将 "onView:${id}" 事件注册为 "activationEvents" 来触发激活扩展。',"vscode.extension.contributes.view.initialState":"首次安装扩展时视图的初始状态。用户一旦通过折叠、移动或隐藏视图更改视图状态,就不再使用初始状态。","vscode.extension.contributes.view.initialState.collapsed":"视图将在视图容器中折叠显示。","vscode.extension.contributes.view.initialState.hidden":"视图不会显示在视图容器中,但可通过视图菜单和其他视图入口点发现,而且用户可取消隐藏视图。","vscode.extension.contributes.view.initialState.visible":"视图的默认初始状态。但在大多数容器中,视图将展开,但某些内置容器(资源管理器、scm 和调试)显示所有已折叠的参与视图,无论“可见性”如何,都是如此。","vscode.extension.contributes.view.name":"用户可读的视图名称。将显示它","vscode.extension.contributes.view.remoteName":"与此视图关联的远程类型的名称","vscode.extension.contributes.view.tree":'该视图由 "createTreeView" 创建的 "TreeView" 提供支持。',"vscode.extension.contributes.view.type":'视图的类型。对于基于树状视图的视图,这可以是 "tree",对于基于 Web 视图的视图,这可以是 "webview"。默认值为 "tree"。',"vscode.extension.contributes.view.webview":'该视图由 "registerWebviewViewProvider" 注册的 "WebviewView" 提供支持。',"vscode.extension.contributes.view.when":"为真时才显示此视图的条件","vscode.extension.contributes.views":"向编辑器提供视图","vscode.extension.contributes.views.containers.icon":'容器图标的路径。图标大小为 24x24,并居中放置在 50x40 的区域内,其填充颜色为 "rgb(215, 218, 224)" 或 "#d7dae0"。所有图片格式均可用,推荐使用 SVG 格式。',"vscode.extension.contributes.views.containers.id":'用于标识容器的唯一 ID,视图能在容器内通过 "view" 参与点提供。',"vscode.extension.contributes.views.containers.title":"人类可读的用于表示此容器的字符串","vscode.extension.contributes.viewsContainers":"向编辑器提供视图容器","vscode.extension.contributs.view.size":"视图的初始大小。大小的行为将类似于 css “flex” 属性,并将在首次显示视图时设置初始大小。在侧栏中,这是视图的高度。仅当同一扩展同时拥有视图和视图容器时,才考虑此值。"},"vs/workbench/api/common/configurationExtensionPoint":{"config.property.defaultConfiguration.warning":"无法注册“{0}”的配置默认值。仅支持可重写计算机、窗口、资源和可重写语言范围设置的默认值。","config.property.duplicate":"无法注册“{0}”。此属性已注册。",default:"默认值",description:"说明","invalid.allOf":'"configuration.allOf" 已被弃用且不应被使用。你可以将多个配置单元作为数组传递给 "configuration" 参与点。',"invalid.properties":"configuration.properties 必须是对象","invalid.property":"配置对象属性“{0}”必须是对象","invalid.title":"configuration.title 必须是字符串","scope.application.description":"只能在用户设置中进行配置的配置。","scope.deprecationMessage":"设置后,该属性将被标记为已弃用,并将给定的消息显示为解释。","scope.description":'配置适用的作用域。可用作用域包括"application"、"machine"、"window"、"resource"和"machine-overridable"。',"scope.editPresentation":"指定后,控制字符串设置的表示格式。","scope.enumDescriptions":"枚举值的说明","scope.enumItemLabels":"要在“设置”编辑器中显示的枚举值的标签。指定后,{0}值仍显示在标签之后,但突出显示较少。","scope.ignoreSync":"启用后,“设置同步”默认不会同步此配置的用户值。","scope.language-overridable.description":"可在语言特定设置中配置的资源配置。","scope.machine-overridable.description":"也可在工作区或文件夹设置中配置的计算机配置。","scope.machine.description":"只能在用户设置或远程设置中配置的配置。","scope.markdownDeprecationMessage":"设置后,该属性将被标记为已弃用,并按 Markdown 格式显示给定的消息作为解释。","scope.markdownDescription":"Markdown 格式的说明。","scope.markdownEnumDescriptions":"Markdown 格式的枚举值说明。","scope.multilineText.description":"该值将显示在文本区域中。","scope.order":"指定后,提供此设置相对于同一类别中其他设置的顺序。在未设置此属性的设置之前,将放置具有顺序属性的设置。","scope.resource.description":"可在用户、远程、工作区或文件夹设置中对其进行配置的配置。","scope.singlelineText.description":"该值将显示在输入框中。","scope.window.description":"可在用户、远程或工作区设置中对其进行配置的配置。","setting name":"ID",settings:"设置",unknownWorkspaceProperty:"未知的工作区配置属性","vscode.extension.contributes.configuration":"用于配置字符串。","vscode.extension.contributes.configuration.order":"指定后,提供此类别的设置相对于其他类别的顺序。","vscode.extension.contributes.configuration.properties":"配置属性的描述。","vscode.extension.contributes.configuration.properties.schema":"配置属性的架构。","vscode.extension.contributes.configuration.property.empty":"属性不应为空。","vscode.extension.contributes.configuration.title":"当前设置类别的标题。此标签将在“设置”编辑器中以副标题形式呈现。如果标题与扩展显示名称相同,则类别将分组到主扩展标题下。","workspaceConfig.extensions.description":"工作区扩展","workspaceConfig.folders.description":"将载入到工作区的文件夹列表。","workspaceConfig.launch.description":"工作区启动配置","workspaceConfig.name.description":"文件夹的可选名称。","workspaceConfig.path.description":'文件路径。例如 "/root/folderA" 或 "./folderA"。后者表示根据工作区文件位置进行解析的相对路径。',"workspaceConfig.remoteAuthority":"工作区所在的远程服务器。","workspaceConfig.settings.description":"工作区设置","workspaceConfig.tasks.description":"工作区任务配置","workspaceConfig.transient":"重启或重新加载时,暂时性工作区将消失。","workspaceConfig.uri.description":"文件夹的 URI"},"vs/workbench/api/common/extHostDiagnostics":{limitHit:"未显示 {0} 个进一步的错误和警告。"},"vs/workbench/api/common/extHostExtensionService":{extensionTestError:"路径 {0} 未指向有效的扩展测试运行程序。",extensionTestError1:"无法加载测试运行程序。"},"vs/workbench/api/common/extHostLanguageFeatures":{defaultDropLabel:"使用“{0}”扩展删除",defaultPasteLabel:"使用“{0}”扩展粘贴"},"vs/workbench/api/common/extHostLanguageModels":{chatAccess:"允许访问 {0} 提供的语言模型",chatAccessWithJustification:"允许访问 {0} 提供的语言模型。理由:\r\n\r\n{1}"},"vs/workbench/api/common/extHostLogService":{local:"扩展宿主",remote:"扩展主机(远程)",worker:"扩展主机(辅助角色)"},"vs/workbench/api/common/extHostNotebook":{"err.readonly":"无法修改只读文件“{0}”",fileModifiedError:"自以下时间已修改的文件:"},"vs/workbench/api/common/extHostStatusBar":{extensionLabel:"{0} (扩展)","status.extensionMessage":"扩展状态"},"vs/workbench/api/common/extHostTelemetry":{extensionTelemetryLog:"扩展遥测{0}"},"vs/workbench/api/common/extHostTerminalService":{"launchFail.idMissingOnExtHost":"在扩展主机上找不到 ID 为 {0} 的终端"},"vs/workbench/api/common/extHostTreeViews":{"treeView.duplicateElement":"ID 为 {0} 的元素已被注册"},"vs/workbench/api/common/extHostTunnelService":{"tunnelPrivacy.private":"专用","tunnelPrivacy.public":"公共"},"vs/workbench/api/common/extHostWorkspace":{updateerror:"扩展“{0}”未能更新工作区文件夹: {1}"},"vs/workbench/api/common/jsonValidationExtensionPoint":{"contributes.jsonValidation":"用于 json 架构配置。","contributes.jsonValidation.fileMatch":'要匹配的文件模式(或模式数组),例如"package.json"或"*. launch"。排除模式以"!"开头',"contributes.jsonValidation.url":'到扩展文件夹(\'./\')的架构 URL ("http:"、"https:")或相对路径。',fileMatch:"匹配文件","invalid.fileMatch":'"configuration.jsonValidation.fileMatch"必须定义为字符串或字符串数组。',"invalid.jsonValidation":"configuration.jsonValidation 必须是数组","invalid.path.1":'"contributes.{0}.url" ({1})应包含在扩展的文件夹({2})内。这可能会使扩展不可移植。',"invalid.url":"configuration.jsonValidation.url 必须是 URL 或相对路径","invalid.url.fileschema":"configuration.jsonValidation.url 是无效的相对 URL: {0}","invalid.url.schema":'"configuration.jsonValidation.url" 必须是绝对 URL 或者以 "./" 开头,以引用扩展中的架构。',jsonValidation:"JSON 验证",schema:"结构"},"vs/workbench/api/node/extHostDebugService":{"debug.terminal.title":"调试流程"},"vs/workbench/browser/actions/developerActions":{global:"全局","inspect context keys":"检查上下文键值",largeStorageItemDetail:"范围: {0},目标: {1}",logStorage:"记录存储数据库内容",logWorkingCopies:"日志工作副本",machine:"计算机",profile:"配置文件",removeLargeStorageDatabaseEntries:"删除大型存储数据库条目...",removeLargeStorageEntriesButtonLabel:"删除(&&R)",removeLargeStorageEntriesConfirmRemove:"是否要从数据库中删除所选存储项?",removeLargeStorageEntriesConfirmRemoveDetail:"{0}\r\n\r\n此操作不可逆,可能会导致数据丢失!",removeLargeStorageEntriesPickerButton:"删除",removeLargeStorageEntriesPickerDescriptionNoEntries:"没有要删除的大型存储条目。",removeLargeStorageEntriesPickerPlaceholder:"选择要从存储中删除的大型条目","screencastMode.fontSize":"控制截屏模式键盘的字体大小(以像素为单位)。","screencastMode.keyboardOptions.description":"用于在屏幕广播模式下自定义键盘覆盖的选项。","screencastMode.keyboardOptions.showCommandGroups":"显示命令时,同时也显示命令组名称。","screencastMode.keyboardOptions.showCommands":"显示命令名称。","screencastMode.keyboardOptions.showKeybindings":"显示键盘快捷方式。","screencastMode.keyboardOptions.showKeys":"显示原始键。","screencastMode.keyboardOptions.showSingleEditorCursorMoves":"显示单个编辑器光标移动命令。","screencastMode.keyboardOverlayTimeout":"控制截屏模式下键盘覆盖显示的时长(以毫秒为单位)。","screencastMode.location.verticalPosition":"控制截屏模式叠加的垂直偏移,从底部作为工作台高度的百分比。","screencastMode.mouseIndicatorColor":"控制截屏视频模式下鼠标指示器的十六进制(#RGB、#RGBA、#RRGGBB 或 #RRGGBBAA)的颜色。","screencastMode.mouseIndicatorSize":"控制截屏模式下鼠标光标的大小(以像素为单位)。",screencastModeConfigurationTitle:"截屏模式",snapshotTrackedDisposables:"快照跟踪的可释放项",startTrackDisposables:"开始跟踪可释放项",stopTrackDisposables:"停止跟踪可释放项",storageLogDialogDetails:"从菜单中打开开发人员工具,并选择“控制台”选项卡。",storageLogDialogMessage:"存储数据库内容已记录到开发人员工具中。","toggle screencast mode":"切换屏幕模式",user:"用户",workspace:"工作区"},"vs/workbench/browser/actions/helpActions":{keybindingsReference:"键盘快捷方式参考",miDocumentation:"文档(&&D)",miKeyboardShortcuts:"键盘快捷方式参考(&&K)",miLicense:"查看许可证(&&V)",miPrivacyStatement:"隐私声明(&&Y)",miTipsAndTricks:"贴士和技巧(&&C)",miUserVoice:"搜索功能请求(&&S)",miVideoTutorials:"视频教程(&&V)",miYouTube:"在 YouTube 上加入我们(&&J)",newsletterSignup:"订阅 VS Code 新闻邮件",openDocumentationUrl:"文档",openLicenseUrl:"查看许可证",openPrivacyStatement:"隐私声明",openTipsAndTricksUrl:"提示与技巧",openUserVoiceUrl:"搜索功能请求",openVideoTutorialsUrl:"视频教程",openYouTubeUrl:"在 YouTube 上加入我们"},"vs/workbench/browser/actions/layoutActions":{active:"活动",activityBar:"活动栏",activityBarLeft:"表示活动栏在左侧位置",activityBarRight:"表示活动栏在右侧位置",centerLayoutIcon:"表示居中布局模式",centerPanel:"居中",centeredLayout:"居中布局",close:"关闭",closeSidebar:"关闭主侧栏",cofigureLayoutIcon:"图标表示工作台布局配置。","compositePart.hideSideBarLabel":"隐藏主边栏",configureLayout:"配置布局",customizeLayout:"自定义布局...",customizeLayoutQuickPickTitle:"自定义布局",decreaseEditorHeight:"降低编辑器高度",decreaseEditorWidth:"降低编辑器宽度",decreaseViewSize:"减小当前视图大小",editorActionsPosition:"编辑器操作位置",fullScreenIcon:"表示全屏",fullscreen:"全屏",hideEditorActons:"隐藏编辑器操作",hideEditorActonsDescription:"在选项卡和标题栏中隐藏“编辑器操作”",hideEditorTabs:"隐藏编辑器选项卡",hideEditorTabsDescription:"隐藏选项卡栏",hideEditorTabsZenMode:"在禅模式下隐藏编辑器选项卡",hideEditorTabsZenModeDescription:"在禅模式下隐藏选项卡栏",increaseEditorHeight:"增加编辑器高度",increaseEditorWidth:"增加编辑器宽度",increaseViewSize:"增加当前视图大小",justifyPanel:"两端对齐",layoutModes:"模式",leftPanel:"左对齐",leftSideBar:"左对齐",menuBar:"菜单栏",menuBarIcon:"表示菜单栏",miAppearance:"外观(&&A)",miMenuBar:"菜单栏(&&B)",miMenuBarNoMnemonic:"菜单栏",miMoveSidebarLeft:"向左移动主侧栏(&M)",miMoveSidebarRight:"向右移动主侧栏(&&M)",miShowEditorArea:"显示编辑区域(&&E)",miStatusbar:"状态栏(&&T)",miToggleCenteredLayout:"居中布局(&&C)",miToggleZenMode:"禅模式","move second sidebar left":"向左移动辅助边栏","move second sidebar right":"向右移动辅助边栏","move side bar right":"向右移动主侧栏","move sidebar left":"向左移动主侧栏","move sidebar right":"向右移动主侧栏",moveEditorActionsToTabBar:"将编辑器操作移动到选项卡栏",moveEditorActionsToTabBarDescription:"将“编辑器操作”从标题栏移动到选项卡栏",moveEditorActionsToTitleBar:"将编辑器操作移动到标题栏",moveEditorActionsToTitleBarDescription:"将“编辑器操作”从选项卡栏移动到标题栏",moveFocusedView:"移动焦点视图","moveFocusedView.error.noFocusedView":"当前没有重点视图。","moveFocusedView.error.nonMovableView":"当前焦点视图不可移动。","moveFocusedView.newContainerInPanel":"新建面板条目","moveFocusedView.newContainerInSidePanel":"新建辅助侧栏条目","moveFocusedView.newContainerInSidebar":"新侧边栏条目","moveFocusedView.selectDestination":"选择视图的目标","moveFocusedView.selectView":"选择要移动的视图","moveFocusedView.title":"视图: 移动 {0}",moveSidebarLeft:"向左移动主侧栏",moveSidebarRight:"向右移动主侧栏",moveView:"移动视图",panel:"面板",panelAlignment:"面板对齐方式",panelBottom:"表示底部面板",panelBottomCenter:"表示底部面板对齐方式设为居中",panelBottomJustify:"表示设置底部面板对齐方式设为两端对齐",panelBottomLeft:"表示底部面板对齐方式设为左对齐",panelBottomRight:"表示底部面板对齐方式设为右对齐",panelContainer:"面板/{0}",panelLeft:"表示左侧位置的侧栏",panelLeftOff:"表示已关闭的左侧位置的侧栏",panelRight:"表示右侧位置的侧栏",panelRightOff:"表示已关闭的右侧位置的侧栏","primary sidebar":"主侧边栏","primary sidebar mnemonic":"主侧边栏(&&P)","resetFocusedView.error.noFocusedView":"当前没有重点视图。",resetFocusedViewLocation:"重置焦点视图位置",resetViewLocations:"重置视图位置","restore defaults":"还原默认值",rightPanel:"右对齐",rightSideBar:"右对齐",secondarySideBar:"辅助侧边栏",secondarySideBarContainer:"辅助侧栏/{0}",selectToHide:"选择以隐藏",selectToShow:"选择以显示",showEditorActons:"显示编辑器操作",showEditorActonsDescription:"将“编辑器操作”设为可见。",showMultipleEditorTabs:"显示多个编辑器选项卡",showMultipleEditorTabsDescription:"显示具有多个选项卡的选项卡栏",showMultipleEditorTabsZenMode:"在禅模式下显示多个编辑器选项卡",showMultipleEditorTabsZenModeDescription:"在 Zen 模式下显示选项卡栏",showSingleEditorTab:"显示单个编辑器选项卡",showSingleEditorTabDescription:"显示具有一个选项卡的选项卡栏",showSingleEditorTabZenMode:"在禅模式下显示单个编辑器选项卡",showSingleEditorTabZenModeDescription:"在禅模式下显示带有一个选项卡的选项卡栏",sideBar:"主侧栏",sideBarPosition:"主侧栏位置",sidebar:"侧边栏",sidebarContainer:"侧边栏/{0}",statusBar:"状态栏",statusBarIcon:"表示状态栏",tabBar:"选项卡栏",toggleCenteredLayout:"切换居中布局",toggleEditor:"切换编辑器区域可见性",toggleMenuBar:"切换菜单栏",toggleSeparatePinnedEditorTabs:"分离已固定编辑器选项卡",toggleSeparatePinnedEditorTabsDescription:"控制固定的编辑器选项卡是否在未固定的选项卡上方呈单独一行显示。",toggleSideBar:"切换主侧栏",toggleSidebar:"切换主侧栏可见性",toggleSidebarPosition:"切换主侧栏位置",toggleStatusbar:"切换状态栏可见性",toggleVisibility:"可见性",toggleZenMode:"切换禅模式",zenMode:"禅模式",zenModeIcon:"表示禅模式"},"vs/workbench/browser/actions/listCommands":{mitoggleTreeStickyScroll:"切换树粘滞滚动(&&T)",toggleTreeStickyScroll:"切换树粘滞滚动",toggleTreeStickyScrollDescription:"切换树结构顶部的粘滞滚动小组件,例如文件资源管理器和“调试变量”视图。"},"vs/workbench/browser/actions/navigationActions":{focusNextPart:"专注下一部分",focusPreviousPart:"专注上一部分",navigateDown:"导航到下方视图",navigateLeft:"导航到左侧视图",navigateRight:"导航到右侧视图",navigateUp:"导航到上方视图"},"vs/workbench/browser/actions/quickAccessActions":{quickNavigateNext:"在 Quick Open 中导航到下一个",quickNavigatePrevious:"在 Quick Open 中导航到上一个",quickOpen:"转到文件...",quickOpenWithModes:"Quick Open",quickSelectNext:"在 Quick Open 中选择“下一步”",quickSelectPrevious:"在 Quick Open 中选择“上一步”"},"vs/workbench/browser/actions/textInputActions":{copy:"复制",cut:"剪切",paste:"粘贴",redo:"恢复",selectAll:"选择全部",undo:"撤消"},"vs/workbench/browser/actions/windowActions":{about:"关于",blur:"从具有焦点的元素中删除键盘焦点",dirtyFolder:"包含未保存的文件的文件夹",dirtyFolderConfirm:"是否要打开文件夹以查看未保存的文件?",dirtyFolderConfirmDetail:"在保存或还原所有未保存的文件之前,无法删除包含未保存的文件的文件夹。",dirtyRecentlyOpenedFolder:"包含未保存的文件的文件夹",dirtyRecentlyOpenedWorkspace:"包含未保存的文件的工作区",dirtyWorkspace:"包含未保存的文件的工作区",dirtyWorkspaceConfirm:"是否要打开工作区以查看未保存的文件?",dirtyWorkspaceConfirmDetail:"在保存或还原所有未保存的文件之前,无法删除包含未保存的文件的工作区。",files:"文件",folders:"文件夹",miAbout:"关于(&&A)",miConfirmClose:"关闭前确认",miMore:"更多(&&M)...",miNewWindow:"新建窗口(&&W)",miOpenRecent:"打开最近的文件(&&R)",miToggleFullScreen:"全屏(&&F)",newWindow:"新建窗口",openRecent:"打开最近的文件…",openRecentPlaceholder:"选中以打开(按 Ctrl 键强制打开新窗口,或按 Alt 键打开同一窗口)",openRecentPlaceholderMac:"选中以打开(按 Cmd 键强制打开新窗口,或按 Option 键打开同一窗口)",quickOpenRecent:"快速打开最近的文件…",recentDirtyFolderAriaLabel:"{0},包含未保存的更改的文件夹",recentDirtyWorkspaceAriaLabel:"{0},包含未保存的更改的工作区",reloadWindow:"重新加载窗口",remove:"从最近打开中删除",toggleFullScreen:"切换全屏",workspacesAndFolders:"文件夹和工作区"},"vs/workbench/browser/actions/workspaceActions":{closeWorkspace:"关闭工作区",duplicateWorkspace:"复制工作区",duplicateWorkspaceInNewWindow:"在新窗口中复制工作区",globalRemoveFolderFromWorkspace:"将文件夹从工作区删除…",miAddFolderToWorkspace:"将文件夹添加到工作区(&&D)...",miCloseFolder:"关闭文件夹(&&F)",miCloseWorkspace:"关闭工作区(&&W)",miOpen:"打开(&&O)...",miOpenFile:"打开文件(&&O)...",miOpenFolder:"打开文件夹(&&F)...",miOpenWorkspace:"从文件打开工作区(&&K)...",miSaveWorkspaceAs:"将工作区另存为...",openFile:"打开文件...",openFileFolder:"打开...",openFolder:"打开文件夹...",openWorkspaceAction:"从文件打开工作区...",openWorkspaceConfigFile:"打开工作区配置文件",saveWorkspaceAsAction:"将工作区另存为...",workspaces:"工作区"},"vs/workbench/browser/actions/workspaceCommands":{add:"添加(&&A)",addFolderToWorkspace:"将文件夹添加到工作区...",addFolderToWorkspaceTitle:"将文件夹添加到工作区",workspaceFolderPickerPlaceholder:"选择工作区文件夹"},"vs/workbench/browser/editor":{pinned:"{0},已固定",preview:"{0},预览"},"vs/workbench/browser/labels":{notebookCellLabel:"{0} • 单元格 {1}"},"vs/workbench/browser/parts/activitybar/activitybarPart":{"activity bar position":"活动栏位置",bottom:"底部",default:"默认",focusActivityBar:"将焦点放在活动栏上",hide:"隐藏",hideActivityBar:"隐藏活动栏",hideMenu:"隐藏菜单",menu:"菜单",miBottomActivityBar:"底部(&&B)",miDefaultActivityBar:"默认(&&D)",miHideActivityBar:"隐藏(&&H)",miTopActivityBar:"顶部(&&T)",nextSideBarView:"下一个主侧栏视图",positionActivituBar:"活动栏位置",positionActivityBarBottom:"将活动栏移动到底部",positionActivityBarDefault:"将活动栏移至侧边",positionActivityBarTop:"将活动栏移至顶部",previousSideBarView:"上一个主侧栏视图",top:"顶部"},"vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions":{focusAuxiliaryBar:"将焦点置于辅助侧栏",hideAuxiliaryBar:"隐藏辅助侧栏","secondary sidebar":"辅助侧边栏","secondary sidebar mnemonic":"辅助侧边栏(&&D)",toggleAuxiliaryBar:"切换辅助侧栏可见性",toggleAuxiliaryIconLeft:"用于在其左侧位置切换辅助栏的图标。",toggleAuxiliaryIconLeftOn:"用于打开其左侧位置辅助栏的图标。",toggleAuxiliaryIconRight:"用于在其右侧位置关闭辅助栏的图标。",toggleAuxiliaryIconRightOn:"用于打开其右侧位置辅助栏的图标。",toggleSecondarySideBar:"切换辅助侧栏"},"vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart":{"activity bar position":"活动栏位置","hide second side bar":"隐藏辅助侧栏","move second side bar left":"向左移动辅助边栏","move second side bar right":"向右移动辅助边栏"},"vs/workbench/browser/parts/banner/bannerPart":{focusBanner:"焦点横幅"},"vs/workbench/browser/parts/compositeBar":{activityBarAriaLabel:"活动视图切换器"},"vs/workbench/browser/parts/compositeBarActions":{additionalViews:"其他视图",badgeTitle:"{0} - {1}",hide:"隐藏“{0}”",hideBadge:"隐藏徽章",keep:"保留“{0}”",manageExtension:"管理扩展",numberBadge:"{0} ({1})",showBadge:"显示徽章",titleKeybinding:"{0} ({1})",toggle:"切换已固定的视图",toggleBadge:"切换视图徽章"},"vs/workbench/browser/parts/compositePart":{ariaCompositeToolbarLabel:"{0}操作",titleTooltip:"{0} ({1})",viewsAndMoreActions:"视图和更多操作…"},"vs/workbench/browser/parts/dialogs/dialogHandler":{aboutDetail:"版本: {0}\r\n提交: {1}\r\n日期: {2}\r\n浏览器: {3}",copy:"复制(&&C)",ok:"确定"},"vs/workbench/browser/parts/editor/binaryDiffEditor":{metadataDiff:"{0} ↔ {1}"},"vs/workbench/browser/parts/editor/binaryEditor":{binaryEditor:"二进制查看器",binaryError:"此文件是二进制文件或使用了不受支持的文本编码,所以无法在文本编辑器中显示。",openAnyway:"仍然打开"},"vs/workbench/browser/parts/editor/breadcrumbs":{enabled:"启用/禁用导航路径。",filepath:"控制是否及如何在“导航路径”视图中显示文件路径。","filepath.last":"在导航路径视图中仅显示文件路径的最后一个元素。","filepath.off":"不在导航路径视图中显示文件路径。","filepath.on":"在导航路径视图中显示文件路径。","filteredTypes.array":"启用后,痕迹导航栏将显示“数组”符号。","filteredTypes.boolean":"启用后,痕迹导航栏将显示“布尔”符号。","filteredTypes.class":"启用后,痕迹导航栏显示“类”符号。","filteredTypes.constant":"启用后,痕迹导航栏将显示“常量”符号。","filteredTypes.constructor":"启用后,痕迹符将显示“构造函数”符号。","filteredTypes.enum":"启用后,痕迹导航栏将显示“枚举”符号。","filteredTypes.enumMember":'启用后,痕迹导航栏将显示 "enumMember" 符号。',"filteredTypes.event":"启用后,痕迹导航栏将显示“事件”符号。","filteredTypes.field":"启用后,痕迹导航栏将显示“字段”符号。","filteredTypes.file":"启用后,痕迹导航栏将显示“文件”符号。","filteredTypes.function":"启用后,痕迹导航栏将显示“函数”符号。","filteredTypes.interface":"启用后,痕迹导航栏将显示“接口”符号。","filteredTypes.key":"启用后,痕迹导航栏将显示“键”符号。","filteredTypes.method":"启用后,痕迹导航栏将显示“方法”符号。","filteredTypes.module":"启用后,痕迹导航栏将显示“模块”符号。","filteredTypes.namespace":"启用后,痕迹导航栏将显示“命名空间”符号。","filteredTypes.null":'启用后,痕迹导航栏将显示 "null" 符号。',"filteredTypes.number":"启用后,痕迹导航栏将显示“数字”符号。","filteredTypes.object":"启用后,痕迹导航栏将显示“对象”符号。","filteredTypes.operator":"启用后,痕迹导航栏将显示“运算符”符号。","filteredTypes.package":"启用后,痕迹导航栏将显示“包”符号。","filteredTypes.property":"启用后,痕迹导航栏将显示“属性”符号。","filteredTypes.string":"启用后,痕迹导航栏将显示“字符串”符号。","filteredTypes.struct":"启用后,痕迹导航栏将显示“结构”符号。","filteredTypes.typeParameter":'启用后,痕迹导航栏将显示 "typeParameter" 符号。',"filteredTypes.variable":"启用后,痕迹导航栏将显示“变量”符号。",icons:"使用图标渲染面包屑导航项。",symbolSortOrder:"控制“导航路径”大纲视图中符号的排序方式。","symbolSortOrder.name":"以字母顺序显示符号大纲。","symbolSortOrder.position":"以文件位置顺序显示符号大纲。","symbolSortOrder.type":"以符号类型顺序显示符号大纲。",symbolpath:"控制是否及如何在“导航路径”视图中显示符号。","symbolpath.last":"在导航路径视图中仅显示当前符号。","symbolpath.off":"不在导航路径视图中显示符号。","symbolpath.on":"在“导航路径”视图中显示所有符号。",title:"导航路径"},"vs/workbench/browser/parts/editor/breadcrumbsControl":{breadcrumbsActive:"焦点是否在痕迹导航上",breadcrumbsPossible:"编辑器是否可显示痕迹导航",breadcrumbsVisible:"痕迹导航当前是否可见","cmd.focus":"聚焦到“导航路径”视图","cmd.focusAndSelect":"聚焦并选择痕迹导航","cmd.toggle":"切换导航路径","cmd.toggle2":"切换痕迹导航",empty:"无元素",miBreadcrumbs:"切换痕迹导航(&&B)",miBreadcrumbs2:"切换痕迹导航(&&B)",separatorIcon:"痕迹导航中分隔符的图标。"},"vs/workbench/browser/parts/editor/breadcrumbsPicker":{breadcrumbs:"痕迹导航"},"vs/workbench/browser/parts/editor/diffEditorCommands":{compare:"比较","compare.nextChange":"转到下一个更改","compare.previousChange":"转到上一个更改",swapDiffSides:"切换编辑器左右端",toggleInlineView:"切换内联视图"},"vs/workbench/browser/parts/editor/editor.contribution":{activeGroupEditorsByMostRecentlyUsedQuickAccess:"按最近使用显示活动组中的编辑器",allEditorsByAppearanceQuickAccess:"按外观显示所有打开的编辑器",allEditorsByMostRecentlyUsedQuickAccess:"按最近使用显示所有打开的编辑器",binaryDiffEditor:"二进制差异编辑器",close:"关闭",closeAll:"全部关闭",closeAllSaved:"关闭已保存",closeEditor:"关闭编辑器",closeEditorGroup:"关闭编辑器组",closeEditorsInGroup:"关闭组中的所有编辑器",closeGroupAction:"关闭组",closeOtherEditors:"关闭组中其他编辑器",closeOthers:"关闭其他",closePinnedEditor:"关闭固定的编辑器",closeRight:"关闭右侧标签页",closeRightEditors:"关闭组中右侧编辑器",closeSavedEditors:"关闭组中已保存的编辑器",copyEditorGroupToNewWindow:"复制到“新窗口”中",copyEditorToNewWindow:"将编辑器复制到新窗口",copyToNewWindow:"复制到“新窗口”中",editorActionsPosition:"编辑器操作位置",editorQuickAccessPlaceholder:"键入要打开的编辑器名称。",hidden:"隐藏",hideTabs:"隐藏","ignoreTrimWhitespace.label":"显示前导/尾随空格差异",inlineView:"内联视图",joinInGroup:"合并组",keepEditor:"保留编辑器",keepOpen:"保持打开状态",lockEditorGroup:"锁定组",lockGroup:"锁定组",lockGroupAction:"锁定组",maximizeGroup:"最大化组",miClearRecentOpen:"清除最近打开的…(&&C)",miCopyEditorToNewWindow:"将编辑器复制到新窗口(&&C)",miEditorLayout:"编辑器布局(&&L)",miFirstSideEditor:"编辑器中的第一侧(&&F)",miFocusAboveGroup:"上方组(&&A)",miFocusBelowGroup:"下方组(&&B)",miFocusFifthGroup:"第 5 组(&&5)",miFocusFirstGroup:"第 1 组(&&1)",miFocusFourthGroup:"第 4 组(&&4)",miFocusLeftGroup:"左侧组(&&L)",miFocusRightGroup:"右侧组(&&R)",miFocusSecondGroup:"第 2 组(&&2)",miFocusThirdGroup:"第 3 组(&&3)",miJoinEditorInGroup:"加入组(&&G)",miJoinEditorInGroupWithoutMnemonic:"合并组",miLastEditLocation:"上次编辑位置(&&L)",miMoveEditorToNewWindow:"将编辑器移动到新窗口(&&M)",miNextEditor:"下一个编辑器(&&N)",miNextEditorInGroup:"组中的下一个编辑器(&&N)",miNextGroup:"下一个组(&&N)",miNextRecentlyUsedEditor:"下一个使用过的编辑器(&&N)",miNextUsedEditorInGroup:"组中下一个使用过的编辑器(&&N)",miPreviousEditor:"上一个编辑器(&&P)",miPreviousEditorInGroup:"组中的上一个编辑器(&&P)",miPreviousGroup:"上一个组(&&P)",miPreviousRecentlyUsedEditor:"上一个使用过的编辑器(&&P)",miPreviousUsedEditorInGroup:"组中上一个使用过的编辑器(&&P)",miReopenClosedEditor:"重新打开已关闭的编辑器(&&R)",miSecondSideEditor:"编辑器中的第二侧(&&S)",miShare:"共享",miSingleColumnEditorLayout:"单列(&&S)",miSingleColumnEditorLayoutWithoutMnemonic:"单一",miSplitEditorDown:"向下拆分(&&D)",miSplitEditorDownWithoutMnemonic:"向下拆分",miSplitEditorInGroup:"在组中拆分(&&G)",miSplitEditorInGroupWithoutMnemonic:"在组中拆分",miSplitEditorLeft:"向左拆分(&&L)",miSplitEditorLeftWithoutMnemonic:"向左拆分",miSplitEditorRight:"向右拆分(&&R)",miSplitEditorRightWithoutMnemonic:"向右拆分",miSplitEditorUp:"向上拆分(&&U)",miSplitEditorUpWithoutMnemonic:"向上拆分",miSwitchEditor:"切换编辑器(&&E)",miSwitchGroup:"切换组(&&G)",miThreeColumnsEditorLayout:"三列(&&H)",miThreeColumnsEditorLayoutWithoutMnemonic:"三列",miThreeRowsEditorLayout:"三行(&&R)",miThreeRowsEditorLayoutWithoutMnemonic:"三行",miTwoByTwoGridEditorLayout:"2x2 网格(&&G)",miTwoByTwoGridEditorLayoutWithoutMnemonic:"2x2 网格",miTwoColumnsBottomEditorLayout:"底部双列(&&C)",miTwoColumnsBottomEditorLayoutWithoutMnemonic:"底部双列",miTwoColumnsEditorLayout:"双列(&&T)",miTwoColumnsEditorLayoutWithoutMnemonic:"两列",miTwoRowsEditorLayout:"双行(&&W)",miTwoRowsEditorLayoutWithoutMnemonic:"双行",miTwoRowsRightEditorLayout:"右侧双行(&&O)",miTwoRowsRightEditorLayoutWithoutMnemonic:"右侧双行",moveEditorGroupToNewWindow:"移动到“新窗口”中",moveEditorToNewWindow:"将编辑器移动到新窗口",moveToNewWindow:"移动到“新窗口”中",multipleTabs:"多个选项卡","navigate.next.label":"下一个更改","navigate.prev.label":"上一个更改",newWindow:"新建窗口",nextChangeIcon:"差异编辑器中下一个更改操作的图标",pin:"固定",pinEditor:"固定编辑器",previousChangeIcon:"差异编辑器中上一个更改操作的图标",reopenWith:"重新打开编辑器的方式…",showOpenedEditors:"显示打开的编辑器",sideBySideEditor:"并排编辑器",singleTab:"单个选项卡",splitDown:"向下拆分",splitEditorDown:"向下拆分编辑器",splitEditorRight:"向右拆分编辑器",splitInGroup:"在组中拆分",splitLeft:"向左拆分",splitRight:"向右拆分",splitUp:"向上拆分",swapDiffSides:"切换左右端",tabBar:"选项卡栏",textDiffEditor:"文本差异编辑器",textEditor:"文本编辑器",titleBar:"标题栏",toggleLockGroup:"锁定组",togglePreviewMode:"启用预览编辑器",toggleSplitEditorInGroupLayout:"切换布局",toggleWhitespace:"差异编辑器中“切换空白”操作的图标",unlockEditorGroup:"解锁组",unlockGroupAction:"解锁组",unmaximizeGroup:"取消组最大化",unpin:"取消固定",unpinEditor:"取消固定编辑器"},"vs/workbench/browser/parts/editor/editorActions":{clearButtonLabel:"清除(&&C)",clearEditorHistory:"清除编辑器历史记录",clearRecentFiles:"清除最近打开的…",closeAllEditors:"关闭所有编辑器",closeAllGroups:"关闭所有编辑器组",closeEditor:"关闭编辑器",closeEditorInAllGroups:"在所有组中关闭此编辑器",closeEditorsInOtherGroups:"关闭其他组中的编辑器",closeEditorsToTheLeft:"关闭组中左侧编辑器",closeOneEditor:"关闭",confirmClearDetail:"此操作不可逆!",confirmClearEditorHistoryMessage:"是否要清除最近打开的编辑器的历史记录?",confirmClearRecentsMessage:"是否要清除最近打开的所有文件和工作区?",copyEditorGroupToNewWindow:"将编辑器组复制到新窗口",copyEditorToNewWindow:"将编辑器复制到新窗口",duplicateActiveGroupDown:"向下复制编辑器组",duplicateActiveGroupLeft:"向左复制编辑器组",duplicateActiveGroupRight:"向右复制编辑器组",duplicateActiveGroupUp:"向上复制编辑器组",editorLayoutSingle:"单列编辑器布局",editorLayoutThreeColumns:"三列编辑器布局",editorLayoutThreeRows:"三行编辑器布局",editorLayoutTwoByTwoGrid:"2x2 网格编辑器布局",editorLayoutTwoColumns:"双列编辑器布局",editorLayoutTwoColumnsBottom:"底部双列编辑器布局",editorLayoutTwoRows:"双行编辑器布局",editorLayoutTwoRowsRight:"右侧双行编辑器布局",evenEditorGroups:"重置编辑器组大小",firstEditorInGroup:"打开组中的第一个编辑器",focusAboveGroup:"专注上述编辑器组",focusActiveEditorGroup:"聚焦到活动编辑器组",focusBelowGroup:"专注以下编辑器组",focusFirstEditorGroup:"聚焦于第一个编辑器组",focusLastEditorGroup:"聚焦到最终组编辑器",focusLeftGroup:"聚焦到左侧编辑器组",focusNextGroup:"聚焦到下一组编辑器",focusPreviousGroup:"聚焦到上一组编辑器",focusRightGroup:"聚焦到右侧编辑器组",joinAllGroups:"合并所有编辑器组",joinTwoGroups:"将编辑器组与下一组合并",lastEditorInGroup:"打开组中最后一个编辑器",maximizeEditorHideSidebar:"最大化编辑器组并隐藏侧栏",miBack:"返回(&&B)",miCopyEditorGroupToNewWindow:"将编辑器组复制到新窗口(&&C)",miCopyEditorToNewWindow:"将编辑器复制到新窗口(&&C)",miForward:"前进(&&F)",miMoveEditorGroupToNewWindow:"将编辑器组移动到新窗口(&&M)",miMoveEditorToNewWindow:"将编辑器移动到新窗口(&&M)",miNewEmptyEditorWindow:"新建空编辑器窗口(&&N)",miRestoreEditorsToMainWindow:"将编辑器还原到主窗口(&&R)",minimizeOtherEditorGroups:"展开编辑器组",minimizeOtherEditorGroupsHideSidebar:"扩展编辑器组并隐藏侧栏",moveActiveGroupDown:"向下移动编辑器组",moveActiveGroupLeft:"向左移动编辑器组",moveActiveGroupRight:"向右移动编辑器组",moveActiveGroupUp:"向上移动编辑器组",moveEditorGroupToNewWindow:"将编辑器组移动到新窗口",moveEditorLeft:"向左移动编辑器",moveEditorRight:"向右移动编辑器",moveEditorToAboveGroup:"将编辑器移动到上述组",moveEditorToBelowGroup:"将编辑器移动到以下组",moveEditorToFirstGroup:"将编辑器移动到第一组",moveEditorToLastGroup:"将编辑器移动到最后一组",moveEditorToLeftGroup:"将编辑器移动到左侧组",moveEditorToNewWindow:"将编辑器移动到新窗口",moveEditorToNextGroup:"将编辑器移动到下一组",moveEditorToPreviousGroup:"将编辑器移动到上一组",moveEditorToRightGroup:"将编辑器移动到右侧组",navigateBack:"返回",navigateBackInEdits:"编辑位置中的“返回”",navigateBackInNavigations:"导航位置中的“返回”",navigateEditorGroups:"在编辑器组间进行导航",navigateEditorHistoryByInput:"从历史记录中快速打开上一个编辑器",navigateForward:"前进",navigateForwardInEdits:"编辑位置中的“前进”",navigateForwardInNavigations:"导航位置中的“前进”",navigatePrevious:"转到上一页",navigatePreviousInEdits:"编辑位置中的“转到上一页”",navigatePreviousInNavigationLocations:"导航位置中的“转到上一页”",navigateToLastEditLocation:"转到上一编辑位置",navigateToLastNavigationLocation:"转到上一导航位置",newEmptyEditorWindow:"新建空编辑器窗口",newGroupAbove:"在上方新建编辑器组",newGroupBelow:"在下方新建编辑器组",newGroupLeft:"在左侧新建编辑器组",newGroupRight:"在右侧新建编辑器组",nextEditorInGroup:"打开组中的下一个编辑器",openNextEditor:"打开下一个编辑器",openNextRecentlyUsedEditor:"打开下一个最近使用的编辑器",openNextRecentlyUsedEditorInGroup:"打开组中下一个最近使用的编辑器",openPreviousEditor:"打开上一个编辑器",openPreviousEditorInGroup:"打开组中上一个编辑器",openPreviousRecentlyUsedEditor:"打开上一个最近使用的编辑器",openPreviousRecentlyUsedEditorInGroup:"打开组中上一个最近使用的编辑器",quickOpenLeastRecentlyUsedEditor:"快速打开最近使用频率最低的编辑器",quickOpenLeastRecentlyUsedEditorInGroup:"快速打开组中最近使用频率最低的编辑器",quickOpenPreviousRecentlyUsedEditor:"快速打开上一个最近使用过的编辑器",quickOpenPreviousRecentlyUsedEditorInGroup:"快速打开组中上一个最近使用过的编辑器",reopenClosedEditor:"重新打开已关闭的编辑器",reopenTextEditor:"使用文本编辑器重新打开编辑器",restoreEditorsToMainWindow:"将编辑器还原到主窗口",revertAndCloseActiveEditor:"还原并关闭编辑器",showAllEditors:"按外观显示所有编辑器",showAllEditorsByMostRecentlyUsed:"按最近使用显示所有编辑器",showEditorsInActiveGroup:"按最近使用显示活动组中的编辑器",splitEditor:"拆分编辑器",splitEditorGroupDown:"向下拆分编辑器",splitEditorGroupLeft:"向左拆分编辑器",splitEditorGroupRight:"向右拆分编辑器",splitEditorGroupUp:"向上拆分编辑器",splitEditorOrthogonal:"正交拆分编辑器",splitEditorToAboveGroup:"将编辑器拆分为上述组",splitEditorToBelowGroup:"将编辑器拆分为以下组",splitEditorToFirstGroup:"将编辑器拆分为第一组",splitEditorToLastGroup:"将编辑器拆分为最后一个组",splitEditorToLeftGroup:"将编辑器拆分为左组",splitEditorToNextGroup:"将编辑器拆分为下一组",splitEditorToPreviousGroup:"将编辑器拆分为上一组",splitEditorToRightGroup:"将编辑器拆分为右组",toggleEditorType:"切换编辑器类型",toggleEditorWidths:"切换编辑器组大小",toggleMaximizeEditorGroup:"切换最大化编辑器组",unpinEditor:"取消固定编辑器"},"vs/workbench/browser/parts/editor/editorCommands":{"editorCommand.activeEditorCopy.arg.description":"参数属性\r\n\t* 'to': 提供复制位置的字符串值。\r\n\t* 'value': 提供要复制的位置数或绝对位置数的数字值。","editorCommand.activeEditorCopy.arg.name":"活动编辑器复制参数","editorCommand.activeEditorCopy.description":"按组复制活动编辑器","editorCommand.activeEditorMove.arg.description":'参数属性:\r\n\t* "to": 表示向何处移动的字符串值。\r\n\t* "by": 表示移动单位的字符串值 (按选项卡或按组)。\r\n\t* "value": 表示移动的位置数量或移动到的绝对位置的数字型值。',"editorCommand.activeEditorMove.arg.name":"活动编辑器移动参数","editorCommand.activeEditorMove.description":"按标签或按组移动活动编辑器",focusLeftSideEditor:"在活动编辑器中专注第一侧",focusOtherSideEditor:"在活动编辑器中专注其他侧",focusRightSideEditor:"在活动编辑器中专注第二侧",joinEditorInGroup:"在组中加入编辑器",lockEditorGroup:"锁定编辑器组",splitEditorInGroup:"在组中拆分编辑器",toggleEditorGroupLock:"切换编辑器组锁定",toggleJoinEditorInGroup:"在组中切换拆分编辑器",toggleSplitEditorInGroupLayout:"切换组中拆分编辑器的布局",unlockEditorGroup:"解锁编辑器组"},"vs/workbench/browser/parts/editor/editorConfiguration":{"editor.editorAssociations":'将 [glob 模式](https://aka.ms/vscode-glob-patterns)配置到编辑器(例如 `"*.hex": "hexEditor.hexedit"`)。这些优先于默认行为。',editorLargeFileSizeConfirmation:"在要求在编辑器中打开时进行确认之前,控制以 MB 为单位的文件的最小大小。请注意,此设置可能不适用于所有编辑器类型和环境。",interactiveWindow:"交互窗口",livePreview:"实时预览",markdownPreview:"Markdown 预览",simpleBrowser:"简易浏览器","workbench.editor.autoLockGroups":"如果与列出的其中一个类型匹配的编辑器作为编辑器组中的第一个编辑器打开,且打开了多个组,则该组会自动锁定。锁定的组仅用于在用户手势(例如拖放等)显式选择时打开编辑器,默认情况下不使用。因此,锁定的组中的活动编辑器不太可能被意外替换为其他编辑器。","workbench.editor.defaultBinaryEditor":"检测为二进制文件的默认编辑器。如果未定义,将向用户显示选取器。"},"vs/workbench/browser/parts/editor/editorDropTarget":{dropIntoEditorPrompt:"按住 __{0}__ 以放入编辑器中"},"vs/workbench/browser/parts/editor/editorGroupView":{ariaLabelGroupActions:"空编辑器组操作",emptyEditorGroup:"{0} (空)",groupAriaLabel:"编辑器组{0}",groupAriaLabelLong:"{0}: 编辑器组{1}",groupLabel:"第 {0} 组",groupLabelLong:"{0}: 组{1}",moveErrorDetails:"请先尝试保存或还原编辑器,然后重试。"},"vs/workbench/browser/parts/editor/editorGroupWatermark":{editorLineHighlight:"编辑器水印中标签的前景色。","watermark.findInFiles":"在文件中查找","watermark.newUntitledFile":"新的无标题文本文件","watermark.openFile":"打开文件","watermark.openFileFolder":"打开文件或文件夹","watermark.openFolder":"打开文件夹","watermark.openRecent":"打开最近的文件","watermark.quickAccess":"转到文件","watermark.showCommands":"显示所有命令","watermark.showSettings":"显示设置","watermark.startDebugging":"开始调试","watermark.toggleFullscreen":"切换全屏","watermark.toggleTerminal":"切换终端"},"vs/workbench/browser/parts/editor/editorPanes":{editorOpenErrorDialog:"无法打开“{0}”",ok:"确定(&&O)"},"vs/workbench/browser/parts/editor/editorParts":{groupLabel:"窗口 {0}"},"vs/workbench/browser/parts/editor/editorPlaceholder":{errorEditor:"编辑器错误",manageTrust:"管理工作区信任",requiresFolderTrustText:"该文件未在编辑器中显示,因为尚未向该文件夹授予信任。",requiresWorkspaceTrustText:"该文件未在编辑器中显示,因为尚未向该工作区夹授予信任。",retry:"重试",trustRequiredEditor:"需要工作区信任",unavailableResourceErrorEditorText:"由于找不到该文件,因此无法打开编辑器。",unknownErrorEditorTextWithError:"由于意外错误,无法打开编辑器: {0}",unknownErrorEditorTextWithoutError:"由于意外错误,无法打开编辑器。"},"vs/workbench/browser/parts/editor/editorQuickAccess":{closeEditor:"关闭编辑器",entryAriaLabelDirty:"{0},个未保存的更改",entryAriaLabelWithGroup:"{0}, {1}",entryAriaLabelWithGroupDirty:"{0}, 个未保存的更改,{1}",noViewResults:"没有匹配的编辑器"},"vs/workbench/browser/parts/editor/editorStatus":{autoDetect:"自动检测",changeEncoding:"更改文件编码",changeEndOfLine:"更改行尾序列",changeMode:"更改语言模式",columnSelectionModeEnabled:"列选择",configureAssociationsExt:"“{0}”的配置文件关联...",configureModeSettings:"配置“{0}”语言基础设置...",currentAssociation:"当前关联",currentProblem:"当前问题",disableColumnSelectionMode:"禁用列选择模式",disableTabMode:"禁用辅助功能模式",endOfLineCarriageReturnLineFeed:"CRLF",endOfLineLineFeed:"LF",fileInfo:"文件信息",gotoLine:"转到行/列",guessedEncoding:"通过内容猜测",indentConvert:"转换文件",indentView:"更改视图",languageDescription:"({0}) - 已配置的语言",languageDescriptionConfigured:"({0})",languagesPicks:"语言(标识符)",multiSelection:"{0} 选择",multiSelectionRange:"{0} 选择(已选择 {1} 个字符)",noEditor:"当前没有活动的文本编辑器",noFileEditor:"此时无活动文件",noWritableCodeEditor:"活动代码编辑器为只读模式。",pickAction:"选择操作",pickEncodingForReopen:"选择文件编码以重新打开文件",pickEncodingForSave:"选择用于保存的文件编码",pickEndOfLine:"选择行尾序列",pickLanguage:"选择语言模式",pickLanguageToConfigure:"选择要与“{0}”关联的语言模式",reopenWithEncoding:"通过编码重新打开",saveWithEncoding:"通过编码保存",selectEOL:"选择行尾序列",selectEncoding:"选择编码",selectIndentation:"选择缩进",selectLanguageMode:"选择语言模式",showLanguageExtensions:"搜索“{0}”的应用市场扩展程序...",singleSelection:"行 {0},列 {1}",singleSelectionRange:"行 {0},列 {1} (已选择{2})",spacesAndTabsSize:"空格: {0}(选项卡大小: {1})",spacesSize:"空格: {0}","status.editor.columnSelectionMode":"列选择模式","status.editor.encoding":"编辑器编码","status.editor.eol":"编辑器结束行","status.editor.indentation":"编辑器缩进","status.editor.info":"文件信息","status.editor.mode":"编辑器语言","status.editor.selection":"编辑器选择","status.editor.tabFocusMode":"辅助功能模式",tabFocusModeEnabled:"按 Tab 移动焦点",tabSize:"制表符长度: {0}"},"vs/workbench/browser/parts/editor/editorTabsControl":{ariaLabelEditorActions:"编辑器操作",draggedEditorGroup:"{0} (+{1})"},"vs/workbench/browser/parts/editor/multiEditorTabsControl":{ariaLabelTabActions:"选项卡操作"},"vs/workbench/browser/parts/editor/sideBySideEditor":{sideBySideEditor:"并排编辑器"},"vs/workbench/browser/parts/editor/textCodeEditor":{textEditor:"文本编辑器"},"vs/workbench/browser/parts/editor/textDiffEditor":{fileTooLargeForHeapErrorWithSize:"文本比较编辑器中至少有一个文件未显示,因为它非常大({0})。",fileTooLargeForHeapErrorWithoutSize:"文本比较编辑器中至少有一个文件未显示,因为它非常大。",textDiffEditor:"文本差异编辑器"},"vs/workbench/browser/parts/editor/textEditor":{editor:"编辑器"},"vs/workbench/browser/parts/globalCompositeBar":{accounts:"帐户",accountsViewBarIcon:"视图栏中的“帐户”图标。",authProviderUnavailable:"{0} 当前不可用",hideAccounts:"隐藏帐户",loading:"正在加载...",manage:"管理","manage profile":"管理 {0} (配置文件)",manageTrustedExtensions:"管理受信任的扩展",noAccounts:"你未登录任何帐户",signOut:"注销"},"vs/workbench/browser/parts/notifications/notificationsActions":{clearAllIcon:"通知中“全部清除”操作的图标。",clearIcon:"通知中“清除”操作的图标。",clearNotification:"清除通知",clearNotifications:"清除所有通知",collapseIcon:"通知中“折叠”操作的图标。",collapseNotification:"折叠通知",configureDoNotDisturbMode:"配置“请勿打扰”...",configureIcon:"通知中“配置”操作的图标。",configureNotification:"更多操作...",copyNotification:"复制文本",doNotDisturbIcon:"通知中“静音全部操作”的图标。",expandIcon:"通知中“展开”操作的图标。",expandNotification:"展开通知",hideIcon:"通知中“隐藏”操作的图标。",hideNotificationsCenter:"隐藏通知",toggleDoNotDisturbMode:"切换“请勿打扰”模式",toggleDoNotDisturbModeBySource:"按源切换“请勿打扰”模式..."},"vs/workbench/browser/parts/notifications/notificationsAlerts":{alertErrorMessage:"错误: {0}",alertInfoMessage:"信息: {0}",alertWarningMessage:"警告: {0}"},"vs/workbench/browser/parts/notifications/notificationsCenter":{moreSources:"更多…",notifications:"通知",notificationsCenterWidgetAriaLabel:"通知中心",notificationsEmpty:"无新通知",notificationsToolbar:"通知中心操作",turnOffNotifications:"禁用“请勿打扰”模式",turnOnNotifications:"启用“请勿打扰”模式"},"vs/workbench/browser/parts/notifications/notificationsCommands":{acceptNotificationPrimaryAction:"接受通知主要操作",clearAllNotifications:"清除所有通知",focusNotificationToasts:"将焦点放在通知横幅上",hideNotifications:"隐藏通知",notifications:"通知",selectSources:"选择要为其启用通知的源",showNotifications:"显示通知",toggleDoNotDisturbMode:"切换“请勿打扰”模式",toggleDoNotDisturbModeBySource:"按源切换“请勿打扰”模式..."},"vs/workbench/browser/parts/notifications/notificationsList":{notificationAccessibleViewHint:"使用 {0} 检查辅助视图中的响应",notificationAccessibleViewHintNoKb:"通过命令“打开辅助视图”在辅助视图中检查响应,该命令当前无法通过键绑定触发",notificationAriaLabel:"{0},通知",notificationAriaLabelHint:"{0},通知 {1}",notificationWithSourceAriaLabel:"{0},源: {1},通知",notificationWithSourceAriaLabelHint:"{0},源: {1},通知 {2}",notificationsList:"通知列表"},"vs/workbench/browser/parts/notifications/notificationsStatus":{hideNotifications:"隐藏通知",noNotifications:"无新通知",noNotificationsWithProgress:"无新通知({0} 正在进行中)",notifications:"{0} 条新通知",notificationsWithProgress:"{0} 条新通知({1} 个正在进行中)",oneNotification:"1 条新通知",oneNotificationWithProgress:"1 条新通知({0} 条正在进行中)","status.doNotDisturb":"请勿打扰","status.doNotDisturbTooltip":"已启用“请勿打扰”模式","status.message":"状态消息","status.notifications":"通知",zeroNotifications:"没有通知"},"vs/workbench/browser/parts/notifications/notificationsToasts":{notificationAriaLabel:"{0},通知",notificationWithSourceAriaLabel:"{0},源: {1},通知"},"vs/workbench/browser/parts/notifications/notificationsViewer":{executeCommand:'单击以执行命令 "{0}"',notificationActions:"通知操作",notificationSource:"来源: {0}",turnOffNotifications:"从“{0}”关闭通知",turnOnNotifications:"从“{0}”打开通知"},"vs/workbench/browser/parts/paneCompositeBar":{resetLocation:"重置位置"},"vs/workbench/browser/parts/paneCompositePart":{moreActions:"更多操作...","pane.emptyMessage":"将视图拖动到此处显示。",views:"视图"},"vs/workbench/browser/parts/panel/panelActions":{alignPanel:"对齐面板",alignPanelCenter:"将面板对齐设置为“居中”",alignPanelCenterShort:"居中",alignPanelJustify:"将面板对齐设置为“两端对齐”",alignPanelJustifyShort:"两端对齐",alignPanelLeft:"将面板对齐方式设置为“左对齐”",alignPanelLeftShort:"左",alignPanelRight:"将面板对齐方式设置为“右对齐”",alignPanelRightShort:"右",closeIcon:"用于关闭面板的图标。",closePanel:"隐藏面板",closeSecondarySideBar:"隐藏辅助侧栏",focusPanel:"聚焦到面板中",hidePanel:"隐藏面板",maximizeIcon:"用于最大化面板的图标。",maximizePanel:"最大化面板大小",minimizePanel:"恢复面板大小",movePanelToSecondarySideBar:"将面板视图移动到辅助侧栏",moveSidePanelToPanel:"将辅助侧栏视图移动到面板",nextPanelView:"下一个面板视图",panelMaxNotSupported:"仅当面板居中对齐时,才支持最大化面板。",positionPanel:"面板位置",positionPanelBottom:"将面板移至底部",positionPanelBottomShort:"底部",positionPanelLeft:"将面板移至左侧",positionPanelLeftShort:"左",positionPanelRight:"将面板移至右侧",positionPanelRightShort:"右",previousPanelView:"上一个面板视图",restoreIcon:"用于还原面板的图标。","toggle panel":"面板","toggle panel mnemonic":"面板(&&P)",toggleMaximizedPanel:"切换最大化面板",togglePanel:"切换面板",togglePanelOffIcon:"用于在面板打开时关闭面板的图标。",togglePanelOnIcon:"用于在面板关闭时打开面板的图标。",togglePanelVisibility:"切换面板可见性"},"vs/workbench/browser/parts/panel/panelPart":{"align panel":"对齐面板",hidePanel:'"隐藏" 面板',"panel position":"面板位置"},"vs/workbench/browser/parts/sidebar/sidebarActions":{focusSideBar:"将焦点置于主侧栏"},"vs/workbench/browser/parts/sidebar/sidebarPart":{toggleActivityBar:"切换活动栏可见性"},"vs/workbench/browser/parts/statusbar/statusbarActions":{focusStatusBar:"焦点状态栏",hide:"隐藏“{0}”"},"vs/workbench/browser/parts/statusbar/statusbarPart":{hideStatusBar:"隐藏状态栏"},"vs/workbench/browser/parts/titlebar/commandCenterControl":{"label.dfl":"搜索",label1:"{0} {1}",label2:"{0} {1}",title:"搜索 {0} ({1}) - {2}",title2:"搜索 {0} - {1}",title3:"命令中心"},"vs/workbench/browser/parts/titlebar/menubarControl":{DownloadingUpdate:"正在下载更新...",checkForUpdates:"检查更新(&&U)...",checkingForUpdates:"正在检查更新...","download now":"下载更新(&&O)",focusMenu:"聚焦应用程序菜单",goToSetting:"打开设置","installUpdate...":"安装更新(&&U)...",installingUpdate:"正在安装更新...",mEdit:"编辑(&&E)",mFile:"文件(&&F)",mGoto:"转到(&&G)",mHelp:"帮助(&&H)",mPreferences:"首选项",mSelection:"选择(&&S)",mTerminal:"终端(&&T)",mView:"查看(&&V)","menubar.customTitlebarAccessibilityNotification":"为您启用了辅助功能支持。对于最易于访问的体验, 我们建议使用自定义标题栏样式。",restartToUpdate:"重新启动以更新(&&U)"},"vs/workbench/browser/parts/titlebar/titlebarActions":{accounts:"帐户",hideCustomTitleBar:"隐藏自定义标题栏",hideCustomTitleBarInFullScreen:"在全屏模式下隐藏自定义标题栏",manage:"管理",showCustomTitleBar:"显示自定义标题栏","toggle.commandCenter":"命令中心","toggle.commandCenterDescription":"切换标题栏中命令中心的可见性","toggle.customTitleBar":"自定义标题栏","toggle.editorActions":"编辑器操作","toggle.hideCustomTitleBar":"隐藏自定义标题栏","toggle.hideCustomTitleBarInFullScreen":"在全屏模式下隐藏自定义标题栏","toggle.layout":"布局控件","toggle.layoutDescription":"切换标题栏中布局控件的可见性"},"vs/workbench/browser/parts/titlebar/titlebarPart":{ariaLabelTitleActions:"标题操作",focusTitleBar:"焦点标题栏"},"vs/workbench/browser/parts/titlebar/windowTitle":{devExtensionWindowTitlePrefix:"[扩展开发宿主]",userIsAdmin:"[管理员]",userIsSudo:"[超级用户]"},"vs/workbench/browser/parts/views/checkbox":{checked:"已选中",unchecked:"未选中"},"vs/workbench/browser/parts/views/treeView":{collapseAll:"全部折叠","command-error":"运行命令 {1} 错误: {0}。这可能是由提交 {1} 的扩展引起的。","no-dataprovider":"没有可提供视图数据的已注册数据提供程序。",refresh:"刷新","treeView.enableCollapseAll":"ID 为 {0} 的树状视图是否启用全部折叠。","treeView.enableRefresh":"ID 为 {0} 的树状视图是否启用刷新。","treeView.toggleCollapseAll":"ID 为 {0} 的树状视图是否切换为全部折叠。"},"vs/workbench/browser/parts/views/viewFilter":{"more filters":"更多筛选器..."},"vs/workbench/browser/parts/views/viewPane":{viewAccessibilityHelp:"使用 Alt+F1 获取辅助功能帮助 {0}",viewPaneContainerCollapsedIcon:"已折叠的视图窗格容器的图标。",viewPaneContainerExpandedIcon:"已展开的视图窗格容器的图标。",viewToolbarAriaLabel:"{0}操作"},"vs/workbench/browser/parts/views/viewPaneContainer":{viewMoveDown:"向下移动视图",viewMoveLeft:"向左移动视图",viewMoveRight:"向右移动视图",viewMoveUp:"向上移动视图",views:"视图",viewsMove:"移动视图"},"vs/workbench/browser/quickaccess":{inQuickOpen:"键盘焦点是否在快速打开控件中"},"vs/workbench/browser/web.main":{rendererLog:"窗口",reset:"重置用户数据","reset user data message":"是否要重置数据(设置、键绑定、扩展、代码段和 UI 状态)并重新加载?"},"vs/workbench/browser/window":{closeWindowButtonLabel:"关闭窗口(&&C)",closeWindowMessage:"是否确实要关闭窗口?",doNotAskAgain:"不再询问",exitButtonLabel:"退出(&&E)",learnMore:"了解详细信息(&&L)",open:"打开(&&O)","openExternalDialogButtonInstall.v3":"安装(&&I)","openExternalDialogButtonRetry.v2":"重试(&&T)","openExternalDialogDetail.v2":"我们已在你的计算机上启动 {0}。\r\n\r\n如果 {1} 未启动,请重试或在下面安装。",openExternalDialogDetailNoInstall:"我们已你的计算机上启动 {0}。\r\n\r\n如果 {1} 未启动,请在下面重试。",openExternalDialogTitle:"全部完成。现在可以关闭此选项卡。",quitButtonLabel:"退出(&&Q)",quitMessage:"是否确实要退出?",quitMessageMac:"是否确实要退出?",reload:"重新加载(&&R)",shutdownError:"出现意外错误,需要重新加载此页面。",shutdownErrorDetail:"工作台在运行时被意外释放。",unableToOpenExternal:"浏览器已中断新选项卡或窗口的打开。仍然按“打开”以将其打开。"},"vs/workbench/browser/workbench":{loaderErrorNative:"未能加载所需文件。请重启应用程序重试。详细信息: {0}"},"vs/workbench/browser/workbench.contribution":{activeEditorLong:'"${activeEditorLong}": 文件的完整路径 (例如 /Users/Development/myFolder/myFileFolder/myFile.txt)。',activeEditorMedium:'"${activeEditorMedium}": 相对于工作区文件夹的文件路径 (例如, myFolder/myFileFolder/myFile.txt)。',activeEditorShort:'"${activeEditorShort}": 文件名 (例如 myFile.txt)。',activeFolderLong:'"${activeFolderLong}": 文件所在文件夹的完整路径 (例如 /Users/Development/myFolder/myFileFolder)。',activeFolderMedium:'"${activeFolderMedium}": 相对于工作区文件夹的、包含文件的文件夹的路径, (例如 myFolder/myFileFolder)。',activeFolderShort:'"${activeFolderShort}": 文件所在的文件夹名称 (例如, myFileFolder)。',activeRepositoryBranchName:"`${activeRepositoryBranchName}`: 活动存储库中活动分支的名称(例如 main)。",activeRepositoryName:"`${activeRepositoryName}`: 活动存储库的名称(例如 vscode)。",activityBarIconClickBehavior:"控制在工作台中单击活动栏图标时出现的行为。如果未将 {0} 设置为 {1},则会忽略此值。",activityBarLocation:"控制活动栏相对于主边栏和辅助侧栏的位置。",appName:'"${appName}": 例如 VS Code。',askChatLocation:"控制命令面板应在何处提出聊天问题。","askChatLocation.chatView":"在“聊天”视图中提出聊天问题。","askChatLocation.quickChat":"在快速聊天中提出聊天问题。",centeredLayoutAutoResize:"如果在居中布局中打开了超过一组编辑器,控制是否自动将宽度调整为最大宽度值。当回到只打开了一组编辑器的状态,将自动将宽度调整为原始的居中宽度值。",centeredLayoutDynamicWidth:"调整窗口大小时,居中布局尝试维持常量宽度的控件。",closeEmptyGroups:"控制编辑器组中最后一个选项卡关闭时这个空组的行为。若启用,将自动关闭空组。若禁用,空组仍将保留在网格布局中。",closeOnFileDelete:"控制在会话期间显示已打开文件的编辑器是否应在被其他进程删除或重命名时自动关闭。禁用此功能将使编辑器在此类事件中保持打开状态。请注意,从应用程序内删除将始终关闭编辑器,且永远不会关闭具有未保存更改的编辑器以保留数据。",closeOnFocusLost:"控制 Quick Open 是否在其失去焦点时自动关闭。",commandHistory:"控制命令面板中保留最近使用命令的数量。设置为 0 时禁用命令历史功能。",confirmBeforeClose:"控制是否在关闭窗口或退出应用程序之前显示确认对话框。",confirmBeforeCloseWeb:"控制在关闭浏览器选项卡或窗口之前是否显示确认对话框。请注意,即使已启用,浏览器仍可能决定在不进行确认的情况下关闭选项卡或窗口,并且此设置仅作为提示,并非在所有情况下都起作用。",customEditorLabelDescriptionExample:'示例:`"**/static/**/*.html": "${filename} - ${dirname} (${extname})"` 将文件 `root/static/folder/file.html` 呈现为 `file - folder (html)`。',customMenuBarAltFocus:"控制是否通过按 Alt 键聚焦菜单栏。此设置对使用 Alt 键切换菜单栏没有任何影响。","decorations.badges":"控制编辑器文件修饰是否应使用徽章。","decorations.colors":"控制编辑器文件修饰是否应使用颜色。",dirty:"`${dirty}`: 表明活动编辑器具有未保存更改的时间的指示器。",doubleClickTabToToggleEditorGroupSizes:"控制双击选项卡时编辑器组的大小调整方式。如果未将 {0} 设置为 {1},则会忽略此值。",dragToOpenWindow:"控制是否可将编辑器拖出窗口以在新窗口中打开。长按 Alt 键,同时拖动以动态切换。",editorActionsLocation:"控制显示编辑器操作的位置。",editorOpenPositioning:"控制编辑器打开的位置。选择 {0} 或 {1} 可分别在当前活动编辑器的左侧或右侧打开。选择 {2} 或 {3} 打开编辑器的位置与当前活动编辑器无关。",enableMenuBarMnemonics:"控制是否可通过 Alt 键快捷键打开主菜单。如果禁用助记符,则可将这些 Alt 键快捷键绑定到编辑器命令。",enableNaturalLanguageSearch:"控制命令面板是否应包含类似的命令。必须安装提供自然语言支持的扩展。",enablePreview:"控制打开的编辑器是否显示为预览编辑器。预览编辑器不会保持打开状态,在将其显式设置为保持打开(通过双击或编辑)前可以重用,并以斜体显示文件名。",enablePreviewFromCodeNavigation:"控制当从编辑器开始进行代码导航时,编辑器是否保持为预览状态。预览编辑器不会保持打开状态,在将其显式设置为保持打开(通过双击或编辑)前将会重用。如果未将 {0} 设置为 {1},则会忽略此值。",enablePreviewFromQuickOpen:"控制通过 Quick Open 打开的编辑器是否显示为预览编辑器。预览编辑器不会保持打开状态,在将其显式设置为保持打开(通过双击或编辑)前将会重用。启用后,在选择前按住 Ctrl 可在非预览模式下打开编辑器。如果未将 {0} 设置为 {1},则会忽略此值。",exclude:"配置路径或 [glob 模式](https://aka.ms/vscode-glob-patterns)以排除本地文件历史记录中的文件。glob 模式的计算结果始终是相对于工作区文件夹路径所在的位置,除非它们是绝对路径。更改此设置不会影响现有的本地文件历史记录条目。",focusRecentEditorAfterClose:"控制是按最近使用的顺序还是从左到右关闭编辑器。",focusedView:"`${focusedView}`: 当前聚焦的视图名称。",folderName:'"${folderName}": 文件所在工作区文件夹的名称 (例如 myFolder)。',folderPath:'"${folderpath}": 文件所在工作区文件夹的路径 (例如 /Users/Development/myFolder)。',fontAliasing:"控制在工作台中字体的渲染方式。",highlightModifiedTabs:"控制是否在具有未保存更改的编辑器的选项卡上绘制顶部边框。如果未将 {0} 设置为 {1},则会忽略此值。",layoutControlEnabled:"控制布局控件是否显示在自定义标题栏中。仅当 {0} 设置为 {1} 时,此设置才会生效。",layoutControlEnabledWeb:"控制是否显示标题栏中的布局控件。",layoutControlType:"控制自定义标题栏中的布局控件是显示为单个菜单按钮还是多个 UI 切换。","layoutcontrol.type.both":"显示下拉列表和切换按钮。","layoutcontrol.type.menu":"显示包含布局选项下拉列表的单个按钮。","layoutcontrol.type.toggles":"显示用于切换面板和侧边栏可见性的多个按钮。",limitEditorsEnablement:"控制打开的编辑器数是否应受限制。启用后,最近使用较少的编辑器将关闭,以为新打开的编辑器腾出空间。",limitEditorsExcludeDirty:"控制打开的编辑器的最大数目是否应排除脏编辑器以计入配置的限制。",limitEditorsMaximum:"控制打开编辑器的最大数量。使用 {0} 设置控制每个编辑器组或跨所有组的限制。",localHistoryEnabled:"控制是否启用本地文件历史记录。启用后,所保存编辑器文件内容将存储到备份位置,以便稍后可以还原或查看内容。更改此设置不会影响现有本地文件历史记录条目。",localHistoryMaxFileEntries:"控制每个文件的最大本地文件历史记录条目数。当文件的本地文件历史记录条目数超过此数目时,将丢弃最早的条目。",localHistoryMaxFileSize:"控制考虑用于本地历史记录的文件最大大小(KB)。较大的文件将不会添加到本地历史记录中。更改此设置不会影响现有本地文件历史记录条目。",menuBarVisibility:"控制菜单栏的可见性。“切换”设置表示菜单栏处于隐藏状态,只需按一下 Alt 键即可显示。“精简”设置会将菜单移到边栏中。","menuBarVisibility.mac":"控制菜单栏的可见性。“切换”设置表示菜单栏处于隐藏状态,执行“聚焦应用程序菜单”将显示菜单栏。“精简”设置会将菜单移到边栏中。",mergeWindow:"配置时间间隔(以秒为单位),在此间隔期间,本地文件历史记录中的最后一个条目将替换为正在添加的条目。这有助于减少所添加的条目总数,例如启用自动保存时。此设置仅应用于具有相同源的条目。更改此设置不会影响现有本地文件历史记录条目。",mouseBackForwardToNavigate:"允许使用鼠标按钮四和五执行“返回”和“前进”命令。",navigationScope:"控制编辑器中“返回”和“前进”等命令的历史导航范围。",openDefaultKeybindings:"控制在打开按键绑定设置时是否同时打开显示所有默认按键绑定的编辑器。",openDefaultSettings:"控制在打开设置时是否同时打开显示所有默认设置的编辑器。",openFilesInNewWindow:"控制是否应在使用命令行或文件对话框时在新窗口中打开文件。\r\n请注意,此设置可能会被忽略(例如,在使用 `--new-window` 或 `--reuse-window` 命令行选项时)。",openFilesInNewWindowMac:"控制是否应在使用命令行或文件对话框时在新窗口中打开文件。\r\n请注意,此设置可能会被忽略(例如,在使用 `--new-window` 或 `--reuse-window` 命令行选项时)。",openFoldersInNewWindow:"控制打开文件夹时是在新窗口打开还是替换上一个活动窗口。\r\n注意,此设置可能会被忽略 (例如,在使用 `--new-window` 或 `--reuse-window` 命令行选项时)。",panelDefaultLocation:"控制新工作区中面板(终端、调试控制台、输出、问题)的默认位置。它可以显示在编辑器区域的底部、右侧或左侧。",panelOpensMaximized:"控制面板是否以最大化方式打开。它可以始终以最大化方式打开、永不以最大化方式打开或以关闭前的最后一个状态打开。",perEditorGroup:"控制最大打开的编辑器的限制是否应应用于每个编辑器组或所有编辑器组。",pinnedTabSizing:"控制固定的编辑器选项卡的大小。固定的选项卡排在所有打开的选项卡的开头,并且在取消固定之前,通常不会关闭。如果未将 {0} 设置为 {1},则会忽略此值。",preserveInput:"当再次打开命令面板时,控制是否恢复上一次输入的内容。","problems.visibility":"控制问题是否在整个编辑器和工作台中可见。",profileName:'"${profileName}": 在其中打开工作区的配置文件的名称(例如数据科学(配置文件))。如果使用默认配置文件,则忽略此选项。',remoteName:"`${remoteName}`: 例如 SSH",restoreViewState:"关闭编辑器后重新打开时,将还原最后的编辑器视图状态(例如滚动位置)。编辑器视图状态按编辑器组存储,并在组关闭时被放弃。使用 {0} 设置以跨所有编辑器组使用最后已知的视图状态,以防找不到编辑器组之前的视图状态。",revealIfOpen:"控制是否在打开的任何可见组中显示编辑器。如果禁用,编辑器将优先在当前活动的编辑器组中打开。如果启用,将显示在已打开的编辑器,而不是在当前活动的编辑器组中再次打开。请注意,有些情况下会忽略此设置,例如,强制编辑器在特定组中打开或在当前活动组的一侧打开。",rootName:"`${rootName}`: 具有可选远程名称和工作区指示器的工作区的名称(如果适用)(例如 myFolder、myRemoteFolder [SSH] 或 myWorkspace [工作区])。",rootNameShort:"`${rootNameShort}`: 已缩短的工作区名称,不包含后缀(例如 myFolder、myRemoteFolder 或 myWorkspace)。",rootPath:'"${rootPath}": 打开的工作区或文件夹的文件路径 (例如 /Users/Development/myWorkspace)。',scrollToSwitchTabs:"控制在滚动到选项卡上方时是否打开这些选项卡。默认情况下,选项卡仅在鼠标滚动时呈现,但不打开。可通过在滚动时按住 Shift 键来更改滚动期间的此行为。如果未将 {0} 设置为 {1},则会忽略此值。",separator:'"${separator}": 一种条件分隔符 ("-"), 仅在被包含值或静态文本的变量包围时显示。',"settings.editor.desc":"配置默认使用的设置编辑器。","settings.editor.json":"使用 json 文件编辑器。","settings.editor.ui":"使用设置 ui 编辑器。",sharedViewState:"跨所有编辑器组保留最新的编辑器视图状态(例如滚动位置等)并在未找到编辑器组的特定编辑器视图状态时进行还原。",showEditorTabs:"控制打开的编辑器是否显示为单个选项卡还是一个大选项卡,或者标题区域是否应显示。",showIcons:"控制是否在打开的编辑器中显示图标。这要求同时启用文件图标主题。",sideBarLocation:"控制主边栏和活动栏的位置。它们可以显示在工作台的左侧或右侧。辅助边栏将显示在工作台的另一侧。",sideBySideDirection:'控制编辑器在并排打开时(例如从资源管理器)出现的默认位置。默认在当前活动编辑器右侧打开。若更改为 "down",则在当前活动编辑器下方打开。',splitInGroupLayout:"控制在编辑器组中垂直或水平拆分编辑器时的布局。",splitOnDragAndDrop:"通过将编辑器或文件放到编辑器区域的边缘,控制是否可以由拖放操作拆分编辑器组。",splitSizing:"拆分编辑器组时控制编辑器组大小。",statusBarVisibility:"控制工作台底部状态栏的可见性。",suggestCommands:"控制命令面板是否应包含常用命令的列表。",tabActionLocation:"控制编辑器选项卡操作按钮(关闭、取消固定)的位置。如果未将 {0} 设置为 {1},则会忽略此值。",tabDescription:"控制编辑器标签的格式。",tabScrollbarHeight:"控制编辑器标题区域中用于选项卡和面包屑的滚动条的高度。",tabSizing:"控制编辑器选项卡的大小。如果未将 {0} 设置为 {1},则会忽略此值。","tips.enabled":"启用后,当没有打开编辑器时将显示水印提示。",untitledLabelFormat:"控制无标题编辑器的标签格式。",useSplitJSON:"控制在将设置编辑为 json 时是否使用拆分 json 编辑器。",viewVisibility:"控制是否显示视图头部的操作项。视图头部操作项可以一直,或是仅当聚焦到和悬停在视图上时显示。","window.commandCenter":"将命令启动器与窗口标题一起显示。仅当 {0} 设置为 {1} 时,此设置才会生效。","window.commandCenterWeb":"将命令启动器与窗口标题一起显示。","window.confirmBeforeClose.always":"始终询问确认。","window.confirmBeforeClose.always.web":"始终尝试请求确认。请注意,浏览器仍可能在未经确认的情况下决定关闭标签页或窗口。","window.confirmBeforeClose.keyboardOnly":"仅在已使用键绑定时请求确认。","window.confirmBeforeClose.keyboardOnly.web":"仅在检测到使用了键绑定关闭窗口时请求确认。请注意,在某些情况下可能无法进行检测。","window.confirmBeforeClose.never":"从不显式请求确认。","window.confirmBeforeClose.never.web":"除非即将丢失数据,否则绝不明确询问确认。","window.menuBarVisibility.classic":"菜单显示在窗口顶部,并且仅在全屏模式下隐藏。","window.menuBarVisibility.compact":"菜单在边栏中显示为紧凑按钮。当 {0} 为 {1} 时,会忽略此值。","window.menuBarVisibility.compact.web":"菜单在边栏中显示为紧凑按钮。","window.menuBarVisibility.hidden":"菜单始终隐藏。","window.menuBarVisibility.toggle":"菜单处于隐藏状态,但通过按 Alt 键可在窗口顶部显示。","window.menuBarVisibility.toggle.mac":"菜单处于隐藏状态,但通过执行“聚焦应用程序菜单”命令可在窗口顶部显示。","window.menuBarVisibility.visible":"即使在全屏模式下,菜单也始终显示在窗口顶部。","window.openFilesInNewWindow.default":"在新窗口中打开文件,除非文件从应用程序内进行选取 (例如,通过“文件”菜单)。","window.openFilesInNewWindow.defaultMac":"在文件所在文件夹的已有窗口中或在上一个活动窗口中打开文件,除非其通过“程序坞”(Dock) 或“访达”(Finder) 打开。","window.openFilesInNewWindow.off":"在文件所在文件夹的已有窗口中或在上一个活动窗口中打开文件。","window.openFilesInNewWindow.on":"在新窗口中打开文件。","window.openFoldersInNewWindow.default":"在新窗口中打开文件夹,除非文件夹从应用程序内进行选取 (例如,通过“文件”菜单)。","window.openFoldersInNewWindow.off":"文件夹将替换上一个活动窗口。","window.openFoldersInNewWindow.on":"在新窗口中打开文件夹。","window.titleSeparator":"{0} 使用的分隔符。",windowConfigurationTitle:"窗口",windowTitle:"基于打开的工作区或活动编辑器等当前上下文控制窗口标题。根据上下文替换变量:","workbench.activityBar.iconClickBehavior.focus":"如果单击的项已可见,则将焦点放在主边栏上。","workbench.activityBar.iconClickBehavior.toggle":"如果单击的项已可见,则隐藏主边栏。","workbench.activityBar.location.bottom":"在主侧栏和辅助侧栏的底部显示活动栏。","workbench.activityBar.location.default":"在主侧栏的一侧和辅助侧栏的顶部显示活动栏。","workbench.activityBar.location.hide":"在主边栏和辅助边栏中隐藏活动栏。","workbench.activityBar.location.top":"在主边栏和辅助边栏上方显示活动栏。","workbench.editor.doubleClickTabToToggleEditorGroupSizes.expand":"该编辑器组通过尽可能缩小所有其他编辑器组来占用尽可能多的空间。","workbench.editor.doubleClickTabToToggleEditorGroupSizes.maximize":"所有其他编辑器组均已隐藏,当前编辑器组将最大化以占用整个编辑器区域。","workbench.editor.doubleClickTabToToggleEditorGroupSizes.off":"双击选项卡时不会调整编辑器组的大小。","workbench.editor.editorActionsLocation.default":"当 {0} 设置为 {1} 时,在窗口标题栏中显示编辑器操作。否则,编辑器操作将显示在编辑器选项卡栏中。","workbench.editor.editorActionsLocation.hidden":"未显示编辑器操作。","workbench.editor.editorActionsLocation.titleBar":"在窗口标题栏中显示编辑器操作。如果 {0} 设置为 {1},则隐藏编辑器操作。","workbench.editor.empty.hint":"控制空编辑器文本提示是否应在编辑器中可见。","workbench.editor.historyBasedLanguageDetection":"允许在语言检测中使用编辑器历史记录。这会导致自动语言检测偏向于最近打开的语言,并允许自动语言检测使用较小的输入进行操作。","workbench.editor.label.dirname":"`${dirname}`: 文件所在的文件夹的名称(例如 `root/folder/file.txt -> folder)。","workbench.editor.label.enabled":"控制是否应应用自定义工作台编辑器标签。","workbench.editor.label.extname":"`${extname}`: 文件扩展名(例如 `root/folder/file.txt -> txt`)。","workbench.editor.label.filename":"`${filename}`: 没有文件扩展名的文件的名称(例如 `root/folder/file.txt -> file`)。","workbench.editor.label.nthdirname":"`${dirname(N)}`: 文件所在的第 n 个父文件夹的名称(例如 `N=1: root/folder/file.txt -> root`)。可以使用负数(例如,`N=-1: root/folder/file.txt -> root`)从路径开头选取文件夹。如果 __Item__ 是绝对模式路径,则第一个文件夹(“N=-1”)引用 absoulte 路径中的第一个文件夹,否则它对应于工作区文件夹。","workbench.editor.label.patterns":"控制编辑器标签的呈现。每个 __Item__ 都是与文件路径匹配的模式。支持相对文件路径和绝对文件路径。如果多个模式匹配,则将选取最长匹配路径。每个 __Value__ 都是 __Item__ 匹配时呈现的编辑器的模板。根据上下文替换变量:","workbench.editor.label.template":"模式匹配时应呈现的模板。可能包括变量 ${dirname}、${filename} 和 ${extname}。","workbench.editor.labelFormat.default":"显示文件名。当启用选项卡且在同一组内有两个相同名称的文件时,将添加每个文件路径中可以用于区分的部分。在选项卡被禁用且编辑器活动时,将显示相对于工作区文件夹的路径。","workbench.editor.labelFormat.long":"显示文件名后跟其绝对路径。","workbench.editor.labelFormat.medium":"显示文件名及其相对于工作区文件夹的路径。","workbench.editor.labelFormat.short":"显示文件名后跟其目录名。","workbench.editor.languageDetection":"控制是否自动检测文本编辑器中的语言,除非该语言已由语言选择器显式设置。这也可以按语言确定范围,以便你可以指定不希望关闭的语言。这对于像 Markdown 这样的语言很有用,因为它通常包含可能会欺骗语言检测的其他语言,使其认为它是嵌入语言而不是 Markdown。","workbench.editor.navigationScopeDefault":"浏览所有打开的编辑器和编辑器组。","workbench.editor.navigationScopeEditor":"仅在活动编辑器中导航。","workbench.editor.navigationScopeEditorGroup":"仅在活动编辑器组的编辑器中导航。","workbench.editor.pinnedTabSizing.compact":"固定的选项卡将以紧凑形式显示,其中只包含图标或编辑器名称的第一个字母。","workbench.editor.pinnedTabSizing.normal":"固定的选项卡会继承未固定的选项卡的外观。","workbench.editor.pinnedTabSizing.shrink":"固定的选项卡缩小至紧凑的固定大小,显示编辑器名称的各部分。","workbench.editor.pinnedTabsOnSeparateRow":"启用后,在所有其他选项卡上方的单独行中显示固定的选项卡。如果未将 {0} 设置为 {1},则会忽略此值。","workbench.editor.preferBasedLanguageDetection":"启用后,将编辑器历史记录考虑在内的语言检测模型将获得更高的优先级。","workbench.editor.preventPinnedEditorClose":"控制在使用键盘或鼠标中键单击关闭时是否关闭固定的编辑器。","workbench.editor.preventPinnedEditorClose.always":"使用鼠标中间单击或键盘时,始终阻止关闭固定的编辑器。","workbench.editor.preventPinnedEditorClose.never":"切勿阻止关闭固定编辑器。","workbench.editor.preventPinnedEditorClose.onlyKeyboard":"使用键盘时阻止关闭固定编辑器。","workbench.editor.preventPinnedEditorClose.onlyMouse":"使用鼠标中间单击时,防止关闭固定的编辑器。","workbench.editor.showLanguageDetectionHints":"启用后,当编辑器语言与检测到的内容语言不匹配时,显示状态栏快速修复。","workbench.editor.showLanguageDetectionHints.editors":"在无标题文本编辑器中显示","workbench.editor.showLanguageDetectionHints.notebook":"在笔记本编辑器中显示","workbench.editor.showTabs.multiple":"每个编辑器在编辑器标题区域显示为选项卡。","workbench.editor.showTabs.none":"未显示编辑器标题区域。","workbench.editor.showTabs.single":"活动编辑器在编辑器标题区域显示为单个大选项卡。","workbench.editor.splitInGroupLayoutHorizontal":"从左到右定位编辑器。","workbench.editor.splitInGroupLayoutVertical":"从上到下定位编辑器。","workbench.editor.splitSizingAuto":"将活动的编辑器组拆分为若干相等的部分,除非所有编辑器组都已经等为部分。这种情况下,将所有编辑器组拆分为若干相等的部分。","workbench.editor.splitSizingDistribute":"将所有编辑器组拆分为相等的部分。","workbench.editor.splitSizingSplit":"将活动编辑器组拆分为相等的部分。","workbench.editor.tabActionCloseVisibility":"控制选项卡关闭操作按钮的可见性。","workbench.editor.tabActionUnpinVisibility":"控制选项卡取消固定操作按钮的可见性。","workbench.editor.tabHeight":"控制编辑器选项卡的高度。当 {0} 未设置为 {1}时,也适用于标题控件栏。","workbench.editor.tabSizing.fit":"始终将标签页保持足够大,能够完全显示编辑器标签。","workbench.editor.tabSizing.fixed":"使所有选项卡的大小相同,同时允许它们在可用空间不足以同时显示所有选项卡时变小。","workbench.editor.tabSizing.shrink":"在不能同时显示所有选项卡时,允许选项卡缩小。","workbench.editor.tabSizingFixedMaxWidth":"控制将 {0} 大小设置为 {1} 时选项卡的最大宽度。","workbench.editor.tabSizingFixedMinWidth":"控制将 {0} 大小设置为 {1} 时选项卡的最小宽度。","workbench.editor.titleScrollbarSizing.default":"默认大小。","workbench.editor.titleScrollbarSizing.large":"增加大小,以便更轻松地通过鼠标抓取。","workbench.editor.untitled.labelFormat.content":"无标题文件的名称派生自其第一行的内容,除非它有关联的文件路径。如果行为空或不包含单词字符,它将回退到名称。","workbench.editor.untitled.labelFormat.name":"无标题文件的名称不是从文件的内容派生的。","workbench.fontAliasing.antialiased":"进行像素而不是次像素级别的字体平滑。可能会导致字体整体显示得更细。","workbench.fontAliasing.auto":"根据显示器 DPI 自动应用 `default` 或 `antialiased` 选项。","workbench.fontAliasing.default":"次像素平滑字体。将在大多数非 retina 显示器上显示最清晰的文字。","workbench.fontAliasing.none":"禁用字体平滑。将显示边缘粗糙、有锯齿的文字。","workbench.hover.delay":"控制为工作台项显示悬停之前的延迟时间(以毫秒为单位)(例如,一些扩展提供了树状视图项)。已经可见的项可能需要刷新,然后才会反映出此设置更改。","workbench.panel.opensMaximized.always":"始终以最大化方式打开面板。","workbench.panel.opensMaximized.never":"永不以最大化方式打开面板。面板将以非最大化方式打开。","workbench.panel.opensMaximized.preserve":"以关闭面板前的状态打开面板。","workbench.quickOpen.preserveInput":"在打开 Quick Open 视图时,控制是否自动恢复上一次输入的值。","workbench.reduceMotion":"控制工作台是否应以更少的动画呈现。","workbench.reduceMotion.auto":"根据 OS 配置减少运动呈现。","workbench.reduceMotion.off":"不要减少运动呈现","workbench.reduceMotion.on":"始终减少动作呈现。",wrapTabs:"控制当超出可用空间时,选项卡是否应在多行之间换行,或者是否应显示滚动条。如果未将 {0} 设置为 {1},则会忽略此值。","zenMode.centerLayout":"控制在打开禅模式时是否启用居中布局。","zenMode.fullScreen":"控制在打开禅模式时是否将工作台切换到全屏。","zenMode.hideActivityBar":"控制在打开禅模式时是否隐藏工作台左侧或右侧的活动栏。","zenMode.hideLineNumbers":"控制在打开禅模式时是否隐藏编辑器行号。","zenMode.hideStatusBar":"控制在打开禅模式时是否隐藏工作台底部的状态栏。","zenMode.restore":"控制在禅模式下退出的窗口是否应还原为禅模式。","zenMode.showTabs":"控制打开禅模式是应该显示多个编辑器选项卡、单个编辑器选项卡还是完全隐藏编辑器标题区域。","zenMode.showTabs.multiple":"每个编辑器在编辑器标题区域显示为选项卡。","zenMode.showTabs.none":"未显示编辑器标题区域。","zenMode.showTabs.single":"活动编辑器在编辑器标题区域显示为单个大选项卡。","zenMode.silentNotifications":"控制在禅模式下是否应启用通知请勿打扰模式。如果为 true,则仅弹出错误通知。",zenModeConfigurationTitle:"禅模式"},"vs/workbench/common/configuration":{applicationConfigurationTitle:"应用程序",problemsConfigurationTitle:"问题","security.allowedUNCHosts":"无需用户确认即可允许的一组 UNC 主机名(无前导或尾随反斜杠,例如 `192.168.0.1` 或 `my-server`)。如果正在访问的 UNC 主机是此设置不允许访问的或未通过用户确认进行确认,则会发生错误并停止操作。更改此设置时需要重启。有关此设置的详细信息,请访问 https://aka.ms/vscode-windows-unc。","security.allowedUNCHosts.patternErrorMessage":"UNC 主机名不得包含反斜杠。","security.restrictUNCAccess":'如果已启用,则仅允许访问 "#security.allowedUNCHosts#" 设置允许的或用户确认后的 UNC 主机名。有关此设置的详细信息,可访问 https://aka.ms/vscode-windows-unc。',securityConfigurationTitle:"安全性",workbenchConfigurationTitle:"工作台"},"vs/workbench/common/contextkeys":{activeAuxiliary:"活动辅助面板的标识符",activeCompareEditorCanSwap:"活动比较编辑器是否可以交换两侧",activeEditor:"活动编辑器的标识符",activeEditorAvailableEditorIds:"可用于活动编辑器的可用编辑器标识符",activeEditorCanRevert:"活动编辑器是否可以还原",activeEditorCanToggleReadonly:"活动编辑器是否可以在只读或可写之间切换",activeEditorGroupEmpty:"活动编辑器组是否为空",activeEditorGroupIndex:"活动编辑器组的索引",activeEditorGroupLast:"活动编辑器组是否为最后一个组",activeEditorGroupLocked:"活动编辑器组是否已锁定",activeEditorIsDirty:"活动编辑器是否具有未保存的更改",activeEditorIsFirstInGroup:"活动编辑器是否为其组中的第一个编辑器",activeEditorIsLastInGroup:"活动编辑器是否是其组中的最后一个编辑器",activeEditorIsNotPreview:"活动编辑器是否未在预览模式下",activeEditorIsPinned:"活动编辑器是否已固定",activeEditorIsReadonly:"活动编辑器是否只读",activePanel:"活动面板的标识符",activeViewlet:"活动 viewlet 的标识符",auxiliaryBarFocus:"辅助栏是否具有键盘焦点",auxiliaryBarVisible:"辅助栏是否可见",bannerFocused:"键盘焦点是否在横幅上",dirtyWorkingCopies:"是否有具有未保存更改的工作副本",editorIsOpen:"编辑器是否打开",editorPartEditorGroupMaximized:"编辑器部件具有最大化组",editorPartMultipleEditorGroups:"编辑器部件中是否打开了多个编辑器组",editorTabsVisible:"编辑器选项卡是否可见",embedderIdentifier:"根据产品服务的嵌入器标识符(如果已定义)",focusedView:"具有键盘焦点的视图的标识符",groupEditorsCount:"打开的编辑器组数",inZenMode:"是否已启用 Zen 模式",isAuxiliaryEditorPart:"编辑器部件位于辅助窗口中",isAuxiliaryWindowFocusedContext:"辅助窗口是否成为焦点",isFileSystemResource:"资源是否由文件系统提供程序支持",isFullscreen:"主窗口是否处于全屏模式",isMainEditorCenteredLayout:"是否为主编辑器启用了居中布局",mainEditorAreaVisible:"主窗口中的编辑器区域是否可见",multipleEditorGroups:"是否打开了多个编辑器组",notificationCenterVisible:"通知中心是否可见",notificationFocus:"键盘焦点是否在通知上",notificationToastsVisible:"通知 toast 是否可见",panelAlignment:"面板的对齐方式:“居中”、“向左对齐”、“向右对齐”或“两端对齐”",panelFocus:"键盘焦点是否在面板上",panelMaximized:"面板是否已最大化",panelPosition:"面板的位置,始终为“底部”",panelVisible:"面板是否可见",remoteName:"窗口连接到的远程项的名称;如果未连接到任何远程项,则为空字符串",resource:"包含方案和路径的资源的完整值",resourceDirname:"资源所在的文件夹的名称",resourceExtname:"资源的扩展名",resourceFilename:"资源的文件名",resourceLangId:"资源的语言标识符",resourcePath:"资源的完整路径",resourceScheme:"资源的方案",resourceSet:"资源是否存在",sideBarFocus:"键盘焦点是否在侧栏上",sideBarVisible:"侧栏是否可见",sideBySideEditorActive:"并行编辑器是否处于活动状态",splitEditorsVertically:"编辑器是否垂直拆分",statusBarFocused:"键盘焦点是否在状态栏上",temporaryWorkspace:"当前工作区的方案来自临时文件系统。",textCompareEditorActive:"文本比较编辑器是否处于活动状态",textCompareEditorVisible:"文本比较编辑器是否可见",titleBarStyle:"窗口标题栏的样式",titleBarVisible:"标题栏是否可见",virtualWorkspace:"当前工作区的方案来自虚拟文件系统或空字符串。",workbenchState:"窗口中打开的工作区类型:“空”(无工作区)、“文件夹”(单个文件夹)或“工作区”(多根工作区)",workspaceFolderCount:"工作区中根文件夹的数量"},"vs/workbench/common/editor":{builtinProviderDisplayName:"内置",configureEditorLargeFileConfirmation:"配置限制",openLargeFile:"仍然打开","promptOpenWith.defaultEditor.displayName":"文本编辑器"},"vs/workbench/common/editor/diffEditorInput":{sideBySideLabels:"{0} ↔ {1}"},"vs/workbench/common/editor/sideBySideEditorInput":{sideBySideLabels:"{0} - {1}"},"vs/workbench/common/editor/textEditorModel":{languageAutoDetected:"自动检测到语言 {0},且其设置为语言模式。"},"vs/workbench/common/theme":{activityBarActiveBackground:"活动项的活动栏背景颜色。活动栏显示在最左侧或右侧,并允许在侧栏视图之间切换。",activityBarActiveBorder:"活动项的活动栏边框颜色。活动栏显示在最左侧或右侧,并允许在侧栏视图之间切换。",activityBarActiveFocusBorder:"活动项的活动栏焦点边框颜色。活动栏显示在最左侧或右侧,并允许在侧栏视图之间切换。",activityBarBackground:"活动栏背景色。活动栏显示在最左侧或最右侧,并允许在侧边栏的视图间切换。",activityBarBadgeBackground:"活动通知徽章背景色。活动栏显示在最左侧或最右侧,并允许在侧边栏的视图间切换。",activityBarBadgeForeground:"活动通知徽章前景色。活动栏显示在最左侧或最右侧,并允许在侧边栏的视图间切换。",activityBarBorder:"活动栏分隔侧边栏的边框颜色。活动栏显示在最左侧或最右侧,并可以切换侧边栏的视图。",activityBarDragAndDropBorder:"拖放活动栏项的反馈颜色。活动栏显示在最左侧或最右侧,并允许在侧边栏视图之间切换。",activityBarForeground:"活动栏项在活动时的前景色。活动栏显示在最左侧或最右侧,并允许在侧边栏的视图间切换。",activityBarInActiveForeground:"活动栏项在非活动时的前景色。活动栏显示在最左侧或最右侧,并允许在侧边栏的视图间切换。",activityBarTop:"活动栏中的项位于顶部/底部时的活动前景色。活动允许在边栏视图之间切换。",activityBarTopActiveBackground:"活动栏中的活动项位于顶部/底部时的背景色。该活动允许在侧边栏的不同视图之间进行切换。",activityBarTopActiveFocusBorder:"活动栏中的活动项位于顶部/底部时的焦点边框颜色。活动允许在边栏视图之间切换。",activityBarTopBackground:"设置为顶部/底部时活动栏的背景色。",activityBarTopDragAndDropBorder:"活动栏中的项位于顶部/底部时的拖放反馈颜色。活动允许在边栏视图之间切换。",activityBarTopInActiveForeground:"活动栏中的项位于顶部/底部时的非活动前景色。活动允许在边栏视图之间切换。","banner.background":"横幅背景颜色。横幅显示在窗口的标题栏下。","banner.foreground":"横幅前景色。横幅显示在窗口的标题栏下。","banner.iconForeground":"横幅图标颜色。横幅显示在窗口的标题栏下。","commandCenter-activeBackground":"命令中心的活动背景色","commandCenter-activeBorder":"命令中心的活动边框颜色","commandCenter-activeForeground":"命令中心的活动前景色","commandCenter-background":"命令中心背景色","commandCenter-border":"命令中心的边框颜色","commandCenter-foreground":"命令中心前景色","commandCenter-inactiveBorder":"窗口处于非活动状态时命令中心的边框颜色","commandCenter-inactiveForeground":"窗口处于非活动状态时命令中心的前景色",editorDragAndDropBackground:"拖动编辑器时的背景颜色。此颜色应有透明度,以便编辑器内容能透过背景。",editorDropIntoPromptBackground:"拖动文件时编辑器上显示的文本背景色。此文本通知用户可以按住 Shift 放入编辑器中。",editorDropIntoPromptBorder:"拖动文件时在编辑器上显示的文本边框颜色。此文本通知用户可以按住 Shift 来拖入编辑器中。",editorDropIntoPromptForeground:"拖动文件时编辑器上显示的文本前景色。此文本通知用户可以按住 Shift 来拖入编辑器中。",editorGroupBorder:"将多个编辑器组彼此分隔开的颜色。编辑器组是编辑器的容器。",editorGroupEmptyBackground:"空编辑器组的背景色。编辑器组是编辑器的容器。",editorGroupFocusedEmptyBorder:"空编辑器组被聚焦时的边框颜色。编辑组是编辑器的容器。",editorGroupHeaderBackground:'禁用选项卡(“"workbench.editor.showTabs": "single"”)时编辑器组标题颜色。编辑器组是编辑器的容器。',editorPaneBackground:"居中编辑器布局中左侧与右侧编辑器窗格的背景色。",editorTitleContainerBorder:"编辑器组标题标头的边框颜色。编辑器组是编辑器的容器。","extensionBadge.remoteBackground":"扩展视图中远程徽标的背景色。","extensionBadge.remoteForeground":"扩展视图中远程徽标的前景色。",lastPinnedTabBorder:"用于将固定的选项卡与其他选项卡隔开的边框。选项卡是编辑器区域中编辑器的容器。可在一个编辑器组中打开多个选项卡。可以有多个编辑器组。",menubarSelectionBackground:"菜单栏中选定菜单项的背景色。",menubarSelectionBorder:"菜单栏中所选菜单项的边框颜色。",menubarSelectionForeground:"菜单栏中选定菜单项的前景色。",notificationCenterBorder:"通知中心的边框颜色。通知从窗口右下角滑入。",notificationCenterHeaderBackground:"通知中心头部的背景色。通知从窗口右下角滑入。",notificationCenterHeaderForeground:"通知中心头部的前景色。通知从窗口右下角滑入。",notificationToastBorder:"通知横幅的边框颜色。通知从窗口右下角滑入。",notificationsBackground:"通知的背景色。通知从窗口右下角滑入。",notificationsBorder:"通知中心中分隔通知的边框的颜色。通知从窗口右下角滑入。",notificationsErrorIconForeground:"用于错误通知图标的颜色。通知从窗口右下角滑入。",notificationsForeground:"通知的前景色。通知从窗口右下角滑入。",notificationsInfoIconForeground:"用于信息通知图标的颜色。通知从窗口右下角滑入。",notificationsLink:"通知链接的前景色。通知从窗口右下角滑入。",notificationsWarningIconForeground:"用于警告通知图标的颜色。通知从窗口右下角滑入。",outputViewBackground:"输出视图背景色。",outputViewStickyScrollBackground:"输出视图粘滞滚动背景色。",panelActiveTitleBorder:"活动面板标题的边框颜色。面板显示在编辑器区域下方,并包含输出和集成终端等视图。",panelActiveTitleForeground:"活动面板的标题颜色。面板显示在编辑器区域下方,并包含输出和集成终端等视图。",panelBackground:"面板的背景色。面板显示在编辑器区域下方,可包含输出和集成终端等视图。",panelBorder:"将面板与编辑器隔开的边框的颜色。面板显示在编辑区域下方,包含输出和集成终端等视图。",panelDragAndDropBorder:"拖放面板标题的反馈颜色。面板显示在编辑器区域的下方,包含输出和集成终端等视图。",panelInactiveTitleForeground:"非活动面板的标题颜色。面板显示在编辑器区域下方,并包含输出和集成终端等视图。",panelInputBorder:"用于面板中输入内容的输入框边框。",panelSectionBorder:"当多个视图在面板中水平堆叠时使用的面板区域边框颜色。面板显示在编辑器区域下方,其中包含输出和集成终端等视图。面板部分是嵌套在面板中的视图。",panelSectionDragAndDropBackground:"拖放面板区域的反馈颜色。颜色应具有透明度,以便面板区域仍可以显示出来。面板显示在编辑器区域的下方,包含输出和集成终端等视图。面板部分是嵌套在面板中的视图。",panelSectionHeaderBackground:"面板区域标题背景色。面板显示在编辑器区域的下方,包含输出和集成终端等视图。面板部分是嵌套在面板中的视图。",panelSectionHeaderBorder:"当多个视图在面板中垂直堆叠时使用的面板区域标题边框颜色。面板显示在编辑器区域下方,其中包含输出和集成终端等视图。面板部分是嵌套在面板中的视图。",panelSectionHeaderForeground:"面板区域标题前景色。面板显示在编辑器区域的下方,包含输出和集成终端等视图。面板部分是嵌套在面板中的视图。",panelStickyScrollBackground:"面板中粘滞滚动的背景色。",panelStickyScrollBorder:"面板中粘滞滚动的边框颜色。",panelStickyScrollShadow:"面板中粘滞滚动的阴影颜色。",profileBadgeBackground:"配置文件徽章背景色。配置文件徽章显示在活动栏中设置齿轮图标的顶部。",profileBadgeForeground:"配置文件徽章前景颜色。配置文件徽章显示在活动栏中设置齿轮图标的顶部。",sideBarActivityBarTopBorder:"顶部/底部的活动栏与视图之间的边框颜色。",sideBarBackground:"侧边栏背景色。侧边栏是资源管理器和搜索等视图的容器。",sideBarBorder:"侧边栏分隔编辑器的边框颜色。侧边栏包含资源管理器、搜索等视图。",sideBarDragAndDropBackground:"侧边栏中的部分在拖放时的反馈颜色。此颜色应有透明度,以便侧边栏中的部分仍能透过。侧边栏是资源管理器和搜索等视图的容器。侧边栏部分是嵌套在侧边栏中的视图。",sideBarForeground:"侧边栏前景色。侧边栏是资源管理器和搜索等视图的容器。",sideBarSectionHeaderBackground:"侧边栏部分标题背景色。此侧边栏是资源管理器和搜索等视图的容器。侧边栏部分是在侧边栏中嵌套的视图。",sideBarSectionHeaderBorder:"侧边栏部分标题边界色。侧栏是类似资源管理器和搜索等视图的容器。侧栏部分是在侧栏中嵌套的视图。",sideBarSectionHeaderForeground:"侧边栏部分标题前景色。侧栏是类似资源管理器和搜索等视图的容器。侧栏部分是在侧栏中嵌套的视图。",sideBarStickyScrollBackground:"侧边栏中粘滞滚动的背景色。",sideBarStickyScrollBorder:"边栏中粘滞滚动的边框颜色。",sideBarStickyScrollShadow:"边栏中粘滞滚动的阴影颜色。",sideBarTitleBackground:"边栏标题背景色。边栏是资源管理器和搜索等视图的容器。",sideBarTitleForeground:"侧边栏标题前景色。侧边栏是资源管理器和搜索等视图的容器。","sideBySideEditor.horizontalBorder":"在编辑器组中上下并排显示时,用于分隔两个编辑器的颜色。","sideBySideEditor.verticalBorder":"在编辑器组中左右并排显示时,用于区分两个编辑器的颜色。",statusBarBackground:"工作区或文件夹打开时状态栏的背景色。状态栏显示在窗口底部。",statusBarBorder:"状态栏分隔侧边栏和编辑器的边框颜色。状态栏显示在窗口底部。",statusBarErrorItemBackground:"状态栏错误项的背景颜色。错误项比状态栏中的其他条目更醒目以显示错误条件。状态栏显示在窗口底部。",statusBarErrorItemForeground:"状态错误项的前景色。错误项比状态栏中的其他条目更醒目以显示错误条件。状态栏显示在窗口底部。",statusBarErrorItemHoverBackground:"悬停时状态错误项的背景色。错误项比状态栏中的其他条目更醒目以显示错误条件。状态栏显示在窗口底部。",statusBarErrorItemHoverForeground:"悬停时状态错误项的前景色。错误项比状态栏中的其他条目更醒目以显示错误条件。状态栏显示在窗口底部。",statusBarFocusBorder:"聚焦于键盘导航时状态栏的边框颜色。状态栏显示在窗口底部。",statusBarForeground:"工作区或文件夹打开时状态栏的前景色。状态栏显示在窗口底部。",statusBarItemActiveBackground:"单击时的状态栏项背景色。状态栏显示在窗口底部。",statusBarItemCompactHoverBackground:"悬停在包含两个悬停的项时的状态栏项背景色。状态栏显示在窗口底部。",statusBarItemFocusBorder:"聚焦于键盘导航时的状态栏项目边框颜色。状态栏显示在窗口底部。",statusBarItemHostBackground:"状态栏上远程指示器的背景色。",statusBarItemHostForeground:"状态栏上远程指示器的前景色。",statusBarItemHoverBackground:"悬停时的状态栏项背景色。状态栏显示在窗口底部。",statusBarItemHoverForeground:"悬停时的状态栏项前景色。状态栏显示在窗口底部。",statusBarItemOfflineBackground:"工作台脱机时的状态栏项背景色。",statusBarItemOfflineForeground:"工作台脱机时的状态栏项前景色。",statusBarNoFolderBackground:"没有打开文件夹时状态栏的背景色。状态栏显示在窗口底部。",statusBarNoFolderBorder:"当没有打开文件夹时,用来使状态栏与侧边栏、编辑器分隔的状态栏边框颜色。状态栏显示在窗口底部。",statusBarNoFolderForeground:"没有打开文件夹时状态栏的前景色。状态栏显示在窗口底部。",statusBarOfflineItemHoverBackground:"工作台脱机时,状态栏项背景悬停颜色。",statusBarOfflineItemHoverForeground:"工作台脱机时,状态栏项前台悬停颜色。",statusBarProminentItemBackground:"状态栏突出显示项的背景色。突出的项目从其他状态栏条目中突出显示,以指示重要性。状态栏显示在窗口底部。",statusBarProminentItemForeground:"状态栏突出显示项的前景色。突出的项目从其他状态栏条目中突出显示,以指示重要性。状态栏显示在窗口底部。",statusBarProminentItemHoverBackground:"悬停时状态栏突出显示项的背景色。突出的项目从其他状态栏条目中突出显示,以指示重要性。状态栏显示在窗口底部。",statusBarProminentItemHoverForeground:"悬停时状态栏突出显示项的前景色。突出的项目从其他状态栏条目中突出显示,以指示重要性。状态栏显示在窗口底部。",statusBarRemoteItemHoverBackground:"悬停时状态栏上远程指示器的背景色。",statusBarRemoteItemHoverForeground:"悬停时状态栏上远程指示器的前景色。",statusBarWarningItemBackground:"状态栏警告项的背景颜色。警告项比状态栏中的其他条目更醒目以显示警告条件。状态栏显示在窗口底部。",statusBarWarningItemForeground:"状态错误项的前景色。错误项比状态栏中的其他条目更醒目以显示错误条件。状态栏显示在窗口底部。",statusBarWarningItemHoverBackground:"悬停时状态错误项的背景色。错误项比状态栏中的其他条目更醒目以显示错误条件。状态栏显示在窗口底部。",statusBarWarningItemHoverForeground:"悬停时状态警告项的前景色。警告项比状态栏中的其他条目更醒目以显示警告条件。状态栏显示在窗口底部。",tabActiveBackground:"活动选项卡的背景色。在编辑器区域,选项卡是编辑器的容器。可在一个编辑器组中打开多个选项卡。可以有多个编辑器组。",tabActiveBorder:"活动选项卡底部的边框。选项卡是编辑器区域中编辑器的容器。可在一个编辑器组中打开多个选项卡。可以存在多个编辑器组。",tabActiveBorderTop:"活动选项卡顶部的边框。选项卡是编辑器区域中编辑器的容器。可在一个编辑器组中打开多个选项卡。可以存在多个编辑器组。",tabActiveForeground:"活动组中活动选项卡的前景色。在编辑器区域,选项卡是编辑器的容器。可在一个编辑器组中打开多个选项卡。可以有多个编辑器组。",tabActiveModifiedBorder:"活动组中已修改的活动选项卡顶部的边框。选项卡是编辑器区域中编辑器的容器。可以在一个编辑器组中打开多个选项卡。可以有多个编辑器组。",tabActiveUnfocusedBorder:"在失去焦点的编辑器组中的活动选项卡底部的边框。选项卡是编辑器区域中编辑器的容器。可在一个编辑器组中打开多个选项卡。可以存在多个编辑器组。",tabActiveUnfocusedBorderTop:"在失去焦点的编辑器组中的活动选项卡顶部的边框。选项卡是编辑器区域中编辑器的容器。可在一个编辑器组中打开多个选项卡。可以存在多个编辑器组。",tabBorder:"用于将选项卡彼此分隔开的边框。选项卡是编辑器区域中编辑器的容器。可在一个编辑器组中打开多个选项卡。可以存在多个编辑器组。",tabDragAndDropBorder:"选项卡之间的边框,指示可以在两个选项卡之间插入选项卡。选项卡是编辑器区域中编辑器的容器。可以在一个编辑器组中打开多个选项卡。可以有多个编辑器组。",tabHoverBackground:"选项卡被悬停时的背景色。选项卡是编辑器区域中编辑器的容器。可在一个编辑器组中打开多个选项卡。可以有多个编辑器组。",tabHoverBorder:"选项卡被悬停时用于突出显示的边框。选项卡是编辑器区域中编辑器的容器。可在一个编辑器组中打开多个选项卡。可以有多个编辑器组。",tabHoverForeground:"悬停时选项卡的前景色。选项卡是编辑器区域中的编辑器的容器。可在一个编辑器组中打开多个选项卡。可存在多个编辑器组。",tabInactiveBackground:"非活动选项卡的背景色。在编辑器区域,选项卡是编辑器的容器。可在一个编辑器组中打开多个选项卡。可以有多个编辑器组。",tabInactiveForeground:"活动组中非活动选项卡的前景色。在编辑器区域,选项卡是编辑器的容器。可在一个编辑器组中打开多个选项卡。可以有多个编辑器组。",tabInactiveModifiedBorder:"活动组中已修改的非活动选项卡顶部的边框。选项卡是编辑器区域中编辑器的容器。可以在一个编辑器组中打开多个选项卡。可以有多个编辑器组。",tabUnfocusedActiveBackground:"非焦点组中的活动选项卡背景色。选项卡是编辑器区域中编辑器的容器。可以在一个编辑器组中打开多个选项卡。可以有多个编辑器组。",tabUnfocusedActiveForeground:"一个失去焦点的编辑器组中的活动选项卡的前景色。在编辑器区域,选项卡是编辑器的容器。可在一个编辑器组中打开多个选项卡。可以有多个编辑器组。",tabUnfocusedHoverBackground:"非焦点组选项卡被悬停时的背景色。选项卡是编辑器区域中编辑器的容器。可在一个编辑器组中打开多个选项卡。可以有多个编辑器组。",tabUnfocusedHoverBorder:"非焦点组选项卡被悬停时用于突出显示的边框。选项卡是编辑器区域中编辑器的容器。可在一个编辑器组中打开多个选项卡。可以有多个编辑器组。",tabUnfocusedHoverForeground:"悬停时不带焦点的组中的选项卡前景色。选项卡是编辑器区域中的编辑器的容器。可在一个编辑器组中打开多个选项卡。可存在多个编辑器组。",tabUnfocusedInactiveBackground:"不带焦点的组中处于非活动状态的选项卡的背景色。选项卡是编辑器区域中的编辑器的容器。可在一个编辑器组中打开多个选项卡。可存在多个编辑器组。",tabUnfocusedInactiveForeground:"在一个失去焦点的组中非活动选项卡的前景色。在编辑器区域,选项卡是编辑器的容器。可在一个编辑器组中打开多个选项卡。可以有多个编辑器组。",tabsContainerBackground:"启用选项卡时编辑器组标题的背景颜色。编辑器组是编辑器的容器。",tabsContainerBorder:"选项卡启用时编辑器组标题的边框颜色。编辑器组是编辑器的容器。",titleBarActiveBackground:"窗口处于活动状态时的标题栏背景色。",titleBarActiveForeground:"窗口处于活动状态时的标题栏前景色。",titleBarBorder:"标题栏边框颜色。",titleBarInactiveBackground:"窗口处于非活动状态时的标题栏背景色。",titleBarInactiveForeground:"窗口处于非活动状态时的标题栏前景色。",unfocusedActiveModifiedBorder:"未聚焦组中已修改的活动选项卡顶部的边框。选项卡是编辑器区域中编辑器的容器。可以在一个编辑器组中打开多个选项卡。可以有多个编辑器组。",unfocusedINactiveModifiedBorder:"未聚焦组中已修改的非活动选项卡顶部的边框。选项卡是编辑器区域中编辑器的容器。可以在一个编辑器组中打开多个选项卡。可以有多个编辑器组。",windowActiveBorder:"窗口处于活动状态时用于窗口边框的颜色。当使用自定义标题栏时,仅在 macOS 和 Linux 桌面客户端中受支持。",windowInactiveBorder:"窗口处于非活动状态时用于窗口边框的颜色。当使用自定义标题栏时,仅在 macOS 和 Linux 桌面客户端中受支持。"},"vs/workbench/common/views":{defaultViewIcon:"默认视图图标。",duplicateId:"已注册 ID 为“{0}”的视图","treeView.notRegistered":'未注册 ID 为 "{0}" 的树状视图。',"views log":"视图"},"vs/workbench/electron-sandbox/actions/developerActions":{configureRuntimeArguments:"配置运行时参数",openUserDataFolder:"打开用户数据文件夹",reloadWindowWithExtensionsDisabled:"在禁用扩展的情况下重新加载",toggleDevTools:"切换开发人员工具"},"vs/workbench/electron-sandbox/actions/installActions":{install:"在 PATH 中安装“{0}”命令",shellCommand:"Shell 命令",successFrom:"已成功从 PATH 卸载 Shell 命令“{0}”。",successIn:"已成功在 PATH 中安装了 Shell 命令“{0}”。",uninstall:"从 PATH 中卸载“{0}”命令"},"vs/workbench/electron-sandbox/actions/windowActions":{close:"关闭窗口",closeWindow:"关闭窗口",current:"当前窗口",miCloseWindow:"关闭窗口(&&W)",miZoomIn:"放大(&&Z)",miZoomOut:"缩小(&&Z)",miZoomReset:"重置缩放(&&R)",quickSwitchWindow:"快速切换窗口...",switchWindow:"切换窗口...",switchWindowPlaceHolder:"选择切换的窗口",windowDirtyAriaLabel:"{0},个具有未保存更改的窗口",windowGroup:"窗口组",zoomIn:"放大",zoomOut:"缩小",zoomReset:"重置缩放"},"vs/workbench/electron-sandbox/desktop.contribution":{"application.shellEnvironmentResolutionTimeout":"控制在应用程序尚未从终端启动时放弃解析 shell 环境之前的超时(以秒为单位)。有关详细信息,请参阅我们的 [文档](https://go.microsoft.com/fwlink/?linkid=2149667)。","argv.crashReporterId":"用于关联从此应用实例发送的崩溃报表的唯一 ID。","argv.disableChromiumSandbox":"禁用 Chromium 沙盒。当在 Linux 上以提升的权限运行 VS Code 并在 Windows 上的 Applocker 下运行时,这很有用。","argv.disableHardwareAcceleration":"禁用硬件加速。仅当遇到图形问题时才更改此选项。","argv.enableCrashReporter":"允许禁用崩溃报告;如果更改了值,则应重启应用。","argv.enebleProposedApi":'为扩展 ID (如 "vscode.git")的列表启用建议的 API。建议的 API 不稳定,可能随时中断且不发出警告。仅应针对扩展开发和测试目的设置该项。',"argv.force-renderer-accessibility":"强制渲染器可访问。仅当在 Linux 上使用屏幕阅读器时才更改此设置。在其他平台上,渲染器将自动可访问。如果已启用 editor.accessibilitySupport:,则会自动设置此标志。","argv.forceColorProfile":'允许替代要使用的颜色配置文件。如果发现颜色显示不佳,请尝试将此设置为 "srgb" 并重启。',"argv.locale":"要使用的显示语言。选取其他语言需要安装关联的语言包。","argv.logLevel":"要使用的日志级别。默认值为 “info”。允许的值为 “error”、“warn”、“info”、“debug”、“trace” 和 “off”。","argv.passwordStore":"配置用于在 Linux 上存储机密的后端。此参数在 Windows 和 macOS 上会被忽略。","argv.useInMemorySecretStorage":"确保内存中存储将用于机密存储,而不是使用 OS 的凭据存储。此选项通常在运行 VS Code 扩展测试或遇到凭据存储问题时使用。",closeWhenEmpty:"控制在关闭最后一个编辑器时是否关闭整个窗口。此设置仅适用于没有显示文件夹的窗口。",confirmSaveUntitledWorkspace:"控制切换到另一个工作区时是否显示确认对话框,询问是保存还是放弃窗口中打开的无标题工作区。禁用确认对话框将始终放弃无标题的工作区。",dialogStyle:"调整对话框窗口的外观。",enableCrashReporterDeprecated:"如果此设置为 false,则无论新设置的值如何,都不会发送遥测数据。由于合并到 {0} 设置,目前已弃用。",keyboardConfigurationTitle:"键盘",mergeAllWindowTabs:"合并所有窗口",miExit:"退出(&&X)",moveWindowTabToNewWindow:"将窗口选项卡移动到新窗口",newTab:"新建窗口标签页",newWindowDimensions:"控制在已有窗口时新开窗口的尺寸。请注意,此设置对第一个打开的窗口无效。第一个窗口将始终恢复关闭前的大小和位置。",openWithoutArgumentsInNewWindow:"在另一实例无参启动时,控制是打开新的空窗口或是聚焦到最后运行的实例。\r\n注意,此设置可能会被忽略 (例如,在使用 `--new-window` 或 `--reuse-window` 命令行选项时)。",restoreFullscreen:"若窗口在处于全屏模式时退出,控制其在恢复时是否还原到全屏模式。",restoreWindows:"控制在第一次启动后窗口重新打开的方式。如果应用程序已在运行,则此设置不起任何作用。","security.promptForLocalFileProtocolHandling":"启用此参数后,每次即将通过协议处理程序打开本地文件或工作区时,都会弹出一个请求确认的对话框。","security.promptForRemoteFileProtocolHandling":"启用此参数后,每次即将通过协议处理程序打开远程文件或工作区时,都会弹出一个请求确认的对话框。",showNextWindowTab:"显示下一个窗口选项卡",showPreviousTab:"显示上一个窗口选项卡","telemetry.enableCrashReporting":"启用要收集的崩溃报告。这有助于我们提高稳定性。\r\n此选项需重启才可生效。",telemetryConfigurationTitle:"遥测",titleBarStyle:"调整窗口标题栏的外观,使其由 OS 或自定义作为本机。在 Linux 和 Windows 上,此设置也会影响应用程序和上下文菜单的外观。更改需要完全重新启动才能应用。",toggleWindowTabsBar:"切换窗口选项卡栏","touchbar.enabled":"启用键盘上的 macOS 触控栏按钮 (若可用)。","touchbar.ignored":'触摸栏中不应显示的条目的一组标识符(例如 "workbench.action.navigateBack")。',"window.clickThroughInactive":"启用后,点击非活动窗口后将在激活窗口的同时触发光标之下的元素 (若可点击)。禁用后,点击非活动窗口仅能激活窗口,再次点击才能触发元素。","window.customTitleBarVisibility":"调整何时应自定义标题栏。在全屏模式下使用“windowed”时,可以隐藏自定义标题栏。当“#window.titleBarStyle#”设置为“native”时,自定义标题栏只能在设置为“never”的非全屏模式下隐藏。","window.customTitleBarVisibility.auto":"自动更改自定义标题栏可见性。","window.customTitleBarVisibility.never":"当“#window.titleBarStyle#”设置为“native”时隐藏自定义标题栏。","window.customTitleBarVisibility.windowed":"在全屏模式下隐藏自定义标题栏。在非全屏模式下,自动更改自定义标题栏可见性。","window.doubleClickIconToClose":"如果启用,当双击标题栏中的应用程序图标时,此设置将关闭窗口。该窗口将无法使用图标拖动。仅当 `#window.titleBarStyle#` 设置为 `自定义` 时,此设置才有效。","window.nativeFullScreen":"控制是否在 macOS 上使用原生全屏。禁用此设置可禁止 macOS 在全屏时创建新空间。","window.nativeTabs":"启用 macOS Sierra 窗口选项卡。请注意,更改在完全重新启动程序后才能生效。同时,开启原生选项卡将禁用自定义标题栏样式。","window.newWindowDimensions.default":"在屏幕中心打开新窗口。","window.newWindowDimensions.fullscreen":"在全屏模式下打开新窗口。","window.newWindowDimensions.inherit":"以与上一个活动窗口相同的尺寸打开新窗口。","window.newWindowDimensions.maximized":"打开最大化的新窗口。","window.newWindowDimensions.offset":"打开与上次活动窗口具有相同尺寸的新窗口,并带有偏移位置。","window.openWithoutArgumentsInNewWindow.off":"聚焦到上一活动的运行实例。","window.openWithoutArgumentsInNewWindow.on":"打开一个新的空窗口。","window.reopenFolders.all":"重新打开所有窗口,除非已打开文件夹、工作区或文件(例如从命令行)。","window.reopenFolders.folders":"重新打开已打开文件夹或工作区的所有窗口,除非已打开文件夹、工作区或文件(例如从命令行)。","window.reopenFolders.none":"从不重新打开窗口。如果文件夹或工作区未打开(例如从命令行),将出现一个空窗口。","window.reopenFolders.one":"重新打开上一个活动窗口,除非已打开文件夹、工作区或文件(例如从命令行)。","window.reopenFolders.preserve":"始终重新打开所有窗口。如果打开文件夹或工作区(例如从命令行打开),它将作为新窗口打开,除非它之前已打开。如果打开文件,则这些文件将在其中一个已还原的窗口中打开。",windowConfigurationTitle:"窗口",zoomLevel:"调整所有窗口的默认缩放级别。大于“0”的每个增量(例如“1”)或小于“0”的每个增量(例如“-1”)表示放大或缩小“20%”。还可以输入小数以使用更细的粒度调整缩放级别。请参阅 {0},了解将“放大”和“缩小”命令配置为将缩放级别应用于所有窗口还是仅应用于活动窗口。",zoomPerWindow:"控制“放大”和“缩小”命令是将缩放级别应用于所有窗口还是仅应用于活动窗口。请参阅 {0} 以配置所有窗口的默认缩放级别。"},"vs/workbench/electron-sandbox/desktop.main":{"join.closeStorage":"正在保存 UI 状态"},"vs/workbench/electron-sandbox/parts/dialogs/dialogHandler":{aboutDetail:"版本: {0}\r\n提交: {1}\r\n日期: {2}\r\nElectron: {3}\r\nElectronBuildId: {4}\r\nChromium: {5}\r\nNode.js: {6}\r\nV8: {7}\r\nOS: {8}",copy:"复制(&&C)",okButton:"确定"},"vs/workbench/electron-sandbox/window":{"appRootWarning.banner":"在更新时,存储在安装文件夹(“{0}”)中的文件可能会被覆盖或删除(不可撤销),而不会发出警告。",configure:"配置",downloadArmBuild:"下载",keychainWriteError:"将登录信息写入密钥链失败,出现错误“{0}”。",learnMore:"了解详细信息",loaderCycle:"AMD 模块中存在一个依赖项循环需要解决!",loginButton:"登录(&&L)",macoseolmessage:"{1} 上的 {0} 将很快停止接收更新。请考虑升级 macOS 版本。",password:"密码",proxyAuthRequired:"需要代理身份验证",proxyDetail:"代理 {0} 需要用户名和密码。",rememberCredentials:"记住我的凭据",resolveShellEnvironment:"正在解析 shell 环境...",restart:"重启",runningAsRoot:"不建议以 root 用户身份运行 {0}。",runningTranslated:"你正在运行 {0} 的仿真版本。为了获得更好的性能,请下载适用于计算机的本机 arm64 版本的 {0} 内部版本。",shutdownErrorClose:"意外错误导致无法关闭窗口",shutdownErrorDetail:"错误: {0}",shutdownErrorLoad:"意外错误导致无法更改工作区",shutdownErrorQuit:"意外错误导致无法退出应用程序",shutdownErrorReload:"意外错误导致无法重新加载窗口",shutdownForceClose:"仍然关闭",shutdownForceLoad:"仍然更改",shutdownForceQuit:"仍然退出",shutdownForceReload:"仍然重新加载",shutdownTitleClose:"关闭窗口需要的时间较长...",shutdownTitleLoad:"更改工作区需要的时间较长...",shutdownTitleQuit:"退出应用程序需要的时间较长...",shutdownTitleReload:"重新加载窗口需要的时间较长...","status.windowZoom":"窗口缩放",troubleshooting:"故障排除指南",username:"用户名",willShutdownDetail:"以下操作仍在运行: \r\n{0}",zoomIn:"放大",zoomNumber:"缩放级别: {0} ({1}%)",zoomOut:"缩小",zoomReset:"重置",zoomResetLabel:"{0} ({1})",zoomSettings:"设置"},"vs/workbench/contrib/accessibility/browser/accessibilityConfiguration":{"accessibility.announcement.deprecationMessage":"此设置已弃用。请改用“信号”设置。","accessibility.hideAccessibleView":"控制是否隐藏辅助视图。","accessibility.signals.chatRequestSent":"当发出聊天请求时播放信号。","accessibility.signals.chatRequestSent.announcement":"指示何时发出聊天请求。","accessibility.signals.chatRequestSent.sound":"发出聊天请求时播放声音。","accessibility.signals.chatResponseReceived":"指示何时收到响应。","accessibility.signals.chatResponseReceived.sound":"在收到响应时循环播放声音。","accessibility.signals.clear":"清除功能(例如,终端、调试控制台或输出通道)时播放信号。","accessibility.signals.clear.announcement":"指示何时清除功能。","accessibility.signals.clear.sound":"清除功能时播放声音。","accessibility.signals.debouncePositionChanges":"是否应停用位置更改","accessibility.signals.diffLineDeleted":"指示焦点何时移动到辅助差异查看器模式下已删除的行或下一个/上一个更改。","accessibility.signals.diffLineDeleted.sound":"当焦点移到可访问差异查看器下的已删除行或下一/上一个更改时播放声音。","accessibility.signals.diffLineInserted":"指示焦点何时移动到辅助差异查看器模式下插入的行或下一个/上一个更改。","accessibility.signals.diffLineModified":"指示焦点何时移动到辅助差异查看器模式下修改的行或下一个/上一个更改。","accessibility.signals.diffLineModified.sound":"当焦点移到可访问差异查看器下的已修改行或下一/上一个更改时播放声音。","accessibility.signals.format":"当设置文件或笔记本格式时播放信号。","accessibility.signals.format.always":"每次文件格式化(包括将其设置为在保存、键入、粘贴或运行单元格时格式化)时播放音频提示。","accessibility.signals.format.announcement":"指示何时设置文件或笔记本的格式。","accessibility.signals.format.announcement.always":"每次文件格式化时(包括在将文件设置为在保存、键入、粘贴或运行单元格时格式化),发出公告。","accessibility.signals.format.announcement.never":"从不报出。","accessibility.signals.format.announcement.userGesture":"当用户显式设置文件格式时,将报出。","accessibility.signals.format.never":"从不播放音频提示。","accessibility.signals.format.sound":"在格式化文件或笔记本时播放声音。","accessibility.signals.format.userGesture":"在用户显式保存文件时播放音频提示。","accessibility.signals.lineHasBreakpoint":"当活动行具有断点时播放信号。","accessibility.signals.lineHasBreakpoint.announcement":"指示活动行何时具有断点。","accessibility.signals.lineHasBreakpoint.sound":"当有效行具有断点时播放声音。","accessibility.signals.lineHasError":"指示活动行何时具有错误。","accessibility.signals.lineHasError.announcement":"指示活动行何时具有错误。","accessibility.signals.lineHasError.sound":"当有效行出现错误时播放声音。","accessibility.signals.lineHasFoldedArea":"指示活动行何时具有可展开的折叠区域。","accessibility.signals.lineHasFoldedArea.announcement":"指示活动行何时具有可展开的折叠区域。","accessibility.signals.lineHasFoldedArea.sound":"当有效行具有可展开的折叠区域时播放声音。","accessibility.signals.lineHasInlineSuggestion":"指示活动行何时具有内联建议。","accessibility.signals.lineHasInlineSuggestion.sound":"当有效行具有内联建议时播放声音。","accessibility.signals.lineHasWarning":"当活动行具有警告时播放信号。","accessibility.signals.lineHasWarning.announcement":"指示活动行何时具有警告。","accessibility.signals.lineHasWarning.sound":"当有效行出现警告时播放声音。","accessibility.signals.noInlayHints":"尝试读取包含无内嵌提示的内嵌提示的行时播放信号。","accessibility.signals.noInlayHints.announcement":"指示何时尝试读取包含无内嵌提示的内嵌提示的行。","accessibility.signals.noInlayHints.sound":"尝试读取包含无内嵌提示的内嵌提示的行时播放声音。","accessibility.signals.notebookCellCompleted":"当笔记本单元格执行成功完成时播放信号。","accessibility.signals.notebookCellCompleted.announcement":"指示笔记本单元格执行何时成功完成。","accessibility.signals.notebookCellCompleted.sound":"在成功完成笔记本单元格执行时播放声音。","accessibility.signals.notebookCellFailed":"笔记本单元格执行失败时播放信号。","accessibility.signals.notebookCellFailed.announcement":"指示笔记本单元格执行何时失败。","accessibility.signals.notebookCellFailed.sound":"在笔记本单元格执行失败时播放声音。","accessibility.signals.onDebugBreak":"当调试程序在断点上停止时播放信号。","accessibility.signals.onDebugBreak.announcement":"指示调试程序何时在断点上停止。","accessibility.signals.onDebugBreak.sound":"当调试程序在断点上停止时播放声音。","accessibility.signals.positionHasError":"当活动行具有警告时播放信号。","accessibility.signals.positionHasError.announcement":"指示活动行何时具有警告。","accessibility.signals.positionHasError.sound":"当有效行出现警告时播放声音。","accessibility.signals.positionHasWarning":"当活动行具有警告时播放信号。","accessibility.signals.positionHasWarning.announcement":"指示活动行何时具有警告。","accessibility.signals.positionHasWarning.sound":"当有效行出现警告时播放声音。","accessibility.signals.progress":"在进度进行时循环播放信号。","accessibility.signals.progress.announcement":"在进度进行时循环发出警报。","accessibility.signals.progress.sound":"在进行进度时循环播放声音。","accessibility.signals.save":"保存文件时播放信号。","accessibility.signals.save.announcement":"指示文件何时保存。","accessibility.signals.save.announcement.always":"每当保存文件(包括自动保存)时,都会报出。","accessibility.signals.save.announcement.never":"从不播放音频提示。","accessibility.signals.save.announcement.userGesture":"当用户显式保存文件时,将报出。","accessibility.signals.save.sound":"保存文件时播放声音。","accessibility.signals.save.sound.always":"每次保存文件(包括自动保存)时播放音频提示。","accessibility.signals.save.sound.never":"从不播放音频提示。","accessibility.signals.save.sound.userGesture":"在用户显式保存文件时播放音频提示。","accessibility.signals.sound":"当焦点移到可访问差异查看器下的已插入行或下一/上一个更改时播放声音。","accessibility.signals.sounds.volume":"声音音量百分比(0-100)。","accessibility.signals.taskCompleted":"任务完成时播放信号。","accessibility.signals.taskCompleted.announcement":"指示任务何时完成。","accessibility.signals.taskCompleted.sound":"任务完成时播放声音。","accessibility.signals.taskFailed":"当任务失败时播放信号(非零退出代码)。","accessibility.signals.taskFailed.announcement":"指示任务何时失败(非零退出代码)。","accessibility.signals.taskFailed.sound":"任务失败时播放声音(非零退出代码)。","accessibility.signals.terminalBell":"当终端钟响铃时播放信号。","accessibility.signals.terminalBell.announcement":"指示终端钟何时响铃。","accessibility.signals.terminalBell.sound":"当终端钟响铃时播放声音。","accessibility.signals.terminalCommandFailed":"当终端命令失败(非零退出代码)或在可访问视图中导航到具有此类退出代码的命令时,播放信号。","accessibility.signals.terminalCommandFailed.announcement":"在终端命令失败(非零退出代码)或在可访问视图中导航到具有此类退出代码的命令时指示。","accessibility.signals.terminalCommandFailed.sound":"当终端命令失败(非零退出代码)或在可访问视图中导航到具有此类退出代码的命令时,播放声音。","accessibility.signals.terminalQuickFix":"终端快速修复可用时播放信号。","accessibility.signals.terminalQuickFix.announcement":"指示终端快速修复何时可用。","accessibility.signals.terminalQuickFix.sound":"当终端快速修复可用时播放声音。","accessibility.signals.voiceRecordingStarted":"指示语音录制何时已开始。","accessibility.signals.voiceRecordingStarted.sound":"语音录制开始时播放声音。","accessibility.signals.voiceRecordingStopped":"指示语音录制何时已停止。","accessibility.signals.voiceRecordingStopped.sound":"语音录制停止时播放声音。",accessibilityConfigurationTitle:"辅助功能","announcement.breakpoint":"指示调试程序何时中断。另请参阅 {0}。","announcement.chatRequestSent":"指示何时发送聊天请求。另请参阅 {0}。","announcement.clear":"指示何时清除功能(例如,终端、调试控制台或输出通道)。另请参阅 {0}。","announcement.enabled.auto":"启用公告,仅在屏幕阅读器优化模式下播放。","announcement.enabled.off":"禁用公告。","announcement.error":"指示活动行何时具有错误。另请参阅 {0}。","announcement.foldedArea":"指示活动行何时具有可展开的折叠区域。另请参阅 {0}。","announcement.format":"指示何时设置文件或笔记本单元格的格式。另请参阅 {0}。","announcement.format.always":"指示何时设置文件格式,包括自动保存、执行单元格等。","announcement.format.never":"从不发出警报。","announcement.format.userGesture":"指示何时通过用户手势设置文件的格式。","announcement.lineHasBreakpoint":"指示何时在具有断点的行上。另请参阅 {0}。","announcement.noInlayHints":"指示何时没有内嵌提示。另请参阅 {0}。","announcement.notebookCellCompleted":"指示笔记本单元格何时成功完成。另请参阅 {0}。","announcement.notebookCellFailed":"指示笔记本单元格何时失败。另请参阅 {0}。","announcement.onDebugBreak":"指示调试程序何时中断。另请参阅 {0}。","announcement.progress":"指示聊天响应何时挂起。另请参阅 {0}。","announcement.save":"指示文件何时保存。另请参阅 {0}。","announcement.save.always":"指示何时保存文件,包括自动保存。","announcement.save.never":"从不发出警报。","announcement.save.userGesture":"指示何时通过用户手势保存文件。","announcement.taskCompleted":"指示任务何时成功完成(零退出代码)。另请参阅 {0}。","announcement.taskFailed":"指示任务何时失败(非零退出代码)。另请参阅 {0}。","announcement.terminalBell":"指示何时激活终端钟。","announcement.terminalCommandFailed":"指示终端命令何时失败(非零退出代码)。另请参阅 {0}。","announcement.terminalQuickFix":"指示何时存在可用的终端快速修复。另请参阅 {0}。","announcement.warning":"指示活动行何时具有警告。另请参阅 {0}。",dimUnfocusedEnabled:"是否将未聚焦的编辑器和终端变暗,这可以更清楚地说明键入的输入将转到何处。这适用于大多数编辑器,但使用 iframe(如笔记本和扩展 Web 视图编辑器)的编辑器除外。",dimUnfocusedOpacity:"不透明度分数 (0.2 到 1.0) 用于未聚焦的编辑器和终端。这仅在启用 {0} 时生效。","sound.enabled.auto":"附加屏幕阅读器时,启用声音。","sound.enabled.off":"禁用声音。","sound.enabled.on":"启用声音。","speechLanguage.auto":"自动(使用显示语言)","terminal.integrated.accessibleView.closeOnKeyPress":"在 keypress 上,关闭辅助视图,将焦点放在调用它的元素上。","verbosity.chat.description":"提供有关如何在聚焦聊天输入时访问聊天帮助菜单的信息。","verbosity.comments":"提供有关可在注释小组件或包含注释的文件中执行的操作的信息。","verbosity.diffEditor.description":"提供有关如何在聚焦差异编辑器时在其中导航更改的信息。","verbosity.diffEditorActive":"指示差异编辑器何时成为活动编辑器。","verbosity.emptyEditorHint":"在空文本编辑器中提供有关相关操作的信息。","verbosity.hover":"提供有关如何在辅助视图中打开悬停的信息。","verbosity.inlineCompletions.description":"提供有关如何访问内联完成悬停和辅助视图的信息。","verbosity.interactiveEditor.description":"提供有关如何访问内联编辑器聊天辅助功能帮助菜单的信息,并提供如何在聚焦输入时使用该功能的提示。","verbosity.keybindingsEditor.description":"提供有关如何在聚焦行时在键绑定编辑器中更改键绑定的信息。","verbosity.notebook":"提供有关在笔记本单元格聚焦时如何聚焦单元格容器或内部编辑器的信息。","verbosity.notification":"提供有关如何在辅助视图中打开通知的信息。","verbosity.terminal.description":"提供有关如何在聚焦终端时访问终端辅助功能帮助菜单的信息。","voice.speechLanguage":"语音识别功能应识别的语言。如果可能,请选择 `auto` 以使用所配置的显示语言。请注意,并非所有显示语言都可能受语音识别支持","voice.speechTimeout":"停止说话后语音识别保持活动状态的持续时间(以毫秒为单位)。例如,在聊天会话中,超时后自动提交听录文本。设置为“0”以禁用此功能。"},"vs/workbench/contrib/accessibility/browser/accessibilityStatus":{screenReaderDetected:"已为屏幕阅读器优化","screenReaderDetectedExplanation.answerNo":"否","screenReaderDetectedExplanation.answerYes":"是","screenReaderDetectedExplanation.question":"你是否在使用屏幕阅读器操作 VS Code?","status.editor.screenReaderMode":"屏幕阅读器模式"},"vs/workbench/contrib/accessibility/browser/accessibleView":{"accessibility-help":"辅助功能帮助","accessibility-help-hint":"辅助功能帮助,{0}","accessible-view":"辅助视图","accessible-view-hint":"辅助视图。{0}",accessibleHelpToolbar:"辅助功能帮助",accessibleViewDisableHintNoKb:"\r\n\r\n为“禁用可访问视图提示”命令添加键绑定,该命令禁用此功能的辅助功能详细程度。",accessibleViewNextPreviousHint:"显示下一个({0})或上一个({1}) 项。",accessibleViewSymbolQuickPickPlaceholder:"键入以搜索符号",accessibleViewSymbolQuickPickTitle:"转到符号辅助视图",accessibleViewToolbar:"辅助视图",acessibleViewDisableHint:"\r\n\r\n禁用此功能的辅助功能详细程度 ({0})。",acessibleViewHint:"在辅助视图中用 {0} 检查此项",acessibleViewHintNoKbEither:"通过命令“打开辅助视图”在辅助视图中检查此项,该命令当前无法通过键绑定触发。",ariaAccessibleViewActions:"浏览禁用此提示 (Shift+Tab )等操作。",ariaAccessibleViewActionsBottom:"浏览禁用此提示 (Shift+Tab) 等操作,使用 Esc 退出此对话框。",chatAccessibleViewNextPreviousHintNoKb:"通过为“辅助视图”命令中的“显示下一个和上一个”命令配置键绑定,显示下一项或上一项。",disableAccessibilityHelp:"{0} 辅助功能详细程度现已禁用",exit:"\r\n\r\n退出此对话框 (Escape)。",goToSymbolHint:"转到符号({0})。",goToSymbolHintNoKb:"如果要转到符号,请为“辅助视图”中的“转到符号”命令配置键绑定",insertAtCursor:" - 在光标({0})处插入代码块。\r\n",insertAtCursorNoKb:" - 通过为聊天: 插入代码块命令配置键绑定,在光标处插入代码块。\r\n",insertIntoNewFile:" - 将代码块插入新文件({0})。\r\n",insertIntoNewFileNoKb:" - 通过为“聊天: 插入到新文件”命令配置键绑定,将代码块插入到新文件中。\r\n",intro:"在辅助视图中,可以:\r\n",openDoc:"\r\n\r\n打开浏览器窗口,其中包含与辅助功能 (H) 相关的详细信息。",runInTerminal:" - 在终端({0})中运行代码块。\r\n",runInTerminalNoKb:" - 通过为聊天: 插入终端命令配置键绑定,在终端中运行 coe 块。\r\n",symbolLabel:"({0}) {1}",symbolLabelAria:"({0}) {1}",toolbar:"导航到工具栏(Shift+Tab)。"},"vs/workbench/contrib/accessibility/browser/accessibleViewActions":{"editor.action.accessibilityHelp":"打开辅助功能帮助","editor.action.accessibleView":"打开辅助视图","editor.action.accessibleViewAcceptInlineCompletionAction":"接受内联完成","editor.action.accessibleViewDisableHint":"禁用辅助视图提示","editor.action.accessibleViewGoToSymbol":"转动辅助视图中的符号","editor.action.accessibleViewNext":"在辅助视图中显示下一个","editor.action.accessibleViewNextCodeBlock":"可访问视图: 下一个代码块","editor.action.accessibleViewPrevious":"在辅助视图中显示上一个","editor.action.accessibleViewPreviousCodeBlock":"可访问视图: 上一个代码块"},"vs/workbench/contrib/accessibility/browser/accessibleViewContributions":{clearNotification:"清除通知","notification.accessibleView":"{0}","notification.accessibleViewSrc":"{0} 源: {1}"},"vs/workbench/contrib/accessibility/browser/audioCueConfiguration":{"audioCues.chatRequestSent":"发出聊天请求时播放声音。","audioCues.chatResponsePending":"在响应挂起时循环播放声音。","audioCues.chatResponseReceived":"在收到响应时循环播放声音。","audioCues.clear":"在清除功能(例如终端、调试控制台或输出通道)时播放声音。当禁用此功能时,aria 警报将宣布“已清除”。","audioCues.debouncePositionChanges":"是否应停用位置更改","audioCues.debouncePositionChangesDeprecated":"此设置已弃用,请改用“signals.debouncePositionChanges”设置。","audioCues.diffLineDeleted":"当焦点移到可访问差异查看器下的已删除行或下一/上一个更改时播放声音。","audioCues.diffLineInserted":"当焦点移到可访问差异查看器下的已插入行或下一/上一个更改时播放声音。","audioCues.diffLineModified":"当焦点移到可访问差异查看器下的已修改行或下一/上一个更改时播放声音。","audioCues.enabled.auto":"附加屏幕阅读器时,启用音频提示。","audioCues.enabled.deprecated":"此设置已弃用。请改用“信号”设置。","audioCues.enabled.off":"禁用音频提示。","audioCues.enabled.on":"启用音频提示。","audioCues.format":"在格式化文件或笔记本时播放声音。另请参阅 {0}","audioCues.format.always":"每次文件格式化(包括将其设置为在保存、键入、粘贴或运行单元格时格式化)时播放音频提示。","audioCues.format.never":"从不播放音频提示。","audioCues.format.userGesture":"在用户显式保存文件时播放音频提示。","audioCues.lineHasBreakpoint":"当有效行具有断点时播放声音。","audioCues.lineHasError":"当有效行出现错误时播放声音。","audioCues.lineHasFoldedArea":"当有效行具有可展开的折叠区域时播放声音。","audioCues.lineHasInlineSuggestion":"当有效行具有内联建议时播放声音。","audioCues.lineHasWarning":"当有效行出现警告时播放声音。","audioCues.noInlayHints":"尝试读取包含无内嵌提示的内嵌提示的行时播放声音。","audioCues.notebookCellCompleted":"在成功完成笔记本单元格执行时播放声音。","audioCues.notebookCellFailed":"在笔记本单元格执行失败时播放声音。","audioCues.onDebugBreak":"当调试程序在断点上停止时播放声音。","audioCues.save":"保存文件时播放声音。另请参阅 {0}","audioCues.save.always":"每次保存文件(包括自动保存)时播放音频提示。","audioCues.save.never":"从不播放音频提示。","audioCues.save.userGesture":"在用户显式保存文件时播放音频提示。","audioCues.taskCompleted":"任务完成时播放声音。","audioCues.taskFailed":"任务失败时播放声音(非零退出代码)。","audioCues.terminalBell":"当终端钟响铃时播放声音。","audioCues.terminalCommandFailed":"当终端命令失败时播放声音(非零退出代码)。","audioCues.terminalQuickFix":"当终端快速修复可用时播放声音。"},"vs/workbench/contrib/accessibilitySignals/browser/commands":{"accessibility.announcement.help":"帮助: 列出信号公告","accessibility.announcement.help.description":"列出所有辅助功能公告、警报和盲文消息并配置其设置","accessibility.sound.help.description":"列出所有辅助功能声音、噪音或音频指示并配置其设置","announcement.help.placeholder":"选择要配置的公告","announcement.help.placeholder.disabled":"屏幕阅读器处于非活动状态,默认禁用公告。","announcement.help.settings":"配置公告","signals.sound.help":"帮助: 列出信号声音","sounds.help.placeholder":"选择要播放和配置的声音","sounds.help.settings":"配置声音"},"vs/workbench/contrib/accessibilitySignals/browser/openDiffEditorAnnouncement":{openDiffEditorAnnouncement:"差异编辑器"},"vs/workbench/contrib/accountEntitlements/browser/accountsEntitlements.contribution":{"workbench.accounts.showEntitlements":"启用后,帐户的可用权利将显示在帐户菜单中。","workbench.chat.showWelcomeView":"启用后,将显示聊天面板欢迎视图。"},"vs/workbench/contrib/audioCues/browser/audioCues.contribution":{"audioCues.chatRequestSent":"发出聊天请求时播放声音。","audioCues.chatResponsePending":"在响应挂起时循环播放声音。","audioCues.chatResponseReceived":"在收到响应时循环播放声音。","audioCues.clear":"在清除功能(例如终端、调试控制台或输出通道)时播放声音。当禁用此功能时,aria 警报将宣布“已清除”。","audioCues.debouncePositionChanges":"是否应停用位置更改","audioCues.diffLineDeleted":"当焦点移到可访问差异查看器下的已删除行或下一/上一个更改时播放声音。","audioCues.diffLineInserted":"当焦点移到可访问差异查看器下的已插入行或下一/上一个更改时播放声音。","audioCues.diffLineModified":"当焦点移到可访问差异查看器下的已修改行或下一/上一个更改时播放声音。","audioCues.enabled.auto":"附加屏幕阅读器时,启用音频提示。","audioCues.enabled.off":"禁用音频提示。","audioCues.enabled.on":"启用音频提示。","audioCues.format":"在格式化文件或笔记本时播放声音。另请参阅 {0}","audioCues.format.always":"每次文件格式化(包括将其设置为在保存、键入、粘贴或运行单元格时格式化)时播放音频提示。","audioCues.format.never":"从不播放音频提示。","audioCues.format.userGesture":"在用户显式保存文件时播放音频提示。","audioCues.lineHasBreakpoint":"当有效行具有断点时播放声音。","audioCues.lineHasError":"当有效行出现错误时播放声音。","audioCues.lineHasFoldedArea":"当有效行具有可展开的折叠区域时播放声音。","audioCues.lineHasInlineSuggestion":"当有效行具有内联建议时播放声音。","audioCues.lineHasWarning":"当有效行出现警告时播放声音。","audioCues.noInlayHints":"尝试读取包含无内嵌提示的内嵌提示的行时播放声音。","audioCues.notebookCellCompleted":"在成功完成笔记本单元格执行时播放声音。","audioCues.notebookCellFailed":"在笔记本单元格执行失败时播放声音。","audioCues.onDebugBreak":"当调试程序在断点上停止时播放声音。","audioCues.save":"保存文件时播放声音。另请参阅 {0}","audioCues.save.always":"每次保存文件(包括自动保存)时播放音频提示。","audioCues.save.never":"从不播放音频提示。","audioCues.save.userGesture":"在用户显式保存文件时播放音频提示。","audioCues.taskCompleted":"任务完成时播放声音。","audioCues.taskFailed":"任务失败时播放声音(非零退出代码)。","audioCues.terminalCommandFailed":"当终端命令失败时播放声音(非零退出代码)。","audioCues.terminalQuickFix":"当终端快速修复可用时播放声音。","audioCues.volume":"音频提示音量百分比(0-100)。"},"vs/workbench/contrib/audioCues/browser/commands":{"accessibility.alert.help":"帮助:列出警报","alerts.help.placeholder":"检查并配置警报的状态","alerts.help.settings":"启用/禁用音频提示","audioCues.help":"帮助: 列出音频提示","audioCues.help.placeholder":"选择要播放的音频提示","audioCues.help.settings":"启用/禁用音频提示",disabled:"已禁用"},"vs/workbench/contrib/authentication/browser/actions/manageTrustedExtensionsForAccountAction":{accountLastUsedDate:"上次使用此帐户的时间: {0}",accounts:"帐户",manageExtensions:"选择可以访问此帐户的扩展",manageTrustedExtensions:"管理受信任扩展","manageTrustedExtensions.cancel":"取消",manageTrustedExtensionsForAccount:"管理帐户的受信任扩展",noTrustedExtensions:"尚无任何扩展使用此帐户。",notUsed:"未使用此帐户",pickAccount:"选择要管理受信任扩展的帐户",trustedExtensionTooltip:"此扩展受 Microsoft 信任并且\r\n始终有权访问此帐户",trustedExtensions:"受 Microsoft 信任"},"vs/workbench/contrib/authentication/browser/actions/signOutOfAccountAction":{signOut:"退出登录(&&S)",signOutMessage:"帐户“{0}”已由以下扩展使用: \r\n\r\n{1}\r\n\r\n 是否注销这些扩展?",signOutMessageSimple:"注销“{0}”?",signOutOfAccount:"退出登录帐户"},"vs/workbench/contrib/authentication/browser/authentication.contribution":{authentication:"身份验证","authentication.Placeholder":"尚未请求任何帐户...","authentication.id":"身份验证提供程序的 ID。","authentication.idConflict":"已注册此身份验证 ID“{0}”","authentication.label":"身份验证提供程序的易读名称。","authentication.missingId":"提供身份验证必须指定一个 ID。","authentication.missingLabel":"提供身份验证必须指定一个标签。",authenticationExtensionPoint:"添加身份验证",authenticationid:"ID",authenticationlabel:"标签",loading:"正在加载..."},"vs/workbench/contrib/bulkEdit/browser/bulkEditService":{"areYouSureQuiteBulkEdit.detail":"{0} 正在进行。",changeWorkspace:"更改工作区(&&W)","changeWorkspace.message":"是否确实要更改工作区?",closeTheWindow:"关闭窗口(&&C)","closeTheWindow.message":"是否确实要关闭窗口?",fileOperation:"文件操作",nothing:"未做编辑",quit:"退出(&&Q)","quit.message":"是否确实要退出?","refactoring.autoSave":"控制是否自动保存作为重构一部分的文件",reloadTheWindow:"重新加载窗口(&&R)","reloadTheWindow.message":"是否确实要重新加载窗口?","summary.0":"未做编辑","summary.n0":"在 1 个文件中进行了 {0} 次编辑","summary.nm":"在 {1} 个文件中进行了 {0} 次编辑","summary.textFiles":"已在 {1} 文件中执行 {0} 文本编辑,且已创建或删除{2} 文件",workspaceEdit:"工作区编辑"},"vs/workbench/contrib/bulkEdit/browser/preview/bulkEdit.contribution":{Discard:"放弃重构",apply:"应用重构",cat:"重构预览",continue:"继续(&&C)",detail:'按"继续"放弃以前的重构,继续当前重构。',groupByFile:"按文件分组更改",groupByType:"按类型分组更改",overlap:"正在预览另一个重构。",panel:"重构预览",refactorPreviewViewIcon:"查看重构预览视图的图标。",toogleSelection:"切换更改"},"vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPane":{cancel:"放弃","conflict.1":"无法应用重构,因为“{0}”在此期间进行了修改。","conflict.N":"无法应用重构,因为其他 {0} 个文件在此期间进行了修改。","empty.msg":"调用代码操作(如重命名操作),在此处查看其更改的预览。",ok:"应用"},"vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPreview":{default:"其他"},"vs/workbench/contrib/bulkEdit/browser/preview/bulkEditTree":{"aria.create":"创建{0}","aria.createAndEdit":"创建{0},同时进行文本编辑","aria.del":"行 {0},正在删除 {1}","aria.delete":"删除 {0}","aria.deleteAndEdit":"正在删除 {0},同时进行文本编辑","aria.editOnly":"{0},进行文本编辑","aria.insert":"行{0},插入{1}","aria.rename":"将 {0} 重命名为 {1}","aria.renameAndEdit":"将{0}重命名为{1},同时进行文本编辑","aria.replace":"行{0},用{2}替换{1}",bulkEdit:"批量编辑","detail.create":"(正在创建)","detail.del":"(删除)","detail.rename":"(重命名)","rename.label":"{0} → {1}",title:"{0} - {1}"},"vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution":{callHierarchyDirection:"调用层次结构是否显示传入或传出的调用",callHierarchyVisible:"当前是否正在显示调用层次结构预览",close:"关闭",editorHasCallHierarchyProvider:"调用层次结构提供程序是否可用",error:"未能显示调用层次结构","no.item":"无结果",showIncomingCallsIcons:"“调用层次结构”视图中传入调用的图标。",showOutgoingCallsIcon:"“调用层次结构”视图中传出调用的图标。",title:"速览调用层次结构","title.incoming":"显示来电","title.outgoing":"显示去电","title.refocus":"重新聚焦调用层次结构"},"vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek":{callFrom:'来自"{0}"的调用',callsTo:'"{0}"的调用方',"empt.callsFrom":'没有来自 "{0}" 的调用',"empt.callsTo":'没有"{0}"的调用方',"title.loading":"正在加载..."},"vs/workbench/contrib/callHierarchy/browser/callHierarchyTree":{from:"来自 {0} 的调用",to:"{0} 的调用方","tree.aria":"调用层次结构"},"vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp":{"chat.announcement":"聊天答复将在他们进入时公布。答复将指示代码块的数量(如果有),然后指示响应的其余部分。","chat.followUp":"在输入框中,导航到建议的后续问题 (Shift+Tab),然后按 Enter 运行它。","chat.inspectResponse":"在输入框中,在辅助视图 {0} 中检查最后一个响应","chat.inspectResponseNoKb":"在以输入框为焦点时,通过“打开可访问视图”命令检查可访问视图中的最后一个响应,该命令当前无法通过键绑定触发。","chat.overview":"聊天视图由输入框和请求/响应列表组成。输入框用于发出请求,列表用于显示响应。","chat.requestHistory":"在输入框中,使用向上和向下箭头导航请求历史记录。编辑输入并使用 Enter 或提交按钮运行新请求。","chat.signals":"可通过带有 signals.chat 前缀的设置更改辅助功能信号。默认情况下,如果请求超过 4 秒,你将听到一个声音,指示仍在进行中。","inlineChat.access":"可通过代码操作激活,也可直接使用“内联聊天: 启动内联聊天”命令({0})激活。","inlineChat.contextActions":"弹出菜单操作可以运行前缀为 /. Type / 的请求,以发现此类现成命令。","inlineChat.diff":"进入差异编辑器后,使用({0})进入评审模式。使用向上和向下箭头导航包含建议的更改的行。","inlineChat.diffNoKb":"再次点击选项卡进入具有更改的差异编辑器,并使用“转到下一个差异”命令进入审阅模式。使用向上/向下箭头浏览具有建议更改的行。","inlineChat.fix":"如果调用了修复操作,则响应将指示当前代码的问题。将呈现差异编辑器,并且可以使用 Tab 键访问该编辑器。","inlineChat.inspectResponse":"在输入框中,在辅助视图 {0} 中检查响应。","inlineChat.inspectResponseNoKb":"在以输入框为焦点时,通过“打开可访问视图”命令检查可访问视图中的响应,该命令当前无法通过键绑定触发。","inlineChat.overview":"内联聊天发生在代码编辑器中,并考虑到当前所选内容。对当前编辑器进行更改很有用。例如,修复诊断、文档或重构代码。请注意,AI 生成的代码可能不正确。","inlineChat.requestHistory":"在输入框中,使用 {0} 和 {1} 导航请求历史记录。编辑输入并使用 Enter 或“提交”按钮来运行新请求。","inlineChat.toolbar":"使用选项卡访问命令、状态、消息响应等条件部分。","workbench.action.chat.clear":"若要清除请求/响应列表,请调用“聊天清除”命令({0})。","workbench.action.chat.clearNoKb":"若要清除请求/响应列表,请调用“聊天清除”命令;当前无法通过键绑定触发此命令。","workbench.action.chat.focus":"如果要将焦点放在聊天请求/响应列表上(可使用向上和向下箭头进行导航),请调用“将焦点放在聊天上”命令({0})。","workbench.action.chat.focusInput":"若要将焦点放在聊天请求的输入框上,请调用“将焦点放在聊天输入上”命令 ({0})。","workbench.action.chat.focusNoKb":"若要将焦点放在聊天请求/响应列表上(可使用向上和向下箭头进行导航),请调用“将焦点放在聊天列表上”命令;当前无法通过键绑定触发此命令。","workbench.action.chat.nextCodeBlock":"若要将焦点放在响应中的下一个代码块上,请调用“聊天: 下一个代码块”命令({0})。","workbench.action.chat.nextCodeBlockNoKb":"若要将焦点放在响应中的下一个代码块上,请调用“聊天: 下一个代码块”命令;当前无法通过键绑定触发此命令。","workbench.action.chat.nextFileTree":"如果要将焦点放在响应中的下一个代码块上,请调用“聊天: 下一个代码块”命令({0})。","workbench.action.chat.nextFileTreeNoKb":"若要将焦点放在响应中的下一个文件树上,请调用“聊天: 下一个文件树”命令;当前无法通过键绑定触发此命令。","workbench.action.interactiveSession.focusInputNoKb":"若要将焦点放在聊天请求的输入框上,请调用“将焦点放在聊天输入上”命令;当前无法通过键绑定触发此命令。"},"vs/workbench/contrib/chat/browser/actions/chatActions":{"actions.interactiveSession.focus":"焦点聊天列表","chat.category":"聊天","chat.clear.label":"清除所有工作区聊天","chat.history.label":"显示聊天...","interactiveSession.clearHistory.label":"清除输入历史记录","interactiveSession.focusInput.label":"焦点聊天输入","interactiveSession.history.delete":"删除","interactiveSession.history.pick":"切换到聊天","interactiveSession.open":"打开编辑器",openChat:"打开聊天"},"vs/workbench/contrib/chat/browser/actions/chatClearActions":{"chat.newChat.label":"新建聊天"},"vs/workbench/contrib/chat/browser/actions/chatCodeblockActions":{"interactive.compare.apply":"应用编辑","interactive.copyCodeBlock.label":"复制","interactive.insertCodeBlock.label":"在光标处插入","interactive.insertIntoNewFile.label":"插入到新文件中","interactive.nextCodeBlock.label":"下一个代码块","interactive.previousCodeBlock.label":"上一个代码块","interactive.runInTerminal.label":"插入到终端中"},"vs/workbench/contrib/chat/browser/actions/chatCopyActions":{"interactive.copyAll.label":"全部复制","interactive.copyItem.label":"复制"},"vs/workbench/contrib/chat/browser/actions/chatExecuteActions":{"actions.chat.submitSecondaryAgent":"提交到辅助代理","chat.newChat.label":"发送到新聊天","interactive.cancel.label":"取消","interactive.submit.label":"发送"},"vs/workbench/contrib/chat/browser/actions/chatFileTreeActions":{"interactive.nextFileTree.label":"下一文件树","interactive.previousFileTree.label":"上一文件树"},"vs/workbench/contrib/chat/browser/actions/chatImportExport":{"chat.export.label":"导出聊天...","chat.file.label":"聊天会话","chat.import.label":"导入聊天..."},"vs/workbench/contrib/chat/browser/actions/chatMoveActions":{"chat.openInEditor.label":"在编辑器中打开聊天","chat.openInNewWindow.label":"在新窗口中打开聊天","interactiveSession.openInSidebar.label":"在侧边栏中打开聊天"},"vs/workbench/contrib/chat/browser/actions/chatQuickInputActions":{"chat.closeQuickChat.label":"关闭快速聊天","chat.launchInlineChat.label":"启动内联聊天","chat.openInChatView.label":"在聊天视图中打开","interactiveSession.open":"打开快速聊天",quickChat:"快速聊天","toggle.desc":"切换快速聊天","toggle.isPartialQuery":"查询是否为部分查询; 它将等待更多用户输入","toggle.query":"用于打开快速聊天的查询"},"vs/workbench/contrib/chat/browser/actions/chatTitleActions":{"chat.remove.label":"移除请求和响应","chat.rerun.label":"重新运行请求","chat.rerunWithoutCommandDetection.label":"重新运行但不检测命令","interactive.helpful.label":"有用","interactive.insertIntoNotebook.label":"插入笔记本","interactive.reportIssueForBug.label":"报告问题","interactive.unhelpful.label":"无用",reunmenu:"重新运行..."},"vs/workbench/contrib/chat/browser/chat":{generating:"正在生成"},"vs/workbench/contrib/chat/browser/chat.contribution":{chat:"聊天","chat.experimental.implicitContext":"控制是否显示复选框以允许用户确定聊天参与者提示中包含哪些隐式上下文。",clear:"启动新聊天",file:"选择工作区中的文件","interactiveSession.editor.fontFamily":"控制聊天代码块中的字体系列。","interactiveSession.editor.fontSize":"控制聊天代码块中的字号(以像素为单位)。","interactiveSession.editor.fontWeight":"控制聊天代码块中的字体粗细。","interactiveSession.editor.lineHeight":"聊天代码块中的行高(以像素为单位)。使用 0 可根据字号计算行高。","interactiveSession.editor.wordWrap":"控制行是否应整合在聊天代码块中。",interactiveSessionConfigurationTitle:"聊天"},"vs/workbench/contrib/chat/browser/chatAccessibilityProvider":{chat:"聊天",multiCodeBlock:"{0} {1} 个代码块",multiCodeBlockHint:"{0} {1} 个代码块: {2}",multiFileTreeHint:"{0} 个文件树",noCodeBlocks:"{0} {1}",noCodeBlocksHint:"{0} {1} {2}",singleCodeBlock:"{0} 1 个代码块: {1}",singleCodeBlockHint:"{0} 1 代码块: {1} {2}",singleFileTreeHint:"1 文件树"},"vs/workbench/contrib/chat/browser/chatAgentHover":{marketplaceLabel:"在市场中查看"},"vs/workbench/contrib/chat/browser/chatEditorInput":{chatEditorLabelIcon:"聊天编辑器标签的图标。",chatEditorName:"聊天"},"vs/workbench/contrib/chat/browser/chatFollowups":{followUpAriaLabel:"跟进问题:{0}"},"vs/workbench/contrib/chat/browser/chatInputPart":{"actions.chat.accessibiltyHelp":"聊天输入,键入内容进行提问或者键入 / 来查找主题,按 Enter 可发送请求。使用 {0} 查看聊天辅助功能帮助。","chat.submitToSecondaryAgent":"发送到 @{0}",chatInput:"聊天输入","chatInput.accessibilityHelpNoKb":"聊天输入,在此处键入代码,然后按 Enter 运行。有关详细信息,请使用“聊天辅助功能帮助”命令。","notebook.moreExecuteActionsLabel":"更多...",use:"使用"},"vs/workbench/contrib/chat/browser/chatListRenderer":{commandButtonDisabled:"在还原的聊天中无法使用按钮",editsSummary:"已进行更改。",editsSummary1:"正在更改...",treeAriaLabel:"文件树",usedAgent:"已使用 {0}",usedReferences:"已使用的引用",usedReferencesCollapsed:"{0},已折叠",usedReferencesExpanded:"{0},已展开",usedReferencesPlural:"已使用 {0} 引用",usedReferencesSingular:"已使用 {0} 引用",usingAgent:"使用 {0}"},"vs/workbench/contrib/chat/browser/chatParticipantContributions":{"chat.viewContainer.label":"聊天",chatCommand:"在 UI 中引用此命令时使用的段名称,例如 `fix` 或 * `explain` (用于解决问题或解释代码的命令)。名称在此参与者提供的命令中应是唯一的。",chatCommandDescription:"此命令的说明。",chatCommandSampleRequest:"当用户在 `/help` 中单击此命令时,此文本将提交给此参与者。",chatCommandSticky:"调用命令是否将聊天置于持久模式,其中该命令会自动添加到下一条消息的聊天输入中。",chatCommandWhen:"启用命令时必须为 true 的条件。",chatCommandsDescription:"可用于此聊天参与者的命令,用户可使用 `/` 进行调用。",chatLocationsDescription:"此聊天参与者可用的位置。",chatParticipantDescription:"此聊天参与者的说明,显示在 UI 中。",chatParticipantId:"此聊天参与者的唯一 ID。",chatParticipantIsDefaultDescription:"仅允许用于具有 `defaultChatParticipant` 建议的扩展。****",chatParticipantName:'此聊天参与者面向用户的显示名称。用户将使用具有此名称的 "@" 调用参与者。',defaultImplicitVariables:"仅允许用于具有 `chatParticipantAdditions` 建议的扩展。****默认调用的变量的名称","vscode.extension.contributes.chatParticipant":"提供聊天参与者"},"vs/workbench/contrib/chat/browser/codeBlockPart":{"chat.codeBlock.toolbar":"代码块工具栏","chat.codeBlock.toolbarVerbose":"可通过选项卡访问的代码块的工具栏","chat.codeBlockHelp":"代码块","chat.codeBlockLabel":"代码块 {0}","chat.compareCodeBlockLabel":"代码编辑","chat.edits.1":"在 [[{0}]] 中进行了 1 次更改","chat.edits.N":"在 [[{1}]] 中进行了 {0} 更改","interactive.compare.apply.confirm":"已修改原始文件。","interactive.compare.apply.confirm.detail":"是否仍要应用更改?",modified:"已修改",original:"原始",vulnerabilitiesPlural:"{0} 个漏洞",vulnerabilitiesSingular:"{0} 个漏洞"},"vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables":{allFiles:"所有文件",allFilesDescription:"在工作区中搜索相关文件,并提供其中的上下文"},"vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib":{pickFileLabel:"选择文件"},"vs/workbench/contrib/chat/common/chatColors":{"chat.avatarBackground":"聊天头像的背景色。","chat.avatarForeground":"聊天头像的前景色。","chat.requestBackground":"聊天请求的背景色。","chat.requestBorder":"聊天请求的边框颜色。","chat.slashCommandBackground":"聊天斜线命令的背景色。","chat.slashCommandForeground":"聊天斜线命令的前景色。"},"vs/workbench/contrib/chat/common/chatContextKeys":{chatEditApplied:"应用聊天文本编辑后为 True。",chatIsEnabled:"如果由于注册了默认聊天参与者而启用聊天,则为 True。",chatRequest:"聊天项是一个请求",chatResponse:"聊天项是一个响应。",chatResponseFiltered:"服务器筛选掉聊天响应时为 True。",chatResponseSupportsIssueReporting:"如果当前聊天响应支持问题报告,则为 True。",chatSessionResponseDetectedAgentOrCommand:"当自动检测到代理或命令时",inChat:"当焦点位于聊天小组件中时为 true,否则为 false。",inInteractiveInput:"当焦点位于聊天输入中时为 true,否则为 false。",interactiveInputHasFocus:"如果聊天输入具有焦点,则为 True。",interactiveInputHasText:"如果聊天输入包含文本,则为 True。",interactiveSessionRequestInProgress:"当前请求仍在进行时为 True。",interactiveSessionResponseVote:'对响应投赞成票后,其设置为 "up"。投反对票时,设置为 "down"。否则为空字符串。'},"vs/workbench/contrib/chat/common/chatServiceImpl":{"action.showExtension":"显示扩展",chatFailErrorMessage:"无法加载 Chat。请确保 GitHub Copilot Chat 扩展是最新版本。",emptyResponse:"提供程序返回了 null 响应"},"vs/workbench/contrib/chat/common/languageModelStats":{"Language Models":"语言模型",languageModels:"此扩展的语言模型使用情况统计信息。"},"vs/workbench/contrib/chat/electron-sandbox/actions/voiceChatActions":{confirmInstallDetail:"麦克风支持需要此扩展。",inlineVoiceChatInProgress:"麦克风中的语音录制正在进行内联聊天时为 True。","keywordActivation.status.active":"正在侦听“Hey Code”...","keywordActivation.status.inactive":"正在等待语音聊天结束...","keywordActivation.status.name":"语音关键字激活",listening:"我正在收听",quickVoiceChatInProgress:"麦克风中的语音录制正在进行快速聊天时为 True。",terminalVoiceChatInProgress:"如果麦克风中的语音录制正在进行终端聊天,则为 True。","voice.keywordActivation":"控制是否识别关键字短语“Hey Code”以启动语音聊天会话。启用此项将开始使用麦克风录制,但音频在本地处理,不会发送到服务器。","voice.keywordActivation.chatInContext":"已启用关键字激活并侦听“Hey Code”以根据键盘焦点,在活动编辑器或视图中启动语音聊天会话。","voice.keywordActivation.chatInView":"已启用关键字激活并侦听“Hey Code”以在聊天视图中启动语音聊天会话。","voice.keywordActivation.inlineChat":"已启用关键字激活并侦听“Hey Code”以在活动编辑器中启动语音聊天会话(如果可能)。","voice.keywordActivation.off":"已禁用关键字激活。","voice.keywordActivation.quickChat":"已启用关键字激活并侦听“Hey Code”以在快速聊天中启动语音聊天会话。",voiceChatGettingReady:"准备从麦克风接收语音输入进行语音聊天时为 True。",voiceChatInEditorInProgress:"当聊天编辑器中正在进行麦克风语音录制时,为 True。",voiceChatInProgress:"麦克风中的语音录制正在进行语音聊天时为 True。",voiceChatInViewInProgress:"当聊天视图中正在进行麦克风语音录制时,为 True。","workbench.action.chat.holdToVoiceChatInChatView.label":"在视图中按住以进行语音聊天","workbench.action.chat.inlineVoiceChat":"内联语音聊天","workbench.action.chat.quickVoiceChat.label":"快速语音聊天","workbench.action.chat.startVoiceChat.label":"开始语音聊天","workbench.action.chat.stopListening.label":"停止收听","workbench.action.chat.stopListeningAndSubmit.label":"停止收听并提交","workbench.action.chat.voiceChatInView.label":"视图中的语音聊天"},"vs/workbench/contrib/codeActions/browser/codeActionsContribution":{alwaysSave:"触发由窗口或焦点更改触发的显式保存和自动保存的代码操作。","codeActionsOnSave.fixAll":"控制是否应在文件保存时运行自动修复操作。","codeActionsOnSave.generic":'控制是否应在文件保存时运行"{0}"操作。',"editor.codeActionsOnSave":'保存时为编辑器运行代码操作。必须指定代码操作,并且编辑器不能关闭。示例:“"source.organizeImports": "explicit"”',explicitSave:"仅在显式保存时触发代码操作",explicitSaveBoolean:"仅在显式保存时触发代码操作。此值将被弃用,取而代之将使用“显式”。",neverSave:"保存时从不触发代码操作",neverSaveBoolean:"从不在保存时触发代码操作。此值将被弃用,取而代之将使用“从不”。"},"vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint":{"codeActions.description":"说明","codeActions.kind":"种类","codeActions.languages":"语言","codeActions.title":"标题",codeactions:"代码操作","contributes.codeActions":"配置资源要使用的编辑器。","contributes.codeActions.description":"代码操作的说明。","contributes.codeActions.kind":'贡献代码操作的"代码操作种类"。',"contributes.codeActions.languages":"启用代码操作的语言模式。","contributes.codeActions.title":"UI 中使用的代码操作的标签。"},"vs/workbench/contrib/codeActions/common/documentationExtensionPoint":{"contributes.documentation":"贡献的文档。","contributes.documentation.refactoring":"为重构提供了文档。","contributes.documentation.refactoring.command":"命令已执行。","contributes.documentation.refactoring.title":"UI 中使用的文档的标签。","contributes.documentation.refactoring.when":"当子句。","contributes.documentation.refactorings":"为重构提供了文档。"},"vs/workbench/contrib/codeEditor/browser/accessibility/accessibility":{toggleScreenReaderMode:"切换屏幕阅读器辅助功能模式",toggleScreenReaderModeDescription:"切换优化模式以使用屏幕阅读器、盲文设备和其他辅助技术。"},"vs/workbench/contrib/codeEditor/browser/dictation/editorDictation":{startDictation:"在编辑器中启动听写",stopDictation:"在编辑器中停止听写",stopDictationShort1:"停止听写({0})",stopDictationShort2:"停止听写",voiceCategory:"语音"},"vs/workbench/contrib/codeEditor/browser/diffEditorHelper":{hintTimeout:"差异算法已提前停止(在 {0} ms 之后)",hintWhitespace:"显示空白差异",msg1:"在一个差异编辑器的窗格中。",msg2:"在针对屏幕阅读器优化的差异审阅模式下查看下一个({0})或上一个({1})差异。",msg3:"运行命令差异编辑器: 切换侧面({0})可在原始编辑器和修改后的编辑器之间切换。",msg4:"若要控制应播放哪些辅助功能信号,可以配置以下设置: {0}。",msg5:"accessibility.verbosity.diffEditorActive 设置控制在差异编辑器成为活动编辑器时是否会发布差异编辑器公告。",removeTimeout:"删除限制",switchSidesNoKb:"运行 Diff Editor: Switch Side 命令在原始编辑器和修改的编辑器之间切换。目前,无法通过键绑定触发此命令。"},"vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint":{defaultHintAriaLabel:"执行 {0} 以选择语言、执行 {1} 以填充模板,或执行 {2} 以打开其他编辑器并开始使用。开始键入以关闭。",disableHint:" 在设置中切换 {0} 以禁用此提示。",emptyHintText:"按 {0} 让 {1} 执行某些操作。 ",emptyHintTextDismiss:"开始键入以关闭。",inlineChatHint:"[[让 {0} 执行某项操作]]或开始键入以关闭。",message:"[[选择语言]]或[[填充模版]]或[[打开其他编辑器]]以开始使用。\r\n开始键入以关闭或[[不再显示]]此信息。"},"vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget":{ariaSearchNoInput:"输入搜索输入",ariaSearchNoResult:"为“{1}”找到 {0}",ariaSearchNoResultEmpty:"已找到 {0}",ariaSearchNoResultWithLineNumNoCurrentMatch:"为“{1}”找到 {0}","label.closeButton":"关闭","label.find":"查找","label.nextMatchButton":"下一个匹配项","label.previousMatchButton":"上一个匹配项","placeholder.find":"查找","simpleFindWidget.sashBorder":"窗体边框颜色。"},"vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens":{inspectEditorTokens:"开发人员: 检查编辑器标记和作用域","inspectTMScopesWidget.loading":"正在加载..."},"vs/workbench/contrib/codeEditor/browser/inspectKeybindings":{"workbench.action.inspectKeyMap":"检查按键映射","workbench.action.inspectKeyMapJSON":"检查按键映射(JSON)"},"vs/workbench/contrib/codeEditor/browser/largeFileOptimizations":{largeFile:"{0}: 为了减少内存使用量并避免冻结或崩溃,已为此大型文件禁用标记化、换行、折叠、编码、突出显示词和粘滞滚动。",removeOptimizations:"强制启用功能",reopenFilePrompt:"请重新打开文件以使此设置生效。"},"vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline":{document:"文档符号"},"vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree":{"1.problem":"此元素存在 1 个问题","N.problem":"此元素存在 {0} 个问题","deep.problem":"包含存在问题的元素","title.template":"{0} ({1})"},"vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess":{gotoLine:"转到行/列...",gotoLineQuickAccess:"转到行/列",gotoLineQuickAccessPlaceholder:"键入要转到的行号和可选列(例如,42:5表示第 42 行和第 5 列)。"},"vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess":{empty:"无匹配项",gotoSymbol:"转到编辑器中的符号...",gotoSymbolByCategoryQuickAccess:"按类别转到编辑器中的符号",gotoSymbolQuickAccess:"转到编辑器中的符号",gotoSymbolQuickAccessPlaceholder:"键入要转到的符号的名称。",miGotoSymbolInEditor:"转到编辑器中的符号(&&S)…"},"vs/workbench/contrib/codeEditor/browser/saveParticipants":{"codeAction.apply":"正在应用代码操作“{0}”。",codeaction:"快速修复","codeaction.get2":'从 "{0}" ([configure]({1}))中获取代码操作。',formatting2:'正在运行 "{0}" 格式化程序([configure]({1}))。'},"vs/workbench/contrib/codeEditor/browser/toggleColumnSelection":{miColumnSelection:"列选择模式(&&S)",toggleColumnSelection:"切换列选择模式"},"vs/workbench/contrib/codeEditor/browser/toggleMinimap":{miMinimap:"缩略图(&&M)",toggleMinimap:"切换到迷你地图"},"vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier":{miMultiCursorAlt:"切换为“Alt+单击”进行多光标功能",miMultiCursorCmd:"切换为“Cmd+单击”进行多光标功能",miMultiCursorCtrl:"切换为“Ctrl+单击”进行多光标功能",toggleLocation:"切换多行修改键"},"vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter":{miToggleRenderControlCharacters:"显示控制字符(&&C)",toggleRenderControlCharacters:"切换控制字符"},"vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace":{miToggleRenderWhitespace:"显示空格(&&R)",toggleRenderWhitespace:"切换呈现空格"},"vs/workbench/contrib/codeEditor/browser/toggleWordWrap":{editorWordWrap:"编辑器当前是否正在使用自动换行。",miToggleWordWrap:"自动换行(&&W)","toggle.wordwrap":"查看: 切换自动换行",unwrapMinified:"在此文件禁用折行",wrapMinified:"在此文件启用折行"},"vs/workbench/contrib/codeEditor/common/languageConfigurationExtensionPoint":{formatError:"{0}: 格式无效,应为 JSON 对象。",parseErrors:"错误分析 {0}: {1}","schema.autoCloseBefore":'在自动闭合设置为 "languageDefined" 时,定义使括号或引号自动闭合的光标后面的字符。通常是不会成为表达式开头的一组字符。',"schema.autoClosingPairs":"定义括号对。当输入左方括号时,将自动插入右方括号。","schema.autoClosingPairs.notIn":"定义禁用了自动配对的作用域列表。","schema.blockComment.begin":"作为块注释开头的字符序列。","schema.blockComment.end":"作为块注释结尾的字符序列。","schema.blockComments":"定义块注释的标记方式。","schema.brackets":"定义增加或减少缩进的括号符号。当方括号对着色已启用且未定义{0}时,这还将定义按其嵌套级别着色的括号对。","schema.closeBracket":"右方括号字符或字符串序列。","schema.colorizedBracketPairs":"定义在启用括号对着色时由其嵌套级别着色的括号对。此处包含的任何不包含在{0}中的括号都将自动包含在{0}中。","schema.comments":"定义注释符号","schema.folding":"此语言的折叠设置。","schema.folding.markers":'语言特定的折叠标记。例如,"#region" 与 "#endregion"。开始与结束标记的正则表达式需设计得效率高,因其将对每一行的内容进行测试。',"schema.folding.markers.end":'结束标记的正则表达式模式。其应以 "^" 开始。',"schema.folding.markers.start":'开始标记的正则表达式模式。其应以 "^" 开始。',"schema.folding.offSide":"若一种语言使用缩进表示其代码块,它将遵循越位规则 (off-side rule)。若设置此项,空白行将属于其之后的代码块。","schema.indentationRules":"语言的缩进设置。","schema.indentationRules.decreaseIndentPattern":"如果某行文本匹配此模式,则其后所有行都应被取消缩进一次 (直到匹配其他规则)。","schema.indentationRules.decreaseIndentPattern.errorMessage":"必须匹配模式“/^([gimuy]+)$/”。","schema.indentationRules.decreaseIndentPattern.flags":"decreaseIndentPattern 的正则表达式标志。","schema.indentationRules.decreaseIndentPattern.pattern":"decreaseIndentPattern 的正则表达式模式。","schema.indentationRules.increaseIndentPattern":"如果一行文本匹配此模式,则之后所有内容都应被缩进一次(直到匹配其他规则)。","schema.indentationRules.increaseIndentPattern.errorMessage":"必须匹配模式“/^([gimuy]+)$/”。","schema.indentationRules.increaseIndentPattern.flags":"increaseIndentPattern 的正则表达式标志。","schema.indentationRules.increaseIndentPattern.pattern":"increaseIndentPattern 的正则表达式模式。","schema.indentationRules.indentNextLinePattern":"如果某一行匹配此模式,那么仅此行之后的**下一行**应缩进一次。","schema.indentationRules.indentNextLinePattern.errorMessage":"必须匹配模式“/^([gimuy]+)$/”。","schema.indentationRules.indentNextLinePattern.flags":"indentNextLinePattern 的正则表达式标志。","schema.indentationRules.indentNextLinePattern.pattern":"indentNextLinePattern 的正则表达式模式。","schema.indentationRules.unIndentedLinePattern":"如果某一行匹配此模式,那么不应更改此行的缩进,且不应针对其他规则对其进行计算。","schema.indentationRules.unIndentedLinePattern.errorMessage":"必须匹配模式“/^([gimuy]+)$/”。","schema.indentationRules.unIndentedLinePattern.flags":"unIndentedLinePattern 的正则表达式标志。","schema.indentationRules.unIndentedLinePattern.pattern":"unIndentedLinePattern 的正则表达式模式。","schema.lineComment":"作为行注释开头的字符序列。","schema.onEnterRules":"按 Enter 时要评估的语言规则。","schema.onEnterRules.action":"要执行的操作。","schema.onEnterRules.action.appendText":"描述要追加到新行后和缩进后的文本。","schema.onEnterRules.action.indent":"描述如何处理缩进","schema.onEnterRules.action.indent.indent":"(相对于上一行的缩进)插入一次新行和缩进。","schema.onEnterRules.action.indent.indentOutdent":"插入两个新行: \r\n - 第一行缩进并将包含游标\r\n - 第二行在同一缩进级别","schema.onEnterRules.action.indent.none":"插入新行并复制上一行的缩进。","schema.onEnterRules.action.indent.outdent":"(相对于上一行的缩进)插入一次新行和凸排。","schema.onEnterRules.action.removeText":"描述要从新行的缩进中移除的字符数。","schema.onEnterRules.afterText":"只有游标后的文本匹配此正则表达式时才会执行此规则。","schema.onEnterRules.afterText.errorMessage":"必须匹配模式“/^([gimuy]+)$/”。","schema.onEnterRules.afterText.flags":"afterText 的正则表达式标志。","schema.onEnterRules.afterText.pattern":"afterText 的正则表达式模式。","schema.onEnterRules.beforeText":"只有游标前的文本匹配此正则表达式时才会执行此规则。","schema.onEnterRules.beforeText.errorMessage":"必须匹配模式“/^([gimuy]+)$/”。","schema.onEnterRules.beforeText.flags":"beforeText 的正则表达式标志。","schema.onEnterRules.beforeText.pattern":"beforeText 的正则表达式模式。","schema.onEnterRules.previousLineText":"只有该行上方的文本匹配此正则表达式时才会执行此规则。","schema.onEnterRules.previousLineText.errorMessage":"必须匹配模式“/^([gimuy]+)$/”。","schema.onEnterRules.previousLineText.flags":"previousLineText 的正则表达式标志。","schema.onEnterRules.previousLineText.pattern":"previousLineText 的正则表达式模式。","schema.openBracket":"左方括号字符或字符串序列。","schema.surroundingPairs":"定义可用于包围所选字符串的括号对。","schema.wordPattern":"定义一下在编程语言里什么东西会被当做是一个单词。","schema.wordPattern.flags":"用于匹配文本的正则表达式标志。","schema.wordPattern.flags.errorMessage":"必须匹配模式“/^([gimuy]+)$/”。","schema.wordPattern.pattern":"用于匹配文本的正则表达式模式。"},"vs/workbench/contrib/codeEditor/electron-sandbox/selectionClipboard":{"actions.pasteSelectionClipboard":"粘贴选择剪贴板"},"vs/workbench/contrib/codeEditor/electron-sandbox/startDebugTextMate":{startDebugTextMate:"启动 TextMate 语法语法日志记录"},"vs/workbench/contrib/commands/common/commands.contribution":{runCommands:"运行命令","runCommands.commands":"要运行的命令","runCommands.description":"运行多个命令","runCommands.invalidArgs":'"runCommands" 收到类型错误的参数。请查看传递给该命令的参数。',"runCommands.noCommandsToRun":'"runCommands" 尚未收到要运行的命令。忘记在 "runCommands" 参数中传递命令了吗?'},"vs/workbench/contrib/comments/browser/commentColors":{commentReplyInputBackground:"批注回复输入框的背景色。",commentThreadActiveRangeBackground:"当前选定或悬停注释范围的背景色。",commentThreadRangeBackground:"注释范围的背景色。",resolvedCommentBorder:"已解析评论的边框和箭头颜色。",resolvedCommentIcon:"解析批注的图标颜色。",unresolvedCommentBorder:"未解析评论的边框和箭头颜色。",unresolvedCommentIcon:"未解析批注的图标颜色。"},"vs/workbench/contrib/comments/browser/commentGlyphWidget":{editorGutterCommentGlyphForeground:"编辑器装订线中评论字形的装饰颜色。",editorGutterCommentRangeForeground:"用于标注范围的编辑器装订线装饰颜色。此颜色应不透明。",editorGutterCommentUnresolvedGlyphForeground:"编辑器装订线修饰颜色,用于注释未解析注释线程的字形。","editorOverviewRuler.commentForeground":"解析批注的编辑器概述标尺修饰颜色。此颜色应为不透明。","editorOverviewRuler.commentUnresolvedForeground":"编辑器概述未解析注释的标尺修饰颜色。此颜色应为不透明。"},"vs/workbench/contrib/comments/browser/commentNode":{commentAddReactionDefaultError:"未能删除评论回应",commentAddReactionError:"未能删除评论回应: {0}。",commentDeleteReactionDefaultError:"未能删除评论回应",commentDeleteReactionError:"未能删除评论回应: {0}。",commentToggleReaction:"切换反应",commentToggleReactionDefaultError:"切换注释反应失败",commentToggleReactionError:"切换注释反应失败: {0}。"},"vs/workbench/contrib/comments/browser/commentReply":{newComment:"键入新注释",reply:"回复..."},"vs/workbench/contrib/comments/browser/comments.contribution":{collapseAll:"全部折叠",collapseOnResolve:"控制解析线程时注释线程是否应折叠。","comments.maxHeight":"控制注释小组件是滚动还是展开。","comments.openPanel.deprecated":"此设置已弃用,取而代之的是 `comments.openView`。","comments.openView":"控制评论视图应何时打开。","comments.openView.file":"批注视图将在具有注释的文件处于活动状态时打开。","comments.openView.firstFile":"如果在此会话期间尚未打开注释视图,则它将在带注释文件处于活动状态的会话期间首次打开。","comments.openView.firstFileUnresolved":"如果在此会话期间尚未打开注释视图,并且注释未解析,则会话中第一次打开包含注释的文件处于活动状态。","comments.openView.never":"注释视图永远不会打开。","comments.visible":"控制具有注释范围和注释的编辑器中注释栏和注释线程的可见性。注释仍可通过“注释”视图访问,并会导致以运行命令 “Comments: Toggle Editor Commenting” 切换注释的相同方式切换打开注释。",commentsConfigurationTitle:"评论",expandAll:"全部展开",openComments:"控制评论面板应何时打开。",reply:"回复",totalUnresolvedComments:"{0} 未解析的注释",useRelativeTime:'确定是否在注释时间戳中使用相对时间,(例如"1 天前")。'},"vs/workbench/contrib/comments/browser/commentsAccessibility":{addComment:"- 添加评论 ({0})",addCommentNoKb:"- 对当前所选内容添加注释,当前无法通过键绑定触发。",commentCommands:"一些有用的注释命令包括:",escape:"- 消除注释(Escape)",intro:"编辑器包含可批注的范围。一些有用的命令包括:",introWidget:"此小组件包含一个文本区域,用于撰写新注释和操作,一旦启用了选项卡移动焦点模式,就可以使用制表符键进行操作({0})。",introWidgetNoKb:"此小组件包含一个文本区域,用于撰写新注释和操作,该文本区域可在选项卡移动焦点模式后使用“切换制表符键移动焦点”命令启用,该区域当前无法通过键绑定触发。",next:"- 转到下一个注释范围({0})",nextCommentThreadKb:"- 转到下一个注释会话({0})",nextCommentThreadNoKb:"- 转到下一个注释会话,当前无法通过键绑定触发。",nextNoKb:"- 转到下一注释范围,当前无法通过键绑定触发该范围。",previous:"- 转到上一个注释范围({0})",previousCommentThreadKb:"- 转到上一个注释会话({0})",previousCommentThreadNoKb:"- 转到上一个注释会话,当前无法通过键绑定触发。",previousNoKb:"- 转到上一个注释范围,当前无法通过键绑定触发。",submitComment:"- 提交评论 ({0})",submitCommentNoKb:"- 提交注释,可通过选项卡键访问,因为它当前无法通过键绑定触发。"},"vs/workbench/contrib/comments/browser/commentsController":{commentRange:"行 {0}",commentRangeStart:"第 {0} 到 {1} 行",hasCommentRanges:"编辑器具有注释范围。",hasCommentRangesKb:"编辑器有注释范围,有关详细信息,请运行“打开辅助功能帮助”({0}) 命令。",hasCommentRangesNoKb:"编辑器具有注释范围,有关详细信息,请运行当前无法通过键绑定触发的“打开辅助功能帮助”命令。",pickCommentService:'选择 "注释提供程序"'},"vs/workbench/contrib/comments/browser/commentsEditorContribution":{"comments.addCommand":"添加对当前所选内容的注释","comments.addCommand.error":"光标必须在注释范围内才能添加注释","comments.collapseAll":"折叠所有注释","comments.expandAll":"展开所有注释","comments.expandUnresolved":"展开未解决注释","comments.nextCommentingRange":"转到下一注释范围","comments.previousCommentingRange":"转到上一个注释范围","comments.toggleCommenting":"切换编辑器注释"},"vs/workbench/contrib/comments/browser/commentsModel":{noComments:"此工作区中尚无注释。"},"vs/workbench/contrib/comments/browser/commentsTreeViewer":{commentCount:"1 条注释",commentLine:"[Ln {0}]",commentRange:"[Ln {0}-{1}]","comments.view.title":"注释",commentsCountReplies:"{0} 条回复",commentsCountReply:"1 个答复",image:"图片",imageWithLabel:"图片: {0}",lastReplyFrom:"来自 {0} 的最新回复",outdated:"已过时"},"vs/workbench/contrib/comments/browser/commentsView":{acessibleViewHint:"在无障碍视图中检查此项({0})。\r\n",acessibleViewHintNoKbOpen:"通过命令“打开无障碍视图”在无障碍视图中检查此项,该命令当前无法通过键绑定触发。\r\n","comments.filter.ariaLabel":"筛选注释","comments.filter.placeholder":"筛选器(例如文本、作者)",replyCount:" {0} 条回复,",resourceWithCommentLabel:"{3} 中第 {1} 行第 {2} 列的 {0},{4} 注释: {5}",resourceWithCommentLabelFile:"{1} 中的 {0},{2} 注释: {3}",resourceWithCommentLabelFileOutdated:"已从 {1},{2} 注释: {3} 中的 {0} 起过时",resourceWithCommentLabelOutdated:"已从 {3},{4} 注释: {5} 的行 {1} 列 {2} 处的 {0} 起过时",resourceWithCommentThreadsLabel:"{0} 中的注释,完整路径: {1}",resourceWithRepliesLabel:"{0} {1}",rootCommentsLabel:"当前工作区的注释","showing filtered results":"正在显示第 {0} 页(共 {1} 页)"},"vs/workbench/contrib/comments/browser/commentsViewActions":{comments:"注释",commentsClearFilterText:"清除筛选器文本",focusCommentsFilter:"焦点注释筛选器",focusCommentsList:"焦点注释视图",resolved:"显示已解决","toggle resolved":"显示已解决","toggle unresolved":"显示未解决",unresolved:"显示未解决"},"vs/workbench/contrib/comments/browser/commentThreadBody":{commentThreadAria:"使用 {0} 评论。{1} 评论线程。","commentThreadAria.document":"在整个文档上有 {0} 条注释的注释线程。 {1}。","commentThreadAria.withRange":"通过 {2} 注释行 {1} 上具有 {0} 注释的线程。{3}。"},"vs/workbench/contrib/comments/browser/commentThreadHeader":{collapseIcon:"用于折叠审阅注释的图标。","label.collapse":"折叠",startThread:"开始讨论"},"vs/workbench/contrib/comments/browser/commentThreadWidget":{commentLabel:"注释",commentLabelWithKeybinding:"{0},请使用 ({1}) 获取辅助功能帮助",commentLabelWithKeybindingNoKeybinding:"{0},运行当前无法通过键绑定触发的“打开辅助功能帮助”命令。"},"vs/workbench/contrib/comments/browser/reactionsAction":{"comment.reactionLabelMany":"{0}{1} 个带有 {2} 的回应","comment.reactionLabelNone":"{0}{1} 个回应","comment.reactionLabelOne":"{0}1 个带有 {1} 的回应","comment.reactionLessThanTen":"{0}{1} 回应了 {2}","comment.reactionMoreThanTen":"{0}{1} 和另外 {2} 人回应了 {3}","comment.toggleableReaction":"切换回应,",pickReactions:"选取反应..."},"vs/workbench/contrib/comments/common/commentContextKeys":{comment:"注释的上下文值",commentController:"与注释线程关联的注释控制器 ID",commentFocused:"在注释聚焦时设置",commentIsEmpty:"在注释没有输入时设置",commentThread:"注释线程的上下文值",commentThreadIsEmpty:"在注释线程没有注释时设置",editorHasCommentingRange:"活动编辑器是否具有注释范围",hasCommentingProvider:"打开的工作区是否具有注释或注释范围。",hasCommentingRange:"活动光标处的位置是否具有评论范围"},"vs/workbench/contrib/customEditor/browser/customEditorInput":{editorCannotMove:"无法移动“{0}”: 编辑器包含只能保存在其当前窗口中的更改。",editorUnsupportedInWindow:"无法在此窗口中打开编辑器,它包含只能保存在原始窗口中的修改。",reopenInOriginalWindow:"在原始窗口中打开"},"vs/workbench/contrib/customEditor/common/contributedCustomEditors":{builtinProviderDisplayName:"内置"},"vs/workbench/contrib/customEditor/common/customEditor":{"context.customEditor":"当前处于活动状态的自定义编辑器的 viewType。"},"vs/workbench/contrib/customEditor/common/extensionPoint":{"contributes.customEditors":"提供的自定义编辑器。","contributes.displayName":"自定义编辑器的用户可读名称。当选择要使用的编辑器时,向用户显示此名称。","contributes.priority":'控制在用户打开文件时是否自动启用自定义编辑器。用户可能会使用 "workbench.editorAssociations" 设置覆盖此项。',"contributes.priority.default":"在用户打开资源时自动使用此编辑器,前提是没有为该资源注册其他默认的自定义编辑器。","contributes.priority.option":"在用户打开资源时不会自动使用此编辑器,但用户可使用 `Reopen With` 命令切换到此编辑器。","contributes.selector":"为其启用了自定义编辑器的一组 glob。","contributes.selector.filenamePattern":"为其启用了自定义编辑器的 glob。","contributes.viewType":'自定义编辑器的标识符。它在所有自定义编辑器中都必须是唯一的,因此建议将扩展 ID 作为 "viewType" 的一部分包括在内。在使用 "vscode.registerCustomEditorProvider" 和在 "onCustomEditor:${id}" [激活事件](https://code.visualstudio.com/api/references/activation-events)中注册自定义编辑器时,使用 "viewType"。',customEditors:"自定义编辑器","customEditors filenamePattern":"文件名模式","customEditors priority":"优先级","customEditors view type":"视图类型"},"vs/workbench/contrib/debug/browser/baseDebugView":{"debug.lazyButton.tooltip":"单击以展开"},"vs/workbench/contrib/debug/browser/breakpointEditorContribution":{addBreakpoint:"添加断点",addConditionalBreakpoint:"添加条件断点...",addLogPoint:"添加记录点...",addTriggeredBreakpoint:"添加触发的断点...",breakpoint:"断点",breakpointHasConditionDisabled:"此{0}的{1}将在删除后丢失。请考虑仅启用此{0}。",breakpointHasConditionEnabled:"此{0}的{1}将在删除后丢失。请考虑仅禁用此{0}。",breakpointHelper:"单击以添加断点",condition:"条件","debugIcon.breakpointCurrentStackframeForeground":"当前断点堆栈帧的图标颜色。","debugIcon.breakpointDisabledForeground":"禁用断点的图标颜色。","debugIcon.breakpointForeground":"断点图标颜色。","debugIcon.breakpointStackframeForeground":"所有断点堆栈帧的图标颜色。","debugIcon.breakpointUnverifiedForeground":"未验证断点的图标颜色。",disable:"禁用(&&D)",disableBreakpoint:"禁用{0}",disableBreakpointOnLine:"禁用行断点",disableInlineColumnBreakpoint:"禁用第 {0} 列的内联断点",disableLogPoint:"{0} {1}",editBreakpoint:"编辑 {0}…",editBreakpoints:"编辑断点",editInlineBreakpointOnColumn:"编辑第 {0} 列的内联断点",editLineBreakpoint:"编辑行断点",enable:"启用(&&E)",enableBreakpoint:"启用 {0}",enableBreakpointOnLine:"启用行断点",enableBreakpoints:"启用第 {0} 列的内联断点",enableDisableBreakpoints:"启用/禁用断点",logPoint:"记录点",message:"消息",removeBreakpoint:"删除 {0}",removeBreakpoints:"删除断点",removeInlineBreakpointOnColumn:"删除第 {0} 列的内联断点",removeLineBreakpoint:"删除行断点",removeLogPoint:"移除 {0}(&&R)",runToLine:"运行到行"},"vs/workbench/contrib/debug/browser/breakpointsView":{access:"访问",activateBreakpoints:"切换激活断点",addDataBreakpointOnAddress:"在地址处添加数据断点",addFunctionBreakpoint:"添加函数断点",breakpoint:"断点",breakpointUnsupported:"调试器不支持此类型的断点",breakpoints:"断点",dataBreakPointExpresionAriaLabel:"类型表达式。表达式计算结果为 true 时,数据断点将中断",dataBreakPointHitCountAriaLabel:"类型命中次数。达到命中次数时,数据断点将中断。",dataBreakpoint:"数据断点",dataBreakpointAccessType:"选择要监视的访问类型",dataBreakpointAddrFormat:"地址应为数字范围,格式为“[起始] - [结束]”或“[起始] + [字节]”",dataBreakpointAddrStartEnd:'数字必须是以 "0x" 开头的十进制整数或十六进制值,已获取 {0}',dataBreakpointError:"无法在 {0} 处设置数据断点: {1}",dataBreakpointExpressionPlaceholder:"在表达式结果为 true 时中断",dataBreakpointHitCountPlaceholder:"在到达命中次数时中断",dataBreakpointMemoryRangePlaceholder:"地址(0x1234 - 0x1300)后的绝对范围(0x1234 + 0xff)或字节范围",dataBreakpointMemoryRangePrompt:"输入要中断的内存范围",dataBreakpointUnsupported:"此调试类型不支持数据断点",dataBreakpointsNotSupported:"此调试类型不支持数据断点",disableAllBreakpoints:"禁用所有断点",disabledBreakpoint:"已禁用的断点",disabledLogpoint:"已禁用的记录点",editBreakpoint:"编辑函数条件...",editCondition:"编辑条件…",editDataBreakpointOnAddress:"编辑地址...",editHitCount:"编辑命中次数…",editMode:"编辑模式...",enableAllBreakpoints:"启用所有断点",exceptionBreakpointAriaLabel:"类型异常断点条件",exceptionBreakpointPlaceholder:"在表达式结果为 true 时中断",expression:"条件: {0}",expressionAndHitCount:"条件: {0} | 命中次数: {1}",expressionCondition:"表达式条件: {0}",functionBreakPointExpresionAriaLabel:"类型表达式。表达式计算结果为 true 时,函数断点将中断",functionBreakPointHitCountAriaLabel:"类型命中次数。达到命中次数时,函数断点将中断。",functionBreakPointInputAriaLabel:"键入函数断点。",functionBreakpoint:"函数断点",functionBreakpointExpressionPlaceholder:"在表达式结果为 true 时中断",functionBreakpointHitCountPlaceholder:"在到达命中次数时中断",functionBreakpointPlaceholder:"要断开的函数",functionBreakpointUnsupported:"不受此调试类型支持的函数断点",functionBreakpointsNotSupported:"此调试类型不支持函数断点",hitCount:"命中次数: {0}",instructionBreakpoint:"指令断点",instructionBreakpointAtAddress:"地址 {0} 处的指令断点",instructionBreakpointUnsupported:"不受此调试类型支持的指令断点",logMessage:"日志消息: {0}",miDataBreakpoint:"数据(&&D)断点...",miDisableAllBreakpoints:"禁用所有断点(&&L)",miEnableAllBreakpoints:"启用所有断点(&&E)",miFunctionBreakpoint:"函数断点(&&F)...",miRemoveAllBreakpoints:"删除所有断点(&&A)",read:"读取",reapplyAllBreakpoints:"重新应用所有断点",removeAllBreakpoints:"删除所有断点",removeBreakpoint:"删除断点",selectBreakpointMode:"选择断点模式",triggeredBy:"在断点后命中:{0}",unverifiedBreakpoint:"未验证的断点",unverifiedExceptionBreakpoint:"未验证的异常断点",unverifiedLogpoint:"未验证的记录点",write:"写入"},"vs/workbench/contrib/debug/browser/breakpointWidget":{bpMode:"模式",breakpointType:"断点类型",breakpointWidgetExpressionPlaceholder:'在表达式结果为真时中断。按 "{0}" 键确认,"{1}" 键取消。',breakpointWidgetHitCountPlaceholder:'在满足命中次数条件时中断。按 "{0}" 键确认,"{1}" 键取消。',breakpointWidgetLogMessagePlaceholder:'断点命中时记录的消息。{} 内的表达式将被替换。按 "{0}" 键确认,"{1}" 键取消。',expression:"表达式",hitCount:"命中次数",logMessage:"日志消息",noBpSource:"无法加载源。",noTriggerByBreakpoint:"无",ok:"确定",selectBreakpoint:"选择断点",triggerByLoading:"正在加载...",triggeredBy:"等待断点"},"vs/workbench/contrib/debug/browser/callStackEditorContribution":{focusedStackFrameLineHighlight:"堆栈帧中焦点一行的高亮背景色。",topStackFrameLineHighlight:"堆栈帧中顶部一行的高亮背景色。"},"vs/workbench/contrib/debug/browser/callStackView":{callStackAriaLabel:"调试调用堆栈",collapse:"全部折叠",loadAllStackFrames:"加载多个堆栈帧",paused:"已暂停",pausedOn:"因 {0} 已暂停",restartFrame:"重启框架",running:"正在运行",session:"会话",sessionLabel:"会话 {0} {1}",showMoreAndOrigin:"显示另外 {0} 个: {1}",showMoreStackFrames:"显示另外 {0} 个堆栈帧",showMoreStackFrames2:"显示更多堆栈框架",stackFrameAriaLabel:"堆栈帧 {0},行 {1},{2}",threadAriaLabel:"线程 {0} {1}"},"vs/workbench/contrib/debug/browser/debug.contribution":{SetNextStatement:"设置下一语句",allowBreakpointsEverywhere:"允许在任何文件中设置断点。",always:"始终在状态栏中显示调试",breakWhenValueChanges:"值更改时中断",breakWhenValueIsAccessed:"值访问时中断",breakWhenValueIsRead:"值读取时中断",breakpoints:"断点",callStack:"调用堆栈",cancel:"取消调试。",closeReadonlyTabsOnEnd:"调试会话结束时,与该会话关联的所有只读选项卡都将关闭",copyStackTrace:"复制调用堆栈",copyValue:"复制值","debug.autoExpandLazyVariables":"自动显示调试器延迟解析的变量的值,例如 getter。","debug.confirmOnExit":"如果存在活动调试会话,控制是否确认窗口关闭时间。","debug.confirmOnExit.always":"始终确认是否存在调试会话。","debug.confirmOnExit.never":"从不确认。","debug.console.acceptSuggestionOnEnter":"控制是否应在调试控制台中输入时接受建议。enter 还用于评估调试控制台中键入的任何内容。","debug.console.closeOnEnd":"控制调试控制台是否应在调试会话结束时自动关闭。","debug.console.collapseIdenticalLines":"控制调试控制台是否应折叠相同的行,并显示出现次数和徽章。","debug.console.fontFamily":"控制调试控制台中的字体系列。","debug.console.fontSize":"控制调试控制台中的字号(以像素为单位)。","debug.console.historySuggestions":"控制调试控制台是否应建议以前键入的输入。","debug.console.lineHeight":"设置调试控制台中的行高(以像素为单位)。使用 0 可根据字号计算行高。","debug.console.wordWrap":"控制是否应在调试控制台中换行。","debug.disassemblyView.showSourceCode":"在反汇编视图中显示源代码。","debug.enableStatusBarColor":"调试器处于活动状态时的状态栏颜色。","debug.focusEditorOnBreak":"控制调试器中断时编辑器是否应聚焦。","debug.focusWindowOnBreak":"控制当调试器中断时,工作台窗口是否应获得焦点。","debug.gutterMiddleClickAction.conditionalBreakpoint":"添加条件断点。","debug.gutterMiddleClickAction.logpoint":"添加记录点。","debug.gutterMiddleClickAction.none":"不要执行任何操作。","debug.gutterMiddleClickAction.triggeredBreakpoint":"添加触发的断点。","debug.hideLauncherWhileDebugging":"调试处于活动状态时,在“运行和调试”视图的标题栏中隐藏“启动调试”控件。仅当“{0}”不是“docked”时才相关。","debug.onTaskErrors":"控制在运行预启动任务后遇到错误时应该怎么做。","debug.saveBeforeStart":"控制在启动调试会话前要保存哪些编辑器。","debug.saveBeforeStart.allEditorsInActiveGroup":"在启动调试会话之前,保存活动组中的所有编辑器。","debug.saveBeforeStart.nonUntitledEditorsInActiveGroup":"在启动调试会话之前,保存活动组中的所有编辑器(无标题的编辑器除外)。","debug.saveBeforeStart.none":"在启动调试会话之前,不保存任何编辑器。","debug.terminal.clearBeforeReusing":"在集成或外部终端中启动新的调试会话之前,请清除终端。",debugAnyway:"忽略任务错误并开始调试。",debugCategory:"调试",debugConfigurationTitle:"调试",debugFocusConsole:"聚焦到“调试控制台”视图",debugPanel:"调试控制台","debugToolBar.commandCenter":"“(实验)”在命令中心显示调试工具栏。","debugToolBar.docked":"仅在调试视图中显示调试工具栏。","debugToolBar.floating":"在所有视图中显示调试工具栏。","debugToolBar.hidden":"不显示调试工具栏。",disassembly:"反汇编",editWatchExpression:"编辑表达式",gutterMiddleClickAction:"控制要在使用鼠标中键单击编辑器装订线时执行的操作。",inlineBreakpoint:"内联断点",inlineValues:"当处于调试过程中时,在编辑器中内联显示变量值。","inlineValues.focusNoScroll":"如果语言支持内联值位置,则在调试时在编辑器中内联显示变量值。","inlineValues.off":"在调试时,绝不在编辑器中内联显示变量值。","inlineValues.on":"在调试时,始终在编辑器中内联显示变量值。",jumpToCursor:"跳转到光标",launch:"全局调试启动配置。应当作为跨工作区共享的 'launch.json' 的替代方法。",loadedScripts:"已载入的脚本",mRun:"运行(&&R)",miAddConfiguration:"添加配置(&&D)...",miContinue:"继续(&&C)",miInlineBreakpoint:"内联断点(&&O)",miInstallAdditionalDebuggers:"安装附加调试器(&&I)...",miNewBreakpoint:"新建断点(&&N)","miRestart Debugging":"重启调试(&&R)",miRun:"以非调试模式运行(&&W)",miStartDebugging:"启动调试(&&S)",miStepInto:"单步执行(&&I)",miStepOut:"单步停止(&&U)",miStepOver:"逐过程(&&O)",miStopDebugging:"停止调试(&&S)",miToggleDebugConsole:"调试控制台(&&B)",miViewRun:"运行(&&R)",never:"从不在状态栏中显示调试",onFirstSessionStart:"仅于第一次启动调试后在状态栏中显示调试",openDebug:"控制何时打开“调试”视图。",openExplorerOnEnd:"在调试会话结束时自动打开资源管理器视图。",prompt:"提示用户。",removeWatchExpression:"删除表达式",restartFrame:"重启框架",run:"运行或调试...","run and debug":"运行和调试",runMenu:"运行",setValue:"设置值",showBreakpointsInOverviewRuler:"控制断点是否应显示在概览标尺中。",showErrors:"显示问题视图且不开始调试。",showInStatusBar:"控制应在何时显示调试状态栏。",showInlineBreakpointCandidates:"控制调试时是否应在编辑器中显示内联断点候选修饰。",showSubSessionsInToolBar:"控制调试子会话是否显示在调试工具栏中。当此设置为 false 时, 子会话上的 stop 命令也将停止父会话。",startDebugPlaceholder:"键入准备运行的启动配置的名称。",startDebuggingHelp:"开始调试",tasksQuickAccessHelp:"显示所有调试控制台",tasksQuickAccessPlaceholder:"键入要打开的调试控制台的名称。",terminateThread:"终止线程",toolBarLocation:"控制调试工具栏的位置。在所有视图中“浮动”、调试视图中的“停靠”、“commandCenter”(需要“{0}”)或“hidden”。",variables:"变量",viewMemory:"查看二进制数据",watch:"监视"},"vs/workbench/contrib/debug/browser/debugActionViewItems":{addConfigTo:"添加配置({0})…",addConfiguration:"添加配置…",debugLaunchConfigurations:"调试启动配置",debugSession:"调试会话",noConfigurations:"没有配置"},"vs/workbench/contrib/debug/browser/debugAdapterManager":{CouldNotFindLanguage:"没有用于调试 {0} 的扩展。我们是否应在市场中找到 {0} 扩展?",debugName:"配置名称;显示在启动配置下拉菜单中。",debugNoType:'不可省略调试器的 "type" 属性,且其类型必须是 "string" 。',debugPostDebugTask:"调试会话结束后运行的任务。",debugPrelaunchTask:"调试会话开始前要运行的任务。",debugServer:"仅用于调试扩展开发: 如果已指定端口,VS 代码会尝试连接到在服务器模式中运行的调试适配器",findExtension:"查找 {0} 扩展(&&F)",installExt:"安装扩展...",installLanguage:"安装 {0} 的扩展...",selectDebug:"选择调试器",suggestedDebuggers:"建议",suppressMultipleSessionWarning:"在尝试多次启动同一调试配置时禁用该警告。"},"vs/workbench/contrib/debug/browser/debugColors":{"debugIcon.continueForeground":"用于继续的调试工具栏图标。","debugIcon.disconnectForeground":"用于断开连接的调试工具栏图标。","debugIcon.pauseForeground":"用于暂停的调试工具栏图标。","debugIcon.restartForeground":"用于重启的调试工具栏图标。","debugIcon.startForeground":"用于开始调试的调试工具栏图标。","debugIcon.stepBackForeground":"用于后退的调试工具栏图标。","debugIcon.stepIntoForeground":"用于单步执行的调试工具栏图标。","debugIcon.stepOutForeground":"用于单步执行的调试工具栏图标。","debugIcon.stepOverForeground":"用于跳过的调试工具栏图标。","debugIcon.stopForeground":"用于停止的调试工具栏图标。",debugToolBarBackground:"调试工具栏背景颜色。",debugToolBarBorder:"调试工具栏边框颜色。"},"vs/workbench/contrib/debug/browser/debugCommands":{addConfiguration:"添加配置…",addInlineBreakpoint:"添加内联断点",addToWatchExpressions:"添加到监视",callStackBottom:"导航到调用堆栈底部",callStackDown:"向下导航调用堆栈",callStackTop:"导航到调用堆栈顶部",callStackUp:"向上导航调用堆栈",chooseLocation:"选择特定位置",continueDebug:"继续",copyAsExpression:"复制表达式",copyValue:"复制值",debug:"调试",disconnect:"断开连接",disconnectSuspend:"断开连接和暂停","editor.debug.action.stepIntoTargets.none":"没有可用的步骤目标",focusSession:"聚焦到“会话”视图",jumpToCursor:"跳转到光标",nextDebugConsole:"聚焦下一个调试控制台",noExecutableCode:"当前光标位置没有关联的可执行代码。",openLaunchJson:"打开“{0}”",openLoadedScript:"打开已加载脚本...",pauseDebug:"暂停",prevDebugConsole:"聚焦上一个调试控制台",restartDebug:"重启",selectAndStartDebugging:"选择并开始调试",selectDebugConsole:"选择调试控制台",selectDebugSession:"选择调试会话",startDebug:"开始调试",startWithoutDebugging:"开始执行(不调试)",stepIntoDebug:"单步调试",stepIntoTargetDebug:"单步执行目标",stepOutDebug:"单步跳出",stepOverDebug:"逐过程",stop:"停止"},"vs/workbench/contrib/debug/browser/debugConfigurationManager":{"DebugConfig.failed":'无法在 ".vscode" 文件夹({0})内创建 "launch.json" 文件。',editLaunchConfig:"在 launch.json 中编辑调试配置",selectConfiguration:"选择启动配置","user settings":"用户设置",workspace:"工作区"},"vs/workbench/contrib/debug/browser/debugConsoleQuickAccess":{"workbench.action.debug.startDebug":"启动新的调试会话"},"vs/workbench/contrib/debug/browser/debugEditorActions":{EditBreakpointEditorAction:"调试: 编辑断点",addToWatch:"添加到监视",closeExceptionWidget:"关闭异常小组件",conditionalBreakpointEditorAction:"调试: 添加条件断点...","editor.debug.action.stepIntoTargets.notAvailable":"此处不提供步骤目标",evaluateInDebugConsole:"在调试控制台中评估",goToNextBreakpoint:"调试: 转到下一个断点",goToPreviousBreakpoint:"调试: 转到上一个断点",logPointEditorAction:"调试: 添加记录点...",miConditionalBreakpoint:"条件断点(&&C)...",miDisassemblyView:"反汇编视图(&&D)",miEditBreakpoint:"编辑断点(&&E)",miLogPoint:"记录点(&&L)...",miToggleBreakpoint:"切换断点(&&B)",miTriggerByBreakpoint:"触发的断点...",mitogglesource:"&&ToggleSource",openDisassemblyView:"打开反汇编视图",runToCursor:"运行到光标处",showDebugHover:"调试: 显示悬停",stepIntoTargets:"单步执行目标",toggleBreakpointAction:"调试: 切换断点",toggleDisassemblyViewSourceCode:"在反汇编视图中切换源代码",toggleDisassemblyViewSourceCodeDescription:"在反汇编中显示或隐藏源代码",triggerByBreakpointEditorAction:"调试:添加触发的断点..."},"vs/workbench/contrib/debug/browser/debugEditorContribution":{"editor.inlineValuesBackground":"调试内联值背景的颜色。","editor.inlineValuesForeground":"调试内联值文本的颜色。"},"vs/workbench/contrib/debug/browser/debugHover":{quickTip:"按住 {0} 键可切换到编辑器语言悬停",treeAriaLabel:"调试悬停",variableAriaLabel:"{0},值 {1},变量,调试"},"vs/workbench/contrib/debug/browser/debugIcons":{breakpointsActivate:"“断点”视图中“激活”操作的图标。",breakpointsRemoveAll:"“断点”视图中“全部删除”操作的图标。",breakpointsViewIcon:"查看断点视图的图标。",callStackViewIcon:"查看调用堆栈视图的图标。",callstackViewSession:"“调用堆栈”视图中会话图标的图标。",debugBreakpoint:"断点的图标。",debugBreakpointConditional:"条件断点的图标。",debugBreakpointConditionalDisabled:"已禁用的条件断点的图标。",debugBreakpointConditionalUnverified:"未验证的条件断点的图标。",debugBreakpointData:"数据断点的图标。",debugBreakpointDataDisabled:"已禁用的数据断点的图标。",debugBreakpointDataUnverified:"未验证的数据断点的图标。",debugBreakpointDisabled:"已禁用的断点的图标。",debugBreakpointFunction:"函数断点的图标。",debugBreakpointFunctionDisabled:"已禁用的函数断点的图标。",debugBreakpointFunctionUnverified:"未验证的函数断点的图标。",debugBreakpointHint:"在编辑器字形边距中悬停时显示的断点提示的图标。",debugBreakpointLog:"日志断点的图标。",debugBreakpointLogDisabled:"已禁用的日志断点的图标。",debugBreakpointLogUnverified:"未验证的日志断点的图标。",debugBreakpointPendingOnTrigger:"等待另一个断点的断点的图标。",debugBreakpointUnsupported:"不受支持的断点的图标。",debugBreakpointUnverified:"未验证的断点的图标。",debugCollapseAll:"调试视图中“全部折叠”操作的图标。",debugConfigure:"“调试配置”操作的图标。",debugConsole:"调试控制台的“打开”操作的图标。",debugConsoleClearAll:"调试控制台中“全部清除”操作的图标。",debugConsoleEvaluationInput:"调试评估输入标记的图标。",debugConsoleEvaluationPrompt:"调试评估提示的图标。",debugConsoleViewIcon:"查看调试控制台视图的图标。",debugContinue:"“调试继续”操作的图标。",debugDisconnect:"“调试断开”操作的图标。",debugGripper:"调试条控制手柄的图标。",debugInspectMemory:"检查内存操作的图标。",debugPause:"“调试暂停”操作的图标。",debugRemoveConfig:"用于删除调试配置的图标。",debugRestart:"“调试重启”操作的图标。",debugRestartFrame:"“调试重启帧”操作的图标。",debugReverseContinue:"“调试反向继续”操作的图标。",debugRun:"运行或调试操作的图标。",debugStackframe:"编辑器字形边距中显示的堆栈帧的图标。",debugStackframeFocused:"编辑器字形边距中显示的具有焦点的堆栈帧的图标。",debugStart:"“调试启动”操作的图标。",debugStepBack:"“调试单步后退”操作的图标。",debugStepInto:"“调试进入子函数”的图标。",debugStepOut:"“调试跳出子函数”操作的图标。",debugStepOver:"“调试越过子函数”操作的图标。",debugStop:"“调试停止”操作的图标。",loadedScriptsViewIcon:"查看已加载脚本视图的图标。",runViewIcon:"查看运行视图的图标。",variablesViewIcon:"查看变量视图的图标。",watchExpressionRemove:"监视视图中“删除”操作的图标。",watchExpressionsAdd:"监视视图中“添加”操作的图标。",watchExpressionsAddDataBreakpoint:"断点视图中添加数据断点操作的图标。",watchExpressionsAddFuncBreakpoint:"监视视图中“添加函数断点”操作的图标。",watchExpressionsRemoveAll:"监视视图中“全部删除”操作的图标。",watchViewIcon:"查看监视视图的图标。"},"vs/workbench/contrib/debug/browser/debugQuickAccess":{addConfigTo:"添加配置({0})…",addConfiguration:"添加配置…",configure:"配置",contributed:"已提供",customizeLaunchConfig:"配置启动配置",noDebugResults:"没有匹配的启动配置",providerAriaLabel:"{0} 已提供的配置",removeLaunchConfig:"删除启动配置"},"vs/workbench/contrib/debug/browser/debugService":{"1activeSession":"1 个活动会话",breakpointAdded:"已添加断点,行 {0},文件 {1}",breakpointRemoved:"已删除断点,行 {0},文件 {1}",compoundMustHaveConfigurations:'复合项必须拥有 "configurations" 属性集,才能启动多个配置。',configMissing:'"launch.json" 中缺少配置“{0}”。',debugAdapterCrash:"调试适配器进程意外终止 ({0})",debugRequesMissing:"所选的调试配置缺少属性“{0}”。",debugRequestNotSupported:"所选调试配置的属性“{0}”的值“{1}”不受支持。",debugTrust:"调试从你的工作区执行生成任务和程序代码。",debugTypeMissing:'所选的启动配置缺少属性 "type"。',debugTypeNotSupported:"配置的类型“{0}”不受支持。",debuggingPaused:"{0},调试已暂停 {1},{2}: {3}",installAdditionalDebuggers:"安装 {0} 扩展",launchJsonDoesNotExist:'传递的工作区文件夹没有 "launch.json"。',multipleConfigurationNamesInWorkspace:"工作区中存在多个启动配置“{0}”。请使用文件夹名称来限定配置。",multipleSession:"“{0}”已在运行。是否要启动另一个实例?",nActiveSessions:"{0}个活动会话",noConfigurationNameInWorkspace:"在工作区中找不到启动配置“{0}”。",noFolderWithName:"无法在复合项“{2}”中为配置“{1}”找到名为“{0}”的文件夹。",noFolderWorkspaceDebugError:"无法调试活动文件。请确保它已保存且你已为该文件类型安装了调试扩展。",runTrust:"运行会从你的工作区执行生成任务和程序代码。"},"vs/workbench/contrib/debug/browser/debugSession":{debuggingStarted:"已开始调试。",debuggingStartedNoDebug:"已开始运行而不进行调试。",debuggingStopped:"已停止调试。",noDebugAdapter:"没有可用的调试程序,无法发送“{0}”",sessionDoesNotSupporBytesBreakpoints:"会话不支持包含字节的断点",sessionNotReadyForBreakpoints:"会话还没有为断点做好准备"},"vs/workbench/contrib/debug/browser/debugSessionPicker":{"moveFocusedView.selectView":"按名称搜索调试会话","workbench.action.debug.spawnFrom":"已从 {1} 生成会话 {0}","workbench.action.debug.startDebug":"启动新的调试会话"},"vs/workbench/contrib/debug/browser/debugStatus":{debugTarget:"调试: {0}",selectAndStartDebug:"选择并启动调试配置","status.debug":"调试"},"vs/workbench/contrib/debug/browser/debugTaskRunner":{DebugTaskNotFound:"找不到指定的任务。",DebugTaskNotFoundWithTaskId:"找不到任务“{0}”。",abort:"中止",debugAnyway:"仍要调试(&&D)",invalidTaskReference:"无法在其他工作区文件夹的启动配置中引用任务“{0}”。",preLaunchTaskError:"运行 preLaunchTask“{0}”后存在错误。",preLaunchTaskErrors:"运行 preLaunchTask“{0}”后存在错误。",preLaunchTaskExitCode:"preLaunchTask“{0}”已终止,退出代码为 {1}。",preLaunchTaskTerminated:'启动前任务"{0}"终止。',remember:"记住我在用户设置中的选择",rememberTask:"记住我对此任务的选择",showErrors:"显示错误(&&S)",taskNotTracked:"无法跟踪任务“{0}”。请确保已定义了问题匹配程序。",taskNotTrackedWithTaskId:"无法跟踪任务“{0}”。请确保已定义了问题匹配程序。"},"vs/workbench/contrib/debug/browser/debugToolBar":{"notebook.moreRunActionsLabel":"更多...",reverseContinue:"反向",stepBackDebug:"后退"},"vs/workbench/contrib/debug/browser/debugViewlet":{debugPanel:"调试控制台",miOpenConfigurations:"打开配置(&&C)",openLaunchConfigDescription:"打开用于配置程序调试方式的文件",selectWorkspaceFolder:"选择工作区文件夹以在其中创建 launch.json 文件或将其添加到工作区配置文件",startAdditionalSession:"启动其他会话"},"vs/workbench/contrib/debug/browser/disassemblyView":{disassemblyTableColumnLabel:"说明",disassemblyView:"反汇编视图",editorOpenedFromDisassemblyDescription:"从反汇编",instructionAddress:"地址",instructionBytes:"字节",instructionNotAvailable:"反汇编不可用。",instructionText:"指令"},"vs/workbench/contrib/debug/browser/exceptionWidget":{close:"关闭",debugExceptionWidgetBackground:"异常小组件背景颜色。",debugExceptionWidgetBorder:"异常小组件边框颜色。",exceptionThrown:"出现异常。",exceptionThrownWithId:"发生异常: {0}"},"vs/workbench/contrib/debug/browser/linkDetector":{fileLink:"按住 Ctrl 并单击以 {0}",fileLinkMac:"按住 Cmd 并单击以 {0}",fileLinkWithPath:"按住 Ctrl 并单击以 {0}{1}",fileLinkWithPathMac:"按住 Cmd 并单击以 {0}{1}",followForwardedLink:"执行使用转发端口的链接",followLink:"执行链接"},"vs/workbench/contrib/debug/browser/loadedScriptsView":{collapse:"全部折叠",loadedScriptsAriaLabel:"在调试中已加载的脚本",loadedScriptsFolderAriaLabel:"文件夹 {0},已加载的脚本,调试",loadedScriptsRootFolderAriaLabel:"工作区文件夹 {0},已加载的脚本,调试",loadedScriptsSession:"调试会话",loadedScriptsSessionAriaLabel:"会话 {0},已加载的脚本,调试",loadedScriptsSourceAriaLabel:"{0},已加载的脚本,调试"},"vs/workbench/contrib/debug/browser/rawDebugSession":{canNotStart:"调试器需要为调试对象打开新选项卡或窗口,但浏览器阻止了此选项卡或窗口。必须授予权限以继续。",continue:"继续(&&C)",moreInfo:"详细信息",noDebugAdapter:"未找到任何调试程序。无法发送“{0}”。",noDebugAdapterStart:"没有调试适配器,无法启动调试会话。"},"vs/workbench/contrib/debug/browser/repl":{"actions.repl.acceptInput":"接受 REPL 的输入","actions.repl.copyAll":"调试: 复制控制台所有内容",clearRepl:"清除控制台","clearRepl.descriotion":"清除调试 REPL 中的所有程序输出",collapse:"全部折叠",copy:"复制",copyAll:"全部复制",debugConsole:"调试控制台",paste:"粘贴","repl.action.filter":"REPL 将内容聚焦到筛选器",selectRepl:"选择调试控制台","showing filtered repl lines":"正在显示第 {0} 页(共 {1} 页)",startDebugFirst:"请发起调试会话来对表达式求值","workbench.debug.filter.placeholder":"筛选器(例如 text、!exclude、\\escape)"},"vs/workbench/contrib/debug/browser/replViewer":{debugConsole:"调试控制台",occurred:",发生了 {0} 次",replGroup:"调试控制器组 {0}",replRawObjectAriaLabel:"调试控制台变量 {0},值 {1}",replVariableAriaLabel:"变量 {0},值 {1}"},"vs/workbench/contrib/debug/browser/statusbarColorProvider":{"commandCenter-activeBackground":"调试程序时的命令中心背景色",statusBarDebuggingBackground:"调试程序时状态栏的背景色。状态栏显示在窗口底部",statusBarDebuggingBorder:"调试程序时区别于侧边栏和编辑器的状态栏边框颜色。状态栏显示在窗口底部。",statusBarDebuggingForeground:"调试程序时状态栏的前景色。状态栏显示在窗口底部"},"vs/workbench/contrib/debug/browser/variablesView":{collapse:"全部折叠",removeVisualizer:"删除可视化工具",useVisualizer:"可视化变量...",variableAriaLabel:"{0},值 {1}",variableScopeAriaLabel:"范围 {0}",variableValueAriaLabel:"键入新的变量值",variablesAriaTreeLabel:"调试变量","viewMemory.prompt":"检查二进制数据需要此扩展。"},"vs/workbench/contrib/debug/browser/watchExpressionsView":{addWatchExpression:"添加表达式",collapse:"全部折叠",removeAllWatchExpressions:"删除所有表达式",typeNewValue:"键入新值",watchAriaTreeLabel:"调试监视表达式",watchExpressionAriaLabel:"{0},值 {1}",watchExpressionInputAriaLabel:"键入监视表达式",watchExpressionPlaceholder:"要监视的表达式",watchVariableAriaLabel:"{0},值 {1}"},"vs/workbench/contrib/debug/browser/welcomeView":{allDebuggersDisabled:"禁用所有调试扩展。启用调试扩展或从市场安装新的扩展。",customizeRunAndDebug:"要自定义运行和调试[创建 launch.json 文件](command:{0})。",customizeRunAndDebugOpenFolder:"要自定义运行和调试,请[打开文件夹](command:{0}) 并创建一个 launch.json 文件。",detectThenRunAndDebug:"显示所有自动调试配置",openAFileWhichCanBeDebugged:"[打开文件](command:{0}),可调试或运行。",run:"运行",runAndDebugAction:"运行和调试"},"vs/workbench/contrib/debug/common/abstractDebugAdapter":{timeout:"对于“{1}”,{0} 毫秒后超时 "},"vs/workbench/contrib/debug/common/debug":{breakWhenValueChangesSupported:"如果焦点会话支持在值发生更改时中断,则为 True。",breakWhenValueIsAccessedSupported:"如果焦点断点支持在值被访问时中断,则为 True。",breakWhenValueIsReadSupported:"如果焦点断点支持在值被读取时中断,则为 True。",breakpointHasModes:"断点是否具有多个模式可切换。",breakpointInputFocused:'当输入框在 "BREAKPOINTS " 视图中具有焦点时为 True。',breakpointItemIsDataBytes:"断点项是否为字节范围上的数据断点。",breakpointItemType:'表示 "BREAKPOINTS " 视图中具有焦点的元素的项类型。例如: "breakpoint"、"exceptionBreakppint"、"functionBreakpoint"、"dataBreakpoint"',breakpointSupportsCondition:"焦点断点支持条件时为 True。",breakpointWidgetVisibile:"如果显示断点编辑器区域小组件,则为 True;否则为 false。",breakpointsExist:"当至少存在一个断点时为 True。",breakpointsFocused:'如果 "BREAKPOINTS" 视图处于焦点,则为 True;否则为 false。',callStackItemStopped:"当停止调用堆栈中具有焦点的项目时为 true。在内部用于调用堆栈视图中的内联菜单。",callStackItemType:'表示“调用堆栈”视图中聚焦元素的项目类型。例如: "session"、"thread"、"stackFrame"',callStackSessionHasOneThread:"当调用堆栈视图中具有焦点的会话恰好具有一个线程时为 true。在内部用于调用堆栈视图中的内联菜单。",callStackSessionIsAttach:"当调用堆栈视图中的会话是“附加”状态时为 true,否则为 false。在内部用于调用堆栈视图中的内联菜单。",canViewMemory:"指示视图中的项是否具有关联的内存引用。",debugConfigurationType:'所选启动配置的调试类型。例如 "python"。',debugExtensionsAvailable:"如果至少安装并启用了一个调试扩展,则为 True。",debugProtocolVariableMenuContext:'表示 "VARIABLES" 视图中调试适配器针对焦点变量设置的上下文。',debugSetDataBreakpointAddressSupported:"当重点会话支持地址上的 “getBreakpointInfo” 请求时为 True。",debugSetExpressionSupported:"当焦点会话支持 “setExpression” 请求时为 True。",debugSetVariableSupported:'焦点会话支持 "setVariable" 请求时为 True。',debugState:"焦点调试会话所处的状态。以下项之一:“非活动”、“正在初始化”、“已停止”或“正在运行”。",debugType:'活动调试会话的调试类型。例如 "python"。',debugUX:"调试 UX 状态。当没有调试配置时,它为“简单”,否则为“默认”。用于确定何时在调试 viewlet 中显示“欢迎”视图。",debuggerDisabled:"已安装配置的调试类型 '{0}',但其在此环境中不受支持。",debuggersAvailable:"如果至少有一个调试扩展处于活动状态,则为 True。",disassembleRequestSupported:"当重点会话支持反汇编请求时为 True。",disassemblyViewFocus:"当聚焦反汇编视图时为 True。",exceptionWidgetVisible:"当异常小组件可见时为 True。",expressionSelected:'如果在 "WATCH" 或 "VARIABLES" 视图中打开表达式输入框,则为 True,否则为 false。',focusedSessionIsAttach:"焦点会话为“附加”时为 True。",focusedSessionIsNoDebug:"如果在不调试的情况下运行焦点会话,则为 true。",focusedStackFrameHasInstructionReference:"当焦点堆栈帧具有指令指针引用时为 true。",hasDebugged:"如果调试会话已启动至少一次,则为 true,否则为 false。",inBreakpointWidget:"当焦点位于断点编辑器区域小组件中时为 True,否则为 false。",inDebugMode:"调试时为 True,否则为 false。",inDebugRepl:"当焦点位于调试控制台中时为 True,否则为 false。",internalConsoleOptions:"控制应在何时打开内部调试控制台。",jumpToCursorSupported:'当焦点会话支持 "jumpToCursor" 请求时为 True。',languageSupportsDisassembleRequest:"如果当前编辑器中的语言支持反汇编请求,则为 True。",loadedScriptsItemType:'表示 "LOADED SCRIPTS " 视图中具有焦点的元素的项类型。',loadedScriptsSupported:'如果焦点会话支持 "LOADED SCRIPTS " 视图,则为 True',multiSessionDebug:"活动调试会话多于 1 个时为 True。",multiSessionRepl:"调试控制台多于 1 个时为 True。",restartFrameSupported:'焦点会话支持 "restartFrame" 请求时为 True。',stackFrameSupportsRestart:'焦点堆栈帧支持 "restartFrame" 时为 True。',stepBackSupported:'焦点会话支持 "stepBack" 请求时为 True。',stepIntoTargetsSupported:'焦点会话支持 "stepIntoTargets" 请求时为 True。',suspendDebuggeeSupported:"如果重点会话支持暂停调试对象功能,则为 True。",terminateDebuggeeSupported:"如果焦点会话支持终止调试对象功能,则为 True。",variableEvaluateNamePresent:"在焦点变量设置了 “evalauteName” 字段时为 True。",variableExtensionId:"变量源的扩展 ID,用于调试可视化子句。",variableInterfaces:"变量满足的任何接口或协定,用于调试可视化子句。",variableIsReadonly:"当焦点变量为只读时为 True。",variableLanguage:"变量源的语言,用于调试可视化子句。",variableName:"用于调试可视化子句的变量名称。",variableType:"用于调试可视化子句的变量类型。",variableValue:"用于调试可视化子句的变量值。",variablesFocused:'当 "VARIABLES" 视图处于焦点时为 True,否则为 false',watchExpressionsExist:"至少存在一个监视表达式时为 True,否则为 false。",watchExpressionsFocused:'"WATCH " 视图处于焦点时为 True,否则为 false。',watchItemType:'表示“监视”视图中聚焦元素的项目类型。例如: "expression"、"variable"'},"vs/workbench/contrib/debug/common/debugContentProvider":{canNotResolveSource:"无法加载源“{0}”。",canNotResolveSourceWithError:"无法加载源“{0}”: {1}。",unable:"无法解析无调试会话的资源"},"vs/workbench/contrib/debug/common/debugger":{"cannot.find.da":'找不到类型为 "{0}" 的调试适配器。',debugLinuxConfiguration:"特定于 Linux 的启动配置属性。",debugOSXConfiguration:"特定于 OS X 的启动配置属性。",debugRequest:"请求配置类型。可以是“启动”或“附加”。",debugType:"配置类型。",debugTypeNotRecognised:"无法识别此调试类型。确保已经安装并启用相应的调试扩展。",debugWindowsConfiguration:"特定于 Windows 的启动配置属性。","launch.config.comment1":"使用 IntelliSense 了解相关属性。 ","launch.config.comment2":"悬停以查看现有属性的描述。","launch.config.comment3":"欲了解更多信息,请访问: {0}",node2NotSupported:'不再支持 "node2",改用 "node",并将 "protocol" 属性设为 "inspector"。'},"vs/workbench/contrib/debug/common/debugLifecycle":{"debug.debugSessionCloseConfirmationPlural":"存在活动的调试会话,是否确定要终止它们?","debug.debugSessionCloseConfirmationSingular":"存在活动的调试会话,是否确定要终止它?","debug.stop":"停止调试(&&S)"},"vs/workbench/contrib/debug/common/debugModel":{breakpointDirtydHover:"未验证的断点。对文件进行了修改,请重启调试会话。",invalidVariableAttributes:"无效的变量属性",notAvailable:"不可用",paused:"已暂停",pausedOn:"因 {0} 已暂停",running:"正在运行",startDebugFirst:"请发起调试会话来对表达式求值"},"vs/workbench/contrib/debug/common/debugSchemas":{"app.launch.json.compound.folder":"复合项所在的文件夹的名称。","app.launch.json.compound.name":"复合的名称。在启动配置下拉菜单中显示。","app.launch.json.compound.stopAll":"控制手动终止一个会话是否将停止所有复合会话。","app.launch.json.compounds":"复合列表。每个复合可引用多个配置,这些配置将一起启动。","app.launch.json.compounds.configurations":"将作为此复合的一部分启动的配置名称。","app.launch.json.configurations":"配置列表。使用 IntelliSense 添加新配置或编辑现有配置。","app.launch.json.title":"启动","app.launch.json.version":"此文件格式的版本。",compoundPrelaunchTask:"要在任何复合配置开始之前运行的任务。","debugger name":"名称","debugger type":"类型",debuggers:"调试程序",presentation:"有关如何在调试配置下拉列表和命令面板中显示此配置的演示选项。","presentation.group":"此配置所属的组。用于在配置下拉列表和命令面板中分组和排序。","presentation.hidden":"控制此配置是否应显示在配置下拉列表和命令面板中。","presentation.order":"此配置在组内的顺序。用于在配置下拉列表和命令面板中分组和排序。",useUniqueNames:"配置名称必须唯一。","vscode.extension.contributes.breakpoints":"添加断点。","vscode.extension.contributes.breakpoints.language":"对此语言允许断点。","vscode.extension.contributes.breakpoints.when":"必须为 true 才能启用此语言中断点的条件。如果子句适用,请考虑将其与调试器匹配。","vscode.extension.contributes.debuggers":"用于调试适配器。","vscode.extension.contributes.debuggers.args":"要传递给适配器的可选参数。","vscode.extension.contributes.debuggers.configurationAttributes":'用于验证 "launch.json" 的 JSON 架构配置。',"vscode.extension.contributes.debuggers.configurationSnippets":'用于在 "launch.json" 中添加新配置的代码段。',"vscode.extension.contributes.debuggers.deprecated":"将此调试类型标记为已弃用的可选消息。","vscode.extension.contributes.debuggers.hiddenWhen":"当此条件为 true 时,此调试器类型将从调试程序列表中隐藏,但仍处于启用状态。","vscode.extension.contributes.debuggers.initialConfigurations":'用于生成初始 "launch.json" 的配置。',"vscode.extension.contributes.debuggers.label":"显示此调试适配器的名称。","vscode.extension.contributes.debuggers.languages":"可能被视为“默认调试程序”的调试扩展的语言列表。","vscode.extension.contributes.debuggers.linux":"Linux 特定的设置。","vscode.extension.contributes.debuggers.linux.runtime":"用于 Linux 的运行时。","vscode.extension.contributes.debuggers.osx":"macOS 特定的设置。","vscode.extension.contributes.debuggers.osx.runtime":"用于 macOS 的运行时。","vscode.extension.contributes.debuggers.program":"调试适配器程序的路径。该路径是绝对路径或相对于扩展文件夹的相对路径。","vscode.extension.contributes.debuggers.runtime":"可选运行时,以防程序属性不可执行,但需要运行时。","vscode.extension.contributes.debuggers.runtimeArgs":"可选运行时参数。","vscode.extension.contributes.debuggers.strings":"由此调试适配器提供的 UI 字符串。","vscode.extension.contributes.debuggers.strings.unverifiedBreakpoints":"当此调试适配器支持的语言中存在未经验证的断点时,此消息将显示在断点悬停时和断点视图中。支持 Markdown 和命令链接。","vscode.extension.contributes.debuggers.type":"此调试适配器的唯一标识符。","vscode.extension.contributes.debuggers.variables":'正在将 "launch. json" 中的交互式变量(例如 ${action.pickProcess})映射到命令。',"vscode.extension.contributes.debuggers.when":"必须为 true 才能启用此类型调试器的条件。请考虑根据需要为此项使用 “shellExecutionSupported”、“virtualWorkspace”、“resourceScheme” 或扩展定义的上下文键。","vscode.extension.contributes.debuggers.windows":"Windows 特定的设置。","vscode.extension.contributes.debuggers.windows.runtime":"用于 Windows 的运行时。"},"vs/workbench/contrib/debug/common/debugSource":{unknownSource:"未知源"},"vs/workbench/contrib/debug/common/disassemblyViewInput":{disassemblyEditorLabelIcon:"反汇编编辑器标签的图标。",disassemblyInputName:"反汇编"},"vs/workbench/contrib/debug/common/loadedScriptsPicker":{"moveFocusedView.selectView":"按名称搜索加载的脚本"},"vs/workbench/contrib/debug/common/replModel":{consoleCleared:"控制台已清除"},"vs/workbench/contrib/debug/node/debugAdapter":{debugAdapterBinNotFound:"调试适配器可执行的“{0}”不存在。",debugAdapterCannotDetermineExecutable:"无法确定调试适配器“{0}”的可执行文件。",unableToLaunchDebugAdapter:"无法从“{0}”启动调试适配器。",unableToLaunchDebugAdapterNoArgs:"无法启动调试适配器。"},"vs/workbench/contrib/deprecatedExtensionMigrator/browser/deprecatedExtensionMigrator.contribution":{"bracketPairColorizer.notification":"扩展“括号对着色器”已禁用,因为它已被弃用。","bracketPairColorizer.notification.action.enableNative":"启用本机括号对着色","bracketPairColorizer.notification.action.showMoreInfo":"详细信息","bracketPairColorizer.notification.action.uninstall":"卸载扩展"},"vs/workbench/contrib/editSessions/browser/editSessions.contribution":{autoResumeWorkingChanges:"控制是否为当前工作区自动继续存储在云中的可用工作更改。","autoResumeWorkingChanges.off":"从不尝试从云中继续工作更改。","autoResumeWorkingChanges.onReload":"在窗口重新加载时自动从云中继续可用的工作更改。",autoStoreWorkingChanges:"正在存储当前工作更改...","autoStoreWorkingChanges.off":"从不尝试在云中自动存储工作更改。","autoStoreWorkingChanges.onShutdown":"在窗口关闭时自动将当前工作更改存储在云中。",autoStoreWorkingChangesDescription:"控制是否为当前工作区自动将可用工作更改存储在云中。此设置在 Web 中无效。","check for pending cloud changes":"检查挂起的云更改",checkingForWorkingChanges:"检查挂起的云更改...","client too old":"请升级到较新版本的 {0} 以从云中恢复工作更改。",cloudChangesPartialMatchesEnabled:"控制是否显示与当前会话部分匹配的云更改。","continue edit session in local folder":"在本地文件夹中打开","continue with cloud changes":"选择是否将工作更改带上。","continue working on":"继续处理...","continueEditSession.openLocalFolder.title.v2":"选择要继续在其中工作的本地文件夹",continueEditSessionExtPoint:"提供用于在其他环境中继续当前编辑会话的选项","continueEditSessionExtPoint.command":"要执行的命令的标识符。必须在 'commands'-section 中声明该命令,并返回一个 URI,表示可以继续执行当前编辑会话的其他环境。","continueEditSessionExtPoint.description":"选项的文档页面的 URL 或返回此 URL 的命令。","continueEditSessionExtPoint.group":"此项所属的组。","continueEditSessionExtPoint.qualifiedName":"此项的完全限定名称,用于在菜单中显示。","continueEditSessionExtPoint.remoteGroup":"此项在远程指示器中所属的组。","continueEditSessionExtPoint.when":"此条件必须为 true 才能显示此项。","continueEditSessionItem.builtin":"内置","continueEditSessionItem.openInLocalFolder.v2":"在本地文件夹中打开","continueEditSessionPick.title.v2":"选择开发环境以继续在以下位置处理 {0}","continueOn.installAdditional":"安装其他开发环境选项",continueOnCloudChanges:"控制在使用“继续工作”时是否提示用户将工作更改存储在云中。","continueOnCloudChanges.off":"除非用户已启用云更改,否则请勿通过“继续工作”将工作更改存储在云中。","continueOnCloudChanges.promptForAuth":"通过“继续工作”,提示用户登录以在云中存储工作更改。","continueWorkingOn.existingLocalFolder":"继续在现有本地文件夹中工作",editSessionPartialMatch:"你在此工作区的云中有待处理的工作更改。是否要恢复它们?",learnMoreTooltip:"了解详细信息","no cloud changes":"没有从云中恢复的更改。","no cloud changes for ref":"无法从云中恢复 ID {0} 的更改。","no working changes to store":"已跳过在云中存储工作更改,因为没有要存储的编辑。","payload failed":"无法存储工作更改。","payload too large":"你的工作更改超出了大小限制,无法存储。",resume:"继续","resume cloud changes":"从序列化数据继续更改","resume edit session warning 1":"从云中恢复工作更改将覆盖 {0}。是否要继续?","resume edit session warning many":"从云中恢复工作更改将覆盖以下 {0} 文件。是否要继续?","resume failed":"无法从云中恢复工作更改。","resume latest cloud changes":"从云恢复最新更改","resuming working changes window":"正在恢复工作更改...","show cloud changes":"显示云更改","show log":"显示日志","store working changes":"正在存储工作更改...","store working changes in cloud":"在云中存储工作更改","store your working changes":"正在存储工作更改...","storing working changes":"正在存储工作更改...","with cloud changes":"是,继续并进行工作更改","without cloud changes":"否,继续但不进行工作更改"},"vs/workbench/contrib/editSessions/browser/editSessionsStorageService":{"choose account placeholder":"选择要在云中存储工作更改的帐户","choose account read placeholder":"选择要从云中还原工作更改的帐户","delete all cloud changes":"从云中删除所有存储的数据。",others:"其他","reset auth.v3":"关闭云更改...","sign in":"打开云更改...","sign in badge":"打开云更改... (1)","sign in using account":"使用 {0} 登录","sign out of cloud changes clear data prompt":"是否要禁用在云中存储工作更改?","signed in":"已登录"},"vs/workbench/contrib/editSessions/browser/editSessionsViews":{"cloud changes":"云更改","compare changes":"比较更改","confirm delete all":"是否确定要从云中永久删除所有存储的更改?","confirm delete all detail":" 无法撤消此操作。","confirm delete detail.v2":" 无法撤消此操作。","confirm delete.v2":"是否确定要使用 ref {0} 永久删除工作更改?","local copy":"本地副本",noStoredChanges:"云中没有要显示的已存储更改。\r\n{0}","open file":"打开文件",storeWorkingChangesTitle:"存储工作更改","workbench.editSessions.actions.delete.v2":"删除工作更改","workbench.editSessions.actions.deleteAll":"从云中删除所有工作更改","workbench.editSessions.actions.resume.v2":"继续工作更改","workbench.editSessions.actions.store.v2":"存储工作更改"},"vs/workbench/contrib/editSessions/common/editSessions":{"cloud changes":"云更改",editSessionViewIcon:"云更改视图的视图图标。"},"vs/workbench/contrib/editSessions/common/editSessionsLogService":{cloudChangesLog:"云更改"},"vs/workbench/contrib/emmet/browser/actions/expandAbbreviation":{expandAbbreviationAction:"Emmet: 展开缩写",miEmmetExpandAbbreviation:"Emmet: 展开缩写(&&X)"},"vs/workbench/contrib/experiments/browser/experiments.contribution":{"workbench.enableExperiments":"从 Microsoft 联机服务中获取要进行的实验。"},"vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor":{"copy id":"复制 ID ({0})",disable:"禁用","disable workspace":"禁用(工作区)",errors:"{0} 个未捕获的错误",extensionActivating:"正在激活扩展...",languageActivation:"因你打开 {0} 文件而被 {1} 激活","requests count":"{0} 请求: {1} (总体)","requests count title":"上一次请求为 {0}。",runtimeExtensions:"运行时扩展","session requests count":",{0} (会话)",showRuntimeExtensions:"显示正在运行的扩展",starActivation:"已在启动时由 {0} 激活",startupFinishedActivation:"启动完成后已由 {0} 激活","unresponsive.title":"扩展已导致扩展主机冻结。",workspaceContainsFileActivation:"已由 {1} 激活,因为你的工作区中存在文件 {0}",workspaceContainsGlobActivation:"已由 {1} 激活,因为你的工作区中存在与 {0} 匹配的文件",workspaceContainsTimeout:"因搜索 {0} 耗时太长而被 {1} 激活",workspaceGenericActivation:"已由 {1} 在 {0} 时激活"},"vs/workbench/contrib/extensions/browser/configBasedRecommendations":{exeBasedRecommendation:"根据当前工作区的配置,建议使用此扩展"},"vs/workbench/contrib/extensions/browser/deprecatedExtensionsChecker":{"deprecated extensions":"你已安装弃用的扩展。我们建议查看它们并迁移到替代项。",neverShowAgain:"不再显示",showDeprecated:"显示已弃用的扩展"},"vs/workbench/contrib/extensions/browser/exeBasedRecommendations":{exeBasedRecommendation:"由于你已安装 {0},建议使用此扩展。"},"vs/workbench/contrib/extensions/browser/extensionEditor":{"Changelog title":"更改日志",Marketplace:"市场","Marketplace Info":"详细信息","Readme title":"自述文件",builtin:"内置",categories:"类别",changelog:"更改日志",changelogtooltip:'扩展的更新历史,显示扩展的 "CHANGELOG.md" 文件。',dependencies:"依赖项",dependenciestooltip:"包含此扩展依赖的扩展",details:"细节",detailstooltip:'扩展详细信息,显示扩展的 "README.md" 文件。',"extension pack":"扩展包({0})","extension version":"扩展版本",extensionpack:"扩展包",extensionpacktooltip:"列出将与此扩展一起安装的扩展",features:"功能",featurestooltip:"列出此扩展提供的功能",find:"查找","find next":"查找下一个","find previous":"查找前一个",id:"标识符","install count":"安装计数",issues:"问题","last released":"上次发布时间","last updated":"上次更新时间",license:"许可证","local extension":"本地扩展",name:"扩展名",noChangelog:"无可用的更改日志。",noDependencies:"没有依赖项",noReadme:"无可用自述文件。",preview:"预览版",published:"已发布",publisher:"发布服务器",rating:"评分",repository:"仓库",resources:"资源","workspace extension":"工作区扩展"},"vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant":{"restartExtensionHost.reason":"由于工作区信任更改,正在重启扩展主机。"},"vs/workbench/contrib/extensions/browser/extensionFeaturesTab":{accessExtensionFeature:"启用“{0}”功能",activation:"激活",cancel:"取消",disableAccessExtensionFeatureMessage:"是否要撤销“{0}”扩展以访问“{1}”功能?",enable:"允许访问",enableAccessExtensionFeatureMessage:"是否要允许“{0}”扩展以访问“{1}”功能?","extension features list":"扩展功能",grant:"允许访问","last request":"上次请求: `{0}`",messaages:"消息({0})",noFeatures:"未提供任何功能。","requests count session":"请求数(会话): `{0}`","requests count total":"请求数(总体): `{0}`",revoke:"撤消访问权限",revoked:"无访问权限",runtime:"运行时状态","uncaught errors":"未捕获的错误({0})"},"vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService":{donotShowAgain:"对于此存储库,不再显示",donotShowAgainExtension:"对于这些扩展,不再显示",donotShowAgainExtensionSingle:"对于此扩展,不再显示",exeRecommended:"你的系统上安装了 {0}。是否要为其安装推荐的 {1}?",extensionFromPublisher:'来自 {1} 的 "{0}" 扩展',extensionsFromMultiplePublishers:"来自 {0}、{1} 和其他的扩展",extensionsFromPublisher:"来自 {0} 的扩展",extensionsFromPublishers:"来自 {0} 和 {1} 的扩展",ignoreAll:"是,全部忽略",ignoreExtensionRecommendations:"是否要忽略所有扩展建议?",install:"安装","install and do no sync":"安装(不同步)",no:"否",recommended:"是否要为 {1} 安装推荐的 {0}?","show recommendations":"显示建议","this repository":"此存储库"},"vs/workbench/contrib/extensions/browser/extensions.contribution":{InstallFromVSIX:"从 VSIX 安装…","InstallVSIXAction.reloadNow":"立即重载","InstallVSIXAction.success":"已完成从 VSIX 安装 {0} 扩展的过程。","InstallVSIXAction.successReload":"已完成从 VSIX 安装 {0} 扩展的过程。请重新加载 Visual Studio Code 以启用它。",all:"所有扩展",builtin:"扩展“{0}”是内置扩展,无法安装","builtin filter":"内置",checkForUpdates:"检查扩展更新",clearExtensionsSearchResults:"清除扩展搜索结果","configure auto updating extensions":"自动更新扩展","configureExtensionsAutoUpdate.all":"所有扩展","configureExtensionsAutoUpdate.enabled":"已启用扩展","configureExtensionsAutoUpdate.none":"无","configureExtensionsAutoUpdate.selected":"所选扩展",disableAll:"禁用所有已安装的扩展",disableAllWorkspace:"禁用此工作区的所有已安装的扩展",disableAutoUpdate:"为所有扩展禁用自动更新",disablePreRleaseLabel:"切换为发布版本","disabled filter":"已禁用",enableAll:"启用所有扩展",enableAllWorkspace:"启用这个工作区的所有扩展",enableAutoUpdate:"为所有扩展启用自动更新",enablePreRleaseLabel:"切换到预发布版本",enabled:"仅限已启用的扩展","enabled filter":"已启用",extension:"扩展","extension updates filter":"更新",extensionInfoDescription:"说明: {0}",extensionInfoId:"ID: {0}",extensionInfoName:"名称: {0}",extensionInfoPublisher:"发布者: {0}",extensionInfoVSMarketplaceLink:"VS Marketplace 链接: {0}",extensionInfoVersion:"版本: {0}",extensionUpdates:"显示扩展更新",extensions:"扩展","extensions.affinity":"配置要在其他扩展主机进程中执行的扩展。","extensions.autoUpdate":"控制扩展的自动更新行为。更新是从 Microsoft 联机服务中获取的。","extensions.autoUpdate.enabled":"仅对启用的扩展自动下载和安装更新,但忽略这些更新。禁用的扩展不会自动更新。","extensions.autoUpdate.false":"扩展不会自动更新。","extensions.autoUpdate.selected":"仅针对所选扩展自动下载和安装更新。","extensions.autoUpdate.true":"将忽略除这些更新之外的所有扩展自动下载和安装更新。","extensions.supportUntrustedWorkspaces":"替代扩展的不受信任的工作区支持。将始终启用使用 “true” 的扩展。将始终启用使用 “limited” 的扩展,并且扩展将隐藏需要信任的功能。仅当工作区受信任时才会启用使用 “false” 的扩展。","extensions.supportUntrustedWorkspaces.false":"只有在工作区受信任时才会启用扩展。","extensions.supportUntrustedWorkspaces.limited":"将始终启用扩展,并且扩展将隐藏需要信任的功能。","extensions.supportUntrustedWorkspaces.supported":"定义扩展的不受信任的工作区支持设置。","extensions.supportUntrustedWorkspaces.true":"将始终启用扩展。","extensions.supportUntrustedWorkspaces.version":"定义应应用替代的扩展的版本。如果未指定,则将在独立于扩展版本的情况下应用替代。","extensions.supportVirtualWorkspaces":"替代扩展的虚拟工作区支持。",extensionsCheckUpdates:"启用后,将自动检查扩展更新。若扩展存在更新,将在“扩展”视图中将其标记为过时扩展。更新将从 Microsoft 联机服务中获取。",extensionsCloseExtensionDetailsOnViewChange:"启用后,将在离开“扩展”视图时,自动关闭扩展详细信息页面。",extensionsDeferredStartupFinishedActivation:"启用后,将在超时后激活声明“onStartupFinished”激活事件的扩展。",extensionsIgnoreRecommendations:"启用后,将不会显示扩展建议的通知。",extensionsInQuickAccess:"启用后,可通过快速访问搜索该扩展,并从中报告问题。",extensionsShowRecommendationsOnlyOnDemand_Deprecated:"已弃用此设置。使用 extensions.ignoreRecommendations 设置来控制建议通知。默认使用“扩展”视图的可见性操作来隐藏“建议”视图。",extensionsWebWorker:"启用 Web Worker 扩展主机。","extensionsWebWorker.auto":"Web 辅助角色扩展主机将在 Web 扩展需要时启动。","extensionsWebWorker.false":"Web 辅助角色扩展主机将永远不会启动。","extensionsWebWorker.true":"Web 辅助角色扩展主机将始终启动。","featured filter":"特色","filter by category":"类别",filterExtensions:"筛选器扩展…",focusExtensions:"重点关注扩展视图",handleUriConfirmedExtensions:"当此处列出扩展名时,该扩展名处理URI时将不会显示确认提示。","id required":"扩展 ID 是必需的。",importKeyboardShortcutsFroms:"从 - 中迁移键盘快捷方式...","install button":"安装",installButton:"安装(&&I)",installExtensionFromLocation:"从位置安装扩展...",installExtensionQuickAccessHelp:"安装或搜索扩展",installExtensionQuickAccessPlaceholder:"键入要安装或搜索的扩展的名称。",installExtensions:"安装扩展",installFromLocation:"从位置安装扩展",installFromLocationPlaceHolder:"Web 扩展的位置",installFromVSIX:"从 VSIX 文件安装",installVSIX:"安装扩展 VSIX",installWorkspaceRecommendedExtensions:"安装工作区建议的扩展",manageExtensionsHelp:"管理扩展",manageExtensionsQuickAccessPlaceholder:"按 Enter 以管理扩展。",miPreferencesExtensions:"扩展(&&E)",miViewExtensions:"扩展(&&X)","most popular filter":"最热门","most popular recommended":"推荐",noUpdatesAvailable:"所有扩展都是最新的。",none:"无",notFound:"找不到扩展“{0}”。",notInstalled:"未安装扩展“{0}”。请确保你使用包括发布者的完整的扩展 ID,例如 ms-vscode.csharp。","recently published filter":"最近发布",recentlyPublishedExtensions:"显示最近发布的扩展",refreshExtension:"刷新",selected:"仅所选扩展","show pre-release version":"显示预发布版本","show released version":"显示发布版本",showBuiltInExtensions:"显示内置的扩展",showDisabledExtensions:"显示已禁用的扩展",showEnabledExtensions:"显示启用的扩展",showExtensions:"扩展",showFeaturedExtensions:"显示特别推荐的扩展",showLanguageExtensionsShort:"语言扩展",showPopularExtensions:"显示常用的扩展",showRecommendedExtensions:"显示推荐的扩展",showRecommendedKeymapExtensionsShort:"键映射",showWorkspaceUnsupportedExtensions:"显示工作区不支持的扩展","sort by installs":"安装计数","sort by name":"名称","sort by published date":"发布日期","sort by rating":"评分","sort by update date":"更新日期","sorty by":"排序依据",updateAll:"更新所有扩展","workbench.extensions.action.addExtensionToWorkspaceRecommendations":"添加到工作区建议","workbench.extensions.action.addToWorkspaceFolderIgnoredRecommendations":"将扩展添加到工作区文件夹“已忽略的建议”","workbench.extensions.action.addToWorkspaceFolderRecommendations":"将扩展添加到工作区文件夹“建议”","workbench.extensions.action.addToWorkspaceIgnoredRecommendations":"将扩展添加到工作区“已忽略的建议”","workbench.extensions.action.addToWorkspaceRecommendations":"将扩展添加到工作区“建议”","workbench.extensions.action.configure":"扩展设置","workbench.extensions.action.configureKeybindings":"扩展键盘快捷方式","workbench.extensions.action.copyExtension":"复制","workbench.extensions.action.copyExtensionId":"复制扩展 ID","workbench.extensions.action.ignoreRecommendation":"忽略建议","workbench.extensions.action.removeExtensionFromWorkspaceRecommendations":"从工作区建议中删除","workbench.extensions.action.toggleApplyToAllProfiles":"将扩展应用于所有配置文件","workbench.extensions.action.toggleIgnoreExtension":"同步此扩展","workbench.extensions.action.undoIgnoredRecommendation":"撤消已忽略的建议","workbench.extensions.installExtension.arg.decription":"扩展 ID 或 VSIX 资源 URI","workbench.extensions.installExtension.description":"安装给定的扩展","workbench.extensions.installExtension.option.context":"安装的上下文。这是一个 JSON 对象,可用于将任何信息传递给安装处理程序。例如,“{skipWalkthrough: true}”将在安装时跳过打开演练。","workbench.extensions.installExtension.option.donotSync":"启用后,VS Code 在启用“设置同步”时不同步此扩展。","workbench.extensions.installExtension.option.enable":"启用后,如果安装了该扩展但已将其禁用,则将启用该扩展。如果已启用该扩展,则该操作不起作用。","workbench.extensions.installExtension.option.installOnlyNewlyAddedFromExtensionPackVSIX":"启用后,VS Code 仅安装来自扩展包 VSIX 的新添加的扩展。仅在安装 VSIX 时才考虑此选项。","workbench.extensions.installExtension.option.installPreReleaseVersion":"启用后,VS Code 将安装扩展的预发布版本(如果可用)。","workbench.extensions.installExtension.option.justification":"安装扩展的理由。这是可用于将任何信息传递给安装处理程序的字符串或对象。即 `{原因: '此扩展要打开 URI',操作: '打开 URI'}` 将显示一个消息框,其中包含安装时的原因和操作。","workbench.extensions.search.arg.name":"要在搜索中使用的查询","workbench.extensions.search.description":"搜索特定扩展","workbench.extensions.uninstallExtension.arg.name":"要卸载的扩展的 id","workbench.extensions.uninstallExtension.description":"卸载给定的扩展","workspace unsupported filter":"工作区不受支持"},"vs/workbench/contrib/extensions/browser/extensions.web.contribution":{runtimeExtension:"正在运行扩展"},"vs/workbench/contrib/extensions/browser/extensionsActions":{"Cannot be enabled":"已禁用此扩展,因为它在 {0} web 版中不受支持。","Defined to run in desktop":"已禁用此扩展,因为它被定义为仅在桌面上的 {0} 中运行。","Install in local server to enable":"此扩展在此工作区中被禁用,因为其被定义为在本地扩展主机中运行。请在本地安装扩展以进行启用。","Install in remote server to enable":"此扩展在此工作区中被禁用,因为其被定义为在远程扩展主机中运行。请在 '{0}' 中安装扩展以进行启用。","Install language pack also in remote server":"在“{0}”上安装语言包扩展,使其还在此处启用。","Install language pack also locally":"在本地安装语言包扩展,使其还在此处启用。","InstallVSIXAction.reloadNow":"立即重新加载","OpenExtensionsFile.failed":'无法在 ".vscode" 文件夹({0})内创建 "extensions.json" 文件。',"ReinstallAction.success":"扩展 {0} 重新安装完毕。","ReinstallAction.successReload":"请重新加载 Visual Studio Code 以完成扩展 {0} 的重新安装。","Show alternate extension":"打开 {0}(&&O)",Uninstalling:"正在卸载","VS Code for Web":"{0} Web 版",cancel:"取消","cannot be installed":"“{0}”扩展在 {1} 中不可用。若要了解详细信息,请单击“详细信息”。","check logs":"有关更多详细信息,请查看[日志]({0})。",close:"关闭","configure in settings":"配置设置(&&C)",configureWorkspaceFolderRecommendedExtensions:"配置建议的扩展(工作区文件夹)",configureWorkspaceRecommendedExtensions:"配置建议的扩展(工作区)",current:"当前","deprecated message":"此扩展已弃用,因为已不再对其进行维护。","deprecated tooltip":"此扩展已弃用,因为已不再对其进行维护。","deprecated with alternate extension message":"此扩展已弃用。请改用 {0}扩展。","deprecated with alternate extension tooltip":"此扩展已弃用。请改用 {0}扩展。","deprecated with alternate settings message":"此扩展已弃用,因为此功能现在内置于 VS Code。","deprecated with alternate settings tooltip":"此扩展已弃用,因为此功能现在内置于 VS Code。配置这些 {0} 以使用此功能。",disableAction:"禁用",disableAutoUpdate:"已禁用自动更新",disableForWorkspaceAction:"禁用(工作区)",disableForWorkspaceActionToolTip:"仅在此工作区中禁用此扩展",disableGloballyAction:"禁用",disableGloballyActionToolTip:"禁用此扩展",disabled:"已禁用","disabled because of virtual workspace":"此扩展已禁用,因为它不支持虚拟工作区。","disabled by environment":"环境已禁用此扩展。","do not sync":"不同步此扩展",download:"请尝试手动下载…",enableAction:"启用",enableAutoUpdate:"已启用自动更新",enableAutoUpdateLabel:"自动更新",enableForWorkspaceAction:"启用(工作区)",enableForWorkspaceActionToolTip:"仅在此工作区中启用此扩展",enableGloballyAction:"启用",enableGloballyActionToolTip:"启用此扩展",enabled:"已启用","enabled by environment":"已启用此扩展,因为在当前环境中需要此扩展。","enabled in web worker":"此扩展将在辅助角色扩展主机中弃用,因为这是其首选运行位置。","enabled locally":"此扩展在本地扩展主机中被启用,因为这是其首选运行处。","enabled remotely":"此扩展在远程扩展主机中被启用,因为这是其首选运行处。","extension disabled because of dependency":"已禁用此扩展,因为它依赖于已禁用的扩展。","extension disabled because of trust requirement":"当前工作区不受信任,因此已禁用此扩展。","extension enabled on remote":"已在“{0}”上启用扩展","extension limited because of trust requirement":"当前工作区不受信任,因此已限制此扩展的功能。","extension limited because of virtual workspace":"此拓展功能受限,因为当前工作区为虚拟。",extensionButtonBackground:"扩展操作的按钮背景色。",extensionButtonForeground:"扩展操作的按钮前景色。",extensionButtonHoverBackground:"扩展操作的按钮背景悬停颜色。",extensionButtonProminentBackground:"扩展操作中突出按钮背景色(比如安装按钮)。",extensionButtonProminentForeground:"扩展操作中突出按钮前景色(比如安装按钮)。",extensionButtonProminentHoverBackground:"扩展操作中突出按钮被悬停时的颜色(比如安装按钮)。",extensionButtonSeparator:"扩展操作的按钮分隔符颜色","finished installing":"已成功安装扩展。","globally disabled":"用户已全局禁用此扩展。","globally enabled":"此扩展已全局启用。",ignoreExtensionRecommendation:"不再推荐此扩展",ignoreExtensionUpdatePublisher:"忽略由 {0} 发布的更新。",ignored:"同步时将忽略此扩展","incompatible platform":"'{0}' 扩展在 {1} 中对于 {2} 不可用。",install:"安装","install another version":"安装另一个版本…","install anyway":"仍然安装","install browser":"在浏览器中安装","install confirmation":"是否确实要安装“{0}”?","install in remote":"在 {0} 中安装","install local extensions title":"在“{0}”中安装本地扩展","install locally":"本地安装","install operation":'安装 "{0}" 扩展时出错。',"install pre-release":"安装预发布版本","install pre-release version":"安装预发布版本","install prerelease":"安装预发布版本","install previous version":"安装特定版本的扩展…","install release version":"安装发布版本","install remote extensions":"本地安装远程扩展","install vsix":"下载后,请手动安装“{0}”的 VSIX。","install workspace version":"安装工作区扩展",installExtensionComplete:"已完成安装扩展 {0}。",installExtensionStart:"已启动安装扩展 {0}。将打开编辑器,显示此扩展的更多详细信息。",installRecommendedExtension:"安装推荐的扩展",installVSIX:"从 VSIX 安装...",installed:"已安装",installing:"正在安装","installing extensions":"正在安装扩展...","learn more":"了解详细信息","learn why":"了解原因","malicious tooltip":"此扩展被报告存在问题。",manage:"管理","manage access":"管理访问权限",migrate:"迁移","migrate to":"迁移到 {0}",migrateExtension:"迁移","more information":"更多信息(&&R)","no local extensions":"没有要安装的扩展。","no versions":"此扩展没有其他版本。","not web tooltip":"“{0}”扩展在 {1} 中不可用。","pre-release":"预发布",reinstall:"重新安装扩展...","reload window":"重新加载窗口","restart extensions":"重新启动扩展","restart product":"重启以更新","search recommendations":"搜索扩展","select and install local extensions":"在“{0}”中安装本地扩展…","select and install remote extensions":"本地安装远程扩展…","select color theme":"选择颜色主题","select extensions to install":"选择要安装的扩展","select file icon theme":"选择文件图标主题","select product icon theme":"选择产品图标主题",selectExtension:"选择扩展",selectExtensionToReinstall:"选择要重新安装的扩展",selectVersion:"选择要安装的版本",settings:"设置",showRecommendedExtension:"显示推荐的扩展","signature verification failed":'{0} 无法验证 "{1}" 扩展。确定要安装它吗?',switchToPreReleaseLabel:"切换到预发布版本",switchToPreReleaseTooltip:"这将切换到预发布版本并始终启用最新版本的更新",sync:"同步此扩展",synced:"已同步此扩展",toggleAutoUpdatesForPublisherLabel:"自动更新全部 (来自发布服务器)",togglePreRleaseDisableLabel:"切换为发布版本",togglePreRleaseDisableTooltip:"这将切换并启用发布版本的更新",togglePreRleaseLabel:"预发布",undo:"撤消",uninstallAction:"卸载",uninstallExtensionComplete:"请重新加载 Visual Studio Code 以完成对扩展 {0} 的卸载。",uninstallExtensionStart:"开始卸载扩展{0}。",uninstalled:"已卸载",update:"更新","update operation":'更新 "{0}" 扩展时出错。',"update product":"更新 {0}","update to":"更新到 v{0}",updateExtensionComplete:"已完成更新扩展 {0} 到版本 {1}。",updateExtensionStart:"已启动更新扩展 {0} 到版本 {1}。",updated:"已更新","workbench.extensions.action.clearLanguage":"清除显示语言","workbench.extensions.action.set_colorsTheme":"设置颜色主题","workbench.extensions.action.setDisplayLanguage":"设置显示语言","workbench.extensions.action.setFileIconTheme":"设置文件图标主题","workbench.extensions.action.setProductIconTheme":"设置产品图标主题","workspace disabled":"用户已为此工作区禁用此扩展。","workspace enabled":"用户已为此工作区启用此扩展。"},"vs/workbench/contrib/extensions/browser/extensionsActivationProgress":{activation:"正在激活扩展..."},"vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider":{exampleExtension:"示例"},"vs/workbench/contrib/extensions/browser/extensionsDependencyChecker":{"auto install missing deps":"安装缺少的依赖项",extensions:"扩展","finished installing missing deps":"缺少的依赖项已安装完毕。请立即重新加载窗口。","no missing deps":"没有任何缺少的依赖项待安装。",reload:"重新加载窗口"},"vs/workbench/contrib/extensions/browser/extensionsIcons":{activationtimeIcon:"在扩展编辑器中显示带有激活时间消息的图标。",clearSearchResultsIcon:"扩展视图中“清除搜索结果”操作的图标。",configureRecommendedIcon:"扩展视图中“配置建议的扩展”操作的图标。",errorIcon:"在扩展编辑器中显示带有错误消息的图标。",extensionsViewIcon:"查看扩展视图的图标。",filterIcon:"扩展视图中“筛选器”操作的图标。",infoIcon:"扩展编辑器中随信息消息一同显示的图标。",installCountIcon:"扩展视图和编辑器中随安装计数一起显示的图标。",installLocalInRemoteIcon:"扩展视图中“在远程安装本地扩展”操作的图标。",installWorkspaceRecommendedIcon:"扩展视图中“安装工作区建议的扩展”操作的图标。",manageExtensionIcon:"扩展视图中“管理”操作的图标。",preReleaseIcon:"为具有预发布版本的扩展在扩展视图和编辑器中显示的图标。",ratingIcon:"扩展视图和编辑器中随评级一起显示的图标。",refreshIcon:"扩展视图中“刷新”操作的图标。",remoteIcon:"用于在扩展视图和编辑器中指示扩展是远程内容的图标。",sponsorIcon:"用于在扩展视图和编辑器中赞助扩展的图标。",starEmptyIcon:"扩展编辑器中用于评级的中空星形图标。",starFullIcon:"扩展编辑器中用于评级的实心星形图标。",starHalfIcon:"扩展编辑器中用于评级的半星图标。",syncEnabledIcon:"用于指示扩展已同步的图标。",syncIgnoredIcon:"用于指示在同步时忽略扩展的图标。",trustIcon:"扩展编辑器中随工作区信任消息一同显示的图标。",verifiedPublisher:"用于扩展视图和编辑器中已验证扩展发布服务器的图标。",warningIcon:"扩展编辑器中随警告消息一同显示的图标。"},"vs/workbench/contrib/extensions/browser/extensionsQuickAccess":{install:"按 Enter 来安装扩展“{0}”。",manage:"按 Enter 来管理扩展。",searchFor:'按 Enter 以搜索扩展"{0}"。',type:"键入扩展名称进行安装或搜索。"},"vs/workbench/contrib/extensions/browser/extensionsViewer":{"Unknown Extension":"未知扩展:",error:"错误",extensions:"扩展"},"vs/workbench/contrib/extensions/browser/extensionsViewlet":{availableUpdates:"可用更新",builtInThemesExtensions:"主题",builtin:"内置",builtinFeatureExtensions:"功能",builtinProgrammingLanguageExtensions:"编程语言",deprecated:"已弃用",disabled:"已禁用",disabledExtensions:"已禁用",enabled:"已启用",enabledExtensions:"已启用",extensionFound:"找到 1 个扩展。",extensionFoundInSection:"在“{0}”小节中找到 1 个扩展。",extensionToReload:"{0} 需要重启",extensionToUpdate:"{0} 需要更新",extensionsFound:"找到 {0} 个扩展。",extensionsFoundInSection:"在“{1}”小节中找到 {0} 个扩展。",extensionsToReload:"{0} 需要重启",extensionsToUpdate:"{0} 需要更新","install remote in local":"本地安装远程扩展…",installed:"已安装","malicious warning":"我们卸载了“{0}”,它被报告存在问题。",marketPlace:"商店","open user settings":"打开用户设置",otherRecommendedExtensions:"其他推荐",popularExtensions:"热门","recently updated":"最近更新",recommendedExtensions:"推荐",reloadNow:"立即重新加载",remote:"远程",searchExtensions:"在应用商店中搜索扩展","select and install local extensions":"在“{0}”中安装本地扩展…",suggestProxyError:'市场返回了 "ECONNREFUSED"。请检查 "http.proxy" 设置。',untrustedPartiallySupportedExtensions:"限制在受限模式下",untrustedUnsupportedExtensions:"在受限模式下禁用",virtualPartiallySupportedExtensions:"限制在虚拟工作区中",virtualUnsupportedExtensions:"在虚拟工作区中禁用",workspaceRecommendedExtensions:"工作区推荐",workspaceUnsupported:"工作区不受支持"},"vs/workbench/contrib/extensions/browser/extensionsViews":{error:"提取扩展时出错。{0}","extension.arialabel.deprecated":"已弃用","extension.arialabel.publisher":"发布服务器 {0}","extension.arialabel.rating":"{1} 用户评了 {0} 星,共 5 星","extension.arialabel.verifiedPublisher":"已验证的发布服务器 {0}",extensions:"扩展","no extensions found":"找不到扩展。","no local extensions":"没有要安装的扩展。","offline error":"离线时无法搜索市场,请检查网络连接。","open user settings":"打开用户设置",suggestProxyError:'市场返回了 "ECONNREFUSED"。请检查 "http.proxy" 设置。'},"vs/workbench/contrib/extensions/browser/extensionsWidgets":{"Show prerelease version":"预发布版本",activation:"激活时间",dependencies:"显示依赖关系","extensionIcon.sponsorForeground":"扩展发起人的图标颜色。",extensionIconStarForeground:"扩展分级的图标颜色。",extensionIconVerifiedForeground:"已验证扩展的发布服务器图标颜色。",extensionPreReleaseForeground:"预发布扩展的图标颜色。","has prerelease":"此扩展具有可用的 {0}","local extension":"本地扩展",message:"1 条消息",messages:"{0} 条消息","publisher verified tooltip":"此发布者已验证 {0} 的所有权",ratedLabel:"平均评分: {0} 分(共 5 分)",recommendationHasBeenIgnored:"您已选择不接收此扩展的推荐。","remote extension title":"{0} 中的扩展",sponsor:"发起人",startup:"启动","syncingore.label":"此扩展在同步期间被忽略。","uncaught error":"1 个未捕获错误","uncaught errors":"{0} 个未捕获错误",updateRequired:"最新版本:","workspace extension":"工作区扩展"},"vs/workbench/contrib/extensions/browser/extensionsWorkbenchService":{"Manifest is not found":"未找到清单文件","disable all":"全部禁用","enable locally":"请使用 {0} 以在本地启用此扩展。","enable remote":"请 {0} 以在 {1} 启用此扩展。",enableButtonLabel:"启用扩展(&&E)",enableButtonLabelWithAction:"启用扩展和 {0}(&&E)",enableExtensionMessage:"是否要启用“{0}”扩展?",enableExtensionTitle:"启用扩展",incompatible:"无法安装“{0}”扩展,因为它不兼容。",installButtonLabel:"安装扩展(&&I)",installButtonLabelWithAction:"安装扩展和 {0}(&&I)",installExtensionMessage:"是否要从“{1}”安装“{0}”扩展?",installExtensionTitle:"安装扩展",installVSIXMessage:"是否要安装扩展?","installing extension":"正在安装扩展...","installing named extension":'正在安装 "{0}" 扩展...',malicious:"报告称该扩展存在问题。",multipleDependentsError:'无法单独禁用 "{0}" 扩展。"{1}"、"{2}" 和其他扩展依赖于此扩展。要禁用所有这些扩展吗?',"not found":"无法安装扩展“{0}”,因为找不到它。","not found version":"无法安装扩展“{0}”,因为找不到请求的版本“{1}”。",open:"打开扩展",postDisableTooltip:"请使用 {0} 以禁用此扩展。",postEnableTooltip:"请使用 {0} 以启用此扩展。",postUninstallTooltip:"请使用 {0} 以完成此扩展的卸载。",postUpdateDownloadTooltip:"请更新 {0} 以启用更新后的扩展。",postUpdateRestartTooltip:"请重启 {0} 以启用更新后的扩展。",postUpdateTooltip:"请使用 {0} 以启用更新后的扩展。",postUpdateUpdateTooltip:"请更新 {0} 以启用更新后的扩展。",reload:"重新加载窗口",restart:"启用或禁用扩展","restart extensions":"重新启动扩展",singleDependentError:'无法单独禁用 "{0}" 扩展。"{1}" 扩展依赖于此扩展。要禁用所有这些扩展吗?',"sync extension":"同步此扩展",twoDependentsError:'无法单独禁用 "{0}" 扩展。"{1}" 和 "{2}" 扩展依赖于此扩展。要禁用所有这些扩展吗?',uninstallingExtension:"正在卸载扩展...",unknown:"无法安装扩展"},"vs/workbench/contrib/extensions/browser/fileBasedRecommendations":{fileBasedRecommendation:"根据你最近打开的文件,建议使用此扩展。",languageName:"{0} 语言"},"vs/workbench/contrib/extensions/browser/webRecommendations":{reason:"建议将此扩展用于 {0} Web 版"},"vs/workbench/contrib/extensions/browser/workspaceRecommendations":{workspaceRecommendation:"当前工作区的用户建议使用此扩展。"},"vs/workbench/contrib/extensions/common/extensionsFileTemplate":{"app.extension.identifier.errorMessage":'预期的格式 "${publisher}.${name}"。例如: "vscode.csharp"。',"app.extensions.json.recommendations":'向此工作区的用户推荐的扩展列表。扩展的标识符始终为 "${publisher}.${name}"。例如: "vscode.csharp"。',"app.extensions.json.title":"扩展","app.extensions.json.unwantedRecommendations":'不应向此工作区的用户推荐的扩展列表。扩展的标识符始终为 "${publisher}.${name}"。例如: "vscode.csharp"。'},"vs/workbench/contrib/extensions/common/extensionsInput":{extensionsEditorLabelIcon:"扩展编辑器标签的图标。",extensionsInputName:"扩展: {0}"},"vs/workbench/contrib/extensions/common/extensionsUtils":{disableOtherKeymapsConfirmation:"是否禁用其他按键映射扩展 ({0}),从而避免按键绑定之间的冲突?",no:"否",yes:"是"},"vs/workbench/contrib/extensions/common/reportExtensionIssueAction":{reportExtensionIssue:"报告问题"},"vs/workbench/contrib/extensions/common/runtimeExtensionsInput":{extensionsInputName:"正在运行的扩展",runtimeExtensionEditorLabelIcon:"运行时扩展编辑器标签的图标。"},"vs/workbench/contrib/extensions/electron-sandbox/debugExtensionHostAction":{debugExtensionHost:"启动调试扩展宿主","debugExtensionHost.launch.name":"附加扩展主机",restart1:"分析扩展",restart2:"需要重启,才能分析扩展。是否要立即重启“{0}”?",restart3:"重启(&&R)"},"vs/workbench/contrib/extensions/electron-sandbox/extensionProfileService":{profilingExtensionHost:"分析扩展主机",profilingExtensionHostTime:"分析扩展主机({0} 秒)",restart1:"分析扩展",restart2:"需要重启,才能分析扩展。是否要立即重启“{0}”?",restart3:"重启(&&R)",selectAndStartDebug:"单击可停止分析。","status.profiler":"扩展探查器"},"vs/workbench/contrib/extensions/electron-sandbox/extensions.contribution":{runtimeExtension:"正在运行的扩展"},"vs/workbench/contrib/extensions/electron-sandbox/extensionsActions":{cleanUpExtensionsFolder:"清理扩展文件夹",openExtensionsFolder:"打开扩展文件夹"},"vs/workbench/contrib/extensions/electron-sandbox/extensionsAutoProfiler":{show:"显示扩展程序","unresponsive-exthost":"扩展“{0}”的上一次操作花费时间较长,阻碍了其他扩展的运行。"},"vs/workbench/contrib/extensions/electron-sandbox/extensionsSlowActions":{"attach.msg":'这是一个提醒, 以确保您没有忘记将 "{0}" 附加到刚刚创建的问题。',"attach.msg2":'这是一个提醒, 以确保您没有忘记将 "{0}" 归入现有的性能问题中。',"attach.title":"您是否附上了 cpu 配置文件?","cmd.report":"报告问题","cmd.reportOrShow":"性能问题","cmd.show":"显示问题"},"vs/workbench/contrib/extensions/electron-sandbox/runtimeExtensionsEditor":{extensionHostProfileStart:"开始分析扩展宿主",saveExtensionHostProfile:"保存扩展宿主分析文件","saveprofile.dialogTitle":"保存扩展宿主分析文件",stopExtensionHostProfileStart:"停止分析扩展宿主"},"vs/workbench/contrib/externalTerminal/browser/externalTerminal.contribution":{"scopedConsoleAction.Integrated":"在集成终端中打开","scopedConsoleAction.external":"在外部终端中打开","scopedConsoleAction.wt":"在 Windows 终端中打开"},"vs/workbench/contrib/externalTerminal/electron-sandbox/externalTerminal.contribution":{"explorer.openInTerminalKind":"在终端中从资源管理器打开文件时,确定将启动哪种类型的终端",globalConsoleAction:"打开新的外部终端","sourceControlRepositories.openInTerminalKind":"当从终端中从“源代码管理存储库”视图中打开文件时,确定将启动哪种类型的终端","terminal.explorerKind.both":"将其他两个一起使用。","terminal.explorerKind.external":"使用设定的外部终端。","terminal.explorerKind.integrated":"使用 VS Code 的集成终端。","terminal.external.linuxExec":"自定义要在 Linux 上运行的终端。","terminal.external.osxExec":"定义在 macOS 上运行的终端应用程序。","terminal.external.windowsExec":"自定义要在 Windows 上运行的终端。","terminal.sourceControlRepositoriesKind.both":"将其他两个一起使用。","terminal.sourceControlRepositoriesKind.external":"使用设定的外部终端。","terminal.sourceControlRepositoriesKind.integrated":"使用 VS Code 的集成终端。",terminalConfigurationTitle:"外部终端"},"vs/workbench/contrib/externalUriOpener/common/configuration":{externalUriOpeners:"配置开启程序以用于外部 URI (即 http、https)。","externalUriOpeners.defaultId":"使用 VS Code 的标准打开器打开。","externalUriOpeners.uri":"将 URI 模式映射到开启程序 ID。\r\n示例模式: \r\n{0}"},"vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService":{selectOpenerConfigureTitle:"配置默认开启程序…",selectOpenerDefaultLabel:"在默认浏览器中打开","selectOpenerDefaultLabel.web":"在新浏览器窗口中打开",selectOpenerPlaceHolder:"你希望以何种方式打开: {0}"},"vs/workbench/contrib/feedback/browser/feedback":{"character left":"剩余字符","characters left":"剩余字符",close:"关闭",feedbackTextInput:"告诉我们您的反馈意见",frownCaption:"负面反馈情绪","label.sendASmile":"通过 Tweet 向我们发送反馈。","other ways to contact us":"联系我们的其他方式",patchedVersion1:"安装已损坏。",patchedVersion2:"如果提交了 bug,请指定此项。","request a missing feature":"请求缺失功能",sentiment:"您的体验如何?",showFeedback:"在状态栏中显示反馈图标",smileCaption:"正面反馈情绪","submit a bug":"提交 bug","tell us why":"告诉我们原因?",tweet:"推文",tweetFeedback:"Tweet 反馈"},"vs/workbench/contrib/feedback/browser/feedbackStatusbarItem":{"status.feedback":"Tweet 反馈","status.feedback.name":"反馈"},"vs/workbench/contrib/files/browser/editors/binaryFileEditor":{binaryFileEditor:"二进制文件查看器"},"vs/workbench/contrib/files/browser/editors/textFileEditor":{createFile:"创建文件",fileIsDirectory:"此文件未显示在文本编辑器中,因为它是一个目录。",fileTooLargeForHeapErrorWithSize:"此文件未显示在文本编辑器中,因为它非常大({0})。",fileTooLargeForHeapErrorWithoutSize:"此文件未显示在文本编辑器中,因为它非常大。",openFolder:"打开文件夹",reveal:"显示文件夹",textFileEditor:"文本文件编辑器",unavailableResourceErrorEditorText:"由于找不到该文件,因此无法打开编辑器。"},"vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler":{compareChanges:"比较",configure:"配置",discard:"放弃",dontShowAgain:"不再显示",genericSaveError:"未能保存“{0}”: {1}",learnMore:"了解详细信息",overwrite:"覆盖",overwriteElevated:"以管理员身份覆盖...",overwriteElevatedSudo:"以超级用户身份覆盖...",permissionDeniedSaveError:"无法保存“{0}”: 权限不足。选择“以管理员身份覆盖”可作为管理员重试。",permissionDeniedSaveErrorSudo:'保存 "{0}"失败: 权限不足。选择 "以超级用户身份重试" 以超级用户身份重试。',readonlySaveError:'未能保存 "{0}": 文件是只读的。可选择 "覆盖" 以尝试使其可写。',readonlySaveErrorAdmin:'未能保存 "{0}": 文件是只读的。以管理员身份选择 "以管理员身份覆盖" 重试。',readonlySaveErrorSudo:'保存"{0}"失败: 文件为只读。选择“覆盖为Sudo”以用超级用户身份重试。',retry:"重试",saveConflictDiffLabel:"{0} (在文件中) ↔ {1} (在 {2} 中) - 解决保存冲突",saveElevated:"以管理员身份重试...",saveElevatedSudo:"以用户…重试。",staleSaveError:'无法保存"{0}": 文件的内容较新。请将您的版本与文件内容进行比较,或用您的更改覆盖文件内容。',userGuide:"通过编辑器工具栏中的操作,可撤消所做的更改,也可使用所做的更改覆盖文件的内容。"},"vs/workbench/contrib/files/browser/explorerViewlet":{addAFolder:"添加文件夹",explore:"资源管理器",explorerViewIcon:"查看资源管理器视图的图标。",folders:"文件夹",miViewExplorer:"资源管理器(&&E)",noFolderButEditorsHelp:"尚未打开文件夹。\r\n{0}\r\n打开文件夹将关闭所有当前打开的编辑器。要使其保持打开状态,请改为 {1}。",noFolderHelp:"尚未打开文件夹。\r\n{0}",noFolderHelpWeb:"尚未打开文件夹。\r\n{0}\r\n{1}",noWorkspaceHelp:"尚未将文件夹添加到工作区。\r\n{0}",openEditorsIcon:"查看打开编辑器视图的图标。",openFolder:"打开文件夹",openRecent:"打开最近的文件",remoteNoFolderHelp:"已连接到远程。\r\n{0}"},"vs/workbench/contrib/files/browser/fileActions":{binFailed:"无法删除到回收站。是否永久删除?",clipboardComparisonLabel:"剪贴板 ↔ {0}",closeGroup:"关闭组",compareFileWithMeta:"打开选取器以选择要与活动编辑器进行差异处理的文件。",compareNewUntitledTextFiles:"比较新的无标题文本文件",compareNewUntitledTextFilesMeta:"打开包含两个未命名文件的新差异编辑器。",compareWithClipboard:"比较活动文件与剪贴板",compareWithClipboardMeta:"打开新的差异编辑器,将活动文件与剪贴板的内容进行比较。",confirmDeleteMessageFile:"是否确定要永久删除“{0}”?",confirmDeleteMessageFilesAndDirectories:"是否确定要永久删除以下 {0} 个文件或文件夹 (包括其内容)?",confirmDeleteMessageFolder:"是否确定要永久删除“{0}”及其内容?",confirmDeleteMessageMultiple:"是否确定要永久删除以下 {0} 个文件?",confirmDeleteMessageMultipleDirectories:"是否确定要永久删除以下 {0} 个目录及其内容?",confirmMoveTrashMessageFile:"是否确实要删除“{0}”?",confirmMoveTrashMessageFilesAndDirectories:"是否确定要删除以下 {0} 个文件或文件夹 (包括其内容)?",confirmMoveTrashMessageFolder:"是否确实要删除“{0}”及其内容?",confirmMoveTrashMessageMultiple:"是否确定要删除以下 {0} 个文件?",confirmMoveTrashMessageMultipleDirectories:"是否确定要删除以下 {0} 个文件夹及其内容?",confirmMultiPasteNative:"是否确实要粘贴以下 {0} 项目?",confirmOverwrite:'目标文件夹中已存在名称为 "{0}" 的文件或文件夹。是否要替换它?',confirmPasteNative:"是否确实要粘贴“{0}”?",copyBulkEdit:"粘贴 {0} 个文件",copyFile:"复制",copyFileBulkEdit:"粘贴{0}",copyingBulkEdit:"正在复制 {0} 个文件",copyingFileBulkEdit:"正在复制 {0}",createBulkEdit:"创建 {0}",creatingBulkEdit:"正在创建 {0}",delete:"删除",deleteBulkEdit:"删除 {0} 个文件",deleteButtonLabel:"删除(&&D)",deleteButtonLabelRecycleBin:"移动到回收站(&&M)",deleteButtonLabelTrash:"移动到废纸篓(&&M)",deleteFileBulkEdit:"删除{0}",deletePermanentlyButtonLabel:"永久删除(&&D)",deletingBulkEdit:"正在删除 {0} 个文件",deletingFileBulkEdit:"正在删除 {0}",dirtyMessageFileDelete:"你正在删除具有未保存更改的 {0}。是否要继续?",dirtyMessageFilesDelete:"你删除的文件中具有未保存的更改。是否继续?",dirtyMessageFolderDelete:"你正在删除文件夹 {0},其中 {1} 个文件中有未保存的更改。是否要继续?",dirtyMessageFolderOneDelete:"你正在删除文件夹 {0},但其中 1 个文件中有未保存的更改。是否要继续?",dirtyWarning:"如果不保存,你的更改将丢失。",doNotAskAgain:"不再询问",download:"下载...",emptyFileNameError:"必须提供文件或文件夹名。",fileDeleted:"复制后要粘贴的文件已被删除或移动。{0}",fileIsAncestor:"粘贴的项目是目标文件夹的上级",fileNameExistsError:"此位置已存在文件或文件夹 **{0}**。请选择其他名称。",fileNameStartsWithSlashError:"文件或文件夹名称不能以斜杠开头。",fileNameWhitespaceWarning:"在文件或文件夹名称中检测到的前导或尾随空格。",focusFilesExplorer:"聚焦到“文件资源管理器”视图",focusFilesExplorerMetadata:"将焦点移动到文件资源管理器的视图容器。",globalCompareFile:"比较活动文件与...",invalidFileNameError:"名称 **{0}** 作为文件或文件夹名无效。请选择其他名称。",irreversible:"此操作不可逆!",moveBulkEdit:"移动 {0} 个文件",moveFileBulkEdit:"移动 {0}",movingBulkEdit:"正在移动 {0} 个文件",movingFileBulkEdit:"正在移动 {0}",newFile:"新建文件...",newFolder:"新建文件夹...",openFileInEmptyWorkspace:"在新的空白工作区中打开活动文件",openFileInEmptyWorkspaceMetadata:"在新窗口中打开活动文件,而不打开任何文件夹。","openFileToShowInNewWindow.unsupportedschema":"活动编辑器必须包含可打开的资源。",pasteButtonLabel:"粘贴(&&P)",pasteFile:"粘贴",rename:"重命名...",renameBulkEdit:"将 {0} 重命名为 {1}",renamingBulkEdit:"将 {0} 重命名为 {1}",replaceButtonLabel:"替换(&&R)",resetActiveEditorReadonlyInSession:"在会话中重置活动编辑器只读",restore:"可以使用“撤消”命令还原此文件。",restorePlural:"可以使用“撤消”命令还原这些文件。",retry:"重试",retryButtonLabel:"重试(&&R)",saveAllInGroup:"全部保存在组中",setActiveEditorReadonlyInSession:"在会话中设置活动编辑器只读",setActiveEditorWriteableInSession:"在会话中设置活动编辑器可写",showInExplorer:"在资源管理器视图中显示活动文件",showInExplorerMetadata:"在资源管理器视图中显示并选择活动文件。",toggleActiveEditorReadonlyInSession:"在会话中切换活动编辑器只读",toggleAutoSave:"切换开关自动保存",toggleAutoSaveDescription:"切换键入后自动保存文件的功能",trashFailed:"无法删除到废纸篓。是否永久删除?",undoBin:"您可以从回收站还原此文件。",undoBinFiles:"您可以从回收站还原这些文件。",undoTrash:"您可以从回收站还原此文件。",undoTrashFiles:"您可以从回收站还原这些文件。",upload:"上传..."},"vs/workbench/contrib/files/browser/fileActions.contribution":{acceptLocalChanges:"使用所做的更改并覆盖文件内容",close:"关闭",closeAll:"全部关闭",closeOthers:"关闭其他",closeSaved:"关闭已保存",compareActiveWithSaved:"比较活动与已保存的文件",compareActiveWithSavedMeta:"打开新的差异编辑器,将活动文件与磁盘上的版本进行比较。",compareSelected:"将已选项进行比较",compareSource:"选择以进行比较",compareWithSaved:"与已保存文件比较",compareWithSelected:"与已选项目进行比较",copyPath:"复制路径",copyPathOfActive:"复制活动文件的路径",copyRelativePath:"复制相对路径",copyRelativePathOfActive:"复制活动文件的相对路径",cut:"剪切",deleteFile:"永久删除",explorerOpenWith:"打开方式…",miAutoSave:"自动保存(&&U)",miCloseEditor:"关闭编辑器(&&C)",miGotoFile:"转到文件(&&F)...",miNewFile:"新建文本文件(&&N)",miRevert:"还原文件(&&V)",miSave:"保存(&&S)",miSaveAll:"全部保存(&&L)",miSaveAs:"另存为(&&A)...",newFile:"新建文本文件",newFolderDescription:"创建新文件夹或目录",openFile:"打开文件...",openToSide:"在侧边打开",reopenWith:"重新打开编辑器的方式...",revealInSideBar:"在资源管理器视图中显示",revert:"还原文件",revertLocalChanges:"放弃所做的更改并恢复到文件内容",saveAll:"全部保存",saveAllInGroup:"全部保存在组中",saveFiles:"保存所有文件"},"vs/workbench/contrib/files/browser/fileCommands":{discard:"放弃",genericRevertError:"未能还原“{0}”: {1}",genericSaveError:"未能保存“{0}”: {1}",modifiedLabel:"{0} (在文件中) ↔ {1}","newFileCommand.saveLabel":"创建文件",retry:"重试"},"vs/workbench/contrib/files/browser/fileConstants":{newUntitledFile:"新的无标题文本文件",removeFolderFromWorkspace:"将文件夹从工作区删除",save:"保存",saveAll:"全部保存",saveAs:"另存为...",saveWithoutFormatting:"保存但不格式化"},"vs/workbench/contrib/files/browser/fileImportExport":{addFolder:"将文件夹添加到工作区(&&A)",addFolders:"将文件夹添加到工作区(&&A)",chooseWhereToDownload:"选择下载位置",confirmManyOverwrites:"目标文件夹中已存在以下 {0} 个文件和/或文件夹。是否要替换它们?",confirmOverwrite:'目标文件夹中已存在名称为"{0}"的文件或文件夹。是否要替换它?',copyFolder:"复制文件夹(&&C)",copyFolders:"复制文件夹(&&C)",copyfolder:"确定要复制“{0}”吗?",copyfolders:"确定要复制文件夹吗?",copyingFile:"正在复制 {0}",copyingFiles:"正在复制...",copyingnFile:"正在复制 {0} 资源",downloadBulkEdit:"下载 {0}",downloadButton:"下载",downloadProgressLarge:"{0} ({1}/{2},{3}/秒)",downloadProgressSmallMany:"{0} 个文件,共 {1} 个({2}/秒)",downloadingBulkEdit:"正在下载 {0}",downloadingFiles:"正在下载",dropFolder:"是否要复制“{0}”或将“{0}”作为文件夹添加工作区?",dropFolders:"是否要复制文件夹或将其添加到工作区?",fileInaccessible:"无法访问已删除文件以进行导入。",filesInaccessible:"无法访问部分或所有已删除文件,以进行导入。",importFile:"导入{0}",importnFile:"导入 {0} 个资源",irreversible:"此操作不可逆!",overwrite:"覆盖 {0}",overwriting:"正在覆盖 {0}",replaceButtonLabel:"替换(&&R)",uploadProgressLarge:"{0} ({1}/{2},{3}/秒)",uploadProgressSmallMany:"{0} 个文件,共 {1} 个({2}/秒)",uploadingFiles:"正在上传"},"vs/workbench/contrib/files/browser/files.contribution":{askUser:"将拒绝保存并请求手动解决保存冲突。",associations:"配置与语言的文件关联的 [glob patterns](https://aka.ms/vscode-glob-patterns)(例如“*.extension”:“html”)。如果模式包含路径分隔符,则模式将在文件的绝对路径上匹配,否则将匹配文件的名称。它们优先于安装的语言的默认关联。",autoGuessEncoding:"启用后,编辑器将尝试在打开文件时猜测字符集编码。还可以按语言配置此设置。请注意,文本搜索不遵守此设置。仅遵守 {0}。",autoReveal:"控制资源管理器是否应在打开文件时自动显示并选择文件。","autoReveal.focusNoScroll":"文件不会滚动到视图中,但仍会获得焦点。","autoReveal.off":"不会显示和选择文件。","autoReveal.on":"将显示和选择文件。",autoRevealExclude:"配置路径或 [glob 模式](https://aka.ms/vscode-glob-patterns),以便在打开文件和文件夹时避免在资源管理器中显示和选择这些文件和文件夹。glob 模式的计算结果始终是相对于工作区文件夹路径所在的位置,除非它们是绝对路径。",autoSave:"控制具有未保存更改的编辑器的 [自动保存](https://code.visualstudio.com/docs/editor/codebasics#_save-auto-save)。",autoSaveDelay:"控制自动保存具有未保存更改的编辑器之前的延迟(以毫秒为单位)。只有当 `#files.autoSave#` 设置为 `{0}` 时才适用。",autoSaveWhenNoErrors:"启用后,会将编辑器 [auto save](https://code.visualstudio.com/docs/editor/codebasics#_save-auto-save) 限制为在触发自动保存时未报告任何错误的文件。仅在启用“#files.autoSave#”时适用。",autoSaveWorkspaceFilesOnly:"启用后,会将编辑器 [auto save](https://code.visualstudio.com/docs/editor/codebasics#_save-auto-save) 限制为打开的工作区内的文件。仅在启用“#files.autoSave#”时适用。",binaryFileEditor:"二进制文件编辑器",compressSingleChildFolders:"控制资源管理器是否应以紧凑形式呈现文件夹。在此形式中,单个子文件夹将被压缩在组合的树元素中。例如,对 Java 包结构非常有用。",confirmDelete:"控制资源管理器是否应在通过回收站删除文件时要求确认。",confirmDragAndDrop:"控制资源管理器是否应在通过拖放移动文件或文件夹时要求确认。",confirmPasteNative:"控制在粘贴本机文件和文件夹时资源管理器是否应要求进行确认。",confirmUndo:"控制资源管理器是否应在撤消时要求确认。",copyRelativePathSeparator:"复制相对文件路径时使用的路径分隔字符。","copyRelativePathSeparator.auto":"使用操作系统特定路径分隔字符。","copyRelativePathSeparator.backslash":"使用反斜杠作为路径分隔字符。","copyRelativePathSeparator.slash":"使用斜杠作为路径分隔字符。",defaultLanguage:'分配给新文件的默认语言标识符。如果配置为 "${activeEditorLanguage}",将使用当前活动文本编辑器(如果有)的语言标识符。',defaultPathErrorMessage:"文件对话框的默认路径必须是绝对路径(例如 C:\\\\myFolder 或 /myFolder)。",disabled:"禁用增量命名。如果存在两个具有相同名称的文件,系统将提示你覆盖现有文件。",enableDragAndDrop:"控制资源管理器是否应允许通过拖放来移动文件和文件夹。此设置仅影响从浏览器内部进行拖放。",enableUndo:"控制资源管理器是否应支持撤消文件和文件夹操作。","enableUndo.default":"资源管理器将在破坏性撤消操作之前进行提示。","enableUndo.light":"聚焦时,资源管理器将不会在撤消操作之前进行提示。","enableUndo.verbose":"资源管理器将在所有撤消操作之前进行提示。",encoding:"在读取和写入文件时使用的默认字符集编码。可以按语言对此项进行配置。",eol:"默认行尾字符。","eol.CRLF":"CRLF","eol.LF":"LF","eol.auto":"使用具体操作系统规定的行末字符。",everything:"设置整个文件的格式。",exclude:"配置 [glob 模式](https://aka.ms/vscode-glob-patterns)以排除文件和文件夹。例如,文件资源管理器根据此设置决定要显示或隐藏的文件和文件夹。请参阅 `#search.exclude#` 设置以定义特定于搜索的排除。请参阅 `#explorer.excludeGitIgnore#` 设置以基于 `.gitignore` 忽略文件。",excludeGitignore:"控制是否应从资源管理器中分析和排除 .gitignore 中的条目。类似于 {0}。",expandSingleFolderWorkspaces:"控制资源管理器是否应在初始化期间展开仅包含一个文件夹的多根工作区","explorer.autoRevealExclude.boolean":"匹配文件路径所依据的 glob 模式。设置为 true 或 false 可启用或禁用该模式。","explorer.autoRevealExclude.when":"对匹配文件的同级文件的其他检查。使用 $(basename) 作为匹配文件名的变量。","explorer.decorations.badges":"控制文件修饰是否应使用徽章。","explorer.decorations.colors":"控制文件修饰是否应使用颜色。","explorer.incrementalNaming":"选择在粘贴同名资源管理器项时要使用的重命名方式。",explorerConfigurationTitle:"文件资源管理器",falseDescription:"禁用该模式。",fileDialogDefaultPath:"文件对话框的默认路径,用于替代用户的主路径。仅在缺少特定于上下文的路径时使用,例如最近打开的文件或文件夹。","fileNesting.description":"每个键模式可能包含将与任何字符串匹配的单个 `*` 字符。",fileNestingEnabled:"控制是否已在资源管理器中启用文件嵌套。文件嵌套允许目录中的相关文件在单个父文件下以可视方式组合在一起。",fileNestingExpand:"控制是否自动扩展文件嵌套。要使此操作生效,必须设置 {0}。",fileNestingPatterns:"控制资源管理器中的文件嵌套。必须设置 {0} 才能让它生效。每个 __Item__ 都表示父模式,且可能包含匹配任意字符串的单个 `*` 字符。每个 __Value__ 都表示子模式的逗号分隔列表,这些子模式应显示嵌套在给定父级下。子模式可能包含多个特殊标记:\r\n- `${capture}`: 匹配父模式的 `*` 的解析值\r\n- `${basename}`: 匹配父文件的基名,即 `file.ts` 中的 `file`\r\n- `${extname}`: 匹配父文件的扩展名,即 `file.ts` 中的 `ts`\r\n- `${dirname}`: 匹配父文件的目录名,即 `src/file.ts` 中的 `src`\r\n- `*`: 匹配任意字符串,每个子模式只能使用一次","files.autoSave.afterDelay":"在配置的 `#files.autoSaveDelay#` 之后,会自动保存具有更改的编辑器。","files.autoSave.off":"具有更改的编辑器永远不会自动保存。","files.autoSave.onFocusChange":"当编辑器失去焦点时,会自动保存具有更改的编辑器。","files.autoSave.onWindowChange":"当窗口失去焦点时,会自动保存具有更改的编辑器。","files.exclude.boolean":"匹配文件路径所依据的 glob 模式。设置为 true 或 false 可启用或禁用该模式。","files.exclude.when":"对匹配文件同辈进行额外检查。将 $(basename) 用作匹配文件名的变量。","files.participants.timeout":"超时(以毫秒为单位)后,将取消创建、重命名和删除的文件参与者。使用 `0` 禁用参与者。","files.restoreUndoStack":"重新打开文件后,还原撤消堆栈。","files.saveConflictResolution":"当文件保存到磁盘上并被另一个程序更改时,可能会发生保存冲突。 为了防止数据丢失,要求用户将编辑器中的更改与磁盘上的版本进行比较。 仅当经常遇到保存冲突错误时,才应更改此设置;如果不谨慎使用,可能会导致数据丢失。","files.simpleDialog.enable":"启用简单文件对话框以打开和保存文件和文件夹。简单文件对话框在启用后会替代系统文件对话框。",filesConfigurationTitle:"文件",filesReadonlyExclude:"配置路径或 [glob 模式](https://aka.ms/vscode-glob-patterns),以避免在该路径或模式因 `#files.readonlyInclude#` 设置而发生匹配时被标记为只读。glob 模式的计算结果始终是相对于工作区文件夹路径所在的位置,除非它们是绝对路径。来自只读文件系统提供程序的文件始终是只读文件,不受此设置影响。",filesReadonlyFromPermissions:"当文件权限指示为只读时,将文件标记为只读。可以通过 `#files.readonlyInclude#` 和 `#files.readonlyExclude#` 设置替代此操作。",filesReadonlyInclude:"配置路径或 [glob 模式](https://aka.ms/vscode-glob-patterns)以标记为只读。glob 模式的计算结果始终是相对于工作区文件夹路径所在的位置,除非它们是绝对路径。可以通过 `#files.readonlyExclude#` 设置排除匹配路径。来自只读文件系统提供程序的文件始终是只读文件,不受此设置影响。",formatOnSave:"在保存时格式化文件。格式化程序必须可用,延迟后文件不能保存,并且编辑器不能关闭。",formatOnSaveMode:'控制在保存时设置格式是设置整个文件格式还是仅设置修改内容的格式。仅当 "#editor.formatOnSave#" 处于启用状态时适用。',hotExit:"[热退出](https://aka.ms/vscode-hot-exit)控制是否在会话之间记住未保存的文件,从而允许在退出编辑器时跳过保存提示。","hotExit.off":"禁用热退出。当尝试关闭具有未保存更改的编辑器的窗口时,将显示提示。","hotExit.onExit":'触发 "workbench.action.quit" 命令(命令面板、键绑定、菜单)或在 Windows/Linux 上关闭最后一个窗口时,将触发热退出。所有未打开文件夹的窗口都将在下次启动时恢复。可通过“文件”>“打开最近使用的文件”>“更多…”,访问之前打开的窗口(包含未保存的文件)列表',"hotExit.onExitAndWindowClose":'触发 "workbench.action.quit" 命令(命令面板、键绑定、菜单)或在 Windows/Linux 上关闭最后一个窗口时将触发热退出,还将对已打开文件夹的所有窗口触发热退出(无论是否是最后一个窗口)。所有未打开文件夹的窗口将在下次启动时恢复。可通过“文件”>“打开最近使用的文件”>“更多…”,访问之前打开的窗口(包含未保存的文件)列表',"hotExit.onExitAndWindowCloseBrowser":"当浏览器退出或窗口或选项卡关闭时,将触发热退出。",insertFinalNewline:"启用后,保存文件时在文件末尾插入一个最终新行。",modification:"格式修改(需要源代码管理)。",modificationIfAvailable:"将尝试只对修改进行格式化(需要源代码管理)。如果无法使用源代码管理,则将格式化整个文件。",openEditorsSortOrder:"控制编辑器在“打开编辑器”窗格中的排序顺序。",openEditorsVisible:"“打开编辑器”窗格中显示的初始编辑器数上限。超过此限制将显示滚动条,并允许调整窗格大小以显示更多项目。",openEditorsVisibleMin:"“打开编辑器”窗格中预分配的编辑器槽数下限。如果设置为 0,则“打开编辑器”窗格将根据编辑器数量动态重设大小。",overwriteFileOnDisk:"将通过在编辑器中用更改覆盖磁盘上的文件来解决保存冲突。",simple:"在重复名称的末尾附加单词“copy”,后面可能跟一个数字。",smart:"在重复名称的末尾添加一个数字。如果某个号码已经是名称的一部分,请尝试增加该号码。",sortOrder:"控制资源管理器中文件和文件夹基于属性的排序。启用 `#explorer.fileNesting.enabled#` 后,还控制嵌套文件的排序。","sortOrder.alphabetical":"编辑器在每个编辑器组内按选项卡名称以字母顺序排序。","sortOrder.default":"按名称排列文件和文件夹。文件夹显示在文件前。","sortOrder.editorOrder":"编辑器按编辑器标签显示的顺序排列。","sortOrder.filesFirst":"按名称排列文件和文件夹。文件显示在文件夹前。","sortOrder.foldersNestsFiles":"文件和文件夹按其名称排序。文件夹显示在文件之前。具有嵌套子级的文件将显示在其他文件之前。","sortOrder.fullPath":"编辑器在每个编辑器组内按完整路径以字母顺序排序。","sortOrder.mixed":"按名称排列文件和文件夹。两者穿插显示。","sortOrder.modified":"按最后修改日期降序排列文件和文件夹。文件夹显示在文件前。","sortOrder.type":"按拓展类型为文件和文件夹分组,然后按名称排列它们。文件夹显示在文件前。",sortOrderLexicographicOptions:"在资源管理器中控制文件和文件夹名称的词典排序。","sortOrderLexicographicOptions.default":"将大写和小写名称混合在一起。","sortOrderLexicographicOptions.lower":"小写名称组合在一起,位于大写名称之前。","sortOrderLexicographicOptions.unicode":"名称按 unicode 顺序排序。","sortOrderLexicographicOptions.upper":"大写名称组合在一起,位于小写名称之前。",textFileEditor:"文本文件编辑器",trimFinalNewlines:"启用后,保存文件时将删除在最终新行后的所有新行。",trimTrailingWhitespace:"启用后,将在保存文件时删除行尾的空格。",trimTrailingWhitespaceInRegexAndStrings:"启用后,将在保存时或执行 'editor.action.trimTrailingWhitespace' 时从多行字符串中移除尾随空格,并将移除正则表达式。当没有最新的标记信息时,这可能导致无法从各行中剪裁掉空格。",trueDescription:"启用该模式。",useTrash:"在删除文件或文件夹时,将它们移动到操作系统的“废纸篓”中 (Windows 为“回收站”)。禁用此设置将永久删除文件或文件夹。",watcherExclude:"配置要从文件监视中排除的路径或 [glob 模式](https://aka.ms/vscode-glob-patterns)。路径可以相对于被监视的文件夹,也可以是绝对路径。glob 模式相对于被监视的文件夹进行匹配。当遇到文件观察程序进程消耗大量 CPU 的情况时,请确保排除不太重要的大型文件夹(例如生成输出文件夹)。",watcherInclude:"配置额外路径以监视工作区内的更改。默认情况下,将以递归方式监视所有工作区文件夹,但符号链接的文件夹除外。可以显式添加绝对路径或相对路径,以支持作为符号链接的监视文件夹。将使用当前打开的工作区将相对路径解析为绝对路径。"},"vs/workbench/contrib/files/browser/views/emptyView":{noWorkspace:"无打开的文件夹"},"vs/workbench/contrib/files/browser/views/explorerDecorationsProvider":{canNotResolve:"无法解析工作区文件夹 ({0})",label:"资源管理器",symbolicLlink:"符号链接",unknown:"未知文件类型"},"vs/workbench/contrib/files/browser/views/explorerView":{collapseExplorerFolders:"在资源管理器中折叠文件夹",collapseExplorerFoldersMetadata:"折叠资源管理器中的所有文件夹。",createNewFile:"新建文件...",createNewFolder:"新建文件夹...",explorerSection:"资源管理器部分: {0}",refreshExplorer:"刷新资源管理器",refreshExplorerMetadata:"强制刷新资源管理器。"},"vs/workbench/contrib/files/browser/views/explorerViewer":{confirmMove:'是否确定要将"{0}"移到"{1}"?',confirmMultiMove:"确定要将以下文件{0}移动至{1}?",confirmRootMove:"是否确定要更改工作区中根文件夹“{0}”的顺序?",confirmRootsMove:"是否确定要更改工作区中多个根文件夹的顺序?",copy:"复制 {0}",copying:"正在复制 {0}",doNotAskAgain:"不再询问",fileInputAriaLabel:'输入文件名。按 "Enter" 键确认或按 "Esc" 键取消。',move:"移动 {0}",moveButtonLabel:"移动(&&M)",moving:"正在移动 {0}",numberOfFiles:"{0} 文件",numberOfFolders:"{0} 文件夹",treeAriaLabel:"文件资源管理器"},"vs/workbench/contrib/files/browser/views/openEditorsView":{dirtyCounter:"{0} 个未保存",flipLayout:"切换垂直/水平编辑器布局",miToggleEditorLayout:"翻转布局(&&L)",miToggleEditorLayoutWithoutMnemonic:"翻转布局",newUntitledFile:"新的无标题文本文件",openEditors:"打开的编辑器"},"vs/workbench/contrib/files/browser/workspaceWatcher":{enospcError:"无法监视文件更改。请按照说明链接来解决此问题。",eshutdownError:"文件更改观察程序意外停止。重新加载窗口可能再次启用观察程序,除非无法监视工作区的文件更改。",learnMore:"说明",reload:"重新加载"},"vs/workbench/contrib/files/common/dirtyFilesIndicator":{dirtyFile:"1 个未保存的文件",dirtyFiles:"{0} 个未保存的文件"},"vs/workbench/contrib/files/common/files":{explorerResourceCut:"如果 EXPLORER 中的一个项已被剪切用于剪切和粘贴,则为 True。",explorerResourceIsFolder:"如果 EXPLORER 中的焦点项是文件夹,则为 True。",explorerResourceIsRoot:"如果 EXPLORER 中的焦点项是根文件夹,则为 True。",explorerResourceMoveableToTrash:"如果 EXPLORER 中的焦点项可移到垃圾桶,则为 True。",explorerResourceReadonly:"当 EXPLORER 中的焦点项为只读时为 True。",explorerViewletCompressedFirstFocus:"当焦点位于 EXPLORER 视图中精简项的第一个部分的内部时为 True。",explorerViewletCompressedFocus:"如果 EXPLORER 视图中的焦点项是精简项,则为 True。",explorerViewletCompressedLastFocus:"当焦点位于 EXPLORER 视图中精简项的最后一个部分的内部时为 True。",explorerViewletFocus:"当焦点位于 EXPLORER Viewlet 内时为 True。",explorerViewletVisible:"当 EXPLORER Viewlet 可见时为 True。",filesExplorerFocus:"当焦点位于 EXPLORER 视图内时为 True。",foldersViewVisible:"当“文件夹”视图(资源管理器视图容器内的文件树)可见时为 True。",openEditorsFocus:"当焦点位于 OPEN EDITORS 视图内时为 True。",viewHasSomeCollapsibleItem:"如果资源管理器视图中的工作区具有一些可折叠的根子级,则为 true。"},"vs/workbench/contrib/files/electron-sandbox/fileActions.contribution":{filesCategory:"文件",miShare:"共享",openContainer:"打开所在的文件夹",revealInMac:"在 Finder 中显示",revealInWindows:"在文件资源管理器中显示"},"vs/workbench/contrib/folding/browser/folding.contribution":{"formatter.default":"定义优先于所有其他折叠范围提供程序的默认折叠范围提供程序。必须是提供折叠范围提供程序的扩展的标识符。",null:"全部",nullFormatterDescription:"所有活动折叠范围提供程序"},"vs/workbench/contrib/format/browser/formatActionsMultiple":{config:"配置默认格式化程序...","config.bad":'扩展 "{0}" 配置为格式化程序, 但不可用。选择其他默认格式化程序以继续。',"config.needed":"“{0}”文件有多个格式化程序。其中一个应配置为默认格式化程序。",def:"(默认值)","do.config":"配置(&&C)...","do.config.command":"配置...","do.config.notification":"配置...","format.placeHolder":"选择格式化程序","formatDocument.label.multiple":"使用...格式化文档","formatSelection.label.multiple":"格式化选定内容的方式...",formatter:"格式设置","formatter.default":"定义一个默认格式化程序, 该格式化程序优先于所有其他格式化程序设置。必须是提供格式化程序的扩展的标识符。",miss:"配置默认格式化程序","miss.1":"扩展 '{0}' 配置为格式化程序,但不能格式化 '{1}'-文件","miss.2":"扩展“{0}”配置为格式化程序,但它只能将“{1}”文件作为一个整体进行格式化,而不能格式化选定的内容或部分文件。",null:"无",nullFormatterDescription:"没有",select:"为“{0}”文件选择默认的格式化程序",summary:"格式化程序冲突"},"vs/workbench/contrib/format/browser/formatActionsNone":{"formatDocument.label.multiple":"格式化文档","install.formatter":"安装格式化程序(&&I)...","no.provider":"没有安装用于“{0}”文件的格式化程序。","too.large":"此文件过大,无法进行格式设置"},"vs/workbench/contrib/format/browser/formatModified":{formatChanges:"设置修改过的行的格式"},"vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty":{description:"具有内嵌提示信息的代码",isReadingLineWithInlayHints:"当前行及其内嵌提示是否是当前焦点","read.title":"使用内联提示读取行","stop.title":"停止内嵌提示读取"},"vs/workbench/contrib/inlineChat/browser/inlineChatActions":{apply1:"接受更改",apply2:"接受",arrowDown:"光标向下",arrowUp:"光标向上",cancel:"取消",cat:"内联聊天",close:"关闭",configure:"配置 ",copyRecordings:"(开发人员)将 Exchange 写入剪贴板",discard:"放弃",discardMenu:"放弃...",focus:"聚焦输入",label:"'{0}' 和 {1} 跟进({2})",moveToNextHunk:"移动到下一个更改",moveToPreviousHunk:"移动到上一个更改",run:"在编辑器中启动",showChanges:"切换更改",startInlineChat:"从编辑器工具栏生成内联聊天的图标。","undo.clipboard":"放弃到剪贴板","undo.newfile":"放弃到新文件",unstash:"继续上次关闭的内联聊天",viewInChat:"在聊天中查看"},"vs/workbench/contrib/inlineChat/browser/inlineChatController":{"create.fail":"无法启动编辑器聊天",empty:"无结果,请优化输入并重试","err.apply":"无法应用更改。","err.discard":"无法放弃更改。",savehint:"接受或放弃更改以继续保存","welcome.1":"AI 生成的代码可能不正确","welcome.2":"正在准备..."},"vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl":{inlineChat:"正在等待接受或放弃内联聊天更改...","inlineChat.N":"正在等待接受或放弃 {0} 编辑器中的内联聊天更改..."},"vs/workbench/contrib/inlineChat/browser/inlineChatStrategies":{"change.0":"未更改任何内容。","change.1":"1 项更改","change.N":"{0} 项更改",review:"在继续之前,请查看(接受或放弃)所有更改。","review.1":"$(info) 接受或放弃 1 项更改。","review.N":"$(info) 接受或放弃 {0} 项更改。"},"vs/workbench/contrib/inlineChat/browser/inlineChatWidget":{"aria-label":"内联聊天输入","inlineChat.accessibilityHelp":"内联聊天输入,将{0}用于内联聊天辅助功能帮助。","inlineChat.accessibilityHelpNoKb":"内联聊天输入,运行内联聊天辅助功能帮助命令以了解详细信息。",modified:"已修改",original:"原始版本"},"vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget":{inlineChatClosed:"已关闭内联聊天小组件"},"vs/workbench/contrib/inlineChat/common/inlineChat":{acceptedOrDiscardBeforeSave:"挂起的内联聊天会话是否会阻止保存。",accessibleDiffView:"内联聊天是否还会呈现一个可访问的差异查看器以显示其更改。","accessibleDiffView.auto":"可访问的差异查看器基于正在启用的屏幕阅读器模式。","accessibleDiffView.off":"从未启用可访问的差异查看器。","accessibleDiffView.on":"始终启用可访问的差异查看器。","editorOverviewRuler.inlineChatInserted":"内联聊天插入内容的概述标尺的标记颜色。","editorOverviewRuler.inlineChatRemoved":"内联聊天删除的内容的概述标尺的标记颜色。",finishOnType:"在已更改区域之外输入内容时是否结束内联聊天会话。",holdToSpeech:"保持内联聊天键绑定是否将自动启用语音识别。","inlineChat.background":"交互式编辑器小组件的背景色","inlineChat.border":"交互式编辑器小组件的边框颜色","inlineChat.regionHighlight":"当前交互区域的背景突出显示。必须是透明的。","inlineChat.shadow":"交互式编辑器小组件的阴影颜色",inlineChatChangeHasDiff:"当前更改是否支持显示差异",inlineChatChangeShowsDiff:"当前更改是否显示差异",inlineChatDidEdit:"交互式编辑器是否更改了任何代码","inlineChatDiff.inserted":"交互式编辑器输入中已插入文本的背景色","inlineChatDiff.removed":"交互式编辑器输入中已删除文本的背景色",inlineChatDocumentChanged:"文档是否已同时更改",inlineChatEmpty:"交互式编辑器输入是否为空",inlineChatFocused:"是否聚焦交互式编辑器输入",inlineChatHasActiveRequest:"交互式编辑器是否有活动请求",inlineChatHasProvider:"交互式编辑器的提供程序是否存在",inlineChatHasStashedSession:"交互式编辑器是否已保留会话以进行快速还原",inlineChatInnerCursorEnd:"迭代活动编辑器输入的光标是否位于输入末尾",inlineChatInnerCursorFirst:"迭代活动编辑器输入的光标是否在第一行",inlineChatInnerCursorLast:"迭代活动编辑器输入的光标是否在最后一行",inlineChatInnerCursorStart:"迭代活动编辑器输入的光标是否位于输入的开头","inlineChatInput.background":"交互式编辑器输入的背景色","inlineChatInput.border":"交互式编辑器输入的边框颜色","inlineChatInput.focusBorder":"聚焦时交互式编辑器输入的边框颜色","inlineChatInput.placeholderForeground":"交互式编辑器输入占位符的前景色",inlineChatLastFeedbackKind:"提供的最后一种反馈",inlineChatOuterCursorPosition:"外部编辑器的光标位于交互式编辑器输入的上方还是下方",inlineChatResponseFocused:"交互式小组件的响应是否集中",inlineChatResponseType:"当前交互式编辑器会话的最后一个响应类型是什么",inlineChatResponseTypes:"已收到响应的类型",inlineChatSupportIssueReporting:"交互式编辑器是否支持问题报告",inlineChatUserDidEdit:"用户是否在内联聊天顶部进行了更改",inlineChatVisible:"交互式编辑器输入是否可见",mode:"配置是将在内联聊天中创建的更改直接应用到文档还是先预览它们。","mode.live":"将更改直接应用到文档,但可通过内联差异突出显示更改,以及通过 hunks 接收/舍弃更改。结束会话将保留更改。","mode.preview":"仅预览更改,但需要通过“应用”按钮接受这些更改。结束会话将放弃更改。"},"vs/workbench/contrib/inlineChat/electron-sandbox/inlineChatActions":{holdForSpeech:"保持语音"},"vs/workbench/contrib/interactive/browser/interactive.contribution":{"interactive.activeCodeBorder":"当编辑器具有焦点时,当前交互式代码单元格的边框颜色。","interactive.execute":"执行代码","interactive.history.focus":"焦点历史记录","interactive.history.next":"历史记录中的下一个值","interactive.history.previous":"历史记录中的上一个值","interactive.inactiveCodeBorder":"当编辑器没有焦点时,当前交互式代码单元格的边框颜色。","interactive.input.clear":"清除交互窗口输入编辑器内容","interactive.input.focus":"焦点输入编辑器","interactive.open":"打开交互窗口",interactiveScrollToBottom:"滚动到底部",interactiveScrollToTop:"滚动到顶部",interactiveWindow:"交互窗口","interactiveWindow.alwaysScrollOnNewCell":"自动滚动交互窗口以显示执行的最后一条语句的输出。如果此值为 false,仅当最后一个单元格已滚动到此单元格时,窗口才会滚动。","interactiveWindow.promptToSaveOnClose":"关闭交互窗口时提示保存该窗口。此设置更改仅影响新的交互窗口。"},"vs/workbench/contrib/interactive/browser/interactiveEditor":{interactiveInputPlaceHolder:"在此处键入 '{0}' 代码并按 {1} 运行"},"vs/workbench/contrib/interactiveEditor/browser/interactiveEditorActions":{accept:"发出请求","actions.interactiveSession.accessibiltyHelpEditor":"交互式会话编辑器辅助功能帮助",apply1:"接受更改",apply2:"接受",arrowDown:"光标向下",arrowUp:"光标向上",cancel:"取消",cat:"交互式编辑器",contractMessage:"协定消息",copyRecordings:"(开发人员)将 Exchange 写入剪贴板",discard:"放弃",discardMenu:"放弃...",expandMessage:"展开消息","feedback.helpful":"有用","feedback.unhelpful":"无用",focus:"聚焦输入",label:"'{0}' 和 {1} 跟进({2})",nextFromHistory:"历史记录中的下一个",previousFromHistory:"历史记录中的上一个",run:"开始代码聊天",stop:"停止请求",toggleDiff:"切换差异",toggleDiff2:"显示内联差异","undo.clipboard":"放弃到剪贴板","undo.newfile":"放弃到新文件",unstash:"继续上次关闭的代码聊天",viewInChat:"在聊天中查看"},"vs/workbench/contrib/interactiveEditor/browser/interactiveEditorController":{"create.fail":"无法启动编辑器聊天","create.fail.detail":"请查阅错误日志,稍后重试。","default.placeholder":"提问","default.placeholder.history":"{0} ({1},{2} (针对历史记录))",empty:"无结果,请优化输入并重试","err.apply":"无法应用更改。","err.discard":"无法放弃更改。",thinking:"思考中...","welcome.1":"AI 生成的代码可能不正确"},"vs/workbench/contrib/interactiveEditor/browser/interactiveEditorStrategies":{"lines.0":"未更改任何内容","lines.1":"已更改 1 行","lines.N":"已更改 {0} 行"},"vs/workbench/contrib/interactiveEditor/browser/interactiveEditorWidget":{"aria-label":"交互式编辑器输入","interactiveEditor.accessibilityHelp":"交互式编辑器输入,使用 {0} 来获取交互式编辑器辅助功能帮助。","interactiveSessionInput.accessibilityHelpNoKb":"交互式编辑器输入,运行交互式编辑器辅助功能帮助命令了解详细信息。",modified:"已修改",original:"原始版本"},"vs/workbench/contrib/interactiveEditor/common/interactiveEditor":{editMode:"配置是将在交互式编辑器中创建的更改直接应用到文档还是先预览它们。","editMode.live":"更改直接应用到文档,但可通过内联差异突出显示。结束会话将保留更改。","editMode.livePreview":"更改直接应用到文档,但可通过内联差异或并排差异在视觉上突出显示。结束会话将保留更改。","editMode.preview":"仅预览更改,但需要通过“应用”按钮接受这些更改。结束会话将放弃更改。","interactiveEditor.border":"交互式编辑器小组件的边框颜色","interactiveEditor.regionHighlight":"当前交互区域的背景突出显示。必须是透明的。","interactiveEditor.shadow":"交互式编辑器小组件的阴影颜色",interactiveEditorDidEdit:"交互式编辑器是否更改了任何代码",interactiveEditorDiff:"交互式编辑器是否显示更改差异","interactiveEditorDiff.inserted":"交互式编辑器输入中已插入文本的背景色","interactiveEditorDiff.removed":"交互式编辑器输入中已删除文本的背景色",interactiveEditorDocumentChanged:"文档是否已同时更改",interactiveEditorEmpty:"交互式编辑器输入是否为空",interactiveEditorFocused:"是否聚焦交互式编辑器输入",interactiveEditorHasActiveRequest:"交互式编辑器是否有活动请求",interactiveEditorHasProvider:"交互式编辑器的提供程序是否存在",interactiveEditorHasStashedSession:"交互式编辑器是否已保留会话以进行快速还原",interactiveEditorInnerCursorFirst:"迭代活动编辑器输入的光标是否在第一行",interactiveEditorInnerCursorLast:"迭代活动编辑器输入的光标是否在最后一行","interactiveEditorInput.background":"交互式编辑器输入的背景色","interactiveEditorInput.border":"交互式编辑器输入的边框颜色","interactiveEditorInput.focusBorder":"聚焦时交互式编辑器输入的边框颜色","interactiveEditorInput.placeholderForeground":"交互式编辑器输入占位符的前景色",interactiveEditorLastFeedbackKind:"提供的最后一种反馈",interactiveEditorMarkdownMessageCropState:"交互式编辑器消息是否裁剪还是展开",interactiveEditorOuterCursorPosition:"外部编辑器的光标位于交互式编辑器输入的上方还是下方",interactiveEditorResponseType:"当前交互式编辑器会话的最后一个响应类型是什么",interactiveEditorVisible:"交互式编辑器输入是否可见"},"vs/workbench/contrib/interactiveSession/browser/actions/interactiveSessionActions":{"actions.ineractiveSession.acceptInput":"交互式会话接受输入","actions.interactiveSession.focus":"聚焦交互式会话","interactiveSession.category":"交互式会话","interactiveSession.clear.label":"清除","interactiveSession.clearHistory.label":"清除输入历史记录","interactiveSession.focusInput.label":"聚焦输入","interactiveSession.history.label":"显示历史记录","interactiveSession.history.pick":"选择要还原的聊天会话","interactiveSession.open":"打开编辑器({0})"},"vs/workbench/contrib/interactiveSession/browser/actions/interactiveSessionCodeblockActions":{"interactive.copyCodeBlock.label":"复制","interactive.insertCodeBlock.label":"在光标处插入","interactive.insertIntoNewFile.label":"插入到新文件中","interactive.runInTerminal.label":"在终端中运行"},"vs/workbench/contrib/interactiveSession/browser/actions/interactiveSessionCopyActions":{"interactive.copyAll.label":"全部复制","interactive.copyItem.label":"复制"},"vs/workbench/contrib/interactiveSession/browser/actions/interactiveSessionExecuteActions":{"interactive.cancel.label":"取消","interactive.submit.label":"提交"},"vs/workbench/contrib/interactiveSession/browser/actions/interactiveSessionTitleActions":{"interactive.voteDown.label":"投反对票","interactive.voteUp.label":"投赞成票"},"vs/workbench/contrib/interactiveSession/browser/contrib/interactiveSessionInputEditorContrib":{"interactive.input.placeholderNoCommands":"提问","interactive.input.placeholderWithCommands":'提问或键入主题的 "/"'},"vs/workbench/contrib/interactiveSession/browser/interactiveSession.contribution":{interactiveSession:"交互式会话","interactiveSession.editor.fontFamily":"控制交互式会话中的字体系列。","interactiveSession.editor.fontSize":"控制交互式会话中的字号(以像素为单位)。","interactiveSession.editor.fontWeight":"控制交互式会话中的字体粗细。","interactiveSession.editor.lineHeight":"控制交互式会话中的行高(以像素为单位)。使用 0 根据字号计算行高。","interactiveSession.editor.wordWrap":"控制是否应在交互式会话中换行。",interactiveSessionConfigurationTitle:"交互式会话"},"vs/workbench/contrib/interactiveSession/browser/interactiveSessionContributionServiceImpl":{"vscode.extension.contributes.interactiveSession":"为交互式会话提供程序做出贡献","vscode.extension.contributes.interactiveSession.icon":"此交互式会话提供程序的图标。","vscode.extension.contributes.interactiveSession.id":"此交互式会话提供程序的唯一标识符。","vscode.extension.contributes.interactiveSession.label":"此交互式会话提供程序的显示名称。","vscode.extension.contributes.interactiveSession.when":"条件必须为 true 才能启用此交互式会话提供程序。"},"vs/workbench/contrib/interactiveSession/browser/interactiveSessionEditorInput":{interactiveSessionEditorName:"交互式会话"},"vs/workbench/contrib/interactiveSession/browser/interactiveSessionInputPart":{interactiveSessionInput:"交互式会话输入"},"vs/workbench/contrib/interactiveSession/browser/interactiveSessionListRenderer":{interactiveSession:"交互式会话"},"vs/workbench/contrib/interactiveSession/browser/interactiveSessionWidget":{clear:"清除会话"},"vs/workbench/contrib/interactiveSession/common/interactiveSessionColors":{"interactive.requestBackground":"交互式请求的背景色。","interactive.requestBorder":"交互式请求的边框颜色。"},"vs/workbench/contrib/interactiveSession/common/interactiveSessionContextKeys":{hasInteractiveSessionProvider:"注册某些交互式会话提供程序时为 True。",inInteractiveInput:"当焦点位于交互式输入中时为 true,否则为 false。",inInteractiveSession:"当焦点位于交互式会话小组件中时为 true,否则为 false。",interactiveInputHasText:"当交互式输入包含文本时为 True。",interactiveSessionRequestInProgress:"当前请求仍在进行时为 True。",interactiveSessionResponseHasProviderId:"当提供程序已向此响应分配 ID 时为 True。",interactiveSessionResponseVote:'对响应投赞成票后,其设置为 "up"。投反对票时,设置为 "down"。否则为空字符串。'},"vs/workbench/contrib/interactiveSession/common/interactiveSessionServiceImpl":{emptyResponse:"提供程序返回了 null 响应"},"vs/workbench/contrib/interactiveSession/common/interactiveSessionViewModel":{thinking:"思考中"},"vs/workbench/contrib/issue/browser/issue.contribution":{statusUnsupported:"浏览器中尚不支持 --status 参数。"},"vs/workbench/contrib/issue/browser/issueQuickAccess":{contributedIssuePage:"打开扩展页",extensions:"扩展",reportExtensionMarketplace:"扩展市场"},"vs/workbench/contrib/issue/common/issue.contribution":{miReportIssue:"使用英文报告问题(&&I)",reportIssueInEnglish:"报告问题…"},"vs/workbench/contrib/issue/electron-sandbox/issue.contribution":{miOpenProcessExplorerer:"打开进程管理器(&&P)",openIssueReporter:"打开问题报告程序",openProcessExplorer:"打开进程资源管理器",reportPerformanceIssue:"报告性能问题...",stopTracing:"停止跟踪","stopTracing.button":"重新启动并启用跟踪(&&R)","stopTracing.detail":"这可能需要一分钟才能完成。","stopTracing.message":'需要使用 "--trace" 参数启动跟踪',"stopTracing.title":"正在创建跟踪文件...",tasksQuickAccessPlaceholder:"键入要报告的扩展名。"},"vs/workbench/contrib/keybindings/browser/keybindings.contribution":{toggleKeybindingsLog:"切换键盘快捷方式疑难解答"},"vs/workbench/contrib/languageDetection/browser/languageDetection.contribution":{detectlang:"检测内容中的语言","langDetection.aria":"更改为检测到的语言: {0}","langDetection.name":"语言检测",noDetection:"无法检测编辑器语言","status.autoDetectLanguage":"接受检测到的语言: {0}"},"vs/workbench/contrib/languageStatus/browser/languageStatus.contribution":{"aria.1":"{0},{1}","aria.2":"{0}","langStatus.aria":"编辑器语言状态: {0}","langStatus.name":"编辑器语言状态","name.pattern":"{0} (语言状态)",pin:"添加到状态栏",reset:"重置语言状态交互计数器",unpin:"从状态栏中删除"},"vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution":{"colorDecoratorsStatusItem.name":"颜色装饰器状态","colorDecoratorsStatusItem.source":"颜色修饰器","foldingRangesStatusItem.name":"正在折叠状态","foldingRangesStatusItem.source":"正在折叠","status.button.configure":"配置","status.limited.details":"出于性能原因,仅显示了 {0}","status.limitedColorDecorators.short":"颜色修饰器","status.limitedFoldingRanges.short":"折叠范围"},"vs/workbench/contrib/localHistory/browser/localHistory":{localHistoryIcon:"日程表视图中本地历史记录条目的图标。",localHistoryRestore:"用于还原本地历史记录条目的内容的图标。"},"vs/workbench/contrib/localHistory/browser/localHistoryCommands":{confirmDeleteAllDetail:"此操作不可逆!",confirmDeleteAllMessage:"是否要删除本地历史记录中所有文件的所有条目?",confirmDeleteDetail:"此操作不可逆!",confirmDeleteMessage:"是否要从 {1} 中删除 {0} 的本地历史记录条目?",confirmRestoreDetail:"还原将放弃任何未保存的更改。",confirmRestoreMessage:"是否要还原“{0}”的内容?",createLocalHistoryEntryTitle:"创建本地历史记录条目",createLocalHistoryPlaceholder:"输入 '{0}' 的本地历史记录条目的新名称",deleteAllButtonLabel:"全部删除(&&D)",deleteButtonLabel:"删除(&&D)","localHistory.category":"本地历史记录","localHistory.compareWithFile":"与文件进行比较","localHistory.compareWithPrevious":"与上一个版本比较","localHistory.compareWithSelected":"与已选项目进行比较","localHistory.create":"创建条目","localHistory.delete":"删除","localHistory.deleteAll":"全部删除","localHistory.open":"显示内容","localHistory.rename":"重命名","localHistory.restore":"还原内容","localHistory.restoreViaPicker":"查找要还原的条目","localHistory.restoreViaPickerMenu":"本地历史记录: 查找要还原的条目...","localHistory.selectForCompare":"选择以进行比较",localHistoryCompareToFileEditorLabel:"{0} ({1} • {2}) ↔ {3}",localHistoryCompareToPreviousEditorLabel:"{0} ({1} • {2}) ↔ {3} ({4} • {5})",localHistoryEditorLabel:"{0} ({1} • {2})","localHistoryRestore.source":"已还原文件",renameLocalHistoryEntryTitle:"重命名本地历史记录条目",renameLocalHistoryPlaceholder:"输入本地历史记录条目的新名称",restoreButtonLabel:"还原(&&R)","restoreViaPicker.entryPlaceholder":"选择要打开的本地历史记录条目","restoreViaPicker.filePlaceholder":"选择要显示其本地历史记录的文件",unableToRestore:"无法还原“{0}”。"},"vs/workbench/contrib/localHistory/browser/localHistoryTimeline":{localHistory:"本地历史记录"},"vs/workbench/contrib/localHistory/electron-sandbox/localHistoryCommands":{openContainer:"打开包含文件夹",revealInMac:"在查找器中显示",revealInWindows:"在文件资源管理器中显示"},"vs/workbench/contrib/localization/common/localization.contribution":{"language id":"语言 ID",localizations:"语言包","localizations language name":"语言名称","localizations localized language name":"语言本地名称","vscode.extension.contributes.localizations":"向编辑器提供本地化内容","vscode.extension.contributes.localizations.languageId":"显示字符串翻译的目标语言 ID。","vscode.extension.contributes.localizations.languageName":"语言的英文名称。","vscode.extension.contributes.localizations.languageNameLocalized":"提供语言的名称。","vscode.extension.contributes.localizations.translations":"与语言关联的翻译的列表。","vscode.extension.contributes.localizations.translations.id":'使用此翻译的 VS Code 或扩展的 ID。VS Code 的 ID 总为 "vscode",扩展的 ID 的格式应为 "publisherId.extensionName"。',"vscode.extension.contributes.localizations.translations.id.pattern":'翻译 VS Code 或者扩展,ID 分别应为 "vscode" 或格式为 "publisherId.extensionName"。',"vscode.extension.contributes.localizations.translations.path":"包含语言翻译的文件的相对路径。"},"vs/workbench/contrib/localization/common/localizationsActions":{available:"可用",chooseLocale:"选择显示语言",clearDisplayLanguage:"清除显示语言首选项",configureLocale:"配置显示语言",configureLocaleDescription:"根据已安装的语言包更改 VS Code 的区域设置。常用语言包括法语、中文、西班牙语、日语、德语、朝鲜语等。",installed:"已安装",moreInfo:"详细信息"},"vs/workbench/contrib/localization/electron-sandbox/localization.contribution":{changeAndRestart:"更改语言并重启",neverAgain:"不再显示",updateLocale:"要将 {0} 的显示语言更改为 {1} 并重启吗?"},"vs/workbench/contrib/localization/electron-sandbox/minimalTranslations":{installAndRestart:"安装并重启",installAndRestartMessage:"安装语言包并将显示语言更改为 {0}。",searchMarketplace:"搜索商店",showLanguagePackExtensions:"在商店中搜索语言包并将显示语言更改为 {0}。"},"vs/workbench/contrib/logs/common/logs.contribution":{"remote name":"{0} (远程)",setDefaultLogLevel:"设置默认日志级别","show window log":"显示窗口日志"},"vs/workbench/contrib/logs/common/logsActions":{all:"全部",current:"当前",default:"默认值",extensionLogs:"扩展日志","log placeholder":"选择日志文件",loggers:"日志",openSessionLogFile:"打开窗口日志文(会话)...",resetLogLevel:"设置为默认日志级别",selectLogLevel:"选择日志级别",selectLogLevelFor:" {0}: 选择日志级别",selectlog:"设置日志级别","sessions placeholder":"选择会话",setLogLevel:"设置日志级别..."},"vs/workbench/contrib/logs/electron-sandbox/logsActions":{openExtensionLogsFolder:"打开扩展日志文件夹",openLogsFolder:"打开日志文件夹"},"vs/workbench/contrib/markdown/browser/markdownSettingRenderer":{changeSettingTitle:"查看或更改设置",copySettingId:"复制设置 ID",falseMessage:"禁用“{0}: {1}”",numberValue:"将“{0}: {1}”设置为 {2}",restorePreviousValue:"还原“{0}: {1}”的值",stringValue:"将“{0}: {1}”设置为“{2}”",trueMessage:"启用“{0}: {1}”",viewInSettings:"在“设置”中查看",viewInSettingsDetailed:"在“设置”中查看“{0}: {1}”"},"vs/workbench/contrib/markers/browser/markers.contribution":{clearFiltersText:"清除过滤器文本",collapseAll:"全部折叠",copyMarker:"复制",copyMessage:"复制消息",focusProblemsFilter:"焦点问题筛选器",focusProblemsList:"聚焦到问题视图",manyProblems:"1万+",markersViewIcon:"查看标记视图的图标。",miMarker:"问题(&&P)",noProblems:"没有问题",problems:"问题","show active file":"只看当前活动的文件","show errors":"显示错误","show excluded files":"显示排除的文件","show infos":"显示信息","show multiline":"在多行中显示消息","show singleline":"在单行中显示消息","show warnings":"显示警告","status.problems":"问题","status.problemsVisibility":"问题可见性","status.problemsVisibilityOff":"问题已关闭。单击打开设置。",totalErrors:"错误: {0} 个",totalInfos:"信息: {0} 条",totalProblems:"总计 {0} 个问题",totalWarnings:"警告: {0} 个",viewAsTable:"以表形式查看",viewAsTree:"以树形式查看"},"vs/workbench/contrib/markers/browser/markersFileDecorations":{label:"问题","markers.showOnFile":"在文件和文件夹上显示错误和警告。关闭时被 `#problems.visibility#` 覆盖。","tooltip.1":"此文件存在 1 个问题","tooltip.N":"此文件存在 {0} 个问题"},"vs/workbench/contrib/markers/browser/markersTable":{codeColumnLabel:"代码",fileColumnLabel:"文件",messageColumnLabel:"消息",sourceColumnLabel:"源"},"vs/workbench/contrib/markers/browser/markersTreeViewer":{collapsedIcon:"在标记视图中指示多个线条已折叠的图标。",expandedIcon:"在标记视图中指示多个线条已显示的图标。","multi line":"在多行中显示消息",problemsView:"问题视图","single line":"在单行中显示消息"},"vs/workbench/contrib/markers/browser/markersView":{"No problems filtered":"显示 {0} 个问题",clearFilter:"清除筛选","problems filtered":"显示第 {0} 个 (共 {1} 个) 问题","showing filtered problems":"正在显示第 {0} 页(共 {1} 页)"},"vs/workbench/contrib/markers/browser/messages":{"errors.warnings.show.label":"显示错误和警告","markers.panel.action.filter":"筛选器问题","markers.panel.action.moreFilters":"更多过滤器...","markers.panel.action.quickfix":"显示修复方案","markers.panel.at.ln.col.number":"[行 {0},列 {1}]","markers.panel.filter.activeFile":"只看当前活动的文件","markers.panel.filter.ariaLabel":"筛选器问题","markers.panel.filter.errors":"错误","markers.panel.filter.infos":"信息","markers.panel.filter.placeholder":"筛选器(例如 text、**/*.ts、!**/node_modules/**)","markers.panel.filter.showErrors":"显示错误","markers.panel.filter.showInfos":"显示信息","markers.panel.filter.showWarnings":"显示警告","markers.panel.filter.useFilesExclude":"隐藏排除的文件","markers.panel.filter.warnings":"警告","markers.panel.multiple.errors.label":"{0} 个错误","markers.panel.multiple.infos.label":"{0} 条信息","markers.panel.multiple.unknowns.label":"{0} 个未知","markers.panel.multiple.warnings.label":"{0} 条警告","markers.panel.no.problems.activeFile.build":"未在当前文件中检测到问题。","markers.panel.no.problems.build":"未在工作区检测到问题。","markers.panel.no.problems.filters":"在给定的筛选条件下,没有找到结果。","markers.panel.single.error.label":"1 个错误","markers.panel.single.info.label":"1 条信息","markers.panel.single.unknown.label":"1 个未知","markers.panel.single.warning.label":"1 条警告","markers.panel.title.problems":"问题","problems.panel.configuration.autoreveal":"在打开文件时,控制是否在“问题”视图中对其进行定位。","problems.panel.configuration.compareOrder":"控制问题导航的顺序。","problems.panel.configuration.compareOrder.position":"导航按位置排序的问题","problems.panel.configuration.compareOrder.severity":"导航按严重性排序的问题","problems.panel.configuration.showCurrentInStatus":"启用后,状态栏中将显示当前问题。","problems.panel.configuration.title":"问题预览","problems.panel.configuration.viewMode":"控制“问题”视图的默认视图模式。","problems.tree.aria.label.error.marker":"错误: 行 {1} 和字符 {2} 处的 {0}。{4} 生成的 {3}","problems.tree.aria.label.error.marker.nosource":"错误: {1} 行 {2} 列,{0}。{3}","problems.tree.aria.label.info.marker":"信息: 行 {1} 和字符 {2} 处的 {0}。{4} 生成的 {3}","problems.tree.aria.label.info.marker.nosource":"信息: {1} 行 {2} 列,{0}。{3}","problems.tree.aria.label.marker":"问题: 行 {1} 和字符 {2} 处的 {0}。{4} 生成的 {3}","problems.tree.aria.label.marker.nosource":"问题: {1} 行 {2} 列,{0}。{3}","problems.tree.aria.label.marker.relatedInformation":"此问题包含对 {0} 个位置的引用。","problems.tree.aria.label.relatedinfo.message":"{3} 的 {1} 行 {2} 列,{0}","problems.tree.aria.label.resource":"在文件夹 {2} 的文件 {1} 中有 {0} 个问题","problems.tree.aria.label.warning.marker":"警告: 行 {1} 和字符 {2} 处的 {0}。{4} 生成的 {3}","problems.tree.aria.label.warning.marker.nosource":"警告: {1} 行 {2} 列,{0}。{3}","problems.view.focus.label":"聚焦到问题 (错误、警告、信息)","problems.view.toggle.label":"切换问题 (错误、警告、信息) 视图"},"vs/workbench/contrib/mergeEditor/browser/commands/commands":{"layout.column":"列布局","layout.mixed":"混合布局","layout.showBase":"显示基础","layout.showBaseCenter":"显示基中心","layout.showBaseTop":"显示基顶部","merge.acceptAllInput1":"接受来自左侧的所有更改","merge.acceptAllInput2":"接受来自右侧的所有更改","merge.goToNextUnhandledConflict":"转到下一个未处理的冲突","merge.goToPreviousUnhandledConflict":"转到上一个未处理的冲突","merge.openBaseEditor":"打开基本文件","merge.toggleCurrentConflictFromLeft":"从左侧切换当前冲突","merge.toggleCurrentConflictFromRight":"从右侧切换当前冲突",mergeEditor:"合并编辑器","mergeEditor.acceptMerge":"完成合并","mergeEditor.acceptMerge.unhandledConflicts.accept":"完成但出现冲突(&&C)","mergeEditor.acceptMerge.unhandledConflicts.detail":"文件包含未经处理的冲突。","mergeEditor.acceptMerge.unhandledConflicts.message":"要完成 {0} 的合并吗?","mergeEditor.compareInput1WithBase":"将输入 1 与基本值进行比较","mergeEditor.compareInput2WithBase":"将输入 2 与基本值进行比较","mergeEditor.compareWithBase":"与基线进行比较","mergeEditor.resetChoice":"重置“关闭并存在冲突”选项","mergeEditor.resetResultToBaseAndAutoMerge":"重置结果","mergeEditor.resetResultToBaseAndAutoMerge.short":"重置",openfile:"打开文件",showNonConflictingChanges:"显示不冲突的更改",title:"打开合并编辑器"},"vs/workbench/contrib/mergeEditor/browser/commands/devCommands":{"merge.dev.copyState":"将合并编辑器状态复制为 JSON","merge.dev.loadContentsFromFolder":"从文件夹加载合并编辑器状态","merge.dev.saveContentsToFolder":"将合并编辑器状态保存到文件夹",mergeEditor:"合并编辑器(开发)","mergeEditor.name":"合并编辑器","mergeEditor.noActiveMergeEditor":"无活动合并编辑器","mergeEditor.selectFolderToSaveTo":"选择要保存到的文件夹","mergeEditor.successfullyCopiedMergeEditorContents":"已成功复制合并编辑器状态","mergeEditor.successfullySavedMergeEditorContentsToFolder":"已成功将合并编辑器状态保存到文件夹"},"vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution":{"diffAlgorithm.advanced":"使用高级差异算法。","diffAlgorithm.legacy":"使用旧差异算法。",name:"合并编辑器"},"vs/workbench/contrib/mergeEditor/browser/mergeEditorInput":{name:"正在合并: {0}"},"vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel":{acceptMerge:"接受合并(&&A)",detail1:"如果不保存合并结果,合并结果将丢失。",detail1Conflicts:"该文件包含未处理的冲突。如果不保存合并结果,合并结果将丢失。",detailN:"如果不保存合并结果,合并结果将丢失。",detailNConflicts:"文件包含未处理的冲突。如果不保存合并结果,合并结果将丢失。",discard:"不保存(&&N)","merge-editor.source":"在合并编辑器中解决冲突之前",message1:"是否要保留 {0} 的合并结果?",messageN:"是否要保留 {0} 个文件的合并结果?",noMoreWarn:"不再询问",save:"保存(&&S)","saveTempFile.detail":"这会将合并结果写入原始文件并关闭合并编辑器。","saveTempFile.message":"是否接受合并结果?",saveWithConflict:"保存(存在冲突)(&&S)","workspace.close":"关闭(&&C)","workspace.closeWithConflicts":"关闭(存在冲突)(&&C)","workspace.detail1.handled":"如果不保存,你的更改将丢失。","workspace.detail1.unhandled":"文件包含未处理的冲突。如果不保存更改,则更改将丢失。","workspace.detail1.unhandled.nonDirty":"文件包含未经处理的冲突。","workspace.detailN.handled":"如果不保存,你的更改将丢失。","workspace.detailN.unhandled":"文件包含未经处理的冲突。如果不保存更改,则更改将丢失。","workspace.detailN.unhandled.nonDirty":"文件包含未经处理的冲突。","workspace.doNotSave":"不保存(&&N)","workspace.message1":"是否要保存对 {0} 的更改?","workspace.message1.nonDirty":"是否要关闭 {0} 的合并编辑器?","workspace.messageN":"是否要保存对 {0} 文件所做的更改?","workspace.messageN.nonDirty":"是否要关闭 {0} 个合并编辑器?","workspace.save":"保存(&&S)","workspace.saveWithConflict":"保存(存在冲突)(&&S)"},"vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController":{conflictingLine:"1 冲突行",conflictingLines:"{0} 冲突行"},"vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel":{setInputHandled:"已处理设置输入",undoMarkAsHandled:"撤销标记为已处理"},"vs/workbench/contrib/mergeEditor/browser/view/colors":{"mergeEditor.change.background":"更改的背景色。","mergeEditor.change.word.background":"字词更改的背景色。","mergeEditor.changeBase.background":"基中更改的背景色。","mergeEditor.changeBase.word.background":"基中字更改的背景色。","mergeEditor.conflict.handled.minimapOverViewRuler":"输入 1 中更改的前景色。","mergeEditor.conflict.handledFocused.border":"处理的重点冲突的边框颜色。","mergeEditor.conflict.handledUnfocused.border":"已处理的非重点冲突的边框颜色。","mergeEditor.conflict.input1.background":"输入 1 中修饰的背景色。","mergeEditor.conflict.input2.background":"输入 2 中修饰的背景色。","mergeEditor.conflict.unhandled.minimapOverViewRuler":"输入 1 中更改的前景色。","mergeEditor.conflict.unhandledFocused.border":"未处理的重点冲突的边框颜色。","mergeEditor.conflict.unhandledUnfocused.border":"未处理的非重点冲突的边框颜色。","mergeEditor.conflictingLines.background":"“冲突行”文本的背景。"},"vs/workbench/contrib/mergeEditor/browser/view/conflictActions":{accept:"接受 {0}",acceptBoth:"接受组合",acceptBoth0First:"接受组合({0} 优先)",acceptBothTooltip:"接受结果文档中两边的自动组合。",acceptTooltip:"接受结果文档中的 {0}。",append:"追加 {0}",appendTooltip:"将 {0} 追加到结果文档。",combine:"接受组合",ignore:"忽略",manualResolution:"手动解决",manualResolutionTooltip:"此冲突已通过手动方式解决。",markAsHandledTooltip:"不要选择冲突一方。",noChangesAccepted:"未接受任何更改",noChangesAcceptedTooltip:"此冲突的当前解决方法等于右侧和左侧更改的共同上级。",remove:"删除 {0}",removeTooltip:"从结果文档中删除 {0}。",resetToBase:"重置为基",resetToBaseTooltip:"将此冲突重置为左右更改的共同上级。"},"vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView":{base:"基础",compareWith:"正在与 {0} 比较",compareWithTooltip:"差异以背景色突出显示。"},"vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView":{"accept.conflicting":"接受(结果为脏)","accept.excluded":"接受","accept.first":"撤消接受","accept.second":"撤消接受(当前为第二个)",input1:"输入 1",input2:"输入 2","mergeEditor.accept":"接受 {0}","mergeEditor.acceptBoth":"接受两者","mergeEditor.markAsHandled":"标记为已处理","mergeEditor.swap":"交换"},"vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView":{allConflictHandled:"已处理所有冲突,现在可以完成合并。",goToNextConflict:"转到下一个冲突","mergeEditor.remainingConflict":"剩余 {0} 个冲突","mergeEditor.remainingConflicts":"剩余 {0} 个冲突",result:"结果"},"vs/workbench/contrib/mergeEditor/browser/view/mergeEditor":{mergeEditor:"文本合并编辑器"},"vs/workbench/contrib/mergeEditor/browser/view/viewModel":{noConflictMessage:"当前没有可以切换的焦点冲突。"},"vs/workbench/contrib/mergeEditor/common/mergeEditor":{baseUri:"合并编辑器的基数的 URI",editorLayout:"合并编辑器的布局模式",is:"编辑器是合并编辑器",isr:"编辑器是合并编辑器的结果编辑器。",resultUri:"合并编辑器结果的 URI",showBase:"如果合并编辑器显示基础版本",showBaseAtTop:"如果应在顶部显示基",showNonConflictingChanges:"如果合并编辑器显示不冲突的更改"},"vs/workbench/contrib/mergeEditor/electron-sandbox/devCommands":{"merge.dev.openSelectionInTemporaryMergeEditor":"在临时合并编辑器中打开所选内容","merge.dev.openState":"从 JSON 打开合并编辑器状态",mergeEditor:"合并编辑器(开发)","mergeEditor.enterJSON":"输入 JSON"},"vs/workbench/contrib/multiDiffEditor/browser/actions":{ExpandAllDiffs:"展开所有差异",collapseAllDiffs:"折叠所有差异",goToFile:"打开文件"},"vs/workbench/contrib/multiDiffEditor/browser/icons.contribution":{multiDiffEditorLabelIcon:"多差异编辑器标签的图标。"},"vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor.contribution":{name:"多差异编辑器"},"vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput":{files:" ({0} 个文件)",name:"多差异编辑器"},"vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver":{viewChanges:"查看更改"},"vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands":{"cellCommands.quickFix.noneMessage":"没有可用的代码操作","notebookActions.cellFailureActions":"显示单元故障操作","notebookActions.changeCellToCode":"将单元格更改为代码","notebookActions.changeCellToMarkdown":"将单元格更改为 Markdown","notebookActions.collapseAllCellInput":"折叠所有单元格输入","notebookActions.collapseAllCellOutput":"折叠所有单元格输出","notebookActions.collapseCellInput":"折叠单元格输入","notebookActions.collapseCellOutput":"折叠单元格输出","notebookActions.copyCellDown":"向下复制单元格","notebookActions.copyCellUp":"向上复制单元格","notebookActions.expandAllCellInput":"展开所有单元格输入","notebookActions.expandAllCellOutput":"展开所有单元格输出","notebookActions.expandCellInput":"展开单元格输入","notebookActions.expandCellOutput":"展开单元格输出","notebookActions.joinCellAbove":"加入上一个单元格","notebookActions.joinCellBelow":"加入下一个单元格","notebookActions.joinSelectedCells":"联接所选单元格","notebookActions.moveCellDown":"下移单元格","notebookActions.moveCellUp":"上移单元格","notebookActions.splitCell":"拆分单元格","notebookActions.toggleOutputs":"切换输出","notebookActions.toggleScrolling":"切换滚动单元格输出"},"vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController":{"notebook.cell.status.diagnostic":"快速操作 {0}","notebook.cell.status.executing":"正在执行","notebook.cell.status.failed":"已失败","notebook.cell.status.pending":"挂起","notebook.cell.status.success":"成功","notebook.cell.statusBar.timerTooltip":"**上次执行** {0}\r\n\r\n**执行时间** {1}\r\n\r\n**开销时间** {2}\r\n\r\n**呈现时间**\r\n\r\n{3}","notebook.cell.statusBar.timerTooltip.reportIssueFootnote":"通过上面的链接使用问题报告器提交问题。"},"vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders":{"notebook.cell.status.autoDetectLanguage":"接受检测到的语言: {0}","notebook.cell.status.language":"选择单元格语言模式","notebook.cell.status.searchLanguageExtensions":"未知的单元格语言。单击以搜索 '{0}' 扩展"},"vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard":{"notebook.cell.output.selectAll":"全选","notebookActions.copy":"复制单元格","notebookActions.cut":"剪切单元格","notebookActions.paste":"粘贴单元格","notebookActions.pasteAbove":"在上方粘贴单元格",toggleNotebookClipboardLog:"切换笔记本剪贴板疑难解答"},"vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar":{"kernel.select.label":"选择内核","notebook.activeCellStatusName":"笔记本编辑器选择","notebook.indentation":"笔记本缩进","notebook.info":"笔记本内核信息","notebook.multiActiveCellIndicator":"单元格 {0} (已选择 {1} 个)","notebook.select":"笔记本内核选择","notebook.singleActiveCellIndicator":"单元格 {0}/{1}",selectNotebookIndentation:"选择缩进",tooltop:"{0} (建议)"},"vs/workbench/contrib/notebook/browser/contrib/find/notebookFind":{"notebookActions.findInNotebook":"在笔记本中查找","notebookActions.hideFind":"隐藏“在笔记本中查找”"},"vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget":{findFilterIcon:"查找小组件中的“查找筛选器”图标。","label.closeButton":"关闭","label.find":"查找","label.nextMatchButton":"下一个匹配项","label.previousMatchButton":"上一个匹配项","label.replace":"替换","label.replaceAllButton":"全部替换","label.replaceButton":"替换","label.toggleReplaceButton":"切换替换","notebook.find.filter.filterAction":"查找筛选器","notebook.find.filter.findInCodeInput":"代码单元格源","notebook.find.filter.findInCodeOutput":"代码单元输出","notebook.find.filter.findInMarkupInput":"Markdown 源","notebook.find.filter.findInMarkupPreview":"呈现的 Markdown","placeholder.find":"查找","placeholder.replace":"替换"},"vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget":{ariaSearchNoResult:"为“{1}”找到 {0}",ariaSearchNoResultEmpty:"已找到 {0}",ariaSearchNoResultWithLineNumNoCurrentMatch:"为“{1}”找到 {0}"},"vs/workbench/contrib/notebook/browser/contrib/format/formatting":{"format.title":"设置笔记本的格式","formatCell.label":"设置单元格格式","formatCells.label":"设置单元格格式",label:"设置笔记本的格式"},"vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted":{"workbench.notebook.layout.gettingStarted.label":"重置笔记本入门"},"vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions":{"notebook.toggleCellToolbarPosition":"切换单元格工具栏位置"},"vs/workbench/contrib/notebook/browser/contrib/navigation/arrow":{cursorMoveDown:"聚焦下一个单元格编辑器",cursorMoveUp:"聚焦上一个单元格编辑器",cursorPageDown:"单元格光标 Page Down",cursorPageDownSelect:"单元格光标 Page Down 选择",cursorPageUp:"单元格光标 Page Up",cursorPageUpSelect:"单元格光标 Page Up 选择",focusFirstCell:"聚焦第一个单元格",focusLastCell:"聚焦最后一个单元格",focusOutput:"聚焦活动单元格输出",focusOutputOut:"解除活动单元格输出聚焦","notebook.cell.webviewHandledEvents":"单元输出中应由重点元素处理的按键。","notebook.navigation.allowNavigateToSurroundingCells":"启用后,当单元格编辑器中的当前光标位于第/最后一行时,光标可以导航到下/上一个单元格。","notebookActions.centerActiveCell":"中心活动单元格"},"vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands":{copyWorkspaceVariableValue:"复制值",executeNotebookVariableProvider:"执行笔记本变量提供程序"},"vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables":{notebookVariables:"笔记本变量"},"vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource":{"notebook.indexedChildrenLimitReached":"已达到显示限制"},"vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree":{debugConsole:"笔记本变量",notebookVariableAriaLabel:"变量 {0},值 {1}"},"vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView":{"notebook.notebookVariables":"笔记本变量"},"vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline":{"breadcrumbs.showCodeCells":"启用后,笔记本痕迹包含代码单元格。",filter:"筛选条目","notebook.gotoSymbols.showAllSymbols":"启用后,转到符号快速检查将显示笔记本中的完整代码符号以及 Markdown 标头。","outline.showCodeCellSymbols":"启用后,笔记本大纲将显示代码单元符号。依赖于将启用的 `notebook.outline.showCodeCells`。","outline.showCodeCells":"启用后,笔记本大纲显示代码单元格。","outline.showMarkdownHeadersOnly":"启用后,笔记本大纲将仅显示包含标头的 Markdown 单元。",toggleCodeCellSymbols:"代码单元符号",toggleCodeCells:"代码单元",toggleShowMarkdownHeadersOnly:"仅限 Markdown 标头"},"vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile":{setProfileTitle:"设置配置文件"},"vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants":{"codeAction.apply":"正在应用代码操作“{0}”。","codeaction.get2":'从 "{0}" ([configure]({1}))中获取代码操作。',formatNotebook:"设置笔记本的格式",insertFinalNewLine:"插入最终新行","notebookFormatSave.formatting":"格式设置","notebookSaveParticipants.cellCodeActions":"运行“单元格”代码操作","notebookSaveParticipants.notebookCodeActions":'正在运行 "Notebook" 代码操作',trimNotebookNewlines:"剪裁最终新行",trimNotebookWhitespace:"笔记本剪裁尾随空格"},"vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout":{"workbench.notebook.clearNotebookEdtitorTypeCache":"清除笔记本编辑器类型缓存","workbench.notebook.inspectLayout":"检查笔记本布局","workbench.notebook.toggleLayoutTroubleshoot":"切换布局疑难解答"},"vs/workbench/contrib/notebook/browser/controller/cellOperations":{"notebookActions.joinSelectedCells":"无法联接不同种类的单元格","notebookActions.joinSelectedCells.label":"联接 Notebook 单元格"},"vs/workbench/contrib/notebook/browser/controller/cellOutputActions":{"notebookActions.copyOutput":"复制单元格输出"},"vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions":{apply1:"接受更改",apply2:"接受",apply3:"接受更改",arrowDown:"光标向下",arrowUp:"光标向上",discard:"放弃","feedback.helpful":"有用","feedback.reportIssueForBug":"报告问题","feedback.unhelpful":"无用",focusChatWidget:"聚焦聊天小组件",focusNextCell:"聚焦下一个单元格",focusNextChatWidget:"聚焦到下一个单元格聊天小组件",focusNotebookChat:"聚焦聊天",focusPreviousCell:"聚焦上一个单元格","notebook.cell.chat.accept":"发出请求","notebook.cell.chat.close":"关闭聊天","notebook.cell.chat.nextFromHistory":"历史记录中的下一个","notebook.cell.chat.previousFromHistory":"历史记录中的上一个","notebook.cell.chat.stop":"停止请求","notebookActions.menu.insertCode.ontoolbar":"生成","notebookActions.menu.insertCode.tooltip":"开始聊天以生成代码","notebookActions.menu.insertCodeCellWithChat":"生成","notebookActions.menu.insertCodeCellWithChat.tooltip":"开始聊天以生成代码","notebookActions.restoreCellprompt":"生成"},"vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext":{notebookCellChatFocused:"单元格聊天编辑器是否为焦点",notebookChatHasActiveRequest:"单元格聊天编辑器是否具有活动请求",notebookChatOuterFocusPosition:"笔记本编辑器的焦点在单元格聊天上方还是下方",notebookChatUserDidEdit:"用户是否在笔记本单元格聊天顶部进行了更改"},"vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController":{"default.placeholder":"提问","welcome.1":"AI 生成的代码可能不正确"},"vs/workbench/contrib/notebook/browser/controller/coreActions":{miShare:"共享","notebookActions.category":"笔记本","notebookMenu.cellTitle":"笔记本单元格","notebookMenu.insertCell":"插入单元格"},"vs/workbench/contrib/notebook/browser/controller/editActions":{autoDetect:"自动检测",changeLanguage:"更改单元格语言",clearAllCellsOutputs:"清除所有输出",clearCellOutputs:"清除单元格输出",confirmDeleteButton:"删除",confirmDeleteButtonMessage:"此单元格正在运行,是否确实要删除它?",detectLanguage:"接受单元格检测到的语言",doNotAskAgain:"不再询问",indentConvert:"转换文件",indentView:"更改视图",languageDescription:"({0}) - 当前语言",languageDescriptionConfigured:"({0})",languagesPicks:"语言(标识符)",noDetection:"无法检测单元格语言",noNotebookEditor:"当前没有活动的笔记本编辑器",noWritableCodeEditor:"活动笔记本编辑器为只读模式。","notebookActions.deleteCell":"删除单元格","notebookActions.editCell":"编辑单元格","notebookActions.quitEdit":"停止编辑单元格",pickAction:"选择操作",pickLanguageToConfigure:"选择语言模式",selectNotebookIndentation:"选择缩进"},"vs/workbench/contrib/notebook/browser/controller/executeActions":{"notebookActions.cancel":"停止单元格执行","notebookActions.cancelNotebook":"停止执行","notebookActions.execute":"执行单元格","notebookActions.executeAbove":"执行上方所有的单元格","notebookActions.executeAndFocusContainer":"执行单元格和焦点容器","notebookActions.executeAndInsertBelow":"执行笔记本单元格并在下方插入","notebookActions.executeAndSelectBelow":"执行笔记本单元格并在下方选择","notebookActions.executeBelow":"执行单元格及以下","notebookActions.executeNotebook":"全部运行","notebookActions.interruptNotebook":"中断","notebookActions.renderMarkdown":"呈现所有 Markdown 单元格",revealLastFailedCell:"转到最近失败的单元格",revealLastFailedCellShort:"转到最近失败的单元格",revealRunningCell:"转到正在运行的单元格",revealRunningCellShort:"转到"},"vs/workbench/contrib/notebook/browser/controller/foldingController":{"fold.cell":"折叠单元格","unfold.cell":"展开单元格"},"vs/workbench/contrib/notebook/browser/controller/insertCellActions":{"notebookActions.insertCodeCellAbove":"在上方插入代码单元格","notebookActions.insertCodeCellAboveAndFocusContainer":"在上方插入代码单元格和焦点容器","notebookActions.insertCodeCellAtTop":"在顶部添加代码单元格","notebookActions.insertCodeCellBelow":"在下方插入代码单元格","notebookActions.insertCodeCellBelowAndFocusContainer":"在下方插入代码单元格和焦点容器","notebookActions.insertMarkdownCellAbove":"在上方插入 Markdown 单元格","notebookActions.insertMarkdownCellAtTop":"在顶部添加 Markdown 单元格","notebookActions.insertMarkdownCellBelow":"在下方插入 Markdown 单元格","notebookActions.menu.insertCode":"代码","notebookActions.menu.insertCode.minimalToolbar":"添加代码","notebookActions.menu.insertCode.minimaltoolbar":"添加代码","notebookActions.menu.insertCode.ontoolbar":"代码","notebookActions.menu.insertCode.tooltip":"添加代码单元格","notebookActions.menu.insertMarkdown":"Markdown","notebookActions.menu.insertMarkdown.ontoolbar":"Markdown","notebookActions.menu.insertMarkdown.tooltip":"添加 Markdown 单元格"},"vs/workbench/contrib/notebook/browser/controller/layoutActions":{customizeNotebook:"自定义笔记本...",mitoggleNotebookStickyScroll:"切换笔记本便笺滚动(&&T)","notebook.placeholder":"要保存到的设置文件","notebook.saveMimeTypeOrder":"保存 Mimetype 显示顺序","notebook.showLineNumbers":"笔记本行号","notebook.toggleBreadcrumb":"切换痕迹导航","notebook.toggleCellToolbarPosition":"切换单元格工具栏位置","notebook.toggleLineNumbers":"切换笔记本行号",notebookStickyScroll:"切换笔记本粘滞滚动","saveTarget.machine":"用户设置","saveTarget.workspace":"工作区设置",toggleStickyScroll:"切换笔记本粘滞滚动","workbench.notebook.layout.configure.label":"自定义笔记本布局","workbench.notebook.layout.select.label":"在笔记本布局之间选择","workbench.notebook.layout.webview.reset.label":"重置笔记本 Web 视图"},"vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions":{changeTabDisplaySize:"更改制表符显示大小",convertIndentation:"转换缩进",convertIndentationToSpaces:"将缩进转换为空格",convertIndentationToTabs:"将缩进转换为制表符",indentUsingSpaces:"使用空格缩进",indentUsingTabs:"使用制表符缩进",selectTabWidth:"选择当前文件的制表符大小"},"vs/workbench/contrib/notebook/browser/controller/sectionActions":{expandSection:"展开分区",foldSection:"折叠分区",miexpandSection:"展开分区(&&E)",mifoldSection:"折叠分区(&&F)",mirunCell:"运行单元(&&R)",mirunCellsInSection:"运行分区中的单元(&&R)",runCell:"运行单元",runCellsInSection:"运行分区中的单元"},"vs/workbench/contrib/notebook/browser/diff/diffElementOutputs":{builtinRenderInfo:"内置",curruentActiveMimeType:"当前处于活动状态",empty:"单元格没有输出",mimeTypePicker:"选择其他输出 MIME 类型,可用的 MIME 类型: {0}","noRenderer.2":"找不到输出的呈现器。其具有以下 mimetype: {0}","promptChooseMimeType.placeHolder":"为当前项选择要渲染的 mime 类型","promptChooseMimeTypeInSecure.placeHolder":"选择要为当前输出呈现的 mimetype。仅当笔记本受信任时,丰富 mimetype 才可用"},"vs/workbench/contrib/notebook/browser/diff/notebookDiffActions":{"notebook.diff.action.next.title":"显示下一个更改","notebook.diff.action.previous.title":"显示上一个更改","notebook.diff.cell.revertInput":"还原输入","notebook.diff.cell.revertMetadata":"还原元数据","notebook.diff.cell.revertOutputs":"还原输出","notebook.diff.cell.switchOutputRenderingStyleToText":"切换输出呈现","notebook.diff.ignoreMetadata":"隐藏元数据差异","notebook.diff.ignoreOutputs":"隐藏输出差异","notebook.diff.showMetadata":"显示元数据差异","notebook.diff.showOutputs":"显示输出差异","notebook.diff.switchToText":"打开文本差异编辑器"},"vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor":{notebookTreeAriaLabel:"笔记本文本差异"},"vs/workbench/contrib/notebook/browser/notebook.contribution":{explicit:"仅在显式保存时触发代码操作。",explicitBoolean:"仅在显式保存时触发代码操作。此值将被弃用,取而代之将使用“显式”。","insertToolbarLocation.betweenCells":"在单元格之间悬停时显示的工具栏。","insertToolbarLocation.both":"两个工具栏。","insertToolbarLocation.hidden":"插入操作不会出现在任何位置。","insertToolbarLocation.notebookToolbar":"位于笔记本编辑器顶部的工具栏。",never:"保存时从不触发代码操作。",neverBoolean:"仅在显式保存时触发代码操作。此值将被弃用,取而代之将使用“从不”。","notebook.VariablesView.description":"在调试面板中启用实验性笔记本变量视图。","notebook.backup.sizeLimit":"笔记本文件将不再备份以进行热重载的笔记本输出大小限制(以 KB 为单位)。使用 0 表示无限制。","notebook.cellChat":"在笔记本中启用实验性浮动聊天小组件。","notebook.cellFailureDiagnostics":"显示可用的单元故障诊断。","notebook.cellGenerate":"启用实验性生成操作,以创建已启用内联聊天的代码单元格。","notebook.cellToolbarLocation.description":"应在何处显示单元格工具栏,或是否隐藏它。","notebook.cellToolbarLocation.viewType":"为特定文件类型配置单元格工具栏位置","notebook.cellToolbarVisibility.description":"是否应在悬停或单击时显示单元格工具栏。","notebook.codeActionsOnSave":'保存时为笔记本运行一系列代码操作。必须指定代码操作,在延迟后不得保存该文件,并且编辑器不得关闭。示例:“"notebook.source.organizeImports": "explicit"”',"notebook.compactView.description":"控制是否应以紧凑形式呈现笔记本编辑器。例如在打开时,它将减小左边距宽度。","notebook.confirmDeleteRunningCell":"控制是否需要确认提示才能删除正在运行的单元格。","notebook.consolidatedOutputButton.description":"控制是否应在输出工具栏中呈现输出操作。","notebook.consolidatedRunButton.description":"控制是否在“运行”按钮旁边的下拉列表中显示额外操作。","notebook.diff.enableOverviewRuler.description":"是否在笔记本的差异编辑器中呈现概述标尺。","notebook.diff.enablePreview.description":"是否对笔记本使用增强的文本差异编辑器。","notebook.disableOutputFilePathLinks":"控制是否在笔记本单元格输出中禁用文件路径链接。","notebook.displayOrder.description":"输出项 mime 类型的优先级列表","notebook.dragAndDrop.description":"控制笔记本编辑器是否应允许通过拖放移动单元格。","notebook.editorOptions.experimentalCustomization":"用于笔记本中使用的代码编辑器的设置。这可用于自定义大多数编辑器*设置。","notebook.findScope":"自定义用于在笔记本单元格中搜索的“查找小组件”行为。启用标记源和标记预览后,“查找小组件”将根据单元格的当前状态搜索源代码或预览。","notebook.focusIndicator.description":"控制焦点指示器呈现位置(是沿单元格边框,还是在左侧装订线上)。","notebook.formatOnCellExecution":"执行时设置笔记本单元格的格式。格式化程序必须可用。","notebook.formatOnSave":"保存时设置笔记本的格式。格式化程序必须可用,文件不得在延迟后保存,且编辑器不得关闭。","notebook.globalToolbar.description":"控制是否在笔记本编辑器中呈现全局工具栏。","notebook.globalToolbarShowLabel":"控制笔记本工具栏上的操作是否应呈现标签。","notebook.insertFinalNewline":"启用后,保存笔记本时,将最后一个新行插入代码单元格的末尾。","notebook.insertToolbarPosition.description":"控制插入单元格操作应出现的位置。","notebook.interactiveWindow.collapseCodeCells":"控制默认情况下是否折叠交互窗口中的代码单元格。","notebook.markup.fontSize":"控制笔记本中呈现的标记的字号(以像素为单位)。设置为 {0} 时,将使用 120% 的 {1}。","notebook.minimalErrorRendering":"控制是否以最小样式呈现错误输出。","notebook.outputFontFamily":"笔记本单元格内输出文本的字体系列。设置为空时,使用 {0}。","notebook.outputFontSize":"笔记本单元格内输出文本的字号。设置为 0 时,使用 {0}。","notebook.outputLineHeight":"笔记本单元格内输出文本的行高。\r\n - 设置为 0 时,使用编辑器行高。\r\n - 介于 0 和 8 之间的值将用作字号的乘数。\r\n - 大于或等于 8 的值将用作有效值。","notebook.outputScrolling":"超出限制时,最初在可滚动区域中呈现笔记本输出。","notebook.outputWordWrap":"控制输出中的行是否应换行。","notebook.remoteSaving":"启用在远程环境中笔记本的增量保存。启用后,仅对笔记本的更改才会发送到扩展主机,以提高大型笔记本和慢速网络连接的性能。","notebook.scrolling.revealNextCellOnExecute.description":"运行 {0} 时显示下一个单元格时滚动的距离。","notebook.scrolling.revealNextCellOnExecute.firstLine.description":"滚动以显示下一个单元格的第一行。","notebook.scrolling.revealNextCellOnExecute.fullCell.description":"滚动以完全显示下一个单元格。","notebook.scrolling.revealNextCellOnExecute.none.description":"不滚动。","notebook.showCellStatusbar.description":"是否应显示单元格状态栏。","notebook.showCellStatusbar.hidden.description":"单元格状态栏始终隐藏。","notebook.showCellStatusbar.visible.description":"单元格状态栏始终可见。","notebook.showCellStatusbar.visibleAfterExecute.description":"在执行单元格之前,单元格状态栏处于隐藏状态。之后,其会变为可见以显示执行状态。","notebook.showFoldingControls.description":"控制显示 Markdown 标头文件箭头的时间。","notebook.stickyScrollEnabled.description":"试验。控制是否在笔记本编辑器中呈现笔记本的“粘滞滚动”标题。","notebook.stickyScrollMode.description":"控制嵌套粘滞线是显示为平叠还是缩进。","notebook.stickyScrollMode.flat":"嵌套粘滞线显示为平面。","notebook.stickyScrollMode.indented":"嵌套粘滞线显示为缩进。","notebook.textOutputLineLimit":"控制文本输出中显示的文本行数。如果启用 {0},使用此设置确定输出的滚动高度。","notebook.undoRedoPerCell.description":"是否为每个单元格使用单独的撤消/重做堆叠。",notebookConfigurationTitle:"笔记本","showFoldingControls.always":"折叠控件始终可见。","showFoldingControls.mouseover":"折叠控件仅在鼠标悬停时可见。","showFoldingControls.never":"切勿显示折叠控件并减小装订线大小。"},"vs/workbench/contrib/notebook/browser/notebookAccessibility":{"notebook.cell.edit":"“编辑单元格”命令 ({0}) 将焦点放在单元格输入上。","notebook.cell.editNoKb":"“编辑单元格”命令将焦点放在单元格输入上,当前无法通过键绑定触发该命令。","notebook.cell.executeAndFocusContainer":"“执行单元格”命令 ({0}) 执行当前具有焦点的单元格。","notebook.cell.executeAndFocusContainerNoKb":"“执行单元格”命令执行当前具有焦点的单元格,当前无法通过键绑定触发该命令。","notebook.cell.focusInOutput":"“焦点输出”命令 ({0}) 将在单元格的输出中设置焦点。","notebook.cell.focusInOutputNoKb":"“退出编辑”命令将在单元格的输出中设置焦点,当前无法通过键绑定触发该命令。","notebook.cell.insertCodeCellBelowAndFocusContainer":"“在上方/下方插入单元格”命令将创建新的空代码单元格","notebook.cell.quitEdit":"“退出编辑”命令 ({0}) 将焦点设置在单元格容器上。如果虚拟光标处于活动状态,则可能需要先按两次默认(Escape)键才会退出虚拟光标。","notebook.cell.quitEditNoKb":"“退出编辑”命令将在单元格容器上设置焦点,当前无法通过键绑定触发该命令。","notebook.cellNavigation":"焦点位于外部单元格容器上时,向上和向下箭头也将在单元格之间移动焦点。","notebook.changeCellType":"“将单元格更改为代码/Markdown”命令用于在单元格类型之间切换。","notebook.focusNextEditor":"聚焦到下一个单元格编辑器命令({0})将在下一个单元格的编辑器中设置焦点。","notebook.focusNextEditorNoKb":"聚焦到下一个单元格编辑器命令将在下一个单元格的编辑器中设置焦点,当前无法通过键绑定触发。","notebook.focusPreviousEditor":"聚焦到上一个单元格编辑器命令({0})将在上一个单元格的编辑器中设置焦点。","notebook.focusPreviousEditorNoKb":"聚焦到上一个单元格编辑器命令将在上一个单元格的编辑器中设置焦点,当前无法通过键绑定触发。","notebook.overview":"笔记本视图是代码单元格和 Markdown 单元格的集合。可以执行代码单元格,该单元格下方将直接生成输出。"},"vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider":{notebookTreeAriaLabel:"笔记本",notebookTreeAriaLabelHelp:"笔记本\r\n使用 {0} 获得辅助功能帮助",notebookTreeAriaLabelHelpNoKb:"笔记本\r\n有关详细信息,请运行“打开辅助功能帮助”命令"},"vs/workbench/contrib/notebook/browser/notebookEditor":{"fail.noEditor":"无法打开笔记本编辑器类型为“{0}”的资源,请检查是否已安装并启用正确的扩展。","fail.noEditor.extensionMissing":"无法打开笔记本编辑器类型为“{0}”的资源,请检查是否已安装并启用正确的扩展。",notebookOpenAsText:"以文本形式打开",notebookOpenEnableMissingViewType:'为 "{0}" 启用扩展',notebookOpenInTextEditor:"在文本编辑器中打开",notebookOpenInstallMissingViewType:'安装 "{0}" 的扩展',notebookTooLargeForHeapErrorWithSize:"此笔记本未显示在笔记本编辑器中,因为它非常大({0})。",notebookTooLargeForHeapErrorWithoutSize:"此笔记本未显示在笔记本编辑器中,因为它非常大。"},"vs/workbench/contrib/notebook/browser/notebookEditorWidget":{focusedCellBackground:"将焦点放在单元格上时单元格的背景色。","notebook.cellBorderColor":"笔记本单元格的边框颜色。","notebook.cellEditorBackground":"单元格编辑器背景色。","notebook.cellHoverBackground":"将鼠标悬停在单元格上时单元格的背景色。","notebook.cellInsertionIndicator":"笔记本单元格插入指示符的颜色。","notebook.cellStatusBarItemHoverBackground":"笔记本单元格状态栏项的背景色。","notebook.cellToolbarSeparator":"单元格底部工具栏中分隔符的颜色","notebook.editorBackground":"笔记本背景色。","notebook.focusedCellBorder":"将焦点放在单元格上时单元格焦点指示器边框的颜色。","notebook.focusedEditorBorder":"笔记本单元格编辑器边框的颜色。","notebook.inactiveFocusedCellBorder":"当主要焦点在编辑器外时,聚焦单元格时单元格的上下边框的颜色。","notebook.inactiveSelectedCellBorder":"选定多个单元格时单元格边框的颜色。","notebook.outputContainerBackgroundColor":"笔记本输出容器背景的颜色。","notebook.outputContainerBorderColor":"笔记本输出容器的边框颜色。","notebook.selectedCellBorder":"选中单元格但未将焦点放在其上时单元格上边框和下边框的颜色。","notebook.symbolHighlightBackground":"突出显示的单元格的背景色","notebookEditorOverviewRuler.runningCellForeground":"笔记本编辑器概述标尺中正在运行的单元格修饰的颜色。",notebookScrollbarSliderActiveBackground:"单击时笔记本滚动条滑块的背景色。",notebookScrollbarSliderBackground:"笔记本滚动条滑块的背景色。",notebookScrollbarSliderHoverBackground:"悬停时笔记本滚动条滑块的背景色。","notebookStatusErrorIcon.foreground":"单元格状态栏中笔记本单元格的错误图标颜色。","notebookStatusRunningIcon.foreground":"单元格状态栏中笔记本单元格的“正在运行”图标颜色。","notebookStatusSuccessIcon.foreground":"单元格状态栏中笔记本单元格的错误图标颜色。",selectedCellBackground:"选中某个单元格时该单元格的背景色。"},"vs/workbench/contrib/notebook/browser/notebookExtensionPoint":{"Notebook id":"ID","Notebook mimetypes":"Mimetypes","Notebook name":"名称","Notebook renderer name":"名称","contributes.notebook.provider":"提供笔记本文档处理程序。","contributes.notebook.provider.displayName":"笔记本的可读名称。","contributes.notebook.provider.selector":"适用于笔记本的一组 glob 模式。","contributes.notebook.provider.selector.filenamePattern":"启用笔记本的 glob 模式。","contributes.notebook.provider.viewType":"笔记本类型。","contributes.notebook.renderer":"提供笔记本输出渲染器。","contributes.notebook.renderer.displayName":"笔记本输出渲染器的可读名称。","contributes.notebook.renderer.entrypoint":"要在 Web 视图中加载用于呈现扩展的文件。","contributes.notebook.renderer.entrypoint.extends":"此呈现器扩展的现有呈现器。","contributes.notebook.renderer.hardDependencies":'呈现器所需的内核依赖项的列表。如果 "NotebookKernel" 中存在任何依赖关系,则可以使用呈现器。',"contributes.notebook.renderer.optionalDependencies":'呈现器可利用的软内核依赖项的列表。如果 "NotebookKernel" 中存在任何依赖关系,则呈现器将优先于不与内核交互的呈现器。',"contributes.notebook.renderer.requiresMessaging":'定义呈现器是否需要通过 "createRendererMessaging" 与扩展主机通信。具有较强消息传递要求的呈现器可能在所有环境中都不起作用。',"contributes.notebook.renderer.requiresMessaging.always":"消息传递是必需的。仅当它是可在扩展主机中运行的扩展的一部分时,才会使用该呈现器。","contributes.notebook.renderer.requiresMessaging.never":"呈现器不需要消息传递。","contributes.notebook.renderer.requiresMessaging.optional":"有可用的消息传递时,呈现器效果更好,但不强制要求。","contributes.notebook.renderer.viewType":"笔记本输出渲染器的唯一标识符。","contributes.notebook.selector":"适用于笔记本的一组 glob 模式。","contributes.notebook.selector.provider.excludeFileNamePattern":"禁用笔记本的 glob 模式。","contributes.preload.entrypoint":"Web 视图中加载的文件的路径。","contributes.preload.localResourceRoots":"Web 视图中应允许的其他资源的路径。","contributes.preload.provider":"提供笔记本预加载。","contributes.preload.provider.viewType":"笔记本类型。","contributes.priority":'控制在用户打开文件时是否自动启用自定义编辑器。用户可能会使用 "workbench.editorAssociations" 设置覆盖此项。',"contributes.priority.default":"在用户打开资源时自动使用此编辑器,前提是没有为该资源注册其他默认的自定义编辑器。","contributes.priority.option":"在用户打开资源时不会自动使用此编辑器,但用户可使用 `Reopen With` 命令切换到此编辑器。",notebookRenderer:"笔记本呈现器",notebooks:"笔记本"},"vs/workbench/contrib/notebook/browser/notebookIcons":{clearIcon:"用于在笔记本编辑器中清除单元格输出的图标。",collapsedIcon:"用于在笔记本编辑器中批注已折叠部分的图标。",copyIcon:"将内容复制到剪贴板的图标",deleteCellIcon:"用于在笔记本编辑器中删除单元格的图标。",editIcon:"用于在笔记本编辑器中编辑单元格的图标。",errorStateIcon:"用于在笔记本编辑器中指示错误状态的图标。",executeAboveIcon:"用于在笔记本编辑器中在单元格上方进行执行的图标。",executeAllIcon:"用于在笔记本编辑器中执行所有单元格的图标。",executeBelowIcon:"用于在笔记本编辑器中在单元格下方进行执行的图标。",executeIcon:"笔记本编辑器中的执行图标。",executingStateIcon:"用于在笔记本编辑器中指示执行状态的图标。",expandedIcon:"用于在笔记本编辑器中批注已展开部分的图标。",mimetypeIcon:"MIME 类型笔记本编辑器的图标。",moveDownIcon:"用于在笔记本编辑器中下移单元格的图标。",moveUpIcon:"用于在笔记本编辑器中上移单元格的图标。",nextChangeIcon:"差异编辑器中下一个更改操作的图标",openAsTextIcon:"用于在文本编辑器中打开笔记本的图标。",pendingStateIcon:"用于在笔记本编辑器中指示挂起状态的图标。",previousChangeIcon:"差异编辑器中上一个更改操作的图标",renderOutputIcon:"用于在差异编辑器中呈现输出的图标。",revertIcon:"笔记本编辑器中的还原图标。",selectKernelIcon:"配置用于在笔记本编辑器中选择内核的图标。",splitCellIcon:"用于在笔记本编辑器中拆分单元格的图标。",stopEditIcon:"用于在笔记本编辑器中停止编辑单元格的图标。",stopIcon:"用于在笔记本编辑器中停止执行的图标。",successStateIcon:"用于在笔记本编辑器中指示成功状态的图标。",variablesViewIcon:"查看变量视图的图标。"},"vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl":{notebookRunTrust:"执行笔记本单元将从此工作区运行代码。"},"vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl":{"workbench.notebook.clearNotebookKernelsMRUCache":"清除笔记本内核 MRU 缓存"},"vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl":{disableOtherKeymapsConfirmation:"是否禁用其他按键映射扩展 ({0}),从而避免按键绑定之间的冲突?",no:"否",yes:"是"},"vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl":{renderChannelName:"笔记本呈现"},"vs/workbench/contrib/notebook/browser/services/notebookServiceImpl":{notebookOpenInstallMissingViewType:'安装 "{0}" 的扩展'},"vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions":{"notebook.cell.toggleLineNumbers.title":"显示单元格行号","notebook.lineNumbers":"控制单元格编辑器中行号的显示。","notebook.showLineNumbers":"笔记本行号","notebook.toggleLineNumbers":"切换笔记本行号"},"vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput":{curruentActiveMimeType:"当前处于活动状态",empty:"单元格没有输出",installJupyterPrompt:"从市场安装其他呈现器","noRenderer.2":"找不到输出的呈现器。其具有以下 mimetype: {0}",pickMimeType:"更改演示文稿","promptChooseMimeType.placeHolder":"为当前项选择要渲染的 mime 类型","promptChooseMimeTypeInSecure.placeHolder":"为当前项选择要渲染的 mime 类型",unavailableRenderInfo:"呈现器不可用"},"vs/workbench/contrib/notebook/browser/view/cellParts/codeCell":{cellExpandInputButtonLabel:"展开单元格输入({0})",cellExpandInputButtonLabelWithDoubleClick:"双击以展开单元格输入({0})"},"vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon":{"notebook.cell.status.executing":"正在执行","notebook.cell.status.failure":"失败","notebook.cell.status.pending":"挂起","notebook.cell.status.success":"成功"},"vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar":{"notebook.moreRunActionsLabel":"更多..."},"vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput":{cellExpandOutputButtonLabel:"展开单元格输出(${0})",cellExpandOutputButtonLabelWithDoubleClick:"双击以展开单元格输出({0})",cellOutputsCollapsedMsg:"输出已折叠"},"vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint":{hiddenCellsLabel:"已隐藏 1 个单元格",hiddenCellsLabelPlural:"已隐藏 {0} 个单元格"},"vs/workbench/contrib/notebook/browser/view/cellParts/markupCell":{cellExpandInputButtonLabel:"展开单元格输入({0})",cellExpandInputButtonLabelWithDoubleClick:"双击以展开单元格输入({0})"},"vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView":{"notebook.emptyMarkdownPlaceholder":"空白 Markdown 单元格,请双击或按 Enter 以进行编辑。","notebook.error.rendererFallbacksExhausted":"无法呈现“$0”的内容","notebook.error.rendererNotFound":"找不到“$0”的呈现器","webview title":"笔记本 Web 视图内容"},"vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer":{cellExecutionOrderCountLabel:"执行顺序"},"vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory":{empty:"空单元格"},"vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy":{current1:"当前所选内容",current2:"{0}–当前所选内容",installSuggestedKernel:"安装/启用建议的扩展","kernels.detecting":"检测内核","kernels.selectedKernelAndKernelDetectionRunning":"所选内核: {0} (正在运行内核检测任务)",learnMoreTooltip:"了解详细信息","prompt.placeholder.change":'更改 "{0}" 的内核',"prompt.placeholder.select":"选择“{0}”的内核",searchForKernels:"浏览市场以获取内核扩展",select:"选择内核",selectAnotherKernel:"选择另一个内核","selectAnotherKernel.more":"选择其他内核...","selectKernel.placeholder":"键入以选择内核源",selectKernelFromExtension:"从 {0} 中选择内核"},"vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView":{"notebookActions.selectKernel":"选择笔记本内核","notebookActions.selectKernel.args":"笔记本内核参数"},"vs/workbench/contrib/notebook/common/notebookEditorInput":{vetoExtHostRestart:"无法保存笔记本“{0}”。"},"vs/workbench/contrib/offline/browser/offline.contribution":{offline:"网络似乎处于脱机状态,某些功能可能不可用。",statusBarOfflineBackground:"工作台脱机时的状态栏背景色。状态栏显示在窗口底部",statusBarOfflineBorder:"工作台脱机时用来与侧边栏和编辑器区分的状态栏边框颜色。状态栏显示在窗口底部。",statusBarOfflineForeground:"工作台脱机时的状态栏前景色。状态栏显示在窗口底部"},"vs/workbench/contrib/outline/browser/outline.contribution":{"filteredTypes.array":"启用后,大纲将显示 `array` 符号。","filteredTypes.boolean":"启用后,大纲将显示 `boolean` 符号。","filteredTypes.class":"启用后,大纲将显示 `class` 符号。","filteredTypes.constant":"启用后,大纲将显示`constant`符号。","filteredTypes.constructor":"启用大纲时,大纲将显示 `constructor` 符号。","filteredTypes.enum":"启用后,大纲将显示 `enum` 符号。","filteredTypes.enumMember":"启用后,大纲将显示 `enumMember` 符号。","filteredTypes.event":"启用后,大纲将显示 `event` 符号。","filteredTypes.field":"启用时,大纲将显示 `field`符号。","filteredTypes.file":"启用后,大纲将显示 `file` 符号。","filteredTypes.function":"启用时,大纲将显示 `function` 符号。","filteredTypes.interface":"启用后,大纲将显示 `interface` 符号。","filteredTypes.key":"启用后,大纲将显示 `key`符号。","filteredTypes.method":"启用后,大纲将显示 `method` 符号。","filteredTypes.module":"启用后,大纲将显示 `module` 符号。","filteredTypes.namespace":"启用后,大纲将显示 `namespace` 符号。","filteredTypes.null":"启用后,大纲将显示 `null` 符号。","filteredTypes.number":"启用后,大纲将显示 `number` 符号。","filteredTypes.object":"启用后,大纲将显示 `object` 符号。","filteredTypes.operator":"启用时,大纲显示 `operator` 符号。","filteredTypes.package":"启用后,大纲将显示 `package` 符号。","filteredTypes.property":"启用后,大纲将显示 `property` 符号。","filteredTypes.string":"启用后,大纲将显示 `string` 符号。","filteredTypes.struct":"启用后,大纲将显示`struct` 符号。","filteredTypes.typeParameter":"启用后,大纲将显示 `typeParameter` 符号。","filteredTypes.variable":"启用后,大纲将显示 `variable` 符号。",name:"大纲","outline.initialState":"控制大纲项是折叠还是展开。","outline.initialState.collapsed":"折叠所有项。","outline.initialState.expanded":"展开所有项。","outline.problem.colors":"对大纲元素的错误和警告使用颜色。关闭时被 `#problems.visibility#` 覆盖。","outline.problems.badges":"对大纲元素的错误和警告使用锁屏提醒。关闭时被 `#problems.visibility#` 覆盖。","outline.showIcons":"使用图标呈现大纲元素。","outline.showProblem":"显示大纲元素上的错误和警告。关闭时被 `#problems.visibility#` 覆盖。",outlineConfigurationTitle:"大纲",outlineViewIcon:"查看大纲视图的图标。"},"vs/workbench/contrib/outline/browser/outlineActions":{collapse:"全部折叠",expand:"全部展开",filterOnType:"在输入时筛选",followCur:"跟随光标",sortByKind:"排序方式 : 类别",sortByName:"排序依据 : 名称",sortByPosition:"排序依据 : 位置"},"vs/workbench/contrib/outline/browser/outlinePane":{loading:"正在加载“{0}”的文档符号...","no-editor":"活动编辑器无法提供大纲信息。","no-symbols":"在文档“{0}”中找不到符号"},"vs/workbench/contrib/output/browser/output.contribution":{"clearOutput.label":"清除输出",extensionLogs:"扩展日志",logFile:'要打开的日志文件的 ID,例如 `"window"`。当前获取此信息的最佳方法是通过检查 `workbench.action.output.show.` 命令来获取 ID',"logLevel.label":"设置日志级别...","logLevelDefault.label":"设为默认值",miToggleOutput:"输出(&&O)",openActiveOutputFile:"在编辑器中打开输出",openActiveOutputFileInNewWindow:"在新窗口中打开输出",openLogFile:"打开日志文件...",output:"输出","output.smartScroll.enabled":"在输出视图中启用或禁用「智能滚动」。「智能滚动」会自动在你点击输出视图时锁定滚动,并在你点击最后一行时解锁滚动。",outputScrollOff:"关闭自动滚动",outputScrollOn:"打开自动滚动",outputViewIcon:"查看输出视图的图标。",selectOutput:"选择输出通道",selectlog:"选择日志",selectlogFile:"选择日志文件",showLogs:"显示日志...",showOutputChannels:"显示输出通道...","switchBetweenOutputs.label":"切换输出","switchToOutput.label":"切换输出",toggleAutoScroll:"切换自动滚动"},"vs/workbench/contrib/output/browser/outputView":{channel:"“{0}”的输出通道",output:"输出","output model title":"{0} - 输出",outputViewAriaLabel:"输出面板"},"vs/workbench/contrib/performance/browser/performance.contribution":{cycles:"打印服务周期",emitter:"打印发射器配置文件","insta.trace":"打印服务跟踪","show.label":"启动性能"},"vs/workbench/contrib/performance/browser/perfviewEditor":{name:"启动性能"},"vs/workbench/contrib/performance/electron-sandbox/performance.contribution":{"experimental.rendererProfiling":"启用时,将自动分析慢速呈现器"},"vs/workbench/contrib/performance/electron-sandbox/startupProfiler":{"prof.detail":"请创建问题并手动附加以下文件:\r\n{0}","prof.detail.restart":"需要重新启动才能继续使用“{0}”。再次感谢您的贡献。","prof.message":"成功创建的配置文件。","prof.restart":"重启","prof.restart.button":"重启(&&R)","prof.restartAndFileIssue":"创建问题并重启(&&C)","prof.thanks":"感谢您的帮助。"},"vs/workbench/contrib/preferences/browser/keybindingsEditor":{"SearchKeybindings.FullTextSearchPlaceholder":"在此键入搜索按键绑定","SearchKeybindings.KeybindingsSearchPlaceholder":"正在录制按键。按 Esc 键退出",addKeybindingLabel:"添加键绑定",addKeybindingLabelWithKey:"添加按键绑定 {0}",addLabel:"添加键绑定…",changeLabel:"更改键绑定…",clearInput:"清除键绑定搜索输入",command:"命令",copyCommandLabel:"复制命令 ID",copyCommandTitleLabel:"复制命令标题",copyLabel:"复制",editKeybindingLabel:"更改键绑定",editKeybindingLabelWithKey:"更改键绑定 {0}",editWhen:"更改 When 表达式",error:'编辑按键绑定时发生错误“{0}”。请打开 "keybindings.json" 文件并检查错误。',"extension label":"扩展({0})",keybinding:"键绑定",keybindingsLabel:"键绑定","keyboard shortcuts aria label":"使用空格或 Enter 来更改键绑定。",noKeybinding:"未分配键绑定",noWhen:"没有时间上下文",recordKeysLabel:"录制按键",recording:"正在录制按键",removeLabel:"删除键绑定",resetLabel:"重置按键绑定","show keybindings":"按字母顺序显示 {0} 个按键绑定","show sorted keybindings":"按优先级顺序显示 {0} 个按键绑定",showSameKeybindings:"显示相同的按键绑定",sortByPrecedeneLabel:"按优先级排序(最高优先)",source:"源",title:"{0} ({1})",when:"当"},"vs/workbench/contrib/preferences/browser/keybindingsEditorContribution":{"defineKeybinding.kbLayoutErrorMessage":"在当前键盘布局下无法生成此组合键。","defineKeybinding.kbLayoutLocalAndUSMessage":"在你的键盘布局上为 **{0}**(美国标准布局上为 **{1}**)。","defineKeybinding.kbLayoutLocalMessage":"在你的键盘布局上为 **{0}**。"},"vs/workbench/contrib/preferences/browser/keybindingWidgets":{"defineKeybinding.chordsTo":"加上","defineKeybinding.existing":"已有 {0} 条命令的按键绑定与此相同","defineKeybinding.initial":"先按所需的组合键,再按 Enter 键。","defineKeybinding.oneExists":"已有 1 条命令的按键绑定与此相同"},"vs/workbench/contrib/preferences/browser/keyboardLayoutPicker":{autoDetect:"自动检测",configureKeyboardLayout:"配置键盘布局",displayLanguage:"定义在浏览器环境的 VS Code 中使用的键盘布局。",doc:"打开 VS Code 并从命令面板运行“开发人员: 检查密钥映射(JSON)”。","fail.createSettings":"无法创建“{0}”({1})。","keyboard.chooseLayout":"更改键盘布局",keyboardLayout:"布局: {0}",layoutPicks:"键盘布局({0})",pickKeyboardLayout:"选择键盘布局","status.workbench.keyboardLayout":"键盘布局"},"vs/workbench/contrib/preferences/browser/preferences.contribution":{clear:"清除搜索结果",clearHistory:"清除键盘快捷方式搜索历史记录","defineKeybinding.start":"定义键绑定",filterUntrusted:"显示不受信任的工作区设置",keybindingsEditor:"键绑定编辑器",keyboardShortcuts:"键盘快捷方式",miOpenOnlineSettings:"联机服务设置(&&O)",miOpenSettings:"设置(&&S)",miOpenTelemetrySettings:"遥测设置(&&T)",miPreferences:"首选项(&&P)",openAccessibilitySettings:"打开辅助功能设置",openApplicationSettingsJson:"打开应用程序设置(JSON)",openDefaultKeybindingsFile:"打开默认键盘快捷键(JSON)",openFolderSettings:"打开文件夹设置",openFolderSettingsFile:"打开文件夹设置(JSON)",openGlobalKeybindings:"打开键盘快捷方式",openGlobalKeybindingsFile:"打开键盘快捷方式(JSON)",openGlobalSettings:"打开用户设置",openRawDefaultSettings:"打开默认设置(JSON)",openRemoteSettings:"打开远程设置({0})",openRemoteSettingsJSON:"打开远程设置(JSON) ({0})",openSettings2:"打开设置 (ui)",openSettingsJson:"打开设置 (json)",openUserSettingsJson:"打开用户设置(JSON)",openWorkspaceSettings:"打开工作区设置",openWorkspaceSettingsFile:"打开工作区设置(JSON)",preferences:"首选项",settings:"设置","settings.clearResults":"清除设置搜索结果","settings.focusFile":"聚焦到设置文件","settings.focusLevelUp":"将焦点上移一级","settings.focusSearch":"聚焦到设置搜索","settings.focusSettingControl":"焦点设置控制","settings.focusSettingsList":"聚焦设置列表","settings.focusSettingsTOC":"聚焦到设置目录","settings.showContextMenu":"显示设置上下文菜单",settingsEditor2:"设置编辑器 2",showDefaultKeybindings:"显示系统键绑定",showExtensionKeybindings:"显示扩展键绑定",showUserKeybindings:"显示用户按键绑定","workbench.action.openSettingsJson.description":"打开包含当前用户配置文件设置的 JSON 文件"},"vs/workbench/contrib/preferences/browser/preferencesActions":{configureLanguageBasedSettings:"配置语言特定的设置...",languageDescriptionConfigured:"({0})",pickLanguage:"选择语言"},"vs/workbench/contrib/preferences/browser/preferencesIcons":{keybindingsAddIcon:"键绑定 UI 中“添加”操作的图标。",keybindingsEditIcon:"键绑定 UI 中“编辑”操作的图标。",keybindingsRecordKeysIcon:"键绑定 UI 中“记录密钥”操作的图标。",keybindingsSortIcon:"键绑定 UI 中“按优先级排序”切换开关的图标。",preferencesClearInput:"设置和键绑定 UI 中的“清除输入”图标。",preferencesDiscardIcon:"设置 UI 中“放弃”操作的图标。",preferencesOpenSettings:"“打开设置”命令的图标。",settingsEditIcon:"设置 UI 中“编辑”操作的图标。",settingsFilter:"为设置 UI 建议筛选器的按钮的图标。",settingsMoreActionIcon:"设置 UI 中“更多操作”操作的图标。",settingsRemoveIcon:"设置 UI 中“删除”操作的图标。",settingsScopeDropDownIcon:"“拆分 JSON 设置”编辑器中“文件夹”下拉按钮的图标。"},"vs/workbench/contrib/preferences/browser/preferencesRenderers":{allProfileSettingWhileInNonDefaultProfileSetting:"无法应用此设置,因为它已配置为使用设置 {0} 在所有配置文件中应用。将改用默认配置文件中的值。",copyDefaultValue:"复制到设置",defaultProfileSettingWhileNonDefaultActive:"非默认配置文件处于活动状态时无法应用此设置。将在默认配置文件处于活动状态时应用。",editTtile:"编辑","manage workspace trust":"管理工作区信任",replaceDefaultValue:"在设置中替换","unknown configuration setting":"未知的配置设置",unsupportLanguageOverrideSetting:"无法应用此设置,因为它未注册为语言替代设置。",unsupportedApplicationSetting:"此设置具有应用程序范围,只能在用户设置文件中设置。",unsupportedMachineSetting:"只能在本地窗口的用户设置中或者远程窗口的远程设置中应用此设置。",unsupportedPolicySetting:"无法应用此设置,因为它是在系统策略中配置的。",unsupportedProperty:"不支持的属性",unsupportedRemoteMachineSetting:"此设置无法在此窗口中应用。在你打开本地窗口时将应用它。",unsupportedWindowSetting:"此设置无法应用于此工作区。它将在您直接打开包含的工作区文件夹时应用。",untrustedSetting:"此设置仅可应用于受信任的工作区。"},"vs/workbench/contrib/preferences/browser/preferencesWidgets":{folderSettings:"文件夹",settingsSwitcherBarAriaLabel:"设置转换器",userSettings:"用户",userSettingsRemote:"远程",workspaceSettings:"工作区"},"vs/workbench/contrib/preferences/browser/settingsEditor2":{"SearchSettings.AriaLabel":"搜索设置",clearInput:"清除设置搜索输入",clearSearchFilters:"清除筛选",filterInput:"筛选器设置",lastSyncedLabel:"上次同步时间: {0}",moreThanOneResult:"找到 {0} 个设置",noResults:"未找到设置",oneResult:"找到 1 个设置",settings:"设置","settings require trust":"工作区信任",turnOnSyncButton:"备份和同步设置"},"vs/workbench/contrib/preferences/browser/settingsEditorSettingIndicators":{alsoConfiguredElsewhere:"也已在其他位置修改",alsoConfiguredIn:"同时修改于",alsoModifiedInScopes:"在以下范围中也修改了该设置:",applicationSetting:"适用所有配置文件",applicationSettingDescription:"该设置不特定于当前配置文件,并将在切换配置文件时保留其值。",applicationSettingDescriptionAccessible:"切换配置文件时保留设置值",configuredElsewhere:"已在其他位置修改",configuredIn:"修改于",defaultOverriddenDetails:"默认设置值由 {0} 重写",defaultOverriddenDetailsAriaLabel:"{0} 替代了默认值",defaultOverriddenLabel:"默认值已更改",defaultOverriddenLanguagesList:"存在适用于 {0} 的特定于语言的默认值",extensionSyncIgnoredLabel:"未同步",hasDefaultOverridesForLanguages:"以下语言具有默认替代:",manageWorkspaceTrust:"管理工作区信任",modifiedInScopeForLanguage:"{1} 的 {0} 范围",modifiedInScopeForLanguageMidSentence:"{1} 的 {0} 范围",modifiedInScopes:"已在以下作用域中修改该设置:",policyDescription:"此设置由组织管理,并且无法更改其应用的值。",policyDescriptionAccessible:"由组织策略管理;未应用设置值",policyFilterLink:"查看策略设置",policyLabelText:"未应用设置值",remote:"远程",syncIgnoredAriaLabel:"同步期间忽略的设置",syncIgnoredTitle:"同步期间忽略此设置",trustLabel:"此设置值仅可应用于受信任的工作区。",user:"用户",workspace:"工作区",workspaceUntrustedAriaLabel:"工作区不受信任;未应用设置值",workspaceUntrustedLabel:"未应用设置值"},"vs/workbench/contrib/preferences/browser/settingsLayout":{accessibility:"辅助功能","accessibility.signals":"辅助功能信号",appearance:"外观",application:"应用程序",breadcrumbs:"导航路径",chat:"聊天",comments:"评论",commonlyUsed:"常用设置",cursor:"光标",debug:"调试",diffEditor:"差异编辑器",editorManagement:"编辑管理",experimental:"实验性",extensions:"扩展",features:"功能",fileExplorer:"资源管理器",files:"文件",find:"查找",font:"字体",formatting:"格式化",keyboard:"键盘",mergeEditor:"合并编辑器",minimap:"缩略图",multiDiffEditor:"多文件差异编辑器",newWindow:"新建窗口",notebook:"笔记本",other:"其他",output:"输出",problems:"问题",proxy:"代理服务器",remote:"远程",scm:"源代码管理",screencastMode:"截屏模式",search:"搜索",security:"安全性",settings:"设置编辑器",settingsSync:"设置同步",suggestions:"建议",task:"任务",telemetry:"遥测",terminal:"终端",testing:"测试",textEditor:"文本编辑器",timeline:"时间线",update:"更新",window:"窗口",workbench:"工作台",workspace:"工作区",zenMode:"禅模式"},"vs/workbench/contrib/preferences/browser/settingsSearchMenu":{extSettingsSearch:"扩展 ID...",extSettingsSearchTooltip:"添加扩展 ID 筛选器",featureSettingsSearch:"功能...",featureSettingsSearchTooltip:"添加功能筛选器",langSettingsSearch:"语言...",langSettingsSearchTooltip:"添加语言 ID 筛选器",modifiedSettingsSearch:"已更改",modifiedSettingsSearchTooltip:"添加或删除已修改的设置筛选器",onlineSettingsSearch:"联机服务",onlineSettingsSearchTooltip:"显示联机服务设置",policySettingsSearch:"策略服务",policySettingsSearchTooltip:"显示策略服务的设置",tagSettingsSearch:"标记...",tagSettingsSearchTooltip:"添加标记筛选器"},"vs/workbench/contrib/preferences/browser/settingsTree":{applyToAllProfiles:"将设置应用于所有配置文件",copySettingAsJSONLabel:"将设置复制为 JSON 文本",copySettingIdLabel:"复制设置 id",editInSettingsJson:"在 settings.json 中编辑",editLanguageSettingLabel:"编辑 {0} 的设置",extensions:"扩展",modified:"该设置已在当前作用域中配置。",newExtensionsButtonLabel:"显示匹配的扩展",resetSettingLabel:"重置此设置",settings:"设置","settings.Default":"默认","settings.Modified":"已修改。",settingsContextMenuTitle:"更多操作...",showExtension:"显示扩展",stopSyncingSetting:"同步此设置",validationError:"验证错误。"},"vs/workbench/contrib/preferences/browser/settingsWidgets":{addItem:"添加项",addPattern:"添加模式",cancelButton:"取消",editExcludeItem:"编辑排除项目",editIncludeItem:"编辑包含项",editItem:"编辑项",excludePatternHintLabel:"排除与“{0}”匹配的文件",excludePatternInputPlaceholder:"排除项的模式...",excludeSiblingHintLabel:"仅当存在匹配“{1}”的文件时,才排除匹配“{0}”的文件",excludeSiblingInputPlaceholder:"当符合此模式的项目存在时...",includePatternHintLabel:"包括与 `{0}` 匹配的文件",includePatternInputPlaceholder:"包括模式...",includeSiblingHintLabel:"仅当存在匹配 `{0}` 的文件时,才包含匹配 `{1}` 的文件",includeSiblingInputPlaceholder:"当符合此模式的项目存在时...",itemInputPlaceholder:"项...",listSiblingHintLabel:'列出与"${1}"同级的项目"{0}"',listSiblingInputPlaceholder:"同级...",listValueHintLabel:'列出项目"{0}"',objectKeyHeader:"项",objectKeyInputPlaceholder:"键",objectPairHintLabel:"属性“{0}”设置为“{1}”。",objectValueHeader:"值",objectValueInputPlaceholder:"值",okButton:"确定",removeExcludeItem:"删除排除项",removeIncludeItem:"删除包含项",removeItem:"删除项",resetItem:"重置项"},"vs/workbench/contrib/preferences/browser/tocTree":{groupRowAriaLabel:"{0},组",settingsTOC:"设置目录"},"vs/workbench/contrib/preferences/common/preferencesContribution":{enableNaturalLanguageSettingsSearch:"控制是否在设置中启用自然语言搜索。自然语言搜索由 Microsoft 联机服务提供。",settingsSearchTocBehavior:"控制设置编辑器的目录在搜索时的行为。如果在“设置”编辑器中更改此设置,则更改后的设置将在修改搜索查询后生效。","settingsSearchTocBehavior.filter":"筛选目录为仅显示含有匹配设置的类别。单击一个类别将仅显示该类别的结果。","settingsSearchTocBehavior.hide":"在搜索时隐藏目录。",splitSettingsEditorLabel:"拆分设置编辑器"},"vs/workbench/contrib/preferences/common/settingsEditorColorRegistry":{focusedRowBackground:"聚焦时设置行的背景色。",headerForeground:"节标题或活动标题的前景颜色。",modifiedItemForeground:"修改后的设置指示器的颜色。",numberInputBoxBackground:"设置编辑器编号输入框背景。",numberInputBoxBorder:"设置编辑器编号输入框边框。",numberInputBoxForeground:"设置编辑器编号输入框前景。","settings.focusedRowBorder":"将焦点放在行上时行的上边框和下边框的颜色。","settings.rowHoverBackground":"悬停时设置行的背景色。",settingsCheckboxBackground:"设置编辑器复选框背景。",settingsCheckboxBorder:"设置编辑器复选框边框。",settingsCheckboxForeground:"设置编辑器复选框前景。",settingsDropdownBackground:"设置编辑器下拉列表背景色。",settingsDropdownBorder:"设置编辑器下拉列表边框。",settingsDropdownForeground:"设置编辑器下拉列表前景色。",settingsDropdownListBorder:"设置编辑器下拉列表边框。这会将选项包围起来,并将选项与描述分开。",settingsHeaderBorder:"标头容器边框的颜色。",settingsHeaderHoverForeground:"节标题或悬停标题的前景色。",settingsSashBorder:"设置编辑器分割檢視窗扇边框的颜色。",textInputBoxBackground:"设置编辑器文本输入框背景。",textInputBoxBorder:"设置编辑器文本输入框边框。",textInputBoxForeground:"设置编辑器文本输入框前景。"},"vs/workbench/contrib/quickaccess/browser/commandsQuickAccess":{askXInChat:"询问 {0}: {1}",clearButtonLabel:"清除(&&C)",clearCommandHistory:"清除命令历史记录",commandWithCategory:"{0}: {1}","configure keybinding":"配置键绑定",confirmClearDetail:"此操作不可逆!",confirmClearMessage:"是否要清除最近使用的命令的历史记录?",noCommandResults:"没有匹配的命令",showTriggerActions:"显示所有命令"},"vs/workbench/contrib/quickaccess/browser/quickAccess.contribution":{commandPalette:"命令面板...",commandsQuickAccess:"显示并运行命令",commandsQuickAccessPlaceholder:"键入要运行的命令的名称。",helpQuickAccess:"显示所有快速访问提供程序",helpQuickAccessPlaceholder:'键入"{0}"以获取有关可在此处执行的操作的帮助。',miCommandPalette:"命令面板(&&C)…",miGotoLine:"转到行/列(&&L)…",miOpenView:"打开视图(&&O)…",miShowAllCommands:"显示所有命令",more:"更多",viewQuickAccess:"打开视图",viewQuickAccessPlaceholder:"键入要打开的视图、输出通道或终端的名称。"},"vs/workbench/contrib/quickaccess/browser/viewQuickAccess":{channels:"输出",debugConsoles:"调试控制台",noViewResults:"没有匹配的视图",openView:"打开视图",panels:"面板",quickOpenView:"Quick Open 视图","secondary side bar":"辅助侧边栏",terminalTitle:"{0}: {1}",terminals:"终端",views:"侧边栏"},"vs/workbench/contrib/relauncher/browser/relauncher.contribution":{relaunchSettingDetail:"按下“重启”按钮以重新启动 {0} 并启用该设置。",relaunchSettingDetailWeb:"按重新加载按钮重新加载{0}并启用该设置。",relaunchSettingMessage:"设置已更改,需要重启才能生效。",relaunchSettingMessageWeb:"设置已更改,需要重新加载才能生效。",restart:"重启(&&R)","restartExtensionHost.reason":"由于工作区文件夹更改,正在重启扩展主机。",restartWeb:"重载(&&R)"},"vs/workbench/contrib/remote/browser/explorerViewItems":{"switchRemote.label":"切换远程"},"vs/workbench/contrib/remote/browser/remote":{connectionLost:"连接中断",pickRemoteExtension:"选择要打开的 URL",reconnectNow:"立即重新连接",reconnectionPermanentFailure:"无法重新连接。请重新加载窗口。",reconnectionRunning:"已断开连接。正在尝试重新连接…",reconnectionWaitMany:"正在尝试在 {0} 秒内重新连接...",reconnectionWaitOne:"正在尝试在 {0} 秒内重新连接...",reloadWindow:"重新加载窗口","reloadWindow.dialog":"重新加载窗口(&&R)","remote.explorer":"远程资源管理器","remote.help":"帮助和反馈","remote.help.documentation":"阅读文档","remote.help.getStarted":"入门","remote.help.issues":"审查问题","remote.help.report":"报告问题",remotehelp:"远程帮助"},"vs/workbench/contrib/remote/browser/remoteConnectionHealth":{allow:"允许(&&A)",learnMore:"了解详细信息(&&L)",remember:"不再显示",unsupportedGlibcBannerLearnMore:"了解详细信息",unsupportedGlibcWarning:"你即将连接到不受 {0} 支持的 OS 版本。","unsupportedGlibcWarning.banner":"你已连接到不受 {0} 支持的 OS 版本。"},"vs/workbench/contrib/remote/browser/remoteExplorer":{"1forwardedPort":"1 个转发的端口",nForwardedPorts:"{0} 个转发的端口",noRemoteNoPorts:"没有转发的端口。转发端口以通过 Internet 访问本地运行的服务。\r\n[转发端口]({0})",ports:"端口","remote.autoForwardPortsSource.fallback":"已自动转发超过 20 个端口。在设置中,基于 `process` 的自动端口转发已切换为 `hybrid`。可能不再检测到某些端口。","remote.autoForwardPortsSource.fallback.showPortSourceSetting":"显示设置","remote.autoForwardPortsSource.fallback.switchBack":"撤消","remote.forwardedPorts.statusbarTextNone":"未转发端口","remote.forwardedPorts.statusbarTooltip":"转发的端口: {0}","remote.tunnelsView.automaticForward":"在端口 {1} 上运行的应用程序 {0} 可用。 ","remote.tunnelsView.elevationButton":"使用端口 {0} 作为 Sudo…","remote.tunnelsView.elevationMessage":"你需要以超级用户身份运行,才能在本地使用端口 {0}。","remote.tunnelsView.makePublic":"设为公开","remote.tunnelsView.notificationLink2":"[查看所有转发端口]({0})",remoteNoPorts:"没有转发的端口。转发端口以在本地访问正在运行的服务。\r\n[转发端口]({0})","status.forwardedPorts":"转发的端口"},"vs/workbench/contrib/remote/browser/remoteIcons":{copyAddressIcon:"“复制本地地址”操作的图标。",documentationIcon:"远程资源管理器视图中的文档图标。",feedbackIcon:"远程资源管理器视图中的反馈图标。",forwardPortIcon:"“前进”操作的图标。",forwardedPortWithProcessIcon:"具有正在运行的进程的转发端口图标。",forwardedPortWithoutProcessIcon:"没有正在运行的进程的转发端口图标。",getStartedIcon:"远程资源管理器视图中的入门图标。",labelPortIcon:"“标记端口”操作的图标。",openBrowserIcon:"“打开浏览器”操作的图标。",openPreviewIcon:"“打开预览”操作的图标。",portIcon:"表示一个远程端口的图标。",portsViewIcon:"查看远程端口视图的图标。",privatePortIcon:"表示一个私有远程端口的图标。",remoteExplorerViewIcon:"查看远程资源管理器视图的图标。",reportIssuesIcon:"远程资源管理器视图中的“报告问题”图标。",reviewIssuesIcon:"远程资源管理器视图中的“审阅问题”图标。",stopForwardIcon:"“停止转发”操作的图标。"},"vs/workbench/contrib/remote/browser/remoteIndicator":{"closeRemoteConnection.title":"关闭远程连接","closeVirtualWorkspace.title":"关闭远程工作区",disconnectedFrom:"已与 {0} 断开连接","host.open":"正在打开远程...","host.reconnecting":"正在重新连接到 {0}…","host.tooltip":"正在 {0} 上编辑",miCloseRemote:"关闭远程连接(&&M)",networkStatusHighLatencyTooltip:"网络似乎具有高延迟(上一次{0}毫秒,{1}毫秒平均值),某些功能可能响应缓慢。",networkStatusOfflineTooltip:"网络似乎处于脱机状态,某些功能可能不可用。","noHost.tooltip":"打开远程窗口",reloadWindow:"重新加载窗口","remote.category":"远程","remote.close":"关闭远程连接","remote.install":"安装远程开发拓展","remote.showExtensionRecommendations":"启用后,远程扩展建议将显示在“远程指示器”菜单中。","remote.showMenu":"显示远程菜单","remote.startActions.help":"了解详细信息","remote.startActions.install":"安装","remote.startActions.installingExtension":"正在安装扩展... ",remoteActions:"选择选项以打开远程窗口",remoteHost:"远程主机","workspace.tooltip":"正在 {0} 上编辑","workspace.tooltip2":"对于位于虚拟文件系统上的资源,某些[功能不可用] ({0})。"},"vs/workbench/contrib/remote/browser/remoteStartEntry":{"remote.category":"远程","remote.showWebStartEntryActions":"显示 Web 的远程启动条目"},"vs/workbench/contrib/remote/browser/tunnelFactory":{"tunnelPrivacy.private":"专用","tunnelPrivacy.public":"公用"},"vs/workbench/contrib/remote/browser/tunnelView":{"portWithRunningProcess.foreground":"具有关联的正在运行的进程的端口图标颜色。","portsLink.followLinkAlt":"Alt + 单击","portsLink.followLinkAlt.mac":"Option + 单击","portsLink.followLinkCmd":"Cmd + 单击","portsLink.followLinkCtrl":"Ctrl + 单击","remote.tunnel":"端口","remote.tunnel.changeLocalPort":"更改本地地址端口","remote.tunnel.changeLocalPortNumber":"本地端口 {0} 不可用。已改用端口号 {1}","remote.tunnel.close":"停止转发端口","remote.tunnel.closeNoPorts":"当前未转发端口。尝试运行{0}命令","remote.tunnel.closePlaceholder":"选择停止转发的端口","remote.tunnel.copyAddressCommandPalette":"复制转发的端口地址","remote.tunnel.copyAddressInline":"复制本地地址","remote.tunnel.copyAddressPlaceholdter":"选择转发的端口","remote.tunnel.forward":"转发端口","remote.tunnel.forwardError":"无法转发{0}: {1}。主机可能不可用,或者远程端口可能已被转发","remote.tunnel.forwardErrorProvided":"无法转发 {0}:{1}。{2}","remote.tunnel.forwardItem":"转发端口","remote.tunnel.forwardPrompt":"端口号或地址(例如 3000 或 10.10.10.10:2000)。","remote.tunnel.label":"设置端口标签","remote.tunnel.open":"在浏览器中打开","remote.tunnel.openCommandPalette":"在浏览器中打开端口","remote.tunnel.openCommandPaletteNone":"当前没有转发端口。若要开始,请打开端口视图。","remote.tunnel.openCommandPalettePick":"选择要打开的端口","remote.tunnel.openCommandPaletteView":"打开端口视图…","remote.tunnel.openPreview":"在编辑器中预览","remote.tunnel.protocolHttp":"HTTP","remote.tunnel.protocolHttps":"HTTPS","remote.tunnel.tooltipCandidate":"远程端口 {0}:{1} 未转发。","remote.tunnel.tooltipForwarded":"远程端口 {0}:{1} 已转发到本地地址 {2}。","remote.tunnel.tooltipName":"标记为 {0} 的端口。","remote.tunnelView.alreadyForwarded":"端口已被转发","remote.tunnelView.inlineElevationMessage":"可能需要 sudo","remote.tunnelsView.addPort":"添加端口","remote.tunnelsView.changePort":"新的本地端口","remote.tunnelsView.input":"按 Enter 键确认,或按 Esc 键取消。","remote.tunnelsView.labelPlaceholder":"端口标签","remote.tunnelsView.portNumberToHigh":"端口号必须大于等于 0 且小于 {0}。","remote.tunnelsView.portNumberValid":"转发的端口应为数字或主机:端口。","remote.tunnelsView.portShouldBeNumber":"本地端口应为数字。","tunnel.addressColumn.label":"转发地址","tunnel.addressColumn.tooltip":"转发端口所在的地址。","tunnel.focusContext":"“端口”视图是否具有焦点。","tunnel.iconColumn.notRunning":"没有正在运行的进程。","tunnel.iconColumn.running":"端口有正在运行的进程。","tunnel.originColumn.label":"源","tunnel.originColumn.tooltip":"转发端口的来源。可以是扩展、用户转发、静态转发或自动转发。","tunnel.portColumn.label":"端口","tunnel.portColumn.tooltip":"转发端口的标签和远程端口号。","tunnel.privacyColumn.label":"可见性","tunnel.privacyColumn.tooltip":"转发端口的可用性。","tunnel.processColumn.label":"正在运行的进程","tunnel.processColumn.tooltip":"正在使用该端口的进程的命令行。","tunnelContext.privacyMenu":"端口可见性","tunnelContext.protocolMenu":"更改端口协议","tunnelPrivacy.private":"专用","tunnelPrivacy.unknown":"未知",tunnelView:"隧道视图","tunnelView.runningProcess.inacessable":"流程信息不可用"},"vs/workbench/contrib/remote/common/remote.contribution":{invalidWorkspaceDetail:"请选择另一个工作区以打开。",invalidWorkspaceMessage:"工作区不存在",invalidWorkspacePrimary:"打开工作区(&&O)...",pauseSocketWriting:"连接: 暂停套接字写入",remote:"远程","remote.autoForwardPortFallback":"自动转发端口且 `remote.autoForwardPortsSource` 默认设置为 `process` 时将触发从 `process` 切换到 `hybrid` 的自动转发端口数。设置为 `0` 可禁用回退。如果尚未配置 `remote.autoForwardPortsFallback`,但配置了 `remote.autoForwardPortsSource`,`remote.autoForwardPortsFallback` 将被视为如同设置为 `0`。","remote.autoForwardPorts":"启用后,将检测到新的正在运行的进程,并自动转发其侦听的端口。禁用此设置将不会阻止转发所有端口。即使禁用,扩展将仍然能够导致端口被转发,并且打开某些 URL 仍将导致端口被转发。","remote.autoForwardPortsSource":"设置当 {0} 为 true 时自动从其转发端口的源。在 Windows 和 Mac 远程设备上,“process”和“hybrid”选项不起作用,系统将使用“output”。","remote.autoForwardPortsSource.hybrid":"通过读取终端和调试输出发现端口时,端口将自动转发。并非所有使用端口的进程都将打印到集成终端或调试控制台,因此某些端口将丢失。通过监视侦听该端口的进程以终止,端口将为“未转发”。","remote.autoForwardPortsSource.output":"通过读取终端和调试输出发现端口时,将自动转发该端口。并非所有使用端口的进程都将打印到集成终端或调试控制台,因此某些端口将丢失。根据输出转发的端口将不会被“取消转发”,除非重载或用户在“端口”视图中关闭该端口。","remote.autoForwardPortsSource.process":"通过监视包含端口的已启动进程发现端口时,将自动转发该端口。","remote.extensionKind":'覆盖扩展的类型。"ui" 扩展在本地计算机上安装和运行,而 "workspace" 扩展则在远程计算机上运行。通过使用此设置重写扩展的默认类型,可指定是否应在本地或远程安装和启用该扩展。',"remote.forwardOnClick":"控制从终端和调试控制台打开具有端口的本地 URL 时是否转发它。","remote.localPortHost":"指定将用于端口转发的本地主机名。","remote.portsAttributes":'设置在转发特定端口号时应用的属性。例如:\r\n\r\n```\r\n"3000": {\r\n "label": "Application"\r\n},\r\n"40000-55000": {\r\n "onAutoForward": "ignore"\r\n},\r\n".+\\\\/server.js": {\r\n "onAutoForward": "openPreview"\r\n}\r\n```',"remote.portsAttributes.defaults":'对于未从设置 {0} 中获得属性的所有端口,设置其上应用的默认属性。例如: \r\n\r\n```\r\n{\r\n "onAutoForward": "ignore"\r\n}\r\n```',"remote.portsAttributes.elevateIfNeeded":"在转发此端口时,自动提示提升(如果需要)。如果本地端口是特权端口,则需要提升。","remote.portsAttributes.ignore":"此端口不会自动转发。","remote.portsAttributes.label":"将在此端口的 UI 中显示的标签。","remote.portsAttributes.labelDefault":"应用程序","remote.portsAttributes.notify":"在自动转发端口时显示通知。","remote.portsAttributes.onForward":"定义在为自动转发发现端口时发生的操作","remote.portsAttributes.openBrowser":"在自动转发端口时打开浏览器。根据你的设置,可能会打开嵌入式浏览器。","remote.portsAttributes.openBrowserOnce":"自动转发端口时打开浏览器,但仅在会话期间第一次转发端口时打开。这可能会打开嵌入式浏览器,具体取决于你的设置。","remote.portsAttributes.openPreview":"自动转发端口时,在同一窗口中打开预览。","remote.portsAttributes.patternError":"必须是一个端口号、端口号范围或正则表达式。","remote.portsAttributes.port":'端口、端口范围(例如 "40000-55000")、主机和端口(例如 "db:1234")或正则表达式(例如 ".+\\\\/server.js")。对于端口号或端口范围,属性将应用于该端口号或端口号范围。使用正则表达式的属性将应用于其关联流程命令行与表达式匹配的端口。',"remote.portsAttributes.protocol":"转发此端口时要使用的协议。","remote.portsAttributes.requireLocalPort":"如果为 true,则将显示一个模式对话框,指示所选的本地端口是否不用于转发。","remote.portsAttributes.silent":"在自动转发此端口时,不显示任何通知,也不执行任何操作。","remote.restoreForwardedPorts":"还原您在工作区中转发的端口。",triggerReconnect:"连接: 触发器重新连接",ui:"UI 扩展类型。在远程窗口中,只有在本地计算机上可用时,才会启用此类扩展。",workspace:"工作区扩展类型。在远程窗口中,仅在远程上可用时启用此类扩展。"},"vs/workbench/contrib/remote/electron-sandbox/remote.contribution":{remote:"远程","remote.downloadExtensionsLocally":"启用后,扩展将本地下载并安装在远程上。",wslFeatureInstalled:"平台是否安装了 WSL 功能"},"vs/workbench/contrib/remoteTunnel/electron-sandbox/remoteTunnel.contribution":{"accountPreference.placeholder":"登录帐户以启用远程访问","action.copyToClipboard":"将浏览器链接复制到剪贴板","action.doNotShowAgain":"不再显示","action.showExtension":"显示扩展",enable:"启用(&&E)","initialize.progress.title":"[正在查找远程隧道](command:{0})","manage.placeholder":"选择要调用的命令","manage.showLog":"显示日志","manage.title.attached":"已为 {0} 启用远程隧道访问(已在外部启动)","manage.title.off":"未启用远程隧道访问","manage.title.orunning":"已为 {0} 启用远程隧道访问","manage.tunnelName":"更改隧道名称",others:"其他","progress.turnOn.failed":"无法启用远程隧道访问。有关详细信息,请查看远程隧道服务日志。","progress.turnOn.final":"现在,可以通过安全隧道 [{0}](command:{4}) 随时随地访问此计算机。要通过其他计算机进行连接,请使用生成的 [{1}]({2})链接,或者在桌面或 Web 中使用 [{6}]({7})扩展。可以通过“VS Code 帐户”菜单 [配置](command:{3}) 或 [关闭](command:{5})此访问权限。","recommend.remoteExtension":'隧道 "{0}" 可用于远程访问。{1} 扩展可用于连接到该隧道。',"remoteTunnel.actions.configure":"配置隧道名称...","remoteTunnel.actions.copyToClipboard":"将浏览器 URI 复制到剪贴板","remoteTunnel.actions.learnMore":"Tunnel 入门","remoteTunnel.actions.manage.connecting":"远程隧道访问正在连接","remoteTunnel.actions.manage.on.v2":"远程隧道访问已启用","remoteTunnel.actions.showLog":"显示远程隧道服务日志","remoteTunnel.actions.turnOff":"关闭远程隧道访问...","remoteTunnel.actions.turnOn":"打开远程隧道访问...","remoteTunnel.category":"远程隧道","remoteTunnel.serviceInstallFailed":"作为服务安装失败,我们已回退到运行此会话的隧道。有关详细信息,请参阅 [error log](command:{0})。","remoteTunnel.turnOff.confirm":"是否要关闭远程隧道访问?","remoteTunnel.turnOffAttached.confirm":"是否要关闭远程隧道访问? 这也将停止在外部启动的服务。","remoteTunnelAccess.machineName":"远程隧道访问注册名。如果未设置,则使用主机名。","remoteTunnelAccess.machineNameRegex":"名称只能由字母、数字、下划线和短划线组成。不得以短划线开头。","remoteTunnelAccess.preventSleep":"启用远程隧道访问时,防止计算机进入休眠。","sign in using account":"使用 {0} 登录","signed in":"已登录","startTunnel.progress.title":"[正在启动远程隧道](command:{0})","tunnel.enable.placeholder":"选择要如何启用访问权限","tunnel.enable.service":"作为服务安装","tunnel.enable.service.description":"每次登录时运行","tunnel.enable.session":"启用此会话","tunnel.enable.session.description":"每当打开时 {0} 运行","tunnel.preview":"远程隧道目前为预览版。请使用“帮助: 报告问题”命令报告任何问题。"},"vs/workbench/contrib/sash/browser/sash.contribution":{sashHoverDelay:"控制视图/编辑器之间拖动区域的悬停反馈延迟(以毫秒为单位)。",sashSize:"控制视图/编辑器之间拖动区域的反馈区域大小(以像素为单位)。如果你认为很难使用鼠标调整视图的大小,请将该值调大。"},"vs/workbench/contrib/scm/browser/activity":{scmPendingChangesBadge:"{0} 个挂起的更改","status.scm":"源代码管理"},"vs/workbench/contrib/scm/browser/dirtydiffDecorator":{change:"{0} - 第 {1} 个更改(共 {2} 个)",changes:"{0} - 第 {1} 个更改(共 {2} 个)",diffAdded:"已添加的行",diffDeleted:"删除的行",diffModified:"更改的行",editorGutterAddedBackground:"编辑器导航线中已插入行的背景颜色。",editorGutterDeletedBackground:"编辑器导航线中被删除行的背景颜色。",editorGutterModifiedBackground:"编辑器导航线中被修改行的背景颜色。","label.close":"关闭",miGotoNextChange:"下一个更改(&&C)",miGotoPreviousChange:"上一个更改(&&C)",minimapGutterAddedBackground:"添加的线的迷你地图装订线背景颜色。",minimapGutterDeletedBackground:"删除的线的迷你地图装订线背景颜色。",minimapGutterModifiedBackground:"修改的线的迷你地图装订线背景颜色。","move to next change":"转到下一个更改","move to previous change":"转到上一个更改",multiChange:"第 {0} 个更改 (共 {1} 个)",multiChanges:"第 {0} 个更改 (共 {1} 个)",overviewRulerAddedForeground:"概览标尺中已增加内容的颜色。",overviewRulerDeletedForeground:"概览标尺中已删除内容的颜色。",overviewRulerModifiedForeground:"概览标尺中已修改内容的颜色。","show next change":"显示下一个更改","show previous change":"显示上一个更改"},"vs/workbench/contrib/scm/browser/dirtyDiffSwitcher":{"quickDiff.base.switch":"切换快速差异基",remotes:"切换快速差异基"},"vs/workbench/contrib/scm/browser/menus":{miShare:"共享"},"vs/workbench/contrib/scm/browser/scm.contribution":{alwaysShowActions:"控制是否在“源代码管理”视图中始终显示内联操作。",alwaysShowRepository:"控制存储库是否应在源代码管理视图中始终可见。",autoReveal:"控制源代码管理视图在打开文件时是否应自动显示和选择文件。",diffDecorations:"控制编辑器中差异的显示效果。",diffDecorationsIgnoreTrimWhitespace:"控制在源代码管理差异装订线修饰中是否忽略前导空格和尾随空格。",diffGutterPattern:"控制是否将模式用于装订线中的差异修饰。",diffGutterPatternAdded:"对添加的线条使用装订线中的差异装饰模式。",diffGutterPatternModifed:"对修改后的线条使用装订线中的差异修饰模式。",diffGutterWidth:"控制装订线中差异修饰的宽度(px)(已添加或已修改)。",inputFontFamily:"控制输入消息的字体。将 `default` 用于工作台用户界面字体系列,将 `editor` 用于 `#editor.fontFamily#` 的值,或者使用自定义字体系列。",inputFontSize:"控制输入消息的字号(以像素为单位)。",inputMaxLines:"控制输入将自动增长到的最大行数。",inputMinLines:"控制输入将自动从其开始增长的最小行数。",manageWorkspaceTrustAction:"管理工作区信任",miViewSCM:"源代码管理(&&C)","no open repo":"当前没有源代码管理提供程序进行注册。","no open repo in an untrusted workspace":"所有已注册的源代码管理提供程序都无法在“受限模式”下工作。","open in external terminal":"在外部终端中打开","open in integrated terminal":"在集成终端中打开",providersVisible:"控制在“源代码管理存储库”部分中显示的存储库数。设置为 0,以便能够手动调整视图大小。",repositoriesSortOrder:"控制源代码管理存储库视图中存储库的排序顺序。","scm accept":"源代码管理: 接受输入","scm view next commit":"源代码管理: 查看下一个提交","scm view previous commit":"源代码管理: 查看上一个提交","scm.countBadge":"控制活动栏上源代码管理图标上的计数锁屏提醒。","scm.countBadge.all":"显示所有源代码管理提供程序计数锁屏提醒的总和。","scm.countBadge.focused":"显示焦点源控制提供程序的计数标记。","scm.countBadge.off":"禁用源代码管理计数徽章。","scm.defaultViewMode":"控制默认的源代码管理仓库视图模式。","scm.defaultViewMode.list":"将仓库更改显示为列表。","scm.defaultViewMode.tree":"将仓库更改显示为树。","scm.defaultViewSortKey":"控制默认的源代码管理仓库在被视为列表时的更改排序顺序。","scm.defaultViewSortKey.name":"按文件名对仓库更改进行排序。","scm.defaultViewSortKey.path":"按路径对仓库更改进行排序。","scm.defaultViewSortKey.status":"按源代码管理状态对仓库更改进行排序。","scm.diffDecorations.all":"显示所有可用位置中的差异装饰。","scm.diffDecorations.gutter":"仅在编辑器行号槽中显示差异装饰。","scm.diffDecorations.minimap":"仅在缩略图中显示差异装饰。","scm.diffDecorations.none":"不要显示差异装饰。","scm.diffDecorations.overviewRuler":"仅在概览标尺中显示差异装饰。","scm.diffDecorationsGutterAction":"控制源代码管理差异装订线修饰的行为。","scm.diffDecorationsGutterAction.diff":"单击时显示内联差异速览视图。","scm.diffDecorationsGutterAction.none":"不执行任何操作。","scm.diffDecorationsGutterVisibility":"控制行号槽中源代码管理差异装饰器的可见性。","scm.diffDecorationsGutterVisibility.always":"始终显示行号槽中的差异装饰器。","scm.diffDecorationsGutterVisibility.hover":"仅在悬停时显示行号槽中的差异装饰器。","scm.diffDecorationsIgnoreTrimWhitespace.false":"不要忽略前导空格和尾随空格。","scm.diffDecorationsIgnoreTrimWhitespace.inherit":"继承自 `diffEditor.ignoreTrimWhitespace`。","scm.diffDecorationsIgnoreTrimWhitespace.true":"忽略前导空格和尾随空格。","scm.providerCountBadge":"控制源代码管理提供程序标头上的计数锁屏提醒。当存在多个提供程序或启用 {0} 设置时,以及在“源代码管理存储库”视图中,这些标头将显示在“源代码管理”视图中。","scm.providerCountBadge.auto":"仅显示非零时源代码管理提供程序的计数锁屏提醒。","scm.providerCountBadge.hidden":"隐藏源代码管理提供程序计数锁屏提醒。","scm.providerCountBadge.visible":"显示源代码管理提供程序计数锁屏提醒。","scm.repositoriesSortOrder.discoveryTime":"按发现时间对源代码管理存储库视图中的存储库排序。按所选顺序对源代码管理视图中的存储库排序。","scm.repositoriesSortOrder.name":"按仓库名称对源代码管理仓库和源代码管理视图中的仓库排序。","scm.repositoriesSortOrder.path":"按仓库路径对源代码管理仓库和源代码管理视图中的仓库排序。","scm.showChangesSummary":"控制是否在“源代码管理”视图中为传入/传出更改显示“所有更改”条目。","scm.showIncomingChanges":"控制传入更改是否显示在“源代码管理”视图中。","scm.showIncomingChanges.always":"始终在“源代码管理”视图中显示传入更改。","scm.showIncomingChanges.auto":"仅当存在任何传入更改时,才在“源代码管理”视图中显示这些更改。","scm.showIncomingChanges.never":"切勿在“源代码管理”视图中显示传入更改。","scm.showOutgoingChanges":"控制传出更改是否显示在“源代码管理”视图中。","scm.showOutgoingChanges.always":"始终在“源代码管理”视图中显示传出更改。","scm.showOutgoingChanges.auto":"仅当存在任何传出更改时,才在“源代码管理”视图中显示这些更改。","scm.showOutgoingChanges.never":"切勿在“源代码管理”视图中显示传出更改。","scm.workingSets.default":"控制切换到没有工作集的源代码管理历史记录项组时要使用的默认工作集。","scm.workingSets.default.current":"在切换到没有工作集的源代码管理历史记录项组时,使用当前工作集。","scm.workingSets.default.empty":"在切换到没有工作集的源代码管理历史记录项组时,请使用空的工作集。","scm.workingSets.enabled":"控制在源代码管理历史记录项组之间切换时是否存储编辑器工作集。",scmConfigurationTitle:"源代码管理",showActionButton:"控制是否可以在源代码管理视图中显示操作按钮。",showInputActionButton:"控制是否可以在“源代码管理”输入中显示操作按钮。","source control":"源代码管理","source control repositories":"源代码管理存储库",sourceControlViewIcon:"查看“源代码管理”视图的图标。"},"vs/workbench/contrib/scm/browser/scmRepositoriesViewPane":{scm:"源代码管理存储库"},"vs/workbench/contrib/scm/browser/scmViewPane":{allChanges:"所有更改",always:"始终",auto:"自动","collapse all":"折叠所有存储库",deletion:"{0} 个删除{1}",deletions:"{0} 个删除{1}","expand all":"展开所有存储库",fileChanged:"已更改 {0} 个文件",filesChanged:"已更改 {0} 个文件",incomingChanges:"显示传入的更改",incomingChangesAriaLabel:"来自 {0} 的传入更改",input:"源代码管理输入",insertion:"{0} 个插入{1}",insertions:"{0} 个插入{1}","label.close":"关闭",never:"从不",outgoingChanges:"显示传出的更改",outgoingChangesAriaLabel:"{0} 的传出更改",repositories:"存储库",repositorySortByDiscoveryTime:"按发现时间排序",repositorySortByName:"按名称排序",repositorySortByPath:"按路径排序",scm:"源代码管理","scm.historyItemAdditionsForeground":"历史记录项添加内容的前景色。","scm.historyItemDeletionsForeground":"历史记录项删除内容的前景颜色。","scm.historyItemSelectedStatisticsBorder":"历史记录项所选统计信息边框颜色。","scm.historyItemStatisticsBorder":"历史记录项统计信息边框颜色。",scmChanges:"传入和传出",scmInputCancelAction:"取消",scmInputMoreActions:"更多操作...",setListViewMode:"以列表形式查看",setTreeViewMode:"以树形式查看",showChangesSummary:"显示更改摘要",sortAction:"查看和排序",sortChangesByName:"按名称对更改进行排序",sortChangesByPath:"按路径对更改进行排序",sortChangesByStatus:"按状态对更改进行排序",syncIncomingSeparatorHeader:"传入",syncIncomingSeparatorHeaderAriaLabel:"传入的更改",syncOutgoingSeparatorHeader:"传出",syncOutgoingSeparatorHeaderAriaLabel:"传出的更改",syncSeparatorHeader:"传入/传出",syncSeparatorHeaderAriaLabel:"传入和传出更改"},"vs/workbench/contrib/scm/browser/scmViewPaneContainer":{"source control":"源代码管理"},"vs/workbench/contrib/scrollLocking/browser/scrollLocking":{holdLockedScrolling:"保持编辑器之间的锁定滚动",miHoldLockedScrolling:"锁定滚动",miToggleLockedScrolling:"锁定滚动",mouseLockScrollingEnabled:"已启用锁定滚动",mouseScrolllingLocked:"已锁定滚动",synchronizeScrolling:"同步滚动编辑器",toggleLockedScrolling:"切换编辑器之间的锁定滚动"},"vs/workbench/contrib/search/browser/anythingQuickAccess":{chat:"打开快速聊天",closeEditor:"从最近打开中删除",fileAndSymbolResultsSeparator:"文件和符号结果",filePickAriaLabelDirty:"{0} 个未保存的更改",fileResultsSeparator:"文件结果",helpPickAriaLabel:"{0},{1}",noAnythingResults:"没有匹配的结果",openToBottom:"打开转到底部",openToSide:"打开转到侧边",recentlyOpenedSeparator:"最近打开"},"vs/workbench/contrib/search/browser/patternInputWidget":{defaultLabel:"输入",onlySearchInOpenEditors:"仅在打开的编辑器中搜索",useExcludesAndIgnoreFilesDescription:"使用“排除设置”与“忽略文件”"},"vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess":{QuickSearchMore:"更多",QuickSearchOpenInFile:"打开文件",QuickSearchSeeMoreFiles:"查看更多文件",enterSearchTerm:"输入要跨文件搜索的术语。",noAnythingResults:"没有匹配的结果",showMore:"在搜索面板中查看"},"vs/workbench/contrib/search/browser/replaceService":{fileReplaceChanges:"{0} ↔ {1} (Replace Preview)","searchReplace.source":"搜索和替换"},"vs/workbench/contrib/search/browser/search.contribution":{anythingQuickAccess:"转到文件",anythingQuickAccessPlaceholder:"按名称搜索文件(追加 {0} 转到行,追加 {1} 转到符号)",exclude:"配置 [glob 模式](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options)以在 Quick Open 中的全文搜索和文件搜索中排除文件和文件夹。若要从 Quick Open 中最近打开的列表中排除文件,必须使用绝对模式(例如 `**/node_modules/**`)。从 `#files.exclude#` 设置继承所有 glob 模式。","exclude.boolean":"匹配文件路径所依据的 glob 模式。设置为 true 或 false 可启用或禁用该模式。","exclude.when":"对匹配文件同辈进行额外检查。将 $(basename) 用作匹配文件名的变量。",filterSortOrder:"控制在快速打开中筛选时编辑器历史记录的排序顺序。","filterSortOrder.default":"历史记录条目按与筛选值的相关性排序。首先显示更相关的条目。","filterSortOrder.recency":"历史记录条目按最近时间排序。首先显示最近打开的条目。",maintainFileSearchCacheDeprecated:"搜索缓存保留在从不关闭的扩展主机中,因此不再需要此设置。",miViewSearch:"搜索(&&S)","scm.defaultViewMode.list":"将搜索结果显示为列表。","scm.defaultViewMode.tree":"将搜索结果显示为树。",search:"搜索","search.actionsPosition":"在搜索视图中控制操作栏的位置。","search.actionsPositionAuto":"当搜索视图较窄时将操作栏置于右侧,当搜索视图较宽时,将它紧接在内容之后。","search.actionsPositionRight":"始终将操作栏放置在右侧。","search.collapseAllResults":"控制是折叠还是展开搜索结果。","search.collapseResults.auto":"结果少于10个的文件将被展开。其他的则被折叠。","search.decorations.badges":"控制搜索文件修饰是否应使用徽章。","search.decorations.colors":"控制搜索文件修饰是否应使用颜色。","search.defaultViewMode":"控制默认搜索结果视图模式。","search.experimental.closedNotebookResults":"显示已关闭笔记本的笔记本编辑器中丰富的内容结果。请在更改此设置后刷新搜索结果。","search.followSymlinks":"控制是否在搜索中跟踪符号链接。","search.globalFindClipboard":"控制“搜索”视图是否读取或修改 macOS 的共享查找剪贴板。","search.location":"控制搜索功能是显示在侧边栏,还是显示在水平空间更大的面板区域。","search.location.deprecationMessage":"此设置已弃用。可以改为将搜索图标拖到新位置。","search.maintainFileSearchCache":"启用后,搜索服务进程将保持活动状态,而不是在一个小时不活动后关闭。这将使文件搜索缓存保留在内存中。","search.maxResults":"控制搜索结果的最大数目,可将其设置为 “null”(空),以返回无限结果。","search.mode":"控制新的 `搜索: 在文件中查找` 和 `在文件夹中查找` 操作发生的位置: 是在搜索视图中,还是在搜索编辑器中。","search.mode.newEditor":"在新的搜索编辑器中搜索。","search.mode.reuseEditor":"在现有搜索编辑器(若有)中搜索,否则在新的搜索编辑器中进行搜索。","search.mode.view":"在面板或边栏的搜索视图中进行搜索。","search.quickAccess.preserveInput":"在打开快速搜索视图时,控制是否自动恢复上一次输入的值。","search.quickOpen.includeHistory":"是否在 Quick Open 的文件结果中包含最近打开的文件。","search.quickOpen.includeSymbols":"控制 Quick Open 文件结果中是否包括全局符号搜索的结果。","search.searchEditor.defaultNumberOfContextLines":'创建新的搜索编辑器时要使用的周围上下文行的默认数目。如果使用 "#search.searchEditor.reusePriorSearchConfiguration#",则可将它设置为 "null" (空),以使用搜索编辑器之前的配置。',"search.searchEditor.doubleClickBehaviour":"配置在搜索编辑器中双击结果的效果。","search.searchEditor.doubleClickBehaviour.goToLocation":"双击将在活动编辑器组中打开结果。","search.searchEditor.doubleClickBehaviour.openLocationToSide":"双击会将编辑器组中的结果打开到一侧,如果尚不存在,则创建一个结果。","search.searchEditor.doubleClickBehaviour.selectWord":"双击选择光标下的单词。","search.searchEditor.reusePriorSearchConfiguration":"启用后,新的搜索编辑器将重用之前打开的搜索编辑器的包含、排除和标志。","search.searchEditor.singleClickBehaviour":"配置在搜索编辑器中单击结果的效果。","search.searchEditor.singleClickBehaviour.default":"单击不执行任何操作。","search.searchEditor.singleClickBehaviour.peekDefinition":"单击可打开“速览定义”窗口。","search.searchOnType":"在键入时搜索所有文件。","search.searchOnTypeDebouncePeriod":"启用 {0} 时,控制键入的字符与开始搜索之间的超时(以毫秒为单位)。禁用 {0} 时不起作用。","search.seedOnFocus":'聚焦搜索视图时,将搜索查询更新为编辑器的所选文本。单击时或触发 "workbench.views.search.focus" 命令时会发生此情况。',"search.seedWithNearestWord":"当活动编辑器没有选定内容时,从离光标最近的字词开始进行种子设定搜索。","search.showLineNumbers":"控制是否显示搜索结果所在的行号。","search.smartCase":"若搜索词全为小写,则不区分大小写进行搜索,否则区分大小写进行搜索。","search.sortOrder":"控制搜索结果的排序顺序。","search.usePCRE2":"是否在文本搜索中使用 pcre2 正则表达式引擎。这允许使用一些高级正则表达式功能, 如前瞻和反向引用。但是, 并非所有 pcre2 功能都受支持-仅支持 javascript 也支持的功能。","search.useReplacePreview":"控制在选择或替换匹配项时是否打开“替换预览”视图。",searchConfigurationTitle:"搜索","searchSortOrder.countAscending":"结果按每个文件的计数以升序排序。","searchSortOrder.countDescending":"结果按每个文件的计数降序排序。","searchSortOrder.default":"结果按文件夹和文件名按字母顺序排序。","searchSortOrder.filesOnly":"结果按文件名排序,忽略文件夹顺序,按字母顺序排列。","searchSortOrder.modified":"结果按文件的最后修改日期按降序排序。","searchSortOrder.type":"结果按文件扩展名的字母顺序排序。",symbolsQuickAccess:"转到工作区中的符号",symbolsQuickAccessPlaceholder:"键入要打开的符号的名称。",textSearchPickerHelp:"搜索文本",textSearchPickerPlaceholder:"在工作区文件中搜索文本。",useGlobalIgnoreFiles:"控制在搜索文件时是否使用全局 gitignore 文件(例如,从“$HOME/.config/git/ignore”)。需要启用“#search.useIgnoreFiles#”。",useIgnoreFiles:"控制在搜索文件时是否使用 `.gitignore` 和 `.ignore` 文件。",usePCRE2Deprecated:"弃用。当使用仅 PCRE2 支持的正则表达式功能时,将自动使用 PCRE2。",useParentIgnoreFiles:'控制在搜索文件时是否在父目录中使用 ".gitignore" 和 ".ignore" 文件。需要启用 "#search.useIgnoreFiles#"。',useRipgrep:'此设置已被弃用,将回退到 "search.usePCRE2"。',useRipgrepDeprecated:'已弃用。请考虑使用 "search.usePCRE2" 获取对高级正则表达式功能的支持。'},"vs/workbench/contrib/search/browser/searchActionsBase":{search:"搜索"},"vs/workbench/contrib/search/browser/searchActionsCopy":{copyAllLabel:"全部复制",copyMatchLabel:"复制",copyPathLabel:"复制路径"},"vs/workbench/contrib/search/browser/searchActionsFind":{excludeFolderFromSearch:"从搜索中排除文件夹",findInFiles:"在文件中查找","findInFiles.args":"搜索的一组选项","findInFiles.description":"打开工作区搜索",findInFolder:"在文件夹中查找...",findInWorkspace:"在工作区中查找...",miFindInFiles:"在文件中查找(&&I)",restrictResultsToFolder:"将搜索限制为文件夹",revealInSideBar:"在资源管理器视图中显示","search.expandRecursively":"以递归方式展开"},"vs/workbench/contrib/search/browser/searchActionsNav":{"AddCursorsAtSearchResults.label":"在搜索结果中添加游标","CloseReplaceWidget.label":"关闭替换小组件","FocusNextInputAction.label":"聚焦下一个输入","FocusNextSearchResult.label":"聚焦下一搜索结果","FocusPreviousInputAction.label":"聚焦上一个输入","FocusPreviousSearchResult.label":"聚焦到上一搜索结果","FocusSearchFromResults.label":"聚焦搜索结果","OpenMatch.label":"打开匹配项","OpenMatchToSide.label":"打开“匹配到一侧”","ToggleCaseSensitiveCommandId.label":"切换区分大小写","TogglePreserveCaseId.label":"切换保留大小写","ToggleQueryDetailsAction.label":"切换查询详细信息","ToggleRegexCommandId.label":"切换正则表达式","ToggleWholeWordCommandId.label":"切换整个字词",focusSearchListCommandLabel:"聚焦到列表",replaceInFiles:"在文件中替换",toggleTabs:"切换类型搜索"},"vs/workbench/contrib/search/browser/searchActionsRemoveReplace":{"RemoveAction.label":"消除","file.replaceAll.label":"全部替换","match.replace.label":"替换"},"vs/workbench/contrib/search/browser/searchActionsSymbol":{miGotoSymbolInWorkspace:"转到工作区中的符号(&&W)…",showTriggerActions:"转到工作区中的符号..."},"vs/workbench/contrib/search/browser/searchActionsTextQuickAccess":{quickTextSearch:"快速搜索"},"vs/workbench/contrib/search/browser/searchActionsTopBar":{"CancelSearchAction.label":"取消搜索","ClearSearchResultsAction.label":"清除搜索结果","CollapseDeepestExpandedLevelAction.label":"全部折叠","ExpandAllAction.label":"全部展开","RefreshAction.label":"刷新","ViewAsListAction.label":"以列表形式查看","ViewAsTreeAction.label":"以树形式查看",clearSearchHistoryLabel:"清除搜索历史记录"},"vs/workbench/contrib/search/browser/searchFindInput":{aiDescription:"使用 AI","searchFindInputNotebookFilter.label":"笔记本查找筛选器"},"vs/workbench/contrib/search/browser/searchIcons":{searchClearIcon:"搜索视图中的“清除结果”图标。",searchCollapseAllIcon:"搜索视图中的“折叠结果”图标。",searchDetailsIcon:"用于使搜索详细信息可见的图标。",searchExpandAllIcon:"搜索视图中的“展开结果”图标。",searchHideReplaceIcon:"用于折叠搜索视图中的替换部分的图标。",searchNewEditorIcon:"用于打开新搜索编辑器的操作的图标。",searchOpenInFile:"要转到当前搜索结果文件的操作的图标。",searchRefreshIcon:"搜索视图中的“刷新”图标。",searchRemoveIcon:"用于删除搜索结果的图标。",searchReplaceAllIcon:"搜索视图中的“全部替换”图标。",searchReplaceIcon:"搜索视图中的“替换”图标。",searchSeeMoreIcon:"用于在搜索视图中查看更多上下文的图标。",searchShowAsList:"用于在搜索视图中将结果作为列表查看的图标。",searchShowAsTree:"用于在搜索视图中以树形式查看结果的图标。",searchShowContextIcon:"搜索编辑器中的“切换上下文”图标。",searchShowReplaceIcon:"用于在搜索视图中展开“替换”部分的图标。",searchSparkleEmpty:"用于在搜索中隐藏 AI 结果的图标。",searchSparkleFilled:"用于在搜索中显示 AI 结果的图标。",searchStopIcon:"搜索视图中的“停止”图标。",searchViewIcon:"查看搜索视图的图标。"},"vs/workbench/contrib/search/browser/searchMessage":{"unable to open":"无法打开未知链接: {0}","unable to open trust":"无法从不受信任的源打开命令链接: {0}"},"vs/workbench/contrib/search/browser/searchResultsView":{fileMatchAriaLabel:"文件夹 {2} 的文件 {1} 中有 {0} 个匹配项,搜索结果",folderMatchAriaLabel:"根目录 {1} 中找到 {0} 个匹配,搜索结果",lineNumStr:"位于第 {0} 行",numLinesStr:"其他 {0} 行",otherFilesAriaLabel:"在工作区外存在 {0} 个匹配,搜索结果",replacePreviewResultAria:"将 {1} 列中的“{0}”由 {2} 替换为 {3}",search:"搜索",searchFileMatch:"已找到 {0} 个文件",searchFileMatches:"已找到 {0} 个文件","searchFolderMatch.other.label":"其他文件",searchMatch:"已找到 {0} 个匹配项",searchMatches:"已找到 {0} 个匹配项",searchResultAria:"{1} 列的 {0} 找到了 {2}"},"vs/workbench/contrib/search/browser/searchView":{ariaSearchResultsStatus:"搜索 {1} 文件中返回的 {0} 个结果",disableOpenEditors:"在整个工作区中搜索",emptySearch:"空搜索","excludes.enable":"启用",forTerm:" - 搜索: {0}",moreSearch:"切换搜索详细信息",noOpenEditorResultsExcludes:"未在打开的编辑器中找到结果(“{0}”除外) - ",noOpenEditorResultsFound:"未在打开的编辑器中找到结果。请查看设置中已配置的例外, 并检查 gitignore 文件 - ",noOpenEditorResultsIncludes:"未在打开的编辑器中找到与“{0}”匹配的结果 - ",noOpenEditorResultsIncludesExcludes:"未在打开的编辑器中找到与“{0}”匹配的结果(“{1}”除外) - ",noResultsExcludes:"除“{0}”外,未找到任何结果 - ",noResultsFound:"未找到结果。查看您的设置配置排除, 并检查您的 gitignore 文件-",noResultsIncludes:"“{0}”中未找到任何结果 - ",noResultsIncludesExcludes:"在“{0}”中找不到结果(“{1}”除外) - ",onlyOpenEditors:"仅在打开的文件中搜索","openEditors.disable":"禁用",openFolder:"打开文件夹","openInEditor.message":"在编辑器中打开","openInEditor.tooltip":"将当前搜索结果复制到编辑器","openSettings.learnMore":"了解详细信息","openSettings.message":"打开设置","placeholder.excludes":"例如 *.ts, src/**/exclude","placeholder.includes":"例如 *.ts, src/**/include","removeAll.occurrence.file.confirmation.message":"是否将 {1} 文件中出现的 {0} 替换为“{2}”?","removeAll.occurrence.file.message":"已替换 {1} 文件中的 {0} 个匹配项。","removeAll.occurrence.files.confirmation.message":"是否将 {1} 文件中出现的 {0} 替换为“{2}”?","removeAll.occurrence.files.message":"已替换 {1} 文件中出现的 {0}。","removeAll.occurrences.file.confirmation.message":"是否将 {1} 文件中出现的 {0} 替换为“{2}”?","removeAll.occurrences.file.message":"已替换 {1} 文件中的 {0} 个匹配项。","removeAll.occurrences.files.confirmation.message":"是否将 {1} 个文件中的 {0} 次匹配替换为“{2}”?","removeAll.occurrences.files.message":"已替换 {1} 文件中出现的 {0}。","replaceAll.confirm.button":"替换(&&R)","replaceAll.confirmation.title":"全部替换","replaceAll.occurrence.file.confirmation.message":"是否替换 {1} 文件中的 {0} 个匹配项?","replaceAll.occurrence.file.message":"已将 {1} 文件中出现的 {0} 替换为“{2}”。","replaceAll.occurrence.files.confirmation.message":"是否替换 {1} 文件中出现的 {0}?","replaceAll.occurrence.files.message":"已将 {1} 文件中出现的 {0} 替换为“{2}”。","replaceAll.occurrences.file.confirmation.message":"是否替换 {1} 文件中的 {0} 个匹配项?","replaceAll.occurrences.file.message":"已将 {1} 文件中出现的 {0} 替换为“{2}”。","replaceAll.occurrences.files.confirmation.message":"是否替换 {1} 文件中出现的 {0}?","replaceAll.occurrences.files.message":"已将 {1} 个文件中出现的 {0} 处替换为“{2}”。 ","rerunSearch.message":"再次搜索","rerunSearchInAll.message":"在所有文件中再次搜索","search.file.result":"{0} 个结果,包含于 {1} 个文件中","search.file.results":"{1} 文件中有 {0} 个结果","search.files.result":"{1} 文件中有 {0} 个结果","search.files.results":"{1} 文件中有 {0} 个结果",searchCanceled:"在找到结果前取消了搜索 - ",searchMaxResultsWarning:"结果集仅包含所有匹配项的子集。请使你的搜索更加具体以减少结果。",searchPathNotFoundError:"找不到搜索路径: {0}","searchScope.excludes":"排除的文件","searchScope.includes":"包含的文件",searchWithoutFolder:"尚未打开或指定文件夹。当前仅搜索打开的文件 - ",useExcludesAndIgnoreFilesDescription:"使用“排除设置”与“忽略文件”",useIgnoresAndExcludesDisabled:"已禁止排除设置和忽略文件"},"vs/workbench/contrib/search/browser/searchWidget":{"label.Replace":"替换: 键入待替换词,然后按 Enter 进行预览","label.Search":"搜索: 键入搜索词,然后按 Enter 进行搜索","search.action.replaceAll.disabled.label":"全部替换(提交搜索以启用)","search.action.replaceAll.enabled.label":"全部替换","search.placeHolder":"搜索","search.replace.placeHolder":"替换","search.replace.toggle.button.title":"切换替换",showContext:"切换上下文行"},"vs/workbench/contrib/search/browser/symbolsQuickAccess":{noSymbolResults:"没有匹配的工作区符号",openToBottom:"打开转到底部",openToSide:"打开转到侧边"},"vs/workbench/contrib/searchEditor/browser/searchEditor":{"label.excludes":"搜索排除模式","label.includes":"搜索包含模式",moreSearch:"切换搜索详细信息",runSearch:"运行搜索",searchEditor:"搜索",searchResultItem:"在文件 {2} 的 {1} 中匹配到 {0}","searchScope.excludes":"排除的文件","searchScope.includes":"包含的文件",textInputBoxBorder:"搜索编辑器文本输入框的边框。"},"vs/workbench/contrib/searchEditor/browser/searchEditor.contribution":{"promptOpenWith.searchEditor.displayName":"搜索编辑器",search:"搜索编辑器","search.action.focusFilesToExclude":"要排除的焦点搜索编辑器文件","search.action.focusFilesToInclude":"要包括的焦点搜索编辑器文件","search.action.focusQueryEditorWidget":"聚焦搜索编辑器输入","search.openNewEditor":"打开新的搜索编辑器","search.openNewEditorToSide":"打开侧边的新搜索编辑器","search.openNewSearchEditor":"新的搜索编辑器","search.openResultsInEditor":"在编辑器中打开结果","search.openSearchEditor":"打开搜索编辑器","search.rerunSearchInEditor":"再次搜索",searchEditor:"搜索编辑器","searchEditor.action.decreaseSearchEditorContextLines":"减少上下文行","searchEditor.action.increaseSearchEditorContextLines":"增加上下文行","searchEditor.action.selectAllSearchEditorMatches":"选择所有匹配项","searchEditor.action.toggleSearchEditorCaseSensitive":"切换匹配大小写","searchEditor.action.toggleSearchEditorContextLines":"切换上下文行","searchEditor.action.toggleSearchEditorRegex":"切换使用正则表达式","searchEditor.action.toggleSearchEditorWholeWord":"切换全字匹配","searchEditor.deleteResultBlock":"删除文件结果"},"vs/workbench/contrib/searchEditor/browser/searchEditorInput":{searchEditorLabelIcon:"搜索编辑器标签的图标。",searchTitle:"搜索","searchTitle.withQuery":"搜索: {0}"},"vs/workbench/contrib/searchEditor/browser/searchEditorSerialization":{invalidQueryStringError:"查询字符串中的所有反斜杠都必须转义(\\\\)",noResults:"无结果",numFiles:"{0} 文件",numResults:"{0} 个结果",oneFile:"1 个文件",oneResult:"1 个结果",searchMaxResultsWarning:"结果集仅包含所有匹配项的子集。请使你的搜索更加具体以减少结果。"},"vs/workbench/contrib/share/browser/share.contribution":{close:"关闭","experimental.share.enabled":"控制当 {0} 为 {1} 时,是否在命令中心旁呈现“共享”操作。","generating link":"正在生成链接...","open link":"打开链接",share:"共享...",shareSuccess:"已将链接复制到剪贴板!",shareTextSuccess:"已将文本复制到剪贴板"},"vs/workbench/contrib/share/browser/shareService":{shareProviderCount:"可用共享提供程序数","type to filter":"选择如何共享 {0}"},"vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions":{snippets:"代码片段"},"vs/workbench/contrib/snippets/browser/commands/configureSnippets":{bad_name1:"无效的文件名",bad_name2:"“{0}”不是有效的文件名",bad_name3:"“{0}”已存在","detail.label":"({0}) {1}","global.1":"({0})","global.scope":"(全局)","group.global":"现有代码片段",miOpenSnippets:"用户片段(&&S)",name:"键入代码段文件名","new.folder":"新建“{0}”文件夹的代码片段文件...","new.global":"新建全局代码片段文件...","new.global.sep":"新代码片段","new.global_scope":"全局","new.workspace_scope":"{0} 工作区","openSnippet.label":"配置用户代码片段","openSnippet.pickLanguage":"选择代码片段文件或创建代码片段",userSnippets:"用户代码片段"},"vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets":{label:"使用代码片段填充文件",placeholder:"选择代码片段"},"vs/workbench/contrib/snippets/browser/commands/insertSnippet":{"snippet.suggestions.label":"插入片段"},"vs/workbench/contrib/snippets/browser/commands/surroundWithSnippet":{label:"由代码片段包围..."},"vs/workbench/contrib/snippets/browser/snippetCodeActionProvider":{codeAction:"{0}",more:"更多...","overflow.start.title":"从代码片段开始",title:"开头为: {0}"},"vs/workbench/contrib/snippets/browser/snippetCompletionProvider":{"detail.snippet":"{0} ({1})","snippetSuggest.longLabel":"{0}, {1}"},"vs/workbench/contrib/snippets/browser/snippetPicker":{disableSnippet:"从 IntelliSense 中隐藏","enable.snippet":"在 IntelliSense 中显示",isDisabled:"(从 IntelliSense 中隐藏)","pick.noSnippetAvailable":"没有可用的代码片段","pick.placeholder":"选择代码段","sep.userSnippet":"用户代码片段","sep.workspaceSnippet":"工作区代码片段"},"vs/workbench/contrib/snippets/browser/snippets.contribution":{"editor.snippets.codeActions.enabled":"控制外围代码段或文件模板片段是否显示为代码操作。","snippetSchema.json":"用户代码片段配置","snippetSchema.json.body":"片段内容。请使用 '$1', '${1:defaultText}' 来定义光标位置,使用“$0”表示最终光标位置。请插入带有“${varName}”和“${varName:defaultText}”的变量值,例如 \"这是文件: $TM_FILENAME\"。","snippetSchema.json.default":"空代码片段","snippetSchema.json.description":"代码片段描述。","snippetSchema.json.isFileTemplate":"代码片段用于填充或替换整个文件","snippetSchema.json.prefix":"在 Intellisense 中选择代码片段时要使用的前缀","snippetSchema.json.scope":'此代码段使用的语言名称列表,例如 "typescript,javascript"。'},"vs/workbench/contrib/snippets/browser/snippetsFile":{"source.userSnippet":"用户代码片段","source.userSnippetGlobal":"全局用户代码片段","source.workspaceSnippetGlobal":"工作区代码片段"},"vs/workbench/contrib/snippets/browser/snippetsService":{badFile:"无法读取代码片段文件“{0}”。",badVariableUse:"扩展“{0}”中的一个或多个代码片段很可能混淆了片段变量和片段占位符 (有关详细信息,请访问 https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax )","invalid.language":'"contributes.{0}.language" 中包含未知语言。提供的值: {1}',"invalid.language.0":'省略语言时,"contributes.{0}.path" 的值必须为一个 ".code-snippets" 文件。提供的值: {1}',"invalid.path.0":"“contributes.{0}.path”中应为字符串。提供的值: {1}","invalid.path.1":"“contributes.{0}.path”({1})应包含在扩展的文件夹({2})内。这可能会使扩展不可移植。","vscode.extension.contributes.snippets":"贡献代码段。","vscode.extension.contributes.snippets-language":"此代码片段参与的语言标识符。","vscode.extension.contributes.snippets-path":'代码片段文件的路径。该路径相对于扩展文件夹,通常以 "./snippets/" 开头。'},"vs/workbench/contrib/speech/browser/speechService":{speechProviderDescription:"此语音提供程序的说明,显示在 UI 中。",speechProviderName:"此语音提供程序的唯一名称。","vscode.extension.contributes.speechProvider":"提供语音提供程序"},"vs/workbench/contrib/speech/common/speechService":{hasSpeechProvider:"语音提供程序已注册到语音服务。","speechLanguage.da-DK":"丹麦语(丹麦)","speechLanguage.de-DE":"德语(德国)","speechLanguage.en-AU":"英语(澳大利亚)","speechLanguage.en-CA":"英语(加拿大)","speechLanguage.en-GB":"英语(英国)","speechLanguage.en-IE":"英语(爱尔兰)","speechLanguage.en-IN":"英语(印度)","speechLanguage.en-NZ":"英语(新西兰)","speechLanguage.en-US":"英语(美国)","speechLanguage.es-ES":"西班牙语(西班牙)","speechLanguage.es-MX":"西班牙语(墨西哥)","speechLanguage.fr-CA":"法语(加拿大)","speechLanguage.fr-FR":"法语(法国)","speechLanguage.hi-IN":"印地语(印度)","speechLanguage.it-IT":"意大利语(意大利)","speechLanguage.ja-JP":"日语(日本)","speechLanguage.ko-KR":"韩语(韩国)","speechLanguage.nl-NL":"荷兰语(荷兰)","speechLanguage.pt-BR":"葡萄牙语(巴西)","speechLanguage.pt-PT":"葡萄牙语(葡萄牙)","speechLanguage.ru-RU":"俄语(俄罗斯)","speechLanguage.sv-SE":"瑞典语(瑞典)","speechLanguage.tr-TR":"土耳其语(土耳其)","speechLanguage.zh-CN":"中文(简体,中国)","speechLanguage.zh-HK":"中文(繁体,香港特别行政区)","speechLanguage.zh-TW":"中文(繁体,台湾)",speechToTextInProgress:"正在进行语音转文本会话。"},"vs/workbench/contrib/surveys/browser/ces.contribution":{cesSurveyQuestion:"你有时间帮助 VS Code 团队吗? 请告诉我们你截至目前的 VS Code 体验情况。",giveFeedback:"提供反馈",remindLater:"稍后提醒我"},"vs/workbench/contrib/surveys/browser/languageSurveys.contribution":{helpUs:"帮助我们改善对 {0} 的支持",neverAgain:"不再显示",remindLater:"稍后提醒我",takeShortSurvey:"参与小调查"},"vs/workbench/contrib/surveys/browser/nps.contribution":{neverAgain:"不再显示",remindLater:"稍后提醒我",surveyQuestion:"是否介意参加快速反馈调查?",takeSurvey:"参加调查"},"vs/workbench/contrib/tasks/browser/abstractTaskService":{"ConfigureTaskRunnerAction.label":"配置任务","TaskServer.folderIgnored":"由于使用任务版本 0.1.0,文件夹 {0} 将被忽略","TaskServer.noTask":"未定义要执行的任务","TaskService.associate":"关联","TaskService.attachProblemMatcher.continueWithout":"继续而不扫描任务输出","TaskService.attachProblemMatcher.learnMoreAbout":"了解有关扫描任务输出的详细信息","TaskService.attachProblemMatcher.never":"从不扫描此任务的任务输出","TaskService.attachProblemMatcher.neverType":"从不扫描 {0} 个任务的任务输出","TaskService.createJsonFile":"使用模板创建 tasks.json 文件","TaskService.defaultBuildTaskExists":"{0} 已被标记为默认生成任务","TaskService.defaultTestTaskExists":"{0} 已被标记为默认测试任务。","TaskService.fetchingBuildTasks":"正在获取生成任务...","TaskService.fetchingTestTasks":"正在获取测试任务...","TaskService.ignoredFolder":"由于使用任务版本 0.1.0,以下工作区文件夹将被忽略: {0}","TaskService.noBuildTask":"没有找到要运行的生成任务。配置生成任务...","TaskService.noBuildTask1":'未定义任何生成任务。使用 "isBuildCommand" 在 tasks.json 文件中标记任务。',"TaskService.noBuildTask2":'未定义任何生成任务。在 tasks.json 文件中将任务标记为 "build" 组。',"TaskService.noConfiguration":"错误: {0} 任务检测未针对以下配置提供任务:\r\n{1}\r\n将忽略该任务。","TaskService.noEntryToRun":"配置任务","TaskService.noTaskIsRunning":"没有运行中的任务","TaskService.noTaskRunning":"当前没有运行中的任务","TaskService.noTaskToRestart":"没有要重启的任务","TaskService.noTasks":"没有要重新连接的持久性任务。","TaskService.noTestTask1":'未定义任何测试任务。使用 "isTestCommand" 在 tasks.json 文件中标记任务。',"TaskService.noTestTask2":'未定义任何测试任务。在 tasks.json 文件中将任务标记为 "test" 组。',"TaskService.noTestTaskTerminal":"没有找到要运行的测试任务。配置任务...","TaskService.notAgain":"不再显示","TaskService.notConnecting":"通过设置已连接任务的配置值 {0},任务已重新连接 {1}","TaskService.openJsonFile":"打开 tasks.json 文件","TaskService.pickBuildTask":"选择要运行的生成任务","TaskService.pickBuildTaskForLabel":"选择生成任务(未定义默认生成任务)","TaskService.pickDefaultBuildTask":"选择要用作默认生成任务的任务","TaskService.pickDefaultTestTask":"选择要用作默认测试任务的任务","TaskService.pickRunTask":"选择要运行的任务","TaskService.pickShowTask":"选择要显示输出的任务","TaskService.pickTask":"选择要配置的任务","TaskService.pickTestTask":"选择要运行的测试任务","TaskService.providerUnavailable":"警告: {0} 任务在当前环境中不可用。","TaskService.reconnected":"已重新连接到正在运行的任务。","TaskService.reconnecting":"正在重新连接到正在运行的任务...","TaskService.reconnectingTasks":"正在重新连接到 {0} 任务...","TaskService.requestTrust":"列出和运行任务要求此工作区中的某些文件作为代码执行。","TaskService.skippingReconnection":"启动类型而不是窗口重载,设置连接的任务和删除持久性任务","TaskService.taskToRestart":"选择要重启的任务","TaskService.taskToTerminate":"选择要终止的任务","TaskService.template":"选择任务模板","TaskService.terminateAllRunningTasks":"所有正在运行的任务","TaskSystem.active":"当前已有任务正在运行。请先终止它,然后再执行另一项任务。","TaskSystem.activeSame.noBackground":"任务“{0}”已处于活动状态。","TaskSystem.configurationErrors":"错误: 提供的任务配置具有验证错误,无法使用。请首先改正错误。","TaskSystem.invalidTaskJson":"错误: tasks.json 文件的内容存在语法错误。请先纠正它们,然后再执行任务。","TaskSystem.invalidTaskJsonOther":"错误: {0} 中 tasks json 的内容存在语法错误。请先纠正它们,然后再执行任务。","TaskSystem.restartFailed":"未能终止并重启任务 {0}","TaskSystem.saveBeforeRun.prompt.title":"是否保存所有编辑器?","TaskSystem.unknownError":"运行任务时发生了错误。请参见任务日志了解详细信息。","TaskSystem.versionSettings":"用户设置中只允许版本为 2.0.0 的任务。","TaskSystem.versionWorkspaceFile":"工作区配置文件中只允许 2.0.0 版本的任务。","TasksSystem.locationUserConfig":"用户设置","TasksSystem.locationWorkspaceConfig":"工作区文件","TerminateAction.failed":"未能终止运行中的任务","TerminateAction.label":"终止任务","TerminateAction.noProcess":"启动的进程不再存在。如果任务生成的后台任务退出 VS Code,则可能会导致出现孤立的进程。",configureTask:"配置任务",configured:"配置的任务",customizeParseErrors:"当前任务配置存在错误。请先更正错误,再自定义任务。",detail:"是否要在运行任务前保存所有编辑器?",detected:"检测到的任务",moreThanOneBuildTask:"tasks.json 中定义了很多生成任务。正在执行第一个任务。",recentlyUsed:"最近使用的任务",restartTask:"重启任务","runTask.arg":"筛选快速入门中显示的任务","runTask.label":"任务的标签或要作为筛选依据的术语","runTask.task":"任务的标签或要作为筛选依据的术语","runTask.type":"参与的任务类型","saveBeforeRun.dontSave":"不保存(&&N)","saveBeforeRun.save":"保存(&&S)",savePersistentTask:"正在保存持久性任务: {0}",selectProblemMatcher:"选择针对何种错误和警告扫描任务输出",showOutput:"显示输出",taskEvent:"任务事件类型: {0}","taskQuickPick.userSettings":"用户","taskService.getSavedTasks":"正在从任务存储中提取任务。","taskService.getSavedTasks.error":"从任务存储提取任务失败:{0}。","taskService.getSavedTasks.reading":"正在从任务存储中读取任务,{0},{1},{2}","taskService.getSavedTasks.resolved":"已解决任务 {0}","taskService.getSavedTasks.unresolved":"无法解析任务 {0} ","taskService.gettingCachedTasks":"正在返回缓存的任务 {0}","taskService.ignoreingFolder":"正在忽略工作区文件夹 {0} 的任务配置。多文件夹工作区任务支持要求所有文件夹都使用任务版本 2.0.0","taskService.openDiff":"打开差异","taskService.openDiffs":"打开差异","taskService.removePersistentTask":"正在删除持久性任务 {0}","taskService.setPersistentTask":"正在设置持久性任务 {0}","taskService.upgradeVersion":"已删除弃用的任务版本 0.1.0。你的任务已升级到 2.0.0 版本。打开差异以查看升级内容。","taskService.upgradeVersionPlural":"已删除弃用的任务版本 0.1.0。你的任务已升级到 2.0.0 版本。打开差异以查看升级内容。",taskServiceOutputPrompt:"任务出现错误。请查看输出结果,了解更多详细信息",tasks:"任务",tasksJsonComment:"\t// 请参阅 https://go.microsoft.com/fwlink/?LinkId=733558 \r\n\t//查看有关 tasks.json 格式的文档",terminateTask:"终止任务",unexpectedTaskType:"“{0}”任务的任务提供程序意外提供了“{1}”类型的任务。\r\n"},"vs/workbench/contrib/tasks/browser/runAutomaticTasks":{"workbench.action.tasks.allowAutomaticTasks":"允许自动任务","workbench.action.tasks.disallowAutomaticTasks":"禁止自动任务","workbench.action.tasks.manageAutomaticRunning":"管理自动任务"},"vs/workbench/contrib/tasks/browser/task.contribution":{"BuildAction.label":"运行生成任务","ConfigureDefaultBuildTask.label":"配置默认生成任务","ConfigureDefaultTestTask.label":"配置默认测试任务","ReRunTaskAction.label":"重新运行上一个任务","RestartTaskAction.label":"重启正在运行的任务","RunTaskAction.label":"运行任务","ShowLogAction.label":"显示任务日志","ShowTasksAction.label":"显示运行中的任务","TerminateAction.label":"终止任务","TestAction.label":"运行测试任务",building:"正在生成...",miBuildTask:"运行生成任务(&&B)…",miConfigureBuildTask:"配置默认生成任务(&&F)…",miConfigureTask:"配置任务(&&C)…",miRestartTask:"重启正在运行的任务(&&E)…",miRunTask:"运行任务(&&R)…",miRunningTask:"显示正在运行的任务(&&G)…",miTerminateTask:"终止任务(&&T)…",numberOfRunningTasks:"{0} 个正在运行的任务",runningTasks:"显示运行中的任务","status.runningTasks":"运行任务","task.SaveBeforeRun.prompt":"提示在运行前是否保存编辑器。","task.allowAutomaticTasks":"启用自动任务 - 请注意,任务将不会在不受信任的工作区中运行。","task.allowAutomaticTasks.off":"从不","task.allowAutomaticTasks.on":"始终","task.autoDetect":'控制为所有任务提供程序扩展启用"提供任务"。如果"任务: 运行任务"命令速度较慢,则禁用任务提供程序的自动检测可能会提供帮助。单个扩展还可以提供禁用自动检测的设置。',"task.problemMatchers.neverPrompt":'配置在运行任务时是否显示问题匹配器提示。设置为"true"从不提示,或使用任务类型的字典仅关闭特定任务类型的提示。',"task.problemMatchers.neverPrompt.array":"包含任务类型布尔对的对象,从不提示有问题的匹配者。","task.problemMatchers.neverPrompt.boolean":"为所有任务设置问题匹配器提示行为。","task.quickOpen.detail":"控制是否显示在“运行任务”等任务快速选取中具有详细信息的任务的详细信息。","task.quickOpen.history":"控制任务快速打开对话框中跟踪的最近项目数。","task.quickOpen.showAll":"使 Tasks: Run Task 命令使用速度较慢的“全部显示”行为,而不是使用任务按提供程序进行分组的速度更快的双层选取器。","task.quickOpen.skip":"控制当只有一个任务要选取时是否跳过任务快速选取。","task.reconnection":"在窗口重新加载时,重新连接到具有问题匹配器的任务。","task.saveBeforeRun":"在运行任务前保存所有未保存的编辑器。","task.saveBeforeRun.always":"运行前始终保存所有编辑器。","task.saveBeforeRun.never":"运行前绝不保存编辑器。","task.slowProviderWarning":"配置当提供程序速度较慢时是否显示警告","task.slowProviderWarning.array":"从不显示慢速提供程序警告的任务类型的数组。","task.slowProviderWarning.boolean":"为所有任务设置慢速提供程序警告。","task.verboseLogging":"为任务启用详细日志记录。",tasksConfigurationTitle:"任务",tasksQuickAccessHelp:"运行任务",tasksQuickAccessPlaceholder:"键入要运行的任务的名称。",userTasks:"用户任务","workbench.action.tasks.openUserTasks":"打开用户任务","workbench.action.tasks.openWorkspaceFileTasks":"打开工作区任务"},"vs/workbench/contrib/tasks/browser/taskQuickPick":{"TaskQuickPick.changeSettingDetails":"{0} 任务的任务检测会导致打开的任何工作区中的文件作为代码运行。启用 {0} 任务检测是用户设置,并将应用于打开的任何工作区。\r\n\r\n是否要为所有工作区启用 {0} 任务检测?","TaskQuickPick.changeSettingNo":"否","TaskQuickPick.changeSettingsOptions":"$(gear) {0} 任务检测处于关闭状态。启用 {1} 任务检测...","TaskQuickPick.goBack":"返回","TaskQuickPick.noTasksForType":"未找到任务 {0}。返回↩","TaskService.pickRunTask":"选择要运行的任务",configureTask:"配置任务",configureTaskIcon:"任务选择列表中的“配置”图标。",configured:"已配置",contributedTasks:"已提供",noProviderForTask:"没有为“{0}”类型的任务注册任务提供程序。",recentlyUsed:"最近使用过",removeRecent:"删除最近使用的任务",removeTaskIcon:"任务选择列表中的“删除”图标。","taskQuickPick.showAll":"显示所有任务...",taskType:"全部 {0} 个任务"},"vs/workbench/contrib/tasks/browser/taskService":{"taskService.processTaskSystem":"流程任务系统在 Web 中不受支持。"},"vs/workbench/contrib/tasks/browser/tasksQuickAccess":{"TaskService.pickRunTask":"选择要运行的任务",noTaskResults:"没有匹配的任务"},"vs/workbench/contrib/tasks/browser/taskTerminalStatus":{"task.watchFirstError":"此运行检测到错误的开始","taskTerminalStatus.active":"任务正在运行","taskTerminalStatus.errors":"页面中有错误","taskTerminalStatus.errorsInactive":"任务有错误,正在等待...","taskTerminalStatus.infos":"任务有信息","taskTerminalStatus.infosInactive":"任务有信息,正在等待...","taskTerminalStatus.succeeded":"成功的任务","taskTerminalStatus.succeededInactive":"已成功完成任务并在等待...","taskTerminalStatus.warnings":"任务有警告","taskTerminalStatus.warningsInactive":"任务有警告,正在等待..."},"vs/workbench/contrib/tasks/browser/terminalTaskSystem":{TerminalTaskSystem:"无法使用 cmd.exe 在 UNC 驱动器上执行 Shell 命令。","TerminalTaskSystem.nonWatchingMatcher":"任务 {0} 是后台任务,但使用的问题匹配器没有后台模式","TerminalTaskSystem.taskLoadReporting":"任务“{0}”存在问题。有关更多详细信息,请参见输出。","TerminalTaskSystem.unknownError":"在执行任务时发生未知错误。请参见任务输出日志了解详细信息。",closeTerminal:"按任意键关闭终端。",dependencyCycle:"存在依赖项循环。请参阅任务“{0}”。",dependencyFailed:"无法解析在工作区文件夹“{1}”中的依赖任务“{0}”",reuseTerminal:"终端将被任务重用,按任意键关闭。","task.executing":"正在执行任务: {0}","task.executing.shell-integration":"正在执行任务: {0}","task.executing.shellIntegration":"正在执行任务: {0}","task.executingInFolder":"正在文件夹 {0} 中执行任务: {1}",unknownProblemMatcher:"无法解析问题匹配器 {0}。将忽略此匹配程序"},"vs/workbench/contrib/tasks/common/jsonSchema_v1":{"JsonSchema._runner":"此 runner 已完成使命。请使用官方 runner 属性","JsonSchema.linux":"Linux 特定的命令配置","JsonSchema.mac":"Mac 特定的命令配置","JsonSchema.runner":"定义任务是否作为进程执行,输出显示在输出窗口还是在终端内。","JsonSchema.shell":"指定命令是 shell 命令还是外部程序。如果省略,则默认为 false。","JsonSchema.version":"配置的版本号","JsonSchema.version.deprecated":"任务版本 0.1.0 已被弃用。请使用 2.0.0","JsonSchema.windows":"Windows 特定的命令配置"},"vs/workbench/contrib/tasks/common/jsonSchema_v2":{"JsonSchema.args.quotedString.value":"实际参数值","JsonSchema.args.quotesString.quote":"参数值应该如何引用。","JsonSchema.command":"要执行的命令。可以是外部程序或 shell 命令。","JsonSchema.command.quotedString.value":"实际命令值","JsonSchema.command.quotesString.quote":"如何引用命令值。","JsonSchema.commandArray":"执行的 Shell 命令。数组项将使用空格连接","JsonSchema.customizations.customizes.type":"要自定义的任务类型","JsonSchema.hide":"从运行任务快速选择菜单中隐藏此任务","JsonSchema.linux":"Linux 特定的命令配置","JsonSchema.mac":"Mac 特定的命令配置","JsonSchema.shell":"指定命令是 shell 命令还是外部程序。如果省略,则默认为 false。","JsonSchema.tasks.args":"调用此任务时要传递给命令的参数。","JsonSchema.tasks.background":"执行的任务是否保持活动状态并在后台运行。","JsonSchema.tasks.customize.deprecated":"customize 属性已被弃用。请参阅 1.14 发行说明了解如何迁移到新的任务自定义方法","JsonSchema.tasks.dependsOn":"表示另一个任务的字符串或此任务所依赖的其他任务的数组。","JsonSchema.tasks.dependsOn.array":"此任务依赖的其他任务。","JsonSchema.tasks.dependsOn.identifier":"任务标识符。","JsonSchema.tasks.dependsOn.string":"此任务依赖的另一任务。","JsonSchema.tasks.dependsOrder":"确定此任务的依赖任务的顺序。请注意,此属性不是递归的。","JsonSchema.tasks.dependsOrder.parallel":"并行运行所有 dependsOn 任务。","JsonSchema.tasks.dependsOrder.sequence":"按顺序运行所有 dependsOn 任务。","JsonSchema.tasks.detail":"任务的可选说明,在“运行任务”快速选取中作为详细信息显示。","JsonSchema.tasks.echoCommand.deprecated":"isBuildCommand 属性已被弃用。请改为使用 presentation 属性内的 echo 属性。另请参阅 1.14 发行说明。","JsonSchema.tasks.group":'定义此任务属于的执行组。它支持 "build" 以将其添加到生成组,也支持 "test" 以将其添加到测试组。',"JsonSchema.tasks.group.build":'将任务标记为可通过 "运行生成任务" 命令访问的生成任务。',"JsonSchema.tasks.group.defaultBuild":"将此任务标记为默认生成任务。","JsonSchema.tasks.group.defaultTest":"将此任务标记为默认测试任务。","JsonSchema.tasks.group.isDefault":"定义此任务是组中的默认任务,还是与应触发此任务的文件匹配的 glob。","JsonSchema.tasks.group.kind":"任务的执行组。","JsonSchema.tasks.group.none":"将任务分配为没有组","JsonSchema.tasks.group.test":'将任务标记为可通过 "Run Test Task" 命令访问的测试任务。',"JsonSchema.tasks.icon":"任务的可选图标","JsonSchema.tasks.icon.color":"图标的可选颜色","JsonSchema.tasks.icon.id":"要使用的可选 codicon ID","JsonSchema.tasks.identifier":"用于在 launch.json 或 dependsOn 子句中引用任务的用户定义标识符。","JsonSchema.tasks.identifier.deprecated":"已弃用用户定义的标识符。对于自定义任务,请使用名称进行引用;对于由扩展提供的任务,请使用其中定义的任务标识符。","JsonSchema.tasks.instanceLimit":"允许同时运行的任务的实例数。","JsonSchema.tasks.isBuildCommand.deprecated":"isBuildCommand 属性已被弃用。请改为使用 group 属性。另请参阅 1.14 发行说明。","JsonSchema.tasks.isShellCommand.deprecated":"isShellCommand 属性已被弃用。请改为使用任务的 type 属性和选项中的 shell 属性。另请参阅 1.14 发行说明。","JsonSchema.tasks.isTestCommand.deprecated":"isTestCommand 属性已被弃用。请改为使用 group 属性。另请参阅 1.14 发行说明。","JsonSchema.tasks.label":"任务的用户界面标签","JsonSchema.tasks.matchers":"要使用的问题匹配程序。可以是一个字符串或一个问题匹配程序定义,也可以是一个字符串数组和多个问题匹配程序。","JsonSchema.tasks.presentation":"配置用于显示任务输出并读取其输入的面板。","JsonSchema.tasks.presentation.clear":"控制是否在执行任务之前清除终端。","JsonSchema.tasks.presentation.close":"控制任务退出时是否关闭运行任务的终端。","JsonSchema.tasks.presentation.echo":"控制是否将执行的命令显示到面板中。默认值为“true”。","JsonSchema.tasks.presentation.focus":"控制面板是否获取焦点。默认值为“false”。如果设置为“true”,面板也会显示。","JsonSchema.tasks.presentation.group":"控制是否使用拆分窗格在特定终端组中执行任务。","JsonSchema.tasks.presentation.instance":"控制是否在任务间共享面板。同一个任务使用相同面板还是每次运行时新创建一个面板。","JsonSchema.tasks.presentation.reveal":'控制运行任务的终端是否显示。可按选项 "revealProblems" 进行替代。默认设置为“始终”。',"JsonSchema.tasks.presentation.reveal.always":"总是在此任务执行时显示终端。","JsonSchema.tasks.presentation.reveal.never":"不要在此任务执行时显示终端。","JsonSchema.tasks.presentation.reveal.silent":"只有当任务因错误而退出或者问题匹配器发现错误时,才会显示终端。","JsonSchema.tasks.presentation.revealProblems":'控制在运行此任务时是否显示问题面板。优先于 "显示" 选项。默认值为 "从不"。',"JsonSchema.tasks.presentation.revealProblems.always":"执行此任务时, 始终显示问题面板。","JsonSchema.tasks.presentation.revealProblems.never":"执行此任务时, 永远不会显示问题面板。","JsonSchema.tasks.presentation.revealProblems.onProblem":"只有在发现问题时, 才会显示问题面板。","JsonSchema.tasks.presentation.showReuseMessage":"控制是否显示“终端将被任务重用,按任意键关闭”提示。","JsonSchema.tasks.promptOnClose":"若 VS Code 关闭时有一个任务正在运行,是否提示用户。","JsonSchema.tasks.quoting.escape":"使用 Shell 的转义字符来转义文本 (如,PowerShell 下的 ` 和 bash 下的 \\ )","JsonSchema.tasks.quoting.strong":"使用 Shell 的强引用字符来引用参数 (例如在 PowerShell 和 bash 下的 ')。","JsonSchema.tasks.quoting.weak":'使用 Shell 的弱引用字符来引用参数 (例如在 PowerShell 和 bash 下的 ")。',"JsonSchema.tasks.reevaluateOnRerun":"是否在重新运行时重新评估任务变量。","JsonSchema.tasks.runOn":"对该任务何时运行进行配置。如果设置为 folderOpen,那么该任务将在文件夹打开时自动运行。","JsonSchema.tasks.runOptions":"任务的运行相关选项","JsonSchema.tasks.showOutput.deprecated":"showOutput 属性已被弃用。请改为使用 presentation 属性内的 reveal 属性。另请参阅 1.14 发行说明。","JsonSchema.tasks.suppressTaskName.deprecated":"suppressTaskName 属性已被弃用。请改为在任务中内嵌命令及其参数。另请参阅 1.14 发行说明。","JsonSchema.tasks.taskLabel":"任务标签","JsonSchema.tasks.taskName":"任务名称","JsonSchema.tasks.taskName.deprecated":"任务的 name 属性已被弃用。请改为使用 label 属性。","JsonSchema.tasks.taskSelector.deprecated":"taskSelector 属性已被弃用。请改为在任务中内嵌命令及其参数。另请参阅 1.14 发行说明。","JsonSchema.tasks.terminal":"terminal 属性已被弃用。请改为使用 presentation","JsonSchema.tasks.type":"定义任务是被作为进程运行还是在 shell 中作为命令运行。","JsonSchema.version":"配置的版本号。","JsonSchema.windows":"Windows 特定的命令配置"},"vs/workbench/contrib/tasks/common/jsonSchemaCommon":{"JsonSchema.args":"传递到命令的其他参数。","JsonSchema.background":"已执行的任务是否保持活动状态并在后台运行。","JsonSchema.command":"要执行的命令。可以是外部程序或 shell 命令。","JsonSchema.echoCommand":"控制是否将已执行的命令回显到输出。默认值为 false。","JsonSchema.matchers":"要使用的问题匹配程序。可以是字符串或问题匹配程序定义,或字符串和问题匹配程序数组。","JsonSchema.options":"其他命令选项","JsonSchema.options.cwd":"已执行程序或脚本的当前工作目录。如果省略,则使用代码的当前工作区根。","JsonSchema.options.env":"已执行程序或 shell 的环境。如果省略,则使用父进程的环境。","JsonSchema.promptOnClose":"在具有正在运行的后台任务的情况下关闭 VS 代码时是否提示用户。","JsonSchema.shell.args":"shell 参数。","JsonSchema.shell.executable":"待使用的 shell。","JsonSchema.shellConfiguration":"配置使用的 shell。","JsonSchema.showOutput":"控制是否显示运行任务的输出。如果省略,则使用“始终”。","JsonSchema.suppressTaskName":"控制是否将任务名作为参数添加到命令。默认值是 false。","JsonSchema.taskSelector":"指示参数是任务的前缀。","JsonSchema.tasks":"任务配置。通常是外部任务运行程序中已定义任务的扩充。","JsonSchema.tasks.args":"调用此任务时要传递给命令的参数。","JsonSchema.tasks.background":"执行的任务是否保持活动状态并在后台运行。","JsonSchema.tasks.build":"将此任务映射到代码的默认生成命令。","JsonSchema.tasks.linux":"Linux 特定的命令配置","JsonSchema.tasks.mac":"Mac 特定的命令配置","JsonSchema.tasks.matcherError":"无法识别的问题匹配程序。是否已安装支持此问题匹配程序的扩展?","JsonSchema.tasks.matchers":"要使用的问题匹配程序。可以是一个字符串或一个问题匹配程序定义,也可以是一个字符串数组和多个问题匹配程序。","JsonSchema.tasks.promptOnClose":"若 VS Code 关闭时有一个任务正在运行,是否提示用户。","JsonSchema.tasks.showOutput":"控制是否显示正在运行的任务的输出。如果省略,则使用全局定义的值。","JsonSchema.tasks.suppressTaskName":"控制是否将任务名作为参数添加到命令。如果省略,则使用全局定义的值。","JsonSchema.tasks.taskName":"任务名称","JsonSchema.tasks.test":"将此任务映射到代码的默认测试命令。","JsonSchema.tasks.watching":"已执行的任务是否保持活动状态,并且是否在监视文件系统。","JsonSchema.tasks.watching.deprecation":"已弃用。改用 isBackground。","JsonSchema.tasks.windows":"Windows 特定的命令配置","JsonSchema.watching":"已执行的任务是否保持活动状态,并且是否在监视文件系统。","JsonSchema.watching.deprecation":"已弃用。改用 isBackground。"},"vs/workbench/contrib/tasks/common/problemMatcher":{"LegacyProblemMatcherSchema.watchedBegin":"一个正则表达式,发出受监视任务开始执行(通过文件监视触发)的信号。","LegacyProblemMatcherSchema.watchedBegin.deprecated":"此属性已弃用。请改用观看属性。","LegacyProblemMatcherSchema.watchedEnd":"一个正则表达式,发出受监视任务结束执行的信号。","LegacyProblemMatcherSchema.watchedEnd.deprecated":"此属性已弃用。请改用观看属性。","NamedMultiLineProblemPatternSchema.name":"问题多行问题模式的名称。","NamedMultiLineProblemPatternSchema.patterns":"实际模式。","NamedProblemMatcherSchema.label":"问题匹配程序的人类可读标签。","NamedProblemMatcherSchema.name":"要引用的问题匹配程序的名称。","NamedProblemPatternSchema.name":"问题模式的名称。","PatternTypeSchema.description":"问题模式或者所提供或预定义问题模式的名称。如果已指定基准,则可以省略。","PatternTypeSchema.name":"所提供或预定义模式的名称",ProblemMatcherExtPoint:"提供问题匹配程序","ProblemMatcherParser.invalidRegexp":"错误: 字符串 {0} 不是有效的正则表达式。\r\n","ProblemMatcherParser.noDefinedPatter":"错误: 标识符为 {0} 的模式不存在。","ProblemMatcherParser.noFileLocation":"错误: 说明未定义文件位置:\r\n{0}\r\n","ProblemMatcherParser.noIdentifier":"错误: 模式属性引用空标识符。","ProblemMatcherParser.noOwner":"错误: 说明未定义所有者:\r\n{0}\r\n","ProblemMatcherParser.noProblemMatcher":"错误: 说明无法转换为问题匹配器:\r\n{0}\r\n","ProblemMatcherParser.noProblemPattern":"错误: 说明未定义有效的问题模式:\r\n{0}\r\n","ProblemMatcherParser.noValidIdentifier":"错误: 模式属性 {0} 是无效的模式变量名。","ProblemMatcherParser.problemPattern.watchingMatcher":"问题匹配程序必须定义监视的开始模式和结束模式。","ProblemMatcherParser.unknownSeverity":"信息: 未知的严重性 {0}。有效值为“错误”、“警告”和“信息”。\r\n","ProblemMatcherSchema.applyTo":"控制文本文档上报告的问题是否仅应用于打开、关闭或所有文档。","ProblemMatcherSchema.background":"用于跟踪在后台任务上激活的匹配程序的开始和结束的模式。","ProblemMatcherSchema.background.activeOnStart":"如果设置为 true,则任务启动时后台监视器处于活动模式。这相当于发出与 beginsPattern 匹配的行","ProblemMatcherSchema.background.beginsPattern":"如果在输出内匹配,则会发出后台任务开始的信号。","ProblemMatcherSchema.background.endsPattern":"如果在输出内匹配,则会发出后台任务结束的信号。","ProblemMatcherSchema.base":"要使用的基问题匹配程序的名称。","ProblemMatcherSchema.fileLocation":"定义应如何解释问题模式中报告的文件名。相对 fileLocation 可以是数组,其中数组的第二个元素是相对文件位置的路径。搜索 fileLocation 模式会在由第二个元素的 include/exclude 属性指定的目录(如果未指定,则为当前工作区目录)中执行深层(而且可能是大量的)文件系统搜索。","ProblemMatcherSchema.owner":"代码内问题的所有者。如果指定了基准,则可省略。如果省略,并且未指定基准,则默认值为“外部”。","ProblemMatcherSchema.severity":"捕获问题的默认严重性。如果模式未定义严重性的匹配组,则使用。","ProblemMatcherSchema.source":'描述此诊断信息来源的人类可读字符串。如,"typescript" 或 "super lint"。',"ProblemMatcherSchema.watching":"用于跟踪监视匹配程序开始和结束的模式。","ProblemMatcherSchema.watching.activeOnStart":"如果设置为 true,则当任务开始时观察程序处于活动模式。这相当于发出与 beginPattern 匹配的行。","ProblemMatcherSchema.watching.beginsPattern":"如果在输出内匹配,则在监视任务开始时会发出信号。","ProblemMatcherSchema.watching.deprecated":'"watching" 属性已被弃用,请改用 "background"。',"ProblemMatcherSchema.watching.endsPattern":"如果在输出内匹配,则在监视任务结束时会发出信号。",ProblemPatternExtPoint:"提供问题模式","ProblemPatternParser.invalidRegexp":"错误: 字符串 {0} 不是有效的正则表达式。\r\n","ProblemPatternParser.loopProperty.notLast":"循环属性仅在最一个行匹配程序上受支持。","ProblemPatternParser.problemPattern.kindProperty.notFirst":'问题模式无效。"kind" 属性必须提供,且仅能为第一个元素',"ProblemPatternParser.problemPattern.missingLocation":"问题模式无效。它必须为“file”,代码行或消息匹配组其中的一项。","ProblemPatternParser.problemPattern.missingProperty":"问题模式无效。必须至少包含一个文件和一条消息。","ProblemPatternParser.problemPattern.missingRegExp":"问题模式缺少正则表达式。","ProblemPatternRegistry.error":"无效问题模式。此模式将被忽略。","ProblemPatternSchema.code":"问题代码的匹配组索引。默认为 undefined","ProblemPatternSchema.column":"问题行字符的匹配组索引。默认值为 3","ProblemPatternSchema.endColumn":"问题结束行字符的匹配组索引。默认为 undefined","ProblemPatternSchema.endLine":"问题结束行的匹配组索引。默认为 undefined","ProblemPatternSchema.file":"文件名的匹配组索引。如果省略,则使用 1。","ProblemPatternSchema.kind":"模式匹配的是一个位置 (文件、一行) 还是仅为一个文件。","ProblemPatternSchema.line":"问题行的匹配组索引。默认值为 2","ProblemPatternSchema.location":"问题位置的匹配组索引。有效的位置模式为(line)、(line,column)和(startLine,startColumn,endLine,endColumn)。如果省略了,将假定(line,column)。","ProblemPatternSchema.loop":"在多行中,匹配程序循环指示是否只要匹配就在循环中执行此模式。只能在多行模式的最后一个模式上指定。","ProblemPatternSchema.message":"消息的匹配组索引。如果省略,则在指定了位置时默认值为 4,在其他情况下默认值为 5。","ProblemPatternSchema.regexp":"用于在输出中查找错误、警告或信息的正则表达式。","ProblemPatternSchema.severity":"问题严重性的匹配组索引。默认为 undefined","WatchingPatternSchema.file":"文件名的匹配组索引。可以省略。","WatchingPatternSchema.regexp":"用于检测后台任务开始或结束的正则表达式。","eslint-compact":"ESLint compact 问题","eslint-stylish":"ESLint stylish 问题",go:"Go 问题","gulp-tsc":"Gulp TSC 问题",jshint:"JSHint 问题","jshint-stylish":"JSHint stylish 问题",lessCompile:"Less 问题",msCompile:"微软编译器问题"},"vs/workbench/contrib/tasks/common/taskConfiguration":{"ConfigurationParser.inValidArg":"错误: 命令参数必须是字符串或带引号的字符串。提供的值为:\r\n{0}","ConfigurationParser.incorrectType":"错误: 任务配置“{0}”使用了未知类型。将忽略该配置。","ConfigurationParser.invalidCWD":"警告: options.cwd 的类型必须是字符串。正在忽略值 {0}\r\n","ConfigurationParser.invalidVariableReference":"错误: problemMatcher 引用无效: {0}\r\n","ConfigurationParser.missingType":'错误: 任务配置“{0}”缺失必要属性 "type"。将忽略该配置。',"ConfigurationParser.noName":"错误: 声明范围中的问题匹配器必须具有名称:\r\n{0}\r\n","ConfigurationParser.noShell":"警告: 仅当在终端中执行任务时支持 shell 配置。","ConfigurationParser.noTaskName":"错误: 任务必须提供 label 属性。将忽略该任务。\r\n{0}\r\n","ConfigurationParser.noTaskType":"错误: 任务配置必须具有 type 属性。将忽略此配置。\r\n{0}\r\n","ConfigurationParser.noTypeDefinition":"错误: 不存在已注册的任务类型“{0}”。是否已错过安装提供相应任务提供程序的扩展?","ConfigurationParser.notCustom":"错误: 任务未声明为自定义任务。将忽略此配置。\r\n{0}\r\n","ConfigurationParser.unknownMatcherKind":"警告: 定义的问题匹配器未知。支持的类型为 string | ProblemMatcher | Array。\r\n{0}\r\n","TaskParse.noOsSpecificGlobalTasks":"任务版本 2.0.0 不支持全局操作系统专属任务。请将其转换为具有操作系统特定命令的任务。受影响的任务有:\r\n{0}","taskConfiguration.noCommand":"错误: 任务“{0}”未定义命令。将忽略该任务。其定义是:\r\n{1}","taskConfiguration.noCommandOrDependsOn":"错误: 任务“{0}”既不指定命令,也不指定 dependsOn 属性。将忽略该任务。其定义是:\r\n{1}","taskConfiguration.providerUnavailable":"警告: {0} 个任务在当前环境中不可用。\r\n"},"vs/workbench/contrib/tasks/common/taskDefinitionRegistry":{"TaskDefinition.description":'实际任务类型。请注意,以 "$" 开头的类型仅保留内部使用。',"TaskDefinition.properties":"任务类型的其他属性","TaskDefinition.when":"启用此类型任务是必需为 true 的条件。请考虑根据此任务定义使用 `shellExecutionSupported`、`processExecutionSupported` 和 `customExecutionSupported`。有关详细信息,请参阅 [API 文档](https://code.visualstudio.com/api/extension-guides/task-provider#when-clause)。",TaskDefinitionExtPoint:"配置任务种类","TaskTypeConfiguration.noType":'任务类型配置缺少必需的 "taskType" 属性'},"vs/workbench/contrib/tasks/common/tasks":{"TaskDefinition.missingRequiredProperty":"错误: 任务标识符“{0}”缺失必要属性“{1}”。将忽略该标识符。","tasks.taskRunningContext":"任务当前是否正在运行。",tasksCategory:"任务"},"vs/workbench/contrib/tasks/common/taskService":{"tasks.customExecutionSupported":'是否支持 CustomExecution 任务。请考虑在 "taskDefinition" 贡献的 when 子句中使用。',"tasks.processExecutionSupported":'是否支持 ProcessExecution 任务。请考虑在 "taskDefinition" 贡献的 when 子句中使用。',"tasks.serverlessWebContext":"在没有远程机构的 Web 中时为 True。","tasks.shellExecutionSupported":'是否支持 ShellExecution 任务。请考虑在 "taskDefinition" 贡献的 when 子句中使用。',"tasks.taskCommandsRegistered":"是否已注册任务命令"},"vs/workbench/contrib/tasks/common/taskTemplates":{Maven:"执行常见的 maven 命令",dotnetCore:"执行 .NET Core 生成命令",externalCommand:"运行任意外部命令的示例",msbuild:"执行生成目标"},"vs/workbench/contrib/tasks/electron-sandbox/taskService":{"TaskSystem.exitAnyways":"仍要退出(&&E)","TaskSystem.noProcess":"启动的任务不再存在。如果任务已生成出后台进程,则退出 VS Code 可能会导致出现孤立的进程。若要避免此情况,请使用等待标记启动最后一个后台进程。","TaskSystem.runningTask":"存在运行中的任务。要终止它吗?","TaskSystem.terminateTask":"终止任务(&&T)"},"vs/workbench/contrib/terminal/browser/baseTerminalBackend":{nonResponsivePtyHost:"与终端的 pty 主机进程的连接无响应,终端可能会停止工作。单击以手动重新启动 pty 主机。",ptyHostStatus:"Pty 主机状态","ptyHostStatus.ariaLabel":"Pty 主机无响应","ptyHostStatus.short":"Pty 主机"},"vs/workbench/contrib/terminal/browser/environmentVariableInfo":{ScopedEnvironmentContributionInfo:"工作区",extensionEnvironmentContributionInfoActive:"以下扩展为此终端的环境做出了贡献:",extensionEnvironmentContributionInfoStale:"以下扩展希望重启终端以为其环境做出贡献:",relaunchTerminalLabel:"重新启动终端",showEnvironmentContributions:"显示环境贡献"},"vs/workbench/contrib/terminal/browser/terminal.contribution":{miToggleIntegratedTerminal:"终端(&&T)",tasksQuickAccessHelp:"显示所有已打开的终端",tasksQuickAccessPlaceholder:"键入要打开的终端的名称。",terminal:"终端"},"vs/workbench/contrib/terminal/browser/terminalActions":{emptyTerminalNameInfo:"不提供名称会将其重置为默认值","goToRecentDirectory.metadata":"转到最近使用的文件夹",miStickyScroll:"粘滞滚动(&&S)","newWithProfile.location":"创建终端的位置","newWithProfile.location.editor":"在编辑器中创建终端","newWithProfile.location.view":"在终端视图中创建终端",noUnattachedTerminals:"没有未附加但要附加到的终端",quickAccessTerminal:"切换活动终端",sendSequence:"要发送到终端的文本序列",showTerminalTabs:"显示选项卡",stickyScroll:"粘滞滚动",terminalLaunchHelp:"打开帮助","workbench.action.terminal.attachToSession":"附加到会话","workbench.action.terminal.clear":"清除","workbench.action.terminal.clearPreviousSessionHistory":"清除上一会话历史记录","workbench.action.terminal.clearSelection":"取消选择","workbench.action.terminal.copyAndClearSelection":"复制和清除选择","workbench.action.terminal.copyLastCommand":"复制最后一个命令","workbench.action.terminal.copyLastCommandAndOutput":"复制最后一个命令和输出","workbench.action.terminal.copyLastCommandOutput":"复制最后一个命令输出","workbench.action.terminal.copySelection":"复制所选内容","workbench.action.terminal.copySelectionAsHtml":"将所选内容复制为 HTML","workbench.action.terminal.createTerminalEditor":"在编辑器区域内创建新终端","workbench.action.terminal.createTerminalEditorSide":"在一侧的编辑器区域内创建新终端","workbench.action.terminal.detachSession":"拆离会话","workbench.action.terminal.focus.tabsView":"焦点终端选项卡视图","workbench.action.terminal.focusNext":"聚焦下一终端组","workbench.action.terminal.focusNextPane":"在终端组中聚焦下一终端","workbench.action.terminal.focusPrevious":"聚焦上一终端组","workbench.action.terminal.focusPreviousPane":"在终端组中聚焦上一终端","workbench.action.terminal.goToRecentDirectory":"转到“最近使用的目录”...","workbench.action.terminal.join":"联接终端...","workbench.action.terminal.join.insufficientTerminals":"终端不足,无法执行联接操作","workbench.action.terminal.join.onlySplits":"所有终端已联接","workbench.action.terminal.joinInstance":"联接终端","workbench.action.terminal.kill":"终止活动终端实例","workbench.action.terminal.killAll":"终止所有终端","workbench.action.terminal.killEditor":"终止编辑器区域中的活动终端","workbench.action.terminal.new":"创建新的终端","workbench.action.terminal.newInActiveWorkspace":"创建新终端(在活动工作区中)","workbench.action.terminal.newWithCwd.cwd":"启动终端的目录","workbench.action.terminal.newWithProfile":"创建新终端(具有个人资料)","workbench.action.terminal.newWithProfile.profileName":"要创建的配置文件的名称","workbench.action.terminal.newWorkspacePlaceholder":"选择当前工作目录新建终端","workbench.action.terminal.openSettings":"配置终端设置","workbench.action.terminal.overriddenCwdDescription":"(已替代) {0}","workbench.action.terminal.paste":"粘贴到活动终端中","workbench.action.terminal.pasteSelection":"将所选内容粘贴到活动终端","workbench.action.terminal.relaunch":"重新启动活动终端","workbench.action.terminal.rename.prompt":"输入终端名称","workbench.action.terminal.renameWithArg.name":"终端的新名称","workbench.action.terminal.renameWithArg.noName":"未提供名称参数","workbench.action.terminal.resizePaneDown":"向下重设终端大小","workbench.action.terminal.resizePaneLeft":"向左重设终端大小","workbench.action.terminal.resizePaneRight":"向右重设终端大小","workbench.action.terminal.resizePaneUp":"向上重设终端大小","workbench.action.terminal.runActiveFile":"在活动终端中运行活动文件","workbench.action.terminal.runActiveFile.noFile":"只有磁盘上的文件可在终端上运行","workbench.action.terminal.runRecentCommand":"运行最近使用的命令...","workbench.action.terminal.runSelectedText":"在活动终端运行所选文本","workbench.action.terminal.scrollDown":"向下滚动(行)","workbench.action.terminal.scrollDownPage":"向下滚动(页)","workbench.action.terminal.scrollToBottom":"滚动到底部","workbench.action.terminal.scrollToTop":"滚动到顶部","workbench.action.terminal.scrollUp":"向上滚动(行)","workbench.action.terminal.scrollUpPage":"向上滚动(页)","workbench.action.terminal.selectAll":"选择全部","workbench.action.terminal.selectDefaultShell":"选择默认配置文件","workbench.action.terminal.selectToNextCommand":"选择下一条命令所有内容","workbench.action.terminal.selectToNextLine":"选择下一行的所有内容","workbench.action.terminal.selectToPreviousCommand":"选择上一条命令所有内容","workbench.action.terminal.selectToPreviousLine":"选择上一行的所有内容","workbench.action.terminal.setFixedDimensions":"设置固定维度","workbench.action.terminal.splitInActiveWorkspace":"拆分终端 (活动工作区)","workbench.action.terminal.switchTerminal":"切换终端","workbench.action.terminal.toggleStickyScroll":"切换粘滞滚动"},"vs/workbench/contrib/terminal/browser/terminalEditorInput":{"confirmDirtyTerminal.button":"&&终止","confirmDirtyTerminal.detail":"关闭将终止此终端中正在运行的进程。","confirmDirtyTerminal.message":"是否要终止正在运行的进程?","confirmDirtyTerminals.detail":"关闭将终止此终端中正在运行的进程。"},"vs/workbench/contrib/terminal/browser/terminalIcons":{configureTerminalProfileIcon:"用于创建新的终端配置文件的图标。",killTerminalIcon:"用于终止终端实例的图标。",newTerminalIcon:"用于创建新的终端实例的图标。",renameTerminalIcon:"用于在终端快速菜单中进行重命名的图标。",terminalCommandHistoryFuzzySearch:"用于切换命令历史记录模糊搜索的图标。",terminalCommandHistoryOutput:"用于查看终端命令输出的图标。",terminalCommandHistoryRemove:"用于从命令历史记录中删除终端命令的图标。",terminalDecorationError:"错误命令的终端修饰图标。",terminalDecorationIncomplete:"命令未完成的终端修饰图标。",terminalDecorationMark:"终端装饰标记的图标。",terminalDecorationSuccess:"成功命令的终端修饰图标。",terminalViewIcon:"查看终端视图的图标。"},"vs/workbench/contrib/terminal/browser/terminalInstance":{bellStatus:"铃",changeColor:"选择终端的颜色",configureTerminalSettings:"配置终端设置",disconnectStatus:"与进程的连接中断",keybindingHandling:"某些键绑定在默认情况下不会转到终端,而是由 {0} 进行处理。","launchFailed.errorMessage":"终端进程启动失败: {0}。","launchFailed.exitCodeAndCommandLine":"终端进程“{0}”启动失败(退出代码: {1})。","launchFailed.exitCodeOnly":"终端进程启动失败(退出代码: {0})。","launchFailed.exitCodeOnlyShellIntegration":"在用户设置中禁用 shell 集成可能会有所帮助。",setTerminalDimensionsColumn:"设置固定维度: 列",setTerminalDimensionsRow:"设置固定维度: 行","shellIntegration.learnMore":"了解有关 shell 集成的详细信息","shellIntegration.openSettings":"打开用户设置","terminal.integrated.a11yPromptLabel":"终端输入","terminal.integrated.useAccessibleBuffer":"使用可访问缓冲区 {0} 手动查看输出","terminal.integrated.useAccessibleBufferNoKb":"使用终端: 聚焦可访问缓冲区命令以手动查看输出","terminal.requestTrust":"创建终端流程需要执行代码",terminalHelpAriaLabel:"使用 {0} 获取终端辅助功能帮助",terminalScreenReaderMode:"运行命令: 切换屏幕阅读器辅助功能模式以获得优化的屏幕阅读器体验",terminalStaleTextBoxAriaLabel:"终端 {0} 环境已过时,请运行“显示环境信息”命令以获取详细信息",terminalTextBoxAriaLabel:"终端 {0}",terminalTextBoxAriaLabelNumberAndTitle:"终端 {0},{1}","terminated.exitCodeAndCommandLine":"终端进程“{0}”已终止,退出代码: {1}。","terminated.exitCodeOnly":"终端进程已终止,退出代码: {0}。",workspaceNotTrustedCreateTerminal:"无法在不受信任的工作区中启动终端流程",workspaceNotTrustedCreateTerminalCwd:"无法使用 cwd {0} 和 userHome {1} 在不受信任的工作区中启动终端进程"},"vs/workbench/contrib/terminal/browser/terminalMenus":{defaultTerminalProfile:"{0} (默认)",launchProfile:"启动配置文件...",miNewTerminal:"新建终端(&&N)",miRunActiveFile:"运行活动文件(&&A)",miRunSelectedText:"运行所选文本(&&S)",miSplitTerminal:"拆分终端(&&S)",splitTerminal:"拆分终端","workbench.action.tasks.configureTaskRunner":"配置任务","workbench.action.tasks.runTask":"运行任务...","workbench.action.terminal.changeColor":"更改颜色...","workbench.action.terminal.changeIcon":"更改图标...","workbench.action.terminal.clear":"清除","workbench.action.terminal.clearLong":"清除终端","workbench.action.terminal.copySelection.short":"复制","workbench.action.terminal.copySelectionAsHtml":"以 HTML 格式复制","workbench.action.terminal.joinInstance":"联接终端","workbench.action.terminal.newWithProfile.short":"具有配置文件的新终端...","workbench.action.terminal.openSettings":"配置终端设置","workbench.action.terminal.paste.short":"粘贴","workbench.action.terminal.renameInstance":"重命名...","workbench.action.terminal.runActiveFile":"运行活动文件","workbench.action.terminal.runSelectedText":"运行所选文本","workbench.action.terminal.selectAll":"选择全部","workbench.action.terminal.selectDefaultProfile":"选择默认配置文件","workbench.action.terminal.switchTerminal":"切换终端"},"vs/workbench/contrib/terminal/browser/terminalProcessManager":{killportfailure:"无法终止侦听端口 {0} 的进程,命令退出时出现错误 {1}",ptyHostRelaunch:"到 shell 进程的连接丢失,正在重启终端…"},"vs/workbench/contrib/terminal/browser/terminalProfileQuickpick":{ICreateContributedTerminalProfileOptions:"已贡献",cancel:"取消",createQuickLaunchProfile:"配置终端配置文件",enterTerminalProfileName:"输入终端配置文件名称","terminal.integrated.chooseDefaultProfile":"选择默认的终端配置文件","terminal.integrated.selectProfileToCreate":"选择要创建的终端配置文件",terminalProfileAlreadyExists:"有终端配置文件已具有此名称",terminalProfiles:"配置文件","terminalProfiles.detected":"已检测",unsafePathWarning:"此终端配置使用了可由其他用户({0})修改的潜在不安全路径。是否确定要使用它?",yes:"是"},"vs/workbench/contrib/terminal/browser/terminalQuickAccess":{renameTerminal:"重命名终端","workbench.action.terminal.newWithProfilePlus":"创建具有配置文件的新终端...","workbench.action.terminal.newplus":"创建新的终端"},"vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick":{removeCommand:"从命令历史记录中删除",selectRecentCommand:"选择要运行的命令(按 Alt-key 编辑命令)",selectRecentCommandMac:"选择要运行的命令(按 Option-key 编辑命令)",selectRecentDirectory:"选择要转到的目录(按 Alt-key 编辑命令)",selectRecentDirectoryMac:"选择要转到的目录(按 Option-key 编辑命令)",shellFileHistoryCategory:"{0} 历史记录",viewCommandOutput:"查看命令输出"},"vs/workbench/contrib/terminal/browser/terminalService":{localTerminalRemote:"此 shell 正在{0}本地{1}计算机上运行,而不是在连接的远程计算机上运行",localTerminalVirtualWorkspace:"此 shell 对{0}本地{1}文件夹开放,而不是虚拟文件夹","terminalService.terminalCloseConfirmationPlural":"是否要终止{0}活动终端会话?","terminalService.terminalCloseConfirmationSingular":"是否要终止活动终端会话?",terminate:"终止(&&T)"},"vs/workbench/contrib/terminal/browser/terminalTabbedView":{hideTabs:"隐藏选项卡",moveTabsLeft:"向左移动选项卡",moveTabsRight:"向右移动选项卡"},"vs/workbench/contrib/terminal/browser/terminalTabsList":{label:"终端",splitTerminalAriaLabel:"终端 {0} {1},拆分 {2}/{3}","terminal.tabs":"终端选项卡",terminalAriaLabel:"终端{0} {1}",terminalInputAriaLabel:'输入终端名。按 "Enter" 键确认或按 "Esc" 键取消。'},"vs/workbench/contrib/terminal/browser/terminalTooltip":{"launchFailed.exitCodeOnlyShellIntegration":"终端进程无法启动。禁用与 “terminal.integrated.shellIntegration.enabled” 的 shell 集成可能会有所帮助。","shellIntegration.activationFailed":"Shell 集成无法激活","shellIntegration.enabled":"已激活 Shell 集成","shellProcessTooltip.commandLine":"命令行: {0}","shellProcessTooltip.processId":"进程 ID ({0}): {1}"},"vs/workbench/contrib/terminal/browser/terminalView":{"terminal.monospaceOnly":"终端仅支持等宽字体。如果这是新安装的字体,请确保重新启动 VS Code。","terminal.useMonospace":'使用 "monospace"',terminalConnectingLabel:"正在启动...",terminals:"打开终端。"},"vs/workbench/contrib/terminal/browser/terminalWslRecommendationContribution":{install:"安装","useWslExtension.title":"建议使用“{0}”扩展在 WSL 中打开终端。"},"vs/workbench/contrib/terminal/browser/xterm/decorationAddon":{gutter:"装订线命令修饰",no:"否",overviewRuler:"概述标尺命令修饰",rerun:"是否要运行命令: {0}","terminal.copyCommand":"复制命令","terminal.copyCommandAndOutput":"复制命令并输出","terminal.copyOutput":"复制输出","terminal.copyOutputAsHtml":"将输出复制为 HTML","terminal.learnShellIntegration":"了解 Shell 集成","terminal.rerunCommand":"重新运行命令",toggleVisibility:"切换可见性","workbench.action.terminal.goToRecentDirectory":"转到“最近使用的目录”","workbench.action.terminal.runRecentCommand":"运行最近使用的命令","workbench.action.terminal.toggleVisibility":"切换可见性",yes:"是"},"vs/workbench/contrib/terminal/browser/xterm/decorationStyles":{terminalPromptCommandFailed:"命令已执行 {0} 并失败","terminalPromptCommandFailed.duration":"命令已执行 {0},使用了 {1},但失败",terminalPromptCommandFailedWithExitCode:"命令已执行 {0} 并失败(退出代码 {1})","terminalPromptCommandFailedWithExitCode.duration":"命令已执行 {0},使用了 {1},但失败(退出代码 {2})",terminalPromptCommandSuccess:"命令已执行 {0}","terminalPromptCommandSuccess.duration":"命令已执行 {0} 并使用了 {1}",terminalPromptContextMenu:"显示命令操作"},"vs/workbench/contrib/terminal/browser/xterm/xtermTerminal":{"terminal.integrated.copySelection.noSelection":"没有在终端中选择要复制的内容"},"vs/workbench/contrib/terminal/common/terminal":{"vscode.extension.contributes.terminal":"参与终端功能。","vscode.extension.contributes.terminal.profiles":"定义用户可创建的其他终端配置文件。","vscode.extension.contributes.terminal.profiles.id":"终端配置文件提供程序的 ID。","vscode.extension.contributes.terminal.profiles.title":"此终端配置文件的标题。","vscode.extension.contributes.terminal.types.icon":"要与此终端类型关联的 codicon、URI 或浅色和深色 URI。","vscode.extension.contributes.terminal.types.icon.dark":"使用深色主题时的图标路径","vscode.extension.contributes.terminal.types.icon.light":"使用浅色主题时的图标路径"},"vs/workbench/contrib/terminal/common/terminalClipboard":{confirmMoveTrashMessageFilesAndDirectories:"是否确实要将 {0} 行文本粘贴到终端?",doNotAskAgain:"不再询问",multiLinePasteButton:"粘贴(&&P)","multiLinePasteButton.oneLine":"粘贴为 &&one 行",preview:"预览:"},"vs/workbench/contrib/terminal/common/terminalColorRegistry":{"terminal.ansiColor":"终端中的 ANSI 颜色“{0}”。","terminal.background":"终端的背景颜色,允许终端的颜色与面板不同。","terminal.border":"分隔终端中拆分窗格的边框的颜色。默认值为 panel.border 的颜色","terminal.dragAndDropBackground":"在终端上拖动时的背景颜色。此颜色应有透明度,以便让终端内容透过背景。","terminal.findMatchBackground":"终端中当前搜索匹配项的颜色。颜色必须透明,以免隐藏基础终端内容。","terminal.findMatchBorder":"终端中当前搜索匹配项的边框颜色。","terminal.findMatchHighlightBackground":"终端中其他搜索匹配项的颜色。颜色必须透明,以免隐藏基础终端内容。","terminal.findMatchHighlightBorder":"终端中其他搜索匹配项的边框颜色。","terminal.foreground":"终端的前景颜色。","terminal.inactiveSelectionBackground":"终端没有焦点时的选择背景色。","terminal.selectionBackground":"终端选中内容的背景颜色。","terminal.selectionForeground":"终端的选择前景色。如果此值为 null,则将保留所选前景并应用最小对比度功能。","terminal.tab.activeBorder":"面板中终端选项卡侧边的边框。此默认为 tab.activeBorder。","terminalCommandDecoration.defaultBackground":"默认终端命令修饰背景色。","terminalCommandDecoration.errorBackground":"错误命令的终端命令修饰背景色。","terminalCommandDecoration.successBackground":"成功命令的终端命令修饰背景色。","terminalCursor.background":"终端光标的背景色。允许自定义被 block 光标遮住的字符的颜色。","terminalCursor.foreground":"终端光标的前景色。","terminalOverviewRuler.cursorForeground":"概述标尺光标颜色。","terminalOverviewRuler.findMatchHighlightForeground":"用于在终端中查找匹配项的概述标尺标记颜色。"},"vs/workbench/contrib/terminal/common/terminalConfiguration":{cwd:"终端的当前工作目录",cwdFolder:"终端的当前工作目录,当值与初始工作目录不同时,显示在多根工作区或单个根工作区中。在 Windows 上,仅当启用 shell 集成时才会显示此内容。","enableFileLinks.notRemote":"仅当不在远程工作区中时启用。","enableFileLinks.off":"始终关闭。","enableFileLinks.on":"始终可用。","hideOnStartup.always":"始终隐藏终端,即使还原持久会话也是如此。","hideOnStartup.never":"启动时切勿隐藏终端视图。","hideOnStartup.whenEmpty":"仅在未还原持久会话时隐藏终端。",local:"指示远程工作区中的本地终端",openDefaultSettingsJson:"打开默认设置 JSON","openDefaultSettingsJson.capitalized":"打开默认设置(JSON)",process:"终端流程的名称",separator:"仅在由带有值或静态文本的变量括住时才显示的一个条件分隔符 {0}。",sequence:"进程提供给终端的名称","suggestEnabled.deprecated":"这是一个实验性设置,可能会中断终端!自行承担风险。",task:"指示此终端与任务关联","terminal.integrated.accessibleViewFocusOnCommandExecution":"执行命令时,将焦点放在终端可访问视图上。","terminal.integrated.accessibleViewPreserveCursorPosition":"重新打开终端的可访问视图时保留光标位置,而不是将其设置到缓冲区的底部。","terminal.integrated.allowChords":"是否允许终端中的组合键绑定。请注意,如果此值为 true,并且击键导致一个组合,则它将绕过 {0},当你希望 ctrl+k 转到 shell (而不是 VS Code)时,将此设置为 false 特别有用。","terminal.integrated.allowMnemonics":"是否允许使用菜单栏助记键(如 Alt+F)来触发打开菜单栏。请注意,这将导致在设为 true 时,所有 Alt 击键跳过 shell。此设置在 macOS 不起作用。","terminal.integrated.allowedLinkSchemes":"包含终端可打开其链接的 URI 方案的字符串数组。出于安全原因,默认情况下只允许一小部分可能的方案。","terminal.integrated.altClickMovesCursor":"如果启用,则当 {0} 设置为 {1} (默认值)时,alt/option+单击会将提示光标重置于鼠标下方。此功能的有效性取决于 shell。","terminal.integrated.autoReplies":"在终端中遇到一组消息时,将自动响应这组消息。如果消息足够具体,这可能有助于自动执行常见响应。\r\n\r\n备注:\r\n\r\n- 使用 {0} 自动响应 Windows 上的终止批处理作业提示。\r\n- 消息包括转义序列,因此可能无法使用带样式的文本进行回复。\r\n- 每秒只能进行一次回复。\r\n- 在回复中使用 {1} 来表示 Enter 键。\r\n- 要取消设置默认键,请将该值设置为 null。\r\n- 如果新的不适用,请重启 VS Code。","terminal.integrated.autoReplies.reply":"要发送到流程的回复。","terminal.integrated.bellDuration":"触发时在终端选项卡中显示响铃的毫秒数。","terminal.integrated.commandsToSkipShell":"一组命令 ID,其键绑定将不发送至 shell,而是始终由 VS Code 进行处理。这样的话,通常由 shell 使用的键绑定的行为可如同焦点未在终端上时的行为一样,例如按 “Ctrl+P” 来启动“快速打开”。\r\n\r\n \r\n\r\n默认跳过多项命令。要替代默认值并转而将相关命令的键绑定传递给 shell,请添加以 “-” 字符为前缀的命令。例如,添加“-workbench.action.quickOpen” 可使 “Ctrl+P”到达 shell。\r\n\r\n \r\n\r\n在设置编辑器中查看时,下面的默认跳过命令列表会被截断。要查看完整列表,请执行 {1},然后从下面的列表中搜索第一个命令。\r\n\r\n \r\n\r\n默认跳过的命令:\r\n\r\n{0}","terminal.integrated.confirmOnExit":"如果存在活动终端会话,控制是否确认窗口关闭的时间。","terminal.integrated.confirmOnExit.always":"始终确认是否存在终端。","terminal.integrated.confirmOnExit.hasChildProcesses":"确认是否存在具有子进程的终端。","terminal.integrated.confirmOnExit.never":"从不确认。","terminal.integrated.confirmOnKill":"控制是否在终端具有子进程时确认终止终端。当设置为编辑器时,如果编辑器区域中的终端具有子进程,则将标记为已更改。请注意,子进程检测可能不适用于 Git Bash 等 shell,后者不会将其进程作为 shell 的子进程运行。","terminal.integrated.confirmOnKill.always":"确认终端是在编辑器中还是在面板中。","terminal.integrated.confirmOnKill.editor":"确认终端是否在编辑器中。","terminal.integrated.confirmOnKill.never":"从不确认。","terminal.integrated.confirmOnKill.panel":"确认终端是否在面板中。","terminal.integrated.copyOnSelection":"控制是否将在终端中选定的文本复制到剪贴板。","terminal.integrated.cursorBlinking":"控制终端光标是否闪烁。","terminal.integrated.cursorStyle":"控制终端聚焦时终端光标的样式。","terminal.integrated.cursorStyleInactive":"控制终端未聚焦时终端光标的样式。","terminal.integrated.cursorWidth":"控制当 {0} 设置为 {1} 时光标的宽度。","terminal.integrated.customGlyphs":"是否为块元素和制表符字符绘制自定义字形(而不是使用字体),这通常会产生更好的连续线条呈现效果。请注意,禁用 {0} 时,这不起作用。","terminal.integrated.cwd":"将在其中启动终端的显式起始路径,它用作 shell 进程的当前工作目录(cwd)。如果根目录不是方便的 cwd,此路径在工作区设置中可能十分有用。","terminal.integrated.defaultLocation":"控制新建终端的显示位置。","terminal.integrated.defaultLocation.editor":"在编辑器中创建终端","terminal.integrated.defaultLocation.view":"在终端视图中创建终端","terminal.integrated.detectLocale":'控制是否检测 "$LANG" 环境变量并将其设置为符合 UTF-8 的选项,因为 VS Code 的终端仅支持来自 shell 的 UTF-8 编码数据。',"terminal.integrated.detectLocale.auto":'如果现有变量不存在或不以 "\'.UTF-8\'" 结尾,则设置 "$LANG" 环境变量。',"terminal.integrated.detectLocale.off":'请勿设置 "$LANG" 环境变量。',"terminal.integrated.detectLocale.on":'始终设置 "$LANG" 环境变量。',"terminal.integrated.drawBoldTextInBrightColors":'控制终端中的加粗文本是否始终使用 "bright" ANSI 颜色变量。',"terminal.integrated.enableBell":"现已弃用此项。请改用 `terminal.integrated.enableVisualBell` 和 `accessibility.signals.terminalBell` 设置。","terminal.integrated.enableFileLinks":"是否在终端中启用文件链接。连接可能会很慢,特别是在网络驱动器上工作时,因为将根据文件系统验证每个文件链接。更改此项将仅在新的终端中生效。","terminal.integrated.enableImages":"在终端启用图像映像支持,只有在启用 {0} 后才能执行此操作。Linux 和 macOS 均支持 sixel 和 iTerm 的内联图像协议。当 ConPTY 通过序列时,Windows 支持将自动亮起。目前在窗口重新加载/重新连接当中不会保留图像。","terminal.integrated.enableMultiLinePasteWarning":"控制将多行粘贴到终端时是否显示警告对话框。","terminal.integrated.enableMultiLinePasteWarning.always":"如果文本包含新行,则始终显示该警告。","terminal.integrated.enableMultiLinePasteWarning.auto":"启用警告,但在以下情况下不显示该警告:\r\n\r\n- 已启用带括号的粘贴模式(shell 支持本机多行粘贴)\r\n- 粘贴由 shell 的读取一行数据处理(在 pwsh 的情况下)","terminal.integrated.enableMultiLinePasteWarning.never":"从不显示警告。","terminal.integrated.enablePersistentSessions":"跨窗口重新加载保持工作区的终端会话/历史记录。","terminal.integrated.enableVisualBell":"控制是否启用可视化终端铃声。此项显示在终端名称旁边。","terminal.integrated.env.linux":'具有环境变量的对象,这些变量将添加到 Linux 上的终端要使用的 VS Code 进程。如果设置为 "null",则删除环境变量。',"terminal.integrated.env.osx":'具有环境变量的对象,这些变量将添加到 macOS 中的终端要使用的 VS Code 进程。如果设置为 "null",则删除环境变量。',"terminal.integrated.env.windows":'具有环境变量的对象,这些变量将添加到将由 Windows 上的终端使用的 VS Code 进程。设置为 "null" 以删除环境变量。',"terminal.integrated.environmentChangesIndicator":"是否在每个终端上显示环境更改指示器,该指示器解释了使是否已进行扩展或想要对终端环境进行更改。","terminal.integrated.environmentChangesIndicator.off":"禁用指示器。","terminal.integrated.environmentChangesIndicator.on":"启用指示器。","terminal.integrated.environmentChangesIndicator.warnonly":"仅当终端环境为“已过时”时,仅显示警告指示器,而不是显示指出终端环境已由扩展修改的信息指示器。","terminal.integrated.environmentChangesRelaunch":"在扩展想要向终端的环境贡献内容但尚未与之交互时是否自动重启终端。","terminal.integrated.fastScrollSensitivity":'按 "Alt" 时的滚动速度加倍。',"terminal.integrated.focusAfterRun":"控制在运行“终端: 在活动终端中运行所选文本”后是否将焦点放在终端、可访问缓冲区或两者均不集中。","terminal.integrated.focusAfterRun.accessible-buffer":"始终将焦点放在可访问的缓冲区上。","terminal.integrated.focusAfterRun.none":"不执行任何操作。","terminal.integrated.focusAfterRun.terminal":"始终将焦点放在终端上。","terminal.integrated.fontFamily":"控制终端的字体系列,默认为 {0} 的值。","terminal.integrated.fontSize":"控制终端的字号(以像素为单位)。","terminal.integrated.fontWeight":"要在终端中用于非粗体文本的字体粗细。接受“正常”和“加粗”这两个关键字,或接受 1-1000 之间的数字。","terminal.integrated.fontWeightBold":"要在终端中用于粗体文本的字体粗细。接受“正常”和“加粗”这两个关键字,或接受 1-1000 之间的数字。","terminal.integrated.fontWeightError":"仅允许使用关键字“正常”和“加粗”,或使用介于 1 至 1000 之间的数字。","terminal.integrated.gpuAcceleration":"控制终端是否将使用 GPU 来进行呈现。","terminal.integrated.gpuAcceleration.auto":"让 VS Code 检测哪些呈现器将提供最佳体验。","terminal.integrated.gpuAcceleration.canvas":"使用终端的回退画布呈现器,它使用 2d 上下文而不是在某些系统上性能更好地 Webgl。请注意,画布呈现器中的某些功能受到限制,如不透明选择。","terminal.integrated.gpuAcceleration.off":"禁用终端中的 GPU 加速。当 GPU 加速关闭时,终端的呈现速度会慢得多,但它应该能够在所有系统上可靠地工作。","terminal.integrated.gpuAcceleration.on":"在终端内启用 GPU 加速。","terminal.integrated.hideOnStartup":"是否在启动时隐藏终端视图,避免在没有持续会话时创建终端。","terminal.integrated.ignoreBracketedPasteMode":"控制终端是否忽略括号粘贴模式,即使终端已进入模式,在粘贴时忽略 {0} 和 {1} 序列。当 shell 不遵循例如在子 shell 中可能发生的模式时,这非常有用。","terminal.integrated.letterSpacing":"控制终端的字母间距,这是一个整数值,表示要在字符之间添加的额外像素数目。","terminal.integrated.lineHeight":"控制终端的行高,此数字乘以终端字号等于实际行高(以像素为单位)。","terminal.integrated.localEchoEnabled":"何时应启用本地回显。这将替代 {0}","terminal.integrated.localEchoEnabled.auto":"仅对远程工作区启用","terminal.integrated.localEchoEnabled.off":"始终禁用","terminal.integrated.localEchoEnabled.on":"始终启用","terminal.integrated.localEchoExcludePrograms":"当在终端标题中找到其中一个程序名称时,将禁用本地回显。","terminal.integrated.localEchoLatencyThreshold":"网络延迟的长度(以毫秒为单位),其中本地编辑将在终端上回显,无需等待服务器承认。如果为 '0',则本地回显将始终开启,如果为 '-1',则将禁用。","terminal.integrated.localEchoStyle":"本地回显文本的终端样式;字体样式或 RGB 颜色。","terminal.integrated.macOptionClickForcesSelection":"控制在 macOS 上使用 Option+单击时是否强制选择内容。这将强制进行常规(行)选择并禁止使用列选择模式。这样,可使用常规终端选择进行复制粘贴,例如在 tmux 中启用鼠标模式时。","terminal.integrated.macOptionIsMeta":"控制是否将选项键视为 macOS 中的终端上的元键。","terminal.integrated.middleClickBehavior":"控制终端如何回应中键单击操作。","terminal.integrated.middleClickBehavior.default":"将焦点放在终端上的平台默认值。在 Linux 上,这也将粘贴所选内容。","terminal.integrated.middleClickBehavior.paste":"在中键单击时粘贴。","terminal.integrated.minimumContrastRatio":"设置每个单元格的前景色时,将改为尝试符合指定的对比度比率。示例值:\r\n\r\n- 1: 不执行任何操作,使用标准主题颜色。\r\n- 4.5: [符合 WCAG AA 标准(最低)](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html)(默认)。\r\n- 7: [符合 WCAG AAA 标准(增强)](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast7.html)。\r\n- 21: 黑底白字或白底黑字。","terminal.integrated.mouseWheelScrollSensitivity":'要在鼠标滚轮滚动事件的 "deltaY" 上使用的乘数。',"terminal.integrated.mouseWheelZoom":"按住 Ctrl 键并滚动鼠标滚轮时对终端字体大小进行缩放。","terminal.integrated.mouseWheelZoom.mac":"按住 Cmd 键并滚动鼠标滚轮时对终端字体大小进行缩放。","terminal.integrated.persistentSessionReviveProcess":"当必须关闭终端进程(例如当窗口或应用程序关闭时)时,这将决定下次打开工作区时,应在何时还原以前的终端会话内容/历史记录和重新创建进程。\r\n\r\n注意事项:\r\n\r\n- 进程当前工作目录的还原取决于是否受 shell 支持。\r\n- 在关闭期间保留会话的时间有限,因此在使用高延迟远程连接时可能会中止相应会话。","terminal.integrated.persistentSessionReviveProcess.never":"永远不要还原终端缓冲区或重新创建流程。","terminal.integrated.persistentSessionReviveProcess.onExit":"在 Windows/Linux 上关闭最后窗口后或当触发 `workbench.action.quit` 命令(命令面板、键绑定、菜单)时,恢复流程。","terminal.integrated.persistentSessionReviveProcess.onExitAndWindowClose":"在 Windows/Linux 上关闭最后窗口后或当触发 `workbench.action.quit` 命令(命令面板、键绑定、菜单)或关闭窗口时,恢复流程。","terminal.integrated.rescaleOverlappingGlyphs":"是否水平重新缩放单个单元格宽且有字形与下面的单元格重叠的字形。模糊宽度字符(例如罗马数字字符 U+2160+)通常会发生这种情况,等宽字体中不特别推荐这些字符。永远不会重新缩放表情符号字形。","terminal.integrated.rightClickBehavior":"控制终端如何回应右键单击操作。","terminal.integrated.rightClickBehavior.copyPaste":"当有选定内容时复制,否则粘贴。","terminal.integrated.rightClickBehavior.default":"显示上下文菜单。","terminal.integrated.rightClickBehavior.nothing":"不执行任何操作并将事件传递到终端。","terminal.integrated.rightClickBehavior.paste":"右键单击时粘贴。","terminal.integrated.rightClickBehavior.selectWord":"选择光标下方的字词并显示上下文菜单。","terminal.integrated.scrollback":"控制终端在其缓冲区中保留的最大行数。我们根据此值预分配内存,以确保顺畅体验。因此,随着值的增加,内存量也会增加。","terminal.integrated.sendKeybindingsToShell":"将大多数键绑定调度到终端而不是工作台,重写 {0},也可以用于微调。","terminal.integrated.shellIntegration.decorationsEnabled":"启用 shell 集成后,为每个命令添加修饰。","terminal.integrated.shellIntegration.decorationsEnabled.both":"在装订线(左侧)和概述标尺(右侧)中显示修饰","terminal.integrated.shellIntegration.decorationsEnabled.gutter":"在终端左侧显示装订线修饰","terminal.integrated.shellIntegration.decorationsEnabled.never":"不显示修饰","terminal.integrated.shellIntegration.decorationsEnabled.overviewRuler":"在终端右侧显示概述标尺修饰","terminal.integrated.shellIntegration.enabled":"确定是否自动注入 shell 集成以支持增强型命令跟踪和当前工作目录检测等功能。\r\n\r\nshell 集成通过使用启动脚本注入 shell 来工作。该脚本使 VS Code 能够了解终端中发生的情况。\r\n\r\n支持的 shell:\r\n\r\n- Linux/macOS: bash、fish、pwsh、zsh\r\n- Windows: pwsh、git bash\r\n\r\n此设置仅在创建终端时适用,因此需要重启终端才能生效。\r\n\r\n请注意,如果在终端配置文件中定义了自定义参数、已启用 {1}、具有[复杂 bash `PROMPT_COMMAND`](https://code.visualstudio.com/docs/editor/integrated-terminal#_complex-bash-promptcommand) 或其他不受支持的设置,则脚本注入可能不起作用。若要禁用修饰,请参阅 {0}","terminal.integrated.shellIntegration.history":"控制要保留在终端命令历史记录中的最近使用的命令数。设置为 0 可禁用终端命令历史记录。","terminal.integrated.shellIntegration.suggestEnabled":"当 {0} 设置为 {1} 时,为受支持的 shell 启用实验性终端 Intellisense 建议。如果手动安装 shell 集成,则在调用脚本之前,需要将 {2} 设置为 {3}。","terminal.integrated.showExitAlert":"控制在退出代码为非零时是否显示“终端进程已终止且显示退出代码”警报。","terminal.integrated.smoothScrolling":"控制终端是否将使用动画滚动。","terminal.integrated.splitCwd":"控制拆分终端开始时使用的工作目录。","terminal.integrated.splitCwd.inherited":"在 macOS 和 Linux 上,新的拆分终端将使用父终端的工作目录。在 Windows 上,这与初始行为相同。","terminal.integrated.splitCwd.initial":"新的拆分终端将使用父终端开始时使用的工作目录。","terminal.integrated.splitCwd.workspaceRoot":"新的拆分终端将使用工作区根作为工作目录。在多根工作区中,提供了要使用根文件夹的选项。","terminal.integrated.stickyScroll.enabled":"在终端顶部显示当前命令。","terminal.integrated.stickyScroll.maxLineCount":"定义要显示的最大粘滞行数。无论此设置如何,粘滞滚动行都不会超过视区的 40%。","terminal.integrated.tabStopWidth":"制表位中的单元格数。","terminal.integrated.tabs.defaultColor":"默认情况下要与终端图标关联的主题颜色 ID。","terminal.integrated.tabs.defaultIcon":"默认情况下要与终端图标关联的 codicon ID。","terminal.integrated.tabs.enableAnimation":"控制终端选项卡状态是否支持动画(例如正在进行的任务)。","terminal.integrated.tabs.enabled":"控制终端选项卡是否以列表的形式显示在终端的一侧。如果禁用此功能,将改为显示下拉列表。","terminal.integrated.tabs.focusMode":"控制是在双击时将焦点放在某个选项卡上还是单击。","terminal.integrated.tabs.focusMode.doubleClick":"双击终端选项卡时聚焦终端","terminal.integrated.tabs.focusMode.singleClick":"双击终端选项卡时聚焦终端","terminal.integrated.tabs.hideCondition":"控制在特定条件下是否将隐藏终端选项卡视图。","terminal.integrated.tabs.hideCondition.never":"从不隐藏终端选项卡视图","terminal.integrated.tabs.hideCondition.singleGroup":"仅打开一个终端组时隐藏终端选项卡视图","terminal.integrated.tabs.hideCondition.singleTerminal":"仅打开一个终端时隐藏终端选项卡视图","terminal.integrated.tabs.location":"控制终端选项卡的位置,该位置位于实际终端的左侧或右侧。","terminal.integrated.tabs.location.left":"在终端的左侧显示终端选项卡视图","terminal.integrated.tabs.location.right":"在终端的右侧显示终端选项卡视图","terminal.integrated.tabs.separator":"{0} 和 {1} 使用的分隔符。","terminal.integrated.tabs.showActions":"控制是否在“新建终端”按钮旁边显示“终端拆分”和“终止”按钮。","terminal.integrated.tabs.showActions.always":"始终显示操作","terminal.integrated.tabs.showActions.never":"从不显示操作","terminal.integrated.tabs.showActions.singleTerminal":"当终端是唯一打开的终端时显示操作","terminal.integrated.tabs.showActions.singleTerminalOrNarrow":"在终端是唯一打开的终端或选项卡视图处于窄而无文本状态时显示活动终端","terminal.integrated.tabs.showActiveTerminal":"在视图中显示活动的终端信息,当选项卡中的标题不可见时,此功能尤其有用。","terminal.integrated.tabs.showActiveTerminal.always":"始终显示活动终端","terminal.integrated.tabs.showActiveTerminal.never":"从不显示活动终端","terminal.integrated.tabs.showActiveTerminal.singleTerminal":"当仅有一个终端打开时显示活动终端","terminal.integrated.tabs.showActiveTerminal.singleTerminalOrNarrow":"仅当终端已打开或选项卡视图处于窄而无文本状态时显示活动终端","terminal.integrated.unicodeVersion":"控制在终端中计算字符宽度时要使用的 unicode 版本。如果遇到未占用正确空格或退格量的表情符号或其他宽字符,或删除量太大或太小,则可能希望尝试调整此设置。","terminal.integrated.unicodeVersion.eleven":"unicode 的版本 11。此版本可在使用新式版本 unicode 的新式系统上提供更好的支持。","terminal.integrated.unicodeVersion.six":"unicode 的版本 6。此版本较旧,因此在较旧的系统中效果更好。","terminal.integrated.windowsEnableConpty":"是否使用 ConPTY 进行 Windows 终端进程通信(需要 Windows 10 内部版本号 18309+)。如果此设置为 false,将使用 Winpty。","terminal.integrated.wordSeparators":"一个包含所有字符的字符串,在双击选择单词和回退“word”链接检测时,会被视为单词分隔符。由于这用于链接检测,包括在检测链接时使用“:”之类的字符,将会忽略“file:10:5”等链接的行和列部分。",terminalDescription:"控制显示在标题右侧的终端说明。根据上下文替换变量:",terminalIntegratedConfigurationTitle:"集成终端",terminalTitle:"控制终端标题。根据上下文替换变量:",workspaceFolder:"在其中启动终端的工作区"},"vs/workbench/contrib/terminal/common/terminalContextKey":{inTerminalRunCommandPickerContextKey:"终端运行命令选取器当前是否处于打开状态。",isSplitTerminalContextKey:"重点选项卡的终端是否为拆分终端。",terminalAltBufferActive:"终端的可选缓冲区是否处于活动状态。",terminalCountContextKey:"当前终端数。",terminalEditorFocusContextKey:"是否聚焦编辑器区域中的终端。",terminalFocusContextKey:"是否聚焦终端。",terminalFocusInAnyContextKey:"是否将任何终端作为焦点,包括在其他 UI 中使用的分离终端。",terminalProcessSupportedContextKey:"是否可以在当前工作区中启动终端流程。",terminalShellIntegrationEnabled:"是否在活动终端中启用 shell 集成",terminalShellTypeContextKey:"活动终端的 shell 类型,当不存在终端时,此值设置为最后已知值。",terminalSuggestWidgetVisible:"终端的建议小组件是否可见。",terminalTabsFocusContextKey:"是否聚焦终端选项卡小组件。",terminalTabsSingularSelectedContextKey:"是否在终端选项卡列表中选择终端。",terminalTextSelectedContextKey:"是否在活动终端中选择文本。",terminalTextSelectedInFocusedContextKey:"是否在重点终端中选择文本。",terminalViewShowing:"终端视图是否显示"},"vs/workbench/contrib/terminal/common/terminalStrings":{currentSessionCategory:"当前会话",doNotShowAgain:"不再显示",killTerminal:"终止终端","killTerminal.short":"终止",local:"本地",moveIntoNewWindow:"将终端移动到新窗口",moveToEditor:"将终端移动到编辑器区域中",previousSessionCategory:"上一个会话",splitTerminal:"拆分终端","splitTerminal.short":"拆分",stickyScroll:"粘滞滚动",task:"任务",terminal:"终端","terminal.new":"新建终端",terminalCategory:"终端",unsplitTerminal:"取消拆分终端","workbench.action.terminal.changeColor":"更改颜色...","workbench.action.terminal.changeIcon":"更改图标...","workbench.action.terminal.focus":"聚焦到终端","workbench.action.terminal.focusAndHideAccessibleBuffer":"聚焦终端并隐藏可访问缓冲区","workbench.action.terminal.focusHover":"聚焦悬停","workbench.action.terminal.moveToTerminalPanel":"将终端移到面板中","workbench.action.terminal.newWithCwd":"从自定义工作目录开始创建新终端","workbench.action.terminal.rename":"重命名...","workbench.action.terminal.renameWithArg":"重命名当前活动终端","workbench.action.terminal.scrollToNextCommand":"滚动到下一条命令","workbench.action.terminal.scrollToPreviousCommand":"滚动到上一条命令","workbench.action.terminal.sendSequence":"发送自定义序列到终端","workbench.action.terminal.sizeToContentWidthInstance":"将大小切换为内容宽度"},"vs/workbench/contrib/terminal/electron-sandbox/terminalRemote":{"workbench.action.terminal.newLocal":"新建集成终端(本地)"},"vs/workbench/contrib/terminalContrib/accessibility/browser/terminal.accessibility.contribution":{"workbench.action.terminal.accessibleBufferGoToNextCommand":"可访问的缓冲区转到下一命令","workbench.action.terminal.accessibleBufferGoToPreviousCommand":"可访问的缓冲区转到上一命令","workbench.action.terminal.focusAccessibleBuffer":"焦点可访问终端视图","workbench.action.terminal.scrollToBottomAccessibleView":"滚动到底部的可访问视图","workbench.action.terminal.scrollToTopAccessibleView":"滚动到顶部的可访问视图"},"vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibilityHelp":{commandPromptMigration:"考虑使用 powershell (而非命令提示符)以改进体验",focusAccessibleTerminalView:"焦点可访问终端视图({0})命令使屏幕阅读器能够读取终端内容。",focusAccessibleTerminalViewNoKb:"“焦点终端可访问视图”命令使屏幕阅读器能够读取终端内容,当前无法通过键绑定触发。",focusAfterRun:"使用 `{0}`在终端中运行所选文本后,配置焦点。",focusViewOnExecution:"启用 `terminal.integrated.accessibleViewFocusOnCommandExecution`,以便在终端中执行命令时自动聚焦终端可访问视图。",goToNextCommand:"在可访问视图中转到下一个命令 ({0})",goToNextCommandNoKb:"当前无法通过键绑定触发在可访问视图中转到下一个命令。",goToPreviousCommand:"可访问视图中转到上一个命令 ({0})",goToPreviousCommandNoKb:"当前无法通过键绑定触发在可访问视图中转到上一个命令。",goToRecentDirectory:"转到最近使用的目录({0})",goToRecentDirectoryNoKb:"当前无法通过键绑定触发转到 Recent Directory。",goToRecentDirectoryNoKbNoShellIntegration:"通过“转到最近的目录”命令,屏幕阅读器可以轻松导航到已在终端中使用的目录,当前无法通过键绑定触发该目录。",goToRecentDirectoryNoShellIntegration:"通过“转到最近的目录”({0})命令,屏幕阅读器可以轻松导航到已在终端中使用的目录。",goToSymbol:"转到符号({0})",goToSymbolNoKb:"转到符号当前无法通过键绑定触发。",newWithProfile:"借助创建新终端(带配置文件)({0})命令,可以使用特定配置文件轻松创建终端。",newWithProfileNoKb:"借助创建新终端(带配置文件)命令,可以使用特定配置文件轻松创建终端,当前无法通过键绑定触发。",openDetectedLink:"打开检测到的链接({0})命令使屏幕阅读器能够轻松打开在终端中找到的链接。",openDetectedLinkNoKb:"“打开检测到的链接”命令使屏幕阅读器能够轻松打开终端中找到的链接,当前无法通过键绑定触发链接。",preserveCursor:"自定义使用“terminal.integrated.accessibleViewPreserveCursorPosition”在终端和可访问视图之间切换时的光标行为。",runRecentCommand:"运行最近使用的命令({0})",runRecentCommandNoKb:"当前无法通过键绑定触发运行 Recent 命令。",shellIntegration:"终端具有一种称为 shell 集成的功能,可提供增强的体验并为屏幕阅读器提供有用的命令,例如:"},"vs/workbench/contrib/terminalContrib/chat/browser/terminalChat":{chatAgentRegisteredContextKey:"终端聊天代理是否已注册。",chatFocusedContextKey:"聊天视图是否为焦点。",chatInputHasTextContextKey:"聊天输入是否包含文本。",chatRequestActiveContextKey:"是否存在活动聊天请求。",chatResponseContainsCodeBlockContextKey:"聊天响应是否包含代码块。",chatResponseContainsMultipleCodeBlocksContextKey:"聊天响应是否包含多个代码块。",chatResponseSupportsIssueReportingContextKey:"响应是否支持问题报告",chatVisibleContextKey:"聊天视图是否可见。",interactiveSessionResponseVote:'对响应投赞成票后,其设置为 "up"。投反对票时,设置为 "down"。否则为空字符串。'},"vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp":{"chat.signals":"可通过带有 signals.chat 前缀的设置更改辅助功能信号。默认情况下,如果请求超过 4 秒,你将听到一个声音,指示仍在进行中。","inlineChat.access":"可以使用命令终端: 开始聊天({0})激活它,该命令会将焦点放在输入框中。","inlineChat.focusInput":"从响应访问输入框({0})。","inlineChat.focusInputNoKb":"通过 shift+tabbing 或为命令: 焦点终端输入分配键绑定,从输入框访问响应。","inlineChat.focusResponse":"从输入框({0})访问响应。","inlineChat.focusResponseNoKb":"通过按 Tab 键或为命令“焦点终端响应”分配键绑定,从输入框访问响应。","inlineChat.input":"输入框是用户可以键入请求并可以发出请求的位置({0})。按 Escape 键后,将会关闭小组件并放弃所有内容,然后终端将重新处于焦点模式。","inlineChat.inputNoKb":"输入框是用户可以键入请求,并且可以通过按 Tab 键转到“发出请求”按钮来发出请求的位置,目前无法通过键绑定触发此操作。按 Escape 键后,将会关闭小组件并放弃所有内容,然后终端将重新处于焦点模式。","inlineChat.insertCommand":"在焦点放在输入框命令编辑器中时,执行终端: 插入聊天命令({0})操作。","inlineChat.insertCommandNoKb":"通过按 Tab 键切换到按钮来插入命令,因为当前该操作不能通过键绑定触发。","inlineChat.inspectResponseMessage":"可以在无障碍视图({0})中检查响应。","inlineChat.inspectResponseNoKb":"在以输入框为焦点时,通过“打开可访问视图”命令检查可访问视图中的响应,该命令当前无法通过键绑定触发。","inlineChat.overview":"内联聊天发生在终端内。建议终端命令非常有用。请记住,AI 生成的代码可能不正确。","inlineChat.runCommand":"焦点位于输入框或命令编辑器中时,执行终端: 运行聊天命令({0})操作。","inlineChat.runCommandNoKb":"通过按 Tab 键转到按钮来运行命令,因为当前无法通过键绑定触发操作。","inlineChat.toolbar":"使用选项卡访问命令、状态、消息响应等条件部分。"},"vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions":{cancelChat:"取消聊天",closeChat:"关闭聊天",discard:"放弃",discardDescription:"放弃终端当前聊天响应,隐藏聊天小组件并清除聊天输入。",focusTerminalInput:"焦点终端输入",focusTerminalResponse:"焦点终端响应",insert:"插入",insertCommand:"插入聊天命令",insertFirst:"首次插入",insertFirstCommand:"插入第一个聊天命令",makeChatRequest:"发出聊天请求",reportIssue:"报告问题",run:"运行",runCommand:"聊天命令",runFirst:"首次运行",runFirstCommand:"运行第一个聊天命令",startChat:"在终端中启动",viewInChat:"在聊天中查看"},"vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget":{"default.placeholder":"询问如何在终端中执行某项操作","welcome.1":"AI 生成的命令可能不正确"},"vs/workbench/contrib/terminalContrib/developer/browser/terminal.developer.contribution":{terminalDevMode:"终端开发模式","workbench.action.terminal.restartPtyHost":"重启 pty 主机","workbench.action.terminal.showTextureAtlas":"显示终端纹理图集","workbench.action.terminal.writeDataToTerminal":"将数据写入终端","workbench.action.terminal.writeDataToTerminal.prompt":"输入数据以直接写入终端,从而绕过 pty"},"vs/workbench/contrib/terminalContrib/environmentChanges/browser/terminal.environmentChanges.contribution":{ScopedEnvironmentContributionInfo:"工作区",envChanges:"终端环境更改",extension:"扩展: {0}","workbench.action.terminal.showEnvironmentContributions":"显示环境贡献"},"vs/workbench/contrib/terminalContrib/find/browser/terminal.find.contribution":{"workbench.action.terminal.findNext":"查找下一个","workbench.action.terminal.findPrevious":"查找上一个","workbench.action.terminal.focusFind":"聚焦查找","workbench.action.terminal.hideFind":"隐藏查找","workbench.action.terminal.searchWorkspace":"搜索工作区","workbench.action.terminal.toggleFindCaseSensitive":"切换使用区分大小写进行查找","workbench.action.terminal.toggleFindRegex":"切换使用正则表达式进行查找","workbench.action.terminal.toggleFindWholeWord":"切换使用全字匹配进行查找"},"vs/workbench/contrib/terminalContrib/find/browser/textInputContextMenu":{copy:"复制",cut:"剪切",paste:"粘贴",redo:"重做",selectAll:"全选",undo:"撤消"},"vs/workbench/contrib/terminalContrib/links/browser/terminal.links.contribution":{"workbench.action.terminal.openDetectedLink":"打开检测到的链接...","workbench.action.terminal.openLastLocalFileLink":"打开最后一个本地文件链接","workbench.action.terminal.openLastUrlLink":"打开最后一个 URL 链接","workbench.action.terminal.openLastUrlLink.description":"在终端中打开最后一个检测到的 URL/URI 链接"},"vs/workbench/contrib/terminalContrib/links/browser/terminalLinkDetectorAdapter":{focusFolder:"聚焦资源管理器中的文件夹",followLink:"打开链接",openFile:"在编辑器中打开文件",openFolder:"在新窗口中打开文件夹",searchWorkspace:"搜索工作区"},"vs/workbench/contrib/terminalContrib/links/browser/terminalLinkManager":{allow:"允许 {0}",followForwardedLink:"执行使用转发端口的链接",followLink:"跟踪链接",followLinkUrl:"链接",scheme:"打开 URI 可能不安全,是否要允许使用方案 {0} 打开链接?","terminalLinkHandler.followLinkAlt":"Alt + 单击","terminalLinkHandler.followLinkAlt.mac":"Option + 单击","terminalLinkHandler.followLinkCmd":"Cmd + 单击","terminalLinkHandler.followLinkCtrl":"Ctrl + 单击"},"vs/workbench/contrib/terminalContrib/links/browser/terminalLinkQuickpick":{"terminal.integrated.localFileLinks":"文件","terminal.integrated.localFolderLinks":"文件夹","terminal.integrated.openDetectedLink":"选择要打开的链接,键入以筛选所有链接","terminal.integrated.searchLinks":"工作区搜索","terminal.integrated.urlLinks":"URL"},"vs/workbench/contrib/terminalContrib/quickFix/browser/quickFixAddon":{"codeAction.widget.id.quickfix":"快速修复","quickFix.command":"运行: {0}","quickFix.opener":"打开: {0}"},"vs/workbench/contrib/terminalContrib/quickFix/browser/terminal.quickFix.contribution":{"workbench.action.terminal.showQuickFixes":"显示终端快速修复"},"vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixBuiltinActions":{"terminal.createPR":"创建 PR {0}","terminal.freePort":"空闲端口 {0}"},"vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixService":{"vscode.extension.contributes.terminalQuickFixes":"提供终端快速修复。","vscode.extension.contributes.terminalQuickFixes.commandExitResult":"要匹配的命令退出结果","vscode.extension.contributes.terminalQuickFixes.commandLineMatcher":"用于测试命令行的正则表达式或字符串","vscode.extension.contributes.terminalQuickFixes.id":"快速修复提供程序的 ID","vscode.extension.contributes.terminalQuickFixes.kind":"生成的快速修复的类型。这将更改快速修复的显示方式。默认为 {0}。","vscode.extension.contributes.terminalQuickFixes.outputMatcher":"与输出的单行匹配的正则表达式或字符串,它提供要在 terminalCommand 和 URI 中引用的组。\r\n\r\n例如:\r\n\r\n `lineMatcher: /git push --set-upstream origin (?[^s]+)/;`\r\n\r\n`terminalCommand: 'git push --set-upstream origin ${group:branchName}';`\r\n"},"vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollColorRegistry":{"terminalStickyScroll.background":"终端中粘滞滚动覆盖的背景色。","terminalStickyScrollHover.background":"悬停时终端中粘滞滚动覆盖的背景色。"},"vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollOverlay":{labelWithKeybinding:"{0} ({1})",stickyScrollHoverTitle:"导航到命令"},"vs/workbench/contrib/terminalContrib/suggest/browser/terminal.suggest.contribution":{"workbench.action.terminal.acceptSelectedSuggestion":"接受所选建议","workbench.action.terminal.hideSuggestWidget":"隐藏建议小组件","workbench.action.terminal.selectNextPageSuggestion":"选择下一页建议","workbench.action.terminal.selectNextSuggestion":"选择下一条建议","workbench.action.terminal.selectPrevPageSuggestion":"选择上一页建议","workbench.action.terminal.selectPrevSuggestion":"选择上一条建议"},"vs/workbench/contrib/terminalContrib/zoom/browser/terminal.zoom.contribution":{fontZoomIn:"增大字号",fontZoomOut:"减小字体号",fontZoomReset:"重置字号"},"vs/workbench/contrib/testing/browser/codeCoverageDecorations":{"coverage.branchCovered":"执行了 {2} 次 {1} 中的分支 {0}。","coverage.branchCoveredYes":"已执行 {1} 中的分支 {0}。","coverage.branchNotCovered":"未覆盖 {1} 中的分支 {0}。","coverage.branches":"已覆盖 {2} 中的分支 {1} 的 {0}。","coverage.declExecutedCount":"`{0}` 执行了 {1} 次。","coverage.declExecutedNo":"未执行 `{0}`。","coverage.declExecutedYes":"已执行 `{0}`。","coverage.toggleInline":"切换内联覆盖率","testing.toggleInlineCoverage":"切换内联覆盖率"},"vs/workbench/contrib/testing/browser/icons":{filterIcon:"“测试”视图中“筛选器”操作的图标。",hiddenIcon:"在隐藏的测试显示时其旁边出现的图标。",testViewIcon:"查看测试视图的图标。",testingCancelIcon:"用于取消正在进行的测试运行的图标。",testingCancelRefreshTests:"用于取消刷新测试的按钮上的图标。",testingCoverage:"表示测试覆盖率的图标",testingCoverageIcon:"“运行覆盖率测试”操作的图标。",testingDebugAllIcon:"“调试所有测试”操作的图标。",testingDebugIcon:"“调试测试”操作的图标。",testingErrorIcon:"针对有错误的测试显示的图标。",testingFailedIcon:"针对失败的测试显示的图标。",testingMissingBranch:"表示没有范围的未覆盖块的图标",testingPassedIcon:"针对通过的测试显示的图标。",testingQueuedIcon:"针对排队的测试显示的图标。",testingRefreshTests:"用于刷新测试的按钮上的图标。",testingRerunIcon:"“重新运行测试”操作的图标。",testingResultsIcon:"测试结果的图标。",testingRunAllIcon:"“运行所有测试”操作的图标。",testingRunAllWithCoverageIcon:"“对所有测试运行覆盖率测试”操作的图标。",testingRunIcon:"“运行测试”操作的图标。",testingShowAsList:"当测试资源管理器(树形式)被禁用时显示的图标。",testingShowAsTree:"当测试资源管理器(列表形式)被禁用时显示的图标。",testingSkippedIcon:"针对跳过的测试显示的图标。",testingTurnContinuousRunIsOn:"用于测试迭起的连续运行处于打开状态时的图标。",testingTurnContinuousRunOff:"用于关闭连续测试运行的图标。",testingTurnContinuousRunOn:"用于打开连续测试运行的图标。",testingUnsetIcon:"针对处于未设置状态的测试显示的图标。",testingUpdateProfiles:"显示的用于更新测试配置文件的图标。",testingWasCovered:"表示元素已覆盖的图标"},"vs/workbench/contrib/testing/browser/testCoverageBars":{branchCoverage:"已覆盖 {0} 个分支,共 {1} 个({2})",functionCoverage:"已覆盖 {0} 个函数,共 {1} 个({2})",statementCoverage:"已覆盖 {0} 个语句,共 {1} 个({2})"},"vs/workbench/contrib/testing/browser/testCoverageView":{functionsWithoutCoverage:"没有覆盖率的 {0} 声明...",loadingCoverageDetails:"正在加载覆盖率详细信息...",testCoverageItemLabel:"{0} 覆盖率: {0}%",testCoverageTreeLabel:"测试覆盖率资源管理器","testing.changeCoverageSort":"更改排序顺序","testing.coverageSortByCoverage":"按覆盖率排序","testing.coverageSortByCoverageDescription":"按总覆盖率为文件和声明排序","testing.coverageSortByLocation":"按位置排序","testing.coverageSortByLocationDescription":"文件按字母顺序排序,声明按位置排序","testing.coverageSortByName":"按名称排序","testing.coverageSortByNameDescription":"文件和声明按字母顺序排序","testing.coverageSortPlaceholder":"测试覆盖率排序视图..."},"vs/workbench/contrib/testing/browser/testExplorerActions":{configureProfile:"选择要更新的配置文件",coverageSelectedTests:"运行覆盖率测试","debug test":"调试测试",debugAllTests:"调试所有测试",debugSelectedTests:"调试测试",discoveringTests:"正在发现测试",getExplorerSelection:"获取资源管理器选择",getSelectedProfiles:"获取所选配置文件",hideTest:"隐藏测试",noCoverageTestProvider:"在此工作区中找不到具有覆盖率运行器的测试。可能需要安装测试提供程序扩展",noDebugTestProvider:"未在此工作区中找到可调试测试。可能需要安装测试提供程序扩展",noTestProvider:"未在此工作区中找到测试。可能需要安装测试提供程序扩展",noTests:"在所选文件或文件夹中找不到测试",noTestsAtCursor:"在此处未找到测试",noTestsInFile:"在此文件中找不到任何测试","run test":"运行测试","run with cover test":"运行覆盖率测试",runAllTests:"运行所有测试",runAllWithCoverage:"对所有测试运行覆盖率测试",runSelectedTests:"运行测试","testing.cancelRun":"取消测试运行","testing.cancelTestRefresh":"取消测试刷新","testing.clearCoverage":"清除覆盖率","testing.clearResults":"清除所有结果","testing.collapseAll":"折叠所有测试","testing.configureProfile":"配置测试配置文件","testing.coverageAtCursor":"运行光标下覆盖率测试","testing.coverageCurrentFile":"在当前文件中运行覆盖率测试","testing.coverageLastRun":"重新运行上一次覆盖率测试","testing.debugAtCursor":"在光标处调试测试","testing.debugCurrentFile":"在当前文件中调试测试","testing.debugFailTests":"调试失败的测试","testing.debugLastRun":"调试上次运行","testing.editFocusedTest":"转到测试","testing.noCoverage":"上次测试运行时没有可用的覆盖率信息。","testing.noProfiles":"未找到已启用测试连续运行的配置文件","testing.openCoverage":"打开覆盖率文件","testing.openOutputPeek":"快速查看输出","testing.reRunFailTests":"重新运行失败的测试","testing.reRunLastRun":"重新运行上次运行","testing.refreshTests":"刷新测试","testing.runAtCursor":"在光标处运行测试","testing.runCurrentFile":"在当前文件中运行测试","testing.runUsing":"使用配置文件执行...","testing.searchForTestExtension":"搜索测试扩展","testing.selectContinuousProfiles":"选择文件更改时要运行的配置文件:","testing.selectDefaultTestProfiles":"选择默认配置文件","testing.showMostRecentOutput":"显示输出","testing.sortByDuration":"按持续时间排序","testing.sortByLocation":"按位置排序","testing.sortByStatus":"按状态排序","testing.startContinuous":"启动连续运行","testing.startContinuousRunUsing":"使用以下方式启动连续运行...","testing.stopContinuous":"停止连续运行","testing.toggleContinuousRunOff":"关闭连续运行","testing.toggleContinuousRunOn":"启用连续运行","testing.toggleInlineTestOutput":"切换内联测试输出","testing.viewAsList":"以列表形式查看","testing.viewAsTree":"以树形式查看",unhideAllTests:"取消隐藏所有测试",unhideTest:"取消隐藏测试"},"vs/workbench/contrib/testing/browser/testing.contribution":{miViewTesting:"测试(&E)",noTestProvidersRegistered:"尚未在此工作区中找到任何测试。",searchForAdditionalTestExtensions:"安装其他测试扩展...",test:"测试",testCoverage:"测试覆盖率",testExplorer:"测试资源管理器",testResultsPanelName:"测试结果"},"vs/workbench/contrib/testing/browser/testingConfigurationUi":{"testConfigurationUi.pick":"选择要使用的测试配置文件",updateTestConfiguration:"更新测试配置"},"vs/workbench/contrib/testing/browser/testingDecorations":{"actual.title":"实际","coverage test":"运行覆盖率测试","debug all test":"调试所有测试","debug test":"调试测试","expected.title":"预期","peek failure":"速览错误",peekTestOutout:"速览测试输出","reveal test":"在测试资源管理器中显示","run all test":"运行所有测试","run all test with coverage":"对所有测试运行覆盖率测试","run test":"运行测试",selectTestToRun:"选择要运行的测试",testOverflowItems:"另外 {0} 个测试...","testing.gutterMsg.contextMenu":"单击以获取测试选项","testing.gutterMsg.coverage":"单击以运行覆盖率测试,右键单击以查看更多选项","testing.gutterMsg.debug":"单击以调试测试,右键单击以查看更多选项","testing.gutterMsg.run":"单击以运行测试,右键单击以查看更多选项","testing.runUsing":"使用配置文件执行..."},"vs/workbench/contrib/testing/browser/testingExplorerFilter":{testExplorerFilter:"筛选器(例如 text、!exclude、@tag)",testExplorerFilterLabel:"在资源管理器中筛选测试的文本","testing.filters.currentFile":"仅在活动文件中显示","testing.filters.fuzzyMatch":"模糊匹配","testing.filters.menu":"更多筛选器...","testing.filters.removeTestExclusions":"取消隐藏所有测试","testing.filters.showExcludedTests":"显示隐藏的测试","testing.filters.showOnlyExecuted":"仅显示已执行的测试","testing.filters.showOnlyFailed":"仅显示失败的测试"},"vs/workbench/contrib/testing/browser/testingExplorerView":{configureTestProfiles:"配置测试配置文件",defaultTestProfile:"{0} (默认)",noResults:"尚无测试结果。",selectDefaultConfigs:"选择默认配置文件",testExplorer:"测试资源管理器","testing.treeElementLabelDuration":"{1} 中的 {0}","testing.treeElementLabelOutdated":"{0},过期结果",testingContinuousBadge:"正在监视测试是否存在更改",testingCountBadgeFailed:"{0} 个测试失败",testingCountBadgePassed:"{0} 个测试已通过",testingCountBadgeSkipped:"已跳过 {0} 个测试",testingFindExtension:"显示工作区测试",testingNoTest:"此文件中未发现任何测试。"},"vs/workbench/contrib/testing/browser/testingOutputPeek":{caseNoOutput:"测试用例未报告任何输出。",close:"关闭",closeTestCoverage:"关闭测试覆盖","debug test":"调试测试",messageMoreLines1:"再 + 1 行",messageMoreLinesN:"再 + {0} 行",openTestCoverage:"查看测试覆盖率","run test":"运行测试",runNoOutput:"测试运行未记录任何输出。",runNoOutputForPast:"测试输出仅适用于新的测试运行。",testOutputTitle:"测试输出",testUnnamedTask:"未命名任务","testing.debugLastRun":"调试测试运行","testing.goToError":"转到源","testing.goToFile":"转到源","testing.goToNextMessage":"转到“下一个测试失败”","testing.goToNextMessage.description":"显示文件中的下一条失败消息","testing.goToPreviousMessage":"转到“上一个测试失败”","testing.goToPreviousMessage.description":"显示文件中的上一条失败消息","testing.markdownPeekError":"无法打开 Markdown 预览: {0}。\r\n\r\n请确保已启用 Markdown 扩展。","testing.openMessageInEditor":"在编辑器中打开","testing.reRunLastRun":"重新运行测试","testing.revealInExplorer":"在测试资源管理器中显示","testing.showResultOutput":"显示结果输出","testing.toggleTestingPeekHistory":"在速览中切换测试历史记录","testing.toggleTestingPeekHistory.description":"在速览视图中显示或隐藏测试运行的历史记录",testingOutputActual:"实际结果",testingOutputExpected:"预期结果",testingPeekLabel:"测试结果消息"},"vs/workbench/contrib/testing/browser/testingProgressUiService":{"testProgress.completed":"{0}/{1} 个测试已通过({2}%)","testProgress.running":"正在运行测试,通过 {0}/{1} ({2}%)","testProgress.runningInitial":"正在运行测试…","testProgressWithSkip.completed":"{0}/{1} 个测试已通过({2}%,{3} 个已跳过)","testProgressWithSkip.running":"正在运行测试,通过 {0}/{1} ({2}%, {3} 个已跳过)"},"vs/workbench/contrib/testing/browser/testingViewPaneContainer":{testing:"测试"},"vs/workbench/contrib/testing/browser/theme":{"testing.coverCountBadgeBackground":"指明执行计数的徽章的背景","testing.coverCountBadgeForeground":"指明执行计数的徽章的前景色","testing.coveredBackground":"未覆盖文本的背景色。","testing.coveredBorder":"未覆盖文本的边框颜色。","testing.coveredGutterBackground":"代码已覆盖的区域的装订线颜色。","testing.iconErrored":"测试资源管理器中“出错”图标的颜色。","testing.iconErrored.retired":"测试资源管理器中“出错”图标的停用颜色。","testing.iconFailed":"测试资源管理器中“失败”图标的颜色。","testing.iconFailed.retired":"测试资源管理器中“失败”图标的停用颜色。","testing.iconPassed":"测试资源管理器中“已通过”图标的颜色。","testing.iconPassed.retired":"测试资源管理器中“通过”图标的停用颜色。","testing.iconQueued":"测试资源管理器中“已排队”图标的颜色。","testing.iconQueued.retired":"测试资源管理器中“已排队”图标的停用颜色。","testing.iconSkipped":"测试资源管理器中“已跳过”图标的颜色。","testing.iconSkipped.retired":"测试资源管理器中“已跳过”图标的停用颜色。","testing.iconUnset":"测试资源管理器中“未设置”图标的颜色。","testing.iconUnset.retired":"测试资源管理器中“取消设置”图标的停用颜色。","testing.message.error.decorationForeground":"在编辑器中内联显示的测试错误消息的文本颜色。","testing.message.error.marginBackground":"在编辑器中内联显示的错误消息旁边的边距颜色。","testing.message.info.decorationForeground":"在编辑器中内联显示的测试信息消息的文本颜色。","testing.message.info.marginBackground":"在编辑器中内联显示的信息消息旁边的边距颜色。","testing.messagePeekBorder":"扫视记录的消息时速览视图边框和箭头的颜色。","testing.messagePeekHeaderBackground":"扫视记录的消息时速览视图边框和箭头的颜色。","testing.peekBorder":"速览视图边框和箭头颜色。","testing.runAction":"编辑器中“运行”图标的颜色。","testing.uncoveredBackground":"未覆盖文本的背景色。","testing.uncoveredBorder":"未覆盖文本的边框颜色。","testing.uncoveredBranchBackground":"为未覆盖的分支显示的小组件的背景。","testing.uncoveredGutterBackground":"代码未覆盖的区域的装订线颜色。"},"vs/workbench/contrib/testing/common/configuration":{testConfigurationTitle:"测试","testing.ShowCoverageInExplorer":"是否应在“文件资源管理器”视图中降低测试覆盖。","testing.alwaysRevealTestOnStateChange":"打开“#testing.followRunningTest#”时,始终显示已执行的测试。如果关闭此设置,则只会显示失败的测试。","testing.autoRun.delay":"将测试标记为过时并启动新运行后等待的时间(以毫秒为单位)。","testing.automaticallyOpenPeekView":"配置何时自动打开错误“速览”视图。","testing.automaticallyOpenPeekView.failureAnywhere":"无论故障在何处,都自动打开。","testing.automaticallyOpenPeekView.failureInVisibleDocument":"在可见文档中测试失败时自动打开。","testing.automaticallyOpenPeekView.never":"从不自动打开。","testing.automaticallyOpenPeekViewDuringContinuousRun":"控制是否在连续运行模式期间自动打开“速览”视图。","testing.countBadge":"控制活动栏上“测试”图标上的计数锁屏提醒。","testing.countBadge.failed":"显示失败的测试数","testing.countBadge.off":"禁用测试计数锁屏提醒","testing.countBadge.passed":"显示通过的测试数","testing.countBadge.skipped":"显示跳过的测试数","testing.coverageBarThresholds":"配置测试覆盖率栏中百分比使用的颜色。","testing.defaultGutterClickAction":"控制在装订线中左键单击测试修饰时要执行的操作。","testing.defaultGutterClickAction.contextMenu":"打开上下文菜单以获取更多选项。","testing.defaultGutterClickAction.coverage":"运行覆盖率测试。","testing.defaultGutterClickAction.debug":"调试测试。","testing.defaultGutterClickAction.run":"运行测试。","testing.displayedCoveragePercent":"配置默认情况下针对测试覆盖率显示的具体百分比。","testing.displayedCoveragePercent.minimum":"语句、函数和分支覆盖率的最小值。","testing.displayedCoveragePercent.statement":"语句覆盖率。","testing.displayedCoveragePercent.totalCoverage":"组合语句、函数和分支覆盖率的计算。","testing.followRunningTest":"控制是否应在“测试资源管理器”视图中遵循正在运行的测试。","testing.gutterEnabled":"控制是否在编辑器装订线中显示测试修饰。","testing.openTesting":"控制何时打开测试视图。","testing.openTesting.neverOpen":"从不自动打开测试视图","testing.openTesting.openExplorerOnTestStart":"启动测试时打开测试资源管理器","testing.openTesting.openOnTestFailure":"任何测试失败时打开测试视图","testing.openTesting.openOnTestStart":"测试开始时打开测试结果视图","testing.saveBeforeTest":"控制是否在运行测试之前保存所有脏编辑器。","testing.showAllMessages":"控制是否显示来自所有测试运行的消息。"},"vs/workbench/contrib/testing/common/constants":{"testGroup.coverage":"覆盖率","testGroup.debug":"调试","testGroup.run":"运行","testState.errored":"出错","testState.failed":"失败","testState.passed":"通过","testState.queued":"已排队","testState.running":"正在运行","testState.skipped":"已跳过","testState.unset":"尚未运行","testing.treeElementLabel":"{0} ({1})"},"vs/workbench/contrib/testing/common/testingContentProvider":{runNoOutout:"测试运行未记录任何输出。"},"vs/workbench/contrib/testing/common/testingContextKeys":{"testing.activeEditorHasTests":"指示当前编辑器中是否存在任何测试","testing.canRefresh":"指示任何测试控制器是否具有附加的刷新处理程序。","testing.controllerId":"当前测试项的控制器 ID","testing.hasConfigurableConfig":"指示是否可以配置测试配置","testing.hasCoverableTests":"指示是否有测试控制器注册了覆盖率配置","testing.hasDebuggableTests":"指示是否有测试控制器注册了调试配置","testing.hasNonDefaultConfig":"指示是否有测试控制器注册了非默认配置","testing.hasRunnableTests":"指示是否有测试控制器注册了运行配置","testing.isContinuousModeOn":"指示连续测试模式是否处于打开状态。","testing.isParentRunningContinuously":"指示测试的父级是否持续运行,在测试项的菜单上下文中设置","testing.isRefreshing":"指示当前是否有任何测试控制器正在刷新测试。","testing.isTestCoverageOpen":"指示测试覆盖率报表是否已打开","testing.peekItemType":"输出速览视图中项的类型。类型为“测试”、“消息”、“任务”或“结果”。","testing.supportsContinuousRun":"指示是否支持连续测试运行","testing.testId":"当前测试项的 ID,在创建或打开测试项的菜单时设置","testing.testItemHasUri":"指示测试项是否已定义 URI 的布尔值","testing.testItemIsHidden":"指示测试项是否处于隐藏状态的布尔值","testing.testMessage":"“testMessage.contextValue”中设置的值,可在编辑器/内容和测试/消息/上下文中使用","testing.testResultOutdated":"结果过时时,编辑器/内容和测试/消息/上下文中的可用值","testing.testResultState":"指示项状态的值可用测试/项/结果。"},"vs/workbench/contrib/testing/common/testResult":{runFinished:"测试运行时间: {0}"},"vs/workbench/contrib/testing/common/testServiceImpl":{testError:"尝试运行测试时出错: {0}",testTrust:"运行测试可能会执行工作区中的代码。"},"vs/workbench/contrib/themes/browser/themes.contribution":{"browseColorThemeInMarketPlace.label":"在市场中浏览颜色主题",browseColorThemes:"浏览其他颜色主题...",browseProductIconThemes:"浏览其他产品图标主题...","button.browse":"浏览主题","button.cancel":"取消","button.keep":"保留新主题","button.revert":"还原","button.tryTheme":"试用新主题",cannotToggle:"在设置中启用“{0}”时,无法在浅色和深色主题之间切换。",defaultProductIconThemeLabel:"默认值",fileIconThemeCategory:"图标主题","generateColorTheme.label":"使用当前设置生成颜色主题",goToSetting:"打开设置",installColorThemes:"安装其他颜色主题...","installExtension.button.ok":"确定","installExtension.confirm":"这将安装“{1}”发布的扩展“{0}”。是否要继续?",installIconThemes:"安装其他文件图标主题...",installProductIconThemes:"安装其他产品图标主题...","installing extensions":"正在安装扩展 {0}...","manage extension":"管理扩展",manageExtensionIcon:"主题选择快速选取中“管理”操作的图标。",miSelectTheme:"&&主题",newThemeNotification:"Visual Studio Code 现在附带新的默认主题“{0}”。是否要试一试?",noIconThemeDesc:"禁用文件图标",noIconThemeLabel:"无",productIconThemeCategory:"产品图标主题","search.error":"搜索主题时出错: {0}","selectIconTheme.label":"文件图标主题","selectProductIconTheme.label":"产品图标主题","selectTheme.label":"颜色主题",themeUpdatedNotification:"Visual Studio Code 现在附带新的默认主题“{0}”。如果愿意,可以切换回旧主题或尝试其他许多可用颜色主题之一。",themes:"主题","themes.category.dark":"深色主题","themes.category.hc":"高对比度主题","themes.category.light":"浅色主题","themes.configure.switchingDisabled":"检测禁用的系统颜色模式。单击可开始配置。","themes.configure.switchingEnabled":"检测启用的系统颜色模式。单击可开始配置。","themes.selectIconTheme":"选择文件图标主题(向上/向下键以预览)","themes.selectIconTheme.label":"文件图标主题","themes.selectMarketplaceTheme":"键入以搜索更多内容。选择以安装。按向上/向下键进行预览","themes.selectProductIconTheme":"选择产品图标主题(向上/向下键以预览)","themes.selectProductIconTheme.label":"产品图标主题","themes.selectTheme.darkHC":"选择高对比度深色模式的颜色主题","themes.selectTheme.darkScheme":"选择系统深色模式的颜色主题","themes.selectTheme.default":"选择颜色主题(检测禁用的系统颜色模式)","themes.selectTheme.lightHC":"选择高对比度浅色模式的颜色主题","themes.selectTheme.lightScheme":"选择系统浅色模式的颜色主题","toggleLightDarkThemes.label":"在浅色/深色主题之间切换"},"vs/workbench/contrib/timeline/browser/timeline.contribution":{"files.openTimeline":"打开时间线",filterTimeline:"筛选器时间线","timeline.pageOnScroll":"实验性。控制在滚动到列表结尾时,时间线视图是否将加载下一页的项目。","timeline.pageSize":'默认情况下以及在加载更多项目时在时间线视图中显示的项目数。如果设置为 "null" (默认值),则将根据时间线视图的可见区域自动选择一个页面大小。',timelineConfigurationTitle:"时间线",timelineFilter:"筛选器时间线操作的图标。",timelineOpenIcon:"“打开时间线”操作的图标。",timelineViewIcon:"查看时间线视图的图标。"},"vs/workbench/contrib/timeline/browser/timelinePane":{refresh:"刷新",timeline:"时间线","timeline.aria.item":"{0}: {1}","timeline.editorCannotProvideTimeline":"活动编辑器无法提供时间线信息。","timeline.loadMore":"加载更多","timeline.loading":"正在加载 {0} 的时间线 ...","timeline.loadingMore":"正在加载…","timeline.noLocalHistoryYet":"除非文件已被排除或太大,否则本地历史记录将跟踪你保存的最新更改。","timeline.noSCM":"尚未配置源代码管理。","timeline.noTimelineInfo":"未提供时间表信息。","timeline.noTimelineInfoFromEnabledSources":"未提供筛选的时间线信息。","timeline.noTimelineSourcesEnabled":"已筛选掉所有时间线源。","timeline.toggleFollowActiveEditorCommand.follow":"固定当前时间线","timeline.toggleFollowActiveEditorCommand.unfollow":"取消固定当前时间线",timelinePin:"“固定时间线”操作的图标。",timelineRefresh:"“刷新时间线”操作的图标。",timelineUnpin:"“取消固定时间线”操作的图标。"},"vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution":{close:"关闭",editorHasTypeHierarchyProvider:"类型层次结构提供程序是否可用",error:"未能显示类型层次结构","no.item":"无结果",title:"速览类型层次结构","title.refocusTypeHierarchy":"重新专注类型层次结构","title.subtypes":"显示子类型","title.supertypes":"显示父类型",typeHierarchyDirection:"类型层次结构是否显示父类型或子类型",typeHierarchyVisible:"当前是否正在显示类型层次结构预览"},"vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek":{"empt.subtypes":"没有“{0}”的子类型","empt.supertypes":"没有“{0}”的父类型",subtypes:"“{0}”的子类型",supertypes:"“{0}”的父类型","title.loading":"正在加载..."},"vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree":{subtypes:"{0} 的子类型",supertypes:"“{0}”的父类型","tree.aria":"类型层次结构"},"vs/workbench/contrib/update/browser/releaseNotesEditor":{releaseNotesInputName:"发行说明: {0}",showOnUpdate:"更新后显示发行说明",unassigned:"未分配"},"vs/workbench/contrib/update/browser/update":{DownloadingUpdate:"正在下载更新...",checkForUpdates:"检查更新...",checkingForUpdates:"正在检查更新...","download update":"下载更新","download update_1":"下载更新(1) ",downloading:"正在下载...",installUpdate:"安装更新","installUpdate...":"安装更新... (1)",installingUpdate:"正在安装更新...",later:"稍后","learn more":"了解详细信息",noUpdatesAvailable:"当前没有可用的更新。","read the release notes":"欢迎使用 {0} v{1}! 是否要阅读发布说明?",relaunchDetailInsiders:"按“重新加载”按钮切换到预览体验成员版本的 VS Code。",relaunchDetailStable:"按“重新加载”按钮切换到稳定版的 VS Code。",relaunchMessage:"需要重载,然后对版本的更改才会生效",releaseNotes:"发行说明",reload:"重载(&&R)",restartToUpdate:"重新启动以更新 (1)","selectSyncService.detail":"默认情况下,预览体验成员版 VS Code 将使用单独的预览体验成员设置同步服务来同步你的设置、键绑定、扩展、片段、UI 状态。","selectSyncService.message":"选择在更改版本后要使用的设置同步服务",showUpdateReleaseNotes:"显示更新发行说明",switchToInsiders:"切换到内部预览计划版本…",switchToStable:"切换到稳定版本…",thereIsUpdateAvailable:"存在可用更新。","update service":"更新服务","update service disabled":"若您正以管理员身份运行 {0} 用户范围的安装,更新功能会被禁用。","update.noReleaseNotesOnline":"此版本的 {0} 没有联机发行说明",updateAvailable:"现有更新可用: {0} {1}",updateAvailableAfterRestart:"重新启动 {0} 即可应用最新更新。",updateIsReady:"有新的 {0} 的更新可用。",updateNow:"立即更新",updating:"正在更新...","use insiders":"预览体验成员(&&I)","use stable":"稳定(当前)(&&S)"},"vs/workbench/contrib/update/browser/update.contribution":{applyUpdate:"应用更新...",checkForUpdates:"检查更新...",developerCategory:"开发人员",downloadUpdate:"下载更新",installUpdate:"安装更新",mshowReleaseNotes:"显示发行说明(&&R)",openDownloadPage:"下载 {0}",pickUpdate:"应用更新",releaseNotesFromFileNone:"无法将当前文件作为发行说明打开",restartToUpdate:"重启以更新",showReleaseNotes:"显示发行说明",showReleaseNotesCurrentFile:"将当前文件作为发行说明打开","update.noReleaseNotesOnline":"此版本的 {0} 没有联机发行说明",updateButton:"更新(&&U)"},"vs/workbench/contrib/url/browser/trustedDomains":{"trustedDomain.manageTrustedDomain":"管理受信任的域","trustedDomain.manageTrustedDomains":"管理受信任的域","trustedDomain.trustAllDomains":"信任所有域(禁用链接保护)","trustedDomain.trustAllPorts":"信任所有端口上的 {0}","trustedDomain.trustDomain":"信任 {0}","trustedDomain.trustSubDomain":"信任 {0} 及其所有子域"},"vs/workbench/contrib/url/browser/trustedDomainsValidator":{configureTrustedDomains:"配置受信任的域(&&T)",copy:"复制(&&C)",open:"打开(&&O)",openExternalLinkAt:"是否要 {0} 打开外部网站?"},"vs/workbench/contrib/url/browser/url.contribution":{openUrl:"打开 URL",urlToOpen:"要打开的 URL","workbench.trustedDomains.promptInTrustedWorkspace":"启用后,在受信任的工作区中打开链接时,将显示受信任的域提示。"},"vs/workbench/contrib/userDataProfile/browser/userDataProfile":{"create profile":"创建配置文件...",current:"当前","delete profile":"删除配置文件...","delete specific profile":"删除配置文件...","edit profile":"编辑配置文件...","export profile":"导出配置文件...","export profile in share":"导出配置文件({0})...","import from file":"选择文件...","import from url":"从 URL 导入","import profile":"导入配置文件...","import profile dialog":"选择配置文件模版文件","import profile placeholder":"提供配置文件模板 URL","import profile quick pick title":"从配置文件模板导入...","import profile share":"导入配置文件...","pick profile to delete":"选择要删除的配置文件","profile import error":"创建配置文件时出错: {0}",profiles:"配置文件({0})","save profile as":"将当前配置文件另存为……",selectProfile:"选择配置文件","show profile contents":"显示配置文件内容",switchProfile:"Switch 配置文件...",templates:"配置文件模板"},"vs/workbench/contrib/userDataProfile/browser/userDataProfileActions":{"cleanup profile":"清理配置文件","create temporary profile":"创建临时配置文件",current:"当前",mange:"管理...","pick profile to rename":"选择要重命名的配置文件",profileExists:"具有名称 {0} 的配置文件已经存在。","rename profile":"重命名...","rename specific profile":"重命名配置文件...","reset workspaces":"重置工作区配置文件关联","select profile to rename":"重命名 {0}"},"vs/workbench/contrib/userDataSync/browser/userDataSync":{"accept failed":"接受更改时出错。有关更多详细信息,请查看[日志]({0})。","auth failed":"启用设置同步时出错: 身份验证失败。","cancel turning on sync":"取消","complete merges title":"完成合并",configure:"配置...","configure and turn on sync detail":"请登录以备份并跨设备同步数据。","configure sync":"配置...","configure sync placeholder":"选择要同步的内容","configure sync title":"{0}: 配置…","conflicts detected":"由于 {0} 中的冲突,无法同步。请解决它们以继续。",default:"默认值","download sync activity complete":"已成功下载设置同步活动。","error reset required":"云中的数据早于客户端的数据,因此已禁用设置同步。请先清除云中的数据,然后再启用同步。","error reset required while starting sync":"云中的数据早于客户端的数据,因此无法启用设置同步。请先清除云中的数据,然后再启用同步。","error upgrade required":"当前版本({0}, {1})与同步服务不兼容,因此已禁用设置同步。请先进行更新,然后再打开同步。","error upgrade required while starting sync":"当前版本({0}, {1})与同步服务不兼容,因此无法启用设置同步。请先进行更新,然后再打开同步。",errorInvalidConfiguration:"无法同步 {0},因为文件中的内容无效。请打开文件并进行更正。","global activity turn on sync":"备份和同步设置...","has conflicts":"{0}: 检测到冲突",insiders:"预览体验人员","method not found":"已禁用设置同步,因为客户端发出的请求无效。请报告日志问题。","no authentication providers":"没有可用的身份验证提供程序。","open file":"打开 {0} 文件",operationId:"操作 ID: {0}","replace local":"替换本地","replace remote":"替换远程","report issue":"报告问题",reset:"清除云中的数据…",resolveConflicts_global:"显示冲突({0})","service changed and turned off":"设置同步已禁用,因为 {0} 现使用一个单独的服务。请再次启用同步。","service switched to insiders":"设置同步已切换为预览体验成员服务","service switched to stable":"设置同步已切换为稳定的服务","session expired":"当前会话已过期,因此已关闭设置同步。若要启用同步,请重新登录。","show conflicts":"显示冲突","show sync log title":"{0}: 显示日志","show sync log toolrip":"显示日志","show sync logs":"显示日志","show synced data":"显示已同步的数据","show synced data action":"显示已同步的数据","sign in accounts":"登录以同步设置(1)","sign in and turn on":"登录","sign in global":"登录以同步设置","sign in to sync":"登录以同步设置",stable:"稳定","stop sync":"关闭","switchSyncService.description":"在与多个环境同步时,请确保你使用的设置同步服务相同","switchSyncService.title":"{0}: 选择服务","sync is on":"设置同步已打开","sync now":"立即同步","sync settings":"显示设置","synced with time":"同步时间: {0}",syncing:"正在同步","too large":"已禁止同步 {0},因为要同步的 {1} 文件的大小大于 {2}。请打开文件减小大小,然后再启用同步","too large while starting sync":"要同步的 {0} 文件的大小大于 {1},因此无法启用设置同步。请打开文件并减小大小,然后打开同步","too many profiles":"已禁用同步配置文件,因为配置文件太多,无法同步。设置同步支持同步最多 20 个配置文件。请减少配置文件数并启用同步","turn off":"关闭(&&T)","turn off failed":"禁用设置同步时出错。有关更多详细信息,请查看[日志]({0})。","turn off sync confirmation":"是否要关闭同步?","turn off sync detail":"将不再同步你的设置、键绑定、扩展、代码片段和 UI 状态。","turn off sync everywhere":"关闭所有设备上的同步设置,并从云中清除数据。","turn on failed":"打开设置同步时出错。{0}","turn on failed with user data sync error":"启用设置同步时出错。请查看[日志]({0})以了解详细信息。","turn on sync":"打开设置同步…","turned off":"已从另一设备禁用设置同步,请再次启用同步。","turnin on sync":"正在打开设置同步…","turning on syncing":"正在打开设置同步…","using separate service":"设置同步现使用一个单独的服务;有关详细信息,请参阅[设置同步文档](https://aka.ms/vscode-settings-sync-help#_syncing-stable-versus-insiders)。","workbench.actions.syncData.reset":"清除云中的数据…"},"vs/workbench/contrib/userDataSync/browser/userDataSync.contribution":{"local too many requests - reload":"由于当前设备发出的请求过多,设置同步将暂时暂停。请重新加载 {0} 以恢复。","local too many requests - restart":"由于当前设备发出的请求过多,设置同步将暂时暂停。请重启 {0} 以恢复。",operationId:"操作 ID: {0}",reload:"重新加载",restart:"重启","server too many requests":"由于当前设备发出的请求过多,已禁用设置同步。请等待 10 分钟,然后打开同步。","settings sync":"设置同步。操作 ID: {0}","show sync logs":"显示日志"},"vs/workbench/contrib/userDataSync/browser/userDataSyncConflictsView":{Theirs:"他们的",Yours:"你的",explanation:"请浏览每个条目并合并以解决冲突。",localResourceName:"{0} (本地)",remoteResourceName:"{0} (远程)","workbench.actions.sync.acceptLocal":"接受本地","workbench.actions.sync.acceptRemote":"接受远程","workbench.actions.sync.openConflicts":"显示冲突"},"vs/workbench/contrib/userDataSync/browser/userDataSyncViews":{"confirm replace":"是否要用选定的内容替换当前的 {0}?",conflicts:"冲突",current:"当前","downloaded sync activity title":"同步活动(开发人员)","last sync states":"上次同步的远程",leftResourceName:"{0} (远程)","local sync activity title":"同步活动(本地)","no machines":"无计算机","not found":"找不到 ID 为 {0} 的计算机",placeholder:"输入计算机名称","remote sync activity title":"同步活动(远程)",remoteToLocalDiff:"{0} ↔ {1}",reset:"重置同步的数据",rightResourceName:"{0} (本地)","select sync activity file":"选择同步活动文件或文件夹",sideBySideLabels:"{0} ↔ {1}","sync logs":"日志","synced machines":"已同步的计算机",troubleshoot:"疑难解答","turn off":"关闭(&&T)","turn off sync on machine":"确定要对 {0} 关闭同步吗?","turn off sync on multiple machines":"是否确实要在所选计算机上禁用同步?","valid message":"计算机名称必须是唯一的且不为空","workbench.actions.sync.compareWithLocal":"与本地比较","workbench.actions.sync.editMachineName":"编辑名称","workbench.actions.sync.loadActivity":"加载同步活动","workbench.actions.sync.replaceCurrent":"还原","workbench.actions.sync.resolveResourceRef":"显示原始 JSON 同步数据","workbench.actions.sync.turnOffSyncOnMachine":"关闭设置同步"},"vs/workbench/contrib/userDataSync/electron-sandbox/userDataSync.contribution":{"Open Backup folder":"打开本地备份文件夹","download sync activity complete":"已成功下载设置同步活动。","no backups":"本地备份文件夹不存在",open:"打开文件夹"},"vs/workbench/contrib/watermark/browser/watermark":{"tips.enabled":"启用后,当没有打开编辑器时将显示水印提示。","watermark.findInFiles":"在文件中查找","watermark.newUntitledFile":"新的无标题文本文件","watermark.openFile":"打开文件","watermark.openFileFolder":"打开文件或文件夹","watermark.openFolder":"打开文件夹","watermark.openRecent":"打开最近的文件","watermark.quickAccess":"转到文件","watermark.showCommands":"显示所有命令","watermark.showSettings":"显示设置","watermark.startDebugging":"开始调试","watermark.toggleFullscreen":"切换全屏","watermark.toggleTerminal":"切换终端"},"vs/workbench/contrib/webview/browser/webview.contribution":{copy:"复制",cut:"剪切",paste:"粘贴"},"vs/workbench/contrib/webview/browser/webviewElement":{fatalErrorMessage:"加载 Web 视图时出错: {0}"},"vs/workbench/contrib/webview/electron-sandbox/webviewCommands":{iframeWebviewAlert:"使用标准开发工具调试基于 iFrame 的 Web 视图",openToolsDescription:"打开活动 Web 视图的开发人员工具",openToolsLabel:"打开 Webview 开发人员工具"},"vs/workbench/contrib/webviewPanel/browser/webviewCommands":{"editor.action.webvieweditor.findNext":"查找下一个","editor.action.webvieweditor.findPrevious":"查找上一个","editor.action.webvieweditor.hideFind":"停止查找","editor.action.webvieweditor.showFind":"显示查找",refreshWebviewLabel:"重新加载 Web 视图"},"vs/workbench/contrib/webviewPanel/browser/webviewEditor":{"context.activeWebviewId":"当前活动的 Web 视图面板的 viewType。"},"vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution":{"webview.editor.label":"Web 视图编辑器"},"vs/workbench/contrib/welcomeDialog/browser/welcomeDialog.contribution":{"workbench.welcome.dialog":"启用后,编辑器中会显示欢迎小组件"},"vs/workbench/contrib/welcomeDialog/browser/welcomeWidget":{dialogClose:"关闭对话框"},"vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted":{allDone:"标记为完成",checkboxTitle:"选中后,此页面将在启动时显示。",close:"隐藏",closeAriaLabel:"隐藏",footer:"{0} 收集使用情况数据。阅读我们的 {1} 并了解如何 {2}。","gettingStarted.allStepsComplete":"所有 {0} 个步骤均已完成!","gettingStarted.editingEvolved":"编辑进化","gettingStarted.keyboardTip":"提示: 使用键盘快捷方式 ","gettingStarted.someStepsComplete":"已完成 {0} 个步骤,共 {1} 个步骤",imageShowing:"显示 {0} 的图像",new:"新建",newItems:"已更新",nextOne:"下一节",noRecents:"你没有最近使用的文件夹,",openFolder:"打开文件夹",optOut:"选择退出",pickWalkthroughs:"打开演练...","privacy statement":"隐私声明",recent:"最近","show more recents":"显示所有最近使用的文件夹 {0}",showAll:"更多...",start:"启动",toStart:"以开始。",videos:"视频","videos-description":"在简短而实用的视频中了解 VS Code 必备功能","videos-title":"观看入门教程",walkthroughs:"演练",welcome:"欢迎",welcomeAriaLabel:"关于编辑器快速入门的概述。","welcomePage.openFolderWithPath":"打开路径为 {1} 的文件夹 {0}","welcomePage.showOnStartup":"启动时显示欢迎页"},"vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution":{deprecationMessage:"已弃用,请使用全局 `workbench.reduceMotion`。",miWelcome:"欢迎",minWelcomeDescription:"打开演练,以帮助你开始使用 VS Code。",pickWalkthroughs:"选择要打开的演练",welcome:"欢迎","welcome.goBack":"后退","welcome.markStepComplete":"标记步骤完成","welcome.markStepInomplete":"标记步骤未完成","welcome.showAllWalkthroughs":"打开演练...","workbench.startupEditor":"在没有从上一会话中恢复出信息的情况下,控制启动时显示的编辑器。","workbench.startupEditor.newUntitledFile":"打开新的无标题文本文件(仅在打开空窗口时适用)。","workbench.startupEditor.none":"在启动时不打开编辑器。","workbench.startupEditor.readme":"当打开包含自述文件的文件夹时,请打开自述文件,否则会回退到 'welcomePage'。请注意: 仅在作为全局 配置时才遵守此操作,如果在工作区或文件夹配置中进行设置,则此将被忽略。","workbench.startupEditor.terminal":"在编辑器区域中打开新终端。","workbench.startupEditor.welcomePage":"打开包含帮助开始使用 VS Code 和扩展内容的欢迎页面。","workbench.startupEditor.welcomePageInEmptyWorkbench":"在打开空工作区时打开欢迎页面。","workbench.welcomePage.preferReducedMotion":"启用后,减少欢迎页中的移动。","workbench.welcomePage.walkthroughs.openOnInstall":"启用后,扩展的演练将在安装扩展时打开。",workspacePlatform:"当前工作区的平台,在远程或无服务器上下文中可能不同于 UI 的平台"},"vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors":{"walkthrough.stepTitle.foreground":"每个演练步骤标题的前景色","welcomePage.background":"欢迎页面的背景色。","welcomePage.progress.background":"欢迎页面进度栏的前景色。","welcomePage.progress.foreground":"欢迎页面进度栏的背景色。","welcomePage.tileBackground":"“欢迎”页面上磁贴的背景色。","welcomePage.tileBorder":"“欢迎”页面上磁贴的边框颜色。","welcomePage.tileHoverBackground":"“欢迎”页面上磁贴的悬停背景色。"},"vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint":{pathDeprecated:"已弃用。请改用“图像”或“Markdown”",title:"标题",walkthroughs:"提供演练以帮助用户入门扩展。","walkthroughs.description":"演练的说明。","walkthroughs.featuredFor":"与这些 glob 模式之一匹配的演练在具有指定文件的工作区中显示为“特色”。例如,针对 TypeScript 项目的演练可能在此处指定“tsconfig.json”。","walkthroughs.icon":"演练图标的相对路径。路径相对于扩展位置。如果未指定,则图标在可用时将默认为扩展图标。","walkthroughs.id":"此演练的唯一标识符。","walkthroughs.steps":"要在此演练期间完成的步骤。","walkthroughs.steps.button.deprecated.interpolated":"已弃用。请改用说明中的 markdown 链接,例如 {0}、{1}、或 {2}","walkthroughs.steps.completionEvents":"应触发此步骤变为已勾选的事件。如果为空或未定义,则在单击任何步骤的按钮或链接时,步骤将撤销复选; 如果该步骤没有按钮或链接,则选中它时会选中。","walkthroughs.steps.completionEvents.extensionInstalled":"安装具有给定 id 的扩展时,请关闭步骤。如果已安装扩展,则步骤将以勾选状态开始。","walkthroughs.steps.completionEvents.onCommand":"在 VS Code 中的任何位置执行给定命令时,勾选步骤。","walkthroughs.steps.completionEvents.onContext":"当上下文键表达式为 true 时,勾选步骤。","walkthroughs.steps.completionEvents.onLink":"通过演练步骤打开给定链接时的签出步骤。","walkthroughs.steps.completionEvents.onSettingChanged":"在给定设置发生更改时勾选步骤","walkthroughs.steps.completionEvents.onView":"打开给定视图时选中步骤","walkthroughs.steps.completionEvents.stepSelected":"选中后立即勾选步骤。","walkthroughs.steps.description.interpolated":"步骤说明。支持 “preformatted”、__italic__和 **bold** 文本。对命令或外部链接使用 markdown 样式链接: {0}、{1} 或 {2}。在其自身行上的链接将呈现为按钮。","walkthroughs.steps.doneOn":"指示将步骤标记为已完成的信号。","walkthroughs.steps.doneOn.deprecation":"doneOn 已弃用。默认情况下,单击用户按钮时将勾选步骤,以进一步配置使用 completionEvents","walkthroughs.steps.id":"此步骤的唯一标识符。用于跟踪已完成的步骤。","walkthroughs.steps.media":"要与此步骤一起显示的媒体(图像或 Markdown 内容)。","walkthroughs.steps.media.altText":"无法加载图像时或在屏幕读取器中显示的替换文字。","walkthroughs.steps.media.image.path.dark.string":"深色主题相对于扩展目录的图像的路径。","walkthroughs.steps.media.image.path.hc.string":"hc 主题相对于扩展目录的图像的路径。","walkthroughs.steps.media.image.path.hcLight.string":"hc 浅色主题相对于扩展目录的图像的路径。","walkthroughs.steps.media.image.path.light.string":"浅色主题相对于扩展目录的图像的路径。","walkthroughs.steps.media.image.path.string":"一个图像或对象的路径,由指向光源、暗和 hc 图像的路径(相对于扩展目录)组成。根据上下文,图像将显示从 400px 到800px 宽,具有相似的高度边界。为了支持 HIDPI 显示,图像将以 1.5 倍缩放比例呈现。例如,900 物理像素宽图像将显示为 600 逻辑像素宽。","walkthroughs.steps.media.image.path.svg":"变量中支持颜色标记、svg 路径以支持与工作台匹配的主题设置。","walkthroughs.steps.media.markdown.path":"Markdown 文档的路径(相对于扩展目录)。","walkthroughs.steps.oneOn.command":"执行指定命令时将步骤标记为已完成。","walkthroughs.steps.title":"步骤标题。","walkthroughs.steps.when":"用于控制此步骤可见性的上下文键表达式。","walkthroughs.title":"演练的标题。","walkthroughs.when":"用于控制此演练的可见性的上下文键表达式。"},"vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons":{gettingStartedChecked:"用于表示已完成的演练步骤",gettingStartedUnchecked:"用于表示尚未完成的演练步骤"},"vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput":{getStarted:"欢迎"},"vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService":{builtin:"内置",developer:"开发人员",resetGettingStartedProgressDescription:"重置欢迎页面上所有演练步骤的进度,以将其外观设置为初次查看,从而为入门体验提供全新开端。",resetWelcomePageWalkthroughProgress:"重置欢迎页面演练进度"},"vs/workbench/contrib/welcomeGettingStarted/browser/startupPage":{"startupPage.markdownPreviewError":"无法打开 Markdown 预览: {0}。\r\n\r\n请确保已启用 Markdown 扩展。","welcome.displayName":"欢迎页面"},"vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent":{browseLangExts:"浏览语言扩展",browsePopular:"浏览热门扩展",browsePopularWeb:"浏览热门 Web 扩展",cloneRepo:"克隆仓库",commandPalette:"打开命令面板",enableSync:"备份和同步设置",enableTrust:"启用信任","getting-started-beginner-icon":"用于欢迎页面初学者类别的图标","getting-started-setup-icon":"用于欢迎页面的设置类别的图标","gettingStarted.beginner.description":"获取最基本功能的概述","gettingStarted.beginner.title":"了解基础知识","gettingStarted.commandPalette.description.interpolated":"在 VS Code 中运行命令,无需动用鼠标即可完成任何任务。\r\n{0}","gettingStarted.commandPalette.title":"使用命令面板解锁工作效率 ","gettingStarted.debug.description.interpolated":"通过设置启动配置来加速编辑、生成、测试和调试循环。\r\n{0}","gettingStarted.debug.title":"在操作中查看代码","gettingStarted.extensions.description.interpolated":"扩展是 VS Code 的精华。扩展范围包括方便地提升生产力、扩展现成的功能以及添加全新的功能。\r\n{0}","gettingStarted.extensions.title":"使用扩展编码","gettingStarted.extensionsWeb.description.interpolated":"扩展是 VS Code 的增强功能。越来越多的扩展可在 Web 上使用。\r\n{0}","gettingStarted.findLanguageExts.description.interpolated":"语法突出显示、代码完成、lint 分析和调试让代码更加智能。虽然已内置多种语言,但可将更多语言添加为扩展。\r\n{0}","gettingStarted.findLanguageExts.title":"对所有语言的丰富支持","gettingStarted.installGit.description.interpolated":"安装 Git 以跟踪项目中的更改。\r\n{0}\r\n安装后 {1}重新加载窗口{2} 以完成 Git 安装。","gettingStarted.installGit.title":"安装 Git","gettingStarted.menuBar.description.interpolated":"下拉菜单中提供了完整的菜单栏,可为代码腾出空间。切换其外观以加快访问速度。\r\n{0}","gettingStarted.menuBar.title":"恰好数量的 UI","gettingStarted.newFile.description":"打开新的无标题文本文件、笔记本或自定义编辑器。","gettingStarted.newFile.title":"新建文件...","gettingStarted.notebook.title":"自定义笔记","gettingStarted.notebookProfile.description":"获取笔记,以你喜欢的方式体验","gettingStarted.notebookProfile.title":"选择笔记的布局","gettingStarted.openFile.description":"打开文件以开始工作","gettingStarted.openFile.title":"打开文件...","gettingStarted.openFolder.description":"打开文件夹开始工作","gettingStarted.openFolder.title":"打开文件夹...","gettingStarted.openMac.description":"打开文件或文件夹以开始工作","gettingStarted.openMac.title":"打开...","gettingStarted.pickColor.description.interpolated":"合适的主题有助于你专注代码、更易于识别,并且使用起来更具趣味性。\r\n{0}","gettingStarted.pickColor.title":"选择主题","gettingStarted.quickOpen.description.interpolated":"击键一下即可迅速在文件之间导航。提示: 通过按右箭头键打开多个文件。\r\n{0}","gettingStarted.quickOpen.title":"在文件之间快速导航","gettingStarted.scm.description.interpolated":"不再查找 Git 命令! Git 和 GitHub 工作流已无缝集成。\r\n{0}","gettingStarted.scm.title":"使用 Git 跟踪代码","gettingStarted.scmClone.description.interpolated":"为项目设置内置版本控制,以跟踪更改并与他人协作。\r\n{0}","gettingStarted.scmSetup.description.interpolated":"为项目设置内置版本控制,以跟踪更改并与他人协作。\r\n{0}","gettingStarted.settings.description.interpolated":"根据你的喜好自定义 VS Code 和扩展的各个方面。首先会列出常用设置便于你开始使用。\r\n{0}","gettingStarted.settings.title":"优化设置","gettingStarted.settingsSync.description.interpolated":"保持跨所有设备备份和更新基本自定义。\r\n{0}","gettingStarted.settingsSync.title":"跨设备同步设置","gettingStarted.setup.OpenFolder.description.interpolated":"你已准备好开始编码。请打开项目文件夹,将文件放入VS Code。\r\n{0}","gettingStarted.setup.OpenFolder.title":"打开你的代码","gettingStarted.setup.OpenFolderWeb.description.interpolated":"你已准备好开始编码。可以打开本地项目或远程仓库,以将文件置于 VS Code。\r\n{0}\r\n{1}","gettingStarted.setup.description":"自定义编辑器、了解基础知识并开始编码","gettingStarted.setup.title":"开始使用 VS Code","gettingStarted.setupWeb.description":"自定义编辑器、了解基础知识并开始编码","gettingStarted.setupWeb.title":"面向 Web 的 VS Code 入门","gettingStarted.shortcuts.description.interpolated":"发现喜欢的命令后,创建自定义键盘快捷方式以进行即时访问。\r\n{0}","gettingStarted.shortcuts.title":"自定义快捷方式","gettingStarted.tasks.description.interpolated":"为常见工作流创建任务,并享受运行脚本和自动检查结果的集成体验。\r\n{0}","gettingStarted.tasks.title":"自动执行项目任务","gettingStarted.terminal.description.interpolated":"在代码近旁快速运行 shell 命令并监视生成输出。\r\n{0}","gettingStarted.terminal.title":"内置终端","gettingStarted.topLevelGitClone.description":"将远程仓库克隆到本地文件夹","gettingStarted.topLevelGitClone.title":"克隆 Git 仓库...","gettingStarted.topLevelGitOpen.description":"连接到远程仓库或拉取请求,以进行浏览、搜索、编辑和提交","gettingStarted.topLevelGitOpen.title":"打开仓库...","gettingStarted.topLevelOpenTunnel.description":"通过 Tunnel 连接到远程计算机","gettingStarted.topLevelOpenTunnel.title":"打开隧道...","gettingStarted.topLevelRemoteOpen.description":"连接到远程开发工作区。","gettingStarted.topLevelRemoteOpen.title":"连接到...","gettingStarted.topLevelShowWalkthroughs.description":"查看编辑器或扩展的演练","gettingStarted.topLevelShowWalkthroughs.title":"打开演练...","gettingStarted.videoTutorial.description.interpolated":"请观看系列简短实用视频教程中的第一课,了解 VS Code 的主要功能。\r\n{0}","gettingStarted.videoTutorial.title":"观看视频教程","gettingStarted.workspaceTrust.description.interpolated":"通过 {0},可以确定项目文件夹是否应 **允许或限制** 自动代码执行 __(扩展、调试等所必需)__。\r\n 打开文件/文件夹将提示授予信任。以后始终可以 {1}。","gettingStarted.workspaceTrust.title":"安全浏览和编辑代码",initRepo:"初始化 Git 仓库",installGit:"安装 Git",keyboardShortcuts:"键盘快捷方式",openFolder:"打开文件夹",openRepository:"打开仓库",openSCM:"开放源代码管理",pickFolder:"选取文件夹",quickOpen:"快速打开一个文件",runProject:"运行项目",runTasks:"运行自动检测到的任务",showTerminal:"打开终端",titleID:"浏览颜色主题",toggleMenuBar:"切换菜单栏",tweakSettings:"打开设置",watch:"观看教程",workspaceTrust:"工作区信任"},"vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile":{colab:"Colab",default:"默认",jupyter:"Jupyter"},"vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker":{HighContrast:"深色高对比度",HighContrastLight:"浅色高对比度",dark:"现代深色",light:"现代浅色",seeMore:"查看更多主题..."},"vs/workbench/contrib/welcomeOverlay/browser/welcomeOverlay":{hideWelcomeOverlay:"隐藏界面概述",welcomeOverlay:"用户界面概览","welcomeOverlay.commandPalette":"查找并运行所有命令","welcomeOverlay.debug":"启动和调试","welcomeOverlay.explorer":"文件资源管理器","welcomeOverlay.extensions":"管理扩展","welcomeOverlay.git":"源代码管理","welcomeOverlay.notifications":"显示通知","welcomeOverlay.problems":"查看错误和警告","welcomeOverlay.search":"跨文件搜索","welcomeOverlay.terminal":"切换集成终端",welcomeOverlayBackground:"welcomeOverlay 背景色。"},"vs/workbench/contrib/welcomeViews/common/newFile.contribution":{"Built-In":"内置",Create:"创建","change keybinding":"配置键绑定",file:"文件",miNewFile2:"文本文件",miNewFileWithName:"新建文件({0})",newFilePlaceholder:"选择文件类型或输入文件名...",newFileTitle:"新建文件...",notebook:"笔记本","welcome.newFile":"新建文件..."},"vs/workbench/contrib/welcomeViews/common/viewsWelcomeContribution":{"ViewsWelcomeExtensionPoint.proposedAPI":"“{0}”中的 viewsWelcome 贡献需要 “enabledApiProposals: [“contribViewsWelcome”]”才能使用“组”建议的属性。"},"vs/workbench/contrib/welcomeViews/common/viewsWelcomeExtensionPoint":{"contributes.viewsWelcome":"提供视图欢迎内容。只要没有有意义的内容可显示,就会在基于树的视图中呈现欢迎内容,例如未打开文件夹时的文件资源管理器。此类内容作为产品内文档非常有用,可促使用户在某些功能可用之前使用它们。文件资源管理器欢迎视图中的“克隆仓库”按钮就是一个很好的示例。","contributes.viewsWelcome.view":"为特定视图提供的欢迎页面内容。","contributes.viewsWelcome.view.contents":"要显示的欢迎内容。内容的格式是 Markdown 的子集,仅支持链接。","contributes.viewsWelcome.view.enablement":"启用欢迎内容按钮和命令链接的条件。","contributes.viewsWelcome.view.group":"此欢迎内容所属的组。建议的 API。","contributes.viewsWelcome.view.view":"此欢迎内容的目标视图标识符。仅支持基于树的视图。","contributes.viewsWelcome.view.when":"显示欢迎内容的条件。"},"vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough":{editorWalkThrough:"交互式编辑器操场","editorWalkThrough.title":"编辑器操场",editorWalkThroughMetadata:"打开交互式操场以了解编辑器。"},"vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution":{miPlayground:"编辑器操场(&&N)","walkThrough.editor.label":"操场"},"vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart":{"walkThrough.gitNotFound":"你的系统上似乎未安装 Git。","walkThrough.unboundCommand":"未绑定"},"vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils":{"walkThrough.embeddedEditorBackground":"嵌入于交互式演练场中的编辑器的背景颜色。"},"vs/workbench/contrib/workspace/browser/workspace.contribution":{addWorkspaceFolderDetail:"你正在将文件添加到受信任的工作区,该工作区当前不受信任。是否信任这些新文件的作者?",addWorkspaceFolderMessage:"是否信任此文件夹中的文件的作者?",cancelWorkspaceTrustButton:"取消",checkboxString:"信任父文件夹“{0}”中所有文件的作者",configureWorkspaceTrustSettings:"配置工作区信任设置",dontTrustFolderOptionDescription:"在受限模式下浏览文件夹",dontTrustOption:"否,我不信任此作者(&&N)",dontTrustWorkspaceOptionDescription:"在受限模式下浏览工作区",folderStartupTrustDetails:"{0} 提供可以自动在此文件夹中执行文件的功能。",folderTrust:"是否信任此文件夹中的文件的作者?",grantFolderTrustButton:"信任文件夹并继续(&&T)",grantWorkspaceTrustButton:"信任工作区并继续(&&T)",immediateTrustRequestLearnMore:"如果不信任这些文件的作者,则建议不要继续,因为这些文件可能是恶意文件。请参阅[我们的文档](https://aka.ms/vscode-workspace-trust),了解详细信息。",immediateTrustRequestMessage:"如果不信任当前打开的文件或文件夹的源,则尝试使用的功能可能会带来安全风险。",manageWorkspaceTrust:"管理工作区信任",manageWorkspaceTrustButton:"管理(&&M)",newWindow:"在受限模式中打开(&&R)",no:"否",open:"打开(&&O)",openLooseFileLearnMore:"如果不想打开不受信任的文件,则建议在新窗口中通过受限模式打开它们,因为这些文件可能是恶意文件。请参阅[我们的文档](https://aka.ms/vscode-workspace-trust),了解详细信息。",openLooseFileWindowDetails:"你尝试在受信任的窗口中打开不受信任的文件。",openLooseFileWindowMesssage:"是否要在此窗口中允许不受信任的文件?",openLooseFileWorkspaceCheckbox:"记住我对所有工作区的决定",openLooseFileWorkspaceDetails:"你尝试在受信任的工作区中打开不受信任的文件。",openLooseFileWorkspaceMesssage:"是否要允许此工作区中不受信任的文件?",restrictedModeBannerAriaLabelFolder:"受限模式旨在实现安全地浏览代码。信任此文件夹以启用所有功能。使用导航键访问横幅操作。",restrictedModeBannerAriaLabelWindow:"受限模式旨在实现安全地浏览代码。信任此窗口以启用所有功能。使用导航键访问横幅操作。",restrictedModeBannerAriaLabelWorkspace:"受限模式旨在实现安全地浏览代码。信任此工作区以启用所有功能。使用导航键访问横幅操作。",restrictedModeBannerLearnMore:"了解详细信息",restrictedModeBannerManage:"管理",restrictedModeBannerMessageFolder:"受限模式旨在实现安全地浏览代码。信任此文件夹以启用所有功能。",restrictedModeBannerMessageWindow:"受限模式旨在实现安全地浏览代码。信任此窗口以启用所有功能。",restrictedModeBannerMessageWorkspace:"受限模式旨在实现安全地浏览代码。信任此工作区以启用所有功能。",startupTrustRequestLearnMore:"如果不信任这些文件的作者,则建议继续使用限制模式,因为这些文件可能是恶意文件。请参阅[我们的文档](https://aka.ms/vscode-workspace-trust),了解详细信息。","status.WorkspaceTrust":"工作区信任","status.ariaUntrustedFolder":"限制模式: 某些功能已禁用,因为此文件夹不受信任。","status.ariaUntrustedWindow":"限制模式: 某些功能已禁用,因为此窗口不受信任。","status.ariaUntrustedWorkspace":"限制模式: 某些功能已禁用,因为此工作区不受信任。","status.tooltipUntrustedFolder2":"在受限模式下运行\r\n\r\n某些[功能被禁用]({0}),因为此[文件夹不受信任]({1})。","status.tooltipUntrustedWindow2":"在受限模式下运行\r\n\r\n某些[功能被禁用]({0}),因为此[窗口不受信任]({1})。","status.tooltipUntrustedWorkspace2":"在受限模式下运行\r\n\r\n某些[功能被禁用]({0}),因为此[工作区不受信任]({1})。",trustFolderOptionDescription:"信任文件夹并启用所有功能",trustOption:"是,我信任此作者(&&Y)",trustWorkspaceOptionDescription:"信任工作区并启用所有功能",untrusted:"受限模式","workspace.trust.banner.always":"每次打开不受信任的工作区时显示横幅。","workspace.trust.banner.description":"控制何时显示受限模式横幅。","workspace.trust.banner.never":"打开不受信任的工作区时,不要显示横幅。","workspace.trust.banner.untilDismissed":"打开不受信任的工作区时显示横幅,直到关闭为止。","workspace.trust.description":"控制是否在 VS Code 内启用工作区信任。","workspace.trust.emptyWindow.description":"控制空窗口在 VS Code 中是否默认受信任。当与 `#{0}#` 一起使用时,可以启用 VS Code 的完整功能,而无需在空窗口中进行提示。","workspace.trust.startupPrompt.always":"每次打开不受信任的工作区时请求信任。","workspace.trust.startupPrompt.description":"控制何时显示信任工作区的启动提示。","workspace.trust.startupPrompt.never":"每次打开不受信任的工作区时不请求信任。","workspace.trust.startupPrompt.once":"首次打开不受信任的工作区时请求信任。","workspace.trust.untrustedFiles.description":'控制如何处理在受信任的工作区中打开不受信任的文件。此设置也适用于通过 `#{0}#" 打开的空窗口中的文件。',"workspace.trust.untrustedFiles.newWindow":"在受限模式下的独立窗口中始终打开不受信任的文件,而不显示提示。","workspace.trust.untrustedFiles.open":"始终允许不受信任的文件引入受信任的工作区,而不显示提示。","workspace.trust.untrustedFiles.prompt":"询问每个工作区如何处理不受信任文件。将不受信任的文件引入受信任的工作区后,将不会再次提示你。",workspaceStartupTrustDetails:"{0} 提供可以自动在此工作区中执行文件的功能。",workspaceTrust:"是否信任此工作区中的文件的作者?",workspaceTrustEditor:"工作区信任编辑器",workspacesCategory:"工作区"},"vs/workbench/contrib/workspace/browser/workspaceTrustEditor":{addButton:"添加文件夹",checkListIcon:"适用于工作区信任编辑器中复选标记的图标。",deleteTrustedUri:"删除路径",dontTrustButton:"不信任",editIcon:"适用于工作区信任编辑器中编辑文件夹图标的图标。",editTrustedUri:"编辑路径",folderPickerIcon:"适用于工作区信任编辑器中选取文件夹图标的图标。",hostColumnLabel:"主机",invalidTrust:"不能信任仓库中的单个文件夹。",keyboardShortcut:"键盘快捷方式: {0}",localAuthority:"本地","no untrustedSettings":"未应用需要信任的工作区设置",noTrustedFoldersDescriptions:"尚未信任任何文件夹或工作区文件。",pathColumnLabel:"路径",pickerTrustedUri:"打开“文件选取器”",removeIcon:"适用于工作区信任编辑器中删除文件夹图标的图标。","root element label":"管理工作区信任",selectTrustedUri:"选择要信任的文件夹",shieldIcon:"适用于横幅上工作区信任图标的图标。",trustAll:"你将信任 {0} 上的所有存储库。",trustButton:"信任",trustMessage:"信任当前文件夹或其父级“{0}”中所有文件的作者。",trustOrg:"你将信任 {1} 上“{0}”下的所有存储库和分支。",trustParentButton:"信任父级",trustUri:"信任文件夹",trustedDebugging:"已启用调试",trustedDescription:"已启用所有功能,因为已向工作区授予信任。",trustedExtensions:"已激活所有已启用的扩展",trustedFolder:"在受信任的文件夹中",trustedFolderAriaLabel:"{0},受信任",trustedFolderSubtitle:"你信任当前文件夹中文件的作者。已启用全部功能:",trustedFolderWithHostAriaLabel:"{1} 上的 {0},受信任",trustedFoldersAndWorkspaces:"受信任的文件夹和工作区",trustedFoldersDescription:"你信任以下文件夹、其子文件夹和工作区文件。",trustedForcedReason:"此窗口因已打开工作区的性质而获得信任。",trustedHeaderFolder:"你信任此文件夹",trustedHeaderWindow:"你信任此窗口",trustedHeaderWorkspace:"你信任此工作区",trustedSettings:"已应用所有工作区设置",trustedTasks:"允许运行任务",trustedUnsettableWindow:"此窗口受信任。",trustedWindow:"在受信任的窗口中",trustedWindowSubtitle:"你信任当前窗口中文件的作者。已启用所有功能:",trustedWorkspace:"在受信任的工作区中",trustedWorkspaceSubtitle:"你信任当前工作区中文件的作者。已启用所有功能:",untrustedDebugging:"已禁用调试。",untrustedDescription:"{0} 处于用于安全代码浏览的受限模式。",untrustedExtensions:"[{0} 扩展]({1})已禁用或功能受限",untrustedFolderReason:"此文件夹通过以下可信文件夹中的加粗条目得到信任。",untrustedFolderSubtitle:"你不信任当前文件夹中文件的作者。已禁用以下功能:",untrustedHeader:"你处于限制模式下",untrustedSettings:"未应用[{0} 工作区设置]({1})",untrustedTasks:"不允许运行任务",untrustedWindowSubtitle:"你不信任当前窗口中文件的作者。已禁用以下功能:",untrustedWorkspace:"在受限模式下",untrustedWorkspaceReason:"此工作区通过以下受信任文件夹中的加粗条目得到信任。",untrustedWorkspaceSubtitle:"你不信任当前工作区中文件的作者。已禁用以下功能:",workspaceTrustEditorHeaderActions:"[配置设置]({0}) 或 [了解详细信息](https://aka.ms/vscode-workspace-trust)。",xListIcon:"工作区信任编辑器中十字形的图标。"},"vs/workbench/contrib/workspace/common/workspace":{workspaceTrustEnabledCtx:"是否已启用工作区信任功能。",workspaceTrustedCtx:"用户是否已信任当前工作区。"},"vs/workbench/contrib/workspaces/browser/workspaces.contribution":{alreadyOpen:"此工作区已打开。",foundWorkspace:"此文件夹包含工作区文件“{0}”,是否打开? [了解更多]({1})有关工作区文件的详细信息。",foundWorkspaces:"此文件夹包含多个工作区文件,是否打开? [了解更多]({0})有关工作区文件的详细信息。",openWorkspace:"打开工作区",selectToOpen:"选择要打开的工作区",selectWorkspace:"选择工作区"},"vs/workbench/services/actions/common/menusExtensionPoint":{"command name":"ID","command title":"标题",commands:"命令","comment.actions":"贡献的注释上下文菜单,呈现为注释编辑器下方的按钮","comment.commentContext":"提供的注释上下文菜单,在注释线程速览视图中呈现为单个注释上的右键单击菜单。","comment.title":"贡献的注释标题菜单","commentThread.actions":"贡献的注释线程上下文菜单,呈现为注释编辑器下方的按钮","commentThread.editorActions":"贡献的注释编辑器操作","commentThread.title":"贡献的注释线程标题菜单","commentThread.titleContext":"提供的注释线程标题的速览上下文菜单,在注释线程的速览标题上呈现为右键单击菜单。","commentsView.threadActions":"注释视图中提供的注释线程上下文菜单",dup0:"已注册命令 `{0}`",dup1:"{1} 已注册命令 `{0}` ({2})","dupe.command":"菜单项引用的命令中默认和替代命令相同",editorLineNumberContext:"贡献的编辑器行号上下文菜单","file.newFile":"“新建文件...”快速选取,显示在欢迎页面和文件菜单上。","inlineCompletions.actions":"悬停在内联完成项上时显示的操作","inlineEdit.actions":"鼠标悬停在内联编辑上时显示的操作","interactive.cell.title":"贡献的交互式单元格标题菜单","interactive.toolbar":"贡献的交互式工具栏菜单","issue.reporter":"提供的问题报告器菜单","keyboard shortcuts":"键盘快捷方式",menuContexts:"菜单上下文","menus.changeTitle":"源代码管理内联更改菜单","menus.commandPalette":"命令面板","menus.debugCallstackContext":"调试调用堆栈视图上下文菜单","menus.debugToolBar":"调试工具栏菜单","menus.debugVariablesContext":"调试变量视图上下文菜单","menus.diffEditorGutterToolBarMenus":"差异编辑器中的装订线工具栏","menus.editorContext":"编辑器上下文菜单","menus.editorContextCopyAs":"编辑器上下文菜单中的“复制为”子菜单","menus.editorContextShare":"编辑器上下文菜单中的“共享”子菜单","menus.editorTabContext":"编辑器选项卡上下文菜单","menus.editorTitle":"编辑器标题菜单","menus.editorTitleContextShare":"编辑器标题上下文菜单内的“共享”子菜单","menus.editorTitleRun":"在编辑器标题菜单内运行子菜单","menus.explorerContext":"文件资源管理器上下文菜单","menus.explorerContextShare":"文件资源管理器上下文菜单中的“共享”子菜单","menus.extensionContext":"扩展上下文菜单","menus.home":"主指示器上下文菜单(仅限 Web)","menus.incomingChanges":"“源代码管理”传入更改菜单","menus.incomingChangesAllChangesContext":"“源代码管理”所有传入更改上下文菜单","menus.incomingChangesContext":"“源代码管理传入更改”上下文菜单","menus.incomingChangesHistoryItemContext":"“源代码管理”传入更改历史记录项上下文菜单","menus.input":"“源代码管理”输入框菜单","menus.mergeEditorResult":"合并编辑器的结果工具栏","menus.multiDiffEditorResource":"多差异编辑器中的资源工具栏","menus.notebookVariablesContext":"“笔记本变量视图”上下文菜单","menus.opy":"顶层“编辑”菜单中的“复制为”子菜单","menus.outgoingChanges":"“源代码管理”传出更改菜单","menus.outgoingChangesAllChangesContext":"“源代码管理”所有传出更改上下文菜单","menus.outgoingChangesContext":"“源代码管理传出更改”上下文菜单","menus.outgoingChangesHistoryItemContext":"“源代码管理”传出更改历史记录项上下文菜单","menus.resourceFolderContext":"源代码管理资源文件夹上下文菜单","menus.resourceGroupContext":"源代码管理资源组上下文菜单","menus.resourceStateContext":"源代码管理资源状态上下文菜单","menus.scmSourceControl":"源代码管理菜单","menus.scmSourceControlTitle":"源代码管理标题菜单","menus.scmTitle":"源代码管理标题菜单","menus.share":"共享顶级“文件”菜单中显示的子菜单。","menus.statusBarRemoteIndicator":"状态栏中的远程指示器菜单","menus.terminalContext":"终端上下文菜单","menus.terminalTabContext":"终端选项卡上下文菜单","menus.touchBar":"触控栏 (仅 macOS)","merge.toolbar":"编辑器中的突出按钮覆盖其内容","missing.altCommand":"菜单项引用了未在 'commands' 部分定义的替代命令“{0}”。","missing.command":"菜单项引用未在“命令”部分进行定义的命令“{0}”。","missing.submenu":"菜单项引用了未在“子菜单”部分定义的子菜单“{0}”。",nonempty:"应为非空值。","notebook.cell.execute":"贡献的笔记本单元格执行菜单","notebook.cell.title":"贡献的笔记本单元格标题菜单","notebook.kernelSource":"贡献的笔记本内核源菜单","notebook.toolbar":"贡献的笔记本工具栏菜单",opticon:"可以省略属性 `icon`,若不省略则必须是字符串或文字,例如 `{dark, light}`",optstring:"属性“{0}”可以省略,或者必须为 `string` 类型",proposed:"建议的 API 需要 `enabledApiProposal: [“{0}”]` - {1}","proposedAPI.invalid":"{0} 是建议的菜单标识符。它需要 “package.json#enabledApiProposals: [“{1}”]”,并且仅在开发用完或使用以下命令行开关时可用: --enable-proposed-api {2}",require:"子菜单项必须是对象",requireStringOrObject:"属性“{0}”是必要属性,其类型必须是 `string` 或 `object`",requirearray:"子菜单项必须是数组",requirestring:"属性“{0}”是必需项,并且必须为 `string` 类型",requirestrings:"属性“{0}”和“{1}”是必要属性,其类型必须是 `{dark, light}`","submenuId.duplicate.id":"以前已注册 `{0}` 子菜单。","submenuId.invalid.id":"“{0}”不是有效的子菜单标识符","submenuId.invalid.label":"“{0}”不是有效的子菜单标签","submenuItem.duplicate":"`{0}` 子菜单已提供给 `{1}` 菜单。","testing.item.context":"提供的测试项菜单","testing.item.gutter.title":"测试项的装订线装饰菜单","testing.item.result.title":"“测试结果”视图或速览中的项目菜单。","testing.message.content.title":"结果树中消息的上下文菜单","testing.message.context.title":"覆盖显示消息的编辑器内容的突出按钮","unsupported.submenureference":"菜单项引用了不具有子菜单支持的菜单的子菜单。","view.itemContext":"提供的视图中的项目的上下文菜单","view.timelineContext":"时间线视图项上下文菜单","view.timelineTitle":"时间线视图标题菜单","view.tunnelContext":"“端口”视图项目上下文菜单","view.tunnelOriginInline":"“端口”视图项源内联菜单","view.tunnelPortInline":"端口视图项端口内联菜单","view.viewTitle":"提供的视图的标题菜单","vscode.extension.contributes.commandType.category":"(可选)类别字符串,命令在界面中根据此项分组","vscode.extension.contributes.commandType.command":"要执行的命令的标识符","vscode.extension.contributes.commandType.icon":"(可选)用于表示 UI 中的命令的图标。文件路径、具有深色和浅色主题的文件路径的对象,或者主题图标引用(如 `\\$(zap)`)","vscode.extension.contributes.commandType.icon.dark":"使用深色主题时的图标路径","vscode.extension.contributes.commandType.icon.light":"使用浅色主题时的图标路径","vscode.extension.contributes.commandType.precondition":"(可选)必须为 true 才能启用 UI (菜单和键绑定)中命令的条件。不会阻止通过其他方式执行命令,例如 `executeCommand`-api。","vscode.extension.contributes.commandType.shortTitle":"(可选)简短标题,在 UI 中表示该命令。菜单将根据显示命令的上下文选取“标题”或“简短标题”。","vscode.extension.contributes.commandType.title":"在 UI 中依据其表示命令的标题","vscode.extension.contributes.commands":"对命令面板提供命令。","vscode.extension.contributes.menuItem.alt":"要执行的替代命令的标识符。该命令必须在 'commands' 部分中声明","vscode.extension.contributes.menuItem.command":"要执行的命令的标识符。该命令必须在“命令”部分中声明","vscode.extension.contributes.menuItem.group":"此项所属的组","vscode.extension.contributes.menuItem.submenu":"要在此项中显示的子菜单的标识符。","vscode.extension.contributes.menuItem.when":"此条件必须为 true 才能显示此项","vscode.extension.contributes.menus":"向编辑器提供菜单项","vscode.extension.contributes.submenu.icon":"(可选)用于表示 UI 中的子菜单的图标。文件路径、具有深色和浅色主题的文件路径的对象,或者主题图标引用(如 `\\$(zap)`)","vscode.extension.contributes.submenu.icon.dark":"使用深色主题时的图标路径","vscode.extension.contributes.submenu.icon.light":"使用浅色主题时的图标路径","vscode.extension.contributes.submenu.id":"要显示为子菜单的菜单的标识符。","vscode.extension.contributes.submenu.label":"指向此子菜单的菜单项的标签。","vscode.extension.contributes.submenus":"将子菜单项分配到编辑器","webview.context":"Webview 上下文菜单"},"vs/workbench/services/assignment/common/assignmentService":{"workbench.enableExperiments":"从 Microsoft 联机服务中获取要进行的实验。"},"vs/workbench/services/authentication/browser/authenticationExtensionsService":{accessRequest:"授予“{0}”访问“{1}”的权限... (1)",allow:"允许(&&A)",confirmAuthenticationAccess:"扩展“{0}”正在尝试访问 {1} 帐户“{2}”的身份验证信息。",deny:"拒绝(&&D)",getSessionPlateholder:"选择一个供“{0}”使用的帐户或按 Esc 取消",selectAccount:"扩展“{0}”要访问 {1} 帐户","sign in":"已请求登录",signInRequest:"使用 {0} 登录以使用 {1} (1)",useOtherAccount:"登录到其他帐户"},"vs/workbench/services/authentication/browser/authenticationService":{"authentication.idConflict":"已注册此身份验证 ID“{0}”","authentication.missingId":"提供身份验证必须指定一个 ID。","authentication.missingLabel":"提供身份验证必须指定一个标签。"},"vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService":{lifecycleVeto:"可能无法保存所做的更改。请按“取消”,然后重试。",retry:"重试(&&R)",unableToOpenWindow:"浏览器已中断新窗口的打开。按下“重试”以重试。",unableToOpenWindowDetail:"若要避免将来出现此问题,请确保允许此网站的弹出窗口。",unableToOpenWindowError:"无法打开新窗口。"},"vs/workbench/services/auxiliaryWindow/electron-sandbox/auxiliaryWindowService":{backupErrorDetails:"请先尝试保存或还原具有未保存更改的编辑器,然后重试。"},"vs/workbench/services/clipboard/browser/clipboardService":{clipboardError:"无法从浏览器的剪贴板中读取。请确保你已授予此网站从剪贴板中读取的访问权限。",learnMore:"了解详细信息",retry:"重试"},"vs/workbench/services/configuration/browser/configurationService":{"configurationDefaults.description":"为配置提供默认值",experimental:"试验","setting description":"配置要应用于所有配置文件的设置。"},"vs/workbench/services/configuration/common/configurationEditing":{errorConfigurationFileDirty:"由于该文件具有未保存的更改,因此无法写入到用户设置。请先保存该用户设置文件,然后重试。",errorConfigurationFileDirtyFolder:"由于该文件具有未保存的更改,因此无法写入到文件夹设置。请先保存该 '{0}' 文件夹设置文件,然后重试。",errorConfigurationFileDirtyWorkspace:"由于该文件具有未保存的更改,因此无法写入到工作区设置。请先保存该工作区设置文件,然后重试。",errorConfigurationFileModifiedSince:"无法写入用户设置,因为文件的内容较新。",errorConfigurationFileModifiedSinceFolder:"无法写入文件夹设置,因为文件的内容较新。",errorConfigurationFileModifiedSinceWorkspace:"无法写入工作区设置,因为文件的内容较新。",errorInvalidConfiguration:"无法写入用户设置。请打开用户设置并清除错误或警告,然后重试。",errorInvalidConfigurationFolder:"无法写入文件夹设置。请打开“{0}”文件夹设置并清除错误或警告,然后重试。",errorInvalidConfigurationWorkspace:"无法写入工作区设置。请打开工作区设置并清除错误或警告,然后重试。",errorInvalidFolderConfiguration:'{0} 不支持文件夹资源域,因此无法写入"文件夹设置"。',errorInvalidFolderTarget:'未提供资源,因此无法写入"文件夹设置"。',errorInvalidLaunchConfiguration:"无法写入启动配置文件。请打开文件并更正错误或警告,然后重试。",errorInvalidRemoteConfiguration:"无法写入远程用户设置。请打开远程用户设置以更正其中的错误警告, 然后重试。",errorInvalidResourceLanguageConfiguration:"无法写入语言设置,因为{0}不是资源语言设置。",errorInvalidTaskConfiguration:"无法写入任务配置文件。请打开文件并更正错误或警告,然后重试。",errorInvalidUserTarget:'{0} 不支持全局域,因此无法写入"用户设置"。',errorInvalidWorkspaceConfigurationApplication:"无法将 {0} 写入“工作区设置”。此设置只能写于“用户设置”。",errorInvalidWorkspaceConfigurationMachine:"无法将 {0} 写入“工作区设置”。此设置只能写于“用户设置”。",errorInvalidWorkspaceTarget:"{0} 不在多文件夹工作区环境下支持工作区作用域,因此无法写入“工作区设置”。",errorLaunchConfigurationFileDirty:"由于该文件具有未保存的更改,因此无法写入到启动配置文件。请先将其保存,然后重试。",errorLaunchConfigurationFileModifiedSince:"无法写入启动配置文件,因为文件的内容较新。",errorNoWorkspaceOpened:"没有打开任何工作区,因此无法写入 {0}。请先打开一个工作区,然后重试。",errorPolicyConfiguration:"无法写入 {0},因为它是在系统策略中配置的。",errorRemoteConfigurationFileDirty:"由于该文件具有未保存的更改,因此无法写入到远程用户设置。请先保存该远程用户设置文件,然后重试。",errorRemoteConfigurationFileModifiedSince:"无法写入远程用户设置,因为文件的内容较新。",errorTasksConfigurationFileDirty:"由于该文件具有未保存的更改,因此无法写入到任务配置文件。请先将其保存,然后重试。",errorTasksConfigurationFileModifiedSince:"无法写入任务配置文件,因为文件的内容较新。",errorUnknown:"由于内部错误,无法写入 {0}。",errorUnknownKey:"没有注册配置 {1},因此无法写入 {0}。",folderTarget:"文件夹设置",fsError:"写入 {0} 时出错。{1}",open:"打开设置",openLaunchConfiguration:"打开启动配置",openTasksConfiguration:"打开任务配置",remoteUserTarget:"远程用户设置",saveAndRetry:"保存并重试",userTarget:"用户设置",workspaceTarget:"工作区设置"},"vs/workbench/services/configuration/common/jsonEditingService":{errorInvalidFile:"无法写入文件。请打开文件以更正错误或警告,然后重试。"},"vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService":{"commandVariable.noStringType":"无法替换命令变量“{0}”,因为命令没有返回字符串类型的结果。","inputVariable.command.noStringType":"无法替换输入变量“{0}”,因为命令“{1}”没有返回类型字符串的结果。","inputVariable.defaultInputValue":"(默认值)","inputVariable.missingAttribute":"输入变量“{0}”的类型为“{1}”且必须包含“{2}”。","inputVariable.noInputSection":"必须在调试或任务配置的“{1}”部分中定义变量“{0}”。","inputVariable.undefinedVariable":"遇到未定义的输入变量“{0}”。请删除或定义“{0}”以继续操作。","inputVariable.unknownType":"输入变量“{0}”只能是 'promptString'、'pickString' 或 'command' 类型。"},"vs/workbench/services/configurationResolver/common/configurationResolverSchema":{"JsonSchema.input.command.args":"传递给命令的可选参数。","JsonSchema.input.command.command":"要为此输入变量执行的命令。","JsonSchema.input.default":"输入的默认值。","JsonSchema.input.description":"当提示用户输入时,将显示说明。","JsonSchema.input.id":"输入的 ID 用于与其变量采用 ${input:id} 形式的输入相关联。","JsonSchema.input.options":"用于定义快速选择选项的字符串数组。","JsonSchema.input.password":"控制是否显示密码输入。密码输入会隐藏键入的文本。","JsonSchema.input.pickString.optionLabel":"选项的标签。","JsonSchema.input.pickString.optionValue":"选项的值。","JsonSchema.input.type":"要使用的用户输入提示符的类型。","JsonSchema.input.type.command":'"command" 类型会执行命令。',"JsonSchema.input.type.pickString":"“pickString”类型显示一个选择列表。","JsonSchema.input.type.promptString":'"promptString" 类型会打开一个输入框,要求用户输入内容。',"JsonSchema.inputs":"用户输入。用于定义用户输入提示,例如自由字符串输入或从多个选项中进行选择。"},"vs/workbench/services/configurationResolver/common/configurationResolverUtils":{deprecatedVariables:"“env.”、“config.”和“command.”已弃用,请改用“env:”、“config:”和“command:”。"},"vs/workbench/services/configurationResolver/common/variableResolver":{canNotFindFolder:"找不到文件夹“{1}”,因此无法解析变量 {0}。",canNotResolveFile:"无法解析变量 {0}。请打开一个编辑器。",canNotResolveFolderForFile:'变量 {0}: 找不到 "{1}" 的工作区文件夹。',canNotResolveLineNumber:"无法解析变量 {0}。请确保已在活动编辑器中选择一行内容。",canNotResolveSelectedText:"无法解析变量 {0}。请确保已在活动编辑器中选择一些文字。",canNotResolveUserHome:"无法解析 {0} 变量。未定义 UserHome 路径",canNotResolveWorkspaceFolder:"无法解析变量 {0}。请打开一个文件夹。",canNotResolveWorkspaceFolderMultiRoot:'无法在多文件夹工作区中解析变量 {0}。使用 ":" 和工作区文件夹名称来限定此变量的作用域。',configNoString:'"{1}" 为结构类型值,因此无法解析变量 {0}。',configNotFound:"未能找到设置“{1}”,因此无法解析变量 {0}。",extensionNotInstalled:"无法解析变量 {0},因为未安装扩展 {1}。",missingConfigName:"未给出设置名称,因此无法解析变量 {0}。",missingEnvVarName:"未给出环境变量名称,因此无法解析变量 {0}。",missingExtensionName:"无法解析变量 {0},因为未给出扩展名。",noValueForCommand:"命令不含值,因此无法解析变量 {0}。"},"vs/workbench/services/decorations/browser/decorationsService":{bubbleTitle:"包含强调项"},"vs/workbench/services/dialogs/browser/abstractFileDialogService":{allFiles:"所有文件",dontSave:"不保存(&&N)","filterName.workspace":"工作区",noExt:"无扩展","openFile.title":"打开文件","openFileOrFolder.title":"打开文件或文件夹","openFolder.title":"打开文件夹","openWorkspace.title":"从文件打开工作区",save:"保存(&&S)",saveAll:"全部保存(&&S)",saveAsTitle:"另存为",saveChangesDetail:"如果不保存,你的更改将丢失。",saveChangesMessage:"是否要保存对 {0} 的更改?",saveChangesMessages:"是否要保存对下列 {0} 个文件的更改?","saveFileAs.title":"另存为"},"vs/workbench/services/dialogs/browser/fileDialogService":{learnMore:"了解详细信息(&&L)",openFiles:"打开文件(&&F)...",openRemote:"打开远程(&&O)...",pickFolderAndOpen:"无法打开文件夹,请尝试改为将文件夹添加到工作区。",pickWorkspaceAndOpen:"无法打开工作区,请尝试改为将文件夹添加到工作区。",unsupportedBrowserDetail:"浏览器不支持打开本地文件夹。\r\n你可以打开单个文件或打开远程存储库。",unsupportedBrowserMessage:"不支持打开本地文件夹"},"vs/workbench/services/dialogs/browser/simpleFileDialog":{openLocalFile:"打开本地文件...",openLocalFileFolder:"打开本地...",openLocalFolder:"打开本地文件夹...","remoteFileDialog.badPath":"路径不存在。","remoteFileDialog.cancel":"取消","remoteFileDialog.invalidPath":"请输入有效路径。","remoteFileDialog.local":"显示本地","remoteFileDialog.notConnectedToRemote":"{0} 的文件系统提供程序不可用。","remoteFileDialog.validateBadFilename":"请输入有效的文件名。","remoteFileDialog.validateCreateDirectory":"文件夹 {0} 不存在。是否要创建它?","remoteFileDialog.validateExisting":"{0} 已存在。是否确实要覆盖?","remoteFileDialog.validateFileOnly":"请选择文件。","remoteFileDialog.validateFolder":"该文件夹已存在。请使用新的文件名。","remoteFileDialog.validateFolderOnly":"请选择一个文件夹。","remoteFileDialog.validateNonexistentDir":"请输入已存在的路径。","remoteFileDialog.validateReadonlyFolder":"此文件夹不能用作保存目标。请选择其他文件夹","remoteFileDialog.windowsDriveLetter":"路径开头请使用驱动器号。",saveLocalFile:"保存本地文件..."},"vs/workbench/services/editor/browser/editorResolverService":{"editorResolver.configureDefault":"配置默认设置","editorResolver.conflictingDefaults":"此资源可使用多个默认编辑器。","editorResolver.keepDefault":"保留“{0}”","promptOpenWith.configureDefault":'为 "{0}" 配置默认编辑器...',"promptOpenWith.currentDefault":"默认","promptOpenWith.currentDefaultAndActive":"活动和默认","promptOpenWith.currentlyActive":"活动","promptOpenWith.placeHolder":"为“{0}”选择编辑器","promptOpenWith.updateDefaultPlaceHolder":'为 "{0}" 选择新的默认编辑器'},"vs/workbench/services/editor/common/editorResolverService":{"editor.editorAssociations":'将 [glob 模式](https://aka.ms/vscode-glob-patterns)配置到编辑器(例如 `"*.hex": "hexEditor.hexedit"`)。这些优先于默认行为。'},"vs/workbench/services/extensionManagement/browser/extensionBisect":{"I cannot reproduce":"我无法重现","This is Bad":"我可以重现",bisect:"扩展二等分处于活动状态,已禁用 {0} 扩展。请从这些选项中进行选择,检查是否仍可重现问题并继续操作。","bisect.plural":"扩展二等分处于活动状态,已禁用 {0} 扩展。请从这些选项中进行选择,检查是否仍可重现问题并继续操作。","bisect.singular":"Extension Bisect 处于活动状态,且已禁用 1 个扩展。请从这些选项中进行选择,以检查是否仍然可以重现问题并继续操作。",continue:"继续","detail.start":"扩展二等分将通过二分查找的方式确认引起问题的扩展。在此过程中,窗口将会不断重新加载(约{0}次),每次都必须确认是否出现问题","done.detail":"扩展二等分已完成,已将 {0} 标识为导致问题的扩展。","done.detail2":"扩展二等分已完成,但未标识任何扩展。这可能是 {0} 的问题。","done.disbale":"保持禁用此扩展","done.msg":"扩展二等分","msg.next":"扩展二等分","msg.start":"扩展二等分",msg2:"开始扩展二等分(&&S)","next.bad":"我可以重现(&&R)","next.cancel":"取消二等分(&&C)","next.good":"我无法重现(&&N)","next.stop":"停止二等分(&&S)",report:"报告问题并继续(&&R)","title.isBad":"继续扩展二等分","title.start":"开始扩展二等分","title.stop":"停止扩展二等分"},"vs/workbench/services/extensionManagement/browser/extensionEnablementService":{Reload:"重新加载并启用扩展","cannot change disablement environment":"无法更改 {0} 扩展的启用,因为它在环境中被禁用","cannot change enablement dependency":"无法启用“{0}”扩展,因为它依赖于无法启用的“{1}”扩展","cannot change enablement environment":"无法更改 {0} 扩展的启用,因为它已在环境中启用","cannot change enablement extension kind":"由于扩展类型,{0} 扩展的启用无法更改","cannot change enablement virtual workspace":"无法更改 {0} 扩展的启用,因为它不支持虚拟工作区","cannot disable auth extension":"无法更改 {0} 扩展的启用,因为“设置同步”依赖此扩展。","cannot disable auth extension in workspace":"无法在工作区中更改 {0} 扩展的启用,因为它提供身份验证提供程序","cannot disable language pack extension":"无法更改 {0} 扩展的启用,因为它提供语言包。",extensionsDisabled:"已暂时禁用所有已安装的扩展。",noWorkspace:"没有工作区。"},"vs/workbench/services/extensionManagement/browser/webExtensionsScannerService":{"not a web extension":"此扩展不是 Web 扩展,因此无法添加“{0}”。",openInstalledWebExtensionsResource:"打开已安装的 Web 扩展资源"},"vs/workbench/services/extensionManagement/common/extensionFeaturesManagemetService":{accessExtensionFeature:"访问“{0}”功能",accessExtensionFeatureMessage:"“{0}”扩展希望访问“{1}”功能。",allow:"允许",disallow:"不允许"},"vs/workbench/services/extensionManagement/common/extensionManagement":{extensionsConfigurationTitle:"扩展"},"vs/workbench/services/extensionManagement/common/extensionManagementServerService":{browser:"浏览器",remote:"远程"},"vs/workbench/services/extensionManagement/common/extensionManagementService":{"Manifest is not found":"安装扩展 {0} 失败: 找不到清单文件。","VS Code for Web":"{0} Web 版","cannot be installed":"无法安装“{0}”扩展,因为它在此安装程序中不可用。",extensionInstallWorkspaceTrustButton:"信任工作区 & 安装",extensionInstallWorkspaceTrustContinueButton:"安装",extensionInstallWorkspaceTrustManageButton:"了解详细信息",extensionInstallWorkspaceTrustMessage:"启用此扩展需要受信任的工作区。",install:"安装(&&I)","install and do no sync":"安装(不同步)(&&N)","install anyways":"仍然安装(&&I)","install extension":"安装扩展","install extensions":"安装扩展","install multiple extensions":"是否要跨设备安装并同步扩展?","install single extension":'是否要跨设备安装并同步 "{0}" 扩展?',"limited support":"“{0}”在 {1} 中具有有限的功能。","main.notFound":"无法激活,因为找不到 {0}",multipleDependentsError:"无法卸载扩展程序“{0}”。扩展程序“{1}”、“{2}”以及其他扩展程序都依赖于此。","non web extensions":"“{0}”包含在“{1}”中不支持的扩展。","non web extensions detail":"包含不受支持的扩展。",showExtensions:"显示扩展(&&S)",singleDependentError:"无法卸载扩展程序“{0}”。扩展程序“{1}”依赖于此。",twoDependentsError:"无法卸载扩展程序“{0}”。扩展程序“{1}”、“{2}”依赖于此。"},"vs/workbench/services/extensionManagement/electron-sandbox/extensionManagementServerService":{local:"本地",remote:"远程"},"vs/workbench/services/extensionManagement/electron-sandbox/remoteExtensionManagementService":{notFoundCompatibleDependency:"无法安装“{0}”扩展,因为它与当前 {1} 版本不兼容(版本 {2})。",notFoundReleaseExtension:"由于 '{0}' 扩展没有发布版本,因此无法安装。"},"vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig":{"select for add":"将扩展建议添加到","select for remove":"从以下位置删除扩展建议",workspace:"工作区","workspace folder":"工作区文件夹"},"vs/workbench/services/extensions/browser/extensionUrlHandler":{confirmUrl:"是否允许“{0}”扩展打开此 URI?",extensions:"扩展",installDetail:"此扩展想要打开 URI:",manage:"管理授权扩展 URI...",no:"当前没有已授权的扩展 URI。",open:"打开(&&O)",openUri:"打开 URI",reloadAndHandle:"扩展“{0}”尚未载入。是否重载此窗口来载入扩展并打开 URL?",reloadAndOpen:"重载窗口并打开(&&R)",rememberConfirmUrl:"不再向我询问此扩展"},"vs/workbench/services/extensions/common/abstractExtensionService":{activation:"激活事件","extensionService.autoRestart":"远程扩展主机意外终止。正在重启...","extensionService.crash":"扩展远程主机在过去 5 分钟内意外终止了 3 次。",extensionStopVetoDetailsMany:"阻止操作的原因:\r\n- {0}",extensionStopVetoDetailsOne:"阻止操作的原因: {0}",extensionStopVetoError:"{0} (错误: {1})",extensionStopVetoMessage:"已阻止以下操作: {0}",extensionTestError:"找不到可在 {0} 启动测试运行程序的扩展主机。",looping:"以下扩展因包含依赖循环已被禁用: {0}",restart:"重启远程扩展主机"},"vs/workbench/services/extensions/common/extensionHostManager":{measureExtHostLatency:"测量扩展主机延迟"},"vs/workbench/services/extensions/common/extensionsRegistry":{extensionKind:'定义扩展的类型。"ui"扩展在本地计算机上安装和运行,而 "工作区" 扩展则在远程计算机上运行。',"extensionKind.empty":"定义一个无法在远程上下文中运行的扩展,既不能在本地上,也不能在远程计算机上运行。","extensionKind.ui":"定义一个扩展,该扩展在连接到远程窗口时只能在本地计算机上运行。","extensionKind.ui-workspace":"定义可在任意一侧运行的扩展,并首选在本地计算机上运行。","extensionKind.workspace":"定义一个扩展,该扩展只能在连接远程窗口时在远程计算机上运行。","extensionKind.workspace-ui":"定义可在任意一侧运行的扩展,并首选在远程计算机上运行。","product.extensionEnabledApiProposals":"相应扩展可以自由使用的 API 建议。",ui:"UI 扩展类型。在远程窗口中, 仅本地计算机可用时启用此类扩展。","vscode.extension.activationEvents":"VS Code 扩展的激活事件。","vscode.extension.activationEvents.onAuthenticationRequest":"每次从指定的身份验证提供程序请求会话时发出的激活事件。","vscode.extension.activationEvents.onCommand":"在调用指定命令时发出的激活事件。","vscode.extension.activationEvents.onCustomEditor":"每当指定的自定义编辑器变为可见时,都会发出激活事件。","vscode.extension.activationEvents.onDebug":"在用户准备调试或准备设置调试配置时发出的激活事件。","vscode.extension.activationEvents.onDebugAdapterProtocolTracker":"每当即将启动具有特定类型的调试会话并可能需要调试协议跟踪器时, 都会发出激活事件。","vscode.extension.activationEvents.onDebugDynamicConfigurations":"每当需要创建所有调试配置的列表(并且需要调用“动态”范围的所有 provideDebugConfigurations 方法)时都会引发激活事件。","vscode.extension.activationEvents.onDebugInitialConfigurations":'在需要创建 "launch.json" 文件 (且需要调用 provideDebugConfigurations 的所有方法) 时发出的激活事件。',"vscode.extension.activationEvents.onDebugResolve":"在将要启动具有特定类型的调试会话 (且需要调用相应的 resolveDebugConfiguration 方法) 时发出的激活事件。","vscode.extension.activationEvents.onEditSession":"在使用给定方案访问编辑会话时发出的激活事件。","vscode.extension.activationEvents.onFileSystem":"在使用给定协议打开文件或文件夹时发出的激活事件。","vscode.extension.activationEvents.onIssueReporterOpened":"问题报告器打开时发出的激活事件。","vscode.extension.activationEvents.onLanguage":"在打开被解析为指定语言的文件时发出的激活事件。","vscode.extension.activationEvents.onNotebook":"在指定的笔记本文档被打开时发出的激活事件。","vscode.extension.activationEvents.onOpenExternalUri":"每当打开一个外部 uri (例如 http 或 https 链接)时发出的激活事件。","vscode.extension.activationEvents.onRenderer":"每当使用笔记本输出呈现器时发出激活事件。","vscode.extension.activationEvents.onSearch":"在开始从给定协议的文件夹中搜索时发出的激活事件。","vscode.extension.activationEvents.onStartupFinished":'启动完成后(在所有 "*" 激活的扩展完成激活后)发出的激活事件。',"vscode.extension.activationEvents.onTaskType":"每当需要列出或解决特定类型的任务时,都会发出激活事件。","vscode.extension.activationEvents.onTerminalProfile":"启动特定终端配置文件时发出的激活事件。","vscode.extension.activationEvents.onTerminalQuickFixRequest":"当命令匹配与此 ID 关联的选择器时发出的激活事件","vscode.extension.activationEvents.onUri":"在打开系统范围内并指向此扩展的 URI 时发出的激活事件。","vscode.extension.activationEvents.onView":"在指定视图被展开时发出的激活事件。","vscode.extension.activationEvents.onWalkthrough":"打开指定演练时发出的激活事件。","vscode.extension.activationEvents.onWebviewPanel":"当加载某个 viewType 的 Web 视图时,会发出激活事件","vscode.extension.activationEvents.star":"在 VS Code 启动时发出的激活事件。为确保良好的最终用户体验,请仅在其他激活事件组合不适用于你的情况时,才在扩展中使用此事件。","vscode.extension.activationEvents.workspaceContains":"在打开至少包含一个匹配指定 glob 模式的文件的文件夹时发出的激活事件。","vscode.extension.api":"描述此扩展提供的 API。有关更多详细信息,请访问: https://code.visualstudio.com/api/advanced-topics/remote-extensions#handling-dependencies-with-remote-extensions","vscode.extension.api.none":"完全放弃导出任何 API 的功能。通过此操作,依赖于此扩展的其他扩展将能够在单独的扩展主机进程或远程计算机中运行。","vscode.extension.badges":"在 Marketplace 的扩展页边栏中显示的徽章数组。","vscode.extension.badges.description":"徽章说明。","vscode.extension.badges.href":"徽章链接。","vscode.extension.badges.url":"徽章图像 URL。","vscode.extension.capabilities":"通过扩展声明一组受支持的功能。","vscode.extension.capabilities.untrustedWorkspaces":"声明应如何在不受信任的工作区中处理扩展。","vscode.extension.capabilities.untrustedWorkspaces.description":'对工作区信任如何影响扩展行为及其需要的原因的说明。这仅在 "supported" 不为 "true" 时适用。',"vscode.extension.capabilities.untrustedWorkspaces.restrictedConfigurations":"扩展中提供的、不应在不受信任的工作区中使用工作区值的配置键列表。","vscode.extension.capabilities.untrustedWorkspaces.supported":"通过扩展为不受信任的工作区声明支持级别。","vscode.extension.capabilities.untrustedWorkspaces.supported.false":"将不会在不受信任的工作区中启用扩展。","vscode.extension.capabilities.untrustedWorkspaces.supported.limited":"将在禁用了部分功能的不受信任工作区中启用扩展。","vscode.extension.capabilities.untrustedWorkspaces.supported.true":"将在启用了所有功能的不受信任工作区中启用扩展。","vscode.extension.capabilities.virtualWorkspaces":"声明是否应在虚拟工作区中启用扩展。虚拟工作区是一个不受任何磁盘资源支持的工作区。当为 false 时,会在虚拟工作区中自动禁用此扩展。默认值为 true。","vscode.extension.capabilities.virtualWorkspaces.description":'对虚拟工作区如何影响扩展行为及其需要的原因的说明。这仅在 "supported" 不为 "true" 时适用。',"vscode.extension.capabilities.virtualWorkspaces.supported":"通过扩展为虚拟工作区声明支持级别。","vscode.extension.capabilities.virtualWorkspaces.supported.false":"将不会在虚拟工作区中启用扩展。","vscode.extension.capabilities.virtualWorkspaces.supported.limited":"将在禁用了部分功能的虚拟工作区中启用扩展。","vscode.extension.capabilities.virtualWorkspaces.supported.true":"将在虚拟工作区中启用扩展,并启用所有功能。","vscode.extension.categories":"VS Code 库用于对扩展进行分类的类别。","vscode.extension.category.languages.deprecated":'请改用 "Programming Languages"',"vscode.extension.contributes":"由此包表示的 VS Code 扩展的所有贡献。","vscode.extension.contributes.extensionPack":"可一起安装的一组扩展。扩展的标识符始终为 ${publisher}.${name}。例如: vscode.csharp。","vscode.extension.contributes.sponsor":"指定用户可以从中赞助扩展的位置。","vscode.extension.contributes.sponsor.url":"用户可以从中赞助扩展的 URL。它必须是使用 HTTP 或 HTTPS 协议的有效 URL。示例值: https://github.com/sponsors/nvaccess","vscode.extension.displayName":"VS Code 库中使用的扩展的显示名称。","vscode.extension.enableProposedApi.deprecated":"请改用 `enabledApiProposals`。","vscode.extension.enabledApiProposals":"启用 API 建议以试用它们。仅在 **开发期间有效**。**无法使用此属性发布** 扩展。有关更多详细信息,请访问: https://code.visualstudio.com/api/advanced-topics/using-proposed-api","vscode.extension.engines":"引擎兼容性。","vscode.extension.engines.vscode":"对于 VS Code 扩展,指定与其兼容的 VS Code 版本。不能为 *。 例如: ^0.10.5 表示最低兼容 VS Code 版本 0.10.5。","vscode.extension.extensionDependencies":"其他扩展的依赖关系。扩展的标识符始终是 ${publisher}.${name}。例如: vscode.csharp。","vscode.extension.galleryBanner":"VS Code 商城使用的横幅。","vscode.extension.galleryBanner.color":"VS Code 商城页标题上的横幅颜色。","vscode.extension.galleryBanner.theme":"横幅文字的颜色主题。","vscode.extension.icon":"128 x 128 像素图标的路径。","vscode.extension.l10n":"包含本地化(bundle.l10n.*.json)文件的文件夹的相对路径。如果使用的是 vscode.l10n API,则必须指定它。","vscode.extension.markdown":'控制商店中使用的 Markdown 渲染引擎。可为 "github" (默认) 或 "standard" (标准)。',"vscode.extension.preview":"在 Marketplace 中设置扩展,将其标记为“预览”。","vscode.extension.pricing":"扩展的定价信息。可以是免费 (默认) 或试用版。有关详细信息,请访问: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#extension-pricing-label","vscode.extension.publisher":"VS Code 扩展的发布者。","vscode.extension.qna":'控制市场中的“问与答”(Q&A)链接。设置为 "marketplace" 可启用市场的默认“问与答”页面。设置为其他字符串可指向自定义的“问与答”页面。设置为 "false" 可完全禁用“问与答”。',"vscode.extension.scripts.prepublish":"包作为 VS Code 扩展发布前执行的脚本。","vscode.extension.scripts.uninstall":"VS Code 扩展的卸载钩子。在扩展从 VS Code 卸载且 VS Code 重启 (关闭后开启) 后执行的脚本。仅支持 Node 脚本。",workspace:"工作区扩展类型。在远程窗口中,仅远程可用时启用此类扩展。"},"vs/workbench/services/extensions/common/extensionsUtil":{extensionUnderDevelopment:"正在 {0} 处加载开发扩展程序",overwritingExtension:"使用扩展程序 {1} 覆盖扩展程序 {0}。"},"vs/workbench/services/extensions/electron-sandbox/cachedExtensionScanner":{"extensionCache.invalid":"扩展在磁盘上已被修改。请重新加载窗口。",reloadWindow:"重新加载窗口"},"vs/workbench/services/extensions/electron-sandbox/localProcessExtensionHost":{"extensionHost.startupFail":"扩展主机未在 10 秒内启动,这可能是一个问题。","extensionHost.startupFailDebug":"扩展未在 10 秒内启动,可能在第一行已停止,需要调试器才能继续。","join.extensionDevelopment":"正在终止扩展调试会话",reloadWindow:"重新加载窗口"},"vs/workbench/services/extensions/electron-sandbox/nativeExtensionService":{devTools:"打开开发人员工具",enable:"启用和重新加载",enableResolver:"需要扩展“{0}”才能打开远程窗口。\r\n是否启用?","extensionService.autoRestart":"扩展主机意外终止。正在重启...","extensionService.crash":"扩展主机在过去 5 分钟内意外终止了 3 次。","extensionService.versionMismatchCrash":"扩展主机无法启动: 版本不匹配。",getEnvironmentFailure:"无法获取远程环境",install:"安装并重新加载",installResolver:"打开远程窗口需要扩展“{0}”。\r\n确定要安装扩展吗?",learnMore:"了解详细信息",relaunch:"重新启动 VS Code",resolverExtensionNotFound:"未在市场上找到“{0}”",restart:"重启扩展宿主",restartExtensionHost:"重启扩展宿主","restartExtensionHost.reason":"正在根据显式请求重启扩展主机。",startBisect:"开始扩展二等分"},"vs/workbench/services/files/electron-sandbox/diskFileSystemProvider":{fileWatcher:"文件观察程序"},"vs/workbench/services/filesConfiguration/common/filesConfigurationService":{configuredReadonly:"编辑器是只读的,因为文件通过设置设为了只读。[单击此处](command:{0})进行配置。",fileLocked:"由于文件权限,编辑器是只读的。[单击此处](command:{0})来仍然设置为可写。",fileReadonly:"编辑器是只读的,因为文件是只读的。",providerReadonly:"编辑器是只读的,因为文件的文件系统是只读的。",sessionReadonly:"编辑器是只读的,因为文件在此会话中设置为只读。[单击此处](command:{0})进行配置。"},"vs/workbench/services/history/browser/historyService":{canNavigateBack:"是否可在编辑器历史记录中向后导航",canNavigateBackInEditLocations:"是否可在编辑器编辑位置历史记录中向后导航",canNavigateBackInNavigationLocations:"是否可在编辑器导航位置历史记录中向后导航",canNavigateForward:"是否可在编辑器历史记录中向前导航",canNavigateForwardInEditLocations:"是否可在编辑器编辑位置历史记录中向前导航",canNavigateForwardInNavigationLocations:"是否可在编辑器导航位置历史记录中向前导航",canNavigateToLastEditLocation:"是否可导航到最后一个编辑器编辑位置",canNavigateToLastNavigationLocation:"是否可导航到最后一个编辑器导航位置",canReopenClosedEditor:"是否可重新打开上次关闭的编辑器"},"vs/workbench/services/host/browser/browserHostService":{open:"打开(&&O)",unableToOpenExternal:"浏览器已中断新选项卡或窗口的打开。仍然按“打开”以将其打开。"},"vs/workbench/services/hover/browser/hoverWidget":{hoverhint:"按住 {0} 键将鼠标悬停"},"vs/workbench/services/integrity/electron-sandbox/integrityService":{"integrity.dontShowAgain":"不再显示","integrity.moreInformation":"更多信息","integrity.prompt":"{0} 安装似乎损坏。请重新安装。"},"vs/workbench/services/issue/browser/issueTroubleshoot":{"I cannot reproduce":"我无法重现",Stop:"停止","This is Bad":"我可以重现","ask to download insiders":"请尝试下载并重现{0}预览体验成员中的问题。","ask to reproduce issue":"请尝试重现{0}预览体验成员中的问题,并确认问题是否存在。",bad:"我可以重现","detail.start":"问题疑难解答过程有助于确定问题的原因。问题可能是由配置不当、扩展或 {0} 本身引起的。\r\n\r\n在此过程中,窗口会不断重载。每次都必须确认是否仍看到此问题。","download insiders":"下载{0}预览体验成员","empty.profile":"问题疑难解答处于活动状态,并且已将配置暂时重置为默认值。检查是否仍可以重现问题,然后从这些选项中进行选择。",good:"我无法重现","issue is in core":"问题疑难解答已确定该问题与{0}有关。","issue is with configuration":"问题疑难解答已确定此问题是由配置导致的。请使用“导出配置文件”命令导出配置来报告问题,并共享问题报告中的文件。",msg:"&&排查问题","profile.extensions.disabled":"问题疑难解答处于活动状态,并暂时禁用了所有已安装的扩展。检查是否仍可以重现问题,然后从这些选项中进行选择。","report anyway":"仍然报告问题",stop:"停止","title.stop":"停止排查问题","troubleshoot issue":"排查问题",troubleshootIssue:"排查问题...","use insiders":"这可能意味着问题已解决,将在即将发布的版本中可用。你可以安全地使用{0}预览体验成员,直到新的稳定版本可用。"},"vs/workbench/services/keybinding/browser/keybindingService":{"invalid.keybindings":"无效的“contributes.{0}”: {1}","keybindings.commandsIsArray":'类型错误。应为 "{0}"。字段 "command" 不支持运行多个命令。使用命令 "runCommands" 以向它传递多个要运行的命令。',"keybindings.json.args":"要传递给命令以执行的参数。","keybindings.json.command":"要执行的命令的名称","keybindings.json.key":"键或键序列(用空格分隔)","keybindings.json.removalCommand":"要为其删除键盘快捷方式的命令的名称","keybindings.json.title":"按键绑定配置","keybindings.json.when":"键处于活动状态时的条件。",nonempty:"应为非空值。",optstring:'属性“{0}”可以省略,否则其类型必须是 "string"',requirestring:'属性“{0}”是必需的,其类型必须是 "string"',unboundCommands:"以下是其他可用命令:","vscode.extension.contributes.keybindings":"用于键绑定。","vscode.extension.contributes.keybindings.args":"要传递给命令以执行的参数。","vscode.extension.contributes.keybindings.command":"要在触发键绑定时运行的命令的标识符。","vscode.extension.contributes.keybindings.key":"键或键序列(用加号连接的键和后面再接空格的键序列都算组合键,如 Ctrl+O 和 Ctrl+L L)。","vscode.extension.contributes.keybindings.linux":"Linux 特定的键或键序列。","vscode.extension.contributes.keybindings.mac":"Mac 特定的键或键序列。","vscode.extension.contributes.keybindings.when":"键处于活动状态时的条件。","vscode.extension.contributes.keybindings.win":"Windows 特定的键或键序列。"},"vs/workbench/services/keybinding/browser/keyboardLayoutService":{"keyboard.layout.config":"控制 Web 中使用的键盘布局。",keyboardConfigurationTitle:"键盘"},"vs/workbench/services/keybinding/common/keybindingEditing":{emptyKeybindingsHeader:"将键绑定放在此文件中以覆盖默认值",errorInvalidConfiguration:"无法写入按键绑定配置文件。文件内含有非数组类型对象。请打开文件进行清理,然后重试。",errorKeybindingsFileDirty:"由于该键绑定配置文件具有未保存的更改,因此无法写入。请先将其保存,然后重试。",parseErrors:"无法写入按键绑定配置文件。请打开文件并更正错误或警告,然后重试。"},"vs/workbench/services/label/common/labelService":{temporaryWorkspace:"工作区",untitledWorkspace:"无标题 (工作区)","vscode.extension.contributes.resourceLabelFormatters":"提供资源标签格式化规则。","vscode.extension.contributes.resourceLabelFormatters.authority":"要在其上匹配格式化程序的 URI 权限。支持简单的 glob 模式。","vscode.extension.contributes.resourceLabelFormatters.formatting":"用于格式化 uri 资源标签的规则。","vscode.extension.contributes.resourceLabelFormatters.formatting.workspaceSuffix":"附加到工作区标签的后缀。","vscode.extension.contributes.resourceLabelFormatters.label":"要显示的标签规则。例如,myLabel:/${path}。支持将 ${path}、${scheme}、${authority} 和 ${authoritySuffix} 用作变量。","vscode.extension.contributes.resourceLabelFormatters.scheme":"要在其上匹配格式化程序的 URI 方案,例如“文件”。支持简单的 glob 模式。","vscode.extension.contributes.resourceLabelFormatters.separator":"要在 URI 标签显示中所用的分隔符,例如 / 或 ''。","vscode.extension.contributes.resourceLabelFormatters.stripPathStartingSeparator":'控制 "${path}" 替换项是否应删除起始分隔符字符。',"vscode.extension.contributes.resourceLabelFormatters.tildify":"控制是否应在可能的情况下按斜体显示 URI 标签的开头。",workspaceName:"{0} (工作区)",workspaceNameVerbose:"{0} (工作区)"},"vs/workbench/services/language/common/languageService":{"file extensions":"文件扩展名",grammar:"语法",invalid:"“contributes.{0}”无效。应为数组。","invalid.empty":"“contributes.{0}”的值为空","language id":"ID","language name":"名称",languages:"编程语言","opt.aliases":'属性“{0}”可以省略,其类型必须是 "string[]"',"opt.configuration":'属性“{0}”可以省略,其类型必须是 "string"。',"opt.extensions":'属性“{0}”可以省略,其类型必须是 "string[]"',"opt.filenames":'属性“{0}”可以省略,其类型必须是 "string[]"',"opt.firstLine":'属性“{0}”可以省略,其类型必须是 "string"。',"opt.icon":'可以省略属性 "{0}",并且其类型必须为 "object",并带有类型为 "string" 的属性 "{1}" 和 "{2}"',"opt.mimetypes":'属性“{0}”可以省略,其类型必须是 "string[]"',"require.id":'属性“{0}”是必需的,其类型必须是 "string"',snippets:"片段","vscode.extension.contributes.languages":"有助于语言声明。","vscode.extension.contributes.languages.aliases":"语言的别名。","vscode.extension.contributes.languages.configuration":"包含语言配置选项的文件的相对路径。","vscode.extension.contributes.languages.extensions":"与语言关联的文件扩展名。","vscode.extension.contributes.languages.filenamePatterns":"与语言关联的文件名 glob 模式。","vscode.extension.contributes.languages.filenames":"与语言关联的文件名。","vscode.extension.contributes.languages.firstLine":"与语言文件的第一行匹配的正则表达式。","vscode.extension.contributes.languages.icon":"要用作文件图标的图标,如果没有图标,主题将为相应语言提供一个。","vscode.extension.contributes.languages.icon.dark":"使用深色主题时的图标路径","vscode.extension.contributes.languages.icon.light":"使用浅色主题时的图标路径","vscode.extension.contributes.languages.id":"语言 ID。","vscode.extension.contributes.languages.mimetypes":"与语言关联的 Mime 类型。"},"vs/workbench/services/lifecycle/browser/lifecycleService":{lifecycleVeto:"可能无法保存所做的更改。请按“取消”,然后重试。"},"vs/workbench/services/localization/browser/localeService":{clearDisplayLanguageDetail:"按“重新加载”按钮以刷新页面并使用浏览器的语言。",clearDisplayLanguageMessage:"要更改显示语言,{0} 需要重新加载",relaunchDisplayLanguageDetail:"按“重新加载”按钮以刷新页面,并将显示语言设置为 {0}。",relaunchDisplayLanguageMessage:"要更改显示语言,{0} 需要重新加载",reload:"重新加载(&&R)"},"vs/workbench/services/localization/electron-sandbox/localeService":{argvInvalid:"无法编写显示语言。请打开运行时设置,更正其中的错误/警告,然后重试。",installing:"正在安装{0}语言支持...",openArgv:"打开运行时设置",restart:"重启(&&R)",restartDisplayLanguageDetail1:"要将显示语言更改为 {0},{1} 需要重启。",restartDisplayLanguageMessage1:"重启 {0} 以切换到 {1}?"},"vs/workbench/services/log/electron-sandbox/logService":{rendererLog:"窗口"},"vs/workbench/services/notification/common/notificationService":{neverShowAgain:"不再显示"},"vs/workbench/services/preferences/browser/keybindingsEditorInput":{keybindingsEditorLabelIcon:"键绑定编辑器标签的图标。",keybindingsInputName:"键盘快捷方式"},"vs/workbench/services/preferences/browser/keybindingsEditorModel":{"cat.title":"{0}: {1}",default:"系统",extension:"扩展",meta:"元数据",option:"选项",user:"用户"},"vs/workbench/services/preferences/browser/preferencesService":{defaultKeybindings:"默认的键绑定",emptyKeybindingsHeader:"将键绑定放在此文件中以覆盖默认值","fail.createSettings":"无法创建“{0}”({1})。",openFolderFirst:"首先打开一个文件夹或工作区,以创建工作区或文件夹设置。"},"vs/workbench/services/preferences/common/preferencesEditorInput":{settingsEditor2InputName:"设置",settingsEditorLabelIcon:"设置编辑器标签的图标。"},"vs/workbench/services/preferences/common/preferencesModels":{commonlyUsed:"常用设置",defaultKeybindingsHeader:"通过将键绑定放入键绑定文件来覆盖键绑定。"},"vs/workbench/services/preferences/common/preferencesValidation":{invalidTypeError:"设置的类型无效,应为 {0}。请使用 JSON 格式进行修复。",regexParsingError:"分析以下正则表达式(包含和不包含 u 标志)时出错:","validations.arrayIncorrectType":"类型不正确。应为数组。","validations.booleanIncorrectType":"类型错误,预期为“布尔”。","validations.colorFormat":"颜色格式无效。请使用 #RGB、#RGBA、#RRGGBB 或 #RRGGBBAA。","validations.exclusiveMax":"值必须严格小于 {0}。","validations.exclusiveMin":"值必须严格大于 {0}。","validations.expectedInteger":"值必须为整数。","validations.expectedNumeric":"值必须为数字。","validations.invalidStringEnumValue":"值不被接受。有效值: {0}。","validations.max":"值必须小于或等于 {0}。","validations.maxLength":"值的长度必须小于或等于 {0} 个字符。","validations.min":"值必须大于或等于 {0}。","validations.minLength":"值的长度不能少于 {0} 个字符。","validations.multipleOf":"值必须是 {0} 的倍数。","validations.objectIncorrectType":"类型不正确。应为对象。","validations.objectPattern":"不允许使用属性{0}。\r\n","validations.regex":"值必须匹配 regex “{0}”。","validations.stringArrayIncorrectType":"类型不正确。应为字符串数组。","validations.stringArrayItemEnum":"值 {0} 不是 {1} 其中之一","validations.stringArrayItemPattern":"值 {0} 必须与 regex {1} 匹配。","validations.stringArrayMaxItem":"数组必须最多有 {0} 项","validations.stringArrayMinItem":"数组必须至少有 {0} 项","validations.stringArrayUniqueItems":"数组具有重复项","validations.stringIncorrectEnumOptions":"枚举选项应为字符串,但有一个非字符串选项。请向扩展作者提交问题。","validations.stringIncorrectType":"类型不正确。应为“字符串”","validations.uriEmpty":"需要 URI。","validations.uriMissing":"需要 URI。","validations.uriSchemeMissing":"需要包含架构的 URI。"},"vs/workbench/services/progress/browser/progressService":{cancel:"取消",dismiss:"消除","progress.text2":"{0}: {1}","progress.title2":"[{0}]: {1}","progress.title3":"[{0}] {1}: {2}","status.progress":"进度消息"},"vs/workbench/services/remote/browser/remoteAgentService":{connectionError:"出现意外错误,需要重新加载此页面。",connectionErrorDetail:"工作台无法连接到服务器(错误: {0})",reload:"重新加载(&&R)"},"vs/workbench/services/remote/common/remoteExplorerService":{RemoteHelpInformationExtPoint:"为远程提供帮助信息","RemoteHelpInformationExtPoint.documentation":"项目文档页面的 URL 或返回此 URL 的命令","RemoteHelpInformationExtPoint.feedback":"项目反馈报告器的 URL 或返回 URL 的命令","RemoteHelpInformationExtPoint.feedback.deprecated":"请改用 {0}","RemoteHelpInformationExtPoint.getStarted":"项目入门页的 URL 或返回 URL 的命令,或项目扩展提供的演练 ID","RemoteHelpInformationExtPoint.issues":"项目问题列表的 URL 或返回 URL 的命令","RemoteHelpInformationExtPoint.reportIssue":"向项目的问题报告器返回 URL 的 URL 或命令","getStartedWalkthrough.id":"要打开的“入门”演练的 ID。"},"vs/workbench/services/remote/common/tunnelModel":{"remote.localPortMismatch.single":"无法使用本地端口 {0} 转发到远程端口 {1}。\r\n\r\n当已存在使用本地端口 {0} 的其他进程时,通常会发生这种情况。\r\n\r\n已改为使用端口号 {2}。","tunnel.forwardedPortsViewEnabled":"“端口”视图是否已启用。","tunnel.source.auto":"自动转发","tunnel.source.user":"用户转发","tunnel.staticallyForwarded":"静态转发"},"vs/workbench/services/remote/electron-sandbox/remoteAgentService":{connectionError:"无法连接到远程扩展主机服务器 (错误: {0})",devTools:"打开开发人员工具",directUrl:"在浏览器中打开"},"vs/workbench/services/search/browser/searchService":{errorSearchFile:"无法使用 Web 辅助角色文件搜索器进行搜索",errorSearchText:"无法使用 Web 辅助角色文本搜索器进行搜索"},"vs/workbench/services/search/common/queryBuilder":{"search.noWorkspaceWithName":"工作区文件夹不存在: {0}"},"vs/workbench/services/secrets/electron-sandbox/secretStorageService":{encryptionNotAvailableJustTroubleshootingGuide:"无法识别用于在当前桌面环境中存储加密相关数据的 OS keyring。",isGnome:"你正在 GNOME 环境中运行,但 OS keyring 不可用用于加密。请确保已安装并运行 gnome-keyring 或其他 libsecret 兼容实现。",isKwallet:"你正在 KDE 环境中运行,但 OS keyring 不可用于加密。请确保 kwallet 正在运行。",troubleshootingButton:"打开疑难解答指南",usePlainText:"使用较弱的加密",usePlainTextExtraSentence:"请打开疑难解答指南以解决此问题,也可以使用不用 OS keyring 的较弱加密。"},"vs/workbench/services/suggest/browser/simpleSuggestWidget":{ariaCurrenttSuggestionReadDetails:"{0},文档: {1}","label.desc":"{0},{1}","label.detail":"{0}{1}","label.full":"{0}{1},{2}",suggest:"建议"},"vs/workbench/services/textfile/browser/textFileService":{confirmMakeWriteable:"“{0}”已标记为只读。是否仍要保存?",confirmMakeWriteableDetail:"可通过设置将路径配置为只读。",confirmOverwrite:"“{0}”已存在。是否替换它?",deleted:"已删除",fileBinaryError:"文件似乎是二进制文件,不能作为文本打开",makeWriteableButtonLabel:"仍然保存(&&S)",overwriteIrreversible:'名为"{0}"的文件或文件夹已存在于"{1}"文件夹中。替换它将覆盖其当前内容。',readonly:"只读",readonlyAndDeleted:"已删除,只读",replaceButtonLabel:"替换(&&R)","textFileCreate.source":"文件已创建",textFileModelDecorations:"文本文件模型装饰","textFileOverwrite.source":"文件已替换"},"vs/workbench/services/textfile/common/textFileEditorModel":{"textFileCreate.source":"已更改文件编码"},"vs/workbench/services/textfile/common/textFileEditorModelManager":{genericSaveError:"未能保存“{0}”: {1}"},"vs/workbench/services/textfile/common/textFileSaveParticipant":{saveParticipants:"正在保存“{0}”"},"vs/workbench/services/textfile/electron-sandbox/nativeTextFileService":{"join.textFiles":"正在保存文本文件"},"vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl":{alreadyDebugging:"已经开始记录。","invalid.embeddedLanguages":'"contributes.{0}.embeddedLanguages" 中的值无效。必须为从作用域名称到语言的对象映射。提供的值: {1}',"invalid.injectTo":'"contributes.{0}.injectTo" 中的值无效。必须为语言范围名称数组。提供的值: {1}',"invalid.language":'"contributes.{0}.language" 中包含未知语言。提供的值: {1}',"invalid.path.0":"“contributes.{0}.path”中应为字符串。提供的值: {1}","invalid.path.1":"“contributes.{0}.path”({1})应包含在扩展的文件夹({2})内。这可能会使扩展不可移植。","invalid.scopeName":"“contributes.{0}.scopeName”中应为字符串。提供的值: {1}","invalid.tokenTypes":'"contributes.{0}.tokenTypes" 的值无效。必须为从作用域名称到标记类型的对象映射。当前值: {1}',progress1:"正在准备记录 TM 语法分析。完成后按“停止”。",progress2:"现在正在记录 TM 语法分析。完成后按“停止”。",stop:"停止"},"vs/workbench/services/textMate/common/TMGrammars":{"vscode.extension.contributes.grammars":"贡献 textmate tokenizer。","vscode.extension.contributes.grammars.balancedBracketScopes":"定义哪些范围名称包含平衡括号。","vscode.extension.contributes.grammars.embeddedLanguages":"如果此语法包含嵌入式语言,则为作用域名称到语言 ID 的映射。","vscode.extension.contributes.grammars.injectTo":"此语法注入到的语言范围名称列表。","vscode.extension.contributes.grammars.language":"此语法为其贡献了内容的语言标识符。","vscode.extension.contributes.grammars.path":'tmLanguage 文件的路径。该路径是相对于扩展文件夹,通常以 "./syntaxes/" 开头。',"vscode.extension.contributes.grammars.scopeName":"tmLanguage 文件所用的 textmate 范围名称。","vscode.extension.contributes.grammars.tokenTypes":"从作用域名到标记类型的映射。","vscode.extension.contributes.grammars.unbalancedBracketScopes":"定义哪些范围名称不包含平衡括号。"},"vs/workbench/services/themes/browser/fileIconThemeData":{"error.cannotparseicontheme":"分析文件图标文件时出现问题: {0}","error.invalidformat":"文件图标主题问题的格式无效: 应为对象。"},"vs/workbench/services/themes/browser/productIconThemeData":{defaultTheme:"默认值","error.cannotparseicontheme":"分析产品图标文件时出现问题: {0}","error.fontId":"字体 ID“{0}”缺失或无效。将跳过字体定义。","error.fontSrc":"字体 '{0}' 中的字体源无效。忽略源。","error.fontStyle":"字体“{0}”中的字体样式无效。将忽略设置。","error.fontWeight":"字体“{0}”中的字体粗细无效。将忽略设置。","error.icon.font":"正在跳过图标定义“{0}”。未知的字体。","error.icon.fontCharacter":"正在跳过图标定义“{0}”。未知的 fontCharacter。","error.invalidformat":"产品图标主题文件的格式无效: 应为对象。","error.missingProperties":"产品图标主题文件的格式无效: 必须包含图标定义和字体。","error.noFontSrc":"字体 '{0}' 中没有有效的字体源。忽略字体定义。","error.parseicondefs":"处理中的产品图标定义时出现问题{0}:\r\n{1}"},"vs/workbench/services/themes/browser/workbenchThemeService":{"error.cannotloadtheme":"无法加载 {0}: {1}"},"vs/workbench/services/themes/common/colorExtensionPoint":{colors:"颜色","contributes.color":"提供由扩展定义的主题颜色","contributes.color.description":"主题颜色的说明","contributes.color.id":"主题颜色标识符","contributes.color.id.format":"标识符只能包含字母、数字和点,且不能以点开头","contributes.defaults.dark":"深色主题的默认颜色。应为十六进制颜色值 (#RRGGBB[AA]) 或是主题颜色标识符,其提供默认值。","contributes.defaults.highContrast":"高对比度深色主题的默认颜色。十六进制颜色值 (#RRGGBB[AA])或提供默认值的主题化颜色的标识符。如果未提供,则“深色”用作高对比度深色主题的默认颜色。","contributes.defaults.highContrastLight":"高对比度浅色主题的默认颜色。十六进制颜色值 (#RRGGBB[AA])或提供默认值的主题化颜色的标识符。如果未提供,则“浅色”用作高对比度浅色主题的默认颜色。","contributes.defaults.light":"浅色主题的默认颜色。应为十六进制颜色值 (#RRGGBB[AA]) 或是主题颜色标识符,其提供默认值。",defaultDark:"深色默认",defaultHC:"高对比度默认",defaultLight:"浅色默认",description:"说明",id:"ID","invalid.colorConfiguration":'"configuration.colors" 必须是数组',"invalid.default.colorType":"{0} 必须为十六进制颜色值 (#RRGGBB[AA] 或 #RGB[A]) 或是主题颜色标识符,其提供默认值。","invalid.defaults":"必须定义 'configuration.colors.defaults',且其必须包含 'light' 和 'dark'","invalid.defaults.highContrast":"如果已定义,则 'configuration.colors.defaults.highContrast' 必须为字符串。","invalid.defaults.highContrastLight":"如果已定义,则 'configuration.colors.defaults.highContrastLight' 必须为字符串。","invalid.description":'必须定义 "configuration.colors.description" 且它不可为空',"invalid.id":'必须定义 "configuration.colors.id" 且它不可为空',"invalid.id.format":'"configuration.colors.id" 只能包含字母、数字和点,且不能以点开头'},"vs/workbench/services/themes/common/colorThemeData":{"error.cannotload":"分析 tmTheme 文件 {0} 时出现问题: {1}","error.cannotparse":"分析 tmTheme 文件时出现问题: {0}","error.cannotparsejson":"分析 JSON 主题文件 {0} 时出现问题","error.invalidformat":"JSON 主题文件的格式无效: 应为对象。","error.invalidformat.colors":"分析颜色主题文件时出现问题: {0}。属性“colors”不是“object”类型。","error.invalidformat.semanticTokenColors":'分析颜色主题文件时发生问题: {0}。属性 "semanticTokenColors" 包含无效的选择器',"error.invalidformat.tokenColors":'分析颜色主题文件时出现问题: {0}。属性 "tokenColors" 应为指定颜色的数组或是指向 TextMate 主题文件的路径',"error.plist.invalidformat":'分析 tmTheme 文件时出现问题: {0}。"settings" 不是数组。'},"vs/workbench/services/themes/common/colorThemeSchema":{"schema.colors":"语法突出显示颜色","schema.fontStyle.error":'字形必须为 "italic" (斜体)、"bold" (粗体)、"underline" (下划线)、"strikethrough" (删除线)、上述的组合或是为空字符串。',"schema.properties.name":"规则的描述。","schema.properties.scope":"此规则适用的范围选择器。","schema.semanticTokenColors":"语义标记的颜色","schema.supportsSemanticHighlighting":"是否应为此主题启用语义突出显示。","schema.token.background.warning":"暂不支持标记背景色。","schema.token.fontStyle":'这条规则的字形: "italic" (斜体)、"bold" (粗体)、"underline" (下划线)、"strikethrough" (删除线) 或是上述的组合。空字符串将取消继承的设置。',"schema.token.fontStyle.none":"无 (清除继承的设置)","schema.token.foreground":"标记的前景色。","schema.token.settings":"标记的颜色和样式。","schema.tokenColors.path":"tmTheme 文件路径(相对于当前文件)。","schema.workbenchColors":"工作台中的颜色"},"vs/workbench/services/themes/common/fileIconThemeSchema":{"schema.file":"默认文件图标,针对不与任何扩展名、文件名或语言 ID 匹配的所有文件显示。","schema.fileExtension":"关联的图标定义的 ID。","schema.fileExtensions":"将文件扩展名关联到图标。对象中的键是文件扩展名。扩展名是文件名的最后一部分,位于最后一个点之后 (不包括该点)。比较扩展名时不区分大小写。","schema.fileName":"关联的图标定义的 ID。","schema.fileNames":"将文件名关联到图标。对象中的键是完整文件名,其中不含任何路径字段。文件名可以包括点和可能有的文件扩展名。不允许使用模式或通配符。文件名匹配不区分大小写。","schema.folder":"折叠文件夹的文件夹图标,如果未设置 folderExpanded,也指展开文件夹的文件夹图标。","schema.folderExpanded":"展开文件夹的文件夹图标。展开文件夹图标是可选的。如果未设置,将显示为文件夹定义的图标。","schema.folderName":"关联的图标定义的 ID。","schema.folderNameExpanded":"关联的图标定义的 ID。","schema.folderNames":"将文件夹名关联到图标。对象中的键是文件夹名,其中不含任何路径字段。不允许使用模式或通配符。文件夹名匹配不区分大小写。","schema.folderNamesExpanded":"将文件夹名关联到展开文件夹的图标。对象中的键是文件夹名,其中不含任何路径字段。不允许使用模式或通配符。文件夹名匹配不区分大小写。","schema.font-format":"字体的格式。","schema.font-path":"相对于当前文件图标主题文件的字体路径。","schema.font-size":"字体的默认大小。请参阅 https://developer.mozilla.org/zh-CN/docs/Web/CSS/font-size 查看有效的值。","schema.font-style":"字体的样式。要了解有效值,请参阅 https://developer.mozilla.org/zh-cn/docs/Web/CSS/font-style。","schema.font-weight":"字体的粗细。要了解有效值,请参阅 https://developer.mozilla.org/zh-cn/docs/Web/CSS/font-weight。","schema.fontCharacter":"使用字形字体时: 要使用的字体中的字符。","schema.fontColor":"使用字形字体时: 要使用的颜色。","schema.fontId":"使用某种字体时: 字体的 ID。如果未设置,则默认为第一个字体定义。","schema.fontSize":"使用某种字体时: 文本字体的字体大小(以百分比表示)。如果未设置,则默认为字体定义中的大小。","schema.fonts":"图标定义中使用的字体。","schema.hidesExplorerArrows":"配置文件资源管理器的箭头是否应在此主题启用时隐藏。","schema.highContrast":"高对比度颜色主题中文件图标的可选关联。","schema.iconDefinition":"图标定义。对象键是定义的 ID。","schema.iconDefinitions":"将文件与图标关联时可使用的所有图标的说明。","schema.iconPath":"使用 SVG 或 PNG 时: 到图像的路径。该路径相对于图标设置文件。","schema.id":"字体的 ID。","schema.id.formatError":"ID 必须仅包含字母、数字、下划线和减号。","schema.languageId":"关联的图标定义的 ID。","schema.languageIds":"将语言与图标相关联。对象键是语言贡献点中定义的语言 ID。","schema.light":"浅色主题中文件图标的可选关联。","schema.rootFolder":"折叠的根文件夹的文件夹图标,如果未设置 rootFolderExpanded,也指展开的根文件夹的文件夹图标。","schema.rootFolderExpanded":"展开的根文件夹的文件夹图标。展开的根文件夹图标是可选的。如果未设置,将显示为根文件夹定义的图标。","schema.rootFolderNameExpanded":"关联的图标定义的 ID。","schema.rootFolderNames":"将根文件夹名称关联到图标。对象键是根文件夹名称。不允许使用模式或通配符。根文件夹名匹配不区分大小写。","schema.rootFolderNamesExpanded":"将根文件夹名称关联到展开的根文件夹的图标。对象键是根文件夹名称。不允许使用模式或通配符。根文件夹名匹配不区分大小写。","schema.showLanguageModeIcons":"配置如果主题未为某个语言定义图标,是否应使用默认语言图标。","schema.src":"字体的位置。"},"vs/workbench/services/themes/common/iconExtensionPoint":{"contributes.icon.default":"图标的默认值。引用现有主题图标或图标字体中的图标。","contributes.icon.default.fontCharacter":"图标字体中图标的字符。","contributes.icon.default.fontPath":"定义图标的图标字体的路径。","contributes.icon.description":"主题图标的说明","contributes.icon.id":"主题图标标识符","contributes.icon.id.format":'标识符只能包含字母、数字和减号,且必须按 "component-iconname" 格式由至少两段组成。',"contributes.icons":"提供由扩展定义的主题图标","invalid.icons.configuration":"'configuration.icons' 必须是以图标名称为属性的对象。","invalid.icons.default":"'configuration.icons.default' 必须是对其他主题图标的 ID (字符串)或图标定义(对象)的引用,属性为 `fontPath` 和 `fontCharacter`。","invalid.icons.default.fontPath.extension":"预期 `contributes.icons.default.fontPath` 的文件扩展名为 'woff',woff2' 或 'ttf',为 '{0}'。","invalid.icons.default.fontPath.path":"预期 `contributes.icons.default.fontPath` ({0}) 将包含在扩展的文件夹 ({0}) 中。","invalid.icons.description":"必须定义 'configuration.icons.description' 且它不可为空","invalid.icons.id.format":"'configuration.icons' 键标识图标 ID,只能包含字母、数字和减号。它们需要按 `component-iconname` 格式由至少两段组成。"},"vs/workbench/services/themes/common/productIconThemeSchema":{"schema.font-format":"字体的格式。","schema.font-path":"相对于当前产品图标主题文件的字体路径。","schema.font-style":"字体的样式。要了解有效值,请参阅 https://developer.mozilla.org/zh-cn/docs/Web/CSS/font-style。","schema.font-weight":"字体的粗细。要了解有效值,请参阅 https://developer.mozilla.org/zh-cn/docs/Web/CSS/font-weight。","schema.iconDefinitions":"字体字符的图标名称的关联。","schema.id":"字体的 ID。","schema.id.formatError":"ID 必须仅包含字母、数字、下划线和减号。","schema.src":"字体的位置。"},"vs/workbench/services/themes/common/themeConfiguration":{autoDetectHighContrast:"如果已启用,则在操作系统使用高对比度主题时,将自动更改为高对比度主题。要使用的高对比度主题是由“{0}”和“{1}”指定的。",colorTheme:"指定未启用 {0} 时在工作台中使用颜色主题。",colorThemeError:"主题未知或未安装。",defaultProductIconThemeDesc:"默认",defaultProductIconThemeLabel:"默认",detectColorScheme:"如果已启用,将根据系统颜色模式自动选择颜色主题。如果系统颜色模式为深色,则使用 {0},否则使用 {1}。",editorColors:"替代当前所选颜色主题中的编辑器语法颜色和字形。","editorColors.comments":"设置注释的颜色和样式","editorColors.functions":"设置函数定义与引用的颜色和样式。","editorColors.keywords":"设置关键字的颜色和样式。","editorColors.numbers":"设置数字的颜色和样式。","editorColors.semanticHighlighting":"是否应为此主题启用语义突出显示。","editorColors.semanticHighlighting.deprecationMessage":'改为在 "editor.semanticTokenColorCustomizations" 设置中使用 "enabled"。',"editorColors.semanticHighlighting.deprecationMessageMarkdown":"请改为在 {0} 设置中使用 `enabled`。","editorColors.semanticHighlighting.enabled":"是否对此主题启用或禁用语义突出显示","editorColors.semanticHighlighting.rules":"此主题的语义标记样式规则。","editorColors.strings":"设置字符串文本的颜色和样式","editorColors.textMateRules":"使用 TextMate 主题规则设置颜色和样式(高级)。","editorColors.types":"设置类型定义与引用的颜色和样式。","editorColors.variables":"设置变量定义和引用的颜色和样式。",iconTheme:'指定工作台中使用的文件图标主题;若指定为 "null",则不显示任何文件图标。',iconThemeError:"文件图标主题未知或未安装。",noIconThemeDesc:"无文件图标",noIconThemeLabel:"无",preferredDarkColorTheme:"指定当系统颜色模式为深色并启用 {0} 时的颜色主题。",preferredHCDarkColorTheme:"指定在高对比度深色模式下启用 {0} 时的颜色主题。",preferredHCLightColorTheme:"指定在高对比度浅色模式下启用 {0} 时的颜色主题。",preferredLightColorTheme:"指定当系统颜色模式为浅色并启用 {0} 时的颜色主题。",productIconTheme:"指定使用的产品图标主题。",productIconThemeError:"产品图标主题未知或未安装。",semanticTokenColors:"从当前所选颜色主题重写编辑器语义标记颜色和样式。",workbenchColors:"覆盖当前所选颜色主题的颜色。"},"vs/workbench/services/themes/common/themeExtensionPoints":{"color themes":"颜色主题","file icon themes":"文件图标主题","invalid.path.1":"“contributes.{0}.path”({1})应包含在扩展的文件夹({2})内。这可能会使扩展不可移植。","product icon themes":"产品图标主题",reqarray:"扩展点“{0}”必须是数组。 ",reqid:'contributes.{0}.id" 中的预期字符串。提供的值: {1}',reqpath:"“contributes.{0}.path”中应为字符串。提供的值: {1}",themes:"主题","vscode.extension.contributes.iconThemes":"提供文件图标主题。","vscode.extension.contributes.iconThemes.id":"在用户设置中使用的文件图标主题的 ID。","vscode.extension.contributes.iconThemes.label":"文件图标主题的标签,如 UI 所示。","vscode.extension.contributes.iconThemes.path":'文件图标主题定义文件的路径。该路径相对于扩展文件夹,通常为 "./fileicons/awesome-icon-theme.json"。',"vscode.extension.contributes.productIconThemes":"贡献产品图标主题。","vscode.extension.contributes.productIconThemes.id":"用户设置中使用的产品图标主题的 ID。","vscode.extension.contributes.productIconThemes.label":"产品图标主题的标签,如 UI 所示。","vscode.extension.contributes.productIconThemes.path":'产品图标主题定义文件的路径。该路径相对于扩展文件夹,通常为 "./producticons/awesome-product-icon-theme.json"。',"vscode.extension.contributes.themes":"提供 TextMate 颜色主题。","vscode.extension.contributes.themes.id":"用户设置中使用的颜色主题的 ID。","vscode.extension.contributes.themes.label":"显示在 UI 中的颜色主题标签。","vscode.extension.contributes.themes.path":'tmTheme 文件的路径。该路径相对于扩展文件夹,通常为 "./colorthemes/awesome-color-theme.json"。',"vscode.extension.contributes.themes.uiTheme":"用于定义编辑器周围颜色的基本主题: 'vs' 是浅色主题, 'vs-dark' 是深色主题。'hc-black' 是深色高对比度主题,'hc-light' 是浅色高对比度主题。"},"vs/workbench/services/themes/common/tokenClassificationExtensionPoint":{"contributes.color.description":"语义标记类型的说明","contributes.semanticTokenModifiers":"提供语义标记修饰符。","contributes.semanticTokenModifiers.description":"语义令牌修饰符的说明","contributes.semanticTokenModifiers.id":"语义令牌修饰符的标识符","contributes.semanticTokenModifiers.id.format":"标识符的格式应为letterOrDigit[_-letterOrDigit]*","contributes.semanticTokenScopes":"提供语义令牌范围映射。","contributes.semanticTokenScopes.languages":"列出默认语言。","contributes.semanticTokenScopes.scopes":"将语义令牌(由语义令牌选择器描述)映射到用于表示该令牌的一个或多个 textMate 作用域。","contributes.semanticTokenTypes":"贡献语义令牌类型。","contributes.semanticTokenTypes.id":"语义令牌类型的标识符","contributes.semanticTokenTypes.id.format":"标识符的格式应为letterOrDigit[_-letterOrDigit]*","contributes.semanticTokenTypes.superType":"语义令牌类型的超类型","contributes.semanticTokenTypes.superType.format":"超类型的格式应为 letterOrDigit[_-letterOrDigit]*","invalid.description":'必须定义 "configuration.{0}.description" 且它不可为空',"invalid.id":'必须定义 "configuration.{0}.id" 且它不可为空',"invalid.id.format":'"configuration.{0}.id" 必须采用 letterOrDigit[-_letterOrDigit]* 模式',"invalid.semanticTokenModifierConfiguration":"“configuration.semanticTokenModifier” 必须是数组","invalid.semanticTokenScopes.configuration":'"configuration.semanticTokenScopes" 必须是一个数组',"invalid.semanticTokenScopes.language":'"configuration.semanticTokenScopes.language" 的值必须是字符串',"invalid.semanticTokenScopes.scopes":'"configuration.semanticTokenScopes.scopes" 必须定义为对象',"invalid.semanticTokenScopes.scopes.selector":'"configuration.semanticTokenScopes.scopes": 解析选择器{0}时出现问题。',"invalid.semanticTokenScopes.scopes.value":'"configuration.semanticTokenScopes.scopes" 的值必须是字符串数组',"invalid.semanticTokenTypeConfiguration":"“configuration.semanticTokenType”必须是数组","invalid.superType.format":"“ configuration.{0}.superType”必须遵循格式 letterOrDigit [-_letterOrDigit] *"},"vs/workbench/services/themes/electron-sandbox/themes.contribution":{"window.systemColorTheme":"设置本机 UI 元素的颜色模式,例如本机对话框、菜单和标题栏。即使在浅色模式下配置 OS,也可以为窗口选择深色系统颜色主题。还可以配置为根据 {0} 设置自动调整。\r\n\r\n注意: 启用 {1} 时会忽略此设置。","window.systemColorTheme.auto":"对浅色主题使用浅色本机小组件颜色,对深色主题使用深色本机小组件颜色。","window.systemColorTheme.dark":"使用深色本机小组件颜色。","window.systemColorTheme.default":"本机小组件颜色与系统颜色匹配。","window.systemColorTheme.light":"使用浅色本机小组件颜色。"},"vs/workbench/services/userDataProfile/browser/extensionsResource":{disabled:"已禁用",exclude:"选择 {0} 扩展",extensions:"扩展"},"vs/workbench/services/userDataProfile/browser/globalStateResource":{globalState:"UI 状态"},"vs/workbench/services/userDataProfile/browser/keybindingsResource":{keybindings:"键盘快捷方式"},"vs/workbench/services/userDataProfile/browser/settingsResource":{settings:"设置"},"vs/workbench/services/userDataProfile/browser/snippetsResource":{exclude:"选择片段 {0}",snippets:"代码片段"},"vs/workbench/services/userDataProfile/browser/tasksResource":{tasks:"用户任务"},"vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService":{"applied profile":"{0}: 已成功应用。",cancel:"取消",close:"关闭",copy:"复制链接(&&C)","copy profile from":"从以下位置复制配置文件",create:"创建","create from":"复制来源:","create from profile":"创建配置文件: {0}","create new":"新建配置文件(&&C)","create new profle":"创建新配置文件...","create new title":"新建配置文件","create profile":"创建配置文件","customise the profile":"选择要在配置文件中配置的内容:","empty profile":"无",export:"导出","export profile dialog":"保存配置文件","export profile name":"为配置文件命名","export profile title":"导出配置文件","export success":"已成功导出配置文件“{0}”。",extensions:"扩展",file:"文件","from default":"从默认配置文件","from existing profiles":"现有配置文件","from templates":"配置文件模板",icon:"图标:",import:"创建配置文件","import in desktop":"在 {0} 中创建配置文件","import profile":"创建配置文件","install extensions title":"安装扩展","invalid configurations":"配置文件应至少包含一个配置。",keybindings:"键盘快捷方式","learn more":"了解详细信息",local:"本地",name:"配置文件名称","name placeholder":"配置文件名称","name required":"配置文件名称是必需的,并且必须为非空值。",open:"打开链接(&&O)","open in":"在 {0} 中打开(&&O)",overwrite:"覆盖(&&O)","preview profile":"预览配置文件","preview profile message":"默认情况下,在 Web 上预览配置文件时不会安装扩展。在导入配置文件之前,你仍然可以手动安装它们。 ","profile already exists":'已存在 "{0}" 同名的配置文件。是否要覆盖?',"profile import error":"导入配置文件时出错: {0}","profile name required":"必须提供配置文件名称。",profileExists:"具有名称 {0} 的配置文件已经存在。","profiles.applying":"{0}: 正在应用...","profiles.exporting":"{0}: 正在导出","progress extensions":"正在应用扩展...","progress global state":"正在应用状态...","progress keybindings":"正在应用键盘快捷方式……","progress settings":"正在应用设置...","progress snippets":"正在应用代码片段...","progress tasks":"正在应用任务...","resolving uri":"{0}: 正在解析配置文件内容...",save:"保存","save profile":"编辑 {0} 配置文件...",select:"选择 {0}","select icon":"图标: {0}","select profile":"选择配置文件","select profile content handler":"将“{0}”配置文件导出为...",settings:"设置",snippets:"用户代码片段","switching profile":"切换配置文件……",tasks:"用户任务","troubleshoot issue":"排查问题","troubleshoot profile progress":"设置配置文件疑难解答: {0}","use default profile":"正在使用默认配置文件"},"vs/workbench/services/userDataProfile/browser/userDataProfileManagement":{cannotDeleteDefaultProfile:"无法删除默认配置文件。",cannotRenameDefaultProfile:"无法重命名默认配置文件","reload button":"重载(&&R)","reload message":"切换配置文件需要重新加载 VS Code。","reload message when removed":"已删除当前配置文件。请重新加载以切换回默认配置文件","reload message when updated":"已更新当前配置文件。请重新加载以切换回更新的配置文件","switch profile":"正在切换到配置文件。"},"vs/workbench/services/userDataProfile/common/userDataProfile":{defaultProfileIcon:"默认配置文件的图标。",profile:"配置文件",profiles:"个人资料"},"vs/workbench/services/userDataProfile/common/userDataProfileIcons":{settingsViewBarIcon:"视图栏中的“设置”图标。"},"vs/workbench/services/userDataSync/browser/userDataSyncWorkbenchService":{"choose account placeholder":"选择要登录的帐户","conflicts detected":"检测到冲突","download sync activity dialog open label":"保存","download sync activity dialog title":"选择要下载“设置同步”活动的文件夹","last used":"上次使用时同步",no:"否","no account":"没有可用的帐户。","no authentication providers":"没有可用的身份验证提供程序,因此无法启用设置同步。",others:"其他","replace local":"替换本地(&&L)","replace remote":"替换远程(&&R)",reset:"这将清除云中的数据,并在所有设备上停止同步。","reset title":"清除",resetButton:"重置(&&R)",resolve:"请解决冲突以打开...","resolving conflicts":"正在解决冲突...","settings sync":"设置同步","show conflicts":"显示冲突(&&S)","sign in using account":"使用 {0} 登录","signed in":"已登录","sync in progress":"正在启用设置同步。是否要取消它?","sync turned on":"{0} 已启用","syncing...":"正在启用...","turning on":"正在打开…",yes:"是(&&Y)"},"vs/workbench/services/userDataSync/common/userDataSync":{"download sync activity title":"下载设置同步活动",extensions:"扩展",keybindings:"键盘快捷方式",profiles:"个人资料",settings:"设置",snippets:"用户代码片段","sync category":"设置同步",syncViewIcon:"查看“设置同步”视图的图标。",tasks:"用户任务","ui state label":"UI 状态","workspace state label":"工作区状态"},"vs/workbench/services/views/browser/viewDescriptorService":{hideView:"隐藏“{0}”",resetViewLocation:"重置位置"},"vs/workbench/services/views/browser/viewsService":{editor:"文本编辑器","focus view":"焦点在 {0} 视图上",resetViewLocation:"重置位置","show view":"显示 {0}","toggle view":"切换 {0}"},"vs/workbench/services/views/common/viewContainerModel":{showViewsLog:"显示视图日志"},"vs/workbench/services/voiceRecognition/electron-sandbox/workbenchVoiceRecognitionService":{voiceTranscription:"语音听录",voiceTranscriptionError:"语音听录失败: {0}",voiceTranscriptionGettingReady:"正在准备麦克风...",voiceTranscriptionRecording:"正在从麦克风录制..."},"vs/workbench/services/workingCopy/common/fileWorkingCopyManager":{confirmMakeWriteable:"“{0}”已标记为只读。是否仍要保存?",confirmMakeWriteableDetail:"可通过设置将路径配置为只读。",confirmOverwrite:"“{0}”已存在。是否替换它?",deleted:"已删除","fileWorkingCopyCreate.source":"文件已创建",fileWorkingCopyDecorations:"文件工作副本装饰","fileWorkingCopyReplace.source":"文件已替换",makeWriteableButtonLabel:"仍然保存(&&S)",overwriteIrreversible:'名为"{0}"的文件或文件夹已存在于"{1}"文件夹中。替换它将覆盖其当前内容。',readonly:"只读",readonlyAndDeleted:"已删除,只读",replaceButtonLabel:"替换(&&R)"},"vs/workbench/services/workingCopy/common/storedFileWorkingCopy":{discard:"放弃",genericSaveError:"未能保存“{0}”: {1}",overwrite:"覆盖",overwriteElevated:"以管理员身份覆盖...",overwriteElevatedSudo:"以 Sudo 覆盖...",permissionDeniedSaveError:"无法保存“{0}”: 权限不足。选择“以管理员身份覆盖”可作为管理员重试。",permissionDeniedSaveErrorSudo:'保存 "{0}"失败: 权限不足。选择 "以超级用户身份重试" 以超级用户身份重试。',readonlySaveError:'未能保存 "{0}": 文件是只读的。可选择 "覆盖" 以尝试使其可写。',readonlySaveErrorAdmin:'未能保存 "{0}": 文件是只读的。以管理员身份选择 "以管理员身份覆盖" 重试。',readonlySaveErrorSudo:'保存"{0}"失败: 文件为只读。选择“覆盖为Sudo”以用超级用户身份重试。',retry:"重试",saveAs:"另存为...",saveElevated:"以管理员身份重试...",saveElevatedSudo:"以 Sudo 重试。",staleSaveError:'未能保存 "{0}": 文件的内容较新。是否要用所做的更改覆盖该文件?'},"vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager":{"join.fileWorkingCopyManager":"正在保存工作副本"},"vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant":{saveParticipants:"正在保存“{0}”"},"vs/workbench/services/workingCopy/common/workingCopyHistoryService":{"default.source":"已保存文件","join.workingCopyHistory":"正在保存本地历史记录","moved.source":"已移动文件","renamed.source":"已重命名文件"},"vs/workbench/services/workingCopy/common/workingCopyHistoryTracker":{"undoRedo.source":"撤消/重做"},"vs/workbench/services/workingCopy/electron-sandbox/workingCopyBackupService":{"join.workingCopyBackups":"备份工作副本"},"vs/workbench/services/workingCopy/electron-sandbox/workingCopyBackupTracker":{backupBeforeShutdownDetail:"点击‘取消’以停止等待,并保存或还原具有未保存更改的编辑器。",backupBeforeShutdownMessage:"备份具有未保存更改的编辑器需要的时间较长...",backupErrorDetails:"请先尝试保存或还原具有未保存更改的编辑器,然后重试。",backupTrackerBackupFailed:"以下具有未保存更改的编辑器无法保存到备份位置。",backupTrackerConfirmFailed:"无法保存或还原以下具有未保存更改的编辑器。",discardBackupsBeforeShutdown:"放弃备份需要的时间较长...",ok:"确定(&&O)",revertBeforeShutdown:"还原具有未保存更改的编辑器需要的时间较长...",saveBeforeShutdown:"保存具有未保存更改的编辑器需要的时间较长...",shutdownForceClose:"仍然关闭",shutdownForceQuit:"仍然退出",shutdownForceReload:"仍然重新加载"},"vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService":{errorInvalidTaskConfiguration:"无法写入工作区配置文件。请打开文件以更正错误或警告,然后重试。",openWorkspaceConfigurationFile:"打开工作区配置",save:"保存",saveWorkspace:"保存工作区"},"vs/workbench/services/workspaces/browser/workspaceTrustEditorInput":{workspaceTrustEditorInputName:"工作区信任",workspaceTrustEditorLabelIcon:"工作区信任编辑器标签的图标。"},"vs/workbench/services/workspaces/electron-sandbox/workspaceEditingService":{doNotAskAgain:"始终放弃无标题工作区而不询问",doNotSave:"不保存(&&N)","restartExtensionHost.reason":"正在打开多根工作区。",save:"保存(&&S)",saveWorkspaceDetail:"若要再次打开此工作区,请先保存。",saveWorkspaceMessage:"你是否要将你的工作区配置保存为文件?",workspaceOpenedDetail:"已在另一个窗口打开工作区。请先关闭该窗口,然后重试。",workspaceOpenedMessage:"无法保存工作区“{0}”"}}})[e]||(null==(o=null==t?void 0:t.contents)?void 0:o[e])||{})[s];return r||(r=i),me(r,n)}function fe(e,t,...i){const n=me(t,i);return{value:n,original:n}}var _e,be;const ve="en";let Se,Ce,Ee,we=!1,Te=!1,ye=!1,Re=!1,Le=!1,Ie=!1,Ae=!1,Ne=ve,ke=ve;const De=globalThis;let Oe;void 0!==De.vscode&&void 0!==De.vscode.process?Oe=De.vscode.process:"undefined"!=typeof process&&"string"==typeof(null===(_e=null===process||void 0===process?void 0:process.versions)||void 0===_e?void 0:_e.node)&&(Oe=process);const xe="string"==typeof(null===(be=null==Oe?void 0:Oe.versions)||void 0===be?void 0:be.electron)&&"renderer"===(null==Oe?void 0:Oe.type);if("object"==typeof Oe){we="win32"===Oe.platform,Te="darwin"===Oe.platform,ye="linux"===Oe.platform,ye&&Oe.env.SNAP&&Oe.env.SNAP_REVISION,Oe.env.CI||Oe.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Se=ve,Ne=ve;const e=Oe.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),i=t.availableLanguages["*"];Se=t.locale,ke=t.osLocale,Ne=i||ve,Ce=t._translationsConfigFile}catch(sue){}Re=!0}else"object"!=typeof navigator||xe||(Ee=navigator.userAgent,we=Ee.indexOf("Windows")>=0,Te=Ee.indexOf("Macintosh")>=0,Ie=(Ee.indexOf("Macintosh")>=0||Ee.indexOf("iPad")>=0||Ee.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,ye=Ee.indexOf("Linux")>=0,Ae=(null==Ee?void 0:Ee.indexOf("Mobi"))>=0,Le=!0,pe("vs/base/common/platform",{key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Se=ve,Ne=Se,ke=navigator.language);const Me=we,Pe=Te,Fe=ye,Be=Re,He=Le,We=Le&&"function"==typeof De.importScripts?De.origin:void 0,Ue=Ie,Ve=Ae,Ge=Ee,ze=Ne,Ke="function"==typeof De.postMessage&&!De.importScripts,Ye=(()=>{if(Ke){const e=[];De.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=e.length;i{const n=++t;e.push({id:n,callback:i}),De.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})(),qe=Te||Ie?2:we?1:3;let $e=!0,je=!1;function Xe(){if(!je){je=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);$e=513===t[0]}return $e}const Je=!!(Ge&&Ge.indexOf("Chrome")>=0),Qe=!!(Ge&&Ge.indexOf("Firefox")>=0),Ze=!!(!Je&&Ge&&Ge.indexOf("Safari")>=0),et=!!(Ge&&Ge.indexOf("Edg/")>=0),tt=!!(Ge&&Ge.indexOf("Android")>=0),it={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var nt;!function(e){function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;const i=Object.freeze([]);function*n(e){yield e}e.empty=function(){return i},e.single=n,e.wrap=function(e){return t(e)?e:n(e)},e.from=function(e){return e||i},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const i of e)if(t(i))return!0;return!1},e.find=function(e,t){for(const i of e)if(t(i))return i},e.filter=function*(e,t){for(const i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(const n of e)yield t(n,i++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,i){let n=i;for(const o of e)n=t(n,o);return n},e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);to}]},e.asyncToArray=async function(e){const t=[];for await(const i of e)t.push(i);return Promise.resolve(t)}}(nt||(nt={}));let ot=class e{constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}};ot.Undefined=new ot(void 0);class st{constructor(){this._first=ot.Undefined,this._last=ot.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ot.Undefined}clear(){let e=this._first;for(;e!==ot.Undefined;){const t=e.next;e.prev=ot.Undefined,e.next=ot.Undefined,e=t}this._first=ot.Undefined,this._last=ot.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new ot(e);if(this._first===ot.Undefined)this._first=i,this._last=i;else if(t){const e=this._last;this._last=i,i.prev=e,e.next=i}else{const e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==ot.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ot.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ot.Undefined&&e.next!==ot.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ot.Undefined&&e.next===ot.Undefined?(this._first=ot.Undefined,this._last=ot.Undefined):e.next===ot.Undefined?(this._last=this._last.prev,this._last.next=ot.Undefined):e.prev===ot.Undefined&&(this._first=this._first.next,this._first.prev=ot.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ot.Undefined;)yield e.element,e=e.next}}const rt="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",at=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const i of rt)e.indexOf(i)>=0||(t+="\\"+i);return t+="\\s]+)",new RegExp(t,"g")}();function lt(e){let t=at;if(e&&e instanceof RegExp)if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}return t.lastIndex=0,t}const ct=new st;function dt(e,t,i,n,o){if(t=lt(t),o||(o=nt.first(ct)),i.length>o.maxLen){let s=e-o.maxLen/2;return s<0?s=0:n+=s,dt(e,t,i=i.substring(s,e+o.maxLen/2),n,o)}const s=Date.now(),r=e-1-n;let a=-1,l=null;for(let c=1;!(Date.now()-s>=o.timeBudget);c++){const e=r-o.windowSize*c;t.lastIndex=Math.max(0,e);const n=ht(t,i,r,a);if(!n&&l)break;if(l=n,e<=0)break;a=e}if(l){const e={word:l[0],startColumn:n+1+l.index,endColumn:n+1+l.index+l[0].length};return t.lastIndex=0,e}return null}function ht(e,t,i,n){let o;for(;o=e.exec(t);){const t=o.index||0;if(t<=i&&e.lastIndex>=i)return o;if(n>0&&t>n)return null}return null}ct.unshift({maxLen:1e3,windowSize:15,timeBudget:150});class ut{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class gt{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class mt{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return ft(e,t)}compute(e,t,i){return i}}class pt{constructor(e,t){this.newValue=e,this.didChange=t}}function ft(e,t){if("object"!=typeof e||"object"!=typeof t||!e||!t)return new pt(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){const i=Array.isArray(e)&&Array.isArray(t)&&b(e,t);return new pt(t,!i)}let i=!1;for(const n in t)if(t.hasOwnProperty(n)){const o=ft(e[n],t[n]);o.didChange&&(e[n]=o.newValue,i=!0)}return new pt(e,i)}class _t{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return ft(e,t)}validate(e){return this.defaultValue}}class bt{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return ft(e,t)}validate(e){return void 0===e?this.defaultValue:e}compute(e,t,i){return i}}function vt(e,t){return void 0===e?t:"false"!==e&&Boolean(e)}class St extends bt{constructor(e,t,i,n=void 0){void 0!==n&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return vt(e,this.defaultValue)}}function Ct(e,t,i,n){if(void 0===e)return t;let o=parseInt(e,10);return isNaN(o)?t:(o=Math.max(i,o),o=Math.min(n,o),0|o)}class Et extends bt{static clampedInt(e,t,i,n){return Ct(e,t,i,n)}constructor(e,t,i,n,o,s=void 0){void 0!==s&&(s.type="integer",s.default=i,s.minimum=n,s.maximum=o),super(e,t,i,s),this.minimum=n,this.maximum=o}validate(e){return Et.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function wt(e,t,i,n){if(void 0===e)return t;const o=Tt.float(e,t);return Tt.clamp(o,i,n)}class Tt extends bt{static clamp(e,t,i){return ei?i:e}static float(e,t){if("number"==typeof e)return e;if(void 0===e)return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,o){void 0!==o&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}validate(e){return this.validationFn(Tt.float(e,this.defaultValue))}}class yt extends bt{static string(e,t){return"string"!=typeof e?t:e}constructor(e,t,i,n=void 0){void 0!==n&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return yt.string(e,this.defaultValue)}}function Rt(e,t,i,n){return"string"!=typeof e?t:n&&e in n?n[e]:-1===i.indexOf(e)?t:e}class Lt extends bt{constructor(e,t,i,n,o=void 0){void 0!==o&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return Rt(e,this.defaultValue,this._allowedValues)}}class It extends mt{constructor(e,t,i,n,o,s,r=void 0){void 0!==r&&(r.type="string",r.enum=o,r.default=n),super(e,t,i,r),this._allowedValues=o,this._convert=s}validate(e){return"string"!=typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}var At,Nt;!function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(At||(At={}));class kt extends mt{constructor(){super(51,"fontLigatures",kt.OFF,{anyOf:[{type:"boolean",description:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:pe("vs/editor/common/config/editorOptions","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 void 0===e?this.defaultValue:"string"==typeof e?"false"===e||0===e.length?kt.OFF:"true"===e?kt.ON:e:Boolean(e)?kt.ON:kt.OFF}}kt.OFF='"liga" off, "calt" off',kt.ON='"liga" on, "calt" on';class Dt extends mt{constructor(){super(54,"fontVariations",Dt.OFF,{anyOf:[{type:"boolean",description:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","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 void 0===e?this.defaultValue:"string"==typeof e?"false"===e?Dt.OFF:"true"===e?Dt.TRANSLATE:e:Boolean(e)?Dt.TRANSLATE:Dt.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}Dt.OFF="normal",Dt.TRANSLATE="translate";class Ot extends mt{constructor(){super(53,"fontWeight",Yt.fontWeight,{anyOf:[{type:"number",minimum:Ot.MINIMUM_VALUE,maximum:Ot.MAXIMUM_VALUE,errorMessage:pe("vs/editor/common/config/editorOptions","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:Ot.SUGGESTION_VALUES}],default:Yt.fontWeight,description:pe("vs/editor/common/config/editorOptions","fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(Et.clampedInt(e,Yt.fontWeight,Ot.MINIMUM_VALUE,Ot.MAXIMUM_VALUE))}}Ot.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],Ot.MINIMUM_VALUE=1,Ot.MAXIMUM_VALUE=1e3;class xt extends _t{constructor(){super(145)}compute(e,t,i){return xt.computeLayout(t,{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 t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const o=(i+e.viewLineCount+n)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:o,minimapLineCount:Math.floor(e.viewLineCount/o)}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=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(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const s=t.stableMinimapLayoutInput,r=s&&e.outerHeight===s.outerHeight&&e.lineHeight===s.lineHeight&&e.typicalHalfwidthCharacterWidth===s.typicalHalfwidthCharacterWidth&&e.pixelRatio===s.pixelRatio&&e.scrollBeyondLastLine===s.scrollBeyondLastLine&&e.paddingTop===s.paddingTop&&e.paddingBottom===s.paddingBottom&&e.minimap.enabled===s.minimap.enabled&&e.minimap.side===s.minimap.side&&e.minimap.size===s.minimap.size&&e.minimap.showSlider===s.minimap.showSlider&&e.minimap.renderCharacters===s.minimap.renderCharacters&&e.minimap.maxColumn===s.minimap.maxColumn&&e.minimap.scale===s.minimap.scale&&e.verticalScrollbarWidth===s.verticalScrollbarWidth&&e.isViewportWrapping===s.isViewportWrapping,a=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let h=o>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const u=e.minimap.maxColumn,g=e.minimap.size,m=e.minimap.side,p=e.verticalScrollbarWidth,f=e.viewLineCount,_=e.remainingWidth,b=e.isViewportWrapping,v=d?2:3;let S=Math.floor(o*n);const C=S/o;let E=!1,w=!1,T=v*h,y=h/o,R=1;if("fill"===g||"fit"===g){const{typicalViewportLineCount:i,extraLinesBeforeFirstLine:s,extraLinesBeyondLastLine:l,desiredRatio:d,minimapLineCount:u}=xt.computeContainedMinimapLineCount({viewLineCount:f,scrollBeyondLastLine:c,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:a,pixelRatio:o});if(f/u>1)E=!0,w=!0,h=1,T=1,y=h/o;else{let n=!1,c=h+1;if("fit"===g){const e=Math.ceil((s+f+l)*T);b&&r&&_<=t.stableFitRemainingWidth?(n=!0,c=t.stableFitMaxMinimapScale):n=e>S}if("fill"===g||n){E=!0;const n=h;T=Math.min(a*o,Math.max(1,Math.floor(1/d))),b&&r&&_<=t.stableFitRemainingWidth&&(c=t.stableFitMaxMinimapScale),h=Math.min(c,Math.max(1,Math.floor(T/v))),h>n&&(R=Math.min(2,h/n)),y=h/o/R,S=Math.ceil(Math.max(i,s+f+l)*T),b?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=_,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const L=Math.floor(u*y),I=Math.min(L,Math.max(0,Math.floor((_-p-2)*y/(l+y)))+8);let A=Math.floor(o*I);const N=A/o;return A=Math.floor(A*R),{renderMinimap:d?1:2,minimapLeft:"left"===m?0:i-I-p,minimapWidth:I,minimapHeightIsEditorHeight:E,minimapIsSampling:w,minimapScale:h,minimapLineHeight:T,minimapCanvasInnerWidth:A,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:N,minimapCanvasOuterHeight:C}}static computeLayout(e,t){const i=0|t.outerWidth,n=0|t.outerHeight,o=0|t.lineHeight,s=0|t.lineNumbersDigitCount,r=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,l=t.pixelRatio,c=t.viewLineCount,d=e.get(137),h="inherit"===d?e.get(136):d,u="inherit"===h?e.get(132):h,g=e.get(135),m=t.isDominatedByLongLines,p=e.get(57),f=0!==e.get(68).renderType,_=e.get(69),b=e.get(105),v=e.get(84),S=e.get(73),C=e.get(103),E=C.verticalScrollbarSize,w=C.verticalHasArrows,T=C.arrowSize,y=C.horizontalScrollbarSize,R=e.get(43),L="never"!==e.get(110);let I=e.get(66);R&&L&&(I+=16);let A=0;if(f){const e=Math.max(s,_);A=Math.round(e*a)}let N=0;p&&(N=o*t.glyphMarginDecorationLaneCount);let k=0,D=k+N,O=D+A,x=O+I;const M=i-N-A-I;let P=!1,F=!1,B=-1;"inherit"===h&&m?(P=!0,F=!0):"on"===u||"bounded"===u?F=!0:"wordWrapColumn"===u&&(B=g);const H=xt._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:r,pixelRatio:l,scrollBeyondLastLine:b,paddingTop:v.top,paddingBottom:v.bottom,minimap:S,verticalScrollbarWidth:E,viewLineCount:c,remainingWidth:M,isViewportWrapping:F},t.memory||new gt);0!==H.renderMinimap&&0===H.minimapLeft&&(k+=H.minimapWidth,D+=H.minimapWidth,O+=H.minimapWidth,x+=H.minimapWidth);const W=M-H.minimapWidth,U=Math.max(1,Math.floor((W-E-2)/r)),V=w?T:0;return F&&(B=Math.max(1,U),"bounded"===u&&(B=Math.min(B,g))),{width:i,height:n,glyphMarginLeft:k,glyphMarginWidth:N,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:D,lineNumbersWidth:A,decorationsLeft:O,decorationsWidth:I,contentLeft:x,contentWidth:W,minimap:H,viewportColumn:U,isWordWrapMinified:P,isViewportWrapping:F,wrappingColumn:B,verticalScrollbarWidth:E,horizontalScrollbarHeight:y,overviewRuler:{top:V,width:E,height:n-2*V,right:0}}}}function Mt(e){const t=e.get(98);return"editable"===t?e.get(91):"on"!==t}function Pt(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}!function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(Nt||(Nt={}));const Ft="inUntrustedWorkspace",Bt="editor.unicodeHighlight.allowedCharacters",Ht="editor.unicodeHighlight.invisibleCharacters",Wt="editor.unicodeHighlight.nonBasicASCII",Ut="editor.unicodeHighlight.ambiguousCharacters",Vt="editor.unicodeHighlight.includeComments",Gt="editor.unicodeHighlight.includeStrings",zt="editor.unicodeHighlight.allowedLocales";function Kt(e,t,i){const n=i.indexOf(e);return-1===n?t:i[n]}const Yt={fontFamily:Pe?"Menlo, Monaco, 'Courier New', monospace":Fe?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:Pe?12:14,lineHeight:0,letterSpacing:0},qt=[];function $t(e){return qt[e.id]=e,e}const jt={acceptSuggestionOnCommitCharacter:$t(new St(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:pe("vs/editor/common/config/editorOptions","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:$t(new Lt(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",pe("vs/editor/common/config/editorOptions","acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:pe("vs/editor/common/config/editorOptions","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:$t(new class extends mt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[pe("vs/editor/common/config/editorOptions","accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),pe("vs/editor/common/config/editorOptions","accessibilitySupport.on","Optimize for usage with a Screen Reader."),pe("vs/editor/common/config/editorOptions","accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:pe("vs/editor/common/config/editorOptions","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,t,i){return 0===i?e.accessibilitySupport:i}}),accessibilityPageSize:$t(new Et(3,"accessibilityPageSize",10,1,1073741824,{description:pe("vs/editor/common/config/editorOptions","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:$t(new yt(4,"ariaLabel",pe("vs/editor/common/config/editorOptions","editorViewAccessibleLabel","Editor content"))),ariaRequired:$t(new St(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:$t(new St(8,"screenReaderAnnounceInlineSuggestion",!0,{description:pe("vs/editor/common/config/editorOptions","screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:$t(new Lt(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",pe("vs/editor/common/config/editorOptions","editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),pe("vs/editor/common/config/editorOptions","editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:pe("vs/editor/common/config/editorOptions","autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:$t(new Lt(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",pe("vs/editor/common/config/editorOptions","editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),pe("vs/editor/common/config/editorOptions","editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:pe("vs/editor/common/config/editorOptions","autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:$t(new Lt(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",pe("vs/editor/common/config/editorOptions","editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:pe("vs/editor/common/config/editorOptions","autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:$t(new Lt(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",pe("vs/editor/common/config/editorOptions","editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:pe("vs/editor/common/config/editorOptions","autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:$t(new Lt(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",pe("vs/editor/common/config/editorOptions","editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),pe("vs/editor/common/config/editorOptions","editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:pe("vs/editor/common/config/editorOptions","autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:$t(new It(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[pe("vs/editor/common/config/editorOptions","editor.autoIndent.none","The editor will not insert indentation automatically."),pe("vs/editor/common/config/editorOptions","editor.autoIndent.keep","The editor will keep the current line's indentation."),pe("vs/editor/common/config/editorOptions","editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),pe("vs/editor/common/config/editorOptions","editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:$t(new St(13,"automaticLayout",!1)),autoSurround:$t(new Lt(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[pe("vs/editor/common/config/editorOptions","editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),pe("vs/editor/common/config/editorOptions","editor.autoSurround.quotes","Surround with quotes but not brackets."),pe("vs/editor/common/config/editorOptions","editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:pe("vs/editor/common/config/editorOptions","autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:$t(new class extends mt{constructor(){const e={enabled:it.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:it.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:vt(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:vt(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}),bracketPairGuides:$t(new class extends mt{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:[pe("vs/editor/common/config/editorOptions","editor.guides.bracketPairs.true","Enables bracket pair guides."),pe("vs/editor/common/config/editorOptions","editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),pe("vs/editor/common/config/editorOptions","editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:pe("vs/editor/common/config/editorOptions","editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[pe("vs/editor/common/config/editorOptions","editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),pe("vs/editor/common/config/editorOptions","editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),pe("vs/editor/common/config/editorOptions","editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:pe("vs/editor/common/config/editorOptions","editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:pe("vs/editor/common/config/editorOptions","editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:pe("vs/editor/common/config/editorOptions","editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[pe("vs/editor/common/config/editorOptions","editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),pe("vs/editor/common/config/editorOptions","editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),pe("vs/editor/common/config/editorOptions","editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:pe("vs/editor/common/config/editorOptions","editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{bracketPairs:Kt(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:Kt(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:vt(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:vt(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:Kt(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}),stickyTabStops:$t(new St(116,"stickyTabStops",!1,{description:pe("vs/editor/common/config/editorOptions","stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:$t(new St(17,"codeLens",!0,{description:pe("vs/editor/common/config/editorOptions","codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:$t(new yt(18,"codeLensFontFamily","",{description:pe("vs/editor/common/config/editorOptions","codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:$t(new Et(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:pe("vs/editor/common/config/editorOptions","codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:$t(new St(20,"colorDecorators",!0,{description:pe("vs/editor/common/config/editorOptions","colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:$t(new Lt(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[pe("vs/editor/common/config/editorOptions","editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),pe("vs/editor/common/config/editorOptions","editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),pe("vs/editor/common/config/editorOptions","editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:pe("vs/editor/common/config/editorOptions","colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:$t(new Et(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:pe("vs/editor/common/config/editorOptions","colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:$t(new St(22,"columnSelection",!1,{description:pe("vs/editor/common/config/editorOptions","columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:$t(new class extends mt{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:pe("vs/editor/common/config/editorOptions","comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:pe("vs/editor/common/config/editorOptions","comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{insertSpace:vt(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:vt(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:$t(new St(24,"contextmenu",!0)),copyWithSyntaxHighlighting:$t(new St(25,"copyWithSyntaxHighlighting",!0,{description:pe("vs/editor/common/config/editorOptions","copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:$t(new It(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:pe("vs/editor/common/config/editorOptions","cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:$t(new Lt(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[pe("vs/editor/common/config/editorOptions","cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),pe("vs/editor/common/config/editorOptions","cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),pe("vs/editor/common/config/editorOptions","cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:pe("vs/editor/common/config/editorOptions","cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:$t(new It(28,"cursorStyle",At.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return At.Line;case"block":return At.Block;case"underline":return At.Underline;case"line-thin":return At.LineThin;case"block-outline":return At.BlockOutline;case"underline-thin":return At.UnderlineThin}}),{description:pe("vs/editor/common/config/editorOptions","cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:$t(new Et(29,"cursorSurroundingLines",0,0,1073741824,{description:pe("vs/editor/common/config/editorOptions","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:$t(new Lt(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[pe("vs/editor/common/config/editorOptions","cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),pe("vs/editor/common/config/editorOptions","cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:pe("vs/editor/common/config/editorOptions","cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:$t(new Et(31,"cursorWidth",0,0,1073741824,{markdownDescription:pe("vs/editor/common/config/editorOptions","cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:$t(new St(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:$t(new St(33,"disableMonospaceOptimizations",!1)),domReadOnly:$t(new St(34,"domReadOnly",!1)),dragAndDrop:$t(new St(35,"dragAndDrop",!0,{description:pe("vs/editor/common/config/editorOptions","dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:$t(new class extends St{constructor(){super(37,"emptySelectionClipboard",!0,{description:pe("vs/editor/common/config/editorOptions","emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}),dropIntoEditor:$t(new class extends mt{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","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:[pe("vs/editor/common/config/editorOptions","dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),pe("vs/editor/common/config/editorOptions","dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:vt(t.enabled,this.defaultValue.enabled),showDropSelector:Rt(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}),stickyScroll:$t(new class extends mt{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:vt(t.enabled,this.defaultValue.enabled),maxLineCount:Et.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:Rt(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:vt(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}),experimentalWhitespaceRendering:$t(new Lt(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[pe("vs/editor/common/config/editorOptions","experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),pe("vs/editor/common/config/editorOptions","experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),pe("vs/editor/common/config/editorOptions","experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:pe("vs/editor/common/config/editorOptions","experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:$t(new yt(39,"extraEditorClassName","")),fastScrollSensitivity:$t(new Tt(40,"fastScrollSensitivity",5,(e=>e<=0?5:e),{markdownDescription:pe("vs/editor/common/config/editorOptions","fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:$t(new class extends mt{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:pe("vs/editor/common/config/editorOptions","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:[pe("vs/editor/common/config/editorOptions","editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),pe("vs/editor/common/config/editorOptions","editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),pe("vs/editor/common/config/editorOptions","editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:pe("vs/editor/common/config/editorOptions","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:[pe("vs/editor/common/config/editorOptions","editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),pe("vs/editor/common/config/editorOptions","editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),pe("vs/editor/common/config/editorOptions","editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:pe("vs/editor/common/config/editorOptions","find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:pe("vs/editor/common/config/editorOptions","find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Pe},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","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||"object"!=typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:vt(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"==typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":Rt(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"==typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":Rt(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:vt(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:vt(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:vt(t.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:$t(new St(42,"fixedOverflowWidgets",!1)),folding:$t(new St(43,"folding",!0,{description:pe("vs/editor/common/config/editorOptions","folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:$t(new Lt(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[pe("vs/editor/common/config/editorOptions","foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),pe("vs/editor/common/config/editorOptions","foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:pe("vs/editor/common/config/editorOptions","foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:$t(new St(45,"foldingHighlight",!0,{description:pe("vs/editor/common/config/editorOptions","foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:$t(new St(46,"foldingImportsByDefault",!1,{description:pe("vs/editor/common/config/editorOptions","foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:$t(new Et(47,"foldingMaximumRegions",5e3,10,65e3,{description:pe("vs/editor/common/config/editorOptions","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:$t(new St(48,"unfoldOnClickAfterEndOfLine",!1,{description:pe("vs/editor/common/config/editorOptions","unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:$t(new yt(49,"fontFamily",Yt.fontFamily,{description:pe("vs/editor/common/config/editorOptions","fontFamily","Controls the font family.")})),fontInfo:$t(new class extends _t{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}),fontLigatures2:$t(new kt),fontSize:$t(new class extends bt{constructor(){super(52,"fontSize",Yt.fontSize,{type:"number",minimum:6,maximum:100,default:Yt.fontSize,description:pe("vs/editor/common/config/editorOptions","fontSize","Controls the font size in pixels.")})}validate(e){const t=Tt.float(e,this.defaultValue);return 0===t?Yt.fontSize:Tt.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}),fontWeight:$t(new Ot),fontVariations:$t(new Dt),formatOnPaste:$t(new St(55,"formatOnPaste",!1,{description:pe("vs/editor/common/config/editorOptions","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:$t(new St(56,"formatOnType",!1,{description:pe("vs/editor/common/config/editorOptions","formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:$t(new St(57,"glyphMargin",!0,{description:pe("vs/editor/common/config/editorOptions","glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:$t(new class extends mt{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:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[pe("vs/editor/common/config/editorOptions","editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),pe("vs/editor/common/config/editorOptions","editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),pe("vs/editor/common/config/editorOptions","editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","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:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:pe("vs/editor/common/config/editorOptions","editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:pe("vs/editor/common/config/editorOptions","editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:pe("vs/editor/common/config/editorOptions","editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:pe("vs/editor/common/config/editorOptions","editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:pe("vs/editor/common/config/editorOptions","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:i,description:pe("vs/editor/common/config/editorOptions","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:i,description:pe("vs/editor/common/config/editorOptions","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:i,description:pe("vs/editor/common/config/editorOptions","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:i,description:pe("vs/editor/common/config/editorOptions","alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,s;if(!e||"object"!=typeof e)return this.defaultValue;const r=e;return{multiple:Rt(r.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=r.multipleDefinitions)&&void 0!==t?t:Rt(r.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(i=r.multipleTypeDefinitions)&&void 0!==i?i:Rt(r.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(n=r.multipleDeclarations)&&void 0!==n?n:Rt(r.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(o=r.multipleImplementations)&&void 0!==o?o:Rt(r.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(s=r.multipleReferences)&&void 0!==s?s:Rt(r.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:yt.string(r.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:yt.string(r.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:yt.string(r.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:yt.string(r.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:yt.string(r.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}),hideCursorInOverviewRuler:$t(new St(59,"hideCursorInOverviewRuler",!1,{description:pe("vs/editor/common/config/editorOptions","hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:$t(new class extends mt{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:pe("vs/editor/common/config/editorOptions","hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:pe("vs/editor/common/config/editorOptions","hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:vt(t.enabled,this.defaultValue.enabled),delay:Et.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:vt(t.sticky,this.defaultValue.sticky),hidingDelay:Et.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:vt(t.above,this.defaultValue.above)}}}),inDiffEditor:$t(new St(61,"inDiffEditor",!1)),letterSpacing:$t(new Tt(64,"letterSpacing",Yt.letterSpacing,(e=>Tt.clamp(e,-5,20)),{description:pe("vs/editor/common/config/editorOptions","letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:$t(new class extends mt{constructor(){const e={enabled:Nt.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[Nt.Off,Nt.OnCode,Nt.On],default:e.enabled,enumDescriptions:[pe("vs/editor/common/config/editorOptions","editor.lightbulb.enabled.off","Disable the code action menu."),pe("vs/editor/common/config/editorOptions","editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),pe("vs/editor/common/config/editorOptions","editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:pe("vs/editor/common/config/editorOptions","enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return e&&"object"==typeof e?{enabled:Rt(e.enabled,this.defaultValue.enabled,[Nt.Off,Nt.OnCode,Nt.On])}:this.defaultValue}}),lineDecorationsWidth:$t(new class extends mt{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return"string"==typeof e&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Et.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?Et.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}),lineHeight:$t(new class extends Tt{constructor(){super(67,"lineHeight",Yt.lineHeight,(e=>Tt.clamp(e,0,150)),{markdownDescription:pe("vs/editor/common/config/editorOptions","lineHeight","Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")})}compute(e,t,i){return e.fontInfo.lineHeight}}),lineNumbers:$t(new class extends mt{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[pe("vs/editor/common/config/editorOptions","lineNumbers.off","Line numbers are not rendered."),pe("vs/editor/common/config/editorOptions","lineNumbers.on","Line numbers are rendered as absolute number."),pe("vs/editor/common/config/editorOptions","lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),pe("vs/editor/common/config/editorOptions","lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:pe("vs/editor/common/config/editorOptions","lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return void 0!==e&&("function"==typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:i}}}),lineNumbersMinChars:$t(new Et(69,"lineNumbersMinChars",5,1,300)),linkedEditing:$t(new St(70,"linkedEditing",!1,{description:pe("vs/editor/common/config/editorOptions","linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:$t(new St(71,"links",!0,{description:pe("vs/editor/common/config/editorOptions","links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:$t(new Lt(72,"matchBrackets","always",["always","near","never"],{description:pe("vs/editor/common/config/editorOptions","matchBrackets","Highlight matching brackets.")})),minimap:$t(new class extends mt{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};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:pe("vs/editor/common/config/editorOptions","minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:pe("vs/editor/common/config/editorOptions","minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[pe("vs/editor/common/config/editorOptions","minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),pe("vs/editor/common/config/editorOptions","minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),pe("vs/editor/common/config/editorOptions","minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:pe("vs/editor/common/config/editorOptions","minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:pe("vs/editor/common/config/editorOptions","minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:pe("vs/editor/common/config/editorOptions","minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:pe("vs/editor/common/config/editorOptions","minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:pe("vs/editor/common/config/editorOptions","minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")}})}validate(e){var t;if(!e||"object"!=typeof e)return this.defaultValue;const i=e;return{enabled:vt(i.enabled,this.defaultValue.enabled),autohide:vt(i.autohide,this.defaultValue.autohide),size:Rt(i.size,this.defaultValue.size,["proportional","fill","fit"]),side:Rt(i.side,this.defaultValue.side,["right","left"]),showSlider:Rt(i.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:vt(i.renderCharacters,this.defaultValue.renderCharacters),scale:Et.clampedInt(i.scale,1,1,3),maxColumn:Et.clampedInt(i.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:vt(i.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:vt(i.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:Tt.clamp(null!==(t=i.sectionHeaderFontSize)&&void 0!==t?t:this.defaultValue.sectionHeaderFontSize,4,32)}}}),mouseStyle:$t(new Lt(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:$t(new Tt(75,"mouseWheelScrollSensitivity",1,(e=>0===e?1:e),{markdownDescription:pe("vs/editor/common/config/editorOptions","mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:$t(new St(76,"mouseWheelZoom",!1,{markdownDescription:Pe?pe("vs/editor/common/config/editorOptions","mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):pe("vs/editor/common/config/editorOptions","mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:$t(new St(77,"multiCursorMergeOverlapping",!0,{description:pe("vs/editor/common/config/editorOptions","multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:$t(new It(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?Pe?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[pe("vs/editor/common/config/editorOptions","multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),pe("vs/editor/common/config/editorOptions","multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:pe("vs/editor/common/config/editorOptions",{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:$t(new Lt(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[pe("vs/editor/common/config/editorOptions","multiCursorPaste.spread","Each cursor pastes a single line of the text."),pe("vs/editor/common/config/editorOptions","multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:pe("vs/editor/common/config/editorOptions","multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:$t(new Et(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:pe("vs/editor/common/config/editorOptions","multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:$t(new Lt(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[pe("vs/editor/common/config/editorOptions","occurrencesHighlight.off","Does not highlight occurrences."),pe("vs/editor/common/config/editorOptions","occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),pe("vs/editor/common/config/editorOptions","occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:pe("vs/editor/common/config/editorOptions","occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:$t(new St(82,"overviewRulerBorder",!0,{description:pe("vs/editor/common/config/editorOptions","overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:$t(new Et(83,"overviewRulerLanes",3,0,3)),padding:$t(new class extends mt{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{top:Et.clampedInt(t.top,0,0,1e3),bottom:Et.clampedInt(t.bottom,0,0,1e3)}}}),pasteAs:$t(new class extends mt{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:pe("vs/editor/common/config/editorOptions","pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:pe("vs/editor/common/config/editorOptions","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:[pe("vs/editor/common/config/editorOptions","pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),pe("vs/editor/common/config/editorOptions","pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:vt(t.enabled,this.defaultValue.enabled),showPasteSelector:Rt(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}),parameterHints:$t(new class extends mt{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:vt(t.enabled,this.defaultValue.enabled),cycle:vt(t.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:$t(new Lt(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[pe("vs/editor/common/config/editorOptions","peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),pe("vs/editor/common/config/editorOptions","peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:pe("vs/editor/common/config/editorOptions","peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:$t(new St(88,"definitionLinkOpensInPeek",!1,{description:pe("vs/editor/common/config/editorOptions","definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:$t(new class extends mt{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[pe("vs/editor/common/config/editorOptions","on","Quick suggestions show inside the suggest widget"),pe("vs/editor/common/config/editorOptions","inline","Quick suggestions show as ghost text"),pe("vs/editor/common/config/editorOptions","off","Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:pe("vs/editor/common/config/editorOptions","quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:pe("vs/editor/common/config/editorOptions","quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:pe("vs/editor/common/config/editorOptions","quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:pe("vs/editor/common/config/editorOptions","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("boolean"==typeof e){const t=e?"on":"off";return{comments:t,strings:t,other:t}}if(!e||"object"!=typeof e)return this.defaultValue;const{other:t,comments:i,strings:n}=e,o=["on","inline","off"];let s,r,a;return s="boolean"==typeof t?t?"on":"off":Rt(t,this.defaultValue.other,o),r="boolean"==typeof i?i?"on":"off":Rt(i,this.defaultValue.comments,o),a="boolean"==typeof n?n?"on":"off":Rt(n,this.defaultValue.strings,o),{other:s,comments:r,strings:a}}}),quickSuggestionsDelay:$t(new Et(90,"quickSuggestionsDelay",10,0,1073741824,{description:pe("vs/editor/common/config/editorOptions","quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:$t(new St(91,"readOnly",!1)),readOnlyMessage:$t(new class extends mt{constructor(){super(92,"readOnlyMessage",void 0)}validate(e){return e&&"object"==typeof e?e:this.defaultValue}}),renameOnType:$t(new St(93,"renameOnType",!1,{description:pe("vs/editor/common/config/editorOptions","renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:pe("vs/editor/common/config/editorOptions","renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:$t(new St(94,"renderControlCharacters",!0,{description:pe("vs/editor/common/config/editorOptions","renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:$t(new Lt(95,"renderFinalNewline",Fe?"dimmed":"on",["off","on","dimmed"],{description:pe("vs/editor/common/config/editorOptions","renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:$t(new Lt(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",pe("vs/editor/common/config/editorOptions","renderLineHighlight.all","Highlights both the gutter and the current line.")],description:pe("vs/editor/common/config/editorOptions","renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:$t(new St(97,"renderLineHighlightOnlyWhenFocus",!1,{description:pe("vs/editor/common/config/editorOptions","renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:$t(new Lt(98,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:$t(new Lt(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",pe("vs/editor/common/config/editorOptions","renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),pe("vs/editor/common/config/editorOptions","renderWhitespace.selection","Render whitespace characters only on selected text."),pe("vs/editor/common/config/editorOptions","renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:pe("vs/editor/common/config/editorOptions","renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:$t(new Et(100,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:$t(new St(101,"roundedSelection",!0,{description:pe("vs/editor/common/config/editorOptions","roundedSelection","Controls whether selections should have rounded corners.")})),rulers:$t(new class extends mt{constructor(){const e=[],t={type:"number",description:pe("vs/editor/common/config/editorOptions","rulers.size","Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:pe("vs/editor/common/config/editorOptions","rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:pe("vs/editor/common/config/editorOptions","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 t=[];for(const i of e)if("number"==typeof i)t.push({column:Et.clampedInt(i,0,0,1e4),color:null});else if(i&&"object"==typeof i){const e=i;t.push({column:Et.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort(((e,t)=>e.column-t.column)),t}return this.defaultValue}}),scrollbar:$t(new class extends mt{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:[pe("vs/editor/common/config/editorOptions","scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),pe("vs/editor/common/config/editorOptions","scrollbar.vertical.visible","The vertical scrollbar will always be visible."),pe("vs/editor/common/config/editorOptions","scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:pe("vs/editor/common/config/editorOptions","scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[pe("vs/editor/common/config/editorOptions","scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),pe("vs/editor/common/config/editorOptions","scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),pe("vs/editor/common/config/editorOptions","scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:pe("vs/editor/common/config/editorOptions","scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:pe("vs/editor/common/config/editorOptions","scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:pe("vs/editor/common/config/editorOptions","scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:pe("vs/editor/common/config/editorOptions","scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:pe("vs/editor/common/config/editorOptions","scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e,i=Et.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=Et.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Et.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:Pt(t.vertical,this.defaultValue.vertical),horizontal:Pt(t.horizontal,this.defaultValue.horizontal),useShadows:vt(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:vt(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:vt(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:vt(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:vt(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:Et.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:Et.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:vt(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:vt(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}),scrollBeyondLastColumn:$t(new Et(104,"scrollBeyondLastColumn",4,0,1073741824,{description:pe("vs/editor/common/config/editorOptions","scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:$t(new St(105,"scrollBeyondLastLine",!0,{description:pe("vs/editor/common/config/editorOptions","scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:$t(new St(106,"scrollPredominantAxis",!0,{description:pe("vs/editor/common/config/editorOptions","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:$t(new St(107,"selectionClipboard",!0,{description:pe("vs/editor/common/config/editorOptions","selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:Fe})),selectionHighlight:$t(new St(108,"selectionHighlight",!0,{description:pe("vs/editor/common/config/editorOptions","selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:$t(new St(109,"selectOnLineNumbers",!0)),showFoldingControls:$t(new Lt(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[pe("vs/editor/common/config/editorOptions","showFoldingControls.always","Always show the folding controls."),pe("vs/editor/common/config/editorOptions","showFoldingControls.never","Never show the folding controls and reduce the gutter size."),pe("vs/editor/common/config/editorOptions","showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:pe("vs/editor/common/config/editorOptions","showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:$t(new St(111,"showUnused",!0,{description:pe("vs/editor/common/config/editorOptions","showUnused","Controls fading out of unused code.")})),showDeprecated:$t(new St(140,"showDeprecated",!0,{description:pe("vs/editor/common/config/editorOptions","showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:$t(new class extends mt{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:pe("vs/editor/common/config/editorOptions","inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[pe("vs/editor/common/config/editorOptions","editor.inlayHints.on","Inlay hints are enabled"),pe("vs/editor/common/config/editorOptions","editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Pe?"Ctrl+Option":"Ctrl+Alt"),pe("vs/editor/common/config/editorOptions","editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Pe?"Ctrl+Option":"Ctrl+Alt"),pe("vs/editor/common/config/editorOptions","editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return"boolean"==typeof t.enabled&&(t.enabled=t.enabled?"on":"off"),{enabled:Rt(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Et.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:yt.string(t.fontFamily,this.defaultValue.fontFamily),padding:vt(t.padding,this.defaultValue.padding)}}}),snippetSuggestions:$t(new Lt(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[pe("vs/editor/common/config/editorOptions","snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),pe("vs/editor/common/config/editorOptions","snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),pe("vs/editor/common/config/editorOptions","snippetSuggestions.inline","Show snippets suggestions with other suggestions."),pe("vs/editor/common/config/editorOptions","snippetSuggestions.none","Do not show snippet suggestions.")],description:pe("vs/editor/common/config/editorOptions","snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:$t(new class extends mt{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:pe("vs/editor/common/config/editorOptions","selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:pe("vs/editor/common/config/editorOptions","selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"==typeof e?{selectLeadingAndTrailingWhitespace:vt(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:vt(e.selectSubwords,this.defaultValue.selectSubwords)}:this.defaultValue}}),smoothScrolling:$t(new St(114,"smoothScrolling",!1,{description:pe("vs/editor/common/config/editorOptions","smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:$t(new Et(117,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:$t(new class extends mt{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:[pe("vs/editor/common/config/editorOptions","suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),pe("vs/editor/common/config/editorOptions","suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:pe("vs/editor/common/config/editorOptions","suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:pe("vs/editor/common/config/editorOptions","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:[pe("vs/editor/common/config/editorOptions","suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),pe("vs/editor/common/config/editorOptions","suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),pe("vs/editor/common/config/editorOptions","suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),pe("vs/editor/common/config/editorOptions","suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:pe("vs/editor/common/config/editorOptions","suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:pe("vs/editor/common/config/editorOptions","suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:pe("vs/editor/common/config/editorOptions","suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:pe("vs/editor/common/config/editorOptions","editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{insertMode:Rt(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:vt(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:vt(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:vt(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:vt(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:Rt(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:vt(t.showIcons,this.defaultValue.showIcons),showStatusBar:vt(t.showStatusBar,this.defaultValue.showStatusBar),preview:vt(t.preview,this.defaultValue.preview),previewMode:Rt(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:vt(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:vt(t.showMethods,this.defaultValue.showMethods),showFunctions:vt(t.showFunctions,this.defaultValue.showFunctions),showConstructors:vt(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:vt(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:vt(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:vt(t.showFields,this.defaultValue.showFields),showVariables:vt(t.showVariables,this.defaultValue.showVariables),showClasses:vt(t.showClasses,this.defaultValue.showClasses),showStructs:vt(t.showStructs,this.defaultValue.showStructs),showInterfaces:vt(t.showInterfaces,this.defaultValue.showInterfaces),showModules:vt(t.showModules,this.defaultValue.showModules),showProperties:vt(t.showProperties,this.defaultValue.showProperties),showEvents:vt(t.showEvents,this.defaultValue.showEvents),showOperators:vt(t.showOperators,this.defaultValue.showOperators),showUnits:vt(t.showUnits,this.defaultValue.showUnits),showValues:vt(t.showValues,this.defaultValue.showValues),showConstants:vt(t.showConstants,this.defaultValue.showConstants),showEnums:vt(t.showEnums,this.defaultValue.showEnums),showEnumMembers:vt(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:vt(t.showKeywords,this.defaultValue.showKeywords),showWords:vt(t.showWords,this.defaultValue.showWords),showColors:vt(t.showColors,this.defaultValue.showColors),showFiles:vt(t.showFiles,this.defaultValue.showFiles),showReferences:vt(t.showReferences,this.defaultValue.showReferences),showFolders:vt(t.showFolders,this.defaultValue.showFolders),showTypeParameters:vt(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:vt(t.showSnippets,this.defaultValue.showSnippets),showUsers:vt(t.showUsers,this.defaultValue.showUsers),showIssues:vt(t.showIssues,this.defaultValue.showIssues)}}}),inlineSuggest:$t(new class extends mt{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:pe("vs/editor/common/config/editorOptions","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:[pe("vs/editor/common/config/editorOptions","inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),pe("vs/editor/common/config/editorOptions","inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),pe("vs/editor/common/config/editorOptions","inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:pe("vs/editor/common/config/editorOptions","inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:vt(t.enabled,this.defaultValue.enabled),mode:Rt(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:Rt(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:vt(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:vt(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:yt.string(t.fontFamily,this.defaultValue.fontFamily)}}}),inlineEdit:$t(new class extends mt{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:pe("vs/editor/common/config/editorOptions","inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[pe("vs/editor/common/config/editorOptions","inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),pe("vs/editor/common/config/editorOptions","inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),pe("vs/editor/common/config/editorOptions","inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:pe("vs/editor/common/config/editorOptions","inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:pe("vs/editor/common/config/editorOptions","inlineEdit.fontFamily","Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:pe("vs/editor/common/config/editorOptions","inlineEdit.backgroundColoring","Controls whether to color the background of inline edits.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:vt(t.enabled,this.defaultValue.enabled),showToolbar:Rt(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:yt.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:vt(t.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:vt(t.backgroundColoring,this.defaultValue.backgroundColoring)}}}),inlineCompletionsAccessibilityVerbose:$t(new St(149,"inlineCompletionsAccessibilityVerbose",!1,{description:pe("vs/editor/common/config/editorOptions","inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:$t(new Et(119,"suggestFontSize",0,0,1e3,{markdownDescription:pe("vs/editor/common/config/editorOptions","suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:$t(new Et(120,"suggestLineHeight",0,0,1e3,{markdownDescription:pe("vs/editor/common/config/editorOptions","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:$t(new St(121,"suggestOnTriggerCharacters",!0,{description:pe("vs/editor/common/config/editorOptions","suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:$t(new Lt(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[pe("vs/editor/common/config/editorOptions","suggestSelection.first","Always select the first suggestion."),pe("vs/editor/common/config/editorOptions","suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),pe("vs/editor/common/config/editorOptions","suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:pe("vs/editor/common/config/editorOptions","suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:$t(new Lt(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[pe("vs/editor/common/config/editorOptions","tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),pe("vs/editor/common/config/editorOptions","tabCompletion.off","Disable tab completions."),pe("vs/editor/common/config/editorOptions","tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:pe("vs/editor/common/config/editorOptions","tabCompletion","Enables tab completions.")})),tabIndex:$t(new Et(124,"tabIndex",0,-1,1073741824)),unicodeHighlight:$t(new class extends mt{constructor(){const e={nonBasicASCII:Ft,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:Ft,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[Wt]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Ft],default:e.nonBasicASCII,description:pe("vs/editor/common/config/editorOptions","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.")},[Ht]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:pe("vs/editor/common/config/editorOptions","unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[Ut]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:pe("vs/editor/common/config/editorOptions","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.")},[Vt]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Ft],default:e.includeComments,description:pe("vs/editor/common/config/editorOptions","unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[Gt]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Ft],default:e.includeStrings,description:pe("vs/editor/common/config/editorOptions","unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[Bt]:{restricted:!0,type:"object",default:e.allowedCharacters,description:pe("vs/editor/common/config/editorOptions","unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[zt]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:pe("vs/editor/common/config/editorOptions","unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(he(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},i=!0)),t.allowedLocales&&e&&(he(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},i=!0));const n=super.applyUpdate(e,t);return i?new pt(n.newValue,!0):n}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{nonBasicASCII:Kt(t.nonBasicASCII,Ft,[!0,!1,Ft]),invisibleCharacters:vt(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:vt(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:Kt(t.includeComments,Ft,[!0,!1,Ft]),includeStrings:Kt(t.includeStrings,Ft,[!0,!1,Ft]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if("object"!=typeof e||!e)return t;const i={};for(const[n,o]of Object.entries(e))!0===o&&(i[n]=!0);return i}}),unusualLineTerminators:$t(new Lt(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[pe("vs/editor/common/config/editorOptions","unusualLineTerminators.auto","Unusual line terminators are automatically removed."),pe("vs/editor/common/config/editorOptions","unusualLineTerminators.off","Unusual line terminators are ignored."),pe("vs/editor/common/config/editorOptions","unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:pe("vs/editor/common/config/editorOptions","unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:$t(new St(127,"useShadowDOM",!0)),useTabStops:$t(new St(128,"useTabStops",!0,{description:pe("vs/editor/common/config/editorOptions","useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:$t(new Lt(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[pe("vs/editor/common/config/editorOptions","wordBreak.normal","Use the default line break rule."),pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:$t(new class extends mt{constructor(){super(130,"wordSegmenterLocales",[],{anyOf:[{description:pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","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("string"==typeof e&&(e=[e]),Array.isArray(e)){const t=[];for(const i of e)if("string"==typeof i)try{Intl.Segmenter.supportedLocalesOf(i).length>0&&t.push(i)}catch(sue){}return t}return this.defaultValue}}),wordSeparators:$t(new yt(131,"wordSeparators",rt,{description:pe("vs/editor/common/config/editorOptions","wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:$t(new Lt(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[pe("vs/editor/common/config/editorOptions","wordWrap.off","Lines will never wrap."),pe("vs/editor/common/config/editorOptions","wordWrap.on","Lines will wrap at the viewport width."),pe("vs/editor/common/config/editorOptions",{key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),pe("vs/editor/common/config/editorOptions",{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:pe("vs/editor/common/config/editorOptions",{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:$t(new yt(133,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:$t(new yt(134,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:$t(new Et(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:pe("vs/editor/common/config/editorOptions",{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:$t(new Lt(136,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:$t(new Lt(137,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:$t(new class extends _t{constructor(){super(142)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),"default"===t.get(74)?n.push("mouse-default"):"copy"===t.get(74)&&n.push("mouse-copy"),t.get(111)&&n.push("showUnused"),t.get(140)&&n.push("showDeprecated"),n.join(" ")}}),defaultColorDecorators:$t(new St(147,"defaultColorDecorators",!1,{markdownDescription:pe("vs/editor/common/config/editorOptions","defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:$t(new class extends _t{constructor(){super(143)}compute(e,t,i){return e.pixelRatio}}),tabFocusMode:$t(new St(144,"tabFocusMode",!1,{markdownDescription:pe("vs/editor/common/config/editorOptions","tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:$t(new xt),wrappingInfo:$t(new class extends _t{constructor(){super(146)}compute(e,t,i){const n=t.get(145);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}),wrappingIndent:$t(new class extends mt{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[pe("vs/editor/common/config/editorOptions","wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),pe("vs/editor/common/config/editorOptions","wrappingIndent.same","Wrapped lines get the same indentation as the parent."),pe("vs/editor/common/config/editorOptions","wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),pe("vs/editor/common/config/editorOptions","wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:pe("vs/editor/common/config/editorOptions","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,t,i){return 2===t.get(2)?0:i}}),wrappingStrategy:$t(new class extends mt{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[pe("vs/editor/common/config/editorOptions","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."),pe("vs/editor/common/config/editorOptions","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:pe("vs/editor/common/config/editorOptions","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 Rt(e,"simple",["simple","advanced"])}compute(e,t,i){return 2===t.get(2)?"advanced":i}})},Xt=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(ri.isErrorNoTelemetry(e))throw new ri(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function Jt(e){ti(e)||Xt.onUnexpectedError(e)}function Qt(e){ti(e)||Xt.onUnexpectedExternalError(e)}function Zt(e){if(e instanceof Error){const{name:t,message:i}=e;return{$isError:!0,name:t,message:i,stack:e.stacktrace||e.stack,noTelemetry:ri.isErrorNoTelemetry(e)}}return e}const ei="Canceled";function ti(e){return e instanceof ii||e instanceof Error&&e.name===ei&&e.message===ei}class ii extends Error{constructor(){super(ei),this.name=this.message}}function ni(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function oi(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class si extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class ri extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof ri)return e;const t=new ri;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class ai extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,ai.prototype)}}function li(e,t){const i=this;let n,o=!1;return function(){if(o)return n;if(o=!0,t)try{n=e.apply(i,arguments)}finally{t()}else n=e.apply(i,arguments);return n}}function ci(e){return"object"==typeof e&&null!==e&&"function"==typeof e.dispose&&0===e.dispose.length}function di(e){if(nt.is(e)){const t=[];for(const i of e)if(i)try{i.dispose()}catch(sue){t.push(sue)}if(1===t.length)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function hi(...e){return ui((()=>di(e)))}function ui(e){return{dispose:li((()=>{e()}))}}class gi{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{di(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?gi.DISABLE_DISPOSED_WARNING:this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&this._toDispose.delete(e)}}gi.DISABLE_DISPOSED_WARNING=!1;class mi{constructor(){this._store=new gi,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)}}mi.None=Object.freeze({dispose(){}});class pi{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}}class fi{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0==--this._counter&&this._disposable.dispose(),this}}class _i{constructor(e){this.object=e}dispose(){}}class bi{constructor(){this._store=new Map,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{di(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){var n;this._isDisposed,i||null===(n=this._store.get(e))||void 0===n||n.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;null===(t=this._store.get(e))||void 0===t||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}const vi=globalThis.performance&&"function"==typeof globalThis.performance.now;class Si{static create(e){return new Si(e)}constructor(e){this._now=vi&&!1===e?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-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}var Ci;!function(e){function t(e){return(t,i=null,n)=>{let o,s=!1;return o=e((e=>{if(!s)return o?o.dispose():s=!0,t.call(i,e)}),null,n),s&&o.dispose(),o}}function i(e,t,i){return o(((i,n=null,o)=>e((e=>i.call(n,t(e))),null,o)),i)}function n(e,t,i){return o(((i,n=null,o)=>e((e=>t(e)&&i.call(n,e)),null,o)),i)}function o(e,t){let i;const n=new Ri({onWillAddFirstListener(){i=e(n.fire,n)},onDidRemoveLastListener(){null==i||i.dispose()}});return null==t||t.add(n),n.event}function s(e,t,i=100,n=!1,o=!1,s,r){let a,l,c,d,h=0;const u=new Ri({leakWarningThreshold:s,onWillAddFirstListener(){a=e((e=>{h++,l=t(l,e),n&&!c&&(u.fire(l),l=void 0),d=()=>{const e=l;l=void 0,c=void 0,(!n||h>1)&&u.fire(e),h=0},"number"==typeof i?(clearTimeout(c),c=setTimeout(d,i)):void 0===c&&(c=0,queueMicrotask(d))}))},onWillRemoveListener(){o&&h>0&&(null==d||d())},onDidRemoveLastListener(){d=void 0,a.dispose()}});return null==r||r.add(u),u.event}e.None=()=>mi.None,e.defer=function(e,t){return s(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=t,e.map=i,e.forEach=function(e,t,i){return o(((i,n=null,o)=>e((e=>{t(e),i.call(n,e)}),null,o)),i)},e.filter=n,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,n)=>{return o=hi(...e.map((e=>e((e=>t.call(i,e)))))),(s=n)instanceof Array?s.push(o):s&&s.add(o),o;var o,s}},e.reduce=function(e,t,n,o){let s=n;return i(e,(e=>(s=t(s,e),s)),o)},e.debounce=s,e.accumulate=function(t,i=0,n){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),i,void 0,!0,void 0,n)},e.latch=function(e,t=((e,t)=>e===t),i){let o,s=!0;return n(e,(e=>{const i=s||!t(e,o);return s=!1,o=e,i}),i)},e.split=function(t,i,n){return[e.filter(t,i,n),e.filter(t,(e=>!i(e)),n)]},e.buffer=function(e,t=!1,i=[],n){let o=i.slice(),s=e((e=>{o?o.push(e):a.fire(e)}));n&&n.add(s);const r=()=>{null==o||o.forEach((e=>a.fire(e))),o=null},a=new Ri({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),n&&n.add(s))},onDidAddFirstListener(){o&&(t?setTimeout(r):r())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return n&&n.add(a),a.event},e.chain=function(e,t){return(i,n,o)=>{const s=t(new a);return e((function(e){const t=s.evaluate(e);t!==r&&i.call(n,t)}),void 0,o)}};const r=Symbol("HaltChainable");class a{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:r)),this}reduce(e,t){let i=t;return this.steps.push((t=>(i=e(i,t),i))),this}latch(e=((e,t)=>e===t)){let t,i=!0;return this.steps.push((n=>{const o=i||!e(n,t);return i=!1,t=n,o?n:r})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===r)break;return e}}e.fromNodeEventEmitter=function(e,t,i=(e=>e)){const n=(...e)=>o.fire(i(...e)),o=new Ri({onWillAddFirstListener:()=>e.on(t,n),onDidRemoveLastListener:()=>e.removeListener(t,n)});return o.event},e.fromDOMEventEmitter=function(e,t,i=(e=>e)){const n=(...e)=>o.fire(i(...e)),o=new Ri({onWillAddFirstListener:()=>e.addEventListener(t,n),onDidRemoveLastListener:()=>e.removeEventListener(t,n)});return o.event},e.toPromise=function(e){return new Promise((i=>t(e)(i)))},e.fromPromise=function(e){const t=new Ri;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.runAndSubscribe=function(e,t,i){return t(i),e((e=>t(e)))};class l{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;const i={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};this.emitter=new Ri(i),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new l(e,t).emitter.event},e.fromObservableLight=function(e){return(t,i,n)=>{let o=0,s=!1;const r={beginUpdate(){o++},endUpdate(){o--,0===o&&(e.reportChanges(),s&&(s=!1,t.call(i)))},handlePossibleChange(){},handleChange(){s=!0}};e.addObserver(r),e.reportChanges();const a={dispose(){e.removeObserver(r)}};return n instanceof gi?n.add(a):Array.isArray(n)&&n.push(a),a}}}(Ci||(Ci={}));class Ei{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${Ei._idPool++}`,Ei.all.add(this)}start(e){this._stopWatch=new Si,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}}}Ei.all=new Set,Ei._idPool=0;class wi{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){const i=this.threshold;if(i<=0||t{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class Ti{static create(){var e;return new Ti(null!==(e=(new Error).stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){}}class yi{constructor(e){this.value=e}}let Ri=class{constructor(e){var t,i,n,o,s;this._size=0,this._options=e,this._leakageMon=(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new wi(null!==(n=null===(i=this._options)||void 0===i?void 0:i.leakWarningThreshold)&&void 0!==n?n:-1):void 0,this._perfMon=(null===(o=this._options)||void 0===o?void 0:o._profName)?new Ei(this._options._profName):void 0,this._deliveryQueue=null===(s=this._options)||void 0===s?void 0:s.deliveryQueue}dispose(){var e,t,i,n;this._disposed||(this._disposed=!0,(null===(e=this._deliveryQueue)||void 0===e?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),null===(i=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===i||i.call(t),null===(n=this._leakageMon)||void 0===n||n.dispose())}get event(){var e;return null!==(e=this._event)&&void 0!==e||(this._event=(e,t,i)=>{var n,o,s,r,a;if(this._leakageMon&&this._size>3*this._leakageMon.threshold)return mi.None;if(this._disposed)return mi.None;t&&(e=e.bind(t));const l=new yi(e);let c;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(l.stack=Ti.create(),c=this._leakageMon.check(l.stack,this._size+1)),this._listeners?this._listeners instanceof yi?(null!==(a=this._deliveryQueue)&&void 0!==a||(this._deliveryQueue=new Li),this._listeners=[this._listeners,l]):this._listeners.push(l):(null===(o=null===(n=this._options)||void 0===n?void 0:n.onWillAddFirstListener)||void 0===o||o.call(n,this),this._listeners=l,null===(r=null===(s=this._options)||void 0===s?void 0:s.onDidAddFirstListener)||void 0===r||r.call(s,this)),this._size++;const d=ui((()=>{null==c||c(),this._removeListener(l)}));return i instanceof gi?i.add(d):Array.isArray(i)&&i.push(d),d}),this._event}_removeListener(e){var t,i,n,o;if(null===(i=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===i||i.call(t,this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,null===(o=null===(n=this._options)||void 0===n?void 0:n.onDidRemoveLastListener)||void 0===o||o.call(n,this),void(this._size=0);const s=this._listeners,r=s.indexOf(e);if(-1===r)throw new Error("Attempted to dispose unknown listener");this._size--,s[r]=void 0;const a=this._deliveryQueue.current===this;if(2*this._size<=s.length){let e=0;for(let t=0;t0}};class Li{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class Ii extends Ri{constructor(e){super(e),this._isPaused=0,this._eventQueue=new st,this._mergeFn=null==e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused)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&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class Ai extends Ii{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout((()=>{this._handle=void 0,this.resume()}),this._delay)),super.fire(e)}}class Ni extends Ri{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=null==e?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask((()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach((e=>super.fire(e))),this._queuedEvents=[]})))}}class ki{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new Ri({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};return this.events.push(t),this.hasListeners&&this.hook(t),ui(li((()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,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((e=>this.emitter.fire(e)))}unhook(e){var t;null===(t=e.listener)||void 0===t||t.dispose(),e.listener=null}dispose(){var e;this.emitter.dispose();for(const t of this.events)null===(e=t.listener)||void 0===e||e.dispose();this.events=[]}}class Di{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e((e=>{const n=this.buffers[this.buffers.length-1];n?n.push((()=>t.call(i,e))):t.call(i,e)}),void 0,n)}bufferEvents(e){const t=[];this.buffers.push(t);const i=e();return this.buffers.pop(),t.forEach((e=>e())),i}}class Oi{constructor(){this.listening=!1,this.inputEvent=Ci.None,this.inputEventListener=mi.None,this.emitter=new Ri({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 xi=Object.freeze((function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}));var Mi;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof Pi||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ci.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:xi})}(Mi||(Mi={}));class Pi{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?xi:(this._emitter||(this._emitter=new Ri),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}let Fi=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 Pi),this._token}cancel(){this._token?this._token instanceof Pi&&this._token.cancel():this._token=Mi.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof Pi&&this._token.dispose():this._token=Mi.None}};function Bi(e){const t=new Fi;return e.add({dispose(){t.cancel()}}),t.token}class Hi{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Wi=new Hi,Ui=new Hi,Vi=new Hi,Gi=new Array(230),zi=Object.create(null),Ki=Object.create(null),Yi=[];for(let OR=0;OR<=193;OR++)Yi[OR]=-1;var qi;function $i(e,t){return(e|(65535&t)<<16>>>0)>>>0}let ji;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[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,e,0,e,e,e],[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",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],i=[],n=[];for(const o of t){const[e,t,s,r,a,l,c,d,h]=o;if(n[t]||(n[t]=!0,zi[s]=t,Ki[s.toLowerCase()]=t,e&&(Yi[t]=r)),!i[r]){if(i[r]=!0,!a)throw new Error(`String representation missing for key code ${r} around scan code ${s}`);Wi.define(r,a),Ui.define(r,d||a),Vi.define(r,h||d||a)}l&&(Gi[l]=r)}}(),function(e){e.toString=function(e){return Wi.keyCodeToStr(e)},e.fromString=function(e){return Wi.strToKeyCode(e)},e.toUserSettingsUS=function(e){return Ui.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return Vi.keyCodeToStr(e)},e.fromUserSettings=function(e){return Ui.strToKeyCode(e)||Vi.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Wi.keyCodeToStr(e)}}(qi||(qi={}));const Xi=globalThis.vscode;if(void 0!==Xi&&void 0!==Xi.process){const e=Xi.process;ji={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else ji="undefined"!=typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd:()=>process.env.VSCODE_CWD||process.cwd()}:{get platform(){return Me?"win32":Pe?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const Ji=ji.cwd,Qi=ji.env,Zi=ji.platform,en=46,tn=47,nn=92,on=58;class sn extends Error{constructor(e,t,i){let n;"string"==typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";const o=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${o} ${n} of type ${t}`;s+=". Received type "+typeof i,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function rn(e,t){if("string"!=typeof e)throw new sn(t,"string",e)}const an="win32"===Zi;function ln(e){return e===tn||e===nn}function cn(e){return e===tn}function dn(e){return e>=65&&e<=90||e>=97&&e<=122}function hn(e,t,i,n){let o="",s=0,r=-1,a=0,l=0;for(let c=0;c<=e.length;++c){if(c2){const e=o.lastIndexOf(i);-1===e?(o="",s=0):(o=o.slice(0,e),s=o.length-1-o.lastIndexOf(i)),r=c,a=0;continue}if(0!==o.length){o="",s=0,r=c,a=0;continue}}t&&(o+=o.length>0?`${i}..`:"..",s=2)}else o.length>0?o+=`${i}${e.slice(r+1,c)}`:o=e.slice(r+1,c),s=c-r-1;r=c,a=0}else l===en&&-1!==a?++a:a=-1}return o}function un(e,t){!function(e,t){if(null===e||"object"!=typeof e)throw new sn("pathObject","Object",e)}(t);const i=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}const gn={resolve(...e){let t="",i="",n=!1;for(let o=e.length-1;o>=-1;o--){let s;if(o>=0){if(s=e[o],rn(s,"path"),0===s.length)continue}else 0===t.length?s=Ji():(s=Qi[`=${t}`]||Ji(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===nn)&&(s=`${t}\\`));const r=s.length;let a=0,l="",c=!1;const d=s.charCodeAt(0);if(1===r)ln(d)&&(a=1,c=!0);else if(ln(d))if(c=!0,ln(s.charCodeAt(1))){let e=2,t=e;for(;e2&&ln(s.charCodeAt(2))&&(c=!0,a=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(n){if(t.length>0)break}else if(i=`${s.slice(a)}\\${i}`,n=c,c&&t.length>0)break}return i=hn(i,!n,"\\",ln),n?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){rn(e,"path");const t=e.length;if(0===t)return".";let i,n=0,o=!1;const s=e.charCodeAt(0);if(1===t)return cn(s)?"\\":e;if(ln(s))if(o=!0,ln(e.charCodeAt(1))){let o=2,s=o;for(;o2&&ln(e.charCodeAt(2))&&(o=!0,n=3));let r=n0&&ln(e.charCodeAt(t-1))&&(r+="\\"),void 0===i?o?`\\${r}`:r:o?`${i}\\${r}`:`${i}${r}`},isAbsolute(e){rn(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return ln(i)||t>2&&dn(i)&&e.charCodeAt(1)===on&&ln(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,i;for(let s=0;s0&&(void 0===t?t=i=n:t+=`\\${n}`)}if(void 0===t)return".";let n=!0,o=0;if("string"==typeof i&&ln(i.charCodeAt(0))){++o;const e=i.length;e>1&&ln(i.charCodeAt(1))&&(++o,e>2&&(ln(i.charCodeAt(2))?++o:n=!1))}if(n){for(;o=2&&(t=`\\${t.slice(o)}`)}return gn.normalize(t)},relative(e,t){if(rn(e,"from"),rn(t,"to"),e===t)return"";const i=gn.resolve(e),n=gn.resolve(t);if(i===n)return"";if((e=i.toLowerCase())===(t=n.toLowerCase()))return"";let o=0;for(;oo&&e.charCodeAt(s-1)===nn;)s--;const r=s-o;let a=0;for(;aa&&t.charCodeAt(l-1)===nn;)l--;const c=l-a,d=rd){if(t.charCodeAt(a+u)===nn)return n.slice(a+u+1);if(2===u)return n.slice(a+u)}r>d&&(e.charCodeAt(o+u)===nn?h=u:2===u&&(h=3)),-1===h&&(h=0)}let g="";for(u=o+h+1;u<=s;++u)u!==s&&e.charCodeAt(u)!==nn||(g+=0===g.length?"..":"\\..");return a+=h,g.length>0?`${g}${n.slice(a,l)}`:(n.charCodeAt(a)===nn&&++a,n.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;const t=gn.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===nn){if(t.charCodeAt(1)===nn){const e=t.charCodeAt(2);if(63!==e&&e!==en)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(dn(t.charCodeAt(0))&&t.charCodeAt(1)===on&&t.charCodeAt(2)===nn)return`\\\\?\\${t}`;return e},dirname(e){rn(e,"path");const t=e.length;if(0===t)return".";let i=-1,n=0;const o=e.charCodeAt(0);if(1===t)return ln(o)?e:".";if(ln(o)){if(i=n=1,ln(e.charCodeAt(1))){let o=2,s=o;for(;o2&&ln(e.charCodeAt(2))?3:2,n=i);let s=-1,r=!0;for(let a=t-1;a>=n;--a)if(ln(e.charCodeAt(a))){if(!r){s=a;break}}else r=!1;if(-1===s){if(-1===i)return".";s=i}return e.slice(0,s)},basename(e,t){void 0!==t&&rn(t,"ext"),rn(e,"path");let i,n=0,o=-1,s=!0;if(e.length>=2&&dn(e.charCodeAt(0))&&e.charCodeAt(1)===on&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){const l=e.charCodeAt(i);if(ln(l)){if(!s){n=i+1;break}}else-1===a&&(s=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1==--r&&(o=i):(r=-1,o=a))}return n===o?o=a:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=n;--i)if(ln(e.charCodeAt(i))){if(!s){n=i+1;break}}else-1===o&&(s=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){rn(e,"path");let t=0,i=-1,n=0,o=-1,s=!0,r=0;e.length>=2&&e.charCodeAt(1)===on&&dn(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(ln(t)){if(!s){n=a+1;break}}else-1===o&&(s=!1,o=a+1),t===en?-1===i?i=a:1!==r&&(r=1):-1!==i&&(r=-1)}return-1===i||-1===o||0===r||1===r&&i===o-1&&i===n+1?"":e.slice(i,o)},format:un.bind(null,"\\"),parse(e){rn(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let n=0,o=e.charCodeAt(0);if(1===i)return ln(o)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(ln(o)){if(n=1,ln(e.charCodeAt(1))){let t=2,o=t;for(;t0&&(t.root=e.slice(0,n));let s=-1,r=n,a=-1,l=!0,c=e.length-1,d=0;for(;c>=n;--c)if(o=e.charCodeAt(c),ln(o)){if(!l){r=c+1;break}}else-1===a&&(l=!1,a=c+1),o===en?-1===s?s=c:1!==d&&(d=1):-1!==s&&(d=-1);return-1!==a&&(-1===s||0===d||1===d&&s===a-1&&s===r+1?t.base=t.name=e.slice(r,a):(t.name=e.slice(r,s),t.base=e.slice(r,a),t.ext=e.slice(s,a))),t.dir=r>0&&r!==n?e.slice(0,r-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},mn=(()=>{if(an){const e=/\\/g;return()=>{const t=Ji().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>Ji()})(),pn={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=-1&&!i;n--){const o=n>=0?e[n]:mn();rn(o,"path"),0!==o.length&&(t=`${o}/${t}`,i=o.charCodeAt(0)===tn)}return t=hn(t,!i,"/",cn),i?`/${t}`:t.length>0?t:"."},normalize(e){if(rn(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===tn,i=e.charCodeAt(e.length-1)===tn;return 0===(e=hn(e,!t,"/",cn)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(rn(e,"path"),e.length>0&&e.charCodeAt(0)===tn),join(...e){if(0===e.length)return".";let t;for(let i=0;i0&&(void 0===t?t=n:t+=`/${n}`)}return void 0===t?".":pn.normalize(t)},relative(e,t){if(rn(e,"from"),rn(t,"to"),e===t)return"";if((e=pn.resolve(e))===(t=pn.resolve(t)))return"";const i=e.length,n=i-1,o=t.length-1,s=ns){if(t.charCodeAt(1+a)===tn)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else n>s&&(e.charCodeAt(1+a)===tn?r=a:0===a&&(r=0));let l="";for(a=1+r+1;a<=i;++a)a!==i&&e.charCodeAt(a)!==tn||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+r)}`},toNamespacedPath:e=>e,dirname(e){if(rn(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===tn;let i=-1,n=!0;for(let o=e.length-1;o>=1;--o)if(e.charCodeAt(o)===tn){if(!n){i=o;break}}else n=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&rn(t,"ext"),rn(e,"path");let i,n=0,o=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){const l=e.charCodeAt(i);if(l===tn){if(!s){n=i+1;break}}else-1===a&&(s=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1==--r&&(o=i):(r=-1,o=a))}return n===o?o=a:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===tn){if(!s){n=i+1;break}}else-1===o&&(s=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){rn(e,"path");let t=-1,i=0,n=-1,o=!0,s=0;for(let r=e.length-1;r>=0;--r){const a=e.charCodeAt(r);if(a!==tn)-1===n&&(o=!1,n=r+1),a===en?-1===t?t=r:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){i=r+1;break}}return-1===t||-1===n||0===s||1===s&&t===n-1&&t===i+1?"":e.slice(t,n)},format:un.bind(null,"/"),parse(e){rn(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===tn;let n;i?(t.root="/",n=1):n=0;let o=-1,s=0,r=-1,a=!0,l=e.length-1,c=0;for(;l>=n;--l){const t=e.charCodeAt(l);if(t!==tn)-1===r&&(a=!1,r=l+1),t===en?-1===o?o=l:1!==c&&(c=1):-1!==o&&(c=-1);else if(!a){s=l+1;break}}if(-1!==r){const n=0===s&&i?1:s;-1===o||0===c||1===c&&o===r-1&&o===s+1?t.base=t.name=e.slice(n,r):(t.name=e.slice(n,o),t.base=e.slice(n,r),t.ext=e.slice(o,r))}return s>0?t.dir=e.slice(0,s-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};pn.win32=gn.win32=gn,pn.posix=gn.posix=pn;const fn=an?gn.normalize:pn.normalize,_n=an?gn.resolve:pn.resolve,bn=an?gn.relative:pn.relative,vn=an?gn.dirname:pn.dirname,Sn=an?gn.basename:pn.basename,Cn=an?gn.extname:pn.extname,En=an?gn.sep:pn.sep,wn=/^\w[\w\d+.-]*$/,Tn=/^\//,yn=/^\/\//,Rn="",Ln="/",In=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class An{static isUri(e){return e instanceof An||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}constructor(e,t,i,n,o,s=!1){var r,a;"object"==typeof e?(this.scheme=e.scheme||Rn,this.authority=e.authority||Rn,this.path=e.path||Rn,this.query=e.query||Rn,this.fragment=e.fragment||Rn):(this.scheme=(a=s,(r=e)||a?r:"file"),this.authority=t||Rn,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Ln&&(t=Ln+t):t=Ln}return t}(this.scheme,i||Rn),this.query=n||Rn,this.fragment=o||Rn,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!wn.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!Tn.test(e.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(yn.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,s))}get fsPath(){return Mn(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:o,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=Rn),void 0===i?i=this.authority:null===i&&(i=Rn),void 0===n?n=this.path:null===n&&(n=Rn),void 0===o?o=this.query:null===o&&(o=Rn),void 0===s?s=this.fragment:null===s&&(s=Rn),t===this.scheme&&i===this.authority&&n===this.path&&o===this.query&&s===this.fragment?this:new kn(t,i,n,o,s)}static parse(e,t=!1){const i=In.exec(e);return i?new kn(i[2]||Rn,Hn(i[4]||Rn),Hn(i[5]||Rn),Hn(i[7]||Rn),Hn(i[9]||Rn),t):new kn(Rn,Rn,Rn,Rn,Rn)}static file(e){let t=Rn;if(Me&&(e=e.replace(/\\/g,Ln)),e[0]===Ln&&e[1]===Ln){const i=e.indexOf(Ln,2);-1===i?(t=e.substring(2),e=Ln):(t=e.substring(2,i),e=e.substring(i)||Ln)}return new kn("file",t,e,Rn,Rn)}static from(e,t){return new kn(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return i=Me&&"file"===e.scheme?An.file(gn.join(Mn(e,!0),...t)).path:pn.join(e.path,...t),e.with({path:i})}toString(e=!1){return Pn(this,e)}toJSON(){return this}static revive(e){var t,i;if(e){if(e instanceof An)return e;{const n=new kn(e);return n._formatted=null!==(t=e.external)&&void 0!==t?t:null,n._fsPath=e._sep===Nn&&null!==(i=e.fsPath)&&void 0!==i?i:null,n}}return e}}const Nn=Me?1:void 0;let kn=class extends An{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Mn(this,!1)),this._fsPath}toString(e=!1){return e?Pn(this,!0):(this._formatted||(this._formatted=Pn(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=Nn),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 Dn={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 On(e,t,i){let n,o=-1;for(let s=0;s=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||45===r||46===r||95===r||126===r||t&&47===r||i&&91===r||i&&93===r||i&&58===r)-1!==o&&(n+=encodeURIComponent(e.substring(o,s)),o=-1),void 0!==n&&(n+=e.charAt(s));else{void 0===n&&(n=e.substr(0,s));const t=Dn[r];void 0!==t?(-1!==o&&(n+=encodeURIComponent(e.substring(o,s)),o=-1),n+=t):-1===o&&(o=s)}}return-1!==o&&(n+=encodeURIComponent(e.substring(o))),void 0!==n?n:e}function xn(e){let t;for(let i=0;i1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,Me&&(i=i.replace(/\//g,"\\")),i}function Pn(e,t){const i=t?xn:On;let n="",{scheme:o,authority:s,path:r,query:a,fragment:l}=e;if(o&&(n+=o,n+=":"),(s||"file"===o)&&(n+=Ln,n+=Ln),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?n+=i(t,!1,!1):(n+=i(t.substr(0,e),!1,!1),n+=":",n+=i(t.substr(e+1),!1,!0)),n+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?n+=i(s,!1,!0):(n+=i(s.substr(0,e),!1,!0),n+=s.substr(e))}if(r){if(r.length>=3&&47===r.charCodeAt(0)&&58===r.charCodeAt(2)){const e=r.charCodeAt(1);e>=65&&e<=90&&(r=`/${String.fromCharCode(e+32)}:${r.substr(3)}`)}else if(r.length>=2&&58===r.charCodeAt(1)){const e=r.charCodeAt(0);e>=65&&e<=90&&(r=`${String.fromCharCode(e+32)}:${r.substr(2)}`)}n+=i(r,!0,!1)}return a&&(n+="?",n+=i(a,!1,!1)),l&&(n+="#",n+=t?l:On(l,!1,!1)),n}function Fn(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+Fn(e.substr(3)):e}}const Bn=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Hn(e){return e.match(Bn)?e.replace(Bn,(e=>Fn(e))):e}let Wn=class e{constructor(e,t){this.lineNumber=e,this.column=t}with(t=this.lineNumber,i=this.column){return t===this.lineNumber&&i===this.column?this:new e(t,i)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(t){return e.equals(this,t)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(t){return e.isBefore(this,t)}static isBefore(e,t){return e.lineNumberi||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return e.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(t){return e.containsPosition(this,t)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(t){return e.containsRange(this,t)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(t){return e.strictContainsRange(this,t)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(t){return e.plusRange(this,t)}static plusRange(t,i){let n,o,s,r;return i.startLineNumbert.endLineNumber?(s=i.endLineNumber,r=i.endColumn):i.endLineNumber===t.endLineNumber?(s=i.endLineNumber,r=Math.max(i.endColumn,t.endColumn)):(s=t.endLineNumber,r=t.endColumn),new e(n,o,s,r)}intersectRanges(t){return e.intersectRanges(this,t)}static intersectRanges(t,i){let n=t.startLineNumber,o=t.startColumn,s=t.endLineNumber,r=t.endColumn;const a=i.startLineNumber,l=i.startColumn,c=i.endLineNumber,d=i.endColumn;return nc?(s=c,r=d):s===c&&(r=Math.min(r,d)),n>s||n===s&&o>r?null:new e(n,o,s,r)}equalsRange(t){return e.equalsRange(this,t)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return e.getEndPosition(this)}static getEndPosition(e){return new Wn(e.endLineNumber,e.endColumn)}getStartPosition(){return e.getStartPosition(this)}static getStartPosition(e){return new Wn(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,i){return new e(this.startLineNumber,this.startColumn,t,i)}setStartPosition(t,i){return new e(t,i,this.endLineNumber,this.endColumn)}collapseToStart(){return e.collapseToStart(this)}static collapseToStart(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return e.collapseToEnd(this)}static collapseToEnd(t){return new e(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new e(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,i=t){return new e(t.lineNumber,t.column,i.lineNumber,i.column)}static lift(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}},Vn=class e extends Un{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return e.selectionsEqual(this,t)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,i){return 0===this.getDirection()?new e(this.startLineNumber,this.startColumn,t,i):new e(t,i,this.startLineNumber,this.startColumn)}getPosition(){return new Wn(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Wn(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,i){return 0===this.getDirection()?new e(t,i,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,i)}static fromPositions(t,i=t){return new e(t.lineNumber,t.column,i.lineNumber,i.column)}static fromRange(t,i){return 0===i?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new e(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i{e&&e.dispose()}))}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const go=new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new Ri,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),ui((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var i;null===(i=this._factories.get(e))||void 0===i||i.dispose();const n=new qn(this,e,t);return this._factories.set(e,n),ui((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const i=this._factories.get(e);return!i||i.isResolved?null:(await i.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.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}};var mo,po,fo,_o,bo,vo,So,Co,Eo,wo,To,yo,Ro,Lo,Io,Ao,No,ko,Do,Oo,xo,Mo,Po,Fo,Bo,Ho,Wo,Uo,Vo,Go,zo,Ko,Yo,qo,$o,jo,Xo,Jo,Qo,Zo,es,ts,is,ns,os,ss,rs;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(mo||(mo={})),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(po||(po={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(fo||(fo={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(_o||(_o={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(bo||(bo={})),function(e){e[e.Deprecated=1]="Deprecated"}(vo||(vo={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(So||(So={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(Co||(Co={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(Eo||(Eo={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(wo||(wo={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(To||(To={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(yo||(yo={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",e[e.quickSuggestions=89]="quickSuggestions",e[e.quickSuggestionsDelay=90]="quickSuggestionsDelay",e[e.readOnly=91]="readOnly",e[e.readOnlyMessage=92]="readOnlyMessage",e[e.renameOnType=93]="renameOnType",e[e.renderControlCharacters=94]="renderControlCharacters",e[e.renderFinalNewline=95]="renderFinalNewline",e[e.renderLineHighlight=96]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=98]="renderValidationDecorations",e[e.renderWhitespace=99]="renderWhitespace",e[e.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",e[e.roundedSelection=101]="roundedSelection",e[e.rulers=102]="rulers",e[e.scrollbar=103]="scrollbar",e[e.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=105]="scrollBeyondLastLine",e[e.scrollPredominantAxis=106]="scrollPredominantAxis",e[e.selectionClipboard=107]="selectionClipboard",e[e.selectionHighlight=108]="selectionHighlight",e[e.selectOnLineNumbers=109]="selectOnLineNumbers",e[e.showFoldingControls=110]="showFoldingControls",e[e.showUnused=111]="showUnused",e[e.snippetSuggestions=112]="snippetSuggestions",e[e.smartSelect=113]="smartSelect",e[e.smoothScrolling=114]="smoothScrolling",e[e.stickyScroll=115]="stickyScroll",e[e.stickyTabStops=116]="stickyTabStops",e[e.stopRenderingLineAfter=117]="stopRenderingLineAfter",e[e.suggest=118]="suggest",e[e.suggestFontSize=119]="suggestFontSize",e[e.suggestLineHeight=120]="suggestLineHeight",e[e.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",e[e.suggestSelection=122]="suggestSelection",e[e.tabCompletion=123]="tabCompletion",e[e.tabIndex=124]="tabIndex",e[e.unicodeHighlighting=125]="unicodeHighlighting",e[e.unusualLineTerminators=126]="unusualLineTerminators",e[e.useShadowDOM=127]="useShadowDOM",e[e.useTabStops=128]="useTabStops",e[e.wordBreak=129]="wordBreak",e[e.wordSegmenterLocales=130]="wordSegmenterLocales",e[e.wordSeparators=131]="wordSeparators",e[e.wordWrap=132]="wordWrap",e[e.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=135]="wordWrapColumn",e[e.wordWrapOverride1=136]="wordWrapOverride1",e[e.wordWrapOverride2=137]="wordWrapOverride2",e[e.wrappingIndent=138]="wrappingIndent",e[e.wrappingStrategy=139]="wrappingStrategy",e[e.showDeprecated=140]="showDeprecated",e[e.inlayHints=141]="inlayHints",e[e.editorClassName=142]="editorClassName",e[e.pixelRatio=143]="pixelRatio",e[e.tabFocusMode=144]="tabFocusMode",e[e.layoutInfo=145]="layoutInfo",e[e.wrappingInfo=146]="wrappingInfo",e[e.defaultColorDecorators=147]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"}(Ro||(Ro={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Lo||(Lo={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(Io||(Io={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(Ao||(Ao={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(No||(No={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(ko||(ko={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Do||(Do={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(Oo||(Oo={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(xo||(xo={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(Mo||(Mo={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(Po||(Po={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(Fo||(Fo={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(Bo||(Bo={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(Ho||(Ho={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(Wo||(Wo={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(Uo||(Uo={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(Vo||(Vo={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(Go||(Go={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(zo||(zo={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(Ko||(Ko={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(Yo||(Yo={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(qo||(qo={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}($o||($o={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(jo||(jo={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Xo||(Xo={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Jo||(Jo={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(Qo||(Qo={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(Zo||(Zo={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(es||(es={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(ts||(ts={})),function(e){e[e.Deprecated=1]="Deprecated"}(is||(is={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(ns||(ns={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(os||(os={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(ss||(ss={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(rs||(rs={}));let as=class{static chord(e,t){return $i(e,t)}};function ls(){return{editor:void 0,languages:void 0,CancellationTokenSource:Fi,Emitter:Ri,KeyCode:Po,KeyMod:as,Position:Wn,Range:Un,Selection:Vn,SelectionDirection:Qo,MarkerSeverity:Fo,MarkerTag:Bo,Uri:An,Token:$n}}as.CtrlCmd=2048,as.Shift=1024,as.Alt=512,as.WinCtrl=256;const cs=window;function ds(e){return e}class hs{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"==typeof e?(this._fn=e,this._computeKey=ds):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const i=this._fn(e);return this._map.set(e,i),this._map2.set(t,i),i}}class us{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(H){this._error=H}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var gs;function ms(e){return!e||"string"!=typeof e||0===e.trim().length}const ps=/{(\d+)}/g;function fs(e,...t){return 0===t.length?e:e.replace(ps,(function(e,i){const n=parseInt(i,10);return isNaN(n)||n<0||n>=t.length?e:t[n]}))}function _s(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function bs(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function vs(e,t=" "){return Cs(Ss(e,t),t)}function Ss(e,t){if(!e||!t)return e;const i=t.length;if(0===i||0===e.length)return e;let n=0;for(;e.indexOf(t,n)===n;)n+=i;return e.substring(n)}function Cs(e,t){if(!e||!t)return e;const i=t.length,n=e.length;if(0===i||0===n)return e;let o=n,s=-1;for(;s=e.lastIndexOf(t,o-1),-1!==s&&s+i===o;){if(0===s)return"";o=s}return e.substring(0,o)}function Es(e,t,i={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=bs(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(e,n)}function ws(e){return e.split(/\r\n|\r|\n/)}function Ts(e){for(let t=0,i=e.length;t=0;i--){const t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return-1}function Ls(e,t){return et?1:0}function Is(e,t,i=0,n=e.length,o=0,s=t.length){for(;is)return 1}const r=n-i,a=s-o;return ra?1:0}function As(e,t){return Ns(e,t,0,e.length,0,t.length)}function Ns(e,t,i=0,n=e.length,o=0,s=t.length){for(;i=128||a>=128)return Is(e.toLowerCase(),t.toLowerCase(),i,n,o,s);Ds(r)&&(r-=32),Ds(a)&&(a-=32);const l=r-a;if(0!==l)return l}const r=n-i,a=s-o;return ra?1:0}function ks(e){return e>=48&&e<=57}function Ds(e){return e>=97&&e<=122}function Os(e){return e>=65&&e<=90}function xs(e,t){return e.length===t.length&&0===Ns(e,t)}function Ms(e,t){const i=t.length;return!(t.length>e.length)&&0===Ns(e,t,0,i)}function Ps(e,t){const i=Math.min(e.length,t.length);let n;for(n=0;n1){const n=e.charCodeAt(t-2);if(Bs(n))return Ws(n,i)}return i}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=Us(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class Gs{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new Vs(e,t)}nextGraphemeLength(){const e=or.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const i=t.offset,o=e.getGraphemeBreakType(t.nextCodePoint());if(nr(n,o)){t.setOffset(i);break}n=o}return t.offset-i}prevGraphemeLength(){const e=or.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const i=t.offset,o=e.getGraphemeBreakType(t.prevCodePoint());if(nr(o,n)){t.setOffset(i);break}n=o}return i-t.offset}eol(){return this._iterator.eol()}}function zs(e,t){return new Gs(e,t).nextGraphemeLength()}function Ks(e,t){return new Gs(e,t).prevGraphemeLength()}let Ys;function qs(e){return Ys||(Ys=/(?:[\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])/),Ys.test(e)}const $s=/^[\t\n\r\x20-\x7E]*$/;function js(e){return $s.test(e)}const Xs=/[\u2028\u2029]/;function Js(e){return Xs.test(e)}function Qs(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function Zs(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const er=String.fromCharCode(65279);function tr(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function ir(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function nr(e,t){return 0===e?5!==t&&7!==t:!(2===e&&3===t||4!==e&&2!==e&&3!==e&&4!==t&&2!==t&&3!==t&&(8===e&&(8===t||9===t||11===t||12===t)||!(11!==e&&9!==e||9!==t&&10!==t)||(12===e||10===e)&&10===t||5===t||13===t||7===t||1===e||13===e&&14===t||6===e&&6===t))}class or{static getInstance(){return or._INSTANCE||(or._INSTANCE=new or),or._INSTANCE}constructor(){this._data=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]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let n=1;for(;n<=i;)if(et[3*n+1]))return t[3*n+2];n=2*n+1}return 0}}function sr(e){return 127995<=e&&e<=127999}or._INSTANCE=null;class rr{static getInstance(e){return gs.cache.get(Array.from(e))}static getLocales(){return gs._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())}}gs=rr,rr.ambiguousCharacterData=new us((()=>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]}'))),rr.cache=new class{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"==typeof e?(this._fn=e,this._computeKey=ds):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let i=0;i!e.startsWith("_")&&e in n));0===s.length&&(s=["_default"]);for(const a of s)o=i(o,t(n[a]));const r=function(e,t){const i=new Map(e);for(const[n,o]of t)i.set(n,o);return i}(t(n._common),o);return new gs(r)})),rr._locales=new us((()=>Object.keys(gs.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))));class ar{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(ar.getRawData())),this._data}static isInvisibleCharacter(e){return ar.getData().has(e)}static get codePoints(){return ar.getData()}}ar._data=void 0;class lr{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){var t;return null!==(t=this.mapWindowIdToZoomFactor.get(this.getWindowId(e)))&&void 0!==t?t:1}getWindowId(e){return e.vscodeWindowId}}function cr(e,t,i){"string"==typeof t&&(t=e.matchMedia(t)),t.addEventListener("change",i)}lr.INSTANCE=new lr;const dr=navigator.userAgent,hr=dr.indexOf("Firefox")>=0,ur=dr.indexOf("AppleWebKit")>=0,gr=dr.indexOf("Chrome")>=0,mr=!gr&&dr.indexOf("Safari")>=0,pr=!gr&&!mr&&ur;dr.indexOf("Electron/");const fr=dr.indexOf("Android")>=0;let _r=!1;if("function"==typeof cs.matchMedia){const e=cs.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=cs.matchMedia("(display-mode: fullscreen)");_r=e.matches,cr(cs,e,(({matches:e})=>{_r&&t.matches||(_r=e)}))}Be||document.queryCommandSupported&&document.queryCommandSupported("copy")||navigator&&navigator.clipboard&&navigator.clipboard.writeText,Be||navigator&&navigator.clipboard&&navigator.clipboard.readText,Be||_r||navigator.keyboard,"ontouchstart"in cs||navigator.maxTouchPoints;const br=cs.PointerEvent&&("ontouchstart"in cs||navigator.maxTouchPoints>0);function vr(e,t){if("number"==typeof e){if(0===e)return null;const i=(65535&e)>>>0,n=(4294901760&e)>>>16;return new Er(0!==n?[Sr(i,t),Sr(n,t)]:[Sr(i,t)])}{const i=[];for(let n=0;n{const o=t.token.onCancellationRequested((()=>{o.dispose(),n(new ii)}));Promise.resolve(i).then((i=>{o.dispose(),t.dispose(),e(i)}),(e=>{o.dispose(),t.dispose(),n(e)}))}));return new class{cancel(){t.cancel(),t.dispose()}then(e,t){return n.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return n.finally(e)}}}function Pr(e,t,i){return new Promise(((n,o)=>{const s=t.onCancellationRequested((()=>{s.dispose(),n(i)}));e.then(n,o).finally((()=>s.dispose()))}))}class Fr{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 e=()=>{if(this.queuedPromise=null,this.isDisposed)return;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise((t=>{this.activePromise.then(e,e).then(t)}))}return new Promise(((e,t)=>{this.queuedPromise.then(e,t)}))}return this.activePromise=e(),new Promise(((e,t)=>{this.activePromise.then((t=>{this.activePromise=null,e(t)}),(e=>{this.activePromise=null,t(e)}))}))}dispose(){this.isDisposed=!0}}class Br{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(((e,t)=>{this.doResolve=e,this.doReject=t})).then((()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}})));const i=()=>{var e;this.deferred=null,null===(e=this.doResolve)||void 0===e||e.call(this,null)};return this.deferred=t===Or?(e=>{let t=!0;return queueMicrotask((()=>{t&&(t=!1,e())})),{isTriggered:()=>t,dispose:()=>{t=!1}}})(i):((e,t)=>{let i=!0;const n=setTimeout((()=>{i=!1,t()}),e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(n),i=!1}}})(t,i),this.completionPromise}isTriggered(){var e;return!!(null===(e=this.deferred)||void 0===e?void 0:e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&(null===(e=this.doReject)||void 0===e||e.call(this,new ii),this.completionPromise=null)}cancelTimeout(){var e;null===(e=this.deferred)||void 0===e||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class Hr{constructor(e){this.delayer=new Br(e),this.throttler=new Fr}trigger(e,t){return this.delayer.trigger((()=>this.throttler.queue(e)),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function Wr(e,t){return t?new Promise(((i,n)=>{const o=setTimeout((()=>{s.dispose(),i()}),e),s=t.onCancellationRequested((()=>{clearTimeout(o),s.dispose(),n(new ii)}))})):Mr((t=>Wr(e,t)))}function Ur(e,t=0,i){const n=setTimeout((()=>{e(),i&&o.dispose()}),t),o=ui((()=>{clearTimeout(n),null==i||i.deleteAndLeak(o)}));return null==i||i.add(o),o}function Vr(e,t=(e=>!!e),i=null){let n=0;const o=e.length,s=()=>{if(n>=o)return Promise.resolve(i);const r=e[n++];return Promise.resolve(r()).then((e=>t(e)?Promise.resolve(e):s()))};return s()}class Gr{constructor(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout((()=>{this._token=-1,e()}),t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout((()=>{this._token=-1,e()}),t))}}class zr{constructor(){this.disposable=void 0}cancel(){var e;null===(e=this.disposable)||void 0===e||e.dispose(),this.disposable=void 0}cancelAndSet(e,t,i=globalThis){this.cancel();const n=i.setInterval((()=>{e()}),t);this.disposable=ui((()=>{i.clearInterval(n),this.disposable=void 0}))}dispose(){this.cancel()}}class Kr{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,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-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;null===(e=this.runner)||void 0===e||e.call(this)}}let Yr,qr;qr="function"!=typeof globalThis.requestIdleCallback||"function"!=typeof globalThis.cancelIdleCallback?(e,t)=>{Ye((()=>{if(i)return;const e=Date.now()+15,n={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(n))}));let i=!1;return{dispose(){i||(i=!0)}}}:(e,t,i)=>{const n=e.requestIdleCallback(t,"number"==typeof i?{timeout:i}:void 0);let o=!1;return{dispose(){o||(o=!0,e.cancelIdleCallback(n))}}},Yr=e=>qr(globalThis,e);class $r{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(sue){this._error=sue}finally{this._didRun=!0}},this._handle=qr(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 jr extends $r{constructor(e){super(globalThis,e)}}class Xr{get isRejected(){var e;return 1===(null===(e=this.outcome)||void 0===e?void 0:e.outcome)}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise(((e,t)=>{this.completeCallback=e,this.errorCallback=t}))}complete(e){return new Promise((t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()}))}error(e){return new Promise((t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()}))}cancel(){return this.error(new ii)}}var Jr;!function(e){e.settled=async function(e){let t;const i=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if(void 0!==t)throw t;return i},e.withAsyncBody=function(e){return new Promise((async(t,i)=>{try{await e(t,i)}catch(n){i(n)}}))}}(Jr||(Jr={}));class Qr{static fromArray(e){return new Qr((t=>{t.emitMany(e)}))}static fromPromise(e){return new Qr((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new Qr((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new Qr((async t=>{await Promise.all(e.map((async e=>{for await(const i of e)t.emitOne(i)})))}))}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new Ri,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(sue){this.reject(sue)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e{var e;return null===(e=this._onReturn)||void 0===e||e.call(this),{done:!0,value:void 0}}}}static map(e,t){return new Qr((async i=>{for await(const n of e)i.emitOne(t(n))}))}map(e){return Qr.map(this,e)}static filter(e,t){return new Qr((async i=>{for await(const n of e)t(n)&&i.emitOne(n)}))}filter(e){return Qr.filter(this,e)}static coalesce(e){return Qr.filter(e,(e=>!!e))}coalesce(){return Qr.coalesce(this)}static async toPromise(e){const t=[];for await(const i of e)t.push(i);return t}toPromise(){return Qr.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}Qr.EMPTY=Qr.fromArray([]);class Zr extends Qr{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}} +/*! @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:ea,setPrototypeOf:ta,isFrozen:ia,getPrototypeOf:na,getOwnPropertyDescriptor:oa}=Object;let{freeze:sa,seal:ra,create:aa}=Object,{apply:la,construct:ca}="undefined"!=typeof Reflect&&Reflect;la||(la=function(e,t,i){return e.apply(t,i)}),sa||(sa=function(e){return e}),ra||(ra=function(e){return e}),ca||(ca=function(e,t){return new e(...t)});const da=Ea(Array.prototype.forEach),ha=Ea(Array.prototype.pop),ua=Ea(Array.prototype.push),ga=Ea(String.prototype.toLowerCase),ma=Ea(String.prototype.toString),pa=Ea(String.prototype.match),fa=Ea(String.prototype.replace),_a=Ea(String.prototype.indexOf),ba=Ea(String.prototype.trim),va=Ea(RegExp.prototype.test),Sa=(Ca=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i1?i-1:0),o=1;o/gm),Ha=ra(/\${[\w\W]*}/gm),Wa=ra(/^data-[\-\w.\u00B7-\uFFFF]/),Ua=ra(/^aria-[\-\w]+$/),Va=ra(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ga=ra(/^(?:\w+script|data):/i),za=ra(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ka=ra(/^html$/i);var Ya=Object.freeze({__proto__:null,MUSTACHE_EXPR:Fa,ERB_EXPR:Ba,TMPLIT_EXPR:Ha,DATA_ATTR:Wa,ARIA_ATTR:Ua,IS_ALLOWED_URI:Va,IS_SCRIPT_OR_DATA:Ga,ATTR_WHITESPACE:za,DOCTYPE_NAME:Ka});var qa=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const i=t=>e(t);if(i.version="3.0.5",i.removed=[],!t||!t.document||9!==t.document.nodeType)return i.isSupported=!1,i;const n=t.document,o=n.currentScript;let{document:s}=t;const{DocumentFragment:r,HTMLTemplateElement:a,Node:l,Element:c,NodeFilter:d,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:u,DOMParser:g,trustedTypes:m}=t,p=c.prototype,f=ya(p,"cloneNode"),_=ya(p,"nextSibling"),b=ya(p,"childNodes"),v=ya(p,"parentNode");if("function"==typeof a){const e=s.createElement("template");e.content&&e.content.ownerDocument&&(s=e.content.ownerDocument)}let S,C="";const{implementation:E,createNodeIterator:w,createDocumentFragment:T,getElementsByTagName:y}=s,{importNode:R}=n;let L={};i.isSupported="function"==typeof ea&&"function"==typeof v&&E&&void 0!==E.createHTMLDocument;const{MUSTACHE_EXPR:I,ERB_EXPR:A,TMPLIT_EXPR:N,DATA_ATTR:k,ARIA_ATTR:D,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:x}=Ya;let{IS_ALLOWED_URI:M}=Ya,P=null;const F=wa({},[...Ra,...La,...Ia,...Na,...Da]);let B=null;const H=wa({},[...Oa,...xa,...Ma,...Pa]);let W=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}})),U=null,V=null,G=!0,z=!0,K=!1,Y=!0,q=!1,$=!1,j=!1,X=!1,J=!1,Q=!1,Z=!1,ee=!0,te=!1,ie=!0,ne=!1,oe={},se=null;const re=wa({},["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 ae=null;const le=wa({},["audio","video","img","source","image","track"]);let ce=null;const de=wa({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",ue="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let me=ge,pe=!1,fe=null;const _e=wa({},[he,ue,ge],ma);let be;const ve=["application/xhtml+xml","text/html"];let Se,Ce=null;const Ee=s.createElement("form"),we=function(e){return e instanceof RegExp||e instanceof Function},Te=function(e){if(!Ce||Ce!==e){if(e&&"object"==typeof e||(e={}),e=Ta(e),be=be=-1===ve.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Se="application/xhtml+xml"===be?ma:ga,P="ALLOWED_TAGS"in e?wa({},e.ALLOWED_TAGS,Se):F,B="ALLOWED_ATTR"in e?wa({},e.ALLOWED_ATTR,Se):H,fe="ALLOWED_NAMESPACES"in e?wa({},e.ALLOWED_NAMESPACES,ma):_e,ce="ADD_URI_SAFE_ATTR"in e?wa(Ta(de),e.ADD_URI_SAFE_ATTR,Se):de,ae="ADD_DATA_URI_TAGS"in e?wa(Ta(le),e.ADD_DATA_URI_TAGS,Se):le,se="FORBID_CONTENTS"in e?wa({},e.FORBID_CONTENTS,Se):re,U="FORBID_TAGS"in e?wa({},e.FORBID_TAGS,Se):{},V="FORBID_ATTR"in e?wa({},e.FORBID_ATTR,Se):{},oe="USE_PROFILES"in e&&e.USE_PROFILES,G=!1!==e.ALLOW_ARIA_ATTR,z=!1!==e.ALLOW_DATA_ATTR,K=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,q=e.SAFE_FOR_TEMPLATES||!1,$=e.WHOLE_DOCUMENT||!1,J=e.RETURN_DOM||!1,Q=e.RETURN_DOM_FRAGMENT||!1,Z=e.RETURN_TRUSTED_TYPE||!1,X=e.FORCE_BODY||!1,ee=!1!==e.SANITIZE_DOM,te=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,ne=e.IN_PLACE||!1,M=e.ALLOWED_URI_REGEXP||Va,me=e.NAMESPACE||ge,W=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&we(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&we(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(W.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),q&&(z=!1),Q&&(J=!0),oe&&(P=wa({},[...Da]),B=[],!0===oe.html&&(wa(P,Ra),wa(B,Oa)),!0===oe.svg&&(wa(P,La),wa(B,xa),wa(B,Pa)),!0===oe.svgFilters&&(wa(P,Ia),wa(B,xa),wa(B,Pa)),!0===oe.mathMl&&(wa(P,Na),wa(B,Ma),wa(B,Pa))),e.ADD_TAGS&&(P===F&&(P=Ta(P)),wa(P,e.ADD_TAGS,Se)),e.ADD_ATTR&&(B===H&&(B=Ta(B)),wa(B,e.ADD_ATTR,Se)),e.ADD_URI_SAFE_ATTR&&wa(ce,e.ADD_URI_SAFE_ATTR,Se),e.FORBID_CONTENTS&&(se===re&&(se=Ta(se)),wa(se,e.FORBID_CONTENTS,Se)),ie&&(P["#text"]=!0),$&&wa(P,["html","head","body"]),P.table&&(wa(P,["tbody"]),delete U.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Sa('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Sa('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=e.TRUSTED_TYPES_POLICY,C=S.createHTML("")}else void 0===S&&(S=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(s){return null}}(m,o)),null!==S&&"string"==typeof C&&(C=S.createHTML(""));sa&&sa(e),Ce=e}},ye=wa({},["mi","mo","mn","ms","mtext"]),Re=wa({},["foreignobject","desc","title","annotation-xml"]),Le=wa({},["title","style","font","a","script"]),Ie=wa({},La);wa(Ie,Ia),wa(Ie,Aa);const Ae=wa({},Na);wa(Ae,ka);const Ne=function(e){ua(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},ke=function(e,t){try{ua(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(sue){ua(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!B[e])if(J||Q)try{Ne(t)}catch(sue){}else try{t.setAttribute(e,"")}catch(sue){}},De=function(e){let t,i;if(X)e=""+e;else{const t=pa(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===be&&me===ge&&(e=''+e+"");const n=S?S.createHTML(e):e;if(me===ge)try{t=(new g).parseFromString(n,be)}catch(sue){}if(!t||!t.documentElement){t=E.createDocument(me,"template",null);try{t.documentElement.innerHTML=pe?C:n}catch(sue){}}const o=t.body||t.documentElement;return e&&i&&o.insertBefore(s.createTextNode(i),o.childNodes[0]||null),me===ge?y.call(t,$?"html":"body")[0]:$?t.documentElement:o},Oe=function(e){return w.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},xe=function(e){return"object"==typeof l?e instanceof l:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Me=function(e,t,n){L[e]&&da(L[e],(e=>{e.call(i,t,n,Ce)}))},Pe=function(e){let t;if(Me("beforeSanitizeElements",e,null),(n=e)instanceof u&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof h)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return Ne(e),!0;var n;const o=Se(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:o,allowedTags:P}),e.hasChildNodes()&&!xe(e.firstElementChild)&&(!xe(e.content)||!xe(e.content.firstElementChild))&&va(/<[/\w]/g,e.innerHTML)&&va(/<[/\w]/g,e.textContent))return Ne(e),!0;if(!P[o]||U[o]){if(!U[o]&&Be(o)){if(W.tagNameCheck instanceof RegExp&&va(W.tagNameCheck,o))return!1;if(W.tagNameCheck instanceof Function&&W.tagNameCheck(o))return!1}if(ie&&!se[o]){const t=v(e)||e.parentNode,i=b(e)||e.childNodes;if(i&&t)for(let n=i.length-1;n>=0;--n)t.insertBefore(f(i[n],!0),_(e))}return Ne(e),!0}return e instanceof c&&!function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:me,tagName:"template"});const i=ga(e.tagName),n=ga(t.tagName);return!!fe[e.namespaceURI]&&(e.namespaceURI===ue?t.namespaceURI===ge?"svg"===i:t.namespaceURI===he?"svg"===i&&("annotation-xml"===n||ye[n]):Boolean(Ie[i]):e.namespaceURI===he?t.namespaceURI===ge?"math"===i:t.namespaceURI===ue?"math"===i&&Re[n]:Boolean(Ae[i]):e.namespaceURI===ge?!(t.namespaceURI===ue&&!Re[n])&&!(t.namespaceURI===he&&!ye[n])&&!Ae[i]&&(Le[i]||!Ie[i]):!("application/xhtml+xml"!==be||!fe[e.namespaceURI]))}(e)?(Ne(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!va(/<\/no(script|embed|frames)/i,e.innerHTML)?(q&&3===e.nodeType&&(t=e.textContent,t=fa(t,I," "),t=fa(t,A," "),t=fa(t,N," "),e.textContent!==t&&(ua(i.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Ne(e),!0)},Fe=function(e,t,i){if(ee&&("id"===t||"name"===t)&&(i in s||i in Ee))return!1;if(z&&!V[t]&&va(k,t));else if(G&&va(D,t));else if(!B[t]||V[t]){if(!(Be(e)&&(W.tagNameCheck instanceof RegExp&&va(W.tagNameCheck,e)||W.tagNameCheck instanceof Function&&W.tagNameCheck(e))&&(W.attributeNameCheck instanceof RegExp&&va(W.attributeNameCheck,t)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(t))||"is"===t&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&va(W.tagNameCheck,i)||W.tagNameCheck instanceof Function&&W.tagNameCheck(i))))return!1}else if(ce[t]);else if(va(M,fa(i,x,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==_a(i,"data:")||!ae[e])if(K&&!va(O,fa(i,x,"")));else if(i)return!1;return!0},Be=function(e){return e.indexOf("-")>0},He=function(e){let t,n,o,s;Me("beforeSanitizeAttributes",e,null);const{attributes:r}=e;if(!r)return;const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B};for(s=r.length;s--;){t=r[s];const{name:l,namespaceURI:c}=t;if(n="value"===l?t.value:ba(t.value),o=Se(l),a.attrName=o,a.attrValue=n,a.keepAttr=!0,a.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,a),n=a.attrValue,a.forceKeepAttr)continue;if(ke(l,e),!a.keepAttr)continue;if(!Y&&va(/\/>/i,n)){ke(l,e);continue}q&&(n=fa(n,I," "),n=fa(n,A," "),n=fa(n,N," "));const d=Se(e.nodeName);if(Fe(d,o,n)){if(!te||"id"!==o&&"name"!==o||(ke(l,e),n="user-content-"+n),S&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(c);else switch(m.getAttributeType(d,o)){case"TrustedHTML":n=S.createHTML(n);break;case"TrustedScriptURL":n=S.createScriptURL(n)}try{c?e.setAttributeNS(c,l,n):e.setAttribute(l,n),ha(i.removed)}catch(sue){}}}Me("afterSanitizeAttributes",e,null)},We=function e(t){let i;const n=Oe(t);for(Me("beforeSanitizeShadowDOM",t,null);i=n.nextNode();)Me("uponSanitizeShadowNode",i,null),Pe(i)||(i.content instanceof r&&e(i.content),He(i));Me("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(e){let t,o,s,a,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(pe=!e,pe&&(e="\x3c!--\x3e"),"string"!=typeof e&&!xe(e)){if("function"!=typeof e.toString)throw Sa("toString is not a function");if("string"!=typeof(e=e.toString()))throw Sa("dirty is not a string, aborting")}if(!i.isSupported)return e;if(j||Te(c),i.removed=[],"string"==typeof e&&(ne=!1),ne){if(e.nodeName){const t=Se(e.nodeName);if(!P[t]||U[t])throw Sa("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)t=De("\x3c!----\x3e"),o=t.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?t=o:t.appendChild(o);else{if(!J&&!q&&!$&&-1===e.indexOf("<"))return S&&Z?S.createHTML(e):e;if(t=De(e),!t)return J?null:Z?C:""}t&&X&&Ne(t.firstChild);const d=Oe(ne?e:t);for(;s=d.nextNode();)Pe(s)||(s.content instanceof r&&We(s.content),He(s));if(ne)return e;if(J){if(Q)for(a=T.call(t.ownerDocument);t.firstChild;)a.appendChild(t.firstChild);else a=t;return(B.shadowroot||B.shadowrootmode)&&(a=R.call(n,a,!0)),a}let h=$?t.outerHTML:t.innerHTML;return $&&P["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&va(Ka,t.ownerDocument.doctype.name)&&(h="\n"+h),q&&(h=fa(h,I," "),h=fa(h,A," "),h=fa(h,N," ")),S&&Z?S.createHTML(h):h},i.setConfig=function(e){Te(e),j=!0},i.clearConfig=function(){Ce=null,j=!1},i.isValidAttribute=function(e,t,i){Ce||Te({});const n=Se(e),o=Se(t);return Fe(n,o,i)},i.addHook=function(e,t){"function"==typeof t&&(L[e]=L[e]||[],ua(L[e],t))},i.removeHook=function(e){if(L[e])return ha(L[e])},i.removeHooks=function(e){L[e]&&(L[e]=[])},i.removeAllHooks=function(){L={}},i}();qa.version,qa.isSupported;const $a=qa.sanitize;qa.setConfig,qa.clearConfig,qa.isValidAttribute;const ja=qa.addHook,Xa=qa.removeHook;var Ja;function Qa(e,t){return An.isUri(e)?xs(e.scheme,t):Ms(e,t+":")}function Za(e,...t){return t.some((t=>Qa(e,t)))}qa.removeHooks,qa.removeAllHooks,function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompreBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting"}(Ja||(Ja={}));const el=new class{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 pn.join(this._serverRootPath,Ja.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(r){return Jt(r),e}const t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&-1===i.indexOf("[")&&(i=`[${i}]`);const n=this._ports[t],o=this._connectionTokens[t];let s=`path=${encodeURIComponent(e.path)}`;return"string"==typeof o&&(s+=`&tkn=${encodeURIComponent(o)}`),An.from({scheme:He?this._preferredWebSchema:Ja.vscodeRemoteResource,authority:`${i}:${n}`,path:this._remoteResourcesPath,query:s})}};class tl{uriToBrowserUri(e){return e.scheme===Ja.vscodeRemote?el.rewrite(e):e.scheme!==Ja.file||!Be&&We!==`${Ja.vscodeFileResource}://${tl.FALLBACK_AUTHORITY}`?e:e.with({scheme:Ja.vscodeFileResource,authority:e.authority||tl.FALLBACK_AUTHORITY,query:null,fragment:null})}}tl.FALLBACK_AUTHORITY="vscode-app";const il=new tl;var nl;function ol(e){return sl(e,0)}function sl(e,t){switch(typeof e){case"object":return null===e?rl(349,t):Array.isArray(e)?(o=e,s=rl(104579,s=t),o.reduce(((e,t)=>sl(t,e)),s)):(i=e,n=rl(181387,n=t),Object.keys(i).sort().reduce(((e,t)=>(e=al(t,e),sl(i[t],e))),n));case"string":return al(e,t);case"boolean":return function(e,t){return rl(e?433:863,t)}(e,t);case"number":return rl(e,t);case"undefined":return rl(937,t);default:return rl(617,t)}var i,n,o,s}function rl(e,t){return(t<<5)-t+e|0}function al(e,t){t=rl(149417,t);for(let i=0,n=e.length;i>>n)>>>0}function cl(e,t=0,i=e.byteLength,n=0){for(let o=0;oe.toString(16).padStart(2,"0"))).join(""):function(e,t,i="0"){for(;e.length>>0).toString(16),t/4)}!function(e){const t=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"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const i="vscode-coi";e.getHeadersFromQuery=function(e){let n;"string"==typeof e?n=new URL(e).searchParams:e instanceof URL?n=e.searchParams:An.isUri(e)&&(n=new URL(e.toString(!0)).searchParams);const o=null==n?void 0:n.get(i);if(o)return t.get(o)},e.addSearchParam=function(e,t,n){if(!globalThis.crossOriginIsolated)return;const o=t&&n?"3":n?"2":"1";e instanceof URLSearchParams?e.set(i,o):e[i]=o}}(nl||(nl={}));class hl{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 t=e.length;if(0===t)return;const i=this._buff;let n,o,s=this._buffLen,r=this._leftoverHighSurrogate;for(0!==r?(n=r,o=-1,r=0):(n=e.charCodeAt(0),o=0);;){let a=n;if(Bs(n)){if(!(o+1>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}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()),dl(this._h0)+dl(this._h1)+dl(this._h2)+dl(this._h3)+dl(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,cl(this._buff,this._buffLen),this._buffLen>56&&(this._step(),cl(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=hl._bigBlock32,t=this._buffDV;for(let d=0;d<64;d+=4)e.setUint32(d,t.getUint32(d,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,ll(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let i,n,o,s=this._h0,r=this._h1,a=this._h2,l=this._h3,c=this._h4;for(let d=0;d<80;d++)d<20?(i=r&a|~r&l,n=1518500249):d<40?(i=r^a^l,n=1859775393):d<60?(i=r&a|r&l|a&l,n=2400959708):(i=r^a^l,n=3395469782),o=ll(s,5)+i+c+n+e.getUint32(4*d,!1)&4294967295,c=l,l=a,a=ll(r,30),r=s,s=o;this._h0=this._h0+s&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+c&4294967295}}hl._bigBlock32=new DataView(new ArrayBuffer(320));const{registerWindow:ul,getWindow:gl,getDocument:ml,getWindows:pl,getWindowsCount:fl,getWindowId:_l,getWindowById:bl,hasWindow:vl,onDidRegisterWindow:Sl,onWillUnregisterWindow:Cl,onDidUnregisterWindow:El}=function(){const e=new Map;!function(e,t){const i=cs;"number"!=typeof i.vscodeWindowId&&Object.defineProperty(i,"vscodeWindowId",{get:()=>1})}();const t={window:cs,disposables:new gi};e.set(cs.vscodeWindowId,t);const i=new Ri,n=new Ri,o=new Ri;return{onDidRegisterWindow:i.event,onWillUnregisterWindow:o.event,onDidUnregisterWindow:n.event,registerWindow(t){if(e.has(t.vscodeWindowId))return mi.None;const s=new gi,r={window:t,disposables:s.add(new gi)};return e.set(t.vscodeWindowId,r),s.add(ui((()=>{e.delete(t.vscodeWindowId),n.fire(t)}))),s.add(yl(t,mc.BEFORE_UNLOAD,(()=>{o.fire(t)}))),i.fire(r),s},getWindows:()=>e.values(),getWindowsCount:()=>e.size,getWindowId:e=>e.vscodeWindowId,hasWindow:t=>e.has(t),getWindowById:function(i,n){const o="number"==typeof i?e.get(i):void 0;return null!=o?o:n?t:void 0},getWindow(e){var t;const i=e;if(null===(t=null==i?void 0:i.ownerDocument)||void 0===t?void 0:t.defaultView)return i.ownerDocument.defaultView.window;const n=e;return(null==n?void 0:n.view)?n.view.window:cs},getDocument:e=>gl(e).document}}();function wl(e){for(;e.firstChild;)e.firstChild.remove()}class Tl{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!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 yl(e,t,i,n){return new Tl(e,t,i,n)}function Rl(e,t){return function(i){return t(new kr(e,i))}}const Ll=function(e,t,i,n){let o=i;return"click"===t||"mousedown"===t?o=Rl(gl(e),i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(s=i,o=function(e){return s(new Lr(e))}),yl(e,t,o,n);var s};function Il(e,t,i){return qr(e,t,i)}class Al extends $r{constructor(e,t){super(e,t)}}let Nl,kl;class Dl extends zr{constructor(e){super(),this.defaultTarget=e&&gl(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,null!=i?i:this.defaultTarget)}}class Ol{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(H){Jt(H)}}static sort(e,t){return t.priority-e.priority}}function xl(e){return gl(e).getComputedStyle(e,null)}function Ml(e,t){const i=gl(e),n=i.document;if(e!==n.body)return new Fl(e.clientWidth,e.clientHeight);if(Ue&&(null==i?void 0:i.visualViewport))return new Fl(i.visualViewport.width,i.visualViewport.height);if((null==i?void 0:i.innerWidth)&&i.innerHeight)return new Fl(i.innerWidth,i.innerHeight);if(n.body&&n.body.clientWidth&&n.body.clientHeight)return new Fl(n.body.clientWidth,n.body.clientHeight);if(n.documentElement&&n.documentElement.clientWidth&&n.documentElement.clientHeight)return new Fl(n.documentElement.clientWidth,n.documentElement.clientHeight);if(t)return Ml(t);throw new Error("Unable to figure out browser width and height")}!function(){const e=new Map,t=new Map,i=new Map,n=new Map;kl=(o,s,r=0)=>{const a=_l(o),l=new Ol(s,r);let c=e.get(a);return c||(c=[],e.set(a,c)),c.push(l),i.get(a)||(i.set(a,!0),o.requestAnimationFrame((()=>(o=>{var s;i.set(o,!1);const r=null!==(s=e.get(o))&&void 0!==s?s:[];for(t.set(o,r),e.set(o,[]),n.set(o,!0);r.length>0;)r.sort(Ol.sort),r.shift().execute();n.set(o,!1)})(a)))),l},Nl=(e,i,o)=>{const s=_l(e);if(n.get(s)){const e=new Ol(i,o);let n=t.get(s);return n||(n=[],t.set(s,n)),n.push(e),e}return kl(e,i,o)}}();class Pl{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const n=xl(e),o=n?n.getPropertyValue(t):"0";return Pl.convertToPixels(e,o)}static getBorderLeftWidth(e){return Pl.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return Pl.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return Pl.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return Pl.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return Pl.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return Pl.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return Pl.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return Pl.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return Pl.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return Pl.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return Pl.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return Pl.getDimension(e,"margin-bottom","marginBottom")}}class Fl{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new Fl(e,t):this}static is(e){return"object"==typeof e&&"number"==typeof e.height&&"number"==typeof e.width}static lift(e){return e instanceof Fl?e:new Fl(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&e.width===t.width&&e.height===t.height}}function Bl(e){let t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){i-=e.scrollTop;const o=ql(e)?null:xl(e);o&&(n-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=Pl.getBorderLeftWidth(e),i+=Pl.getBorderTopWidth(e),i+=e.offsetTop,n+=e.offsetLeft,t=e.offsetParent)}return{left:n,top:i}}function Hl(e){const t=e.getBoundingClientRect(),i=gl(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function Wl(e){let t=e,i=1;do{const e=xl(t).zoom;null!=e&&"1"!==e&&(i*=e),t=t.parentElement}while(null!==t&&t!==t.ownerDocument.documentElement);return i}function Ul(e){const t=Pl.getMarginLeft(e)+Pl.getMarginRight(e);return e.offsetWidth+t}function Vl(e){const t=Pl.getBorderLeftWidth(e)+Pl.getBorderRightWidth(e),i=Pl.getPaddingLeft(e)+Pl.getPaddingRight(e);return e.offsetWidth-t-i}function Gl(e){const t=Pl.getBorderTopWidth(e)+Pl.getBorderBottomWidth(e),i=Pl.getPaddingTop(e)+Pl.getPaddingBottom(e);return e.offsetHeight-t-i}function zl(e){const t=Pl.getMarginTop(e)+Pl.getMarginBottom(e);return e.offsetHeight+t}function Kl(e,t){return Boolean(null==t?void 0:t.contains(e))}function Yl(e,t,i){return!!function(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i)if("string"==typeof i){if(e.classList.contains(i))return null}else if(e===i)return null;e=e.parentNode}return null}(e,t,i)}function ql(e){return e&&!!e.host&&!!e.mode}function $l(e){return!!jl(e)}function jl(e){for(var t;e.parentNode;){if(e===(null===(t=e.ownerDocument)||void 0===t?void 0:t.body))return null;e=e.parentNode}return ql(e)?e:null}function Xl(){let e=Zl().activeElement;for(;null==e?void 0:e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Jl(e){return Xl()===e}function Ql(e){return Kl(Xl(),e)}function Zl(){var e;return fl()<=1?cs.document:null!==(e=Array.from(pl()).map((({window:e})=>e.document)).find((e=>e.hasFocus())))&&void 0!==e?e:cs.document}Fl.None=new Fl(0,0);const ec=new Map;function tc(){return new ic}class ic{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=nc(cs.document.head,(t=>t.innerText=e)))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function nc(e=cs.document.head,t,i){const n=document.createElement("style");if(n.type="text/css",n.media="screen",null==t||t(n),e.appendChild(n),i&&i.add(ui((()=>e.removeChild(n)))),e===cs.document.head){const e=new Set;ec.set(n,e);for(const{window:t,disposables:o}of pl()){if(t===cs)continue;const s=o.add(oc(n,e,t));null==i||i.add(s)}}return n}function oc(e,t,i){var n,o;const s=new gi,r=e.cloneNode(!0);i.document.head.appendChild(r),s.add(ui((()=>i.document.head.removeChild(r))));for(const a of lc(e))null===(n=r.sheet)||void 0===n||n.insertRule(a.cssText,null===(o=r.sheet)||void 0===o?void 0:o.cssRules.length);return s.add(sc.observe(e,s,{childList:!0})((()=>{r.textContent=e.textContent}))),t.add(r),s.add(ui((()=>t.delete(r)))),s}const sc=new class{constructor(){this.mutationObservers=new Map}observe(e,t,i){let n=this.mutationObservers.get(e);n||(n=new Map,this.mutationObservers.set(e,n));const o=ol(i);let s=n.get(o);if(s)s.users+=1;else{const r=new Ri,a=new MutationObserver((e=>r.fire(e)));a.observe(e,i);const l=s={users:1,observer:a,onDidMutate:r.event};t.add(ui((()=>{l.users-=1,0===l.users&&(r.dispose(),a.disconnect(),null==n||n.delete(o),0===(null==n?void 0:n.size)&&this.mutationObservers.delete(e))}))),n.set(o,s)}return s.onDidMutate}};let rc=null;function ac(){return rc||(rc=nc()),rc}function lc(e){var t,i;return(null===(t=null==e?void 0:e.sheet)||void 0===t?void 0:t.rules)?e.sheet.rules:(null===(i=null==e?void 0:e.sheet)||void 0===i?void 0:i.cssRules)?e.sheet.cssRules:[]}function cc(e,t,i=ac()){var n,o;if(i&&t){null===(n=i.sheet)||void 0===n||n.insertRule(`${e} {${t}}`,0);for(const n of null!==(o=ec.get(i))&&void 0!==o?o:[])cc(e,t,n)}}function dc(e,t=ac()){var i,n;if(!t)return;const o=lc(t),s=[];for(let r=0;r=0;r--)null===(i=t.sheet)||void 0===i||i.deleteRule(s[r]);for(const r of null!==(n=ec.get(t))&&void 0!==n?n:[])dc(e,r)}function hc(e){return"string"==typeof e.selectorText}function uc(e){return e instanceof MouseEvent||e instanceof gl(e).MouseEvent}function gc(e){return e instanceof KeyboardEvent||e instanceof gl(e).KeyboardEvent}const mc={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:ur?"webkitAnimationStart":"animationstart",ANIMATION_END:ur?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:ur?"webkitAnimationIteration":"animationiteration"};function pc(e){const t=e;return!(!t||"function"!=typeof t.preventDefault||"function"!=typeof t.stopPropagation)}const fc=(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e);class _c extends mi{static hasFocusWithin(e){if(e instanceof HTMLElement){const t=jl(e);return Kl(t?t.activeElement:e.ownerDocument.activeElement,e)}{const t=e;return Kl(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new Ri),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new Ri),this.onDidBlur=this._onDidBlur.event;let t=_c.hasFocusWithin(e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(i=!0,(e instanceof HTMLElement?gl(e):e).setTimeout((()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())}),0))};this._refreshStateHandler=()=>{_c.hasFocusWithin(e)!==t&&(t?o():n())},this._register(yl(e,mc.FOCUS,n,!0)),this._register(yl(e,mc.BLUR,o,!0)),e instanceof HTMLElement&&(this._register(yl(e,mc.FOCUS_IN,(()=>this._refreshStateHandler()))),this._register(yl(e,mc.FOCUS_OUT,(()=>this._refreshStateHandler()))))}}function bc(e){return new _c(e)}function vc(e,...t){if(e.append(...t),1===t.length&&"string"!=typeof t[0])return t[0]}function Sc(e,t){return e.insertBefore(t,e.firstChild),t}function Cc(e,...t){e.innerText="",vc(e,...t)}const Ec=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var wc;function Tc(e,t,i,...n){const o=Ec.exec(t);if(!o)throw new Error("Bad use of emmet");const s=o[1]||"div";let r;return r=e!==wc.HTML?document.createElementNS(e,s):document.createElement(s),o[3]&&(r.id=o[3]),o[4]&&(r.className=o[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach((([e,t])=>{void 0!==t&&(/^on\w+$/.test(e)?r[e]=t:"selected"===e?t&&r.setAttribute(e,"true"):r.setAttribute(e,t))})),r.append(...n),r}function yc(e,t,...i){return Tc(wc.HTML,e,t,...i)}function Rc(...e){for(const t of e)t.style.display="",t.removeAttribute("aria-hidden")}function Lc(...e){for(const t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function Ic(e,t){const i=e.devicePixelRatio*t;return Math.max(1,Math.floor(i))/e.devicePixelRatio}function Ac(e){cs.open(e,"_blank","noopener")}function Nc(e){return e?`url('${il.uriToBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function kc(e){return`'${e.replace(/'/g,"%27")}'`}function Dc(e,t){if(void 0!==e){const i=e.match(/^\s*var\((.+)\)$/);if(i){const e=i[1].split(",",2);return 2===e.length&&(t=Dc(e[1].trim(),t)),`var(${e[0]}, ${t})`}return e}return t}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(wc||(wc={})),yc.SVG=function(e,t,...i){return Tc(wc.SVG,e,t,...i)},el.setPreferredWebSchema(/^https:/.test(cs.location.href)?"https":"http");const Oc=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 xc extends Ri{constructor(){super(),this._subscriptions=new gi,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(Ci.runAndSubscribe(Sl,(({window:e,disposables:t})=>this.registerListeners(e,t)),{window:cs,disposables:this._subscriptions}))}registerListeners(e,t){t.add(yl(e,"keydown",(e=>{if(e.defaultPrevented)return;const t=new Lr(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}}),!0)),t.add(yl(e,"keyup",(e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.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=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))}),!0)),t.add(yl(e.document.body,"mousedown",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(yl(e.document.body,"mouseup",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(yl(e.document.body,"mousemove",(e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)}),!0)),t.add(yl(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 xc.instance||(xc.instance=new xc),xc.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class Mc extends mi{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(yl(this.element,mc.DRAG_START,(e=>{var t,i;null===(i=(t=this.callbacks).onDragStart)||void 0===i||i.call(t,e)}))),this.callbacks.onDrag&&this._register(yl(this.element,mc.DRAG,(e=>{var t,i;null===(i=(t=this.callbacks).onDrag)||void 0===i||i.call(t,e)}))),this._register(yl(this.element,mc.DRAG_ENTER,(e=>{var t,i;this.counter++,this.dragStartTime=e.timeStamp,null===(i=(t=this.callbacks).onDragEnter)||void 0===i||i.call(t,e)}))),this._register(yl(this.element,mc.DRAG_OVER,(e=>{var t,i;e.preventDefault(),null===(i=(t=this.callbacks).onDragOver)||void 0===i||i.call(t,e,e.timeStamp-this.dragStartTime)}))),this._register(yl(this.element,mc.DRAG_LEAVE,(e=>{var t,i;this.counter--,0===this.counter&&(this.dragStartTime=0,null===(i=(t=this.callbacks).onDragLeave)||void 0===i||i.call(t,e))}))),this._register(yl(this.element,mc.DRAG_END,(e=>{var t,i;this.counter=0,this.dragStartTime=0,null===(i=(t=this.callbacks).onDragEnd)||void 0===i||i.call(t,e)}))),this._register(yl(this.element,mc.DROP,(e=>{var t,i;this.counter=0,this.dragStartTime=0,null===(i=(t=this.callbacks).onDrop)||void 0===i||i.call(t,e)})))}}const Pc=/(?[\w\-]+)?(?:#(?[\w\-]+))?(?(?:\.(?:[\w\-]+))*)(?:@(?(?:[\w\_])+))?/;function Fc(e,...t){let i,n;Array.isArray(t[0])?(i={},n=t[0]):(i=t[0]||{},n=t[1]);const o=Pc.exec(e);if(!o||!o.groups)throw new Error("Bad use of h");const s=o.groups.tag||"div",r=document.createElement(s);o.groups.id&&(r.id=o.groups.id);const a=[];if(o.groups.class)for(const c of o.groups.class.split("."))""!==c&&a.push(c);if(void 0!==i.className)for(const c of i.className.split("."))""!==c&&a.push(c);a.length>0&&(r.className=a.join(" "));const l={};if(o.groups.name&&(l[o.groups.name]=r),n)for(const c of n)c instanceof HTMLElement?r.appendChild(c):"string"==typeof c?r.append(c):"root"in c&&(Object.assign(l,c),r.appendChild(c.root));for(const[c,d]of Object.entries(i))if("className"!==c)if("style"===c)for(const[e,t]of Object.entries(d))r.style.setProperty(Bc(e),"number"==typeof t?t+"px":""+t);else"tabIndex"===c?r.tabIndex=d:r.setAttribute(Bc(c),d.toString());return l.root=r,l}function Bc(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}class Hc extends mi{constructor(e){super(),this._onDidChange=this._register(new Ri),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){var i;null===(i=this._mediaQueryList)||void 0===i||i.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class Wc extends mi{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new Ri),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new Hc(e));this._register(t.onDidChange((()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)})))}_getPixelRatio(e){const t=document.createElement("canvas").getContext("2d");return(e.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}}const Uc=new class{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=_l(e);let i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=new Wc(e),this.mapWindowIdToPixelRatioMonitor.set(t,i),Ci.once(El)((({vscodeWindowId:e})=>{e===t&&(null==i||i.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))}))),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}};class Vc{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 t=Gc(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=Gc(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=Gc(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=Gc(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=Gc(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=Gc(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=Gc(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=Gc(e);this._paddingLeft!==t&&(this._paddingLeft=t,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 t=Gc(e);this._fontSize!==t&&(this._fontSize=t,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 t=Gc(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=Gc(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),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,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function Gc(e){return"number"==typeof e?`${e}px`:e}function zc(e){return new Vc(e)}function Kc(e,t){e instanceof Vc?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}class Yc{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class qc{constructor(e,t){this._bareFontInfo=e,this._requests=t,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 t=document.createElement("div");Kc(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");Kc(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const n=document.createElement("div");Kc(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);const o=[];for(const s of this._requests){let e;0===s.type&&(e=t),2===s.type&&(e=i),1===s.type&&(e=n),e.appendChild(document.createElement("br"));const r=document.createElement("span");qc._render(r,s),e.appendChild(r),o.push(r)}this._container=e,this._testElements=o}static _render(e,t){if(" "===t.chr){let t=" ";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;ethis._values[e]))}}const Zc=new class extends mi{constructor(){super(...arguments),this._cache=new Map,this._evictUntrustedReadingsTimeout=-1,this._onDidChange=this._register(new Ri),this.onDidChange=this._onDidChange.event}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache.clear(),this._onDidChange.fire()}_ensureCache(e){const t=_l(e);let i=this._cache.get(t);return i||(i=new Qc,this._cache.set(t,i)),i}_writeToCache(e,t,i){this._ensureCache(e).put(t,i),i.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=e.setTimeout((()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(e)}),5e3))}_evictUntrustedReadings(e){const t=this._ensureCache(e),i=t.getValues();let n=!1;for(const o of i)o.isTrusted||(n=!0,t.remove(o));n&&this._onDidChange.fire()}readFontInfo(e,t){const i=this._ensureCache(e);if(!i.has(t)){let i=this._actualReadFontInfo(e,t);(i.typicalHalfwidthCharacterWidth<=2||i.typicalFullwidthCharacterWidth<=2||i.spaceWidth<=2||i.maxDigitWidth<=2)&&(i=new Jc({pixelRatio:Uc.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:i.isMonospace,typicalHalfwidthCharacterWidth:Math.max(i.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(i.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:i.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(i.spaceWidth,5),middotWidth:Math.max(i.middotWidth,5),wsmiddotWidth:Math.max(i.wsmiddotWidth,5),maxDigitWidth:Math.max(i.maxDigitWidth,5)},!1)),this._writeToCache(e,t,i)}return i.get(t)}_createRequest(e,t,i,n){const o=new Yc(e,t);return i.push(o),null==n||n.push(o),o}_actualReadFontInfo(e,t){const i=[],n=[],o=this._createRequest("n",0,i,n),s=this._createRequest("m",0,i,null),r=this._createRequest(" ",0,i,n),a=this._createRequest("0",0,i,n),l=this._createRequest("1",0,i,n),c=this._createRequest("2",0,i,n),d=this._createRequest("3",0,i,n),h=this._createRequest("4",0,i,n),u=this._createRequest("5",0,i,n),g=this._createRequest("6",0,i,n),m=this._createRequest("7",0,i,n),p=this._createRequest("8",0,i,n),f=this._createRequest("9",0,i,n),_=this._createRequest("→",0,i,n),b=this._createRequest("→",0,i,null),v=this._createRequest("·",0,i,n),S=this._createRequest(String.fromCharCode(11825),0,i,null),C="|/-_ilm%";for(let L=0,I=8;L.001){T=!1;break}}let R=!0;return T&&b.width!==y&&(R=!1),b.width>_.width&&(R=!1),new Jc({pixelRatio:Uc.getInstance(e).value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:T,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:s.width,canUseHalfwidthRightwardsArrow:R,spaceWidth:r.width,middotWidth:v.width,wsmiddotWidth:S.width,maxDigitWidth:w},!0)}};var ed;!function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(ed||(ed={}));const td=id("instantiationService");function id(e){if(ed.serviceIds.has(e))return ed.serviceIds.get(e);const t=function(e,i,n){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");var o,s,r;o=t,r=n,(s=e)[ed.DI_TARGET]===s?s[ed.DI_DEPENDENCIES].push({id:o,index:r}):(s[ed.DI_DEPENDENCIES]=[{id:o,index:r}],s[ed.DI_TARGET]=s)};return t.toString=()=>e,ed.serviceIds.set(e,t),t}const nd=id("codeEditorService"),od=id("modelService"),sd=id("textModelService");class rd extends mi{constructor(e,t="",i="",n=!0,o){super(),this._onDidChange=this._register(new Ri),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=n,this._actionCallback=o}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,t){this._actionCallback&&await this._actionCallback(e)}}class ad extends mi{constructor(){super(...arguments),this._onWillRun=this._register(new Ri),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new Ri),this.onDidRun=this._onDidRun.event}async run(e,t){if(!e.enabled)return;let i;this._onWillRun.fire({action:e});try{await this.runAction(e,t)}catch(sue){i=sue}this._onDidRun.fire({action:e,error:i})}async runAction(e,t){await e.run(t)}}class ld{constructor(){this.id=ld.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(const i of e)i.length&&(t=t.length?[...t,new ld,...i]:i);return t}async run(){}}ld.ID="vs.actions.separator";class cd{get actions(){return this._actions}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}async run(){}}class dd extends rd{constructor(){super(dd.ID,pe("vs/base/common/actions","submenu.empty","(empty)"),void 0,!1)}}function hd(e){var t;return{id:e.id,label:e.label,class:e.class,enabled:null===(t=e.enabled)||void 0===t||t,checked:e.checked,run:async(...t)=>e.run(...t),tooltip:e.label}}var ud,gd;dd.ID="vs.actions.empty",(ud||(ud={})).isThemeColor=function(e){return e&&"object"==typeof e&&"string"==typeof e.id},function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function i(e){const n=t.exec(e.id);if(!n)return i(Yn.error);const[,o,s]=n,r=["codicon","codicon-"+o];return s&&r.push("codicon-modifier-"+s.substring(1)),r}e.asClassNameArray=i,e.asClassName=function(e){return i(e).join(" ")},e.asCSSSelector=function(e){return"."+i(e).join(".")},e.isThemeIcon=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&(void 0===e.color||ud.isThemeColor(e.color))};const n=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=n.exec(e);if(!t)return;const[,i]=t;return{id:i}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let i=e.id;const n=i.lastIndexOf("~");return-1!==n&&(i=i.substring(0,n)),t&&(i=`${i}~${t}`),{id:i}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){var i,n;return e.id===t.id&&(null===(i=e.color)||void 0===i?void 0:i.id)===(null===(n=t.color)||void 0===n?void 0:n.id)}}(gd||(gd={}));const md=id("commandService"),pd=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Ri,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"==typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.metadata&&Array.isArray(e.metadata.args)){const t=[];for(const n of e.metadata.args)t.push(n.constraint);const i=e.handler;e.handler=function(e,...n){return function(e,t){const i=Math.min(e.length,t.length);for(let n=0;n{o();const e=this._commands.get(i);(null==e?void 0:e.isEmpty())&&this._commands.delete(i)}));return this._onDidRegisterCommand.fire(i),s}registerCommandAlias(e,t){return pd.registerCommand(e,((e,...i)=>e.get(md).executeCommand(t,...i)))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return nt.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const i=this.getCommand(t);i&&e.set(t,i)}return e}};function fd(...e){switch(e.length){case 1:return pe("vs/platform/contextkey/common/scanner","contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return pe("vs/platform/contextkey/common/scanner","contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return pe("vs/platform/contextkey/common/scanner","contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}pd.registerCommand("noop",(()=>{}));const _d=pe("vs/platform/contextkey/common/scanner","contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),bd=pe("vs/platform/contextkey/common/scanner","contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");let vd=class e{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:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19: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 20:return"EOF";default:throw oi(`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 e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(fd("==","=~"));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(fd("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(fd("||"));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&&(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 t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;const t=this.stringRe.exec(this._input);if(t){this._current=this._start+t[0].length;const i=this._input.substring(this._start,this._current),n=e._keywords.get(i);n?this._addToken(n):this._tokens.push({type:17,lexeme:i,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(_d):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let t=this._current,i=!1,n=!1;for(;;){if(t>=this._input.length)return this._current=t,void this._error(bd);const e=this._input.charCodeAt(t);if(i)i=!1;else{if(47===e&&!n){t++;break}91===e?n=!0:92===e?i=!0:93===e&&(n=!1)}t++}for(;t=this._input.length}};vd._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0)))),vd._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);const Sd=new Map;Sd.set("false",!1),Sd.set("true",!0),Sd.set("isMac",Pe),Sd.set("isLinux",Fe),Sd.set("isWindows",Me),Sd.set("isWeb",He),Sd.set("isMacNative",Pe&&!He),Sd.set("isEdge",et),Sd.set("isFirefox",Qe),Sd.set("isChrome",Je),Sd.set("isSafari",Ze);const Cd=Object.prototype.hasOwnProperty,Ed={regexParsingWithErrorRecovery:!0},wd=pe("vs/platform/contextkey/common/contextkey","contextkey.parser.error.emptyString","Empty context key expression"),Td=pe("vs/platform/contextkey/common/contextkey","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."),yd=pe("vs/platform/contextkey/common/contextkey","contextkey.parser.error.noInAfterNot","'in' after 'not'."),Rd=pe("vs/platform/contextkey/common/contextkey","contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),Ld=pe("vs/platform/contextkey/common/contextkey","contextkey.parser.error.unexpectedToken","Unexpected token"),Id=pe("vs/platform/contextkey/common/contextkey","contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),Ad=pe("vs/platform/contextkey/common/contextkey","contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),Nd=pe("vs/platform/contextkey/common/contextkey","contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");let kd=class e{constructor(e=Ed){this._config=e,this._scanner=new vd,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(t){if(""!==t){this._tokens=this._scanner.reset(t).scan(),this._current=0,this._parsingErrors=[];try{const t=this._expr();if(!this._isAtEnd()){const t=this._peek(),i=17===t.type?Id:void 0;throw this._parsingErrors.push({message:Ld,offset:t.offset,lexeme:vd.getLexeme(t),additionalInfo:i}),e._parseError}return t}catch(i){if(i!==e._parseError)throw i;return}}else this._parsingErrors.push({message:wd,offset:0,lexeme:"",additionalInfo:Td})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:Dd.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:Dd.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),xd.INSTANCE;case 12:return this._advance(),Md.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,Rd),null==e?void 0:e.negate()}case 17:return this._advance(),Ud.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const t=this._peek();switch(t.type){case 11:return this._advance(),Dd.true();case 12:return this._advance(),Dd.false();case 0:{this._advance();const e=this._expr();return this._consume(1,Rd),e}case 17:{const e=t.lexeme;if(this._advance(),this._matchOne(9)){const t=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==t.type)throw this._errExpectedButGot("REGEX",t);const i=t.lexeme,n=i.lastIndexOf("/"),o=n===i.length-1?void 0:this._removeFlagsGY(i.substring(n+1));let s;try{s=new RegExp(i.substring(1,n),o)}catch(sue){throw this._errExpectedButGot("REGEX",t)}return qd.create(e,s)}switch(t.type){case 10:case 19:{const i=[t.lexeme];this._advance();let n=this._peek(),o=0;for(let e=0;e=0){const r=n.slice(e+1,s),a="i"===n[s+1]?"i":"";try{o=new RegExp(r,a)}catch(i){throw this._errExpectedButGot("REGEX",t)}}}if(null===o)throw this._errExpectedButGot("REGEX",t);return qd.create(e,o)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,yd);const t=this._value();return Dd.notIn(e,t)}switch(this._peek().type){case 3:{this._advance();const t=this._value();if(18===this._previous().type)return Dd.equals(e,t);switch(t){case"true":return Dd.has(e);case"false":return Dd.not(e);default:return Dd.equals(e,t)}}case 4:{this._advance();const t=this._value();if(18===this._previous().type)return Dd.notEquals(e,t);switch(t){case"true":return Dd.not(e);case"false":return Dd.has(e);default:return Dd.notEquals(e,t)}}case 5:return this._advance(),Kd.create(e,this._value());case 6:return this._advance(),Yd.create(e,this._value());case 7:return this._advance(),Gd.create(e,this._value());case 8:return this._advance(),zd.create(e,this._value());case 13:return this._advance(),Dd.in(e,this._value());default:return Dd.has(e)}}case 20:throw this._parsingErrors.push({message:Ad,offset:t.offset,lexeme:"",additionalInfo:Nd}),e._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| 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)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(t,i,n){const o=pe("vs/platform/contextkey/common/contextkey","contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",t,vd.getLexeme(i)),s=i.offset,r=vd.getLexeme(i);return this._parsingErrors.push({message:o,offset:s,lexeme:r,additionalInfo:n}),e._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}};kd._parseError=new Error;class Dd{static false(){return xd.INSTANCE}static true(){return Md.INSTANCE}static has(e){return Pd.create(e)}static equals(e,t){return Fd.create(e,t)}static notEquals(e,t){return Wd.create(e,t)}static regex(e,t){return qd.create(e,t)}static in(e,t){return Bd.create(e,t)}static notIn(e,t){return Hd.create(e,t)}static not(e){return Ud.create(e)}static and(...e){return Xd.create(e,null,!0)}static or(...e){return Jd.create(e,null,!0)}static deserialize(e){if(null!=e)return this._parser.parse(e)}}function Od(e,t){return e.cmp(t)}Dd._parser=new kd({regexParsingWithErrorRecovery:!1});class xd{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 Md.INSTANCE}}xd.INSTANCE=new xd;class Md{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 xd.INSTANCE}}Md.INSTANCE=new Md;class Pd{static create(e,t=null){const i=Sd.get(e);return"boolean"==typeof i?i?Md.INSTANCE:xd.INSTANCE:new Pd(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:eh(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=Sd.get(this.key);return"boolean"==typeof e?e?Md.INSTANCE:xd.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=Ud.create(this.key,this)),this.negated}}class Fd{static create(e,t,i=null){if("boolean"==typeof t)return t?Pd.create(e,i):Ud.create(e,i);const n=Sd.get(e);return"boolean"==typeof n?t===(n?"true":"false")?Md.INSTANCE:xd.INSTANCE:new Fd(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:th(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){const e=Sd.get(this.key);if("boolean"==typeof e){const t=e?"true":"false";return this.value===t?Md.INSTANCE:xd.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=Wd.create(this.key,this.value,this)),this.negated}}class Bd{static create(e,t){return new Bd(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:th(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&this.key===e.key&&this.valueKey===e.valueKey}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):"string"==typeof i&&"object"==typeof t&&null!==t&&Cd.call(t,i)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=Hd.create(this.key,this.valueKey)),this.negated}}class Hd{static create(e,t){return new Hd(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=Bd.create(e,t)}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)}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 Wd{static create(e,t,i=null){if("boolean"==typeof t)return t?Ud.create(e,i):Pd.create(e,i);const n=Sd.get(e);return"boolean"==typeof n?t===(n?"true":"false")?xd.INSTANCE:Md.INSTANCE:new Wd(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:th(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){const e=Sd.get(this.key);if("boolean"==typeof e){const t=e?"true":"false";return this.value===t?xd.INSTANCE:Md.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=Fd.create(this.key,this.value,this)),this.negated}}class Ud{static create(e,t=null){const i=Sd.get(e);return"boolean"==typeof i?i?xd.INSTANCE:Md.INSTANCE:new Ud(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:eh(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=Sd.get(this.key);return"boolean"==typeof e?e?xd.INSTANCE:Md.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Pd.create(this.key,this)),this.negated}}function Vd(e,t){if("string"==typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"==typeof e||"number"==typeof e?t(e):xd.INSTANCE}class Gd{static create(e,t,i=null){return Vd(t,(t=>new Gd(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:th(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Yd.create(this.key,this.value,this)),this.negated}}class zd{static create(e,t,i=null){return Vd(t,(t=>new zd(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:th(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Kd.create(this.key,this.value,this)),this.negated}}class Kd{static create(e,t,i=null){return Vd(t,(t=>new Kd(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:th(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))new Yd(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:th(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Gd.create(this.key,this.value,this)),this.negated}}class qd{static create(e,t){return new qd(e,t)}constructor(e,t){this.key=e,this.regexp=t,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 t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return ti?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}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=$d.create(this)),this.negated}}class $d{static create(e){return new $d(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)}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 jd(e){let t=null;for(let i=0,n=e.length;ie.expr.length)return 1;for(let t=0,i=this.expr.length;t1;){const e=n[n.length-1];if(9!==e.type)break;n.pop();const t=n.pop(),o=0===n.length,s=Jd.create(e.expr.map((e=>Xd.create([e,t],null,i))),null,o);s&&(n.push(s),n.sort(Od))}if(1===n.length)return n[0];if(i){for(let e=0;ee.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=Jd.create(e,this,!0)}return this.negated}}class Jd{static create(e,t,i){return Jd._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,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 t=0,i=this.expr.length;te.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),n=[];for(const e of oh(t))for(const t of oh(i))n.push(Xd.create([e,t],null,!1));e.unshift(Jd.create(n,null,!1))}this.negated=Jd.create(e,this,!0)}return this.negated}}class Qd extends Pd{static all(){return Qd._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,"object"==typeof i?Qd._info.push({...i,key:e}):!0!==i&&Qd._info.push({key:e,description:i,type:null!=t?typeof t: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 Fd.create(this.key,e)}}Qd._info=[];const Zd=id("contextKeyService");function eh(e,t){return et?1:0}function th(e,t,i,n){return ei?1:tn?1:0}function ih(e,t){if(0===e.type||1===t.type)return!0;if(9===e.type)return 9===t.type&&nh(e.expr,t.expr);if(9===t.type){for(const i of t.expr)if(ih(e,i))return!0;return!1}if(6===e.type){if(6===t.type)return nh(t.expr,e.expr);for(const i of e.expr)if(ih(i,t))return!0;return!1}return e.equals(t)}function nh(e,t){let i=0,n=0;for(;i{r(),this._cachedMergedKeybindings=null}))}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(gh)),this._cachedMergedKeybindings.slice(0)}}const uh=new hh;function gh(e,t){if(e.weight1!==t.weight1)return e.weight1-t.weight1;if(e.command&&t.command){if(e.commandt.command)return 1}return e.weight2-t.weight2}dh.add("platform.keybindingsRegistry",uh);var mh,ph=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},fh=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};function _h(e){return void 0!==e.command}class bh{constructor(e){if(bh._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);bh._instances.set(e,this),this.id=e}}bh._instances=new Map,bh.CommandPalette=new bh("CommandPalette"),bh.DebugBreakpointsContext=new bh("DebugBreakpointsContext"),bh.DebugCallStackContext=new bh("DebugCallStackContext"),bh.DebugConsoleContext=new bh("DebugConsoleContext"),bh.DebugVariablesContext=new bh("DebugVariablesContext"),bh.NotebookVariablesContext=new bh("NotebookVariablesContext"),bh.DebugHoverContext=new bh("DebugHoverContext"),bh.DebugWatchContext=new bh("DebugWatchContext"),bh.DebugToolBar=new bh("DebugToolBar"),bh.DebugToolBarStop=new bh("DebugToolBarStop"),bh.EditorContext=new bh("EditorContext"),bh.SimpleEditorContext=new bh("SimpleEditorContext"),bh.EditorContent=new bh("EditorContent"),bh.EditorLineNumberContext=new bh("EditorLineNumberContext"),bh.EditorContextCopy=new bh("EditorContextCopy"),bh.EditorContextPeek=new bh("EditorContextPeek"),bh.EditorContextShare=new bh("EditorContextShare"),bh.EditorTitle=new bh("EditorTitle"),bh.EditorTitleRun=new bh("EditorTitleRun"),bh.EditorTitleContext=new bh("EditorTitleContext"),bh.EditorTitleContextShare=new bh("EditorTitleContextShare"),bh.EmptyEditorGroup=new bh("EmptyEditorGroup"),bh.EmptyEditorGroupContext=new bh("EmptyEditorGroupContext"),bh.EditorTabsBarContext=new bh("EditorTabsBarContext"),bh.EditorTabsBarShowTabsSubmenu=new bh("EditorTabsBarShowTabsSubmenu"),bh.EditorTabsBarShowTabsZenModeSubmenu=new bh("EditorTabsBarShowTabsZenModeSubmenu"),bh.EditorActionsPositionSubmenu=new bh("EditorActionsPositionSubmenu"),bh.ExplorerContext=new bh("ExplorerContext"),bh.ExplorerContextShare=new bh("ExplorerContextShare"),bh.ExtensionContext=new bh("ExtensionContext"),bh.GlobalActivity=new bh("GlobalActivity"),bh.CommandCenter=new bh("CommandCenter"),bh.CommandCenterCenter=new bh("CommandCenterCenter"),bh.LayoutControlMenuSubmenu=new bh("LayoutControlMenuSubmenu"),bh.LayoutControlMenu=new bh("LayoutControlMenu"),bh.MenubarMainMenu=new bh("MenubarMainMenu"),bh.MenubarAppearanceMenu=new bh("MenubarAppearanceMenu"),bh.MenubarDebugMenu=new bh("MenubarDebugMenu"),bh.MenubarEditMenu=new bh("MenubarEditMenu"),bh.MenubarCopy=new bh("MenubarCopy"),bh.MenubarFileMenu=new bh("MenubarFileMenu"),bh.MenubarGoMenu=new bh("MenubarGoMenu"),bh.MenubarHelpMenu=new bh("MenubarHelpMenu"),bh.MenubarLayoutMenu=new bh("MenubarLayoutMenu"),bh.MenubarNewBreakpointMenu=new bh("MenubarNewBreakpointMenu"),bh.PanelAlignmentMenu=new bh("PanelAlignmentMenu"),bh.PanelPositionMenu=new bh("PanelPositionMenu"),bh.ActivityBarPositionMenu=new bh("ActivityBarPositionMenu"),bh.MenubarPreferencesMenu=new bh("MenubarPreferencesMenu"),bh.MenubarRecentMenu=new bh("MenubarRecentMenu"),bh.MenubarSelectionMenu=new bh("MenubarSelectionMenu"),bh.MenubarShare=new bh("MenubarShare"),bh.MenubarSwitchEditorMenu=new bh("MenubarSwitchEditorMenu"),bh.MenubarSwitchGroupMenu=new bh("MenubarSwitchGroupMenu"),bh.MenubarTerminalMenu=new bh("MenubarTerminalMenu"),bh.MenubarViewMenu=new bh("MenubarViewMenu"),bh.MenubarHomeMenu=new bh("MenubarHomeMenu"),bh.OpenEditorsContext=new bh("OpenEditorsContext"),bh.OpenEditorsContextShare=new bh("OpenEditorsContextShare"),bh.ProblemsPanelContext=new bh("ProblemsPanelContext"),bh.SCMInputBox=new bh("SCMInputBox"),bh.SCMChangesSeparator=new bh("SCMChangesSeparator"),bh.SCMIncomingChanges=new bh("SCMIncomingChanges"),bh.SCMIncomingChangesContext=new bh("SCMIncomingChangesContext"),bh.SCMIncomingChangesSetting=new bh("SCMIncomingChangesSetting"),bh.SCMOutgoingChanges=new bh("SCMOutgoingChanges"),bh.SCMOutgoingChangesContext=new bh("SCMOutgoingChangesContext"),bh.SCMOutgoingChangesSetting=new bh("SCMOutgoingChangesSetting"),bh.SCMIncomingChangesAllChangesContext=new bh("SCMIncomingChangesAllChangesContext"),bh.SCMIncomingChangesHistoryItemContext=new bh("SCMIncomingChangesHistoryItemContext"),bh.SCMOutgoingChangesAllChangesContext=new bh("SCMOutgoingChangesAllChangesContext"),bh.SCMOutgoingChangesHistoryItemContext=new bh("SCMOutgoingChangesHistoryItemContext"),bh.SCMChangeContext=new bh("SCMChangeContext"),bh.SCMResourceContext=new bh("SCMResourceContext"),bh.SCMResourceContextShare=new bh("SCMResourceContextShare"),bh.SCMResourceFolderContext=new bh("SCMResourceFolderContext"),bh.SCMResourceGroupContext=new bh("SCMResourceGroupContext"),bh.SCMSourceControl=new bh("SCMSourceControl"),bh.SCMSourceControlInline=new bh("SCMSourceControlInline"),bh.SCMSourceControlTitle=new bh("SCMSourceControlTitle"),bh.SCMTitle=new bh("SCMTitle"),bh.SearchContext=new bh("SearchContext"),bh.SearchActionMenu=new bh("SearchActionContext"),bh.StatusBarWindowIndicatorMenu=new bh("StatusBarWindowIndicatorMenu"),bh.StatusBarRemoteIndicatorMenu=new bh("StatusBarRemoteIndicatorMenu"),bh.StickyScrollContext=new bh("StickyScrollContext"),bh.TestItem=new bh("TestItem"),bh.TestItemGutter=new bh("TestItemGutter"),bh.TestMessageContext=new bh("TestMessageContext"),bh.TestMessageContent=new bh("TestMessageContent"),bh.TestPeekElement=new bh("TestPeekElement"),bh.TestPeekTitle=new bh("TestPeekTitle"),bh.TouchBarContext=new bh("TouchBarContext"),bh.TitleBarContext=new bh("TitleBarContext"),bh.TitleBarTitleContext=new bh("TitleBarTitleContext"),bh.TunnelContext=new bh("TunnelContext"),bh.TunnelPrivacy=new bh("TunnelPrivacy"),bh.TunnelProtocol=new bh("TunnelProtocol"),bh.TunnelPortInline=new bh("TunnelInline"),bh.TunnelTitle=new bh("TunnelTitle"),bh.TunnelLocalAddressInline=new bh("TunnelLocalAddressInline"),bh.TunnelOriginInline=new bh("TunnelOriginInline"),bh.ViewItemContext=new bh("ViewItemContext"),bh.ViewContainerTitle=new bh("ViewContainerTitle"),bh.ViewContainerTitleContext=new bh("ViewContainerTitleContext"),bh.ViewTitle=new bh("ViewTitle"),bh.ViewTitleContext=new bh("ViewTitleContext"),bh.CommentEditorActions=new bh("CommentEditorActions"),bh.CommentThreadTitle=new bh("CommentThreadTitle"),bh.CommentThreadActions=new bh("CommentThreadActions"),bh.CommentThreadAdditionalActions=new bh("CommentThreadAdditionalActions"),bh.CommentThreadTitleContext=new bh("CommentThreadTitleContext"),bh.CommentThreadCommentContext=new bh("CommentThreadCommentContext"),bh.CommentTitle=new bh("CommentTitle"),bh.CommentActions=new bh("CommentActions"),bh.CommentsViewThreadActions=new bh("CommentsViewThreadActions"),bh.InteractiveToolbar=new bh("InteractiveToolbar"),bh.InteractiveCellTitle=new bh("InteractiveCellTitle"),bh.InteractiveCellDelete=new bh("InteractiveCellDelete"),bh.InteractiveCellExecute=new bh("InteractiveCellExecute"),bh.InteractiveInputExecute=new bh("InteractiveInputExecute"),bh.IssueReporter=new bh("IssueReporter"),bh.NotebookToolbar=new bh("NotebookToolbar"),bh.NotebookStickyScrollContext=new bh("NotebookStickyScrollContext"),bh.NotebookCellTitle=new bh("NotebookCellTitle"),bh.NotebookCellDelete=new bh("NotebookCellDelete"),bh.NotebookCellInsert=new bh("NotebookCellInsert"),bh.NotebookCellBetween=new bh("NotebookCellBetween"),bh.NotebookCellListTop=new bh("NotebookCellTop"),bh.NotebookCellExecute=new bh("NotebookCellExecute"),bh.NotebookCellExecuteGoTo=new bh("NotebookCellExecuteGoTo"),bh.NotebookCellExecutePrimary=new bh("NotebookCellExecutePrimary"),bh.NotebookDiffCellInputTitle=new bh("NotebookDiffCellInputTitle"),bh.NotebookDiffCellMetadataTitle=new bh("NotebookDiffCellMetadataTitle"),bh.NotebookDiffCellOutputsTitle=new bh("NotebookDiffCellOutputsTitle"),bh.NotebookOutputToolbar=new bh("NotebookOutputToolbar"),bh.NotebookOutlineFilter=new bh("NotebookOutlineFilter"),bh.NotebookOutlineActionMenu=new bh("NotebookOutlineActionMenu"),bh.NotebookEditorLayoutConfigure=new bh("NotebookEditorLayoutConfigure"),bh.NotebookKernelSource=new bh("NotebookKernelSource"),bh.BulkEditTitle=new bh("BulkEditTitle"),bh.BulkEditContext=new bh("BulkEditContext"),bh.TimelineItemContext=new bh("TimelineItemContext"),bh.TimelineTitle=new bh("TimelineTitle"),bh.TimelineTitleContext=new bh("TimelineTitleContext"),bh.TimelineFilterSubMenu=new bh("TimelineFilterSubMenu"),bh.AccountsContext=new bh("AccountsContext"),bh.SidebarTitle=new bh("SidebarTitle"),bh.PanelTitle=new bh("PanelTitle"),bh.AuxiliaryBarTitle=new bh("AuxiliaryBarTitle"),bh.AuxiliaryBarHeader=new bh("AuxiliaryBarHeader"),bh.TerminalInstanceContext=new bh("TerminalInstanceContext"),bh.TerminalEditorInstanceContext=new bh("TerminalEditorInstanceContext"),bh.TerminalNewDropdownContext=new bh("TerminalNewDropdownContext"),bh.TerminalTabContext=new bh("TerminalTabContext"),bh.TerminalTabEmptyAreaContext=new bh("TerminalTabEmptyAreaContext"),bh.TerminalStickyScrollContext=new bh("TerminalStickyScrollContext"),bh.WebviewContext=new bh("WebviewContext"),bh.InlineCompletionsActions=new bh("InlineCompletionsActions"),bh.InlineEditActions=new bh("InlineEditActions"),bh.NewFile=new bh("NewFile"),bh.MergeInput1Toolbar=new bh("MergeToolbar1Toolbar"),bh.MergeInput2Toolbar=new bh("MergeToolbar2Toolbar"),bh.MergeBaseToolbar=new bh("MergeBaseToolbar"),bh.MergeInputResultToolbar=new bh("MergeToolbarResultToolbar"),bh.InlineSuggestionToolbar=new bh("InlineSuggestionToolbar"),bh.InlineEditToolbar=new bh("InlineEditToolbar"),bh.ChatContext=new bh("ChatContext"),bh.ChatCodeBlock=new bh("ChatCodeblock"),bh.ChatCompareBlock=new bh("ChatCompareBlock"),bh.ChatMessageTitle=new bh("ChatMessageTitle"),bh.ChatExecute=new bh("ChatExecute"),bh.ChatExecuteSecondary=new bh("ChatExecuteSecondary"),bh.ChatInputSide=new bh("ChatInputSide"),bh.AccessibleView=new bh("AccessibleView"),bh.MultiDiffEditorFileToolbar=new bh("MultiDiffEditorFileToolbar"),bh.DiffEditorHunkToolbar=new bh("DiffEditorHunkToolbar"),bh.DiffEditorSelectionToolbar=new bh("DiffEditorSelectionToolbar");const vh=id("menuService");class Sh{static for(e){let t=this._all.get(e);return t||(t=new Sh(e),this._all.set(e,t)),t}static merge(e){const t=new Set;for(const i of e)i instanceof Sh&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}}Sh._all=new Map;const Ch=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new Ni({merge:Sh.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(e){return this._commands.set(e.id,e),this._onDidChangeMenu.fire(Sh.for(bh.CommandPalette)),ui((()=>{this._commands.delete(e.id)&&this._onDidChangeMenu.fire(Sh.for(bh.CommandPalette))}))}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach(((t,i)=>e.set(i,t))),e}appendMenuItem(e,t){let i=this._menuItems.get(e);i||(i=new st,this._menuItems.set(e,i));const n=i.push(t);return this._onDidChangeMenu.fire(Sh.for(e)),ui((()=>{n(),this._onDidChangeMenu.fire(Sh.for(e))}))}appendMenuItems(e){const t=new gi;for(const{id:i,item:n}of e)t.add(this.appendMenuItem(i,n));return t}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===bh.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const i of e)_h(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach(((i,n)=>{t.has(n)||e.push({command:i})}))}};class Eh extends cd{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,"string"==typeof e.title?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t}}let wh=mh=class{static label(e,t){return(null==t?void 0:t.renderShortTitle)&&e.shortTitle?"string"==typeof e.shortTitle?e.shortTitle:e.shortTitle.value:"string"==typeof e.title?e.title:e.title.value}constructor(e,t,i,n,o,s,r){var a,l;let c;if(this.hideActions=n,this.menuKeybinding=o,this._commandService=r,this.id=e.id,this.label=mh.label(e,i),this.tooltip=null!==(l="string"==typeof e.tooltip?e.tooltip:null===(a=e.tooltip)||void 0===a?void 0:a.value)&&void 0!==l?l:"",this.enabled=!e.precondition||s.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){const t=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=s.contextMatchesRules(t.condition),this.checked&&t.tooltip&&(this.tooltip="string"==typeof t.tooltip?t.tooltip:t.tooltip.value),this.checked&&gd.isThemeIcon(t.icon)&&(c=t.icon),this.checked&&t.title&&(this.label="string"==typeof t.title?t.title:t.title.value)}c||(c=gd.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new mh(t,void 0,i,n,void 0,s,r):void 0,this._options=i,this.class=c&&gd.asClassName(c)}run(...e){var t,i;let n=[];return(null===(t=this._options)||void 0===t?void 0:t.arg)&&(n=[...n,this._options.arg]),(null===(i=this._options)||void 0===i?void 0:i.shouldForwardArgs)&&(n=[...n,...e]),this._commandService.executeCommand(this.id,...n)}};wh=mh=ph([fh(5,Zd),fh(6,md)],wh);class Th{constructor(e){this.desc=e}}function yh(e){const t=new gi,i=new e,{f1:n,menu:o,keybinding:s,...r}=i.desc;if(pd.getCommand(r.id))throw new Error(`Cannot register two commands with the same id: ${r.id}`);if(t.add(pd.registerCommand({id:r.id,handler:(e,...t)=>i.run(e,...t),metadata:r.metadata})),Array.isArray(o))for(const a of o)t.add(Ch.appendMenuItem(a.id,{command:{...r,precondition:null===a.precondition?void 0:r.precondition},...a}));else o&&t.add(Ch.appendMenuItem(o.id,{command:{...r,precondition:null===o.precondition?void 0:r.precondition},...o}));if(n&&(t.add(Ch.appendMenuItem(bh.CommandPalette,{command:r,when:r.precondition})),t.add(Ch.addCommand(r))),Array.isArray(s))for(const a of s)t.add(uh.registerKeybindingRule({...a,id:r.id,when:r.precondition?Dd.and(r.precondition,a.when):a.when}));else s&&t.add(uh.registerKeybindingRule({...s,id:r.id,when:r.precondition?Dd.and(r.precondition,s.when):s.when}));return t}const Rh=id("telemetryService"),Lh=id("logService");var Ih;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(Ih||(Ih={}));const Ah=Ih.Info;class Nh extends mi{constructor(){super(...arguments),this.level=Ah,this._onDidChangeLogLevel=this._register(new Ri),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!==Ih.Off&&this.level<=e}}class kh extends Nh{constructor(e=Ah,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(Ih.Trace)&&this.useColors}debug(e,...t){this.checkLogLevel(Ih.Debug)&&this.useColors}info(e,...t){this.checkLogLevel(Ih.Info)&&this.useColors}warn(e,...t){this.checkLogLevel(Ih.Warning)&&this.useColors}error(e,...t){this.checkLogLevel(Ih.Error)&&this.useColors}}class Dh extends Nh{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const i of this.loggers)i.trace(e,...t)}debug(e,...t){for(const i of this.loggers)i.debug(e,...t)}info(e,...t){for(const i of this.loggers)i.info(e,...t)}warn(e,...t){for(const i of this.loggers)i.warn(e,...t)}error(e,...t){for(const i of this.loggers)i.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose();super.dispose()}}new Qd("logLevel",function(e){switch(Ih.Info){case Ih.Trace:return"trace";case Ih.Debug:return"debug";case Ih.Info:return"info";case Ih.Warning:return"warn";case Ih.Error:return"error";case Ih.Off:return"off"}}());class Oh{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 t of e){let e=t.kbExpr;this.precondition&&(e=e?Dd.and(e,this.precondition):this.precondition);const i={id:this.id,weight:t.weight,args:t.args,when:e,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};uh.registerKeybindingRule(i)}}pd.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata})}_registerMenuItem(e){Ch.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 xh extends Oh{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i,n){return this._implementations.push({priority:e,name:t,implementation:i,when:n}),this._implementations.sort(((e,t)=>t.priority-e.priority)),{dispose:()=>{for(let e=0;e{if(e.get(Zd).contextMatchesRules(null!=i?i:void 0))return n(e,s,t)}))}runCommand(e,t){return Ph.runEditorCommand(e,t,this.precondition,((e,t,i)=>this.runEditorCommand(e,t,i)))}}class Fh extends Ph{static convertOptions(e){let t;function i(t){return t.menuId||(t.menuId=bh.EditorContext),t.title||(t.title=e.label),t.when=Dd.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}constructor(e){super(Fh.convertOptions(e)),this.label=e.label,this.alias=e.alias}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(Rh).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class Bh extends Fh{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort(((e,t)=>t[0]-e[0])),{dispose:()=>{for(let e=0;e{var i,o;const s=e.get(Zd),r=e.get(Lh);if(s.contextMatchesRules(null!==(i=this.desc.precondition)&&void 0!==i?i:void 0))return this.runEditorCommand(e,n,...t);r.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,null===(o=this.desc.precondition)||void 0===o?void 0:o.serialize())}))}}function Wh(e,t){pd.registerCommand(e,(function(e,...i){const n=e.get(td),[o,s]=i;ie(An.isUri(o)),ie(Wn.isIPosition(s));const r=e.get(od).getModel(o);if(r){const e=Wn.lift(s);return n.invokeFunction(t,r,e,...i.slice(2))}return e.get(sd).createModelReference(o).then((e=>new Promise(((o,r)=>{try{o(n.invokeFunction(t,e.object.textEditorModel,Wn.lift(s),i.slice(2)))}catch(a){r(a)}})).finally((()=>{e.dispose()}))))}))}function Uh(e){return Yh.INSTANCE.registerEditorCommand(e),e}function Vh(e){const t=new e;return Yh.INSTANCE.registerEditorAction(t),t}function Gh(e){return Yh.INSTANCE.registerEditorAction(e),e}function zh(e,t,i){Yh.INSTANCE.registerEditorContribution(e,t,i)}var Kh;!function(e){e.getEditorCommand=function(e){return Yh.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return Yh.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return Yh.INSTANCE.getEditorContributions()},e.getSomeEditorContributions=function(e){return Yh.INSTANCE.getEditorContributions().filter((t=>e.indexOf(t.id)>=0))},e.getDiffEditorContributions=function(){return Yh.INSTANCE.getDiffEditorContributions()}}(Kh||(Kh={}));class Yh{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t,i){this.editorContributions.push({id:e,ctor:t,instantiation:i})}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}}function qh(e){return e.register(),e}Yh.INSTANCE=new Yh,dh.add("editor.contributions",Yh.INSTANCE);const $h=qh(new xh({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:bh.MenubarEditMenu,group:"1_do",title:pe("vs/editor/browser/editorExtensions",{key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:bh.CommandPalette,group:"",title:pe("vs/editor/browser/editorExtensions","undo","Undo"),order:1}]}));qh(new Mh($h,{id:"default:undo",precondition:void 0}));const jh=qh(new xh({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:bh.MenubarEditMenu,group:"1_do",title:pe("vs/editor/browser/editorExtensions",{key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:bh.CommandPalette,group:"",title:pe("vs/editor/browser/editorExtensions","redo","Redo"),order:1}]}));qh(new Mh(jh,{id:"default:redo",precondition:void 0}));const Xh=qh(new xh({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:bh.MenubarSelectionMenu,group:"1_basic",title:pe("vs/editor/browser/editorExtensions",{key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:bh.CommandPalette,group:"",title:pe("vs/editor/browser/editorExtensions","selectAll","Select All"),order:1}]}));let Jh=!1;function Qh(e){He&&(Jh||(Jh=!0))}class Zh{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.method=i,this.args=n,this.type=0}}class eu{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class tu{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.eventName=i,this.arg=n,this.type=2}}class iu{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class nu{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class ou{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,t){const i=String(++this._lastSentReq);return new Promise(((n,o)=>{this._pendingReplies[i]={resolve:n,reject:o},this._send(new Zh(this._workerId,i,e,t))}))}listen(e,t){let i=null;const n=new Ri({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,n),this._send(new tu(this._workerId,i,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new nu(this._workerId,i)),i=null}});return n.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&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])return;const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;return e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),void t.reject(i)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new eu(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=Zt(e.detail)),this._send(new eu(this._workerId,t,void 0,Zt(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new iu(this._workerId,t,e))}));this._pendingEvents.set(t,i)}_handleEventMessage(e){this._pendingEmitters.has(e.req)&&this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)&&(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req))}_send(e){const t=[];if(0===e.type)for(let i=0;i{this._protocol.handleMessage(e)}),(e=>{null==n||n(e)}))),this._protocol=new ou({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t)=>{if("function"!=typeof i[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(i[e].apply(i,t))}catch(n){return Promise.reject(n)}},handleEvent:(e,t)=>{if(au(e)){const n=i[e].call(i,t);if("function"!=typeof n)throw new Error(`Missing dynamic event ${e} on main thread host.`);return n}if(ru(e)){const t=i[e];if("function"!=typeof t)throw new Error(`Missing event ${e} on main thread host.`);return t}throw new Error(`Malformed event name ${e}`)}}),this._protocol.setWorkerId(this._worker.getId());let o=null;const s=globalThis.require;void 0!==s&&"function"==typeof s.getConfig?o=s.getConfig():void 0!==globalThis.requirejs&&(o=globalThis.requirejs.s.contexts._.config);const r=ue(i);this._onModuleLoaded=this._protocol.sendMessage("$initialize",[this._worker.getId(),JSON.parse(JSON.stringify(o)),t,r]);const a=(e,t)=>this._request(e,t),l=(e,t)=>this._protocol.listen(e,t);this._lazyProxy=new Promise(((e,i)=>{n=i,this._onModuleLoaded.then((t=>{e(function(e,t,i){const n=e=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},o=e=>function(t){return i(e,t)},s={};for(const r of e)au(r)?s[r]=o(r):ru(r)?s[r]=i(r,void 0):s[r]=n(r);return s}(t,a,l))}),(e=>{i(e),this._onError("Worker failed to load "+t,e)}))}))}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise(((i,n)=>{this._onModuleLoaded.then((()=>{this._protocol.sendMessage(e,t).then(i,n)}),n)}))}_onError(e,t){}}function ru(e){return"o"===e[0]&&"n"===e[1]&&Os(e.charCodeAt(2))}function au(e){return/^onDynamic/.test(e)&&Os(e.charCodeAt(9))}function lu(e,t){var i;const n=globalThis.MonacoEnvironment;if(null==n?void 0:n.createTrustedTypesPolicy)try{return n.createTrustedTypesPolicy(e,t)}catch(sue){return void Jt(sue)}try{return null===(i=cs.trustedTypes)||void 0===i?void 0:i.createPolicy(e,t)}catch(sue){return void Jt(sue)}}const cu=lu("defaultWorkerFactory",{createScriptURL:e=>e});class du extends mi{constructor(e,t,i,n,o){super(),this.id=t,this.label=i;const s=function(e){const t=globalThis.MonacoEnvironment;if(t){if("function"==typeof t.getWorker)return t.getWorker("workerMain.js",e);if("function"==typeof t.getWorkerUrl){const i=t.getWorkerUrl("workerMain.js",e);return new Worker(cu?cu.createScriptURL(i):i,{name:e})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}(i);"function"==typeof s.then?this.worker=s:this.worker=Promise.resolve(s),this.postMessage(e,[]),this.worker.then((e=>{e.onmessage=function(e){n(e.data)},e.onmessageerror=o,"function"==typeof e.addEventListener&&e.addEventListener("error",o)})),this._register(ui((()=>{var e;null===(e=this.worker)||void 0===e||e.then((e=>{e.onmessage=null,e.onmessageerror=null,e.removeEventListener("error",o),e.terminate()})),this.worker=null})))}getId(){return this.id}postMessage(e,t){var i;null===(i=this.worker)||void 0===i||i.then((i=>{try{i.postMessage(e,t)}catch(sue){Jt(sue),Jt(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:sue}))}}))}}class hu{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){const n=++hu.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new du(e,n,this._label||"anonymous"+n,t,(e=>{Qh(),this._webWorkerFailedBeforeError=e,i(e)}))}}var uu;hu.LAST_WORKER_ID=0,function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(uu||(uu={}));class gu{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 t=0,i=e.notIn.length;t0&&e.getLanguageId(r-1)===o;)r--;return new _u(e,o,r,s+1,e.getStartOffset(r),e.getEndOffset(s))}class _u{constructor(e,t,i,n,o,s){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=o,this._lastCharOffset=s}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}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)}}function bu(e){return 0!=(3&e)}class vu{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new gu(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new gu({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new gu({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"==typeof e.autoCloseBefore?e.autoCloseBefore:vu.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"==typeof e.autoCloseBefore?e.autoCloseBefore:vu.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}}vu.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t",vu.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t";const Su="undefined"!=typeof Buffer;let Cu,Eu,wu,Tu;class yu{static wrap(e){return Su&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new yu(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return Su?this.buffer.toString():(Cu||(Cu=new TextDecoder),Cu.decode(this.buffer))}}function Ru(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0}function Lu(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t}function Iu(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function Au(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function Nu(e,t){return e[t]}function ku(e,t,i){e[i]=t}function Du(){return Eu||(Eu=new TextDecoder("UTF-16LE")),Eu}function Ou(){return Tu||(Tu=Xe()?Du():(wu||(wu=new TextDecoder("UTF-16BE")),wu)),Tu}class xu{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return Ou().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||Bs(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let i=0;i[e[0].toLowerCase(),e[1].toLowerCase()]));const i=[];for(let r=0;r{const[i,n]=e,[o,s]=t;return i===o||i===s||n===o||n===s},o=(e,n)=>{const o=Math.min(e,n),s=Math.max(e,n);for(let r=0;r0&&s.push({open:n,close:o})}return s}(t);this.brackets=i.map(((t,n)=>new Mu(e,n,t.open,t.close,function(e,t,i,n){let o=[];o=o.concat(e),o=o.concat(t);for(let s=0,r=o.length;s=0&&n.push(t);for(const t of s.close)t.indexOf(e)>=0&&n.push(t)}}function Bu(e,t){return e.length-t.length}function Hu(e){if(e.length<=1)return e;const t=[],i=new Set;for(const n of e)i.has(n)||(t.push(n),i.add(n));return t}function Wu(e){const t=/^[\w ]+$/.test(e);return e=bs(e),t?`\\b${e}\\b`:e}function Uu(e){return Es(`(${e.map(Wu).join(")|(")})`,!0)}const Vu=function(){let e=null,t=null;return function(i){return e!==i&&(e=i,t=function(e){const t=new Uint16Array(e.length);let i=0;for(let n=e.length-1;n>=0;n--)t[i++]=e.charCodeAt(n);return Ou().decode(t)}(e)),t}}();class Gu{static _findPrevBracketInText(e,t,i,n){const o=i.match(e);if(!o)return null;const s=i.length-(o.index||0),r=o[0].length,a=n+s;return new Un(t,a-r+1,t,a+1)}static findPrevBracketInRange(e,t,i,n,o){const s=Vu(i).substring(i.length-o,i.length-n);return this._findPrevBracketInText(e,t,s,n)}static findNextBracketInText(e,t,i,n){const o=i.match(e);if(!o)return null;const s=o.index||0,r=o[0].length;if(0===r)return null;const a=n+s;return new Un(t,a+1,t,a+1+r)}static findNextBracketInRange(e,t,i,n,o){const s=i.substring(n,o);return this.findNextBracketInText(e,t,s,n)}}class zu{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const t=i.charAt(i.length-1);e.push(t)}return I(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const n=t.findTokenIndexAtOffset(i-1);if(bu(t.getStandardTokenType(n)))return null;const o=this._richEditBrackets.reversedRegex,s=t.getLineContent().substring(0,i-1)+e,r=Gu.findPrevBracketInRange(o,1,s,0,s.length);if(!r)return null;const a=s.substring(r.startColumn-1,r.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const l=t.getActualLineContentBefore(r.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null}}function Ku(e){return e.global&&(e.lastIndex=0),!0}class Yu{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&Ku(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&Ku(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&Ku(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&Ku(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class qu{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=qu._createOpenBracketRegExp(e[0]),i=qu._createCloseBracketRegExp(e[1]);t&&i&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:i})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,n){if(e>=3)for(let o=0,s=this._regExpRules.length;o!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&i.length>0&&n.length>0)for(let o=0,s=this._brackets.length;o=2&&i.length>0)for(let o=0,s=this._brackets.length;o0&&"#"===i.charAt(i.length-1)?i.substring(0,i.length-1):i)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};dh.add(rg,ag);const lg="base.contributions.configuration",cg="vscode://schemas/settings/resourceLanguage",dg=dh.as(rg),hg="\\[([^\\]]+)\\]",ug=new RegExp(hg,"g"),gg=new RegExp(`^(${hg})+$`);function mg(e){const t=[];if(gg.test(e)){let i=ug.exec(e);for(;null==i?void 0:i.length;){const n=i[1].trim();n&&t.push(n),i=ug.exec(e)}}return I(t)}const pg=new class{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new Ri,this._onDidUpdateConfiguration=new Ri,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:pe("vs/platform/configuration/common/configurationRegistry","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={},dg.registerSchema(cg,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=new Set;this.doRegisterConfigurations(e,t,i),dg.registerSchema(cg,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){var i;const n=[];for(const{overrides:o,source:s}of e)for(const e in o)if(t.add(e),gg.test(e)){const t=this.configurationDefaultsOverrides.get(e),r=null!==(i=null==t?void 0:t.valuesSources)&&void 0!==i?i:new Map;if(s)for(const i of Object.keys(o[e]))r.set(i,s);const a={...(null==t?void 0:t.value)||{},...o[e]};this.configurationDefaultsOverrides.set(e,{source:s,value:a,valuesSources:r});const l={type:"object",default:a,description:pe("vs/platform/configuration/common/configurationRegistry","defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",e.replace(/[\[\]]/g,"")),$ref:cg,defaultDefaultValue:a,source:q(s)?void 0:s,defaultValueSource:s};n.push(...mg(e)),this.configurationProperties[e]=l,this.defaultLanguageConfigurationOverridesNode.properties[e]=l}else{this.configurationDefaultsOverrides.set(e,{value:o[e],source:s});const t=this.configurationProperties[e];t&&(this.updatePropertyDefaultValue(e,t),this.updateSchema(e,t))}this.doRegisterOverrideIdentifiers(n)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,i),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,i,n,o=3,s){var r;o=te(e.scope)?o:e.scope;const a=e.properties;if(a)for(const c in a){const e=a[c];t&&fg(c,e)?delete a[c]:(e.source=i,e.defaultDefaultValue=a[c].default,this.updatePropertyDefaultValue(c,e),gg.test(c)?e.scope=void 0:(e.scope=te(e.scope)?o:e.scope,e.restricted=te(e.restricted)?!!(null==n?void 0:n.includes(c)):e.restricted),!a[c].hasOwnProperty("included")||a[c].included?(this.configurationProperties[c]=a[c],(null===(r=a[c].policy)||void 0===r?void 0:r.name)&&this.policyConfigurations.set(a[c].policy.name,c),!a[c].deprecationMessage&&a[c].markdownDeprecationMessage&&(a[c].deprecationMessage=a[c].markdownDeprecationMessage),s.add(c)):(this.excludedConfigurationProperties[c]=a[c],delete a[c]))}const l=e.allOf;if(l)for(const c of l)this.validateAndRegisterProperties(c,t,i,n,o,s)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const i=e.properties;if(i)for(const t in i)this.updateSchema(t,i[t]);const n=e.allOf;null==n||n.forEach(t)};t(e)}updateSchema(e,t){switch(t.scope){case 1:case 2:case 6:case 3:case 4:break;case 5:this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:pe("vs/platform/configuration/common/configurationRegistry","overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:pe("vs/platform/configuration/common/configurationRegistry","overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:cg};this.updatePropertyDefaultValue(t,i)}}registerOverridePropertyPatternKey(){pe("vs/platform/configuration/common/configurationRegistry","overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),pe("vs/platform/configuration/common/configurationRegistry","overrideSettings.errorMessage","This setting does not support per-language configuration."),this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e);let n=null==i?void 0:i.value,o=null==i?void 0:i.source;Z(n)&&(n=t.defaultDefaultValue,o=void 0),Z(n)&&(n=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=n,t.defaultValueSource=o}};function fg(e,t){var i,n,o,s;return e.trim()?gg.test(e)?pe("vs/platform/configuration/common/configurationRegistry","config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==pg.getConfigurationProperties()[e]?pe("vs/platform/configuration/common/configurationRegistry","config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):(null===(i=t.policy)||void 0===i?void 0:i.name)&&void 0!==pg.getPolicyConfigurations().get(null===(n=t.policy)||void 0===n?void 0:n.name)?pe("vs/platform/configuration/common/configurationRegistry","config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,null===(o=t.policy)||void 0===o?void 0:o.name,pg.getPolicyConfigurations().get(null===(s=t.policy)||void 0===s?void 0:s.name)):null:pe("vs/platform/configuration/common/configurationRegistry","config.property.empty","Cannot register an empty property")}dh.add(lg,pg);const _g=new class{constructor(){this._onDidChangeLanguages=new Ri,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t{const t=new Set;return{info:new Eg(this,e,t),closing:t}})),o=new hs((e=>{const t=new Set,i=new Set;return{info:new wg(this,e,t,i),opening:t,openingColorized:i}}));for(const[r,a]of i){const e=n.get(r),t=o.get(a);e.closing.add(t.info),t.opening.add(e.info)}const s=t.colorizedBracketPairs?Sg(t.colorizedBracketPairs):i.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[r,a]of s){const e=n.get(r),t=o.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...n.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...o.cachedValues].map((([e,t])=>[e,t.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)}}function Sg(e){return e.filter((([e,t])=>""!==e&&""!==t))}class Cg{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class Eg extends Cg{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class wg extends Cg{constructor(e,t,i,n){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=n,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var Tg=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},yg=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class Rg{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const Lg=id("languageConfigurationService");let Ig=class extends mi{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new Fg),this.onDidChangeEmitter=this._register(new Ri),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(Ag));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>i.has(e))),n=e.change.overrides.filter((([e,t])=>t.some((e=>i.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new Rg(void 0));else for(const i of n)this.languageService.isRegisteredLanguageId(i)&&(this.configurations.delete(i),this.onDidChangeEmitter.fire(new Rg(i)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new Rg(e.languageId))})))}register(e,t,i){return this._registry.register(e,t,i)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,i,n){let o=t.getLanguageConfiguration(e);if(!o){if(!n.isRegisteredLanguageId(e))return new Bg(e,{});o=new Bg(e,{})}const s=function(e,t){const i=t.getValue(Ag.brackets,{overrideIdentifier:e}),n=t.getValue(Ag.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:Ng(i),colorizedBracketPairs:Ng(n)}}(o.languageId,i),r=xg([o.underlyingConfig,s]);return new Bg(o.languageId,r)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};Ig=Tg([yg(0,$u),yg(1,eg)],Ig);const Ag={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function Ng(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}function kg(e,t,i){let n=ys(e.getLineContent(t));return n.length>i-1&&(n=n.substring(0,i-1)),n}function Dg(e,t,i){return e.tokenization.forceTokenization(t),fu(e.tokenization.getLineTokens(t),void 0===i?e.getLineMaxColumn(t)-1:i-1)}class Og{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new Mg(e,t,++this._order);return this._entries.push(i),this._resolved=null,ui((()=>{for(let e=0;ee.configuration))))}}function xg(e){let t={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 e)t={comments:i.comments||t.comments,brackets:i.brackets||t.brackets,wordPattern:i.wordPattern||t.wordPattern,indentationRules:i.indentationRules||t.indentationRules,onEnterRules:i.onEnterRules||t.onEnterRules,autoClosingPairs:i.autoClosingPairs||t.autoClosingPairs,surroundingPairs:i.surroundingPairs||t.surroundingPairs,autoCloseBefore:i.autoCloseBefore||t.autoCloseBefore,folding:i.folding||t.folding,colorizedBracketPairs:i.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:i.__electricCharacterSupport||t.__electricCharacterSupport};return t}class Mg{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class Pg{constructor(e){this.languageId=e}}class Fg extends mi{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new Ri),this.onDidChange=this._onDidChange.event,this._register(this.register(bg,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,i=0){let n=this._entries.get(e);n||(n=new Og(e),this._entries.set(e,n));const o=n.register(t,i);return this._onDidChange.fire(new Pg(e)),ui((()=>{o.dispose(),this._onDidChange.fire(new Pg(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return(null==t?void 0:t.getResolvedConfiguration())||null}}class Bg{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new qu(this.underlyingConfig):null,this.comments=Bg._handleComments(this.underlyingConfig),this.characterPair=new vu(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||at,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new Yu(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new vg(e,this.underlyingConfig)}getWordDefinition(){return lt(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new Pu(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new zu(this.brackets)),this._electricCharacter}onEnter(e,t,i,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,n):null}getAutoClosingPairs(){return new mu(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){const[e,n]=t.blockComment;i.blockCommentStartToken=e,i.blockCommentEndToken=n}return i}}ng(Lg,Ig,1);class Hg{constructor(e,t,i,n){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=n}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}class Wg{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,n=e.length;i0||this.m_modifiedCount>0)&&this.m_changes.push(new Hg(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,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),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 Kg{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[n,o,s]=Kg._getElements(e),[r,a,l]=Kg._getElements(t);this._hasStrings=s&&l,this._originalStringElements=n,this._originalElementsOrHash=o,this._modifiedStringElements=r,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(Kg._isStringArray(t)){const e=new Int32Array(t.length);for(let i=0,n=t.length;i=e&&n>=i&&this.ElementsAreEqual(t,n);)t--,n--;if(e>t||i>n){let o;return i<=n?(Vg.Assert(e===t+1,"originalStart should only be one more than originalEnd"),o=[new Hg(e,0,i,n-i+1)]):e<=t?(Vg.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),o=[new Hg(e,t-e+1,i,0)]):(Vg.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Vg.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),o=[]),o}const s=[0],r=[0],a=this.ComputeRecursionPoint(e,t,i,n,s,r,o),l=s[0],c=r[0];if(null!==a)return a;if(!o[0]){const s=this.ComputeDiffRecursive(e,l,i,c,o);let r=[];return r=o[0]?[new Hg(l+1,t-(l+1)+1,c+1,n-(c+1)+1)]:this.ComputeDiffRecursive(l+1,t,c+1,n,o),this.ConcatenateChanges(s,r)}return[new Hg(e,t-e+1,i,n-i+1)]}WALKTRACE(e,t,i,n,o,s,r,a,l,c,d,h,u,g,m,p,f,_){let b=null,v=null,S=new zg,C=t,E=i,w=u[0]-p[0]-n,T=-1073741824,y=this.m_forwardHistory.length-1;do{const t=w+e;t===C||t=0&&(e=(l=this.m_forwardHistory[y])[0],C=1,E=l.length-1)}while(--y>=-1);if(b=S.getReverseChanges(),_[0]){let e=u[0]+1,t=p[0]+1;if(null!==b&&b.length>0){const i=b[b.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}v=[new Hg(e,h-e+1,t,m-t+1)]}else{S=new zg,C=s,E=r,w=u[0]-p[0]-a,T=1073741824,y=f?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=w+o;e===C||e=c[e+1]?(g=(d=c[e+1]-1)-w-a,d>T&&S.MarkNextChange(),T=d+1,S.AddOriginalElement(d+1,g+1),w=e+1-o):(g=(d=c[e-1])-w-a,d>T&&S.MarkNextChange(),T=d,S.AddModifiedElement(d+1,g+1),w=e-1-o),y>=0&&(o=(c=this.m_reverseHistory[y])[0],C=1,E=c.length-1)}while(--y>=-1);v=S.getChanges()}return this.ConcatenateChanges(b,v)}ComputeRecursionPoint(e,t,i,n,o,s,r){let a=0,l=0,c=0,d=0,h=0,u=0;e--,i--,o[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=t-e+(n-i),m=g+1,p=new Int32Array(m),f=new Int32Array(m),_=n-i,b=t-e,v=e-i,S=t-n,C=(b-_)%2==0;p[_]=e,f[b]=t,r[0]=!1;for(let E=1;E<=g/2+1;E++){let g=0,w=0;c=this.ClipDiagonalBound(_-E,E,_,m),d=this.ClipDiagonalBound(_+E,E,_,m);for(let e=c;e<=d;e+=2){a=e===c||eg+w&&(g=a,w=l),!C&&Math.abs(e-b)<=E-1&&a>=f[e])return o[0]=a,s[0]=l,i<=f[e]&&E<=1448?this.WALKTRACE(_,c,d,v,b,h,u,S,p,f,a,t,o,l,n,s,C,r):null}const T=(g-e+(w-i)-E)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(g,T))return r[0]=!0,o[0]=g,s[0]=w,T>0&&E<=1448?this.WALKTRACE(_,c,d,v,b,h,u,S,p,f,a,t,o,l,n,s,C,r):(e++,i++,[new Hg(e,t-e+1,i,n-i+1)]);h=this.ClipDiagonalBound(b-E,E,b,m),u=this.ClipDiagonalBound(b+E,E,b,m);for(let m=h;m<=u;m+=2){a=m===h||m=f[m+1]?f[m+1]-1:f[m-1],l=a-(m-b)-S;const g=a;for(;a>e&&l>i&&this.ElementsAreEqual(a,l);)a--,l--;if(f[m]=a,C&&Math.abs(m-_)<=E&&a<=p[m])return o[0]=a,s[0]=l,g>=p[m]&&E<=1448?this.WALKTRACE(_,c,d,v,b,h,u,S,p,f,a,t,o,l,n,s,C,r):null}if(E<=1447){let e=new Int32Array(d-c+2);e[0]=_-c+1,Gg.Copy2(p,c,e,1,d-c+1),this.m_forwardHistory.push(e),e=new Int32Array(u-h+2),e[0]=b-h+1,Gg.Copy2(f,h,e,1,u-h+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(_,c,d,v,b,h,u,S,p,f,a,t,o,l,n,s,C,r)}PrettifyChanges(e){for(let t=0;t0,r=i.modifiedLength>0;for(;i.originalStart+i.originalLength=0;t--){const i=e[t];let n=0,o=0;if(t>0){const i=e[t-1];n=i.originalStart+i.originalLength,o=i.modifiedStart+i.modifiedLength}const s=i.originalLength>0,r=i.modifiedLength>0;let a=0,l=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){const t=i.originalStart-e,c=i.modifiedStart-e;if(tl&&(l=d,a=e)}i.originalStart-=a,i.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,i=e.length;t0&&t>a&&(a=t,l=d,c=e)}return a>0?[l,c]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let o=0;o=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,n){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(i,n)?1:0)}ConcatenateChanges(e,t){const i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const n=new Array(e.length+t.length-1);return Gg.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],Gg.Copy(t,1,n,e.length,t.length-1),n}{const i=new Array(e.length+t.length);return Gg.Copy(e,0,i,0,e.length),Gg.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,i){if(Vg.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Vg.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const n=e.originalStart;let o=e.originalLength;const s=e.modifiedStart;let r=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(r=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new Hg(n,o,s,r),!0}return i[0]=null,!1}ClipDiagonalBound(e,t,i,n){if(e>=0&&e255?255:0|e}function qg(e){return e<0?0:e>4294967295?4294967295:0|e}class $g{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=qg(e);const i=this.values,n=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(i.length+o),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+o),this.values.set(t,e),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=qg(e),t=qg(t),this.values[e]!==t&&(this.values[e]=t,e-1=i.length)return!1;const o=i.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=qg(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,n=0,o=0,s=0;for(;t<=i;)if(n=t+(i-t)/2|0,o=this.prefixSum[n],s=o-this.values[n],e=o))break;t=n+1}return new Xg(n,e-s)}}class jg{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(),0===e?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new Xg(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=k(this._values,e,t),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,t=this._values.length;e0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+t;for(let n=0;n=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}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 Zg{constructor(){this._actual=new Qg(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}clear(){return this._actual.clear()}}class em{constructor(e,t,i){const n=new Uint8Array(e*t);for(let o=0,s=e*t;ot&&(t=s),n>i&&(i=n),r>i&&(i=r)}t++,i++;const n=new em(i,t,0);for(let o=0,s=e.length;o=this._maxCharCode?0:this._states.get(e,t)}}let im=null,nm=null;class om{static _createLink(e,t,i,n,o){let s=o-1;do{const i=t.charCodeAt(s);if(2!==e.get(i))break;s--}while(s>n);if(n>0){const e=t.charCodeAt(n-1),i=t.charCodeAt(s);(40===e&&41===i||91===e&&93===i||123===e&&125===i)&&s--}return{range:{startLineNumber:i,startColumn:n+1,endLineNumber:i,endColumn:s+2},url:t.substring(n,s+1)}}static computeLinks(e,t=function(){return null===im&&(im=new tm([[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]])),im}()){const i=function(){if(null===nm){nm=new Qg(0);const e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let i=0;i=0?(n+=i?1:-1,n<0?n=e.length-1:n%=e.length,e[n]):null}}var rm,am;sm.INSTANCE=new sm;class lm{constructor(e,t){this.uri=e,this.value=t}}class cm{constructor(e,t){if(this[rm]="ResourceMap",e instanceof cm)this.map=new Map(e.map),this.toKey=null!=t?t:cm.defaultToKey;else if(i=e,Array.isArray(i)){this.map=new Map,this.toKey=null!=t?t:cm.defaultToKey;for(const[t,i]of e)this.set(t,i)}else this.map=new Map,this.toKey=null!=e?e:cm.defaultToKey;var i}set(e,t){return this.map.set(this.toKey(e),new lm(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.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,t){void 0!==t&&(e=e.bind(t));for(const[i,n]of this.map)e(n.value,n.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]}*[(rm=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}cm.defaultToKey=e=>e.toString();class dm{constructor(){this[am]="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 null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,0!==i&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:case 2:default:this.addItemLast(n);break;case 1:this.addItemFirst(n)}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.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,t){const i=this._state;let n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}[(am=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._tail,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.previous,i--;this._tail=t,this._size=i,t&&(t.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;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 t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,i)=>{e.push([i,t])})),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class hm extends dm{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class um extends hm{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class gm{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,i]of e)this.set(t,i)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class mm{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),0===i.size&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}get(e){return this.map.get(e)||new Set}}class pm extends Qg{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let i=0,n=e.length;it)break;i=n}return i}findNextIntlWordAtOrAfterOffset(e,t){for(const i of this._getIntlSegmenterWordsOnLine(e))if(!(i.index=i)break;const n=e.charCodeAt(t);if(110===n||114===n||87===n)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=Es(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(sue){return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new Tm(t,this.wordSeparators?_m(this.wordSeparators,[]):null,i?this.searchString:null)}}function Im(e,t,i){if(!i)return new Em(e,null);const n=[];for(let o=0,s=t.length;o>0);t[o]>=e?n=o-1:t[o+1]>=e?(i=o,n=o):i=o+1}return i+1}}class Nm{static findMatches(e,t,i,n,o){const s=t.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(e,i,new Dm(s.wordSeparators,s.regex),n,o):this._doFindMatchesLineByLine(e,i,s,n,o):[]}static _getMultilineMatchRange(e,t,i,n,o,s){let r,a,l=0;if(n?(l=n.findLineFeedCountBeforeOffset(o),r=t+o+l):r=t+o,n){const e=n.findLineFeedCountBeforeOffset(o+s.length)-l;a=r+s.length+e}else a=r+s.length;const c=e.getPositionAt(r),d=e.getPositionAt(a);return new Un(c.lineNumber,c.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,t,i,n,o){const s=e.getOffsetAt(t.getStartPosition()),r=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new Am(r):null,l=[];let c,d=0;for(i.reset(0);c=i.next(r);)if(l[d++]=Im(this._getMultilineMatchRange(e,s,r,a,c.index,c[0]),c,n),d>=o)return l;return l}static _doFindMatchesLineByLine(e,t,i,n,o){const s=[];let r=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return r=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,r,s,n,o),s}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);r=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,r,s,n,o);for(let l=t.startLineNumber+1;l=a))return o;return o}const c=new Dm(e.wordSeparators,e.regex);let d;c.reset(0);do{if(d=c.next(t),d&&(s[o++]=Im(new Un(i,d.index+1+n,i,d.index+1+d[0].length+n),d,r),o>=a))return o}while(d);return o}static findNextMatch(e,t,i,n){const o=t.parseSearchRequest();if(!o)return null;const s=new Dm(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,i,s,n):this._doFindNextMatchLineByLine(e,i,s,n)}static _doFindNextMatchMultiline(e,t,i,n){const o=new Wn(t.lineNumber,1),s=e.getOffsetAt(o),r=e.getLineCount(),a=e.getValueInRange(new Un(o.lineNumber,o.column,r,e.getLineMaxColumn(r)),1),l="\r\n"===e.getEOL()?new Am(a):null;i.reset(t.column-1);const c=i.next(a);return c?Im(this._getMultilineMatchRange(e,s,a,l,c.index,c[0]),c,n):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new Wn(1,1),i,n):null}static _doFindNextMatchLineByLine(e,t,i,n){const o=e.getLineCount(),s=t.lineNumber,r=e.getLineContent(s),a=this._findFirstMatchInLine(i,r,s,t.column,n);if(a)return a;for(let l=1;l<=o;l++){const t=(s+l-1)%o,r=e.getLineContent(t+1),a=this._findFirstMatchInLine(i,r,t+1,1,n);if(a)return a}return null}static _findFirstMatchInLine(e,t,i,n,o){e.reset(n-1);const s=e.next(t);return s?Im(new Un(i,s.index+1,i,s.index+1+s[0].length),s,o):null}static findPreviousMatch(e,t,i,n){const o=t.parseSearchRequest();if(!o)return null;const s=new Dm(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,i,s,n):this._doFindPreviousMatchLineByLine(e,i,s,n)}static _doFindPreviousMatchMultiline(e,t,i,n){const o=this._doFindMatchesMultiline(e,new Un(1,1,t.lineNumber,t.column),i,n,9990);if(o.length>0)return o[o.length-1];const s=e.getLineCount();return t.lineNumber!==s||t.column!==e.getLineMaxColumn(s)?this._doFindPreviousMatchMultiline(e,new Wn(s,e.getLineMaxColumn(s)),i,n):null}static _doFindPreviousMatchLineByLine(e,t,i,n){const o=e.getLineCount(),s=t.lineNumber,r=e.getLineContent(s).substring(0,t.column-1),a=this._findLastMatchInLine(i,r,s,n);if(a)return a;for(let l=1;l<=o;l++){const t=(o+s-l-1)%o,r=e.getLineContent(t+1),a=this._findLastMatchInLine(i,r,t+1,n);if(a)return a}return null}static _findLastMatchInLine(e,t,i,n){let o,s=null;for(e.reset(0);o=e.next(t);)s=Im(new Un(i,o.index+1,i,o.index+1+o[0].length),o,n);return s}}function km(e,t,i,n,o){return function(e,t,i,n,o){if(0===n)return!0;const s=t.charCodeAt(n-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(o>0){const i=t.charCodeAt(n);if(0!==e.get(i))return!0}return!1}(e,t,0,n,o)&&function(e,t,i,n,o){if(n+o===i)return!0;const s=t.charCodeAt(n+o);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(o>0){const i=t.charCodeAt(n+o-1);if(0!==e.get(i))return!0}return!1}(e,t,i,n,o)}class Dm{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(i=this._searchRegex.exec(e),!i)return null;const n=i.index,o=i[0].length;if(n===this._prevMatchStartIndex&&o===this._prevMatchLength){if(0===o){Us(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=n,this._prevMatchLength=o,!this._wordSeparators||km(this._wordSeparators,e,t,n,o))return i}while(i);return null}}class Om{static computeUnicodeHighlights(e,t,i){const n=i?i.startLineNumber:1,o=i?i.endLineNumber:e.getLineCount(),s=new xm(t),r=s.getCandidateCodePoints();let a;a="allNonBasicAscii"===r?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(`[${bs(Array.from(r).map((e=>String.fromCodePoint(e))).join(""))}]`,"g");const l=new Dm(null,a),c=[];let d,h=!1,u=0,g=0,m=0;e:for(let p=n,f=o;p<=f;p++){const t=e.getLineContent(p),i=t.length;l.reset(0);do{if(d=l.next(t),d){let e=d.index,n=d.index+d[0].length;e>0&&Bs(t.charCodeAt(e-1))&&e--,n+1=t){h=!0;break e}c.push(new Un(p,e+1,p,n+1))}}}while(d)}return{ranges:c,hasMore:h,ambiguousCharacterCount:u,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:m}}static computeUnicodeHighlightReason(e,t){const i=new xm(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const n=e.codePointAt(0),o=i.ambiguousCharacters.getPrimaryConfusable(n),s=rr.getLocales().filter((e=>!rr.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(n)));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:s}}case 1:return{kind:2}}}}class xm{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=rr.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of ar.codePoints)Mm(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let n=!1,o=!1;if(t)for(const s of t){const e=s.codePointAt(0),t=js(s);n=n||t,t||this.ambiguousCharacters.isAmbiguous(e)||ar.isInvisibleCharacter(e)||(o=!0)}return!n&&o?0:this.options.invisibleCharacters&&!Mm(e)&&ar.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function Mm(e){return" "===e||"\n"===e||"\t"===e}class Pm{constructor(e,t,i){this.changes=e,this.moves=t,this.hitTimeout=i}}class Fm{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}class Bm{static addRange(e,t){let i=0;for(;it))return new Bm(e,t)}static ofLength(e){return new Bm(0,e)}static ofStartAndLength(e,t){return new Bm(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new ai(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new Bm(this.start+e,this.endExclusive+e)}deltaStart(e){return new Bm(this.start+e,this.endExclusive)}deltaEnd(e){return new Bm(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 ai(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new ai(`Invalid clipping range: ${this.toString()}`);return e=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;te.toString())).join(", ")}intersectsStrict(e){let t=0;for(;te+t.length),0)}}function Wm(e,t){const i=function(e,t,i=e.length-1){for(let n=i;n>=0;n--)if(t(e[n]))return n;return-1}(e,t);if(-1!==i)return e[i]}function Um(e,t){const i=Vm(e,t);return-1===i?void 0:e[i]}function Vm(e,t,i=0,n=e.length){let o=i,s=n;for(;o0&&(i=o)}return i}function Ym(e,t){if(0===e.length)return-1;let i=0;for(let n=1;n0&&(i=n);return i}zm.assertInvariants=!1;let qm=class e{static fromRangeInclusive(t){return new e(t.startLineNumber,t.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new $m(e[0].slice());for(let i=1;it)throw new ai(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&et.endLineNumberExclusive>=e.startLineNumber)),i=Vm(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)this._normalizedRanges.splice(t,0,e);else if(t===i-1){const i=this._normalizedRanges[t];this._normalizedRanges[t]=i.join(e)}else{const n=this._normalizedRanges[t].join(this._normalizedRanges[i-1]).join(e);this._normalizedRanges.splice(t,i-t,n)}}contains(e){const t=Um(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=Um(this._normalizedRanges,(t=>t.startLineNumbere.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let i=0,n=0,o=null;for(;i=s.startLineNumber?o=new qm(o.startLineNumber,Math.max(o.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(o),o=s)}return null!==o&&t.push(o),new $m(t)}subtractFrom(e){const t=Gm(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),i=Vm(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)return new $m([e]);const n=[];let o=e.startLineNumber;for(let s=t;so&&n.push(new qm(o,e.startLineNumber)),o=e.endLineNumberExclusive}return oe.toString())).join(", ")}getIntersection(e){const t=[];let i=0,n=0;for(;it.delta(e))))}}class jm{static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new jm(0,t.column-e.column):new jm(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return jm.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,i=0;for(const n of e)"\n"===n?(t++,i=0):i++;return new jm(t,i)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new Un(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new Un(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new Wn(e.lineNumber,e.column+this.columnCount):new Wn(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}jm.zero=new jm(0,0);class Xm{constructor(e){this.text=e,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;tch(e,((e,t)=>e.range.getEndPosition().isBeforeOrEqual(t.range.getStartPosition())))))}apply(e){let t="",i=new Wn(1,1);for(const o of this.edits){const n=o.range,s=n.getStartPosition(),r=n.getEndPosition(),a=Zm(i,s);a.isEmpty()||(t+=e.getValueOfRange(a)),t+=o.text,i=r}const n=Zm(i,e.endPositionExclusive);return n.isEmpty()||(t+=e.getValueOfRange(n)),t}applyToString(e){const t=new tp(e);return this.apply(t)}getNewRanges(){const e=[];let t=0,i=0,n=0;for(const o of this.edits){const s=jm.ofText(o.text),r=Wn.lift({lineNumber:o.range.startLineNumber+i,column:o.range.startColumn+(o.range.startLineNumber===t?n:0)}),a=s.createRange(r);e.push(a),i=a.endLineNumber-o.range.endLineNumber,n=a.endColumn-o.range.endColumn,t=o.range.endLineNumber}return e}}class Qm{constructor(e,t){this.range=e,this.text=t}}function Zm(e,t){if(e.lineNumber===t.lineNumber&&e.column===Number.MAX_SAFE_INTEGER)return Un.fromPositions(t,t);if(!e.isBeforeOrEqual(t))throw new ai("start must be before end");return new Un(e.lineNumber,e.column,t.lineNumber,t.column)}class ep{get endPositionExclusive(){return this.length.addToPosition(new Wn(1,1))}}class tp extends ep{constructor(e){super(),this.value=e,this._t=new Xm(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}}class ip{static inverse(e,t,i){const n=[];let o=1,s=1;for(const a of e){const e=new ip(new qm(o,a.original.startLineNumber),new qm(s,a.modified.startLineNumber));e.modified.isEmpty||n.push(e),o=a.original.endLineNumberExclusive,s=a.modified.endLineNumberExclusive}const r=new ip(new qm(o,t+1),new qm(s,i+1));return r.modified.isEmpty||n.push(r),n}static clip(e,t,i){const n=[];for(const o of e){const e=o.original.intersect(t),s=o.modified.intersect(i);e&&!e.isEmpty&&s&&!s.isEmpty&&n.push(new ip(e,s))}return n}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new ip(this.modified,this.original)}join(e){return new ip(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new op(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new ai("not a valid diff");return new op(new Un(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Un(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new op(new Un(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new Un(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}}class np extends ip{static fromRangeMappings(e){const t=qm.join(e.map((e=>qm.fromRangeInclusive(e.originalRange)))),i=qm.join(e.map((e=>qm.fromRangeInclusive(e.modifiedRange))));return new np(t,i,e)}constructor(e,t,i){super(e,t),this.innerChanges=i}flip(){var e;return new np(this.modified,this.original,null===(e=this.innerChanges)||void 0===e?void 0:e.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new np(this.original,this.modified,[this.toRangeMapping()])}}class op{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new op(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new Qm(this.originalRange,t)}}class sp{computeDiff(e,t,i){var n;const o=new hp(e,t,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),s=[];let r=null;for(const a of o.changes){let e,t;e=0===a.originalEndLineNumber?new qm(a.originalStartLineNumber+1,a.originalStartLineNumber+1):new qm(a.originalStartLineNumber,a.originalEndLineNumber+1),t=0===a.modifiedEndLineNumber?new qm(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):new qm(a.modifiedStartLineNumber,a.modifiedEndLineNumber+1);let i=new np(e,t,null===(n=a.charChanges)||void 0===n?void 0:n.map((e=>new op(new Un(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new Un(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));r&&(r.modified.endLineNumberExclusive!==i.modified.startLineNumber&&r.original.endLineNumberExclusive!==i.original.startLineNumber||(i=new np(r.original.join(i.original),r.modified.join(i.modified),r.innerChanges&&i.innerChanges?r.innerChanges.concat(i.innerChanges):void 0),s.pop())),s.push(i),r=i}return lh((()=>ch(s,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive==t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.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-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?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-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class cp{constructor(e,t,i,n,o,s,r,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=n,this.modifiedStartLineNumber=o,this.modifiedStartColumn=s,this.modifiedEndLineNumber=r,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){const n=t.getStartLineNumber(e.originalStart),o=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),r=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),l=i.getStartColumn(e.modifiedStart),c=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),d=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new cp(n,o,s,r,a,l,c,d)}}class dp{constructor(e,t,i,n,o){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=n,this.charChanges=o}static createFromDiffResult(e,t,i,n,o,s,r){let a,l,c,d,h;if(0===t.originalLength?(a=i.getStartLineNumber(t.originalStart)-1,l=0):(a=i.getStartLineNumber(t.originalStart),l=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=n.getStartLineNumber(t.modifiedStart)-1,d=0):(c=n.getStartLineNumber(t.modifiedStart),d=n.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&o()){const s=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=n.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=rp(s,a,o,!0).changes;r&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let i=t[0];for(let n=1,o=e.length;n1&&r>1&&e.charCodeAt(i-2)===t.charCodeAt(r-2);)i--,r--;(i>1||r>1)&&this._pushTrimWhitespaceCharChange(n,o+1,1,i,s+1,1,r)}{let i=gp(e,1),r=gp(t,1);const a=e.length+1,l=t.length+1;for(;i!0;const t=Date.now();return()=>Date.now()-t{i.push(fp.fromOffsetPairs(e?e.getEndExclusives():_p.zero,n?n.getStarts():new _p(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),i}static fromOffsetPairs(e,t){return new fp(new Bm(e.offset1,t.offset1),new Bm(e.offset2,t.offset2))}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new fp(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new fp(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new fp(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new fp(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new fp(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),i=this.seq2Range.intersect(e.seq2Range);if(t&&i)return new fp(t,i)}getStarts(){return new _p(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new _p(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class _p{constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new _p(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}_p.zero=new _p(0,0),_p.max=new _p(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class bp{isValid(){return!0}}bp.instance=new bp;class vp{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new ai("timeout must be positive")}isValid(){return!(Date.now()-this.startTime0&&a>0&&3===s.get(g-1,a-1)&&(d+=r.get(g-1,a-1)),d+=n?n(g,a):1):d=-1;const h=Math.max(l,c,d);if(h===d){const e=g>0&&a>0?r.get(g-1,a-1):0;r.set(g,a,e+1),s.set(g,a,3)}else h===l?(r.set(g,a,0),s.set(g,a,1)):h===c&&(r.set(g,a,0),s.set(g,a,2));o.set(g,a,h)}const a=[];let l=e.length,c=t.length;function d(e,t){e+1===l&&t+1===c||a.push(new fp(new Bm(e+1,l),new Bm(t+1,c))),l=e,c=t}let h=e.length-1,u=t.length-1;for(;h>=0&&u>=0;)3===s.get(h,u)?(d(h,u),h--,u--):1===s.get(h,u)?h--:u--;return d(-1,-1),a.reverse(),new pp(a,!1)}}class Tp{compute(e,t,i=bp.instance){if(0===e.length||0===t.length)return pp.trivial(e,t);const n=e,o=t;function s(e,t){for(;en.length||h>o.length)continue;const u=s(d,h);a.set(c,u);const g=d===i?l.get(c+1):l.get(c-1);if(l.set(c,u!==d?new yp(g,d,h,u-d):g),a.get(c)===n.length&&a.get(c)-c===o.length)break e}}let d=l.get(c);const h=[];let u=n.length,g=o.length;for(;;){const e=d?d.x+d.length:0,t=d?d.y+d.length:0;if(e===u&&t===g||h.push(new fp(new Bm(e,u),new Bm(t,g))),!d)break;u=d.x,g=d.y,d=d.prev}return h.reverse(),new pp(h,!1)}}class yp{constructor(e,t,i,n){this.prev=e,this.x=t,this.y=i,this.length=n}}class Rp{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,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class Lp{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}class Ip{constructor(e,t,i){this.lines=e,this.considerWhitespaceChanges=i,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let n=!1;t.start>0&&t.endExclusive>=e.length&&(t=new Bm(t.start-1,t.endExclusive),n=!0),this.lineRange=t,this.firstCharOffsetByLine[0]=0;for(let o=this.lineRange.start;oString.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=Dp(e>0?this.elements[e-1]:-1),i=Dp(et<=e));return new Wn(this.lineRange.start+t+1,e-this.firstCharOffsetByLine[t]+this.additionalOffsetByLine[t]+1)}translateRange(e){return Un.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!Ap(this.elements[e]))return;let t=e;for(;t>0&&Ap(this.elements[t-1]);)t--;let i=e;for(;it<=e.start)))&&void 0!==t?t:0,o=null!==(i=function(t,i){const n=Gm(t,(t=>e.endExclusive<=t));return n===t.length?void 0:t[n]}(this.firstCharOffsetByLine))&&void 0!==i?i:this.elements.length;return new Bm(n,o)}}function Ap(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const Np={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function kp(e){return Np[e]}function Dp(e){return 10===e?8:13===e?7:Cp(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function Op(e,t,i){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const n=(new Tp).compute(new Ip([e],new Bm(0,1),!1),new Ip([t],new Bm(0,1),!1),i);let o=0;const s=fp.invert(n.diffs,e.length);for(const a of s)a.seq1Range.forEach((t=>{Cp(e.charCodeAt(t))||o++}));const r=function(t){let i=0;for(let n=0;nt.length?e:t);return o/r>.6&&r>10}function xp(e,t,i){let n=i;return n=Mp(e,t,n),n=Mp(e,t,n),n=function(e,t,i){if(!e.getBoundaryScore||!t.getBoundaryScore)return i;for(let n=0;n0?i[n-1]:void 0,s=i[n],r=n+10&&(r=r.delta(a))}o.push(r)}return n.length>0&&o.push(n[n.length-1]),o}function Pp(e,t,i,n,o){let s=1;for(;e.seq1Range.start-s>=n.start&&e.seq2Range.start-s>=o.start&&i.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let r=0;for(;e.seq1Range.start+rl&&(l=r,a=c)}return e.delta(a)}class Fp{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:Bp(this.lines[e-1]))+(e===this.lines.length?0:Bp(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function Bp(e){let t=0;for(;te===t)))return new Pm([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new Pm([new np(new qm(1,e.length+1),new qm(1,t.length+1),[new op(new Un(1,1,e.length,e[e.length-1].length+1),new Un(1,1,t.length,t[t.length-1].length+1))])],[],!1);const n=0===i.maxComputationTimeMs?bp.instance:new vp(i.maxComputationTimeMs),o=!i.ignoreTrimWhitespace,s=new Map;function r(e){let t=s.get(e);return void 0===t&&(t=s.size,s.set(e,t)),t}const a=e.map((e=>r(e.trim()))),l=t.map((e=>r(e.trim()))),c=new Fp(a,e),d=new Fp(l,t),h=(()=>c.length+d.length<1700?this.dynamicProgrammingDiffing.compute(c,d,n,((i,n)=>e[i]===t[n]?0===t[n].length?.1:1+Math.log(1+t[n].length):.99)):this.myersDiffingAlgorithm.compute(c,d))();let u=h.diffs,g=h.hitTimeout;u=xp(c,d,u),u=function(e,t,i){let n=i;if(0===n.length)return n;let o,s=0;do{o=!1;const t=[n[0]];for(let i=1;i5||i.seq1Range.length+i.seq2Range.length>5)};const r=n[i],a=t[t.length-1];s(a,r)?(o=!0,t[t.length-1]=t[t.length-1].join(r)):t.push(r)}n=t}while(s++<10&&o);return n}(c,0,u);const m=[],p=i=>{if(o)for(let s=0;sb.seq1Range.start-f==b.seq2Range.start-_)),p(b.seq1Range.start-f),f=b.seq1Range.endExclusive,_=b.seq2Range.endExclusive;const i=this.refineDiff(e,t,b,n,o);i.hitTimeout&&(g=!0);for(const e of i.mappings)m.push(e)}p(e.length-f);const v=Wp(m,e,t);let S=[];return i.computeMoves&&(S=this.computeMoves(v,e,t,a,l,n,o)),lh((()=>{function i(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const i=t[e.lineNumber-1];return!(e.column<1||e.column>i.length+1)}function n(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1||e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const o of v){if(!o.innerChanges)return!1;for(const n of o.innerChanges)if(!(i(n.modifiedRange.getStartPosition(),t)&&i(n.modifiedRange.getEndPosition(),t)&&i(n.originalRange.getStartPosition(),e)&&i(n.originalRange.getEndPosition(),e)))return!1;if(!n(o.modified,t)||!n(o.original,e))return!1}return!0})),new Pm(v,S,g)}computeMoves(e,t,i,n,o,s,r){return function(e,t,i,n,o,s){let{moves:r,excludedChanges:a}=function(e,t,i,n){const o=[],s=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new Ep(e.original,t,e))),r=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new Ep(e.modified,i,e)))),a=new Set;for(const l of s){let e,t=-1;for(const i of r){const n=l.computeSimilarity(i);n>t&&(t=n,e=i)}if(t>.9&&e&&(r.delete(e),o.push(new ip(l.range,e.range)),a.add(l.source),a.add(e.source)),!n.isValid())return{moves:o,excludedChanges:a}}return{moves:o,excludedChanges:a}}(e,t,i,s);return s.isValid()?(x(r,function(e,t,i,n,o,s){const r=[],a=new mm;for(const u of e)for(let e=u.original.startLineNumber;ee.modified.startLineNumber),U));for(const u of e){let e=[];for(let t=u.modified.startLineNumber;t{for(const n of e)if(n.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&n.modifiedLineRange.endLineNumberExclusive+1===o.endLineNumberExclusive)return n.originalLineRange=new qm(n.originalLineRange.startLineNumber,t.endLineNumberExclusive),n.modifiedLineRange=new qm(n.modifiedLineRange.startLineNumber,o.endLineNumberExclusive),void s.push(n);const i={modifiedLineRange:o,originalLineRange:t};l.push(i),s.push(i)})),e=s}if(!s.isValid())return[]}l.sort(G(W((e=>e.modifiedLineRange.length),U)));const c=new $m,d=new $m;for(const u of l){const e=u.modifiedLineRange.startLineNumber-u.originalLineRange.startLineNumber,t=c.subtractFrom(u.modifiedLineRange),i=d.subtractFrom(u.originalLineRange).getWithDelta(e),n=t.getIntersection(i);for(const o of n.ranges){if(o.length<3)continue;const t=o,i=o.delta(-e);r.push(new ip(i,t)),c.addRange(t),d.addRange(i)}}r.sort(W((e=>e.original.startLineNumber),U));const h=new zm(e);for(let u=0;ue.original.startLineNumber<=t.original.startLineNumber)),a=Um(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-i.original.startLineNumber,t.modified.startLineNumber-a.modified.startLineNumber),g=h.findLastMonotonous((e=>e.original.startLineNumbere.modified.startLineNumbern.length||i>o.length)break;if(c.contains(i)||d.contains(e))break;if(!Op(n[e-1],o[i-1],s))break}for(f>0&&(d.addRange(new qm(t.original.startLineNumber-f,t.original.startLineNumber)),c.addRange(new qm(t.modified.startLineNumber-f,t.modified.startLineNumber))),_=0;_n.length||i>o.length)break;if(c.contains(i)||d.contains(e))break;if(!Op(n[e-1],o[i-1],s))break}_>0&&(d.addRange(new qm(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+_)),c.addRange(new qm(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+_))),(f>0||_>0)&&(r[u]=new ip(new qm(t.original.startLineNumber-f,t.original.endLineNumberExclusive+_),new qm(t.modified.startLineNumber-f,t.modified.endLineNumberExclusive+_)))}return r}(e.filter((e=>!a.has(e))),n,o,t,i,s)),r=function(e){if(0===e.length)return e;e.sort(W((e=>e.original.startLineNumber),U));const t=[e[0]];for(let i=1;i=0&&r>=0&&s+r<=2?t[t.length-1]=n.join(o):t.push(o)}return t}(r),r=r.filter((e=>{const i=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return i.join("\n").length>=15&&function(e,t){let i=0;for(const n of e)t(n)&&i++;return i}(i,(e=>e.length>=2))>=2})),r=function(e,t){const i=new zm(e);return t.filter((t=>(i.findLastMonotonous((e=>e.original.startLineNumbere.modified.startLineNumber{const n=Wp(this.refineDiff(t,i,new fp(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,r).mappings,t,i,!0);return new Fm(e,n)}))}refineDiff(e,t,i,n,o){const s=new Ip(e,i.seq1Range,o),r=new Ip(t,i.seq2Range,o),a=s.length+r.length<500?this.dynamicProgrammingDiffing.compute(s,r,n):this.myersDiffingAlgorithm.compute(s,r,n);let l=a.diffs;return l=xp(s,r,l),l=function(e,t,i){const n=fp.invert(i,e.length),o=[];let s=new _p(0,0);function r(i,r){if(i.offset10;){const i=n[0];if(!i.seq1Range.intersects(c.seq1Range)&&!i.seq2Range.intersects(c.seq2Range))break;const o=e.findWordContaining(i.seq1Range.start),s=t.findWordContaining(i.seq2Range.start),r=new fp(o,s),a=r.intersect(i);if(h+=a.seq1Range.length,u+=a.seq2Range.length,c=c.join(r),!(c.seq1Range.endExclusive>=i.seq1Range.endExclusive))break;n.shift()}h+u<2*(c.seq1Range.length+c.seq2Range.length)/3&&o.push(c),s=c.getEndExclusives()}for(;n.length>0;){const e=n.shift();e.seq1Range.isEmpty||(r(e.getStarts(),e),r(e.getEndExclusives().delta(-1),e))}return function(e,t){const i=[];for(;e.length>0||t.length>0;){const n=e[0],o=t[0];let s;s=n&&(!o||n.seq1Range.start0&&i[i.length-1].seq1Range.endExclusive>=s.seq1Range.start?i[i.length-1]=i[i.length-1].join(s):i.push(s)}return i}(i,o)}(s,r,l),l=function(e,t,i){const n=[];for(const o of i){const e=n[n.length-1];e&&(o.seq1Range.start-e.seq1Range.endExclusive<=2||o.seq2Range.start-e.seq2Range.endExclusive<=2)?n[n.length-1]=new fp(e.seq1Range.join(o.seq1Range),e.seq2Range.join(o.seq2Range)):n.push(o)}return n}(0,0,l),l=function(e,t,i){let n=i;if(0===n.length)return n;let o,s=0;do{o=!1;const i=[n[0]];for(let s=1;s5||o.length>500)return!1;const s=e.getText(o).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;const r=e.countLinesIn(i.seq1Range),c=i.seq1Range.length,d=t.countLinesIn(i.seq2Range),h=i.seq2Range.length,u=e.countLinesIn(n.seq1Range),g=n.seq1Range.length,m=t.countLinesIn(n.seq2Range),p=n.seq2Range.length;function f(e){return Math.min(e,130)}return Math.pow(Math.pow(f(40*r+c),1.5)+Math.pow(f(40*d+h),1.5),1.5)+Math.pow(Math.pow(f(40*u+g),1.5)+Math.pow(f(40*m+p),1.5),1.5)>74184.96480721243};const a=n[s],l=i[i.length-1];r(l,a)?(o=!0,i[i.length-1]=i[i.length-1].join(a)):i.push(a)}n=i}while(s++<10&&o);const r=[];return function(e,t){for(let i=0;i{let o=i;function s(e){return e.length>0&&e.trim().length<=3&&i.seq1Range.length+i.seq2Range.length>100}const a=e.extendToFullLines(i.seq1Range),l=e.getText(new Bm(a.start,i.seq1Range.start));s(l)&&(o=o.deltaStart(-l.length));const c=e.getText(new Bm(i.seq1Range.endExclusive,a.endExclusive));s(c)&&(o=o.deltaEnd(c.length));const d=fp.fromOffsetPairs(t?t.getEndExclusives():_p.zero,n?n.getStarts():_p.max),h=o.intersect(d);r.length>0&&h.getStarts().equals(r[r.length-1].getEndExclusives())?r[r.length-1]=r[r.length-1].join(h):r.push(h)})),r}(s,r,l),{mappings:l.map((e=>new op(s.translateRange(e.seq1Range),r.translateRange(e.seq2Range)))),hitTimeout:a.hitTimeout}}}function Wp(e,t,i,n=!1){const o=[];for(const s of E(e.map((e=>function(e,t,i){let n=0,o=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+n<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+n<=e.modifiedRange.endLineNumber&&(o=-1),e.modifiedRange.startColumn-1>=i[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+o&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+o&&(n=1);const s=new qm(e.originalRange.startLineNumber+n,e.originalRange.endLineNumber+1+o),r=new qm(e.modifiedRange.startLineNumber+n,e.modifiedRange.endLineNumber+1+o);return new np(s,r,[e])}(e,t,i))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];o.push(new np(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return lh((()=>{if(!n&&o.length>0){if(o[0].modified.startLineNumber!==o[0].original.startLineNumber)return!1;if(i.length-o[o.length-1].modified.endLineNumberExclusive!=t.length-o[o.length-1].original.endLineNumberExclusive)return!1}return ch(o,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive==t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive0){switch(l=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),s){case t:a=(i-n)/d+(i1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:n,a:o}=e;let s,r,a;if(0===i)s=r=a=n;else{const e=n<.5?n*(1+i):n+i-n*i,o=2*n-e;s=Gp._hue2rgb(o,e,t+1/3),r=Gp._hue2rgb(o,e,t),a=Gp._hue2rgb(o,e,t-1/3)}return new Vp(Math.round(255*s),Math.round(255*r),Math.round(255*a),o)}}class zp{constructor(e,t,i,n){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=Up(Math.max(Math.min(1,t),0),3),this.v=Up(Math.max(Math.min(1,i),0),3),this.a=Up(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,o=Math.max(t,i,n),s=o-Math.min(t,i,n),r=0===o?0:s/o;let a;return a=0===s?0:o===t?((i-n)/s%6+6)%6:o===i?(n-t)/s+2:(t-i)/s+4,new zp(Math.round(60*a),r,o,e.a)}static toRGBA(e){const{h:t,s:i,v:n,a:o}=e,s=n*i,r=s*(1-Math.abs(t/60%2-1)),a=n-s;let[l,c,d]=[0,0,0];return t<60?(l=s,c=r):t<120?(l=r,c=s):t<180?(c=s,d=r):t<240?(c=r,d=s):t<300?(l=r,d=s):t<=360&&(l=s,d=r),l=Math.round(255*(l+a)),c=Math.round(255*(c+a)),d=Math.round(255*(d+a)),new Vp(l,c,d,o)}}class Kp{static fromHex(e){return Kp.Format.CSS.parseHex(e)||Kp.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:Gp.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:zp.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof Vp)this.rgba=e;else if(e instanceof Gp)this._hsla=e,this.rgba=Gp.toRGBA(e);else{if(!(e instanceof zp))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=zp.toRGBA(e)}}equals(e){return!!e&&Vp.equals(this.rgba,e.rgba)&&Gp.equals(this.hsla,e.hsla)&&zp.equals(this.hsva,e.hsva)}getRelativeLuminance(){return Up(.2126*Kp._relativeLuminanceForComponent(this.rgba.r)+.7152*Kp._relativeLuminanceForComponent(this.rgba.g)+.0722*Kp._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()e.startColumn){const t={range:e,...nf(n[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&i.push(t)}}}function nf(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(ef,""),hasSeparatorLine:t}}class of extends Jg{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let i=0;ithis._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,n=!0;else{const e=this._lines[t-1].length+1;i<1?(i=1,n=!0):i>e&&(i=e,n=!0)}return n?{lineNumber:t,column:i}:e}}class sf{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new of(An.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}async computeUnicodeHighlights(e,t,i){const n=this._getModel(e);return n?Om.computeUnicodeHighlights(n,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(e,t){const i=this._getModel(e);return i?function(e,t){var i;let n=[];if(t.findRegionSectionHeaders&&(null===(i=t.foldingRules)||void 0===i?void 0:i.markers)){const i=function(e,t){const i=[],n=e.getLineCount();for(let o=1;o<=n;o++){const n=e.getLineContent(o),s=n.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:o,startColumn:s[0].length+1,endLineNumber:o,endColumn:n.length+1};if(e.endColumn>e.startColumn){const t={range:e,...nf(n.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&i.push(t)}}}return i}(e,t);n=n.concat(i)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],i=e.getLineCount();for(let n=1;n<=i;n++)tf(e.getLineContent(n),n,t);return t}(e);n=n.concat(t)}return n}(i,t):[]}async computeDiff(e,t,i,n){const o=this._getModel(e),s=this._getModel(t);return o&&s?sf.computeDiff(o,s,i,n):null}static computeDiff(e,t,i,n){const o="advanced"===n?new Hp:new sp,s=e.getLinesContent(),r=t.getLinesContent(),a=o.computeDiff(s,r,i);function l(e){return e.map((e=>{var t;return[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,null===(t=e.innerChanges)||void 0===t?void 0:t.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]}))}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)]))}}static _modelsAreIdentical(e,t){const i=e.getLineCount();if(i!==t.getLineCount())return!1;for(let n=1;n<=i;n++)if(e.getLineContent(n)!==t.getLineContent(n))return!1;return!0}async computeMoreMinimalEdits(e,t,i){const n=this._getModel(e);if(!n)return t;const o=[];let s;t=t.slice(0).sort(((e,t)=>e.range&&t.range?Un.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)));let r=0;for(let a=1;asf._diffLimit){o.push({range:a,text:l});continue}const t=Ug(e,l,i),r=n.offsetAt(Un.lift(a).getStartPosition());for(const i of t){const e=n.positionAt(r+i.originalStart),t=n.positionAt(r+i.originalStart+i.originalLength),s={text:l.substr(i.modifiedStart,i.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};n.getValueInRange(s.range)!==s.text&&o.push(s)}}return"number"==typeof s&&o.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o}async computeLinks(e){const t=this._getModel(e);return t?(i=t)&&"function"==typeof i.getLineCount&&"function"==typeof i.getLineContent?om.computeLinks(i):[]:null;var i}async computeDefaultDocumentColors(e){const t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getValue&&"function"==typeof e.positionAt?function(e){const t=[],i=Qp(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(i.length>0)for(const n of i){const i=n.filter((e=>void 0!==e)),o=i[1],s=i[2];if(!s)continue;let r;if("rgb"===o){const t=/^\(\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;r=Xp($p(e,n),Qp(s,t),!1)}else if("rgba"===o){const t=/^\(\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;r=Xp($p(e,n),Qp(s,t),!0)}else if("hsl"===o){const t=/^\(\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;r=Jp($p(e,n),Qp(s,t),!1)}else if("hsla"===o){const t=/^\(\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;r=Jp($p(e,n),Qp(s,t),!0)}else"#"===o&&(r=jp($p(e,n),o+s));r&&t.push(r)}return t}(e):[]}(t):null}async textualSuggest(e,t,i,n){const o=new Si,s=new RegExp(i,n),r=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const i of e.words(s))if(i!==t&&isNaN(Number(i))&&(r.add(i),r.size>sf._suggestionsLimit))break e}return{words:Array.from(r),duration:o.elapsed()}}async computeWordRanges(e,t,i,n){const o=this._getModel(e);if(!o)return Object.create(null);const s=new RegExp(i,n),r=Object.create(null);for(let a=t.startLineNumber;afunction(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(const o of e)n[o]=i(o);return n}(i,((e,t)=>this._host.fhr(e,t))),o={host:n,getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,t),Promise.resolve(ue(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(sue){return Promise.reject(sue)}}}sf._diffLimit=1e5,sf._suggestionsLimit=1e4,"function"==typeof importScripts&&(globalThis.monaco=ls());const rf=id("textResourceConfigurationService"),af=id("textResourcePropertiesService"),lf=id("ILanguageFeaturesService");var cf=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},df=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};function hf(e,t){const i=e.getModel(t);return!!i&&!i.isTooLargeForSyncing()}let uf=class extends mi{constructor(e,t,i,n,o){super(),this._modelService=e,this._workerManager=this._register(new mf(this._modelService,n)),this._logService=i,this._register(o.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(e,t)=>hf(this._modelService,e.uri)?this._workerManager.withWorker().then((t=>t.computeLinks(e.uri))).then((e=>e&&{links:e})):Promise.resolve({links:[]})})),this._register(o.completionProvider.register("*",new gf(this._workerManager,t,this._modelService,n)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return hf(this._modelService,e)}computedUnicodeHighlights(e,t,i){return this._workerManager.withWorker().then((n=>n.computedUnicodeHighlights(e,t,i)))}async computeDiff(e,t,i,n){const o=await this._workerManager.withWorker().then((o=>o.computeDiff(e,t,i,n)));return o?{identical:o.identical,quitEarly:o.quitEarly,changes:s(o.changes),moves:o.moves.map((e=>new Fm(new ip(new qm(e[0],e[1]),new qm(e[2],e[3])),s(e[4]))))}:null;function s(e){return e.map((e=>{var t;return new np(new qm(e[0],e[1]),new qm(e[2],e[3]),null===(t=e[4])||void 0===t?void 0:t.map((e=>new op(new Un(e[0],e[1],e[2],e[3]),new Un(e[4],e[5],e[6],e[7])))))}))}}computeMoreMinimalEdits(e,t,i=!1){if(L(t)){if(!hf(this._modelService,e))return Promise.resolve(t);const n=Si.create(),o=this._workerManager.withWorker().then((n=>n.computeMoreMinimalEdits(e,t,i)));return o.finally((()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),n.elapsed()))),Promise.race([o,Wr(1e3).then((()=>t))])}return Promise.resolve(void 0)}canNavigateValueSet(e){return hf(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then((n=>n.navigateValueSet(e,t,i)))}canComputeWordRanges(e){return hf(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then((i=>i.computeWordRanges(e,t)))}findSectionHeaders(e,t){return this._workerManager.withWorker().then((i=>i.findSectionHeaders(e,t)))}};uf=cf([df(0,od),df(1,rf),df(2,Lh),df(3,Lg),df(4,lf)],uf);class gf{constructor(e,t,i,n){this.languageConfigurationService=n,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}async provideCompletionItems(e,t){const i=this._configurationService.getValue(e.uri,t,"editor");if("off"===i.wordBasedSuggestions)return;const n=[];if("currentDocument"===i.wordBasedSuggestions)hf(this._modelService,e.uri)&&n.push(e.uri);else for(const d of this._modelService.getModels())hf(this._modelService,d.uri)&&(d===e?n.unshift(d.uri):"allDocuments"!==i.wordBasedSuggestions&&d.getLanguageId()!==e.getLanguageId()||n.push(d.uri));if(0===n.length)return;const o=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),s=e.getWordAtPosition(t),r=s?new Un(t.lineNumber,s.startColumn,t.lineNumber,s.endColumn):Un.fromPositions(t),a=r.setEndPosition(t.lineNumber,t.column),l=await this._workerManager.withWorker(),c=await l.textualSuggest(n,null==s?void 0:s.word,o);return c?{duration:c.duration,suggestions:c.words.map((e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:r}})))}:void 0}}class mf extends mi{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=(new Date).getTime(),this._register(new Dl).cancelAndSet((()=>this._checkStopIdleWorker()),Math.round(15e4),cs),this._register(this._modelService.onModelRemoved((e=>this._checkStopEmptyWorker())))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){this._editorWorkerClient&&0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){this._editorWorkerClient&&(new Date).getTime()-this._lastWorkerUsedTime>3e5&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new bf(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class pf extends mi{constructor(e,t,i){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const e=new zr;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(3e4)),this._register(e)}}dispose(){for(const e in this._syncedModels)di(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(const i of e){const e=i.toString();this._syncedModels[e]||this._beginModelSync(i,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const i in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[i]>6e4&&t.push(i);for(const i of t)this._stopModelSync(i)}_beginModelSync(e,t){const i=this._modelService.getModel(e);if(!i)return;if(!t&&i.isTooLargeForSyncing())return;const n=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const o=new gi;o.add(i.onDidChangeContent((e=>{this._proxy.acceptModelChanged(n.toString(),e)}))),o.add(i.onWillDispose((()=>{this._stopModelSync(n)}))),o.add(ui((()=>{this._proxy.acceptRemovedModel(n)}))),this._syncedModels[n]=o}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],di(t)}}class ff{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class _f{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class bf extends mi{constructor(e,t,i,n){super(),this.languageConfigurationService=n,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new hu(i),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new su(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new _f(this)))}catch(H){Qh(),this._worker=new ff(new sf(new _f(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,(e=>(Qh(),this._worker=new ff(new sf(new _f(this),null)),this._getOrCreateWorker().getProxyObject())))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new pf(e,this._modelService,this._keepIdleModels))),this._modelManager}async _withSyncedResources(e,t=!1){return this._disposed?Promise.reject(function(){const e=new Error(ei);return e.name=e.message,e}()):this._getProxy().then((i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i)))}computedUnicodeHighlights(e,t,i){return this._withSyncedResources([e]).then((n=>n.computeUnicodeHighlights(e.toString(),t,i)))}computeDiff(e,t,i,n){return this._withSyncedResources([e,t],!0).then((o=>o.computeDiff(e.toString(),t.toString(),i,n)))}computeMoreMinimalEdits(e,t,i){return this._withSyncedResources([e]).then((n=>n.computeMoreMinimalEdits(e.toString(),t,i)))}computeLinks(e){return this._withSyncedResources([e]).then((t=>t.computeLinks(e.toString())))}computeDefaultDocumentColors(e){return this._withSyncedResources([e]).then((t=>t.computeDefaultDocumentColors(e.toString())))}async textualSuggest(e,t,i){const n=await this._withSyncedResources(e),o=i.source,s=i.flags;return n.textualSuggest(e.map((e=>e.toString())),t,o,s)}computeWordRanges(e,t){return this._withSyncedResources([e]).then((i=>{const n=this._modelService.getModel(e);if(!n)return Promise.resolve(null);const o=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId()).getWordDefinition(),s=o.source,r=o.flags;return i.computeWordRanges(e.toString(),t,s,r)}))}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then((n=>{const o=this._modelService.getModel(e);if(!o)return null;const s=this.languageConfigurationService.getLanguageConfiguration(o.getLanguageId()).getWordDefinition(),r=s.source,a=s.flags;return n.navigateValueSet(e.toString(),t,i,r,a)}))}findSectionHeaders(e,t){return this._withSyncedResources([e]).then((i=>i.findSectionHeaders(e.toString(),t)))}dispose(){super.dispose(),this._disposed=!0}}class vf extends bf{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(sue){return Promise.reject(sue)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then((e=>{const t=this._foreignModuleHost?ue(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then((t=>{this._foreignModuleCreateData=null;const i=(t,i)=>e.fmr(t,i),n=(e,t)=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},o={};for(const e of t)o[e]=n(e,i);return o}))}))),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then((e=>this.getProxy()))}}const Sf={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},Cf=new class{clone(){return this}equals(e){return this===e}};function Ef(e,t){return new jn([new $n(0,"",e)],t)}function wf(e,t){const i=new Uint32Array(2);return i[0]=0,i[1]=(32768|e<<0|2<<24)>>>0,new Xn(i,null===t?Cf:t)}class Tf{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!=(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const i=this.getFontStyle(e);return 1&i&&(t+=" mtki"),2&i&&(t+=" mtkb"),4&i&&(t+=" mtku"),8&i&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const i=this.getForeground(e),n=this.getFontStyle(e);let o=`color: ${t[i]};`;1&n&&(o+="font-style: italic;"),2&n&&(o+="font-weight: bold;");let s="";return 4&n&&(s+=" underline"),8&n&&(s+=" line-through"),s&&(o+=`text-decoration:${s};`),o}static getPresentationFromMetadata(e){const t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&i),bold:Boolean(2&i),underline:Boolean(4&i),strikethrough:Boolean(8&i)}}}class yf{static createEmpty(e,t){const i=yf.defaultTokenMetadata,n=new Uint32Array(2);return n[0]=e.length,n[1]=i,new yf(n,e,t)}constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this._languageIdCodec=i}equals(e){return e instanceof yf&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const n=t<<1,o=n+(i<<1);for(let s=n;s0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],i=Tf.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return Tf.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return Tf.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return Tf.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[1+(e<<1)];return Tf.getInlineStyleFromMetadata(i,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return Tf.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return yf.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new Rf(this,e,t,i)}static convertToEndOffset(e,t){const i=(e.length>>>1)-1;for(let n=0;n>>1)-1;for(;it&&(n=o)}return i}withInserted(e){if(0===e.length)return this;let t=0,i=0,n="";const o=new Array;let s=0;for(;;){const r=ts){n+=this._text.substring(s,a.offset);const e=this._tokens[1+(t<<1)];o.push(n.length,e),s=a.offset}n+=a.text,o.push(n.length,a.tokenMetadata),i++}}return new yf(new Uint32Array(o),n,this._languageIdCodec)}}yf.defaultTokenMetadata=33587200;class Rf{constructor(e,t,i,n){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=n,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let o=this._firstTokenIndex,s=e.getCount();o=i);o++)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 Rf&&this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount)}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}class Lf{constructor(e,t,i,n){this.startColumn=e,this.endColumn=t,this.className=i,this.type=n,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const i=e.length;if(i!==t.length)return!1;for(let n=0;n=o||(r[a++]=new Lf(Math.max(1,l.startColumn-n+1),Math.min(s+1,l.endColumn-n+1),l.className,l.type));return r}static filter(e,t,i,n){if(0===e.length)return[];const o=[];let s=0;for(let r=0,a=e.length;rt)continue;if(l.isEmpty()&&(0===a.type||3===a.type))continue;const c=l.startLineNumber===t?l.startColumn:i,d=l.endLineNumber===t?l.endColumn:n;o[s++]=new Lf(c,d,a.inlineClassName,a.type)}return o}static _typeCompare(e,t){const i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const i=Lf._typeCompare(e.type,t.type);return 0!==i?i:e.className!==t.className?e.className0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t),this.metadata.splice(n,0,i);break}this.count++}}class Nf{static normalize(e,t){if(0===t.length)return[];const i=[],n=new Af;let o=0;for(let s=0,r=t.length;s1&&Bs(e.charCodeAt(a-2))&&a--,l>1&&Bs(e.charCodeAt(l-2))&&l--;const h=a-1,u=l-2;o=n.consumeLowerThan(h,o,i),0===n.count&&(o=h),n.insert(u,c,d)}return n.consumeLowerThan(1073741824,o,i),i}}class kf{constructor(e,t,i,n){this.endIndex=e,this.type=t,this.metadata=i,this.containsRTL=n,this._linePartBrand=void 0}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class Df{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class Of{constructor(e,t,i,n,o,s,r,a,l,c,d,h,u,g,m,p,f,_,b){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=n,this.isBasicASCII=o,this.containsRTL=s,this.fauxIndentLength=r,this.lineTokens=a,this.lineDecorations=l.sort(Lf.compare),this.tabSize=c,this.startVisibleColumn=d,this.spaceWidth=h,this.stopRenderingLineAfter=m,this.renderWhitespace="all"===p?4:"boundary"===p?1:"selection"===p?2:"trailing"===p?3:0,this.renderControlCharacters=f,this.fontLigatures=_,this.selectionsOnLine=b&&b.sort(((e,t)=>e.startOffset>>16}static getCharIndex(e){return(65535&e)>>>0}constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,t,i,n){const o=(t<<16|i<<0)>>>0;this._data[e-1]=o,this._horizontalOffset[e-1]=n}getHorizontalOffset(e){return 0===this._horizontalOffset.length?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),i=Mf.getPartIndex(t),n=Mf.getCharIndex(t);return new xf(i,n)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(0===this.length)return 0;const n=(e<<16|i<<0)>>>0;let o=0,s=this.length-1;for(;o+1>>1,t=this._data[e];if(t===n)return e;t>n?s=e:o=e}if(o===s)return o;const r=this._data[o],a=this._data[s];if(r===n)return o;if(a===n)return s;const l=Mf.getPartIndex(r),c=Mf.getCharIndex(r);let d;return d=l!==Mf.getPartIndex(a)?t:Mf.getCharIndex(a),i-c<=d-i?o:s}}class Pf{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function Ff(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendString("");let i=0,n=0,o=0;for(const r of e.lineDecorations)1!==r.type&&2!==r.type||(t.appendString(''),1===r.type&&(o|=1,i++),2===r.type&&(o|=2,n++));t.appendString("");const s=new Mf(1,i+n);return s.setColumnInfo(1,i,0,0),new Pf(s,!1,o)}return t.appendString(""),new Pf(new Mf(0,0),!1,0)}return function(e,t){const i=e.fontIsMonospace,n=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,s=e.lineContent,r=e.len,a=e.isOverflowing,l=e.overflowingCharCount,c=e.parts,d=e.fauxIndentLength,h=e.tabSize,u=e.startVisibleColumn,g=e.containsRTL,m=e.spaceWidth,p=e.renderSpaceCharCode,f=e.renderWhitespace,_=e.renderControlCharacters,b=new Mf(r+1,c.length);let v=!1,S=0,C=u,E=0,w=0,T=0;g?t.appendString(''):t.appendString("");for(let R=0,L=c.length;R=d&&(i+=n)}}for(y&&(t.appendString(' style="width:'),t.appendString(String(m*e)),t.appendString('px"')),t.appendASCIICharCode(62);S1?t.appendCharCode(8594):t.appendCharCode(65515);for(let e=2;e<=i;e++)t.appendCharCode(160)}else e=2,i=1,t.appendCharCode(p),t.appendCharCode(8204);E+=e,w+=i,S>=d&&(C+=i)}}else for(t.appendASCIICharCode(62);S=d&&(C+=n)}L?T++:T=0,S>=r&&!v&&e.isPseudoAfter()&&(v=!0,b.setColumnInfo(S+1,R,E,w)),t.appendString("")}var y;return v||b.setColumnInfo(r+1,c.length-1,E,w),a&&(t.appendString(''),t.appendString(pe("vs/editor/common/viewLayout/viewLineRenderer","showMore","Show more ({0})",(y=l)<1024?pe("vs/editor/common/viewLayout/viewLineRenderer","overflow.chars","{0} chars",y):y<1048576?`${(y/1024).toFixed(1)} KB`:`${(y/1024/1024).toFixed(1)} MB`)),t.appendString("")),t.appendString(""),new Pf(b,g,o)}(function(e){const t=e.lineContent;let i,n,o;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter0&&(s[r++]=new kf(n,"",0,!1));let a=n;for(let l=0,c=i.getCount();l=o){const i=!!t&&qs(e.substring(a,o));s[r++]=new kf(o,d,0,i);break}const h=!!t&&qs(e.substring(a,c));s[r++]=new kf(c,d,0,h),a=c}return s}(t,e.containsRTL,e.lineTokens,e.fauxIndentLength,o);e.renderControlCharacters&&!e.isBasicASCII&&(s=function(e,t){const i=[];let n=new kf(0,"",0,!1),o=0;for(const s of t){const t=s.endIndex;for(;on.endIndex&&(n=new kf(o,s.type,s.metadata,s.containsRTL),i.push(n)),n=new kf(o+1,"mtkcontrol",s.metadata,!1),i.push(n));o>n.endIndex&&(n=new kf(t,s.type,s.metadata,s.containsRTL),i.push(n))}return i}(t,s)),(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace&&!e.continuesWithWrappedLine)&&(s=function(e,t,i,n){const o=e.continuesWithWrappedLine,s=e.fauxIndentLength,r=e.tabSize,a=e.startVisibleColumn,l=e.useMonospaceOptimizations,c=e.selectionsOnLine,d=1===e.renderWhitespace,h=3===e.renderWhitespace,u=e.renderSpaceWidth!==e.spaceWidth,g=[];let m=0,p=0,f=n[p].type,_=n[p].containsRTL,b=n[p].endIndex;const v=n.length;let S,C=!1,E=Ts(t);-1===E?(C=!0,E=i,S=i):S=Rs(t);let w=!1,T=0,y=c&&c[T],R=a%r;for(let I=s;I=y.endOffset&&(T++,y=c&&c[T]),IS)o=!0;else if(9===e)o=!0;else if(32===e)if(d)if(w)o=!0;else{const e=I+1I),o&&h&&(o=C||I>S),o&&_&&I>=E&&I<=S&&(o=!1),w){if(!o||!l&&R>=r){if(u)for(let e=(m>0?g[m-1].endIndex:s)+1;e<=I;e++)g[m++]=new kf(e,"mtkw",1,!1);else g[m++]=new kf(I,"mtkw",1,!1);R%=r}}else(I===b||o&&I>s)&&(g[m++]=new kf(I,f,0,_),R%=r);for(9===e?R=r:Qs(e)?R+=2:R++,w=o;I===b&&(p++,p0?t.charCodeAt(i-1):0,n=i>1?t.charCodeAt(i-2):0;32===e&&32!==n&&9!==n||(L=!0)}else L=!0;if(L)if(u)for(let I=(m>0?g[m-1].endIndex:s)+1;I<=i;I++)g[m++]=new kf(I,"mtkw",1,!1);else g[m++]=new kf(i,"mtkw",1,!1);else g[m++]=new kf(i,f,0,_);return g}(e,t,o,s));let r=0;if(e.lineDecorations.length>0){for(let t=0,i=e.lineDecorations.length;tc&&(c=e.startOffset,a[l++]=new kf(c,n,d,u)),!(e.endOffset+1<=t)){c=t,a[l++]=new kf(c,n+" "+e.className,d|e.metadata,u);break}c=e.endOffset+1,a[l++]=new kf(c,n+" "+e.className,d|e.metadata,u),r++}t>c&&(c=t,a[l++]=new kf(c,n,d,u))}const d=i[i.length-1].endIndex;if(r=50&&(o[s++]=new kf(c+1,t,r,l),d=c+1,c=-1);d!==a&&(o[s++]=new kf(a,t,r,l))}else o[s++]=i;n=a}else for(let r=0,a=t.length;r50){const t=e.type,r=e.metadata,l=e.containsRTL,c=Math.ceil(a/50);for(let e=1;e=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||1564===e}function Vf(e){return e.toString(16).toUpperCase().padStart(4,"0")}class Gf{constructor(e,t,i,n){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|n}}class zf{constructor(e,t){this.tabSize=e,this.data=t}}class Kf{constructor(e,t,i,n,o,s,r){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=n,this.startVisibleColumn=o,this.tokens=s,this.inlineDecorations=r}}class Yf{constructor(e,t,i,n,o,s,r,a,l,c){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=n,this.isBasicASCII=Yf.isBasicASCII(i,s),this.containsRTL=Yf.containsRTL(i,this.isBasicASCII,o),this.tokens=r,this.inlineDecorations=a,this.tabSize=l,this.startVisibleColumn=c}static isBasicASCII(e,t){return!t||js(e)}static containsRTL(e,t,i){return!(t||!i)&&qs(e)}}class qf{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class $f{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=n}toInlineDecoration(e){return new qf(new Un(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class jf{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class Xf{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static compareByRenderingProps(e,t){return e.zIndex===t.zIndex?e.colort.color?1:0:e.zIndex-t.zIndex}static equals(e,t){return e.color===t.color&&e.zIndex===t.zIndex&&b(e.data,t.data)}static equalsArr(e,t){return b(e,t,Xf.equals)}}function Jf(e){return t=e,!Array.isArray(t);var t}function Qf(e){return"string"==typeof e}function Zf(e){return!Qf(e)}function e_(e){return!e}function t_(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function i_(e){return e.replace(/[&<>'"_]/g,"-")}function n_(e,t){return new Error(`${e.languageId}: ${t}`)}function o_(e,t,i,n,o){let s=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,r,a,l,c,d,h,u,g){return e_(a)?e_(l)?!e_(c)&&c0;){const t=e.tokenizer[i];if(t)return t;const n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n)}return null}var r_,a_=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},l_=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class c_{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new d_(e,t);let i=d_.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n||(n=new d_(e,t),this._entries[i]=n,n)}}c_._INSTANCE=new c_(5);class d_{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return d_._equals(this,e)}push(e){return c_.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return c_.create(this.parent,e)}}class h_{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new h_(this.languageId,this.state)}}class u_{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==t)return new g_(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new g_(e,t);const i=d_.getStackElementId(e);let n=this._entries[i];return n||(n=new g_(e,null),this._entries[i]=n,n)}}u_._INSTANCE=new u_(5);class g_{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:u_.create(this.stack,this.embeddedLanguageData)}equals(e){return e instanceof g_&&!!this.stack.equals(e.stack)&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData))}}class m_{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new $n(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,n){const o=i.languageId,s=i.state,r=go.get(o);if(!r)return this.enterLanguage(o),this.emit(n,""),s;const a=r.tokenize(e,t,s);if(0!==n)for(const l of a.tokens)this._tokens.push(new $n(l.offset+n,l.type,l.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new jn(this._tokens,e)}}class p_{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const i=1024|this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){const n=null!==e?e.length:0,o=t.length,s=null!==i?i.length:0;if(0===n&&0===o&&0===s)return new Uint32Array(0);if(0===n&&0===o)return i;if(0===o&&0===s)return e;const r=new Uint32Array(n+o+s);null!==e&&r.set(e);for(let a=0;a{if(s)return;let t=!1;for(let i=0,n=e.changedLanguages.length;i{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})))}getLoadStatus(){const e=[];for(const t in this._embeddedLanguages){const i=go.get(t);if(i){if(i instanceof r_){const t=i.getLoadStatus();!1===t.loaded&&e.push(t.promise)}}else go.isResolved(t)||e.push(go.getOrCreate(t))}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then((e=>{}))}}getInitialState(){const e=c_.create(null,this._lexer.start);return u_.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return Ef(this._languageId,i);const n=new m_,o=this._tokenize(e,t,i,n);return n.finalize(o)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return wf(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);const n=new p_(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),o=this._tokenize(e,t,i,n);return n.finalize(o)}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=s_(this._lexer,t.stack.state),!i))throw n_(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,o=!1;for(const s of i){if(!Zf(s.action)||"@pop"!==s.action.nextEmbedded)continue;o=!0;let i=s.resolveRegex(t.stack.state);const r=i.source;if("^(?:"===r.substr(0,4)&&")"===r.substr(r.length-1,1)){const e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(r.substr(4,r.length-5),e)}const a=e.search(i);-1===a||0!==a&&s.matchOnlyAtLineStart||(-1===n||a0&&o.nestedLanguageTokenize(r,!1,i.embeddedLanguageData,n);const a=e.substring(s);return this._myTokenize(a,t,i,n+s,o)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,o){o.enterLanguage(this._languageId);const s=e.length,r=t&&this._lexer.includeLF?e+"\n":e,a=r.length;let l=i.embeddedLanguageData,c=i.stack,d=0,h=null,u=!0;for(;u||d=a)break;u=!1;let e=this._lexer.tokenizer[p];if(!e&&(e=s_(this._lexer,p),!e))throw n_(this._lexer,"tokenizer state is not defined: "+p);const t=r.substr(d);for(const i of e)if((0===d||!i.matchOnlyAtLineStart)&&(f=t.match(i.resolveRegex(p)),f)){_=f[0],b=i.action;break}}if(f||(f=[""],_=""),b||(d=this._lexer.maxStack)throw n_(this._lexer,"maximum tokenizer stack size reached: ["+c.state+","+c.parent.state+",...]");c=c.push(p)}else if("@pop"===b.next){if(c.depth<=1)throw n_(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(v));c=c.pop()}else if("@popall"===b.next)c=c.popall();else{let e=o_(this._lexer,b.next,_,f,p);if("@"===e[0]&&(e=e.substr(1)),!s_(this._lexer,e))throw n_(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(v));c=c.push(e)}}b.log&&"string"==typeof b.log&&(this._lexer,this._lexer.languageId,o_(this._lexer,b.log,_,f,p))}if(null===C)throw n_(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(v));const E=i=>{const s=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,r=this._getNestedEmbeddedLanguageData(s);if(d0)throw n_(this._lexer,"groups cannot be nested: "+this._safeRuleName(v));if(f.length!==C.length+1)throw n_(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(v));let e=0;for(let t=1;te});class v_{static colorizeElement(e,t,i,n){const o=(n=n||{}).theme||"vs",s=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!s)return Promise.resolve();const r=t.getLanguageIdByMimeType(s)||s;e.setTheme(o);const a=i.firstChild?i.firstChild.nodeValue:"";return i.className+=" "+o,this.colorize(t,a||"",r,n).then((e=>{var t;const n=null!==(t=null==b_?void 0:b_.createHTML(e))&&void 0!==t?t:e;i.innerHTML=n}),(e=>{}))}static async colorize(e,t,i,n){const o=e.languageIdCodec;let s=4;n&&"number"==typeof n.tabSize&&(s=n.tabSize),tr(t)&&(t=t.substr(1));const r=ws(t);if(!e.isRegisteredLanguageId(i))return S_(r,s,o);const a=await go.getOrCreate(i);return a?(l=r,c=s,d=a,h=o,new Promise(((e,t)=>{const i=()=>{const n=function(e,t,i,n){let o=[],s=i.getInitialState();for(let r=0,a=e.length;r"),s=l.endState}return o.join("")}(l,c,d,h);if(d instanceof f_){const e=d.getLoadStatus();if(!1===e.loaded)return void e.promise.then(i,t)}e(n)};i()}))):S_(r,s,o);var l,c,d,h}static colorizeLine(e,t,i,n,o=4){const s=Yf.isBasicASCII(e,t),r=Yf.containsRTL(e,s,i);return Hf(new Of(!1,!0,e,!1,s,r,0,n,[],o,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,i=4){const n=e.getLineContent(t);e.tokenization.forceTokenization(t);const o=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,i)}}function S_(e,t,i){let n=[];const o=new Uint32Array(2);o[0]=0,o[1]=33587200;for(let s=0,r=e.length;s")}return n.join("")}const C_=2e4;let E_,w_,T_,y_,R_;function L_(e){E_&&(w_.textContent!==e?(wl(T_),A_(w_,e)):(wl(w_),A_(T_,e)))}function I_(e){E_&&(y_.textContent!==e?(wl(R_),A_(y_,e)):(wl(y_),A_(R_,e)))}function A_(e,t){wl(e),t.length>C_&&(t=t.substr(0,C_)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}const N_=id("markerDecorationsService");var k_=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},D_=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let O_=class{constructor(e,t){}dispose(){}};O_.ID="editor.contrib.markerDecorations",O_=k_([D_(1,N_)],O_),zh(O_.ID,O_,0);class x_ extends mi{constructor(e,t){super(),this._onDidChange=this._register(new Ri),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){if(!this._resizeObserver&&this._referenceDomElement){let e=null;const t=()=>{e?this.observe({width:e.width,height:e.height}):this.observe()};let i=!1,n=!1;const o=()=>{if(i&&!n)try{i=!1,n=!0,t()}finally{kl(gl(this._referenceDomElement),(()=>{n=!1,o()}))}};this._resizeObserver=new ResizeObserver((t=>{e=t&&t[0]&&t[0].contentRect?{width:t[0].contentRect.width,height:t[0].contentRect.height}:null,i=!0,o()})),this._resizeObserver.observe(this._referenceDomElement)}}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,n=0;t?(i=t.width,n=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,n=this._referenceDomElement.clientHeight),i=Math.max(5,i),n=Math.max(5,n),this._width===i&&this._height===n||(this._width=i,this._height=n,e&&this._onDidChange.fire())}}class M_{constructor(e,t){this.key=e,this.migrate=t}apply(e){const t=M_._read(e,this.key);this.migrate(t,(t=>M_._read(e,t)),((t,i)=>M_._write(e,t,i)))}static _read(e,t){if(void 0===e)return;const i=t.indexOf(".");if(i>=0){const n=t.substring(0,i);return this._read(e[n],t.substring(i+1))}return e[t]}static _write(e,t,i){const n=t.indexOf(".");if(n>=0){const o=t.substring(0,n);return e[o]=e[o]||{},void this._write(e[o],t.substring(n+1),i)}e[t]=i}}function P_(e,t){M_.items.push(new M_(e,t))}function F_(e,t){P_(e,((i,n,o)=>{if(void 0!==i)for(const[s,r]of t)if(i===s)return void o(e,r)}))}M_.items=[],F_("wordWrap",[[!0,"on"],[!1,"off"]]),F_("lineNumbers",[[!0,"on"],[!1,"off"]]),F_("cursorBlinking",[["visible","solid"]]),F_("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),F_("renderLineHighlight",[[!0,"line"],[!1,"none"]]),F_("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),F_("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),F_("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),F_("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),F_("autoIndent",[[!1,"advanced"],[!0,"full"]]),F_("matchBrackets",[[!0,"always"],[!1,"never"]]),F_("renderFinalNewline",[[!0,"on"],[!1,"off"]]),F_("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),F_("occurrencesHighlight",[[!0,"singleFile"],[!1,"off"]]),F_("wordBasedSuggestions",[[!0,"matchingDocuments"],[!1,"off"]]),P_("autoClosingBrackets",((e,t,i)=>{!1===e&&(i("autoClosingBrackets","never"),void 0===t("autoClosingQuotes")&&i("autoClosingQuotes","never"),void 0===t("autoSurround")&&i("autoSurround","never"))})),P_("renderIndentGuides",((e,t,i)=>{void 0!==e&&(i("renderIndentGuides",void 0),void 0===t("guides.indentation")&&i("guides.indentation",!!e))})),P_("highlightActiveIndentGuide",((e,t,i)=>{void 0!==e&&(i("highlightActiveIndentGuide",void 0),void 0===t("guides.highlightActiveIndentation")&&i("guides.highlightActiveIndentation",!!e))}));const B_={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};P_("suggest.filteredTypes",((e,t,i)=>{if(e&&"object"==typeof e){for(const n of Object.entries(B_))!1===e[n[0]]&&void 0===t(`suggest.${n[1]}`)&&i(`suggest.${n[1]}`,!1);i("suggest.filteredTypes",void 0)}})),P_("quickSuggestions",((e,t,i)=>{if("boolean"==typeof e){const t=e?"on":"off";i("quickSuggestions",{comments:t,strings:t,other:t})}})),P_("experimental.stickyScroll.enabled",((e,t,i)=>{"boolean"==typeof e&&(i("experimental.stickyScroll.enabled",void 0),void 0===t("stickyScroll.enabled")&&i("stickyScroll.enabled",e))})),P_("experimental.stickyScroll.maxLineCount",((e,t,i)=>{"number"==typeof e&&(i("experimental.stickyScroll.maxLineCount",void 0),void 0===t("stickyScroll.maxLineCount")&&i("stickyScroll.maxLineCount",e))})),P_("codeActionsOnSave",((e,t,i)=>{if(e&&"object"==typeof e){let t=!1;const n={};for(const i of Object.entries(e))"boolean"==typeof i[1]?(t=!0,n[i[0]]=i[1]?"explicit":"never"):n[i[0]]=i[1];t&&i("codeActionsOnSave",n)}})),P_("codeActionWidget.includeNearbyQuickfixes",((e,t,i)=>{"boolean"==typeof e&&(i("codeActionWidget.includeNearbyQuickfixes",void 0),void 0===t("codeActionWidget.includeNearbyQuickFixes")&&i("codeActionWidget.includeNearbyQuickFixes",e))})),P_("lightbulb.enabled",((e,t,i)=>{"boolean"==typeof e&&i("lightbulb.enabled",e?void 0:"off")}));const H_=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new Ri,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus)}},W_=id("accessibilityService"),U_=new Qd("accessibilityModeEnabled",!1);var V_=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},G_=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let z_=class extends mi{constructor(e,t,i,n,o){super(),this._accessibilityService=o,this._onDidChange=this._register(new Ri),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new Ri),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new gt,this.isSimpleWidget=e,this.contextMenuId=t,this._containerObserver=this._register(new x_(n,i.dimension)),this._targetWindowId=gl(n).vscodeWindowId,this._rawOptions=j_(i),this._validatedOptions=$_.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(13)&&this._containerObserver.startObserving(),this._register($c.onDidChangeZoomLevel((()=>this._recomputeOptions()))),this._register(H_.onDidChangeTabFocus((()=>this._recomputeOptions()))),this._register(this._containerObserver.onDidChange((()=>this._recomputeOptions()))),this._register(Zc.onDidChange((()=>this._recomputeOptions()))),this._register(Uc.getInstance(gl(n)).onDidChange((()=>this._recomputeOptions()))),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized((()=>this._recomputeOptions())))}_recomputeOptions(){const e=this._computeOptions(),t=$_.checkEquals(this.options,e);null!==t&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}_computeOptions(){const e=this._readEnvConfiguration(),t=Xc.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(t),n={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:H_.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return $_.computeOptions(this._validatedOptions,n)}_readEnvConfiguration(){return{extraEditorClassName:K_(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:ur||hr,pixelRatio:Uc.getInstance(bl(this._targetWindowId,!0).window).value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return Zc.readFontInfo(bl(this._targetWindowId,!0).window,e)}getRawOptions(){return this._rawOptions}updateOptions(e){const t=j_(e);$_.applyUpdate(this._rawOptions,t)&&(this._validatedOptions=$_.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){const t=function(e){let t=0;for(;e;)e=Math.floor(e/10),t++;return t||1}(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}setReservedHeight(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions())}setGlyphMarginDecorationLaneCount(e){this._glyphMarginDecorationLaneCount!==e&&(this._glyphMarginDecorationLaneCount=e,this._recomputeOptions())}};function K_(){let e="";return mr||pr||(e+="no-user-select "),mr&&(e+="no-minimap-shadow ",e+="enable-user-select "),Pe&&(e+="mac "),e}z_=V_([G_(4,W_)],z_);class Y_{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class q_{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}}class $_{static validateOptions(e){const t=new Y_;for(const i of qt){const n="_never_"===i.name?void 0:e[i.name];t._write(i.id,i.validate(n))}return t}static computeOptions(e,t){const i=new q_;for(const n of qt)i._write(n.id,n.compute(t,i,e._read(n.id)));return i}static _deepEquals(e,t){if("object"!=typeof e||"object"!=typeof t||!e||!t)return e===t;if(Array.isArray(e)||Array.isArray(t))return!(!Array.isArray(e)||!Array.isArray(t))&&b(e,t);if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!$_._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let n=!1;for(const o of qt){const s=!$_._deepEquals(e._read(o.id),t._read(o.id));i[o.id]=s,s&&(n=!0)}return n?new ut(i):null}static applyUpdate(e,t){let i=!1;for(const n of qt)if(t.hasOwnProperty(n.name)){const o=n.applyUpdate(e[n.name],t[n.name]);e[n.name]=o.newValue,i=i||o.didChange}return i}}function j_(e){const t=re(e);return i=t,M_.items.forEach((e=>e.apply(i))),t;var i}var X_;!function(e){const t={total:0,min:Number.MAX_VALUE,max:0},i={...t},n={...t},o={...t};let s=0;const r={keydown:0,input:0,render:0};function a(){1===r.keydown&&(performance.mark("keydown/end"),r.keydown=2)}function l(){performance.mark("input/start"),r.input=1,h()}function c(){1===r.input&&(performance.mark("input/end"),r.input=2)}function d(){1===r.render&&(performance.mark("render/end"),r.render=2)}function h(){setTimeout(u)}function u(){2===r.keydown&&2===r.input&&2===r.render&&(performance.mark("inputlatency/end"),performance.measure("keydown","keydown/start","keydown/end"),performance.measure("input","input/start","input/end"),performance.measure("render","render/start","render/end"),performance.measure("inputlatency","inputlatency/start","inputlatency/end"),g("keydown",t),g("input",i),g("render",n),g("inputlatency",o),s++,performance.clearMarks("keydown/start"),performance.clearMarks("keydown/end"),performance.clearMarks("input/start"),performance.clearMarks("input/end"),performance.clearMarks("render/start"),performance.clearMarks("render/end"),performance.clearMarks("inputlatency/start"),performance.clearMarks("inputlatency/end"),performance.clearMeasures("keydown"),performance.clearMeasures("input"),performance.clearMeasures("render"),performance.clearMeasures("inputlatency"),r.keydown=0,r.input=0,r.render=0)}function g(e,t){const i=performance.getEntriesByName(e)[0].duration;t.total+=i,t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}function m(e){return{average:e.total/s,max:e.max,min:e.min}}function p(e){e.total=0,e.min=Number.MAX_VALUE,e.max=0}e.onKeyDown=function(){u(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),r.keydown=1,queueMicrotask(a)},e.onBeforeInput=l,e.onInput=function(){0===r.input&&l(),queueMicrotask(c)},e.onKeyUp=function(){u()},e.onSelectionChange=function(){u()},e.onRenderStart=function(){2===r.keydown&&2===r.input&&0===r.render&&(performance.mark("render/start"),r.render=1,queueMicrotask(d),h())},e.getAndClearMeasurements=function(){if(0===s)return;const e={keydown:m(t),input:m(i),render:m(n),total:m(o),sampleCount:s};return p(t),p(i),p(n),p(o),s=0,e}}(X_||(X_={}));class J_{constructor(){this._hooks=new gi,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,i,n,o){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=n,this._onStopCallback=o;let s=e;try{e.setPointerCapture(t),this._hooks.add(ui((()=>{try{e.releasePointerCapture(t)}catch(sue){}})))}catch(r){s=gl(e)}this._hooks.add(yl(s,mc.POINTER_MOVE,(e=>{e.buttons===i?(e.preventDefault(),this._pointerMoveCallback(e)):this.stopMonitoring(!0)}))),this._hooks.add(yl(s,mc.POINTER_UP,(e=>this.stopMonitoring(!0))))}}function Q_(e){return`--vscode-${e.replace(/\./g,"-")}`}function Z_(e){return`var(${Q_(e)})`}const eb="base.contributions.colors",tb=new class{constructor(){this._onDidChangeSchema=new Ri,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,n=!1,o){const s={id:e,description:i,defaults:t,needsTransparency:n,deprecationMessage:o};this.colorsById[e]=s;const r={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return o&&(r.deprecationMessage=o),n&&(r.pattern="^#(?:(?[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",r.patternErrorMessage="This color must be transparent or it will obscure content"),this.colorSchema.properties[e]=r,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const i=this.colorsById[e];if(i&&i.defaults)return lb(i.defaults[t.type],t)}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const i=-1===e.indexOf(".")?0:1,n=-1===t.indexOf(".")?0:1;return i!==n?i-n:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function ib(e,t,i,n,o){return tb.registerColor(e,t,i,n,o)}function nb(e,t){return{op:0,value:e,factor:t}}function ob(e,t){return{op:1,value:e,factor:t}}function sb(e,t){return{op:2,value:e,factor:t}}function rb(...e){return{op:4,values:e}}function ab(e,t,i,n){return{op:5,value:e,background:t,factor:i,transparency:n}}function lb(e,t){if(null!==e)return"string"==typeof e?"#"===e[0]?Kp.fromHex(e):t.getColor(e):e instanceof Kp?e:"object"==typeof e?function(e,t){var i,n,o,s;switch(e.op){case 0:return null===(i=lb(e.value,t))||void 0===i?void 0:i.darken(e.factor);case 1:return null===(n=lb(e.value,t))||void 0===n?void 0:n.lighten(e.factor);case 2:return null===(o=lb(e.value,t))||void 0===o?void 0:o.transparent(e.factor);case 3:{const i=lb(e.background,t);return i?null===(s=lb(e.value,t))||void 0===s?void 0:s.makeOpaque(i):lb(e.value,t)}case 4:for(const i of e.values){const e=lb(i,t);if(e)return e}return;case 6:return lb(t.defines(e.if)?e.then:e.else,t);case 5:{const i=lb(e.value,t);if(!i)return;const n=lb(e.background,t);return n?i.isDarkerThan(n)?Kp.getLighterColor(i,n,e.factor).transparent(e.transparency):Kp.getDarkerColor(i,n,e.factor).transparent(e.transparency):i.transparent(e.factor*e.transparency)}default:throw rh()}}(e,t):void 0}dh.add(eb,tb);const cb="vscode://schemas/workbench-colors",db=dh.as(rg);db.registerSchema(cb,tb.getColorSchema());const hb=new Kr((()=>db.notifySchemaChanged(cb)),200);tb.onDidChangeSchema((()=>{hb.isScheduled()||hb.schedule()}));const ub=ib("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},pe("vs/platform/theme/common/colors/baseColors","foreground","Overall foreground color. This color is only used if not overridden by a component."));ib("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},pe("vs/platform/theme/common/colors/baseColors","disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),ib("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},pe("vs/platform/theme/common/colors/baseColors","errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),ib("descriptionForeground",{light:"#717171",dark:sb(ub,.7),hcDark:sb(ub,.7),hcLight:sb(ub,.7)},pe("vs/platform/theme/common/colors/baseColors","descriptionForeground","Foreground color for description text providing additional information, for example for a label."));const gb=ib("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},pe("vs/platform/theme/common/colors/baseColors","iconForeground","The default color for icons in the workbench.")),mb=ib("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},pe("vs/platform/theme/common/colors/baseColors","focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),pb=ib("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},pe("vs/platform/theme/common/colors/baseColors","contrastBorder","An extra border around elements to separate them from others for greater contrast.")),fb=ib("contrastActiveBorder",{light:null,dark:null,hcDark:mb,hcLight:mb},pe("vs/platform/theme/common/colors/baseColors","activeContrastBorder","An extra border around active elements to separate them from others for greater contrast."));ib("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/baseColors","selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor."));const _b=ib("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},pe("vs/platform/theme/common/colors/baseColors","textLinkForeground","Foreground color for links in text."));ib("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},pe("vs/platform/theme/common/colors/baseColors","textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),ib("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:Kp.black,hcLight:"#292929"},pe("vs/platform/theme/common/colors/baseColors","textSeparatorForeground","Color for text separators.")),ib("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},pe("vs/platform/theme/common/colors/baseColors","textPreformatForeground","Foreground color for preformatted text segments.")),ib("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},pe("vs/platform/theme/common/colors/baseColors","textPreformatBackground","Background color for preformatted text segments.")),ib("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},pe("vs/platform/theme/common/colors/baseColors","textBlockQuoteBackground","Background color for block quotes in text.")),ib("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:Kp.white,hcLight:"#292929"},pe("vs/platform/theme/common/colors/baseColors","textBlockQuoteBorder","Border color for block quotes in text.")),ib("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:Kp.black,hcLight:"#F2F2F2"},pe("vs/platform/theme/common/colors/baseColors","textCodeBlockBackground","Background color for code blocks in text.")),ib("sash.hoverBorder",{dark:mb,light:mb,hcDark:mb,hcLight:mb},pe("vs/platform/theme/common/colors/miscColors","sashActiveBorder","Border color of active sashes."));const bb=ib("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:Kp.black,hcLight:"#0F4A85"},pe("vs/platform/theme/common/colors/miscColors","badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),vb=ib("badge.foreground",{dark:Kp.white,light:"#333",hcDark:Kp.white,hcLight:Kp.white},pe("vs/platform/theme/common/colors/miscColors","badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),Sb=ib("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/miscColors","scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),Cb=ib("scrollbarSlider.background",{dark:Kp.fromHex("#797979").transparent(.4),light:Kp.fromHex("#646464").transparent(.4),hcDark:sb(pb,.6),hcLight:sb(pb,.4)},pe("vs/platform/theme/common/colors/miscColors","scrollbarSliderBackground","Scrollbar slider background color.")),Eb=ib("scrollbarSlider.hoverBackground",{dark:Kp.fromHex("#646464").transparent(.7),light:Kp.fromHex("#646464").transparent(.7),hcDark:sb(pb,.8),hcLight:sb(pb,.8)},pe("vs/platform/theme/common/colors/miscColors","scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),wb=ib("scrollbarSlider.activeBackground",{dark:Kp.fromHex("#BFBFBF").transparent(.4),light:Kp.fromHex("#000000").transparent(.6),hcDark:pb,hcLight:pb},pe("vs/platform/theme/common/colors/miscColors","scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),Tb=ib("progressBar.background",{dark:Kp.fromHex("#0E70C0"),light:Kp.fromHex("#0E70C0"),hcDark:pb,hcLight:pb},pe("vs/platform/theme/common/colors/miscColors","progressBarBackground","Background color of the progress bar that can show for long running operations.")),yb=ib("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:Kp.black,hcLight:Kp.white},pe("vs/platform/theme/common/colors/editorColors","editorBackground","Editor background color.")),Rb=ib("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:Kp.white,hcLight:ub},pe("vs/platform/theme/common/colors/editorColors","editorForeground","Editor default foreground color."));ib("editorStickyScroll.background",{light:yb,dark:yb,hcDark:yb,hcLight:yb},pe("vs/platform/theme/common/colors/editorColors","editorStickyScrollBackground","Background color of sticky scroll in the editor")),ib("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:Kp.fromHex("#0F4A85").transparent(.1)},pe("vs/platform/theme/common/colors/editorColors","editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),ib("editorStickyScroll.border",{dark:null,light:null,hcDark:pb,hcLight:pb},pe("vs/platform/theme/common/colors/editorColors","editorStickyScrollBorder","Border color of sticky scroll in the editor")),ib("editorStickyScroll.shadow",{dark:Sb,light:Sb,hcDark:Sb,hcLight:Sb},pe("vs/platform/theme/common/colors/editorColors","editorStickyScrollShadow"," Shadow color of sticky scroll in the editor"));const Lb=ib("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:Kp.white},pe("vs/platform/theme/common/colors/editorColors","editorWidgetBackground","Background color of editor widgets, such as find/replace.")),Ib=ib("editorWidget.foreground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/platform/theme/common/colors/editorColors","editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),Ab=ib("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:pb,hcLight:pb},pe("vs/platform/theme/common/colors/editorColors","editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget."));ib("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),ib("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0);const Nb=ib("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},pe("vs/platform/theme/common/colors/editorColors","editorError.foreground","Foreground color of error squigglies in the editor.")),kb=ib("editorError.border",{dark:null,light:null,hcDark:Kp.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},pe("vs/platform/theme/common/colors/editorColors","errorBorder","If set, color of double underlines for errors in the editor.")),Db=ib("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),Ob=ib("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},pe("vs/platform/theme/common/colors/editorColors","editorWarning.foreground","Foreground color of warning squigglies in the editor.")),xb=ib("editorWarning.border",{dark:null,light:null,hcDark:Kp.fromHex("#FFCC00").transparent(.8),hcLight:Kp.fromHex("#FFCC00").transparent(.8)},pe("vs/platform/theme/common/colors/editorColors","warningBorder","If set, color of double underlines for warnings in the editor."));ib("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0);const Mb=ib("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},pe("vs/platform/theme/common/colors/editorColors","editorInfo.foreground","Foreground color of info squigglies in the editor.")),Pb=ib("editorInfo.border",{dark:null,light:null,hcDark:Kp.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},pe("vs/platform/theme/common/colors/editorColors","infoBorder","If set, color of double underlines for infos in the editor.")),Fb=ib("editorHint.foreground",{dark:Kp.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","editorHint.foreground","Foreground color of hint squigglies in the editor."));ib("editorHint.border",{dark:null,light:null,hcDark:Kp.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},pe("vs/platform/theme/common/colors/editorColors","hintBorder","If set, color of double underlines for hints in the editor."));const Bb=ib("editorLink.activeForeground",{dark:"#4E94CE",light:Kp.blue,hcDark:Kp.cyan,hcLight:"#292929"},pe("vs/platform/theme/common/colors/editorColors","activeLinkForeground","Color of active links.")),Hb=ib("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},pe("vs/platform/theme/common/colors/editorColors","editorSelectionBackground","Color of the editor selection.")),Wb=ib("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:Kp.white},pe("vs/platform/theme/common/colors/editorColors","editorSelectionForeground","Color of the selected text for high contrast.")),Ub=ib("editor.inactiveSelectionBackground",{light:sb(Hb,.5),dark:sb(Hb,.5),hcDark:sb(Hb,.7),hcLight:sb(Hb,.5)},pe("vs/platform/theme/common/colors/editorColors","editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),Vb=ib("editor.selectionHighlightBackground",{light:ab(Hb,yb,.3,.6),dark:ab(Hb,yb,.3,.6),hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0);ib("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:fb,hcLight:fb},pe("vs/platform/theme/common/colors/editorColors","editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),ib("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","editorFindMatch","Color of the current search match."));const Gb=ib("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0);ib("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),ib("editor.findMatchBorder",{light:null,dark:null,hcDark:fb,hcLight:fb},pe("vs/platform/theme/common/colors/editorColors","editorFindMatchBorder","Border color of the current search match."));const zb=ib("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:fb,hcLight:fb},pe("vs/platform/theme/common/colors/editorColors","findMatchHighlightBorder","Border color of the other search matches.")),Kb=ib("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:sb(fb,.4),hcLight:sb(fb,.4)},pe("vs/platform/theme/common/colors/editorColors","findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0);ib("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},pe("vs/platform/theme/common/colors/editorColors","hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0);const Yb=ib("editorHoverWidget.background",{light:Lb,dark:Lb,hcDark:Lb,hcLight:Lb},pe("vs/platform/theme/common/colors/editorColors","hoverBackground","Background color of the editor hover."));ib("editorHoverWidget.foreground",{light:Ib,dark:Ib,hcDark:Ib,hcLight:Ib},pe("vs/platform/theme/common/colors/editorColors","hoverForeground","Foreground color of the editor hover."));const qb=ib("editorHoverWidget.border",{light:Ab,dark:Ab,hcDark:Ab,hcLight:Ab},pe("vs/platform/theme/common/colors/editorColors","hoverBorder","Border color of the editor hover."));ib("editorHoverWidget.statusBarBackground",{dark:ob(Yb,.2),light:nb(Yb,.05),hcDark:Lb,hcLight:Lb},pe("vs/platform/theme/common/colors/editorColors","statusBarBackground","Background color of the editor hover status bar."));const $b=ib("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:Kp.white,hcLight:Kp.black},pe("vs/platform/theme/common/colors/editorColors","editorInlayHintForeground","Foreground color of inline hints")),jb=ib("editorInlayHint.background",{dark:sb(bb,.1),light:sb(bb,.1),hcDark:sb(Kp.white,.1),hcLight:sb(bb,.1)},pe("vs/platform/theme/common/colors/editorColors","editorInlayHintBackground","Background color of inline hints")),Xb=ib("editorInlayHint.typeForeground",{dark:$b,light:$b,hcDark:$b,hcLight:$b},pe("vs/platform/theme/common/colors/editorColors","editorInlayHintForegroundTypes","Foreground color of inline hints for types")),Jb=ib("editorInlayHint.typeBackground",{dark:jb,light:jb,hcDark:jb,hcLight:jb},pe("vs/platform/theme/common/colors/editorColors","editorInlayHintBackgroundTypes","Background color of inline hints for types")),Qb=ib("editorInlayHint.parameterForeground",{dark:$b,light:$b,hcDark:$b,hcLight:$b},pe("vs/platform/theme/common/colors/editorColors","editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),Zb=ib("editorInlayHint.parameterBackground",{dark:jb,light:jb,hcDark:jb,hcLight:jb},pe("vs/platform/theme/common/colors/editorColors","editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),ev=ib("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},pe("vs/platform/theme/common/colors/editorColors","editorLightBulbForeground","The color used for the lightbulb actions icon."));ib("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},pe("vs/platform/theme/common/colors/editorColors","editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),ib("editorLightBulbAi.foreground",{dark:ev,light:ev,hcDark:ev,hcLight:ev},pe("vs/platform/theme/common/colors/editorColors","editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),ib("editor.snippetTabstopHighlightBackground",{dark:new Kp(new Vp(124,124,124,.3)),light:new Kp(new Vp(10,50,100,.2)),hcDark:new Kp(new Vp(124,124,124,.3)),hcLight:new Kp(new Vp(10,50,100,.2))},pe("vs/platform/theme/common/colors/editorColors","snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),ib("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),ib("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),ib("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new Kp(new Vp(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},pe("vs/platform/theme/common/colors/editorColors","snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet."));const tv=new Kp(new Vp(155,185,85,.2)),iv=new Kp(new Vp(255,0,0,.2)),nv=ib("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),ov=ib("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0);ib("diffEditor.insertedLineBackground",{dark:tv,light:tv,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),ib("diffEditor.removedLineBackground",{dark:iv,light:iv,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),ib("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),ib("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","diffEditorRemovedLineGutter","Background color for the margin where lines got removed."));const sv=ib("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),rv=ib("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","diffEditorOverviewRemoved","Diff overview ruler foreground for removed content."));ib("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},pe("vs/platform/theme/common/colors/editorColors","diffEditorInsertedOutline","Outline color for the text that got inserted.")),ib("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},pe("vs/platform/theme/common/colors/editorColors","diffEditorRemovedOutline","Outline color for text that got removed.")),ib("diffEditor.border",{dark:null,light:null,hcDark:pb,hcLight:pb},pe("vs/platform/theme/common/colors/editorColors","diffEditorBorder","Border color between the two text editors.")),ib("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),ib("diffEditor.unchangedRegionBackground",{dark:"sideBar.background",light:"sideBar.background",hcDark:"sideBar.background",hcLight:"sideBar.background"},pe("vs/platform/theme/common/colors/editorColors","diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),ib("diffEditor.unchangedRegionForeground",{dark:"foreground",light:"foreground",hcDark:"foreground",hcLight:"foreground"},pe("vs/platform/theme/common/colors/editorColors","diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),ib("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor."));const av=ib("widget.shadow",{dark:sb(Kp.black,.36),light:sb(Kp.black,.16),hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),lv=ib("widget.border",{dark:null,light:null,hcDark:pb,hcLight:pb},pe("vs/platform/theme/common/colors/editorColors","widgetBorder","Border color of widgets such as find/replace inside the editor.")),cv=ib("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"));ib("toolbar.hoverOutline",{dark:null,light:null,hcDark:fb,hcLight:fb},pe("vs/platform/theme/common/colors/editorColors","toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),ib("toolbar.activeBackground",{dark:ob(cv,.1),light:nb(cv,.1),hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","toolbarActiveBackground","Toolbar background when holding the mouse over actions"));const dv=ib("breadcrumb.foreground",{light:sb(ub,.8),dark:sb(ub,.8),hcDark:sb(ub,.8),hcLight:sb(ub,.8)},pe("vs/platform/theme/common/colors/editorColors","breadcrumbsFocusForeground","Color of focused breadcrumb items.")),hv=ib("breadcrumb.background",{light:yb,dark:yb,hcDark:yb,hcLight:yb},pe("vs/platform/theme/common/colors/editorColors","breadcrumbsBackground","Background color of breadcrumb items.")),uv=ib("breadcrumb.focusForeground",{light:nb(ub,.2),dark:ob(ub,.1),hcDark:ob(ub,.1),hcLight:ob(ub,.1)},pe("vs/platform/theme/common/colors/editorColors","breadcrumbsFocusForeground","Color of focused breadcrumb items.")),gv=ib("breadcrumb.activeSelectionForeground",{light:nb(ub,.2),dark:ob(ub,.1),hcDark:ob(ub,.1),hcLight:ob(ub,.1)},pe("vs/platform/theme/common/colors/editorColors","breadcrumbsSelectedForeground","Color of selected breadcrumb items."));ib("breadcrumbPicker.background",{light:Lb,dark:Lb,hcDark:Lb,hcLight:Lb},pe("vs/platform/theme/common/colors/editorColors","breadcrumbsSelectedBackground","Background color of breadcrumb item picker."));const mv=Kp.fromHex("#40C8AE").transparent(.5),pv=Kp.fromHex("#40A6FF").transparent(.5),fv=Kp.fromHex("#606060").transparent(.4),_v=.4,bv=ib("merge.currentHeaderBackground",{dark:mv,light:mv,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);ib("merge.currentContentBackground",{dark:sb(bv,_v),light:sb(bv,_v),hcDark:sb(bv,_v),hcLight:sb(bv,_v)},pe("vs/platform/theme/common/colors/editorColors","mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const vv=ib("merge.incomingHeaderBackground",{dark:pv,light:pv,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);ib("merge.incomingContentBackground",{dark:sb(vv,_v),light:sb(vv,_v),hcDark:sb(vv,_v),hcLight:sb(vv,_v)},pe("vs/platform/theme/common/colors/editorColors","mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const Sv=ib("merge.commonHeaderBackground",{dark:fv,light:fv,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/editorColors","mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);ib("merge.commonContentBackground",{dark:sb(Sv,_v),light:sb(Sv,_v),hcDark:sb(Sv,_v),hcLight:sb(Sv,_v)},pe("vs/platform/theme/common/colors/editorColors","mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);const Cv=ib("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},pe("vs/platform/theme/common/colors/editorColors","mergeBorder","Border color on headers and the splitter in inline merge-conflicts."));ib("editorOverviewRuler.currentContentForeground",{dark:sb(bv,1),light:sb(bv,1),hcDark:Cv,hcLight:Cv},pe("vs/platform/theme/common/colors/editorColors","overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),ib("editorOverviewRuler.incomingContentForeground",{dark:sb(vv,1),light:sb(vv,1),hcDark:Cv,hcLight:Cv},pe("vs/platform/theme/common/colors/editorColors","overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),ib("editorOverviewRuler.commonContentForeground",{dark:sb(Sv,1),light:sb(Sv,1),hcDark:Cv,hcLight:Cv},pe("vs/platform/theme/common/colors/editorColors","overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts."));const Ev=ib("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},pe("vs/platform/theme/common/colors/editorColors","overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),wv=ib("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},pe("vs/platform/theme/common/colors/editorColors","overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Tv=ib("problemsErrorIcon.foreground",{dark:Nb,light:Nb,hcDark:Nb,hcLight:Nb},pe("vs/platform/theme/common/colors/editorColors","problemsErrorIconForeground","The color used for the problems error icon.")),yv=ib("problemsWarningIcon.foreground",{dark:Ob,light:Ob,hcDark:Ob,hcLight:Ob},pe("vs/platform/theme/common/colors/editorColors","problemsWarningIconForeground","The color used for the problems warning icon.")),Rv=ib("problemsInfoIcon.foreground",{dark:Mb,light:Mb,hcDark:Mb,hcLight:Mb},pe("vs/platform/theme/common/colors/editorColors","problemsInfoIconForeground","The color used for the problems info icon.")),Lv=ib("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},pe("vs/platform/theme/common/colors/minimapColors","minimapFindMatchHighlight","Minimap marker color for find matches."),!0),Iv=ib("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},pe("vs/platform/theme/common/colors/minimapColors","minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),Av=ib("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},pe("vs/platform/theme/common/colors/minimapColors","minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),Nv=ib("minimap.infoHighlight",{dark:Mb,light:Mb,hcDark:Pb,hcLight:Pb},pe("vs/platform/theme/common/colors/minimapColors","minimapInfo","Minimap marker color for infos.")),kv=ib("minimap.warningHighlight",{dark:Ob,light:Ob,hcDark:xb,hcLight:xb},pe("vs/platform/theme/common/colors/minimapColors","overviewRuleWarning","Minimap marker color for warnings.")),Dv=ib("minimap.errorHighlight",{dark:new Kp(new Vp(255,18,18,.7)),light:new Kp(new Vp(255,18,18,.7)),hcDark:new Kp(new Vp(255,50,50,1)),hcLight:"#B5200D"},pe("vs/platform/theme/common/colors/minimapColors","minimapError","Minimap marker color for errors.")),Ov=ib("minimap.background",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/minimapColors","minimapBackground","Minimap background color.")),xv=ib("minimap.foregroundOpacity",{dark:Kp.fromHex("#000f"),light:Kp.fromHex("#000f"),hcDark:Kp.fromHex("#000f"),hcLight:Kp.fromHex("#000f")},pe("vs/platform/theme/common/colors/minimapColors","minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.'));ib("minimapSlider.background",{light:sb(Cb,.5),dark:sb(Cb,.5),hcDark:sb(Cb,.5),hcLight:sb(Cb,.5)},pe("vs/platform/theme/common/colors/minimapColors","minimapSliderBackground","Minimap slider background color.")),ib("minimapSlider.hoverBackground",{light:sb(Eb,.5),dark:sb(Eb,.5),hcDark:sb(Eb,.5),hcLight:sb(Eb,.5)},pe("vs/platform/theme/common/colors/minimapColors","minimapSliderHoverBackground","Minimap slider background color when hovering.")),ib("minimapSlider.activeBackground",{light:sb(wb,.5),dark:sb(wb,.5),hcDark:sb(wb,.5),hcLight:sb(wb,.5)},pe("vs/platform/theme/common/colors/minimapColors","minimapSliderActiveBackground","Minimap slider background color when clicked on.")),ib("charts.foreground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/platform/theme/common/colors/chartsColors","chartsForeground","The foreground color used in charts.")),ib("charts.lines",{dark:sb(ub,.5),light:sb(ub,.5),hcDark:sb(ub,.5),hcLight:sb(ub,.5)},pe("vs/platform/theme/common/colors/chartsColors","chartsLines","The color used for horizontal lines in charts.")),ib("charts.red",{dark:Nb,light:Nb,hcDark:Nb,hcLight:Nb},pe("vs/platform/theme/common/colors/chartsColors","chartsRed","The red color used in chart visualizations.")),ib("charts.blue",{dark:Mb,light:Mb,hcDark:Mb,hcLight:Mb},pe("vs/platform/theme/common/colors/chartsColors","chartsBlue","The blue color used in chart visualizations.")),ib("charts.yellow",{dark:Ob,light:Ob,hcDark:Ob,hcLight:Ob},pe("vs/platform/theme/common/colors/chartsColors","chartsYellow","The yellow color used in chart visualizations.")),ib("charts.orange",{dark:Lv,light:Lv,hcDark:Lv,hcLight:Lv},pe("vs/platform/theme/common/colors/chartsColors","chartsOrange","The orange color used in chart visualizations.")),ib("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},pe("vs/platform/theme/common/colors/chartsColors","chartsGreen","The green color used in chart visualizations.")),ib("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},pe("vs/platform/theme/common/colors/chartsColors","chartsPurple","The purple color used in chart visualizations."));const Mv=ib("input.background",{dark:"#3C3C3C",light:Kp.white,hcDark:Kp.black,hcLight:Kp.white},pe("vs/platform/theme/common/colors/inputColors","inputBoxBackground","Input box background.")),Pv=ib("input.foreground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/platform/theme/common/colors/inputColors","inputBoxForeground","Input box foreground.")),Fv=ib("input.border",{dark:null,light:null,hcDark:pb,hcLight:pb},pe("vs/platform/theme/common/colors/inputColors","inputBoxBorder","Input box border.")),Bv=ib("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:pb,hcLight:pb},pe("vs/platform/theme/common/colors/inputColors","inputBoxActiveOptionBorder","Border color of activated options in input fields."));ib("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/inputColors","inputOption.hoverBackground","Background color of activated options in input fields."));const Hv=ib("inputOption.activeBackground",{dark:sb(mb,.4),light:sb(mb,.2),hcDark:Kp.transparent,hcLight:Kp.transparent},pe("vs/platform/theme/common/colors/inputColors","inputOption.activeBackground","Background hover color of options in input fields.")),Wv=ib("inputOption.activeForeground",{dark:Kp.white,light:Kp.black,hcDark:ub,hcLight:ub},pe("vs/platform/theme/common/colors/inputColors","inputOption.activeForeground","Foreground color of activated options in input fields."));ib("input.placeholderForeground",{light:sb(ub,.5),dark:sb(ub,.5),hcDark:sb(ub,.7),hcLight:sb(ub,.7)},pe("vs/platform/theme/common/colors/inputColors","inputPlaceholderForeground","Input box foreground color for placeholder text."));const Uv=ib("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:Kp.black,hcLight:Kp.white},pe("vs/platform/theme/common/colors/inputColors","inputValidationInfoBackground","Input validation background color for information severity.")),Vv=ib("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:ub},pe("vs/platform/theme/common/colors/inputColors","inputValidationInfoForeground","Input validation foreground color for information severity.")),Gv=ib("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:pb,hcLight:pb},pe("vs/platform/theme/common/colors/inputColors","inputValidationInfoBorder","Input validation border color for information severity.")),zv=ib("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:Kp.black,hcLight:Kp.white},pe("vs/platform/theme/common/colors/inputColors","inputValidationWarningBackground","Input validation background color for warning severity.")),Kv=ib("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:ub},pe("vs/platform/theme/common/colors/inputColors","inputValidationWarningForeground","Input validation foreground color for warning severity.")),Yv=ib("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:pb,hcLight:pb},pe("vs/platform/theme/common/colors/inputColors","inputValidationWarningBorder","Input validation border color for warning severity.")),qv=ib("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:Kp.black,hcLight:Kp.white},pe("vs/platform/theme/common/colors/inputColors","inputValidationErrorBackground","Input validation background color for error severity.")),$v=ib("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:ub},pe("vs/platform/theme/common/colors/inputColors","inputValidationErrorForeground","Input validation foreground color for error severity.")),jv=ib("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:pb,hcLight:pb},pe("vs/platform/theme/common/colors/inputColors","inputValidationErrorBorder","Input validation border color for error severity.")),Xv=ib("dropdown.background",{dark:"#3C3C3C",light:Kp.white,hcDark:Kp.black,hcLight:Kp.white},pe("vs/platform/theme/common/colors/inputColors","dropdownBackground","Dropdown background.")),Jv=ib("dropdown.listBackground",{dark:null,light:null,hcDark:Kp.black,hcLight:Kp.white},pe("vs/platform/theme/common/colors/inputColors","dropdownListBackground","Dropdown list background.")),Qv=ib("dropdown.foreground",{dark:"#F0F0F0",light:ub,hcDark:Kp.white,hcLight:ub},pe("vs/platform/theme/common/colors/inputColors","dropdownForeground","Dropdown foreground.")),Zv=ib("dropdown.border",{dark:Xv,light:"#CECECE",hcDark:pb,hcLight:pb},pe("vs/platform/theme/common/colors/inputColors","dropdownBorder","Dropdown border.")),eS=ib("button.foreground",{dark:Kp.white,light:Kp.white,hcDark:Kp.white,hcLight:Kp.white},pe("vs/platform/theme/common/colors/inputColors","buttonForeground","Button foreground color.")),tS=ib("button.separator",{dark:sb(eS,.4),light:sb(eS,.4),hcDark:sb(eS,.4),hcLight:sb(eS,.4)},pe("vs/platform/theme/common/colors/inputColors","buttonSeparator","Button separator color.")),iS=ib("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},pe("vs/platform/theme/common/colors/inputColors","buttonBackground","Button background color.")),nS=ib("button.hoverBackground",{dark:ob(iS,.2),light:nb(iS,.2),hcDark:iS,hcLight:iS},pe("vs/platform/theme/common/colors/inputColors","buttonHoverBackground","Button background color when hovering.")),oS=ib("button.border",{dark:pb,light:pb,hcDark:pb,hcLight:pb},pe("vs/platform/theme/common/colors/inputColors","buttonBorder","Button border color.")),sS=ib("button.secondaryForeground",{dark:Kp.white,light:Kp.white,hcDark:Kp.white,hcLight:ub},pe("vs/platform/theme/common/colors/inputColors","buttonSecondaryForeground","Secondary button foreground color.")),rS=ib("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:Kp.white},pe("vs/platform/theme/common/colors/inputColors","buttonSecondaryBackground","Secondary button background color.")),aS=ib("button.secondaryHoverBackground",{dark:ob(rS,.2),light:nb(rS,.2),hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/inputColors","buttonSecondaryHoverBackground","Secondary button background color when hovering.")),lS=ib("checkbox.background",{dark:Xv,light:Xv,hcDark:Xv,hcLight:Xv},pe("vs/platform/theme/common/colors/inputColors","checkbox.background","Background color of checkbox widget."));ib("checkbox.selectBackground",{dark:Lb,light:Lb,hcDark:Lb,hcLight:Lb},pe("vs/platform/theme/common/colors/inputColors","checkbox.select.background","Background color of checkbox widget when the element it's in is selected."));const cS=ib("checkbox.foreground",{dark:Qv,light:Qv,hcDark:Qv,hcLight:Qv},pe("vs/platform/theme/common/colors/inputColors","checkbox.foreground","Foreground color of checkbox widget.")),dS=ib("checkbox.border",{dark:Zv,light:Zv,hcDark:Zv,hcLight:Zv},pe("vs/platform/theme/common/colors/inputColors","checkbox.border","Border color of checkbox widget."));ib("checkbox.selectBorder",{dark:gb,light:gb,hcDark:gb,hcLight:gb},pe("vs/platform/theme/common/colors/inputColors","checkbox.select.border","Border color of checkbox widget when the element it's in is selected."));const hS=ib("keybindingLabel.background",{dark:new Kp(new Vp(128,128,128,.17)),light:new Kp(new Vp(221,221,221,.4)),hcDark:Kp.transparent,hcLight:Kp.transparent},pe("vs/platform/theme/common/colors/inputColors","keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),uS=ib("keybindingLabel.foreground",{dark:Kp.fromHex("#CCCCCC"),light:Kp.fromHex("#555555"),hcDark:Kp.white,hcLight:ub},pe("vs/platform/theme/common/colors/inputColors","keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),gS=ib("keybindingLabel.border",{dark:new Kp(new Vp(51,51,51,.6)),light:new Kp(new Vp(204,204,204,.4)),hcDark:new Kp(new Vp(111,195,223)),hcLight:pb},pe("vs/platform/theme/common/colors/inputColors","keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),mS=ib("keybindingLabel.bottomBorder",{dark:new Kp(new Vp(68,68,68,.6)),light:new Kp(new Vp(187,187,187,.4)),hcDark:new Kp(new Vp(111,195,223)),hcLight:ub},pe("vs/platform/theme/common/colors/inputColors","keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),pS=ib("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/listColors","listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),fS=ib("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/listColors","listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),_S=ib("list.focusOutline",{dark:mb,light:mb,hcDark:fb,hcLight:fb},pe("vs/platform/theme/common/colors/listColors","listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),bS=ib("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/listColors","listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),vS=ib("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:Kp.fromHex("#0F4A85").transparent(.1)},pe("vs/platform/theme/common/colors/listColors","listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),SS=ib("list.activeSelectionForeground",{dark:Kp.white,light:Kp.white,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/listColors","listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),CS=ib("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/listColors","listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ES=ib("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:Kp.fromHex("#0F4A85").transparent(.1)},pe("vs/platform/theme/common/colors/listColors","listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),wS=ib("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/listColors","listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),TS=ib("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/listColors","listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),yS=ib("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/listColors","listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),RS=ib("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/listColors","listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),LS=ib("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:Kp.white.transparent(.1),hcLight:Kp.fromHex("#0F4A85").transparent(.1)},pe("vs/platform/theme/common/colors/listColors","listHoverBackground","List/Tree background when hovering over items using the mouse.")),IS=ib("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/listColors","listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),AS=ib("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/listColors","listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),NS=ib("list.dropBetweenBackground",{dark:gb,light:gb,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/listColors","listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),kS=ib("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:mb,hcLight:mb},pe("vs/platform/theme/common/colors/listColors","highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),DS=ib("list.focusHighlightForeground",{dark:kS,light:(OS=vS,xS=kS,"#BBE7FF",{op:6,if:OS,then:xS,else:"#BBE7FF"}),hcDark:kS,hcLight:kS},pe("vs/platform/theme/common/colors/listColors","listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var OS,xS;ib("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},pe("vs/platform/theme/common/colors/listColors","invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),ib("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/listColors","listErrorForeground","Foreground color of list items containing errors.")),ib("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/listColors","listWarningForeground","Foreground color of list items containing warnings."));const MS=ib("listFilterWidget.background",{light:nb(Lb,0),dark:ob(Lb,0),hcDark:Lb,hcLight:Lb},pe("vs/platform/theme/common/colors/listColors","listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),PS=ib("listFilterWidget.outline",{dark:Kp.transparent,light:Kp.transparent,hcDark:"#f38518",hcLight:"#007ACC"},pe("vs/platform/theme/common/colors/listColors","listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),FS=ib("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:pb,hcLight:pb},pe("vs/platform/theme/common/colors/listColors","listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),BS=ib("listFilterWidget.shadow",{dark:av,light:av,hcDark:av,hcLight:av},pe("vs/platform/theme/common/colors/listColors","listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees."));ib("list.filterMatchBackground",{dark:Gb,light:Gb,hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/listColors","listFilterMatchHighlight","Background color of the filtered match.")),ib("list.filterMatchBorder",{dark:zb,light:zb,hcDark:pb,hcLight:fb},pe("vs/platform/theme/common/colors/listColors","listFilterMatchHighlightBorder","Border color of the filtered match.")),ib("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},pe("vs/platform/theme/common/colors/listColors","listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));const HS=ib("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},pe("vs/platform/theme/common/colors/listColors","treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),WS=ib("tree.inactiveIndentGuidesStroke",{dark:sb(HS,.4),light:sb(HS,.4),hcDark:sb(HS,.4),hcLight:sb(HS,.4)},pe("vs/platform/theme/common/colors/listColors","treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),US=ib("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/listColors","tableColumnsBorder","Table border color between columns.")),VS=ib("tree.tableOddRowsBackground",{dark:sb(ub,.04),light:sb(ub,.04),hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/listColors","tableOddRowsBackgroundColor","Background color for odd table rows.")),GS=ib("menu.border",{dark:null,light:null,hcDark:pb,hcLight:pb},pe("vs/platform/theme/common/colors/menuColors","menuBorder","Border color of menus.")),zS=ib("menu.foreground",{dark:Qv,light:Qv,hcDark:Qv,hcLight:Qv},pe("vs/platform/theme/common/colors/menuColors","menuForeground","Foreground color of menu items.")),KS=ib("menu.background",{dark:Xv,light:Xv,hcDark:Xv,hcLight:Xv},pe("vs/platform/theme/common/colors/menuColors","menuBackground","Background color of menu items.")),YS=ib("menu.selectionForeground",{dark:SS,light:SS,hcDark:SS,hcLight:SS},pe("vs/platform/theme/common/colors/menuColors","menuSelectionForeground","Foreground color of the selected menu item in menus.")),qS=ib("menu.selectionBackground",{dark:vS,light:vS,hcDark:vS,hcLight:vS},pe("vs/platform/theme/common/colors/menuColors","menuSelectionBackground","Background color of the selected menu item in menus.")),$S=ib("menu.selectionBorder",{dark:null,light:null,hcDark:fb,hcLight:fb},pe("vs/platform/theme/common/colors/menuColors","menuSelectionBorder","Border color of the selected menu item in menus.")),jS=ib("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:pb,hcLight:pb},pe("vs/platform/theme/common/colors/menuColors","menuSeparatorBackground","Color of a separator menu item in menus.")),XS=ib("quickInput.background",{dark:Lb,light:Lb,hcDark:Lb,hcLight:Lb},pe("vs/platform/theme/common/colors/quickpickColors","pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),JS=ib("quickInput.foreground",{dark:Ib,light:Ib,hcDark:Ib,hcLight:Ib},pe("vs/platform/theme/common/colors/quickpickColors","pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),QS=ib("quickInputTitle.background",{dark:new Kp(new Vp(255,255,255,.105)),light:new Kp(new Vp(0,0,0,.06)),hcDark:"#000000",hcLight:Kp.white},pe("vs/platform/theme/common/colors/quickpickColors","pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),ZS=ib("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:Kp.white,hcLight:"#0F4A85"},pe("vs/platform/theme/common/colors/quickpickColors","pickerGroupForeground","Quick picker color for grouping labels.")),eC=ib("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:Kp.white,hcLight:"#0F4A85"},pe("vs/platform/theme/common/colors/quickpickColors","pickerGroupBorder","Quick picker color for grouping borders.")),tC=ib("quickInput.list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},"",void 0,pe("vs/platform/theme/common/colors/quickpickColors","quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),iC=ib("quickInputList.focusForeground",{dark:SS,light:SS,hcDark:SS,hcLight:SS},pe("vs/platform/theme/common/colors/quickpickColors","quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),nC=ib("quickInputList.focusIconForeground",{dark:CS,light:CS,hcDark:CS,hcLight:CS},pe("vs/platform/theme/common/colors/quickpickColors","quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),oC=ib("quickInputList.focusBackground",{dark:rb(tC,vS),light:rb(tC,vS),hcDark:null,hcLight:null},pe("vs/platform/theme/common/colors/quickpickColors","quickInput.listFocusBackground","Quick picker background color for the focused item."));ib("search.resultsInfoForeground",{light:ub,dark:sb(ub,.65),hcDark:ub,hcLight:ub},pe("vs/platform/theme/common/colors/searchColors","search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),ib("searchEditor.findMatchBackground",{light:sb(Gb,.66),dark:sb(Gb,.66),hcDark:Gb,hcLight:Gb},pe("vs/platform/theme/common/colors/searchColors","searchEditor.queryMatch","Color of the Search Editor query matches.")),ib("searchEditor.findMatchBorder",{light:sb(zb,.66),dark:sb(zb,.66),hcDark:zb,hcLight:zb},pe("vs/platform/theme/common/colors/searchColors","searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."));class sC{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(e){return new rC(this.x-e.scrollX,this.y-e.scrollY)}}class rC{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(e){return new sC(this.clientX+e.scrollX,this.clientY+e.scrollY)}}class aC{constructor(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n,this._editorPagePositionBrand=void 0}}class lC{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function cC(e){const t=Hl(e);return new aC(t.left,t.top,t.width,t.height)}function dC(e,t,i){const n=t.width/e.offsetWidth,o=t.height/e.offsetHeight,s=(i.x-t.x)/n,r=(i.y-t.y)/o;return new lC(s,r)}class hC extends kr{constructor(e,t,i){super(gl(i),e),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=t,this.pos=new sC(this.posx,this.posy),this.editorPos=cC(i),this.relativePos=dC(i,this.editorPos,this.pos)}}class uC{constructor(e){this._editorViewDomNode=e}_create(e){return new hC(e,!1,this._editorViewDomNode)}onContextMenu(e,t){return yl(e,"contextmenu",(e=>{t(this._create(e))}))}onMouseUp(e,t){return yl(e,"mouseup",(e=>{t(this._create(e))}))}onMouseDown(e,t){return yl(e,mc.MOUSE_DOWN,(e=>{t(this._create(e))}))}onPointerDown(e,t){return yl(e,mc.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onMouseLeave(e,t){return yl(e,mc.MOUSE_LEAVE,(e=>{t(this._create(e))}))}onMouseMove(e,t){return yl(e,"mousemove",(e=>t(this._create(e))))}}class gC{constructor(e){this._editorViewDomNode=e}_create(e){return new hC(e,!1,this._editorViewDomNode)}onPointerUp(e,t){return yl(e,"pointerup",(e=>{t(this._create(e))}))}onPointerDown(e,t){return yl(e,mc.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onPointerLeave(e,t){return yl(e,mc.POINTER_LEAVE,(e=>{t(this._create(e))}))}onPointerMove(e,t){return yl(e,"pointermove",(e=>t(this._create(e))))}}class mC extends mi{constructor(e){super(),this._editorViewDomNode=e,this._globalPointerMoveMonitor=this._register(new J_),this._keydownListener=null}startMonitoring(e,t,i,n,o){this._keydownListener=Ll(e.ownerDocument,"keydown",(e=>{e.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,e.browserEvent)}),!0),this._globalPointerMoveMonitor.startMonitoring(e,t,i,(e=>{n(new hC(e,!0,this._editorViewDomNode))}),(e=>{this._keydownListener.dispose(),o(e)}))}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}class pC{constructor(e){this._editor=e,this._instanceId=++pC._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new Kr((()=>this.garbageCollect()),1e3)}createClassNameRef(e){const t=this.getOrCreateRule(e);return t.increaseRefCount(),{className:t.className,dispose:()=>{t.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(e){const t=this.computeUniqueKey(e);let i=this._rules.get(t);if(!i){const n=this._counter++;i=new fC(t,`dyn-rule-${this._instanceId}-${n}`,$l(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,i)}return i}computeUniqueKey(e){return JSON.stringify(e)}garbageCollect(){for(const e of this._rules.values())e.hasReferences()||(this._rules.delete(e.key),e.dispose())}}pC._idPool=0;class fC{constructor(e,t,i,n){this.key=e,this.className=t,this.properties=n,this._referenceCount=0,this._styleElementDisposables=new gi,this._styleElement=nc(i,void 0,this._styleElementDisposables),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(e,t){let i=`.${e} {`;for(const n in t){const e=t[n];let o;o="object"==typeof e?Z_(e.id):e,i+=`\n\t${_C(n)}: ${o};`}return i+="\n}",i}dispose(){this._styleElementDisposables.dispose(),this._styleElement=void 0}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function _C(e){return e.replace(/(^[A-Z])/,(([e])=>e.toLowerCase())).replace(/([A-Z])/g,(([e])=>`-${e.toLowerCase()}`))}class bC extends mi{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let i=0,n=e.length;i=s.left?n.width=Math.max(n.width,s.left+s.width-n.left):(t[i++]=n,n=s)}return t[i++]=n,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||0===e.length)return null;const n=[];for(let o=0,s=e.length;or)return null;if((t=Math.min(r,Math.max(0,t)))===(n=Math.min(r,Math.max(0,n)))&&i===o&&0===i&&!e.children[t].firstChild){const i=e.children[t].getClientRects();return s.markDidDomLayout(),this._createHorizontalRangesFromClientRects(i,s.clientRectDeltaLeft,s.clientRectScale)}t!==n&&n>0&&0===o&&(n--,o=1073741824);let a=e.children[t].firstChild,l=e.children[n].firstChild;if(a&&l||(!a&&0===i&&t>0&&(a=e.children[t-1].firstChild,i=1073741824),!l&&0===o&&n>0&&(l=e.children[n-1].firstChild,o=1073741824)),!a||!l)return null;i=Math.min(a.textContent.length,Math.max(0,i)),o=Math.min(l.textContent.length,Math.max(0,o));const c=this._readClientRects(a,i,l,o,s.endNode);return s.markDidDomLayout(),this._createHorizontalRangesFromClientRects(c,s.clientRectDeltaLeft,s.clientRectScale)}}var AC;function NC(e){return e===AC.HIGH_CONTRAST_DARK||e===AC.HIGH_CONTRAST_LIGHT}function kC(e){return e===AC.DARK||e===AC.HIGH_CONTRAST_DARK}!function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(AC||(AC={}));const DC=!!Be||!(Fe||hr||mr);let OC=!0;class xC{constructor(e,t){this.themeType=t;const i=e.options,n=i.get(50),o=i.get(38);this.renderWhitespace="off"===o?i.get(99):"none",this.renderControlCharacters=i.get(94),this.spaceWidth=n.spaceWidth,this.middotWidth=n.middotWidth,this.wsmiddotWidth=n.wsmiddotWidth,this.useMonospaceOptimizations=n.isMonospace&&!i.get(33),this.canUseHalfwidthRightwardsArrow=n.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(67),this.stopRenderingLineAfter=i.get(117),this.fontLigatures=i.get(51)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class MC{constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=zc(e)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return!(!NC(this._options.themeType)&&"selection"!==this._options.renderWhitespace||(this._isMaybeInvalid=!0,0))}renderLine(e,t,i,n,o){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;const s=n.getViewLineRenderingData(e),r=this._options,a=Lf.filter(s.inlineDecorations,e,s.minColumn,s.maxColumn);let l=null;if(NC(r.themeType)||"selection"===this._options.renderWhitespace){const t=n.selections;for(const i of t){if(i.endLineNumbere)continue;const t=i.startLineNumber===e?i.startColumn:s.minColumn,n=i.endLineNumber===e?i.endColumn:s.maxColumn;t');const d=Ff(c,o);o.appendString("");let h=null;return OC&&DC&&s.isBasicASCII&&r.useMonospaceOptimizations&&0===d.containsForeignElements&&(h=new PC(this._renderedViewLine?this._renderedViewLine.domNode:null,c,d.characterMapping)),h||(h=HC(this._renderedViewLine?this._renderedViewLine.domNode:null,c,d.characterMapping,d.containsRTL,d.containsForeignElements)),this._renderedViewLine=h,!0}layoutLine(e,t,i){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(i))}getWidth(e){return this._renderedViewLine?this._renderedViewLine.getWidth(e):0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof PC}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof PC?this._renderedViewLine.monospaceAssumptionsAreValid():OC}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof PC&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,n){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));const o=this._renderedViewLine.input.stopRenderingLineAfter;if(-1!==o&&t>o+1&&i>o+1)return new LC(!0,[new yC(this.getWidth(n),0)]);-1!==o&&t>o+1&&(t=o+1),-1!==o&&i>o+1&&(i=o+1);const s=this._renderedViewLine.getVisibleRangesForRange(e,t,i,n);return s&&s.length>0?new LC(!1,s):null}getColumnOfNodeOffset(e,t){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t):1}}MC.CLASS_NAME="view-line";class PC{constructor(e,t,i){this._cachedWidth=-1,this.domNode=e,this.input=t;const n=Math.floor(t.lineContent.length/300);if(n>0){this._keyColumnPixelOffsetCache=new Float32Array(n);for(let e=0;e=2&&(OC=!1)}return OC}toSlowRenderedLine(){return HC(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,n){const o=this._getColumnPixelOffset(e,t,n),s=this._getColumnPixelOffset(e,i,n);return[new yC(o,s-o)]}_getColumnPixelOffset(e,t,i){if(t<=300){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const n=Math.floor((t-1)/300)-1,o=300*(n+1)+1;let s=-1;if(this._keyColumnPixelOffsetCache&&(s=this._keyColumnPixelOffsetCache[n],-1===s&&(s=this._actualReadPixelOffset(e,o,i),this._keyColumnPixelOffsetCache[n]=s)),-1===s){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const r=this._characterMapping.getHorizontalOffset(o),a=this._characterMapping.getHorizontalOffset(t);return s+this._charWidth*(a-r)}_getReadingTarget(e){return e.domNode.firstChild}_actualReadPixelOffset(e,t,i){if(!this.domNode)return-1;const n=this._characterMapping.getDomPosition(t),o=IC.readHorizontalRanges(this._getReadingTarget(this.domNode),n.partIndex,n.charIndex,n.partIndex,n.charIndex,i);return o&&0!==o.length?o[0].left:-1}getColumnOfNodeOffset(e,t){return WC(this._characterMapping,e,t)}}class FC{constructor(e,t,i,n,o){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!n||0===this._characterMapping.length){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(e){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,null==e||e.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return-1!==this._cachedWidth}getVisibleRangesForRange(e,t,i,n){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){const o=this._readPixelOffset(this.domNode,e,t,n);if(-1===o)return null;const s=this._readPixelOffset(this.domNode,e,i,n);return-1===s?null:[new yC(o,s-o)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,n)}_readVisibleRangesForRange(e,t,i,n,o){if(i===n){const n=this._readPixelOffset(e,t,i,o);return-1===n?null:[new yC(n,0)]}return this._readRawVisibleRangesForRange(e,i,n,o)}_readPixelOffset(e,t,i,n){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth(n);const t=this._getReadingTarget(e);return t.firstChild?(n.markDidDomLayout(),t.firstChild.offsetWidth):0}if(null!==this._pixelOffsetCache){const o=this._pixelOffsetCache[i];if(-1!==o)return o;const s=this._actualReadPixelOffset(e,t,i,n);return this._pixelOffsetCache[i]=s,s}return this._actualReadPixelOffset(e,t,i,n)}_actualReadPixelOffset(e,t,i,n){if(0===this._characterMapping.length){const t=IC.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n);return t&&0!==t.length?t[0].left:-1}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth(n);const o=this._characterMapping.getDomPosition(i),s=IC.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,o.partIndex,o.charIndex,n);if(!s||0===s.length)return-1;const r=s[0].left;if(this.input.isBasicASCII){const e=this._characterMapping.getHorizontalOffset(i),t=Math.round(this.input.spaceWidth*e);if(Math.abs(t-r)<=1)return t}return r}_readRawVisibleRangesForRange(e,t,i,n){if(1===t&&i===this._characterMapping.length)return[new yC(0,this.getWidth(n))];const o=this._characterMapping.getDomPosition(t),s=this._characterMapping.getDomPosition(i);return IC.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,s.partIndex,s.charIndex,n)}getColumnOfNodeOffset(e,t){return WC(this._characterMapping,e,t)}}class BC extends FC{_readVisibleRangesForRange(e,t,i,n,o){const s=super._readVisibleRangesForRange(e,t,i,n,o);if(!s||0===s.length||i===n||1===i&&n===this._characterMapping.length)return s;if(!this.input.containsRTL){const i=this._readPixelOffset(e,t,n,o);if(-1!==i){const e=s[s.length-1];e.left=t)return l-t=4&&3===e[0]&&8===e[3]}static isStrictChildOfViewLines(e){return e.length>4&&3===e[0]&&8===e[3]}static isChildOfScrollableElement(e){return e.length>=2&&3===e[0]&&6===e[1]}static isChildOfMinimap(e){return e.length>=2&&3===e[0]&&9===e[1]}static isChildOfContentWidgets(e){return e.length>=4&&3===e[0]&&1===e[3]}static isChildOfOverflowGuard(e){return e.length>=1&&3===e[0]}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&2===e[0]}static isChildOfOverlayWidgets(e){return e.length>=2&&3===e[0]&&4===e[1]}static isChildOfOverflowingOverlayWidgets(e){return e.length>=1&&5===e[0]}}class jC{constructor(e,t,i){this.viewModel=e.viewModel;const n=e.configuration.options;this.layoutInfo=n.get(145),this.viewDomNode=t.viewDomNode,this.lineHeight=n.get(67),this.stickyTabStops=n.get(116),this.typicalHalfwidthCharacterWidth=n.get(50).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return jC.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const n=i.verticalOffset+i.height/2,o=e.viewModel.getLineCount();let s,r=null,a=null;return i.afterLineNumber!==o&&(a=new Wn(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(r=new Wn(i.afterLineNumber,e.viewModel.getLineMaxColumn(i.afterLineNumber))),s=null===a?r:null===r?a:t=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,eE._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class JC extends XC{get target(){return this._useHitTestTarget?this.hitTestResult.value.hitTarget:this._eventTarget}get targetPath(){return this._targetPathCacheElement!==this.target&&(this._targetPathCacheElement=this.target,this._targetPathCacheValue=SC.collect(this.target,this._ctx.viewDomNode)),this._targetPathCacheValue}constructor(e,t,i,n,o){super(e,t,i,n),this.hitTestResult=new us((()=>eE.doHitTest(this._ctx,this))),this._targetPathCacheElement=null,this._targetPathCacheValue=new Uint8Array(0),this._ctx=e,this._eventTarget=o;const s=Boolean(this._eventTarget);this._useHitTestTarget=!s}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}\n\ttarget: ${this.target?this.target.outerHTML:null}`}get wouldBenefitFromHitTestTargetSwitch(){return!this._useHitTestTarget&&null!==this.hitTestResult.value.hitTarget&&this.target!==this.hitTestResult.value.hitTarget}switchToHitTestTarget(){this._useHitTestTarget=!0}_getMouseColumn(e=null){return e&&e.columns.contentLeft+s.width)continue;const i=e.getVerticalOffsetForLineNumber(s.position.lineNumber);if(i<=o&&o<=i+s.height)return t.fulfillContentText(s.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const e=t.isInContentArea?8:5;return t.fulfillViewZone(e,i.position,i)}return null}static _hitTestTextArea(e,t){return $C.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),n=i.range.getStartPosition();let o=Math.abs(t.relativePos.x);const s={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:o};if(o-=e.layoutInfo.glyphMarginLeft,o<=e.layoutInfo.glyphMarginWidth){const r=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(i.range.getStartPosition()),a=e.viewModel.glyphLanes.getLanesAtLine(r.lineNumber);return s.glyphMarginLane=a[Math.floor(o/e.lineHeight)],t.fulfillMargin(2,n,i.range,s)}return o-=e.layoutInfo.glyphMarginWidth,o<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,n,i.range,s):(o-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,n,i.range,s))}return null}static _hitTestViewLines(e,t){if(!$C.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfillContentEmpty(new Wn(1,1),QC);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const i=e.viewModel.getLineCount(),n=e.viewModel.getLineMaxColumn(i);return t.fulfillContentEmpty(new Wn(i,n),QC)}if($C.isStrictChildOfViewLines(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.viewModel.getLineLength(i)){const n=e.getLineWidth(i),o=ZC(t.mouseContentHorizontalOffset-n);return t.fulfillContentEmpty(new Wn(i,1),o)}const n=e.getLineWidth(i);if(t.mouseContentHorizontalOffset>=n){const o=ZC(t.mouseContentHorizontalOffset-n),s=new Wn(i,e.viewModel.getLineMaxColumn(i));return t.fulfillContentEmpty(s,o)}}const i=t.hitTestResult.value;return 1===i.type?eE.createMouseTargetFromHitTestPosition(e,t,i.spanNode,i.position,i.injectedText):t.wouldBenefitFromHitTestTargetSwitch?(t.switchToHitTestTarget(),this._createMouseTarget(e,t)):t.fulfillUnknown()}static _hitTestMinimap(e,t){if($C.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Wn(i,n))}return null}static _hitTestScrollbarSlider(e,t){if($C.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Wn(i,n))}}return null}static _hitTestScrollbar(e,t){if($C.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Wn(i,n))}return null}getMouseColumn(e){const t=this._context.configuration.options,i=t.get(145),n=this._context.viewLayout.getCurrentScrollLeft()+e.x-i.contentLeft;return eE._getMouseColumn(n,t.get(50).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){return e<0?1:Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,n,o){const s=n.lineNumber,r=n.column,a=e.getLineWidth(s);if(t.mouseContentHorizontalOffset>a){const e=ZC(t.mouseContentHorizontalOffset-a);return t.fulfillContentEmpty(n,e)}const l=e.visibleRangeForPosition(s,r);if(!l)return t.fulfillUnknown(n);const c=l.left;if(Math.abs(t.mouseContentHorizontalOffset-c)<1)return t.fulfillContentText(n,null,{mightBeForeignElement:!!o,injectedText:o});const d=[];if(d.push({offset:l.left,column:r}),r>1){const t=e.visibleRangeForPosition(s,r-1);t&&d.push({offset:t.left,column:r-1})}if(re.offset-t.offset));const h=t.pos.toClientCoordinates(gl(e.viewDomNode)),u=i.getBoundingClientRect(),g=u.left<=h.clientX&&h.clientX<=u.right;let m=null;for(let p=1;po)){const i=Math.floor((n+o)/2);let s=t.pos.y+(i-t.mouseVerticalOffset);s<=t.editorPos.y&&(s=t.editorPos.y+1),s>=t.editorPos.y+t.editorPos.height&&(s=t.editorPos.y+t.editorPos.height-1);const r=new sC(t.pos.x,s),a=this._actualDoHitTestWithCaretRangeFromPoint(e,r.toClientCoordinates(gl(e.viewDomNode)));if(1===a.type)return a}return this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates(gl(e.viewDomNode)))}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=jl(e.viewDomNode);let n;if(n=i?void 0===i.caretRangeFromPoint?function(e,t,i){const n=document.createRange();let o=e.elementFromPoint(t,i);if(null!==o){for(;o&&o.firstChild&&o.firstChild.nodeType!==o.firstChild.TEXT_NODE&&o.lastChild&&o.lastChild.firstChild;)o=o.lastChild;const e=o.getBoundingClientRect(),i=gl(o),s=`${i.getComputedStyle(o,null).getPropertyValue("font-style")} ${i.getComputedStyle(o,null).getPropertyValue("font-variant")} ${i.getComputedStyle(o,null).getPropertyValue("font-weight")} ${i.getComputedStyle(o,null).getPropertyValue("font-size")}/${i.getComputedStyle(o,null).getPropertyValue("line-height")} ${i.getComputedStyle(o,null).getPropertyValue("font-family")}`,r=o.innerText;let a,l=e.left,c=0;if(t>e.left+e.width)c=r.length;else{const e=tE.getInstance();for(let i=0;i=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(nE||(nE={}));class sE extends mi{constructor(){super(),this.dispatched=!1,this.targets=new st,this.ignoreTargets=new st,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(Ci.runAndSubscribe(Sl,(({window:e,disposables:t})=>{t.add(yl(e.document,"touchstart",(e=>this.onTouchStart(e)),{passive:!1})),t.add(yl(e.document,"touchend",(t=>this.onTouchEnd(e,t)))),t.add(yl(e.document,"touchmove",(e=>this.onTouchMove(e)),{passive:!1}))}),{window:cs,disposables:this._store}))}static addTarget(e){return sE.isTouchDevice()?(sE.INSTANCE||(sE.INSTANCE=new sE),ui(sE.INSTANCE.targets.push(e))):mi.None}static ignoreTarget(e){return sE.isTouchDevice()?(sE.INSTANCE||(sE.INSTANCE=new sE),ui(sE.INSTANCE.ignoreTargets.push(e))):mi.None}static isTouchDevice(){return"ontouchstart"in cs||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){const t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,n=e.targetTouches.length;i=sE.HOLD_DELAY&&Math.abs(r.initialPageX-_(r.rollingPageX))<30&&Math.abs(r.initialPageY-_(r.rollingPageY))<30){const e=this.newGestureEvent(nE.Contextmenu,r.initialTarget);e.pageX=_(r.rollingPageX),e.pageY=_(r.rollingPageY),this.dispatchEvent(e)}else if(1===n){const t=_(r.rollingPageX),n=_(r.rollingPageY),o=_(r.rollingTimestamps)-r.rollingTimestamps[0],s=t-r.rollingPageX[0],a=n-r.rollingPageY[0],l=[...this.targets].filter((e=>r.initialTarget instanceof Node&&e.contains(r.initialTarget)));this.inertia(e,l,i,Math.abs(s)/o,s>0?1:-1,t,Math.abs(a)/o,a>0?1:-1,n)}this.dispatchEvent(this.newGestureEvent(nE.End,r.initialTarget)),delete this.activeTouches[s.identifier]}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){const i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===nE.Tap){const t=(new Date).getTime();let i=0;i=t-this._lastSetTapCountTime>sE.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=i}else e.type!==nE.Change&&e.type!==nE.Contextmenu||(this._lastSetTapCountTime=0);if(e.initialTarget instanceof Node){for(const i of this.ignoreTargets)if(i.contains(e.initialTarget))return;const t=[];for(const i of this.targets)if(i.contains(e.initialTarget)){let n=0,o=e.initialTarget;for(;o&&o!==i;)n++,o=o.parentElement;t.push([n,i])}t.sort(((e,t)=>e[0]-t[0]));for(const[i,n]of t)n.dispatchEvent(e),this.dispatched=!0}}inertia(e,t,i,n,o,s,r,a,l){this.handle=kl(e,(()=>{const c=Date.now(),d=c-i;let h=0,u=0,g=!0;n+=sE.SCROLL_FRICTION*d,r+=sE.SCROLL_FRICTION*d,n>0&&(g=!1,h=o*n*d),r>0&&(g=!1,u=a*r*d);const m=this.newGestureEvent(nE.Change);m.translationX=h,m.translationY=u,t.forEach((e=>e.dispatchEvent(m))),g||this.inertia(e,t,c,n,o,s+h,r,a,l+u)}))}onTouchMove(e){const t=Date.now();for(let i=0,n=e.changedTouches.length;i3&&(o.rollingPageX.shift(),o.rollingPageY.shift(),o.rollingTimestamps.shift()),o.rollingPageX.push(n.pageX),o.rollingPageY.push(n.pageY),o.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}sE.SCROLL_FRICTION=-.005,sE.HOLD_DELAY=700,sE.CLEAR_TAP_COUNT_TIME=400,oE([iE],sE,"isTouchDevice",null);let rE=class extends mi{onclick(e,t){this._register(yl(e,mc.CLICK,(i=>t(new kr(gl(e),i)))))}onmousedown(e,t){this._register(yl(e,mc.MOUSE_DOWN,(i=>t(new kr(gl(e),i)))))}onmouseover(e,t){this._register(yl(e,mc.MOUSE_OVER,(i=>t(new kr(gl(e),i)))))}onmouseleave(e,t){this._register(yl(e,mc.MOUSE_LEAVE,(i=>t(new kr(gl(e),i)))))}onkeydown(e,t){this._register(yl(e,mc.KEY_DOWN,(e=>t(new Lr(e)))))}onkeyup(e,t){this._register(yl(e,mc.KEY_UP,(e=>t(new Lr(e)))))}oninput(e,t){this._register(yl(e,mc.INPUT,t))}onblur(e,t){this._register(yl(e,mc.BLUR,t))}onfocus(e,t){this._register(yl(e,mc.FOCUS,t))}ignoreGesture(e){return sE.ignoreTarget(e)}};class aE extends rE{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",void 0!==e.top&&(this.bgDomNode.style.top="0px"),void 0!==e.left&&(this.bgDomNode.style.left="0px"),void 0!==e.bottom&&(this.bgDomNode.style.bottom="0px"),void 0!==e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...gd.asClassNameArray(e.icon)),this.domNode.style.position="absolute",this.domNode.style.width="11px",this.domNode.style.height="11px",void 0!==e.top&&(this.domNode.style.top=e.top+"px"),void 0!==e.left&&(this.domNode.style.left=e.left+"px"),void 0!==e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),void 0!==e.right&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new J_),this._register(Ll(this.bgDomNode,mc.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._register(Ll(this.domNode,mc.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._pointerdownRepeatTimer=this._register(new Dl),this._pointerdownScheduleRepeatTimer=this._register(new Gr)}_arrowPointerDown(e){e.target&&e.target instanceof Element&&(this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet((()=>{this._pointerdownRepeatTimer.cancelAndSet((()=>this._onActivate()),1e3/24,gl(e))}),200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{}),(()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()})),e.preventDefault())}}class lE extends mi{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new Gr)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((()=>{var e;null===(e=this._domNode)||void 0===e||e.setClassName(this._visibleClassName)}),0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,null===(t=this._domNode)||void 0===t||t.setClassName(this._invisibleClassName+(e?" fade":"")))}}class cE extends rE{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new lE(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new J_),this._shouldRender=!0,this.domNode=zc(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(yl(this.domNode.domNode,mc.POINTER_DOWN,(e=>this._domNodePointerDown(e))))}_createArrow(e){const t=this._register(new aE(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,n){this.slider=zc(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"==typeof i&&this.slider.setWidth(i),"number"==typeof n&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(yl(this.slider.domNode,mc.POINTER_DOWN,(e=>{0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}))),this.onclick(this.slider.domNode,(e=>{e.leftButton&&e.stopPropagation()}))}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),o=this._sliderPointerPosition(e);i<=o&&o<=n?0===e.button&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&"number"==typeof e.offsetX&&"number"==typeof e.offsetY)t=e.offsetX,i=e.offsetY;else{const n=Hl(this.domNode.domNode);t=e.pageX-n.left,i=e.pageY-n.top}const n=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!(e.target&&e.target instanceof Element))return;const t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),n=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{const o=this._sliderOrthogonalPointerPosition(e),s=Math.abs(o-i);if(Me&&s>140)return void this._setDesiredScrollPositionNow(n.getScrollPosition());const r=this._sliderPointerPosition(e)-t;this._setDesiredScrollPositionNow(n.getDesiredScrollPositionFromDelta(r))}),(()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()})),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}class dE{constructor(e,t,i,n,o,s){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=o,this._scrollPosition=s,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new dE(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,n,o){const s=Math.max(0,i-e),r=Math.max(0,s-2*t),a=n>0&&n>i;if(!a)return{computedAvailableSize:Math.round(s),computedIsNeeded:a,computedSliderSize:Math.round(r),computedSliderRatio:0,computedSliderPosition:0};const l=Math.round(Math.max(20,Math.floor(i*r/n))),c=(r-l)/(n-i),d=o*c;return{computedAvailableSize:Math.round(s),computedIsNeeded:a,computedSliderSize:Math.round(l),computedSliderRatio:c,computedSliderPosition:Math.round(d)}}_refreshComputedValues(){const e=dE._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return tthis._host.onMouseWheel(new Dr(null,1,0))}),this._createArrow({className:"scra",icon:Yn.scrollbarButtonRight,top:i,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new Dr(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class uE extends cE{constructor(e,t,i){const n=e.getScrollDimensions(),o=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new dE(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,o.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const e=(t.arrowSize-11)/2,i=(t.verticalScrollbarSize-11)/2;this._createArrow({className:"scra",icon:Yn.scrollbarButtonUp,top:e,left:i,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new Dr(null,0,1))}),this._createArrow({className:"scra",icon:Yn.scrollbarButtonDown,top:void 0,left:i,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new Dr(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}class gE{constructor(e,t,i,n,o,s,r){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t|=0,i|=0,n|=0,o|=0,s|=0,r|=0),this.rawScrollLeft=n,this.rawScrollTop=r,t<0&&(t=0),n+t>i&&(n=i-t),n<0&&(n=0),o<0&&(o=0),r+o>s&&(r=s-o),r<0&&(r=0),this.width=t,this.scrollWidth=i,this.scrollLeft=n,this.height=o,this.scrollHeight=s,this.scrollTop=r}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new gE(this._forceIntegerValues,void 0!==e.width?e.width:this.width,void 0!==e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,void 0!==e.height?e.height:this.height,void 0!==e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new gE(this._forceIntegerValues,this.width,this.scrollWidth,void 0!==e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,void 0!==e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,o=this.scrollLeft!==e.scrollLeft,s=this.height!==e.height,r=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:n,scrollLeftChanged:o,heightChanged:s,scrollHeightChanged:r,scrollTopChanged:a}}}class mE extends mi{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new Ri),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new gE(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){var i;const n=this._state.withScrollDimensions(e,t);this._setState(n,Boolean(this._smoothScrolling)),null===(i=this._smoothScrolling)||void 0===i||i.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:void 0===e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:void 0===e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let n;n=t?new _E(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=_E.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))}hasPendingScrollAnimation(){return Boolean(this._smoothScrolling)}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t,!0),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))):void 0}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class pE{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function fE(e,t){const i=t-e;return function(t){return e+i*(1-(n=1-t,Math.pow(n,3)));var n}}class _E{constructor(e,t,i,n){this.from=e,this.to=t,this.duration=n,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,i){if(Math.abs(e-t)>2.5*i){let r,a;return e0&&Math.abs(e.deltaY)>0)return 1;let i=.5;if(this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(i+=.25),t){const n=Math.abs(e.deltaX),o=Math.abs(e.deltaY),s=Math.abs(t.deltaX),r=Math.abs(t.deltaY),a=Math.max(Math.min(n,s),1),l=Math.max(Math.min(o,r),1),c=Math.max(n,s),d=Math.max(o,r);c%a==0&&d%l==0&&(i-=.5)}return Math.min(Math.max(i,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}vE.INSTANCE=new vE;class SE extends rE{get options(){return this._options}constructor(e,t,i){super(),this._onScroll=this._register(new Ri),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new Ri),e.style.overflow="hidden",this._options=function(e){const t={lazyRender:void 0!==e.lazyRender&&e.lazyRender,className:void 0!==e.className?e.className:"",useShadows:void 0===e.useShadows||e.useShadows,handleMouseWheel:void 0===e.handleMouseWheel||e.handleMouseWheel,flipAxes:void 0!==e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:void 0!==e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:void 0!==e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:void 0!==e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:void 0!==e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:void 0!==e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:void 0===e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:void 0===e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:void 0!==e.arrowSize?e.arrowSize:11,listenOnDomNode:void 0!==e.listenOnDomNode?e.listenOnDomNode:null,horizontal:void 0!==e.horizontal?e.horizontal:1,horizontalScrollbarSize:void 0!==e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:void 0!==e.horizontalHasArrows&&e.horizontalHasArrows,vertical:void 0!==e.vertical?e.vertical:1,verticalScrollbarSize:void 0!==e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:void 0!==e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:void 0!==e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:void 0!==e.scrollByPage&&e.scrollByPage};return t.horizontalSliderSize=void 0!==e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=void 0!==e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,Pe&&(t.className+=" mac"),t}(t),this._scrollable=i,this._register(this._scrollable.onScroll((e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)})));const n={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new uE(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new hE(this._scrollable,this._options,n)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=zc(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=zc(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=zc(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,(e=>this._onMouseOver(e))),this.onmouseleave(this._listenOnDomNode,(e=>this._onMouseLeave(e))),this._hideTimeout=this._register(new Gr),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=di(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,Pe&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){void 0!==e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),void 0!==e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),void 0!==e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),void 0!==e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),void 0!==e.horizontal&&(this._options.horizontal=e.horizontal),void 0!==e.vertical&&(this._options.vertical=e.vertical),void 0!==e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),void 0!==e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),void 0!==e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new Dr(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=di(this._mouseWheelToDispose),e)){const e=e=>{this._onMouseWheel(new Dr(e))};this._mouseWheelToDispose.push(yl(this._listenOnDomNode,mc.MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){var t;if(null===(t=e.browserEvent)||void 0===t?void 0:t.defaultPrevented)return;const i=vE.INSTANCE;i.acceptStandardWheelEvent(e);let n=!1;if(e.deltaY||e.deltaX){let t=e.deltaY*this._options.mouseWheelScrollSensitivity,o=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&o+t===0?o=t=0:Math.abs(t)>=Math.abs(o)?o=0:t=0),this._options.flipAxes&&([t,o]=[o,t]);const s=!Pe&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!s||o||(o=t,t=0),e.browserEvent&&e.browserEvent.altKey&&(o*=this._options.fastScrollSensitivity,t*=this._options.fastScrollSensitivity);const r=this._scrollable.getFutureScrollPosition();let a={};if(t){const e=50*t,i=r.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(a,i)}if(o){const e=50*o,t=r.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(a,t)}a=this._scrollable.validateScrollPosition(a),(r.scrollLeft!==a.scrollLeft||r.scrollTop!==a.scrollTop)&&(this._options.mouseWheelSmoothScroll&&i.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),n=!0)}let o=n;!o&&this._options.alwaysConsumeMouseWheel&&(o=!0),!o&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(o=!0),o&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,n=i?" left":"",o=t?" top":"",s=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${o}`),this._topLeftShadowDomNode.setClassName(`shadow${s}${o}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((()=>this._hide()),500)}}class CE extends SE{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new mE({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>kl(gl(e),t)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class EE extends SE{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class wE extends SE{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new mE({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>kl(gl(e),t)});super(e,t,i),this._register(i),this._element=e,this._register(this.onScroll((e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)}))),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}class TE extends bC{constructor(e,t,i){super(),this._mouseLeaveMonitor=null,this._context=e,this.viewController=t,this.viewHelper=i,this.mouseTargetFactory=new eE(this._context,i),this._mouseDownOperation=this._register(new yE(this._context,this.viewController,this.viewHelper,this.mouseTargetFactory,((e,t)=>this._createMouseTarget(e,t)),(e=>this._getMouseColumn(e)))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(145).height;const n=new uC(this.viewHelper.viewDomNode);this._register(n.onContextMenu(this.viewHelper.viewDomNode,(e=>this._onContextMenu(e,!0)))),this._register(n.onMouseMove(this.viewHelper.viewDomNode,(e=>{this._onMouseMove(e),this._mouseLeaveMonitor||(this._mouseLeaveMonitor=yl(this.viewHelper.viewDomNode.ownerDocument,"mousemove",(e=>{this.viewHelper.viewDomNode.contains(e.target)||this._onMouseLeave(new hC(e,!1,this.viewHelper.viewDomNode))})))}))),this._register(n.onMouseUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(n.onMouseLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e))));let o=0;this._register(n.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>{o=t}))),this._register(yl(this.viewHelper.viewDomNode,mc.POINTER_UP,(e=>{this._mouseDownOperation.onPointerUp()}))),this._register(n.onMouseDown(this.viewHelper.viewDomNode,(e=>this._onMouseDown(e,o)))),this._setupMouseWheelZoomListener(),this._context.addEventHandler(this)}_setupMouseWheelZoomListener(){const e=vE.INSTANCE;let t=0,i=$c.getZoomLevel(),n=!1,o=0;function s(e){return Pe?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey}this._register(yl(this.viewHelper.viewDomNode,mc.MOUSE_WHEEL,(r=>{if(this.viewController.emitMouseWheel(r),!this._context.configuration.options.get(76))return;const a=new Dr(r);if(e.acceptStandardWheelEvent(a),e.isPhysicalMouseWheel()){if(s(r)){const e=$c.getZoomLevel(),t=a.deltaY>0?1:-1;$c.setZoomLevel(e+t),a.preventDefault(),a.stopPropagation()}}else Date.now()-t>50&&(i=$c.getZoomLevel(),n=s(r),o=0),t=Date.now(),o+=a.deltaY,n&&($c.setZoomLevel(i+o/5),a.preventDefault(),a.stopPropagation())}),{capture:!0,passive:!1}))}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(145)){const e=this._context.configuration.options.get(145).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}getTargetAtClientPoint(e,t){const i=new rC(e,t).toPageCoordinates(gl(this.viewHelper.viewDomNode)),n=cC(this.viewHelper.viewDomNode);if(i.yn.y+n.height||i.xn.x+n.width)return null;const o=dC(this.viewHelper.viewDomNode,n,i);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),n,i,o,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const t=jl(this.viewHelper.viewDomNode);t&&(i=t.elementsFromPoint(e.posx,e.posy).find((e=>this.viewHelper.viewDomNode.contains(e))))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){this.mouseTargetFactory.mouseTargetIsWidget(e)||e.preventDefault(),this._mouseDownOperation.isActive()||e.timestamp{e.preventDefault(),this.viewHelper.focusTextArea()};if(c&&(n||s&&r))d(),this._mouseDownOperation.start(i.type,e,t);else if(o)e.preventDefault();else if(a){const n=i.detail;c&&this.viewHelper.shouldSuppressMouseDownOnViewZone(n.viewZoneId)&&(d(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else l&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(d(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:i})}}class yE extends mi{constructor(e,t,i,n,o,s){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._mouseTargetFactory=n,this._createMouseTarget=o,this._getMouseColumn=s,this._mouseMoveMonitor=this._register(new mC(this._viewHelper.viewDomNode)),this._topBottomDragScrolling=this._register(new RE(this._context,this._viewHelper,this._mouseTargetFactory,((e,t,i)=>this._dispatchMouse(e,t,i)))),this._mouseState=new IE,this._currentSelection=new Vn(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!1);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):13!==t.type||"above"!==t.outsidePosition&&"below"!==t.outsidePosition?(this._topBottomDragScrolling.stop(),this._dispatchMouse(t,!0,1)):this._topBottomDragScrolling.start(t,e))}start(e,t,i){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const n=this._findMousePosition(t,!0);if(!n||!n.position)return;this._mouseState.trySetCount(t.detail,n.position),t.detail=this._mouseState.count;const o=this._context.configuration.options;if(!o.get(91)&&o.get(35)&&!o.get(22)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===n.type&&n.position&&this._currentSelection.containsPosition(n.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(e=>{const t=this._findMousePosition(this._lastMouseEvent,!1);gc(e)?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()}));this._mouseState.isDragAndDrop=!1,this._dispatchMouse(n,t.shiftKey,1),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(()=>this._stop())))}_stop(){this._isActive=!1,this._topBottomDragScrolling.stop()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.viewModel,n=this._context.viewLayout,o=this._getMouseColumn(e);if(e.posyt.y+t.height){const s=e.posy-t.y-t.height,r=n.getCurrentScrollTop()+e.relativePos.y,a=jC.getZoneAtCoord(this._context,r);if(a){const e=this._helpPositionJumpOverViewZone(a);if(e)return qC.createOutsideEditor(o,e,"below",s)}const l=n.getLineNumberAtVerticalOffset(r);return qC.createOutsideEditor(o,new Wn(l,i.getLineMaxColumn(l)),"below",s)}const s=n.getLineNumberAtVerticalOffset(n.getCurrentScrollTop()+e.relativePos.y);if(e.posxt.x+t.width){const n=e.posx-t.x-t.width;return qC.createOutsideEditor(o,new Wn(s,i.getLineMaxColumn(s)),"right",n)}return null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const n=this._createMouseTarget(e,t);if(!n.position)return null;if(8===n.type||5===n.type){const e=this._helpPositionJumpOverViewZone(n.detail);if(e)return qC.createViewZone(n.type,n.element,n.mouseColumn,e,n.detail)}return n}_helpPositionJumpOverViewZone(e){const t=new Wn(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,n=e.positionAfter;return i&&n?i.isBefore(t)?i:n:null}_dispatchMouse(e,t,i){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,revealType:i,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:6===e.type&&null!==e.detail.injectedText})}}class RE extends mi{constructor(e,t,i,n){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=n,this._operation=null}dispose(){super.dispose(),this.stop()}start(e,t){this._operation?this._operation.setPosition(e,t):this._operation=new LE(this._context,this._viewHelper,this._mouseTargetFactory,this._dispatchMouse,e,t)}stop(){this._operation&&(this._operation.dispose(),this._operation=null)}}class LE extends mi{constructor(e,t,i,n,o,s){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=n,this._position=o,this._mouseEvent=s,this._lastTime=Date.now(),this._animationFrameDisposable=kl(gl(s.browserEvent),(()=>this._execute()))}dispose(){this._animationFrameDisposable.dispose(),super.dispose()}setPosition(e,t){this._position=e,this._mouseEvent=t}_tick(){const e=Date.now(),t=e-this._lastTime;return this._lastTime=e,t}_getScrollSpeed(){const e=this._context.configuration.options.get(67),t=this._context.configuration.options.get(145).height/e,i=this._position.outsideDistance/e;return i<=1.5?Math.max(30,t*(1+i)):i<=3?Math.max(60,t*(2+i)):Math.max(200,t*(7+i))}_execute(){const e=this._context.configuration.options.get(67),t=this._getScrollSpeed()*(this._tick()/1e3)*e,i="above"===this._position.outsidePosition?-t:t;this._context.viewModel.viewLayout.deltaScrollNow(0,i),this._viewHelper.renderNow();const n=this._context.viewLayout.getLinesViewportData(),o="above"===this._position.outsidePosition?n.startLineNumber:n.endLineNumber;let s;{const e=cC(this._viewHelper.viewDomNode),t=this._context.configuration.options.get(145).horizontalScrollbarHeight,i=new sC(this._mouseEvent.pos.x,e.y+e.height-t-.1),n=dC(this._viewHelper.viewDomNode,e,i);s=this._mouseTargetFactory.createMouseTarget(this._viewHelper.getLastRenderData(),e,i,n,null)}s.position&&s.position.lineNumber===o||(s="above"===this._position.outsidePosition?qC.createOutsideEditor(this._position.mouseColumn,new Wn(o,1),"above",this._position.outsideDistance):qC.createOutsideEditor(this._position.mouseColumn,new Wn(o,this._context.viewModel.getLineMaxColumn(o)),"below",this._position.outsideDistance)),this._dispatchMouse(s,!0,2),this._animationFrameDisposable=kl(gl(s.element),(()=>this._execute()))}}class IE{get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=(new Date).getTime();i-this._lastSetMouseDownCountTime>IE.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}IE.CLEAR_MOUSE_DOWN_COUNT_TIME=400;class AE{get event(){return this.emitter.event}constructor(e,t,i){const n=e=>this.emitter.fire(e);this.emitter=new Ri({onWillAddFirstListener:()=>e.addEventListener(t,n,i),onDidRemoveLastListener:()=>e.removeEventListener(t,n,i)})}dispose(){this.emitter.dispose()}}class NE{constructor(e,t,i,n,o){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selection=n,this.newlineCountBeforeSelection=o}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(e,t){const i=e.getValue(),n=e.getSelectionStart(),o=e.getSelectionEnd();let s;return t&&i.substring(0,n)===t.value.substring(0,t.selectionStart)&&(s=t.newlineCountBeforeSelection),new NE(i,n,o,null,s)}collapseSelection(){return this.selectionStart===this.value.length?this:new NE(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(e,t,i){t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){var t,i,n,o,s,r,a,l;if(e<=this.selectionStart){const n=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(null!==(i=null===(t=this.selection)||void 0===t?void 0:t.getStartPosition())&&void 0!==i?i:null,n,-1)}if(e>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(null!==(o=null===(n=this.selection)||void 0===n?void 0:n.getEndPosition())&&void 0!==o?o:null,t,1)}const c=this.value.substring(this.selectionStart,e);if(-1===c.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(null!==(r=null===(s=this.selection)||void 0===s?void 0:s.getStartPosition())&&void 0!==r?r:null,c,1);const d=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(null!==(l=null===(a=this.selection)||void 0===a?void 0:a.getEndPosition())&&void 0!==l?l:null,d,-1)}_finishDeduceEditorPosition(e,t,i){let n=0,o=-1;for(;-1!==(o=t.indexOf("\n",o+1));)n++;return[e,i*t.length,n]}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};const n=Math.min(Ps(e.value,t.value),e.selectionStart,t.selectionStart),o=Math.min(Fs(e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd);e.value.substring(n,e.value.length-o);const s=t.value.substring(n,t.value.length-o),r=e.selectionStart-n,a=e.selectionEnd-n;return t.selectionStart-n==t.selectionEnd-n?{text:s,replacePrevCharCnt:e.selectionStart-n,replaceNextCharCnt:0,positionDelta:0}:{text:s,replacePrevCharCnt:a-r,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(Ps(e.value,t.value),e.selectionEnd),n=Math.min(Fs(e.value,t.value),e.value.length-e.selectionEnd),o=e.value.substring(i,e.value.length-n),s=t.value.substring(i,t.value.length-n);e.selectionStart;const r=e.selectionEnd-i;t.selectionStart;const a=t.selectionEnd-i;return{text:s,replacePrevCharCnt:r,replaceNextCharCnt:o.length-r,positionDelta:a-s.length}}}NE.EMPTY=new NE("",0,0,null,void 0);class kE{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t;return new Un(i+1,1,i+t+1,1)}static fromEditorSelection(e,t,i,n){const o=500,s=kE._getPageOfLine(t.startLineNumber,i),r=kE._getRangeForPage(s,i),a=kE._getPageOfLine(t.endLineNumber,i),l=kE._getRangeForPage(a,i);let c=r.intersectRanges(new Un(1,1,t.startLineNumber,t.startColumn));if(n&&e.getValueLengthInRange(c,1)>o){const t=e.modifyPosition(c.getEndPosition(),-500);c=Un.fromPositions(t,c.getEndPosition())}const d=e.getValueInRange(c,1),h=e.getLineCount(),u=e.getLineMaxColumn(h);let g=l.intersectRanges(new Un(t.endLineNumber,t.endColumn,h,u));if(n&&e.getValueLengthInRange(g,1)>o){const t=e.modifyPosition(g.getStartPosition(),o);g=Un.fromPositions(g.getStartPosition(),t)}const m=e.getValueInRange(g,1);let p;if(s===a||s+1===a)p=e.getValueInRange(t,1);else{const i=r.intersectRanges(t),n=l.intersectRanges(t);p=e.getValueInRange(i,1)+String.fromCharCode(8230)+e.getValueInRange(n,1)}return n&&p.length>1e3&&(p=p.substring(0,o)+String.fromCharCode(8230)+p.substring(p.length-o,p.length)),new NE(d+p+m,d.length,d.length+p.length,t,c.endLineNumber-c.startLineNumber)}}var DE,OE=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},xE=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};(DE||(DE={})).Tap="-monaco-textarea-synthetic-tap";const ME={forceCopyWithSyntaxHighlighting:!1};class PE{constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}PE.INSTANCE=new PE;class FE{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(e){const t={text:e=e||"",replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}let BE=class extends mi{get textAreaState(){return this._textAreaState}constructor(e,t,i,n,o,s){super(),this._host=e,this._textArea=t,this._OS=i,this._browser=n,this._accessibilityService=o,this._logService=s,this._onFocus=this._register(new Ri),this.onFocus=this._onFocus.event,this._onBlur=this._register(new Ri),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new Ri),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new Ri),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new Ri),this.onCut=this._onCut.event,this._onPaste=this._register(new Ri),this.onPaste=this._onPaste.event,this._onType=this._register(new Ri),this.onType=this._onType.event,this._onCompositionStart=this._register(new Ri),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new Ri),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new Ri),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new Ri),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new pi),this._asyncTriggerCut=this._register(new Kr((()=>this._onCut.fire()),0)),this._textAreaState=NE.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent("ctor"),this._register(Ci.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new Kr((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)):this._asyncFocusGainWriteScreenReaderContent.clear()}))),this._hasFocus=!1,this._currentComposition=null;let r=null;this._register(this._textArea.onKeyDown((e=>{const t=new Lr(e);(114===t.keyCode||this._currentComposition&&1===t.keyCode)&&t.stopPropagation(),t.equals(9)&&t.preventDefault(),r=t,this._onKeyDown.fire(t)}))),this._register(this._textArea.onKeyUp((e=>{const t=new Lr(e);this._onKeyUp.fire(t)}))),this._register(this._textArea.onCompositionStart((e=>{const t=new FE;if(this._currentComposition)this._currentComposition=t;else{if(this._currentComposition=t,2===this._OS&&r&&r.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===e.data&&("ArrowRight"===r.code||"ArrowLeft"===r.code))return t.handleCompositionUpdate("x"),void this._onCompositionStart.fire({data:e.data});this._browser.isAndroid,this._onCompositionStart.fire({data:e.data})}}))),this._register(this._textArea.onCompositionUpdate((e=>{const t=this._currentComposition;if(!t)return;if(this._browser.isAndroid){const t=NE.readFromTextArea(this._textArea,this._textAreaState),i=NE.deduceAndroidCompositionInput(this._textAreaState,t);return this._textAreaState=t,this._onType.fire(i),void this._onCompositionUpdate.fire(e)}const i=t.handleCompositionUpdate(e.data);this._textAreaState=NE.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionUpdate.fire(e)}))),this._register(this._textArea.onCompositionEnd((e=>{const t=this._currentComposition;if(!t)return;if(this._currentComposition=null,this._browser.isAndroid){const e=NE.readFromTextArea(this._textArea,this._textAreaState),t=NE.deduceAndroidCompositionInput(this._textAreaState,e);return this._textAreaState=e,this._onType.fire(t),void this._onCompositionEnd.fire()}const i=t.handleCompositionUpdate(e.data);this._textAreaState=NE.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionEnd.fire()}))),this._register(this._textArea.onInput((e=>{if(this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const t=NE.readFromTextArea(this._textArea,this._textAreaState),i=NE.deduceInput(this._textAreaState,t,2===this._OS);(0!==i.replacePrevCharCnt||1!==i.text.length||!Bs(i.text.charCodeAt(0))&&127!==i.text.charCodeAt(0))&&(this._textAreaState=t,""===i.text&&0===i.replacePrevCharCnt&&0===i.replaceNextCharCnt&&0===i.positionDelta||this._onType.fire(i))}))),this._register(this._textArea.onCut((e=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(e),this._asyncTriggerCut.schedule()}))),this._register(this._textArea.onCopy((e=>{this._ensureClipboardGetsEditorSelection(e)}))),this._register(this._textArea.onPaste((e=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),e.preventDefault(),!e.clipboardData)return;let[t,i]=HE.getTextData(e.clipboardData);t&&(i=i||PE.INSTANCE.get(t),this._onPaste.fire({text:t,metadata:i}))}))),this._register(this._textArea.onFocus((()=>{const e=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!e&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new Kr((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())}))),this._register(this._textArea.onBlur((()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)}))),this._register(this._textArea.onSyntheticTap((()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())})))}_installSelectionChangeListener(){let e=0;return yl(this._textArea.ownerDocument,"selectionchange",(t=>{if(X_.onSelectionChange(),!this._hasFocus)return;if(this._currentComposition)return;if(!this._browser.isChrome)return;const i=Date.now(),n=i-e;if(e=i,n<5)return;const o=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),o<100)return;if(!this._textAreaState.selection)return;const s=this._textArea.getValue();if(this._textAreaState.value!==s)return;const r=this._textArea.getSelectionStart(),a=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===r&&this._textAreaState.selectionEnd===a)return;const l=this._textAreaState.deduceEditorPosition(r),c=this._host.deduceModelPosition(l[0],l[1],l[2]),d=this._textAreaState.deduceEditorPosition(a),h=this._host.deduceModelPosition(d[0],d[1],d[2]),u=new Vn(c.lineNumber,c.column,h.lineNumber,h.column);this._onSelectionChangeRequest.fire(u)}))}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeNativeTextAreaContent(e){!this._accessibilityService.isScreenReaderOptimized()&&"render"===e||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${e})`),this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};PE.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,"\n"):t.text,i),e.preventDefault(),e.clipboardData&&HE.setTextData(e.clipboardData,t.text,t.html,i)}};BE=OE([xE(4,W_),xE(5,Lh)],BE);const HE={getTextData(e){const t=e.getData(sg.text);let i=null;const n=e.getData("vscode-editor-data");if("string"==typeof n)try{i=JSON.parse(n),1!==i.version&&(i=null)}catch(sue){}return 0===t.length&&null===i&&e.files.length>0?[Array.prototype.slice.call(e.files,0).map((e=>e.name)).join("\n"),null]:[t,i]},setTextData(e,t,i,n){e.setData(sg.text,t),"string"==typeof i&&e.setData("text/html",i),e.setData("vscode-editor-data",JSON.stringify(n))}};class WE extends mi{get ownerDocument(){return this._actual.ownerDocument}constructor(e){super(),this._actual=e,this.onKeyDown=this._register(new AE(this._actual,"keydown")).event,this.onKeyUp=this._register(new AE(this._actual,"keyup")).event,this.onCompositionStart=this._register(new AE(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(new AE(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(new AE(this._actual,"compositionend")).event,this.onBeforeInput=this._register(new AE(this._actual,"beforeinput")).event,this.onInput=this._register(new AE(this._actual,"input")).event,this.onCut=this._register(new AE(this._actual,"cut")).event,this.onCopy=this._register(new AE(this._actual,"copy")).event,this.onPaste=this._register(new AE(this._actual,"paste")).event,this.onFocus=this._register(new AE(this._actual,"focus")).event,this.onBlur=this._register(new AE(this._actual,"blur")).event,this._onSyntheticTap=this._register(new Ri),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(this.onKeyDown((()=>X_.onKeyDown()))),this._register(this.onBeforeInput((()=>X_.onBeforeInput()))),this._register(this.onInput((()=>X_.onInput()))),this._register(this.onKeyUp((()=>X_.onKeyUp()))),this._register(yl(this._actual,DE.Tap,(()=>this._onSyntheticTap.fire())))}hasFocus(){const e=jl(this._actual);return e?e.activeElement===this._actual:!!this._actual.isConnected&&Xl()===this._actual}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(e,t){const i=this._actual;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}getSelectionStart(){return"backward"===this._actual.selectionDirection?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return"backward"===this._actual.selectionDirection?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(e,t,i){const n=this._actual;let o=null;const s=jl(n);o=s?s.activeElement:Xl();const r=gl(o),a=o===n,l=n.selectionStart,c=n.selectionEnd;if(a&&l===t&&c===i)hr&&r.parent!==r&&n.focus();else{if(a)return this.setIgnoreSelectionChangeTime("setSelectionRange"),n.setSelectionRange(t,i),void(hr&&r.parent!==r&&n.focus());try{const e=function(e){const t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}(n);this.setIgnoreSelectionChangeTime("setSelectionRange"),n.focus(),n.setSelectionRange(t,i),function(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}(n,e)}catch(sue){}}}}class UE extends TE{constructor(e,t,i){super(e,t,i),this._register(sE.addTarget(this.viewHelper.linesContentDomNode)),this._register(yl(this.viewHelper.linesContentDomNode,nE.Tap,(e=>this.onTap(e)))),this._register(yl(this.viewHelper.linesContentDomNode,nE.Change,(e=>this.onChange(e)))),this._register(yl(this.viewHelper.linesContentDomNode,nE.Contextmenu,(e=>this._onContextMenu(new hC(e,!1,this.viewHelper.viewDomNode),!1)))),this._lastPointerType="mouse",this._register(yl(this.viewHelper.linesContentDomNode,"pointerdown",(e=>{const t=e.pointerType;this._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));const n=new gC(this.viewHelper.viewDomNode);this._register(n.onPointerMove(this.viewHelper.viewDomNode,(e=>this._onMouseMove(e)))),this._register(n.onPointerUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(n.onPointerLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e)))),this._register(n.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>this._onMouseDown(e,t))))}onTap(e){e.initialTarget&&this.viewHelper.linesContentDomNode.contains(e.initialTarget)&&(e.preventDefault(),this.viewHelper.focusTextArea(),this._dispatchGesture(e,!1))}onChange(e){"touch"===this._lastPointerType&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY),"pen"===this._lastPointerType&&this._dispatchGesture(e,!0)}_dispatchGesture(e,t){const i=this._createMouseTarget(new hC(e,!1,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,revealType:1,mouseDownCount:e.tapCount,inSelectionMode:t,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:6===i.type&&null!==i.detail.injectedText})}_onMouseDown(e,t){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e,t)}}class VE extends TE{constructor(e,t,i){super(e,t,i),this._register(sE.addTarget(this.viewHelper.linesContentDomNode)),this._register(yl(this.viewHelper.linesContentDomNode,nE.Tap,(e=>this.onTap(e)))),this._register(yl(this.viewHelper.linesContentDomNode,nE.Change,(e=>this.onChange(e)))),this._register(yl(this.viewHelper.linesContentDomNode,nE.Contextmenu,(e=>this._onContextMenu(new hC(e,!1,this.viewHelper.viewDomNode),!1))))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new hC(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){const e=document.createEvent("CustomEvent");e.initEvent(DE.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position,1)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class GE extends mi{constructor(e,t,i){super(),(Ue||tt&&Ve)&&br?this.handler=this._register(new UE(e,t,i)):cs.TouchEvent?this.handler=this._register(new VE(e,t,i)):this.handler=this._register(new TE(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}class zE extends bC{}const KE=id("themeService");function YE(e){return{id:e}}function qE(e){switch(e){case AC.DARK:return"vs-dark";case AC.HIGH_CONTRAST_DARK:return"hc-black";case AC.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const $E="base.contributions.theming",jE=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new Ri}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),ui((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function XE(e){return jE.onColorThemeChange(e)}dh.add($E,jE);class JE extends mi{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((e=>this.onThemeChange(e))))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}const QE=ib("editor.lineHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/editor/common/core/editorColorRegistry","lineHighlight","Background color for the highlight of line at the cursor position.")),ZE=ib("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:pb},pe("vs/editor/common/core/editorColorRegistry","lineHighlightBorderBox","Background color for the border around the line at the cursor position."));ib("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},pe("vs/editor/common/core/editorColorRegistry","rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),ib("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:fb,hcLight:fb},pe("vs/editor/common/core/editorColorRegistry","rangeHighlightBorder","Background color of the border around highlighted ranges.")),ib("editor.symbolHighlightBackground",{dark:Gb,light:Gb,hcDark:null,hcLight:null},pe("vs/editor/common/core/editorColorRegistry","symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),ib("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:fb,hcLight:fb},pe("vs/editor/common/core/editorColorRegistry","symbolHighlightBorder","Background color of the border around highlighted symbols."));const ew=ib("editorCursor.foreground",{dark:"#AEAFAD",light:Kp.black,hcDark:Kp.white,hcLight:"#0F4A85"},pe("vs/editor/common/core/editorColorRegistry","caret","Color of the editor cursor.")),tw=ib("editorCursor.background",null,pe("vs/editor/common/core/editorColorRegistry","editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),iw=ib("editorMultiCursor.primary.foreground",{dark:ew,light:ew,hcDark:ew,hcLight:ew},pe("vs/editor/common/core/editorColorRegistry","editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),nw=ib("editorMultiCursor.primary.background",{dark:tw,light:tw,hcDark:tw,hcLight:tw},pe("vs/editor/common/core/editorColorRegistry","editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),ow=ib("editorMultiCursor.secondary.foreground",{dark:ew,light:ew,hcDark:ew,hcLight:ew},pe("vs/editor/common/core/editorColorRegistry","editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),sw=ib("editorMultiCursor.secondary.background",{dark:tw,light:tw,hcDark:tw,hcLight:tw},pe("vs/editor/common/core/editorColorRegistry","editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),rw=ib("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},pe("vs/editor/common/core/editorColorRegistry","editorWhitespaces","Color of whitespace characters in the editor.")),aw=ib("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:Kp.white,hcLight:"#292929"},pe("vs/editor/common/core/editorColorRegistry","editorLineNumbers","Color of editor line numbers.")),lw=ib("editorIndentGuide.background",{dark:rw,light:rw,hcDark:rw,hcLight:rw},pe("vs/editor/common/core/editorColorRegistry","editorIndentGuides","Color of the editor indentation guides."),!1,pe("vs/editor/common/core/editorColorRegistry","deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),cw=ib("editorIndentGuide.activeBackground",{dark:rw,light:rw,hcDark:rw,hcLight:rw},pe("vs/editor/common/core/editorColorRegistry","editorActiveIndentGuide","Color of the active editor indentation guides."),!1,pe("vs/editor/common/core/editorColorRegistry","deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),dw=ib("editorIndentGuide.background1",{dark:lw,light:lw,hcDark:lw,hcLight:lw},pe("vs/editor/common/core/editorColorRegistry","editorIndentGuides1","Color of the editor indentation guides (1).")),hw=ib("editorIndentGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorIndentGuides2","Color of the editor indentation guides (2).")),uw=ib("editorIndentGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorIndentGuides3","Color of the editor indentation guides (3).")),gw=ib("editorIndentGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorIndentGuides4","Color of the editor indentation guides (4).")),mw=ib("editorIndentGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorIndentGuides5","Color of the editor indentation guides (5).")),pw=ib("editorIndentGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorIndentGuides6","Color of the editor indentation guides (6).")),fw=ib("editorIndentGuide.activeBackground1",{dark:cw,light:cw,hcDark:cw,hcLight:cw},pe("vs/editor/common/core/editorColorRegistry","editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),_w=ib("editorIndentGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),bw=ib("editorIndentGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),vw=ib("editorIndentGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),Sw=ib("editorIndentGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),Cw=ib("editorIndentGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),Ew=ib("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:fb,hcLight:fb},pe("vs/editor/common/core/editorColorRegistry","editorActiveLineNumber","Color of editor active line number"),!1,pe("vs/editor/common/core/editorColorRegistry","deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."));ib("editorLineNumber.activeForeground",{dark:Ew,light:Ew,hcDark:Ew,hcLight:Ew},pe("vs/editor/common/core/editorColorRegistry","editorActiveLineNumber","Color of editor active line number"));const ww=ib("editorLineNumber.dimmedForeground",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/editor/common/core/editorColorRegistry","editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed."));ib("editorRuler.foreground",{dark:"#5A5A5A",light:Kp.lightgrey,hcDark:Kp.white,hcLight:"#292929"},pe("vs/editor/common/core/editorColorRegistry","editorRuler","Color of the editor rulers.")),ib("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},pe("vs/editor/common/core/editorColorRegistry","editorCodeLensForeground","Foreground color of editor CodeLens")),ib("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},pe("vs/editor/common/core/editorColorRegistry","editorBracketMatchBackground","Background color behind matching brackets")),ib("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:pb,hcLight:pb},pe("vs/editor/common/core/editorColorRegistry","editorBracketMatchBorder","Color for matching brackets boxes"));const Tw=ib("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},pe("vs/editor/common/core/editorColorRegistry","editorOverviewRulerBorder","Color of the overview ruler border.")),yw=ib("editorOverviewRuler.background",null,pe("vs/editor/common/core/editorColorRegistry","editorOverviewRulerBackground","Background color of the editor overview ruler."));ib("editorGutter.background",{dark:yb,light:yb,hcDark:yb,hcLight:yb},pe("vs/editor/common/core/editorColorRegistry","editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),ib("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:Kp.fromHex("#fff").transparent(.8),hcLight:pb},pe("vs/editor/common/core/editorColorRegistry","unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor."));const Rw=ib("editorUnnecessaryCode.opacity",{dark:Kp.fromHex("#000a"),light:Kp.fromHex("#0007"),hcDark:null,hcLight:null},pe("vs/editor/common/core/editorColorRegistry","unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out."));ib("editorGhostText.border",{dark:null,light:null,hcDark:Kp.fromHex("#fff").transparent(.8),hcLight:Kp.fromHex("#292929").transparent(.8)},pe("vs/editor/common/core/editorColorRegistry","editorGhostTextBorder","Border color of ghost text in the editor.")),ib("editorGhostText.foreground",{dark:Kp.fromHex("#ffffff56"),light:Kp.fromHex("#0007"),hcDark:null,hcLight:null},pe("vs/editor/common/core/editorColorRegistry","editorGhostTextForeground","Foreground color of the ghost text in the editor.")),ib("editorGhostText.background",{dark:null,light:null,hcDark:null,hcLight:null},pe("vs/editor/common/core/editorColorRegistry","editorGhostTextBackground","Background color of the ghost text in the editor."));const Lw=new Kp(new Vp(0,122,204,.6)),Iw=ib("editorOverviewRuler.rangeHighlightForeground",{dark:Lw,light:Lw,hcDark:Lw,hcLight:Lw},pe("vs/editor/common/core/editorColorRegistry","overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Aw=ib("editorOverviewRuler.errorForeground",{dark:new Kp(new Vp(255,18,18,.7)),light:new Kp(new Vp(255,18,18,.7)),hcDark:new Kp(new Vp(255,50,50,1)),hcLight:"#B5200D"},pe("vs/editor/common/core/editorColorRegistry","overviewRuleError","Overview ruler marker color for errors.")),Nw=ib("editorOverviewRuler.warningForeground",{dark:Ob,light:Ob,hcDark:xb,hcLight:xb},pe("vs/editor/common/core/editorColorRegistry","overviewRuleWarning","Overview ruler marker color for warnings.")),kw=ib("editorOverviewRuler.infoForeground",{dark:Mb,light:Mb,hcDark:Pb,hcLight:Pb},pe("vs/editor/common/core/editorColorRegistry","overviewRuleInfo","Overview ruler marker color for infos.")),Dw=ib("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},pe("vs/editor/common/core/editorColorRegistry","editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),Ow=ib("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},pe("vs/editor/common/core/editorColorRegistry","editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),xw=ib("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},pe("vs/editor/common/core/editorColorRegistry","editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),Mw=ib("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),Pw=ib("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),Fw=ib("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),Bw=ib("editorBracketHighlight.unexpectedBracket.foreground",{dark:new Kp(new Vp(255,18,18,.8)),light:new Kp(new Vp(255,18,18,.8)),hcDark:new Kp(new Vp(255,50,50,1)),hcLight:""},pe("vs/editor/common/core/editorColorRegistry","editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),Hw=ib("editorBracketPairGuide.background1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),Ww=ib("editorBracketPairGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),Uw=ib("editorBracketPairGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),Vw=ib("editorBracketPairGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),Gw=ib("editorBracketPairGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),zw=ib("editorBracketPairGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),Kw=ib("editorBracketPairGuide.activeBackground1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),Yw=ib("editorBracketPairGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),qw=ib("editorBracketPairGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),$w=ib("editorBracketPairGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),jw=ib("editorBracketPairGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),Xw=ib("editorBracketPairGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},pe("vs/editor/common/core/editorColorRegistry","editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));ib("editorUnicodeHighlight.border",{dark:Ob,light:Ob,hcDark:Ob,hcLight:Ob},pe("vs/editor/common/core/editorColorRegistry","editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),ib("editorUnicodeHighlight.background",{dark:Db,light:Db,hcDark:Db,hcLight:Db},pe("vs/editor/common/core/editorColorRegistry","editorUnicodeHighlight.background","Background color used to highlight unicode characters.")),XE(((e,t)=>{const i=e.getColor(yb),n=e.getColor(QE),o=n&&!n.isTransparent()?n:i;o&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${o}; }`)}));class Jw extends zE{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new Wn(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(67);const t=e.get(68);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(95);const i=e.get(145);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),2!==this._renderLineNumbers&&3!==this._renderLineNumbers||(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onDecorationsChanged(e){return e.affectsLineNumber}_getLineRenderLineNumber(e){const t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Wn(e,1));if(1!==t.column)return"";const i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(2===this._renderLineNumbers){const e=Math.abs(this._lastCursorModelPosition.lineNumber-i);return 0===e?''+i+"":String(e)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===i||i%10==0||i===this._context.viewModel.getLineCount()?String(i):"":String(i)}prepareRender(e){if(0===this._renderLineNumbers)return void(this._renderResult=null);const t=Fe?this._lineHeight%2==0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,o=this._context.viewModel.getDecorationsInViewport(e.visibleRange).filter((e=>!!e.options.lineNumberClassName));o.sort(((e,t)=>Un.compareRangesUsingEnds(e.range,t.range)));let s=0;const r=this._context.viewModel.getLineCount(),a=[];for(let l=i;l<=n;l++){const e=l-i;let n=this._getLineRenderLineNumber(l),c="";for(;s${n}`):a[e]=""}this._renderResult=a}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}Jw.CLASS_NAME="line-numbers",XE(((e,t)=>{const i=e.getColor(aw),n=e.getColor(ww);n?t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${n}; }`):i&&t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${i.transparent(.4)}; }`)}));class Qw extends vC{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(145);this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._domNode=zc(document.createElement("div")),this._domNode.setClassName(Qw.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=zc(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(Qw.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);return this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const i=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(i),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(i)}}Qw.CLASS_NAME="glyph-margin",Qw.OUTER_CLASS_NAME="margin";const Zw="monaco-mouse-cursor-text",eT=new class{constructor(){this._onDidChange=new Ri,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}},tT=id("keybindingService");var iT=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},nT=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class oT{constructor(e,t,i,n,o){this._context=e,this.modelLineNumber=t,this.distanceToModelLineStart=i,this.widthOfHiddenLineTextBefore=n,this.distanceToModelLineEnd=o,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(e){const t=new Wn(this.modelLineNumber,this.distanceToModelLineStart+1),i=new Wn(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(e){return this._previousPresentation||(this._previousPresentation=e||{foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}const sT=hr;let rT=class extends vC{constructor(e,t,i,n,o){super(e),this._keybindingService=n,this._instantiationService=o,this._primaryCursorPosition=new Wn(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._visibleRangeProvider=i,this._scrollLeft=0,this._scrollTop=0;const s=this._context.configuration.options,r=s.get(145);this._setAccessibilityOptions(s),this._contentLeft=r.contentLeft,this._contentWidth=r.contentWidth,this._contentHeight=r.height,this._fontInfo=s.get(50),this._lineHeight=s.get(67),this._emptySelectionClipboard=s.get(37),this._copyWithSyntaxHighlighting=s.get(25),this._visibleTextArea=null,this._selections=[new Vn(1,1,1,1)],this._modelSelections=[new Vn(1,1,1,1)],this._lastRenderPosition=null,this.textArea=zc(document.createElement("textarea")),SC.write(this.textArea,7),this.textArea.setClassName(`inputarea ${Zw}`),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:a}=this._context.viewModel.model.getOptions();this.textArea.domNode.style.tabSize=a*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(s)),this.textArea.setAttribute("aria-required",s.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(s.get(124))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",pe("vs/editor/browser/controller/textAreaHandler","editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-autocomplete",s.get(91)?"none":"both"),this._ensureReadOnlyAttribute(),this.textAreaCover=zc(document.createElement("div")),this.textAreaCover.setPosition("absolute");const l={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:e=>this._context.viewModel.getLineMaxColumn(e),getValueInRange:(e,t)=>this._context.viewModel.getValueInRange(e,t),getValueLengthInRange:(e,t)=>this._context.viewModel.getValueLengthInRange(e,t),modifyPosition:(e,t)=>this._context.viewModel.modifyPosition(e,t)},c={getDataToCopy:()=>{const e=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,Me),t=this._context.viewModel.model.getEOL(),i=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),n=Array.isArray(e)?e:null,o=Array.isArray(e)?e.join(t):e;let s,r=null;if(ME.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&o.length<65536){const e=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);e&&(s=e.html,r=e.mode)}return{isFromEmptySelection:i,multicursorText:n,text:o,html:s,mode:r}},getScreenReaderContent:()=>{if(1===this._accessibilitySupport){const e=this._selections[0];if(Pe&&e.isEmpty()){const t=e.getStartPosition();let i=this._getWordBeforePosition(t);if(0===i.length&&(i=this._getCharacterBeforePosition(t)),i.length>0)return new NE(i,i.length,i.length,Un.fromPositions(t),0)}const t=500;if(Pe&&!e.isEmpty()&&l.getValueLengthInRange(e,0)0)return new NE(i,n,n,Un.fromPositions(t),0)}return NE.EMPTY}return kE.fromEditorSelection(l,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,i)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(e,t,i)},d=this._register(new WE(this.textArea.domNode));this._textAreaInput=this._register(this._instantiationService.createInstance(BE,c,d,qe,{isAndroid:fr,isChrome:gr,isFirefox:hr,isSafari:mr})),this._register(this._textAreaInput.onKeyDown((e=>{this._viewController.emitKeyDown(e)}))),this._register(this._textAreaInput.onKeyUp((e=>{this._viewController.emitKeyUp(e)}))),this._register(this._textAreaInput.onPaste((e=>{let t=!1,i=null,n=null;e.metadata&&(t=this._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,i=void 0!==e.metadata.multicursorText?e.metadata.multicursorText:null,n=e.metadata.mode),this._viewController.paste(e.text,t,i,n)}))),this._register(this._textAreaInput.onCut((()=>{this._viewController.cut()}))),this._register(this._textAreaInput.onType((e=>{e.replacePrevCharCnt||e.replaceNextCharCnt||e.positionDelta?this._viewController.compositionType(e.text,e.replacePrevCharCnt,e.replaceNextCharCnt,e.positionDelta):this._viewController.type(e.text)}))),this._register(this._textAreaInput.onSelectionChangeRequest((e=>{this._viewController.setSelection(e)}))),this._register(this._textAreaInput.onCompositionStart((e=>{const t=this.textArea.domNode,i=this._modelSelections[0],{distanceToModelLineStart:n,widthOfHiddenTextBefore:o}=(()=>{const e=t.value.substring(0,Math.min(t.selectionStart,t.selectionEnd)),n=e.lastIndexOf("\n"),o=e.substring(n+1),s=o.lastIndexOf("\t"),r=o.length-s-1,a=i.getStartPosition(),l=Math.min(a.column-1,r),c=a.column-1-l,d=o.substring(0,o.length-l),{tabSize:h}=this._context.viewModel.model.getOptions();return{distanceToModelLineStart:c,widthOfHiddenTextBefore:function(e,t,i,n){if(0===t.length)return 0;const o=e.createElement("div");o.style.position="absolute",o.style.top="-50000px",o.style.width="50000px";const s=e.createElement("span");Kc(s,i),s.style.whiteSpace="pre",s.style.tabSize=n*i.spaceWidth+"px",s.append(t),o.appendChild(s),e.body.appendChild(o);const r=s.offsetWidth;return e.body.removeChild(o),r}(this.textArea.domNode.ownerDocument,d,this._fontInfo,h)}})(),{distanceToModelLineEnd:s}=(()=>{const e=t.value.substring(Math.max(t.selectionStart,t.selectionEnd)),n=e.indexOf("\n"),o=-1===n?e:e.substring(0,n),s=o.indexOf("\t"),r=-1===s?o.length:o.length-s-1,a=i.getEndPosition(),l=Math.min(this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column,r);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column-l}})();this._context.viewModel.revealRange("keyboard",!0,Un.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new oT(this._context,i.startLineNumber,n,o,s),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${Zw} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()}))),this._register(this._textAreaInput.onCompositionUpdate((e=>{this._visibleTextArea&&(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())}))),this._register(this._textAreaInput.onCompositionEnd((()=>{this._visibleTextArea=null,this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._render(),this.textArea.setClassName(`inputarea ${Zw}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()}))),this._register(this._textAreaInput.onFocus((()=>{this._context.viewModel.setHasFocus(!0)}))),this._register(this._textAreaInput.onBlur((()=>{this._context.viewModel.setHasFocus(!1)}))),this._register(eT.onDidChange((()=>{this._ensureReadOnlyAttribute()})))}writeScreenReaderContent(e){this._textAreaInput.writeNativeTextAreaContent(e)}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=_m('`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',[]);let n=!0,o=e.column,s=!0,r=e.column,a=0;for(;a<50&&(n||s);){if(n&&o<=1&&(n=!1),n){const e=t.charCodeAt(o-2);0!==i.get(e)?n=!1:o--}if(s&&r>t.length&&(s=!1),s){const e=t.charCodeAt(r-1);0!==i.get(e)?s=!1:r++}a++}return[t.substring(o-1,r-1),e.column-o]}_getWordBeforePosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=_m(this._context.configuration.options.get(131),[]);let n=e.column,o=0;for(;n>1;){const s=t.charCodeAt(n-2);if(0!==i.get(s)||o>50)return t.substring(n-1,e.column-1);o++,n--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const t=this._context.viewModel.getLineContent(e.lineNumber).charAt(e.column-2);if(!Bs(t.charCodeAt(0)))return t}return""}_getAriaLabel(e){var t,i,n;if(1===e.get(2)){const e=null===(t=this._keybindingService.lookupKeybinding("editor.action.toggleScreenReaderAccessibilityMode"))||void 0===t?void 0:t.getAriaLabel(),o=null===(i=this._keybindingService.lookupKeybinding("workbench.action.showCommands"))||void 0===i?void 0:i.getAriaLabel(),s=null===(n=this._keybindingService.lookupKeybinding("workbench.action.openGlobalKeybindings"))||void 0===n?void 0:n.getAriaLabel(),r=pe("vs/editor/browser/controller/textAreaHandler","accessibilityModeOff","The editor is not accessible at this time.");return e?pe("vs/editor/browser/controller/textAreaHandler","accessibilityOffAriaLabel","{0} To enable screen reader optimized mode, use {1}",r,e):o?pe("vs/editor/browser/controller/textAreaHandler","accessibilityOffAriaLabelNoKb","{0} To enable screen reader optimized mode, open the quick pick with {1} and run the command Toggle Screen Reader Accessibility Mode, which is currently not triggerable via keyboard.",r,o):s?pe("vs/editor/browser/controller/textAreaHandler","accessibilityOffAriaLabelNoKbs","{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.",r,s):r}return e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);2===this._accessibilitySupport&&t===jt.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t;const i=e.get(145).wrappingColumn;if(-1!==i&&1!==this._accessibilitySupport){const t=e.get(50);this._textAreaWrapping=!0,this._textAreaWidth=Math.round(i*t.typicalHalfwidthCharacterWidth)}else this._textAreaWrapping=!1,this._textAreaWidth=sT?0:1}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(50),this._lineHeight=t.get(67),this._emptySelectionClipboard=t.get(37),this._copyWithSyntaxHighlighting=t.get(25),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:n}=this._context.viewModel.model.getOptions();return this.textArea.domNode.style.tabSize=n*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("aria-required",t.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(t.get(124))),(e.hasChanged(34)||e.hasChanged(91))&&this._ensureReadOnlyAttribute(),e.hasChanged(2)&&this._textAreaInput.writeNativeTextAreaContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeNativeTextAreaContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}_ensureReadOnlyAttribute(){const e=this._context.configuration.options;!eT.enabled||e.get(34)&&e.get(91)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")}prepareRender(e){var t;this._primaryCursorPosition=new Wn(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),null===(t=this._visibleTextArea)||void 0===t||t.prepareRender(e)}render(e){this._textAreaInput.writeNativeTextAreaContent("render"),this._render()}_render(){var e;if(this._visibleTextArea){const e=this._visibleTextArea.visibleTextareaStart,t=this._visibleTextArea.visibleTextareaEnd,i=this._visibleTextArea.startPosition,n=this._visibleTextArea.endPosition;if(i&&n&&e&&t&&t.left>=this._scrollLeft&&e.left<=this._scrollLeft+this._contentWidth){const o=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,s=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let r=this._visibleTextArea.widthOfHiddenLineTextBefore,a=this._contentLeft+e.left-this._scrollLeft,l=t.left-e.left+1;if(athis._contentWidth&&(l=this._contentWidth);const c=this._context.viewModel.getViewLineData(i.lineNumber),d=c.tokens.findTokenIndexAtOffset(i.column-1),h=d===c.tokens.findTokenIndexAtOffset(n.column-1),u=this._visibleTextArea.definePresentation(h?c.tokens.getPresentation(d):null);this.textArea.domNode.scrollTop=s*this._lineHeight,this.textArea.domNode.scrollLeft=r,this._doRender({lastRenderPosition:null,top:o,left:a,width:l,height:this._lineHeight,useCover:!1,color:(go.getColorMap()||[])[u.foreground],italic:u.italic,bold:u.bold,underline:u.underline,strikethrough:u.strikethrough})}return}if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();const t=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(tthis._contentLeft+this._contentWidth)return void this._renderAtTopLeft();const i=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(i<0||i>this._contentHeight)this._renderAtTopLeft();else if(Pe||2===this._accessibilitySupport){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:i,left:this._textAreaWrapping?this._contentLeft:t,width:this._textAreaWidth,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const n=null!==(e=this._textAreaInput.textAreaState.newlineCountBeforeSelection)&&void 0!==e?e:this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=n*this._lineHeight}else this._doRender({lastRenderPosition:this._primaryCursorPosition,top:i,left:this._textAreaWrapping?this._contentLeft:t,width:this._textAreaWidth,height:sT?0:1,useCover:!1})}_newlinecount(e){let t=0,i=-1;for(;i=e.indexOf("\n",i+1),-1!==i;)t++;return t}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:this._textAreaWidth,height:sT?0:1,useCover:!0})}_doRender(e){this._lastRenderPosition=e.lastRenderPosition;const t=this.textArea,i=this.textAreaCover;Kc(t,this._fontInfo),t.setTop(e.top),t.setLeft(e.left),t.setWidth(e.width),t.setHeight(e.height),t.setColor(e.color?Kp.Format.CSS.formatHex(e.color):""),t.setFontStyle(e.italic?"italic":""),e.bold&&t.setFontWeight("bold"),t.setTextDecoration(`${e.underline?" underline":""}${e.strikethrough?" line-through":""}`),i.setTop(e.useCover?e.top:0),i.setLeft(e.useCover?e.left:0),i.setWidth(e.useCover?e.width:0),i.setHeight(e.useCover?e.height:0);const n=this._context.configuration.options;n.get(57)?i.setClassName("monaco-editor-background textAreaCover "+Qw.OUTER_CLASS_NAME):0!==n.get(68).renderType?i.setClassName("monaco-editor-background textAreaCover "+Jw.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")}};function aT(e,t,i){let n=Ts(e);return-1===n&&(n=e.length),function(e,t,i){let n=0;for(let s=0;s!0,cT=()=>!1,dT=e=>" "===e||"\t"===e;class hT{static shouldRecreate(e){return e.hasChanged(145)||e.hasChanged(131)||e.hasChanged(37)||e.hasChanged(77)||e.hasChanged(79)||e.hasChanged(80)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(9)||e.hasChanged(10)||e.hasChanged(14)||e.hasChanged(128)||e.hasChanged(50)||e.hasChanged(91)||e.hasChanged(130)}constructor(e,t,i,n){var o;this.languageConfigurationService=n,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const s=i.options,r=s.get(145),a=s.get(50);this.readOnly=s.get(91),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=s.get(116),this.lineHeight=a.lineHeight,this.typicalHalfwidthCharacterWidth=a.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(r.height/this.lineHeight)-2),this.useTabStops=s.get(128),this.wordSeparators=s.get(131),this.emptySelectionClipboard=s.get(37),this.copyWithSyntaxHighlighting=s.get(25),this.multiCursorMergeOverlapping=s.get(77),this.multiCursorPaste=s.get(79),this.multiCursorLimit=s.get(80),this.autoClosingBrackets=s.get(6),this.autoClosingComments=s.get(7),this.autoClosingQuotes=s.get(11),this.autoClosingDelete=s.get(9),this.autoClosingOvertype=s.get(10),this.autoSurround=s.get(14),this.autoIndent=s.get(12),this.wordSegmenterLocales=s.get(130),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(e,this.autoClosingQuotes,!0),comment:this._getShouldAutoClose(e,this.autoClosingComments,!1),bracket:this._getShouldAutoClose(e,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(e).getAutoClosingPairs();const l=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(l)for(const d of l)this.surroundingPairs[d.open]=d.close;const c=this.languageConfigurationService.getLanguageConfiguration(e).comments;this.blockCommentStartToken=null!==(o=null==c?void 0:c.blockCommentStartToken)&&void 0!==o?o:null}get electricChars(){var e;if(!this._electricChars){this._electricChars={};const t=null===(e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter)||void 0===e?void 0:e.getElectricCharacters();if(t)for(const e of t)this._electricChars[e]=!0}return this._electricChars}onElectricCharacter(e,t,i){const n=fu(t,i-1),o=this.languageConfigurationService.getLanguageConfiguration(n.languageId).electricCharacter;return o?o.onElectricCharacter(e,n,i-n.firstCharOffset):null}normalizeIndentation(e){return aT(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,t,i){switch(t){case"beforeWhitespace":return dT;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e,i);case"always":return lT;case"never":return cT}}_getLanguageDefinedShouldAutoClose(e,t){const i=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet(t);return e=>-1!==i.indexOf(e)}visibleColumnFromColumn(e,t){return UC.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}columnFromVisibleColumn(e,t,i){const n=UC.columnFromVisibleColumn(e.getLineContent(t),i,this.tabSize),o=e.getLineMinColumn(t);if(ns?s:n}}let uT=class e{static fromModelState(e){return new gT(e)}static fromViewState(e){return new mT(e)}static fromModelSelection(t){const i=Vn.liftSelection(t),n=new pT(Un.fromPositions(i.getSelectionStart()),0,0,i.getPosition(),0);return e.fromModelState(n)}static fromModelSelections(e){const t=[];for(let i=0,n=e.length;io,l=n>s,c=ns)continue;if(mn)continue;if(g0&&n--,bT.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,n)}static columnSelectRight(e,t,i){let n=0;const o=Math.min(i.fromViewLineNumber,i.toViewLineNumber),s=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let a=o;a<=s;a++){const i=t.getLineMaxColumn(a),o=e.visibleColumnFromColumn(t,new Wn(a,i));n=Math.max(n,o)}let r=i.toViewVisualColumn;return re.getLineMinColumn(t.lineNumber))return t.delta(void 0,-Ks(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const i=t.lineNumber-1;return new Wn(i,e.getLineMaxColumn(i))}return t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const n=e.getLineMinColumn(t.lineNumber),o=e.getLineContent(t.lineNumber),s=VC.atomicPosition(o,t.column-1,i,0);if(-1!==s&&s+1>=n)return new Wn(t.lineNumber,s+1)}return this.leftPosition(e,t)}static left(e,t,i){const n=e.stickyTabStops?yT.leftPositionAtomicSoftTabs(t,i,e.tabSize):yT.leftPosition(t,i);return new TT(n.lineNumber,n.column,0)}static moveLeft(e,t,i,n,o){let s,r;if(i.hasSelection()&&!n)s=i.selection.startLineNumber,r=i.selection.startColumn;else{const n=i.position.delta(void 0,-(o-1)),a=t.normalizePosition(yT.clipPositionColumn(n,t),0),l=yT.left(e,t,a);s=l.lineNumber,r=l.column}return i.move(n,s,r,0)}static clipPositionColumn(e,t){return new Wn(e.lineNumber,yT.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,i){return ei?i:e}static rightPosition(e,t,i){return ic?(i=c,n=r?t.getLineMaxColumn(i):Math.min(t.getLineMaxColumn(i),n)):n=e.columnFromVisibleColumn(t,i,l),o=u?0:l-UC.visibleColumnFromColumn(t.getLineContent(i),n,e.tabSize),void 0!==a){const e=new Wn(i,n),s=t.normalizePosition(e,a);o+=n-s.column,i=s.lineNumber,n=s.column}return new TT(i,n,o)}static down(e,t,i,n,o,s,r){return this.vertical(e,t,i,n,o,i+s,r,4)}static moveDown(e,t,i,n,o){let s,r;i.hasSelection()&&!n?(s=i.selection.endLineNumber,r=i.selection.endColumn):(s=i.position.lineNumber,r=i.position.column);let a,l=0;do{if(a=yT.down(e,t,s+l,r,i.leftoverVisibleColumns,o,!0),t.normalizePosition(new Wn(a.lineNumber,a.column),2).lineNumber>s)break}while(l++<10&&s+l1&&this._isBlankLine(t,o);)o--;for(;o>1&&!this._isBlankLine(t,o);)o--;return i.move(n,o,t.getLineMinColumn(o),0)}static moveToNextBlankLine(e,t,i,n){const o=t.getLineCount();let s=i.position.lineNumber;for(;s=d.length+1)return!1;const h=d.charAt(c.column-2),u=n.get(h);if(!u)return!1;if(_T(h)){if("never"===i)return!1}else if("never"===t)return!1;const g=d.charAt(c.column-1);let m=!1;for(const e of u)e.open===h&&e.close===g&&(m=!0);if(!m)return!1;if("auto"===e){let e=!1;for(let t=0,i=r.length;t1){const e=t.getLineContent(n.lineNumber),o=Ts(e),s=-1===o?e.length+1:o+1;if(n.column<=s){const e=i.visibleColumnFromColumn(t,n),o=UC.prevIndentTabStop(e,i.indentSize),s=i.columnFromVisibleColumn(t,n.lineNumber,o);return new Un(n.lineNumber,s,n.lineNumber,n.column)}}return Un.fromPositions(RT.getPositionAfterDeleteLeft(n,t),n)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const i=function(e,t){if(0===e)return 0;const i=function(e,t){const i=new Vs(t,e);let n=i.prevCodePoint();for(;sr(n)||65039===n||8419===n;){if(0===i.offset)return;n=i.prevCodePoint()}if(!Zs(n))return;let o=i.offset;return o>0&&8205===i.prevCodePoint()&&(o=i.offset),o}(e,t);if(void 0!==i)return i;const n=new Vs(t,e);return n.prevCodePoint(),n.offset}(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,i+1)}if(e.lineNumber>1){const i=e.lineNumber-1;return new Wn(i,t.getLineMaxColumn(i))}return e}static cut(e,t,i){const n=[];let o=null;i.sort(((e,t)=>Wn.compare(e.getStartPosition(),t.getEndPosition())));for(let s=0,r=i.length;s1&&(null==o?void 0:o.endLineNumber)!==e.lineNumber?(i=e.lineNumber-1,a=t.getLineMaxColumn(e.lineNumber-1),l=e.lineNumber,c=t.getLineMaxColumn(e.lineNumber)):(i=e.lineNumber,a=1,l=e.lineNumber,c=t.getLineMaxColumn(e.lineNumber));const d=new Un(i,a,l,c);o=d,d.isEmpty()?n[s]=null:n[s]=new vT(d,"")}else n[s]=null;else n[s]=new vT(r,"")}return new fT(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}class LT{static _createWord(e,t,i,n,o){return{start:n,end:o,wordType:t,nextCharClass:i}}static _createIntlWord(e,t){return{start:e.index,end:e.index+e.segment.length,wordType:1,nextCharClass:t}}static _findPreviousWordOnLine(e,t,i){const n=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(n,e,i)}static _doFindPreviousWordOnLine(e,t,i){let n=0;const o=t.findPrevIntlWordBeforeOrAtOffset(e,i.column-2);for(let s=i.column-2;s>=0;s--){const i=e.charCodeAt(s),r=t.get(i);if(o&&s===o.index)return this._createIntlWord(o,r);if(0===r){if(2===n)return this._createWord(e,n,r,s+1,this._findEndOfWord(e,t,n,s+1));n=1}else if(2===r){if(1===n)return this._createWord(e,n,r,s+1,this._findEndOfWord(e,t,n,s+1));n=2}else if(1===r&&0!==n)return this._createWord(e,n,r,s+1,this._findEndOfWord(e,t,n,s+1))}return 0!==n?this._createWord(e,n,1,0,this._findEndOfWord(e,t,n,0)):null}static _findEndOfWord(e,t,i,n){const o=t.findNextIntlWordAtOrAfterOffset(e,n),s=e.length;for(let r=n;r=0;s--){const n=e.charCodeAt(s),r=t.get(n);if(o&&s===o.index)return s;if(1===r)return s+1;if(1===i&&2===r)return s+1;if(2===i&&0===r)return s+1}return 0}static moveWordLeft(e,t,i,n){let o=i.lineNumber,s=i.column;1===s&&o>1&&(o-=1,s=t.getLineMaxColumn(o));let r=LT._findPreviousWordOnLine(e,t,new Wn(o,s));if(0===n)return new Wn(o,r?r.start+1:1);if(1===n)return r&&2===r.wordType&&r.end-r.start==1&&0===r.nextCharClass&&(r=LT._findPreviousWordOnLine(e,t,new Wn(o,r.start+1))),new Wn(o,r?r.start+1:1);if(3===n){for(;r&&2===r.wordType;)r=LT._findPreviousWordOnLine(e,t,new Wn(o,r.start+1));return new Wn(o,r?r.start+1:1)}return r&&s<=r.end+1&&(r=LT._findPreviousWordOnLine(e,t,new Wn(o,r.start+1))),new Wn(o,r?r.end+1:1)}static _moveWordPartLeft(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(1===t.column)return i>1?new Wn(i-1,e.getLineMaxColumn(i-1)):t;const o=e.getLineContent(i);for(let s=t.column-1;s>1;s--){const e=o.charCodeAt(s-2),t=o.charCodeAt(s-1);if(95===e&&95!==t)return new Wn(i,s);if(45===e&&45!==t)return new Wn(i,s);if((Ds(e)||ks(e))&&Os(t))return new Wn(i,s);if(Os(e)&&Os(t)&&s+1=a.start+1&&(a=LT._findNextWordOnLine(e,t,new Wn(o,a.end+1))),s=a?a.start+1:t.getLineMaxColumn(o);return new Wn(o,s)}static _moveWordPartRight(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(t.column===n)return i1?l=1:(a--,l=n.getLineMaxColumn(a)):(c&&l<=c.end+1&&(c=LT._findPreviousWordOnLine(i,n,new Wn(a,c.start+1))),c?l=c.end+1:l>1?l=1:(a--,l=n.getLineMaxColumn(a))),new Un(a,l,r.lineNumber,r.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;const n=new Wn(i.positionLineNumber,i.positionColumn);return this._deleteInsideWordWhitespace(t,n)||this._deleteInsideWordDetermineDeleteRange(e,t,n)}static _charAtIsWhitespace(e,t){const i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=i.length;if(0===n)return null;let o=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,o))return null;let s=Math.min(t.column-1,n-1);if(!this._charAtIsWhitespace(i,s))return null;for(;o>0&&this._charAtIsWhitespace(i,o-1);)o--;for(;s+11?new Un(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumbere.start+1<=i.column&&i.column<=e.end+1,r=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new Un(i.lineNumber,e,i.lineNumber,t)),a=e=>{let t=e.start+1,i=e.end+1,s=!1;for(;i-11&&this._charAtIsWhitespace(n,t-2);)t--;return r(t,i)},l=LT._findPreviousWordOnLine(e,t,i);if(l&&s(l))return a(l);const c=LT._findNextWordOnLine(e,t,i);return c&&s(c)?a(c):l&&c?r(l.end+1,c.start+1):l?r(l.start+1,l.end+1):c?r(c.start+1,c.end+1):r(1,o+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),n=LT._moveWordPartLeft(e,i);return new Un(i.lineNumber,i.column,n.lineNumber,n.column)}static _findFirstNonWhitespaceChar(e,t){const i=e.length;for(let n=t;n=h.start+1&&(h=LT._findNextWordOnLine(i,n,new Wn(a,h.end+1))),h?l=h.start+1:lBoolean(e)))}class NT{static addCursorDown(e,t,i){const n=[];let o=0;for(let s=0,r=t.length;st&&(i=t,n=e.model.getLineMaxColumn(i)),uT.fromModelState(new pT(new Un(s.lineNumber,1,i,n),2,0,new Wn(i,n),0))}const a=t.modelState.selectionStart.getStartPosition().lineNumber;if(s.lineNumbera){const i=e.getLineCount();let n=r.lineNumber+1,o=1;return n>i&&(n=i,o=e.getLineMaxColumn(n)),uT.fromViewState(t.viewState.move(!0,n,o,0))}{const e=t.modelState.selectionStart.getEndPosition();return uT.fromModelState(t.modelState.move(!0,e.lineNumber,e.column,0))}}static word(e,t,i,n){const o=e.model.validatePosition(n);return uT.fromModelState(LT.word(e.cursorConfig,e.model,t.modelState,i,o))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new uT(t.modelState,t.viewState);const i=t.viewState.position.lineNumber,n=t.viewState.position.column;return uT.fromViewState(new pT(new Un(i,n,i,n),0,0,new Wn(i,n),0))}static moveTo(e,t,i,n,o){if(i){if(1===t.modelState.selectionStartKind)return this.word(e,t,i,n);if(2===t.modelState.selectionStartKind)return this.line(e,t,i,n,o)}const s=e.model.validatePosition(n),r=o?e.coordinatesConverter.validateViewPosition(new Wn(o.lineNumber,o.column),s):e.coordinatesConverter.convertModelPositionToViewPosition(s);return uT.fromViewState(t.viewState.move(i,r.lineNumber,r.column,0))}static simpleMove(e,t,i,n,o,s){switch(i){case 0:return 4===s?this._moveHalfLineLeft(e,t,n):this._moveLeft(e,t,n,o);case 1:return 4===s?this._moveHalfLineRight(e,t,n):this._moveRight(e,t,n,o);case 2:return 2===s?this._moveUpByViewLines(e,t,n,o):this._moveUpByModelLines(e,t,n,o);case 3:return 2===s?this._moveDownByViewLines(e,t,n,o):this._moveDownByModelLines(e,t,n,o);case 4:return 2===s?t.map((t=>uT.fromViewState(yT.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,n)))):t.map((t=>uT.fromModelState(yT.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,n))));case 5:return 2===s?t.map((t=>uT.fromViewState(yT.moveToNextBlankLine(e.cursorConfig,e,t.viewState,n)))):t.map((t=>uT.fromModelState(yT.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,n))));case 6:return this._moveToViewMinColumn(e,t,n);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,n);case 8:return this._moveToViewCenterColumn(e,t,n);case 9:return this._moveToViewMaxColumn(e,t,n);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,n);default:return null}}static viewportMove(e,t,i,n,o){const s=e.getCompletelyVisibleViewRange(),r=e.coordinatesConverter.convertViewRangeToModelRange(s);switch(i){case 11:{const i=this._firstLineNumberInRange(e.model,r,o),s=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,s)]}case 13:{const i=this._lastLineNumberInRange(e.model,r,o),s=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,s)]}case 12:{const i=Math.round((r.startLineNumber+r.endLineNumber)/2),o=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,o)]}case 14:{const i=[];for(let o=0,r=t.length;oi.endLineNumber-1?i.endLineNumber-1:ouT.fromViewState(yT.moveLeft(e.cursorConfig,e,t.viewState,i,n))))}static _moveHalfLineLeft(e,t,i){const n=[];for(let o=0,s=t.length;ouT.fromViewState(yT.moveRight(e.cursorConfig,e,t.viewState,i,n))))}static _moveHalfLineRight(e,t,i){const n=[];for(let o=0,s=t.length;o1&&0===o.firstCharOffset){const e=Dg(t,i.startLineNumber-1);e.languageId===o.languageId&&(c=e.getLineContent())}const d=s.onEnter(e,c,a,l);if(!d)return null;const h=d.indentAction;let u=d.appendText;const g=d.removeText||0;u?h===uu.Indent&&(u="\t"+u):u=h===uu.Indent||h===uu.IndentOutdent?"\t":"";let m=kg(t,i.startLineNumber,i.startColumn);return g&&(m=m.substring(0,m.length-g)),{indentAction:h,appendText:u,removeText:g,indentation:m}}!function(e){e.metadata={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine',\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:function(e){if(!$(e))return!1;const t=e;return!(!q(t.to)||!Z(t.select)&&!Q(t.select)||!Z(t.by)&&!q(t.by)||!Z(t.value)&&!X(t.value))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},e.parse=function(t){if(!t.to)return null;let i;switch(t.to){case e.RawDirection.Left:i=0;break;case e.RawDirection.Right:i=1;break;case e.RawDirection.Up:i=2;break;case e.RawDirection.Down:i=3;break;case e.RawDirection.PrevBlankLine:i=4;break;case e.RawDirection.NextBlankLine:i=5;break;case e.RawDirection.WrappedLineStart:i=6;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:i=7;break;case e.RawDirection.WrappedLineColumnCenter:i=8;break;case e.RawDirection.WrappedLineEnd:i=9;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:i=10;break;case e.RawDirection.ViewPortTop:i=11;break;case e.RawDirection.ViewPortBottom:i=13;break;case e.RawDirection.ViewPortCenter:i=12;break;case e.RawDirection.ViewPortIfOutside:i=14;break;default:return null}let n=0;switch(t.by){case e.RawUnit.Line:n=1;break;case e.RawUnit.WrappedLine:n=2;break;case e.RawUnit.Character:n=3;break;case e.RawUnit.HalfLine:n=4}return{direction:i,unit:n,select:!!t.select,value:t.value||1}}}(kT||(kT={}));var OT,xT=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},MT=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const PT=Object.create(null);function FT(e,t){if(t<=0)return"";PT[e]||(PT[e]=["",e]);const i=PT[e];for(let n=i.length;n<=t;n++)i[n]=i[n-1]+e;return i[t]}let BT=OT=class{static unshiftIndent(e,t,i,n,o){const s=UC.visibleColumnFromColumn(e,t,i);if(o){const e=FT(" ",n);return FT(e,UC.prevIndentTabStop(s,n)/n)}return FT("\t",UC.prevRenderTabStop(s,i)/i)}static shiftIndent(e,t,i,n,o){const s=UC.visibleColumnFromColumn(e,t,i);if(o){const e=FT(" ",n);return FT(e,UC.nextIndentTabStop(s,n)/n)}return FT("\t",UC.nextRenderTabStop(s,i)/i)}constructor(e,t,i){this._languageConfigurationService=i,this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}_addEditOperation(e,t,i){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,i):e.addEditOperation(t,i)}getEditOperations(e,t){const i=this._selection.startLineNumber;let n=this._selection.endLineNumber;1===this._selection.endColumn&&i!==n&&(n-=1);const{tabSize:o,indentSize:s,insertSpaces:r}=this._opts,a=i===n;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0);let l=0,c=0;for(let d=i;d<=n;d++,l=c){c=0;const n=e.getLineContent(d);let h,u=Ts(n);if((!this._opts.isUnshift||0!==n.length&&0!==u)&&(a||this._opts.isUnshift||0!==n.length)){if(-1===u&&(u=n.length),d>1&&UC.visibleColumnFromColumn(n,u+1,o)%s!=0&&e.tokenization.isCheapToTokenize(d-1)){const t=DT(this._opts.autoIndent,e,new Un(d-1,e.getLineMaxColumn(d-1),d-1,e.getLineMaxColumn(d-1)),this._languageConfigurationService);if(t){if(c=l,t.appendText)for(let e=0,i=t.appendText.length;e0&&""===t.getLineContent(l);l--)if(1===l)return{indentation:"",action:null};const r=function(e,t,i){const n=e.tokenization.getLanguageIdAtPosition(t,0);if(t>1){let o,s=-1;for(o=t-1;o>=1;o--){if(e.tokenization.getLanguageIdAtPosition(o,0)!==n)return s;const t=e.getLineContent(o);if(!i.shouldIgnore(t)&&!/^\s+$/.test(t)&&""!==t)return o;s=o}}return-1}(t,i,s);if(r<0)return null;if(r<1)return{indentation:"",action:null};const a=t.getLineContent(r);if(s.shouldIncrease(a)||s.shouldIndentNextLine(a))return{indentation:ys(a),action:uu.Indent,line:r};if(s.shouldDecrease(a))return{indentation:ys(a),action:null,line:r};{if(1===r)return{indentation:ys(t.getLineContent(r)),action:null,line:r};const e=r-1,i=s.getIndentMetadata(t.getLineContent(e));if(!(3&i)&&4&i){let i=0;for(let n=e-1;n>0;n--)if(!s.shouldIndentNextLine(t.getLineContent(n))){i=n;break}return{indentation:ys(t.getLineContent(i+1)),action:null,line:i+1}}if(n)return{indentation:ys(t.getLineContent(r)),action:null,line:r};for(let n=r;n>0;n--){const e=t.getLineContent(n);if(s.shouldIncrease(e))return{indentation:ys(e),action:uu.Indent,line:n};if(s.shouldIndentNextLine(e)){let e=0;for(let i=n-1;i>0;i--)if(!s.shouldIndentNextLine(t.getLineContent(n))){e=i;break}return{indentation:ys(t.getLineContent(e+1)),action:null,line:e+1}}if(s.shouldDecrease(e))return{indentation:ys(e),action:null,line:n}}return{indentation:ys(t.getLineContent(1)),action:null,line:1}}}function VT(e,t,i,n,o,s){if(e<4)return null;const r=s.getLanguageConfiguration(i);if(!r)return null;const a=s.getLanguageConfiguration(i).indentRulesSupport;if(!a)return null;const l=UT(e,t,n,void 0,s),c=t.getLineContent(n);if(l){const i=l.line;if(void 0!==i){let s=!0;for(let e=i;ee.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null}class zT{static indent(e,t,i){if(null===t||null===i)return[];const n=[];for(let o=0,s=i.length;o1){let n;for(n=i-1;n>=1&&!(Rs(t.getLineContent(n))>=0);n--);if(n<1)return null;const s=t.getLineMaxColumn(n),r=DT(e.autoIndent,t,new Un(n,s,n,s),e.languageConfigurationService);r&&(o=r.indentation+r.appendText)}return n&&(n===uu.Indent&&(o=zT.shiftIndent(e,o)),n===uu.Outdent&&(o=zT.unshiftIndent(e,o)),o=e.normalizeIndentation(o)),o||null}static _replaceJumpToNextIndent(e,t,i,n){let o="";const s=i.getStartPosition();if(e.insertSpaces){const i=e.visibleColumnFromColumn(t,s),n=e.indentSize,r=n-i%n;for(let e=0;ethis._compositionType(i,e,o,s,r,a)));return new fT(4,l,{shouldPushStackElementBefore:$T(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,n,o,s){if(!t.isEmpty())return null;const r=t.getPosition(),a=Math.max(1,r.column-n),l=Math.min(e.getLineMaxColumn(r.lineNumber),r.column+o),c=new Un(r.lineNumber,a,r.lineNumber,l);return e.getValueInRange(c)===i&&0===s?null:new ET(c,i,0,s)}static _typeCommand(e,t,i){return i?new CT(e,t,!0):new vT(e,t,!0)}static _enter(e,t,i,n){if(0===e.autoIndent)return zT._typeCommand(n,"\n",i);if(!t.tokenization.isCheapToTokenize(n.getStartPosition().lineNumber)||1===e.autoIndent){const o=ys(t.getLineContent(n.startLineNumber)).substring(0,n.startColumn-1);return zT._typeCommand(n,"\n"+e.normalizeIndentation(o),i)}const o=DT(e.autoIndent,t,n,e.languageConfigurationService);if(o){if(o.indentAction===uu.None)return zT._typeCommand(n,"\n"+e.normalizeIndentation(o.indentation+o.appendText),i);if(o.indentAction===uu.Indent)return zT._typeCommand(n,"\n"+e.normalizeIndentation(o.indentation+o.appendText),i);if(o.indentAction===uu.IndentOutdent){const t=e.normalizeIndentation(o.indentation),s=e.normalizeIndentation(o.indentation+o.appendText),r="\n"+s+"\n"+t;return i?new CT(n,r,!0):new ET(n,r,-1,s.length-t.length,!0)}if(o.indentAction===uu.Outdent){const t=zT.unshiftIndent(e,o.indentation);return zT._typeCommand(n,"\n"+e.normalizeIndentation(t+o.appendText),i)}}const s=ys(t.getLineContent(n.startLineNumber)).substring(0,n.startColumn-1);if(e.autoIndent>=4){const o=function(e,t,i,n,o){if(e<4)return null;t.tokenization.forceTokenization(i.startLineNumber);const s=t.tokenization.getLineTokens(i.startLineNumber),r=fu(s,i.startColumn-1),a=r.getLineContent();let l,c,d=!1;r.firstCharOffset>0&&s.getLanguageId(0)!==r.languageId?(d=!0,l=a.substr(0,i.startColumn-1-r.firstCharOffset)):l=s.getLineContent().substring(0,i.startColumn-1),c=i.isEmpty()?a.substr(i.startColumn-1-r.firstCharOffset):Dg(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-r.firstCharOffset);const h=o.getLanguageConfiguration(r.languageId).indentRulesSupport;if(!h)return null;const u=l,g=ys(l),m={tokenization:{getLineTokens:e=>t.tokenization.getLineTokens(e),getLanguageId:()=>t.getLanguageId(),getLanguageIdAtPosition:(e,i)=>t.getLanguageIdAtPosition(e,i)},getLineContent:e=>e===i.startLineNumber?u:t.getLineContent(e)},p=ys(s.getLineContent()),f=UT(e,m,i.startLineNumber+1,void 0,o);if(!f){const e=d?p:g;return{beforeEnter:e,afterEnter:e}}let _=d?p:f.indentation;return f.action===uu.Indent&&(_=n.shiftIndent(_)),h.shouldDecrease(c)&&(_=n.unshiftIndent(_)),{beforeEnter:d?p:g,afterEnter:_}}(e.autoIndent,t,n,{unshiftIndent:t=>zT.unshiftIndent(e,t),shiftIndent:t=>zT.shiftIndent(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)},e.languageConfigurationService);if(o){let s=e.visibleColumnFromColumn(t,n.getEndPosition());const r=n.endColumn,a=Ts(t.getLineContent(n.endLineNumber));if(n=a>=0?n.setEndPosition(n.endLineNumber,Math.max(n.endColumn,a+1)):n.setEndPosition(n.endLineNumber,t.getLineMaxColumn(n.endLineNumber)),i)return new CT(n,"\n"+e.normalizeIndentation(o.afterEnter),!0);{let t=0;return r<=a+1&&(e.insertSpaces||(s=Math.ceil(s/e.indentSize)),t=Math.min(s+1-e.normalizeIndentation(o.afterEnter).length-1,0)),new ET(n,"\n"+e.normalizeIndentation(o.afterEnter),0,t,!0)}}}return zT._typeCommand(n,"\n"+e.normalizeIndentation(s),i)}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let n=0,o=i.length;nzT.shiftIndent(e,t),unshiftIndent:t=>zT.unshiftIndent(e,t)},e.languageConfigurationService);if(null===s)return null;if(s!==e.normalizeIndentation(o)){const o=t.getLineFirstNonWhitespaceColumn(i.startLineNumber);return 0===o?zT._typeCommand(new Un(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(s)+n,!1):zT._typeCommand(new Un(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(s)+t.getLineContent(i.startLineNumber).substring(o-1,i.startColumn-1)+n,!1)}return null}static _isAutoClosingOvertype(e,t,i,n,o){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(o))return!1;for(let s=0,r=i.length;s2?l.charCodeAt(a.column-2):0)&&c)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=n.length;tt.startsWith(e.open))),r=o.some((e=>t.startsWith(e.close)));return!s&&r}static _findAutoClosingPairOpen(e,t,i,n){const o=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n);if(!o)return null;let s=null;for(const r of o)if(null===s||r.open.length>s.open.length){let e=!0;for(const o of i)if(t.getValueInRange(new Un(o.lineNumber,o.column-r.open.length+1,o.lineNumber,o.column))+n!==r.open){e=!1;break}e&&(s=r)}return s}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const i=t.close.charAt(t.close.length-1),n=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let o=null;for(const s of n)s.open!==t.open&&t.open.includes(s.open)&&t.close.endsWith(s.close)&&(!o||s.open.length>o.open.length)&&(o=s);return o}static _getAutoClosingPairClose(e,t,i,n,o){for(const u of i)if(!u.isEmpty())return null;const s=i.map((e=>{const t=e.getPosition();return o?{lineNumber:t.lineNumber,beforeColumn:t.column-n.length,afterColumn:t.column}:{lineNumber:t.lineNumber,beforeColumn:t.column,afterColumn:t.column}})),r=this._findAutoClosingPairOpen(e,t,s.map((e=>new Wn(e.lineNumber,e.beforeColumn))),n);if(!r)return null;let a,l;if(_T(n)?(a=e.autoClosingQuotes,l=e.shouldAutoCloseBefore.quote):e.blockCommentStartToken&&r.open.includes(e.blockCommentStartToken)?(a=e.autoClosingComments,l=e.shouldAutoCloseBefore.comment):(a=e.autoClosingBrackets,l=e.shouldAutoCloseBefore.bracket),"never"===a)return null;const c=this._findContainedAutoClosingPair(e,r),d=c?c.close:"";let h=!0;for(const u of s){const{lineNumber:i,beforeColumn:o,afterColumn:s}=u,c=t.getLineContent(i),g=c.substring(0,o-1),m=c.substring(s-1);if(m.startsWith(d)||(h=!1),m.length>0){const t=m.charAt(0);if(!zT._isBeforeClosingBrace(e,m)&&!l(t))return null}if(1===r.open.length&&("'"===n||'"'===n)&&"always"!==a){const t=_m(e.wordSeparators,[]);if(g.length>0){const e=g.charCodeAt(g.length-1);if(0===t.get(e))return null}}if(!t.tokenization.isCheapToTokenize(i))return null;t.tokenization.forceTokenization(i);const p=fu(t.tokenization.getLineTokens(i),o-1);if(!r.shouldAutoClose(p,o-p.firstCharOffset))return null;const f=r.findNeutralCharacter();if(f){const e=t.tokenization.getTokenTypeIfInsertingCharacter(i,o,f);if(!r.isOK(e))return null}}return h?r.close.substring(0,r.close.length-d.length):r.close}static _runAutoClosingOpenCharType(e,t,i,n,o,s,r){const a=[];for(let l=0,c=n.length;lnew vT(new Un(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)));return new fT(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const c=this._getAutoClosingPairClose(t,i,o,a,!0);return null!==c?this._runAutoClosingOpenCharType(e,t,i,o,a,!0,c):null}static typeWithInterceptors(e,t,i,n,o,s,r){if(!e&&"\n"===r){const e=[];for(let t=0,s=o.length;t{const i=e.get(nd).getFocusedCodeEditor();return!(!i||!i.hasTextFocus())&&this._runEditorCommand(e,i,t)})),e.addImplementation(1e3,"generic-dom-input-textarea",((e,t)=>{const i=Xl();return!!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)&&(this.runDOMCommand(i),!0)})),e.addImplementation(0,"generic-dom",((e,t)=>{const i=e.get(nd).getActiveCodeEditor();return!!i&&(i.focus(),this._runEditorCommand(e,i,t))}))}_runEditorCommand(e,t,i){return this.runEditorCommand(e,t,i)||!0}}!function(e){class t extends ty{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[NT.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)])&&2!==t.revealType&&e.revealAllCursors(t.source,!0,!0))}}e.MoveTo=Uh(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=Uh(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class i extends ty{runCoreEditorCommand(e,t){e.model.pushStackElement();const i=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);null!==i&&(e.setCursorStates(t.source,3,i.viewStates.map((e=>uT.fromViewState(e)))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:i.fromLineNumber,fromViewVisualColumn:i.fromVisualColumn,toViewLineNumber:i.toLineNumber,toViewVisualColumn:i.toVisualColumn}),i.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source))}}e.ColumnSelect=Uh(new class extends i{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,i,n){if(void 0===n.position||void 0===n.viewPosition||void 0===n.mouseColumn)return null;const o=e.model.validatePosition(n.position),s=e.coordinatesConverter.validateViewPosition(new Wn(n.viewPosition.lineNumber,n.viewPosition.column),o),r=n.doColumnSelect?i.fromViewLineNumber:s.lineNumber,a=n.doColumnSelect?i.fromViewVisualColumn:n.mouseColumn-1;return bT.columnSelect(e.cursorConfig,e,r,a,s.lineNumber,n.mouseColumn-1)}}),e.CursorColumnSelectLeft=Uh(new class extends i{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return bT.columnSelectLeft(e.cursorConfig,e,i)}}),e.CursorColumnSelectRight=Uh(new class extends i{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return bT.columnSelectRight(e.cursorConfig,e,i)}});class n extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return bT.columnSelectUp(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectUp=Uh(new n({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=Uh(new n({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:3595,linux:{primary:0}}}));class o extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return bT.columnSelectDown(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectDown=Uh(new o({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=Uh(new o({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:3596,linux:{primary:0}}}));class s extends ty{constructor(){super({id:"cursorMove",precondition:void 0,metadata:kT.metadata})}runCoreEditorCommand(e,t){const i=kT.parse(t);i&&this._runCursorMove(e,t.source,i)}_runCursorMove(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,s._move(e,e.getCursorStates(),i)),e.revealAllCursors(t,!0)}static _move(e,t,i){const n=i.select,o=i.value;switch(i.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return NT.simpleMove(e,t,i.direction,n,o,i.unit);case 11:case 13:case 12:case 14:return NT.viewportMove(e,t,i.direction,n,o);default:return null}}}e.CursorMoveImpl=s,e.CursorMove=Uh(new s);class r extends ty{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.pageSize||e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,NT.simpleMove(e,e.getCursorStates(),i.direction,i.select,i.value,i.unit)),e.revealAllCursors(t.source,!0)}}e.CursorLeft=Uh(new r({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=Uh(new r({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:1039}})),e.CursorRight=Uh(new r({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=Uh(new r({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:1041}})),e.CursorUp=Uh(new r({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=Uh(new r({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=Uh(new r({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:11}})),e.CursorPageUpSelect=Uh(new r({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:1035}})),e.CursorDown=Uh(new r({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=Uh(new r({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=Uh(new r({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:12}})),e.CursorPageDownSelect=Uh(new r({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:1036}})),e.CreateCursor=Uh(new class extends ty{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;let i;i=t.wholeLine?NT.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):NT.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);const n=e.getCursorStates();if(n.length>1){const o=i.modelState?i.modelState.position:null,s=i.viewState?i.viewState.position:null;for(let i=0,r=n.length;is&&(o=s);const r=new Un(o,1,o,e.model.getLineMaxColumn(o));let a=0;if(i.at)switch(i.at){case ZT.RawAtArgument.Top:a=3;break;case ZT.RawAtArgument.Center:a=1;break;case ZT.RawAtArgument.Bottom:a=4}const l=e.coordinatesConverter.convertModelRangeToViewRange(r);e.revealRange(t.source,!1,l,a,0)}}),e.SelectAll=new class extends iy{constructor(){super(Xh)}runDOMCommand(e){hr&&(e.focus(),e.select()),e.ownerDocument.execCommand("selectAll")}runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditorCommand(n,i)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[NT.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=Uh(new class extends ty{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){t.selection&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[uT.fromModelSelection(t.selection)]))}})}(ey||(ey={}));const ny=Dd.and(JT.textInputFocus,JT.columnSelection);function oy(e,t){uh.registerKeybindingRule({id:e,primary:t,when:ny,weight:1})}function sy(e){return e.register(),e}var ry,ay;oy(ey.CursorColumnSelectLeft.id,1039),oy(ey.CursorColumnSelectRight.id,1041),oy(ey.CursorColumnSelectUp.id,1040),oy(ey.CursorColumnSelectPageUp.id,1035),oy(ey.CursorColumnSelectDown.id,1042),oy(ey.CursorColumnSelectPageDown.id,1036),function(e){class t extends Ph{runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditingCommand(t,n,i||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=Uh(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:JT.writable,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,zT.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection))))}}),e.Outdent=Uh(new class extends t{constructor(){super({id:"outdent",precondition:JT.writable,kbOpts:{weight:0,kbExpr:Dd.and(JT.editorTextFocus,JT.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,zT.outdent(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.Tab=Uh(new class extends t{constructor(){super({id:"tab",precondition:JT.writable,kbOpts:{weight:0,kbExpr:Dd.and(JT.editorTextFocus,JT.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,zT.tab(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.DeleteLeft=Uh(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,i){const[n,o]=RT.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)),t.getCursorAutoClosedCharacters());n&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(2)}}),e.DeleteRight=Uh(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,i){const[n,o]=RT.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)));n&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(3)}}),e.Undo=new class extends iy{constructor(){super($h)}runDOMCommand(e){e.ownerDocument.execCommand("undo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(91))return t.getModel().undo()}},e.Redo=new class extends iy{constructor(){super(jh)}runDOMCommand(e){e.ownerDocument.execCommand("redo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(91))return t.getModel().redo()}}}(ry||(ry={}));class ly extends Oh{constructor(e,t,i){super({id:e,precondition:void 0,metadata:i}),this._handlerId=t}runCommand(e,t){const i=e.get(nd).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}}function cy(e,t){sy(new ly("default:"+e,e)),sy(new ly(e,e,t))}cy("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),cy("replacePreviousChar"),cy("compositionType"),cy("compositionStart"),cy("compositionEnd"),cy("paste"),cy("cut");class dy{constructor(e,t,i,n){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=n}paste(e,t,i,n){this.commandDelegate.paste(e,t,i,n)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,n){this.commandDelegate.compositionType(e,t,i,n)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){ey.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position,e.revealType):this._lastCursorLineSelect(e.position,e.revealType):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):2===e.mouseDownCount?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position,e.revealType):e.inSelectionMode?this._wordSelectDrag(e.position,e.revealType):this._wordSelect(e.position,e.revealType)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position,e.revealType):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey||n?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position,e.revealType):this.moveTo(e.position,e.revealType)}_usualArgs(e,t){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,revealType:t}}moveTo(e,t){ey.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_moveToSelect(e,t){ey.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_columnSelect(e,t,i){e=this._validateViewColumn(e),ey.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),ey.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e,t){ey.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelect(e,t){ey.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelectDrag(e,t){ey.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorWordSelect(e,t){ey.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelect(e,t){ey.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelectDrag(e,t){ey.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelect(e,t){ey.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelectDrag(e,t){ey.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_selectAll(){ey.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}class hy{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new ai("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(0===this.getCount())return null;const i=this.getStartLineNumber(),n=this.getEndLineNumber();if(tn)return null;let o=0,s=0;for(let r=i;r<=n;r++){const i=r-this._rendLineNumberStart;e<=r&&r<=t&&(0===s?(o=i,s=1):s++)}if(e=n&&r<=o&&(this._lines[r-this._rendLineNumberStart].onContentChanged(),s=!0);return s}onLinesInserted(e,t){if(0===this.getCount())return null;const i=t-e+1,n=this.getStartLineNumber(),o=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>o)return null;if(i+e>o)return this._lines.splice(e-this._rendLineNumberStart,o-e+1);const s=[];for(let d=0;di)continue;const r=Math.max(t,s.fromLineNumber),a=Math.min(i,s.toLineNumber);for(let e=r;e<=a;e++){const t=e-this._rendLineNumberStart;this._lines[t].onTokensChanged(),n=!0}}return n}}class uy{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new hy((()=>this._host.createVisibleLine()))}_createDomNode(){const e=zc(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(145)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,n=t.length;it){const e=t,s=Math.min(i,o.rendLineNumberStart-1);e<=s&&(this._insertLinesBefore(o,e,s,n,t),o.linesLength+=s-e+1)}else if(o.rendLineNumberStart0&&(this._removeLinesBefore(o,e),o.linesLength-=e)}if(o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1i){const e=Math.max(0,i-o.rendLineNumberStart+1),t=o.linesLength-1-e+1;t>0&&(this._removeLinesAfter(o,t),o.linesLength-=t)}return this._finishRendering(o,!1,n),o}_renderUntouchedLines(e,t,i,n,o){const s=e.rendLineNumberStart,r=e.lines;for(let a=t;a<=i;a++){const e=s+a;r[a].layoutLine(e,n[e-o],this.viewportData.lineHeight)}}_insertLinesBefore(e,t,i,n,o){const s=[];let r=0;for(let a=t;a<=i;a++)s[r++]=this.host.createVisibleLine();e.lines=s.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i=0;r--){const t=e.lines[r];n[r]&&(t.setDomNode(s),s=s.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const n=document.createElement("div");gy._ttPolicy&&(t=gy._ttPolicy.createHTML(t)),n.innerHTML=t;for(let o=0;oe}),gy._sb=new xu(1e5);class my extends vC{constructor(e){super(e),this._visibleLines=new uy(this),this.domNode=this._visibleLines.domNode;const t=this._context.configuration.options.get(50);Kc(this.domNode,t),this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;ee.shouldRender()));for(let i=0,n=t.length;i'),o.appendString(s),o.appendString(""),!0)}layoutLine(e,t,i){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(i))}}class fy extends my{constructor(e){super(e);const t=this._context.configuration.options.get(145);this._contentWidth=t.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const t=this._context.configuration.options.get(145);return this._contentWidth=t.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class _y extends my{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(145);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),Kc(this.domNode,t.get(50))}onConfigurationChanged(e){const t=this._context.configuration.options;Kc(this.domNode,t.get(50));const i=t.get(145);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class by{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){var t;null===(t=this.onKeyDown)||void 0===t||t.call(this,e)}emitKeyUp(e){var t;null===(t=this.onKeyUp)||void 0===t||t.call(this,e)}emitContextMenu(e){var t;null===(t=this.onContextMenu)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseMove(e){var t;null===(t=this.onMouseMove)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){var t;null===(t=this.onMouseLeave)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDown(e){var t;null===(t=this.onMouseDown)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseUp(e){var t;null===(t=this.onMouseUp)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){var t;null===(t=this.onMouseDrag)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){var t;null===(t=this.onMouseDrop)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){var e;null===(e=this.onMouseDropCanceled)||void 0===e||e.call(this)}emitMouseWheel(e){var t;null===(t=this.onMouseWheel)||void 0===t||t.call(this,e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return by.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i={...e};return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),5!==i.type&&8!==i.type||(i.detail=this.convertViewToModelViewZoneData(i.detail,t)),i}static convertViewToModelViewZoneData(e,t){return{viewZoneId:e.viewZoneId,positionBefore:e.positionBefore?t.convertViewPositionToModelPosition(e.positionBefore):e.positionBefore,positionAfter:e.positionAfter?t.convertViewPositionToModelPosition(e.positionAfter):e.positionAfter,position:t.convertViewPositionToModelPosition(e.position),afterLineNumber:t.convertViewPositionToModelPosition(new Wn(e.afterLineNumber,1)).lineNumber}}}class vy extends vC{constructor(e){super(e),this.blocks=[],this.contentWidth=-1,this.contentLeft=0,this.domNode=zc(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("blockDecorations-container"),this.update()}update(){let e=!1;const t=this._context.configuration.options.get(145),i=t.contentWidth-t.verticalScrollbarWidth;this.contentWidth!==i&&(this.contentWidth=i,e=!0);const n=t.contentLeft;return this.contentLeft!==n&&(this.contentLeft=n,e=!0),e}dispose(){super.dispose()}onConfigurationChanged(e){return this.update()}onScrollChanged(e){return e.scrollTopChanged||e.scrollLeftChanged}onDecorationsChanged(e){return!0}onZonesChanged(e){return!0}prepareRender(e){}render(e){var t;let i=0;const n=e.getDecorationsInViewport();for(const o of n){if(!o.options.blockClassName)continue;let n,s,r=this.blocks[i];r||(r=this.blocks[i]=zc(document.createElement("div")),this.domNode.appendChild(r)),o.options.blockIsAfterEnd?(n=e.getVerticalOffsetAfterLineNumber(o.range.endLineNumber,!1),s=e.getVerticalOffsetAfterLineNumber(o.range.endLineNumber,!0)):(n=e.getVerticalOffsetForLineNumber(o.range.startLineNumber,!0),s=o.range.isEmpty()&&!o.options.blockDoesNotCollapse?e.getVerticalOffsetForLineNumber(o.range.startLineNumber,!1):e.getVerticalOffsetAfterLineNumber(o.range.endLineNumber,!0));const[a,l,c,d]=null!==(t=o.options.blockPadding)&&void 0!==t?t:[0,0,0,0];r.setClassName("blockDecorations-block "+o.options.blockClassName),r.setLeft(this.contentLeft-d),r.setWidth(this.contentWidth+d+l),r.setTop(n-e.scrollTop-a),r.setHeight(s-n+a+c),i++}for(let o=i;o0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,n){const o=e.top,s=o,r=e.top+e.height,a=o-i,l=s>=i,c=r,d=n.viewportHeight-r>=i;let h=e.left;return h+t>n.scrollLeft+n.viewportWidth&&(h=n.scrollLeft+n.viewportWidth-t),hr){const e=l-(r-n);l-=e,i-=e}if(l=22,_=u+i<=g.height-22;return this._fixedOverflowWidgets?{fitsAbove:f,aboveTop:Math.max(h,22),fitsBelow:_,belowTop:u,left:p}:{fitsAbove:f,aboveTop:r,fitsBelow:_,belowTop:a,left:m}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new wy(e.top,e.left+this._contentLeft)}_getAnchorsCoordinates(e){var t,i;return{primary:n(this._primaryAnchor.viewPosition,this._affinity,this._lineHeight),secondary:n((null===(t=this._secondaryAnchor.viewPosition)||void 0===t?void 0:t.lineNumber)===(null===(i=this._primaryAnchor.viewPosition)||void 0===i?void 0:i.lineNumber)?this._secondaryAnchor.viewPosition:null,this._affinity,this._lineHeight)};function n(t,i,n){if(!t)return null;const o=e.visibleRangeForPosition(t);if(!o)return null;const s=1===t.column&&3===i?0:o.left,r=e.getVerticalOffsetForLineNumber(t.lineNumber)-e.scrollTop;return new Ty(r,s,n)}}_reduceAnchorCoordinates(e,t,i){if(!t)return e;const n=this._context.configuration.options.get(50);let o=t.left;return o=oe.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData)return this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),void("function"==typeof this._actual.afterRender&&yy(this._actual.afterRender,this._actual,null));this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),"function"==typeof this._actual.afterRender&&yy(this._actual.afterRender,this._actual,this._renderData.position)}}class Ey{constructor(e,t){this.modelPosition=e,this.viewPosition=t}}class wy{constructor(e,t){this.top=e,this.left=t,this._coordinateBrand=void 0}}class Ty{constructor(e,t,i){this.top=e,this.left=t,this.height=i,this._anchorCoordinateBrand=void 0}}function yy(e,t,...i){try{return e.call(t,...i)}catch(sue){return null}}class Ry extends zE{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(145);this._renderLineHighlight=t.get(96),this._renderLineHighlightOnlyWhenFocus=t.get(97),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new Vn(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=new Set;for(const o of this._selections)t.add(o.positionLineNumber);const i=Array.from(t);i.sort(((e,t)=>e-t)),b(this._cursorLineNumbers,i)||(this._cursorLineNumbers=i,e=!0);const n=this._selections.every((e=>e.isEmpty()));return this._selectionIsEmpty!==n&&(this._selectionIsEmpty=n,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);return this._renderLineHighlight=t.get(96),this._renderLineHighlightOnlyWhenFocus=t.get(97),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return!!this._renderLineHighlightOnlyWhenFocus&&(this._focused=e.isFocused,!0)}prepareRender(e){if(!this._shouldRenderThis())return void(this._renderData=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=[];for(let s=t;s<=i;s++)n[s-t]="";if(this._wordWrap){const o=this._renderOne(e,!1);for(const e of this._cursorLineNumbers){const s=this._context.viewModel.coordinatesConverter,r=s.convertViewPositionToModelPosition(new Wn(e,1)).lineNumber,a=s.convertModelPositionToViewPosition(new Wn(r,1)).lineNumber,l=s.convertModelPositionToViewPosition(new Wn(r,this._context.viewModel.model.getLineMaxColumn(r))).lineNumber,c=Math.max(a,t),d=Math.min(l,i);for(let e=c;e<=d;e++)n[e-t]=o}}const o=this._renderOne(e,!0);for(const s of this._cursorLineNumbers)si||(n[s-t]=o);this._renderData=n}render(e,t){if(!this._renderData)return"";const i=t-e;return i>=this._renderData.length?"":this._renderData[i]}_shouldRenderInMargin(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class Ly extends Ry{_renderOne(e,t){return`
`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class Iy extends Ry{_renderOne(e,t){return`
`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}XE(((e,t)=>{const i=e.getColor(QE);if(i&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${i}; border: none; }`)),!i||i.isTransparent()||e.defines(ZE)){const i=e.getColor(ZE);i&&(t.addRule(`.monaco-editor .view-overlays .current-line-exact { border: 2px solid ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-exact-margin { border: 2px solid ${i}; }`),NC(e.type)&&(t.addRule(".monaco-editor .view-overlays .current-line-exact { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-exact-margin { border-width: 1px; }")))}}));class Ay extends zE{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],n=0;for(let a=0,l=t.length;a{if(e.options.zIndext.options.zIndex)return 1;const i=e.options.className,n=t.options.className;return in?1:Un.compareRangesUsingStarts(e.range,t.range)}));const o=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,r=[];for(let a=o;a<=s;a++)r[a-o]="";this._renderWholeLineDecorations(e,i,r),this._renderNormalDecorations(e,i,r),this._renderResult=r}_renderWholeLineDecorations(e,t,i){const n=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber;for(let s=0,r=t.length;s',a=Math.max(e.range.startLineNumber,n),l=Math.min(e.range.endLineNumber,o);for(let t=a;t<=l;t++)i[t-n]+=r}}_renderNormalDecorations(e,t,i){var n;const o=e.visibleRange.startLineNumber;let s=null,r=!1,a=null,l=!1;for(let c=0,d=t.length;c';r[t]+=c}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class Ny extends vC{constructor(e,t,i,n){super(e);const o=this._context.configuration.options,s=o.get(103),r=o.get(75),a=o.get(40),l=o.get(106),c={listenOnDomNode:i.domNode,className:"editor-scrollable "+qE(e.theme.type),useShadows:!1,lazyRender:!0,vertical:s.vertical,horizontal:s.horizontal,verticalHasArrows:s.verticalHasArrows,horizontalHasArrows:s.horizontalHasArrows,verticalScrollbarSize:s.verticalScrollbarSize,verticalSliderSize:s.verticalSliderSize,horizontalScrollbarSize:s.horizontalScrollbarSize,horizontalSliderSize:s.horizontalSliderSize,handleMouseWheel:s.handleMouseWheel,alwaysConsumeMouseWheel:s.alwaysConsumeMouseWheel,arrowSize:s.arrowSize,mouseWheelScrollSensitivity:r,fastScrollSensitivity:a,scrollPredominantAxis:l,scrollByPage:s.scrollByPage};this.scrollbar=this._register(new EE(t.domNode,c,this._context.viewLayout.getScrollable())),SC.write(this.scrollbar.getDomNode(),6),this.scrollbarDomNode=zc(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const d=(e,t,i)=>{const n={};if(t){const t=e.scrollTop;t&&(n.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(i){const t=e.scrollLeft;t&&(n.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(n,1)};this._register(yl(i.domNode,"scroll",(e=>d(i.domNode,!0,!0)))),this._register(yl(t.domNode,"scroll",(e=>d(t.domNode,!0,!1)))),this._register(yl(n.domNode,"scroll",(e=>d(n.domNode,!0,!1)))),this._register(yl(this.scrollbarDomNode.domNode,"scroll",(e=>d(this.scrollbarDomNode.domNode,!0,!1))))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(145);this.scrollbarDomNode.setLeft(t.contentLeft),"right"===e.get(73).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this.scrollbar.delegateScrollFromMouseWheelEvent(e)}onConfigurationChanged(e){if(e.hasChanged(103)||e.hasChanged(75)||e.hasChanged(40)){const e=this._context.configuration.options,t=e.get(103),i=e.get(75),n=e.get(40),o=e.get(106),s={vertical:t.vertical,horizontal:t.horizontal,verticalScrollbarSize:t.verticalScrollbarSize,horizontalScrollbarSize:t.horizontalScrollbarSize,scrollByPage:t.scrollByPage,handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:n,scrollPredominantAxis:o};this.scrollbar.updateOptions(s)}return e.hasChanged(145)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+qE(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}class ky{constructor(e,t,i,n,o){this.startLineNumber=e,this.endLineNumber=t,this.className=i,this.tooltip=n,this._decorationToRenderBrand=void 0,this.zIndex=null!=o?o:0}}class Dy{constructor(e,t,i){this.className=e,this.zIndex=t,this.tooltip=i}}class Oy{constructor(){this.decorations=[]}add(e){this.decorations.push(e)}getDecorations(){return this.decorations}}class xy extends zE{_render(e,t,i){const n=[];for(let r=e;r<=t;r++)n[r-e]=new Oy;if(0===i.length)return n;i.sort(((e,t)=>e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.classNamen)continue;const a=Math.max(s,i),l=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Wn(a,0)),c=this._context.viewModel.glyphLanes.getLanesAtLine(l.lineNumber).indexOf(o.preference.lane);t.push(new Fy(a,c,o.preference.zIndex,o))}}_collectSortedGlyphRenderRequests(e){const t=[];return this._collectDecorationBasedGlyphRenderRequest(e,t),this._collectWidgetBasedGlyphRenderRequest(e,t),t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.laneIndex===t.laneIndex?e.zIndex===t.zIndex?t.type===e.type?0===e.type&&0===t.type?e.className0;){const e=t.peek();if(!e)break;const n=t.takeWhile((t=>t.lineNumber===e.lineNumber&&t.laneIndex===e.laneIndex));if(!n||0===n.length)break;const o=n[0];if(0===o.type){const e=[];for(const t of n){if(t.zIndex!==o.zIndex||t.type!==o.type)break;0!==e.length&&e[e.length-1]===t.className||e.push(t.className)}i.push(o.accept(e.join(" ")))}else o.widget.renderInfo={lineNumber:o.lineNumber,laneIndex:o.laneIndex}}this._decorationGlyphsToRender=i}render(e){if(!this._glyphMargin){for(const e of Object.values(this._widgets))e.domNode.setDisplay("none");for(;this._managedDomNodes.length>0;){const e=this._managedDomNodes.pop();null==e||e.domNode.remove()}return}const t=Math.round(this._glyphMarginWidth/this._glyphMarginDecorationLaneCount);for(const i of Object.values(this._widgets))if(i.renderInfo){const n=e.viewportData.relativeVerticalOffset[i.renderInfo.lineNumber-e.viewportData.startLineNumber],o=this._glyphMarginLeft+i.renderInfo.laneIndex*this._lineHeight;i.domNode.setDisplay("block"),i.domNode.setTop(n),i.domNode.setLeft(o),i.domNode.setWidth(t),i.domNode.setHeight(this._lineHeight)}else i.domNode.setDisplay("none");for(let i=0;ithis._decorationGlyphsToRender.length;){const e=this._managedDomNodes.pop();null==e||e.domNode.remove()}}}class Py{constructor(e,t,i,n){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.className=n,this.type=0}accept(e){return new By(this.lineNumber,this.laneIndex,e)}}class Fy{constructor(e,t,i,n){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.widget=n,this.type=1}}class By{constructor(e,t,i){this.lineNumber=e,this.laneIndex=t,this.combinedClassName=i}}class Hy extends mi{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}function Wy(e,t){let i=0,n=0;const o=e.length;for(;nn)throw new ai("Illegal value for lineNumber");const o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(o&&o.offSide);let r=-2,a=-1,l=-2,c=-1;const d=e=>{if(-1!==r&&(-2===r||r>e-1)){r=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){r=t,a=e;break}}}if(-2===l){l=-1,c=-1;for(let t=e;t=0){l=t,c=e;break}}}};let h=-2,u=-1,g=-2,m=-1;const p=e=>{if(-2===h){h=-1,u=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){h=t,u=e;break}}}if(-1!==g&&(-2===g||g=0){g=t,m=e;break}}}};let f=0,_=!0,b=0,v=!0,S=0,C=0;for(let E=0;_||v;E++){const o=e-E,r=e+E;E>1&&(o<1||o1&&(r>n||r>i)&&(v=!1),E>5e4&&(_=!1,v=!1);let g=-1;if(_&&o>=1){const e=this._computeIndentLevel(o-1);e>=0?(l=o-1,c=e,g=Math.ceil(e/this.textModel.getOptions().indentSize)):(d(o),g=this._getIndentLevelForWhitespaceLine(s,a,c))}let w=-1;if(v&&r<=n){const e=this._computeIndentLevel(r-1);e>=0?(h=r-1,u=e,w=Math.ceil(e/this.textModel.getOptions().indentSize)):(p(r),w=this._getIndentLevelForWhitespaceLine(s,u,m))}if(0!==E){if(1===E){if(r<=n&&w>=0&&C+1===w){_=!1,f=r,b=r,S=w;continue}if(o>=1&&g>=0&&g-1===C){v=!1,f=o,b=o,S=g;continue}if(f=e,b=e,S=C,0===S)return{startLineNumber:f,endLineNumber:b,indent:S}}_&&(g>=S?f=o:_=!1),v&&(w>=S?b=r:v=!1)}else C=g}return{startLineNumber:f,endLineNumber:b,indent:S}}getLinesBracketGuides(e,t,i,n){var o;const s=[];for(let d=e;d<=t;d++)s.push([]);const r=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new Un(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let a;i&&r.length>0&&(a=null===(o=Wm((e<=i.lineNumber&&i.lineNumber<=t?r:this.textModel.bracketPairs.getBracketPairsInRange(Un.fromPositions(i)).toArray()).filter((e=>Un.strictContainsPosition(e.range,i))),(e=>!0)))||void 0===o?void 0:o.range);const l=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,c=new zy;for(const d of r){if(!d.closingBracketRange)continue;const i=a&&d.range.equalsRange(a);if(!i&&!n.includeInactive)continue;const o=c.getInlineClassName(d.nestingLevel,d.nestingLevelOfEqualBracketType,l)+(n.highlightActive&&i?" "+c.activeClassName:""),r=d.openingBracketRange.getStartPosition(),h=d.closingBracketRange.getStartPosition(),u=n.horizontalGuides===ay.Enabled||n.horizontalGuides===ay.EnabledForActive&&i;if(d.range.startLineNumber===d.range.endLineNumber){u&&s[d.range.startLineNumber-e].push(new Uy(-1,d.openingBracketRange.getEndPosition().column,o,new Vy(!1,h.column),-1,-1));continue}const g=this.getVisibleColumnFromPosition(h),m=this.getVisibleColumnFromPosition(d.openingBracketRange.getStartPosition()),p=Math.min(m,g,d.minVisibleColumnIndentation+1);let f=!1;Ts(this.textModel.getLineContent(d.closingBracketRange.startLineNumber))=e&&m>p&&s[r.lineNumber-e].push(new Uy(p,-1,o,new Vy(!1,r.column),-1,-1)),h.lineNumber<=t&&g>p&&s[h.lineNumber-e].push(new Uy(p,-1,o,new Vy(!f,h.column),-1,-1)))}for(const d of s)d.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return s}getVisibleColumnFromPosition(e){return UC.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const n=this.textModel.getOptions(),o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(o&&o.offSide),r=new Array(t-e+1);let a=-2,l=-1,c=-2,d=-1;for(let h=e;h<=t;h++){const t=h-e,o=this._computeIndentLevel(h-1);if(o>=0)a=h-1,l=o,r[t]=Math.ceil(o/n.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=h-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==c&&(-2===c||c=0){c=e,d=t;break}}}r[t]=this._getIndentLevelForWhitespaceLine(s,l,d)}}return r}_getIndentLevelForWhitespaceLine(e,t,i){const n=this.textModel.getOptions();return-1===t||-1===i?0:ta||this._maxIndentLeft>0&&i>this._maxIndentLeft)break;const s=t.horizontalLine?t.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",r=t.horizontalLine?(null!==(o=null===(n=e.visibleRangeForPosition(new Wn(h,t.horizontalLine.endColumn)))||void 0===n?void 0:n.left)&&void 0!==o?o:i+this._spaceWidth)-i:this._spaceWidth;u+=`
`}d[r]=u}this._renderResult=d}getGuidesByLine(e,t,i){const n=!1!==this._bracketPairGuideOptions.bracketPairs?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:!0===this._bracketPairGuideOptions.bracketPairsHorizontal?ay.Enabled:"active"===this._bracketPairGuideOptions.bracketPairsHorizontal?ay.EnabledForActive:ay.Disabled,includeInactive:!0===this._bracketPairGuideOptions.bracketPairs}):null,o=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let s=0,r=0,a=0;if(!1!==this._bracketPairGuideOptions.highlightActiveIndentation&&i){const n=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);s=n.startLineNumber,r=n.endLineNumber,a=n.indent}const{indentSize:l}=this._context.viewModel.model.getOptions(),c=[];for(let d=e;d<=t;d++){const t=new Array;c.push(t);const i=n?n[d-e]:[],h=new z(i),u=o?o[d-e]:0;for(let e=1;e<=u;e++){const n=(e-1)*l+1,o=("always"===this._bracketPairGuideOptions.highlightActiveIndentation||0===i.length)&&s<=d&&d<=r&&e===a;t.push(...h.takeWhile((e=>e.visibleColumn!0))||[])}return c}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function Yy(e){if(!e||!e.isTransparent())return e}XE(((e,t)=>{const i=[{bracketColor:Dw,guideColor:Hw,guideColorActive:Kw},{bracketColor:Ow,guideColor:Ww,guideColorActive:Yw},{bracketColor:xw,guideColor:Uw,guideColorActive:qw},{bracketColor:Mw,guideColor:Vw,guideColorActive:$w},{bracketColor:Pw,guideColor:Gw,guideColorActive:jw},{bracketColor:Fw,guideColor:zw,guideColorActive:Xw}],n=new zy,o=[{indentColor:dw,indentColorActive:fw},{indentColor:hw,indentColorActive:_w},{indentColor:uw,indentColorActive:bw},{indentColor:gw,indentColorActive:vw},{indentColor:mw,indentColorActive:Sw},{indentColor:pw,indentColorActive:Cw}],s=i.map((t=>{var i,n;const o=e.getColor(t.bracketColor),s=e.getColor(t.guideColor),r=e.getColor(t.guideColorActive),a=Yy(null!==(i=Yy(s))&&void 0!==i?i:null==o?void 0:o.transparent(.3)),l=Yy(null!==(n=Yy(r))&&void 0!==n?n:o);if(a&&l)return{guideColor:a,guideColorActive:l}})).filter(ee),r=o.map((t=>{const i=e.getColor(t.indentColor),n=e.getColor(t.indentColorActive),o=Yy(i),s=Yy(n);if(o&&s)return{indentColor:o,indentColorActive:s}})).filter(ee);if(s.length>0){for(let e=0;e<30;e++){const i=s[e%s.length];t.addRule(`.monaco-editor .${n.getInlineClassNameOfLevel(e).replace(/ /g,".")} { --guide-color: ${i.guideColor}; --guide-color-active: ${i.guideColorActive}; }`)}t.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),t.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),t.addRule(`.monaco-editor .vertical.${n.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),t.addRule(`.monaco-editor .horizontal-top.${n.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),t.addRule(`.monaco-editor .horizontal-bottom.${n.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}if(r.length>0){for(let e=0;e<30;e++){const i=r[e%r.length];t.addRule(`.monaco-editor .lines-content .core-guide-indent.lvl-${e} { --indent-color: ${i.indentColor}; --indent-color-active: ${i.indentColorActive}; }`)}t.addRule(".monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 var(--indent-color) inset; }"),t.addRule(".monaco-editor .lines-content .core-guide-indent.indent-active { box-shadow: 1px 0 0 0 var(--indent-color-active) inset; }")}}));class qy{get didDomLayout(){return this._didDomLayout}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;const e=this._domNode.getBoundingClientRect();this.markDidDomLayout(),this._clientRectDeltaLeft=e.left,this._clientRectScale=e.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}constructor(e,t){this._domNode=e,this.endNode=t,this._didDomLayout=!1,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1}markDidDomLayout(){this._didDomLayout=!0}}class $y{constructor(){this._currentVisibleRange=new Un(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class jy{constructor(e,t,i,n,o,s,r){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=n,this.startScrollTop=o,this.stopScrollTop=s,this.scrollType=r,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class Xy{constructor(e,t,i,n,o){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=n,this.scrollType=o,this.type="selections";let s=t[0].startLineNumber,r=t[0].endLineNumber;for(let a=1,l=t.length;a{this._updateLineWidthsSlow()}),200),this._asyncCheckMonospaceFontAssumptions=new Kr((()=>{this._checkMonospaceFontAssumptions()}),2e3),this._lastRenderedData=new $y,this._horizontalRevealRequest=null,this._stickyScrollEnabled=n.get(115).enabled,this._maxNumberStickyLines=n.get(115).maxLineCount}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new MC(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(146)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(50),n=t.get(146);return this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=n.isViewportWrapping,this._revealHorizontalRightPadding=t.get(100),this._cursorSurroundingLines=t.get(29),this._cursorSurroundingLinesStyle=t.get(30),this._canUseLayerHinting=!t.get(32),this._stickyScrollEnabled=t.get(115).enabled,this._maxNumberStickyLines=t.get(115).maxLineCount,Kc(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(145)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new xC(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const e=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let t=e;t<=i;t++)this._visibleLines.getVisibleLine(t).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=!1;for(let o=t;o<=i;o++)n=this._visibleLines.getVisibleLine(o).onSelectionChanged()||n;return n}onDecorationsChanged(e){{const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(-1===t)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new jy(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new Xy(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const n=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,n),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopi)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(null===i)return null;const n=this._getLineNumberFor(i);if(-1===n)return null;if(n<1||n>this._context.viewModel.getLineCount())return null;if(1===this._context.viewModel.getLineMaxColumn(n))return new Wn(n,1);const o=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber();if(ns)return null;let r=this._visibleLines.getVisibleLine(n).getColumnOfNodeOffset(e,t);const a=this._context.viewModel.getLineMinColumn(n);return ri)return-1;const n=new qy(this.domNode.domNode,this._textRangeRestingSpot),o=this._visibleLines.getVisibleLine(e).getWidth(n);return this._updateLineWidthsSlowIfDomDidLayout(n),o}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,n=Un.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!n)return null;const o=[];let s=0;const r=new qy(this.domNode.domNode,this._textRangeRestingSpot);let a=0;t&&(a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Wn(n.startLineNumber,1)).lineNumber);const l=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber();for(let d=n.startLineNumber;d<=n.endLineNumber;d++){if(dc)continue;const e=d===n.startLineNumber?n.startColumn:1,h=d!==n.endLineNumber,u=h?this._context.viewModel.getLineMaxColumn(d):n.endColumn,g=this._visibleLines.getVisibleLine(d).getVisibleRangesForRange(d,e,u,r);if(g){if(t&&dthis._visibleLines.getEndLineNumber())return null;const n=new qy(this.domNode.domNode,this._textRangeRestingSpot),o=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,n);return this._updateLineWidthsSlowIfDomDidLayout(n),o}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new RC(t.outsideRenderedLine,t.ranges[0].left):null}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidthsSlowIfDomDidLayout(e){e.didDomLayout&&(this._asyncUpdateLineWidths.isScheduled()||(this._asyncUpdateLineWidths.cancel(),this._updateLineWidthsSlow()))}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=1,o=!0;for(let s=t;s<=i;s++){const t=this._visibleLines.getVisibleLine(s);!e||t.getWidthIsFast()?n=Math.max(n,t.getWidth(null)):o=!1}return o&&1===t&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(n),o}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let o=i;o<=n;o++){const i=this._visibleLines.getVisibleLine(o);if(i.needsMonospaceFontCheck()){const n=i.getWidth(null);n>t&&(t=n,e=o)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let o=i;o<=n;o++)this._visibleLines.getVisibleLine(o).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const e=this._computeScrollLeftToReveal(t);e&&(this._isViewportWrapping||this._ensureMaxLineWidth(e.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},t.scrollType))}}if(this._updateLineWidthsFast()?this._asyncUpdateLineWidths.cancel():this._asyncUpdateLineWidths.schedule(),Fe&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)if(this._visibleLines.getVisibleLine(i).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth0){let e=o[0].startLineNumber,t=o[0].endLineNumber;for(let i=1,n=o.length;ia){if(!c)return-1;u=d}else if(5===s||6===s)if(6===s&&r<=d&&h<=l)u=r;else{const e=d-Math.max(5*this._lineHeight,.2*a),t=h-a;u=Math.max(t,e)}else if(1===s||2===s)if(2===s&&r<=d&&h<=l)u=r;else{const e=(d+h)/2;u=Math.max(0,e-a/2)}else u=this._computeMinimumScrolling(r,l,d,h,3===s,4===s);return u}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=this._context.configuration.options.get(145),n=t.left,o=n+t.width-i.verticalScrollbarWidth;let s=1073741824,r=0;if("range"===e.type){const t=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!t)return null;for(const e of t.ranges)s=Math.min(s,Math.round(e.left)),r=Math.max(r,Math.round(e.left+e.width))}else for(const a of e.selections){if(a.startLineNumber!==a.endLineNumber)return null;const e=this._visibleRangesForLineRange(a.startLineNumber,a.startColumn,a.endColumn);if(!e)return null;for(const t of e.ranges)s=Math.min(s,Math.round(t.left)),r=Math.max(r,Math.round(t.left+t.width))}return e.minimalReveal||(s=Math.max(0,s-Jy.HORIZONTAL_EXTRA_PX),r+=this._revealHorizontalRightPadding),"selections"===e.type&&r-s>t.width?null:{scrollLeft:this._computeMinimumScrolling(n,o,s,r),maxHorizontalOffset:r}}_computeMinimumScrolling(e,t,i,n,o,s){o=!!o,s=!!s;const r=(t|=0)-(e|=0);return(n|=0)-(i|=0)t?Math.max(0,n-r):e:i}}Jy.HORIZONTAL_EXTRA_PX=30;class Qy extends xy{constructor(e){super(),this._context=e;const t=this._context.configuration.options.get(145);this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options.get(145);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){var t,i;const n=e.getDecorationsInViewport(),o=[];let s=0;for(let r=0,a=n.length;r',s=[];for(let r=t;r<=i;r++){const e=r-t,i=n[e].getDecorations();let a="";for(const t of i){let e='
';o[e]=r}this._renderResult=o}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class eR{constructor(e,t,i,n){this._rgba8Brand=void 0,this.r=eR._clamp(e),this.g=eR._clamp(t),this.b=eR._clamp(i),this.a=eR._clamp(n)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:0|e}}eR.Empty=new eR(0,0,0,0);class tR extends mi{static getInstance(){return this._INSTANCE||(this._INSTANCE=new tR),this._INSTANCE}constructor(){super(),this._onDidChange=new Ri,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(go.onDidChange((e=>{e.changedColorMap&&this._updateColorMap()})))}_updateColorMap(){const e=go.getColorMap();if(!e)return this._colors=[eR.Empty],void(this._backgroundIsLight=!0);this._colors=[eR.Empty];for(let i=1;i=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}tR._INSTANCE=null;const iR=(()=>{const e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})();class nR{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=nR.soften(e,.8),this.charDataLight=nR.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let n=0,o=e.length;ne.width||i+g>e.height)return;const m=c?this.charDataLight:this.charDataNormal,p=(y=n,R=l,(y-=32)<0||y>96?R<=2?(y+96)%96:95:y),f=4*e.width,_=r.r,b=r.g,v=r.b,S=o.r-_,C=o.g-b,E=o.b-v,w=Math.max(s,a),T=e.data;var y,R;let L=p*h*u,I=i*f+4*t;for(let A=0;Ae.width||i+d>e.height)return;const h=4*e.width,u=o/255*.5,g=s.r,m=s.g,p=s.b,f=g+(n.r-g)*u,_=m+(n.g-m)*u,b=p+(n.b-p)*u,v=Math.max(o,r),S=e.data;let C=i*h+4*t;for(let E=0;E{const t=new Uint8ClampedArray(e.length/2);for(let i=0;i>1]=oR[e[i]]<<4|15&oR[e[i+1]];return t},rR={1:li((()=>sR("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792"))),2:li((()=>sR("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")))};class aR{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return i=rR[e]?new nR(rR[e](),e):aR.createFromSampleData(aR.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",i.fillStyle="#ffffff",i.font=`bold 16px ${e}`,i.textBaseline="middle";let n=0;for(const o of iR)i.fillText(String.fromCharCode(o),n,8),n+=10;return i.getImageData(0,0,960,16)}static createFromSampleData(e,t){if(61440!==e.length)throw new Error("Unexpected source in MinimapCharRenderer");const i=aR._downsample(e,t);return new nR(i,t)}static _downsampleChar(e,t,i,n,o){const s=1*o,r=2*o;let a=n,l=0;for(let c=0;c0){const e=255/a;for(let t=0;taR.create(this.fontScale,a.fontFamily))),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=cR._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=cR._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(Ov);return i?new eR(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(xv);return t?eR._clamp(Math.round(255*t.rgba.a)):255}static _getSectionHeaderColor(e,t){const i=e.getColor(Rb);return i?new eR(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.paddingTop===e.paddingTop&&this.paddingBottom===e.paddingBottom&&this.showSlider===e.showSlider&&this.autohide===e.autohide&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.sectionHeaderFontSize===e.sectionHeaderFontSize&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class dR{constructor(e,t,i,n,o,s,r,a,l){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=n,this.sliderTop=o,this.sliderHeight=s,this.topPaddingLineCount=r,this.startLineNumber=a,this.endLineNumber=l}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}intersectWithViewport(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumber,e.endLineNumber);return t>i?null:[t,i]}getYForLineNumber(e,t){return+(e-this.startLineNumber+this.topPaddingLineCount)*t}static create(e,t,i,n,o,s,r,a,l,c,d){const h=e.pixelRatio,u=e.minimapLineHeight,g=Math.floor(e.canvasInnerHeight/u),m=e.lineHeight;if(e.minimapHeightIsEditorHeight){let t=a*e.lineHeight+e.paddingTop+e.paddingBottom;e.scrollBeyondLastLine&&(t+=Math.max(0,o-e.lineHeight-e.paddingBottom));const i=Math.max(1,Math.floor(o*o/t)),n=Math.max(0,e.minimapHeight-i),s=n/(c-o),d=l*s,h=n>0,u=Math.floor(e.canvasInnerHeight/e.minimapLineHeight),g=Math.floor(e.paddingTop/e.lineHeight);return new dR(l,c,h,s,d,i,g,1,Math.min(r,u))}let p;if(s&&i!==r){const e=i-t+1;p=Math.floor(e*u/h)}else{const e=o/m;p=Math.floor(e*u/h)}const f=Math.floor(e.paddingTop/m);let _,b=Math.floor(e.paddingBottom/m);if(e.scrollBeyondLastLine){const e=o/m;b=Math.max(b,e-1)}_=b>0?(f+r+b-o/m-1)*u/h:Math.max(0,(f+r)*u/h-p),_=Math.min(e.minimapHeight-p,_);const v=_/(c-o),S=l*v;if(g>=f+r+b)return new dR(l,c,_>0,v,S,p,f,1,r);{let i,o;i=t>1?t+f:Math.max(1,l/m);let s=Math.max(1,Math.floor(i-S*h/u));sl&&(s=Math.min(s,d.startLineNumber),o=Math.max(o,d.topPaddingLineCount)),d.scrollTop=e.paddingTop?(t-s+o+_)*u/h:l/e.paddingTop*(o+_)*u/h,new dR(l,c,!0,v,b,p,o,s,a)}}}class hR{constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}hR.INVALID=new hR(-1);class uR{constructor(e,t,i){this.renderedLayout=e,this._imageData=t,this._renderedLines=new hy((()=>hR.INVALID)),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const t=this._renderedLines._get().lines;for(let i=0,n=t.length;i1){for(let t=0,i=n-1;t0&&this.minimapLines[i-1]>=e;)i--;let n=this.modelLineToMinimapLine(t)-1;for(;n+1t)return null}return[i+1,n+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),n=this.modelLineToMinimapLine(t);return e!==t&&n===i&&(n===this.minimapLines.length?i>1&&i--:n++),[i,n]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,n=0;for(let o=this.minimapLines.length-1;o>=0&&!(this.minimapLines[o]=0&&!(this.minimapLines[i]0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(n)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=mR.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const n of i)switch(n.type){case"deleted":this._actual.onLinesDeleted(n.deleteFromLineNumber,n.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(n.insertFromLineNumber,n.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const n=[];for(let o=0,s=t-e+1;o{var t;return!(null===(t=e.options.minimap)||void 0===t?void 0:t.sectionHeaderStyle)}));if(this._samplingState){const e=[];for(const t of i){if(!t.options.minimap)continue;const i=t.range,n=this._samplingState.modelLineToMinimapLine(i.startLineNumber),o=this._samplingState.modelLineToMinimapLine(i.endLineNumber);e.push(new jf(new Un(n,i.startColumn,o,i.endColumn),t.options))}return e}return i}getSectionHeaderDecorationsInViewport(e,t){const i=this.options.minimapLineHeight,n=this.options.sectionHeaderFontSize/i;return e=Math.floor(Math.max(1,e-n)),this._getMinimapDecorationsInViewport(e,t).filter((e=>{var t;return!!(null===(t=e.options.minimap)||void 0===t?void 0:t.sectionHeaderStyle)}))}_getMinimapDecorationsInViewport(e,t){let i;if(this._samplingState){const n=this._samplingState.minimapLines[e-1],o=this._samplingState.minimapLines[t-1];i=new Un(n,1,o,this._context.viewModel.getLineMaxColumn(o))}else i=new Un(e,1,t,this._context.viewModel.getLineMaxColumn(t));return this._context.viewModel.getMinimapDecorationsInRange(i)}getSectionHeaderText(e,t){var i;const n=null===(i=e.options.minimap)||void 0===i?void 0:i.sectionHeaderText;if(!n)return null;const o=this._sectionHeaderCache.get(n);if(o)return o;const s=t(n);return this._sectionHeaderCache.set(n,s),s}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.viewModel.revealRange("mouse",!1,new Un(e,1,e,1),1,0)}setScrollTop(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e},1)}}class fR extends mi{constructor(e,t){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=e,this._model=t,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(Av),this._domNode=zc(document.createElement("div")),SC.write(this._domNode,9),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=zc(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=zc(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=zc(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=zc(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=zc(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._pointerDownListener=Ll(this._domNode.domNode,mc.POINTER_DOWN,(e=>{if(e.preventDefault(),0===this._model.options.renderMinimap)return;if(!this._lastRenderData)return;if("proportional"!==this._model.options.size){if(0===e.button&&this._lastRenderData){const t=Hl(this._slider.domNode),i=t.top+t.height/2;this._startSliderDragging(e,i,this._lastRenderData.renderedLayout)}return}const t=this._model.options.minimapLineHeight,i=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*e.offsetY;let n=Math.floor(i/t)+this._lastRenderData.renderedLayout.startLineNumber-this._lastRenderData.renderedLayout.topPaddingLineCount;n=Math.min(n,this._model.getLineCount()),this._model.revealLineNumber(n)})),this._sliderPointerMoveMonitor=new J_,this._sliderPointerDownListener=Ll(this._slider.domNode,mc.POINTER_DOWN,(e=>{e.preventDefault(),e.stopPropagation(),0===e.button&&this._lastRenderData&&this._startSliderDragging(e,e.pageY,this._lastRenderData.renderedLayout)})),this._gestureDisposable=sE.addTarget(this._domNode.domNode),this._sliderTouchStartListener=yl(this._domNode.domNode,nE.Start,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(e))}),{passive:!1}),this._sliderTouchMoveListener=yl(this._domNode.domNode,nE.Change,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)}),{passive:!1}),this._sliderTouchEndListener=Ll(this._domNode.domNode,nE.End,(e=>{e.preventDefault(),e.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)}))}_startSliderDragging(e,t,i){if(!(e.target&&e.target instanceof Element))return;const n=e.pageX;this._slider.toggleClassName("active",!0);const o=(e,o)=>{const s=Hl(this._domNode.domNode),r=Math.min(Math.abs(o-n),Math.abs(o-s.left),Math.abs(o-s.left-s.width));if(Me&&r>140)return void this._model.setScrollTop(i.scrollTop);const a=e-t;this._model.setScrollTop(i.getDesiredScrollTopFromDelta(a))};e.pageY!==t&&o(e.pageY,n),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>o(e.pageY,e.pageX)),(()=>{this._slider.toggleClassName("active",!1)}))}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){const e=["minimap"];return"always"===this._model.options.showSlider?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new gR(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}onLinesDeleted(e,t){var i;return null===(i=this._lastRenderData)||void 0===i||i.onLinesDeleted(e,t),!0}onLinesInserted(e,t){var i;return null===(i=this._lastRenderData)||void 0===i||i.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(Av),this._renderDecorations=!0,!0}onTokensChanged(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(0===this._model.options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const t=dR.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(t.sliderNeeded?"block":"none"),this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(Un.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort(((e,t)=>(e.options.zIndex||0)-(t.options.zIndex||0)));const{canvasInnerWidth:n,canvasInnerHeight:o}=this._model.options,s=this._model.options.minimapLineHeight,r=this._model.options.minimapCharWidth,a=this._model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,n,o);const c=new _R(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(l,t,c,e,s),this._renderDecorationsLineHighlights(l,i,c,e,s);const d=new _R(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(l,t,d,e,s,a,r,n),this._renderDecorationsHighlights(l,i,d,e,s,a,r,n),this._renderSectionHeaders(e)}}_renderSelectionLineHighlights(e,t,i,n,o){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let s=0,r=0;for(const a of t){const t=n.intersectWithViewport(a);if(!t)continue;const[l,c]=t;for(let e=l;e<=c;e++)i.set(e,!0);const d=n.getYForLineNumber(l,o),h=n.getYForLineNumber(c,o);r>=d||(r>s&&e.fillRect(8,s,e.canvas.width,r-s),s=d),r=h}r>s&&e.fillRect(8,s,e.canvas.width,r-s)}_renderDecorationsLineHighlights(e,t,i,n,o){const s=new Map;for(let r=t.length-1;r>=0;r--){const a=t[r],l=a.options.minimap;if(!l||1!==l.position)continue;const c=n.intersectWithViewport(a.range);if(!c)continue;const[d,h]=c,u=l.getColor(this._theme.value);if(!u||u.isTransparent())continue;let g=s.get(u.toString());g||(g=u.transparent(.5).toString(),s.set(u.toString(),g)),e.fillStyle=g;for(let t=d;t<=h;t++){if(i.has(t))continue;i.set(t,!0);const s=n.getYForLineNumber(d,o);e.fillRect(8,s,e.canvas.width,o)}}}_renderSelectionsHighlights(e,t,i,n,o,s,r,a){if(this._selectionColor&&!this._selectionColor.isTransparent())for(const l of t){const t=n.intersectWithViewport(l);if(!t)continue;const[c,d]=t;for(let h=c;h<=d;h++)this.renderDecorationOnLine(e,i,l,this._selectionColor,n,h,o,o,s,r,a)}}_renderDecorationsHighlights(e,t,i,n,o,s,r,a){for(const l of t){const t=l.options.minimap;if(!t)continue;const c=n.intersectWithViewport(l.range);if(!c)continue;const[d,h]=c,u=t.getColor(this._theme.value);if(u&&!u.isTransparent())for(let g=d;g<=h;g++)switch(t.position){case 1:this.renderDecorationOnLine(e,i,l.range,u,n,g,o,o,s,r,a);continue;case 2:{const t=n.getYForLineNumber(g,o),i=2;this.renderDecoration(e,u,i,t,2,o);continue}}}}renderDecorationOnLine(e,t,i,n,o,s,r,a,l,c,d){const h=o.getYForLineNumber(s,a);if(h+r<0||h>this._model.options.canvasInnerHeight)return;const{startLineNumber:u,endLineNumber:g}=i,m=u===s?i.startColumn:1,p=g===s?i.endColumn:this._model.getLineMaxColumn(s),f=this.getXOffsetForPosition(t,s,m,l,c,d),_=this.getXOffsetForPosition(t,s,p,l,c,d);this.renderDecoration(e,n,f,h,_-f,r)}getXOffsetForPosition(e,t,i,n,o,s){if(1===i)return 8;if((i-1)*o>=s)return s;let r=e.get(t);if(!r){const i=this._model.getLineContent(t);r=[8];let a=8;for(let e=1;e=s){r[e]=s;break}r[e]=l,a=l}e.set(t,r)}return i-1e.range.startLineNumber-t.range.startLineNumber));const g=fR._fitSectionHeader.bind(null,h,s-8);for(const m of u){const r=e.getYForLineNumber(m.range.startLineNumber,i)+n,l=r-n,d=l+2,u=this._model.getSectionHeaderText(m,g);fR._renderSectionLabel(h,u,2===(null===(t=m.options.minimap)||void 0===t?void 0:t.sectionHeaderStyle),a,c,s,l,o,r,d)}}static _fitSectionHeader(e,t,i){if(!i)return i;const n=e.measureText(i).width,o=e.measureText("…").width;if(n<=t||n<=o)return i;const s=i.length,r=n/i.length,a=Math.floor((t-o)/r)-1;let l=Math.ceil(a/2);for(;l>0&&/\s/.test(i[l-1]);)--l;return i.substring(0,l)+"…"+i.substring(s-(a-l))}static _renderSectionLabel(e,t,i,n,o,s,r,a,l,c){t&&(e.fillStyle=n,e.fillRect(0,r,s,a),e.fillStyle=o,e.fillText(t,8,l)),i&&(e.beginPath(),e.moveTo(0,c),e.lineTo(s,c),e.closePath(),e.stroke())}renderLines(e){const t=e.startLineNumber,i=e.endLineNumber,n=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){const t=this._lastRenderData._get();return new uR(e,t.imageData,t.lines)}const o=this._getBuffer();if(!o)return null;const[s,r,a]=fR._renderUntouchedLines(o,e.topPaddingLineCount,t,i,n,this._lastRenderData),l=this._model.getMinimapLinesRenderingData(t,i,a),c=this._model.getOptions().tabSize,d=this._model.options.defaultBackgroundColor,h=this._model.options.backgroundColor,u=this._model.options.foregroundAlpha,g=this._model.tokensColorTracker,m=g.backgroundIsLight(),p=this._model.options.renderMinimap,f=this._model.options.charRenderer(),_=this._model.options.fontScale,b=this._model.options.minimapCharWidth,v=(1===p?2:3)*_,S=n>v?Math.floor((n-v)/2):0,C=h.a/255,E=new eR(Math.round((h.r-d.r)*C+d.r),Math.round((h.g-d.g)*C+d.g),Math.round((h.b-d.b)*C+d.b),255);let w=e.topPaddingLineCount*n;const T=[];for(let L=0,I=i-t+1;L=0&&t_)return;const r=p.charCodeAt(S);if(9===r){const e=h-(S+C)%h;C+=e-1,v+=e*s}else if(32===r)v+=s;else{const h=Qs(r)?2:1;for(let u=0;u_)return}}}}}class _R{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let n=0,o=this._endLineNumber-this._startLineNumber+1;nthis._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return ethis._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}class bR extends vC{constructor(e,t){super(e),this._viewDomNode=t;const i=this._context.configuration.options.get(145);this._widgets={},this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,this._viewDomNodeRect={top:0,left:0,width:0,height:0},this._domNode=zc(document.createElement("div")),SC.write(this._domNode,4),this._domNode.setClassName("overlayWidgets"),this.overflowingOverlayWidgetsDomNode=zc(document.createElement("div")),SC.write(this.overflowingOverlayWidgetsDomNode,5),this.overflowingOverlayWidgetsDomNode.setClassName("overflowingOverlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options.get(145);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}addWidget(e){const t=zc(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),e.allowEditorOverflow?this.overflowingOverlayWidgetsDomNode.appendChild(t):this._domNode.appendChild(t),this.setShouldRender(),this._updateMaxMinWidth()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return i.preference===t?(this._updateMaxMinWidth(),!1):(i.preference=t,this.setShouldRender(),this._updateMaxMinWidth(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.remove(),this.setShouldRender(),this._updateMaxMinWidth()}}_updateMaxMinWidth(){var e,t;let i=0;const n=Object.keys(this._widgets);for(let o=0,s=n.length;o=3){const t=Math.floor(n/3),i=Math.floor(n/3),o=n-t-i,s=e+t;return[[0,e,s,e,e+t+o,e,s,e],[0,t,o,t+o,i,t+o+i,o+i,t+o+i]]}if(2===i){const t=Math.floor(n/2),i=n-t;return[[0,e,e,e,e+t,e,e,e],[0,t,t,t,i,t+i,t+i,t+i]]}return[[0,e,e,e,e,e,e,e],[0,n,n,n,n,n,n,n]]}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColorSingle===e.cursorColorSingle&&this.cursorColorPrimary===e.cursorColorPrimary&&this.cursorColorSecondary===e.cursorColorSecondary&&this.themeType===e.themeType&&Kp.equals(this.backgroundColor,e.backgroundColor)&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class SR extends vC{constructor(e){super(e),this._actualShouldRender=0,this._renderedDecorations=[],this._renderedCursorPositions=[],this._domNode=zc(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=go.onDidChange((e=>{e.changedColorMap&&this._updateSettings(!0)})),this._cursorPositions=[{position:new Wn(1,1),color:this._settings.cursorColorSingle}]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new vR(this._context.configuration,this._context.theme);return!(this._settings&&this._settings.equals(t)||(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),0))}_markRenderingIsNeeded(){return this._actualShouldRender=2,!0}_markRenderingIsMaybeNeeded(){return this._actualShouldRender=1,!0}onConfigurationChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;t1&&(n=0===t?this._settings.cursorColorPrimary:this._settings.cursorColorSecondary),this._cursorPositions.push({position:e.selections[t].getPosition(),color:n})}return this._cursorPositions.sort(((e,t)=>Wn.compare(e.position,t.position))),this._markRenderingIsMaybeNeeded()}onDecorationsChanged(e){return!!e.affectsOverviewRuler&&this._markRenderingIsMaybeNeeded()}onFlushed(e){return this._markRenderingIsNeeded()}onScrollChanged(e){return!!e.scrollHeightChanged&&this._markRenderingIsNeeded()}onZonesChanged(e){return this._markRenderingIsNeeded()}onThemeChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}getDomNode(){return this._domNode.domNode}prepareRender(e){}render(e){this._render(),this._actualShouldRender=0}_render(){const e=this._settings.backgroundColor;if(0===this._settings.overviewRulerLanes)return this._domNode.setBackgroundColor(e?Kp.Format.CSS.formatHexA(e):""),void this._domNode.setDisplay("none");const t=this._context.viewModel.getAllOverviewRulerDecorations(this._context.theme);if(t.sort(Xf.compareByRenderingProps),1!==this._actualShouldRender||Xf.equalsArr(this._renderedDecorations,t)||(this._actualShouldRender=2),1!==this._actualShouldRender||b(this._renderedCursorPositions,this._cursorPositions,((e,t)=>e.position.lineNumber===t.position.lineNumber&&e.color===t.color))||(this._actualShouldRender=2),1===this._actualShouldRender)return;this._renderedDecorations=t,this._renderedCursorPositions=this._cursorPositions,this._domNode.setDisplay("block");const i=this._settings.canvasWidth,n=this._settings.canvasHeight,o=this._settings.lineHeight,s=this._context.viewLayout,r=n/this._context.viewLayout.getScrollHeight(),a=6*this._settings.pixelRatio|0,l=a/2|0,c=this._domNode.domNode.getContext("2d");e?e.isOpaque()?(c.fillStyle=Kp.Format.CSS.formatHexA(e),c.fillRect(0,0,i,n)):(c.clearRect(0,0,i,n),c.fillStyle=Kp.Format.CSS.formatHexA(e),c.fillRect(0,0,i,n)):c.clearRect(0,0,i,n);const d=this._settings.x,h=this._settings.w;for(const u of t){const e=u.color,t=u.data;c.fillStyle=e;let i=0,g=0,m=0;for(let u=0,p=t.length/3;un&&(e=n-l),_=e-l,b=e+l}_>m+1||e!==i?(0!==u&&c.fillRect(d[i],g,h[i],m-g),i=e,g=_,m=b):b>m&&(m=b)}c.fillRect(d[i],g,h[i],m-g)}if(!this._settings.hideCursor){const e=2*this._settings.pixelRatio|0,t=e/2|0,i=this._settings.x[7],o=this._settings.w[7];let a=-100,l=-100,d=null;for(let h=0,u=this._cursorPositions.length;hn&&(m=n-t);const p=m-t,f=p+e;p>l+1||u!==d?(0!==h&&d&&c.fillRect(i,a,o,l-a),a=p,l=f):f>l&&(l=f),d=u,c.fillStyle=u}d&&c.fillRect(i,a,o,l-a)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(c.beginPath(),c.lineWidth=1,c.strokeStyle=this._settings.borderColor,c.moveTo(0,0),c.lineTo(0,n),c.stroke(),c.moveTo(0,0),c.lineTo(i,0),c.stroke())}}class CR{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|i}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class ER{constructor(e,t,i,n){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=n,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.colori&&(u=i-g);const m=a.color;let p=this._color2Id[m];p||(p=++this._lastAssignedId,this._color2Id[m]=p,this._id2Color[p]=m);const f=new CR(u-g,u+g,p);a.setColorZone(f),s.push(f)}return this._colorZonesInvalid=!1,s.sort(CR.compare),s}}class TR extends bC{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=zc(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new wR((e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e))),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(67)),this._zoneManager.setPixelRatio(i.get(143)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(67)&&(this._zoneManager.setLineHeight(t.get(67)),this._render()),e.hasChanged(143)&&(this._zoneManager.setPixelRatio(t.get(143)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),n=this._zoneManager.getId2Color(),o=this._domNode.domNode.getContext("2d");return o.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(o,i,n,e),!0}_renderOneLane(e,t,i,n){let o=0,s=0,r=0;for(const a of t){const t=a.colorId,l=a.from,c=a.to;t!==o?(e.fillRect(0,s,n,r-s),o=t,e.fillStyle=i[o],s=l,r=c):r>=l?r=Math.max(r,c):(e.fillRect(0,s,n,r-s),s=l,r=c)}e.fillRect(0,s,n,r-s)}}class yR extends vC{constructor(e){super(e),this.domNode=zc(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e0;){const e=zc(document.createElement("div"));e.setClassName("view-ruler"),e.setWidth(n),this.domNode.appendChild(e),this._renderedRulers.push(e),o--}return}let i=e-t;for(;i>0;){const e=this._renderedRulers.pop();this.domNode.removeChild(e),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t0;return this._shouldShow!==e&&(this._shouldShow=e,!0)}getDomNode(){return this._domNode}_updateWidth(){const e=this._context.configuration.options.get(145);0===e.minimap.renderMinimap||e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?this._width=e.width:this._width=e.width-e.verticalScrollbarWidth}onConfigurationChanged(e){const t=this._context.configuration.options.get(103);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}class LR{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class IR{constructor(e,t){this.lineNumber=e,this.ranges=t}}function AR(e){return new LR(e)}function NR(e){return new IR(e.lineNumber,e.ranges.map(AR))}class kR extends zE{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._roundedSelection=t.get(101),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._roundedSelection=t.get(101),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t1)return!0;return!1}_enrichVisibleRangesWithStyle(e,t,i){const n=this._typicalHalfwidthCharacterWidth/4;let o=null,s=null;if(i&&i.length>0&&t.length>0){const n=t[0].lineNumber;if(n===e.startLineNumber)for(let e=0;!o&&e=0;e--)i[e].lineNumber===r&&(s=i[e].ranges[0]);o&&!o.startStyle&&(o=null),s&&!s.startStyle&&(s=null)}for(let r=0,a=t.length;r0){const e=t[r-1].ranges[0].left,o=t[r-1].ranges[0].left+t[r-1].ranges[0].width;DR(i-e)e&&(c.top=1),DR(l-o)'}_actualRenderOneSelection(e,t,i,n){if(0===n.length)return;const o=!!n[0].ranges[0].startStyle,s=n[0].lineNumber,r=n[n.length-1].lineNumber;for(let a=0,l=n.length;a1,r)}this._previousFrameVisibleRangesWithStyle=o,this._renderResult=t.map((([e,t])=>e+t))}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function DR(e){return e<0?-e:e}kR.SELECTION_CLASS_NAME="selected-text",kR.SELECTION_TOP_LEFT="top-left-radius",kR.SELECTION_BOTTOM_LEFT="bottom-left-radius",kR.SELECTION_TOP_RIGHT="top-right-radius",kR.SELECTION_BOTTOM_RIGHT="bottom-right-radius",kR.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",kR.ROUNDED_PIECE_WIDTH=10,XE(((e,t)=>{const i=e.getColor(Wb);i&&!i.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${i}; }`)}));class xR{constructor(e,t,i,n,o,s,r){this.top=e,this.left=t,this.paddingLeft=i,this.width=n,this.height=o,this.textContent=s,this.textContentClassName=r}}var MR;!function(e){e[e.Single=0]="Single",e[e.MultiPrimary=1]="MultiPrimary",e[e.MultiSecondary=2]="MultiSecondary"}(MR||(MR={}));class PR{constructor(e,t){this._context=e;const i=this._context.configuration.options,n=i.get(50);this._cursorStyle=i.get(28),this._lineHeight=i.get(67),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(i.get(31),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=zc(document.createElement("div")),this._domNode.setClassName(`cursor ${Zw}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),Kc(this._domNode,n),this._domNode.setDisplay("none"),this._position=new Wn(1,1),this._pluralityClass="",this.setPlurality(t),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}setPlurality(e){switch(e){default:case MR.Single:this._pluralityClass="";break;case MR.MultiPrimary:this._pluralityClass="cursor-primary";break;case MR.MultiSecondary:this._pluralityClass="cursor-secondary"}}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(50);return this._cursorStyle=t.get(28),this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(31),this._typicalHalfwidthCharacterWidth),Kc(this._domNode,i),!0}onCursorPositionChanged(e,t){return this._domNode.domNode.style.transitionProperty=t?"none":"",this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[n,o]=function(e,t){t>0&&Hs(e.charCodeAt(t))&&t--;const i=t+zs(e,t);return[i-Ks(e,i),i]}(i,t-1);return[new Wn(e,n+1),i.substring(n,o)]}_prepareRender(e){let t="",i="";const[n,o]=this._getGraphemeAwarePosition();if(this._cursorStyle===At.Line||this._cursorStyle===At.LineThin){const s=e.visibleRangeForPosition(n);if(!s||s.outsideRenderedLine)return null;const r=gl(this._domNode.domNode);let a;this._cursorStyle===At.Line?(a=Ic(r,this._lineCursorWidth>0?this._lineCursorWidth:2),a>2&&(t=o,i=this._getTokenClassName(n))):a=Ic(r,1);let l=s.left,c=0;a>=2&&l>=1&&(c=1,l-=c);const d=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.bigNumbersDelta;return new xR(d,l,c,a,this._lineHeight,t,i)}const s=e.linesVisibleRangesForRange(new Un(n.lineNumber,n.column,n.lineNumber,n.column+o.length),!1);if(!s||0===s.length)return null;const r=s[0];if(r.outsideRenderedLine||0===r.ranges.length)return null;const a=r.ranges[0],l="\t"===o||a.width<1?this._typicalHalfwidthCharacterWidth:a.width;this._cursorStyle===At.Block&&(t=o,i=this._getTokenClassName(n));let c=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.bigNumbersDelta,d=this._lineHeight;return this._cursorStyle!==At.Underline&&this._cursorStyle!==At.UnderlineThin||(c+=this._lineHeight-2,d=2),new xR(c,a.left,0,l,d,t,i)}_getTokenClassName(e){const t=this._context.viewModel.getViewLineData(e.lineNumber),i=t.tokens.findTokenIndexAtOffset(e.column-1);return t.tokens.getClassName(i)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${this._pluralityClass} ${Zw} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setPaddingLeft(this._renderData.paddingLeft),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class FR extends vC{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(91),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new PR(this._context,MR.Single),this._secondaryCursors=[],this._renderData=[],this._domNode=zc(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new Gr,this._cursorFlatBlinkInterval=new Dl,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(91),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let i=0,n=this._secondaryCursors.length;it.length){const e=this._secondaryCursors.length-t.length;for(let t=0;t{for(let i=0,n=e.ranges.length;i{this._isVisible?this._hide():this._show()}),FR.BLINK_INTERVAL,gl(this._domNode.domNode)):this._startCursorBlinkAnimation.setIfNotSet((()=>{this._blinkingEnabled=!0,this._updateDomClassName()}),FR.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case At.Line:e+=" cursor-line-style";break;case At.Block:e+=" cursor-block-style";break;case At.Underline:e+=" cursor-underline-style";break;case At.LineThin:e+=" cursor-line-thin-style";break;case At.BlockOutline:e+=" cursor-block-outline-style";break;case At.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return"on"!==this._cursorSmoothCaretAnimation&&"explicit"!==this._cursorSmoothCaretAnimation||(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e{const i=[{class:".cursor",foreground:ew,background:tw},{class:".cursor-primary",foreground:iw,background:nw},{class:".cursor-secondary",foreground:ow,background:sw}];for(const n of i){const i=e.getColor(n.foreground);if(i){let o=e.getColor(n.background);o||(o=i.opposite()),t.addRule(`.monaco-editor .cursors-layer ${n.class} { background-color: ${i}; border-color: ${i}; color: ${o}; }`),NC(e.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection ${n.class} { border-left: 1px solid ${o}; border-right: 1px solid ${o}; }`)}}}));const BR=()=>{throw new Error("Invalid change accessor")};class HR extends vC{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(145);this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=zc(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=zc(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const n of e)t.set(n.id,n);let i=!1;return this._context.viewModel.changeWhitespace((e=>{const n=Object.keys(this._zones);for(let o=0,s=n.length;o{const n={addZone:e=>(t=!0,this._addZone(i,e)),removeZone:e=>{e&&(t=this._removeZone(i,e)||t)},layoutZone:e=>{e&&(t=this._layoutZone(i,e)||t)}};!function(e,t){try{return e(t)}catch(i){Jt(i)}}(e,n),n.addZone=BR,n.removeZone=BR,n.layoutZone=BR})),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),n={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:zc(t.domNode),marginDomNode:t.marginDomNode?zc(t.marginDomNode):null};return this._safeCallOnComputedHeight(n.delegate,i.heightInPx),n.domNode.setPosition("absolute"),n.domNode.domNode.style.width="100%",n.domNode.setDisplay("none"),n.domNode.setAttribute("monaco-view-zone",n.whitespaceId),this.domNode.appendChild(n.domNode),n.marginDomNode&&(n.marginDomNode.setPosition("absolute"),n.marginDomNode.domNode.style.width="100%",n.marginDomNode.setDisplay("none"),n.marginDomNode.setAttribute("monaco-view-zone",n.whitespaceId),this.marginDomNode.appendChild(n.marginDomNode)),this._zones[n.whitespaceId]=n,this.setShouldRender(),n.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.parentNode.removeChild(i.domNode.domNode),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.parentNode.removeChild(i.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],n=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=n.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,n.afterViewLineNumber,n.heightInPx),this._safeCallOnComputedHeight(i.delegate,n.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return"number"==typeof e.heightInPx?e.heightInPx:"number"==typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return"number"==typeof e.minWidthInPx?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if("function"==typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(sue){Jt(sue)}}_safeCallOnDomNodeTop(e,t){if("function"==typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(sue){Jt(sue)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let n=!1;for(const s of t)this._zones[s.id].isInHiddenArea||(i[s.id]=s,n=!0);const o=Object.keys(this._zones);for(let s=0,r=o.length;ss)continue;const e=t.startLineNumber===s?t.startColumn:i.minColumn,o=t.endLineNumber===s?t.endColumn:i.maxColumn;e=w.endOffset&&(E++,w=i&&i[E]),9!==n&&32!==n)continue;if(h&&!S&&y<=b)continue;if(d&&y>=C&&y<=b&&32===n){const e=y-1>=0?r.charCodeAt(y-1):0,t=y+1=0?r.charCodeAt(y-1):0;if(32===n&&32!==e&&9!==e)continue}if(i&&(!w||w.startOffset>y||w.endOffset<=y))continue;const o=e.visibleRangeForPosition(new Wn(t,y+1));o&&(s?(T=Math.max(T,o.left),v+=9===n?this._renderArrow(u,p,o.left):``):v+=9===n?`
${_?String.fromCharCode(65515):String.fromCharCode(8594)}
`:`
${String.fromCharCode(f)}
`)}return s?(T=Math.round(T+p),``+v+""):v}_renderArrow(e,t,i){const n=e/2,o=i,s={x:0,y:t/7/2},r={x:.8*t,y:s.y},a={x:r.x-.2*r.x,y:r.y+.2*r.x},l={x:a.x+.1*r.x,y:a.y+.1*r.x},c={x:l.x+.35*r.x,y:l.y-.35*r.x};return``}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class UR{constructor(e){const t=e.options,i=t.get(50),n=t.get(38);"off"===n?(this.renderWhitespace="none",this.renderWithSVG=!1):"svg"===n?(this.renderWhitespace=t.get(99),this.renderWithSVG=!0):(this.renderWhitespace=t.get(99),this.renderWithSVG=!1),this.spaceWidth=i.spaceWidth,this.middotWidth=i.middotWidth,this.wsmiddotWidth=i.wsmiddotWidth,this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=t.get(67),this.stopRenderingLineAfter=t.get(117)}equals(e){return this.renderWhitespace===e.renderWhitespace&&this.renderWithSVG===e.renderWithSVG&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter}}class VR{constructor(e,t,i,n){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.lineHeight=0|t.lineHeight,this.whitespaceViewportData=i,this._model=n,this.visibleRange=new Un(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewportViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}class GR{get type(){return this._theme.type}get value(){return this._theme}constructor(e){this._theme=e}update(e){this._theme=e}getColor(e){return this._theme.getColor(e)}}class zR{constructor(e,t,i){this.configuration=e,this.theme=new GR(t),this.viewModel=i,this.viewLayout=i.viewLayout}addEventHandler(e){this.viewModel.addViewEventHandler(e)}removeEventHandler(e){this.viewModel.removeViewEventHandler(e)}}var KR=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},YR=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let qR=class extends bC{constructor(e,t,i,n,o,s,r){super(),this._instantiationService=r,this._shouldRecomputeGlyphMarginLanes=!1,this._selections=[new Vn(1,1,1,1)],this._renderAnimationFrame=null;const a=new dy(t,n,o,e);this._context=new zR(t,i,n),this._context.addEventHandler(this),this._viewParts=[],this._textAreaHandler=this._instantiationService.createInstance(rT,this._context,a,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=zc(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=zc(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=zc(document.createElement("div")),SC.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new Ny(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new Jy(this._context,this._linesContent),this._viewZones=new HR(this._context),this._viewParts.push(this._viewZones);const l=new SR(this._context);this._viewParts.push(l);const c=new RR(this._context);this._viewParts.push(c);const d=new fy(this._context);this._viewParts.push(d),d.addDynamicOverlay(new Ly(this._context)),d.addDynamicOverlay(new kR(this._context)),d.addDynamicOverlay(new Ky(this._context)),d.addDynamicOverlay(new Ay(this._context)),d.addDynamicOverlay(new WR(this._context));const h=new _y(this._context);this._viewParts.push(h),h.addDynamicOverlay(new Iy(this._context)),h.addDynamicOverlay(new Zy(this._context)),h.addDynamicOverlay(new Qy(this._context)),h.addDynamicOverlay(new Jw(this._context)),this._glyphMarginWidgets=new My(this._context),this._viewParts.push(this._glyphMarginWidgets);const u=new Qw(this._context);u.getDomNode().appendChild(this._viewZones.marginDomNode),u.getDomNode().appendChild(h.getDomNode()),u.getDomNode().appendChild(this._glyphMarginWidgets.domNode),this._viewParts.push(u),this._contentWidgets=new Sy(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new FR(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new bR(this._context,this.domNode),this._viewParts.push(this._overlayWidgets);const g=new yR(this._context);this._viewParts.push(g);const m=new vy(this._context);this._viewParts.push(m);const p=new pR(this._context);if(this._viewParts.push(p),l){const e=this._scrollbar.getOverviewRulerLayoutInfo();e.parent.insertBefore(l.getDomNode(),e.insertBefore)}this._linesContent.appendChild(d.getDomNode()),this._linesContent.appendChild(g.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(u.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(c.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(p.getDomNode()),this._overflowGuardContainer.appendChild(m.domNode),this.domNode.appendChild(this._overflowGuardContainer),s?(s.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode),s.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode.domNode)):(this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this.domNode.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode)),this._applyLayout(),this._pointerHandler=this._register(new GE(this._context,a,this._createPointerHandlerHelper()))}_computeGlyphMarginLanes(){const e=this._context.viewModel.model,t=this._context.viewModel.glyphLanes;let i=[],n=0;i=i.concat(e.getAllMarginDecorations().map((e=>{var t,i,o;const s=null!==(i=null===(t=e.options.glyphMargin)||void 0===t?void 0:t.position)&&void 0!==i?i:vm.Center;return n=Math.max(n,e.range.endLineNumber),{range:e.range,lane:s,persist:null===(o=e.options.glyphMargin)||void 0===o?void 0:o.persistLane}}))),i=i.concat(this._glyphMarginWidgets.getWidgets().map((t=>{const i=e.validateRange(t.preference.range);return n=Math.max(n,i.endLineNumber),{range:i,lane:t.preference.lane}}))),i.sort(((e,t)=>Un.compareRangesUsingStarts(e.range,t.range))),t.reset(n);for(const o of i)t.push(o.lane,o.range,o.persist);return t}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,viewLinesDomNode:this._viewLines.getDomNode().domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new YC(e,t)},renderNow:()=>{this.render(!0,!1)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new Wn(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const e=this._context.configuration.options.get(145);this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this._overflowGuardContainer.setWidth(e.width),this._overflowGuardContainer.setHeight(e.height),this._linesContent.setWidth(16777216),this._linesContent.setHeight(16777216)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(142)+" "+qE(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onDecorationsChanged(e){return e.affectsGlyphMargin&&(this._shouldRecomputeGlyphMarginLanes=!0),!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){if(this._store.isDisposed)throw new ai;if(null===this._renderAnimationFrame){const e=this._createCoordinatedRendering();this._renderAnimationFrame=jR.INSTANCE.scheduleCoordinatedRendering({window:gl(this.domNode.domNode),prepareRenderText:()=>{if(this._store.isDisposed)throw new ai;try{return e.prepareRenderText()}finally{this._renderAnimationFrame=null}},renderText:()=>{if(this._store.isDisposed)throw new ai;return e.renderText()},prepareRender:(t,i)=>{if(this._store.isDisposed)throw new ai;return e.prepareRender(t,i)},render:(t,i)=>{if(this._store.isDisposed)throw new ai;return e.render(t,i)}})}}_flushAccumulatedAndRenderNow(){const e=this._createCoordinatedRendering();$R((()=>e.prepareRenderText()));const t=$R((()=>e.renderText()));if(t){const[i,n]=t;$R((()=>e.prepareRender(i,n))),$R((()=>e.render(i,n)))}}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_createCoordinatedRendering(){return{prepareRenderText:()=>{if(this._shouldRecomputeGlyphMarginLanes){this._shouldRecomputeGlyphMarginLanes=!1;const e=this._computeGlyphMarginLanes();this._context.configuration.setGlyphMarginDecorationLaneCount(e.requiredLanes)}X_.onRenderStart()},renderText:()=>{if(!this.domNode.domNode.isConnected)return null;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&0===e.length)return null;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new VR(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);return this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender()),[e,new EC(this._context.viewLayout,i,this._viewLines)]},prepareRender:(e,t)=>{for(const i of e)i.prepareRender(t)},render:(e,t)=>{for(const i of e)i.render(t),i.onDidRender()}}}delegateVerticalScrollbarPointerDown(e){this._scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._scrollbar.delegateScrollFromMouseWheelEvent(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft},1),this._context.viewModel.visibleLinesStabilized()}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),n=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const o=this._viewLines.visibleRangeForPosition(new Wn(n.lineNumber,n.column));return o?o.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?by.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new TR(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const e of this._viewParts)e.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}writeScreenReaderContent(e){this._textAreaHandler.writeScreenReaderContent(e)}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){var t,i,n,o,s,r,a,l;this._contentWidgets.setWidgetPosition(e.widget,null!==(i=null===(t=e.position)||void 0===t?void 0:t.position)&&void 0!==i?i:null,null!==(o=null===(n=e.position)||void 0===n?void 0:n.secondaryPosition)&&void 0!==o?o:null,null!==(r=null===(s=e.position)||void 0===s?void 0:s.preference)&&void 0!==r?r:null,null!==(l=null===(a=e.position)||void 0===a?void 0:a.positionAffinity)&&void 0!==l?l:null),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){const t=e.position?e.position.preference:null;this._overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}addGlyphMarginWidget(e){this._glyphMarginWidgets.addWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}layoutGlyphMarginWidget(e){const t=e.position;this._glyphMarginWidgets.setWidgetPosition(e.widget,t)&&(this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender())}removeGlyphMarginWidget(e){this._glyphMarginWidgets.removeWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}};function $R(e){try{return e()}catch(sue){return Jt(sue),null}}qR=KR([YR(6,td)],qR);class jR{constructor(){this._coordinatedRenderings=[],this._animationFrameRunners=new Map}scheduleCoordinatedRendering(e){return this._coordinatedRenderings.push(e),this._scheduleRender(e.window),{dispose:()=>{const t=this._coordinatedRenderings.indexOf(e);if(-1!==t&&(this._coordinatedRenderings.splice(t,1),0===this._coordinatedRenderings.length)){for(const[e,t]of this._animationFrameRunners)t.dispose();this._animationFrameRunners.clear()}}}}_scheduleRender(e){if(!this._animationFrameRunners.has(e)){const t=()=>{this._animationFrameRunners.delete(e),this._onRenderScheduled()};this._animationFrameRunners.set(e,Nl(e,t,100))}}_onRenderScheduled(){const e=this._coordinatedRenderings.slice(0);this._coordinatedRenderings=[];for(const i of e)$R((()=>i.prepareRenderText()));const t=[];for(let i=0,n=e.length;in.renderText()))}for(let i=0,n=e.length;in.prepareRender(s,r)))}for(let i=0,n=e.length;in.render(s,r)))}}}jR.INSTANCE=new jR;class XR{constructor(e,t,i,n,o){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=n,this.wrappedTextIndentLength=o}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let i=this.breakOffsets[e]-t;return e>0&&(i+=this.wrappedTextIndentLength),i}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let i=0===e?t:this.breakOffsets[e-1]+t;if(null!==this.injectionOffsets)for(let n=0;nthis.injectionOffsets[n];n++)i0?this.breakOffsets[o-1]:0,0===t)if(e<=s)n=o-1;else{if(!(e>r))break;i=o+1}else if(e=r))break;i=o+1}}let r=e-s;return o>0&&(r+=this.wrappedTextIndentLength),new ZR(o,r)}normalizeOutputPosition(e,t,i){if(null!==this.injectionOffsets){const n=this.outputPositionToOffsetInInputWithInjections(e,t),o=this.normalizeOffsetInInputWithInjectionsAroundInjections(n,i);if(o!==n)return this.offsetInInputWithInjectionsToOutputPosition(o,i)}if(0===i){if(e>0&&t===this.getMinOutputOffset(e))return new ZR(e-1,this.getMaxOutputOffset(e-1))}else if(1===i&&e0&&(t=Math.max(0,t-this.wrappedTextIndentLength)),(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(2===t){if(e===i.offsetInInputWithInjections+i.length&&JR(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let e=i.offsetInInputWithInjections;if(QR(this.injectionOptions[i.injectedTextIndex].cursorStops))return e;let t=i.injectedTextIndex-1;for(;t>=0&&this.injectionOffsets[t]===this.injectionOffsets[i.injectedTextIndex]&&!JR(this.injectionOptions[t].cursorStops)&&(e-=this.injectionOptions[t].content.length,!QR(this.injectionOptions[t].cursorStops));)t--;return e}}if(1===t||4===t){let e=i.offsetInInputWithInjections+i.length,t=i.injectedTextIndex;for(;t+1=0&&this.injectionOffsets[t-1]===this.injectionOffsets[t];)e-=this.injectionOptions[t-1].content.length,t--;return e}rh()}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.getInjectedTextAtOffset(i);return n?{options:this.injectionOptions[n.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(null!==t){let n=0;for(let o=0;oe)break;if(e<=a)return{injectedTextIndex:o,offsetInInputWithInjections:r,length:s};n+=s}}}}function JR(e){return null==e||e===Sm.Right||e===Sm.Both}function QR(e){return null==e||e===Sm.Left||e===Sm.Both}class ZR{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new Wn(e+this.outputLineIndex,this.outputOffset+1)}}class eL{constructor(){this.changeType=1}}class tL{static applyInjectedText(e,t){if(!t||0===t.length)return e;let i="",n=0;for(const o of t)i+=e.substring(n,o.column-1),n=o.column-1,i+=o.options.content;return i+=e.substring(n),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new tL(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new tL(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,i,n,o){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=n,this.order=o}}class iL{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class nL{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class oL{constructor(e,t,i,n){this.changeType=4,this.injectedTexts=n,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class sL{constructor(){this.changeType=5}}class rL{constructor(e,t,i,n){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=n,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;te});class dL{static create(e){return new dL(new WeakRef(e))}constructor(e){this.targetWindow=e}createLineBreaksComputer(e,t,i,n,o){const s=[],r=[];return{addRequest:(e,t,i)=>{s.push(e),r.push(t)},finalize:()=>function(e,t,i,n,o,s,r,a){var l;function c(e){const i=a[e];if(i){const n=tL.applyInjectedText(t[e],i),o=i.map((e=>e.options)),s=i.map((e=>e.column-1));return new XR(s,o,[n.length],[],0)}return null}if(-1===o){const e=[];for(let i=0,n=t.length;id?(o=0,r=0):l=d-t}const c=e.substr(o),h=hL(c,r,n,l,p,g);f[R]=o,_[R]=r,b[R]=c,v[R]=h[0],S[R]=h[1]}const C=p.build(),E=null!==(l=null==cL?void 0:cL.createHTML(C))&&void 0!==l?l:C;m.innerHTML=E,m.style.position="absolute",m.style.top="10000","keepAll"===r?(m.style.wordBreak="keep-all",m.style.overflowWrap="anywhere"):(m.style.wordBreak="inherit",m.style.overflowWrap="break-word"),e.document.body.appendChild(m);const w=document.createRange(),T=Array.prototype.slice.call(m.children,0),y=[];for(let R=0;Re.options)),r=l.map((e=>e.column-1))):(s=null,r=null),y[R]=new XR(r,s,e,o,i)}return e.document.body.removeChild(m),y}(ne(this.targetWindow.deref()),s,e,t,i,n,o,r)}}}function hL(e,t,i,n,o,s){if(0!==s){const e=String(s);o.appendString('
');const r=e.length;let a=t,l=0;const c=[],d=[];let h=0");for(let u=0;u"),c[u]=l,d[u]=a;const t=h;h=u+1"),c[e.length]=l,d[e.length]=a,o.appendString("
"),[c,d]}function uL(e,t,i,n){if(i.length<=1)return null;const o=Array.prototype.slice.call(t.children,0),s=[];try{gL(e,o,n,0,null,i.length-1,null,s)}catch(sue){return null}return 0===s.length?null:(s.push(i.length),s)}function gL(e,t,i,n,o,s,r,a){if(n===s)return;if(o=o||mL(e,t,i[n],i[n+1]),r=r||mL(e,t,i[s],i[s+1]),Math.abs(o[0].top-r[0].top)<=.1)return;if(n+1===s)return void a.push(s);const l=n+(s-n)/2|0,c=mL(e,t,i[l],i[l+1]);gL(e,t,i,n,o,l,c,a),gL(e,t,i,l,c,s,r,a)}function mL(e,t,i,n){return e.setStart(t[i/16384|0].firstChild,i%16384),e.setEnd(t[n/16384|0].firstChild,n%16384),e.getClientRects()}class pL extends mi{constructor(){super(),this._editor=null,this._instantiationService=null,this._instances=this._register(new bi),this._pending=new Map,this._finishedInstantiation=[],this._finishedInstantiation[0]=!1,this._finishedInstantiation[1]=!1,this._finishedInstantiation[2]=!1,this._finishedInstantiation[3]=!1}initialize(e,t,i){this._editor=e,this._instantiationService=i;for(const n of t)this._pending.has(n.id)?Jt(new Error(`Cannot have two contributions with the same id ${n.id}`)):this._pending.set(n.id,n);this._instantiateSome(0),this._register(Il(gl(this._editor.getDomNode()),(()=>{this._instantiateSome(1)}))),this._register(Il(gl(this._editor.getDomNode()),(()=>{this._instantiateSome(2)}))),this._register(Il(gl(this._editor.getDomNode()),(()=>{this._instantiateSome(3)}),5e3))}saveViewState(){const e={};for(const[t,i]of this._instances)"function"==typeof i.saveViewState&&(e[t]=i.saveViewState());return e}restoreViewState(e){for(const[t,i]of this._instances)"function"==typeof i.restoreViewState&&i.restoreViewState(e[t])}get(e){return this._instantiateById(e),this._instances.get(e)||null}onBeforeInteractionEvent(){this._instantiateSome(2)}onAfterModelAttached(){var e;return Il(gl(null===(e=this._editor)||void 0===e?void 0:e.getDomNode()),(()=>{this._instantiateSome(1)}),50)}_instantiateSome(e){if(this._finishedInstantiation[e])return;this._finishedInstantiation[e]=!0;const t=this._findPendingContributionsByInstantiation(e);for(const i of t)this._instantiateById(i.id)}_findPendingContributionsByInstantiation(e){const t=[];for(const[,i]of this._pending)i.instantiation===e&&t.push(i);return t}_instantiateById(e){const t=this._pending.get(e);if(t){if(this._pending.delete(e),!this._instantiationService||!this._editor)throw new Error("Cannot instantiate contributions before being initialized!");try{const e=this._instantiationService.createInstance(t.ctor,this._editor);this._instances.set(t.id,e),"function"==typeof e.restoreViewState&&t.instantiation}catch(sue){Jt(sue)}}}}class fL{constructor(e,t,i,n,o,s,r){this.id=e,this.label=t,this.alias=i,this.metadata=n,this._precondition=o,this._run=s,this._contextKeyService=r}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(e){return this.isSupported()?this._run(e):Promise.resolve(void 0)}}function _L(e){let t=0,i=0,n=0,o=0;for(let s=0,r=e.length;s=wL&&(i-=e%wL),i}function LL(e,t){return e.reduce(((e,i)=>RL(e,t(i))),CL)}function IL(e,t){return e===t}function AL(e,t){const i=e,n=t;if(n-i<=0)return CL;const o=Math.floor(i/wL),s=Math.floor(n/wL),r=n-s*wL;return o===s?TL(0,r-(i-o*wL)):TL(s-o,r)}function NL(e,t){return e=t}function OL(e){return TL(e.lineNumber-1,e.column-1)}function xL(e,t){const i=e,n=Math.floor(i/wL),o=i-n*wL,s=t,r=Math.floor(s/wL);return new Un(n+1,o+1,r+1,s-r*wL+1)}class ML{static fromModelContentChanges(e){return e.map((e=>{const t=Un.lift(e.range);return new ML(OL(t.getStartPosition()),OL(t.getEndPosition()),function(e){const t=ws(e);return TL(t.length-1,t[t.length-1].length)}(e.text))})).reverse()}constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}toString(){return`[${yL(this.startOffset)}...${yL(this.endOffset)}) -> ${yL(this.newLength)}`}}class PL{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>FL.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):null;return null===i?null:AL(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?TL(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):TL(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=yL(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?TL(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):TL(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx>5;if(0===n){const e=1<e};class UL{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}class VL{get length(){return this._length}constructor(e){this._length=e}}class GL extends VL{static create(e,t,i){let n=e.length;return t&&(n=RL(n,t.length)),i&&(n=RL(n,i.length)),new GL(n,e,t,i,t?t.missingOpeningBracketIds:HL.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,i,n,o){super(e),this.openingBracket=t,this.child=i,this.closingBracket=n,this.missingOpeningBracketIds=o}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new GL(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation(RL(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class zL extends VL{static create23(e,t,i,n=!1){let o=e.length,s=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(o=RL(o,t.length),s=s.merge(t.missingOpeningBracketIds),i){if(e.listHeight!==i.listHeight)throw new Error("Invalid list heights");o=RL(o,i.length),s=s.merge(i.missingOpeningBracketIds)}return n?new YL(o,e.listHeight+1,e,t,i,s):new KL(o,e.listHeight+1,e,t,i,s)}static getEmpty(){return new $L(CL,0,[],HL.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,i){super(e),this.listHeight=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),i=4===t.kind?t.toMutable():t;return t!==i&&this.setChild(e-1,i),i}makeFirstElementMutable(){if(this.throwIfImmutable(),0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new ai;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let n=1;nthis.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const n=this.lineTokens,o=n.getCount();let s=null;if(this.lineTokenOffset1e3)break}if(i>1500)break}const n=(o=e,s=t,r=this.lineIdx,a=this.lineCharOffset,o!==r?TL(r-o,a):TL(0,a-s));var o,s,r,a;return new eI(n,0,-1,HL.getEmpty(),new JL(n))}}class nI{constructor(e,t){this.text=e,this._offset=CL,this.idx=0;const i=t.getRegExpStr(),n=i?new RegExp(i+"|\n","gi"):null,o=[];let s,r=0,a=0,l=0,c=0;const d=[];for(let g=0;g<60;g++)d.push(new eI(TL(0,g),0,-1,HL.getEmpty(),new JL(TL(0,g))));const h=[];for(let g=0;g<60;g++)h.push(new eI(TL(1,g),0,-1,HL.getEmpty(),new JL(TL(1,g))));if(n)for(n.lastIndex=0;null!==(s=n.exec(e));){const e=s.index,i=s[0];if("\n"===i)r++,a=e+1;else{if(l!==e){let t;if(c===r){const i=e-l;if(ifunction(e){let t=bs(e);return/^[\w ]+/.test(e)&&(t=`\\b${t}`),/[\w ]+$/.test(e)&&(t=`${t}\\b`),t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,i]of this.map)if(2===i.kind&&i.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class sI{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=oI.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function rI(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){const n=i>>1;for(let o=0;o=3?e[2]:null,t)}function aI(e,t){return Math.abs(e.listHeight-t.listHeight)}function lI(e,t){return e.listHeight===t.listHeight?zL.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i=e=e.toMutable();const n=[];let o;for(;;){if(t.listHeight===i.listHeight){o=t;break}if(4!==i.kind)throw new Error("unexpected");n.push(i),i=i.makeLastElementMutable()}for(let s=n.length-1;s>=0;s--){const e=n[s];o?e.childrenLength>=3?o=zL.create23(e.unappendChild(),o,null,!1):(e.appendChildOfSameHeight(o),o=void 0):e.handleChildrenChanged()}return o?zL.create23(e,o,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable();const n=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw new Error("unexpected");n.push(i),i=i.makeFirstElementMutable()}let o=t;for(let s=n.length-1;s>=0;s--){const e=n[s];o?e.childrenLength>=3?o=zL.create23(o,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(o),o=void 0):e.handleChildrenChanged()}return o?zL.create23(o,e,null,!1):e}(t,e)}class cI{constructor(e){this.lastOffset=CL,this.nextNodes=[e],this.offsets=[CL],this.idxs=[]}readLongestNodeAt(e,t){if(NL(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=hI(this.nextNodes);if(!i)return;const n=hI(this.offsets);if(NL(e,n))return;if(NL(n,e))if(RL(n,i.length)<=e)this.nextNodeAfterCurrent();else{const e=dI(i);-1!==e?(this.nextNodes.push(i.getChild(e)),this.offsets.push(n),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const e=dI(i);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(i.getChild(e)),this.offsets.push(n),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=hI(this.offsets),t=hI(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const i=hI(this.nextNodes),n=dI(i,this.idxs[this.idxs.length-1]);if(-1!==n){this.nextNodes.push(i.getChild(n)),this.offsets.push(RL(e,t.length)),this.idxs[this.idxs.length-1]=n;break}this.idxs.pop()}}}function dI(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function hI(e){return e.length>0?e[e.length-1]:void 0}function uI(e,t,i,n){return new gI(e,t,i,n).parseDocument()}class gI{constructor(e,t,i,n){if(this.tokenizer=e,this.createImmutableLists=n,this._itemsConstructed=0,this._itemsFromCache=0,i&&n)throw new Error("Not supported");this.oldNodeReader=i?new cI(i):void 0,this.positionMapper=new PL(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(HL.getEmpty(),0);return e||(e=zL.getEmpty()),e}parseList(e,t){const i=[];for(;;){let n=this.tryReadChildFromCache(e);if(!n){const i=this.tokenizer.peek();if(!i||2===i.kind&&i.bracketIds.intersects(e))break;n=this.parseChild(e,t+1)}4===n.kind&&0===n.childrenLength||i.push(n)}return this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;const i=t,n=e[i].listHeight;for(t++;t=2?rI(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let n=i(),o=i();if(!o)return n;for(let s=i();s;s=i())aI(n,o)<=aI(o,s)?(n=lI(n,o),o=s):o=lI(o,s);return lI(n,o)}(i):rI(i,this.createImmutableLists)}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!EL(t)){const i=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(i=>!(null!==t&&!NL(i.length,t))&&i.canBeReused(e)));if(i)return this._itemsFromCache++,this.tokenizer.skip(i.length),i}}}parseChild(e,t){this._itemsConstructed++;const i=this.tokenizer.read();switch(i.kind){case 2:return new ZL(i.bracketIds,i.length);case 0:return i.astNode;case 1:{if(t>300)return new JL(i.length);const n=e.merge(i.bracketIds),o=this.parseList(n,t+1),s=this.tokenizer.peek();return s&&2===s.kind&&(s.bracketId===i.bracketId||s.bracketIds.intersects(i.bracketIds))?(this.tokenizer.read(),GL.create(i.astNode,o,s.astNode)):GL.create(i.astNode,o,null)}default:throw new Error("unexpected")}}}function mI(e,t){if(0===e.length)return t;if(0===t.length)return e;const i=new z(fI(e)),n=fI(t);n.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let o=i.dequeue();function s(e){if(void 0===e){const e=i.takeWhile((e=>!0))||[];return o&&e.unshift(o),e}const t=[];for(;o&&!EL(e);){const[n,s]=o.splitAt(e);t.push(n),e=AL(n.lengthAfter,e),o=null!=s?s:i.dequeue()}return EL(e)||t.push(new pI(!1,e,e)),t}const r=[];function a(e,t,i){if(r.length>0&&IL(r[r.length-1].endOffset,e)){const e=r[r.length-1];r[r.length-1]=new ML(e.startOffset,t,RL(e.newLength,i))}else r.push({startOffset:e,endOffset:t,newLength:i})}let l=CL;for(const c of n){const e=s(c.lengthBefore);if(c.modified){const t=RL(l,LL(e,(e=>e.lengthBefore)));a(l,t,c.lengthAfter),l=t}else for(const t of e){const e=l;l=RL(l,t.lengthBefore),t.modified&&a(e,l,t.lengthAfter)}}return r}class pI{constructor(e,t,i){this.modified=e,this.lengthBefore=t,this.lengthAfter=i}splitAt(e){const t=AL(e,this.lengthAfter);return IL(t,CL)?[this,void 0]:this.modified?[new pI(this.modified,this.lengthBefore,e),new pI(this.modified,CL,t)]:[new pI(this.modified,e,e),new pI(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${yL(this.lengthBefore)} -> ${yL(this.lengthAfter)}`}}function fI(e){const t=[];let i=CL;for(const n of e){const e=AL(i,n.startOffset);EL(e)||t.push(new pI(!1,e,e));const o=AL(n.startOffset,n.endOffset);t.push(new pI(!0,o,n.newLength)),i=n.endOffset}return t}class _I extends mi{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new Ri,this.denseKeyProvider=new UL,this.brackets=new sI(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new nI(this.textModel.getValue(),e);this.initialAstWithoutTokens=uI(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new ML(TL(e.fromLineNumber-1,0),TL(e.toLineNumber,0),TL(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=ML.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const i=mI(this.queuedTextEdits,e);this.queuedTextEdits=i,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=mI(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,i){const n=t;return uI(new tI(this.textModel,this.brackets),e,n,i)}getBracketsInRange(e,t){this.flushQueue();const i=TL(e.startLineNumber-1,e.startColumn-1),n=TL(e.endLineNumber-1,e.endColumn-1);return new K((e=>{const o=this.initialAstWithoutTokens||this.astWithTokens;SI(o,CL,o.length,i,n,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const i=OL(e.getStartPosition()),n=OL(e.getEndPosition());return new K((e=>{const o=this.initialAstWithoutTokens||this.astWithTokens,s=new CI(e,t,this.textModel);EI(o,CL,o.length,i,n,s,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return vI(t,CL,t.length,OL(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return bI(t,CL,t.length,OL(e))}}function bI(e,t,i,n){if(4===e.kind||2===e.kind){const o=[];for(const n of e.children)i=RL(t,n.length),o.push({nodeOffsetStart:t,nodeOffsetEnd:i}),t=i;for(let t=o.length-1;t>=0;t--){const{nodeOffsetStart:i,nodeOffsetEnd:s}=o[t];if(NL(i,n)){const o=bI(e.children[t],i,s,n);if(o)return o}}return null}if(3===e.kind)return null;if(1===e.kind){const n=xL(t,i);return{bracketInfo:e.bracketInfo,range:n}}return null}function vI(e,t,i,n){if(4===e.kind||2===e.kind){for(const o of e.children){if(NL(n,i=RL(t,o.length))){const e=vI(o,t,i,n);if(e)return e}t=i}return null}if(3===e.kind)return null;if(1===e.kind){const n=xL(t,i);return{bracketInfo:e.bracketInfo,range:n}}return null}function SI(e,t,i,n,o,s,r,a,l,c,d=!1){if(r>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let d=0;d200)return!0;let c=!0;if(2===e.kind){let d=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),d=t,t++,a.set(e.openingBracket.text,t)}const h=RL(t,e.openingBracket.length);let u=-1;if(s.includeMinIndentation&&(u=e.computeMinIndentation(t,s.textModel)),c=s.push(new SL(xL(t,i),xL(t,h),e.closingBracket?xL(RL(h,(null===(l=e.child)||void 0===l?void 0:l.length)||CL),i):void 0,r,d,e,u)),t=h,c&&e.child){const l=e.child;if(i=RL(t,l.length),kL(t,o)&&DL(i,n)&&(c=EI(l,t,i,n,o,s,r+1,a),!c))return!1}null==a||a.set(e.openingBracket.text,d)}else{let i=t;for(const t of e.children){const e=i;if(i=RL(i,t.length),kL(e,o)&&kL(n,i)&&(c=EI(t,e,i,n,o,s,r,a),!c))return!1}}return c}class wI extends mi{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new pi),this.onDidChangeEmitter=new Ri,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1,this._register(this.languageConfigurationService.onDidChange((e=>{var t;e.languageId&&!(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.didLanguageChange(e.languageId))||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())})))}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){var t;null===(t=this.bracketPairsTree.value)||void 0===t||t.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){var e;null===(e=this.bracketPairsTree.value)||void 0===e||e.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){var t;null===(t=this.bracketPairsTree.value)||void 0===t||t.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const i=new gi;this.bracketPairsTree.value=(e=i.add(new _I(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=i,{object:e,dispose:()=>null==t?void 0:t.dispose()}),i.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getBracketPairsInRange(e,!1))||K.empty}getBracketPairsInRangeWithMinIndentation(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getBracketPairsInRange(e,!0))||K.empty}getBracketsInRange(e,t=!1){var i;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(i=this.bracketPairsTree.value)||void 0===i?void 0:i.object.getBracketsInRange(e,t))||K.empty}findMatchingBracketUp(e,t,i){const n=this.textModel.validatePosition(t),o=this.textModel.getLanguageIdAtPosition(n.lineNumber,n.column);if(this.canBuildAST){const i=this.languageConfigurationService.getLanguageConfiguration(o).bracketsNew.getClosingBracketInfo(e);if(!i)return null;const n=this.getBracketPairsInRange(Un.fromPositions(t,t)).findLast((e=>i.closes(e.openingBracketInfo)));return n?n.openingBracketRange:null}{const t=e.toLowerCase(),s=this.languageConfigurationService.getLanguageConfiguration(o).brackets;if(!s)return null;const r=s.textIsBracket[t];return r?RI(this._findMatchingBracketUp(r,n,TI(i))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(Un.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy(W((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),Un.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const i=TI(t);return this._matchBracket(this.textModel.validatePosition(e),i)}}_establishBracketSearchOffsets(e,t,i,n){const o=t.getCount(),s=t.getLanguageId(n);let r=Math.max(0,e.column-1-i.maxBracketLength);for(let l=n-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=r)break;if(bu(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){r=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let l=n+1;l=a)break;if(bu(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){a=e;break}}return{searchStartOffset:r,searchEndOffset:a}}_matchBracket(e,t){const i=e.lineNumber,n=this.textModel.tokenization.getLineTokens(i),o=this.textModel.getLineContent(i),s=n.findTokenIndexAtOffset(e.column-1);if(s<0)return null;const r=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(s)).brackets;if(r&&!bu(n.getStandardTokenType(s))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,n,r,s),c=null;for(;;){const n=Gu.findNextBracketInRange(r.forwardRegex,i,o,a,l);if(!n)break;if(n.startColumn<=e.column&&e.column<=n.endColumn){const e=o.substring(n.startColumn-1,n.endColumn-1).toLowerCase(),i=this._matchFoundBracket(n,r.textIsBracket[e],r.textIsOpenBracket[e],t);if(i){if(i instanceof yI)return null;c=i}}a=n.endColumn-1}if(c)return c}if(s>0&&n.getStartOffset(s)===e.column-1){const r=s-1,a=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(r)).brackets;if(a&&!bu(n.getStandardTokenType(r))){const{searchStartOffset:s,searchEndOffset:l}=this._establishBracketSearchOffsets(e,n,a,r),c=Gu.findPrevBracketInRange(a.reversedRegex,i,o,s,l);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn){const e=o.substring(c.startColumn-1,c.endColumn-1).toLowerCase(),i=this._matchFoundBracket(c,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(i)return i instanceof yI?null:i}}}return null}_matchFoundBracket(e,t,i,n){if(!t)return null;const o=i?this._findMatchingBracketDown(t,e.getEndPosition(),n):this._findMatchingBracketUp(t,e.getStartPosition(),n);return o?o instanceof yI?o:[e,o]:null}_findMatchingBracketUp(e,t,i){const n=e.languageId,o=e.reversedRegex;let s=-1,r=0;const a=(t,n,a,l)=>{for(;;){if(i&&++r%100==0&&!i())return yI.INSTANCE;const c=Gu.findPrevBracketInRange(o,t,n,a,l);if(!c)break;const d=n.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(d)?s++:e.isClose(d)&&s--,0===s)return c;l=c.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),i=e.getCount(),o=this.textModel.getLineContent(l);let s=i-1,r=o.length,c=o.length;l===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),r=t.column-1,c=t.column-1);let d=!0;for(;s>=0;s--){const t=e.getLanguageId(s)===n&&!bu(e.getStandardTokenType(s));if(t)d?r=e.getStartOffset(s):(r=e.getStartOffset(s),c=e.getEndOffset(s));else if(d&&r!==c){const e=a(l,o,r,c);if(e)return e}d=t}if(d&&r!==c){const e=a(l,o,r,c);if(e)return e}}return null}_findMatchingBracketDown(e,t,i){const n=e.languageId,o=e.forwardRegex;let s=1,r=0;const a=(t,n,a,l)=>{for(;;){if(i&&++r%100==0&&!i())return yI.INSTANCE;const c=Gu.findNextBracketInRange(o,t,n,a,l);if(!c)break;const d=n.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(d)?s++:e.isClose(d)&&s--,0===s)return c;a=c.endColumn-1}return null},l=this.textModel.getLineCount();for(let c=t.lineNumber;c<=l;c++){const e=this.textModel.tokenization.getLineTokens(c),i=e.getCount(),o=this.textModel.getLineContent(c);let s=0,r=0,l=0;c===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),r=t.column-1,l=t.column-1);let d=!0;for(;s=1;r--){const e=this.textModel.tokenization.getLineTokens(r),t=e.getCount(),a=this.textModel.getLineContent(r);let l=t-1,c=a.length,d=a.length;if(r===i.lineNumber){l=e.findTokenIndexAtOffset(i.column-1),c=i.column-1,d=i.column-1;const t=e.getLanguageId(l);n!==t&&(n=t,o=this.languageConfigurationService.getLanguageConfiguration(n).brackets,s=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let h=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(o&&s&&h&&c!==d){const e=Gu.findPrevBracketInRange(o.reversedRegex,r,a,c,d);if(e)return this._toFoundBracket(s,e);h=!1}n=t,o=this.languageConfigurationService.getLanguageConfiguration(n).brackets,s=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const i=!!o&&!bu(e.getStandardTokenType(l));if(i)h?c=e.getStartOffset(l):(c=e.getStartOffset(l),d=e.getEndOffset(l));else if(s&&o&&h&&c!==d){const e=Gu.findPrevBracketInRange(o.reversedRegex,r,a,c,d);if(e)return this._toFoundBracket(s,e)}h=i}if(s&&o&&h&&c!==d){const e=Gu.findPrevBracketInRange(o.reversedRegex,r,a,c,d);if(e)return this._toFoundBracket(s,e)}}return null}findNextBracket(e){var t;const i=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getFirstBracketAfter(i))||null;const n=this.textModel.getLineCount();let o=null,s=null,r=null;for(let a=i.lineNumber;a<=n;a++){const e=this.textModel.tokenization.getLineTokens(a),t=e.getCount(),n=this.textModel.getLineContent(a);let l=0,c=0,d=0;if(a===i.lineNumber){l=e.findTokenIndexAtOffset(i.column-1),c=i.column-1,d=i.column-1;const t=e.getLanguageId(l);o!==t&&(o=t,s=this.languageConfigurationService.getLanguageConfiguration(o).brackets,r=this.languageConfigurationService.getLanguageConfiguration(o).bracketsNew)}let h=!0;for(;lvoid 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const n=TI(t),o=this.textModel.getLineCount(),s=new Map;let r=[];const a=(e,t)=>{if(!s.has(e)){const i=[];for(let e=0,n=t?t.brackets.length:0;e{for(;;){if(n&&++l%100==0&&!n())return yI.INSTANCE;const a=Gu.findNextBracketInRange(e.forwardRegex,t,i,o,s);if(!a)break;const c=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),d=e.textIsBracket[c];if(d&&(d.isOpen(c)?r[d.index]++:d.isClose(c)&&r[d.index]--,-1===r[d.index]))return this._matchFoundBracket(a,d,!1,n);o=a.endColumn-1}return null};let d=null,h=null;for(let u=i.lineNumber;u<=o;u++){const e=this.textModel.tokenization.getLineTokens(u),t=e.getCount(),n=this.textModel.getLineContent(u);let o=0,s=0,r=0;if(u===i.lineNumber){o=e.findTokenIndexAtOffset(i.column-1),s=i.column-1,r=i.column-1;const t=e.getLanguageId(o);d!==t&&(d=t,h=this.languageConfigurationService.getLanguageConfiguration(d).brackets,a(d,h))}let l=!0;for(;o!0;{const t=Date.now();return()=>Date.now()-t<=e}}class yI{constructor(){this._searchCanceledBrand=void 0}}function RI(e){return e instanceof yI?null:e}yI.INSTANCE=new yI;class LI extends mi{constructor(e){super(),this.textModel=e,this.colorProvider=new II,this.onDidChangeEmitter=new Ri,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i,n){return n||void 0===t?[]:this.colorizationOptions.enabled?this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray():[]}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new Un(1,1,this.textModel.getLineCount(),1),e,t):[]}}class II{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}function AI(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}XE(((e,t)=>{const i=[Dw,Ow,xw,Mw,Pw,Fw],n=new II;t.addRule(`.monaco-editor .${n.unexpectedClosingBracketClassName} { color: ${e.getColor(Bw)}; }`);const o=i.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let s=0;s<30;s++){const e=o[s%o.length];t.addRule(`.monaco-editor .${n.getInlineClassNameOfLevel(s)} { color: ${e}; }`)}}));class NI{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,i,n){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=n}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${AI(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${AI(this.oldText)}")`:`(replace@${this.oldPosition} "${AI(this.oldText)}" with "${AI(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const n=t.length;Au(e,n,i),i+=4;for(let o=0;o0&&(65279===n[0]||65534===n[0])?function(e,t,i){const n=[];let o=0;for(let s=0;se.length)return!1;if(i){if(!Ms(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===n&&i--,e.charAt(i)===n}return t.charAt(t.length-1)!==n&&(t+=n),0===e.indexOf(t)}function PI(e){return e>=65&&e<=90||e>=97&&e<=122}function FI(e){return Mn(e,!0)}const BI=new class{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:Ls(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===Ja.file)return MI(FI(e),FI(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if($I(e.authority,t.authority))return MI(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return An.joinPath(e,...t)}basenameOrAuthority(e){return UI(e)||e.authority}basename(e){return pn.basename(e.path)}extname(e){return pn.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===Ja.file?t=An.file(vn(FI(e))).path:(t=pn.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===Ja.file?An.file(fn(FI(e))).path:pn.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!$I(e.authority,t.authority))return;if(e.scheme===Ja.file){const i=bn(FI(e),FI(t));return Me?OI(i):i}let i=e.path||"/";const n=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(i.length,n.length);exI(i).length&&i[i.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=En){return jI(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=En){let i=!1;if(e.scheme===Ja.file){const n=FI(e);i=void 0!==n&&n.length===xI(n).length&&n[n.length-1]===t}else{t="/";const n=e.path;i=1===n.length&&47===n.charCodeAt(n.length-1)}return i||jI(e,t)?e:e.with({path:e.path+"/"})}}((()=>!1)),HI=BI.isEqual.bind(BI);BI.isEqualOrParent.bind(BI),BI.getComparisonKey.bind(BI);const WI=BI.basenameOrAuthority.bind(BI),UI=BI.basename.bind(BI),VI=BI.extname.bind(BI),GI=BI.dirname.bind(BI),zI=BI.joinPath.bind(BI),KI=BI.normalizePath.bind(BI),YI=BI.relativePath.bind(BI),qI=BI.resolvePath.bind(BI);BI.isAbsolutePath.bind(BI);const $I=BI.isEqualAuthority.bind(BI),jI=BI.hasTrailingPathSeparator.bind(BI);var XI;function JI(e){return e.toString()}BI.removeTrailingPathSeparator.bind(BI),BI.addTrailingPathSeparator.bind(BI),function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,n]=e.split(":");t&&n&&i.set(t,n)}));const n=t.path.substring(0,t.path.indexOf(";"));return n&&i.set(e.META_DATA_MIME,n),i}}(XI||(XI={}));class QI{static create(e,t){const i=e.getAlternativeVersionId(),n=tA(e);return new QI(i,i,n,n,t,t,[])}constructor(e,t,i,n,o,s,r){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=n,this.beforeCursorState=o,this.afterCursorState=s,this.changes=r}append(e,t,i,n,o){var s,r;t.length>0&&(this.changes=(r=t,null===(s=this.changes)||0===s.length?r:new kI(s,r).compress())),this.afterEOL=i,this.afterVersionId=n,this.afterCursorState=o}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,i){if(Au(e,t?t.length:0,i),i+=4,t)for(const n of t)Au(e,n.selectionStartLineNumber,i),i+=4,Au(e,n.selectionStartColumn,i),i+=4,Au(e,n.positionLineNumber,i),i+=4,Au(e,n.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const n=Iu(e,t);t+=4;for(let o=0;oe.toString())).join(", ")}matchesResource(e){return(An.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof QI}append(e,t,i,n,o){this._data instanceof QI&&this._data.append(e,t,i,n,o)}close(){this._data instanceof QI&&(this._data=this._data.serialize())}open(){this._data instanceof QI||(this._data=QI.deserialize(this._data))}undo(){if(An.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof QI&&(this._data=this._data.serialize());const e=QI.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(An.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof QI&&(this._data=this._data.serialize());const e=QI.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof QI&&(this._data=this._data.serialize()),this._data.byteLength+168}}class eA{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,i){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=i.slice(0),this._editStackElementsMap=new Map;for(const n of this._editStackElementsArr){const e=JI(n.resource);this._editStackElementsMap.set(e,n)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=JI(e);return this._editStackElementsMap.has(t)}setModel(e){const t=JI(An.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=JI(e.uri);return!!this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).canAppend(e)}append(e,t,i,n,o){const s=JI(e.uri);this._editStackElementsMap.get(s).append(e,t,i,n,o)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=JI(e);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).heapSize():0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${UI(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function tA(e){return"\n"===e.getEOL()?0:1}function iA(e){return!!e&&(e instanceof ZI||e instanceof eA)}class nA{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);iA(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);iA(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const i=this._undoRedoService.getLastElement(this._model.uri);if(iA(i)&&i.canAppend(this._model))return i;const n=new ZI(pe("vs/editor/common/model/editStack","edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(n,t),n}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],tA(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i,n){const o=this._getOrCreateEditStackElement(e,n),s=this._model.applyEdits(t,!0),r=nA._computeCursorState(i,s),a=s.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),o.append(this._model,a.map((e=>e.textChange)),tA(this._model),this._model.getAlternativeVersionId(),r),r}static _computeCursorState(e,t){try{return e?e(t):null}catch(sue){return Jt(sue),null}}}class oA{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function sA(e,t,i,n,o){let s;for(o.spacesDiff=0,o.looksLikeAlignment=!1,s=0;s0&&a>0)return;if(l>0&&c>0)return;const d=Math.abs(a-c),h=Math.abs(r-l);if(0===d)return o.spacesDiff=h,void(h>0&&0<=l-1&&l-10?o++:p>1&&s++,sA(r,a,l,m,d),d.looksLikeAlignment&&(!i||t!==d.spacesDiff))continue;const _=d.spacesDiff;_<=8&&c[_]++,r=l,a=m}let h=i;o!==s&&(h=o{const i=c[t];i>e&&(e=i,u=t)})),4===u&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(u=2)}return{insertSpaces:h,tabSize:u}}function aA(e){return(1&e.metadata)>>>0}function lA(e,t){e.metadata=254&e.metadata|t<<0}function cA(e){return(2&e.metadata)>>>1==1}function dA(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function hA(e){return(4&e.metadata)>>>2==1}function uA(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function gA(e){return(64&e.metadata)>>>6==1}function mA(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function pA(e,t){e.metadata=231&e.metadata|t<<3}function fA(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class _A{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,lA(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,uA(this,!1),mA(this,!1),pA(this,1),fA(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,dA(this,!1)}reset(e,t,i,n){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=n}setOptions(e){this.options=e;const t=this.options.className;uA(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),mA(this,null!==this.options.glyphMarginClassName),pA(this,this.options.stickiness),fA(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const bA=new _A(null,0,0);bA.parent=bA,bA.left=bA,bA.right=bA,lA(bA,0);class vA{constructor(){this.root=bA,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,n,o,s){return this.root===bA?[]:function(e,t,i,n,o,s,r){let a=e.root,l=0,c=0,d=0,h=0;const u=[];let g=0;for(;a!==bA;)if(cA(a))dA(a.left,!1),dA(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!cA(a.left)){if(c=l+a.maxEnd,ci)dA(a,!0);else{if(h=l+a.end,h>=t){a.setCachedOffsets(d,h,s);let e=!0;n&&a.ownerId&&a.ownerId!==n&&(e=!1),o&&hA(a)&&(e=!1),r&&!gA(a)&&(e=!1),e&&(u[g++]=a)}dA(a,!0),a.right===bA||cA(a.right)||(l+=a.delta,a=a.right)}}return dA(e.root,!1),u}(this,e,t,i,n,o,s)}search(e,t,i,n){return this.root===bA?[]:function(e,t,i,n,o){let s=e.root,r=0,a=0,l=0;const c=[];let d=0;for(;s!==bA;){if(cA(s)){dA(s.left,!1),dA(s.right,!1),s===s.parent.right&&(r-=s.parent.delta),s=s.parent;continue}if(s.left!==bA&&!cA(s.left)){s=s.left;continue}a=r+s.start,l=r+s.end,s.setCachedOffsets(a,l,n);let e=!0;t&&s.ownerId&&s.ownerId!==t&&(e=!1),i&&hA(s)&&(e=!1),o&&!gA(s)&&(e=!1),e&&(c[d++]=s),dA(s,!0),s.right===bA||cA(s.right)||(r+=s.delta,s=s.right)}return dA(e.root,!1),c}(this,e,t,i,n)}collectNodesFromOwner(e){return function(e,t){let i=e.root;const n=[];let o=0;for(;i!==bA;)cA(i)?(dA(i.left,!1),dA(i.right,!1),i=i.parent):i.left===bA||cA(i.left)?(i.ownerId===t&&(n[o++]=i),dA(i,!0),i.right===bA||cA(i.right)||(i=i.right)):i=i.left;return dA(e.root,!1),n}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const i=[];let n=0;for(;t!==bA;)cA(t)?(dA(t.left,!1),dA(t.right,!1),t=t.parent):t.left===bA||cA(t.left)?t.right===bA||cA(t.right)?(i[n++]=t,dA(t,!0)):t=t.right:t=t.left;return dA(e.root,!1),i}(this)}insert(e){EA(this,e),this._normalizeDeltaIfNecessary()}delete(e){wA(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let n=0;for(;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;const o=i.start+n,s=i.end+n;i.setCachedOffsets(o,s,t)}acceptReplace(e,t,i,n){const o=function(e,t,i){let n=e.root,o=0,s=0,r=0,a=0;const l=[];let c=0;for(;n!==bA;)if(cA(n))dA(n.left,!1),dA(n.right,!1),n===n.parent.right&&(o-=n.parent.delta),n=n.parent;else{if(!cA(n.left)){if(s=o+n.maxEnd,si?dA(n,!0):(a=o+n.end,a>=t&&(n.setCachedOffsets(r,a,0),l[c++]=n),dA(n,!0),n.right===bA||cA(n.right)||(o+=n.delta,n=n.right))}return dA(e.root,!1),l}(this,e,e+t);for(let s=0,r=o.length;si?(o.start+=l,o.end+=l,o.delta+=l,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),dA(o,!0)):(dA(o,!0),o.right===bA||cA(o.right)||(s+=o.delta,o=o.right))}dA(e.root,!1)}(this,e,e+t,i),this._normalizeDeltaIfNecessary();for(let s=0,r=o.length;si)&&1!==n&&(2===n||t)}function CA(e,t,i,n,o){const s=(24&e.metadata)>>>3,r=0===s||2===s,a=1===s||2===s,l=i-t,c=n,d=Math.min(l,c),h=e.start;let u=!1;const g=e.end;let m=!1;t<=h&&g<=i&&function(e){return(32&e.metadata)>>>5==1}(e)&&(e.start=t,u=!0,e.end=t,m=!0);{const e=o?1:l>0?2:0;!u&&SA(h,r,t,e)&&(u=!0),!m&&SA(g,a,t,e)&&(m=!0)}if(d>0&&!o){const e=l>c?2:0;!u&&SA(h,r,t+d,e)&&(u=!0),!m&&SA(g,a,t+d,e)&&(m=!0)}{const n=o?1:0;!u&&SA(h,r,i,n)&&(e.start=t+c,u=!0),!m&&SA(g,a,i,n)&&(e.end=t+c,m=!0)}const p=c-l;u||(e.start=Math.max(0,h+p)),m||(e.end=Math.max(0,g+p)),e.start>e.end&&(e.end=e.start)}function EA(e,t){if(e.root===bA)return t.parent=bA,t.left=bA,t.right=bA,lA(t,0),e.root=t,e.root;!function(e,t){let i=0,n=e.root;const o=t.start,s=t.end;for(;;)if(NA(o,s,n.start+i,n.end+i)<0){if(n.left===bA){t.start-=i,t.end-=i,t.maxEnd-=i,n.left=t;break}n=n.left}else{if(n.right===bA){t.start-=i+n.delta,t.end-=i+n.delta,t.maxEnd-=i+n.delta,n.right=t;break}i+=n.delta,n=n.right}t.parent=n,t.left=bA,t.right=bA,lA(t,1)}(e,t),AA(t.parent);let i=t;for(;i!==e.root&&1===aA(i.parent);)if(i.parent===i.parent.parent.left){const t=i.parent.parent.right;1===aA(t)?(lA(i.parent,0),lA(t,0),lA(i.parent.parent,1),i=i.parent.parent):(i===i.parent.right&&(i=i.parent,yA(e,i)),lA(i.parent,0),lA(i.parent.parent,1),RA(e,i.parent.parent))}else{const t=i.parent.parent.left;1===aA(t)?(lA(i.parent,0),lA(t,0),lA(i.parent.parent,1),i=i.parent.parent):(i===i.parent.left&&(i=i.parent,RA(e,i)),lA(i.parent,0),lA(i.parent.parent,1),yA(e,i.parent.parent))}return lA(e.root,0),t}function wA(e,t){let i,n;if(t.left===bA?(i=t.right,n=t,i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta):t.right===bA?(i=t.left,n=t):(n=function(e){for(;e.left!==bA;)e=e.left;return e}(t.right),i=n.right,i.start+=n.delta,i.end+=n.delta,i.delta+=n.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,n.delta=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0)),n===e.root)return e.root=i,lA(i,0),t.detach(),TA(),IA(i),void(e.root.parent=bA);const o=1===aA(n);if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?i.parent=n.parent:(n.parent===t?i.parent=n:i.parent=n.parent,n.left=t.left,n.right=t.right,n.parent=t.parent,lA(n,aA(t)),t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==bA&&(n.left.parent=n),n.right!==bA&&(n.right.parent=n)),t.detach(),o)return AA(i.parent),n!==t&&(AA(n),AA(n.parent)),void TA();let s;for(AA(i),AA(i.parent),n!==t&&(AA(n),AA(n.parent));i!==e.root&&0===aA(i);)i===i.parent.left?(s=i.parent.right,1===aA(s)&&(lA(s,0),lA(i.parent,1),yA(e,i.parent),s=i.parent.right),0===aA(s.left)&&0===aA(s.right)?(lA(s,1),i=i.parent):(0===aA(s.right)&&(lA(s.left,0),lA(s,1),RA(e,s),s=i.parent.right),lA(s,aA(i.parent)),lA(i.parent,0),lA(s.right,0),yA(e,i.parent),i=e.root)):(s=i.parent.left,1===aA(s)&&(lA(s,0),lA(i.parent,1),RA(e,i.parent),s=i.parent.left),0===aA(s.left)&&0===aA(s.right)?(lA(s,1),i=i.parent):(0===aA(s.left)&&(lA(s.right,0),lA(s,1),yA(e,s),s=i.parent.left),lA(s,aA(i.parent)),lA(i.parent,0),lA(s.left,0),RA(e,i.parent),i=e.root));lA(i,0),TA()}function TA(){bA.parent=bA,bA.delta=0,bA.start=0,bA.end=0}function yA(e,t){const i=t.right;i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,t.right=i.left,i.left!==bA&&(i.left.parent=t),i.parent=t.parent,t.parent===bA?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i,IA(t),IA(i)}function RA(e,t){const i=t.left;t.delta-=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=i.delta,t.end-=i.delta,t.left=i.right,i.right!==bA&&(i.right.parent=t),i.parent=t.parent,t.parent===bA?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i,IA(t),IA(i)}function LA(e){let t=e.end;if(e.left!==bA){const i=e.left.maxEnd;i>t&&(t=i)}if(e.right!==bA){const i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function IA(e){e.maxEnd=LA(e)}function AA(e){for(;e!==bA;){const t=LA(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function NA(e,t,i,n){return e===i?t-n:e-i}class kA{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==DA)return OA(this.right);let e=this;for(;e.parent!==DA&&e.parent.left!==e;)e=e.parent;return e.parent===DA?DA:e.parent}prev(){if(this.left!==DA)return xA(this.left);let e=this;for(;e.parent!==DA&&e.parent.right!==e;)e=e.parent;return e.parent===DA?DA:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const DA=new kA(null,0);function OA(e){for(;e.left!==DA;)e=e.left;return e}function xA(e){for(;e.right!==DA;)e=e.right;return e}function MA(e){return e===DA?0:e.size_left+e.piece.length+MA(e.right)}function PA(e){return e===DA?0:e.lf_left+e.piece.lineFeedCnt+PA(e.right)}function FA(){DA.parent=DA}function BA(e,t){const i=t.right;i.size_left+=t.size_left+(t.piece?t.piece.length:0),i.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=i.left,i.left!==DA&&(i.left.parent=t),i.parent=t.parent,t.parent===DA?e.root=i:t.parent.left===t?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i}function HA(e,t){const i=t.left;t.left=i.right,i.right!==DA&&(i.right.parent=t),i.parent=t.parent,t.size_left-=i.size_left+(i.piece?i.piece.length:0),t.lf_left-=i.lf_left+(i.piece?i.piece.lineFeedCnt:0),t.parent===DA?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i}function WA(e,t){let i,n;if(t.left===DA?(n=t,i=n.right):t.right===DA?(n=t,i=n.left):(n=OA(t.right),i=n.right),n===e.root)return e.root=i,i.color=0,t.detach(),FA(),void(e.root.parent=DA);const o=1===n.color;if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?(i.parent=n.parent,GA(e,i)):(n.parent===t?i.parent=n:i.parent=n.parent,GA(e,i),n.left=t.left,n.right=t.right,n.parent=t.parent,n.color=t.color,t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==DA&&(n.left.parent=n),n.right!==DA&&(n.right.parent=n),n.size_left=t.size_left,n.lf_left=t.lf_left,GA(e,n)),t.detach(),i.parent.left===i){const t=MA(i),n=PA(i);if(t!==i.parent.size_left||n!==i.parent.lf_left){const o=t-i.parent.size_left,s=n-i.parent.lf_left;i.parent.size_left=t,i.parent.lf_left=n,VA(e,i.parent,o,s)}}if(GA(e,i.parent),o)return void FA();let s;for(;i!==e.root&&0===i.color;)i===i.parent.left?(s=i.parent.right,1===s.color&&(s.color=0,i.parent.color=1,BA(e,i.parent),s=i.parent.right),0===s.left.color&&0===s.right.color?(s.color=1,i=i.parent):(0===s.right.color&&(s.left.color=0,s.color=1,HA(e,s),s=i.parent.right),s.color=i.parent.color,i.parent.color=0,s.right.color=0,BA(e,i.parent),i=e.root)):(s=i.parent.left,1===s.color&&(s.color=0,i.parent.color=1,HA(e,i.parent),s=i.parent.left),0===s.left.color&&0===s.right.color?(s.color=1,i=i.parent):(0===s.left.color&&(s.right.color=0,s.color=1,BA(e,s),s=i.parent.left),s.color=i.parent.color,i.parent.color=0,s.left.color=0,HA(e,i.parent),i=e.root));i.color=0,FA()}function UA(e,t){for(GA(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&BA(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,HA(e,t.parent.parent))}else{const i=t.parent.parent.left;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&HA(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,BA(e,t.parent.parent))}e.root.color=0}function VA(e,t,i,n){for(;t!==e.root&&t!==DA;)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}function GA(e,t){let i=0,n=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(i=MA((t=t.parent).left)-t.size_left,n=PA(t.left)-t.lf_left,t.size_left+=i,t.lf_left+=n;t!==e.root&&(0!==i||0!==n);)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}}DA.parent=DA,DA.left=DA,DA.right=DA,DA.color=0;const zA=65535;function KA(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class YA{constructor(e,t,i,n,o){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=o}}function qA(e,t=!0){const i=[0];let n=1;for(let o=0,s=e.length;o(e!==DA&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class JA{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let n=0;n=e)&&(i[n]=null,t=!0)}if(t){const e=[];for(const t of i)null!==t&&e.push(t);this._cache=e}}}class QA{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new jA("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=DA,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let o=0,s=e.length;o0){e[o].lineStarts||(e[o].lineStarts=qA(e[o].buffer));const t=new $A(o+1,{line:0,column:0},{line:e[o].lineStarts.length-1,column:e[o].buffer.length-e[o].lineStarts[e[o].lineStarts.length-1]},e[o].lineStarts.length-1,e[o].buffer.length);this._buffers.push(e[o]),n=this.rbInsertRight(n,t)}this._searchCache=new JA(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=65535-Math.floor(21845),i=2*t;let n="",o=0;const s=[];if(this.iterate(this.root,(r=>{const a=this.getNodeContent(r),l=a.length;if(o<=t||o+l0){const t=n.replace(/\r\n|\r|\n/g,e);s.push(new jA(t,qA(t)))}this.create(s,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new XA(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==DA;)if(n.left!==DA&&n.lf_left+1>=e)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt+1>=e)return i+=n.size_left,i+(this.getAccumulatedValue(n,e-n.lf_left-2)+t-1);e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const n=e;for(;t!==DA;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const o=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+o.index,0===o.index){const e=this.getOffsetAt(i+1,1);return new Wn(i+1,n-e+1)}return new Wn(i+1,o.remainder+1)}if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===DA){const t=this.getOffsetAt(i+1,1);return new Wn(i+1,n-e-t+1)}t=t.right}return new Wn(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(i,n);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o}getValueInRange2(e,t){if(e.node===t.node){const i=e.node,n=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n.substring(o+e.remainder,o+t.remainder)}let i=e.node;const n=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let s=n.substring(o+e.remainder,o+i.piece.length);for(i=i.next();i!==DA;){const e=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){s+=e.substring(n,n+t.remainder);break}s+=e.substr(n,i.piece.length),i=i.next()}return s}getLinesContent(){const e=[];let t=0,i="",n=!1;return this.iterate(this.root,(o=>{if(o===DA)return!0;const s=o.piece;let r=s.length;if(0===r)return!0;const a=this._buffers[s.bufferIndex].buffer,l=this._buffers[s.bufferIndex].lineStarts,c=s.start.line,d=s.end.line;let h=l[c]+s.start.column;if(n&&(10===a.charCodeAt(h)&&(h++,r--),e[t++]=i,i="",n=!1,0===r))return!0;if(c===d)return this._EOLNormalized||13!==a.charCodeAt(h+r-1)?i+=a.substr(h,r):(n=!0,i+=a.substr(h,r-1)),!0;i+=this._EOLNormalized?a.substring(h,Math.max(h,l[c+1]-this._EOLLength)):a.substring(h,l[c+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let n=c+1;ne+g,t.reset(0)):(_=h.buffer,b=e=>e,t.reset(g));do{if(p=t.next(_),p){if(b(p.index)>=m)return c;this.positionInBuffer(e,b(p.index)-u,f);const t=this.getLineFeedCnt(e.piece.bufferIndex,o,f),s=f.line===o.line?f.column-o.column+n:f.column+1,r=s+p[0].length;if(d[c++]=Im(new Un(i+t,s,i+t,r),p,a),b(p.index)+p[0].length>=m)return c;if(c>=l)return c}}while(p);return c}findMatchesLineByLine(e,t,i,n){const o=[];let s=0;const r=new Dm(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let c=this.positionInBuffer(a.node,a.remainder);const d=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,r,e.startLineNumber,e.startColumn,c,d,t,i,n,s,o),o;let h=e.startLineNumber,u=a.node;for(;u!==l.node;){const l=this.getLineFeedCnt(u.piece.bufferIndex,c,u.piece.end);if(l>=1){const a=this._buffers[u.piece.bufferIndex].lineStarts,d=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),g=a[c.line+l],m=h===e.startLineNumber?e.startColumn:1;if(s=this.findMatchesInNode(u,r,h,m,c,this.positionInBuffer(u,g-d),t,i,n,s,o),s>=n)return o;h+=l}const d=h===e.startLineNumber?e.startColumn-1:0;if(h===e.endLineNumber){const a=this.getLineContent(h).substring(d,e.endColumn-1);return s=this._findMatchesInLine(t,r,a,e.endLineNumber,d,s,o,i,n),o}if(s=this._findMatchesInLine(t,r,this.getLineContent(h).substr(d),h,d,s,o,i,n),s>=n)return o;h++,a=this.nodeAt2(h,1),u=a.node,c=this.positionInBuffer(a.node,a.remainder)}if(h===e.endLineNumber){const a=h===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(h).substring(a,e.endColumn-1);return s=this._findMatchesInLine(t,r,l,e.endLineNumber,a,s,o,i,n),o}const g=h===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(l.node,r,h,g,c,d,t,i,n,s,o),o}_findMatchesInLine(e,t,i,n,o,s,r,a,l){const c=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,d=i.length;let h=-a;for(;-1!==(h=i.indexOf(t,h+a));)if((!c||km(c,i,d,h,a))&&(r[s++]=new Em(new Un(n,h+1+o,n,h+1+a+o),null),s>=l))return s;return s}let d;t.reset(0);do{if(d=t.next(i),d&&(r[s++]=Im(new Un(n,d.index+1+o,n,d.index+1+d[0].length+o),d,a),s>=l))return s}while(d);return s}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==DA){const{node:i,remainder:n,nodeStartOffset:o}=this.nodeAt(e),s=i.piece,r=s.bufferIndex,a=this.positionInBuffer(i,n);if(0===i.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&o+s.length===e&&t.lengthe){const e=[];let o=new $A(s.bufferIndex,a,s.end,this.getLineFeedCnt(s.bufferIndex,a,s.end),this.offsetInBuffer(r,s.end)-this.offsetInBuffer(r,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&10===this.nodeCharCodeAt(i,n)){const e={line:o.start.line+1,column:0};o=new $A(o.bufferIndex,e,o.end,this.getLineFeedCnt(o.bufferIndex,e,o.end),o.length-1),t+="\n"}if(this.shouldCheckCRLF()&&this.startWithLF(t))if(13===this.nodeCharCodeAt(i,n-1)){const o=this.positionInBuffer(i,n-1);this.deleteNodeTail(i,o),t="\r"+t,0===i.piece.length&&e.push(i)}else this.deleteNodeTail(i,a);else this.deleteNodeTail(i,a);const l=this.createNewPieces(t);o.length>0&&this.rbInsertRight(i,o);let c=i;for(let t=0;t=0;s--)o=this.rbInsertLeft(o,n[s]);this.validateCRLFWithPrevNode(o),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const i=this.createNewPieces(e),n=this.rbInsertRight(t,i[0]);let o=n;for(let s=1;s=d))break;a=c+1}return i?(i.line=c,i.column=r-h,null):{line:c,column:r-h}}getLineFeedCnt(e,t,i){if(0===i.column)return i.line-t.line;const n=this._buffers[e].lineStarts;if(i.line===n.length-1)return i.line-t.line;const o=n[i.line+1],s=n[i.line]+i.column;if(o>s+1)return i.line-t.line;const r=s-1;return 13===this._buffers[e].buffer.charCodeAt(r)?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;tzA){const t=[];for(;e.length>zA;){const i=e.charCodeAt(65534);let n;13===i||i>=55296&&i<=56319?(n=e.substring(0,65534),e=e.substring(65534)):(n=e.substring(0,zA),e=e.substring(zA));const o=qA(n);t.push(new $A(this._buffers.length,{line:0,column:0},{line:o.length-1,column:n.length-o[o.length-1]},o.length-1,n.length)),this._buffers.push(new jA(n,o))}const i=qA(e);return t.push(new $A(this._buffers.length,{line:0,column:0},{line:i.length-1,column:e.length-i[i.length-1]},i.length-1,e.length)),this._buffers.push(new jA(e,i)),t}let t=this._buffers[0].buffer.length;const i=qA(e,!1);let n=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},n=this._lastChangeBufferPos;for(let e=0;e=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const n=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1),a=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return o+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:o,nodeStartLineNumber:s-(e-1-i.lf_left)}),a.substring(l+n,l+r-t)}if(i.lf_left+i.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(i,e-i.lf_left-2),o=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n=o.substring(s+t,s+i.piece.length);break}e-=i.lf_left+i.piece.lineFeedCnt,o+=i.size_left+i.piece.length,i=i.right}}for(i=i.next();i!==DA;){const e=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){const o=this.getAccumulatedValue(i,0),s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=e.substring(s,s+o-t),n}{const t=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=e.substr(t,i.piece.length)}i=i.next()}return n}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==DA;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){const i=e.piece,n=this.positionInBuffer(e,t),o=n.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,i.start,n);if(t!==o)return{index:t,remainder:0}}return{index:o,remainder:n.column}}getAccumulatedValue(e,t){if(t<0)return 0;const i=e.piece,n=this._buffers[i.bufferIndex].lineStarts,o=i.start.line+t+1;return o>i.end.line?n[i.end.line]+i.end.column-n[i.start.line]-i.start.column:n[o]-n[i.start.line]-i.start.column}deleteNodeTail(e,t){const i=e.piece,n=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.end),s=t,r=this.offsetInBuffer(i.bufferIndex,s),a=this.getLineFeedCnt(i.bufferIndex,i.start,s),l=a-n,c=r-o,d=i.length+c;e.piece=new $A(i.bufferIndex,i.start,s,a,d),VA(this,e,c,l)}deleteNodeHead(e,t){const i=e.piece,n=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.start),s=t,r=this.getLineFeedCnt(i.bufferIndex,s,i.end),a=r-n,l=o-this.offsetInBuffer(i.bufferIndex,s),c=i.length+l;e.piece=new $A(i.bufferIndex,s,i.end,r,c),VA(this,e,l,a)}shrinkNode(e,t,i){const n=e.piece,o=n.start,s=n.end,r=n.length,a=n.lineFeedCnt,l=t,c=this.getLineFeedCnt(n.bufferIndex,n.start,l),d=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,o);e.piece=new $A(n.bufferIndex,n.start,l,c,d),VA(this,e,d-r,c-a);const h=new $A(n.bufferIndex,i,s,this.getLineFeedCnt(n.bufferIndex,i,s),this.offsetInBuffer(n.bufferIndex,s)-this.offsetInBuffer(n.bufferIndex,i)),u=this.rbInsertRight(e,h);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const o=qA(t,!1);for(let h=0;he)t=t.left;else{if(t.size_left+t.piece.length>=e){n+=t.size_left;const i={node:t,remainder:e-t.size_left,nodeStartOffset:n};return this._searchCache.set(i),i}e-=t.size_left+t.piece.length,n+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let i=this.root,n=0;for(;i!==DA;)if(i.left!==DA&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const o=this.getAccumulatedValue(i,e-i.lf_left-2),s=this.getAccumulatedValue(i,e-i.lf_left-1);return n+=i.size_left,{node:i,remainder:Math.min(o+t-1,s),nodeStartOffset:n}}if(i.lf_left+i.piece.lineFeedCnt===e-1){const o=this.getAccumulatedValue(i,e-i.lf_left-2);if(o+t-1<=i.piece.length)return{node:i,remainder:o+t-1,nodeStartOffset:n};t-=i.piece.length-o;break}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==DA;){if(i.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(i,0),n=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,e),nodeStartOffset:n}}if(i.piece.length>=t-1)return{node:i,remainder:t-1,nodeStartOffset:this.offsetOfNode(i)};t-=i.piece.length,i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const i=this._buffers[e.piece.bufferIndex],n=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(n)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===DA||0===e.piece.lineFeedCnt)return!1;const t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,n=t.start.line,o=i[n]+t.start.column;return n!==i.length-1&&(!(i[n+1]>o+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(o))}endWithCR(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==DA&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const i=[],n=this._buffers[e.piece.bufferIndex].lineStarts;let o;o=0===e.piece.end.column?{line:e.piece.end.line-1,column:n[e.piece.end.line]-n[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const s=e.piece.length-1,r=e.piece.lineFeedCnt-1;e.piece=new $A(e.piece.bufferIndex,e.piece.start,o,r,s),VA(this,e,-1,-1),0===e.piece.length&&i.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new $A(t.piece.bufferIndex,a,t.piece.end,c,l),VA(this,t,-1,-1),0===t.piece.length&&i.push(t);const d=this.createNewPieces("\r\n");this.rbInsertRight(e,d[0]);for(let h=0;he.sortIndex-t.sortIndex))}this._mightContainRTL=n,this._mightContainUnusualLineTerminators=o,this._mightContainNonBasicASCII=s;const u=this._doApplyEdits(a);let g=null;if(t&&d.length>0){d.sort(((e,t)=>t.lineNumber-e.lineNumber)),g=[];for(let e=0,t=d.length;e0&&d[e-1].lineNumber===t)continue;const i=d[e].oldContent,n=this.getLineContent(t);0!==n.length&&n!==i&&-1===Ts(n)&&g.push(t)}}return this._onDidChangeContent.fire(),new ym(h,u,g)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,n=e[e.length-1].range,o=new Un(i.startLineNumber,i.startColumn,n.endLineNumber,n.endColumn);let s=i.startLineNumber,r=i.startColumn;const a=[];for(let u=0,g=e.length;u0&&a.push(i.text),s=n.endLineNumber,r=n.endColumn}const l=a.join(""),[c,d,h]=_L(l);return{sortIndex:0,identifier:e[0].identifier,range:o,rangeOffset:this.getOffsetAt(o.startLineNumber,o.startColumn),rangeLength:this.getValueLengthInRange(o,0),text:l,eolCount:c,firstLineLength:d,lastLineLength:h,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(ZA._sortOpsDescending);const t=[];for(let i=0;i0){const e=r.eolCount+1;c=1===e?new Un(a,l,a,l+r.firstLineLength):new Un(a,l,a+e-1,r.lastLineLength+1)}else c=new Un(a,l,a,l);i=c.endLineNumber,n=c.endColumn,t.push(c),o=r}return t}static _sortOpsAscending(e,t){const i=Un.compareRangesUsingEnds(e.range,t.range);return 0===i?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){const i=Un.compareRangesUsingEnds(e.range,t.range);return 0===i?t.sortIndex-e.sortIndex:-i}}class eN{constructor(e,t,i,n,o,s,r,a,l){this._chunks=e,this._bom=t,this._cr=i,this._lf=n,this._crlf=o,this._containsRTL=s,this._containsUnusualLineTerminators=r,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":i>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let o=0,s=i.length;o=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let i=1,n=0,o=0,s=0,r=!0;for(let l=0,c=t.length;l126)&&(r=!1)}const a=new YA(KA(e),n,o,s,r);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new jA(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=qs(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=Js(e)))}finish(e=!0){return this._finish(),new eN(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=qA(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}class iN{constructor(e){this._default=e,this._store=[]}get(e){return e=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,i){if(e>=this._store.length)return;if(0===t)return void this.insert(e,i);if(0===i)return void this.delete(e,t);const n=this._store.slice(0,e),o=this._store.slice(e+t),s=function(e,t){const i=[];for(let n=0;n=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const i=[];for(let n=0;n0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e)return void i.appendLineTokens(t)}this._tokens.push(new nN(e,[t]))}finalize(){return this._tokens}}class sN{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new aN(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class rN extends sN{constructor(e,t,i,n){super(e,t),this._textModel=i,this._languageIdCodec=n}updateTokensUntilLine(e,t){const i=this._textModel.getLanguageId();for(;;){const n=this.getFirstInvalidLine();if(!n||n.lineNumber>t)break;const o=this._textModel.getLineContent(n.lineNumber),s=dN(this._languageIdCodec,i,this.tokenizationSupport,o,!0,n.startState);e.add(n.lineNumber,s.tokens),this.store.setEndState(n.lineNumber,s.endState)}}getTokenTypeIfInsertingCharacter(e,t){const i=this.getStartState(e.lineNumber);if(!i)return 0;const n=this._textModel.getLanguageId(),o=this._textModel.getLineContent(e.lineNumber),s=o.substring(0,e.column-1)+t+o.substring(e.column-1),r=dN(this._languageIdCodec,n,this.tokenizationSupport,s,!0,i),a=new yf(r.tokens,s,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,i){const n=e.lineNumber,o=e.column,s=this.getStartState(n);if(!s)return null;const r=this._textModel.getLineContent(n),a=r.substring(0,o-1)+i+r.substring(o-1+t),l=this._textModel.getLanguageIdAtPosition(n,0),c=dN(this._languageIdCodec,l,this.tokenizationSupport,a,!0,s);return new yf(c.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e1&&r>=1;r--){const e=this._textModel.getLineFirstNonWhitespaceColumn(r);if(0!==e&&e0&&i>0&&(i--,t--),this._lineEndStates.replace(e.startLineNumber,i,t)}}class cN{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const i=this._ranges[t];i.start===e?i.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Bm(e+1,i.endExclusive):i.endExclusive===e+1?this._ranges[t]=new Bm(i.start,e):this._ranges.splice(t,1,new Bm(i.start,e),new Bm(e+1,i.endExclusive))}}addRange(e){Bm.addRange(e,this._ranges)}addRangeAndResize(e,t){let i=0;for(;!(i>=this._ranges.length||e.start<=this._ranges[i].endExclusive);)i++;let n=i;for(;!(n>=this._ranges.length||e.endExclusivee.toString())).join(" + ")}}function dN(e,t,i,n,o,s){let r=null;if(i)try{r=i.tokenizeEncoded(n,o,s.clone())}catch(sue){Jt(sue)}return r||(r=wf(e.encodeLanguageId(t),s)),yf.convertToEndOffset(r.tokens,n.length),r}class hN{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,Yr((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){var t;const i=null===(t=this._tokenizerWithStateStore)||void 0===t?void 0:t.getFirstInvalidLine();return i?(this._tokenizerWithStateStore.updateTokensUntilLine(e,i.lineNumber),i.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new qm(e,t))}}const uN=new Uint32Array(0).buffer;class gN{static deleteBeginning(e,t){return null===e||e===uN?e:gN.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===uN)return e;const i=mN(e),n=i[i.length-2];return gN.delete(e,t,n)}static delete(e,t,i){if(null===e||e===uN||t===i)return e;const n=mN(e),o=n.length>>>1;if(0===t&&n[n.length-2]===i)return uN;const s=yf.findIndexInTokensArray(n,t),r=s>0?n[s-1<<1]:0;if(il&&(n[a++]=e,n[a++]=n[1+(h<<1)],l=e)}if(a===n.length)return e;const d=new Uint32Array(a);return d.set(n.subarray(0,a),0),d.buffer}static append(e,t){if(t===uN)return e;if(e===uN)return t;if(null===e)return e;if(null===t)return null;const i=mN(e),n=mN(t),o=n.length>>>1,s=new Uint32Array(i.length+n.length);s.set(i,0);let r=i.length;const a=i[i.length-2];for(let l=0;l>>1;let s=yf.findIndexInTokensArray(n,t);s>0&&n[s-1<<1]===t&&s--;for(let r=s;r0}getTokens(e,t,i){let n=null;if(t1&&(t=Tf.getLanguageId(n[1])!==e),!t)return uN}if(!n||0===n.length){const i=new Uint32Array(2);return i[0]=t,i[1]=fN(e),i.buffer}return n[n.length-2]=t,0===n.byteOffset&&n.byteLength===n.buffer.byteLength?n.buffer:n}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const i=[];for(let n=0;n=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=gN.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=gN.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let n=null;i=this._len||(0!==t?(this._lineTokens[n]=gN.deleteEnding(this._lineTokens[n],e.column-1),this._lineTokens[n]=gN.insert(this._lineTokens[n],e.column-1,i),this._insertLines(e.lineNumber,t)):this._lineTokens[n]=gN.insert(this._lineTokens[n],e.column-1,i))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const i=[];for(let n=0,o=e.length;n>>0}class _N{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const n=t[0].getRange(),o=t[t.length-1].getRange();if(!n||!o)return e;i=e.plusRange(n).plusRange(o)}let n=null;for(let o=0,s=this._pieces.length;oi.endLineNumber){n=n||{index:o};break}if(e.removeTokens(i),e.isEmpty()){this._pieces.splice(o,1),o--,s--;continue}if(e.endLineNumberi.endLineNumber){n=n||{index:o};continue}const[t,r]=e.split(i);t.isEmpty()?n=n||{index:o}:r.isEmpty()||(this._pieces.splice(o,1,t,r),o++,s++,n=n||{index:o})}return n=n||{index:this._pieces.length},t.length>0&&(this._pieces=k(this._pieces,n.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const i=this._pieces;if(0===i.length)return t;const n=i[_N._findFirstPieceWithLine(i,e)].getLineTokens(e);if(!n)return t;const o=t.getCount(),s=n.getCount();let r=0;const a=[];let l=0,c=0;const d=(e,t)=>{e!==c&&(c=e,a[l++]=e,a[l++]=t)};for(let h=0;h>>0,l=~a>>>0;for(;rt)){for(;o>i&&e[o-1].startLineNumber<=t&&t<=e[o-1].endLineNumber;)o--;return o}n=o-1}}return i}acceptEdit(e,t,i,n,o){for(const s of this._pieces)s.acceptEdit(e,t,i,n,o)}}class bN extends Hy{constructor(e,t,i,n,o,s){super(),this._languageService=e,this._languageConfigurationService=t,this._textModel=i,this._bracketPairsTextModelPart=n,this._languageId=o,this._attachedViews=s,this._semanticTokens=new _N(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new Ri),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new Ri),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new Ri),this.onDidChangeTokens=this._onDidChangeTokens.event,this.grammarTokens=this._register(new vN(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews)),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(this.grammarTokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._register(this.grammarTokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()})))}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,i,n]=_L(t.text);this._semanticTokens.acceptEdit(t.range,e,i,n,t.text.length>0?t.text.charCodeAt(0):0)}this.grammarTokens.handleDidChangeContent(e)}handleDidChangeAttached(){this.grammarTokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this.grammarTokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new ai("Illegal value for lineNumber")}get hasTokens(){return this.grammarTokens.hasTokens}resetTokenization(){this.grammarTokens.resetTokenization()}get backgroundTokenizationState(){return this.grammarTokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this.grammarTokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this.grammarTokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this.grammarTokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this.grammarTokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,i){return this.grammarTokens.getTokenTypeIfInsertingCharacter(e,t,i)}tokenizeLineWithEdit(e,t,i){return this.grammarTokens.tokenizeLineWithEdit(e,t,i)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),i=this._textModel.getLineContent(t.lineNumber),n=this.getLineTokens(t.lineNumber),o=n.findTokenIndexAtOffset(t.column-1),[s,r]=bN._findLanguageBoundaries(n,o),a=dt(t.column,this.getLanguageConfiguration(n.getLanguageId(o)).getWordDefinition(),i.substring(s,r),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(o>0&&s===t.column-1){const[s,r]=bN._findLanguageBoundaries(n,o-1),a=dt(t.column,this.getLanguageConfiguration(n.getLanguageId(o-1)).getWordDefinition(),i.substring(s,r),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let n=0;for(let s=t;s>=0&&e.getLanguageId(s)===i;s--)n=e.getStartOffset(s);let o=e.getLineContent().length;for(let s=t,r=e.getCount();s{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(n.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let i=this._attachedViewStates.get(e);i||(i=new SN((()=>this.refreshRanges(i.lineRanges))),this._attachedViewStates.set(e,i)),i.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){var t;this._tokens.flush(),null===(t=this._debugBackgroundTokens)||void 0===t||t.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new aN(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[i,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=go.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(i){return Jt(i),[null,null]}return[e,t]})();if(this._tokenizer=i&&n?new rN(this._textModel.getLineCount(),i,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{2!==this._backgroundTokenizationState&&(this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire())},setEndState:(e,t)=>{var i;if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&(null===(i=this._tokenizer)||void 0===i||i.store.setEndState(e,t))}};i&&i.createBackgroundTokenizer&&!i.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=i.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new hN(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),(null==i?void 0:i.backgroundTokenizerShouldOnlyVerifyTokens)&&i.createBackgroundTokenizer?(this._debugBackgroundTokens=new pN(this._languageIdCodec),this._debugBackgroundStates=new aN(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=i.createBackgroundTokenizer(this._textModel,{setTokens:e=>{var t;null===(t=this._debugBackgroundTokens)||void 0===t||t.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{var i;null===(i=this._debugBackgroundStates)||void 0===i||i.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){var e;null===(e=this._defaultBackgroundTokenizer)||void 0===e||e.handleChanges()}handleDidChangeContent(e){var t,i,n;if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const i of e.changes){const[e,n]=_L(i.text);this._tokens.acceptEdit(i.range,e,n),null===(t=this._debugBackgroundTokens)||void 0===t||t.acceptEdit(i.range,e,n)}null===(i=this._debugBackgroundStates)||void 0===i||i.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),null===(n=this._defaultBackgroundTokenizer)||void 0===n||n.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=qm.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){var i,n;if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const o=new oN,{heuristicTokens:s}=this._tokenizer.tokenizeHeuristically(o,e,t),r=this.setTokens(o.finalize());if(s)for(const a of r.changes)null===(i=this._backgroundTokenizer.value)||void 0===i||i.requestTokens(a.fromLineNumber,a.toLineNumber+1);null===(n=this._defaultBackgroundTokenizer)||void 0===n||n.checkFinished()}forceTokenization(e){var t,i;const n=new oN;null===(t=this._tokenizer)||void 0===t||t.updateTokensUntilLine(n,e),this.setTokens(n.finalize()),null===(i=this._defaultBackgroundTokenizer)||void 0===i||i.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){var t;const i=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,i);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const o=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,i);!n.equals(o)&&(null===(t=this._debugBackgroundTokenizer.value)||void 0===t?void 0:t.reportMismatchingTokens)&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,i){if(!this._tokenizer)return 0;const n=this._textModel.validatePosition(new Wn(e,t));return this.forceTokenization(n.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(n,i)}tokenizeLineWithEdit(e,t,i){if(!this._tokenizer)return null;const n=this._textModel.validatePosition(e);return this.forceTokenization(n.lineNumber),this._tokenizer.tokenizeLineWithEdit(n,t,i)}get hasTokens(){return this._tokens.hasTokens}}class SN extends mi{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Kr((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){b(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}const CN=id("undoRedoService");class EN{constructor(e,t){this.resource=e,this.elements=t}}class wN{constructor(){this.id=wN._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}wN._ID=0,wN.None=new wN;class TN{constructor(){this.id=TN._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}TN._ID=0,TN.None=new TN;var yN,RN=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},LN=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};function IN(e,t){let i;var n;return i="string"==typeof e?function(e){const t=new tN;return t.acceptChunk(e),t.finish()}(e):(n=e)&&"function"==typeof n.read?function(e){const t=new tN;let i;for(;"string"==typeof(i=e.read());)t.acceptChunk(i);return t.finish()}(e):e,i.create(t)}let AN=0;class NN{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;for(;;){const n=this._source.read();if(null===n)return this._eos=!0,0===t?null:e.join("");if(n.length>0&&(e[t++]=n,i+=n.length),i>=65536)return e.join("")}}}const kN=()=>{throw new Error("Invalid change accessor")};let DN=yN=class extends mi{static resolveOptions(e,t){if(t.detectIndentation){const i=rA(e,t.tabSize,t.insertSpaces);return new Cm({tabSize:i.tabSize,indentSize:"tabSize",insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new Cm(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return hi(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,i,n=null,o,s,r){super(),this._undoRedoService=o,this._languageService=s,this._languageConfigurationService=r,this._onWillDispose=this._register(new Ri),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new KN((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new Ri),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new Ri),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new Ri),this._eventEmitter=this._register(new YN),this._languageSelectionListener=this._register(new pi),this._deltaDecorationCallCnt=0,this._attachedViews=new qN,AN++,this.id="$model"+AN,this.isForSimpleWidget=i.isForSimpleWidget,this._associatedResource=null==n?An.parse("inmemory://model/"+AN):n,this._attachedEditorCount=0;const{textBuffer:a,disposable:l}=IN(e,i.defaultEOL);this._buffer=a,this._bufferDisposable=l,this._options=yN.resolveOptions(this._buffer,i);const c="string"==typeof t?t:t.languageId;"string"!=typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new wI(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new Gy(this,this._languageConfigurationService)),this._decorationProvider=this._register(new LI(this)),this._tokenizationTextModelPart=new bN(this._languageService,this._languageConfigurationService,this,this._bracketPairs,c,this._attachedViews);const d=this._buffer.getLineCount(),h=this._buffer.getValueLengthInRange(new Un(1,1,d,this._buffer.getLineLength(d)+1),0);i.largeFileOptimizations?(this._isTooLargeForTokenization=h>yN.LARGE_FILE_SIZE_THRESHOLD||d>yN.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=h>yN.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=h>yN._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=ir(AN),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new MN,this._commandManager=new nA(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(c)}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new ZA([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=mi.None}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new lL(e,t)))}setValue(e){if(this._assertNotDisposed(),null==e)throw ni();const{textBuffer:t,disposable:i}=IN(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,n,o,s,r,a){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:n}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:o,isRedoing:s,isFlush:r}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),o=this.getLineCount(),s=this.getLineMaxColumn(o);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new MN,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new rL([new eL],this._versionId,!1,!1),this._createContentChanged2(new Un(1,1,o,s),0,n,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),o=this.getLineCount(),s=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new rL([new sL],this._versionId,!1,!1),this._createContentChanged2(new Un(1,1,o,s),0,n,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,n=t.length;i0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const i=this._buffer.getLineCount();for(let n=1;n<=i;n++){const i=this._buffer.getLineLength(n);i>=1e4?t+=i:e+=i}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t=void 0!==e.tabSize?e.tabSize:this._options.tabSize,i=void 0!==e.indentSize?e.indentSize:this._options.originalIndentSize,n=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces,o=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,s=void 0!==e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,r=new Cm({tabSize:t,indentSize:i,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:o,bracketPairColorizationOptions:s});if(this._options.equals(r))return;const a=this._options.createChangeEvent(r);this._options=r,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const i=rA(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),aT(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(Xs.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new ai("Operation would exceed heap memory limits");const i=this.getFullModelRange(),n=this.getValueInRange(i,e);return t?this._buffer.getBOM()+n:n}createSnapshot(e=!1){return new NN(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+n:n}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new ai("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new ai("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new ai("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new ai("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new ai("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new ai("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),i=e.startLineNumber,n=e.startColumn;let o=Math.floor("number"!=typeof i||isNaN(i)?1:i),s=Math.floor("number"!=typeof n||isNaN(n)?1:n);if(o<1)o=1,s=1;else if(o>t)o=t,s=this.getLineMaxColumn(o);else if(s<=1)s=1;else{const e=this.getLineMaxColumn(o);s>=e&&(s=e)}const r=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!=typeof r||isNaN(r)?1:r),c=Math.floor("number"!=typeof a||isNaN(a)?1:a);if(l<1)l=1,c=1;else if(l>t)l=t,c=this.getLineMaxColumn(l);else if(c<=1)c=1;else{const e=this.getLineMaxColumn(l);c>=e&&(c=e)}return i===o&&n===s&&r===l&&a===c&&e instanceof Un&&!(e instanceof Vn)?e:new Un(o,s,l,c)}_isValidPosition(e,t,i){return"number"==typeof e&&"number"==typeof t&&(!isNaN(e)&&!isNaN(t)&&(!(e<1||t<1)&&((0|e)===e&&(0|t)===t&&(!(e>this._buffer.getLineCount())&&(1===t||!(t>this.getLineMaxColumn(e))&&(1!==i||!Bs(this._buffer.getLineCharCode(e,t-2))))))))}_validatePosition(e,t,i){const n=Math.floor("number"!=typeof e||isNaN(e)?1:e),o=Math.floor("number"!=typeof t||isNaN(t)?1:t),s=this._buffer.getLineCount();if(n<1)return new Wn(1,1);if(n>s)return new Wn(s,this.getLineMaxColumn(s));if(o<=1)return new Wn(n,1);const r=this.getLineMaxColumn(n);return o>=r?new Wn(n,r):1===i&&Bs(this._buffer.getLineCharCode(n,o-2))?new Wn(n,o-1):new Wn(n,o)}validatePosition(e){return this._assertNotDisposed(),e instanceof Wn&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,s=e.endColumn;if(!this._isValidPosition(i,n,0))return!1;if(!this._isValidPosition(o,s,0))return!1;if(1===t){const e=n>1?this._buffer.getLineCharCode(i,n-2):0,t=s>1&&s<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,s-2):0,r=Bs(e),a=Bs(t);return!r&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof Un&&!(e instanceof Vn)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),i=this._validatePosition(e.endLineNumber,e.endColumn,0),n=t.lineNumber,o=t.column,s=i.lineNumber,r=i.column;{const e=o>1?this._buffer.getLineCharCode(n,o-2):0,t=r>1&&r<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,r-2):0,i=Bs(e),a=Bs(t);return i||a?n===s&&o===r?new Un(n,o-1,s,r-1):i&&a?new Un(n,o-1,s,r+1):i?new Un(n,o-1,s,r):new Un(n,o,s,r+1):new Un(n,o,s,r)}}modifyPosition(e,t){this._assertNotDisposed();const i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new Un(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,n){return this._buffer.findMatchesLineByLine(e,t,i,n)}findMatches(e,t,i,n,o,s,r=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>Un.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let c;if(l.push(a.reduce(((e,t)=>Un.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!i&&e.indexOf("\n")<0){const t=new Lm(e,i,n,o).parseSearchRequest();if(!t)return[];c=e=>this.findMatchesLineByLine(e,t,s,r)}else c=t=>Nm.findMatches(this,new Lm(e,i,n,o),t,s,r);return l.map(c).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,i,n,o,s){this._assertNotDisposed();const r=this.validatePosition(t);if(!i&&e.indexOf("\n")<0){const t=new Lm(e,i,n,o).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new Un(r.lineNumber,r.column,a,this.getLineMaxColumn(a)),c=this.findMatchesLineByLine(l,t,s,1);return Nm.findNextMatch(this,new Lm(e,i,n,o),r,s),c.length>0?c[0]:(l=new Un(1,1,r.lineNumber,this.getLineMaxColumn(r.lineNumber)),c=this.findMatchesLineByLine(l,t,s,1),c.length>0?c[0]:null)}return Nm.findNextMatch(this,new Lm(e,i,n,o),r,s)}findPreviousMatch(e,t,i,n,o,s){this._assertNotDisposed();const r=this.validatePosition(t);return Nm.findPreviousMatch(this,new Lm(e,i,n,o),r,s)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof wm?e:new wm(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let i=0,n=e.length;i({range:this.validateRange(e.range),text:e.text})));let n=!0;if(e)for(let t=0,o=e.length;to.endLineNumber,r=o.startLineNumber>t.endLineNumber;if(!n&&!r){s=!0;break}}if(!s){n=!1;break}}if(n)for(let e=0,o=this._trimAutoWhitespaceLines.length;et.endLineNumber||n===t.startLineNumber&&t.startColumn===o&&t.isEmpty()&&r&&r.length>0&&"\n"===r.charAt(0)||n===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&r&&r.length>0&&"\n"===r.charAt(r.length-1))){s=!1;break}}if(s){const e=new Un(n,1,n,o);t.push(new wm(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i,n)}_applyUndo(e,t,i,n){const o=e.map((e=>{const t=this.getPositionAt(e.newPosition),i=this.getPositionAt(e.newEnd);return{range:new Un(t.lineNumber,t.column,i.lineNumber,i.column),text:e.oldText}}));this._applyUndoRedoEdits(o,t,!0,!1,i,n)}_applyRedo(e,t,i,n){const o=e.map((e=>{const t=this.getPositionAt(e.oldPosition),i=this.getPositionAt(e.oldEnd);return{range:new Un(t.lineNumber,t.column,i.lineNumber,i.column),text:e.newText}}));this._applyUndoRedoEdits(o,t,!1,!0,i,n)}_applyUndoRedoEdits(e,t,i,n,o,s){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(o)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(s),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),n=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),o=this._buffer.getLineCount(),s=n.changes;if(this._trimAutoWhitespaceLines=n.trimAutoWhitespaceLineNumbers,0!==s.length){for(let i=0,n=s.length;i=0;t--){const i=a+t,n=g+t;b.takeFromEndWhile((e=>e.lineNumber>n));const o=b.takeFromEndWhile((e=>e.lineNumber===n));e.push(new iL(i,this.getLineContent(n),o))}if(he.lineNumbere.lineNumber===t))}e.push(new oL(n+1,a+d,c,l))}t+=u}this._emitContentChangedEvent(new rL(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===n.reverseEdits?void 0:n.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new iL(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new aL(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(t,i)=>this._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,zN(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,i)=>0===t.length&&0===i.length?[]:this._deltaDecorationsImpl(e,t,i)};let n=null;try{n=t(i)}catch(sue){Jt(sue)}return i.addDecoration=kN,i.changeDecoration=kN,i.changeDecorationOptions=kN,i.removeDecoration=kN,i.deltaDecorations=kN,n}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&Jt(new Error("Invoking deltaDecorations recursively could lead to leaking decorations.")),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const n=e?this._decorations[e]:null;if(!n)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:GN[i]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(n),delete this._decorations[n.id],null;const o=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),r=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);return this._decorationsTree.delete(n),n.reset(this.getVersionId(),s,r,o),n.setOptions(GN[i]),this._decorationsTree.insert(n),n.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let i=0,n=t.length;ithis.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,n=!1,o=!1){const s=this.getLineCount(),r=Math.min(s,Math.max(1,e)),a=Math.min(s,Math.max(1,t)),l=this.getLineMaxColumn(a),c=new Un(r,1,a,l),d=this._getDecorationsInRange(c,i,n,o);return x(d,this._decorationProvider.getDecorationsInRange(c,i,n)),d}getDecorationsInRange(e,t=0,i=!1,n=!1,o=!1){const s=this.validateRange(e),r=this._getDecorationsInRange(s,t,i,o);return x(r,this._decorationProvider.getDecorationsInRange(s,t,i,n)),r}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),n=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return tL.fromDecorations(n).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,i,n){const o=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,o,s,t,i,n)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(i.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const n=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),s=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),o,s,n),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const n=!(!i.options.overviewRuler||!i.options.overviewRuler.color),o=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(i.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const s=n!==o,r=(!!(a=t).after||!!a.before)!==xN(i);var a;s||r?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i,n=!1){const o=this.getVersionId(),s=t.length;let r=0;const a=i.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const c=new Array(a);for(;rthis._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const i of e){if(" "!==i&&"\t"!==i)break;t++}return t}(this.getLineContent(e))+1}};function ON(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function xN(e){return!!e.options.after||!!e.options.before}DN._MODEL_SYNC_LIMIT=52428800,DN.LARGE_FILE_SIZE_THRESHOLD=20971520,DN.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,DN.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456,DN.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:it.tabSize,indentSize:it.indentSize,insertSpaces:it.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:it.trimAutoWhitespace,largeFileOptimizations:it.largeFileOptimizations,bracketPairColorizationOptions:it.bracketPairColorizationOptions},DN=yN=RN([LN(4,CN),LN(5,eg),LN(6,Lg)],DN);class MN{constructor(){this._decorationsTree0=new vA,this._decorationsTree1=new vA,this._injectedTextDecorationsTree=new vA}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const i of t)null===i.range&&(i.range=e.getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd));return t}getAllInInterval(e,t,i,n,o,s){const r=e.getVersionId(),a=this._intervalSearch(t,i,n,o,r,s);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,i,n,o,s){const r=this._decorationsTree0.intervalSearch(e,t,i,n,o,s),a=this._decorationsTree1.intervalSearch(e,t,i,n,o,s),l=this._injectedTextDecorationsTree.intervalSearch(e,t,i,n,o,s);return r.concat(a).concat(l)}getInjectedTextInInterval(e,t,i,n){const o=e.getVersionId(),s=this._injectedTextDecorationsTree.intervalSearch(t,i,n,!1,o,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const i=e.getVersionId(),n=this._injectedTextDecorationsTree.search(t,!1,i,!1);return this._ensureNodesHaveRanges(e,n).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,i,n,o){const s=e.getVersionId(),r=this._search(t,i,n,s,o);return this._ensureNodesHaveRanges(e,r)}_search(e,t,i,n,o){if(i)return this._decorationsTree1.search(e,t,n,o);{const i=this._decorationsTree0.search(e,t,n,o),s=this._decorationsTree1.search(e,t,n,o),r=this._injectedTextDecorationsTree.search(e,t,n,o);return i.concat(s).concat(r)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),n=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(n)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){xN(e)?this._injectedTextDecorationsTree.insert(e):ON(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){xN(e)?this._injectedTextDecorationsTree.delete(e):ON(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){xN(e)?this._injectedTextDecorationsTree.resolveNode(e,t):ON(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,n){this._decorationsTree0.acceptReplace(e,t,i,n),this._decorationsTree1.acceptReplace(e,t,i,n),this._injectedTextDecorationsTree.acceptReplace(e,t,i,n)}}function PN(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class FN{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class BN extends FN{constructor(e){super(e),this._resolvedColor=null,this.position="number"==typeof e.position?e.position:bm.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"==typeof e)return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class HN{constructor(e){var t;this.position=null!==(t=null==e?void 0:e.position)&&void 0!==t?t:vm.Center,this.persistLane=null==e?void 0:e.persistLane}}class WN extends FN{constructor(e){var t,i;super(e),this.position=e.position,this.sectionHeaderStyle=null!==(t=e.sectionHeaderStyle)&&void 0!==t?t:null,this.sectionHeaderText=null!==(i=e.sectionHeaderText)&&void 0!==i?i:null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"==typeof e?Kp.fromHex(e):t.getColor(e.id)}}class UN{static from(e){return e instanceof UN?e:new UN(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class VN{static register(e){return new VN(e)}static createDynamic(e){return new VN(e)}constructor(e){var t,i,n,o,s,r;this.description=e.description,this.blockClassName=e.blockClassName?PN(e.blockClassName):null,this.blockDoesNotCollapse=null!==(t=e.blockDoesNotCollapse)&&void 0!==t?t:null,this.blockIsAfterEnd=null!==(i=e.blockIsAfterEnd)&&void 0!==i?i:null,this.blockPadding=null!==(n=e.blockPadding)&&void 0!==n?n:null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?PN(e.className):null,this.shouldFillLineOnLineBreak=null!==(o=e.shouldFillLineOnLineBreak)&&void 0!==o?o:null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new BN(e.overviewRuler):null,this.minimap=e.minimap?new WN(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new HN(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?PN(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?PN(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?PN(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?e.linesDecorationsTooltip.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e})):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?PN(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?PN(e.marginClassName):null,this.inlineClassName=e.inlineClassName?PN(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?PN(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?PN(e.afterContentClassName):null,this.after=e.after?UN.from(e.after):null,this.before=e.before?UN.from(e.before):null,this.hideInCommentTokens=null!==(s=e.hideInCommentTokens)&&void 0!==s&&s,this.hideInStringTokens=null!==(r=e.hideInStringTokens)&&void 0!==r&&r}}VN.EMPTY=VN.register({description:"empty"});const GN=[VN.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),VN.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),VN.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),VN.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function zN(e){return e instanceof VN?e:VN.createDynamic(e)}class KN extends mi{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new Ri),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var e;this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),null===(e=this._affectedInjectedTextLines)||void 0===e||e.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){var t,i;this._affectsMinimap||(this._affectsMinimap=!!(null===(t=e.minimap)||void 0===t?void 0:t.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!!(null===(i=e.overviewRuler)||void 0===i?void 0:i.color)),this._affectsGlyphMargin||(this._affectsGlyphMargin=!!e.glyphMarginClassName),this._affectsLineNumber||(this._affectsLineNumber=!!e.lineNumberClassName),this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class YN extends mi{constructor(){super(),this._fastEmitter=this._register(new Ri),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new Ri),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}class qN{constructor(){this._onDidChangeVisibleRanges=new Ri,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new $N((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class $N{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const i=e.map((e=>new qm(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:i,stabilized:t})}}class jN{static create(e){return new jN(e.get(134),e.get(133))}constructor(e,t){this.classifier=new XN(e,t)}createLineBreaksComputer(e,t,i,n,o){const s=[],r=[],a=[];return{addRequest:(e,t,i)=>{s.push(e),r.push(t),a.push(i)},finalize:()=>{const l=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,c=[];for(let e=0,d=s.length;e=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let JN=[],QN=[];function ZN(e,t,i,n,o,s,r,a){if(-1===o)return null;const l=i.length;if(l<=1)return null;const c="keepAll"===a,d=t.breakOffsets,h=t.breakOffsetsVisibleColumn,u=ok(i,n,o,s,r),g=o-u,m=JN,p=QN;let f=0,_=0,b=0,v=o;const S=d.length;let C=0;if(C>=0){let e=Math.abs(h[C]-v);for(;C+1=e)break;e=t,C++}}for(;Ct&&(t=_,o=b);let r=0,a=0,u=0,E=0;if(o<=v){let b=o,S=0===t?0:i.charCodeAt(t-1),C=0===t?0:e.get(S),w=!0;for(let o=t;o_&&nk(S,C,l,d,c)&&(r=t,a=b),b+=h,b>v){t>_?(u=t,E=b-h):(u=o+1,E=b),b-a>g&&(r=0),w=!1;break}S=l,C=d}if(w){f>0&&(m[f]=d[d.length-1],p[f]=h[d.length-1],f++);break}}if(0===r){let l=o,d=i.charCodeAt(t),h=e.get(d),m=!1;for(let n=t-1;n>=_;n--){const t=n+1,o=i.charCodeAt(n);if(9===o){m=!0;break}let p,f;if(Hs(o)?(n--,p=0,f=2):(p=e.get(o),f=Qs(o)?s:1),l<=v){if(0===u&&(u=t,E=l),l<=v-g)break;if(nk(o,p,d,h,c)){r=t,a=l;break}}l-=f,d=o,h=p}if(0!==r){const e=g-(E-a);if(e<=n){const t=i.charCodeAt(u);let o;o=Bs(t)?2:tk(t,E,n,s),e-o<0&&(r=0)}}if(m){C--;continue}}if(0===r&&(r=u,a=E),r<=_){const e=i.charCodeAt(_);Bs(e)?(r=_+2,a=b+2):(r=_+1,a=b+tk(e,b,n,s))}for(_=r,m[f]=r,b=a,p[f]=a,f++,v=a+g;C<0||C=w)break;w=e,C++}}return 0===f?null:(m.length=f,p.length=f,JN=t.breakOffsets,QN=t.breakOffsetsVisibleColumn,t.breakOffsets=m,t.breakOffsetsVisibleColumn=p,t.wrappedTextIndentLength=u,t)}function ek(e,t,i,n,o,s,r,a){const l=tL.applyInjectedText(t,i);let c,d;if(i&&i.length>0?(c=i.map((e=>e.options)),d=i.map((e=>e.column-1))):(c=null,d=null),-1===o)return c?new XR(d,c,[l.length],[],0):null;const h=l.length;if(h<=1)return c?new XR(d,c,[l.length],[],0):null;const u="keepAll"===a,g=ok(l,n,o,s,r),m=o-g,p=[],f=[];let _=0,b=0,v=0,S=o,C=l.charCodeAt(0),E=e.get(C),w=tk(C,0,n,s),T=1;Bs(C)&&(w+=1,C=l.charCodeAt(1),E=e.get(C),T++);for(let y=T;yS&&((0===b||w-v>m)&&(b=t,v=w-r),p[_]=b,f[_]=v,_++,S=v+m,b=0),C=i,E=o}return 0!==_||i&&0!==i.length?(p[_]=h,f[_]=w,new XR(d,c,p,f,g)):null}function tk(e,t,i,n){return 9===e?i-t%i:Qs(e)||e<32?n:1}function ik(e,t){return t-e%t}function nk(e,t,i,n,o){return 32!==i&&(2===t&&2!==n||1!==t&&1===n||!o&&3===t&&2!==n||!o&&3===n&&1!==t)}function ok(e,t,i,n,o){let s=0;if(0!==o){const r=Ts(e);if(-1!==r){for(let i=0;ii&&(s=0)}}return s}class sk{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new pT(new Un(1,1,1,1),0,0,new Wn(1,1),0),new pT(new Un(1,1,1,1),0,0,new Wn(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new uT(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.isEmpty()&&!t.isEmpty()?Vn.fromRange(t.collapseToEnd(),this.modelState.selection.getDirection()):Vn.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,n){return t.equals(i)?n:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,n=t.selectionStart.getStartPosition(),o=t.selectionStart.getEndPosition(),s=e.normalizePosition(i,2),r=this._validatePositionWithCache(e,n,i,s),a=this._validatePositionWithCache(e,o,n,r);return i.equals(s)&&n.equals(r)&&o.equals(a)?t:new pT(Un.fromPositions(r,a),t.selectionStartKind,t.selectionStartLeftoverVisibleColumns+n.column-r.column,s,t.leftoverVisibleColumns+i.column-s.column)}_setState(e,t,i){if(i&&(i=sk._validateViewState(e.viewModel,i)),t){const i=e.model.validateRange(t.selectionStart),n=t.selectionStart.equalsRange(i)?t.selectionStartLeftoverVisibleColumns:0,o=e.model.validatePosition(t.position),s=t.position.equals(o)?t.leftoverVisibleColumns:0;t=new pT(i,t.selectionStartKind,n,o,s)}else{if(!i)return;const n=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),o=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new pT(n,i.selectionStartKind,i.selectionStartLeftoverVisibleColumns,o,i.leftoverVisibleColumns)}if(i){const n=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),o=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new pT(n,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,o,t.leftoverVisibleColumns)}else{const n=e.coordinatesConverter.convertModelPositionToViewPosition(new Wn(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),o=e.coordinatesConverter.convertModelPositionToViewPosition(new Wn(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),s=new Un(n.lineNumber,n.column,o.lineNumber,o.column),r=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new pT(s,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,r,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class rk{constructor(e){this.context=e,this.cursors=[new sk(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map((e=>e.readSelectionFromMarkers(this.context)))}getAll(){return this.cursors.map((e=>e.asCursorState()))}getViewPositions(){return this.cursors.map((e=>e.viewState.position))}getTopMostViewPosition(){return function(e,t){return Km(e,((e,i)=>-t(e,i)))}(this.cursors,W((e=>e.viewState.position),Wn.compare)).viewState.position}getBottomMostViewPosition(){return function(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n=0&&(i=o)}return i}(this.cursors,W((e=>e.viewState.position),Wn.compare)).viewState.position}getSelections(){return this.cursors.map((e=>e.modelState.selection))}getViewSelections(){return this.cursors.map((e=>e.viewState.selection))}setSelections(e){this.setStates(uT.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){null!==e&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(ti){const e=t-i;for(let t=0;t=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(1===this.cursors.length)return;const e=this.cursors.slice(0),t=[];for(let i=0,n=e.length;ie.selection),Un.compareRangesUsingStarts));for(let i=0;ia&&e.index--;e.splice(a,1),t.splice(r,1),this._removeSecondaryCursor(a-1),i--}}}}class ak{constructor(e,t,i,n){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=n}}class lk{constructor(){this.type=0}}class ck{constructor(){this.type=1}}class dk{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class hk{constructor(e,t,i){this.selections=e,this.modelSelections=t,this.reason=i,this.type=3}}class uk{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler,this.affectsGlyphMargin=e.affectsGlyphMargin,this.affectsLineNumber=e.affectsLineNumber):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0,this.affectsGlyphMargin=!0,this.affectsLineNumber=!0)}}class gk{constructor(){this.type=5}}class mk{constructor(e){this.type=6,this.isFocused=e}}class pk{constructor(){this.type=7}}class fk{constructor(){this.type=8}}class _k{constructor(e,t){this.fromLineNumber=e,this.count=t,this.type=9}}class bk{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}}class vk{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}}class Sk{constructor(e,t,i,n,o,s,r){this.source=e,this.minimalReveal=t,this.range=i,this.selections=n,this.verticalType=o,this.revealHorizontal=s,this.scrollType=r,this.type=12}}class Ck{constructor(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class Ek{constructor(e){this.theme=e,this.type=14}}class wk{constructor(e){this.type=15,this.ranges=e}}class Tk{constructor(){this.type=16}}class yk extends mi{constructor(){super(),this._onEvent=this._register(new Ri),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}_addOutgoingEvent(e){for(let t=0,i=this._outgoingEvents.length;t0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class Rk{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class Lk{constructor(e,t,i,n){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=n,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(e){return e.kind!==this.kind?null:new Lk(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class Ik{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(e){return e.kind!==this.kind?null:new Ik(this.oldHasFocus,e.hasFocus)}}class Ak{constructor(e,t,i,n,o,s,r,a){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=n,this.scrollWidth=o,this.scrollLeft=s,this.scrollHeight=r,this.scrollTop=a,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!(this.scrollWidthChanged||this.scrollLeftChanged||this.scrollHeightChanged||this.scrollTopChanged)}attemptToMerge(e){return e.kind!==this.kind?null:new Ak(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class Nk{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class kk{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Dk{constructor(e,t,i,n,o,s,r){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=n,this.source=o,this.reason=s,this.reachedMaxCursorCount=r}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length;if(i!==t.length)return!1;for(let n=0;n0){const e=this._cursors.getSelections();for(let t=0;ts&&(n=n.slice(0,s),o=!0);const r=Uk.from(this._model,this);return this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,r,o)}setCursorColumnSelectData(e){this._columnSelectData=e}revealAll(e,t,i,n,o,s){const r=this._cursors.getViewPositions();let a=null,l=null;r.length>1?l=this._cursors.getViewSelections():a=Un.fromPositions(r[0],r[0]),e.emitViewEvent(new Sk(t,i,a,l,n,o,s))}revealPrimary(e,t,i,n,o,s){const r=[this._cursors.getPrimaryCursor().viewState.selection];e.emitViewEvent(new Sk(t,i,null,r,n,o,s))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,n=t.length;i0){const t=uT.fromModelSelections(i.resultingSelection);this.setStates(e,"modelChange",i.isUndoing?5:i.isRedoing?6:2,t)&&this.revealAll(e,"modelChange",!1,0,!0,0)}else{const t=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,uT.fromModelSelections(t))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,n){this.setStates(e,t,n,uT.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],n=[];for(let r=0,a=e.length;r0&&this._pushAutoClosedAction(i,n),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,n,o){const s=Uk.from(this._model,this);if(s.equals(n))return!1;const r=this._cursors.getSelections(),a=this._cursors.getViewSelections();if(e.emitViewEvent(new hk(a,r,i)),!n||n.cursorState.length!==s.cursorState.length||s.cursorState.some(((e,t)=>!e.modelState.equals(n.cursorState[t].modelState)))){const a=n?n.cursorState.map((e=>e.modelState.selection)):null,l=n?n.modelVersionId:0;e.emitOutgoingEvent(new Dk(a,r,l,s.modelVersionId,t||"keyboard",i,o))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,n=e.length;i=0)return null;const o=n.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!o)return null;const s=o[1],r=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(s);if(!r||1!==r.length)return null;const a=r[0].open,l=n.text.length-o[2].length-1,c=n.text.lastIndexOf(a,l-1);if(-1===c)return null;t.push([c,l])}return t}executeEdits(e,t,i,n){let o=null;"snippet"===t&&(o=this._findAutoClosingPairs(i)),o&&(i[0]._isTracked=!0);const s=[],r=[],a=this._model.pushEditOperations(this.getSelections(),i,(e=>{if(o)for(let i=0,n=o.length;i0&&this._pushAutoClosedAction(s,r)}_executeEdit(e,t,i,n=0){if(this.context.cursorConfig.readOnly)return;const o=Uk.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(sue){Jt(sue)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,n,o,!1)&&this.revealAll(t,i,!1,0,!0,0)}getAutoClosedCharacters(){return Vk.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new Kk(this._model,this.getSelections())}endComposition(e,t){const i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit((()=>{"keyboard"===t&&this._executeEditOperation(zT.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,i,this.getSelections(),this.getAutoClosedCharacters()))}),e,t)}type(e,t,i){this._executeEdit((()=>{if("keyboard"===i){const e=t.length;let i=0;for(;i{this._executeEditOperation(zT.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,n,o))}),e,s);else if(0!==o){const t=this.getSelections().map((e=>{const t=e.getPosition();return new Vn(t.lineNumber,t.column+o,t.lineNumber,t.column+o)}));this.setSelections(e,s,t,0)}}paste(e,t,i,n,o){this._executeEdit((()=>{this._executeEditOperation(zT.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,n||[]))}),e,o,4)}cut(e,t){this._executeEdit((()=>{this._executeEditOperation(RT.cut(this.context.cursorConfig,this._model,this.getSelections()))}),e,t)}executeCommand(e,t,i){this._executeEdit((()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new fT(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}executeCommands(e,t,i){this._executeEdit((()=>{this._executeEditOperation(new fT(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}}class Uk{static from(e,t){return new Uk(e.getVersionId(),t.getCursorStates())}constructor(e,t){this.modelVersionId=e,this.cursorState=t}equals(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t=t.length)return!1;if(!t[i].strictContainsRange(e[i]))return!1}return!0}}class Gk{static executeCommands(e,t,i){const n={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},o=this._innerExecuteCommands(n,i);for(let s=0,r=n.trackedRanges.length;s0&&(s[0]._isTracked=!0);let r=e.model.pushEditOperations(e.selectionsBefore,s,(i=>{const n=[];for(let t=0;te.identifier.minor-t.identifier.minor,s=[];for(let r=0;r0?(n[r].sort(o),s[r]=t[r].computeCursorState(e.model,{getInverseEditOperations:()=>n[r],getTrackedSelection:t=>{const i=parseInt(t,10),n=e.model._getTrackedRange(e.trackedRanges[i]);return 0===e.trackedRangesDirection[i]?new Vn(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):new Vn(n.endLineNumber,n.endColumn,n.startLineNumber,n.startColumn)}})):s[r]=e.selectionsBefore[r];return s}));r||(r=e.selectionsBefore);const a=[];for(const l in o)o.hasOwnProperty(l)&&a.push(parseInt(l,10));a.sort(((e,t)=>t-e));for(const l of a)r.splice(l,1);return r}static _arrayIsEmpty(e){for(let t=0,i=e.length;t{Un.isEmpty(e)&&""===s||n.push({identifier:{major:t,minor:o++},range:e,text:s,forceMoveMarkers:r,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let r=!1;const a={addEditOperation:s,addTrackedEditOperation:(e,t,i)=>{r=!0,s(e,t,i)},trackSelection:(t,i)=>{const n=Vn.liftSelection(t);let o;if(n.isEmpty())if("boolean"==typeof i)o=i?2:3;else{const t=e.model.getLineMaxColumn(n.startLineNumber);o=n.startColumn===t?2:3}else o=1;const s=e.trackedRanges.length,r=e.model._setTrackedRange(null,n,o);return e.trackedRanges[s]=r,e.trackedRangesDirection[s]=n.getDirection(),s.toString()}};try{i.getEditOperations(e.model,a)}catch(sue){return Jt(sue),{operations:[],hadTrackedEditOperation:!1}}return{operations:n,hadTrackedEditOperation:r}}static _getLoserCursorMap(e){(e=e.slice(0)).sort(((e,t)=>-Un.compareRangesUsingEnds(e.range,t.range)));const t={};for(let i=1;io.identifier.major?n.identifier.major:o.identifier.major,t[s.toString()]=!0;for(let t=0;t0&&i--}}return t}}class zk{constructor(e,t,i){this.text=e,this.startSelection=t,this.endSelection=i}}class Kk{static _capture(e,t){const i=[];for(const n of t){if(n.startLineNumber!==n.endLineNumber)return null;i.push(new zk(e.getLineContent(n.startLineNumber),n.startColumn-1,n.endColumn-1))}return i}constructor(e,t){this._original=Kk._capture(e,t)}deduceOutcome(e,t){if(!this._original)return null;const i=Kk._capture(e,t);if(!i)return null;if(this._original.length!==i.length)return null;const n=[];for(let o=0,s=this._original.length;oCf,tokenizeEncoded:(e,t,i)=>wf(0,i)};function qk(e,t,i,n,o,s,r){let a="
",l=n,c=0,d=!0;for(let h=0,u=t.getCount();h0;)r&&d?(g+=" ",d=!1):(g+=" ",d=!0),e--;break}case 60:g+="<",d=!1;break;case 62:g+=">",d=!1;break;case 38:g+="&",d=!1;break;case 0:g+="�",d=!1;break;case 65279:case 8232:case 8233:case 133:g+="�",d=!1;break;case 13:g+="​",d=!1;break;case 32:r&&d?(g+=" ",d=!1):(g+=" ",d=!0);break;default:g+=String.fromCharCode(t),d=!1}}if(a+=`${g}`,u>o||l>=o)break}return a+="
",a}function $k(e,t,i){let n='
';const o=ws(e);let s=i.getInitialState();for(let r=0,a=o.length;r0&&(n+="
");const a=i.tokenizeEncoded(e,!0,s);yf.convertToEndOffset(a.tokens,e.length);const l=new yf(a.tokens,e,t).inflate();let c=0;for(let t=0,i=l.getCount();t${_s(e.substring(c,o))}`,c=o}s=a.endState}return n+="
",n}class jk{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,n=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,n)}}class Xk{constructor(e,t,i,n,o){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=n,this.minWidth=o,this.prefixSum=0}}let Jk=class e{constructor(t,i,n,o){this._instanceId=ir(++e.INSTANCE_COUNT),this._pendingChanges=new jk,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=t,this._lineHeight=i,this._paddingTop=n,this._paddingBottom=o}static findInsertionIndex(e,t,i){let n=0,o=e.length;for(;n>>1;t===e[s].afterLineNumber?i{t=!0,e|=0,i|=0,n|=0,o|=0;const s=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new Xk(s,e,i,n,o)),s},changeOneWhitespace:(e,i,n)=>{t=!0,i|=0,n|=0,this._pendingChanges.change({id:e,newAfterLineNumber:i,newHeight:n})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const t of e)this._insertWhitespace(t);for(const e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(const e of i){const t=this._findWhitespaceIndex(e.id);-1!==t&&this._removeWhitespace(t)}return}const n=new Set;for(const a of i)n.add(a.id);const o=new Map;for(const a of t)o.set(a.id,a);const s=e=>{const t=[];for(const i of e)if(!n.has(i.id)){if(o.has(i.id)){const e=o.get(i.id);i.afterLineNumber=e.newAfterLineNumber,i.height=e.newHeight}t.push(i)}return t},r=s(this._arr).concat(s(e));r.sort(((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber)),this._arr=r,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(t){const i=e.findInsertionIndex(this._arr,t.afterLineNumber,t.ordinal);this._arr.splice(i,0,t),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,i-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,n=t.length;it&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(let i=0,n=this._arr.length;i=t.length||t[o+1].afterLineNumber>=e)return o;i=o+1|0}else n=o-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t1?this._lineHeight*(e-1):0,i+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(t?1:0))+this._paddingTop}getVerticalOffsetAfterLineNumber(e,t=!1){return this._checkPendingChanges(),e|=0,this._lineHeight*e+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(t?1:0))+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,i=this._arr.length;tthis.getLinesTotalHeight()}isInTopPadding(e){return 0!==this._paddingTop&&(this._checkPendingChanges(),e=this.getLinesTotalHeight()-this._paddingBottom)}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;const t=0|this._lineCount,i=this._lineHeight;let n=1,o=t;for(;n=s+i)n=t+1;else{if(e>=s)return t;o=t}}return n>t?t:n}getLinesViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this._lineHeight,n=0|this.getLineNumberAtOrAfterVerticalOffset(e),o=0|this.getVerticalOffsetForLineNumber(n);let s=0|this._lineCount,r=0|this.getFirstWhitespaceIndexAfterLineNumber(n);const a=0|this.getWhitespacesCount();let l,c;-1===r?(r=a,c=s+1,l=0):(c=0|this.getAfterLineNumberForWhitespaceIndex(r),l=0|this.getHeightForWhitespaceIndex(r));let d=o,h=d;const u=5e5;let g=0;o>=u&&(g=Math.floor(o/u)*u,g=Math.floor(g/i)*i,h-=g);const m=[],p=e+(t-e)/2;let f=-1;for(let S=n;S<=s;S++){for(-1===f&&(d<=p&&pp)&&(f=S),d+=i,m[S-n]=h,h+=i;c===S;)h+=l,d+=l,r++,r>=a?c=s+1:(c=0|this.getAfterLineNumberForWhitespaceIndex(r),l=0|this.getHeightForWhitespaceIndex(r));if(d>=t){s=S;break}}-1===f&&(f=s);const _=0|this.getVerticalOffsetForLineNumber(s);let b=n,v=s;return bt&&v--,{bigNumbersDelta:g,startLineNumber:n,endLineNumber:s,relativeVerticalOffset:m,centeredLineNumber:f,completelyVisibleStartLineNumber:b,completelyVisibleEndLineNumber:v,lineHeight:this._lineHeight}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e|=0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i,n;return i=t>=1?this._lineHeight*t:0,n=e>0?this.getWhitespacesAccumulatedHeight(e-1):0,i+n+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(i)+this.getHeightForWhitespaceIndex(i))return-1;for(;t=o+this.getHeightForWhitespaceIndex(n))t=n+1;else{if(e>=o)return n;i=n}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e|=0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const n=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:i,height:n}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),n=this.getWhitespacesCount()-1;if(i<0)return[];const o=[];for(let s=i;s<=n;s++){const e=this.getVerticalOffsetForWhitespaceIndex(s),i=this.getHeightForWhitespaceIndex(s);if(e>=t)break;o.push({id:this.getIdForWhitespaceIndex(s),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(s),verticalOffset:e,height:i})}return o}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}};Jk.INSTANCE_COUNT=0;class Qk{constructor(e,t,i,n){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(i|=0)<0&&(i=0),(n|=0)<0&&(n=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=n,this.scrollHeight=Math.max(i,n)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class Zk extends mi{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new Ri),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new Qk(0,0,0,0),this._scrollable=this._register(new mE({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,n=t.contentHeight!==e.contentHeight;(i||n)&&this._onDidContentSizeChange.fire(new Lk(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}}class eD extends mi{constructor(e,t,i){super(),this._configuration=e;const n=this._configuration.options,o=n.get(145),s=n.get(84);this._linesLayout=new Jk(t,n.get(67),s.top,s.bottom),this._maxLineWidth=0,this._overlayWidgetsMinWidth=0,this._scrollable=this._register(new Zk(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new Qk(o.contentWidth,0,o.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(114)?125:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(67)&&this._linesLayout.setLineHeight(t.get(67)),e.hasChanged(84)){const e=t.get(84);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(145)){const e=t.get(145),i=e.contentWidth,n=e.height,o=this._scrollable.getScrollDimensions(),s=o.contentWidth;this._scrollable.setScrollDimensions(new Qk(i,o.contentWidth,n,this._getContentHeight(i,n,s)))}else this._updateHeight();e.hasChanged(114)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const i=this._configuration.options.get(103);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,i){const n=this._configuration.options;let o=this._linesLayout.getLinesTotalHeight();return n.get(105)?o+=Math.max(0,t-n.get(67)-n.get(84).bottom):n.get(103).ignoreHorizontalScrollbarInContentHeight||(o+=this._getHorizontalScrollbarHeight(e,i)),o}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new Qk(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new Gf(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new Gf(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(){const e=this._configuration.options,t=this._maxLineWidth,i=e.get(146),n=e.get(50),o=e.get(145);if(i.isViewportWrapping){const i=e.get(73);return t>o.contentWidth+n.typicalHalfwidthCharacterWidth&&i.enabled&&"right"===i.side?t+o.verticalScrollbarWidth:t}{const i=e.get(104)*n.typicalHalfwidthCharacterWidth,s=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+i+o.verticalScrollbarWidth,s,this._overlayWidgetsMinWidth)}}setMaxLineWidth(e){this._maxLineWidth=e,this._updateContentWidth()}setOverlayWidgetsMinWidth(e){this._overlayWidgetsMinWidth=e,this._updateContentWidth()}_updateContentWidth(){const e=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Qk(e.width,this._computeContentWidth(),e.height,e.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}class tD{constructor(e,t,i,n,o){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=o,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const n=e.range,o=e.options;let s;if(o.isWholeLine){const e=this._coordinatesConverter.convertModelPositionToViewPosition(new Wn(n.startLineNumber,1),0,!1,!0),t=this._coordinatesConverter.convertModelPositionToViewPosition(new Wn(n.endLineNumber,this.model.getLineMaxColumn(n.endLineNumber)),1);s=new Un(e.lineNumber,e.column,t.lineNumber,t.column)}else s=this._coordinatesConverter.convertModelRangeToViewRange(n,1);i=new jf(s,o),this._decorationsCache[t]=i}return i}getMinimapDecorationsInRange(e){return this._getDecorationsInRange(e,!0,!1).decorations}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e,!1,!1),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e,t=!1,i=!1){const n=new Un(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(n,t,i).inlineDecorations[0]}_getDecorationsInRange(e,t,i){const n=this._linesCollection.getDecorationsInRange(e,this.editorId,Mt(this.configuration.options),t,i),o=e.startLineNumber,s=e.endLineNumber,r=[];let a=0;const l=[];for(let c=o;c<=s;c++)l[c-o]=[];for(let c=0,d=n.length;c1===e))}function oD(e,t){return sD(e,t.range,(e=>2===e))}function sD(e,t,i){for(let n=t.startLineNumber;n<=t.endLineNumber;n++){const o=e.tokenization.getLineTokens(n),s=n===t.startLineNumber,r=n===t.endLineNumber;let a=s?o.findTokenIndexAtOffset(t.startColumn-1):0;for(;at.endColumn-1);){if(!i(o.getStandardTokenType(a)))return!1;a++}}return!0}function rD(e,t){return null===e?t?lD.INSTANCE:cD.INSTANCE:new aD(e,t)}class aD{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const n=i>0?this._projectionData.breakOffsets[i-1]:0,o=this._projectionData.breakOffsets[i];let s;if(null!==this._projectionData.injectionOffsets){const i=this._projectionData.injectionOffsets.map(((e,t)=>new tL(0,0,e+1,this._projectionData.injectionOptions[t],0)));s=tL.applyInjectedText(e.getLineContent(t),i).substring(n,o)}else s=e.getValueInRange({startLineNumber:t,startColumn:n+1,endLineNumber:t,endColumn:o+1});return i>0&&(s=hD(this._projectionData.wrappedTextIndentLength)+s),s}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const n=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],n),n[0]}getViewLinesData(e,t,i,n,o,s,r){this._assertVisible();const a=this._projectionData,l=a.injectionOffsets,c=a.injectionOptions;let d,h=null;if(l){h=[];let e=0,t=0;for(let i=0;i0?a.breakOffsets[i-1]:0,s=a.breakOffsets[i];for(;ts)break;if(o0?a.wrappedTextIndentLength:0,r=t+Math.max(d-o,0),l=t+Math.min(h-o,s-o);r!==l&&n.push(new $f(r,l,e.inlineClassName,e.inlineClassNameAffectsLetterSpacing))}}if(!(h<=s))break;e+=r,t++}}}d=l?e.tokenization.getLineTokens(t).withInserted(l.map(((e,t)=>({offset:e,text:c[t].content,tokenMetadata:yf.defaultTokenMetadata})))):e.tokenization.getLineTokens(t);for(let u=i;u0?n.wrappedTextIndentLength:0,s=i>0?n.breakOffsets[i-1]:0,r=n.breakOffsets[i],a=e.sliceAndInflate(s,r,o);let l=a.getLineContent();i>0&&(l=hD(n.wrappedTextIndentLength)+l);const c=this._projectionData.getMinOutputOffset(i)+1,d=l.length+1,h=i+1=dD.length)for(let t=1;t<=e;t++)dD[t]=uD(t);return dD[e]}function uD(e){return new Array(e+1).join(" ")}class gD{constructor(e,t,i,n,o,s,r,a,l,c){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=o,this.tabSize=s,this.wrappingStrategy=r,this.wrappingColumn=a,this.wrappingIndent=l,this.wordBreak=c,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new fD(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),n=this.model.getInjectedTextDecorations(this._editorId),o=i.length,s=this.createLineBreaksComputer(),r=new z(tL.fromDecorations(n));for(let m=0;me.lineNumber===m+1));s.addRequest(i[m],e,t?t[m]:null)}const a=s.finalize(),l=[],c=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(Un.compareRangesUsingStarts);let d=1,h=0,u=-1,g=u+1=d&&e<=h,i=rD(a[m],!t);l[m]=i.getViewLineCount(),this.modelLineProjections[m]=i}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new jg(l)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e)))}setHiddenAreas(e){const t=function(e){if(0===e.length)return[];const t=e.slice();t.sort(Un.compareRangesUsingStarts);const i=[];let n=t[0].startLineNumber,o=t[0].endLineNumber;for(let s=1,r=t.length;so+1?(i.push(new Un(n,1,o,1)),n=e.startLineNumber,o=e.endLineNumber):e.endLineNumber>o&&(o=e.endLineNumber)}return i.push(new Un(n,1,o,1)),i}(e.map((e=>this.model.validateRange(e)))),i=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(Un.compareRangesUsingStarts);if(t.length===i.length){let e=!1;for(let n=0;n({range:e,options:VN.EMPTY})));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,n);const o=t;let s=1,r=0,a=-1,l=a+1=s&&e<=r?this.modelLineProjections[d].isVisible()&&(this.modelLineProjections[d]=this.modelLineProjections[d].setVisible(!1),t=!0):(c=!0,this.modelLineProjections[d].isVisible()||(this.modelLineProjections[d]=this.modelLineProjections[d].setVisible(!0),t=!0)),t){const e=this.modelLineProjections[d].getViewLineCount();this.projectedModelLineLineCounts.setValue(d,e)}}return c||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return!(e<1||e>this.modelLineProjections.length)&&this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,n,o){const s=this.fontInfo.equals(e),r=this.wrappingStrategy===t,a=this.wrappingColumn===i,l=this.wrappingIndent===n,c=this.wordBreak===o;if(s&&r&&a&&l&&c)return!1;const d=s&&r&&!a&&l&&c;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=n,this.wordBreak=o;let h=null;if(d){h=[];for(let e=0,t=this.modelLineProjections.length;e2&&!this.modelLineProjections[t-2].isVisible(),s=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let r=0;const a=[],l=[];for(let c=0,d=n.length;cr?(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,c=l+r-1,u=c+1,g=u+(o-r)-1,a=!0):ot?t:0|e}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),o=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),s=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),r=this.model.guides.getActiveIndentGuide(n.lineNumber,o.lineNumber,s.lineNumber),a=this.convertModelPositionToViewPosition(r.startLineNumber,1),l=this.convertModelPositionToViewPosition(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:l.lineNumber,indent:r.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,n=t.remainder;return new mD(i+1,n)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new Wn(e.modelLineNumber,n)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new Wn(e.modelLineNumber,n)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),n=this.getViewLineInfo(t),o=new Array;let s=this.getModelStartPositionOfViewLine(i),r=new Array;for(let a=i.modelLineNumber;a<=n.modelLineNumber;a++){const e=this.modelLineProjections[a-1];if(e.isVisible()){const t=a===i.modelLineNumber?i.modelLineWrappedLineIdx:0,o=a===n.modelLineNumber?n.modelLineWrappedLineIdx+1:e.getViewLineCount();for(let e=t;e{if(-1!==e.forWrappedLinesAfterColumn&&this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesAfterColumn).lineNumber>=i.modelLineWrappedLineIdx)return;if(-1!==e.forWrappedLinesBeforeOrAtColumn&&this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesBeforeOrAtColumn).lineNumberi.modelLineWrappedLineIdx)return}const n=this.convertModelPositionToViewPosition(i.modelLineNumber,e.horizontalLine.endColumn),o=this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.horizontalLine.endColumn);return o.lineNumber===i.modelLineWrappedLineIdx?new Uy(e.visibleColumn,t,e.className,new Vy(e.horizontalLine.top,n.column),-1,-1):o.lineNumber!!e)))}}return s}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let o=[];const s=[],r=[],a=i.lineNumber-1,l=n.lineNumber-1;let c=null;for(let g=a;g<=l;g++){const e=this.modelLineProjections[g];if(e.isVisible()){const t=e.getViewLineNumberOfModelPosition(0,g===a?i.column:1),n=e.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(g+1)),o=n-t+1;let l=0;o>1&&1===e.getViewLineMinColumn(this.model,g+1,n)&&(l=0===t?1:2),s.push(o),r.push(l),null===c&&(c=new Wn(g+1,0))}else null!==c&&(o=o.concat(this.model.guides.getLinesIndentGuides(c.lineNumber,g)),c=null)}null!==c&&(o=o.concat(this.model.guides.getLinesIndentGuides(c.lineNumber,n.lineNumber)),c=null);const d=t-e+1,h=new Array(d);let u=0;for(let g=0,m=o.length;gt&&(h=!0,d=t-o+1),n.getViewLinesData(this.model,l+1,c,d,o-e,i,a),o+=d,h)break}return a}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const n=this.projectedModelLineLineCounts.getIndexOf(e-1),o=n.index,s=n.remainder,r=this.modelLineProjections[o],a=r.getViewLineMinColumn(this.model,o+1,s),l=r.getViewLineMaxColumn(this.model,o+1,s);tl&&(t=l);const c=r.getModelColumnOfViewPosition(s,t);return this.model.validatePosition(new Wn(o+1,c)).equals(i)?new Wn(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),n=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new Un(i.lineNumber,i.column,n.lineNumber,n.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),n=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new Wn(i.modelLineNumber,n))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new Un(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2,n=!1,o=!1){const s=this.model.validatePosition(new Wn(e,t)),r=s.lineNumber,a=s.column;let l=r-1,c=!1;if(o)for(;l0&&!this.modelLineProjections[l].isVisible();)l--,c=!0;if(0===l&&!this.modelLineProjections[l].isVisible())return new Wn(n?0:1,1);const d=1+this.projectedModelLineLineCounts.getPrefixSum(l);let h;return h=c?o?this.modelLineProjections[l].getViewPositionOfModelPosition(d,1,i):this.modelLineProjections[l].getViewPositionOfModelPosition(d,this.model.getLineMaxColumn(l+1),i):this.modelLineProjections[r-1].getViewPositionOfModelPosition(d,a,i),h}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return Un.fromPositions(i)}{const t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),i=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new Un(t.lineNumber,t.column,i.lineNumber,i.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const e=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(e,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(0===i&&!this.modelLineProjections[i].isVisible())return 1;const n=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(n,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i,n,o){const s=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),r=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(r.lineNumber-s.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new Un(s.lineNumber,1,r.lineNumber,r.column),t,i,n,o);let a=[];const l=s.lineNumber-1,c=r.lineNumber-1;let d=null;for(let m=l;m<=c;m++)if(this.modelLineProjections[m].isVisible())null===d&&(d=new Wn(m+1,m===l?s.column:1));else if(null!==d){const e=this.model.getLineMaxColumn(m);a=a.concat(this.model.getDecorationsInRange(new Un(d.lineNumber,d.column,m,e),t,i,n)),d=null}null!==d&&(a=a.concat(this.model.getDecorationsInRange(new Un(d.lineNumber,d.column,r.lineNumber,r.column),t,i,n)),d=null),a.sort(((e,t)=>{const i=Un.compareRangesUsingStarts(e.range,t.range);return 0===i?e.idt.id?1:0:i}));const h=[];let u=0,g=null;for(const m of a){const e=m.id;g!==e&&(g=e,h[u++]=m)}return h}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return 0===t.modelLineWrappedLineIdx?this.model.getLineIndentColumn(t.modelLineNumber):0}}class mD{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}}class pD{constructor(e,t){this.modelRange=e,this.viewLines=t}}class fD{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t,i,n){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t,i,n)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class _D{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new bD(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,n){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,n)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new bk(t,i)}onModelLinesInserted(e,t,i,n){return new vk(t,i)}onModelLineChanged(e,t,i){return[!1,new _k(t,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,n=new Array(i);for(let o=0;ot)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}const vD=vm.Right;class SD{constructor(e){this.persist=0,this._requiredLanes=1,this.lanes=new Uint8Array(Math.ceil((e+1)*vD/8))}reset(e){const t=Math.ceil((e+1)*vD/8);this.lanes.length>>3]|=1<>>3]&1<>>3]&1<this._updateConfigurationViewLineCountNow()),0)),this._hasFocus=!1,this._viewportStart=ED.create(this.model),this.glyphLanes=new SD(0),this.model.isTooLargeForTokenization())this._lines=new _D(this.model);else{const e=this._configuration.options,t=e.get(50),i=e.get(139),s=e.get(146),r=e.get(138),a=e.get(129);this._lines=new gD(this._editorId,this.model,n,o,t,this.model.getOptions().tabSize,i,s.wrappingColumn,r,a)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new Wk(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new eD(this._configuration,this.getLineCount(),s)),this._register(this.viewLayout.onDidScroll((e=>{e.scrollTopChanged&&this._handleVisibleLinesChanged(),e.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new Ck(e)),this._eventDispatcher.emitOutgoingEvent(new Ak(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))}))),this._register(this.viewLayout.onDidContentSizeChange((e=>{this._eventDispatcher.emitOutgoingEvent(e)}))),this._decorations=new tD(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}}))),this._register(tR.getInstance().onDidChange((()=>{this._eventDispatcher.emitSingleViewEvent(new Tk)}))),this._register(this._themeService.onDidColorThemeChange((e=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new Ek(e))}))),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}getModelVisibleRanges(){const e=this.viewLayout.getLinesViewportData(),t=new Un(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber));return this._toModelVisibleRanges(t)}visibleLinesStabilized(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!0)}_handleVisibleLinesChanged(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!1)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new mk(e)),this._eventDispatcher.emitOutgoingEvent(new Ik(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new lk)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new ck)}_captureStableViewport(){if(this._viewportStart.isValid&&this.viewLayout.getCurrentScrollTop()>0){const e=new Wn(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber)),t=this.coordinatesConverter.convertViewPositionToModelPosition(e);return new RD(t,this._viewportStart.startLineDelta)}return new RD(null,0)}_onConfigurationChanged(e,t){const i=this._captureStableViewport(),n=this._configuration.options,o=n.get(50),s=n.get(139),r=n.get(146),a=n.get(138),l=n.get(129);this._lines.setWrappingSettings(o,s,r.wrappingColumn,a,l)&&(e.emitViewEvent(new gk),e.emitViewEvent(new fk),e.emitViewEvent(new uk(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(91)&&(this._decorations.reset(),e.emitViewEvent(new uk(null))),t.hasChanged(98)&&(this._decorations.reset(),e.emitViewEvent(new uk(null))),e.emitViewEvent(new dk(t)),this.viewLayout.onConfigurationChanged(t),i.recoverViewportStart(this.coordinatesConverter,this.viewLayout),hT.shouldRecreate(t)&&(this.cursorConfig=new hT(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let i=!1,n=!1;const o=e instanceof lL?e.rawContentChangedEvent.changes:e.changes,s=e instanceof lL?e.rawContentChangedEvent.versionId:null,r=this._lines.createLineBreaksComputer();for(const e of o)switch(e.changeType){case 4:for(let t=0;t!e.ownerId||e.ownerId===this._editorId))),r.addRequest(i,n,null)}break;case 2:{let t=null;e.injectedText&&(t=e.injectedText.filter((e=>!e.ownerId||e.ownerId===this._editorId))),r.addRequest(e.detail,t,null);break}}const a=r.finalize(),l=new z(a);for(const e of o)switch(e.changeType){case 1:this._lines.onModelFlushed(),t.emitViewEvent(new gk),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),i=!0;break;case 3:{const n=this._lines.onModelLinesDeleted(s,e.fromLineNumber,e.toLineNumber);null!==n&&(t.emitViewEvent(n),this.viewLayout.onLinesDeleted(n.fromLineNumber,n.toLineNumber)),i=!0;break}case 4:{const n=l.takeCount(e.detail.length),o=this._lines.onModelLinesInserted(s,e.fromLineNumber,e.toLineNumber,n);null!==o&&(t.emitViewEvent(o),this.viewLayout.onLinesInserted(o.fromLineNumber,o.toLineNumber)),i=!0;break}case 2:{const i=l.dequeue(),[o,r,a,c]=this._lines.onModelLineChanged(s,e.lineNumber,i);n=o,r&&t.emitViewEvent(r),a&&(t.emitViewEvent(a),this.viewLayout.onLinesInserted(a.fromLineNumber,a.toLineNumber)),c&&(t.emitViewEvent(c),this.viewLayout.onLinesDeleted(c.fromLineNumber,c.toLineNumber));break}}null!==s&&this._lines.acceptVersionId(s),this.viewLayout.onHeightMaybeChanged(),!i&&n&&(t.emitViewEvent(new fk),t.emitViewEvent(new uk(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const t=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&t){const e=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(e){const t=this.coordinatesConverter.convertModelPositionToViewPosition(e.getStartPosition()),i=this.viewLayout.getVerticalOffsetForLineNumber(t.lineNumber);this.viewLayout.setScrollPosition({scrollTop:i+this._viewportStart.startLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();e instanceof lL&&t.emitOutgoingEvent(new Fk(e.contentChangedEvent)),this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._handleVisibleLinesChanged()}))),this._register(this.model.onDidChangeTokens((e=>{const t=[];for(let i=0,n=e.ranges.length;i{this._eventDispatcher.emitSingleViewEvent(new pk),this.cursorConfig=new hT(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Pk(e))}))),this._register(this.model.onDidChangeLanguage((e=>{this.cursorConfig=new hT(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Mk(e))}))),this._register(this.model.onDidChangeOptions((e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const e=this._eventDispatcher.beginEmitViewEvents();e.emitViewEvent(new gk),e.emitViewEvent(new fk),e.emitViewEvent(new uk(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new hT(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Bk(e))}))),this._register(this.model.onDidChangeDecorations((e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new uk(e)),this._eventDispatcher.emitOutgoingEvent(new xk(e))})))}setHiddenAreas(e,t){var i;this.hiddenAreasModel.setHiddenAreas(t,e);const n=this.hiddenAreasModel.getMergedRanges();if(n===this.previousHiddenAreas)return;this.previousHiddenAreas=n;const o=this._captureStableViewport();let s=!1;try{const e=this._eventDispatcher.beginEmitViewEvents();s=this._lines.setHiddenAreas(n),s&&(e.emitViewEvent(new gk),e.emitViewEvent(new fk),e.emitViewEvent(new uk(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged());const t=null===(i=o.viewportStartModelPosition)||void 0===i?void 0:i.lineNumber;t&&n.some((e=>e.startLineNumber<=t&&t<=e.endLineNumber))||o.recoverViewportStart(this.coordinatesConverter,this.viewLayout)}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),s&&this._eventDispatcher.emitOutgoingEvent(new kk)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(145),t=this._configuration.options.get(67),i=Math.max(20,Math.round(e.height/t)),n=this.viewLayout.getLinesViewportData(),o=Math.max(1,n.completelyVisibleStartLineNumber-i),s=Math.min(this.getLineCount(),n.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new Un(o,this.getLineMinColumn(o),s,this.getLineMaxColumn(s)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(0===i.length)return[t];const n=[];let o=0,s=t.startLineNumber,r=t.startColumn;const a=t.endLineNumber,l=t.endColumn;for(let c=0,d=i.length;ca||(st.toInlineDecoration(e)))]),new Yf(s.minColumn,s.maxColumn,s.content,s.continuesWithWrappedLine,i,n,s.tokens,t,o,s.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const n=this._lines.getViewLinesData(e,t,i);return new zf(this.getTabSize(),n)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,Mt(this._configuration.options)),i=new wD;for(const n of t){const t=n.options,o=t.overviewRuler;if(!o)continue;const s=o.position;if(0===s)continue;const r=o.getColor(e.value),a=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.startLineNumber,n.range.startColumn),l=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.endLineNumber,n.range.endColumn);i.accept(r,t.zIndex,a,l,s)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const e=t.options.overviewRuler;null==e||e.invalidateCachedColor();const i=t.options.minimap;null==i||i.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}getValueLengthInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueLengthInRange(i,t)}modifyPosition(e,t){const i=this.coordinatesConverter.convertViewPositionToModelPosition(e),n=this.model.modifyPosition(i,t);return this.coordinatesConverter.convertModelPositionToViewPosition(n)}deduceModelPositionRelativeToViewPosition(e,t,i){const n=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=i:t+=i);const o=this.model.getOffsetAt(n)+t;return this.model.getPositionAt(o)}getPlainTextToCopy(e,t,i){const n=i?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(Un.compareRangesUsingStarts);let o=!1,s=!1;for(const a of e)a.isEmpty()?o=!0:s=!0;if(!s){if(!t)return"";const i=e.map((e=>e.startLineNumber));let o="";for(let e=0;e0&&i[e-1]===i[e]||(o+=this.model.getLineContent(i[e])+n);return o}if(o&&t){const t=[];let n=0;for(const o of e){const e=o.startLineNumber;o.isEmpty()?e!==n&&t.push(this.model.getLineContent(e)):t.push(this.model.getValueInRange(o,i?2:0)),n=e}return 1===t.length?t[0]:t}const r=[];for(const a of e)a.isEmpty()||r.push(this.model.getValueInRange(a,i?2:0));return 1===r.length?r[0]:r}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===bg)return null;if(1!==e.length)return null;let n=e[0];if(n.isEmpty()){if(!t)return null;const e=n.startLineNumber;n=new Un(e,this.model.getLineMinColumn(e),e,this.model.getLineMaxColumn(e))}const o=this._configuration.options.get(50),s=this._getColorMap();let r;return/[:;\\\/<>]/.test(o.fontFamily)||o.fontFamily===Yt.fontFamily?r=Yt.fontFamily:(r=o.fontFamily,r=r.replace(/"/g,"'"),/[,']/.test(r)||/[+ ]/.test(r)&&(r=`'${r}'`),r=`${r}, ${Yt.fontFamily}`),{mode:i,html:`
`+this._getHTMLToCopy(n,s)+"
"}}_getHTMLToCopy(e,t){const i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,s=e.endColumn,r=this.getTabSize();let a="";for(let l=i;l<=o;l++){const e=this.model.tokenization.getLineTokens(l),c=e.getLineContent(),d=l===i?n-1:0,h=l===o?s-1:c.length;a+=""===c?"
":qk(c,e.inflate(),t,d,h,r,Me)}return a}_getColorMap(){const e=go.getColorMap(),t=["#000000"];if(e)for(let i=1,n=e.length;ithis._cursor.setStates(n,e,t,i)))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector((n=>this._cursor.setSelections(n,e,t,i)))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector((t=>this._cursor.restoreState(t,e)))}_executeCursorEdit(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new Ok):this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit((n=>this._cursor.executeEdits(n,e,t,i)))}startComposition(){this._executeCursorEdit((e=>this._cursor.startComposition(e)))}endComposition(e){this._executeCursorEdit((t=>this._cursor.endComposition(t,e)))}type(e,t){this._executeCursorEdit((i=>this._cursor.type(i,e,t)))}compositionType(e,t,i,n,o){this._executeCursorEdit((s=>this._cursor.compositionType(s,e,t,i,n,o)))}paste(e,t,i,n){this._executeCursorEdit((o=>this._cursor.paste(o,e,t,i,n)))}cut(e){this._executeCursorEdit((t=>this._cursor.cut(t,e)))}executeCommand(e,t){this._executeCursorEdit((i=>this._cursor.executeCommand(i,e,t)))}executeCommands(e,t){this._executeCursorEdit((i=>this._cursor.executeCommands(i,e,t)))}revealAllCursors(e,t,i=!1){this._withViewEventsCollector((n=>this._cursor.revealAll(n,e,i,0,t,0)))}revealPrimaryCursor(e,t,i=!1){this._withViewEventsCollector((n=>this._cursor.revealPrimary(n,e,i,0,t,0)))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new Un(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Sk(e,!1,i,null,0,!0,0))))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new Un(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Sk(e,!1,i,null,0,!0,0))))}revealRange(e,t,i,n,o){this._withViewEventsCollector((s=>s.emitViewEvent(new Sk(e,!1,i,null,n,t,o))))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new class{constructor(){this.type=17}}),this._eventDispatcher.emitOutgoingEvent(new Nk))}_withViewEventsCollector(e){try{return e(this._eventDispatcher.beginEmitViewEvents())}finally{this._eventDispatcher.endEmitViewEvents()}}batchEvents(e){this._withViewEventsCollector((()=>{e()}))}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}};class ED{static create(e){const t=e._setTrackedRange(null,new Un(1,1,1,1),1);return new ED(e,1,!1,t,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}constructor(e,t,i,n,o){this._model=e,this._viewLineNumber=t,this._isValid=i,this._modelTrackedRange=n,this._startLineDelta=o}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(e,t){const i=e.coordinatesConverter.convertViewPositionToModelPosition(new Wn(t,e.getLineMinColumn(t))),n=e.model._setTrackedRange(this._modelTrackedRange,new Un(i.lineNumber,i.column,i.lineNumber,i.column),1),o=e.viewLayout.getVerticalOffsetForLineNumber(t),s=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=t,this._isValid=!0,this._modelTrackedRange=n,this._startLineDelta=s-o}invalidate(){this._isValid=!1}}class wD{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,n,o){const s=this._asMap[e];if(s){const e=s.data,t=e[e.length-3],r=e[e.length-1];if(t===o&&r+1>=i)return void(n>r&&(e[e.length-1]=n));e.push(o,i,n)}else{const s=new Xf(e,t,[o,i,n]);this._asMap[e]=s,this.asArray.push(s)}}}class TD{constructor(){this.hiddenAreas=new Map,this.shouldRecompute=!1,this.ranges=[]}setHiddenAreas(e,t){const i=this.hiddenAreas.get(e);i&&yD(i,t)||(this.hiddenAreas.set(e,t),this.shouldRecompute=!0)}getMergedRanges(){if(!this.shouldRecompute)return this.ranges;this.shouldRecompute=!1;const e=Array.from(this.hiddenAreas.values()).reduce(((e,t)=>function(e,t){const i=[];let n=0,o=0;for(;n=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},xD=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let MD=DD=class extends mi{get isSimpleWidget(){return this._configuration.isSimpleWidget}get contextMenuId(){return this._configuration.contextMenuId}constructor(e,t,i,n,o,s,r,a,l,c,d,h){var u,g;super(),this.languageConfigurationService=d,this._deliveryQueue=new Li,this._contributions=this._register(new pL),this._onDidDispose=this._register(new Ri),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new Ri({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new Ri({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new Ri({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new Ri({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new Ri({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new Ri({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new Ri({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onWillChangeModel=this._register(new Ri({deliveryQueue:this._deliveryQueue})),this.onWillChangeModel=this._onWillChangeModel.event,this._onDidChangeModel=this._register(new Ri({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new Ri({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new Ri({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new HD(this._contributions,this._deliveryQueue)),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new Ri({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new BD({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new BD({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new HD(this._contributions,this._deliveryQueue)),this.onWillType=this._onWillType.event,this._onDidType=this._register(new HD(this._contributions,this._deliveryQueue)),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new HD(this._contributions,this._deliveryQueue)),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new HD(this._contributions,this._deliveryQueue)),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new HD(this._contributions,this._deliveryQueue)),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new HD(this._contributions,this._deliveryQueue)),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new HD(this._contributions,this._deliveryQueue)),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new HD(this._contributions,this._deliveryQueue)),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new HD(this._contributions,this._deliveryQueue)),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new HD(this._contributions,this._deliveryQueue)),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new HD(this._contributions,this._deliveryQueue)),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new HD(this._contributions,this._deliveryQueue)),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new HD(this._contributions,this._deliveryQueue)),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new HD(this._contributions,this._deliveryQueue)),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new HD(this._contributions,this._deliveryQueue)),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new HD(this._contributions,this._deliveryQueue)),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new HD(this._contributions,this._deliveryQueue)),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new Ri({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new Ri({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new Ri({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new Ri({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._actions=new Map,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection(),o.willCreateCodeEditor();const m={...t};let p;this._domElement=e,this._overflowWidgetsDomNode=m.overflowWidgetsDomNode,delete m.overflowWidgetsDomNode,this._id=++PD,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(i.isSimpleWidget||!1,null!==(u=i.contextMenuId)&&void 0!==u?u:i.isSimpleWidget?bh.SimpleEditorContext:bh.EditorContext,m,c)),this._register(this._configuration.onDidChange((e=>{this._onDidChangeConfiguration.fire(e);const t=this._configuration.options;if(e.hasChanged(145)){const e=t.get(145);this._onDidLayoutChange.fire(e)}}))),this._contextKeyService=this._register(r.createScoped(this._domElement)),this._notificationService=l,this._codeEditorService=o,this._commandService=s,this._themeService=a,this._register(new WD(this,this._contextKeyService)),this._register(new UD(this,this._contextKeyService,h)),this._instantiationService=n.createChild(new LD([Zd,this._contextKeyService])),this._modelData=null,this._focusTracker=new VD(e,this._overflowWidgetsDomNode),this._register(this._focusTracker.onChange((()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())}))),this._contentWidgets={},this._overlayWidgets={},this._glyphMarginWidgets={},p=Array.isArray(i.contributions)?i.contributions:Kh.getEditorContributions(),this._contributions.initialize(this,p,this._instantiationService);for(const _ of Kh.getEditorActions()){if(this._actions.has(_.id)){Jt(new Error(`Cannot have two actions with the same id ${_.id}`));continue}const e=new fL(_.id,_.label,_.alias,_.metadata,null!==(g=_.precondition)&&void 0!==g?g:void 0,(e=>this._instantiationService.invokeFunction((t=>Promise.resolve(_.runEditorCommand(t,this,e))))),this._contextKeyService);this._actions.set(e.id,e)}const f=()=>!this._configuration.options.get(91)&&this._configuration.options.get(36).enabled;this._register(new Mc(this._domElement,{onDragOver:e=>{if(!f())return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);(null==t?void 0:t.position)&&this.showDropIndicatorAt(t.position)},onDrop:async e=>{if(!f())return;if(this.removeDropIndicator(),!e.dataTransfer)return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);(null==t?void 0:t.position)&&this._onDropIntoEditor.fire({position:t.position,event:e})},onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}writeScreenReaderContent(e){var t;null===(t=this._modelData)||void 0===t||t.view.writeScreenReaderContent(e)}_createConfiguration(e,t,i,n){return new z_(e,t,i,this._domElement,n)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return Sf.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose(),this._actions.clear(),this._contentWidgets={},this._overlayWidgets={},this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(e){return this._instantiationService.invokeFunction(e)}updateOptions(e){this._configuration.updateOptions(e||{})}getOptions(){return this._configuration.options}getOption(e){return this._configuration.options.get(e)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(e){return this._modelData?LT.getWordAtPosition(this._modelData.model,this._configuration.options.get(131),this._configuration.options.get(130),e):null}getValue(e=null){if(!this._modelData)return"";const t=!(!e||!e.preserveBOM);let i=0;return e&&e.lineEnding&&"\n"===e.lineEnding?i=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(i=2),this._modelData.model.getValue(i,t)}setValue(e){this._modelData&&this._modelData.model.setValue(e)}getModel(){return this._modelData?this._modelData.model:null}setModel(e=null){var t;const i=e;if(null===this._modelData&&null===i)return;if(this._modelData&&this._modelData.model===i)return;const n={oldModelUrl:(null===(t=this._modelData)||void 0===t?void 0:t.model.uri)||null,newModelUrl:(null==i?void 0:i.uri)||null};this._onWillChangeModel.fire(n);const o=this.hasTextFocus(),s=this._detachModel();this._attachModel(i),o&&this.hasModel()&&this.focus(),this._removeDecorationTypes(),this._onDidChangeModel.fire(n),this._postDetachModelCleanup(s),this._contributionsDisposable=this._contributions.onAfterModelAttached()}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const e in this._decorationTypeSubtypes){const t=this._decorationTypeSubtypes[e];for(const i in t)this._removeDecorationType(e+"-"+i)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(e,t,i,n){const o=e.model.validatePosition({lineNumber:t,column:i}),s=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(o);return e.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(s.lineNumber,n)}getTopForLineNumber(e,t=!1){return this._modelData?DD._getVerticalOffsetForPosition(this._modelData,e,1,t):-1}getTopForPosition(e,t){return this._modelData?DD._getVerticalOffsetForPosition(this._modelData,e,t,!1):-1}static _getVerticalOffsetForPosition(e,t,i,n=!1){const o=e.model.validatePosition({lineNumber:t,column:i}),s=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(o);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(s.lineNumber,n)}getBottomForLineNumber(e,t=!1){return this._modelData?DD._getVerticalOffsetAfterPosition(this._modelData,e,1,t):-1}setHiddenAreas(e,t){var i;null===(i=this._modelData)||void 0===i||i.viewModel.setHiddenAreas(e.map((e=>Un.lift(e))),t)}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return UC.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e,t="api"){if(this._modelData){if(!Wn.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,n){if(!this._modelData)return;if(!Un.isIRange(e))throw new Error("Invalid arguments");const o=this._modelData.model.validateRange(e),s=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(o);this._modelData.viewModel.revealRange("api",i,s,t,n)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if("number"!=typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new Un(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,n){if(!Wn.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new Un(e.lineNumber,e.column,e.lineNumber,e.column),t,i,n)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e,t="api"){const i=Vn.isISelection(e),n=Un.isIRange(e);if(!i&&!n)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(n){const i={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(i,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new Vn(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,n){if("number"!=typeof e||"number"!=typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new Un(e,1,t,1),i,!1,n)}revealRange(e,t=0,i=!1,n=!0){this._revealRange(e,i?1:0,n,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,n){if(!Un.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(Un.lift(e),t,i,n)}setSelections(e,t="api",i=0){if(this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(let t=0,i=e.length;t0&&this._modelData.viewModel.restoreCursorState(e):this._modelData.viewModel.restoreCursorState([e]),this._contributions.restoreViewState(t.contributionsState||{});const i=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(i)}}handleInitialized(){var e;null===(e=this._getViewModel())||void 0===e||e.visibleLinesStabilized()}getContribution(e){return this._contributions.get(e)}getActions(){return Array.from(this._actions.values())}getSupportedActions(){let e=this.getActions();return e=e.filter((e=>e.isSupported())),e}getAction(e){return this._actions.get(e)||null}trigger(e,t,i){switch(i=i||{},t){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(e);case"type":{const t=i;return void this._type(e,t.text||"")}case"replacePreviousChar":{const t=i;return void this._compositionType(e,t.text||"",t.replaceCharCnt||0,0,0)}case"compositionType":{const t=i;return void this._compositionType(e,t.text||"",t.replacePrevCharCnt||0,t.replaceNextCharCnt||0,t.positionDelta||0)}case"paste":{const t=i;return void this._paste(e,t.text||"",t.pasteOnNewLine||!1,t.multicursorText||null,t.mode||null,t.clipboardEvent)}case"cut":return void this._cut(e)}const n=this.getAction(t);n?Promise.resolve(n.run(i)).then(void 0,Jt):this._modelData&&(this._triggerEditorCommand(e,t,i)||this._triggerCommand(t,i))}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){this._modelData&&0!==t.length&&("keyboard"===e&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),"keyboard"===e&&this._onDidType.fire(t))}_compositionType(e,t,i,n,o){this._modelData&&this._modelData.viewModel.compositionType(t,i,n,o,e)}_paste(e,t,i,n,o,s){if(!this._modelData)return;const r=this._modelData.viewModel,a=r.getSelection().getStartPosition();r.paste(t,i,n,e);const l=r.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({clipboardEvent:s,range:new Un(a.lineNumber,a.column,l.lineNumber,l.column),languageId:o})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const n=Kh.getEditorCommand(t);return!!n&&((i=i||{}).source=e,this._instantiationService.invokeFunction((e=>{Promise.resolve(n.runEditorCommand(e,this,i)).then(void 0,Jt)})),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&!this._configuration.options.get(91)&&(this._modelData.model.pushStackElement(),!0)}popUndoStop(){return!!this._modelData&&!this._configuration.options.get(91)&&(this._modelData.model.popStackElement(),!0)}executeEdits(e,t,i){if(!this._modelData)return!1;if(this._configuration.options.get(91))return!1;let n;return n=i?Array.isArray(i)?()=>i:i:()=>null,this._modelData.viewModel.executeEdits(e,t,n),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}createDecorationsCollection(e){return new GD(this,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,Mt(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,Mt(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){this._modelData&&0!==e.length&&this._modelData.model.changeDecorations((t=>{t.deltaDecorations(e,[])}))}removeDecorationsByType(e){const t=this._decorationTypeKeysToIds[e];t&&this.changeDecorations((e=>e.deltaDecorations(t,[]))),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(145)}createOverviewRuler(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarPointerDown(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateScrollFromMouseWheelEvent(e)}layout(e,t=!1){this._configuration.observeContainer(e),t||this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId()),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const e=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(e)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId()),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const e=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(e)}}addGlyphMarginWidget(e){const t={widget:e,position:e.getPosition()};this._glyphMarginWidgets.hasOwnProperty(e.getId()),this._glyphMarginWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addGlyphMarginWidget(t)}layoutGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const i=this._glyphMarginWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutGlyphMarginWidget(i)}}removeGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const e=this._glyphMarginWidgets[t];delete this._glyphMarginWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeGlyphMarginWidget(e)}}changeViewZones(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;const t=this._modelData.model.validatePosition(e),i=this._configuration.options,n=i.get(145);return{top:DD._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+n.glyphMarginWidth+n.lineNumbersWidth+n.decorationsWidth-this.getScrollLeft(),height:i.get(67)}}getOffsetForColumn(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1}render(e=!1){this._modelData&&this._modelData.hasRealView&&this._modelData.viewModel.batchEvents((()=>{this._modelData.view.render(!0,e)}))}setAriaOptions(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)}applyFontInfo(e){Kc(e,this._configuration.options.get(50))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e)return void(this._modelData=null);const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount());const i=e.onBeforeAttached(),n=new CD(this._id,this._configuration,e,dL.create(gl(this._domElement)),jN.create(this._configuration.options),(e=>kl(gl(this._domElement),e)),this.languageConfigurationService,this._themeService,i);t.push(e.onWillDispose((()=>this.setModel(null)))),t.push(n.onEvent((t=>{switch(t.kind){case 0:this._onDidContentSizeChange.fire(t);break;case 1:this._editorTextFocus.setValue(t.hasFocus);break;case 2:this._onDidScrollChange.fire(t);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{if(t.reachedMaxCursorCount){const e=pe("vs/editor/browser/widget/codeEditor/codeEditorWidget","cursors.maximum","The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.",this.getOption(80));this._notificationService.prompt(ND.Warning,e,[{label:"Find and Replace",run:()=>{this._commandService.executeCommand("editor.action.startFindReplaceAction")}},{label:pe("vs/editor/browser/widget/codeEditor/codeEditorWidget","goToSetting","Increase Multi Cursor Limit"),run:()=>{this._commandService.executeCommand("workbench.action.openSettings2",{query:"editor.multiCursorLimit"})}}])}const e=[];for(let o=0,s=t.selections.length;o{this._paste("keyboard",e,t,i,n)},type:e=>{this._type("keyboard",e)},compositionType:(e,t,i,n)=>{this._compositionType("keyboard",e,t,i,n)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(e,t,i,n)=>{const o={text:e,pasteOnNewLine:t,multicursorText:i,mode:n};this._commandService.executeCommand("paste",o)},type:e=>{const t={text:e};this._commandService.executeCommand("type",t)},compositionType:(e,t,i,n)=>{if(i||n){const o={text:e,replacePrevCharCnt:t,replaceNextCharCnt:i,positionDelta:n};this._commandService.executeCommand("compositionType",o)}else{const i={text:e,replaceCharCnt:t};this._commandService.executeCommand("replacePreviousChar",i)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new by(e.coordinatesConverter);return i.onKeyDown=e=>this._onKeyDown.fire(e),i.onKeyUp=e=>this._onKeyUp.fire(e),i.onContextMenu=e=>this._onContextMenu.fire(e),i.onMouseMove=e=>this._onMouseMove.fire(e),i.onMouseLeave=e=>this._onMouseLeave.fire(e),i.onMouseDown=e=>this._onMouseDown.fire(e),i.onMouseUp=e=>this._onMouseUp.fire(e),i.onMouseDrag=e=>this._onMouseDrag.fire(e),i.onMouseDrop=e=>this._onMouseDrop.fire(e),i.onMouseDropCanceled=e=>this._onMouseDropCanceled.fire(e),i.onMouseWheel=e=>this._onMouseWheel.fire(e),[new qR(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode,this._instantiationService),!0]}_postDetachModelCleanup(e){null==e||e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){var e;if(null===(e=this._contributionsDisposable)||void 0===e||e.dispose(),this._contributionsDisposable=void 0,!this._modelData)return null;const t=this._modelData.model,i=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),i&&this._domElement.contains(i)&&this._domElement.removeChild(i),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),t}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return null!==this._modelData}showDropIndicatorAt(e){const t=[{range:new Un(e.lineNumber,e.column,e.lineNumber,e.column),options:DD.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(t),this.revealPosition(e,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}setContextValue(e,t){this._contextKeyService.createKey(e,t)}};MD.dropIntoEditorDecorationOptions=VN.register({description:"workbench-dnd-target",className:"dnd-target"}),MD=DD=OD([xD(3,td),xD(4,nd),xD(5,md),xD(6,Zd),xD(7,KE),xD(8,kD),xD(9,W_),xD(10,Lg),xD(11,lf)],MD);let PD=0,FD=class{constructor(e,t,i,n,o,s){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=n,this.listenersToRemove=o,this.attachedView=s}dispose(){di(this.listenersToRemove),this.model.onBeforeDetached(this.attachedView),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}};class BD extends mi{constructor(e){super(),this._emitterOptions=e,this._onDidChangeToTrue=this._register(new Ri(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new Ri(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}class HD extends Ri{constructor(e,t){super({deliveryQueue:t}),this._contributions=e}fire(e){this._contributions.onBeforeInteractionEvent(),super.fire(e)}}class WD extends mi{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=JT.editorSimpleInput.bindTo(t),this._editorFocus=JT.focus.bindTo(t),this._textInputFocus=JT.textInputFocus.bindTo(t),this._editorTextFocus=JT.editorTextFocus.bindTo(t),this._tabMovesFocus=JT.tabMovesFocus.bindTo(t),this._editorReadonly=JT.readOnly.bindTo(t),this._inDiffEditor=JT.inDiffEditor.bindTo(t),this._editorColumnSelection=JT.columnSelection.bindTo(t),this._hasMultipleSelections=JT.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=JT.hasNonEmptySelection.bindTo(t),this._canUndo=JT.canUndo.bindTo(t),this._canRedo=JT.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromConfig()))),this._register(this._editor.onDidChangeCursorSelection((()=>this._updateFromSelection()))),this._register(this._editor.onDidFocusEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidFocusEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidChangeModel((()=>this._updateFromModel()))),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromModel()))),this._register(H_.onDidChangeTabFocus((e=>this._tabMovesFocus.set(e)))),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._tabMovesFocus.set(H_.getTabFocusMode()),this._editorReadonly.set(e.get(91)),this._inDiffEditor.set(e.get(61)),this._editorColumnSelection.set(e.get(22))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some((e=>!e.isEmpty())))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class UD extends mi{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=JT.languageId.bindTo(t),this._hasCompletionItemProvider=JT.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=JT.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=JT.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=JT.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=JT.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=JT.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=JT.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=JT.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=JT.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=JT.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=JT.hasReferenceProvider.bindTo(t),this._hasRenameProvider=JT.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=JT.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=JT.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=JT.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=JT.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=JT.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=JT.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInEmbeddedEditor=JT.isInEmbeddedEditor.bindTo(t);const n=()=>this._update();this._register(e.onDidChangeModel(n)),this._register(e.onDidChangeModelLanguage(n)),this._register(i.completionProvider.onDidChange(n)),this._register(i.codeActionProvider.onDidChange(n)),this._register(i.codeLensProvider.onDidChange(n)),this._register(i.definitionProvider.onDidChange(n)),this._register(i.declarationProvider.onDidChange(n)),this._register(i.implementationProvider.onDidChange(n)),this._register(i.typeDefinitionProvider.onDidChange(n)),this._register(i.hoverProvider.onDidChange(n)),this._register(i.documentHighlightProvider.onDidChange(n)),this._register(i.documentSymbolProvider.onDidChange(n)),this._register(i.referenceProvider.onDidChange(n)),this._register(i.renameProvider.onDidChange(n)),this._register(i.documentFormattingEditProvider.onDidChange(n)),this._register(i.documentRangeFormattingEditProvider.onDidChange(n)),this._register(i.signatureHelpProvider.onDidChange(n)),this._register(i.inlayHintsProvider.onDidChange(n)),n()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents((()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInEmbeddedEditor.reset()}))}_update(){const e=this._editor.getModel();e?this._contextKeyService.bufferChangeEvents((()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInEmbeddedEditor.set(e.uri.scheme===Ja.walkThroughSnippet||e.uri.scheme===Ja.vscodeChatCodeBlock)})):this.reset()}}class VD extends mi{constructor(e,t){super(),this._onChange=this._register(new Ri),this.onChange=this._onChange.event,this._hadFocus=void 0,this._hasDomElementFocus=!1,this._domFocusTracker=this._register(bc(e)),this._overflowWidgetsDomNodeHasFocus=!1,this._register(this._domFocusTracker.onDidFocus((()=>{this._hasDomElementFocus=!0,this._update()}))),this._register(this._domFocusTracker.onDidBlur((()=>{this._hasDomElementFocus=!1,this._update()}))),t&&(this._overflowWidgetsDomNode=this._register(bc(t)),this._register(this._overflowWidgetsDomNode.onDidFocus((()=>{this._overflowWidgetsDomNodeHasFocus=!0,this._update()}))),this._register(this._overflowWidgetsDomNode.onDidBlur((()=>{this._overflowWidgetsDomNodeHasFocus=!1,this._update()}))))}_update(){const e=this._hasDomElementFocus||this._overflowWidgetsDomNodeHasFocus;this._hadFocus!==e&&(this._hadFocus=e,this._onChange.fire(void 0))}hasFocus(){var e;return null!==(e=this._hadFocus)&&void 0!==e&&e}}class GD{get length(){return this._decorationIds.length}constructor(e,t){this._editor=e,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(t)&&t.length>0&&this.set(t)}onDidChange(e,t,i){return this._editor.onDidChangeModelDecorations((i=>{this._isChangingDecorations||e.call(t,i)}),i)}getRange(e){return this._editor.hasModel()?e>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[e]):null}getRanges(){if(!this._editor.hasModel())return[];const e=this._editor.getModel(),t=[];for(const i of this._decorationIds){const n=e.getDecorationRange(i);n&&t.push(n)}return t}has(e){return this._decorationIds.includes(e.id)}clear(){0!==this._decorationIds.length&&this.set([])}set(e){try{this._isChangingDecorations=!0,this._editor.changeDecorations((t=>{this._decorationIds=t.deltaDecorations(this._decorationIds,e)}))}finally{this._isChangingDecorations=!1}return this._decorationIds}append(e){let t=[];try{this._isChangingDecorations=!0,this._editor.changeDecorations((i=>{t=i.deltaDecorations([],e),this._decorationIds=this._decorationIds.concat(t)}))}finally{this._isChangingDecorations=!1}return t}}const zD=encodeURIComponent("");function YD(e){return zD+encodeURIComponent(e.toString())+KD}const qD=encodeURIComponent('');XE(((e,t)=>{const i=e.getColor(Nb);i&&t.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${YD(i)}") repeat-x bottom left; }`);const n=e.getColor(Ob);n&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${YD(n)}") repeat-x bottom left; }`);const o=e.getColor(Mb);o&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${YD(o)}") repeat-x bottom left; }`);const s=e.getColor(Fb);var r;s&&t.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${r=s,qD+encodeURIComponent(r.toString())+$D}") no-repeat bottom left; }`);const a=e.getColor(Rw);a&&t.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${a.rgba.a}; }`)}));var jD=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},XD=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let JD=class extends mi{constructor(e){super(),this._themeService=e,this._onWillCreateCodeEditor=this._register(new Ri),this._onCodeEditorAdd=this._register(new Ri),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new Ri),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new Ri),this._onDiffEditorAdd=this._register(new Ri),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new Ri),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new st,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map((e=>this._codeEditors[e]))}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map((e=>this._diffEditors[e]))}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((t=>t.removeDecorationsByType(e)))))}setModelProperty(e,t,i){const n=e.toString();let o;this._modelProperties.has(n)?o=this._modelProperties.get(n):(o=new Map,this._modelProperties.set(n,o)),o.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i))return this._modelProperties.get(i).get(t)}async openCodeEditor(e,t,i){for(const n of this._codeEditorOpenHandlers){const o=await n(e,t,i);if(null!==o)return o}return null}registerCodeEditorOpenHandler(e){return ui(this._codeEditorOpenHandlers.unshift(e))}};JD=jD([XD(0,KE)],JD);var QD=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},ZD=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let eO=class extends JD{constructor(e,t){super(t),this._register(this.onCodeEditorAdd((()=>this._checkContextKey()))),this._register(this.onCodeEditorRemove((()=>this._checkContextKey()))),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler((async(e,t,i)=>t?this.doOpenEditor(t,e):null)))}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const i=t.resource.scheme;if(i===Ja.http||i===Ja.https)return Ac(t.resource.toString()),e}return null}const i=t.options?t.options.selection:null;if(i)if("number"==typeof i.endLineNumber&&"number"==typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{const t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};eO=QD([ZD(0,Zd),ZD(1,KE)],eO),ng(nd,eO,0);const tO=id("layoutService");var iO=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},nO=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let oO=class{get mainContainer(){var e,t;return null!==(t=null===(e=A(this._codeEditorService.listCodeEditors()))||void 0===e?void 0:e.getContainerDomNode())&&void 0!==t?t:cs.document.body}get activeContainer(){var e,t;const i=null!==(e=this._codeEditorService.getFocusedCodeEditor())&&void 0!==e?e:this._codeEditorService.getActiveCodeEditor();return null!==(t=null==i?void 0:i.getContainerDomNode())&&void 0!==t?t:this.mainContainer}get mainContainerDimension(){return Ml(this.mainContainer)}get activeContainerDimension(){return Ml(this.activeContainer)}get containers(){return T(this._codeEditorService.listCodeEditors().map((e=>e.getContainerDomNode())))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){var e;null===(e=this._codeEditorService.getFocusedCodeEditor())||void 0===e||e.focus()}constructor(e){this._codeEditorService=e,this.onDidLayoutMainContainer=Ci.None,this.onDidLayoutActiveContainer=Ci.None,this.onDidLayoutContainer=Ci.None,this.onDidChangeActiveContainer=Ci.None,this.onDidAddContainer=Ci.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};oO=iO([nO(0,nd)],oO);let sO=class extends oO{get mainContainer(){return this._container}constructor(e,t){super(t),this._container=e}};sO=iO([nO(1,nd)],sO),ng(tO,oO,1);const rO=id("dialogService");var aO=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},lO=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};function cO(e){return e.scheme===Ja.file?e.fsPath:e.path}let dO=0;class hO{constructor(e,t,i,n,o,s,r){this.id=++dO,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=n,this.groupOrder=o,this.sourceId=s,this.sourceOrder=r,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class uO{constructor(e,t){this.resourceLabel=e,this.reason=t}}class gO{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,n]of this.elements)(0===n.reason?e:t).push(n.resourceLabel);const i=[];return e.length>0&&i.push(pe("vs/platform/undoRedo/common/undoRedoService",{key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(pe("vs/platform/undoRedo/common/undoRedoService",{key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class mO{constructor(e,t,i,n,o,s,r){this.id=++dO,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=n,this.groupOrder=o,this.sourceId=s,this.sourceOrder=r,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"==typeof this.actual.split}removeResource(e,t,i){this.removedResources||(this.removedResources=new gO),this.removedResources.has(t)||this.removedResources.set(t,new uO(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new gO),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new uO(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class pO{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const e=[];e.push(`* ${this.strResource}:`);for(let t=0;t=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const t of this._future)1===t.type&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let i=0,n=this._past.length;i=0;i--)t.push(this._future[i].id);return new EN(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,n=0,o=-1;for(let r=0,a=this._past.length;r=t||s.id!==e.elements[n])&&(i=!1,o=0),i||1!==s.type||s.removeResource(this.resourceLabel,this.strResource,0)}let s=-1;for(let r=this._future.length-1;r>=0;r--,n++){const o=this._future[r];i&&(n>=t||o.id!==e.elements[n])&&(i=!1,s=r),i||1!==o.type||o.removeResource(this.resourceLabel,this.strResource,0)}-1!==o&&(this._past=this._past.slice(0,o)),-1!==s&&(this._future=this._future.slice(s+1)),this.versionId++}getElements(){const e=[],t=[];for(const i of this._past)e.push(i.actual);for(const i of this._future)t.push(i.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class fO{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,i=this.editStacks.length;tt.sourceOrder)&&(t=s,i=n)}return[t,i]}canUndo(e){if(e instanceof TN){const[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);return!!this._editStacks.has(t)&&this._editStacks.get(t).hasPastElements()}_onError(e,t){Jt(e);for(const i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,n,o){const s=this._acquireLocks(i);let r;try{r=t()}catch(a){return s(),n.dispose(),this._onError(a,e)}return r?r.then((()=>(s(),n.dispose(),o())),(t=>(s(),n.dispose(),this._onError(t,e)))):(s(),n.dispose(),o())}async _invokeWorkspacePrepare(e){if(void 0===e.actual.prepareUndoRedo)return mi.None;const t=e.actual.prepareUndoRedo();return void 0===t?mi.None:t}_invokeResourcePrepare(e,t){if(1!==e.actual.type||void 0===e.actual.prepareUndoRedo)return t(mi.None);const i=e.actual.prepareUndoRedo();return i?ci(i)?t(i):i.then((e=>t(e))):t(mi.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||_O);return new fO(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new vO(this._undo(e,0,!0));for(const o of t.strResources)this.removeElements(o);return this._notificationService.warn(n),new vO}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,pe("vs/platform/undoRedo/common/undoRedoService",{key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,pe("vs/platform/undoRedo/common/undoRedoService",{key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const o=[];for(const r of i.editStacks)r.getClosestPastElement()!==t&&o.push(r.resourceLabel);if(o.length>0)return this._tryToSplitAndUndo(e,t,null,pe("vs/platform/undoRedo/common/undoRedoService",{key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));const s=[];for(const r of i.editStacks)r.locked&&s.push(r.resourceLabel);return s.length>0?this._tryToSplitAndUndo(e,t,null,pe("vs/platform/undoRedo/common/undoRedoService",{key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,s.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,pe("vs/platform/undoRedo/common/undoRedoService",{key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){const n=this._getAffectedEditStacks(t),o=this._checkWorkspaceUndo(e,t,n,!1);return o?o.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(i){if(i===e){const i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(e,t,i,n){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let s;(o=s||(s={}))[o.All=0]="All",o[o.This=1]="This",o[o.Cancel=2]="Cancel";const{result:r}=await this._dialogService.prompt({type:AD.Info,message:pe("vs/platform/undoRedo/common/undoRedoService","confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),buttons:[{label:pe("vs/platform/undoRedo/common/undoRedoService",{key:"ok",comment:["{0} denotes a number that is > 1, && denotes a mnemonic"]},"&&Undo in {0} Files",i.editStacks.length),run:()=>s.All},{label:pe("vs/platform/undoRedo/common/undoRedoService",{key:"nok",comment:["&& denotes a mnemonic"]},"Undo this &&File"),run:()=>s.This}],cancelButton:{run:()=>s.Cancel}});if(r===s.Cancel)return;if(r===s.This)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const a=this._checkWorkspaceUndo(e,t,i,!1);if(a)return a.returnValue;n=!0}var o;let s;try{s=await this._invokeWorkspacePrepare(t)}catch(o){return this._onError(o,t)}const r=this._checkWorkspaceUndo(e,t,i,!0);if(r)return s.dispose(),r.returnValue;for(const a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.undo()),i,s,(()=>this._continueUndoInGroup(t.groupId,n)))}_resourceUndo(e,t,i){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,(()=>t.actual.undo()),new fO([e]),n,(()=>this._continueUndoInGroup(t.groupId,i))))));{const e=pe("vs/platform/undoRedo/common/undoRedoService",{key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const s=o.getClosestPastElement();s&&s.groupId===e&&(!t||s.groupOrder>t.groupOrder)&&(t=s,i=n)}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);return i?this._undo(i,0,t):void 0}undo(e){if(e instanceof TN){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"==typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;const n=this._editStacks.get(e),o=n.getClosestPastElement();if(o){if(o.groupId){const[e,n]=this._findClosestUndoElementInGroup(o.groupId);if(o!==e&&n)return this._undo(n,t,i)}if((o.sourceId!==t||o.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,o);try{return 1===o.type?this._workspaceUndo(e,o,i):this._resourceUndo(n,o,i)}finally{}}}async _confirmAndContinueUndo(e,t,i){if((await this._dialogService.confirm({message:pe("vs/platform/undoRedo/common/undoRedoService","confirmDifferentSource","Would you like to undo '{0}'?",i.label),primaryButton:pe("vs/platform/undoRedo/common/undoRedoService",{key:"confirmDifferentSource.yes",comment:["&& denotes a mnemonic"]},"&&Yes"),cancelButton:pe("vs/platform/undoRedo/common/undoRedoService","confirmDifferentSource.no","No")})).confirmed)return this._undo(e,t,!0)}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const s=o.getClosestFutureElement();s&&s.sourceId===e&&(!t||s.sourceOrder0)return this._tryToSplitAndRedo(e,t,null,pe("vs/platform/undoRedo/common/undoRedoService",{key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));const s=[];for(const r of i.editStacks)r.locked&&s.push(r.resourceLabel);return s.length>0?this._tryToSplitAndRedo(e,t,null,pe("vs/platform/undoRedo/common/undoRedoService",{key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,s.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,pe("vs/platform/undoRedo/common/undoRedoService",{key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),n=this._checkWorkspaceRedo(e,t,i,!1);return n?n.returnValue:this._executeWorkspaceRedo(e,t,i)}async _executeWorkspaceRedo(e,t,i){let n;try{n=await this._invokeWorkspacePrepare(t)}catch(sue){return this._onError(sue,t)}const o=this._checkWorkspaceRedo(e,t,i,!0);if(o)return n.dispose(),o.returnValue;for(const s of i.editStacks)s.moveForward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.redo()),i,n,(()=>this._continueRedoInGroup(t.groupId)))}_resourceRedo(e,t){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(i=>(e.moveForward(t),this._safeInvokeWithLocks(t,(()=>t.actual.redo()),new fO([e]),i,(()=>this._continueRedoInGroup(t.groupId))))));{const e=pe("vs/platform/undoRedo/common/undoRedoService",{key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const s=o.getClosestFutureElement();s&&s.groupId===e&&(!t||s.groupOrder=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},yO=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const RO=id("ILanguageFeatureDebounceService");var LO;!function(e){const t=new WeakMap;let i=0;e.of=function(e){let n=t.get(e);return void 0===n&&(n=++i,t.set(e,n)),n}}(LO||(LO={}));class IO{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class AO{constructor(e,t,i,n,o,s){this._logService=e,this._name=t,this._registry=i,this._default=n,this._min=o,this._max=s,this._cache=new um(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>sl(LO.of(t),e)),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?SO(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let n=this._cache.get(i);n||(n=new EO(6),this._cache.set(i,n));const o=SO(n.update(t),this._min,this._max);return Qa(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${o}ms`),o}_overall(){const e=new CO;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){return SO(0|this._overall()||this._default,this._min,this._max)}}let NO=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,i){var n,o,s;const r=null!==(n=null==i?void 0:i.min)&&void 0!==n?n:50,a=null!==(o=null==i?void 0:i.max)&&void 0!==o?o:r**2,l=null!==(s=null==i?void 0:i.key)&&void 0!==s?s:void 0,c=`${LO.of(e)},${r}${l?","+l:""}`;let d=this._data.get(c);return d||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),d=new IO(1.5*r)):d=new AO(this._logService,t,e,0|this._overallAverage()||1.5*r,r,a),this._data.set(c,d)),d}_overallAverage(){const e=new CO;for(const t of this._data.values())e.update(t.default());return e.value}};NO=TO([yO(0,Lh),yO(1,wO)],NO),ng(RO,NO,1);class kO{static create(e,t){return new kO(e,new DO(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new Un(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[n,o,s]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new kO(this._startLineNumber,n),new kO(this._startLineNumber+s,o)]}applyEdit(e,t){const[i,n,o]=_L(t);this.acceptEdit(e,i,n,o,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,n,o){this._acceptDeleteRange(e),this._acceptInsertText(new Wn(e.startLineNumber,e.startColumn),t,i,n,o),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const e=i-t;return void(this._startLineNumber-=e)}const n=this._tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&i>=n+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const n=-t;this._startLineNumber-=n,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,n,o){if(0===t&&0===i)return;const s=e.lineNumber-this._startLineNumber;s<0?this._startLineNumber+=t:s>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(s,e.column-1,t,i,n,o)}}class DO{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;ie)){let o=n;for(;o>t&&this._getDeltaLine(o-1)===e;)o--;let s=n;for(;se||d===e&&u>=t)&&(de||r===e&&g>=t){if(ro?m-=o-i:m=i;else if(u===t&&g===i){if(!(u===n&&m>o)){c=!0;continue}m-=o-i}else if(uo)){c=!0;continue}u=t,g=i,m=g+(m-o)}else if(u>n){if(0===a&&!c){l=r;break}u-=a}else{if(!(u===n&&g>=o))throw new Error("Not possible!");e&&0===u&&(g+=e,m+=e),u-=a,g-=o-i,m-=o-i}const f=4*l;s[f]=u,s[f+1]=g,s[f+2]=m,s[f+3]=p,l++}this._tokenCount=l}acceptInsertText(e,t,i,n,o,s){const r=0===i&&1===n&&(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122),a=this._tokens,l=this._tokenCount;for(let c=0;c=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},MO=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let PO=class{constructor(e,t,i,n){this._legend=e,this._themeService=t,this._languageService=i,this._logService=n,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new HO}getMetadata(e,t,i){const n=this._languageService.languageIdCodec.encodeLanguageId(i),o=this._hashTable.get(e,t,n);let s;if(o)s=o.metadata,this._logService.getLevel()===Ih.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${t}: foreground ${Tf.getForeground(s)}, fontStyle ${Tf.getFontStyle(s).toString(2)}`);else{let o=this._legend.tokenTypes[e];const r=[];if(o){let e=t;for(let t=0;e>0&&t>=1;e>0&&this._logService.getLevel()===Ih.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),r.push("not-in-legend"));const n=this._themeService.getColorTheme().getTokenStyleMetadata(o,r,i);void 0===n?s=2147483647:(s=0,void 0!==n.italic&&(s|=1|(n.italic?1:0)<<11),void 0!==n.bold&&(s|=2|(n.bold?2:0)<<11),void 0!==n.underline&&(s|=4|(n.underline?4:0)<<11),void 0!==n.strikethrough&&(s|=8|(n.strikethrough?8:0)<<11),n.foreground&&(s|=16|n.foreground<<15),0===s&&(s=2147483647))}else this._logService.getLevel()===Ih.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),s=2147483647,o="not-in-legend";this._hashTable.add(e,t,n,s),this._logService.getLevel()===Ih.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${o}) / ${t} (${r.join(" ")}): foreground ${Tf.getForeground(s)}, fontStyle ${Tf.getFontStyle(s).toString(2)}`)}return s}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,n,o){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${n} is outside the previous data (length ${o}).`))}};function FO(e,t,i){const n=e.data,o=e.data.length/5|0,s=Math.max(Math.ceil(o/1024),400),r=[];let a=0,l=1,c=0;for(;ae&&0===n[5*t];)t--;if(t-1===e){let e=d;for(;e+1d)t.warnOverlappingSemanticTokens(r,d+1);else{const e=t.getMetadata(_,b,i);2147483647!==e&&(0===g&&(g=r),h[u]=r-g,h[u+1]=d,h[u+2]=f,h[u+3]=e,u+=4,m=r,p=f)}l=r,c=d,a++}u!==h.length&&(h=h.subarray(0,u));const f=kO.create(g,h);r.push(f)}return r}PO=xO([MO(1,KE),MO(2,eg),MO(3,Lh)],PO);class BO{constructor(e,t,i,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=n,this.next=null}}class HO{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=HO._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=HO._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},VO=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let GO=class extends mi{constructor(e,t,i){super(),this._themeService=e,this._logService=t,this._languageService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new PO(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};GO=UO([VO(0,KE),VO(1,Lh),VO(2,eg)],GO),ng(WO,GO,1);const zO="**",KO="/",YO="[/\\\\]",qO="[^/\\\\]",$O=/\//g;function jO(e,t){switch(e){case 0:return"";case 1:return`${qO}*?`;default:return`(?:${YO}|${qO}+${YO}${t?`|${YO}${qO}+`:""})*?`}}function XO(e,t){if(!e)return[];const i=[];let n=!1,o=!1,s="";for(const r of e){switch(r){case t:if(!n&&!o){i.push(s),s="";continue}break;case"{":n=!0;break;case"}":n=!1;break;case"[":o=!0;break;case"]":o=!1}s+=r}return s&&i.push(s),i}function JO(e){if(!e)return"";let t="";const i=XO(e,KO);if(i.every((e=>e===zO)))t=".*";else{let e=!1;i.forEach(((n,o)=>{if(n===zO){if(e)return;t+=jO(2,o===i.length-1)}else{let e=!1,s="",r=!1,a="";for(const i of n)if("}"!==i&&e)s+=i;else if(!r||"]"===i&&a)switch(i){case"{":e=!0;continue;case"[":r=!0;continue;case"}":{const i=`(?:${XO(s,",").map((e=>JO(e))).join("|")})`;t+=i,e=!1,s="";break}case"]":t+="["+a+"]",r=!1,a="";break;case"?":t+=qO;continue;case"*":t+=jO(1);continue;default:t+=bs(i)}else{let e;e="-"===i?i:"^"!==i&&"!"!==i||a?i===KO?"":bs(i):"^",a+=e}oax(e,t))).filter((e=>e!==rx)),e),n=i.length;if(!n)return rx;if(1===n)return i[0];const o=function(t,n){for(let o=0,s=i.length;o!!e.allBasenames));s&&(o.allBasenames=s.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return r.length&&(o.allPaths=r),o}(i,t):(o=ix.exec(lx(i,t)))?cx(o[1].substr(1),i,!0):(o=nx.exec(lx(i,t)))?cx(o[1],i,!1):function(e){try{const t=new RegExp(`^${JO(e)}$`);return function(i){return t.lastIndex=0,"string"==typeof i&&t.test(i)?e:null}}catch(t){return rx}}(i),ox.set(n,s)),function(e,t){if("string"==typeof t)return e;const i=function(i,n){return MI(i,t.base,!Fe)?e(Ss(i.substr(t.base.length),En),n):null};return i.allBasenames=e.allBasenames,i.allPaths=e.allPaths,i.basenames=e.basenames,i.patterns=e.patterns,i}(s,e);var r,a}function lx(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function cx(e,t,i){const n=En===pn.sep,o=n?e:e.replace($O,En),s=En+o,r=pn.sep+e;let a;return a=i?function(i,a){return"string"!=typeof i||i!==o&&!i.endsWith(s)&&(n||i!==e&&!i.endsWith(r))?null:t}:function(i,s){return"string"!=typeof i||i!==o&&(n||i!==e)?null:t},a.allPaths=[(i?"*/":"./")+e],a}function dx(e,t={}){if(!e)return sx;if("string"==typeof e||function(e){const t=e;return!!t&&("string"==typeof t.base&&"string"==typeof t.pattern)}(e)){const i=ax(e,t);if(i===rx)return sx;const n=function(e,t){return!!i(e,t)};return i.allBasenames&&(n.allBasenames=i.allBasenames),i.allPaths&&(n.allPaths=i.allPaths),n}return function(e,t){const i=hx(Object.getOwnPropertyNames(e).map((i=>function(e,t,i){if(!1===t)return rx;const n=ax(e,i);if(n===rx)return rx;if("boolean"==typeof t)return n;if(t){const i=t.when;if("string"==typeof i){const t=(t,o,s,r)=>{if(!r||!n(t,o))return null;const a=r(i.replace("$(basename)",(()=>s)));return xr(a)?a.then((t=>t?e:null)):a?e:null};return t.requiresSiblings=!0,t}}return n}(i,e[i],t))).filter((e=>e!==rx))),n=i.length;if(!n)return rx;if(!i.some((e=>!!e.requiresSiblings))){if(1===n)return i[0];const e=function(e,t){let n;for(let o=0,s=i.length;o{for(const e of n){const t=await e;if("string"==typeof t)return t}return null})():null},t=i.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const o=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return o.length&&(e.allPaths=o),e}const o=function(e,t,n){let o,s;for(let r=0,a=i.length;r{for(const e of s){const t=await e;if("string"==typeof t)return t}return null})():null},s=i.find((e=>!!e.allBasenames));s&&(o.allBasenames=s.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return r.length&&(o.allPaths=r),o}(e,t)}function hx(e,t){const i=e.filter((e=>!!e.basenames));if(i.length<2)return e;const n=i.reduce(((e,t)=>{const i=t.basenames;return i?e.concat(i):e}),[]);let o;if(t){o=[];for(let e=0,i=n.length;e{const i=t.patterns;return i?e.concat(i):e}),[]);const s=function(e,t){if("string"!=typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){const t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substr(i)}const i=n.indexOf(t);return-1!==i?o[i]:null};s.basenames=n,s.patterns=o,s.allBasenames=n;const r=e.filter((e=>!e.basenames));return r.push(s),r}function ux(e,t,i,n,o,s){if(Array.isArray(e)){let r=0;for(const a of e){const e=ux(a,t,i,n,o,s);if(10===e)return e;e>r&&(r=e)}return r}if("string"==typeof e)return n?"*"===e?5:e===i?10:0:0;if(e){const{language:l,pattern:c,scheme:d,hasAccessToAllModels:h,notebookType:u}=e;if(!n&&!h)return 0;u&&o&&(t=o);let g=0;if(d)if(d===t.scheme)g=10;else{if("*"!==d)return 0;g=5}if(l)if(l===i)g=10;else{if("*"!==l)return 0;g=Math.max(g,5)}if(u)if(u===s)g=10;else{if("*"!==u||void 0===s)return 0;g=Math.max(g,5)}if(c){let e;if(e="string"==typeof c?c:{...c,base:fn(c.base)},e!==t.fsPath&&(r=e,a=t.fsPath,!r||"string"!=typeof a||!dx(r)(a,void 0,undefined)))return 0;g=10}return g}return 0;var r,a}function gx(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(gx):!!e.exclusive)}class mx{constructor(e,t,i,n){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=n}equals(e){var t,i;return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&(null===(t=this.notebookUri)||void 0===t?void 0:t.toString())===(null===(i=e.notebookUri)||void 0===i?void 0:i.toString())}}class px{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new Ri,this.onDidChange=this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),ui((()=>{if(i){const e=this._entries.indexOf(i);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(const i of this._entries)i._score>0&&t.push(i.provider);return t}ordered(e){const t=[];return this._orderedForEach(e,(e=>t.push(e.provider))),t}orderedGroups(e){const t=[];let i,n;return this._orderedForEach(e,(e=>{i&&n===e._score?i.push(e.provider):(n=e._score,i=[e.provider],t.push(i))})),t}_orderedForEach(e,t){this._updateScores(e);for(const i of this._entries)i._score>0&&t(i)}_updateScores(e){var t,i;const n=null===(t=this._notebookInfoResolver)||void 0===t?void 0:t.call(this,e.uri),o=n?new mx(e.uri,e.getLanguageId(),n.uri,n.type):new mx(e.uri,e.getLanguageId(),void 0,void 0);if(!(null===(i=this._lastCandidate)||void 0===i?void 0:i.equals(o))){this._lastCandidate=o;for(const t of this._entries)if(t._score=ux(t.selector,o.uri,o.languageId,Rm(e),o.notebookUri,o.notebookType),gx(t.selector)&&t._score>0){for(const e of this._entries)e._score=0;t._score=1e3;break}this._entries.sort(px._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._scoret._score?-1:fx(e.selector)&&!fx(t.selector)?1:!fx(e.selector)&&fx(t.selector)?-1:e._timet._time?-1:0}}function fx(e){return"string"!=typeof e&&(Array.isArray(e)?e.some(fx):Boolean(e.isBuiltin))}ng(lf,class{constructor(){this.referenceProvider=new px(this._score.bind(this)),this.renameProvider=new px(this._score.bind(this)),this.newSymbolNamesProvider=new px(this._score.bind(this)),this.codeActionProvider=new px(this._score.bind(this)),this.definitionProvider=new px(this._score.bind(this)),this.typeDefinitionProvider=new px(this._score.bind(this)),this.declarationProvider=new px(this._score.bind(this)),this.implementationProvider=new px(this._score.bind(this)),this.documentSymbolProvider=new px(this._score.bind(this)),this.inlayHintsProvider=new px(this._score.bind(this)),this.colorProvider=new px(this._score.bind(this)),this.codeLensProvider=new px(this._score.bind(this)),this.documentFormattingEditProvider=new px(this._score.bind(this)),this.documentRangeFormattingEditProvider=new px(this._score.bind(this)),this.onTypeFormattingEditProvider=new px(this._score.bind(this)),this.signatureHelpProvider=new px(this._score.bind(this)),this.hoverProvider=new px(this._score.bind(this)),this.documentHighlightProvider=new px(this._score.bind(this)),this.multiDocumentHighlightProvider=new px(this._score.bind(this)),this.selectionRangeProvider=new px(this._score.bind(this)),this.foldingRangeProvider=new px(this._score.bind(this)),this.linkProvider=new px(this._score.bind(this)),this.inlineCompletionsProvider=new px(this._score.bind(this)),this.inlineEditProvider=new px(this._score.bind(this)),this.completionProvider=new px(this._score.bind(this)),this.linkedEditingRangeProvider=new px(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new px(this._score.bind(this)),this.documentSemanticTokensProvider=new px(this._score.bind(this)),this.documentDropEditProvider=new px(this._score.bind(this)),this.documentPasteEditProvider=new px(this._score.bind(this))}_score(e){var t;return null===(t=this._notebookTypeResolver)||void 0===t?void 0:t.call(this,e)}},1);var _x=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},bx=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const vx=id("hoverService");let Sx=class extends mi{get delay(){return this.isInstantlyHovering()?0:this._delay}constructor(e,t,i={},n,o){super(),this.placement=e,this.instantHover=t,this.overrideOptions=i,this.configurationService=n,this.hoverService=o,this.lastHoverHideTime=0,this.timeLimit=200,this.hoverDisposables=this._register(new gi),this._delay=this.configurationService.getValue("workbench.hover.delay"),this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("workbench.hover.delay")&&(this._delay=this.configurationService.getValue("workbench.hover.delay"))})))}showHover(e,t){const i="function"==typeof this.overrideOptions?this.overrideOptions(e,t):this.overrideOptions;this.hoverDisposables.clear();const n=e.target instanceof HTMLElement?[e.target]:e.target.targetElements;for(const s of n)this.hoverDisposables.add(Ll(s,"keydown",(e=>{e.equals(9)&&this.hoverService.hideHover()})));const o=e.content instanceof HTMLElement?void 0:e.content.toString();return this.hoverService.showHover({...e,...i,persistence:{hideOnKeyDown:!0,...i.persistence},id:o,appearance:{...e.appearance,compact:!0,skipFadeInAnimation:this.isInstantlyHovering(),...i.appearance}},t)}isInstantlyHovering(){return this.instantHover&&Date.now()-this.lastHoverHideTime{i.stopPropagation(),i.preventDefault(),t(e)})))}}class Ix extends mi{constructor(e,t,i){super(),this._register(yl(e,mc.KEY_DOWN,(n=>{const o=new Lr(n);i.some((e=>o.equals(e)))&&(n.stopPropagation(),n.preventDefault(),t(e))})))}}const Ax=id("openerService");function Nx(e,t={}){const i=kx(t);return Ox(i,function(e,t){const i={type:1,children:[]};let n=0,o=i;const s=[],r=new Dx(e);for(;!r.eos();){let e=r.next();const i="\\"===e&&0!==Mx(r.peek(),t);if(i&&(e=r.next()),!i&&xx(e,t)&&e===r.peek()){r.advance(),2===o.type&&(o=s.pop());const i=Mx(e,t);if(o.type===i||5===o.type&&6===i)o=s.pop();else{const e={type:i,children:[]};5===i&&(e.index=n,n++),o.children.push(e),s.push(o),o=e}}else if("\n"===e)2===o.type&&(o=s.pop()),o.children.push({type:8});else if(2!==o.type){const t={type:2,content:e};o.children.push(t),s.push(o),o=t}else o.content+=e}return 2===o.type&&(o=s.pop()),i}(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),i}function kx(e){const t=e.inline?"span":"div",i=document.createElement(t);return e.className&&(i.className=e.className),i}class Dx{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function Ox(e,t,i,n){let o;if(2===t.type)o=document.createTextNode(t.content||"");else if(3===t.type)o=document.createElement("b");else if(4===t.type)o=document.createElement("i");else if(7===t.type&&n)o=document.createElement("code");else if(5===t.type&&i){const e=document.createElement("a");i.disposables.add(Ll(e,"click",(e=>{i.callback(String(t.index),e)}))),o=e}else 8===t.type?o=document.createElement("br"):1===t.type&&(o=e);o&&e!==o&&e.appendChild(o),o&&Array.isArray(t.children)&&t.children.forEach((e=>{Ox(o,e,i,n)}))}function xx(e,t){return 0!==Mx(e,t)}function Mx(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}const Px=new RegExp(`(\\\\)?\\$\\((${gd.iconNameExpression}(?:${gd.iconModifierExpression})?)\\)`,"g");function Fx(e){const t=new Array;let i,n=0,o=0;for(;null!==(i=Px.exec(e));){o=i.index||0,n=i&&e>8&&(Wx[Hx++]=n>>8&255),n>>16&&(Wx[Hx++]=n>>16&255)))}const Vx=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),Gx=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),zx=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),Kx=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]);function Yx(...e){return function(t,i){for(let n=0,o=e.length;n0?[{start:0,end:t.length}]:[]:null}function jx(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function Xx(e,t){return Jx(e.toLowerCase(),t.toLowerCase(),0,0)}function Jx(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]===t[n]){let o=null;return(o=Jx(e,t,i+1,n+1))?lM({start:n,end:n+1},o):null}return Jx(e,t,i,n+1)}function Qx(e){return 97<=e&&e<=122}function Zx(e){return 65<=e&&e<=90}function eM(e){return 48<=e&&e<=57}function tM(e){return 32===e||9===e||10===e||13===e}const iM=new Set;function nM(e){return tM(e)||iM.has(e)}function oM(e,t){return e===t||nM(e)&&nM(t)}"()[]{}<>`'\"-/;:,.?!".split("").forEach((e=>iM.add(e.charCodeAt(0))));const sM=new Map;function rM(e){if(sM.has(e))return sM.get(e);let t;const i=function(e){const t=function(e){if(Hx=0,Ux(e,Vx,4352),Hx>0)return Wx.subarray(0,Hx);if(Ux(e,Gx,4449),Hx>0)return Wx.subarray(0,Hx);if(Ux(e,zx,4520),Hx>0)return Wx.subarray(0,Hx);if(Ux(e,Kx,12593),Hx)return Wx.subarray(0,Hx);if(e>=44032&&e<=55203){const t=e-44032,i=t%588,n=Math.floor(t/588),o=Math.floor(i/28),s=i%28-1;if(n=0&&(s0)return Wx.subarray(0,Hx)}}(e);if(t&&t.length>0)return new Uint32Array(t)}(e);return i&&(t=i),sM.set(e,t),t}function aM(e){return Qx(e)||Zx(e)||eM(e)}function lM(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function cM(e,t){for(let i=t;i0&&!aM(e.charCodeAt(i-1)))return i}return e.length}function dM(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]!==t[n].toLowerCase())return null;{let o=null,s=n+1;for(o=dM(e,t,i+1,n+1);!o&&(s=cM(t,s))60&&(t=t.substring(0,60));const i=function(e){let t=0,i=0,n=0,o=0,s=0;for(let r=0;r.2&&t<.8&&n>.6&&o<.2}(i)){if(!function(e){const{upperPercent:t,lowerPercent:i}=e;return 0===i&&t>.6}(i))return null;t=t.toLowerCase()}let n=null,o=0;for(e=e.toLowerCase();o0&&nM(e.charCodeAt(i-1)))return i;return e.length}const mM=Yx(qx,hM,jx),pM=Yx(qx,hM,Xx),fM=new um(1e4);function _M(e,t,i=!1){if("string"!=typeof e||"string"!=typeof t)return null;let n=fM.get(e);n||(n=new RegExp(e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*"),"i"),fM.set(e,n));const o=n.exec(t);return o?[{start:o.index,end:o.index+o[0].length}]:i?pM(e,t):mM(e,t)}function bM(e,t){const i=xM(e,e.toLowerCase(),0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?SM(i):null}function vM(e,t,i,n,o,s){const r=Math.min(13,e.length);for(;i1;n--){const o=e[n]+i,s=t[t.length-1];s&&s.end===o?s.end=o+1:t.push({start:o,end:o+1})}return t}const CM=128;function EM(){const e=[],t=[];for(let i=0;i<=CM;i++)t[i]=0;for(let i=0;i<=CM;i++)e.push(t.slice(0));return e}function wM(e){const t=[];for(let i=0;i<=e;i++)t[i]=0;return t}const TM=wM(2*CM),yM=wM(2*CM),RM=EM(),LM=EM(),IM=EM();function AM(e,t){if(t<0||t>=e.length)return!1;const i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!Zs(i)}}function NM(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function kM(e,t,i){return t[e]!==i[e]}var DM;!function(e){e.Default=[-100,0],e.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]}}(DM||(DM={}));class OM{constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}}function xM(e,t,i,n,o,s,r=OM.default){const a=e.length>CM?CM:e.length,l=n.length>CM?CM:n.length;if(i>=a||s>=l||a-i>l-s)return;if(!function(e,t,i,n,o,s,r=!1){for(;t=i&&a>=n;)o[r]===s[a]&&(yM[r]=a,r--),a--}(a,l,i,s,t,o);let c=1,d=1,h=i,u=s;const g=[!1];for(c=1,h=i;hr,b=_?LM[c][d-1]+(RM[c][d-1]>0?-5:0):0,v=u>r+1&&RM[c][d-1]>0,S=v?LM[c][d-2]+(RM[c][d-2]>0?-5:0):0;if(v&&(!_||S>=b)&&(!p||S>=f))LM[c][d]=S,IM[c][d]=3,RM[c][d]=0;else if(_&&(!p||b>=f))LM[c][d]=b,IM[c][d]=2,RM[c][d]=0;else{if(!p)throw new Error("not possible");LM[c][d]=f,IM[c][d]=1,RM[c][d]=RM[c-1][d-1]+1}}}if(!g[0]&&!r.firstMatchCanBeWeak)return;c--,d--;const m=[LM[c][d],s];let p=0,f=0;for(;c>=1;){let e=d;do{const t=IM[c][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);p>1&&t[i+c-1]===o[s+d-1]&&!kM(e+s-1,n,o)&&p+1>RM[c][e]&&(e=d),e===d?p++:p=1,f||(f=e),c--,d=e-1,m.push(d)}l===a&&r.boostFullMatch&&(m[0]+=2);const _=f-a;return m[0]-=_,m}function MM(e,t,i,n,o,s,r,a,l,c,d){if(t[i]!==s[r])return Number.MIN_SAFE_INTEGER;let h=1,u=!1;return r===i-n?h=e[i]===o[r]?7:5:!kM(r,o,s)||0!==r&&kM(r-1,o,s)?!AM(s,r)||0!==r&&AM(s,r-1)?(AM(s,r-1)||NM(s,r-1))&&(h=5,u=!0):h=5:(h=e[i]===o[r]?7:5,u=!0),h>1&&i===n&&(d[0]=!0),u||(u=kM(r,o,s)||AM(s,r-1)||NM(s,r-1)),i===n?r>l&&(h-=u?3:5):h+=c?u?2:0:u?0:1,r+1===a&&(h-=u?3:5),h}function PM(e,t,i,n,o,s,r){return function(e,t,i,n,o,s,r,a){let l=xM(e,t,i,n,o,s,a);if(e.length>=3){const t=Math.min(7,e.length-1);for(let r=i+1;rl[0])&&(l=e))}}}return l}(e,t,i,n,o,s,0,r)}function FM(e,t){if(t+1>=e.length)return;const i=e[t],n=e[t+1];return i!==n?e.slice(0,t)+n+i+e.slice(t+2):void 0}OM.default={boostFullMatch:!0,firstMatchCanBeWeak:!1};const BM=new RegExp(`\\$\\(${gd.iconNameExpression}(?:${gd.iconModifierExpression})?\\)`,"g"),HM=new RegExp(`(\\\\)?${BM.source}`,"g"),WM=new RegExp(`\\\\${BM.source}`,"g"),UM=new RegExp(`(\\s)?(\\\\)?${BM.source}(\\s)?`,"g");function VM(e){return-1===e.indexOf("$(")?e:e.replace(UM,((e,t,i,n)=>i?e:t||n||""))}const GM=new RegExp(`\\$\\(${gd.iconNameCharacter}+\\)`,"g");function zM(e){GM.lastIndex=0;let t="";const i=[];let n=0;for(;;){const o=GM.lastIndex,s=GM.exec(e),r=e.substring(o,null==s?void 0:s.index);if(r.length>0){t+=r;for(let e=0;et?e:`\\${e}`))):e).replace(/([ \t]+)/g,((e,t)=>" ".repeat(t.length))).replace(/\>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this;var i}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+=`\n${function(e,t){var i,n;const o=null!==(n=null===(i=e.match(/^`+/gm))||void 0===i?void 0:i.reduce(((e,t)=>e.length>t.length?e:t)).length)&&void 0!==n?n:0,s=o>=3?o+1:3;return[`${"`".repeat(s)}${t}`,e,`${"`".repeat(s)}`].join("\n")}(t,e)}\n`,this}appendLink(e,t,i){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,t){const i=new RegExp(bs(t),"g");return e.replace(i,((t,i)=>"\\"!==e.charAt(i-1)?`\\${t}`:t))}}function qM(e){return $M(e)?!e.value:!Array.isArray(e)||e.every(qM)}function $M(e){return e instanceof YM||!(!e||"object"!=typeof e)&&!("string"!=typeof e.value||"boolean"!=typeof e.isTrusted&&"object"!=typeof e.isTrusted&&void 0!==e.isTrusted||"boolean"!=typeof e.supportThemeIcons&&void 0!==e.supportThemeIcons)}function jM(e){return e.replace(/"/g,""")}function XM(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1"):e}class JM{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const QM=new JM("id#");let ZM={};!function(){function e(e,t){t(ZM)}var t,i;e.amd=!0,t=this,i=function(e){function t(e,t){for(var i=0;ie.length)&&(t=e.length);for(var i=0,n=new Array(t);i=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}e.defaults={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var s=/[&<>"']/,r=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"},d=function(e){return c[e]};function h(e,t){if(t){if(s.test(e))return e.replace(r,d)}else if(a.test(e))return e.replace(l,d);return e}var u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function g(e){return e.replace(u,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var m=/(^|[^\[])\^/g;function p(e,t){e="string"==typeof e?e:e.source,t=t||"";var i={replace:function(t,n){return n=(n=n.source||n).replace(m,"$1"),e=e.replace(t,n),i},getRegex:function(){return new RegExp(e,t)}};return i}var f=/[^\w:]/g,_=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function b(e,t,i){if(e){var n;try{n=decodeURIComponent(g(i)).replace(f,"").toLowerCase()}catch(o){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!_.test(i)&&(i=function(e,t){v[" "+e]||(S.test(e)?v[" "+e]=e+"/":v[" "+e]=R(e,"/",!0));var i=-1===(e=v[" "+e]).indexOf(":");return"//"===t.substring(0,2)?i?t:e.replace(C,"$1")+t:"/"===t.charAt(0)?i?t:e.replace(E,"$1")+t:e+t}(t,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(o){return null}return i}var v={},S=/^[^:]+:\/*[^/]*$/,C=/^([^:]+:)[\s\S]*$/,E=/^([^:]+:\/*[^/]*)[\s\S]*$/,w={exec:function(){}};function T(e){for(var t,i,n=1;n=0&&"\\"===i[o];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>t)i.splice(t);else for(;i.length1;)1&t&&(i+=e),t>>=1,e+=e;return i+e}function A(e,t,i,n){var o=t.href,s=t.title?h(t.title):null,r=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;var a={type:"link",raw:i,href:o,title:s,text:r,tokens:n.inlineTokens(r)};return n.state.inLink=!1,a}return{type:"image",raw:i,href:o,title:s,text:h(r)}}var N=function(){function t(t){this.options=t||e.defaults}var i=t.prototype;return i.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},i.code=function(e){var t=this.rules.block.code.exec(e);if(t){var i=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:R(i,"\n")}}},i.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var i=t[0],n=function(e,t){var i=e.match(/^(\s+)(?:```)/);if(null===i)return t;var n=i[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=n.length?e.slice(n.length):e})).join("\n")}(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim():t[2],text:n}}},i.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var i=t[2].trim();if(/#$/.test(i)){var n=R(i,"#");this.options.pedantic?i=n.trim():n&&!/ $/.test(n)||(i=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}},i.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},i.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var i=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(i,[]),text:i}}},i.list=function(e){var t=this.rules.block.list.exec(e);if(t){var i,o,s,r,a,l,c,d,h,u,g,m,p=t[1].trim(),f=p.length>1,_={type:"list",raw:"",ordered:f,start:f?+p.slice(0,-1):"",loose:!1,items:[]};p=f?"\\d{1,9}\\"+p.slice(-1):"\\"+p,this.options.pedantic&&(p=f?p:"[*+-]");for(var b=new RegExp("^( {0,3}"+p+")((?:[\t ][^\\n]*)?(?:\\n|$))");e&&(m=!1,t=b.exec(e))&&!this.rules.block.hr.test(e);){if(i=t[0],e=e.substring(i.length),d=t[2].split("\n",1)[0],h=e.split("\n",1)[0],this.options.pedantic?(r=2,g=d.trimLeft()):(r=(r=t[2].search(/[^ ]/))>4?1:r,g=d.slice(r),r+=t[1].length),l=!1,!d&&/^ *$/.test(h)&&(i+=h+"\n",e=e.substring(h.length+1),m=!0),!m)for(var v=new RegExp("^ {0,"+Math.min(3,r-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),S=new RegExp("^ {0,"+Math.min(3,r-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),C=new RegExp("^ {0,"+Math.min(3,r-1)+"}(?:```|~~~)"),E=new RegExp("^ {0,"+Math.min(3,r-1)+"}#");e&&(d=u=e.split("\n",1)[0],this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!C.test(d))&&!E.test(d)&&!v.test(d)&&!S.test(e);){if(d.search(/[^ ]/)>=r||!d.trim())g+="\n"+d.slice(r);else{if(l)break;g+="\n"+d}l||d.trim()||(l=!0),i+=u+"\n",e=e.substring(u.length+1)}_.loose||(c?_.loose=!0:/\n *\n *$/.test(i)&&(c=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(g))&&(s="[ ] "!==o[0],g=g.replace(/^\[[ xX]\] +/,"")),_.items.push({type:"list_item",raw:i,task:!!o,checked:s,loose:!1,text:g}),_.raw+=i}_.items[_.items.length-1].raw=i.trimRight(),_.items[_.items.length-1].text=g.trimRight(),_.raw=_.raw.trimRight();var w=_.items.length;for(a=0;a1)return!0;return!1}));!_.loose&&T.length&&y&&(_.loose=!0,_.items[a].loose=!0)}return _}},i.html=function(e){var t=this.rules.block.html.exec(e);if(t){var i={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){var n=this.options.sanitizer?this.options.sanitizer(t[0]):h(t[0]);i.type="paragraph",i.text=n,i.tokens=this.lexer.inline(n)}return i}},i.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},i.table=function(e){var t=this.rules.block.table.exec(e);if(t){var i={type:"table",header:y(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=t[0];var n,o,s,r,a=i.align.length;for(n=0;n/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):h(t[0]):t[0]}},i.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var i=t[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;var n=R(i.slice(0,-1),"\\");if((i.length-n.length)%2==0)return}else{var o=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var i=e.length,n=0,o=0;o-1){var s=(0===t[0].indexOf("!")?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,s).trim(),t[3]=""}}var r=t[2],a="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);l&&(r=l[1],a=l[3])}else a=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^$/.test(i)?r.slice(1):r.slice(1,-1)),A(t,{href:r?r.replace(this.rules.inline._escapes,"$1"):r,title:a?a.replace(this.rules.inline._escapes,"$1"):a},t[0],this.lexer)}},i.reflink=function(e,t){var i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){var n=(i[2]||i[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])||!n.href){var o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return A(i,n,i[0],this.lexer)}},i.emStrong=function(e,t,i){void 0===i&&(i="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!i.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var o=n[1]||n[2]||"";if(!o||o&&(""===i||this.rules.inline.punctuation.exec(i))){var s,r,a=n[0].length-1,l=a,c=0,d="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+a);null!=(n=d.exec(t));)if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])if(r=s.length,n[3]||n[4])l+=r;else if(!((n[5]||n[6])&&a%3)||(a+r)%3){if(!((l-=r)>0)){if(r=Math.min(r,r+l+c),Math.min(a,r)%2){var h=e.slice(1,a+n.index+r);return{type:"em",raw:e.slice(0,a+n.index+r+1),text:h,tokens:this.lexer.inlineTokens(h)}}var u=e.slice(2,a+n.index+r-1);return{type:"strong",raw:e.slice(0,a+n.index+r+1),text:u,tokens:this.lexer.inlineTokens(u)}}}else c+=r}}},i.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var i=t[2].replace(/\n/g," "),n=/[^ ]/.test(i),o=/^ /.test(i)&&/ $/.test(i);return n&&o&&(i=i.substring(1,i.length-1)),i=h(i,!0),{type:"codespan",raw:t[0],text:i}}},i.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},i.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}},i.autolink=function(e,t){var i,n,o=this.rules.inline.autolink.exec(e);if(o)return n="@"===o[2]?"mailto:"+(i=h(this.options.mangle?t(o[1]):o[1])):i=h(o[1]),{type:"link",raw:o[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}},i.url=function(e,t){var i;if(i=this.rules.inline.url.exec(e)){var n,o;if("@"===i[2])o="mailto:"+(n=h(this.options.mangle?t(i[0]):i[0]));else{var s;do{s=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(s!==i[0]);n=h(i[0]),o="www."===i[1]?"http://"+n:n}return{type:"link",raw:i[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}},i.inlineText=function(e,t){var i,n=this.rules.inline.text.exec(e);if(n)return i=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):h(n[0]):n[0]:h(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:i}},t}(),k={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:w,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};k.def=p(k.def).replace("label",k._label).replace("title",k._title).getRegex(),k.bullet=/(?:[*+-]|\d{1,9}[.)])/,k.listItemStart=p(/^( *)(bull) */).replace("bull",k.bullet).getRegex(),k.list=p(k.list).replace(/bull/g,k.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+k.def.source+")").getRegex(),k._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",k._comment=/|$)/,k.html=p(k.html,"i").replace("comment",k._comment).replace("tag",k._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),k.paragraph=p(k._paragraph).replace("hr",k.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",k._tag).getRegex(),k.blockquote=p(k.blockquote).replace("paragraph",k.paragraph).getRegex(),k.normal=T({},k),k.gfm=T({},k.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),k.gfm.table=p(k.gfm.table).replace("hr",k.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",k._tag).getRegex(),k.gfm.paragraph=p(k._paragraph).replace("hr",k.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",k.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",k._tag).getRegex(),k.pedantic=T({},k.normal,{html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",k._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:w,paragraph:p(k.normal._paragraph).replace("hr",k.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",k.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var D={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:w,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:w,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(i="x"+i.toString(16)),n+="&#"+i+";";return n}D._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",D.punctuation=p(D.punctuation).replace(/punctuation/g,D._punctuation).getRegex(),D.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,D.escapedEmSt=/\\\*|\\_/g,D._comment=p(k._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),D.emStrong.lDelim=p(D.emStrong.lDelim).replace(/punct/g,D._punctuation).getRegex(),D.emStrong.rDelimAst=p(D.emStrong.rDelimAst,"g").replace(/punct/g,D._punctuation).getRegex(),D.emStrong.rDelimUnd=p(D.emStrong.rDelimUnd,"g").replace(/punct/g,D._punctuation).getRegex(),D._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,D._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,D._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,D.autolink=p(D.autolink).replace("scheme",D._scheme).replace("email",D._email).getRegex(),D._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,D.tag=p(D.tag).replace("comment",D._comment).replace("attribute",D._attribute).getRegex(),D._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,D._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,D._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,D.link=p(D.link).replace("label",D._label).replace("href",D._href).replace("title",D._title).getRegex(),D.reflink=p(D.reflink).replace("label",D._label).replace("ref",k._label).getRegex(),D.nolink=p(D.nolink).replace("ref",k._label).getRegex(),D.reflinkSearch=p(D.reflinkSearch,"g").replace("reflink",D.reflink).replace("nolink",D.nolink).getRegex(),D.normal=T({},D),D.pedantic=T({},D.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",D._label).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",D._label).getRegex()}),D.gfm=T({},D.normal,{escape:p(D.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\0?t[t.length-1].raw+="\n":t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?t.push(i):(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.list(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.def(e))e=e.substring(i.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(n.raw+="\n"+i.raw,n.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(o=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,i=e.slice(1),n=void 0;r.options.extensions.startBlock.forEach((function(e){"number"==typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),this.state.top&&(i=this.tokenizer.paragraph(o)))n=t[t.length-1],s&&"paragraph"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i),s=o.length!==e.length,e=e.substring(i.raw.length);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(a)}return this.state.top=!0,t},s.inline=function(e,t){return void 0===t&&(t=[]),this.inlineQueue.push({src:e,tokens:t}),t},s.inlineTokens=function(e,t){var i,n,o,s=this;void 0===t&&(t=[]);var r,a,l,c=e;if(this.tokens.links){var d=Object.keys(this.tokens.links);if(d.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(c));)d.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,r.index)+"["+I("a",r[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,r.index)+"["+I("a",r[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.escapedEmSt.exec(c));)c=c.slice(0,r.index)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(l=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(i=n.call({lexer:s},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,c,l))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.autolink(e,x))e=e.substring(i.raw.length),t.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(e,x))){if(o=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,i=e.slice(1),n=void 0;s.options.extensions.startInline.forEach((function(e){"number"==typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),i=this.tokenizer.inlineText(o,O))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(l=i.raw.slice(-1)),a=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(e){var h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(h)}}else e=e.substring(i.raw.length),t.push(i);return t},n=i,o=[{key:"rules",get:function(){return{block:k,inline:D}}}],null&&t(n.prototype,null),o&&t(n,o),Object.defineProperty(n,"prototype",{writable:!1}),i}(),P=function(){function t(t){this.options=t||e.defaults}var i=t.prototype;return i.code=function(e,t,i){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,n);null!=o&&o!==e&&(i=!0,e=o)}return e=e.replace(/\n$/,"")+"\n",n?'
'+(i?e:h(e,!0))+"
\n":"
"+(i?e:h(e,!0))+"
\n"},i.blockquote=function(e){return"
\n"+e+"
\n"},i.html=function(e){return e},i.heading=function(e,t,i,n){return this.options.headerIds?"'+e+"\n":""+e+"\n"},i.hr=function(){return this.options.xhtml?"
\n":"
\n"},i.list=function(e,t,i){var n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+e+"\n"},i.listitem=function(e){return"
  • "+e+"
  • \n"},i.checkbox=function(e){return" "},i.paragraph=function(e){return"

    "+e+"

    \n"},i.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},i.tablerow=function(e){return"\n"+e+"\n"},i.tablecell=function(e,t){var i=t.header?"th":"td";return(t.align?"<"+i+' align="'+t.align+'">':"<"+i+">")+e+"\n"},i.strong=function(e){return""+e+""},i.em=function(e){return""+e+""},i.codespan=function(e){return""+e+""},i.br=function(){return this.options.xhtml?"
    ":"
    "},i.del=function(e){return""+e+""},i.link=function(e,t,i){if(null===(e=b(this.options.sanitize,this.options.baseUrl,e)))return i;var n='"+i+""},i.image=function(e,t,i){if(null===(e=b(this.options.sanitize,this.options.baseUrl,e)))return i;var n=''+i+'":">")},i.text=function(e){return e},t}(),F=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,i){return""+i},t.image=function(e,t,i){return""+i},t.br=function(){return""},e}(),B=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var i=e,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[e];do{i=e+"-"+ ++n}while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=n,this.seen[i]=0),i},t.slug=function(e,t){void 0===t&&(t={});var i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)},e}(),H=function(){function t(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new P,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new F,this.slugger=new B}t.parse=function(e,i){return new t(i).parse(e)},t.parseInline=function(e,i){return new t(i).parseInline(e)};var i=t.prototype;return i.parse=function(e,t){void 0===t&&(t=!0);var i,n,o,s,r,a,l,c,d,h,u,m,p,f,_,b,v,S,C,E="",w=e.length;for(i=0;i0&&"paragraph"===_.tokens[0].type?(_.tokens[0].text=S+" "+_.tokens[0].text,_.tokens[0].tokens&&_.tokens[0].tokens.length>0&&"text"===_.tokens[0].tokens[0].type&&(_.tokens[0].tokens[0].text=S+" "+_.tokens[0].tokens[0].text)):_.tokens.unshift({type:"text",text:S}):f+=S),f+=this.parse(_.tokens,p),d+=this.renderer.listitem(f,v,b);E+=this.renderer.list(d,u,m);continue;case"html":E+=this.renderer.html(h.text);continue;case"paragraph":E+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(d=h.tokens?this.parseInline(h.tokens):h.text;i+1An error occurred:

    "+h(e.message+"",!0)+"
    ";throw e}try{var l=M.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(W.walkTokens(l,t.walkTokens)).then((function(){return H.parse(l,t)})).catch(a);W.walkTokens(l,t.walkTokens)}return H.parse(l,t)}catch(c){a(c)}}W.options=W.setOptions=function(t){var i;return T(W.defaults,t),i=W.defaults,e.defaults=i,W},W.getDefaults=o,W.defaults=e.defaults,W.use=function(){for(var e=arguments.length,t=new Array(e),i=0;iAn error occurred:

    "+h(n.message+"",!0)+"
    ";throw n}},W.Parser=H,W.parser=H.parse,W.Renderer=P,W.TextRenderer=F,W.Lexer=M,W.lexer=M.lex,W.Tokenizer=N,W.Slugger=B,W.parse=W;var U=W.options,V=W.setOptions,G=W.use,z=W.walkTokens,K=W.parseInline,Y=W,q=H.parse,$=M.lex;e.Lexer=M,e.Parser=H,e.Renderer=P,e.Slugger=B,e.TextRenderer=F,e.Tokenizer=N,e.getDefaults=o,e.lexer=$,e.marked=W,e.options=U,e.parse=Y,e.parseInline=K,e.parser=q,e.setOptions=V,e.use=G,e.walkTokens=z,Object.defineProperty(e,"__esModule",{value:!0})},e.amd?e(0,i):"object"==typeof exports&&"undefined"!=typeof module?i(exports):i((t="undefined"!=typeof globalThis?globalThis:t||self).marked={})}(),ZM.Lexer||exports.Lexer,ZM.Parser||exports.Parser,ZM.Renderer||exports.Renderer,ZM.Slugger||exports.Slugger,ZM.TextRenderer||exports.TextRenderer,ZM.Tokenizer||exports.Tokenizer,ZM.getDefaults||exports.getDefaults,ZM.lexer||exports.lexer;var eP=ZM.marked||exports.marked;function tP(e){let t=JSON.parse(e);return t=nP(t),t}function iP(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:t.flags}:t}function nP(e,t=0){if(!e||t>200)return e;if("object"==typeof e){switch(e.$mid){case 1:return An.revive(e);case 2:return new RegExp(e.source,e.flags);case 17:return new Date(e.source)}if(e instanceof yu||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i{let n=[],o=[];return e&&(({href:e,dimensions:n}=function(e){const t=[],i=e.split("|").map((e=>e.trim()));e=i[0];const n=i[1];if(n){const e=/height=(\d+)/.exec(n),i=/width=(\d+)/.exec(n),o=e?e[1]:"",s=i?i[1]:"",r=isFinite(parseInt(s)),a=isFinite(parseInt(o));r&&t.push(`width="${s}"`),a&&t.push(`height="${o}"`)}return{href:e,dimensions:t}}(e)),o.push(`src="${jM(e)}"`)),i&&o.push(`alt="${jM(i)}"`),t&&o.push(`title="${jM(t)}"`),n.length&&(o=o.concat(n)),""},paragraph:e=>`

    ${e}

    `,link:(e,t,i)=>"string"!=typeof e?"":(e===i&&(i=XM(i)),t="string"==typeof t?jM(XM(t)):"",`/g,">").replace(/"/g,""").replace(/'/g,"'")}" title="${t||e}" draggable="false">${i}`)});function sP(e,t={},i={}){var n,o;const s=new gi;let r=!1;const a=kx(t),l=function(t){let i;try{i=tP(decodeURIComponent(t))}catch(sue){}return i?(i=le(i,(t=>e.uris&&e.uris[t]?An.revive(e.uris[t]):void 0)),encodeURIComponent(JSON.stringify(i))):t},c=function(t,i){const n=e.uris&&e.uris[t];let o=An.revive(n);return i?t.startsWith(Ja.data+":")?t:(o||(o=An.parse(t)),il.uriToBrowserUri(o).toString(!0)):o?An.parse(t).toString()===o.toString()?t:(o.query&&(o=o.with({query:l(o.query)})),o.toString()):t},d=new eP.Renderer;d.image=oP.image,d.link=oP.link,d.paragraph=oP.paragraph;const h=[],u=[];if(t.codeBlockRendererSync?d.code=(e,i)=>{const n=QM.nextId(),o=t.codeBlockRendererSync(rP(i),e);return u.push([n,o]),`
    ${_s(e)}
    `}:t.codeBlockRenderer&&(d.code=(e,i)=>{const n=QM.nextId(),o=t.codeBlockRenderer(rP(i),e);return h.push(o.then((e=>[n,e]))),`
    ${_s(e)}
    `}),t.actionHandler){const i=function(i){let n=i.target;if("A"===n.tagName||(n=n.parentElement,n&&"A"===n.tagName))try{let o=n.dataset.href;o&&(e.baseUri&&(o=aP(An.from(e.baseUri),o)),t.actionHandler.callback(o,i))}catch(sue){Jt(sue)}finally{i.preventDefault()}},n=t.actionHandler.disposables.add(new AE(a,"click")),o=t.actionHandler.disposables.add(new AE(a,"auxclick"));t.actionHandler.disposables.add(Ci.any(n.event,o.event)((e=>{const t=new kr(gl(a),e);(t.leftButton||t.middleButton)&&i(t)}))),t.actionHandler.disposables.add(yl(a,"keydown",(e=>{const t=new Lr(e);(t.equals(10)||t.equals(3))&&i(t)})))}e.supportHtml||(i.sanitizer=t=>(e.isTrusted?t.match(/^(]+>)|(<\/\s*span>)$/):void 0)?t:"",i.sanitize=!0,i.silent=!0),i.renderer=d;let g,m=null!==(n=e.value)&&void 0!==n?n:"";if(m.length>1e5&&(m=`${m.substr(0,1e5)}…`),e.supportThemeIcons&&(m=m.replace(WM,(e=>`\\${e}`))),t.fillInIncompleteTokens){const e={...eP.defaults,...i},t=function(e){let t,i;for(t=0;t"string"==typeof e?e:e.outerHTML)).join(""));const p=(new DOMParser).parseFromString(lP(e,g),"text/html");if(p.body.querySelectorAll("img, audio, video, source").forEach((i=>{const n=i.getAttribute("src");if(n){let o=n;try{e.baseUri&&(o=aP(An.from(e.baseUri),o))}catch(sue){}if(i.setAttribute("src",c(o,!0)),t.disallowRemoteImages){const e=An.parse(o).scheme;e!==Ja.file&&e!==Ja.data&&i.replaceWith(yc("",void 0,i.outerHTML))}}})),p.body.querySelectorAll("a").forEach((t=>{const i=t.getAttribute("href");if(t.setAttribute("href",""),!i||/^data:|javascript:/i.test(i)||/^command:/i.test(i)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(i))t.replaceWith(...t.childNodes);else{let n=c(i,!1);e.baseUri&&(n=aP(An.from(e.baseUri),i)),t.dataset.href=n}})),a.innerHTML=lP(e,p.body.innerHTML),h.length>0)Promise.all(h).then((e=>{var i,n;if(r)return;const o=new Map(e),s=a.querySelectorAll("div[data-code]");for(const t of s){const e=o.get(null!==(i=t.dataset.code)&&void 0!==i?i:"");e&&Cc(t,e)}null===(n=t.asyncRenderCallback)||void 0===n||n.call(t)}));else if(u.length>0){const e=new Map(u),t=a.querySelectorAll("div[data-code]");for(const i of t){const t=e.get(null!==(o=i.dataset.code)&&void 0!==o?o:"");t&&Cc(i,t)}}if(t.asyncRenderCallback)for(const f of a.getElementsByTagName("img")){const e=s.add(yl(f,"load",(()=>{e.dispose(),t.asyncRenderCallback()})))}return{element:a,dispose:()=>{r=!0,s.dispose()}}}function rP(e){if(!e)return"";const t=e.split(/[\s+|:|,|\{|\?]/,1);return t.length?t[0]:e}function aP(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?qI(e,t).toString():qI(GI(e),t).toString()}function lP(e,t){const{config:i,allowedSchemes:n}=function(e){const t=[Ja.http,Ja.https,Ja.mailto,Ja.data,Ja.file,Ja.vscodeFileResource,Ja.vscodeRemote,Ja.vscodeRemoteResource];return e.isTrusted&&t.push(Ja.command),{config:{ALLOWED_TAGS:[...Oc],ALLOWED_ATTR:cP,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}(e);ja("uponSanitizeAttribute",((e,t)=>{var i;if("style"!==t.attrName&&"class"!==t.attrName){if("INPUT"===e.tagName&&"checkbox"===(null===(i=e.attributes.getNamedItem("type"))||void 0===i?void 0:i.value)){if("type"===t.attrName&&"checkbox"===t.attrValue||"disabled"===t.attrName||"checked"===t.attrName)return void(t.keepAttr=!0);t.keepAttr=!1}}else{if("SPAN"===e.tagName){if("style"===t.attrName)return void(t.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?$/.test(t.attrValue));if("class"===t.attrName)return void(t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue))}t.keepAttr=!1}})),ja("uponSanitizeElement",((e,t)=>{var i,n;"input"===t.tagName&&("checkbox"===(null===(i=e.attributes.getNamedItem("type"))||void 0===i?void 0:i.value)?e.setAttribute("disabled",""):null===(n=e.parentElement)||void 0===n||n.removeChild(e))}));const o=function(e,t=!1){const i=document.createElement("a");return ja("afterSanitizeAttributes",(n=>{for(const o of["href","src"])if(n.hasAttribute(o)){const s=n.getAttribute(o);if("href"===o&&s.startsWith("#"))continue;if(i.href=s,!e.includes(i.protocol.replace(/:$/,""))){if(t&&"src"===o&&i.href.startsWith("data:"))continue;n.removeAttribute(o)}}})),ui((()=>{Xa("afterSanitizeAttributes")}))}(n);try{return $a(t,{...i,RETURN_TRUSTED_TYPE:!0})}finally{Xa("uponSanitizeAttribute"),o.dispose()}}const cP=["align","autoplay","alt","checked","class","controls","data-code","data-href","disabled","draggable","height","href","loop","muted","playsinline","poster","src","style","target","title","type","width","start"];const dP=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]),hP=new us((()=>{const e=new eP.Renderer;return e.code=e=>e,e.blockquote=e=>e,e.html=e=>"",e.heading=(e,t,i)=>e+"\n",e.hr=()=>"",e.list=(e,t)=>e,e.listitem=e=>e+"\n",e.paragraph=e=>e+"\n",e.table=(e,t)=>e+t+"\n",e.tablerow=e=>e,e.tablecell=(e,t)=>e+" ",e.strong=e=>e,e.em=e=>e,e.codespan=e=>e,e.br=()=>"\n",e.del=e=>e,e.image=(e,t,i)=>"",e.text=e=>e,e.link=(e,t,i)=>i,e}));function uP(e){let t="";return e.forEach((e=>{t+=e.raw})),t}function gP(e){var t,i;for(let n=0;nmP(e.raw))))return CP(e)}}}function mP(e){return!!e.match(/^[^\[]*\]\([^\)]*$/)}function pP(e,t){const i=uP(e);return eP.lexer(i+`\n${t}`)}function fP(e){return wP(e,"`")}function _P(e){return wP(e,"*")}function bP(e){return wP(e,"_")}function vP(e){return wP(e,")")}function SP(e){return wP(e,'")')}function CP(e){return wP(e,"](about:blank)")}function EP(e){return wP(e,"__")}function wP(e,t){const i=uP(Array.isArray(e)?e:[e]);return eP.lexer(i+t)[0]}function TP(e){const t=uP(e),i=t.split("\n");let n,o=!1;for(let s=0;s0){const e=o?i.slice(0,-1).join("\n"):t,s=!!e.match(/\|\s*$/),r=e+(s?"":"|")+`\n|${" --- |".repeat(n)}`;return eP.lexer(r)}}var yP,RP=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},LP=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let IP=yP=class{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new Ri,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e)return{element:document.createElement("span"),dispose:()=>{}};const n=new gi,o=n.add(sP(e,{...this._getRenderOptions(e,n),...t},i));return o.element.classList.add("rendered-markdown"),{element:o.element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:async(e,t)=>{var i,n,o;let s;e?s=this._languageService.getLanguageIdByLanguageName(e):this._options.editor&&(s=null===(i=this._options.editor.getModel())||void 0===i?void 0:i.getLanguageId()),s||(s=bg);const r=await async function(e,t,i){if(!i)return $k(t,e.languageIdCodec,Yk);const n=await go.getOrCreate(i);return $k(t,e.languageIdCodec,n||Yk)}(this._languageService,t,s),a=document.createElement("span");return a.innerHTML=null!==(o=null===(n=yP._ttpTokenizer)||void 0===n?void 0:n.createHTML(r))&&void 0!==o?o:r,this._options.editor?Kc(a,this._options.editor.getOption(50)):this._options.codeBlockFontFamily&&(a.style.fontFamily=this._options.codeBlockFontFamily),void 0!==this._options.codeBlockFontSize&&(a.style.fontSize=this._options.codeBlockFontSize),a},asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:t=>AP(this._openerService,t,e.isTrusted),disposables:t}}}};async function AP(e,t,i){try{return await e.open(t,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:NP(i)})}catch(sue){return Jt(sue),!1}}function NP(e){return!0===e||!(!e||!Array.isArray(e.enabledCommands))&&e.enabledCommands}IP._ttpTokenizer=lu("tokenizeToString",{createHTML:e=>e}),IP=yP=RP([LP(1,eg),LP(2,Ax)],IP);var kP=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},DP=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const OP=yc;let xP=class extends rE{get _targetWindow(){return gl(this._target.targetElements[0])}get _targetDocumentElement(){return gl(this._target.targetElements[0]).document.documentElement}get isDisposed(){return this._isDisposed}get isMouseIn(){return this._lockMouseTracker.isMouseIn}get domNode(){return this._hover.containerDomNode}get onDispose(){return this._onDispose.event}get onRequestLayout(){return this._onRequestLayout.event}get anchor(){return 2===this._hoverPosition?0:1}get x(){return this._x}get y(){return this._y}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this._hoverContainer.classList.toggle("locked",this._isLocked))}constructor(e,t,i,n,o,s){var r,a,l,c,d,h,u,g;super(),this._keybindingService=t,this._configurationService=i,this._openerService=n,this._instantiationService=o,this._accessibilityService=s,this._messageListeners=new gi,this._isDisposed=!1,this._forcePosition=!1,this._x=0,this._y=0,this._isLocked=!1,this._enableFocusTraps=!1,this._addedFocusTrap=!1,this._onDispose=this._register(new Ri),this._onRequestLayout=this._register(new Ri),this._linkHandler=e.linkHandler||(t=>AP(this._openerService,t,$M(e.content)?e.content.isTrusted:void 0)),this._target="targetElements"in e.target?e.target:new PP(e.target),this._hoverPointer=(null===(r=e.appearance)||void 0===r?void 0:r.showPointer)?OP("div.workbench-hover-pointer"):void 0,this._hover=this._register(new Tx),this._hover.containerDomNode.classList.add("workbench-hover","fadeIn"),(null===(a=e.appearance)||void 0===a?void 0:a.compact)&&this._hover.containerDomNode.classList.add("workbench-hover","compact"),(null===(l=e.appearance)||void 0===l?void 0:l.skipFadeInAnimation)&&this._hover.containerDomNode.classList.add("skip-fade-in"),e.additionalClasses&&this._hover.containerDomNode.classList.add(...e.additionalClasses),(null===(c=e.position)||void 0===c?void 0:c.forcePosition)&&(this._forcePosition=!0),e.trapFocus&&(this._enableFocusTraps=!0),this._hoverPosition=null!==(h=null===(d=e.position)||void 0===d?void 0:d.hoverPosition)&&void 0!==h?h:3,this.onmousedown(this._hover.containerDomNode,(e=>e.stopPropagation())),this.onkeydown(this._hover.containerDomNode,(e=>{e.equals(9)&&this.dispose()})),this._register(yl(this._targetWindow,"blur",(()=>this.dispose())));const m=OP("div.hover-row.markdown-hover"),p=OP("div.hover-contents");if("string"==typeof e.content)p.textContent=e.content,p.style.whiteSpace="pre-wrap";else if(e.content instanceof HTMLElement)p.appendChild(e.content),p.classList.add("html-hover-contents");else{const t=e.content,i=this._instantiationService.createInstance(IP,{codeBlockFontFamily:this._configurationService.getValue("editor").fontFamily||Yt.fontFamily}),{element:n}=i.render(t,{actionHandler:{callback:e=>this._linkHandler(e),disposables:this._messageListeners},asyncRenderCallback:()=>{p.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}});p.appendChild(n)}if(m.appendChild(p),this._hover.contentsDomNode.appendChild(m),e.actions&&e.actions.length>0){const t=OP("div.hover-row.status-bar"),i=OP("div.actions");e.actions.forEach((e=>{const t=this._keybindingService.lookupKeybinding(e.commandId),n=t?t.getLabel():null;yx.render(i,{label:e.label,commandId:e.commandId,run:t=>{e.run(t),this.dispose()},iconClass:e.iconClass},n)})),t.appendChild(i),this._hover.containerDomNode.appendChild(t)}let f;if(this._hoverContainer=OP("div.workbench-hover-container"),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode),f=!(e.actions&&e.actions.length>0)&&(void 0===(null===(u=e.persistence)||void 0===u?void 0:u.hideOnHover)?"string"==typeof e.content||$M(e.content)&&!e.content.value.includes("](")&&!e.content.value.includes(""):e.persistence.hideOnHover),f&&(null===(g=e.appearance)||void 0===g?void 0:g.showHoverHint)){const e=OP("div.hover-row.status-bar"),t=OP("div.info");t.textContent=pe("vs/editor/browser/services/hoverService/hoverWidget","hoverhint","Hold {0} key to mouse over",Pe?"Option":"Alt"),e.appendChild(t),this._hover.containerDomNode.appendChild(e)}const _=[...this._target.targetElements];f||_.push(this._hoverContainer);const b=this._register(new MP(_));if(this._register(b.onMouseOut((()=>{this._isLocked||this.dispose()}))),f){const e=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new MP(e)),this._register(this._lockMouseTracker.onMouseOut((()=>{this._isLocked||this.dispose()})))}else this._lockMouseTracker=b}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;const e=this._hover.containerDomNode,t=this.findLastFocusableChild(this._hover.containerDomNode);if(t){const i=Sc(this._hoverContainer,OP("div")),n=vc(this._hoverContainer,OP("div"));i.tabIndex=0,n.tabIndex=0,this._register(yl(n,"focus",(t=>{e.focus(),t.preventDefault()}))),this._register(yl(i,"focus",(e=>{t.focus(),e.preventDefault()})))}}findLastFocusableChild(e){if(e.hasChildNodes())for(let t=0;t=0)return e}const n=this.findLastFocusableChild(i);if(n)return n}}render(e){var t;e.appendChild(this._hoverContainer);const i=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement)&&Rx(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),null===(t=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))||void 0===t?void 0:t.getAriaLabel());i&&I_(i),this.layout(),this.addFocusTrap()}layout(){this._hover.containerDomNode.classList.remove("right-aligned"),this._hover.contentsDomNode.style.maxHeight="";const e=this._target.targetElements.map((e=>(e=>{const t=Wl(e),i=e.getBoundingClientRect();return{top:i.top*t,bottom:i.bottom*t,right:i.right*t,left:i.left*t}})(e))),{top:t,right:i,bottom:n,left:o}=e[0],s=i-o,r=n-t,a={top:t,right:i,bottom:n,left:o,width:s,height:r,center:{x:o+s/2,y:t+r/2}};if(this.adjustHorizontalHoverPosition(a),this.adjustVerticalHoverPosition(a),this.adjustHoverMaxHeight(a),this._hoverContainer.style.padding="",this._hoverContainer.style.margin="",this._hoverPointer){switch(this._hoverPosition){case 1:a.left+=3,a.right+=3,this._hoverContainer.style.paddingLeft="3px",this._hoverContainer.style.marginLeft="-3px";break;case 0:a.left-=3,a.right-=3,this._hoverContainer.style.paddingRight="3px",this._hoverContainer.style.marginRight="-3px";break;case 2:a.top+=3,a.bottom+=3,this._hoverContainer.style.paddingTop="3px",this._hoverContainer.style.marginTop="-3px";break;case 3:a.top-=3,a.bottom-=3,this._hoverContainer.style.paddingBottom="3px",this._hoverContainer.style.marginBottom="-3px"}a.center.x=a.left+s/2,a.center.y=a.top+r/2}this.computeXCordinate(a),this.computeYCordinate(a),this._hoverPointer&&(this._hoverPointer.classList.remove("top"),this._hoverPointer.classList.remove("left"),this._hoverPointer.classList.remove("right"),this._hoverPointer.classList.remove("bottom"),this.setHoverPointerPosition(a)),this._hover.onContentsChanged()}computeXCordinate(e){const t=this._hover.containerDomNode.clientWidth+2;void 0!==this._target.x?this._x=this._target.x:1===this._hoverPosition?this._x=e.right:0===this._hoverPosition?this._x=e.left-t:(this._hoverPointer?this._x=e.center.x-this._hover.containerDomNode.clientWidth/2:this._x=e.left,this._x+t>=this._targetDocumentElement.clientWidth&&(this._hover.containerDomNode.classList.add("right-aligned"),this._x=Math.max(this._targetDocumentElement.clientWidth-t-2,this._targetDocumentElement.clientLeft))),this._xthis._targetWindow.innerHeight&&(this._y=e.bottom)}adjustHorizontalHoverPosition(e){if(void 0!==this._target.x)return;const t=this._hoverPointer?3:0;if(this._forcePosition){const i=t+2;1===this._hoverPosition?this._hover.containerDomNode.style.maxWidth=this._targetDocumentElement.clientWidth-e.right-i+"px":0===this._hoverPosition&&(this._hover.containerDomNode.style.maxWidth=e.left-i+"px")}else 1===this._hoverPosition?this._targetDocumentElement.clientWidth-e.right=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=0:this._hoverPosition=2):0===this._hoverPosition&&(e.left=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=1:this._hoverPosition=2),e.left-this._hover.containerDomNode.clientWidth-t<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1))}adjustVerticalHoverPosition(e){if(void 0!==this._target.y||this._forcePosition)return;const t=this._hoverPointer?3:0;3===this._hoverPosition?e.top-this._hover.containerDomNode.clientHeight-t<0&&(this._hoverPosition=2):2===this._hoverPosition&&e.bottom+this._hover.containerDomNode.clientHeight+t>this._targetWindow.innerHeight&&(this._hoverPosition=3)}adjustHoverMaxHeight(e){let t=this._targetWindow.innerHeight/2;if(this._forcePosition){const i=2+(this._hoverPointer?3:0);3===this._hoverPosition?t=Math.min(t,e.top-i):2===this._hoverPosition&&(t=Math.min(t,this._targetWindow.innerHeight-e.bottom-i))}if(this._hover.containerDomNode.style.maxHeight=`${t}px`,this._hover.contentsDomNode.clientHeighte.height?this._hoverPointer.style.top=e.center.y-(this._y-t)-3+"px":this._hoverPointer.style.top=Math.round(t/2)-3+"px";break}case 3:case 2:{this._hoverPointer.classList.add(3===this._hoverPosition?"bottom":"top");const t=this._hover.containerDomNode.clientWidth;let i=Math.round(t/2)-3;const n=this._x+i;(ne.right)&&(i=e.center.x-this._x-3),this._hoverPointer.style.left=`${i}px`;break}}}focus(){this._hover.containerDomNode.focus()}dispose(){this._isDisposed||(this._onDispose.fire(),this._hoverContainer.remove(),this._messageListeners.dispose(),this._target.dispose(),super.dispose()),this._isDisposed=!0}};xP=kP([DP(1,tT),DP(2,$u),DP(3,Ax),DP(4,td),DP(5,W_)],xP);class MP extends rE{get onMouseOut(){return this._onMouseOut.event}get isMouseIn(){return this._isMouseIn}constructor(e){super(),this._elements=e,this._isMouseIn=!0,this._onMouseOut=this._register(new Ri),this._elements.forEach((e=>this.onmouseover(e,(()=>this._onTargetMouseOver(e))))),this._elements.forEach((e=>this.onmouseleave(e,(()=>this._onTargetMouseLeave(e)))))}_onTargetMouseOver(e){this._isMouseIn=!0,this._clearEvaluateMouseStateTimeout(e)}_onTargetMouseLeave(e){this._isMouseIn=!1,this._evaluateMouseState(e)}_evaluateMouseState(e){this._clearEvaluateMouseStateTimeout(e),this._mouseTimeout=gl(e).setTimeout((()=>this._fireIfMouseOutside()),0)}_clearEvaluateMouseStateTimeout(e){this._mouseTimeout&&(gl(e).clearTimeout(this._mouseTimeout),this._mouseTimeout=void 0)}_fireIfMouseOutside(){this._isMouseIn||this._onMouseOut.fire()}}class PP{constructor(e){this._element=e,this.targetElements=[this._element]}dispose(){}}var FP,BP;function HP(e,t,i){const n=i.mode===BP.ALIGN?i.offset:i.offset+i.size,o=i.mode===BP.ALIGN?i.offset+i.size:i.offset;return 0===i.position?t<=e-n?n:t<=o?o-t:Math.max(e-t,0):t<=o?o-t:t<=e-n?n:0}!function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const i=Math.max(e.start,t.start),n=Math.min(e.end,t.end);return n-i<=0?{start:0,end:0}:{start:i,end:n}}function i(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=i,e.intersects=function(e,n){return!i(t(e,n))},e.relativeComplement=function(e,t){const n=[],o={start:e.start,end:Math.min(t.start,e.end)},s={start:Math.max(t.end,e.start),end:e.end};return i(o)||n.push(o),i(s)||n.push(s),n}}(FP||(FP={})),function(e){e[e.AVOID=0]="AVOID",e[e.ALIGN=1]="ALIGN"}(BP||(BP={}));class WP extends mi{constructor(e,t){super(),this.container=null,this.useFixedPosition=!1,this.useShadowDOM=!1,this.delegate=null,this.toDisposeOnClean=mi.None,this.toDisposeOnSetContainer=mi.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=yc(".context-view"),Lc(this.view),this.setContainer(e,t),this._register(ui((()=>this.setContainer(null,1))))}setContainer(e,t){var i;this.useFixedPosition=1!==t;const n=this.useShadowDOM;if(this.useShadowDOM=3===t,(e!==this.container||n!==this.useShadowDOM)&&(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,null===(i=this.shadowRootHostElement)||void 0===i||i.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e)){if(this.container=e,this.useShadowDOM){this.shadowRootHostElement=yc(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent=UP,this.shadowRoot.appendChild(e),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(yc("slot"))}else this.container.appendChild(this.view);const t=new gi;WP.BUBBLE_UP_EVENTS.forEach((e=>{t.add(Ll(this.container,e,(e=>{this.onDOMEvent(e,!1)})))})),WP.BUBBLE_DOWN_EVENTS.forEach((e=>{t.add(Ll(this.container,e,(e=>{this.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=t}}show(e){var t,i,n;this.isVisible()&&this.hide(),wl(this.view),this.view.className="context-view monaco-component",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex=`${2575+(null!==(t=e.layer)&&void 0!==t?t:0)}`,this.view.style.position=this.useFixedPosition?"fixed":"absolute",Rc(this.view),this.toDisposeOnClean=e.render(this.view)||mi.None,this.delegate=e,this.doLayout(),null===(n=(i=this.delegate).focus)||void 0===n||n.call(i)}getViewElement(){return this.view}layout(){var e,t;this.isVisible()&&(!1!==this.delegate.canRelayout||Ue&&br?(null===(t=null===(e=this.delegate)||void 0===e?void 0:e.layout)||void 0===t||t.call(e),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;const e=this.delegate.getAnchor();let t;if(e instanceof HTMLElement){const i=Hl(e),n=Wl(e);t={top:i.top*n,left:i.left*n,width:i.width*n,height:i.height*n}}else t=function(e){const t=e;return!!t&&"number"==typeof t.x&&"number"==typeof t.y}(e)?{top:e.y,left:e.x,width:e.width||1,height:e.height||2}:{top:e.posy,left:e.posx,width:2,height:2};const i=Ul(this.view),n=zl(this.view),o=this.delegate.anchorPosition||0,s=this.delegate.anchorAlignment||0,r=this.delegate.anchorAxisAlignment||0;let a,l;const c=null!==(h=null===(d=Zl().defaultView)||void 0===d?void 0:d.window)&&void 0!==h?h:cs;var d,h;if(0===r){const e={offset:t.top-c.pageYOffset,size:t.height,position:0===o?0:1},r={offset:t.left,size:t.width,position:0===s?0:1,mode:BP.ALIGN};a=HP(c.innerHeight,n,e)+c.pageYOffset,FP.intersects({start:a,end:a+n},{start:e.offset,end:e.offset+e.size})&&(r.mode=BP.AVOID),l=HP(c.innerWidth,i,r)}else{const e={offset:t.left,size:t.width,position:0===s?0:1},r={offset:t.top,size:t.height,position:0===o?0:1,mode:BP.ALIGN};l=HP(c.innerWidth,i,e),FP.intersects({start:l,end:l+i},{start:e.offset,end:e.offset+e.size})&&(r.mode=BP.AVOID),a=HP(c.innerHeight,n,r)+c.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(0===o?"bottom":"top"),this.view.classList.add(0===s?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const u=Hl(this.container);this.view.style.top=a-(this.useFixedPosition?Hl(this.view).top:u.top)+"px",this.view.style.left=l-(this.useFixedPosition?Hl(this.view).left:u.left)+"px",this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,(null==t?void 0:t.onHide)&&t.onHide(e),this.toDisposeOnClean.dispose(),Lc(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,gl(e).document.activeElement):t&&!Kl(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}WP.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],WP.BUBBLE_DOWN_EVENTS=["click"];const UP='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n';var VP=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},GP=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let zP=class extends mi{constructor(e){super(),this.layoutService=e,this.contextView=this._register(new WP(this.layoutService.mainContainer,1)),this.layout(),this._register(e.onDidLayoutContainer((()=>this.layout())))}showContextView(e,t,i){let n;n=t?t===this.layoutService.getContainer(gl(t))?1:i?3:2:1,this.contextView.setContainer(null!=t?t:this.layoutService.activeContainer,n),this.contextView.show(e);const o={close:()=>{this.openContextView===o&&this.hideContextView()}};return this.openContextView=o,o}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e),this.openContextView=void 0}};zP=VP([GP(0,tO)],zP);class KP extends zP{getContextViewElement(){return this.contextView.getViewElement()}}class YP{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}async update(e,t,i){var n;if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let o;if(void 0===e||q(e)||e instanceof HTMLElement)o=e;else if(oe(e.markdown)){this._hoverWidget||this.show(pe("vs/editor/browser/services/hoverService/updatableHoverWidget","iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new Fi;const i=this._cancellationTokenSource.token;if(o=await e.markdown(i),void 0===o&&(o=e.markdownNotSupportedFallback),this.isDisposed||i.isCancellationRequested)return}else o=null!==(n=e.markdown)&&void 0!==n?n:e.markdownNotSupportedFallback;this.show(o,t,i)}show(e,t,i){const n=this._hoverWidget;if(this.hasContent(e)){const o={content:e,target:this.target,appearance:{showPointer:"element"===this.hoverDelegate.placement,skipFadeInAnimation:!this.fadeInAnimation||!!n},position:{hoverPosition:2},...i};this._hoverWidget=this.hoverDelegate.showHover(o,t)}null==n||n.dispose()}hasContent(e){return!(!e||$M(e)&&!e.value)}get isDisposed(){var e;return null===(e=this._hoverWidget)||void 0===e?void 0:e.isDisposed}dispose(){var e,t;null===(e=this._hoverWidget)||void 0===e||e.dispose(),null===(t=this._cancellationTokenSource)||void 0===t||t.dispose(!0),this._cancellationTokenSource=void 0}}var qP=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},$P=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let jP=class extends mi{constructor(e,t,i,n,o){super(),this._instantiationService=e,this._keybindingService=i,this._layoutService=n,this._accessibilityService=o,t.onDidShowContextMenu((()=>this.hideHover())),this._contextViewHandler=this._register(new zP(this._layoutService))}showHover(e,t,i){var n,o,s,r;if(XP(this._currentHoverOptions)===XP(e))return;if(this._currentHover&&(null===(o=null===(n=this._currentHoverOptions)||void 0===n?void 0:n.persistence)||void 0===o?void 0:o.sticky))return;this._currentHoverOptions=e,this._lastHoverOptions=e;const a=e.trapFocus||this._accessibilityService.isScreenReaderOptimized(),l=Xl();i||(this._lastFocusedElementBeforeOpen=a&&l?l:void 0);const c=new gi,d=this._instantiationService.createInstance(xP,e);if((null===(s=e.persistence)||void 0===s?void 0:s.sticky)&&(d.isLocked=!0),d.onDispose((()=>{var t,i;(null===(t=this._currentHover)||void 0===t?void 0:t.domNode)&&Ql(this._currentHover.domNode)&&(null===(i=this._lastFocusedElementBeforeOpen)||void 0===i||i.focus()),this._currentHoverOptions===e&&(this._currentHoverOptions=void 0),c.dispose()}),void 0,c),!e.container){const t=e.target instanceof HTMLElement?e.target:e.target.targetElements[0];e.container=this._layoutService.getContainer(gl(t))}if(this._contextViewHandler.showContextView(new JP(d,t),e.container),d.onRequestLayout((()=>this._contextViewHandler.layout()),void 0,c),null===(r=e.persistence)||void 0===r?void 0:r.sticky)c.add(yl(gl(e.container).document,mc.MOUSE_DOWN,(e=>{Kl(e.target,d.domNode)||this.doHideHover()})));else{if("targetElements"in e.target)for(const i of e.target.targetElements)c.add(yl(i,mc.CLICK,(()=>this.hideHover())));else c.add(yl(e.target,mc.CLICK,(()=>this.hideHover())));const t=Xl();if(t){const i=gl(t).document;c.add(yl(t,mc.KEY_DOWN,(t=>{var i;return this._keyDown(t,d,!!(null===(i=e.persistence)||void 0===i?void 0:i.hideOnKeyDown))}))),c.add(yl(i,mc.KEY_DOWN,(t=>{var i;return this._keyDown(t,d,!!(null===(i=e.persistence)||void 0===i?void 0:i.hideOnKeyDown))}))),c.add(yl(t,mc.KEY_UP,(e=>this._keyUp(e,d)))),c.add(yl(i,mc.KEY_UP,(e=>this._keyUp(e,d))))}}if("IntersectionObserver"in cs){const t=new IntersectionObserver((e=>this._intersectionChange(e,d)),{threshold:0}),i="targetElements"in e.target?e.target.targetElements[0]:e.target;t.observe(i),c.add(ui((()=>t.disconnect())))}return this._currentHover=d,d}hideHover(){var e;!(null===(e=this._currentHover)||void 0===e?void 0:e.isLocked)&&this._currentHoverOptions&&this.doHideHover()}doHideHover(){this._currentHover=void 0,this._currentHoverOptions=void 0,this._contextViewHandler.hideContextView()}_intersectionChange(e,t){e[e.length-1].isIntersecting||t.dispose()}showAndFocusLastHover(){this._lastHoverOptions&&this.showHover(this._lastHoverOptions,!0,!0)}_keyDown(e,t,i){var n,o;if("Alt"===e.key)return void(t.isLocked=!0);const s=new Lr(e);this._keybindingService.resolveKeyboardEvent(s).getSingleModifierDispatchChords().some((e=>!!e))||0!==this._keybindingService.softDispatch(s,s.target).kind||!i||(null===(n=this._currentHoverOptions)||void 0===n?void 0:n.trapFocus)&&"Tab"===e.key||(this.hideHover(),null===(o=this._lastFocusedElementBeforeOpen)||void 0===o||o.focus())}_keyUp(e,t){var i;"Alt"===e.key&&(t.isLocked=!1,t.isMouseIn||(this.hideHover(),null===(i=this._lastFocusedElementBeforeOpen)||void 0===i||i.focus()))}setupUpdatableHover(e,t,i,n){let o,s;t.setAttribute("custom-hover","true"),""!==t.title&&(t.title="");const r=(t,i)=>{var n;const r=void 0!==s;t&&(null==s||s.dispose(),s=void 0),i&&(null==o||o.dispose(),o=void 0),r&&(null===(n=e.onDidHideHover)||void 0===n||n.call(e),s=void 0)},a=(o,r,a)=>new Gr((async()=>{s&&!s.isDisposed||(s=new YP(e,a||t,o>0),await s.update("function"==typeof i?i():i,r,n))}),o);let l=!1;const c=yl(t,mc.MOUSE_DOWN,(()=>{l=!0,r(!0,!0)}),!0),d=yl(t,mc.MOUSE_UP,(()=>{l=!1}),!0),h=yl(t,mc.MOUSE_LEAVE,(e=>{l=!1,r(!1,e.fromElement===t)}),!0),u=yl(t,mc.MOUSE_OVER,(i=>{if(o)return;const n=new gi,s={targetElements:[t],dispose:()=>{}};if(void 0===e.placement||"mouse"===e.placement){const e=e=>{s.x=e.x+10,e.target instanceof HTMLElement&&QP(e.target,t)!==t&&r(!0,!0)};n.add(yl(t,mc.MOUSE_MOVE,e,!0))}o=n,i.target instanceof HTMLElement&&QP(i.target,t)!==t||n.add(a(e.delay,!1,s))}),!0);let g;const m=t.tagName.toLowerCase();return"input"!==m&&"textarea"!==m&&(g=yl(t,mc.FOCUS,(()=>{if(l||o)return;const i={targetElements:[t],dispose:()=>{}},n=new gi;n.add(yl(t,mc.BLUR,(()=>r(!0,!0)),!0)),n.add(a(e.delay,!1,i)),o=n}),!0)),{show:e=>{r(!1,!0),a(0,e)},hide:()=>{r(!0,!0)},update:async(e,t)=>{i=e,await(null==s?void 0:s.update(i,void 0,t))},dispose:()=>{u.dispose(),h.dispose(),c.dispose(),d.dispose(),null==g||g.dispose(),r(!0,!0)}}}};function XP(e){var t;if(void 0!==e)return null!==(t=null==e?void 0:e.id)&&void 0!==t?t:e}jP=qP([$P(0,td),$P(1,Ex),$P(2,tT),$P(3,tO),$P(4,W_)],jP);class JP{get anchorPosition(){return this._hover.anchor}constructor(e,t=!1){this._hover=e,this._focus=t,this.layer=1}render(e){return this._hover.render(e),this._focus&&this._hover.focus(),this._hover}getAnchor(){return{x:this._hover.x,y:this._hover.y}}layout(){this._hover.layout()}}function QP(e,t){for(t=null!=t?t:gl(e).document.body;!e.hasAttribute("custom-hover")&&e!==t;)e=e.parentElement;return e}ng(vx,jP,1),XE(((e,t)=>{const i=e.getColor(qb);i&&(t.addRule(`.monaco-workbench .workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-workbench .workbench-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`))}));const ZP=id("IWorkspaceEditService");class eF{constructor(e){this.metadata=e}static convert(e){return e.edits.map((e=>{if(tF.is(e))return tF.lift(e);if(iF.is(e))return iF.lift(e);throw new Error("Unsupported edit")}))}}class tF extends eF{static is(e){return e instanceof tF||$(e)&&An.isUri(e.resource)&&$(e.textEdit)}static lift(e){return e instanceof tF?e:new tF(e.resource,e.textEdit,e.versionId,e.metadata)}constructor(e,t,i=void 0,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i}}class iF extends eF{static is(e){return e instanceof iF||$(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}static lift(e){return e instanceof iF?e:new iF(e.oldResource,e.newResource,e.options,e.metadata)}constructor(e,t,i={},n){super(n),this.oldResource=e,this.newResource=t,this.options=i}}const nF={enableSplitViewResizing:!0,splitViewDefaultRatio:.5,renderSideBySide:!0,renderMarginRevertIcon:!0,renderGutterMenu:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"advanced",accessibilityVerbose:!1,experimental:{showMoves:!1,showEmptyDecorations:!0},hideUnchangedRegions:{enabled:!1,contextLineCount:3,minimumLineCount:3,revealLineCount:20},isInEmbeddedEditor:!1,onlyShowAccessibleDiffViewer:!1,renderSideBySideInlineBreakpoint:900,useInlineViewWhenSpaceIsLimited:!0},oF=Object.freeze({id:"editor",order:5,type:"object",title:pe("vs/editor/common/config/editorConfigurationSchema","editorConfigurationTitle","Editor"),scope:5}),sF={...oF,properties:{"editor.tabSize":{type:"number",default:it.tabSize,minimum:1,markdownDescription:pe("vs/editor/common/config/editorConfigurationSchema","tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.indentSize":{anyOf:[{type:"string",enum:["tabSize"]},{type:"number",minimum:1}],default:"tabSize",markdownDescription:pe("vs/editor/common/config/editorConfigurationSchema","indentSize",'The number of spaces used for indentation or `"tabSize"` to use the value from `#editor.tabSize#`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.')},"editor.insertSpaces":{type:"boolean",default:it.insertSpaces,markdownDescription:pe("vs/editor/common/config/editorConfigurationSchema","insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.detectIndentation":{type:"boolean",default:it.detectIndentation,markdownDescription:pe("vs/editor/common/config/editorConfigurationSchema","detectIndentation","Controls whether {0} and {1} will be automatically detected when a file is opened based on the file contents.","`#editor.tabSize#`","`#editor.insertSpaces#`")},"editor.trimAutoWhitespace":{type:"boolean",default:it.trimAutoWhitespace,description:pe("vs/editor/common/config/editorConfigurationSchema","trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:it.largeFileOptimizations,description:pe("vs/editor/common/config/editorConfigurationSchema","largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{enum:["off","currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[pe("vs/editor/common/config/editorConfigurationSchema","wordBasedSuggestions.off","Turn off Word Based Suggestions."),pe("vs/editor/common/config/editorConfigurationSchema","wordBasedSuggestions.currentDocument","Only suggest words from the active document."),pe("vs/editor/common/config/editorConfigurationSchema","wordBasedSuggestions.matchingDocuments","Suggest words from all open documents of the same language."),pe("vs/editor/common/config/editorConfigurationSchema","wordBasedSuggestions.allDocuments","Suggest words from all open documents.")],description:pe("vs/editor/common/config/editorConfigurationSchema","wordBasedSuggestions","Controls whether completions should be computed based on words in the document and from which documents they are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[pe("vs/editor/common/config/editorConfigurationSchema","semanticHighlighting.true","Semantic highlighting enabled for all color themes."),pe("vs/editor/common/config/editorConfigurationSchema","semanticHighlighting.false","Semantic highlighting disabled for all color themes."),pe("vs/editor/common/config/editorConfigurationSchema","semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:pe("vs/editor/common/config/editorConfigurationSchema","semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:pe("vs/editor/common/config/editorConfigurationSchema","stablePeek","Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:pe("vs/editor/common/config/editorConfigurationSchema","maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!1,description:pe("vs/editor/common/config/editorConfigurationSchema","editor.experimental.asyncTokenization","Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:pe("vs/editor/common/config/editorConfigurationSchema","editor.experimental.asyncTokenizationLogging","Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:pe("vs/editor/common/config/editorConfigurationSchema","editor.experimental.asyncTokenizationVerification","Controls whether async tokenization should be verified against legacy background tokenization. Might slow down tokenization. For debugging only."),tags:["experimental"]},"editor.language.brackets":{type:["array","null"],default:null,description:pe("vs/editor/common/config/editorConfigurationSchema","schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:pe("vs/editor/common/config/editorConfigurationSchema","schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:pe("vs/editor/common/config/editorConfigurationSchema","schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:pe("vs/editor/common/config/editorConfigurationSchema","schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:pe("vs/editor/common/config/editorConfigurationSchema","schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:pe("vs/editor/common/config/editorConfigurationSchema","schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:nF.maxComputationTime,description:pe("vs/editor/common/config/editorConfigurationSchema","maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:nF.maxFileSize,description:pe("vs/editor/common/config/editorConfigurationSchema","maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:nF.renderSideBySide,description:pe("vs/editor/common/config/editorConfigurationSchema","sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderSideBySideInlineBreakpoint":{type:"number",default:nF.renderSideBySideInlineBreakpoint,description:pe("vs/editor/common/config/editorConfigurationSchema","renderSideBySideInlineBreakpoint","If the diff editor width is smaller than this value, the inline view is used.")},"diffEditor.useInlineViewWhenSpaceIsLimited":{type:"boolean",default:nF.useInlineViewWhenSpaceIsLimited,description:pe("vs/editor/common/config/editorConfigurationSchema","useInlineViewWhenSpaceIsLimited","If enabled and the editor width is too small, the inline view is used.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:nF.renderMarginRevertIcon,description:pe("vs/editor/common/config/editorConfigurationSchema","renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.renderGutterMenu":{type:"boolean",default:nF.renderGutterMenu,description:pe("vs/editor/common/config/editorConfigurationSchema","renderGutterMenu","When enabled, the diff editor shows a special gutter for revert and stage actions.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:nF.ignoreTrimWhitespace,description:pe("vs/editor/common/config/editorConfigurationSchema","ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:nF.renderIndicators,description:pe("vs/editor/common/config/editorConfigurationSchema","renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:nF.diffCodeLens,description:pe("vs/editor/common/config/editorConfigurationSchema","codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:nF.diffWordWrap,markdownEnumDescriptions:[pe("vs/editor/common/config/editorConfigurationSchema","wordWrap.off","Lines will never wrap."),pe("vs/editor/common/config/editorConfigurationSchema","wordWrap.on","Lines will wrap at the viewport width."),pe("vs/editor/common/config/editorConfigurationSchema","wordWrap.inherit","Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced"],default:nF.diffAlgorithm,markdownEnumDescriptions:[pe("vs/editor/common/config/editorConfigurationSchema","diffAlgorithm.legacy","Uses the legacy diffing algorithm."),pe("vs/editor/common/config/editorConfigurationSchema","diffAlgorithm.advanced","Uses the advanced diffing algorithm.")],tags:["experimental"]},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:nF.hideUnchangedRegions.enabled,markdownDescription:pe("vs/editor/common/config/editorConfigurationSchema","hideUnchangedRegions.enabled","Controls whether the diff editor shows unchanged regions.")},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:nF.hideUnchangedRegions.revealLineCount,markdownDescription:pe("vs/editor/common/config/editorConfigurationSchema","hideUnchangedRegions.revealLineCount","Controls how many lines are used for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:nF.hideUnchangedRegions.minimumLineCount,markdownDescription:pe("vs/editor/common/config/editorConfigurationSchema","hideUnchangedRegions.minimumLineCount","Controls how many lines are used as a minimum for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:nF.hideUnchangedRegions.contextLineCount,markdownDescription:pe("vs/editor/common/config/editorConfigurationSchema","hideUnchangedRegions.contextLineCount","Controls how many lines are used as context when comparing unchanged regions."),minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:nF.experimental.showMoves,markdownDescription:pe("vs/editor/common/config/editorConfigurationSchema","showMoves","Controls whether the diff editor should show detected code moves.")},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:nF.experimental.showEmptyDecorations,description:pe("vs/editor/common/config/editorConfigurationSchema","showEmptyDecorations","Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted.")}}};for(const OR of qt){const e=OR.schema;if(void 0!==e)if(void 0!==(rF=e).type||void 0!==rF.anyOf)sF.properties[`editor.${OR.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(sF.properties[t]=e[t])}var rF;let aF=null;function lF(){return null===aF&&(aF=Object.create(null),Object.keys(sF.properties).forEach((e=>{aF[e]=!0}))),aF}dh.as(lg).registerConfiguration(sF);class cF{static insert(e,t){return{range:new Un(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}function dF(e){return Object.isFrozen(e)?e:function(e){if(!e||"object"!=typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const i in e)if(ae.call(e,i)){const n=e[i];"object"!=typeof n||Object.isFrozen(n)||j(n)||t.push(n)}}return e}(e)}class hF{static createEmptyModel(e){return new hF({},[],[],void 0,e)}constructor(e,t,i,n,o){this._contents=e,this._keys=t,this._overrides=i,this.raw=n,this.logService=o,this.overrideConfigurations=new Map}get rawConfiguration(){var e;if(!this._rawConfiguration)if(null===(e=this.raw)||void 0===e?void 0:e.length){const e=this.raw.map((e=>{if(e instanceof hF)return e;const t=new uF("",this.logService);return t.parseRaw(e),t.configurationModel}));this._rawConfiguration=e.reduce(((e,t)=>t===e?t:e.merge(t)),e[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?Zu(this.contents,e):this.contents}inspect(e,t){const i=this;return{get value(){return dF(i.rawConfiguration.getValue(e))},get override(){return t?dF(i.rawConfiguration.getOverrideValue(e,t)):void 0},get merged(){return dF(t?i.rawConfiguration.override(t).getValue(e):i.rawConfiguration.getValue(e))},get overrides(){const t=[];for(const{contents:n,identifiers:o,keys:s}of i.rawConfiguration.overrides){const r=new hF(n,s,[],void 0,i.logService).getValue(e);void 0!==r&&t.push({identifiers:o,value:r})}return t.length?dF(t):void 0}}}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?Zu(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){var t,i;const n=re(this.contents),o=re(this.overrides),s=[...this.keys],r=(null===(t=this.raw)||void 0===t?void 0:t.length)?[...this.raw]:[this];for(const a of e)if(r.push(...(null===(i=a.raw)||void 0===i?void 0:i.length)?a.raw:[a]),!a.isEmpty()){this.mergeContents(n,a.contents);for(const e of a.overrides){const[t]=o.filter((t=>b(t.identifiers,e.identifiers)));t?(this.mergeContents(t.contents,e.contents),t.keys.push(...e.keys),t.keys=I(t.keys)):o.push(re(e))}for(const e of a.keys)-1===s.indexOf(e)&&s.push(e)}return new hF(n,s,o,r.every((e=>e instanceof hF))?void 0:r,this.logService)}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!=typeof t||!Object.keys(t).length)return this;const i={};for(const n of I([...Object.keys(this.contents),...Object.keys(t)])){let e=this.contents[n];const o=t[n];o&&("object"==typeof e&&"object"==typeof o?(e=re(e),this.mergeContents(e,o)):e=o),i[n]=e}return new hF(i,this.keys,this.overrides,void 0,this.logService)}mergeContents(e,t){for(const i of Object.keys(t))i in e&&$(e[i])&&$(t[i])?this.mergeContents(e[i],t[i]):e[i]=re(t[i])}getContentsForOverrideIdentifer(e){let t=null,i=null;const n=e=>{e&&(i?this.mergeContents(i,e):i=re(e))};for(const o of this.overrides)1===o.identifiers.length&&o.identifiers[0]===e?t=o.contents:o.identifiers.includes(e)&&n(o.contents);return n(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}addValue(e,t){this.updateValue(e,t,!0)}setValue(e,t){this.updateValue(e,t,!1)}removeValue(e){const t=this.keys.indexOf(e);-1!==t&&(this.keys.splice(t,1),Ju(this.contents,e),gg.test(e)&&this.overrides.splice(this.overrides.findIndex((t=>b(t.identifiers,mg(e)))),1))}updateValue(e,t,i){Xu(this.contents,e,t,(e=>this.logService.error(e))),(i=i||-1===this.keys.indexOf(e))&&this.keys.push(e),gg.test(e)&&this.overrides.push({identifiers:mg(e),keys:Object.keys(this.contents[e]),contents:ju(this.contents[e],(e=>this.logService.error(e)))})}}class uF{constructor(e,t){this._name=e,this.logService=t,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||hF.createEmptyModel(this.logService)}parseRaw(e,t){this._raw=e;const{contents:i,keys:n,overrides:o,restricted:s,hasExcludedProperties:r}=this.doParseRaw(e,t);this._configurationModel=new hF(i,n,o,r?[e]:void 0,this.logService),this._restrictedConfigurations=s||[]}doParseRaw(e,t){const i=dh.as(lg).getConfigurationProperties(),n=this.filter(e,i,!0,t);return{contents:ju(e=n.raw,(e=>this.logService.error(`Conflict in settings file ${this._name}: ${e}`))),keys:Object.keys(e),overrides:this.toOverrides(e,(e=>this.logService.error(`Conflict in settings file ${this._name}: ${e}`))),restricted:n.restricted,hasExcludedProperties:n.hasExcludedProperties}}filter(e,t,i,n){var o,s,r;let a=!1;if(!(null==n?void 0:n.scopes)&&!(null==n?void 0:n.skipRestricted)&&!(null===(o=null==n?void 0:n.exclude)||void 0===o?void 0:o.length))return{raw:e,restricted:[],hasExcludedProperties:a};const l={},c=[];for(const d in e)if(gg.test(d)&&i){const i=this.filter(e[d],t,!1,n);l[d]=i.raw,a=a||i.hasExcludedProperties,c.push(...i.restricted)}else{const i=t[d],o=i?void 0!==i.scope?i.scope:3:void 0;(null==i?void 0:i.restricted)&&c.push(d),(null===(s=n.exclude)||void 0===s?void 0:s.includes(d))||!(null===(r=n.include)||void 0===r?void 0:r.includes(d))&&(void 0!==o&&void 0!==n.scopes&&!n.scopes.includes(o)||n.skipRestricted&&(null==i?void 0:i.restricted))?a=!0:l[d]=e[d]}return{raw:l,restricted:c,hasExcludedProperties:a}}toOverrides(e,t){const i=[];for(const n of Object.keys(e))if(gg.test(n)){const o={};for(const t in e[n])o[t]=e[n][t];i.push({identifiers:mg(n),keys:Object.keys(o),contents:ju(o,t)})}return i}}class gF{constructor(e,t,i,n,o,s,r,a,l,c,d,h,u){this.key=e,this.overrides=t,this._value=i,this.overrideIdentifiers=n,this.defaultConfiguration=o,this.policyConfiguration=s,this.applicationConfiguration=r,this.userConfiguration=a,this.localUserConfiguration=l,this.remoteUserConfiguration=c,this.workspaceConfiguration=d,this.folderConfigurationModel=h,this.memoryConfigurationModel=u}toInspectValue(e){return void 0!==(null==e?void 0:e.value)||void 0!==(null==e?void 0:e.override)||void 0!==(null==e?void 0:e.overrides)?e:void 0}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.userConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get user(){return this.toInspectValue(this.userInspectValue)}}class mF{constructor(e,t,i,n,o,s,r,a,l,c){this._defaultConfiguration=e,this._policyConfiguration=t,this._applicationConfiguration=i,this._localUserConfiguration=n,this._remoteUserConfiguration=o,this._workspaceConfiguration=s,this._folderConfigurations=r,this._memoryConfiguration=a,this._memoryConfigurationByResource=l,this.logService=c,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new cm,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidatedConfigurationModel(e,t,i).getValue(e)}updateValue(e,t,i={}){let n;i.resource?(n=this._memoryConfigurationByResource.get(i.resource),n||(n=hF.createEmptyModel(this.logService),this._memoryConfigurationByResource.set(i.resource,n))):n=this._memoryConfiguration,void 0===t?n.removeValue(e):n.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,t,i){const n=this.getConsolidatedConfigurationModel(e,t,i),o=this.getFolderConfigurationModelForResource(t.resource,i),s=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,r=new Set;for(const a of n.overrides)for(const t of a.identifiers)void 0!==n.getOverrideValue(e,t)&&r.add(t);return new gF(e,t,n.getValue(e),r.size?[...r]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,i?this._workspaceConfiguration:void 0,o||void 0,s)}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration)),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(e,t,i){let n=this.getConsolidatedConfigurationModelForResource(t,i);return t.overrideIdentifier&&(n=n.override(t.overrideIdentifier)),this._policyConfiguration.isEmpty()||void 0===this._policyConfiguration.getValue(e)||(n=n.merge(this._policyConfiguration)),n}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const n=t.getFolder(e);n&&(i=this.getFolderConsolidatedConfiguration(n.uri)||i);const o=this._memoryConfigurationByResource.get(e);o&&(i=i.merge(o))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),n=this._folderConfigurations.get(e);n?(t=i.merge(n),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){const i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce(((e,t)=>{const{contents:i,overrides:n,keys:o}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:n,keys:o}]),e}),[])}}static parse(e,t){const i=this.parseConfigurationModel(e.defaults,t),n=this.parseConfigurationModel(e.policy,t),o=this.parseConfigurationModel(e.application,t),s=this.parseConfigurationModel(e.user,t),r=this.parseConfigurationModel(e.workspace,t),a=e.folders.reduce(((e,i)=>(e.set(An.revive(i[0]),this.parseConfigurationModel(i[1],t)),e)),new cm);return new mF(i,n,o,s,hF.createEmptyModel(t),r,a,hF.createEmptyModel(t),new cm,t)}static parseConfigurationModel(e,t){return new hF(e.contents,e.keys,e.overrides,void 0,t)}}class pF{constructor(e,t,i,n,o){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=n,this.logService=o,this._marker="\n",this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=".".charCodeAt(0),this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const s of e.keys)this.affectedKeys.add(s);for(const[,s]of e.overrides)for(const e of s)this.affectedKeys.add(e);this._affectsConfigStr=this._marker;for(const s of this.affectedKeys)this._affectsConfigStr+=s+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=mF.parse(this.previous.data,this.logService)),this._previousConfiguration}affectsConfiguration(e,t){var i;const n=this._marker+e,o=this._affectsConfigStr.indexOf(n);if(o<0)return!1;const s=o+n.length;if(s>=this._affectsConfigStr.length)return!1;const r=this._affectsConfigStr.charCodeAt(s);return(r===this._markerCode1||r===this._markerCode2)&&(!t||!he(this.previousConfiguration?this.previousConfiguration.getValue(e,t,null===(i=this.previous)||void 0===i?void 0:i.workspace):void 0,this.currentConfiguraiton.getValue(e,t,this.currentWorkspace)))}}const fF={kind:0},_F={kind:1};class bF{constructor(e,t,i){var n;this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const o of e){const e=o.command;e&&"-"!==e.charAt(0)&&this._defaultBoundCommands.set(e,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=bF.handleRemovals([].concat(e).concat(t));for(let o=0,s=this._keybindings.length;o=0;n--){const e=i[n];if(e.command===t.command)continue;let o=!0;for(let i=1;i=0;n--){const e=i[n];if(t.contextMatchesRules(e.when))return e}return i[i.length-1]}resolve(e,t,i){const n=[...t,i];this._log(`| Resolving ${n}`);const o=this._map.get(n[0]);if(void 0===o)return this._log("\\ No keybinding entries."),fF;let s=null;if(n.length<2)s=o;else{s=[];for(let e=0,t=o.length;et.chords.length)continue;let i=!0;for(let e=1;e=0;i--){const n=t[i];if(bF._contextMatchesRules(e,n.when))return n}return null}static _contextMatchesRules(e,t){return!t||t.evaluate(e)}}function vF(e){return e?`${e.serialize()}`:"no when condition"}function SF(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?"built-in":"user"}const CF=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/;class EF extends mi{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:Ci.None}get inChordMode(){return this._currentChords.length>0}constructor(e,t,i,n,o){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=n,this._logService=o,this._onDidUpdateKeybindings=this._register(new Ri),this._currentChords=[],this._currentChordChecker=new zr,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=wF.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new Gr,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");const i=this.resolveKeyboardEvent(e);if(i.hasMultipleChords())return fF;const[n]=i.getDispatchChords();if(null===n)return this._log("\\ Keyboard event cannot be dispatched"),fF;const o=this._contextKeyService.getContext(t),s=this._currentChords.map((({keypress:e})=>e));return this._getResolver().resolve(o,s,n)}_scheduleLeaveChordMode(){const e=Date.now();this._currentChordChecker.cancelAndSet((()=>{this._documentHasFocus()?Date.now()-e>5e3&&this._leaveChordMode():this._leaveChordMode()}),500)}_expectAnotherChord(e,t){switch(this._currentChords.push({keypress:e,label:t}),this._currentChords.length){case 0:throw oi("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status(pe("vs/platform/keybinding/common/abstractKeybindingService","first.chord","({0}) was pressed. Waiting for second key of chord...",t));break;default:{const e=this._currentChords.map((({label:e})=>e)).join(", ");this._currentChordStatusMessage=this._notificationService.status(pe("vs/platform/keybinding/common/abstractKeybindingService","next.chord","({0}) was pressed. Waiting for next key of chord...",e))}}this._scheduleLeaveChordMode(),eT.enabled&&eT.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],eT.enable()}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchChords();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=wF.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=wF.EMPTY,null===this._currentSingleModifier?(this._log(`+ Storing single modifier for possible chord ${n}.`),this._currentSingleModifier=n,this._currentSingleModifierClearTimeout.cancelAndSet((()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null}),300),!1):n===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${n} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[o]=i.getChords();return this._ignoreSingleModifiers=new wF(o),null!==this._currentSingleModifier&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){var n;let o=!1;if(e.hasMultipleChords())return!1;let s=null,r=null;if(i){const[t]=e.getSingleModifierDispatchChords();s=t,r=t?[t]:[]}else[s]=e.getDispatchChords(),r=this._currentChords.map((({keypress:e})=>e));if(null===s)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),o;const a=this._contextKeyService.getContext(t),l=e.getLabel(),c=this._getResolver().resolve(a,r,s);switch(c.kind){case 0:if(this._logService.trace("KeybindingService#dispatch",l,"[ No matching keybinding ]"),this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${e}, ${l}".`),this._notificationService.status(pe("vs/platform/keybinding/common/abstractKeybindingService","missing.chord","The key combination ({0}, {1}) is not a command.",e,l),{hideAfter:1e4}),this._leaveChordMode(),o=!0}return o;case 1:return this._logService.trace("KeybindingService#dispatch",l,"[ Several keybindings match - more chords needed ]"),o=!0,this._expectAnotherChord(s,l),this._log(1===this._currentChords.length?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),o;case 2:if(this._logService.trace("KeybindingService#dispatch",l,`[ Will dispatch command ${c.commandId} ]`),null===c.commandId||""===c.commandId){if(this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${e}, ${l}".`),this._notificationService.status(pe("vs/platform/keybinding/common/abstractKeybindingService","missing.chord","The key combination ({0}, {1}) is not a command.",e,l),{hideAfter:1e4}),this._leaveChordMode(),o=!0}}else{this.inChordMode&&this._leaveChordMode(),c.isBubble||(o=!0),this._log(`+ Invoking command ${c.commandId}.`),this._currentlyDispatchingCommandId=c.commandId;try{void 0===c.commandArgs?this._commandService.executeCommand(c.commandId).then(void 0,(e=>this._notificationService.warn(e))):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,(e=>this._notificationService.warn(e)))}finally{this._currentlyDispatchingCommandId=null}CF.test(c.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:c.commandId,from:"keybinding",detail:null!==(n=e.getUserSettingsLabel())&&void 0!==n?n:void 0})}return o}}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)}}class wF{constructor(e){this._ctrlKey=!!e&&e.ctrlKey,this._shiftKey=!!e&&e.shiftKey,this._altKey=!!e&&e.altKey,this._metaKey=!!e&&e.metaKey}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}wF.EMPTY=new wF(null);class TF{constructor(e,t,i,n,o,s,r){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.chords=e?yF(e.getDispatchChords()):[],e&&0===this.chords.length&&(this.chords=yF(e.getSingleModifierDispatchChords())),this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=n,this.isDefault=o,this.extensionId=s,this.isBuiltinExtension=r}}function yF(e){const t=[];for(let i=0,n=e.length;ithis._getLabel(e)))}getAriaLabel(){return IF.toLabel(this._os,this._chords,(e=>this._getAriaLabel(e)))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:AF.toLabel(this._os,this._chords,(e=>this._getElectronAccelerator(e)))}getUserSettingsLabel(){return NF.toLabel(this._os,this._chords,(e=>this._getUserSettingsLabel(e)))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map((e=>this._getChord(e)))}_getChord(e){return new wr(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchChords(){return this._chords.map((e=>this._getChordDispatch(e)))}getSingleModifierDispatchChords(){return this._chords.map((e=>this._getSingleModifierChordDispatch(e)))}}class OF extends DF{constructor(e,t){super(t,e)}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return qi.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":qi.toString(e.keyCode)}_getElectronAccelerator(e){return qi.toElectronAccelerator(e.keyCode)}_getUserSettingsLabel(e){if(e.isDuplicateModifierCase())return"";const t=qi.toUserSettingsUS(e.keyCode);return t?t.toLowerCase():t}_getChordDispatch(e){return OF.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=qi.toString(e.keyCode),t}_getSingleModifierChordDispatch(e){return 5!==e.keyCode||e.shiftKey||e.altKey||e.metaKey?4!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey?6!==e.keyCode||e.ctrlKey||e.shiftKey||e.metaKey?57!==e.keyCode||e.ctrlKey||e.shiftKey||e.altKey?null:"meta":"alt":"shift":"ctrl"}static _scanCodeToKeyCode(e){const t=Yi[e];if(-1!==t)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(e){if(!e)return null;if(e instanceof Cr)return e;const t=this._scanCodeToKeyCode(e.scanCode);return 0===t?null:new Cr(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveKeybinding(e,t){const i=yF(e.chords.map((e=>this._toKeyCodeChord(e))));return i.length>0?[new OF(i,t)]:[]}}const xF=id("labelService"),MF=id("progressService");class PF{constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}PF.None=Object.freeze({report(){}});const FF=id("editorProgressService");class BF{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos=0;t--,this._valueLen--){const e=this._value.charCodeAt(t);if(!(47===e||this._splitOnBackslash&&92===e))break}return this.next()}hasNext(){return this._to!1),t=(()=>!1)){return new GF(new UF(e,t))}static forStrings(){return new GF(new BF)}static forConfigKeys(){return new GF(new HF)}constructor(e){this._iter=e}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let n;this._root||(this._root=new VF,this._root.segment=i.value());const o=[];for(n=this._root;;){const e=i.cmp(n.segment);if(e>0)n.left||(n.left=new VF,n.left.segment=i.value()),o.push([-1,n]),n=n.left;else if(e<0)n.right||(n.right=new VF,n.right.segment=i.value()),o.push([1,n]),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new VF,n.mid.segment=i.value()),o.push([0,n]),n=n.mid}}const s=n.value;n.value=t,n.key=e;for(let r=o.length-1;r>=0;r--){const e=o[r][1];e.updateHeight();const t=e.balanceFactor();if(t<-1||t>1){const t=o[r][0],i=o[r+1][0];if(1===t&&1===i)o[r][1]=e.rotateLeft();else if(-1===t&&-1===i)o[r][1]=e.rotateRight();else if(1===t&&-1===i)e.right=o[r+1][1]=o[r+1][1].rotateRight(),o[r][1]=e.rotateLeft();else{if(-1!==t||1!==i)throw new Error;e.left=o[r+1][1]=o[r+1][1].rotateLeft(),o[r][1]=e.rotateRight()}if(r>0)switch(o[r-1][0]){case-1:o[r-1][1].left=o[r][1];break;case 1:o[r-1][1].right=o[r][1];break;case 0:o[r-1][1].mid=o[r][1]}else this._root=o[0][1]}}return s}get(e){var t;return null===(t=this._getNode(e))||void 0===t?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i}has(e){const t=this._getNode(e);return!(void 0===(null==t?void 0:t.value)&&void 0===(null==t?void 0:t.mid))}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var i;const n=this._iter.reset(e),o=[];let s=this._root;for(;s;){const e=n.cmp(s.segment);if(e>0)o.push([-1,s]),s=s.left;else if(e<0)o.push([1,s]),s=s.right;else{if(!n.hasNext())break;n.next(),o.push([0,s]),s=s.mid}}if(s){if(t?(s.left=void 0,s.mid=void 0,s.right=void 0,s.height=1):(s.key=void 0,s.value=void 0),!s.mid&&!s.value)if(s.left&&s.right){const e=this._min(s.right);if(e.key){const{key:t,value:i,segment:n}=e;this._delete(e.key,!1),s.key=t,s.value=i,s.segment=n}}else{const e=null!==(i=s.left)&&void 0!==i?i:s.right;if(o.length>0){const[t,i]=o[o.length-1];switch(t){case-1:i.left=e;break;case 0:i.mid=e;break;case 1:i.right=e}}else this._root=e}for(let e=o.length-1;e>=0;e--){const t=o[e][1];t.updateHeight();const i=t.balanceFactor();if(i>1?(t.right.balanceFactor()>=0||(t.right=t.right.rotateRight()),o[e][1]=t.rotateLeft()):i<-1&&(t.left.balanceFactor()<=0||(t.left=t.left.rotateLeft()),o[e][1]=t.rotateRight()),e>0)switch(o[e-1][0]){case-1:o[e-1][1].left=o[e][1];break;case 1:o[e-1][1].right=o[e][1];break;case 0:o[e-1][1].mid=o[e][1]}else this._root=o[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i,n=this._root;for(;n;){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,t){const i=this._iter.reset(e);let n=this._root;for(;n;){const e=i.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!i.hasNext())return n.mid?this._entries(n.mid):t?n.value:void 0;i.next(),n=n.mid}}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}const zF=id("contextService");function KF(e){const t=e;return"string"==typeof(null==t?void 0:t.id)&&An.isUri(t.uri)}const YF={id:"empty-window"};class qF{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}pe("vs/platform/workspace/common/workspace","codeWorkspace","Code Workspace");const $F="4064f6ec-cb38-4ad0-af64-ee6467e63c82";var jF,XF,JF,QF,ZF,eB,tB,iB;(jF||(jF={})).inspectTokensAction=pe("vs/editor/common/standaloneStrings","inspectTokens","Developer: Inspect Tokens"),(XF||(XF={})).gotoLineActionLabel=pe("vs/editor/common/standaloneStrings","gotoLineActionLabel","Go to Line/Column..."),(JF||(JF={})).helpQuickAccessActionLabel=pe("vs/editor/common/standaloneStrings","helpQuickAccess","Show all Quick Access Providers"),function(e){e.quickCommandActionLabel=pe("vs/editor/common/standaloneStrings","quickCommandActionLabel","Command Palette"),e.quickCommandHelp=pe("vs/editor/common/standaloneStrings","quickCommandActionHelp","Show And Run Commands")}(QF||(QF={})),function(e){e.quickOutlineActionLabel=pe("vs/editor/common/standaloneStrings","quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=pe("vs/editor/common/standaloneStrings","quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(ZF||(ZF={})),function(e){e.editorViewAccessibleLabel=pe("vs/editor/common/standaloneStrings","editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessage=pe("vs/editor/common/standaloneStrings","accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(eB||(eB={})),(tB||(tB={})).toggleHighContrast=pe("vs/editor/common/standaloneStrings","toggleHighContrast","Toggle High Contrast Theme"),(iB||(iB={})).bulkEditServiceSummary=pe("vs/editor/common/standaloneStrings","bulkEditServiceSummary","Made {0} edits in {1} files");const nB=id("workspaceTrustManagementService");let oB=[],sB=[],rB=[];function aB(e,t=!1){!function(e,t,i){const n={id:(o=e).id,mime:o.mime,filename:o.filename,extension:o.extension,filepattern:o.filepattern,firstline:o.firstline,userConfigured:!1,filenameLowercase:o.filename?o.filename.toLowerCase():void 0,extensionLowercase:o.extension?o.extension.toLowerCase():void 0,filepatternLowercase:o.filepattern?dx(o.filepattern.toLowerCase()):void 0,filepatternOnPath:!!o.filepattern&&o.filepattern.indexOf(pn.sep)>=0};var o;oB.push(n),n.userConfigured?rB.push(n):sB.push(n),i&&!n.userConfigured&&oB.forEach((e=>{e.mime===n.mime||e.userConfigured||(n.extension&&e.extension,n.filename&&e.filename,n.filepattern&&e.filepattern,n.firstline&&e.firstline)}))}(e,0,t)}function lB(e,t,i){var n;let o,s,r;for(let a=i.length-1;a>=0;a--){const l=i[a];if(t===l.filenameLowercase){o=l;break}if(l.filepattern&&(!s||l.filepattern.length>s.filepattern.length)){const i=l.filepatternOnPath?e:t;(null===(n=l.filepatternLowercase)||void 0===n?void 0:n.call(l,i))&&(s=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&t.endsWith(l.extensionLowercase)&&(r=l)}return o||s||r||void 0}const cB=Object.prototype.hasOwnProperty,dB="vs.editor.nullLanguage";class hB{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(dB,0),this._register(bg,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||dB}}class uB extends mi{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new Ri),this.onDidChange=this._onDidChange.event,uB.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new hB,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(_g.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){uB.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},oB=oB.filter((e=>e.userConfigured)),sB=[];const e=[].concat(_g.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),dh.as(lg).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;cB.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let n=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),n=t.mimetypes[0]),n||(n=`text/x-${i}`,e.mimetypes.push(n)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)aB({id:i,mime:n,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const l of t.filenames)aB({id:i,mime:n,filename:l},this._warnOnOverwrite),e.filenames.push(l);if(Array.isArray(t.filenamePatterns))for(const l of t.filenamePatterns)aB({id:i,mime:n,filepattern:l},this._warnOnOverwrite);if("string"==typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);"^"!==(o=t).source&&"^$"!==o.source&&"$"!==o.source&&"^\\s*$"!==o.source&&o.exec("")&&0===o.lastIndex||aB({id:i,mime:n,firstline:t},this._warnOnOverwrite)}catch(a){}}var o;e.aliases.push(i);let s=null;if(void 0!==t.aliases&&Array.isArray(t.aliases)&&(s=0===t.aliases.length?[null]:t.aliases),null!==s)for(const l of s)l&&0!==l.length&&e.aliases.push(l);const r=null!==s&&s.length>0;if(r&&null===s[0]);else{const t=(r?s[0]:null)||i;!r&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&cB.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return cB.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&cB.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?function(e,t){return function(e,t){let i;if(e)switch(e.scheme){case Ja.file:i=e.fsPath;break;case Ja.data:i=XI.parseMetaData(e).get(XI.META_DATA_LABEL);break;case Ja.vscodeNotebookCell:i=void 0;break;default:i=e.path}if(!i)return[{id:"unknown",mime:sg.unknown}];i=i.toLowerCase();const n=Sn(i),o=lB(i,n,rB);if(o)return[o,{id:bg,mime:sg.text}];const s=lB(i,n,sB);if(s)return[s,{id:bg,mime:sg.text}];if(t){const e=function(e){if(tr(e)&&(e=e.substr(1)),e.length>0)for(let t=oB.length-1;t>=0;t--){const i=oB[t];if(!i.firstline)continue;const n=e.match(i.firstline);if(n&&n.length>0)return i}}(t);if(e)return[e,{id:bg,mime:sg.text}]}return[{id:"unknown",mime:sg.unknown}]}(e,t).map((e=>e.id))}(e,t):[]}}uB.instanceCount=0;class gB extends mi{constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new Ri),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new Ri),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new Ri({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,gB.instanceCount++,this._registry=this._register(new uB(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){gB.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){return A(this._registry.guessLanguageIdByFilepathOrFirstLine(e,t),null)}createById(e){return new mB(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new mB(this.onDidChange,(()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=bg),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),go.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}gB.instanceCount=0;class mB{constructor(e,t){this._onDidChangeLanguages=e,this._selector=t,this._listener=null,this._emitter=null,this.languageId=this._selector()}_dispose(){this._listener&&(this._listener.dispose(),this._listener=null),this._emitter&&(this._emitter.dispose(),this._emitter=null)}get onDidChange(){return this._listener||(this._listener=this._onDidChangeLanguages((()=>this._evaluate()))),this._emitter||(this._emitter=new Ri({onDidRemoveLastListener:()=>{this._dispose()}})),this._emitter.event}_evaluate(){var e;const t=this._selector();t!==this.languageId&&(this.languageId=t,null===(e=this._emitter)||void 0===e||e.fire(this.languageId))}}const pB={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:sg.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"};let fB=()=>({get delay(){return-1},dispose:()=>{},showHover:()=>{}});const _B=new us((()=>fB("mouse",!1))),bB=new us((()=>fB("element",!1)));function vB(e){return"element"===e?bB.value:_B.value}function SB(){return fB("element",!0)}let CB={showHover:()=>{},hideHover:()=>{},showAndFocusLastHover:()=>{},setupUpdatableHover:()=>null};function EB(){return CB}class wB{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach((n=>n.splice(e,t,i)))}}class TB extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}function yB(e,t){const i=[];for(const n of t){if(e.start>=n.range.end)continue;if(e.end({range:RB(e.range,n),size:e.size}))),r=i.map(((t,i)=>({range:{start:e+i,end:e+i+1},size:t.size})));this.groups=function(...e){return function(e){const t=[];let i=null;for(const n of e){const e=n.range.start,o=n.range.end,s=n.size;i&&s===i.size?i.range.end=o:(i={range:{start:e,end:o},size:s},t.push(i))}return t}(e.reduce(((e,t)=>e.concat(t)),[]))}(o,r,s),this._size=this._paddingTop+this.groups.reduce(((e,t)=>e+t.size*(t.range.end-t.range.start)),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;if(e{for(const i of e)this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null})),this.cache.clear(),this.transactionNodesPendingRemoval.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var AB=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const NB={CurrentDragAndDropData:void 0},kB={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:e=>[e],getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class DB{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class OB{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class xB{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;ti,(null==e?void 0:e.getPosInSet)?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(e,t)=>t+1,(null==e?void 0:e.getRole)?this.getRole=e.getRole.bind(e):this.getRole=e=>"listitem",(null==e?void 0:e.isChecked)?this.isChecked=e.isChecked.bind(e):this.isChecked=e=>{}}}class PB{get contentHeight(){return this.rangeMap.size}get onDidScroll(){return this.scrollableElement.onScroll}get scrollableElementDomNode(){return this.scrollableElement.getDomNode()}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:Vl(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}constructor(e,t,i,n=kB){var o,s,r,a,l,c,d,h,u,g,m,p,f;if(this.virtualDelegate=t,this.domId="list_id_"+ ++PB.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new Br(50),this.splicing=!1,this.dragOverAnimationStopDisposable=mi.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=mi.None,this.onDragLeaveTimeout=mi.None,this.disposables=new gi,this._onDidChangeContentHeight=new Ri,this._onDidChangeContentWidth=new Ri,this.onDidChangeContentHeight=Ci.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,n.horizontalScrolling&&n.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap(null!==(o=n.paddingTop)&&void 0!==o?o:0);for(const _ of i)this.renderers.set(_.templateId,_);this.cache=this.disposables.add(new IB(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!=typeof n.mouseSupport||n.mouseSupport),this._horizontalScrolling=null!==(s=n.horizontalScrolling)&&void 0!==s?s:kB.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom=void 0===n.paddingBottom?0:n.paddingBottom,this.accessibilityProvider=new MB(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",(null!==(r=n.transformOptimization)&&void 0!==r?r:kB.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(sE.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new mE({forceIntegerValues:!0,smoothScrollDuration:null!==(a=n.smoothScrolling)&&void 0!==a&&a?125:0,scheduleAtNextAnimationFrame:e=>kl(gl(this.domNode),e)})),this.scrollableElement=this.disposables.add(new EE(this.rowsContainer,{alwaysConsumeMouseWheel:null!==(l=n.alwaysConsumeMouseWheel)&&void 0!==l?l:kB.alwaysConsumeMouseWheel,horizontal:1,vertical:null!==(c=n.verticalScrollMode)&&void 0!==c?c:kB.verticalScrollMode,useShadows:null!==(d=n.useShadows)&&void 0!==d?d:kB.useShadows,mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity,scrollByPage:n.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add(yl(this.rowsContainer,nE.Change,(e=>this.onTouchChange(e)))),this.disposables.add(yl(this.scrollableElement.getDomNode(),"scroll",(e=>e.target.scrollTop=0))),this.disposables.add(yl(this.domNode,"dragover",(e=>this.onDragOver(this.toDragEvent(e))))),this.disposables.add(yl(this.domNode,"drop",(e=>this.onDrop(this.toDragEvent(e))))),this.disposables.add(yl(this.domNode,"dragleave",(e=>this.onDragLeave(this.toDragEvent(e))))),this.disposables.add(yl(this.domNode,"dragend",(e=>this.onDragEnd(e)))),this.setRowLineHeight=null!==(h=n.setRowLineHeight)&&void 0!==h?h:kB.setRowLineHeight,this.setRowHeight=null!==(u=n.setRowHeight)&&void 0!==u?u:kB.setRowHeight,this.supportDynamicHeights=null!==(g=n.supportDynamicHeights)&&void 0!==g?g:kB.supportDynamicHeights,this.dnd=null!==(m=n.dnd)&&void 0!==m?m:this.disposables.add(kB.dnd),this.layout(null===(p=n.initialSize)||void 0===p?void 0:p.height,null===(f=n.initialSize)||void 0===f?void 0:f.width)}updateOptions(e){let t;if(void 0!==e.paddingBottom&&(this.paddingBottom=e.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.scrollByPage&&(t={...null!=t?t:{},scrollByPage:e.scrollByPage}),void 0!==e.mouseWheelScrollSensitivity&&(t={...null!=t?t:{},mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&(t={...null!=t?t:{},fastScrollSensitivity:e.fastScrollSensitivity}),t&&this.scrollableElement.updateOptions(t),void 0!==e.paddingTop&&e.paddingTop!==this.rangeMap.paddingTop){const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),i=e.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=e.paddingTop,this.render(t,Math.max(0,this.lastRenderTop+i),this.lastRenderHeight,void 0,void 0,!0),this.setScrollTop(this.lastRenderTop),this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.lastRenderTop,this.lastRenderHeight)}}createRangeMap(e){return new LB(e)}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const n=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),o={start:e,end:e+t},s=FP.intersect(n,o),r=new Map;for(let v=s.end-1;v>=s.start;v--){const e=this.items[v];if(e.dragStartDisposable.dispose(),e.checkedDisposable.dispose(),e.row){let t=r.get(e.templateId);t||(t=[],r.set(e.templateId,t));const i=this.renderers.get(e.templateId);i&&i.disposeElement&&i.disposeElement(e.element,v,e.row.templateData,e.size),t.unshift(e.row)}e.row=null,e.stale=!0}const a={start:e+t,end:this.items.length},l=FP.intersect(a,n),c=FP.relativeComplement(a,n),d=i.map((e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:mi.None,checkedDisposable:mi.None,stale:!1})));let h;0===e&&t>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,d),h=this.items,this.items=d):(this.rangeMap.splice(e,t,d),h=this.items.splice(e,t,...d));const u=i.length-t,g=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),m=RB(l,u),p=FP.intersect(g,m);for(let v=p.start;vRB(e,u))),b=[{start:e,end:e+i.length},..._].map((e=>FP.intersect(g,e))).reverse();for(const v of b)for(let e=v.end-1;e>=v.start;e--){const t=this.items[e],i=r.get(t.templateId),n=null==i?void 0:i.pop();this.insertItemInDOM(e,n)}for(const v of r.values())for(const e of v)this.cache.release(e);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),h.map((e=>e.element))}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=kl(gl(this.domNode),(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null})))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger((()=>this.updateScrollWidth())):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)void 0!==t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}get firstVisibleIndex(){return this.getRenderRange(this.lastRenderTop,this.lastRenderHeight).start}element(e){return this.items[e].element}indexOf(e){return this.items.findIndex((t=>t.element===e))}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){const i={height:"number"==typeof e?e:Gl(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),void 0!==t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"==typeof t?t:Vl(this.domNode)})}render(e,t,i,n,o,s=!1){const r=this.getRenderRange(t,i),a=FP.relativeComplement(r,e).reverse(),l=FP.relativeComplement(e,r);if(s){const t=FP.intersect(e,r);for(let e=t.start;e{for(const e of l)for(let t=e.start;t=e.start;t--)this.insertItemInDOM(t)})),void 0!==n&&(this.rowsContainer.style.left=`-${n}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&void 0!==o&&(this.rowsContainer.style.width=`${Math.max(o,this.renderWidth)}px`),this.lastRenderTop=t,this.lastRenderHeight=i}insertItemInDOM(e,t){var i,n,o;const s=this.items[e];if(!s.row)if(t)s.row=t,s.stale=!0;else{const e=this.cache.alloc(s.templateId);s.row=e.row,s.stale||(s.stale=e.isReusingConnectedDomNode)}const r=this.accessibilityProvider.getRole(s.element)||"listitem";s.row.domNode.setAttribute("role",r);const a=this.accessibilityProvider.isChecked(s.element);if("boolean"==typeof a)s.row.domNode.setAttribute("aria-checked",String(!!a));else if(a){const e=e=>s.row.domNode.setAttribute("aria-checked",String(!!e));e(a.value),s.checkedDisposable=a.onDidChange((()=>e(a.value)))}if(s.stale||!s.row.domNode.parentElement){const t=null!==(o=null===(n=null===(i=this.items.at(e+1))||void 0===i?void 0:i.row)||void 0===n?void 0:n.domNode)&&void 0!==o?o:null;s.row.domNode.parentElement===this.rowsContainer&&s.row.domNode.nextElementSibling===t||this.rowsContainer.insertBefore(s.row.domNode,t),s.stale=!1}this.updateItemInDOM(s,e);const l=this.renderers.get(s.templateId);if(!l)throw new Error(`No renderer found for template id ${s.templateId}`);null==l||l.renderElement(s.element,e,s.row.templateData,s.size);const c=this.dnd.getDragURI(s.element);s.dragStartDisposable.dispose(),s.row.domNode.draggable=!!c,c&&(s.dragStartDisposable=yl(s.row.domNode,"dragstart",(e=>this.onDragStart(s.element,c,e)))),this.horizontalScrolling&&(this.measureItemWidth(s),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width="fit-content",e.width=Vl(e.row.domNode);const t=gl(e.row.domNode).getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2==0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.paddingBottom}get onMouseClick(){return Ci.map(this.disposables.add(new AE(this.domNode,"click")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseDblClick(){return Ci.map(this.disposables.add(new AE(this.domNode,"dblclick")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseMiddleClick(){return Ci.filter(Ci.map(this.disposables.add(new AE(this.domNode,"auxclick")).event,(e=>this.toMouseEvent(e)),this.disposables),(e=>1===e.browserEvent.button),this.disposables)}get onMouseDown(){return Ci.map(this.disposables.add(new AE(this.domNode,"mousedown")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOver(){return Ci.map(this.disposables.add(new AE(this.domNode,"mouseover")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOut(){return Ci.map(this.disposables.add(new AE(this.domNode,"mouseout")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onContextMenu(){return Ci.any(Ci.map(this.disposables.add(new AE(this.domNode,"contextmenu")).event,(e=>this.toMouseEvent(e)),this.disposables),Ci.map(this.disposables.add(new AE(this.domNode,nE.Contextmenu)).event,(e=>this.toGestureEvent(e)),this.disposables))}get onTouchStart(){return Ci.map(this.disposables.add(new AE(this.domNode,"touchstart")).event,(e=>this.toTouchEvent(e)),this.disposables)}get onTap(){return Ci.map(this.disposables.add(new AE(this.rowsContainer,nE.Tap)).event,(e=>this.toGestureEvent(e)),this.disposables)}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element,sector:this.getTargetSector(e,t)}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){var n,o;if(!i.dataTransfer)return;const s=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(pB.TEXT,t),i.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(s,i)),void 0===e&&(e=String(s.length));const t=yc(".monaco-drag-image");t.textContent=e;const n=(e=>{for(;e&&!e.classList.contains("monaco-workbench");)e=e.parentElement;return e||this.domNode.ownerDocument})(this.domNode);n.appendChild(t),i.dataTransfer.setDragImage(t,-10,-10),setTimeout((()=>n.removeChild(t)),0)}this.domNode.classList.add("dragging"),this.currentDragData=new DB(s),NB.CurrentDragAndDropData=new OB(s),null===(o=(n=this.dnd).onDragStart)||void 0===o||o.call(n,this.currentDragData,i)}onDragOver(e){var t,i;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),NB.CurrentDragAndDropData&&"vscode-ui"===NB.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(NB.CurrentDragAndDropData)this.currentDragData=NB.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new xB}const n=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.sector,e.browserEvent);if(this.canDrop="boolean"==typeof n?n:n.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let o;e.browserEvent.dataTransfer.dropEffect="boolean"!=typeof n&&0===(null===(t=n.effect)||void 0===t?void 0:t.type)?"copy":"move",o="boolean"!=typeof n&&n.feedback?n.feedback:void 0===e.index?[-1]:[e.index],o=I(o).filter((e=>e>=-1&&ee-t)),o=-1===o[0]?[-1]:o;let s="boolean"!=typeof n&&n.effect&&n.effect.position?n.effect.position:"drop-target";if(r=this.currentDragFeedback,a=o,(Array.isArray(r)&&Array.isArray(a)?b(r,a):r===a)&&this.currentDragFeedbackPosition===s)return!0;var r,a;if(this.currentDragFeedback=o,this.currentDragFeedbackPosition=s,this.currentDragFeedbackDisposable.dispose(),-1===o[0])this.domNode.classList.add(s),this.rowsContainer.classList.add(s),this.currentDragFeedbackDisposable=ui((()=>{this.domNode.classList.remove(s),this.rowsContainer.classList.remove(s)}));else{if(o.length>1&&"drop-target"!==s)throw new Error("Can't use multiple feedbacks with position different than 'over'");"drop-target-after"===s&&o[0]{var e;for(const t of o){const i=this.items[t];i.dropTarget=!1,null===(e=i.row)||void 0===e||e.domNode.classList.remove(s)}}))}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Ur((()=>this.clearDragOverFeedback()),100,this.disposables),this.currentDragData&&(null===(i=(t=this.dnd).onDragLeave)||void 0===i||i.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,NB.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.sector,e.browserEvent))}onDragEnd(e){var t,i;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,NB.CurrentDragAndDropData=void 0,null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=mi.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const e=Bl(this.domNode).top;this.dragOverAnimationDisposable=function(e,t){const i=()=>{t(),n=kl(e,i)};let n=kl(e,i);return ui((()=>n.dispose()))}(gl(this.domNode),this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Ur((()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}),1e3,this.disposables),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(e,t){if(void 0===t)return;const i=e.offsetY/this.items[t].size;return SO(Math.floor(i/.25),0,3)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i);){const e=i.getAttribute("data-index");if(e){const t=Number(e);if(!isNaN(t))return t}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const n=this.getRenderRange(e,t);let o,s;e===this.elementTop(n.start)?(o=n.start,s=0):n.end-n.start>1&&(o=n.start+1,s=this.elementTop(o)-e);let r=0;for(;;){const a=this.getRenderRange(e,t);let l=!1;for(let e=a.start;e=e.start;t--)this.insertItemInDOM(t);for(let e=a.start;ee===t;function BB(e=FB){return(t,i)=>b(t,i,e)}class HB{constructor(e,t,i){this.owner=e,this.debugNameSource=t,this.referenceFn=i}getDebugName(e){return function(e,t){var i;const n=UB.get(e);if(n)return n;const o=function(e,t){const i=UB.get(e);if(i)return i;const n=t.owner?function(e){var t;const i=GB.get(e);if(i)return i;const n=function(e){const t=e.constructor;return t?t.name:"Object"}(e);let o=null!==(t=VB.get(n))&&void 0!==t?t:0;o++,VB.set(n,o);const s=1===o?n:`${n}#${o}`;return GB.set(e,s),s}(t.owner)+".":"";let o;const s=t.debugNameSource;if(void 0!==s){if("function"!=typeof s)return n+s;if(o=s(),void 0!==o)return n+o}const r=t.referenceFn;if(void 0!==r&&(o=zB(r),void 0!==o))return n+o;if(void 0!==t.owner){const i=function(e,t){for(const i in e)if(e[i]===t)return i}(t.owner,e);if(void 0!==i)return n+i}}(e,t);if(o){let t=null!==(i=WB.get(o))&&void 0!==i?i:0;t++,WB.set(o,t);const n=1===t?o:`${o}#${t}`;return UB.set(e,n),n}}(e,this)}}const WB=new Map,UB=new WeakMap,VB=new Map,GB=new WeakMap;function zB(e){const t=e.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),n=i?i[1]:void 0;return null==n?void 0:n.trim()}let KB,YB,qB;class $B{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const i=void 0===t?void 0:e,n=void 0===t?e:t;return YB({owner:i,debugName:()=>{const e=zB(n);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(n.toString());return t?`${this.debugName}.${t[2]}`:i?void 0:`${this.debugName} (mapped)`},debugReferenceFn:n},(e=>n(this.read(e),e)))}recomputeInitiallyAndOnChange(e,t){return e.add(KB(this,t)),this}}class jB extends $B{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function XB(e,t){const i=new ZB(e,t);try{e(i)}finally{i.finish()}}function JB(e){if(qB)e(qB);else{const t=new ZB(e,void 0);qB=t;try{e(t)}finally{t.finish(),qB=void 0}}}function QB(e,t,i){e?t(e):XB(t,i)}class ZB{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[]}getDebugName(){return this._getDebugName?this._getDebugName():zB(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t{}),(()=>`Setting ${this.debugName}`)));try{this._value;this._setValue(e),void 0;for(const e of this.observers)t.updateObserver(e,this),e.handleChange(this,i)}finally{n&&n.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function iH(e,t){let i;return i="string"==typeof e?new HB(void 0,e,void 0):new HB(e,void 0,void 0),new nH(i,t,FB)}class nH extends tH{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){var e;null===(e=this._value)||void 0===e||e.dispose()}}function oH(e,t){return void 0!==t?new lH(new HB(e,void 0,t),t,void 0,void 0,void 0,FB):new lH(new HB(void 0,void 0,e),e,void 0,void 0,void 0,FB)}function sH(e,t){var i;return new lH(new HB(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,null!==(i=e.equalsFn)&&void 0!==i?i:FB)}function rH(e,t){let i,n;void 0===t?(i=e,n=void 0):(n=e,i=t);const o=new gi;return new lH(new HB(n,void 0,i),(e=>(o.clear(),i(e,o))),void 0,void 0,(()=>o.dispose()),FB)}function aH(e,t){let i,n;void 0===t?(i=e,n=void 0):(n=e,i=t);const o=new gi;return new lH(new HB(n,void 0,i),(e=>{o.clear();const t=i(e);return t&&o.add(t),t}),void 0,void 0,(()=>o.dispose()),FB)}YB=sH;class lH extends jB{get debugName(){var e;return null!==(e=this._debugNameData.getDebugName(this))&&void 0!==e?e:"(anonymous)"}constructor(e,t,i,n,o=void 0,s){var r;super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=i,this._handleChange=n,this._handleLastObserverRemoved=o,this._equalityComparator=s,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=null===(r=this.createChangeSummary)||void 0===r?void 0:r.call(this)}onLastObserverRemoved(){var e;this.state=0,this.value=void 0;for(const t of this.dependencies)t.removeObserver(this);this.dependencies.clear(),null===(e=this._handleLastObserverRemoved)||void 0===e||e.call(this)}get(){var e;if(0===this.observers.size){const t=this._computeFn(this,null===(e=this.createChangeSummary)||void 0===e?void 0:e.call(this));return this.onLastObserverRemoved(),t}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){var e;if(3===this.state)return;const t=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=t;const i=0!==this.state,n=this.value;this.state=3;const o=this.changeSummary;this.changeSummary=null===(e=this.createChangeSummary)||void 0===e?void 0:e.call(this);try{this.value=this._computeFn(this,o)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const s=i&&!this._equalityComparator(n,this.value);if(void 0,s)for(const r of this.observers)r.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const i of this.observers)i.handlePossibleChange(this);if(t)for(const i of this.observers)i.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}lh((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const i=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),n=3===this.state;if(i&&(1===this.state||n)&&(this.state=2,n))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}function cH(e){return new gH(new HB(void 0,void 0,e),e,void 0,void 0)}function dH(e,t){var i;return new gH(new HB(e.owner,e.debugName,null!==(i=e.debugReferenceFn)&&void 0!==i?i:t),t,void 0,void 0)}function hH(e,t){var i;return new gH(new HB(e.owner,e.debugName,null!==(i=e.debugReferenceFn)&&void 0!==i?i:t),t,e.createEmptyChangeSummary,e.handleChange)}function uH(e){const t=new gi,i=dH({owner:void 0,debugName:void 0,debugReferenceFn:e},(i=>{t.clear(),e(i,t)}));return ui((()=>{i.dispose(),t.dispose()}))}class gH{get debugName(){var e;return null!==(e=this._debugNameData.getDebugName(this))&&void 0!==e?e:"(anonymous)"}constructor(e,t,i,n){var o;this._debugNameData=e,this._runFn=t,this.createChangeSummary=i,this._handleChange=n,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=null===(o=this.createChangeSummary)||void 0===o?void 0:o.call(this),this._runIfNeeded()}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear()}_runIfNeeded(){var e,t;if(3===this.state)return;const i=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=i,this.state=3;const n=this.disposed;try{if(!n){void 0;const t=this.changeSummary;this.changeSummary=null===(e=this.createChangeSummary)||void 0===e?void 0:e.call(this),this._runFn(this,t)}}finally{n||null===(t=void 0)||void 0===t||t.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,lh((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}function mH(e){return new pH(e)}(cH||(cH={})).Observer=gH;class pH extends $B{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}}function fH(e,t){return new _H(e,t)}class _H extends jB{constructor(e,t){super(),this.event=e,this._getValue=t,this.hasValue=!1,this.handleEvent=e=>{var t;const i=this._getValue(e),n=this.value,o=!this.hasValue||n!==i;let s=!1;o&&(this.value=i,this.hasValue&&(s=!0,QB(_H.globalTransaction,(e=>{for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),s||null===(t=void 0)||void 0===t||t.handleFromEventObservableTriggered(this,{oldValue:n,newValue:i,change:void 0,didChange:o,hadValue:this.hasValue})}}getDebugName(){return zB(this._getValue)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){return this.subscription?(this.hasValue||this.handleEvent(void 0),this.value):this._getValue(void 0)}}function bH(e,t){return new vH(e,t)}!function(e){e.Observer=_H,e.batchEventsGlobally=function(e,t){let i=!1;void 0===_H.globalTransaction&&(_H.globalTransaction=e,i=!0);try{t()}finally{i&&(_H.globalTransaction=void 0)}}}(fH||(fH={}));class vH extends jB{constructor(e,t){super(),this.debugName=e,this.event=t,this.handleEvent=()=>{XB((e=>{for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>this.debugName))}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}}function SH(e){return"string"==typeof e?new CH(e):new CH(void 0,e)}class CH extends jB{get debugName(){var e;return null!==(e=new HB(this._owner,this._debugName,void 0).getDebugName(this))&&void 0!==e?e:"Observable Signal"}constructor(e,t){super(),this._debugName=e,this._owner=t}trigger(e,t){if(e)for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,t);else XB((e=>{this.trigger(e,t)}),(()=>`Trigger signal ${this.debugName}`))}get(){}}function EH(e,t){const i=new wH(!0,t);return e.addObserver(i),t?t(e.get()):e.reportChanges(),ui((()=>{e.removeObserver(i)}))}KB=EH;class wH{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}class TH{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach((e=>e.store.dispose())),this._cache.clear()}setItems(e){const t=[],i=new Set(this._cache.keys());for(const n of e){const e=this._keySelector?this._keySelector(n):n;let o=this._cache.get(e);if(o)i.delete(e);else{const t=new gi;o={out:this._map(n,t),store:t},this._cache.set(e,o)}t.push(o.out)}for(const n of i)this._cache.get(n).store.dispose(),this._cache.delete(n);this._items=t}getItems(){return this._items}}function yH(e,t,i,n){return t||(t=e=>null!=e),new Promise(((o,s)=>{let r=!0,a=!1;const l=e.map((e=>({isFinished:t(e),error:!!i&&i(e),state:e}))),c=cH((e=>{const{isFinished:t,error:i,state:n}=l.read(e);(t||i)&&(r?a=!0:c.dispose(),i?s(!0===i?n:i):o(n))}));if(n){const e=n.onCancellationRequested((()=>{c.dispose(),e.dispose(),s(new ii)}));if(n.isCancellationRequested)return c.dispose(),e.dispose(),void s(new ii)}r=!1,a&&c.dispose()}))}var RH=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class LH{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const n=this.renderedElements.findIndex((e=>e.templateData===i));if(n>=0){const e=this.renderedElements[n];this.trait.unrender(i),e.index=t}else{const e={index:t,templateData:i};this.renderedElements.push(e)}this.trait.renderIndex(t,i)}splice(e,t,i){const n=[];for(const o of this.renderedElements)o.index=e+t&&n.push({index:o.index+i-t,templateData:o.templateData});this.renderedElements=n}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex((t=>t.templateData===e));t<0||this.renderedElements.splice(t,1)}}let IH=class{get name(){return this._trait}get renderer(){return new LH(this)}constructor(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new Ri,this.onChange=this._onChange.event}splice(e,t,i){const n=i.length-t,o=e+t,s=[];let r=0;for(;r=o;)s.push(this.sortedIndexes[r++]+n);this.renderer.splice(e,t,i.length),this._set(s,s)}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(JH),t)}_set(e,t,i){const n=this.indexes,o=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const s=XH(o,e);return this.renderer.renderIndexes(s),this._onChange.fire({indexes:e,browserEvent:i}),n}get(){return this.indexes}contains(e){return v(this.sortedIndexes,e,JH)>=0}dispose(){di(this._onChange)}};RH([iE],IH.prototype,"renderer",null);class AH extends IH{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class NH{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,new Array(i.length).fill(!1));const n=this.trait.get().map((e=>this.identityProvider.getId(this.view.element(e)).toString()));if(0===n.length)return this.trait.splice(e,t,new Array(i.length).fill(!1));const o=new Set(n),s=i.map((e=>o.has(this.identityProvider.getId(e).toString())));this.trait.splice(e,t,s)}}function kH(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function DH(e,t){return!!e.classList.contains(t)||!e.classList.contains("monaco-list")&&!!e.parentElement&&DH(e.parentElement,t)}function OH(e){return DH(e,"monaco-editor")}function xH(e){return DH(e,"monaco-tree-sticky-row")}function MH(e){return e.classList.contains("monaco-tree-sticky-container")}function PH(e){return!!("A"===e.tagName&&e.classList.contains("monaco-button")||"DIV"===e.tagName&&e.classList.contains("monaco-button-dropdown"))||!e.classList.contains("monaco-list")&&!!e.parentElement&&PH(e.parentElement)}class FH{get onKeyDown(){return Ci.chain(this.disposables.add(new AE(this.view.domNode,"keydown")).event,(e=>e.filter((e=>!kH(e.target))).map((e=>new Lr(e)))))}constructor(e,t,i){this.list=e,this.view=t,this.disposables=new gi,this.multipleSelectionDisposables=new gi,this.multipleSelectionSupport=i.multipleSelectionSupport,this.disposables.add(this.onKeyDown((e=>{switch(e.keyCode){case 3:return this.onEnter(e);case 16:return this.onUpArrow(e);case 18:return this.onDownArrow(e);case 11:return this.onPageUpArrow(e);case 12:return this.onPageDownArrow(e);case 9:return this.onEscape(e);case 31:this.multipleSelectionSupport&&(Pe?e.metaKey:e.ctrlKey)&&this.onCtrlA(e)}})))}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionSupport=e.multipleSelectionSupport)}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(N(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}var BH,HH;RH([iE],FH.prototype,"onKeyDown",null),function(e){e[e.Automatic=0]="Automatic",e[e.Trigger=1]="Trigger"}(BH||(BH={})),function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(HH||(HH={}));const WH=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=98&&e.keyCode<=107||e.keyCode>=85&&e.keyCode<=95)}};class UH{constructor(e,t,i,n,o){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=n,this.delegate=o,this.enabled=!1,this.state=HH.Idle,this.mode=BH.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new gi,this.disposables=new gi,this.updateOptions(e.options)}updateOptions(e){var t,i;null===(t=e.typeNavigationEnabled)||void 0===t||t?this.enable():this.disable(),this.mode=null!==(i=e.typeNavigationMode)&&void 0!==i?i:BH.Automatic}enable(){if(this.enabled)return;let e=!1;const t=Ci.chain(this.enabledDisposables.add(new AE(this.view.domNode,"keydown")).event,(t=>t.filter((e=>!kH(e.target))).filter((()=>this.mode===BH.Automatic||this.triggered)).map((e=>new Lr(e))).filter((t=>e||this.keyboardNavigationEventFilter(t))).filter((e=>this.delegate.mightProducePrintableCharacter(e))).forEach((e=>fc(e,!0))).map((e=>e.browserEvent.key)))),i=Ci.debounce(t,(()=>null),800,void 0,void 0,void 0,this.enabledDisposables);Ci.reduce(Ci.any(t,i),((e,t)=>null===t?null:(e||"")+t),void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),i(this.onClear,this,this.enabledDisposables),t((()=>e=!0),void 0,this.enabledDisposables),i((()=>e=!1),void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const i=null===(e=this.list.options.accessibilityProvider)||void 0===e?void 0:e.getAriaLabel(this.list.element(t[0]));"string"==typeof i?L_(i):i&&L_(i.get())}this.previouslyFocused=-1}onInput(e){if(!e)return this.state=HH.Idle,void(this.triggered=!1);const t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===HH.Idle?1:0;this.state=HH.Typing;for(let o=0;o1&&1===n.length)return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}else if(void 0===r||qx(e,r))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class VH{constructor(e,t){this.list=e,this.view=t,this.disposables=new gi;const i=Ci.chain(this.disposables.add(new AE(t.domNode,"keydown")).event,(e=>e.filter((e=>!kH(e.target))).map((e=>new Lr(e)))));Ci.chain(i,(e=>e.filter((e=>!(2!==e.keyCode||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)))))(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(0===t.length)return;const i=this.view.domElement(t[0]);if(!i)return;const n=i.querySelector("[tabIndex]");if(!(n&&n instanceof HTMLElement&&-1!==n.tabIndex))return;const o=gl(n).getComputedStyle(n);"hidden"!==o.visibility&&"none"!==o.display&&(e.preventDefault(),e.stopPropagation(),n.focus())}dispose(){this.disposables.dispose()}}function GH(e){return Pe?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function zH(e){return e.browserEvent.shiftKey}const KH={isSelectionSingleChangeEvent:GH,isSelectionRangeChangeEvent:zH};class YH{constructor(e){this.list=e,this.disposables=new gi,this._onPointer=new Ri,this.onPointer=this._onPointer.event,!1!==e.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||KH),this.mouseSupport=void 0===e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(sE.addTarget(e.getHTMLElement()))),Ci.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||KH))}isSelectionSingleChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}isSelectionRangeChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){OH(e.browserEvent.target)||Xl()!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(kH(e.browserEvent.target)||OH(e.browserEvent.target))return;const t=void 0===e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport)return;if(kH(e.browserEvent.target)||OH(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=e.index;return void 0===t?(this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),void this.list.setAnchor(void 0)):this.isSelectionChangeEvent(e)?this.changeSelection(e):(this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),uc(i=e.browserEvent)&&2===i.button||this.list.setSelection([t],e.browserEvent),void this._onPointer.fire(e));var i}onDoubleClick(e){if(kH(e.browserEvent.target)||OH(e.browserEvent.target))return;if(this.isSelectionChangeEvent(e))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if(void 0===i){const e=this.list.getFocus()[0];i=null!=e?e:t,this.list.setAnchor(i)}const n=N(Math.min(i,t),Math.max(i,t)+1),o=this.list.getSelection(),s=function(e,t){const i=e.indexOf(t);if(-1===i)return[];const n=[];let o=i-1;for(;o>=0&&e[o]===t-(i-o);)n.push(e[o--]);for(n.reverse(),o=i;o=e.length)i.push(t[o++]);else if(o>=t.length)i.push(e[n++]);else{if(e[n]===t[o]){n++,o++;continue}e[n]e!==t));this.list.setFocus([t]),this.list.setAnchor(t),i.length===n.length?this.list.setSelection([...n,t],e.browserEvent):this.list.setSelection(n,e.browserEvent)}}dispose(){this.disposables.dispose()}}class qH{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){var t,i;const n=this.selectorSuffix&&`.${this.selectorSuffix}`,o=[];e.listBackground&&o.push(`.monaco-list${n} .monaco-list-rows { background: ${e.listBackground}; }`),e.listFocusBackground&&(o.push(`.monaco-list${n}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),o.push(`.monaco-list${n}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&o.push(`.monaco-list${n}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(o.push(`.monaco-list${n}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),o.push(`.monaco-list${n}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&o.push(`.monaco-list${n}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&o.push(`.monaco-list${n}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&o.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${n}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }\n\t\t\t`),e.listFocusAndSelectionForeground&&o.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${n}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }\n\t\t\t`),e.listInactiveFocusForeground&&(o.push(`.monaco-list${n} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),o.push(`.monaco-list${n} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&o.push(`.monaco-list${n} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(o.push(`.monaco-list${n} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),o.push(`.monaco-list${n} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(o.push(`.monaco-list${n} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),o.push(`.monaco-list${n} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&o.push(`.monaco-list${n} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&o.push(`.monaco-list${n}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&o.push(`.monaco-list${n}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`);const s=Dc(e.listFocusAndSelectionOutline,Dc(e.listSelectionOutline,null!==(t=e.listFocusOutline)&&void 0!==t?t:""));s&&o.push(`.monaco-list${n}:focus .monaco-list-row.focused.selected { outline: 1px solid ${s}; outline-offset: -1px;}`),e.listFocusOutline&&o.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${n}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t\t.monaco-workbench.context-menu-visible .monaco-list${n}.last-focused .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`);const r=Dc(e.listSelectionOutline,null!==(i=e.listInactiveFocusOutline)&&void 0!==i?i:"");r&&o.push(`.monaco-list${n} .monaco-list-row.focused.selected { outline: 1px dotted ${r}; outline-offset: -1px; }`),e.listSelectionOutline&&o.push(`.monaco-list${n} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listInactiveFocusOutline&&o.push(`.monaco-list${n} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&o.push(`.monaco-list${n} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropOverBackground&&o.push(`\n\t\t\t\t.monaco-list${n}.drop-target,\n\t\t\t\t.monaco-list${n} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${n} .monaco-list-row.drop-target { background-color: ${e.listDropOverBackground} !important; color: inherit !important; }\n\t\t\t`),e.listDropBetweenBackground&&(o.push(`\n\t\t\t.monaco-list${n} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before,\n\t\t\t.monaco-list${n} .monaco-list-row.drop-target-before::before {\n\t\t\t\tcontent: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`),o.push(`\n\t\t\t.monaco-list${n} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after,\n\t\t\t.monaco-list${n} .monaco-list-row.drop-target-after::after {\n\t\t\t\tcontent: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`)),e.tableColumnsBorder&&o.push(`\n\t\t\t\t.monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ${e.tableColumnsBorder};\n\t\t\t\t}\n\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: transparent;\n\t\t\t\t}\n\t\t\t`),e.tableOddRowsBackgroundColor&&o.push(`\n\t\t\t\t.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {\n\t\t\t\t\tbackground-color: ${e.tableOddRowsBackgroundColor};\n\t\t\t\t}\n\t\t\t`),this.styleElement.textContent=o.join("\n")}}const $H={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropOverBackground:"#383B3D",listDropBetweenBackground:"#EEEEEE",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:Kp.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:Kp.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:Kp.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},jH={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}}};function XH(e,t){const i=[];let n=0,o=0;for(;n=e.length)i.push(t[o++]);else if(o>=t.length)i.push(e[n++]);else{if(e[n]===t[o]){i.push(e[n]),n++,o++;continue}e[n]e-t;class QH{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map((t=>t.renderTemplate(e)))}renderElement(e,t,i,n){let o=0;for(const s of this.renderers)s.renderElement(e,t,i[o++],n)}disposeElement(e,t,i,n){var o;let s=0;for(const r of this.renderers)null===(o=r.disposeElement)||void 0===o||o.call(r,e,t,i[s],n),s+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class ZH{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return{container:e,disposables:new gi}}renderElement(e,t,i){const n=this.accessibilityProvider.getAriaLabel(e),o=n&&"string"!=typeof n?n:mH(n);i.disposables.add(cH((e=>{this.setAriaLabel(e.readObservable(o),i.container)})));const s=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"==typeof s?i.container.setAttribute("aria-level",`${s}`):i.container.removeAttribute("aria-level")}setAriaLabel(e,t){e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label")}disposeElement(e,t,i,n){i.disposables.clear()}disposeTemplate(e){e.disposables.dispose()}}class eW{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,e,t)}onDragOver(e,t,i,n,o){return this.dnd.onDragOver(e,t,i,n,o)}onDragLeave(e,t,i,n){var o,s;null===(s=(o=this.dnd).onDragLeave)||void 0===s||s.call(o,e,t,i,n)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}drop(e,t,i,n,o){this.dnd.drop(e,t,i,n,o)}dispose(){this.dnd.dispose()}}class tW{get onDidChangeFocus(){return Ci.map(this.eventBufferer.wrapEvent(this.focus.onChange),(e=>this.toListEvent(e)),this.disposables)}get onDidChangeSelection(){return Ci.map(this.eventBufferer.wrapEvent(this.selection.onChange),(e=>this.toListEvent(e)),this.disposables)}get domId(){return this.view.domId}get onDidScroll(){return this.view.onDidScroll}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onMouseOut(){return this.view.onMouseOut}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=Ci.chain(this.disposables.add(new AE(this.view.domNode,"keydown")).event,(t=>t.map((e=>new Lr(e))).filter((t=>e=58===t.keyCode||t.shiftKey&&68===t.keyCode)).map((e=>fc(e,!0))).filter((()=>!1)))),i=Ci.chain(this.disposables.add(new AE(this.view.domNode,"keyup")).event,(t=>t.forEach((()=>e=!1)).map((e=>new Lr(e))).filter((e=>58===e.keyCode||e.shiftKey&&68===e.keyCode)).map((e=>fc(e,!0))).map((({browserEvent:e})=>{const t=this.getFocus(),i=t.length?t[0]:void 0;return{index:i,element:void 0!==i?this.view.element(i):void 0,anchor:void 0!==i?this.view.domElement(i):this.view.domNode,browserEvent:e}})))),n=Ci.chain(this.view.onContextMenu,(t=>t.filter((t=>!e)).map((({element:e,index:t,browserEvent:i})=>({element:e,index:t,anchor:new kr(gl(this.view.domNode),i),browserEvent:i})))));return Ci.any(t,i,n)}get onKeyDown(){return this.disposables.add(new AE(this.view.domNode,"keydown")).event}get onDidFocus(){return Ci.signal(this.disposables.add(new AE(this.view.domNode,"focus",!0)).event)}get onDidBlur(){return Ci.signal(this.disposables.add(new AE(this.view.domNode,"blur",!0)).event)}constructor(e,t,i,n,o=jH){var s,r,a,l;this.user=e,this._options=o,this.focus=new IH("focused"),this.anchor=new IH("anchor"),this.eventBufferer=new Di,this._ariaLabel="",this.disposables=new gi,this._onDidDispose=new Ri,this.onDidDispose=this._onDidDispose.event;const c=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?null===(s=this._options.accessibilityProvider)||void 0===s?void 0:s.getWidgetRole():"list";this.selection=new AH("listbox"!==c);const d=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=o.accessibilityProvider,this.accessibilityProvider&&(d.push(new ZH(this.accessibilityProvider)),null===(a=(r=this.accessibilityProvider).onDidChangeActiveDescendant)||void 0===a||a.call(r,this.onDidChangeActiveDescendant,this,this.disposables)),n=n.map((e=>new QH(e.templateId,[...d,e])));const h={...o,dnd:o.dnd&&new eW(this,o.dnd)};if(this.view=this.createListView(t,i,n,h),this.view.domNode.setAttribute("role",c),o.styleController)this.styleController=o.styleController(this.view.domId);else{const e=nc(this.view.domNode);this.styleController=new qH(e,this.view.domId)}if(this.spliceable=new wB([new NH(this.focus,this.view,o.identityProvider),new NH(this.selection,this.view,o.identityProvider),new NH(this.anchor,this.view,o.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new VH(this,this.view)),("boolean"!=typeof o.keyboardSupport||o.keyboardSupport)&&(this.keyboardController=new FH(this,this.view,o),this.disposables.add(this.keyboardController)),o.keyboardNavigationLabelProvider){const e=o.keyboardNavigationDelegate||WH;this.typeNavigationController=new UH(this,this.view,o.keyboardNavigationLabelProvider,null!==(l=o.keyboardNavigationEventFilter)&&void 0!==l?l:()=>!0,e),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(o),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}createListView(e,t,i,n){return new PB(e,t,i,n)}createMouseController(e){return new YH(this)}updateOptions(e={}){var t,i;this._options={...this._options,...e},null===(t=this.typeNavigationController)||void 0===t||t.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),null===(i=this.keyboardController)||void 0===i||i.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new TB(this.user,`Invalid start index: ${e}`);if(t<0)throw new TB(this.user,`Invalid delete count: ${t}`);0===t&&0===i.length||this.eventBufferer.bufferEvents((()=>this.spliceable.splice(e,t,i)))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}indexOf(e){return this.view.indexOf(e)}indexAt(e){return this.view.indexAt(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get onDidChangeContentHeight(){return this.view.onDidChangeContentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get firstVisibleIndex(){return this.view.firstVisibleIndex}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const i of e)if(i<0||i>=this.length)throw new TB(this.user,`Invalid index ${i}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map((e=>this.view.element(e)))}setAnchor(e){if(void 0!==e){if(e<0||e>=this.length)throw new TB(this.user,`Invalid index ${e}`);this.anchor.set([e])}else this.anchor.set([])}getAnchor(){return A(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return void 0===e?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new TB(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,n){if(0===this.length)return;const o=this.focus.get(),s=this.findNextIndex(o.length>0?o[0]+e:0,t,n);s>-1&&this.setFocus([s],i)}focusPrevious(e=1,t=!1,i,n){if(0===this.length)return;const o=this.focus.get(),s=this.findPreviousIndex(o.length>0?o[0]-e:0,t,n);s>-1&&this.setFocus([s],i)}async focusNextPage(e,t){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;const n=this.getFocus()[0];if(n!==i&&(void 0===n||i>n)){const o=this.findPreviousIndex(i,!1,t);o>-1&&n!==o?this.setFocus([o],e):this.setFocus([i],e)}else{const o=this.view.getScrollTop();let s=o+this.view.renderHeight;i>n&&(s-=this.view.elementHeight(i)),this.view.setScrollTop(s),this.view.getScrollTop()!==o&&(this.setFocus([]),await Wr(0),await this.focusNextPage(e,t))}}async focusPreviousPage(e,t,i=(()=>0)){let n;const o=i(),s=this.view.getScrollTop()+o;n=0===s?this.view.indexAt(s):this.view.indexAfter(s-1);const r=this.getFocus()[0];if(r!==n&&(void 0===r||r>=n)){const i=this.findNextIndex(n,!1,t);i>-1&&r!==i?this.setFocus([i],e):this.setFocus([n],e)}else{const n=s;this.view.setScrollTop(s-this.view.renderHeight-o),this.view.getScrollTop()+i()!==n&&(this.setFocus([]),await Wr(0),await this.focusPreviousPage(e,t,i))}}focusLast(e,t){if(0===this.length)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(0===this.length)return;const n=this.findNextIndex(e,!1,i);n>-1&&this.setFocus([n],t)}findNextIndex(e,t=!1,i){for(let n=0;n=this.length&&!t)return-1;if(e%=this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let n=0;nthis.view.element(e)))}reveal(e,t,i=0){if(e<0||e>=this.length)throw new TB(this.user,`Invalid index ${e}`);const n=this.view.getScrollTop(),o=this.view.elementTop(e),s=this.view.elementHeight(e);if(X(t)){const e=s-this.view.renderHeight+i;this.view.setScrollTop(e*SO(t,0,1)+o-i)}else{const e=o+s,t=n+this.view.renderHeight;o=t||(o=t&&s>=this.view.renderHeight?this.view.setScrollTop(o-i):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getRelativeTop(e,t=0){if(e<0||e>=this.length)throw new TB(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),n=this.view.elementTop(e),o=this.view.elementHeight(e);if(ni+this.view.renderHeight)return null;const s=o-this.view.renderHeight+t;return Math.abs((i+t-n)/s)}getHTMLElement(){return this.view.domNode}getScrollableElement(){return this.view.scrollableElementDomNode}getElementID(e){return this.view.getElementDomId(e)}getElementTop(e){return this.view.elementTop(e)}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map((e=>this.view.element(e))),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let i;(null===(e=this.accessibilityProvider)||void 0===e?void 0:e.getActiveDescendantId)&&(i=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",i||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}RH([iE],tW.prototype,"onDidChangeFocus",null),RH([iE],tW.prototype,"onDidChangeSelection",null),RH([iE],tW.prototype,"onContextMenu",null),RH([iE],tW.prototype,"onKeyDown",null),RH([iE],tW.prototype,"onDidFocus",null),RH([iE],tW.prototype,"onDidBlur",null);const iW=yc,nW="selectOption.entry.template";class oW{get templateId(){return nW}renderTemplate(e){const t=Object.create(null);return t.root=e,t.text=vc(e,iW(".option-text")),t.detail=vc(e,iW(".option-detail")),t.decoratorRight=vc(e,iW(".option-decorator-right")),t}renderElement(e,t,i){const n=i,o=e.text,s=e.detail,r=e.decoratorRight,a=e.isDisabled;n.text.textContent=o,n.detail.textContent=s||"",n.decoratorRight.innerText=r||"",a?n.root.classList.add("option-disabled"):n.root.classList.remove("option-disabled")}disposeTemplate(e){}}class sW extends mi{constructor(e,t,i,n,o){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=n,this.selectBoxOptions=o||Object.create(null),"number"!=typeof this.selectBoxOptions.minBottomMargin?this.selectBoxOptions.minBottomMargin=sW.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding","string"==typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"==typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=new Ri,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(i),this.selected=t||0,e&&this.setOptions(e,t),this.initStyleSheet()}setTitle(e){!this._hover&&e?this._hover=this._register(EB().setupUpdatableHover(vB("mouse"),this.selectElement,e)):this._hover&&this._hover.update(e)}getHeight(){return 22}getTemplateId(){return nW}constructSelectDropDown(e){this.contextViewProvider=e,this.selectDropDownContainer=yc(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=vc(this.selectDropDownContainer,iW(".select-box-details-pane"));const t=vc(this.selectDropDownContainer,iW(".select-box-dropdown-container-width-control")),i=vc(t,iW(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",vc(i,this.widthControlElement),this._dropDownPosition=0,this.styleElement=nc(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(yl(this.selectDropDownContainer,mc.DRAG_START,(e=>{fc(e,!0)})))}registerListeners(){let e;this._register(Ll(this.selectElement,"change",(e=>{this.selected=e.target.selectedIndex,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}))),this._register(yl(this.selectElement,mc.CLICK,(e=>{fc(e),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(yl(this.selectElement,mc.MOUSE_DOWN,(e=>{fc(e)}))),this._register(yl(this.selectElement,"touchstart",(t=>{e=this._isVisible}))),this._register(yl(this.selectElement,"touchend",(t=>{fc(t),e?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(yl(this.selectElement,mc.KEY_DOWN,(e=>{const t=new Lr(e);let i=!1;Pe?18!==t.keyCode&&16!==t.keyCode&&10!==t.keyCode&&3!==t.keyCode||(i=!0):(18===t.keyCode&&t.altKey||16===t.keyCode&&t.altKey||10===t.keyCode||3===t.keyCode)&&(i=!0),i&&(this.showSelectDropDown(),fc(e,!0))})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){b(this.options,e)||(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled)),"string"==typeof e.description&&(this._hasDetails=!0)}))),void 0!==t&&(this.select(t),this._currentSelection=this.selected)}setOptionsList(){var e;null===(e=this.selectList)||void 0===e||e.splice(0,this.selectList.length,this.options)}select(e){e>=0&&ethis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){this.container=e,e.classList.add("select-container"),e.appendChild(this.selectElement),this.styleSelectElement()}initStyleSheet(){const e=[];this.styles.listFocusBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.styles.listFocusBackground} !important; }`),this.styles.listFocusForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { color: ${this.styles.listFocusForeground} !important; }`),this.styles.decoratorRightForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.focused) .option-decorator-right { color: ${this.styles.decoratorRightForeground}; }`),this.styles.selectBackground&&this.styles.selectBorder&&this.styles.selectBorder!==this.styles.selectBackground?(e.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { color: ${this.styles.listHoverForeground} !important; }`),this.styles.listHoverBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.styles.listHoverBackground} !important; }`),this.styles.listFocusOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.styles.listFocusOutline} !important; outline-offset: -1.6px !important; }`),this.styles.listHoverOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { outline: 1.6px dashed ${this.styles.listHoverOutline} !important; outline-offset: -1.6px !important; }`),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled.focused { background-color: transparent !important; color: inherit !important; outline: none !important; }"),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: transparent !important; color: inherit !important; outline: none !important; }"),this.styleElement.textContent=e.join("\n")}styleSelectElement(){var e,t,i;const n=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",o=null!==(t=this.styles.selectForeground)&&void 0!==t?t:"",s=null!==(i=this.styles.selectBorder)&&void 0!==i?i:"";this.selectElement.style.backgroundColor=n,this.selectElement.style.color=o,this.selectElement.style.borderColor=s}styleList(){var e,t;const i=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",n=Dc(this.styles.selectListBackground,i);this.selectDropDownListContainer.style.backgroundColor=n,this.selectionDetailsPane.style.backgroundColor=n;const o=null!==(t=this.styles.focusBorder)&&void 0!==t?t:"";this.selectDropDownContainer.style.outlineColor=o,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(e,t,i){const n=document.createElement("option");return n.value=e,n.text=e,n.disabled=!!i,n}showSelectDropDown(){this.selectionDetailsPane.innerText="",this.contextViewProvider&&!this._isVisible&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(e){this.contextViewProvider&&this._isVisible&&(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),e&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(e,t){return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(t),{dispose:()=>{try{e.removeChild(this.selectDropDownContainer)}catch(sue){}}}}measureMaxDetailsHeight(){let e=0;return this.options.forEach(((t,i)=>{this.updateDetail(i),this.selectionDetailsPane.offsetHeight>e&&(e=this.selectionDetailsPane.offsetHeight)})),e}layoutSelectDropDown(e){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const t=gl(this.selectElement),i=Hl(this.selectElement),n=gl(this.selectElement).getComputedStyle(this.selectElement),o=parseFloat(n.getPropertyValue("--dropdown-padding-top"))+parseFloat(n.getPropertyValue("--dropdown-padding-bottom")),s=t.innerHeight-i.top-i.height-(this.selectBoxOptions.minBottomMargin||0),r=i.top-sW.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,a=this.selectElement.offsetWidth,l=this.setWidthControlElement(this.widthControlElement),c=Math.max(l,Math.round(a)).toString()+"px";this.selectDropDownContainer.style.width=c,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let d=this.selectList.contentHeight;this._hasDetails&&void 0===this._cachedMaxDetailsHeight&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());const h=this._hasDetails?this._cachedMaxDetailsHeight:0,u=d+o+h,g=Math.floor((s-o-h)/this.getHeight()),m=Math.floor((r-o-h)/this.getHeight());if(e)return!(i.top+i.height>t.innerHeight-22||i.topg&&this.options.length>g?(this._dropDownPosition=1,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetailsPane.classList.remove("border-top"),this.selectionDetailsPane.classList.add("border-bottom")):(this._dropDownPosition=0,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),0));if(i.top+i.height>t.innerHeight-22||i.tops&&(d=g*this.getHeight())}else u>r&&(d=m*this.getHeight());return this.selectList.layout(d),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=d+o+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=d+o+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=c,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}return!1}setWidthControlElement(e){let t=0;if(e){let i=0,n=0;this.options.forEach(((e,t)=>{const o=e.detail?e.detail.length:0,s=e.decoratorRight?e.decoratorRight.length:0,r=e.text.length+o+s;r>n&&(i=t,n=r)})),e.textContent=this.options[i].text+(this.options[i].decoratorRight?this.options[i].decoratorRight+" ":""),t=Ul(e)}return t}createSelectList(e){if(this.selectList)return;this.selectDropDownListContainer=vc(e,iW(".select-box-dropdown-list-container")),this.listRenderer=new oW,this.selectList=new tW("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:e=>{let t=e.text;return e.detail&&(t+=`. ${e.detail}`),e.decoratorRight&&(t+=`. ${e.decoratorRight}`),e.description&&(t+=`. ${e.description}`),t},getWidgetAriaLabel:()=>pe("vs/base/browser/ui/selectBox/selectBoxCustom",{key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>Pe?"":"option",getWidgetRole:()=>"listbox"}}),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);const t=this._register(new AE(this.selectDropDownListContainer,"keydown")),i=Ci.chain(t.event,(e=>e.filter((()=>this.selectList.length>0)).map((e=>new Lr(e)))));this._register(Ci.chain(i,(e=>e.filter((e=>3===e.keyCode))))(this.onEnter,this)),this._register(Ci.chain(i,(e=>e.filter((e=>2===e.keyCode))))(this.onEnter,this)),this._register(Ci.chain(i,(e=>e.filter((e=>9===e.keyCode))))(this.onEscape,this)),this._register(Ci.chain(i,(e=>e.filter((e=>16===e.keyCode))))(this.onUpArrow,this)),this._register(Ci.chain(i,(e=>e.filter((e=>18===e.keyCode))))(this.onDownArrow,this)),this._register(Ci.chain(i,(e=>e.filter((e=>12===e.keyCode))))(this.onPageDown,this)),this._register(Ci.chain(i,(e=>e.filter((e=>11===e.keyCode))))(this.onPageUp,this)),this._register(Ci.chain(i,(e=>e.filter((e=>14===e.keyCode))))(this.onHome,this)),this._register(Ci.chain(i,(e=>e.filter((e=>13===e.keyCode))))(this.onEnd,this)),this._register(Ci.chain(i,(e=>e.filter((e=>e.keyCode>=21&&e.keyCode<=56||e.keyCode>=85&&e.keyCode<=113))))(this.onCharacter,this)),this._register(yl(this.selectList.getHTMLElement(),mc.POINTER_UP,(e=>this.onPointerUp(e)))),this._register(this.selectList.onMouseOver((e=>void 0!==e.index&&this.selectList.setFocus([e.index])))),this._register(this.selectList.onDidChangeFocus((e=>this.onListFocus(e)))),this._register(yl(this.selectDropDownContainer,mc.FOCUS_OUT,(e=>{this._isVisible&&!Kl(e.relatedTarget,this.selectDropDownContainer)&&this.onListBlur()}))),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onPointerUp(e){if(!this.selectList.length)return;fc(e);const t=e.target;if(!t)return;if(t.classList.contains("slider"))return;const i=t.closest(".monaco-list-row");if(!i)return;const n=Number(i.getAttribute("data-index")),o=i.classList.contains("option-disabled");n>=0&&n{for(let t=0;tthis.selected+2)this.selected+=2;else{if(t)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(e){this.selected>0&&(fc(e,!0),this.options[this.selected-1].isDisabled&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]))}onPageUp(e){fc(e),this.selectList.focusPreviousPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected>0&&(this.selected--,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onHome(e){fc(e),this.options.length<2||(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onEnd(e){fc(e),this.options.length<2||(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onCharacter(e){const t=qi.toString(e.keyCode);let i=-1;for(let n=0;n{this._register(yl(this.selectElement,e,(e=>{this.selectElement.focus()})))})),this._register(Ll(this.selectElement,"click",(e=>{fc(e,!0)}))),this._register(Ll(this.selectElement,"change",(e=>{this.selectElement.title=e.target.value,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value})}))),this._register(Ll(this.selectElement,"keydown",(e=>{let t=!1;Pe?18!==e.keyCode&&16!==e.keyCode&&10!==e.keyCode||(t=!0):(18===e.keyCode&&e.altKey||10===e.keyCode||3===e.keyCode)&&(t=!0),t&&e.stopPropagation()})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){this.options&&b(this.options,e)||(this.options=e,this.selectElement.options.length=0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled))}))),void 0!==t&&this.select(t)}select(e){0===this.options.length?this.selected=0:e>=0&&ethis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected{this.element&&this.handleActionChangeEvent(e)})))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new ad)),this._actionRunner}set actionRunner(e){this._actionRunner=e}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(sE.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,hr&&this._register(yl(e,mc.DRAG_START,(e=>{var t;return null===(t=e.dataTransfer)||void 0===t?void 0:t.setData(pB.TEXT,this._action.label)})))),this._register(yl(t,nE.Tap,(e=>this.onClick(e,!0)))),this._register(yl(t,mc.MOUSE_DOWN,(e=>{i||fc(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")}))),Pe&&this._register(yl(t,mc.CONTEXT_MENU,(e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)}))),this._register(yl(t,mc.CLICK,(e=>{fc(e,!0),this.options&&this.options.isMenu||this.onClick(e)}))),this._register(yl(t,mc.DBLCLICK,(e=>{fc(e,!0)}))),[mc.MOUSE_UP,mc.MOUSE_OUT].forEach((e=>{this._register(yl(t,e,(e=>{fc(e),t.classList.remove("active")})))}))}onClick(e,t=!1){var i;fc(e,!0);const n=te(this._context)?(null===(i=this.options)||void 0===i?void 0:i.useEventAsContext)?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,n)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getClass(){return this.action.class}getTooltip(){return this.action.tooltip}updateTooltip(){var e,t,i;if(!this.element)return;const n=null!==(e=this.getTooltip())&&void 0!==e?e:"";if(this.updateAriaLabel(),null===(t=this.options.hoverDelegate)||void 0===t?void 0:t.showNativeHover)this.element.title=n;else if(this.customHover||""===n)this.customHover&&this.customHover.update(n);else{const e=null!==(i=this.options.hoverDelegate)&&void 0!==i?i:vB("element");this.customHover=this._store.add(EB().setupUpdatableHover(e,this.element,n))}}updateAriaLabel(){var e;if(this.element){const t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.element.setAttribute("aria-label",t)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}}class cW extends lW{constructor(e,t,i){super(e,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass=""}render(e){super.render(e),ie(this.element);const t=document.createElement("a");if(t.classList.add("action-label"),t.setAttribute("role",this.getDefaultAriaRole()),this.label=t,this.element.appendChild(t),this.options.label&&this.options.keybinding){const e=document.createElement("span");e.classList.add("keybinding"),e.textContent=this.options.keybinding,this.element.appendChild(e)}this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}getDefaultAriaRole(){return this._action.id===ld.ID?"presentation":this.options.isMenu?"menuitem":"button"}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.action.label)}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:!this.options.label&&this.action.label&&this.options.icon&&(e=this.action.label,this.options.keybinding&&(e=pe("vs/base/browser/ui/actionbar/actionViewItems",{key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),null!=e?e:void 0}updateClass(){var e;this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getClass(),this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):null===(e=this.label)||void 0===e||e.classList.remove("codicon")}updateEnabled(){var e,t;this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),null===(e=this.element)||void 0===e||e.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),null===(t=this.element)||void 0===t||t.classList.add("disabled"))}updateAriaLabel(){var e;if(this.label){const t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.label.setAttribute("aria-label",t)}}updateChecked(){this.label&&(void 0!==this.action.checked?(this.label.classList.toggle("checked",this.action.checked),this.label.setAttribute("aria-checked",this.action.checked?"true":"false"),this.label.setAttribute("role","checkbox")):(this.label.classList.remove("checked"),this.label.removeAttribute("aria-checked"),this.label.setAttribute("role",this.getDefaultAriaRole())))}}class dW extends lW{constructor(e,t,i,n,o,s,r){super(e,t),this.selectBox=new aW(i,n,o,s,r),this.selectBox.setFocusable(!1),this._register(this.selectBox),this.registerListeners()}select(e){this.selectBox.select(e)}registerListeners(){this._register(this.selectBox.onDidSelect((e=>this.runAction(e.selected,e.index))))}runAction(e,t){this.actionRunner.run(this._action,this.getActionContext(e,t))}getActionContext(e,t){return e}setFocusable(e){this.selectBox.setFocusable(e)}focus(){var e;null===(e=this.selectBox)||void 0===e||e.focus()}blur(){var e;null===(e=this.selectBox)||void 0===e||e.blur()}render(e){this.selectBox.render(e)}}class hW extends ad{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new Ri),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=vc(e,yc(".monaco-dropdown")),this._label=vc(this._element,yc(".dropdown-label"));let i=t.labelRenderer;i||(i=e=>(e.textContent=t.label||"",null));for(const o of[mc.CLICK,mc.MOUSE_DOWN,nE.Tap])this._register(yl(this.element,o,(e=>fc(e,!0))));for(const o of[mc.MOUSE_DOWN,nE.Tap])this._register(yl(this._label,o,(e=>{uc(e)&&(e.detail>1||0!==e.button)||(this.visible?this.hide():this.show())})));this._register(yl(this._label,mc.KEY_UP,(e=>{const t=new Lr(e);(t.equals(3)||t.equals(10))&&(fc(e,!0),this.visible?this.hide():this.show())})));const n=i(this._label);n&&this._register(n),this._register(sE.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class uW extends hW{constructor(e,t){super(e,t),this._options=t,this._actions=[],this.actions=t.actions||[]}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this._options.actionProvider?this._options.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._options.contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(e,t)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e,t):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this._options.menuClassName||"",onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this._options.menuAsChild?this.element:void 0,skipTelemetry:this._options.skipTelemetry})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}class gW extends lW{constructor(e,t,i,n=Object.create(null)){super(null,e,n),this.actionItem=null,this._onDidChangeVisibility=this._register(new Ri),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=n,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=Array.isArray(this.menuActionsOrProvider),i={contextMenuProvider:this.contextMenuProvider,labelRenderer:e=>{var t;this.element=vc(e,yc("a.action-label"));let i=[];return"string"==typeof this.options.classNames?i=this.options.classNames.split(/\s+/g).filter((e=>!!e)):this.options.classNames&&(i=this.options.classNames),i.find((e=>"icon"===e))||i.push("codicon"),this.element.classList.add(...i),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this._action.label&&this._register(EB().setupUpdatableHover(null!==(t=this.options.hoverDelegate)&&void 0!==t?t:vB("mouse"),this.element,this._action.label)),this.element.ariaLabel=this._action.label||"",null},menuAsChild:this.options.menuAsChild,actions:t?this.menuActionsOrProvider:void 0,actionProvider:t?void 0:this.menuActionsOrProvider,skipTelemetry:this.options.skipTelemetry};if(this.dropdownMenu=this._register(new uW(e,i)),this._register(this.dropdownMenu.onDidChangeVisibility((e=>{var t;null===(t=this.element)||void 0===t||t.setAttribute("aria-expanded",`${e}`),this._onDidChangeVisibility.fire(e)}))),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const e=this;this.dropdownMenu.menuOptions={...this.dropdownMenu.menuOptions,get anchorAlignment(){return e.options.anchorAlignmentProvider()}}}this.updateTooltip(),this.updateEnabled()}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:this.action.label&&(e=this.action.label),null!=e?e:void 0}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}show(){var e;null===(e=this.dropdownMenu)||void 0===e||e.show()}updateEnabled(){var e,t;const i=!this.action.enabled;null===(e=this.actionItem)||void 0===e||e.classList.toggle("disabled",i),null===(t=this.element)||void 0===t||t.classList.toggle("disabled",i)}}var mW,pW;!function(e){e[e.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",e[e.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"}(mW||(mW={})),function(e){e[e.None=0]="None",e[e.Initialized=1]="Initialized",e[e.Closed=2]="Closed"}(pW||(pW={}));class fW extends mi{constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new Ii),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=pW.None,this.cache=new Map,this.flushDelayer=this._register(new Hr(fW.DEFAULT_FLUSH_DELAY)),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal((e=>this.onDidChangeItemsExternal(e))))}onDidChangeItemsExternal(e){var t,i;this._onDidChangeStorage.pause();try{null===(t=e.changed)||void 0===t||t.forEach(((e,t)=>this.acceptExternal(t,e))),null===(i=e.deleted)||void 0===i||i.forEach((e=>this.acceptExternal(e,void 0)))}finally{this._onDidChangeStorage.resume()}}acceptExternal(e,t){if(this.state===pW.Closed)return;let i=!1;te(t)?i=this.cache.delete(e):this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0),i&&this._onDidChangeStorage.fire({key:e,external:!0})}get(e,t){const i=this.cache.get(e);return te(i)?t:i}getBoolean(e,t){const i=this.get(e);return te(i)?t:"true"===i}getNumber(e,t){const i=this.get(e);return te(i)?t:parseInt(i,10)}async set(e,t,i=!1){if(this.state===pW.Closed)return;if(te(t))return this.delete(e,i);const n=$(t)||Array.isArray(t)?(o=t,JSON.stringify(o,iP)):String(t);var o;return this.cache.get(e)!==n?(this.cache.set(e,n),this.pendingInserts.set(e,n),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire({key:e,external:i}),this.doFlush()):void 0}async delete(e,t=!1){if(this.state!==pW.Closed)return this.cache.delete(e)?(this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire({key:e,external:t}),this.doFlush()):void 0}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally((()=>{var e;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)null===(e=this.whenFlushedCallbacks.pop())||void 0===e||e()}))}async doFlush(e){return this.options.hint===mW.STORAGE_IN_MEMORY?this.flushPending():this.flushDelayer.trigger((()=>this.flushPending()),e)}}fW.DEFAULT_FLUSH_DELAY=100;class _W{constructor(){this.onDidChangeItemsExternal=Ci.None,this.items=new Map}async updateItems(e){var t,i;null===(t=e.insert)||void 0===t||t.forEach(((e,t)=>this.items.set(t,e))),null===(i=e.delete)||void 0===i||i.forEach((e=>this.items.delete(e)))}}const bW="__$__targetStorageMarker",vW=id("storageService");var SW;!function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(SW||(SW={}));class CW extends mi{constructor(e={flushInterval:CW.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new Ii),this._onDidChangeTarget=this._register(new Ii),this._onWillSaveState=this._register(new Ri),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(e,t,i){return Ci.filter(this._onDidChangeValue.event,(i=>i.scope===e&&(void 0===t||i.key===t)),i)}emitDidChangeValue(e,t){const{key:i,external:n}=t;if(i===bW){switch(e){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:i,target:this.getKeyTargets(e)[i],external:n})}get(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.get(e,i)}getBoolean(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getBoolean(e,i)}getNumber(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getNumber(e,i)}store(e,t,i,n,o=!1){te(t)?this.remove(e,i,o):this.withPausedEmitters((()=>{var s;this.updateKeyTarget(e,i,n),null===(s=this.getStorage(i))||void 0===s||s.set(e,t,o)}))}remove(e,t,i=!1){this.withPausedEmitters((()=>{var n;this.updateKeyTarget(e,t,void 0),null===(n=this.getStorage(t))||void 0===n||n.delete(e,i)}))}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i,n=!1){var o,s;const r=this.getKeyTargets(t);"number"==typeof i?r[e]!==i&&(r[e]=i,null===(o=this.getStorage(t))||void 0===o||o.set(bW,JSON.stringify(r),n)):"number"==typeof r[e]&&(delete r[e],null===(s=this.getStorage(t))||void 0===s||s.set(bW,JSON.stringify(r),n))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(e){switch(e){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){const t=this.getStorage(e);return t?function(e){const t=e.get(bW);if(t)try{return JSON.parse(t)}catch(i){}return Object.create(null)}(t):Object.create(null)}}CW.DEFAULT_FLUSH_INTERVAL=6e4;const EW={keybindingLabelBackground:Z_(hS),keybindingLabelForeground:Z_(uS),keybindingLabelBorder:Z_(gS),keybindingLabelBottomBorder:Z_(mS),keybindingLabelShadow:Z_(av)},wW={buttonForeground:Z_(eS),buttonSeparator:Z_(tS),buttonBackground:Z_(iS),buttonHoverBackground:Z_(nS),buttonSecondaryForeground:Z_(sS),buttonSecondaryBackground:Z_(rS),buttonSecondaryHoverBackground:Z_(aS),buttonBorder:Z_(oS)},TW={progressBarBackground:Z_(Tb)},yW={inputActiveOptionBorder:Z_(Bv),inputActiveOptionForeground:Z_(Wv),inputActiveOptionBackground:Z_(Hv)};Z_(lS),Z_(dS),Z_(cS),Z_(Lb),Z_(Ib),Z_(av),Z_(pb),Z_(Tv),Z_(yv),Z_(Rv),Z_(_b);const RW={inputBackground:Z_(Mv),inputForeground:Z_(Pv),inputBorder:Z_(Fv),inputValidationInfoBorder:Z_(Gv),inputValidationInfoBackground:Z_(Uv),inputValidationInfoForeground:Z_(Vv),inputValidationWarningBorder:Z_(Yv),inputValidationWarningBackground:Z_(zv),inputValidationWarningForeground:Z_(Kv),inputValidationErrorBorder:Z_(jv),inputValidationErrorBackground:Z_(qv),inputValidationErrorForeground:Z_($v)},LW={listFilterWidgetBackground:Z_(MS),listFilterWidgetOutline:Z_(PS),listFilterWidgetNoMatchesOutline:Z_(FS),listFilterWidgetShadow:Z_(BS),inputBoxStyles:RW,toggleStyles:yW},IW={badgeBackground:Z_(bb),badgeForeground:Z_(vb),badgeBorder:Z_(pb)};Z_(hv),Z_(dv),Z_(uv),Z_(uv),Z_(gv);const AW={listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:Z_(pS),listFocusForeground:Z_(fS),listFocusOutline:Z_(_S),listActiveSelectionBackground:Z_(vS),listActiveSelectionForeground:Z_(SS),listActiveSelectionIconForeground:Z_(CS),listFocusAndSelectionOutline:Z_(bS),listFocusAndSelectionBackground:Z_(vS),listFocusAndSelectionForeground:Z_(SS),listInactiveSelectionBackground:Z_(ES),listInactiveSelectionIconForeground:Z_(TS),listInactiveSelectionForeground:Z_(wS),listInactiveFocusBackground:Z_(yS),listInactiveFocusOutline:Z_(RS),listHoverBackground:Z_(LS),listHoverForeground:Z_(IS),listDropOverBackground:Z_(AS),listDropBetweenBackground:Z_(NS),listSelectionOutline:Z_(fb),listHoverOutline:Z_(fb),treeIndentGuidesStroke:Z_(HS),treeInactiveIndentGuidesStroke:Z_(WS),treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0,tableColumnsBorder:Z_(US),tableOddRowsBackgroundColor:Z_(VS)};function NW(e){return function(e,t){const i={...AW};for(const n in e){const t=e[n];i[n]=void 0!==t?Z_(t):void 0}return i}(e)}const kW={selectBackground:Z_(Xv),selectListBackground:Z_(Jv),selectForeground:Z_(Qv),decoratorRightForeground:Z_(ZS),selectBorder:Z_(Zv),focusBorder:Z_(mb),listFocusBackground:Z_(oC),listInactiveSelectionIconForeground:Z_(nC),listFocusForeground:Z_(iC),listFocusOutline:(DW=fb,OW=Kp.transparent.toString(),`var(${Q_(DW)}, ${OW})`),listHoverBackground:Z_(LS),listHoverForeground:Z_(IS),listHoverOutline:Z_(fb),selectListBorder:Z_(Ab),listBackground:void 0,listActiveSelectionBackground:void 0,listActiveSelectionForeground:void 0,listActiveSelectionIconForeground:void 0,listFocusAndSelectionBackground:void 0,listDropOverBackground:void 0,listDropBetweenBackground:void 0,listInactiveSelectionBackground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusBackground:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listFocusAndSelectionForeground:void 0,listFocusAndSelectionOutline:void 0,listInactiveFocusForeground:void 0,tableColumnsBorder:void 0,tableOddRowsBackgroundColor:void 0,treeIndentGuidesStroke:void 0,treeInactiveIndentGuidesStroke:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0};var DW,OW;const xW={shadowColor:Z_(av),borderColor:Z_(GS),foregroundColor:Z_(zS),backgroundColor:Z_(KS),selectionForegroundColor:Z_(YS),selectionBackgroundColor:Z_(qS),selectionBorderColor:Z_($S),separatorColor:Z_(jS),scrollbarShadow:Z_(Sb),scrollbarSliderBackground:Z_(Cb),scrollbarSliderHoverBackground:Z_(Eb),scrollbarSliderActiveBackground:Z_(wb)};var MW=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},PW=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};function FW(e,t,i,n,o,s){BW(e.getActions(t),i,!1,"string"==typeof n?e=>e===n:n,o,s)}function BW(e,t,i,n=(e=>"navigation"===e),o=(()=>!1),s=!1){let r,a;Array.isArray(t)?(r=t,a=t):(r=t.primary,a=t.secondary);const l=new Set;for(const[c,d]of e){let e;n(c)?(e=r,e.length>0&&s&&e.push(new ld)):(e=a,e.length>0&&e.push(new ld));for(let t of d){i&&(t=t instanceof wh&&t.alt?t.alt:t);const n=e.push(t);t instanceof cd&&l.add({group:c,action:t,index:n-1})}}for(const{group:c,action:d,index:h}of l){const e=n(c)?r:a,t=d.actions;o(d,c,e.length)&&e.splice(h,1,...t)}}let HW=class extends cW{constructor(e,t,i,n,o,s,r,a){super(void 0,e,{icon:!(!e.class&&!e.item.icon),label:!e.class&&!e.item.icon,draggable:null==t?void 0:t.draggable,keybinding:null==t?void 0:t.keybinding,hoverDelegate:null==t?void 0:t.hoverDelegate}),this._keybindingService=i,this._notificationService=n,this._contextKeyService=o,this._themeService=s,this._contextMenuService=r,this._accessibilityService=a,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new pi),this._altKey=xc.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}async onClick(e){e.preventDefault(),e.stopPropagation();try{await this.actionRunner.run(this._commandAction,this._context)}catch(sue){this._notificationService.error(sue)}}render(e){if(super.render(e),e.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let t=!1;const i=()=>{var e;const i=!!(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)&&(!this._accessibilityService.isMotionReduced()||t)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&t);i!==this._wantsAltCommand&&(this._wantsAltCommand=i,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(i)),this._register(yl(e,"mouseleave",(e=>{t=!1,i()}))),this._register(yl(e,"mouseenter",(e=>{t=!0,i()}))),i()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var e;const t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),i=t&&t.getLabel(),n=this._commandAction.tooltip||this._commandAction.label;let o=i?pe("vs/platform/actions/browser/menuEntryActionViewItem","titleAndKb","{0} ({1})",n,i):n;if(!this._wantsAltCommand&&(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)){const e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),n=i?pe("vs/platform/actions/browser/menuEntryActionViewItem","titleAndKb","{0} ({1})",e,i):e;o=pe("vs/platform/actions/browser/menuEntryActionViewItem","titleAndKbAndAlt","{0}\n[{1}] {2}",o,LF.modifierLabels[qe].altKey,n)}return o}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){this._itemClassDispose.value=void 0;const{element:t,label:i}=this;if(!t||!i)return;const n=this._commandAction.checked&&(o=e.toggled)&&void 0!==o.condition&&e.toggled.icon?e.toggled.icon:e.icon;var o;if(n)if(gd.isThemeIcon(n)){const e=gd.asClassNameArray(n);i.classList.add(...e),this._itemClassDispose.value=ui((()=>{i.classList.remove(...e)}))}else i.style.backgroundImage=kC(this._themeService.getColorTheme().type)?Nc(n.dark):Nc(n.light),i.classList.add("icon"),this._itemClassDispose.value=hi(ui((()=>{i.style.backgroundImage="",i.classList.remove("icon")})),this._themeService.onDidColorThemeChange((()=>{this.updateClass()})))}};HW=MW([PW(2,tT),PW(3,kD),PW(4,Zd),PW(5,KE),PW(6,Ex),PW(7,W_)],HW);let WW=class extends gW{constructor(e,t,i,n,o){var s,r,a;const l={...t,menuAsChild:null!==(s=null==t?void 0:t.menuAsChild)&&void 0!==s&&s,classNames:null!==(r=null==t?void 0:t.classNames)&&void 0!==r?r:gd.isThemeIcon(e.item.icon)?gd.asClassName(e.item.icon):void 0,keybindingProvider:null!==(a=null==t?void 0:t.keybindingProvider)&&void 0!==a?a:e=>i.lookupKeybinding(e.id)};super(e,{getActions:()=>e.actions},n,l),this._keybindingService=i,this._contextMenuService=n,this._themeService=o}render(e){super.render(e),ie(this.element),e.classList.add("menu-entry");const t=this._action,{icon:i}=t.item;if(i&&!gd.isThemeIcon(i)){this.element.classList.add("icon");const e=()=>{this.element&&(this.element.style.backgroundImage=kC(this._themeService.getColorTheme().type)?Nc(i.dark):Nc(i.light))};e(),this._register(this._themeService.onDidColorThemeChange((()=>{e()})))}}};WW=MW([PW(2,tT),PW(3,Ex),PW(4,KE)],WW);let UW=class extends lW{constructor(e,t,i,n,o,s,r,a){var l,c,d;let h;super(null,e),this._keybindingService=i,this._notificationService=n,this._contextMenuService=o,this._menuService=s,this._instaService=r,this._storageService=a,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;const u=(null==t?void 0:t.persistLastActionId)?a.get(this._storageKey,1):void 0;u&&(h=e.actions.find((e=>u===e.id))),h||(h=e.actions[0]),this._defaultAction=this._instaService.createInstance(HW,h,{keybinding:this._getDefaultActionKeybindingLabel(h)});const g={keybindingProvider:e=>this._keybindingService.lookupKeybinding(e.id),...t,menuAsChild:null===(l=null==t?void 0:t.menuAsChild)||void 0===l||l,classNames:null!==(c=null==t?void 0:t.classNames)&&void 0!==c?c:["codicon","codicon-chevron-down"],actionRunner:null!==(d=null==t?void 0:t.actionRunner)&&void 0!==d?d:new ad};this._dropdown=new gW(e,e.actions,this._contextMenuService,g),this._register(this._dropdown.actionRunner.onDidRun((e=>{e.action instanceof wh&&this.update(e.action)})))}update(e){var t;(null===(t=this._options)||void 0===t?void 0:t.persistLastActionId)&&this._storageService.store(this._storageKey,e.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(HW,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends ad{async runAction(e,t){await e.run(void 0)}},this._container&&this._defaultAction.render(Sc(this._container,yc(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(null===(t=this._options)||void 0===t?void 0:t.renderKeybindingWithDefaultActionLabel){const t=this._keybindingService.lookupKeybinding(e.id);t&&(i=`(${t.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=yc(".action-container");this._defaultAction.render(vc(this._container,t)),this._register(yl(t,mc.KEY_DOWN,(e=>{const t=new Lr(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())})));const i=yc(".dropdown-action-container");this._dropdown.render(vc(this._container,i)),this._register(yl(i,mc.KEY_DOWN,(e=>{var t;const i=new Lr(e);i.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),null===(t=this._defaultAction.element)||void 0===t||t.focus(),i.stopPropagation())})))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};UW=MW([PW(2,tT),PW(3,kD),PW(4,Ex),PW(5,vh),PW(6,td),PW(7,vW)],UW);let VW=class extends dW{constructor(e,t){super(null,e,e.actions.map((e=>({text:e.id===ld.ID?"─────────":e.label,isDisabled:!e.enabled}))),0,t,kW,{ariaLabel:e.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,e.actions.findIndex((e=>e.checked))))}render(e){super.render(e),e.style.borderColor=Z_(Zv)}runAction(e,t){const i=this.action.actions[t];i&&this.actionRunner.run(i)}};function GW(e,t,i){return t instanceof wh?e.createInstance(HW,t,i):t instanceof Eh?t.item.isSelection?e.createInstance(VW,t):t.item.rememberDefaultAction?e.createInstance(UW,t,{...i,persistLastActionId:!0}):e.createInstance(WW,t,i):void 0}VW=MW([PW(1,Cx)],VW);class zW extends mi{constructor(e,t={}){var i,n,o,s,r,a,l;let c,d;switch(super(),this._actionRunnerDisposables=this._register(new gi),this.viewItemDisposables=this._register(new bi),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new Ri),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new Ri({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new Ri),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new Ri),this.onWillRun=this._onWillRun.event,this.options=t,this._context=null!==(i=t.context)&&void 0!==i?i:null,this._orientation=null!==(n=this.options.orientation)&&void 0!==n?n:0,this._triggerKeys={keyDown:null!==(s=null===(o=this.options.triggerKeys)||void 0===o?void 0:o.keyDown)&&void 0!==s&&s,keys:null!==(a=null===(r=this.options.triggerKeys)||void 0===r?void 0:r.keys)&&void 0!==a?a:[3,10]},this._hoverDelegate=null!==(l=t.hoverDelegate)&&void 0!==l?l:this._register(SB()),this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new ad,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",this._orientation){case 0:c=[15],d=[17];break;case 1:c=[16],d=[18],this.domNode.className+=" vertical"}this._register(yl(this.domNode,mc.KEY_DOWN,(e=>{const t=new Lr(e);let i=!0;const n="number"==typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;c&&(t.equals(c[0])||t.equals(c[1]))?i=this.focusPrevious():d&&(t.equals(d[0])||t.equals(d[1]))?i=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?i=this.focusFirst():t.equals(13)?i=this.focusLast():t.equals(2)&&n instanceof lW&&n.trapsArrowNavigation?i=this.focusNext():this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:i=!1,i&&(t.preventDefault(),t.stopPropagation())}))),this._register(yl(this.domNode,mc.KEY_UP,(e=>{const t=new Lr(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026)||t.equals(16)||t.equals(18)||t.equals(15)||t.equals(17))&&this.updateFocusedItem()}))),this.focusTracker=this._register(bc(this.domNode)),this._register(this.focusTracker.onDidBlur((()=>{Xl()!==this.domNode&&Kl(Xl(),this.domNode)||(this._onDidBlur.fire(),this.previouslyFocusedItem=this.focusedItem,this.focusedItem=void 0,this.triggerKeyDown=!1)}))),this._register(this.focusTracker.onDidFocus((()=>this.updateFocusedItem()))),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.options.highlightToggledItems&&this.actionsList.classList.add("highlight-toggled"),this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=1?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const e=this.viewItems.find((e=>e instanceof lW&&e.isEnabled()));e instanceof lW&&e.setFocusable(!0)}else this.viewItems.forEach((e=>{e instanceof lW&&e.setFocusable(!1)}))}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach((i=>{t=t||e.equals(i)})),t}updateFocusedItem(){var e,t;for(let i=0;it.setActionContext(e)))}get actionRunner(){return this._actionRunner}set actionRunner(e){this._actionRunner=e,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems.forEach((t=>t.actionRunner=e))}getContainer(){return this.domNode}getAction(e){var t;if("number"==typeof e)return null===(t=this.viewItems[e])||void 0===t?void 0:t.action;if(e instanceof HTMLElement){for(;e.parentElement!==this.actionsList;){if(!e.parentElement)return;e=e.parentElement}for(let t=0;t{const i=document.createElement("li");let o;i.className="action-item",i.setAttribute("role","presentation");const s={hoverDelegate:this._hoverDelegate,...t};this.options.actionViewItemProvider&&(o=this.options.actionViewItemProvider(e,s)),o||(o=new cW(this.context,e,s)),this.options.allowContextMenu||this.viewItemDisposables.set(o,yl(i,mc.CONTEXT_MENU,(e=>{fc(e,!0)}))),o.actionRunner=this._actionRunner,o.setActionContext(this.context),o.render(i),this.focusable&&o instanceof lW&&0===this.viewItems.length&&o.setFocusable(!0),null===n||n<0||n>=this.actionsList.children.length?(this.actionsList.appendChild(i),this.viewItems.push(o)):(this.actionsList.insertBefore(i,this.actionsList.children[n]),this.viewItems.splice(n,0,o),n++)})),"number"==typeof this.focusedItem&&this.focus(this.focusedItem),this.refreshRole()}clear(){this.isEmpty()||(this.viewItems=di(this.viewItems),this.viewItemDisposables.clearAndDisposeAll(),wl(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return 0===this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"==typeof e?t=e:"boolean"==typeof e&&(i=e),i&&void 0===this.focusedItem){const e=this.viewItems.findIndex((e=>e.isEnabled()));this.focusedItem=-1===e?void 0:e,this.updateFocus(void 0,void 0,!0)}else void 0!==t&&(this.focusedItem=t),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e){if(void 0===this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=t,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===ld.ID));return this.updateFocus(),!0}focusPrevious(e){if(void 0===this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===ld.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){var n,o;void 0===this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&(null===(n=this.viewItems[this.previouslyFocusedItem])||void 0===n||n.blur());const s=void 0!==this.focusedItem?this.viewItems[this.focusedItem]:void 0;if(s){let n=!0;oe(s.focus)||(n=!1),this.options.focusOnlyEnabledItems&&oe(s.isEnabled)&&!s.isEnabled()&&(n=!1),s.action.id===ld.ID&&(n=!1),n?(i||this.previouslyFocusedItem!==this.focusedItem)&&(s.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0),n&&(null===(o=s.showHover)||void 0===o||o.call(s))}}doTrigger(e){if(void 0===this.focusedItem)return;const t=this.viewItems[this.focusedItem];if(t instanceof lW){const i=null===t._context||void 0===t._context?e:t._context;this.run(t._action,i)}}async run(e,t){await this._actionRunner.run(e,t)}dispose(){this._context=void 0,this.viewItems=di(this.viewItems),this.getContainer().remove(),super.dispose()}}const KW=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,YW=/(&)?(&)([^\s&])/g;var qW,$W;!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left"}(qW||(qW={})),function(e){e[e.Above=0]="Above",e[e.Below=1]="Below"}($W||($W={}));class jW extends zW{constructor(e,t,i,n){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const o=document.createElement("div");o.classList.add("monaco-menu"),o.setAttribute("role","presentation"),super(o,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,s),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...Pe||Fe?[10]:[]],keyDown:!0}}),this.menuStyles=n,this.menuElement=o,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(e,n),this._register(sE.addTarget(o)),this._register(yl(o,mc.KEY_DOWN,(e=>{new Lr(e).equals(2)&&e.preventDefault()}))),i.enableMnemonics&&this._register(yl(o,mc.KEY_DOWN,(e=>{const t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){fc(e,!0);const i=this.mnemonics.get(t);if(1===i.length&&(i[0]instanceof JW&&i[0].container&&this.focusItemByElement(i[0].container),i[0].onClick(e)),i.length>1){const e=i.shift();e&&e.container&&(this.focusItemByElement(e.container),i.push(e)),this.mnemonics.set(t,i)}}}))),Fe&&this._register(yl(o,mc.KEY_DOWN,(e=>{const t=new Lr(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),fc(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),fc(e,!0))}))),this._register(yl(this.domNode,mc.MOUSE_OUT,(e=>{Kl(e.relatedTarget,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())}))),this._register(yl(this.actionsList,mc.MOUSE_OVER,(e=>{let t=e.target;if(t&&Kl(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}))),this._register(sE.addTarget(this.actionsList)),this._register(yl(this.actionsList,nE.Tap,(e=>{let t=e.initialTarget;if(t&&Kl(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}})));const s={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new wE(o,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const r=this.scrollableElement.getDomNode();r.style.position="",this.styleScrollElement(r,n),this._register(yl(o,nE.Change,(e=>{fc(e,!0);const t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})}))),this._register(yl(r,mc.MOUSE_UP,(e=>{e.preventDefault()})));const a=gl(e);o.style.maxHeight=`${Math.max(10,a.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(((e,n)=>{var o;if(null===(o=i.submenuIds)||void 0===o?void 0:o.has(e.id))return!1;if(e instanceof ld){if(n===t.length-1||0===n)return!1;if(t[n-1]instanceof ld)return!1}return!0})),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter((e=>!(e instanceof QW))).forEach(((e,t,i)=>{e.updatePositionInSet(t+1,i.length)}))}initializeOrUpdateStyleSheet(e,t){this.styleSheet||($l(e)?this.styleSheet=nc(e):(jW.globalStyleSheet||(jW.globalStyleSheet=nc()),this.styleSheet=jW.globalStyleSheet)),this.styleSheet.textContent=function(e,t){let i=`\n.monaco-menu {\n\tfont-size: 13px;\n\tborder-radius: 5px;\n\tmin-width: 160px;\n}\n\n${ZW(Yn.menuSelection)}\n${ZW(Yn.menuSubmenu)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\tcolor: var(--vscode-disabledForeground);\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid var(--vscode-menu-separatorBackground);\n\tpadding-top: 1px;\n\tpadding: 30px;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n\tmargin: 0 4px;\n\tborder-radius: 4px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {\n\topacity: unset;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\twidth: 100%;\n\theight: 0px !important;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n\t-webkit-app-region: no-drag;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.hc-black .context-view.monaco-menu-container,\n.hc-light .context-view.monaco-menu-container,\n:host-context(.hc-black) .context-view.monaco-menu-container,\n:host-context(.hc-light) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: 4px 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n\tmax-height: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tmargin: 5px 0 !important;\n\tpadding: 0;\n\tborder-radius: 0;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}`;if(t){i+="\n\t\t\t/* Arrows */\n\t\t\t.monaco-scrollable-element > .scrollbar > .scra {\n\t\t\t\tcursor: pointer;\n\t\t\t\tfont-size: 11px !important;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .visible {\n\t\t\t\topacity: 1;\n\n\t\t\t\t/* Background rule added for IE9 - to allow clicks on dom node */\n\t\t\t\tbackground:rgba(0,0,0,0);\n\n\t\t\t\ttransition: opacity 100ms linear;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible {\n\t\t\t\topacity: 0;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible.fade {\n\t\t\t\ttransition: opacity 800ms linear;\n\t\t\t}\n\n\t\t\t/* Scrollable Content Inset Shadow */\n\t\t\t.monaco-scrollable-element > .shadow {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 3px;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 3px;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top-left-corner {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t";const t=e.scrollbarShadow;t&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\t\tbox-shadow: ${t} 0 6px 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 0 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.top.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 6px 6px -6px inset;\n\t\t\t\t}\n\t\t\t`);const n=e.scrollbarSliderBackground;n&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\t\tbackground: ${n};\n\t\t\t\t}\n\t\t\t`);const o=e.scrollbarSliderHoverBackground;o&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\t\tbackground: ${o};\n\t\t\t\t}\n\t\t\t`);const s=e.scrollbarSliderActiveBackground;s&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\t\tbackground: ${s};\n\t\t\t\t}\n\t\t\t`)}return i}(t,$l(e))}styleScrollElement(e,t){var i,n;const o=null!==(i=t.foregroundColor)&&void 0!==i?i:"",s=null!==(n=t.backgroundColor)&&void 0!==n?n:"",r=t.borderColor?`1px solid ${t.borderColor}`:"",a=t.shadowColor?`0 2px 8px ${t.shadowColor}`:"";e.style.outline=r,e.style.borderRadius="5px",e.style.color=o,e.style.backgroundColor=s,e.style.boxShadow=a}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t{this.element&&(this._register(yl(this.element,mc.MOUSE_UP,(e=>{if(fc(e,!0),hr){if(new kr(gl(this.element),e).rightButton)return;this.onClick(e)}else setTimeout((()=>{this.onClick(e)}),0)}))),this._register(yl(this.element,mc.CONTEXT_MENU,(e=>{fc(e,!0)}))))}),100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=vc(this.element,yc("a.action-menu-item")),this._action.id===ld.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=vc(this.item,yc("span.menu-item-check"+gd.asCSSSelector(Yn.menuSelection))),this.check.setAttribute("role","none"),this.label=vc(this.item,yc("span.action-label")),this.options.label&&this.options.keybinding&&(vc(this.item,yc("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked(),this.applyStyle())}blur(){super.blur(),this.applyStyle()}focus(){var e;super.focus(),null===(e=this.item)||void 0===e||e.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){var e;if(this.label&&this.options.label){wl(this.label);let t=VM(this.action.label);if(t){const i=function(e){const t=KW,i=t.exec(e);if(!i)return e;const n=!i[1];return e.replace(t,n?"$2$3":"").trim()}(t);this.options.enableMnemonics||(t=i),this.label.setAttribute("aria-label",i.replace(/&&/g,"&"));const n=KW.exec(t);if(n){t=_s(t),YW.lastIndex=0;let i=YW.exec(t);for(;i&&i[1];)i=YW.exec(t);const o=e=>e.replace(/&&/g,"&");i?this.label.append(Ss(o(t.substr(0,i.index))," "),yc("u",{"aria-hidden":"true"},i[3]),Cs(o(t.substr(i.index+i[0].length))," ")):this.label.innerText=o(t).trim(),null===(e=this.item)||void 0===e||e.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else this.label.innerText=t.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.action.class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.action.enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.action.checked;this.item.classList.toggle("checked",!!e),void 0!==e?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,n=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",o=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=null!=t?t:"",this.item.style.backgroundColor=null!=i?i:"",this.item.style.outline=n,this.item.style.outlineOffset=o),this.check&&(this.check.style.color=null!=t?t:"")}}class JW extends XW{constructor(e,t,i,n,o){super(e,e,n,o),this.submenuActions=t,this.parentData=i,this.submenuOptions=n,this.mysubmenu=null,this.submenuDisposables=this._register(new gi),this.mouseOver=!1,this.expandDirection=n&&void 0!==n.expandDirection?n.expandDirection:{horizontal:qW.Right,vertical:$W.Below},this.showScheduler=new Kr((()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))}),250),this.hideScheduler=new Kr((()=>{this.element&&!Kl(Xl(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}),750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=vc(this.item,yc("span.submenu-indicator"+gd.asCSSSelector(Yn.menuSubmenu))),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(yl(this.element,mc.KEY_UP,(e=>{const t=new Lr(e);(t.equals(17)||t.equals(3))&&(fc(e,!0),this.createSubmenu(!0))}))),this._register(yl(this.element,mc.KEY_DOWN,(e=>{const t=new Lr(e);Xl()===this.item&&(t.equals(17)||t.equals(3))&&fc(e,!0)}))),this._register(yl(this.element,mc.MOUSE_OVER,(e=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())}))),this._register(yl(this.element,mc.MOUSE_LEAVE,(e=>{this.mouseOver=!1}))),this._register(yl(this.element,mc.FOCUS_OUT,(e=>{this.element&&!Kl(Xl(),this.element)&&this.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}))))}updateEnabled(){}onClick(e){fc(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch(sue){}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,n){const o={top:0,left:0};return o.left=HP(e.width,t.width,{position:n.horizontal===qW.Right?0:1,offset:i.left,size:i.width}),o.left>=i.left&&o.left{new Lr(e).equals(15)&&(fc(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add(yl(this.submenuContainer,mc.KEY_DOWN,(e=>{new Lr(e).equals(15)&&fc(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)}))),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){var t;this.item&&(null===(t=this.item)||void 0===t||t.setAttribute("aria-expanded",e))}applyStyle(){super.applyStyle();const e=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=null!=e?e:"")}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class QW extends cW{constructor(e,t,i,n){super(e,t,i),this.menuStyles=n}render(e){super.render(e),this.label&&(this.label.style.borderBottomColor=this.menuStyles.separatorColor?`${this.menuStyles.separatorColor}`:"")}}function ZW(e){const t=Kn()[e.id];return`.codicon-${e.id}:before { content: '\\${t.toString(16)}'; }`}class eU{constructor(e,t,i,n){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=n,this.focusToReturn=null,this.lastContainer=null,this.block=null,this.blockDisposable=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;let i;this.focusToReturn=Xl();const n=e.domForShadowRoot instanceof HTMLElement?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:n=>{var o;this.lastContainer=n;const s=e.getMenuClassName?e.getMenuClassName():"";s&&(n.className+=" "+s),this.options.blockMouse&&(this.block=n.appendChild(yc(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",null===(o=this.blockDisposable)||void 0===o||o.dispose(),this.blockDisposable=yl(this.block,mc.MOUSE_DOWN,(e=>e.stopPropagation())));const r=new gi,a=e.actionRunner||new ad;a.onWillRun((t=>this.onActionRun(t,!e.skipTelemetry)),this,r),a.onDidRun(this.onDidActionRun,this,r),i=new jW(n,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:a,getKeyBinding:e.getKeyBinding?e.getKeyBinding:e=>this.keybindingService.lookupKeybinding(e.id)},xW),i.onDidCancel((()=>this.contextViewService.hideContextView(!0)),null,r),i.onDidBlur((()=>this.contextViewService.hideContextView(!0)),null,r);const l=gl(n);return r.add(yl(l,mc.BLUR,(()=>this.contextViewService.hideContextView(!0)))),r.add(yl(l,mc.MOUSE_DOWN,(e=>{if(e.defaultPrevented)return;const t=new kr(l,e);let i=t.target;if(!t.rightButton){for(;i;){if(i===n)return;i=i.parentElement}this.contextViewService.hideContextView(!0)}}))),hi(r,i)},focus:()=>{null==i||i.focus(!!e.autoSelectFirstItem)},onHide:t=>{var i,n,o;null===(i=e.onHide)||void 0===i||i.call(e,!!t),this.block&&(this.block.remove(),this.block=null),null===(n=this.blockDisposable)||void 0===n||n.dispose(),this.blockDisposable=null,this.lastContainer&&(Xl()===this.lastContainer||Kl(Xl(),this.lastContainer))&&(null===(o=this.focusToReturn)||void 0===o||o.focus()),this.lastContainer=null}},n,!!n)}onActionRun(e,t){t&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1)}onDidActionRun(e){e.error&&!ti(e.error)&&this.notificationService.error(e.error)}}var tU=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},iU=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let nU=class extends mi{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new eU(this.contextViewService,this.telemetryService,this.notificationService,this.keybindingService)),this._contextMenuHandler}constructor(e,t,i,n,o,s){super(),this.telemetryService=e,this.notificationService=t,this.contextViewService=i,this.keybindingService=n,this.menuService=o,this.contextKeyService=s,this._contextMenuHandler=void 0,this._onDidShowContextMenu=this._store.add(new Ri),this.onDidShowContextMenu=this._onDidShowContextMenu.event,this._onDidHideContextMenu=this._store.add(new Ri)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){e=oU.transform(e,this.menuService,this.contextKeyService),this.contextMenuHandler.showContextMenu({...e,onHide:t=>{var i;null===(i=e.onHide)||void 0===i||i.call(e,t),this._onDidHideContextMenu.fire()}}),xc.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};var oU,sU;nU=tU([iU(0,Rh),iU(1,kD),iU(2,Cx),iU(3,tT),iU(4,vh),iU(5,Zd)],nU),(oU||(oU={})).transform=function(e,t,i){if(!((n=e)&&n.menuId instanceof bh))return e;var n;const{menuId:o,menuActionOptions:s,contextKeyService:r}=e;return{...e,getActions:()=>{const n=[];if(o){const e=t.createMenu(o,null!=r?r:i);!function(e,t,i,n){const o=e.getActions(t),s=xc.getInstance();BW(o,i,s.keyStatus.altKey||(Me||Fe)&&s.keyStatus.shiftKey,(e=>"navigation"===e))}(e,s,n),e.dispose()}return e.getActions?ld.join(e.getActions(),n):n}}},function(e){e[e.API=0]="API",e[e.USER=1]="USER"}(sU||(sU={}));var rU=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},aU=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let lU=class{constructor(e){this._commandService=e}async open(e,t){if(!Qa(e,Ja.command))return!1;if(!(null==t?void 0:t.allowCommands))return!0;if("string"==typeof e&&(e=An.parse(e)),Array.isArray(t.allowCommands)&&!t.allowCommands.includes(e.path))return!0;let i=[];try{i=tP(decodeURIComponent(e.query))}catch(n){try{i=tP(e.query)}catch(sue){}}return Array.isArray(i)||(i=[i]),await this._commandService.executeCommand(e.path,...i),!0}};lU=rU([aU(0,md)],lU);let cU=class{constructor(e){this._editorService=e}async open(e,t){"string"==typeof e&&(e=An.parse(e));const{selection:i,uri:n}=function(e){let t;const i=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return i&&(t={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1,endLineNumber:i[4]?parseInt(i[4]):void 0,endColumn:i[4]?i[5]?parseInt(i[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}(e);return(e=n).scheme===Ja.file&&(e=KI(e)),await this._editorService.openCodeEditor({resource:e,options:{selection:i,source:(null==t?void 0:t.fromUserGesture)?sU.USER:sU.API,...null==t?void 0:t.editorOptions}},this._editorService.getFocusedCodeEditor(),null==t?void 0:t.openToSide),!0}};cU=rU([aU(0,nd)],cU);let dU=class{constructor(e,t){this._openers=new st,this._validators=new st,this._resolvers=new st,this._resolvedUriTargets=new cm((e=>e.with({path:null,fragment:null,query:null}).toString())),this._externalOpeners=new st,this._defaultExternalOpener={openExternal:async e=>(Za(e,Ja.http,Ja.https)?Ac(e):cs.location.href=e,!0)},this._openers.push({open:async(e,t)=>!(!(null==t?void 0:t.openExternal)&&!Za(e,Ja.mailto,Ja.http,Ja.https,Ja.vsls)||(await this._doOpenExternal(e,t),0))}),this._openers.push(new lU(t)),this._openers.push(new cU(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}async open(e,t){var i;const n="string"==typeof e?An.parse(e):e,o=null!==(i=this._resolvedUriTargets.get(n))&&void 0!==i?i:e;for(const s of this._validators)if(!(await s.shouldOpen(o,t)))return!1;for(const s of this._openers)if(await s.open(e,t))return!0;return!1}async resolveExternalUri(e,t){for(const i of this._resolvers)try{const n=await i.resolveExternalUri(e,t);if(n)return this._resolvedUriTargets.has(n.resolved)||this._resolvedUriTargets.set(n.resolved,e),n}catch(sue){}throw new Error("Could not resolve external URI: "+e.toString())}async _doOpenExternal(e,t){const i="string"==typeof e?An.parse(e):e;let n,o;try{n=(await this.resolveExternalUri(i,t)).resolved}catch(sue){n=i}if(o="string"==typeof e&&i.toString()===n.toString()?e:encodeURI(n.toString(!0)),null==t?void 0:t.allowContributedOpeners){const e="string"==typeof(null==t?void 0:t.allowContributedOpeners)?null==t?void 0:t.allowContributedOpeners:void 0;for(const t of this._externalOpeners)if(await t.openExternal(o,{sourceUri:i,preferredOpenerId:e},Mi.None))return!0}return this._defaultExternalOpener.openExternal(o,{sourceUri:i},Mi.None)}dispose(){this._validators.clear()}};dU=rU([aU(0,nd),aU(1,md)],dU);const hU=id("editorWorkerService");var uU,gU;!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(uU||(uU={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=pe("vs/platform/markers/common/markers","sev.error","Error"),t[e.Warning]=pe("vs/platform/markers/common/markers","sev.warning","Warning"),t[e.Info]=pe("vs/platform/markers/common/markers","sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case AD.Error:return e.Error;case AD.Warning:return e.Warning;case AD.Info:return e.Info;case AD.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return AD.Error;case e.Warning:return AD.Warning;case e.Info:return AD.Info;case e.Hint:return AD.Ignore}}}(uU||(uU={})),function(e){const t="";function i(e,i){const n=[t];return e.source?n.push(e.source.replace("¦","\\¦")):n.push(t),e.code?"string"==typeof e.code?n.push(e.code.replace("¦","\\¦")):n.push(e.code.value.replace("¦","\\¦")):n.push(t),void 0!==e.severity&&null!==e.severity?n.push(uU.toString(e.severity)):n.push(t),e.message&&i?n.push(e.message.replace("¦","\\¦")):n.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?n.push(e.startLineNumber.toString()):n.push(t),void 0!==e.startColumn&&null!==e.startColumn?n.push(e.startColumn.toString()):n.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?n.push(e.endLineNumber.toString()):n.push(t),void 0!==e.endColumn&&null!==e.endColumn?n.push(e.endColumn.toString()):n.push(t),n.push(t),n.join("¦")}e.makeKey=function(e){return i(e,!0)},e.makeKeyOptionalMessage=i}(gU||(gU={}));const mU=id("markerService");var pU=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},fU=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let _U=class extends mi{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new Ri),this._markerDecorations=new cm,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new bU(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){var t;const i=this._markerDecorations.get(e.uri);i&&(i.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==Ja.inMemory&&e.uri.scheme!==Ja.internal&&e.uri.scheme!==Ja.vscode||null===(t=this._markerService)||void 0===t||t.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};_U=pU([fU(0,od),fU(1,mU)],_U);class bU extends mi{constructor(e){super(),this.model=e,this._map=new gm,this._register(ui((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:i}=function(e,t){const i=[],n=[];for(const o of e)t.has(o)||i.push(o);for(const o of t)e.has(o)||n.push(o);return{removed:i,added:n}}(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===i.length)return!1;const n=i.map((e=>this._map.get(e))),o=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),s=this.model.deltaDecorations(n,o);for(const r of i)this._map.delete(r);for(let r=0;r=t)return i;const n=e.getWordAtPosition(i.getStartPosition());n&&(i=new Un(i.startLineNumber,n.startColumn,i.endLineNumber,n.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&i.startLineNumber===i.endLineNumber){const n=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);n=0}}var vU,SU=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},CU=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};function EU(e){return e.toString()}class wU{constructor(e,t,i){this.model=e,this._modelEventListeners=new gi,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>i(e,t))))}dispose(){this._modelEventListeners.dispose()}}const TU=Fe||Pe?1:2;class yU{constructor(e,t,i,n,o,s,r,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=o,this.sha1=s,this.versionId=r,this.alternativeVersionId=a}}let RU=vU=class extends mi{constructor(e,t,i,n,o){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=i,this._languageService=n,this._languageConfigurationService=o,this._onModelAdded=this._register(new Ri),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new Ri),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new Ri),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){var i;let n=it.tabSize;if(e.editor&&void 0!==e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let o="tabSize";if(e.editor&&void 0!==e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(o=Math.max(t,1))}let s=it.insertSpaces;e.editor&&void 0!==e.editor.insertSpaces&&(s="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let r=TU;const a=e.eol;"\r\n"===a?r=2:"\n"===a&&(r=1);let l=it.trimAutoWhitespace;e.editor&&void 0!==e.editor.trimAutoWhitespace&&(l="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let c=it.detectIndentation;e.editor&&void 0!==e.editor.detectIndentation&&(c="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let d=it.largeFileOptimizations;e.editor&&void 0!==e.editor.largeFileOptimizations&&(d="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let h=it.bracketPairColorizationOptions;return(null===(i=e.editor)||void 0===i?void 0:i.bracketPairColorization)&&"object"==typeof e.editor.bracketPairColorization&&(h={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:o,insertSpaces:s,detectIndentation:c,defaultEOL:r,trimAutoWhitespace:l,largeFileOptimizations:d,bracketPairColorizationOptions:h}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&"string"==typeof i&&"auto"!==i?i:3===qe||2===qe?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!=typeof e||e}getCreationOptions(e,t,i){const n="string"==typeof e?e:e.languageId;let o=this._modelCreationOptionsByLanguageAndResource[n+t];if(!o){const e=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:t}),s=this._getEOL(t,n);o=vU._readModelOptions({editor:e,eol:s},i),this._modelCreationOptionsByLanguageAndResource[n+t]=o}return o}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const i=Object.keys(this._models);for(let n=0,o=i.length;ne){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,n){const o=this.getCreationOptions(t,i,n),s=new DN(e,t,o,i,this._undoRedoService,this._languageService,this._languageConfigurationService);if(i&&this._disposedModels.has(EU(i))){const e=this._removeDisposedModel(i),t=this._undoRedoService.getElements(i),n=this._getSHA1Computer(),o=!!n.canComputeSHA1(s)&&n.computeSHA1(s)===e.sha1;if(o||e.sharesUndoRedoStack){for(const e of t.past)iA(e)&&e.matchesResource(i)&&e.setModel(s);for(const e of t.future)iA(e)&&e.matchesResource(i)&&e.setModel(s);this._undoRedoService.setElementsValidFlag(i,!0,(e=>iA(e)&&e.matchesResource(i))),o&&(s._overwriteVersionId(e.versionId),s._overwriteAlternativeVersionId(e.alternativeVersionId),s._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const r=EU(s.uri);if(this._models[r])throw new Error("ModelService: Cannot add model because it already exists!");const a=new wU(s,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[r]=a,a}createModel(e,t,i,n=!1){let o;return o=t?this._createModelData(e,t,i,n):this._createModelData(e,bg,i,n),this._onModelAdded.fire(o.model),o.model}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,n=t.length;i0||t.future.length>0){for(const i of t.past)iA(i)&&i.matchesResource(e.uri)&&(o=!0,s+=i.heapSize(e.uri),i.setModel(e.uri));for(const i of t.future)iA(i)&&i.matchesResource(e.uri)&&(o=!0,s+=i.heapSize(e.uri),i.setModel(e.uri))}}const r=vU.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(o)if(n||!(s>r)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(r-s),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>iA(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new yU(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,s,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!n){const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const i=t.oldLanguage,n=e.getLanguageId(),o=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);vU._setModelOptionsForModel(e,s,o),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}_getSHA1Computer(){return new LU}};RU.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520,RU=vU=SU([CU(0,$u),CU(1,af),CU(2,CN),CU(3,eg),CU(4,Lg)],RU);class LU{canComputeSHA1(e){return e.getValueLength()<=LU.MAX_MODEL_SIZE}computeSHA1(e){const t=new hl,i=e.createSnapshot();let n;for(;n=i.read();)t.update(n);return t.digest()}}var IU;LU.MAX_MODEL_SIZE=10485760,function(e){e[e.PRESERVE=0]="PRESERVE",e[e.LAST=1]="LAST"}(IU||(IU={}));const AU="workbench.contributions.quickaccess";dh.add(AU,new class{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort(((e,t)=>t.prefix.length-e.prefix.length)),ui((()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)}))}getQuickAccessProviders(){return T([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find((t=>e.startsWith(t.prefix)))||this.defaultProvider}});const NU={ctrlCmd:!1,alt:!1};var kU,DU;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(kU||(kU={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(DU||(DU={}));const OU=id("quickInputService");var xU=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},MU=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let PU=class extends mi{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=dh.as(AU),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){var n,o,s;const[r,a]=this.getOrInstantiateProvider(e),l=this.visibleQuickAccess,c=null==l?void 0:l.descriptor;if(l&&a&&c===a)return e===a.prefix||(null==i?void 0:i.preserveValue)||(l.picker.value=e),void this.adjustValueSelection(l.picker,a,i);if(a&&!(null==i?void 0:i.preserveValue)){let t;if(l&&c&&c!==a){const e=l.value.substr(c.prefix.length);e&&(t=`${a.prefix}${e}`)}if(!t){const e=null==r?void 0:r.defaultFilterValue;e===IU.LAST?t=this.lastAcceptedPickerValues.get(a):"string"==typeof e&&(t=`${a.prefix}${e}`)}"string"==typeof t&&(e=t)}const d=null===(n=null==l?void 0:l.picker)||void 0===n?void 0:n.valueSelection,h=null===(o=null==l?void 0:l.picker)||void 0===o?void 0:o.value,u=new gi,g=u.add(this.quickInputService.createQuickPick());let m;g.value=e,this.adjustValueSelection(g,a,i),g.placeholder=null==a?void 0:a.placeholder,g.quickNavigate=null==i?void 0:i.quickNavigateConfiguration,g.hideInput=!!g.quickNavigate&&!l,("number"==typeof(null==i?void 0:i.itemActivation)||(null==i?void 0:i.quickNavigateConfiguration))&&(g.itemActivation=null!==(s=null==i?void 0:i.itemActivation)&&void 0!==s?s:DU.SECOND),g.contextKey=null==a?void 0:a.contextKey,g.filterValue=e=>e.substring(a?a.prefix.length:0),t&&(m=new Xr,u.add(Ci.once(g.onWillAccept)((e=>{e.veto(),g.hide()})))),u.add(this.registerPickerListeners(g,r,a,e,null==i?void 0:i.providerOptions));const p=u.add(new Fi);return r&&u.add(r.provide(g,p.token,null==i?void 0:i.providerOptions)),Ci.once(g.onDidHide)((()=>{0===g.selectedItems.length&&p.cancel(),u.dispose(),null==m||m.complete(g.selectedItems.slice(0))})),g.show(),d&&h===e&&(g.valueSelection=d),t?null==m?void 0:m.p:void 0}adjustValueSelection(e,t,i){var n;let o;o=(null==i?void 0:i.preserveValue)?[e.value.length,e.value.length]:[null!==(n=null==t?void 0:t.prefix.length)&&void 0!==n?n:0,e.value.length],e.valueSelection=o}registerPickerListeners(e,t,i,n,o){const s=new gi,r=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return s.add(ui((()=>{r===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)}))),s.add(e.onDidChangeValue((e=>{const[i]=this.getOrInstantiateProvider(e);i!==t?this.show(e,{preserveValue:!0,providerOptions:o}):r.value=e}))),i&&s.add(e.onDidAccept((()=>{this.lastAcceptedPickerValues.set(i,e.value)}))),s}getOrInstantiateProvider(e){const t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];let i=this.mapProviderToDescriptor.get(t);return i||(i=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,i)),[i,t]}};PU=xU([MU(0,OU),MU(1,td)],PU);class FU extends rE{constructor(e){var t;super(),this._onChange=this._register(new Ri),this.onChange=this._onChange.event,this._onKeyDown=this._register(new Ri),this.onKeyDown=this._onKeyDown.event,this._opts=e,this._checked=this._opts.isChecked;const i=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,i.push(...gd.asClassNameArray(this._icon))),this._opts.actionClassName&&i.push(...this._opts.actionClassName.split(" ")),this._checked&&i.push("checked"),this.domNode=document.createElement("div"),this._hover=this._register(EB().setupUpdatableHover(null!==(t=e.hoverDelegate)&&void 0!==t?t:vB("mouse"),this.domNode,this._opts.title)),this.domNode.classList.add(...i),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,(e=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault())})),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,(e=>{if(10===e.keyCode||3===e.keyCode)return this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault(),void e.stopPropagation();this._onKeyDown.fire(e)}))}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder||"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground||"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground||"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}var BU=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class HU{constructor(e){this.nodes=e}toString(){return this.nodes.map((e=>"string"==typeof e?e:e.label)).join("")}}BU([iE],HU.prototype,"toString",null);const WU=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi,UU={},VU=new JM("quick-input-button-icon-");function GU(e,t,i){let n=e.iconClass||function(e){if(!e)return;let t;const i=e.dark.toString();return UU[i]?t=UU[i]:(t=VU.nextId(),cc(`.${t}, .hc-light .${t}`,`background-image: ${Nc(e.light||e.dark)}`),cc(`.vs-dark .${t}, .hc-black .${t}`,`background-image: ${Nc(e.dark)}`),UU[i]=t),t}(e.iconPath);return e.alwaysVisible&&(n=n?`${n} always-visible`:"always-visible"),{id:t,label:"",tooltip:e.tooltip||"",class:n,enabled:!0,run:i}}class zU{get templateId(){return this.renderer.templateId}constructor(e,t){this.renderer=e,this.modelProvider=t}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:mi.None}}renderElement(e,t,i,n){var o;if(null===(o=i.disposable)||void 0===o||o.dispose(),!i.data)return;const s=this.modelProvider();if(s.isResolved(e))return this.renderer.renderElement(s.get(e),e,i.data,n);const r=new Fi,a=s.resolve(e,r.token);i.disposable={dispose:()=>r.cancel()},this.renderer.renderPlaceholder(e,i.data),a.then((t=>this.renderer.renderElement(t,e,i.data,n)))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class KU{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}class YU{constructor(e,t,i,n,o={}){const s=()=>this.model,r=n.map((e=>new zU(e,s)));var a,l;this.list=new tW(e,t,i,r,(a=s,l=o,{...l,accessibilityProvider:l.accessibilityProvider&&new KU(a,l.accessibilityProvider)}))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get widget(){return this.list}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return Ci.map(this.list.onMouseDblClick,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onPointer(){return Ci.map(this.list.onPointer,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onDidChangeSelection(){return Ci.map(this.list.onDidChangeSelection,(({elements:e,indexes:t,browserEvent:i})=>({elements:e.map((e=>this._model.get(e))),indexes:t,browserEvent:i})))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,N(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map((e=>this.model.get(e)))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}var qU,$U=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};!function(e){e.North="north",e.South="south",e.East="east",e.West="west"}(qU||(qU={}));const jU=new Ri,XU=new Ri;class JU{constructor(e){this.el=e,this.disposables=new gi}get onPointerMove(){return this.disposables.add(new AE(gl(this.el),"mousemove")).event}get onPointerUp(){return this.disposables.add(new AE(gl(this.el),"mouseup")).event}dispose(){this.disposables.dispose()}}$U([iE],JU.prototype,"onPointerMove",null),$U([iE],JU.prototype,"onPointerUp",null);class QU{get onPointerMove(){return this.disposables.add(new AE(this.el,nE.Change)).event}get onPointerUp(){return this.disposables.add(new AE(this.el,nE.End)).event}constructor(e){this.el=e,this.disposables=new gi}dispose(){this.disposables.dispose()}}$U([iE],QU.prototype,"onPointerMove",null),$U([iE],QU.prototype,"onPointerUp",null);class ZU{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(e){this.factory=e}dispose(){}}$U([iE],ZU.prototype,"onPointerMove",null),$U([iE],ZU.prototype,"onPointerUp",null);const eV="pointer-events-disabled";class tV extends mi{get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",0===e),this.el.classList.toggle("minimum",1===e),this.el.classList.toggle("maximum",2===e),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this._orthogonalStartSash!==e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=vc(this.el,yc(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add(ui((()=>this._orthogonalStartDragHandle.remove()))),this.orthogonalStartDragHandleDisposables.add(new AE(this._orthogonalStartDragHandle,"mouseenter")).event((()=>tV.onMouseEnter(e)),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new AE(this._orthogonalStartDragHandle,"mouseleave")).event((()=>tV.onMouseLeave(e)),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalStartSash=e}}set orthogonalEndSash(e){if(this._orthogonalEndSash!==e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=vc(this.el,yc(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add(ui((()=>this._orthogonalEndDragHandle.remove()))),this.orthogonalEndDragHandleDisposables.add(new AE(this._orthogonalEndDragHandle,"mouseenter")).event((()=>tV.onMouseEnter(e)),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new AE(this._orthogonalEndDragHandle,"mouseleave")).event((()=>tV.onMouseLeave(e)),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}}constructor(e,t,i){super(),this.hoverDelay=300,this.hoverDelayer=this._register(new Br(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new Ri),this._onDidStart=this._register(new Ri),this._onDidChange=this._register(new Ri),this._onDidReset=this._register(new Ri),this._onDidEnd=this._register(new Ri),this.orthogonalStartSashDisposables=this._register(new gi),this.orthogonalStartDragHandleDisposables=this._register(new gi),this.orthogonalEndSashDisposables=this._register(new gi),this.orthogonalEndDragHandleDisposables=this._register(new gi),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=vc(e,yc(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),Pe&&this.el.classList.add("mac");const n=this._register(new AE(this.el,"mousedown")).event;this._register(n((t=>this.onPointerStart(t,new JU(e))),this));const o=this._register(new AE(this.el,"dblclick")).event;this._register(o(this.onPointerDoublePress,this));const s=this._register(new AE(this.el,"mouseenter")).event;this._register(s((()=>tV.onMouseEnter(this))));const r=this._register(new AE(this.el,"mouseleave")).event;this._register(r((()=>tV.onMouseLeave(this)))),this._register(sE.addTarget(this.el));const a=this._register(new AE(this.el,nE.Start)).event;this._register(a((e=>this.onPointerStart(e,new QU(this.el))),this));const l=this._register(new AE(this.el,nE.Tap)).event;let c;this._register(l((e=>{if(c)return clearTimeout(c),c=void 0,void this.onPointerDoublePress(e);clearTimeout(c),c=setTimeout((()=>c=void 0),250)}),this)),"number"==typeof i.size?(this.size=i.size,0===i.orientation?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=4,this._register(jU.event((e=>{this.size=e,this.layout()})))),this._register(XU.event((e=>this.hoverDelay=e))),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,1===this.orientation?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",!1),this.layout()}onPointerStart(e,t){fc(e);let i=!1;if(!e.__orthogonalSashEvent){const n=this.getOrthogonalSash(e);n&&(i=!0,e.__orthogonalSashEvent=!0,n.onPointerStart(e,new ZU(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new ZU(t))),!this.state)return;const n=this.el.ownerDocument.getElementsByTagName("iframe");for(const h of n)h.classList.add(eV);const o=e.pageX,s=e.pageY,r=e.altKey,a={startX:o,currentX:o,startY:s,currentY:s,altKey:r};this.el.classList.add("active"),this._onDidStart.fire(a);const l=nc(this.el),c=()=>{let e="";e=i?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":Pe?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":Pe?"col-resize":"ew-resize",l.textContent=`* { cursor: ${e} !important; }`},d=new gi;c(),i||this.onDidEnablementChange.event(c,null,d),t.onPointerMove((e=>{fc(e,!1);const t={startX:o,currentX:e.pageX,startY:s,currentY:e.pageY,altKey:r};this._onDidChange.fire(t)}),null,d),t.onPointerUp((e=>{fc(e,!1),this.el.removeChild(l),this.el.classList.remove("active"),this._onDidEnd.fire(),d.dispose();for(const t of n)t.classList.remove(eV)}),null,d),d.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger((()=>e.el.classList.add("hover")),e.hoverDelay).then(void 0,(()=>{})),!t&&e.linkedSash&&tV.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&tV.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){tV.onMouseLeave(this)}layout(){if(0===this.orientation){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){var t;const i=null!==(t=e.initialTarget)&&void 0!==t?t:e.target;if(i&&i instanceof HTMLElement)return i.classList.contains("orthogonal-drag-handle")?i.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}dispose(){super.dispose(),this.el.remove()}}const iV={separatorBorder:Kp.transparent};class nV{set size(e){this._size=e}get size(){return this._size}get visible(){return void 0===this._cachedVisibleSize}setVisible(e,t){var i,n;if(e!==this.visible){e?(this.size=SO(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"==typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e);try{null===(n=(i=this.view).setVisible)||void 0===n||n.call(i,e)}catch(sue){}}}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get proportionalLayout(){var e;return null===(e=this.view.proportionalLayout)||void 0===e||e}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,"number"==typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}layout(e,t){this.layoutContainer(e);try{this.view.layout(this.size,e,t)}catch(sue){}}dispose(){this.disposable.dispose()}}class oV extends nV{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class sV extends nV{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var rV,aV;!function(e){e[e.Idle=0]="Idle",e[e.Busy=1]="Busy"}(rV||(rV={})),function(e){e.Distribute={type:"distribute"},e.Split=function(e){return{type:"split",index:e}},e.Auto=function(e){return{type:"auto",index:e}},e.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}}}(aV||(aV={}));class lV extends mi{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e,t={}){var i,n,o,s,r;super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=rV.Idle,this._onDidSashChange=this._register(new Ri),this._onDidSashReset=this._register(new Ri),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=null!==(i=t.orientation)&&void 0!==i?i:0,this.inverseAltBehavior=null!==(n=t.inverseAltBehavior)&&void 0!==n&&n,this.proportionalLayout=null===(o=t.proportionalLayout)||void 0===o||o,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(0===this.orientation?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=vc(this.el,yc(".sash-container")),this.viewContainer=yc(".split-view-container"),this.scrollable=this._register(new mE({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:e=>kl(gl(this.el),e)})),this.scrollableElement=this._register(new EE(this.viewContainer,{vertical:0===this.orientation?null!==(s=t.scrollbarVisibility)&&void 0!==s?s:1:2,horizontal:1===this.orientation?null!==(r=t.scrollbarVisibility)&&void 0!==r?r:1:2},this.scrollable));const a=this._register(new AE(this.viewContainer,"scroll")).event;this._register(a((e=>{const t=this.scrollableElement.getScrollPosition(),i=Math.abs(this.viewContainer.scrollLeft-t.scrollLeft)<=1?void 0:this.viewContainer.scrollLeft,n=Math.abs(this.viewContainer.scrollTop-t.scrollTop)<=1?void 0:this.viewContainer.scrollTop;void 0===i&&void 0===n||this.scrollableElement.setScrollPosition({scrollLeft:i,scrollTop:n})}))),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll((e=>{e.scrollTopChanged&&(this.viewContainer.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this.viewContainer.scrollLeft=e.scrollLeft)}))),vc(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||iV),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach(((e,t)=>{const i=Z(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},n=e.view;this.doAddView(n,i,t,!0)})),this._contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0),this.saveProportions())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,n){this.doAddView(e,t,i,n)}layout(e,t){const i=Math.max(this.size,this._contentSize);if(this.size=e,this.layoutContext=t,this.proportions){let t=0;for(let i=0;i0&&(n.size=SO(Math.round(o*e/t),n.minimumSize,n.maximumSize))}}else{const t=N(this.viewItems.length),n=t.filter((e=>1===this.viewItems[e].priority)),o=t.filter((e=>2===this.viewItems[e].priority));this.resize(this.viewItems.length-1,e-i,void 0,n,o)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this.proportions=this.viewItems.map((e=>e.proportionalLayout&&e.visible?e.size/this._contentSize:void 0)))}onSashStart({sash:e,start:t,alt:i}){for(const r of this.viewItems)r.enabled=!1;const n=this.sashItems.findIndex((t=>t.sash===e)),o=hi(yl(this.el.ownerDocument.body,"keydown",(e=>s(this.sashDragState.current,e.altKey))),yl(this.el.ownerDocument.body,"keyup",(()=>s(this.sashDragState.current,!1)))),s=(e,t)=>{const i=this.viewItems.map((e=>e.size));let s,r,a=Number.NEGATIVE_INFINITY,l=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t)if(n===this.sashItems.length-1){const e=this.viewItems[n];a=(e.minimumSize-e.size)/2,l=(e.maximumSize-e.size)/2}else{const e=this.viewItems[n+1];a=(e.size-e.maximumSize)/2,l=(e.size-e.minimumSize)/2}if(!t){const e=N(n,-1),t=N(n+1,this.viewItems.length),o=e.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),a=e.reduce(((e,t)=>e+(this.viewItems[t].viewMaximumSize-i[t])),0),l=0===t.length?Number.POSITIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),c=0===t.length?Number.NEGATIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].viewMaximumSize)),0),d=Math.max(o,c),h=Math.min(l,a),u=this.findFirstSnapIndex(e),g=this.findFirstSnapIndex(t);if("number"==typeof u){const e=this.viewItems[u],t=Math.floor(e.viewMinimumSize/2);s={index:u,limitDelta:e.visible?d-t:d+t,size:e.size}}if("number"==typeof g){const e=this.viewItems[g],t=Math.floor(e.viewMinimumSize/2);r={index:g,limitDelta:e.visible?h+t:h-t,size:e.size}}}this.sashDragState={start:e,current:e,index:n,sizes:i,minDelta:a,maxDelta:l,alt:t,snapBefore:s,snapAfter:r,disposable:o}};s(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:n,alt:o,minDelta:s,maxDelta:r,snapBefore:a,snapAfter:l}=this.sashDragState;this.sashDragState.current=e;const c=e-i,d=this.resize(t,c,n,void 0,void 0,s,r,a,l);if(o){const e=t===this.sashItems.length-1,i=this.viewItems.map((e=>e.size)),n=e?t:t+1,o=this.viewItems[n],s=o.size-o.maximumSize,r=o.size-o.minimumSize,a=e?t-1:t+1;this.resize(a,-d,i,void 0,void 0,s,r)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t=SO(t="number"==typeof t?t:e.size,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(!(e<0||e>=this.viewItems.length)){if(this.state!==rV.Idle)throw new Error("Cant modify splitview");this.state=rV.Busy;try{const i=N(this.viewItems.length).filter((t=>t!==e)),n=[...i.filter((e=>1===this.viewItems[e].priority)),e],o=i.filter((e=>2===this.viewItems[e].priority)),s=this.viewItems[e];t=SO(t=Math.round(t),s.minimumSize,Math.min(s.maximumSize,this.size)),s.size=t,this.relayout(n,o)}finally{this.state=rV.Idle}}}distributeViewSizes(){const e=[];let t=0;for(const r of this.viewItems)r.maximumSize-r.minimumSize>0&&(e.push(r),t+=r.size);const i=Math.floor(t/e.length);for(const r of e)r.size=SO(i,r.minimumSize,r.maximumSize);const n=N(this.viewItems.length),o=n.filter((e=>1===this.viewItems[e].priority)),s=n.filter((e=>2===this.viewItems[e].priority));this.relayout(o,s)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,n){if(this.state!==rV.Idle)throw new Error("Cant modify splitview");this.state=rV.Busy;try{const o=yc(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(o):this.viewContainer.insertBefore(o,this.viewContainer.children.item(i));const s=hi(e.onDidChange((e=>this.onViewChange(a,e))),ui((()=>this.viewContainer.removeChild(o))));let r;"number"==typeof t?r=t:("auto"===t.type&&(t=this.areViewsDistributed()?{type:"distribute"}:{type:"split",index:t.index}),r="split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize);const a=0===this.orientation?new oV(o,e,r,s):new sV(o,e,r,s);if(this.viewItems.splice(i,0,a),this.viewItems.length>1){const e={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},t=0===this.orientation?new tV(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},{...e,orientation:1}):new tV(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},{...e,orientation:0}),n=0===this.orientation?e=>({sash:t,start:e.startY,current:e.currentY,alt:e.altKey}):e=>({sash:t,start:e.startX,current:e.currentX,alt:e.altKey}),o=Ci.map(t.onDidStart,n)(this.onSashStart,this),s=Ci.map(t.onDidChange,n)(this.onSashChange,this),r=Ci.map(t.onDidEnd,(()=>this.sashItems.findIndex((e=>e.sash===t))))(this.onSashEnd,this),a=hi(o,s,r,t.onDidReset((()=>{const e=this.sashItems.findIndex((e=>e.sash===t)),i=N(e,-1),n=N(e+1,this.viewItems.length),o=this.findFirstSnapIndex(i),s=this.findFirstSnapIndex(n);("number"!=typeof o||this.viewItems[o].visible)&&("number"!=typeof s||this.viewItems[s].visible)&&this._onDidSashReset.fire(e)})),t),l={sash:t,disposable:a};this.sashItems.splice(i-1,0,l)}let l;o.appendChild(e.element),"number"!=typeof t&&"split"===t.type&&(l=[t.index]),n||this.relayout([i],l),n||"number"==typeof t||"distribute"!==t.type||this.distributeViewSizes()}finally{this.state=rV.Idle}}relayout(e,t){const i=this.viewItems.reduce(((e,t)=>e+t.size),0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map((e=>e.size)),n,o,s=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY,a,l){if(e<0||e>=this.viewItems.length)return 0;const c=N(e,-1),d=N(e+1,this.viewItems.length);if(o)for(const E of o)D(c,E),D(d,E);if(n)for(const E of n)O(c,E),O(d,E);const h=c.map((e=>this.viewItems[e])),u=c.map((e=>i[e])),g=d.map((e=>this.viewItems[e])),m=d.map((e=>i[e])),p=c.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),f=c.reduce(((e,t)=>e+(this.viewItems[t].maximumSize-i[t])),0),_=0===d.length?Number.POSITIVE_INFINITY:d.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),b=0===d.length?Number.NEGATIVE_INFINITY:d.reduce(((e,t)=>e+(i[t]-this.viewItems[t].maximumSize)),0),v=Math.max(p,b,s),S=Math.min(_,f,r);let C=!1;if(a){const e=this.viewItems[a.index],i=t>=a.limitDelta;C=i!==e.visible,e.setVisible(i,a.size)}if(!C&&l){const e=this.viewItems[l.index],i=te+t.size),0);let i=this.size-t;const n=N(this.viewItems.length-1,-1),o=n.filter((e=>1===this.viewItems[e].priority)),s=n.filter((e=>2===this.viewItems[e].priority));for(const r of s)D(n,r);for(const r of o)O(n,r);"number"==typeof e&&O(n,e);for(let r=0;0!==i&&re+t.size),0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach((e=>e.sash.layout())),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this._contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this._contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map((t=>e=t.size-t.minimumSize>0||e));e=!1;const i=this.viewItems.map((t=>e=t.maximumSize-t.size>0||e)),n=[...this.viewItems].reverse();e=!1;const o=n.map((t=>e=t.size-t.minimumSize>0||e)).reverse();e=!1;const s=n.map((t=>e=t.maximumSize-t.size>0||e)).reverse();let r=0;for(let a=0;a0||this.startSnappingEnabled)?e.state=1:d&&t[a]&&(r0)return;if(!e.visible&&e.snap)return t}}areViewsDistributed(){let e,t;for(const i of this.viewItems)if(e=void 0===e?i.size:Math.min(e,i.size),t=void 0===t?i.size:Math.max(t,i.size),t-e>2)return!1;return!0}dispose(){var e;null===(e=this.sashDragState)||void 0===e||e.disposable.dispose(),di(this.viewItems),this.viewItems=[],this.sashItems.forEach((e=>e.disposable.dispose())),this.sashItems=[],super.dispose()}}class cV{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=cV.TemplateId,this.renderedTemplates=new Set;const n=new Map(t.map((e=>[e.templateId,e])));this.renderers=[];for(const o of e){const e=n.get(o.templateId);if(!e)throw new Error(`Table cell renderer for template id ${o.templateId} not found.`);this.renderers.push(e)}}renderTemplate(e){const t=vc(e,yc(".monaco-table-tr")),i=[],n=[];for(let s=0;sthis.disposables.add(new dV(e,t)))),a={size:r.reduce(((e,t)=>e+t.column.weight),0),views:r.map((e=>({size:e.column.weight,view:e})))};this.splitview=this.disposables.add(new lV(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:a})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const l=new cV(n,o,(e=>this.splitview.getViewSize(e)));var c;this.list=this.disposables.add(new tW(e,this.domNode,(c=i,{getHeight:e=>c.getHeight(e),getTemplateId:()=>cV.TemplateId}),[l],s)),Ci.any(...r.map((e=>e.onDidLayout)))((([e,t])=>l.layoutColumn(e,t)),null,this.disposables),this.splitview.onDidSashReset((e=>{const t=n.reduce(((e,t)=>e+t.weight),0),i=n[e].weight/t*this.cachedWidth;this.splitview.resizeView(e,i)}),null,this.disposables),this.styleElement=nc(this.domNode),this.style($H)}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\ttop: ${this.virtualDelegate.headerRowHeight+1}px;\n\t\t\theight: calc(100% - ${this.virtualDelegate.headerRowHeight}px);\n\t\t}`),this.styleElement.textContent=t.join("\n"),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}hV.InstanceCount=0;const uV=pe("vs/base/browser/ui/findinput/findInputToggles","caseDescription","Match Case"),gV=pe("vs/base/browser/ui/findinput/findInputToggles","wordsDescription","Match Whole Word"),mV=pe("vs/base/browser/ui/findinput/findInputToggles","regexDescription","Use Regular Expression");class pV extends FU{constructor(e){var t;super({icon:Yn.caseSensitive,title:uV+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:vB("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class fV extends FU{constructor(e){var t;super({icon:Yn.wholeWord,title:gV+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:vB("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class _V extends FU{constructor(e){var t;super({icon:Yn.regex,title:mV+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:vB("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class bV{constructor(e,t=0,i=e.length,n=t-1){this.items=e,this.start=t,this.end=i,this.index=n}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class vV{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}getHistory(){return this._elements}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._navigator.next()}previous(){return 0!==this._currentPosition()?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}isLast(){return this._currentPosition()>=this._elements.length-1}isNowhere(){return null===this._navigator.current()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new bV(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach((t=>e.push(t))),e}}const SV=yc;let CV=class extends rE{constructor(e,t,i){var n;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new Ri),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new Ri),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=null!==(n=this.options.tooltip)&&void 0!==n?n:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=vc(e,SV(".monaco-inputbox.idle"));const o=this.options.flexibleHeight?"textarea":"input",s=vc(this.element,SV(".ibwrapper"));if(this.input=vc(s,SV(o+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,(()=>this.element.classList.add("synthetic-focus"))),this.onblur(this.input,(()=>this.element.classList.remove("synthetic-focus"))),this.options.flexibleHeight){this.maxHeight="number"==typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=vc(s,SV("div.mirror")),this.mirror.innerText=" ",this.scrollableElement=new CE(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),vc(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll((e=>this.input.scrollTop=e.scrollTop)));const t=this._register(new AE(e.ownerDocument,"selectionchange")),i=Ci.filter(t.event,(()=>{const t=e.ownerDocument.getSelection();return(null==t?void 0:t.anchorNode)===s}));this._register(i(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,(()=>this.onValueChange())),this.onblur(this.input,(()=>this.onBlur())),this.onfocus(this.input,(()=>this.onFocus())),this._register(this.ignoreGesture(this.input)),setTimeout((()=>this.updateMirror()),0),this.options.actions&&(this.actionbar=this._register(new zW(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.hover?this.hover.update(e):this.hover=this._register(EB().setupUpdatableHover(vB("mouse"),this.input,e))}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"==typeof this.cachedHeight?this.cachedHeight:zl(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return Jl(this.input)}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}getSelection(){var e;const t=this.input.selectionStart;return null===t?null:{start:t,end:null!==(e=this.input.selectionEnd)&&void 0!==e?e:t}}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if("number"!=typeof this.cachedContentHeight||"number"!=typeof this.cachedHeight||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){if("open"===this.state&&he(this.message,e))return;this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${Dc(i.border,"transparent")}`,this.message.content&&(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),null==e?void 0:e.type}stylesForType(e){const t=this.options.inputBoxStyles;switch(e){case 1:return{border:t.inputValidationInfoBorder,background:t.inputValidationInfoBackground,foreground:t.inputValidationInfoForeground};case 2:return{border:t.inputValidationWarningBorder,background:t.inputValidationWarningBackground,foreground:t.inputValidationWarningForeground};default:return{border:t.inputValidationErrorBorder,background:t.inputValidationErrorBackground,foreground:t.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e;const t=()=>e.style.width=Ul(this.element)+"px";let i;this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:i=>{var n,o;if(!this.message)return null;e=vc(i,SV(".monaco-inputbox-container")),t();const s={inline:!0,className:"monaco-inputbox-message"},r=this.message.formatContent?Nx(this.message.content,s):function(e,t={}){const i=kx(t);return i.textContent=e,i}(this.message.content,s);r.classList.add(this.classForType(this.message.type));const a=this.stylesForType(this.message.type);return r.style.backgroundColor=null!==(n=a.background)&&void 0!==n?n:"",r.style.color=null!==(o=a.foreground)&&void 0!==o?o:"",r.style.border=a.border?`1px solid ${a.border}`:"",vc(e,r),null},onHide:()=>{this.state="closed"},layout:t}),i=3===this.message.type?pe("vs/base/browser/ui/inputbox/inputBox","alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?pe("vs/base/browser/ui/inputbox/inputBox","alertWarningMessage","Warning: {0}",this.message.content):pe("vs/base/browser/ui/inputbox/inputBox","alertInfoMessage","Info: {0}",this.message.content),L_(i),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";(e+t).replace(/\u000c/g,"")?this.mirror.textContent=e+t:this.mirror.innerText=" ",this.layout()}applyStyles(){var e,t,i;const n=this.options.inputBoxStyles,o=null!==(e=n.inputBackground)&&void 0!==e?e:"",s=null!==(t=n.inputForeground)&&void 0!==t?t:"",r=null!==(i=n.inputBorder)&&void 0!==i?i:"";this.element.style.backgroundColor=o,this.element.style.color=s,this.input.style.backgroundColor="inherit",this.input.style.color=s,this.element.style.border=`1px solid ${Dc(r,"transparent")}`}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=zl(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,o=t.value;null!==i&&null!==n&&(this.value=o.substr(0,i)+e+o.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){var e;this._hideMessage(),this.message=null,null===(e=this.actionbar)||void 0===e||e.dispose(),super.dispose()}};class EV extends CV{constructor(e,t,i){const n=pe("vs/base/browser/ui/inputbox/inputBox",{key:"history.inputbox.hint.suffix.noparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field ends in a closing parenthesis ")", for example "Filter (e.g. text, !exclude)". The character inserted into the final string is ⇅ to represent the up and down arrow keys.']}," or {0} for history","⇅"),o=pe("vs/base/browser/ui/inputbox/inputBox",{key:"history.inputbox.hint.suffix.inparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field does NOT end in a closing parenthesis (eg. "Find"). The character inserted into the final string is ⇅ to represent the up and down arrow keys.']}," ({0} for history)","⇅");super(e,t,i),this._onDidFocus=this._register(new Ri),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new Ri),this.onDidBlur=this._onDidBlur.event,this.history=new vV(i.history,100);const s=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(n)&&!this.placeholder.endsWith(o)&&this.history.getHistory().length){const e=this.placeholder.endsWith(")")?n:o,t=this.placeholder+e;i.showPlaceholderOnFocus&&!Jl(this.input)?this.placeholder=t:this.setPlaceHolder(t)}};this.observer=new MutationObserver(((e,t)=>{e.forEach((e=>{e.target.textContent||s()}))})),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,(()=>s())),this.onblur(this.input,(()=>{const e=e=>{if(this.placeholder.endsWith(e)){const t=this.placeholder.slice(0,this.placeholder.length-e.length);return i.showPlaceholderOnFocus?this.placeholder=t:this.setPlaceHolder(t),!0}return!1};e(o)||e(n)}))}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(e){this.value&&(e||this.value!==this.getCurrentValue())&&this.history.add(this.value)}isAtLastInHistory(){return this.history.isLast()}isNowhereInHistory(){return this.history.isNowhere()}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),this.value=null!=e?e:"",I_(this.value?this.value:pe("vs/base/browser/ui/inputbox/inputBox","clearedInput","Cleared Input"))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,I_(this.value))}setPlaceHolder(e){super.setPlaceHolder(e),this.setTooltip(e)}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()}}const wV=pe("vs/base/browser/ui/findinput/findInput","defaultLabel","input");class TV extends rE{constructor(e,t,i){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new pi),this.additionalToggles=[],this._onDidOptionChange=this._register(new Ri),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new Ri),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new Ri),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new Ri),this._onKeyUp=this._register(new Ri),this._onCaseSensitiveKeyDown=this._register(new Ri),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new Ri),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||wV,this.showCommonFindToggles=!!i.showCommonFindToggles;const n=i.appendCaseSensitiveLabel||"",o=i.appendWholeWordsLabel||"",s=i.appendRegexLabel||"",r=i.history||[],a=!!i.flexibleHeight,l=!!i.flexibleWidth,c=i.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new EV(this.domNode,t,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},history:r,showHistoryHint:i.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c,inputBoxStyles:i.inputBoxStyles}));const d=this._register(SB());if(this.showCommonFindToggles){this.regex=this._register(new _V({appendTitle:s,isChecked:!1,hoverDelegate:d,...i.toggleStyles})),this._register(this.regex.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.regex.onKeyDown((e=>{this._onRegexKeyDown.fire(e)}))),this.wholeWords=this._register(new fV({appendTitle:o,isChecked:!1,hoverDelegate:d,...i.toggleStyles})),this._register(this.wholeWords.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this.caseSensitive=this._register(new pV({appendTitle:n,isChecked:!1,hoverDelegate:d,...i.toggleStyles})),this._register(this.caseSensitive.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.caseSensitive.onKeyDown((e=>{this._onCaseSensitiveKeyDown.fire(e)})));const e=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,(t=>{if(t.equals(15)||t.equals(17)||t.equals(9)){const i=e.indexOf(this.domNode.ownerDocument.activeElement);if(i>=0){let n=-1;t.equals(17)?n=(i+1)%e.length:t.equals(15)&&(n=0===i?e.length-1:i-1),t.equals(9)?(e[i].blur(),this.inputBox.focus()):n>=0&&e[n].focus(),fc(t,!0)}}}))}this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this.showCommonFindToggles?"":"none",this.caseSensitive&&this.controls.append(this.caseSensitive.domNode),this.wholeWords&&this.controls.appendChild(this.wholeWords.domNode),this.regex&&this.controls.appendChild(this.regex.domNode),this.setAdditionalToggles(null==i?void 0:i.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),null==e||e.appendChild(this.domNode),this._register(yl(this.inputBox.inputElement,"compositionstart",(e=>{this.imeSessionInProgress=!0}))),this._register(yl(this.inputBox.inputElement,"compositionend",(e=>{this.imeSessionInProgress=!1,this._onInput.fire()}))),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}get onDidChange(){return this.inputBox.onDidChange}layout(e){this.inputBox.layout(),this.updateInputBoxPadding(e.collapsedFindWidget)}enable(){var e,t,i;this.domNode.classList.remove("disabled"),this.inputBox.enable(),null===(e=this.regex)||void 0===e||e.enable(),null===(t=this.wholeWords)||void 0===t||t.enable(),null===(i=this.caseSensitive)||void 0===i||i.enable();for(const n of this.additionalToggles)n.enable()}disable(){var e,t,i;this.domNode.classList.add("disabled"),this.inputBox.disable(),null===(e=this.regex)||void 0===e||e.disable(),null===(t=this.wholeWords)||void 0===t||t.disable(),null===(i=this.caseSensitive)||void 0===i||i.disable();for(const n of this.additionalToggles)n.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}setAdditionalToggles(e){for(const t of this.additionalToggles)t.domNode.remove();this.additionalToggles=[],this.additionalTogglesDisposables.value=new gi;for(const t of null!=e?e:[])this.additionalTogglesDisposables.value.add(t),this.controls.appendChild(t.domNode),this.additionalTogglesDisposables.value.add(t.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()}))),this.additionalToggles.push(t);this.additionalToggles.length>0&&(this.controls.style.display=""),this.updateInputBoxPadding()}updateInputBoxPadding(e=!1){var t,i,n,o,s,r;this.inputBox.paddingRight=e?0:(null!==(i=null===(t=this.caseSensitive)||void 0===t?void 0:t.width())&&void 0!==i?i:0)+(null!==(o=null===(n=this.wholeWords)||void 0===n?void 0:n.width())&&void 0!==o?o:0)+(null!==(r=null===(s=this.regex)||void 0===s?void 0:s.width())&&void 0!==r?r:0)+this.additionalToggles.reduce(((e,t)=>e+t.width()),0)}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){var e,t;return null!==(t=null===(e=this.caseSensitive)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setCaseSensitive(e){this.caseSensitive&&(this.caseSensitive.checked=e)}getWholeWords(){var e,t;return null!==(t=null===(e=this.wholeWords)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setWholeWords(e){this.wholeWords&&(this.wholeWords.checked=e)}getRegex(){var e,t;return null!==(t=null===(e=this.regex)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setRegex(e){this.regex&&(this.regex.checked=e,this.validate())}focusOnCaseSensitive(){var e;null===(e=this.caseSensitive)||void 0===e||e.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}}var yV,RV,LV,IV,AV;!function(e){e[e.Expanded=0]="Expanded",e[e.Collapsed=1]="Collapsed",e[e.PreserveOrExpanded=2]="PreserveOrExpanded",e[e.PreserveOrCollapsed=3]="PreserveOrCollapsed"}(yV||(yV={})),function(e){e[e.Unknown=0]="Unknown",e[e.Twistie=1]="Twistie",e[e.Element=2]="Element",e[e.Filter=3]="Filter"}(RV||(RV={}));class NV extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class kV{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}function DV(e){return"object"==typeof e&&"visibility"in e&&"data"in e}function OV(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function xV(e){return"boolean"==typeof e.collapsible}class MV{constructor(e,t,i,n={}){var o;this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new Di,this._onDidChangeCollapseState=new Ri,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new Ri,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new Ri,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new Br(Or),this.collapseByDefault=void 0!==n.collapseByDefault&&n.collapseByDefault,this.allowNonCollapsibleParents=null!==(o=n.allowNonCollapsibleParents)&&void 0!==o&&o,this.filter=n.filter,this.autoExpandSingleChildren=void 0!==n.autoExpandSingleChildren&&n.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=nt.empty(),n={}){if(0===e.length)throw new NV(this.user,"Invalid tree location");n.diffIdentityProvider?this.spliceSmart(n.diffIdentityProvider,e,t,i,n):this.spliceSimple(e,t,i,n)}spliceSmart(e,t,i,n,o,s){var r;void 0===n&&(n=nt.empty()),void 0===s&&(s=null!==(r=o.diffDepth)&&void 0!==r?r:0);const{parentNode:a}=this.getParentNodeWithListIndex(t);if(!a.lastDiffIds)return this.spliceSimple(t,i,n,o);const l=[...n],c=t[t.length-1],d=new Kg({getElements:()=>a.lastDiffIds},{getElements:()=>[...a.children.slice(0,c),...l,...a.children.slice(c+i)].map((t=>e.getId(t.element).toString()))}).ComputeDiff(!1);if(d.quitEarly)return a.lastDiffIds=void 0,this.spliceSimple(t,i,l,o);const h=t.slice(0,-1),u=(t,i,n)=>{if(s>0)for(let r=0;rt.originalStart-e.originalStart)))u(g,m,g-(p.originalStart+p.originalLength)),g=p.originalStart,m=p.modifiedStart-c,this.spliceSimple([...h,g],p.originalLength,nt.slice(l,m,m+p.modifiedLength),o);u(g,m,g)}spliceSimple(e,t,i=nt.empty(),{onDidCreateNode:n,onDidDeleteNode:o,diffIdentityProvider:s}){const{parentNode:r,listIndex:a,revealed:l,visible:c}=this.getParentNodeWithListIndex(e),d=[],h=nt.map(i,(e=>this.createTreeNode(e,r,r.visible?1:0,l,d,n))),u=e[e.length-1];let g=0;for(let S=u;S>=0&&Ss.getId(e.element).toString()))):r.lastDiffIds=r.children.map((e=>s.getId(e.element).toString())):r.lastDiffIds=void 0;let b=0;for(const S of _)S.visible&&b++;if(0!==b)for(let S=u+m.length;Se+(t.visible?t.renderNodeCount:0)),0);this._updateAncestorsRenderNodeCount(r,f-e),this.list.splice(a,e,d)}if(_.length>0&&o){const e=t=>{o(t),t.children.forEach(e)};_.forEach(e)}this._onDidSplice.fire({insertedNodes:m,deletedNodes:_});let v=r;for(;v;){if(2===v.visibility){this.refilterDelayer.trigger((()=>this.refilter()));break}v=v.parent}}rerender(e){if(0===e.length)throw new NV(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);void 0===t&&(t=!i.collapsible);const n={collapsible:t};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,n)))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const n=this.getTreeNode(e);void 0===t&&(t=!n.collapsed);const o={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,o)))}_setCollapseState(e,t){const{node:i,listIndex:n,revealed:o}=this.getTreeNodeWithListIndex(e),s=this._setListNodeCollapseState(i,n,o,t);if(i!==this.root&&this.autoExpandSingleChildren&&s&&!xV(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let n=-1;for(let e=0;e-1){n=-1;break}n=e}n>-1&&this._setCollapseState([...e,n],t)}return s}_setListNodeCollapseState(e,t,i,n){const o=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!o)return o;const s=e.renderNodeCount,r=this.updateNodeAfterCollapseChange(e),a=s-(-1===t?0:1);return this.list.splice(t+1,a,r.slice(1)),o}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(xV(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!xV(t)&&t.recursive)for(const o of e.children)n=this._setNodeCollapseState(o,t,!0)||n;return n}expandTo(e){this.eventBufferer.bufferEvents((()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})}))}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,n,o,s){const r={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"==typeof e.collapsible?e.collapsible:void 0!==e.collapsed,collapsed:void 0===e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(r,i);r.visibility=a,n&&o.push(r);const l=e.children||nt.empty(),c=n&&0!==a&&!r.collapsed;let d=0,h=1;for(const u of l){const e=this.createTreeNode(u,r,a,c,o,s);r.children.push(e),h+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=d++)}return this.allowNonCollapsibleParents||(r.collapsible=r.collapsible||r.children.length>0),r.visibleChildrenCount=d,r.visible=2===a?d>0:1===a,r.visible?r.collapsed||(r.renderNodeCount=h):(r.renderNodeCount=0,n&&o.pop()),null==s||s(r),r}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,n=!0){let o;if(e!==this.root){if(o=this._filterNode(e,t),0===o)return e.visible=!1,e.renderNodeCount=0,!1;n&&i.push(e)}const s=i.length;e.renderNodeCount=e===this.root?0:1;let r=!1;if(e.collapsed&&0===o)e.visibleChildrenCount=0;else{let t=0;for(const s of e.children)r=this._updateNodeAfterFilterChange(s,o,i,n&&!e.collapsed)||r,s.visible&&(s.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===o?r:1===o,e.visibility=o),e.visible?e.collapsed||(e.renderNodeCount+=i.length-s):(e.renderNodeCount=0,n&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return"boolean"==typeof i?(e.filterData=void 0,i?1:0):DV(i)?(e.filterData=i.data,OV(i.visibility)):(e.filterData=void 0,OV(i))}hasTreeNode(e,t=this.root){if(!e||0===e.length)return!0;const[i,...n]=e;return!(i<0||i>t.children.length)&&this.hasTreeNode(n,t.children[i])}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;const[i,...n]=e;if(i<0||i>t.children.length)throw new NV(this.user,"Invalid tree location");return this.getTreeNode(n,t.children[i])}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:n,visible:o}=this.getParentNodeWithListIndex(e),s=e[e.length-1];if(s<0||s>t.children.length)throw new NV(this.user,"Invalid tree location");const r=t.children[s];return{node:r,listIndex:i,revealed:n,visible:o&&r.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,o=!0){const[s,...r]=e;if(s<0||s>t.children.length)throw new NV(this.user,"Invalid tree location");for(let a=0;ae.element))),this.data=e}}function FV(e){return e instanceof DB?new PV(e):e}class BV{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=mi.None,this.disposables=new gi}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,FV(e),t)}onDragOver(e,t,i,n,o,s=!0){const r=this.dnd.onDragOver(FV(e),t&&t.element,i,n,o),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),void 0===t)return r;if(a&&"boolean"!=typeof r&&r.autoExpand&&(this.autoExpandDisposable=Ur((()=>{const e=this.modelProvider(),i=e.getNodeLocation(t);e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0}),500,this.disposables)),"boolean"==typeof r||!r.accept||void 0===r.bubble||r.feedback)return s?r:{accept:"boolean"==typeof r?r:r.accept,effect:"boolean"==typeof r?void 0:r.effect,feedback:[i]};if(1===r.bubble){const i=this.modelProvider(),s=i.getNodeLocation(t),r=i.getParentNodeLocation(s),a=i.getNode(r),l=r&&i.getListIndex(r);return this.onDragOver(e,a,l,n,o,!1)}const l=this.modelProvider(),c=l.getNodeLocation(t),d=l.getListIndex(c),h=l.getListRenderCount(c);return{...r,feedback:N(d,d+h)}}drop(e,t,i,n,o){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(FV(e),t&&t.element,i,n,o)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}dispose(){this.disposables.dispose(),this.dnd.dispose()}}class HV{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){var i,n;null===(n=(i=this.delegate).setDynamicHeight)||void 0===n||n.call(i,e.element,t)}}!function(e){e.None="none",e.OnHover="onHover",e.Always="always"}(LV||(LV={}));class WV{get elements(){return this._elements}constructor(e,t=[]){this._elements=t,this.disposables=new gi,this.onDidChange=Ci.forEach(e,(e=>this._elements=e),this.disposables)}dispose(){this.disposables.dispose()}}class UV{constructor(e,t,i,n,o,s={}){var r;this.renderer=e,this.modelProvider=t,this.activeNodes=n,this.renderedIndentGuides=o,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=UV.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set,this.indentGuidesDisposable=mi.None,this.disposables=new gi,this.templateId=e.templateId,this.updateOptions(s),Ci.map(i,(e=>e.node))(this.onDidChangeNodeTwistieState,this,this.disposables),null===(r=e.onDidChangeTwistieState)||void 0===r||r.call(e,this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if(void 0!==e.indent){const t=SO(e.indent,0,40);if(t!==this.indent){this.indent=t;for(const[e,t]of this.renderedNodes)this.renderTreeElement(e,t)}}if(void 0!==e.renderIndentGuides){const t=e.renderIndentGuides!==LV.None;if(t!==this.shouldRenderIndentGuides){this.shouldRenderIndentGuides=t;for(const[e,t]of this.renderedNodes)this._renderIndentGuides(e,t);if(this.indentGuidesDisposable.dispose(),t){const e=new gi;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}}void 0!==e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=vc(e,yc(".monaco-tl-row")),i=vc(t,yc(".monaco-tl-indent")),n=vc(t,yc(".monaco-tl-twistie")),o=vc(t,yc(".monaco-tl-contents")),s=this.renderer.renderTemplate(o);return{container:e,indent:i,twistie:n,indentGuidesDisposable:mi.None,templateData:s}}renderElement(e,t,i,n){this.renderedNodes.set(e,i),this.renderedElements.set(e.element,e),this.renderTreeElement(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){var o,s;i.indentGuidesDisposable.dispose(),null===(s=(o=this.renderer).disposeElement)||void 0===s||s.call(o,e,t,i.templateData,n),"number"==typeof n&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(e,t))}renderTreeElement(e,t){const i=UV.DefaultIndent+(e.depth-1)*this.indent;t.twistie.style.paddingLeft=`${i}px`,t.indent.style.width=i+this.indent-16+"px",e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded"),t.twistie.classList.remove(...gd.asClassNameArray(Yn.treeItemExpanded));let n=!1;this.renderer.renderTwistie&&(n=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(n||t.twistie.classList.add(...gd.asClassNameArray(Yn.treeItemExpanded)),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),this._renderIndentGuides(e,t)}_renderIndentGuides(e,t){if(wl(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new gi,n=this.modelProvider();for(;;){const o=n.getNodeLocation(e),s=n.getParentNodeLocation(o);if(!s)break;const r=n.getNode(s),a=yc(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(r)&&a.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(a):t.indent.insertBefore(a,t.indent.firstElementChild),this.renderedIndentGuides.add(r,a),i.add(ui((()=>this.renderedIndentGuides.delete(r,a)))),e=r}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach((e=>{const n=i.getNodeLocation(e);try{const o=i.getParentNodeLocation(n);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):o&&t.add(i.getNode(o))}catch(o){}})),this.activeIndentNodes.forEach((e=>{t.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.remove("active")))})),t.forEach((e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.add("active")))})),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),di(this.disposables)}}UV.DefaultIndent=8;class VV{get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new gi,e.onWillRefilter(this.reset,this,this.disposables)}filter(e,t){let i=1;if(this._filter){const n=this._filter.filter(e,t);if(i="boolean"==typeof n?n?1:0:DV(n)?OV(n.visibility):n,0===i)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:DM.Default,visibility:i};const n=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),o=Array.isArray(n)?n:[n];for(const s of o){const e=s&&s.toString();if(void 0===e)return{data:DM.Default,visibility:i};let t;if(this.tree.findMatchType===AV.Contiguous){const i=e.toLowerCase().indexOf(this._lowercasePattern);if(i>-1){t=[Number.MAX_SAFE_INTEGER,0];for(let e=this._lowercasePattern.length;e>0;e--)t.push(i+e-1)}}else t=xM(this._pattern,this._lowercasePattern,0,e,e.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(t)return this._matchCount++,1===o.length?{data:t,visibility:i}:{data:{label:e,score:t},visibility:i}}return this.tree.findMode===IV.Filter?"number"==typeof this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility:this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility(e):2:{data:DM.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){di(this.disposables)}}function GV(e,t){return e.position===t.position&&zV(e,t)}function zV(e,t){return e.node.element===t.node.element&&e.startIndex===t.startIndex&&e.height===t.height&&e.endIndex===t.endIndex}!function(e){e[e.Highlight=0]="Highlight",e[e.Filter=1]="Filter"}(IV||(IV={})),function(e){e[e.Fuzzy=0]="Fuzzy",e[e.Contiguous=1]="Contiguous"}(AV||(AV={}));class KV{constructor(e=[]){this.stickyNodes=e}get count(){return this.stickyNodes.length}equal(e){return b(this.stickyNodes,e.stickyNodes,GV)}lastNodePartiallyVisible(){if(0===this.count)return!1;const e=this.stickyNodes[this.count-1];if(1===this.count)return 0!==e.position;const t=this.stickyNodes[this.count-2];return t.position+t.height!==e.position}animationStateChanged(e){if(!b(this.stickyNodes,e.stickyNodes,zV))return!1;if(0===this.count)return!1;const t=this.stickyNodes[this.count-1],i=e.stickyNodes[e.count-1];return t.position!==i.position}}class YV{constrainStickyScrollNodes(e,t,i){for(let n=0;ni||n>=t)return e.slice(0,n)}return e}}let qV=class extends mi{constructor(e,t,i,n,o,s={}){var r;super(),this.tree=e,this.model=t,this.view=i,this.treeDelegate=o,this.maxWidgetViewRatio=.4;const a=this.validateStickySettings(s);this.stickyScrollMaxItemCount=a.stickyScrollMaxItemCount,this.stickyScrollDelegate=null!==(r=s.stickyScrollDelegate)&&void 0!==r?r:new YV,this._widget=this._register(new $V(i.getScrollableElement(),i,e,n,o,s.accessibilityProvider)),this.onDidChangeHasFocus=this._widget.onDidChangeHasFocus,this.onContextMenu=this._widget.onContextMenu,this._register(i.onDidScroll((()=>this.update()))),this._register(i.onDidChangeContentHeight((()=>this.update()))),this._register(e.onDidChangeCollapseState((()=>this.update()))),this.update()}get height(){return this._widget.height}getNodeAtHeight(e){let t;if(t=0===e?this.view.firstVisibleIndex:this.view.indexAt(e+this.view.scrollTop),!(t<0||t>=this.view.length))return this.view.element(t)}update(){const e=this.getNodeAtHeight(0);if(!e||0===this.tree.scrollTop)return void this._widget.setState(void 0);const t=this.findStickyState(e);this._widget.setState(t)}findStickyState(e){const t=[];let i=e,n=0,o=this.getNextStickyNode(i,void 0,n);for(;o&&(t.push(o),n+=o.height,!(t.length<=this.stickyScrollMaxItemCount)||(i=this.getNextVisibleNode(o),i));)o=this.getNextStickyNode(i,o.node,n);const s=this.constrainStickyNodes(t);return s.length?new KV(s):void 0}getNextVisibleNode(e){return this.getNodeAtHeight(e.position+e.height)}getNextStickyNode(e,t,i){const n=this.getAncestorUnderPrevious(e,t);if(n){if(n===e){if(!this.nodeIsUncollapsedParent(e))return;if(this.nodeTopAlignsWithStickyNodesBottom(e,i))return}return this.createStickyScrollNode(n,i)}}nodeTopAlignsWithStickyNodesBottom(e,t){const i=this.getNodeIndex(e),n=this.view.getElementTop(i),o=t;return this.view.scrollTop===n-o}createStickyScrollNode(e,t){const i=this.treeDelegate.getHeight(e),{startIndex:n,endIndex:o}=this.getNodeRange(e);return{node:e,position:this.calculateStickyNodePosition(o,t,i),height:i,startIndex:n,endIndex:o}}getAncestorUnderPrevious(e,t=void 0){let i=e,n=this.getParentNode(i);for(;n;){if(n===t)return i;i=n,n=this.getParentNode(i)}if(void 0===t)return i}calculateStickyNodePosition(e,t,i){let n=this.view.getRelativeTop(e);if(null===n&&this.view.firstVisibleIndex===e&&e+1r&&t<=r?r-i:t}constrainStickyNodes(e){if(0===e.length)return[];const t=this.view.renderHeight*this.maxWidgetViewRatio,i=e[e.length-1];if(e.length<=this.stickyScrollMaxItemCount&&i.position+i.height<=t)return e;const n=this.stickyScrollDelegate.constrainStickyScrollNodes(e,this.stickyScrollMaxItemCount,t);if(!n.length)return[];const o=n[n.length-1];if(n.length>this.stickyScrollMaxItemCount||o.position+o.height>t)throw new Error("stickyScrollDelegate violates constraints");return n}getParentNode(e){const t=this.model.getNodeLocation(e),i=this.model.getParentNodeLocation(t);return i?this.model.getNode(i):void 0}nodeIsUncollapsedParent(e){const t=this.model.getNodeLocation(e);return this.model.getListRenderCount(t)>1}getNodeIndex(e){const t=this.model.getNodeLocation(e);return this.model.getListIndex(t)}getNodeRange(e){const t=this.model.getNodeLocation(e),i=this.model.getListIndex(t);if(i<0)throw new Error("Node not found in tree");return{startIndex:i,endIndex:i+this.model.getListRenderCount(t)-1}}nodePositionTopBelowWidget(e){const t=[];let i=this.getParentNode(e);for(;i;)t.push(i),i=this.getParentNode(i);let n=0;for(let o=0;o0,i=!!e&&e.count>0;if(!t&&!i||t&&i&&this._previousState.equal(e))return;if(t!==i&&this.setVisible(i),!i)return this._previousState=void 0,this._previousElements=[],void this._previousStateDisposables.clear();const n=e.stickyNodes[e.count-1];if(this._previousState&&e.animationStateChanged(this._previousState))this._previousElements[this._previousState.count-1].style.top=`${n.position}px`;else{this._previousStateDisposables.clear();const t=Array(e.count);for(let i=e.count-1;i>=0;i--){const n=e.stickyNodes[i],{element:o,disposable:s}=this.createElement(n,i,e.count);t[i]=o,this._rootDomNode.appendChild(o),this._previousStateDisposables.add(s)}this.stickyScrollFocus.updateElements(t,e),this._previousElements=t}this._previousState=e,this._rootDomNode.style.height=`${n.position+n.height}px`}createElement(e,t,i){const n=e.startIndex,o=document.createElement("div");o.style.top=`${e.position}px`,!1!==this.tree.options.setRowHeight&&(o.style.height=`${e.height}px`),!1!==this.tree.options.setRowLineHeight&&(o.style.lineHeight=`${e.height}px`),o.classList.add("monaco-tree-sticky-row"),o.classList.add("monaco-list-row"),o.setAttribute("data-index",`${n}`),o.setAttribute("data-parity",n%2==0?"even":"odd"),o.setAttribute("id",this.view.getElementID(n));const s=this.setAccessibilityAttributes(o,e.node.element,t,i),r=this.treeDelegate.getTemplateId(e.node),a=this.treeRenderers.find((e=>e.templateId===r));if(!a)throw new Error(`No renderer found for template id ${r}`);let l=e.node;l===this.tree.getNode(this.tree.getNodeLocation(e.node))&&(l=new Proxy(e.node,{}));const c=a.renderTemplate(o);a.renderElement(l,e.startIndex,c,e.height);const d=ui((()=>{s.dispose(),a.disposeElement(l,e.startIndex,c,e.height),a.disposeTemplate(c),o.remove()}));return{element:o,disposable:d}}setAccessibilityAttributes(e,t,i,n){var o;if(!this.accessibilityProvider)return mi.None;this.accessibilityProvider.getSetSize&&e.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(t,i,n))),this.accessibilityProvider.getPosInSet&&e.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(t,i))),this.accessibilityProvider.getRole&&e.setAttribute("role",null!==(o=this.accessibilityProvider.getRole(t))&&void 0!==o?o:"treeitem");const s=this.accessibilityProvider.getAriaLabel(t),r=s&&"string"!=typeof s?s:mH(s),a=cH((t=>{const i=t.readObservable(r);i?e.setAttribute("aria-label",i):e.removeAttribute("aria-label")}));"string"==typeof s||s&&e.setAttribute("aria-label",s.get());const l=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(t);return"number"==typeof l&&e.setAttribute("aria-level",`${l}`),e.setAttribute("aria-selected",String(!1)),a}setVisible(e){this._rootDomNode.classList.toggle("empty",!e),e||this.stickyScrollFocus.updateElements([],void 0)}domFocus(){this.stickyScrollFocus.domFocus()}focusedLast(){return this.stickyScrollFocus.focusedLast()}dispose(){this.stickyScrollFocus.dispose(),this._previousStateDisposables.dispose(),this._rootDomNode.remove()}};class jV extends mi{get domHasFocus(){return this._domHasFocus}set domHasFocus(e){e!==this._domHasFocus&&(this._onDidChangeHasFocus.fire(e),this._domHasFocus=e)}constructor(e,t){super(),this.container=e,this.view=t,this.focusedIndex=-1,this.elements=[],this._onDidChangeHasFocus=new Ri,this.onDidChangeHasFocus=this._onDidChangeHasFocus.event,this._onContextMenu=new Ri,this.onContextMenu=this._onContextMenu.event,this._domHasFocus=!1,this.container.addEventListener("focus",(()=>this.onFocus())),this.container.addEventListener("blur",(()=>this.onBlur())),this._register(this.view.onDidFocus((()=>this.toggleStickyScrollFocused(!1)))),this._register(this.view.onKeyDown((e=>this.onKeyDown(e)))),this._register(this.view.onMouseDown((e=>this.onMouseDown(e)))),this._register(this.view.onContextMenu((e=>this.handleContextMenu(e))))}handleContextMenu(e){const t=e.browserEvent.target;if(!MH(t)&&!xH(t))return void(this.focusedLast()&&this.view.domFocus());if(!gc(e.browserEvent)){if(!this.state)throw new Error("Context menu should not be triggered when state is undefined");const t=this.state.stickyNodes.findIndex((t=>{var i;return t.node.element===(null===(i=e.element)||void 0===i?void 0:i.element)}));if(-1===t)throw new Error("Context menu should not be triggered when element is not in sticky scroll widget");return this.container.focus(),void this.setFocus(t)}if(!this.state||this.focusedIndex<0)throw new Error("Context menu key should not be triggered when focus is not in sticky scroll widget");const i=this.state.stickyNodes[this.focusedIndex].node.element,n=this.elements[this.focusedIndex];this._onContextMenu.fire({element:i,anchor:n,browserEvent:e.browserEvent,isStickyScroll:!0})}onKeyDown(e){if(this.domHasFocus&&this.state)if("ArrowUp"===e.key)this.setFocusedElement(Math.max(0,this.focusedIndex-1)),e.preventDefault(),e.stopPropagation();else if("ArrowDown"===e.key||"ArrowRight"===e.key){if(this.focusedIndex>=this.state.count-1){const e=this.state.stickyNodes[this.state.count-1].startIndex+1;this.view.domFocus(),this.view.setFocus([e]),this.scrollNodeUnderWidget(e,this.state)}else this.setFocusedElement(this.focusedIndex+1);e.preventDefault(),e.stopPropagation()}}onMouseDown(e){const t=e.browserEvent.target;(MH(t)||xH(t))&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation())}updateElements(e,t){if(t&&0===t.count)throw new Error("Sticky scroll state must be undefined when there are no sticky nodes");if(t&&t.count!==e.length)throw new Error("Sticky scroll focus received illigel state");const i=this.focusedIndex;if(this.removeFocus(),this.elements=e,this.state=t,t){const e=SO(i,0,t.count-1);this.setFocus(e)}else this.domHasFocus&&this.view.domFocus();this.container.tabIndex=t?0:-1}setFocusedElement(e){const t=this.state;if(!t)throw new Error("Cannot set focus when state is undefined");if(this.setFocus(e),!(e1?t.stickyNodes[t.count-2]:void 0,o=this.view.getElementTop(e),s=n?n.position+n.height+i.height:i.height;this.view.scrollTop=o-s}domFocus(){if(!this.state)throw new Error("Cannot focus when state is undefined");this.container.focus()}focusedLast(){return!!this.state&&this.view.getHTMLElement().classList.contains("sticky-scroll-focused")}removeFocus(){-1!==this.focusedIndex&&(this.toggleElementFocus(this.elements[this.focusedIndex],!1),this.focusedIndex=-1)}setFocus(e){if(0>e)throw new Error("addFocus() can not remove focus");if(!this.state&&e>=0)throw new Error("Cannot set focus index when state is undefined");if(this.state&&e>=this.state.count)throw new Error("Cannot set focus index to an index that does not exist");const t=this.focusedIndex;t>=0&&this.toggleElementFocus(this.elements[t],!1),e>=0&&this.toggleElementFocus(this.elements[e],!0),this.focusedIndex=e}toggleElementFocus(e,t){this.toggleElementActiveFocus(e,t&&this.domHasFocus),this.toggleElementPassiveFocus(e,t)}toggleCurrentElementActiveFocus(e){-1!==this.focusedIndex&&this.toggleElementActiveFocus(this.elements[this.focusedIndex],e)}toggleElementActiveFocus(e,t){e.classList.toggle("focused",t)}toggleElementPassiveFocus(e,t){e.classList.toggle("passive-focused",t)}toggleStickyScrollFocused(e){this.view.getHTMLElement().classList.toggle("sticky-scroll-focused",e)}onFocus(){if(!this.state||0===this.elements.length)throw new Error("Cannot focus when state is undefined or elements are empty");this.domHasFocus=!0,this.toggleStickyScrollFocused(!0),this.toggleCurrentElementActiveFocus(!0),-1===this.focusedIndex&&this.setFocus(0)}onBlur(){this.domHasFocus=!1,this.toggleCurrentElementActiveFocus(!1)}dispose(){this.toggleStickyScrollFocused(!1),this._onDidChangeHasFocus.fire(!1),super.dispose()}}function XV(e){let t=RV.Unknown;return Yl(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=RV.Twistie:Yl(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=RV.Element:Yl(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=RV.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function JV(e){const t=MH(e.browserEvent.target);return{element:e.element?e.element.element:null,browserEvent:e.browserEvent,anchor:e.anchor,isStickyScroll:t}}function QV(e,t){t(e),e.children.forEach((e=>QV(e,t)))}class ZV{get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new Ri,this.onDidChange=this._onDidChange.event}set(e,t){!(null==t?void 0:t.__forceEvent)&&b(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const e=this;this._onDidChange.fire({get elements(){return e.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map((e=>e.element))),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const e=this.createNodeSet(),i=t=>e.delete(t);return t.forEach((e=>QV(e,i))),void this.set([...e.values()])}const i=new Set,n=e=>i.add(this.identityProvider.getId(e.element).toString());t.forEach((e=>QV(e,n)));const o=new Map,s=e=>o.set(this.identityProvider.getId(e.element).toString(),e);e.forEach((e=>QV(e,s)));const r=[];for(const a of this.nodes){const e=this.identityProvider.getId(a.element).toString();if(i.has(e)){const t=o.get(e);t&&t.visible&&r.push(t)}else r.push(a)}if(this.nodes.length>0&&0===r.length){const e=this.getFirstViewElementWithTrait();e&&r.push(e)}this._set(r,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class eG extends YH{constructor(e,t,i){super(e),this.tree=t,this.stickyScrollProvider=i}onViewPointer(e){if(PH(e.browserEvent.target)||kH(e.browserEvent.target)||OH(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16,o=xH(e.browserEvent.target);let s=!1;if(s=!!o||("function"==typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick),o)this.handleStickyScrollMouseEvent(e,t);else{if(s&&!n&&2!==e.browserEvent.detail)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e)}if(t.collapsible&&(!o||n)){const i=this.tree.getNodeLocation(t),o=e.browserEvent.altKey;if(this.tree.setFocus([i]),this.tree.toggleCollapsed(i,o),n)return void(e.browserEvent.isHandledByList=!0)}o||super.onViewPointer(e)}handleStickyScrollMouseEvent(e,t){if(DH(e.browserEvent.target,"monaco-custom-toggle")||function(e){return DH(e,"action-item")}(e.browserEvent.target))return;const i=this.stickyScrollProvider();if(!i)throw new Error("Sticky scroll controller not found");const n=this.list.indexOf(t),o=this.list.getElementTop(n),s=i.nodePositionTopBelowWidget(t);this.tree.scrollTop=o-s,this.list.domFocus(),this.list.setFocus([n]),this.list.setSelection([n])}onDoubleClick(e){!e.browserEvent.target.classList.contains("monaco-tl-twistie")&&this.tree.expandOnDoubleClick&&(e.browserEvent.isHandledByList||super.onDoubleClick(e))}onMouseDown(e){const t=e.browserEvent.target;MH(t)||xH(t)||super.onMouseDown(e)}onContextMenu(e){const t=e.browserEvent.target;MH(t)||xH(t)||super.onContextMenu(e)}}class tG extends tW{constructor(e,t,i,n,o,s,r,a){super(e,t,i,n,a),this.focusTrait=o,this.selectionTrait=s,this.anchorTrait=r}createMouseController(e){return new eG(this,e.tree,e.stickyScrollProvider)}splice(e,t,i=[]){if(super.splice(e,t,i),0===i.length)return;const n=[],o=[];let s;i.forEach(((t,i)=>{this.focusTrait.has(t)&&n.push(e+i),this.selectionTrait.has(t)&&o.push(e+i),this.anchorTrait.has(t)&&(s=e+i)})),n.length>0&&super.setFocus(I([...super.getFocus(),...n])),o.length>0&&super.setSelection(I([...super.getSelection(),...o])),"number"==typeof s&&super.setAnchor(s)}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map((e=>this.element(e))),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map((e=>this.element(e))),t)}setAnchor(e,t=!1){super.setAnchor(e),t||(void 0===e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class iG{get onDidScroll(){return this.view.onDidScroll}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return Ci.filter(Ci.map(this.view.onMouseDblClick,XV),(e=>e.target!==RV.Filter))}get onMouseOver(){return Ci.map(this.view.onMouseOver,XV)}get onMouseOut(){return Ci.map(this.view.onMouseOut,XV)}get onContextMenu(){var e,t;return Ci.any(Ci.filter(Ci.map(this.view.onContextMenu,JV),(e=>!e.isStickyScroll)),null!==(t=null===(e=this.stickyScrollController)||void 0===e?void 0:e.onContextMenu)&&void 0!==t?t:Ci.None)}get onPointer(){return Ci.map(this.view.onPointer,XV)}get onKeyDown(){return this.view.onKeyDown}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return Ci.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){var e,t;return null!==(t=null===(e=this.findController)||void 0===e?void 0:e.mode)&&void 0!==t?t:IV.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get findMatchType(){var e,t;return null!==(t=null===(e=this.findController)||void 0===e?void 0:e.matchType)&&void 0!==t?t:AV.Fuzzy}set findMatchType(e){this.findController&&(this.findController.matchType=e)}get expandOnDoubleClick(){return void 0===this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return void 0===this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}constructor(e,t,i,n,o={}){var s;this._user=e,this._options=o,this.eventBufferer=new Di,this.onDidChangeFindOpenState=Ci.None,this.onDidChangeStickyScrollFocused=Ci.None,this.disposables=new gi,this._onWillRefilter=new Ri,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new Ri,this.treeDelegate=new HV(i);const r=new Oi,a=new Oi,l=this.disposables.add(new WV(a.event)),c=new mm;this.renderers=n.map((e=>new UV(e,(()=>this.model),r.event,l,c,o)));for(const f of this.renderers)this.disposables.add(f);let d;var h,u;o.keyboardNavigationLabelProvider&&(d=new VV(this,o.keyboardNavigationLabelProvider,o.filter),o={...o,filter:d},this.disposables.add(d)),this.focus=new ZV((()=>this.view.getFocusedElements()[0]),o.identityProvider),this.selection=new ZV((()=>this.view.getSelectedElements()[0]),o.identityProvider),this.anchor=new ZV((()=>this.view.getAnchorElement()),o.identityProvider),this.view=new tG(e,t,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...(h=()=>this.model,u=o,u&&{...u,identityProvider:u.identityProvider&&{getId:e=>u.identityProvider.getId(e.element)},dnd:u.dnd&&new BV(h,u.dnd),multipleSelectionController:u.multipleSelectionController&&{isSelectionSingleChangeEvent:e=>u.multipleSelectionController.isSelectionSingleChangeEvent({...e,element:e.element}),isSelectionRangeChangeEvent:e=>u.multipleSelectionController.isSelectionRangeChangeEvent({...e,element:e.element})},accessibilityProvider:u.accessibilityProvider&&{...u.accessibilityProvider,getSetSize(e){const t=h(),i=t.getNodeLocation(e),n=t.getParentNodeLocation(i);return t.getNode(n).visibleChildrenCount},getPosInSet:e=>e.visibleChildIndex+1,isChecked:u.accessibilityProvider&&u.accessibilityProvider.isChecked?e=>u.accessibilityProvider.isChecked(e.element):void 0,getRole:u.accessibilityProvider&&u.accessibilityProvider.getRole?e=>u.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel:e=>u.accessibilityProvider.getAriaLabel(e.element),getWidgetAriaLabel:()=>u.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:u.accessibilityProvider&&u.accessibilityProvider.getWidgetRole?()=>u.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:u.accessibilityProvider&&u.accessibilityProvider.getAriaLevel?e=>u.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:u.accessibilityProvider.getActiveDescendantId&&(e=>u.accessibilityProvider.getActiveDescendantId(e.element))},keyboardNavigationLabelProvider:u.keyboardNavigationLabelProvider&&{...u.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:e=>u.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.model=this.createModel(e,this.view,o),r.input=this.model.onDidChangeCollapseState;const g=Ci.forEach(this.model.onDidSplice,(e=>{this.eventBufferer.bufferEvents((()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)}))}),this.disposables);g((()=>null),null,this.disposables);const m=this.disposables.add(new Ri),p=this.disposables.add(new Br(0));if(this.disposables.add(Ci.any(g,this.focus.onDidChange,this.selection.onDidChange)((()=>{p.trigger((()=>{const e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);m.fire([...e.values()])}))}))),a.input=m.event,!1!==o.keyboardSupport){const e=Ci.chain(this.view.onKeyDown,(e=>e.filter((e=>!kH(e.target))).map((e=>new Lr(e)))));Ci.chain(e,(e=>e.filter((e=>15===e.keyCode))))(this.onLeftArrow,this,this.disposables),Ci.chain(e,(e=>e.filter((e=>17===e.keyCode))))(this.onRightArrow,this,this.disposables),Ci.chain(e,(e=>e.filter((e=>10===e.keyCode))))(this.onSpace,this,this.disposables)}if((null===(s=o.findWidgetEnabled)||void 0===s||s)&&o.keyboardNavigationLabelProvider&&o.contextViewProvider){const e=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.findController=new class{get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}get matchType(){return this._matchType}set matchType(e){e!==this._matchType&&(this._matchType=e,this.widget&&(this.widget.matchType=this._matchType),this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(e))}constructor(e,t,i,n,o,s={}){var r,a;this.tree=e,this.view=i,this.filter=n,this.contextViewProvider=o,this.options=s,this._pattern="",this.width=0,this._onDidChangeMode=new Ri,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new Ri,this.onDidChangeMatchType=this._onDidChangeMatchType.event,this._onDidChangePattern=new Ri,this._onDidChangeOpenState=new Ri,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new gi,this.disposables=new gi,this._mode=null!==(r=e.options.defaultFindMode)&&void 0!==r?r:IV.Highlight,this._matchType=null!==(a=e.options.defaultFindMatchType)&&void 0!==a?a:AV.Fuzzy,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}updateOptions(e={}){void 0!==e.defaultFindMode&&(this.mode=e.defaultFindMode),void 0!==e.defaultFindMatchType&&(this.matchType=e.defaultFindMatchType)}onDidSpliceModel(){this.widget&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}render(){var e,t,i,n;const o=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&o?null===(e=this.tree.options.showNotFoundMessage)||void 0===e||e?null===(t=this.widget)||void 0===t||t.showMessage({type:2,content:pe("vs/base/browser/ui/tree/abstractTree","not found","No elements found.")}):null===(i=this.widget)||void 0===i||i.showMessage({type:2}):null===(n=this.widget)||void 0===n||n.clearMessage()}shouldAllowFocus(e){return!this.widget||!this.pattern||this.filter.totalCount>0&&this.filter.matchCount<=1||!DM.isDefault(e.filterData)}layout(e){var t;this.width=e,null===(t=this.widget)||void 0===t||t.layout(e)}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}(this,this.model,this.view,d,o.contextViewProvider,e),this.focusNavigationFilter=e=>this.findController.shouldAllowFocus(e),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindMode=Ci.None,this.onDidChangeFindMatchType=Ci.None;o.enableStickyScroll&&(this.stickyScrollController=new qV(this,this.model,this.view,this.renderers,this.treeDelegate,o),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus),this.styleElement=nc(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===LV.Always)}updateOptions(e={}){var t;this._options={...this._options,...e};for(const i of this.renderers)i.updateOptions(e);this.view.updateOptions(this._options),null===(t=this.findController)||void 0===t||t.updateOptions(e),this.updateStickyScroll(e),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===LV.Always)}get options(){return this._options}updateStickyScroll(e){var t;!this.stickyScrollController&&this._options.enableStickyScroll?(this.stickyScrollController=new qV(this,this.model,this.view,this.renderers,this.treeDelegate,this._options),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.onDidChangeStickyScrollFocused=Ci.None,this.stickyScrollController.dispose(),this.stickyScrollController=void 0),null===(t=this.stickyScrollController)||void 0===t||t.updateOptions(e)}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get ariaLabel(){return this.view.ariaLabel}set ariaLabel(e){this.view.ariaLabel=e}domFocus(){var e;(null===(e=this.stickyScrollController)||void 0===e?void 0:e.focusedLast())?this.stickyScrollController.domFocus():this.view.domFocus()}layout(e,t){var i;this.view.layout(e,t),X(t)&&(null===(i=this.findController)||void 0===i||i.layout(t))}style(e){var t,i;const n=`.${this.view.domId}`,o=[];e.treeIndentGuidesStroke&&(o.push(`.monaco-list${n}:hover .monaco-tl-indent > .indent-guide, .monaco-list${n}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeInactiveIndentGuidesStroke}; }`),o.push(`.monaco-list${n} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`));const s=null!==(t=e.treeStickyScrollBackground)&&void 0!==t?t:e.listBackground;s&&(o.push(`.monaco-list${n} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${s}; }`),o.push(`.monaco-list${n} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${s}; }`)),e.treeStickyScrollBorder&&o.push(`.monaco-list${n} .monaco-scrollable-element .monaco-tree-sticky-container { border-bottom: 1px solid ${e.treeStickyScrollBorder}; }`),e.treeStickyScrollShadow&&o.push(`.monaco-list${n} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow { box-shadow: ${e.treeStickyScrollShadow} 0 6px 6px -6px inset; height: 3px; }`),e.listFocusForeground&&(o.push(`.monaco-list${n}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),o.push(`.monaco-list${n}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { color: inherit; }`));const r=Dc(e.listFocusAndSelectionOutline,Dc(e.listSelectionOutline,null!==(i=e.listFocusOutline)&&void 0!==i?i:""));r&&(o.push(`.monaco-list${n}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused.selected { outline: 1px solid ${r}; outline-offset: -1px;}`),o.push(`.monaco-list${n}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused.selected { outline: inherit;}`)),e.listFocusOutline&&(o.push(`.monaco-list${n}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),o.push(`.monaco-list${n}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { outline: inherit; }`),o.push(`.monaco-workbench.context-menu-visible .monaco-list${n}.last-focused.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.passive-focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),o.push(`.monaco-workbench.context-menu-visible .monaco-list${n}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`),o.push(`.monaco-workbench.context-menu-visible .monaco-list${n}.last-focused:not(.sticky-scroll-focused) .monaco-tree-sticky-container .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`)),this.styleElement.textContent=o.join("\n"),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}getNodeLocation(e){return this.model.getNodeLocation(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}toggleCollapsed(e,t=!1){return this.model.setCollapsed(e,void 0,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){this.eventBufferer.bufferEvents((()=>{const i=e.map((e=>this.model.getNode(e)));this.selection.set(i,t);const n=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setSelection(n,t,!0)}))}getSelection(){return this.selection.get()}setFocus(e,t){this.eventBufferer.bufferEvents((()=>{const i=e.map((e=>this.model.getNode(e)));this.focus.set(i,t);const n=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setFocus(n,t,!0)}))}focusNext(e=1,t=!1,i,n=(gc(i)&&i.altKey?void 0:this.focusNavigationFilter)){this.view.focusNext(e,t,i,n)}focusPrevious(e=1,t=!1,i,n=(gc(i)&&i.altKey?void 0:this.focusNavigationFilter)){this.view.focusPrevious(e,t,i,n)}focusNextPage(e,t=(gc(e)&&e.altKey?void 0:this.focusNavigationFilter)){return this.view.focusNextPage(e,t)}focusPreviousPage(e,t=(gc(e)&&e.altKey?void 0:this.focusNavigationFilter)){return this.view.focusPreviousPage(e,t,(()=>{var e,t;return null!==(t=null===(e=this.stickyScrollController)||void 0===e?void 0:e.height)&&void 0!==t?t:0}))}focusFirst(e,t=(gc(e)&&e.altKey?void 0:this.focusNavigationFilter)){this.view.focusFirst(e,t)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);if(-1!==i)if(this.stickyScrollController){const n=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(e));this.view.reveal(i,t,n)}else this.view.reveal(i,t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!0)){const e=this.model.getParentNodeLocation(n);if(!e)return;const t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!1)){if(!i.children.some((e=>e.visible)))return;const[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i),o=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,o)}dispose(){var e;di(this.disposables),null===(e=this.stickyScrollController)||void 0===e||e.dispose(),this.view.dispose()}}class nG{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new MV(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare:(e,t)=>i.sorter.compare(e.element,t.element)}),this.identityProvider=i.identityProvider}setChildren(e,t=nt.empty(),i={}){const n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=nt.empty(),i){const n=new Set,o=new Set;this.model.splice([...e,0],Number.MAX_VALUE,t,{...i,onDidCreateNode:e=>{var t;if(null===e.element)return;const s=e;if(n.add(s.element),this.nodes.set(s.element,s),this.identityProvider){const e=this.identityProvider.getId(s.element).toString();o.add(e),this.nodesByIdentity.set(e,s)}null===(t=i.onDidCreateNode)||void 0===t||t.call(i,s)},onDidDeleteNode:e=>{var t;if(null===e.element)return;const s=e;if(n.has(s.element)||this.nodes.delete(s.element),this.identityProvider){const e=this.identityProvider.getId(s.element).toString();o.has(e)||this.nodesByIdentity.delete(e)}null===(t=i.onDidDeleteNode)||void 0===t||t.call(i,s)}})}preserveCollapseState(e=nt.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),nt.map(e,(e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){const i=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(i)}if(!t){let t;return t=void 0===e.collapsed?void 0:e.collapsed===yV.Collapsed||e.collapsed===yV.PreserveOrCollapsed||e.collapsed!==yV.Expanded&&e.collapsed!==yV.PreserveOrExpanded&&Boolean(e.collapsed),{...e,children:this.preserveCollapseState(e.children),collapsed:t}}const i="boolean"==typeof e.collapsible?e.collapsible:t.collapsible;let n;return n=void 0===e.collapsed||e.collapsed===yV.PreserveOrCollapsed||e.collapsed===yV.PreserveOrExpanded?t.collapsed:e.collapsed===yV.Collapsed||e.collapsed!==yV.Expanded&&Boolean(e.collapsed),{...e,collapsible:i,collapsed:n,children:this.preserveCollapseState(e.children)}}))}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new NV(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new NV(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new NV(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(null===e)return[];const t=this.nodes.get(e);if(!t)throw new NV(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function oG(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:nt.map(nt.from(e.children),oG),collapsible:e.collapsible,collapsed:e.collapsed}}function sG(e){const t=[e.element],i=e.incompressible||!1;let n,o;for(;[o,n]=nt.consume(nt.from(e.children),2),1===o.length&&!o[0].incompressible;)e=o[0],t.push(e.element);return{element:{elements:t,incompressible:i},children:nt.map(nt.concat(o,n),sG),collapsible:e.collapsible,collapsed:e.collapsed}}function rG(e,t=0){let i;return i=trG(e,0))),0===t&&e.element.incompressible?{element:e.element.elements[t],children:i,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[t],children:i,collapsible:e.collapsible,collapsed:e.collapsed}}function aG(e){return rG(e,0)}function lG(e,t,i){return e.element===t?{...e,children:i}:{...e,children:nt.map(nt.from(e.children),(e=>lG(e,t,i)))}}class cG{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new nG(e,t,i),this.enabled=void 0===i.compressionEnabled||i.compressionEnabled,this.identityProvider=i.identityProvider}setChildren(e,t=nt.empty(),i){const n=i.diffIdentityProvider&&(o=i.diffIdentityProvider,{getId:e=>e.elements.map((e=>o.getId(e).toString())).join("\0")});var o;if(null===e){const e=nt.map(t,this.enabled?sG:oG);return void this._setChildren(null,e,{diffIdentityProvider:n,diffDepth:1/0})}const s=this.nodes.get(e);if(!s)throw new NV(this.user,"Unknown compressed tree node");const r=this.model.getNode(s),a=this.model.getParentNodeLocation(s),l=this.model.getNode(a),c=lG(aG(r),e,t),d=(this.enabled?sG:oG)(c),h=i.diffIdentityProvider?(e,t)=>i.diffIdentityProvider.getId(e)===i.diffIdentityProvider.getId(t):void 0;if(b(d.element.elements,r.element.elements,h))return void this._setChildren(s,d.children||nt.empty(),{diffIdentityProvider:n,diffDepth:1});const u=l.children.map((e=>e===r?d:e));this._setChildren(l.element,u,{diffIdentityProvider:n,diffDepth:r.depth-l.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const t=this.model.getNode().children,i=nt.map(t,aG),n=nt.map(i,e?sG:oG);this._setChildren(null,n,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const n=new Set;this.model.setChildren(e,t,{...i,onDidCreateNode:e=>{for(const t of e.element.elements)n.add(t),this.nodes.set(t,e.element)},onDidDeleteNode:e=>{for(const t of e.element.elements)n.has(t)||this.nodes.delete(t)}})}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if(void 0===e)return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return null===i?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;const t=this.nodes.get(e);if(!t)throw new NV(this.user,`Tree element not found: ${e}`);return t}}const dG=e=>e[e.length-1];class hG{get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map((e=>new hG(this.unwrapper,e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e,t){this.unwrapper=e,this.node=t}}class uG{get onDidSplice(){return Ci.map(this.model.onDidSplice,(({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map((e=>this.nodeMapper.map(e))),deletedNodes:t.map((e=>this.nodeMapper.map(e)))})))}get onDidChangeCollapseState(){return Ci.map(this.model.onDidChangeCollapseState,(({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t})))}get onDidChangeRenderNodeCount(){return Ci.map(this.model.onDidChangeRenderNodeCount,(e=>this.nodeMapper.map(e)))}constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||dG;const n=e=>this.elementMapper(e.elements);var o,s;this.nodeMapper=new kV((e=>new hG(n,e))),this.model=new cG(e,(o=this.nodeMapper,s=t,{splice(e,t,i){s.splice(e,t,i.map((e=>o.map(e))))},updateElementHeight(e,t){s.updateElementHeight(e,t)}}),function(e,t){return{...t,identityProvider:t.identityProvider&&{getId:i=>t.identityProvider.getId(e(i))},sorter:t.sorter&&{compare:(e,i)=>t.sorter.compare(e.elements[0],i.elements[0])},filter:t.filter&&{filter:(i,n)=>t.filter.filter(e(i),n)}}}(n,i))}setChildren(e,t=nt.empty(),i={}){this.model.setChildren(e,t,i)}isCompressionEnabled(){return this.model.isCompressionEnabled()}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return null==t?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var gG=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class mG extends iG{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(e,t,i,n,o={}){super(e,t,i,n,o),this.user=e}setChildren(e,t=nt.empty(),i){this.model.setChildren(e,t,i)}rerender(e){void 0!==e?this.model.rerender(e):this.view.rerender()}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new nG(e,t,i)}}class pG{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}constructor(e,t,i){this._compressedTreeNodeProvider=e,this.stickyScrollDelegate=t,this.renderer=i,this.templateId=i.templateId,i.onDidChangeTwistieState&&(this.onDidChangeTwistieState=i.onDidChangeTwistieState)}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){let o=this.stickyScrollDelegate.getCompressedNode(e);o||(o=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element)),1===o.element.elements.length?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=o,this.renderer.renderCompressedElements(o,t,i.data,n))}disposeElement(e,t,i,n){var o,s,r,a;i.compressedTreeNode?null===(s=(o=this.renderer).disposeCompressedElements)||void 0===s||s.call(o,i.compressedTreeNode,t,i.data,n):null===(a=(r=this.renderer).disposeElement)||void 0===a||a.call(r,e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return!!this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}gG([iE],pG.prototype,"compressedTreeNodeProvider",null);class fG{constructor(e){this.modelProvider=e,this.compressedStickyNodes=new Map}getCompressedNode(e){return this.compressedStickyNodes.get(e)}constrainStickyScrollNodes(e,t,i){if(this.compressedStickyNodes.clear(),0===e.length)return[];for(let n=0;ni||n>=t-1&&tthis,r=new fG((()=>this.model));super(e,t,i,n.map((e=>new pG(s,r,e))),{..._G(s,o),stickyScrollDelegate:r})}setChildren(e,t=nt.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new uG(e,t,i)}updateOptions(e={}){super.updateOptions(e),void 0!==e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}function vG(e){return{...e,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function SG(e,t){return!!t.parent&&(t.parent===e||SG(e,t.parent))}class CG{get element(){return this.node.element.element}get children(){return this.node.children.map((e=>new CG(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class EG{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...gd.asClassNameArray(Yn.treeItemLoading)),!0):(t.classList.remove(...gd.asClassNameArray(Yn.treeItemLoading)),!1)}disposeElement(e,t,i,n){var o,s;null===(s=(o=this.renderer).disposeElement)||void 0===s||s.call(o,this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function wG(e){return{browserEvent:e.browserEvent,elements:e.elements.map((e=>e.element))}}function TG(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}class yG extends DB{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function RG(e){return e instanceof DB?new yG(e):e}class LG{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,RG(e),t)}onDragOver(e,t,i,n,o,s=!0){return this.dnd.onDragOver(RG(e),t&&t.element,i,n,o)}drop(e,t,i,n,o){this.dnd.drop(RG(e),t&&t.element,i,n,o)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}dispose(){this.dnd.dispose()}}function IG(e){return e&&{...e,collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:t=>e.identityProvider.getId(t.element)},dnd:e.dnd&&new LG(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:t=>e.multipleSelectionController.isSelectionSingleChangeEvent({...t,element:t.element}),isSelectionRangeChangeEvent:t=>e.multipleSelectionController.isSelectionRangeChangeEvent({...t,element:t.element})},accessibilityProvider:e.accessibilityProvider&&{...e.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>{var i;return!!(null===(i=e.accessibilityProvider)||void 0===i?void 0:i.isChecked(t.element))}:void 0,getAriaLabel:t=>e.accessibilityProvider.getAriaLabel(t.element),getWidgetAriaLabel:()=>e.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))},filter:e.filter&&{filter:(t,i)=>e.filter.filter(t.element,i)},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)},sorter:void 0,expandOnlyOnTwistieClick:void 0===e.expandOnlyOnTwistieClick?void 0:"function"!=typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),defaultFindVisibility:t=>t.hasChildren&&t.stale?1:"number"==typeof e.defaultFindVisibility?e.defaultFindVisibility:void 0===e.defaultFindVisibility?2:e.defaultFindVisibility(t.element)}}function AG(e,t){t(e),e.children.forEach((e=>AG(e,t)))}class NG{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return Ci.map(this.tree.onDidChangeFocus,wG)}get onDidChangeSelection(){return Ci.map(this.tree.onDidChangeSelection,wG)}get onMouseDblClick(){return Ci.map(this.tree.onMouseDblClick,TG)}get onPointer(){return Ci.map(this.tree.onPointer,TG)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidChangeStickyScrollFocused(){return this.tree.onDidChangeStickyScrollFocused}get onDidDispose(){return this.tree.onDidDispose}constructor(e,t,i,n,o,s={}){this.user=e,this.dataSource=o,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new Ri,this._onDidChangeNodeSlowState=new Ri,this.nodeMapper=new kV((e=>new CG(e))),this.disposables=new gi,this.identityProvider=s.identityProvider,this.autoExpandSingleChildren=void 0!==s.autoExpandSingleChildren&&s.autoExpandSingleChildren,this.sorter=s.sorter,this.getDefaultCollapseState=e=>s.collapseByDefault?s.collapseByDefault(e)?yV.PreserveOrCollapsed:yV.PreserveOrExpanded:void 0,this.tree=this.createTree(e,t,i,n,s),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType,this.root=vG({element:void 0,parent:null,hasChildren:!0,defaultCollapseState:void 0}),this.identityProvider&&(this.root={...this.root,id:null}),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}createTree(e,t,i,n,o){const s=new HV(i),r=n.map((e=>new EG(e,this.nodeMapper,this._onDidChangeNodeSlowState.event))),a=IG(o)||{};return new mG(e,t,s,r,a)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}get scrollHeight(){return this.tree.scrollHeight}get renderHeight(){return this.tree.renderHeight}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}async setInput(e,t){this.refreshPromises.forEach((e=>e.cancel())),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};await this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&"number"==typeof t.scrollTop&&(this.scrollTop=t.scrollTop)}async _updateChildren(e=this.root.element,t=!0,i=!1,n,o){if(void 0===this.root.element)throw new NV(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await Ci.toPromise(this._onDidRender.event));const s=this.getDataNode(e);if(await this.refreshAndRenderNode(s,t,n,o),i)try{this.tree.rerender(s)}catch(sue){}}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}async expand(e,t=!1){if(void 0===this.root.element)throw new NV(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await Ci.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i))return!1;if(i.refreshPromise&&(await this.root.refreshPromise,await Ci.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i))return!1;const n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(await this.root.refreshPromise,await Ci.toPromise(this._onDidRender.event)),n}setSelection(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map((e=>e.element))}setFocus(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map((e=>e.element))}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new NV(this.user,`Data tree node not found: ${e}`);return t}async refreshAndRenderNode(e,t,i,n){await this.refreshNode(e,t,i),this.disposables.isDisposed||this.render(e,i,n)}async refreshNode(e,t,i){let n;return this.subTreeRefreshPromises.forEach(((o,s)=>{var r,a;!n&&((r=s)===(a=e)||SG(r,a)||SG(a,r))&&(n=o.then((()=>this.refreshNode(e,t,i))))})),n||(e!==this.root&&this.tree.getNode(e).collapsed?(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0,void this.setChildren(e,[],t,i)):this.doRefreshSubTree(e,t,i))}async doRefreshSubTree(e,t,i){let n;e.refreshPromise=new Promise((e=>n=e)),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)}));try{const n=await this.doRefreshNode(e,t,i);e.stale=!1,await Jr.settled(n.map((e=>this.doRefreshSubTree(e,t,i))))}finally{n()}}async doRefreshNode(e,t,i){let n;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=this.doGetChildren(e);if(J(t))n=Promise.resolve(t);else{const i=Wr(800);i.then((()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)}),(e=>null)),n=t.finally((()=>i.cancel()))}}else n=Promise.resolve(nt.empty());try{const o=await n;return this.setChildren(e,o,t,i)}catch(o){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),ti(o))return[];throw o}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return J(i)?this.processChildren(i):(t=Mr((async()=>this.processChildren(await i))),this.refreshPromises.set(e,t),t.finally((()=>{this.refreshPromises.delete(e)})))}_onDidChangeCollapseState({node:e,deep:t}){null!==e.element&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(Jt))}setChildren(e,t,i,n){const o=[...t];if(0===e.children.length&&0===o.length)return[];const s=new Map,r=new Map;for(const c of e.children)s.set(c.element,c),this.identityProvider&&r.set(c.id,{node:c,collapsed:this.tree.hasElement(c)&&this.tree.isCollapsed(c)});const a=[],l=o.map((t=>{const o=!!this.dataSource.hasChildren(t);if(!this.identityProvider){const i=vG({element:t,parent:e,hasChildren:o,defaultCollapseState:this.getDefaultCollapseState(t)});return o&&i.defaultCollapseState===yV.PreserveOrExpanded&&a.push(i),i}const l=this.identityProvider.getId(t).toString(),c=r.get(l);if(c){const e=c.node;return s.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=o,i?c.collapsed?(e.children.forEach((e=>AG(e,(e=>this.nodes.delete(e.element))))),e.children.splice(0,e.children.length),e.stale=!0):a.push(e):o&&!c.collapsed&&a.push(e),e}const d=vG({element:t,parent:e,id:l,hasChildren:o,defaultCollapseState:this.getDefaultCollapseState(t)});return n&&n.viewState.focus&&n.viewState.focus.indexOf(l)>-1&&n.focus.push(d),n&&n.viewState.selection&&n.viewState.selection.indexOf(l)>-1&&n.selection.push(d),(n&&n.viewState.expanded&&n.viewState.expanded.indexOf(l)>-1||o&&d.defaultCollapseState===yV.PreserveOrExpanded)&&a.push(d),d}));for(const c of s.values())AG(c,(e=>this.nodes.delete(e.element)));for(const c of l)this.nodes.set(c.element,c);return e.children.splice(0,e.children.length,...l),e!==this.root&&this.autoExpandSingleChildren&&1===l.length&&0===a.length&&(l[0].forceExpanded=!0,a.push(l[0])),a}render(e,t,i){const n=e.children.map((e=>this.asTreeElement(e,t))),o=i&&{...i,diffIdentityProvider:i.diffIdentityProvider&&{getId:e=>i.diffIdentityProvider.getId(e.element)}};this.tree.setChildren(e===this.root?null:e,n,o),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:e.forceExpanded?(i=!1,e.forceExpanded=!1):i=e.defaultCollapseState,{element:e,children:e.hasChildren?nt.map(e.children,(e=>this.asTreeElement(e,t))):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose(),this.tree.dispose()}}class kG{get element(){return{elements:this.node.element.elements.map((e=>e.element)),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map((e=>new kG(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class DG{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...gd.asClassNameArray(Yn.treeItemLoading)),!0):(t.classList.remove(...gd.asClassNameArray(Yn.treeItemLoading)),!1)}disposeElement(e,t,i,n){var o,s;null===(s=(o=this.renderer).disposeElement)||void 0===s||s.call(o,this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){var o,s;null===(s=(o=this.renderer).disposeCompressedElements)||void 0===s||s.call(o,this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=di(this.disposables)}}class OG extends NG{constructor(e,t,i,n,o,s,r={}){super(e,t,i,o,s,r),this.compressionDelegate=n,this.compressibleNodeMapper=new kV((e=>new kG(e))),this.filter=r.filter}createTree(e,t,i,n,o){const s=new HV(i),r=n.map((e=>new DG(e,this.nodeMapper,(()=>this.compressibleNodeMapper),this._onDidChangeNodeSlowState.event))),a=function(e){const t=e&&IG(e);return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{...t.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map((e=>e.element)))}}}(o)||{};return new bG(e,t,s,r,a)}asTreeElement(e,t){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,t)}}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t,i){if(!this.identityProvider)return super.render(e,t);const n=e=>this.identityProvider.getId(e).toString(),o=e=>{const t=new Set;for(const i of e){const e=this.tree.getCompressedTreeNode(i===this.root?null:i);if(e.element)for(const i of e.element.elements)t.add(n(i.element))}return t},s=o(this.tree.getSelection()),r=o(this.tree.getFocus());super.render(e,t,i);const a=this.getSelection();let l=!1;const c=this.getFocus();let d=!1;const h=e=>{const t=e.element;if(t)for(let i=0;i{const t="boolean"==typeof(i=this.filter.filter(e,1))?i?1:0:DV(i)?OV(i.visibility):OV(i);var i;if(2===t)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===t}))),super.processChildren(e)}}class xG extends iG{constructor(e,t,i,n,o,s={}){super(e,t,i,n,s),this.user=e,this.dataSource=o,this.identityProvider=s.identityProvider}createModel(e,t,i){return new nG(e,t,i)}}new Qd("isMac",Pe,pe("vs/platform/contextkey/common/contextkeys","isMac","Whether the operating system is macOS")),new Qd("isLinux",Fe,pe("vs/platform/contextkey/common/contextkeys","isLinux","Whether the operating system is Linux"));const MG=new Qd("isWindows",Me,pe("vs/platform/contextkey/common/contextkeys","isWindows","Whether the operating system is Windows")),PG=new Qd("isWeb",He,pe("vs/platform/contextkey/common/contextkeys","isWeb","Whether the platform is a web browser"));new Qd("isMacNative",Pe&&!He,pe("vs/platform/contextkey/common/contextkeys","isMacNative","Whether the operating system is macOS on a non-browser platform")),new Qd("isIOS",Ue,pe("vs/platform/contextkey/common/contextkeys","isIOS","Whether the operating system is iOS")),new Qd("isMobile",Ve,pe("vs/platform/contextkey/common/contextkeys","isMobile","Whether the platform is a mobile web browser")),new Qd("isDevelopment",!1,!0),new Qd("productQualityType","",pe("vs/platform/contextkey/common/contextkeys","productQualityType","Quality type of VS Code"));const FG="inputFocus",BG=new Qd(FG,!1,pe("vs/platform/contextkey/common/contextkeys","inputFocus","Whether keyboard focus is inside an input box"));var HG=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},WG=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const UG=id("listService"),VG=new Qd("listScrollAtBoundary","none");Dd.or(VG.isEqualTo("top"),VG.isEqualTo("both")),Dd.or(VG.isEqualTo("bottom"),VG.isEqualTo("both"));const GG=new Qd("listFocus",!0),zG=new Qd("treestickyScrollFocused",!1),KG=new Qd("listSupportsMultiselect",!0),YG=Dd.and(GG,Dd.not(FG),zG.negate()),qG=new Qd("listHasSelectionOrFocus",!1),$G=new Qd("listDoubleSelection",!1),jG=new Qd("listMultiSelection",!1),XG=new Qd("listSelectionNavigation",!1),JG=new Qd("listSupportsFind",!0),QG=new Qd("treeElementCanCollapse",!1),ZG=new Qd("treeElementHasParent",!1),ez=new Qd("treeElementCanExpand",!1),tz=new Qd("treeElementHasChild",!1),iz=new Qd("treeFindOpen",!1),nz="listTypeNavigationMode",oz="listAutomaticKeyboardNavigation";function sz(e,t){const i=e.createScoped(t.getHTMLElement());return GG.bindTo(i),i}function rz(e,t){const i=VG.bindTo(e),n=()=>{const e=0===t.scrollTop,n=t.scrollHeight-t.renderHeight-t.scrollTop<1;e&&n?i.set("both"):e?i.set("top"):n?i.set("bottom"):i.set("none")};return n(),t.onDidScroll(n)}const az="workbench.list.multiSelectModifier",lz="workbench.list.openMode",cz="workbench.list.horizontalScrolling",dz="workbench.list.defaultFindMode",hz="workbench.list.typeNavigationMode",uz="workbench.list.keyboardNavigation",gz="workbench.list.scrollByPage",mz="workbench.list.defaultFindMatchType",pz="workbench.tree.indent",fz="workbench.tree.renderIndentGuides",_z="workbench.list.smoothScrolling",bz="workbench.list.mouseWheelScrollSensitivity",vz="workbench.list.fastScrollSensitivity",Sz="workbench.tree.expandMode",Cz="workbench.tree.enableStickyScroll",Ez="workbench.tree.stickyScrollMaxItemCount";function wz(e){return"alt"===e.getValue(az)}class Tz extends mi{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=wz(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(az)&&(this.useAltAsMultipleSelectionModifier=wz(this.configurationService))})))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:GH(e)}isSelectionRangeChangeEvent(e){return zH(e)}}function yz(e,t){var i;const n=e.get($u),o=e.get(tT),s=new gi;return[{...t,keyboardNavigationDelegate:{mightProducePrintableCharacter:e=>o.mightProducePrintableCharacter(e)},smoothScrolling:Boolean(n.getValue(_z)),mouseWheelScrollSensitivity:n.getValue(bz),fastScrollSensitivity:n.getValue(vz),multipleSelectionController:null!==(i=t.multipleSelectionController)&&void 0!==i?i:s.add(new Tz(n)),keyboardNavigationEventFilter:Oz(o),scrollByPage:Boolean(n.getValue(gz))},s]}let Rz=class extends tW{constructor(e,t,i,n,o,s,r,a,l){const c=void 0!==o.horizontalScrolling?o.horizontalScrolling:Boolean(a.getValue(cz)),[d,h]=l.invokeFunction(yz,o);super(e,t,i,n,{keyboardSupport:!1,...d,horizontalScrolling:c}),this.disposables.add(h),this.contextKeyService=sz(s,this),this.disposables.add(rz(this.contextKeyService,this)),this.listSupportsMultiSelect=KG.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport),XG.bindTo(this.contextKeyService).set(Boolean(o.selectionNavigation)),this.listHasSelectionOrFocus=qG.bindTo(this.contextKeyService),this.listDoubleSelection=$G.bindTo(this.contextKeyService),this.listMultiSelection=jG.bindTo(this.contextKeyService),this.horizontalScrolling=o.horizontalScrolling,this._useAltAsMultipleSelectionModifier=wz(a),this.disposables.add(this.contextKeyService),this.disposables.add(r.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(a.onDidChangeConfiguration((e=>{e.affectsConfiguration(az)&&(this._useAltAsMultipleSelectionModifier=wz(a));let t={};if(e.affectsConfiguration(cz)&&void 0===this.horizontalScrolling){const e=Boolean(a.getValue(cz));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(gz)){const e=Boolean(a.getValue(gz));t={...t,scrollByPage:e}}if(e.affectsConfiguration(_z)){const e=Boolean(a.getValue(_z));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(bz)){const e=a.getValue(bz);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(vz)){const e=a.getValue(vz);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new Nz(this,{configurationService:a,...o}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?NW(e):AW)}};Rz=HG([WG(5,Zd),WG(6,UG),WG(7,$u),WG(8,td)],Rz);let Lz=class extends YU{constructor(e,t,i,n,o,s,r,a,l){const c=void 0!==o.horizontalScrolling?o.horizontalScrolling:Boolean(a.getValue(cz)),[d,h]=l.invokeFunction(yz,o);super(e,t,i,n,{keyboardSupport:!1,...d,horizontalScrolling:c}),this.disposables=new gi,this.disposables.add(h),this.contextKeyService=sz(s,this),this.disposables.add(rz(this.contextKeyService,this.widget)),this.horizontalScrolling=o.horizontalScrolling,this.listSupportsMultiSelect=KG.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport),XG.bindTo(this.contextKeyService).set(Boolean(o.selectionNavigation)),this._useAltAsMultipleSelectionModifier=wz(a),this.disposables.add(this.contextKeyService),this.disposables.add(r.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(a.onDidChangeConfiguration((e=>{e.affectsConfiguration(az)&&(this._useAltAsMultipleSelectionModifier=wz(a));let t={};if(e.affectsConfiguration(cz)&&void 0===this.horizontalScrolling){const e=Boolean(a.getValue(cz));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(gz)){const e=Boolean(a.getValue(gz));t={...t,scrollByPage:e}}if(e.affectsConfiguration(_z)){const e=Boolean(a.getValue(_z));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(bz)){const e=a.getValue(bz);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(vz)){const e=a.getValue(vz);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new Nz(this,{configurationService:a,...o}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?NW(e):AW)}dispose(){this.disposables.dispose(),super.dispose()}};Lz=HG([WG(5,Zd),WG(6,UG),WG(7,$u),WG(8,td)],Lz);let Iz=class extends hV{constructor(e,t,i,n,o,s,r,a,l,c){const d=void 0!==s.horizontalScrolling?s.horizontalScrolling:Boolean(l.getValue(cz)),[h,u]=c.invokeFunction(yz,s);super(e,t,i,n,o,{keyboardSupport:!1,...h,horizontalScrolling:d}),this.disposables.add(u),this.contextKeyService=sz(r,this),this.disposables.add(rz(this.contextKeyService,this)),this.listSupportsMultiSelect=KG.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==s.multipleSelectionSupport),XG.bindTo(this.contextKeyService).set(Boolean(s.selectionNavigation)),this.listHasSelectionOrFocus=qG.bindTo(this.contextKeyService),this.listDoubleSelection=$G.bindTo(this.contextKeyService),this.listMultiSelection=jG.bindTo(this.contextKeyService),this.horizontalScrolling=s.horizontalScrolling,this._useAltAsMultipleSelectionModifier=wz(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(s.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(az)&&(this._useAltAsMultipleSelectionModifier=wz(l));let t={};if(e.affectsConfiguration(cz)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(cz));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(gz)){const e=Boolean(l.getValue(gz));t={...t,scrollByPage:e}}if(e.affectsConfiguration(_z)){const e=Boolean(l.getValue(_z));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(bz)){const e=l.getValue(bz);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(vz)){const e=l.getValue(vz);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new kz(this,{configurationService:l,...s}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?NW(e):AW)}dispose(){this.disposables.dispose(),super.dispose()}};Iz=HG([WG(6,Zd),WG(7,UG),WG(8,$u),WG(9,td)],Iz);class Az extends mi{constructor(e,t){var i;super(),this.widget=e,this._onDidOpen=this._register(new Ri),this.onDidOpen=this._onDidOpen.event,this._register(Ci.filter(this.widget.onDidChangeSelection,(e=>gc(e.browserEvent)))((e=>this.onSelectionFromKeyboard(e)))),this._register(this.widget.onPointer((e=>this.onPointer(e.element,e.browserEvent)))),this._register(this.widget.onMouseDblClick((e=>this.onMouseDblClick(e.element,e.browserEvent)))),"boolean"!=typeof(null==t?void 0:t.openOnSingleClick)&&(null==t?void 0:t.configurationService)?(this.openOnSingleClick="doubleClick"!==(null==t?void 0:t.configurationService.getValue(lz)),this._register(null==t?void 0:t.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(lz)&&(this.openOnSingleClick="doubleClick"!==(null==t?void 0:t.configurationService.getValue(lz)))})))):this.openOnSingleClick=null===(i=null==t?void 0:t.openOnSingleClick)||void 0===i||i}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;const t=e.browserEvent,i="boolean"!=typeof t.preserveFocus||t.preserveFocus,n="boolean"==typeof t.pinned?t.pinned:!i;this._open(this.getSelectedElement(),i,n,!1,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick)return;if(2===t.detail)return;const i=1===t.button,n=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!0,i,n,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;const n=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!1,!0,n,t)}_open(e,t,i,n,o){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:o})}}class Nz extends Az{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class kz extends Az{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class Dz extends Az{constructor(e,t){super(e,t)}getSelectedElement(){var e;return null!==(e=this.widget.getSelection()[0])&&void 0!==e?e:void 0}}function Oz(e){let t=!1;return i=>{if(i.toKeyCodeChord().isModifierKey())return!1;if(t)return t=!1,!1;const n=e.softDispatch(i,i.target);return 1===n.kind?(t=!0,!1):(t=!1,0===n.kind)}}let xz=class extends mG{constructor(e,t,i,n,o,s,r,a,l){const{options:c,getTypeNavigationMode:d,disposable:h}=s.invokeFunction(Uz,o);super(e,t,i,n,c),this.disposables.add(h),this.internals=new Vz(this,o,d,o.overrideStyles,r,a,l),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};xz=HG([WG(5,td),WG(6,Zd),WG(7,UG),WG(8,$u)],xz);let Mz=class extends bG{constructor(e,t,i,n,o,s,r,a,l){const{options:c,getTypeNavigationMode:d,disposable:h}=s.invokeFunction(Uz,o);super(e,t,i,n,c),this.disposables.add(h),this.internals=new Vz(this,o,d,o.overrideStyles,r,a,l),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};Mz=HG([WG(5,td),WG(6,Zd),WG(7,UG),WG(8,$u)],Mz);let Pz=class extends xG{constructor(e,t,i,n,o,s,r,a,l,c){const{options:d,getTypeNavigationMode:h,disposable:u}=r.invokeFunction(Uz,s);super(e,t,i,n,o,d),this.disposables.add(u),this.internals=new Vz(this,s,h,s.overrideStyles,a,l,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),void 0!==e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};Pz=HG([WG(6,td),WG(7,Zd),WG(8,UG),WG(9,$u)],Pz);let Fz=class extends NG{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,n,o,s,r,a,l,c){const{options:d,getTypeNavigationMode:h,disposable:u}=r.invokeFunction(Uz,s);super(e,t,i,n,o,d),this.disposables.add(u),this.internals=new Vz(this,s,h,s.overrideStyles,a,l,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};Fz=HG([WG(6,td),WG(7,Zd),WG(8,UG),WG(9,$u)],Fz);let Bz=class extends OG{constructor(e,t,i,n,o,s,r,a,l,c,d){const{options:h,getTypeNavigationMode:u,disposable:g}=a.invokeFunction(Uz,r);super(e,t,i,n,o,s,h),this.disposables.add(g),this.internals=new Vz(this,r,u,r.overrideStyles,l,c,d),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};function Hz(e){const t=e.getValue(dz);if("highlight"===t)return IV.Highlight;if("filter"===t)return IV.Filter;const i=e.getValue(uz);return"simple"===i||"highlight"===i?IV.Highlight:"filter"===i?IV.Filter:void 0}function Wz(e){const t=e.getValue(mz);return"fuzzy"===t?AV.Fuzzy:"contiguous"===t?AV.Contiguous:void 0}function Uz(e,t){var i;const n=e.get($u),o=e.get(Cx),s=e.get(Zd),r=e.get(td),a=void 0!==t.horizontalScrolling?t.horizontalScrolling:Boolean(n.getValue(cz)),[l,c]=r.invokeFunction(yz,t),d=t.paddingBottom,h=void 0!==t.renderIndentGuides?t.renderIndentGuides:n.getValue(fz);return{getTypeNavigationMode:()=>{const e=s.getContextKeyValue(nz);if("automatic"===e)return BH.Automatic;if("trigger"===e)return BH.Trigger;if(!1===s.getContextKeyValue(oz))return BH.Trigger;const t=n.getValue(hz);return"automatic"===t?BH.Automatic:"trigger"===t?BH.Trigger:void 0},disposable:c,options:{keyboardSupport:!1,...l,indent:"number"==typeof n.getValue(pz)?n.getValue(pz):void 0,renderIndentGuides:h,smoothScrolling:Boolean(n.getValue(_z)),defaultFindMode:Hz(n),defaultFindMatchType:Wz(n),horizontalScrolling:a,scrollByPage:Boolean(n.getValue(gz)),paddingBottom:d,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:null!==(i=t.expandOnlyOnTwistieClick)&&void 0!==i?i:"doubleClick"===n.getValue(Sz),contextViewProvider:o,findWidgetStyles:LW,enableStickyScroll:Boolean(n.getValue(Cz)),stickyScrollMaxItemCount:Number(n.getValue(Ez))}}}Bz=HG([WG(7,td),WG(8,Zd),WG(9,UG),WG(10,$u)],Bz);let Vz=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(e,t,i,n,o,s,r){var a;this.tree=e,this.disposables=[],this.contextKeyService=sz(o,e),this.disposables.push(rz(this.contextKeyService,e)),this.listSupportsMultiSelect=KG.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==t.multipleSelectionSupport),XG.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.listSupportFindWidget=JG.bindTo(this.contextKeyService),this.listSupportFindWidget.set(null===(a=t.findWidgetEnabled)||void 0===a||a),this.hasSelectionOrFocus=qG.bindTo(this.contextKeyService),this.hasDoubleSelection=$G.bindTo(this.contextKeyService),this.hasMultiSelection=jG.bindTo(this.contextKeyService),this.treeElementCanCollapse=QG.bindTo(this.contextKeyService),this.treeElementHasParent=ZG.bindTo(this.contextKeyService),this.treeElementCanExpand=ez.bindTo(this.contextKeyService),this.treeElementHasChild=tz.bindTo(this.contextKeyService),this.treeFindOpen=iz.bindTo(this.contextKeyService),this.treeStickyScrollFocused=zG.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=wz(r),this.updateStyleOverrides(n);const l=()=>{const t=e.getFocus()[0];if(!t)return;const i=e.getNode(t);this.treeElementCanCollapse.set(i.collapsible&&!i.collapsed),this.treeElementHasParent.set(!!e.getParentElement(t)),this.treeElementCanExpand.set(i.collapsible&&i.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(t))},c=new Set;c.add(nz),c.add(oz),this.disposables.push(this.contextKeyService,s.register(e),e.onDidChangeSelection((()=>{const t=e.getSelection(),i=e.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.hasSelectionOrFocus.set(t.length>0||i.length>0),this.hasMultiSelection.set(t.length>1),this.hasDoubleSelection.set(2===t.length)}))})),e.onDidChangeFocus((()=>{const t=e.getSelection(),i=e.getFocus();this.hasSelectionOrFocus.set(t.length>0||i.length>0),l()})),e.onDidChangeCollapseState(l),e.onDidChangeModel(l),e.onDidChangeFindOpenState((e=>this.treeFindOpen.set(e))),e.onDidChangeStickyScrollFocused((e=>this.treeStickyScrollFocused.set(e))),r.onDidChangeConfiguration((n=>{let o={};if(n.affectsConfiguration(az)&&(this._useAltAsMultipleSelectionModifier=wz(r)),n.affectsConfiguration(pz)){const e=r.getValue(pz);o={...o,indent:e}}if(n.affectsConfiguration(fz)&&void 0===t.renderIndentGuides){const e=r.getValue(fz);o={...o,renderIndentGuides:e}}if(n.affectsConfiguration(_z)){const e=Boolean(r.getValue(_z));o={...o,smoothScrolling:e}}if(n.affectsConfiguration(dz)||n.affectsConfiguration(uz)){const e=Hz(r);o={...o,defaultFindMode:e}}if(n.affectsConfiguration(hz)||n.affectsConfiguration(uz)){const e=i();o={...o,typeNavigationMode:e}}if(n.affectsConfiguration(mz)){const e=Wz(r);o={...o,defaultFindMatchType:e}}if(n.affectsConfiguration(cz)&&void 0===t.horizontalScrolling){const e=Boolean(r.getValue(cz));o={...o,horizontalScrolling:e}}if(n.affectsConfiguration(gz)){const e=Boolean(r.getValue(gz));o={...o,scrollByPage:e}}if(n.affectsConfiguration(Sz)&&void 0===t.expandOnlyOnTwistieClick&&(o={...o,expandOnlyOnTwistieClick:"doubleClick"===r.getValue(Sz)}),n.affectsConfiguration(Cz)){const e=r.getValue(Cz);o={...o,enableStickyScroll:e}}if(n.affectsConfiguration(Ez)){const e=Math.max(1,r.getValue(Ez));o={...o,stickyScrollMaxItemCount:e}}if(n.affectsConfiguration(bz)){const e=r.getValue(bz);o={...o,mouseWheelScrollSensitivity:e}}if(n.affectsConfiguration(vz)){const e=r.getValue(vz);o={...o,fastScrollSensitivity:e}}Object.keys(o).length>0&&e.updateOptions(o)})),this.contextKeyService.onDidChangeContext((t=>{t.affectsSome(c)&&e.updateOptions({typeNavigationMode:i()})}))),this.navigator=new Dz(e,{configurationService:r,...t}),this.disposables.push(this.navigator)}updateOptions(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){this.tree.style(e?NW(e):AW)}dispose(){this.disposables=di(this.disposables)}};Vz=HG([WG(4,Zd),WG(5,UG),WG(6,$u)],Vz),dh.as(lg).registerConfiguration({id:"workbench",order:7,title:pe("vs/platform/list/browser/listService","workbenchConfigurationTitle","Workbench"),type:"object",properties:{[az]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[pe("vs/platform/list/browser/listService","multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),pe("vs/platform/list/browser/listService","multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:pe("vs/platform/list/browser/listService",{key:"multiSelectModifier",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 an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[lz]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:pe("vs/platform/list/browser/listService",{key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[cz]:{type:"boolean",default:!1,description:pe("vs/platform/list/browser/listService","horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[gz]:{type:"boolean",default:!1,description:pe("vs/platform/list/browser/listService","list.scrollByPage","Controls whether clicks in the scrollbar scroll page by page.")},[pz]:{type:"number",default:8,minimum:4,maximum:40,description:pe("vs/platform/list/browser/listService","tree indent setting","Controls tree indentation in pixels.")},[fz]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:pe("vs/platform/list/browser/listService","render tree indent guides","Controls whether the tree should render indent guides.")},[_z]:{type:"boolean",default:!1,description:pe("vs/platform/list/browser/listService","list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[bz]:{type:"number",default:1,markdownDescription:pe("vs/platform/list/browser/listService","Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[vz]:{type:"number",default:5,markdownDescription:pe("vs/platform/list/browser/listService","Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[dz]:{type:"string",enum:["highlight","filter"],enumDescriptions:[pe("vs/platform/list/browser/listService","defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),pe("vs/platform/list/browser/listService","defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:pe("vs/platform/list/browser/listService","defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[uz]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[pe("vs/platform/list/browser/listService","keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),pe("vs/platform/list/browser/listService","keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),pe("vs/platform/list/browser/listService","keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:pe("vs/platform/list/browser/listService","keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:pe("vs/platform/list/browser/listService","keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' and\t'workbench.list.typeNavigationMode' instead.")},[mz]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[pe("vs/platform/list/browser/listService","defaultFindMatchTypeSettingKey.fuzzy","Use fuzzy matching when searching."),pe("vs/platform/list/browser/listService","defaultFindMatchTypeSettingKey.contiguous","Use contiguous matching when searching.")],default:"fuzzy",description:pe("vs/platform/list/browser/listService","defaultFindMatchTypeSettingKey","Controls the type of matching used when searching lists and trees in the workbench.")},[Sz]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:pe("vs/platform/list/browser/listService","expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[Cz]:{type:"boolean",default:!0,description:pe("vs/platform/list/browser/listService","sticky scroll","Controls whether sticky scrolling is enabled in trees.")},[Ez]:{type:"number",minimum:1,default:7,markdownDescription:pe("vs/platform/list/browser/listService","sticky scroll maximum items","Controls the number of sticky elements displayed in the tree when `#workbench.tree.enableStickyScroll#` is enabled.")},[hz]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:pe("vs/platform/list/browser/listService","typeNavigationMode2","Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run.")}}});class Gz extends mi{constructor(e,t){var i;super(),this.options=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=null!==(i=null==t?void 0:t.supportIcons)&&void 0!==i&&i,this.domNode=vc(e,yc("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",n){e||(e=""),n&&(e=Gz.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&he(this.highlights,t)||(this.text=e,this.title=i,this.highlights=t,this.render())}render(){var e,t,i,n;const o=[];let s=0;for(const r of this.highlights){if(r.end===r.start)continue;if(s{n="\r\n"===e?-1:0,o+=i;for(const i of t)i.end<=o||(i.start>=o&&(i.start+=n),i.end>=o&&(i.end+=n));return i+=n,"⏎"}))}}class zz{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class Kz extends mi{constructor(e,t){var i;super(),this.customHovers=new Map,this.creationOptions=t,this.domNode=this._register(new zz(vc(e,yc(".monaco-icon-label")))),this.labelContainer=vc(this.domNode.element,yc(".monaco-icon-label-container")),this.nameContainer=vc(this.labelContainer,yc("span.monaco-icon-name-container")),(null==t?void 0:t.supportHighlights)||(null==t?void 0:t.supportIcons)?this.nameNode=this._register(new qz(this.nameContainer,!!t.supportIcons)):this.nameNode=new Yz(this.nameContainer),this.hoverDelegate=null!==(i=null==t?void 0:t.hoverDelegate)&&void 0!==i?i:vB("mouse")}get element(){return this.domNode.element}setLabel(e,t,i){var n;const o=["monaco-icon-label"],s=["monaco-icon-label-container"];let r="";if(i&&(i.extraClasses&&o.push(...i.extraClasses),i.italic&&o.push("italic"),i.strikethrough&&o.push("strikethrough"),i.disabledCommand&&s.push("disabled"),i.title&&("string"==typeof i.title?r+=i.title:r+=e)),this.domNode.className=o.join(" "),this.domNode.element.setAttribute("aria-label",r),this.labelContainer.className=s.join(" "),this.setupHover((null==i?void 0:i.descriptionTitle)?this.labelContainer:this.element,null==i?void 0:i.title),this.nameNode.setLabel(e,i),t||this.descriptionNode){const e=this.getOrCreateDescriptionNode();e instanceof Gz?(e.set(t||"",i?i.descriptionMatches:void 0,void 0,null==i?void 0:i.labelEscapeNewLines),this.setupHover(e.element,null==i?void 0:i.descriptionTitle)):(e.textContent=t&&(null==i?void 0:i.labelEscapeNewLines)?Gz.escapeNewLines(t,[]):t||"",this.setupHover(e.element,(null==i?void 0:i.descriptionTitle)||""),e.empty=!t)}((null==i?void 0:i.suffix)||this.suffixNode)&&(this.getOrCreateSuffixNode().textContent=null!==(n=null==i?void 0:i.suffix)&&void 0!==n?n:"")}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),t)if(this.hoverDelegate.showNativeHover){(function(e,t){q(t)?e.title=VM(t):(null==t?void 0:t.markdownNotSupportedFallback)?e.title=t.markdownNotSupportedFallback:e.removeAttribute("title")})(e,t)}else{const i=EB().setupUpdatableHover(this.hoverDelegate,e,t);i&&this.customHovers.set(e,i)}else e.removeAttribute("title")}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){const i=this._register(new zz((e=this.nameContainer,t=yc("span.monaco-icon-suffix-container"),e.after(t),t)));this.suffixNode=this._register(new zz(vc(i.element,yc("span.label-suffix"))))}var e,t;return this.suffixNode}getOrCreateDescriptionNode(){var e;if(!this.descriptionNode){const t=this._register(new zz(vc(this.labelContainer,yc("span.monaco-icon-description-container"))));(null===(e=this.creationOptions)||void 0===e?void 0:e.supportDescriptionHighlights)?this.descriptionNode=this._register(new Gz(vc(t.element,yc("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons})):this.descriptionNode=this._register(new zz(vc(t.element,yc("span.label-description"))))}return this.descriptionNode}}class Yz{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!he(this.options,t))if(this.label=e,this.options=t,"string"==typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=vc(this.container,yc("a.label-name",{id:null==t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i{const o={start:n,end:n+e.length},s=i.map((e=>FP.intersect(o,e))).filter((e=>!FP.isEmpty(e))).map((({start:e,end:t})=>({start:e-n,end:t-n})));return n=o.end+t.length,s}))}(e,i,null==t?void 0:t.matches);for(let o=0;o{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}}));var Qz,Zz=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},eK=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const tK=yc;var iK,nK;!function(e){e[e.First=1]="First",e[e.Second=2]="Second",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Previous=5]="Previous",e[e.NextPage=6]="NextPage",e[e.PreviousPage=7]="PreviousPage",e[e.NextSeparator=8]="NextSeparator",e[e.PreviousSeparator=9]="PreviousSeparator"}(iK||(iK={}));class oK{constructor(e,t,i){this.index=e,this.hasCheckbox=t,this._hidden=!1,this._init=new us((()=>{var e;const t=null!==(e=i.label)&&void 0!==e?e:"",n=zM(t).text.trim(),o=i.ariaLabel||[t,this.saneDescription,this.saneDetail].map((e=>{return(t=e)?t.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():"";var t})).filter((e=>!!e)).join(", ");return{saneLabel:t,saneSortLabel:n,saneAriaLabel:o}})),this._saneDescription=i.description,this._saneTooltip=i.tooltip}get saneLabel(){return this._init.value.saneLabel}get saneSortLabel(){return this._init.value.saneSortLabel}get saneAriaLabel(){return this._init.value.saneAriaLabel}get element(){return this._element}set element(e){this._element=e}get hidden(){return this._hidden}set hidden(e){this._hidden=e}get saneDescription(){return this._saneDescription}set saneDescription(e){this._saneDescription=e}get saneDetail(){return this._saneDetail}set saneDetail(e){this._saneDetail=e}get saneTooltip(){return this._saneTooltip}set saneTooltip(e){this._saneTooltip=e}get labelHighlights(){return this._labelHighlights}set labelHighlights(e){this._labelHighlights=e}get descriptionHighlights(){return this._descriptionHighlights}set descriptionHighlights(e){this._descriptionHighlights=e}get detailHighlights(){return this._detailHighlights}set detailHighlights(e){this._detailHighlights=e}}class sK extends oK{constructor(e,t,i,n,o,s){var r,a,l;super(e,t,o),this.fireButtonTriggered=i,this._onChecked=n,this.item=o,this._separator=s,this._checked=!1,this.onChecked=t?Ci.map(Ci.filter(this._onChecked.event,(e=>e.element===this)),(e=>e.checked)):Ci.None,this._saneDetail=o.detail,this._labelHighlights=null===(r=o.highlights)||void 0===r?void 0:r.label,this._descriptionHighlights=null===(a=o.highlights)||void 0===a?void 0:a.description,this._detailHighlights=null===(l=o.highlights)||void 0===l?void 0:l.detail}get separator(){return this._separator}set separator(e){this._separator=e}get checked(){return this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire({element:this,checked:e}))}get checkboxDisabled(){return!!this.item.disabled}}!function(e){e[e.NONE=0]="NONE",e[e.MOUSE_HOVER=1]="MOUSE_HOVER",e[e.ACTIVE_ITEM=2]="ACTIVE_ITEM"}(nK||(nK={}));class rK extends oK{constructor(e,t,i){super(e,!1,i),this.fireSeparatorButtonTriggered=t,this.separator=i,this.children=new Array,this.focusInsideSeparator=nK.NONE}}class aK{getHeight(e){return e instanceof rK?30:e.saneDetail?44:22}getTemplateId(e){return e instanceof sK?dK.ID:hK.ID}}class lK{getWidgetAriaLabel(){return pe("vs/platform/quickinput/browser/quickInputTree","quickInput","Quick Input")}getAriaLabel(e){var t;return(null===(t=e.separator)||void 0===t?void 0:t.label)?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(e.hasCheckbox&&e instanceof sK)return{get value(){return e.checked},onDidChange:t=>e.onChecked((()=>t()))}}}class cK{constructor(e){this.hoverDelegate=e}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=new gi,t.toDisposeTemplate=new gi,t.entry=vc(e,tK(".quick-input-list-entry"));const i=vc(t.entry,tK("label.quick-input-list-label"));t.toDisposeTemplate.add(Ll(i,mc.CLICK,(e=>{t.checkbox.offsetParent||e.preventDefault()}))),t.checkbox=vc(i,tK("input.quick-input-list-checkbox")),t.checkbox.type="checkbox";const n=vc(i,tK(".quick-input-list-rows")),o=vc(n,tK(".quick-input-list-row")),s=vc(n,tK(".quick-input-list-row"));t.label=new Kz(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.label),t.icon=Sc(t.label.element,tK(".quick-input-list-icon"));const r=vc(o,tK(".quick-input-list-entry-keybinding"));t.keybinding=new Xz(r,qe),t.toDisposeTemplate.add(t.keybinding);const a=vc(s,tK(".quick-input-list-label-meta"));return t.detail=new Kz(a,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.detail),t.separator=vc(t.entry,tK(".quick-input-list-separator")),t.actionBar=new zW(t.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.add(t.actionBar),t}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose()}disposeElement(e,t,i){i.toDisposeElement.clear(),i.actionBar.clear()}}let dK=Qz=class extends cK{constructor(e,t){super(e),this.themeService=t,this._itemsWithSeparatorsFrequency=new Map}get templateId(){return Qz.ID}renderTemplate(e){const t=super.renderTemplate(e);return t.toDisposeTemplate.add(Ll(t.checkbox,mc.CHANGE,(e=>{t.element.checked=t.checkbox.checked}))),t}renderElement(e,t,i){var n,o,s;const r=e.element;i.element=r,r.element=null!==(n=i.entry)&&void 0!==n?n:void 0;const a=r.item;i.checkbox.checked=r.checked,i.toDisposeElement.add(r.onChecked((e=>i.checkbox.checked=e))),i.checkbox.disabled=r.checkboxDisabled;const{labelHighlights:l,descriptionHighlights:c,detailHighlights:d}=r;if(a.iconPath){const e=kC(this.themeService.getColorTheme().type)?a.iconPath.dark:null!==(o=a.iconPath.light)&&void 0!==o?o:a.iconPath.dark,t=An.revive(e);i.icon.className="quick-input-list-icon",i.icon.style.backgroundImage=Nc(t)}else i.icon.style.backgroundImage="",i.icon.className=a.iconClass?`quick-input-list-icon ${a.iconClass}`:"";let h;!r.saneTooltip&&r.saneDescription&&(h={markdown:{value:r.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:r.saneDescription});const u={matches:l||[],descriptionTitle:h,descriptionMatches:c||[],labelEscapeNewLines:!0};if(u.extraClasses=a.iconClasses,u.italic=a.italic,u.strikethrough=a.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item"),i.label.setLabel(r.saneLabel,r.saneDescription,u),i.keybinding.set(a.keybinding),r.saneDetail){let e;r.saneTooltip||(e={markdown:{value:r.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:r.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(r.saneDetail,void 0,{matches:d,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";(null===(s=r.separator)||void 0===s?void 0:s.label)?(i.separator.textContent=r.separator.label,i.separator.style.display="",this.addItemWithSeparator(r)):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!r.separator);const g=a.buttons;g&&g.length?(i.actionBar.push(g.map(((e,t)=>GU(e,`id-${t}`,(()=>r.fireButtonTriggered({button:e,item:r.item}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){this.removeItemWithSeparator(e.element),super.disposeElement(e,t,i)}isItemWithSeparatorVisible(e){return this._itemsWithSeparatorsFrequency.has(e)}addItemWithSeparator(e){this._itemsWithSeparatorsFrequency.set(e,(this._itemsWithSeparatorsFrequency.get(e)||0)+1)}removeItemWithSeparator(e){const t=this._itemsWithSeparatorsFrequency.get(e)||0;t>1?this._itemsWithSeparatorsFrequency.set(e,t-1):this._itemsWithSeparatorsFrequency.delete(e)}};dK.ID="quickpickitem",dK=Qz=Zz([eK(1,KE)],dK);class hK extends cK{constructor(){super(...arguments),this._visibleSeparatorsFrequency=new Map}get templateId(){return hK.ID}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()]}isSeparatorVisible(e){return this._visibleSeparatorsFrequency.has(e)}renderElement(e,t,i){var n;const o=e.element;i.element=o,o.element=null!==(n=i.entry)&&void 0!==n?n:void 0,o.element.classList.toggle("focus-inside",!!o.focusInsideSeparator);const s=o.separator,{labelHighlights:r,descriptionHighlights:a,detailHighlights:l}=o;let c;i.icon.style.backgroundImage="",i.icon.className="",!o.saneTooltip&&o.saneDescription&&(c={markdown:{value:o.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:o.saneDescription});const d={matches:r||[],descriptionTitle:c,descriptionMatches:a||[],labelEscapeNewLines:!0};if(i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(o.saneLabel,o.saneDescription,d),o.saneDetail){let e;o.saneTooltip||(e={markdown:{value:o.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:o.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(o.saneDetail,void 0,{matches:l,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";i.separator.style.display="none",i.entry.classList.add("quick-input-list-separator-border");const h=s.buttons;h&&h.length?(i.actionBar.push(h.map(((e,t)=>GU(e,`id-${t}`,(()=>o.fireSeparatorButtonTriggered({button:e,separator:o.separator}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions"),this.addSeparator(o)}disposeElement(e,t,i){var n;this.removeSeparator(e.element),this.isSeparatorVisible(e.element)||null===(n=e.element.element)||void 0===n||n.classList.remove("focus-inside"),super.disposeElement(e,t,i)}addSeparator(e){this._visibleSeparatorsFrequency.set(e,(this._visibleSeparatorsFrequency.get(e)||0)+1)}removeSeparator(e){const t=this._visibleSeparatorsFrequency.get(e)||0;t>1?this._visibleSeparatorsFrequency.set(e,t-1):this._visibleSeparatorsFrequency.delete(e)}}hK.ID="quickpickseparator";let uK=class extends mi{constructor(e,t,i,n,o){super(),this.parent=e,this.hoverDelegate=t,this.linkOpenerDelegate=i,this._onKeyDown=new Ri,this.onKeyDown=this._onKeyDown.event,this._onLeave=new Ri,this.onLeave=this._onLeave.event,this._onChangedAllVisibleChecked=new Ri,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new Ri,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new Ri,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new Ri,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new Ri,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new Ri,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._onTriggerEmptySelectionOrFocus=new Ri,this._elementChecked=new Ri,this._inputElements=new Array,this._elementTree=new Array,this._itemElements=new Array,this._elementDisposable=this._register(new gi),this._shouldFireCheckedEvents=!0,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._container=vc(this.parent,tK(".quick-input-list")),this._separatorRenderer=new hK(t),this._itemRenderer=o.createInstance(dK,t),this._tree=this._register(o.createInstance(xz,"QuickInput",this._container,new aK,[this._itemRenderer,this._separatorRenderer],{accessibilityProvider:new lK,setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:LV.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,identityProvider:{getId:e=>{const t=e.item||e.separator;if(void 0===t)return"";if(void 0!==t.id)return t.id;let i=`label:${t.label}`;return i+=`$$description:${t.description}`,"separator"!==t.type&&(i+=`$$detail:${t.detail}`),i}},alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=n,this._registerListeners()}get onDidChangeFocus(){return Ci.map(Ci.any(this._tree.onDidChangeFocus,this._onTriggerEmptySelectionOrFocus.event),(e=>e.elements.filter((e=>e instanceof sK)).map((e=>e.item))))}get onDidChangeSelection(){return Ci.map(Ci.any(this._tree.onDidChangeSelection,this._onTriggerEmptySelectionOrFocus.event),(e=>({items:e.elements.filter((e=>e instanceof sK)).map((e=>e.item)),event:e.browserEvent})))}get scrollTop(){return this._tree.scrollTop}set scrollTop(e){this._tree.scrollTop=e}get ariaLabel(){return this._tree.ariaLabel}set ariaLabel(e){this._tree.ariaLabel=null!=e?e:""}set enabled(e){this._tree.getHTMLElement().style.pointerEvents=e?"":"none"}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e}_registerListeners(){this._registerOnKeyDown(),this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners()}_registerOnKeyDown(){this._register(this._tree.onKeyDown((e=>{const t=new Lr(e);switch(t.keyCode){case 10:this.toggleCheckbox();break;case 31:(Pe?e.metaKey:e.ctrlKey)&&this._tree.setFocus(this._itemElements);break;case 16:{const e=this._tree.getFocus();1===e.length&&e[0]===this._itemElements[0]&&this._onLeave.fire();break}case 18:{const e=this._tree.getFocus();1===e.length&&e[0]===this._itemElements[this._itemElements.length-1]&&this._onLeave.fire();break}}this._onKeyDown.fire(t)})))}_registerOnContainerClick(){this._register(yl(this._container,mc.CLICK,(e=>{(e.x||e.y)&&this._onLeave.fire()})))}_registerOnMouseMiddleClick(){this._register(yl(this._container,mc.AUXCLICK,(e=>{1===e.button&&this._onLeave.fire()})))}_registerOnElementChecked(){this._register(this._elementChecked.event((e=>this._fireCheckedEvents())))}_registerOnContextMenu(){this._register(this._tree.onContextMenu((e=>{e.element&&(e.browserEvent.preventDefault(),this._tree.setSelection([e.element]))})))}_registerHoverListeners(){const e=this._register(new Hr(this.hoverDelegate.delay));this._register(this._tree.onMouseOver((async t=>{var i;if(t.browserEvent.target instanceof HTMLAnchorElement)e.cancel();else if(t.browserEvent.relatedTarget instanceof HTMLAnchorElement||!Kl(t.browserEvent.relatedTarget,null===(i=t.element)||void 0===i?void 0:i.element))try{await e.trigger((async()=>{t.element instanceof sK&&this.showHover(t.element)}))}catch(n){if(!ti(n))throw n}}))),this._register(this._tree.onMouseOut((t=>{var i;Kl(t.browserEvent.relatedTarget,null===(i=t.element)||void 0===i?void 0:i.element)||e.cancel()})))}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus((e=>{const t=e.elements[0]?this._tree.getParentElement(e.elements[0]):null;for(const i of this._separatorRenderer.visibleSeparators){const e=i===t;!!(i.focusInsideSeparator&nK.ACTIVE_ITEM)!==e&&(e?i.focusInsideSeparator|=nK.ACTIVE_ITEM:i.focusInsideSeparator&=~nK.ACTIVE_ITEM,this._tree.rerender(i))}}))),this._register(this._tree.onMouseOver((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators)i===t&&(i.focusInsideSeparator&nK.MOUSE_HOVER||(i.focusInsideSeparator|=nK.MOUSE_HOVER,this._tree.rerender(i)))}))),this._register(this._tree.onMouseOut((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators)i===t&&i.focusInsideSeparator&nK.MOUSE_HOVER&&(i.focusInsideSeparator&=~nK.MOUSE_HOVER,this._tree.rerender(i))})))}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection((e=>{const t=e.elements.filter((e=>e instanceof sK));t.length!==e.elements.length&&(1===e.elements.length&&e.elements[0]instanceof rK&&(this._tree.setFocus([e.elements[0].children[0]]),this._tree.reveal(e.elements[0],0)),this._tree.setSelection(t))})))}getAllVisibleChecked(){return this._allVisibleChecked(this._itemElements,!1)}getCheckedCount(){return this._itemElements.filter((e=>e.checked)).length}getVisibleCount(){return this._itemElements.filter((e=>!e.hidden)).length}setAllVisibleChecked(e){try{this._shouldFireCheckedEvents=!1,this._itemElements.forEach((t=>{t.hidden||t.checkboxDisabled||(t.checked=e)}))}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}setElements(e){this._elementDisposable.clear(),this._inputElements=e;const t=this.parent.classList.contains("show-checkboxes");let i;this._itemElements=new Array,this._elementTree=e.reduce(((n,o,s)=>{let r;if("separator"===o.type){if(!o.buttons)return n;i=new rK(s,(e=>this.fireSeparatorButtonTriggered(e)),o),r=i}else{const a=s>0?e[s-1]:void 0;let l;a&&"separator"===a.type&&!a.buttons&&(i=void 0,l=a);const c=new sK(s,t,(e=>this.fireButtonTriggered(e)),this._elementChecked,o,l);if(this._itemElements.push(c),i)return i.children.push(c),n;r=c}return n.push(r),n}),new Array);const n=new Array;let o=0;for(const s of this._elementTree)s instanceof rK?(n.push({element:s,collapsible:!1,collapsed:!1,children:s.children.map((e=>({element:e,collapsible:!1,collapsed:!1})))}),o+=s.children.length+1):(n.push({element:s,collapsible:!1,collapsed:!1}),o++);this._tree.setChildren(null,n),this._onChangedVisibleCount.fire(o)}setFocusedElements(e){const t=e.map((e=>this._itemElements.find((t=>t.item===e)))).filter((e=>!!e));if(this._tree.setFocus(t),e.length>0){const e=this._tree.getFocus()[0];e&&this._tree.reveal(e)}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){const t=e.map((e=>this._itemElements.find((t=>t.item===e)))).filter((e=>!!e));this._tree.setSelection(t)}getCheckedElements(){return this._itemElements.filter((e=>e.checked)).map((e=>e.item))}setCheckedElements(e){try{this._shouldFireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const e of this._itemElements)e.checked=t.has(e.item)}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}focus(e){var t;if(this._itemElements.length)switch(e===iK.Second&&this._itemElements.length<2&&(e=iK.First),e){case iK.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,(e=>e.element instanceof sK));break;case iK.Second:this._tree.scrollTop=0,this._tree.setFocus([this._itemElements[1]]);break;case iK.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.setFocus([this._itemElements[this._itemElements.length-1]]);break;case iK.Next:this._tree.focusNext(void 0,!0,void 0,(e=>e.element instanceof sK&&(this._tree.reveal(e.element),!0)));break;case iK.Previous:this._tree.focusPrevious(void 0,!0,void 0,(e=>{if(!(e.element instanceof sK))return!1;const t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0}));break;case iK.NextPage:this._tree.focusNextPage(void 0,(e=>e.element instanceof sK&&(this._tree.reveal(e.element),!0)));break;case iK.PreviousPage:this._tree.focusPreviousPage(void 0,(e=>{if(!(e.element instanceof sK))return!1;const t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0}));break;case iK.NextSeparator:{let e=!1;const t=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,(t=>{if(e)return!0;if(t.element instanceof rK)e=!0,this._separatorRenderer.isSeparatorVisible(t.element)?this._tree.reveal(t.element.children[0]):this._tree.reveal(t.element,0);else if(t.element instanceof sK){if(t.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),!0;if(t.element===this._elementTree[0])return this._tree.reveal(t.element,0),!0}return!1})),t===this._tree.getFocus()[0]&&(this._tree.scrollTop=this._tree.scrollHeight,this._tree.setFocus([this._itemElements[this._itemElements.length-1]]));break}case iK.PreviousSeparator:{let e,i=!!(null===(t=this._tree.getFocus()[0])||void 0===t?void 0:t.separator);this._tree.focusPrevious(void 0,!0,void 0,(t=>{if(t.element instanceof rK)i?e||(this._separatorRenderer.isSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),e=t.element.children[0]):i=!0;else if(t.element instanceof sK&&!e)if(t.element.separator)this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),e=t.element;else if(t.element===this._elementTree[0])return this._tree.reveal(t.element,0),!0;return!1})),e&&this._tree.setFocus([e]);break}}}clearFocus(){this._tree.setFocus([])}domFocus(){this._tree.domFocus()}layout(e){this._tree.getHTMLElement().style.maxHeight=e?44*Math.floor(e/44)+6+"px":"",this._tree.layout()}filter(e){if(!(this._sortByLabel||this._matchOnLabel||this._matchOnDescription||this._matchOnDetail))return this._tree.layout(),!1;const t=e;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let i;this._elementTree.forEach((n=>{var o,s,r,a;let l;l="fuzzy"===this.matchOnLabelMode?this.matchOnLabel&&null!==(o=KM(e,zM(n.saneLabel)))&&void 0!==o?o:void 0:this.matchOnLabel&&null!==(s=function(e,t){const{text:i,iconOffsets:n}=t;if(!n||0===n.length)return gK(e,i);const o=Ss(i," "),s=i.length-o.length,r=gK(e,o);if(r)for(const a of r){const e=n[a.start+s]+s;a.start+=e,a.end+=e}return r}(t,zM(n.saneLabel)))&&void 0!==s?s:void 0;const c=this.matchOnDescription&&null!==(r=KM(e,zM(n.saneDescription||"")))&&void 0!==r?r:void 0,d=this.matchOnDetail&&null!==(a=KM(e,zM(n.saneDetail||"")))&&void 0!==a?a:void 0;if(l||c||d?(n.labelHighlights=l,n.descriptionHighlights=c,n.detailHighlights=d,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item||!n.item.alwaysShow),n.item?n.separator=void 0:n.separator&&(n.hidden=!0),!this.sortByLabel){const e=n.index&&this._inputElements[n.index-1];i=e&&"separator"===e.type?e:i,i&&!n.hidden&&(n.separator=i,i=void 0)}}))}else this._itemElements.forEach((e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;const t=e.index&&this._inputElements[e.index-1];e.item&&(e.separator=t&&"separator"===t.type&&!t.buttons?t:void 0)}));const i=this._elementTree.filter((e=>!e.hidden));if(this.sortByLabel&&e){const t=e.toLowerCase();i.sort(((e,i)=>function(e,t,i){const n=e.labelHighlights||[],o=t.labelHighlights||[];return n.length&&!o.length?-1:!n.length&&o.length?1:0===n.length&&0===o.length?0:function(e,t,i){const n=e.toLowerCase(),o=t.toLowerCase(),s=function(e,t,i){const n=e.toLowerCase(),o=t.toLowerCase(),s=n.startsWith(i),r=o.startsWith(i);if(s!==r)return s?-1:1;if(s&&r){if(n.lengtho.length)return 1}return 0}(e,t,i);if(s)return s;const r=n.endsWith(i);if(r!==o.endsWith(i))return r?-1:1;const a=function(e,t,i=!1){const n=e||"",o=t||"",s=Jz.value.collator.compare(n,o);return Jz.value.collatorIsNumeric&&0===s&&n!==o?n(t instanceof sK?n?n.children.push(t):e.push(t):t instanceof rK&&(t.children=[],n=t,e.push(t)),e)),new Array),s=new Array;for(const a of o)a instanceof rK?s.push({element:a,collapsible:!1,collapsed:!1,children:a.children.map((e=>({element:e,collapsible:!1,collapsed:!1})))}):s.push({element:a,collapsible:!1,collapsed:!1});const r=this._tree.getFocus().length;return this._tree.setChildren(null,s),r>0&&0===s.length&&this._onTriggerEmptySelectionOrFocus.fire({elements:[]}),this._tree.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(i.length),!0}toggleCheckbox(){try{this._shouldFireCheckedEvents=!1;const e=this._tree.getFocus().filter((e=>e instanceof sK)),t=this._allVisibleChecked(e);for(const i of e)i.checkboxDisabled||(i.checked=!t)}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}display(e){this._container.style.display=e?"":"none"}isDisplayed(){return"none"!==this._container.style.display}style(e){this._tree.style(e)}toggleHover(){const e=this._tree.getFocus()[0];if(!((null==e?void 0:e.saneTooltip)&&e instanceof sK))return;if(this._lastHover&&!this._lastHover.isDisposed)return void this._lastHover.dispose();this.showHover(e);const t=new gi;t.add(this._tree.onDidChangeFocus((e=>{e.elements[0]instanceof sK&&this.showHover(e.elements[0])}))),this._lastHover&&t.add(this._lastHover),this._elementDisposable.add(t)}_allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i{this.linkOpenerDelegate(e)},appearance:{showPointer:!0},container:this._container,position:{hoverPosition:1}},!1))}};function gK(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1!==i?[{start:i,end:i+e.length}]:null}Zz([iE],uK.prototype,"onDidChangeFocus",null),Zz([iE],uK.prototype,"onDidChangeSelection",null),uK=Zz([eK(4,td)],uK);var mK=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},pK=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const fK={iconClass:gd.asClassName(Yn.quickInputBack),tooltip:pe("vs/platform/quickinput/browser/quickInput","quickInput.back","Back"),handle:-1};class _K extends mi{constructor(e){super(),this.ui=e,this._widgetUpdated=!1,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.buttonsUpdated=!1,this._toggles=[],this.togglesUpdated=!1,this.noValidationMessage=_K.noPromptMessage,this._severity=AD.Ignore,this.onDidTriggerButtonEmitter=this._register(new Ri),this.onDidHideEmitter=this._register(new Ri),this.onWillHideEmitter=this._register(new Ri),this.onDisposeEmitter=this._register(new Ri),this.visibleDisposables=this._register(new gi),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!Ue;this._ignoreFocusOut=e&&!Ue,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get toggles(){return this._toggles}set toggles(e){this._toggles=null!=e?e:[],this.togglesUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton((e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)}))),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.toggles.length&&(this.togglesUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=kU.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}willHide(e=kU.Other){this.onWillHideEmitter.fire({reason:e})}update(){var e,t;if(!this.visible)return;const i=this.getTitle();i&&this.ui.title.textContent!==i?this.ui.title.textContent=i:i||" "===this.ui.title.innerHTML||(this.ui.title.innerText=" ");const n=this.getDescription();if(this.ui.description1.textContent!==n&&(this.ui.description1.textContent=n),this.ui.description2.textContent!==n&&(this.ui.description2.textContent=n),this._widgetUpdated&&(this._widgetUpdated=!1,this._widget?Cc(this.ui.widget,this._widget):Cc(this.ui.widget)),this.busy&&!this.busyDelay&&(this.busyDelay=new Gr,this.busyDelay.setIfNotSet((()=>{this.visible&&this.ui.progressBar.infinite()}),800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const e=this.buttons.filter((e=>e===fK)).map(((e,t)=>GU(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.leftActionBar.push(e,{icon:!0,label:!1}),this.ui.rightActionBar.clear();const t=this.buttons.filter((e=>e!==fK)).map(((e,t)=>GU(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.rightActionBar.push(t,{icon:!0,label:!1})}if(this.togglesUpdated){this.togglesUpdated=!1;const i=null!==(t=null===(e=this.toggles)||void 0===e?void 0:e.filter((e=>e instanceof FU)))&&void 0!==t?t:[];this.ui.inputBox.toggles=i}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const o=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==o&&(this._lastValidationMessage=o,Cc(this.ui.message),function(e,t,i){Cc(t);const n=function(e){const t=[];let i,n=0;for(;i=WU.exec(e);){i.index-n>0&&t.push(e.substring(n,i.index));const[,o,s,,r]=i;r?t.push({label:o,href:s,title:r}):t.push({label:o,href:s}),n=i.index+i[0].length}return n{pc(e)&&fc(e,!0),i.callback(s.href)},a=i.disposables.add(new AE(n,mc.CLICK)).event,l=i.disposables.add(new AE(n,mc.KEY_DOWN)).event,c=Ci.chain(l,(e=>e.filter((e=>{const t=new Lr(e);return t.equals(10)||t.equals(3)}))));i.disposables.add(sE.addTarget(n));const d=i.disposables.add(new AE(n,nE.Tap)).event;Ci.any(a,d,c)(r,null,i.disposables),t.appendChild(n)}}(o,this.ui.message,{callback:e=>{this.ui.linkOpenerDelegate(e)},disposables:this.visibleDisposables})),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?pe("vs/platform/quickinput/browser/quickInput","quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==AD.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}_K.noPromptMessage=pe("vs/platform/quickinput/browser/quickInput","inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class bK extends _K{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new Ri),this.onWillAcceptEmitter=this._register(new Ri),this.onDidAcceptEmitter=this._register(new Ri),this.onDidCustomEmitter=this._register(new Ri),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._keepScrollPosition=!1,this._itemActivation=DU.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new Ri),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new Ri),this.onDidTriggerItemButtonEmitter=this._register(new Ri),this.onDidTriggerSeparatorButtonEmitter=this._register(new Ri),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event,this.onDidTriggerSeparatorButton=this.onDidTriggerSeparatorButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){this._value!==e&&(this._value=e,t||this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?NU:this.ui.keyMods}get valueSelection(){const e=this.ui.inputBox.getSelection();if(e)return[e.start,e.end]}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.canSelectMany||this.ui.list.focus(iK.First)}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{this.doSetValue(e,!0)}))),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown((e=>{switch(e.keyCode){case 18:void 0===this.quickNavigate&&(Pe?e.metaKey:e.altKey)?this.ui.list.focus(iK.NextSeparator):this.ui.list.focus(iK.Next),this.canSelectMany&&this.ui.list.domFocus(),fc(e,!0);break;case 16:void 0===this.quickNavigate&&(Pe?e.metaKey:e.altKey)?this.ui.list.focus(iK.PreviousSeparator):this.ui.list.focus(iK.Previous),this.canSelectMany&&this.ui.list.domFocus(),fc(e,!0);break;case 12:this.ui.list.focus(iK.NextPage),this.canSelectMany&&this.ui.list.domFocus(),fc(e,!0);break;case 11:this.ui.list.focus(iK.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),fc(e,!0);break;case 17:if(!this._canAcceptInBackground)return;if(!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(iK.First),fc(e,!0));break;case 13:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(iK.Last),fc(e,!0))}}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)}))),this.visibleDisposables.add(this.ui.onDidCustom((()=>{this.onDidCustomEmitter.fire()}))),this.visibleDisposables.add(this.ui.list.onDidChangeFocus((e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&b(e,this._activeItems,((e,t)=>e===t))||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.list.onDidChangeSelection((({items:e,event:t})=>{this.canSelectMany?e.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&b(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(uc(t)&&1===t.button))}))),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements((e=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&b(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))}))),this.visibleDisposables.add(this.ui.list.onButtonTriggered((e=>this.onDidTriggerItemButtonEmitter.fire(e)))),this.visibleDisposables.add(this.ui.list.onSeparatorButtonTriggered((e=>this.onDidTriggerSeparatorButtonEmitter.fire(e)))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return yl(this.ui.container,mc.KEY_UP,(e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Lr(e),i=t.keyCode;this._quickNavigate.keybindings.some((e=>{const n=e.getChords();return!(n.length>1||(n[0].shiftKey&&4===i?t.ctrlKey||t.altKey||t.metaKey:!(n[0].altKey&&6===i||n[0].ctrlKey&&5===i||n[0].metaKey&&57===i)))}))&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)}))}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this.description,i={title:!!this.title||!!this.step||!!this.buttons.length,description:t,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!this._hideInput,progressBar:!this._hideInput||t,visibleCount:!0,count:this.canSelectMany&&!this._hideCountBadge,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let n=this.ariaLabel;if(!n&&i.inputBox&&(n=this.placeholder||bK.DEFAULT_ARIA_LABEL,this.title&&(n+=` - ${this.title}`)),this.ui.list.ariaLabel!==n&&(this.ui.list.ariaLabel=null!=n?n:null),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated){this.itemsUpdated=!1;const e=this._activeItems;switch(this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case DU.NONE:e.length>0&&(this._activeItems=[],this.onDidChangeActiveEmitter.fire(this._activeItems)),this._itemActivation=DU.FIRST;break;case DU.SECOND:this.ui.list.focus(iK.Second),this._itemActivation=DU.FIRST;break;case DU.LAST:this.ui.list.focus(iK.Last),this._itemActivation=DU.FIRST;break;default:this.trySelectFirst()}}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(iK.First)),this.keepScrollPosition&&(this.scrollTop=e)}}bK.DEFAULT_ARIA_LABEL=pe("vs/platform/quickinput/browser/quickInput","quickInputBox.ariaLabel","Type to narrow down results.");class vK extends _K{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new Ri),this.onDidAcceptEmitter=this._register(new Ri),this.onDidChangeValue=this.onDidValueChangeEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event}get value(){return this._value}set value(e){this._value=e||"",this.update()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get password(){return this._password}set password(e){this._password=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{e!==this.value&&(this._value=e,this.onDidValueChangeEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>this.onDidAcceptEmitter.fire()))),this.valueSelectionUpdated=!0),super.show()}update(){if(!this.visible)return;this.ui.container.classList.remove("hidden-input");const e={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0,progressBar:!0};this.ui.setVisibilities(e),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),this.ui.inputBox.password!==this.password&&(this.ui.inputBox.password=this.password)}}let SK=class extends Sx{constructor(e,t){super("element",!1,(e=>this.getOverrideOptions(e)),e,t)}getOverrideOptions(e){var t;return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:(e.content instanceof HTMLElement?null!==(t=e.content.textContent)&&void 0!==t?t:"":"string"==typeof e.content?e.content:e.content.value).includes("\n"),skipFadeInAnimation:!0}}}};SK=mK([pK(0,$u),pK(1,vx)],SK),Kp.white.toString(),Kp.white.toString();class CK extends mi{get onDidClick(){return this._onDidClick.event}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new Ri),this._onDidEscape=this._register(new Ri),this.options=t,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),this._element.classList.toggle("secondary",!!t.secondary);const i=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,n=t.secondary?t.buttonSecondaryForeground:t.buttonForeground;this._element.style.color=n||"",this._element.style.backgroundColor=i||"",t.supportShortLabel&&(this._labelShortElement=document.createElement("div"),this._labelShortElement.classList.add("monaco-button-label-short"),this._element.appendChild(this._labelShortElement),this._labelElement=document.createElement("div"),this._labelElement.classList.add("monaco-button-label"),this._element.appendChild(this._labelElement),this._element.classList.add("monaco-text-button-with-short-label")),"string"==typeof t.title&&this.setTitle(t.title),"string"==typeof t.ariaLabel&&this._element.setAttribute("aria-label",t.ariaLabel),e.appendChild(this._element),this._register(sE.addTarget(this._element)),[mc.CLICK,nE.Tap].forEach((e=>{this._register(yl(this._element,e,(e=>{this.enabled?this._onDidClick.fire(e):fc(e)})))})),this._register(yl(this._element,mc.KEY_DOWN,(e=>{const t=new Lr(e);let i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._onDidEscape.fire(e),this._element.blur(),i=!0),i&&fc(t,!0)}))),this._register(yl(this._element,mc.MOUSE_OVER,(e=>{this._element.classList.contains("disabled")||this.updateBackground(!0)}))),this._register(yl(this._element,mc.MOUSE_OUT,(e=>{this.updateBackground(!1)}))),this.focusTracker=this._register(bc(this._element)),this._register(this.focusTracker.onDidFocus((()=>{this.enabled&&this.updateBackground(!0)}))),this._register(this.focusTracker.onDidBlur((()=>{this.enabled&&this.updateBackground(!1)})))}dispose(){super.dispose(),this._element.remove()}getContentElements(e){const t=[];for(let i of Fx(e))if("string"==typeof i){if(i=i.trim(),""===i)continue;const e=document.createElement("span");e.textContent=i,t.push(e)}else t.push(i);return t}updateBackground(e){let t;t=this.options.secondary?e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:e?this.options.buttonHoverBackground:this.options.buttonBackground,t&&(this._element.style.backgroundColor=t)}get element(){return this._element}set label(e){var t,i,n;if(this._label===e)return;if($M(this._label)&&$M(e)&&((i=this._label)===(n=e)||i&&n&&i.value===n.value&&i.isTrusted===n.isTrusted&&i.supportThemeIcons===n.supportThemeIcons&&i.supportHtml===n.supportHtml&&(i.baseUri===n.baseUri||i.baseUri&&n.baseUri&&HI(An.from(i.baseUri),An.from(n.baseUri)))))return;this._element.classList.add("monaco-text-button");const o=this.options.supportShortLabel?this._labelElement:this._element;if($M(e)){const i=sP(e,{inline:!0});i.dispose();const n=null===(t=i.element.querySelector("p"))||void 0===t?void 0:t.innerHTML;if(n){const e=$a(n,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});o.innerHTML=e}else Cc(o)}else this.options.supportIcons?Cc(o,...this.getContentElements(e)):o.textContent=e;let s="";"string"==typeof this.options.title?s=this.options.title:this.options.title&&(s=function(e){return"string"==typeof e?e:function(e){var t;let i=null!==(t=e.value)&&void 0!==t?t:"";return i.length>1e5&&(i=`${i.substr(0,1e5)}…`),lP({isTrusted:!1},eP.parse(i,{renderer:hP.value}).replace(/&(#\d+|[a-zA-Z]+);/g,(e=>{var t;return null!==(t=dP.get(e))&&void 0!==t?t:e}))).toString()}(e)}(e)),this.setTitle(s),"string"==typeof this.options.ariaLabel?this._element.setAttribute("aria-label",this.options.ariaLabel):this.options.ariaLabel&&this._element.setAttribute("aria-label",s),this._label=e}get label(){return this._label}set icon(e){this._element.classList.add(...gd.asClassNameArray(e))}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}setTitle(e){var t;this._hover||""===e?this._hover&&this._hover.update(e):this._hover=this._register(EB().setupUpdatableHover(null!==(t=this.options.hoverDelegate)&&void 0!==t?t:vB("mouse"),this._element,e))}}class EK{constructor(e,t,i){this.options=t,this.styles=i,this.count=0,this.element=vc(e,yc(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){var e,t;this.element.textContent=fs(this.countFormat,this.count),this.element.title=fs(this.titleFormat,this.count),this.element.style.backgroundColor=null!==(e=this.styles.badgeBackground)&&void 0!==e?e:"",this.element.style.color=null!==(t=this.styles.badgeForeground)&&void 0!==t?t:"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}const wK="done",TK="active",yK="infinite",RK="infinite-long-running",LK="discrete";class IK extends mi{constructor(e,t){super(),this.progressSignal=this._register(new pi),this.workedVal=0,this.showDelayedScheduler=this._register(new Kr((()=>Rc(this.element)),0)),this.longRunningScheduler=this._register(new Kr((()=>this.infiniteLongRunning()),IK.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e,t)}create(e,t){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=(null==t?void 0:t.progressBarBackground)||"#0E70C0",this.element.appendChild(this.bit)}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(TK,yK,RK,LK),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel(),this.progressSignal.clear()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(wK),this.element.classList.contains(yK)?(this.bit.style.opacity="0",e?setTimeout((()=>this.off()),200):this.off()):(this.bit.style.width="inherit",e?setTimeout((()=>this.off()),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(LK,wK,RK),this.element.classList.add(TK,yK),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(RK)}getContainer(){return this.element}}IK.LONG_RUNNING_INFINITE_THRESHOLD=1e4;const AK=yc;class NK extends mi{constructor(e,t,i){super(),this.parent=e,this.onKeyDown=e=>Ll(this.findInput.inputBox.inputElement,mc.KEY_DOWN,e),this.onDidChange=e=>this.findInput.onDidChange(e),this.container=vc(this.parent,AK(".quick-input-box")),this.findInput=this._register(new TV(this.container,void 0,{label:"",inputBoxStyles:t,toggleStyles:i}));const n=this.findInput.inputBox.inputElement;n.role="combobox",n.ariaHasPopup="menu",n.ariaAutoComplete="list",n.ariaExpanded="true"}get value(){return this.findInput.getValue()}set value(e){this.findInput.setValue(e)}select(e=null){this.findInput.inputBox.select(e)}getSelection(){return this.findInput.inputBox.getSelection()}isSelectionAtEnd(){return this.findInput.inputBox.isSelectionAtEnd()}get placeholder(){return this.findInput.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.findInput.inputBox.setPlaceHolder(e)}get password(){return"password"===this.findInput.inputBox.inputElement.type}set password(e){this.findInput.inputBox.inputElement.type=e?"password":"text"}set enabled(e){this.findInput.inputBox.inputElement.toggleAttribute("readonly",!e)}set toggles(e){this.findInput.setAdditionalToggles(e)}setAttribute(e,t){this.findInput.inputBox.inputElement.setAttribute(e,t)}showDecoration(e){e===AD.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:e===AD.Info?1:e===AD.Warning?2:3,content:""})}stylesForType(e){return this.findInput.inputBox.stylesForType(e===AD.Info?1:e===AD.Warning?2:3)}setFocus(){this.findInput.focus()}layout(){this.findInput.inputBox.layout()}}var kK,DK=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},OK=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const xK=yc;let MK=kK=class extends mi{get container(){return this._container}constructor(e,t,i){super(),this.options=e,this.layoutService=t,this.instantiationService=i,this.enabled=!0,this.onDidAcceptEmitter=this._register(new Ri),this.onDidCustomEmitter=this._register(new Ri),this.onDidTriggerButtonEmitter=this._register(new Ri),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new Ri),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new Ri),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this._container=e.container,this.styles=e.styles,this._register(Ci.runAndSubscribe(Sl,(({window:e,disposables:t})=>this.registerKeyModsListeners(e,t)),{window:cs,disposables:this._store})),this._register(Cl((e=>{this.ui&&gl(this.ui.container)===e&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))})))}registerKeyModsListeners(e,t){const i=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};for(const n of[mc.KEY_DOWN,mc.KEY_UP,mc.MOUSE_DOWN])t.add(yl(e,n,i,!0))}getUI(e){if(this.ui)return e&&gl(this._container)!==gl(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;const t=vc(this._container,xK(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";const i=nc(t),n=vc(t,xK(".quick-input-titlebar")),o=this._register(new zW(n,{hoverDelegate:this.options.hoverDelegate}));o.domNode.classList.add("quick-input-left-action-bar");const s=vc(n,xK(".quick-input-title")),r=this._register(new zW(n,{hoverDelegate:this.options.hoverDelegate}));r.domNode.classList.add("quick-input-right-action-bar");const a=vc(t,xK(".quick-input-header")),l=vc(a,xK("input.quick-input-check-all"));l.type="checkbox",l.setAttribute("aria-label",pe("vs/platform/quickinput/browser/quickInputController","quickInput.checkAll","Toggle all checkboxes")),this._register(Ll(l,mc.CHANGE,(e=>{const t=l.checked;R.setAllVisibleChecked(t)}))),this._register(yl(l,mc.CLICK,(e=>{(e.x||e.y)&&u.setFocus()})));const c=vc(a,xK(".quick-input-description")),d=vc(a,xK(".quick-input-and-message")),h=vc(d,xK(".quick-input-filter")),u=this._register(new NK(h,this.styles.inputBox,this.styles.toggle));u.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=vc(h,xK(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const m=new EK(g,{countFormat:pe("vs/platform/quickinput/browser/quickInputController",{key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")},this.styles.countBadge),p=vc(h,xK(".quick-input-count"));p.setAttribute("aria-live","polite");const f=new EK(p,{countFormat:pe("vs/platform/quickinput/browser/quickInputController",{key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")},this.styles.countBadge),_=vc(a,xK(".quick-input-action")),b=this._register(new CK(_,this.styles.button));b.label=pe("vs/platform/quickinput/browser/quickInputController","ok","OK"),this._register(b.onDidClick((e=>{this.onDidAcceptEmitter.fire()})));const v=vc(a,xK(".quick-input-action")),S=this._register(new CK(v,{...this.styles.button,supportIcons:!0}));S.label=pe("vs/platform/quickinput/browser/quickInputController","custom","Custom"),this._register(S.onDidClick((e=>{this.onDidCustomEmitter.fire()})));const C=vc(d,xK(`#${this.idPrefix}message.quick-input-message`)),E=this._register(new IK(t,this.styles.progressBar));E.getContainer().classList.add("quick-input-progress");const w=vc(t,xK(".quick-input-html-widget"));w.tabIndex=-1;const T=vc(t,xK(".quick-input-description")),y=this.idPrefix+"list",R=this._register(this.instantiationService.createInstance(uK,t,this.options.hoverDelegate,this.options.linkOpenerDelegate,y));u.setAttribute("aria-controls",y),this._register(R.onDidChangeFocus((()=>{var e;u.setAttribute("aria-activedescendant",null!==(e=R.getActiveDescendant())&&void 0!==e?e:"")}))),this._register(R.onChangedAllVisibleChecked((e=>{l.checked=e}))),this._register(R.onChangedVisibleCount((e=>{m.setCount(e)}))),this._register(R.onChangedCheckedCount((e=>{f.setCount(e)}))),this._register(R.onLeave((()=>{setTimeout((()=>{this.controller&&(u.setFocus(),this.controller instanceof bK&&this.controller.canSelectMany&&R.clearFocus())}),0)})));const L=bc(t);return this._register(L),this._register(yl(t,mc.FOCUS,(e=>{Kl(e.relatedTarget,t)||(this.previousFocusElement=e.relatedTarget instanceof HTMLElement?e.relatedTarget:void 0)}),!0)),this._register(L.onDidBlur((()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(kU.Blur),this.previousFocusElement=void 0}))),this._register(yl(t,mc.FOCUS,(e=>{u.setFocus()}))),this._register(Ll(t,mc.KEY_DOWN,(e=>{if(!Kl(e.target,w))switch(e.keyCode){case 3:fc(e,!0),this.enabled&&this.onDidAcceptEmitter.fire();break;case 9:fc(e,!0),this.hide(kU.Gesture);break;case 2:if(!e.altKey&&!e.ctrlKey&&!e.metaKey){const i=[".quick-input-list .monaco-action-bar .always-visible",".quick-input-list-entry:hover .monaco-action-bar",".monaco-list-row.focused .monaco-action-bar"];if(t.classList.contains("show-checkboxes")?i.push("input"):i.push("input[type=text]"),this.getUI().list.isDisplayed()&&i.push(".monaco-list"),this.getUI().message&&i.push(".quick-input-message a"),this.getUI().widget){if(Kl(e.target,this.getUI().widget))break;i.push(".quick-input-html-widget")}const n=t.querySelectorAll(i.join(", "));e.shiftKey&&e.target===n[0]?(fc(e,!0),R.clearFocus()):!e.shiftKey&&Kl(e.target,n[n.length-1])&&(fc(e,!0),n[0].focus())}break;case 10:e.ctrlKey&&(fc(e,!0),this.getUI().list.toggleHover())}}))),this.ui={container:t,styleSheet:i,leftActionBar:o,titleBar:n,title:s,description1:T,description2:c,widget:w,rightActionBar:r,checkAll:l,inputContainer:d,filterContainer:h,inputBox:u,visibleCountContainer:g,visibleCount:m,countContainer:p,count:f,okContainer:_,ok:b,message:C,customButtonContainer:v,customButton:S,list:R,progressBar:E,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e),linkOpenerDelegate:e=>this.options.linkOpenerDelegate(e)},this.updateStyles(),this.ui}reparentUI(e){this.ui&&(this._container=e,vc(this._container,this.ui.container))}pick(e,t={},i=Mi.None){return new Promise(((n,o)=>{let s=e=>{var i;s=n,null===(i=t.onKeyMods)||void 0===i||i.call(t,r.keyMods),n(e)};if(i.isCancellationRequested)return void s(void 0);const r=this.createQuickPick();let a;const l=[r,r.onDidAccept((()=>{if(r.canSelectMany)s(r.selectedItems.slice()),r.hide();else{const e=r.activeItems[0];e&&(s(e),r.hide())}})),r.onDidChangeActive((e=>{const i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)})),r.onDidChangeSelection((e=>{if(!r.canSelectMany){const t=e[0];t&&(s(t),r.hide())}})),r.onDidTriggerItemButton((e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton({...e,removeItem:()=>{const t=r.items.indexOf(e.item);if(-1!==t){const e=r.items.slice(),i=e.splice(t,1),n=r.activeItems.filter((e=>e!==i[0])),o=r.keepScrollPosition;r.keepScrollPosition=!0,r.items=e,n&&(r.activeItems=n),r.keepScrollPosition=o}}}))),r.onDidTriggerSeparatorButton((e=>{var i;return null===(i=t.onDidTriggerSeparatorButton)||void 0===i?void 0:i.call(t,e)})),r.onDidChangeValue((e=>{!a||e||1===r.activeItems.length&&r.activeItems[0]===a||(r.activeItems=[a])})),i.onCancellationRequested((()=>{r.hide()})),r.onDidHide((()=>{di(l),s(void 0)}))];r.title=t.title,r.canSelectMany=!!t.canPickMany,r.placeholder=t.placeHolder,r.ignoreFocusOut=!!t.ignoreFocusLost,r.matchOnDescription=!!t.matchOnDescription,r.matchOnDetail=!!t.matchOnDetail,r.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,r.quickNavigate=t.quickNavigate,r.hideInput=!!t.hideInput,r.contextKey=t.contextKey,r.busy=!0,Promise.all([e,t.activeItem]).then((([e,t])=>{a=t,r.busy=!1,r.items=e,r.canSelectMany&&(r.selectedItems=e.filter((e=>"separator"!==e.type&&e.picked))),a&&(r.activeItems=[a])})),r.show(),Promise.resolve(e).then(void 0,(e=>{o(e),r.hide()}))}))}createQuickPick(){const e=this.getUI(!0);return new bK(e)}createInputBox(){const e=this.getUI(!0);return new vK(e)}show(e){const t=this.getUI(!0);this.onShowEmitter.fire();const i=this.controller;this.controller=e,null==i||i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",Cc(t.widget),t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(AD.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),Cc(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,t.inputBox.toggles=void 0;const n=this.options.backKeybindingLabel();fK.tooltip=n?pe("vs/platform/quickinput/browser/quickInputController","quickInput.backWithKeybinding","Back ({0})",n):pe("vs/platform/quickinput/browser/quickInputController","quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}isVisible(){return!!this.ui&&"none"!==this.ui.container.style.display}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=!e.description||e.inputBox||e.checkAll?"none":"",t.checkAll.style.display=e.checkAll?"":"none",t.inputContainer.style.display=e.inputBox?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList.toggle("show-checkboxes",!!e.checkBox),t.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.updateLayout()}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.action.enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.action.enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().inputBox.enabled=e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t,i;const n=this.controller;if(!n)return;n.willHide(e);const o=null===(t=this.ui)||void 0===t?void 0:t.container,s=o&&!Ql(o);if(this.controller=null,this.onHideEmitter.fire(),o&&(o.style.display="none"),!s){let e=this.previousFocusElement;for(;e&&!e.offsetParent;)e=null!==(i=e.parentElement)&&void 0!==i?i:void 0;(null==e?void 0:e.offsetParent)?(e.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}n.didHide(e)}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(.62*this.dimension.width,kK.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,widgetBorder:n,widgetShadow:o}=this.styles.widget;this.ui.titleBar.style.backgroundColor=null!=e?e:"",this.ui.container.style.backgroundColor=null!=t?t:"",this.ui.container.style.color=null!=i?i:"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=o?`0 0 8px 2px ${o}`:"",this.ui.list.style(this.styles.list);const s=[];this.styles.pickerGroup.pickerGroupBorder&&s.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&s.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&s.push(".quick-input-list .quick-input-list-separator-as-item { color: var(--vscode-descriptionForeground); }"),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(s.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&s.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&s.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&s.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&s.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&s.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),s.push("}"));const r=s.join("\n");r!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=r)}}};MK.MAX_WIDTH=600,MK=kK=DK([OK(1,tO),OK(2,td)],MK);var PK=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},FK=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let BK=class extends JE{get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get hasController(){return!!this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(PU))),this._quickAccess}constructor(e,t,i,n,o){super(i),this.instantiationService=e,this.contextKeyService=t,this.layoutService=n,this.configurationService=o,this._onShow=this._register(new Ri),this._onHide=this._register(new Ri),this.contexts=new Map}createController(e=this.layoutService,t){const i={idPrefix:"quickInput_",container:e.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:e=>this.setContextKey(e),linkOpenerDelegate:e=>{this.instantiationService.invokeFunction((t=>{t.get(Ax).open(e,{allowCommands:!0,fromUserGesture:!0})}))},returnFocus:()=>e.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(SK))},n=this._register(this.instantiationService.createInstance(MK,{...i,...t}));return n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop),this._register(e.onDidLayoutActiveContainer((t=>{gl(e.activeContainer)===gl(n.container)&&n.layout(t,e.activeContainerOffset.quickPickTop)}))),this._register(e.onDidChangeActiveContainer((()=>{n.isVisible()||n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop)}))),this._register(n.onShow((()=>{this.resetContextKeys(),this._onShow.fire()}))),this._register(n.onHide((()=>{this.resetContextKeys(),this._onHide.fire()}))),n}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new Qd(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),null==t||t.set(!0))}resetContextKeys(){this.contexts.forEach((e=>{e.get()&&e.reset()}))}pick(e,t={},i=Mi.None){return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:Z_(XS),quickInputForeground:Z_(JS),quickInputTitleBackground:Z_(QS),widgetBorder:Z_(lv),widgetShadow:Z_(av)},inputBox:RW,toggle:yW,countBadge:IW,button:wW,progressBar:TW,keybindingLabel:EW,list:NW({listBackground:XS,listFocusBackground:oC,listFocusForeground:iC,listInactiveFocusForeground:iC,listInactiveSelectionIconForeground:nC,listInactiveFocusBackground:oC,listFocusOutline:fb,listInactiveFocusOutline:fb}),pickerGroup:{pickerGroupBorder:Z_(eC),pickerGroupForeground:Z_(ZS)}}}};BK=PK([FK(0,td),FK(1,Zd),FK(2,KE),FK(3,tO),FK(4,$u)],BK);var HK=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},WK=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let UK=class extends BK{constructor(e,t,i,n,o,s){super(t,i,n,new sO(e.getContainerDomNode(),o),s),this.host=void 0;const r=GK.get(e);if(r){const t=r.widget;this.host={_serviceBrand:void 0,get mainContainer(){return t.getDomNode()},getContainer:()=>t.getDomNode(),whenContainerStylesLoaded(){},get containers(){return[t.getDomNode()]},get activeContainer(){return t.getDomNode()},get mainContainerDimension(){return e.getLayoutInfo()},get activeContainerDimension(){return e.getLayoutInfo()},get onDidLayoutMainContainer(){return e.onDidLayoutChange},get onDidLayoutActiveContainer(){return e.onDidLayoutChange},get onDidLayoutContainer(){return Ci.map(e.onDidLayoutChange,(e=>({container:t.getDomNode(),dimension:e})))},get onDidChangeActiveContainer(){return Ci.None},get onDidAddContainer(){return Ci.None},get mainContainerOffset(){return{top:0,quickPickTop:0}},get activeContainerOffset(){return{top:0,quickPickTop:0}},focus:()=>e.focus()}}else this.host=void 0}createController(){return super.createController(this.host)}};UK=HK([WK(1,td),WK(2,Zd),WK(3,KE),WK(4,nd),WK(5,$u)],UK);let VK=class{get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(UK,e);this.mapEditorToService.set(e,t),li(e.onDidDispose)((()=>{i.dispose(),this.mapEditorToService.delete(e)}))}return t}get quickAccess(){return this.activeService.quickAccess}constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}pick(e,t={},i=Mi.None){return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}createInputBox(){return this.activeService.createInputBox()}};VK=HK([WK(0,td),WK(1,nd)],VK);class GK{static get(e){return e.getContribution(GK.ID)}constructor(e){this.editor=e,this.widget=new zK(this.editor)}dispose(){this.widget.dispose()}}GK.ID="editor.controller.quickInput";class zK{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return zK.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}zK.ID="editor.contrib.quickInputWidget",zh(GK.ID,GK,4);class KK{constructor(e,t,i,n,o){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=o}}const YK=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class qK{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(null===e)return 0;const t=e.match(YK);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();let i=this._color2id.get(e);return i||(i=++this._lastColorId,this._color2id.set(e,i),this._id2color[i]=Kp.fromHex("#"+e),i)}getColorMap(){return this._id2color.slice(0)}}class $K{static createFromRawTokenTheme(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];const t=[];let i=0;for(let n=0,o=e.length;n{const i=(n=e.token,o=t.token,no?1:0);var n,o;return 0!==i?i:e.index-t.index}));let i=0,n="000000",o="ffffff";for(;e.length>=1&&""===e[0].token;){const t=e.shift();-1!==t.fontStyle&&(i=t.fontStyle),null!==t.foreground&&(n=t.foreground),null!==t.background&&(o=t.background)}const s=new qK;for(const d of t)s.getId(d);const r=s.getId(n),a=s.getId(o),l=new XK(i,r,a),c=new JK(l);for(let d=0,h=e.length;d>>0,this._cache.set(t,i)}return(i|e<<0)>>>0}}const jK=/\b(comment|string|regex|regexp)\b/;class XK{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new XK(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==i&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}class JK{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(""===e)return this._mainRule;const t=e.indexOf(".");let i,n;-1===t?(i=e,n=""):(i=e.substring(0,t),n=e.substring(t+1));const o=this._children.get(i);return void 0!==o?o.match(n):this._mainRule}insert(e,t,i,n){if(""===e)return void this._mainRule.acceptOverwrite(t,i,n);const o=e.indexOf(".");let s,r;-1===o?(s=e,r=""):(s=e.substring(0,o),r=e.substring(o+1));let a=this._children.get(s);void 0===a&&(a=new JK(this._mainRule.clone()),this._children.set(s,a)),a.insert(r,t,i,n)}}const QK={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[yb]:"#FFFFFE",[Rb]:"#000000",[Ub]:"#E5EBF1",[dw]:"#D3D3D3",[fw]:"#939393",[Vb]:"#ADD6FF4D"}},ZK={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[yb]:"#1E1E1E",[Rb]:"#D4D4D4",[Ub]:"#3A3D41",[dw]:"#404040",[fw]:"#707070",[Vb]:"#ADD6FF26"}},eY={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[yb]:"#000000",[Rb]:"#FFFFFF",[dw]:"#FFFFFF",[fw]:"#FFFFFF"}},tY={base:"hc-light",inherit:!1,rules:[{token:"",foreground:"292929",background:"FFFFFF"},{token:"invalid",foreground:"B5200D"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"264F70"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"B5200D"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"264F78"},{token:"attribute.value",foreground:"0451A5"},{token:"string",foreground:"A31515"},{token:"string.sql",foreground:"B5200D"},{token:"keyword",foreground:"0000FF"},{token:"keyword.flow",foreground:"AF00DB"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[yb]:"#FFFFFF",[Rb]:"#292929",[dw]:"#292929",[fw]:"#292929"}};var iY,nY;(iY||(iY={})).getDefinition=function(e,t){let i=e.defaults;for(;gd.isThemeIcon(i);){const e=oY.getIcon(i.id);if(!e)return;i=e.defaults}return i},function(e){e.toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map((e=>({format:e.format,location:e.location.toString()})))}},e.fromJSONObject=function(e){const t=e=>q(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every((e=>q(e.format)&&q(e.location))))return{weight:t(e.weight),style:t(e.style),src:e.src.map((e=>({format:e.format,location:An.parse(e.location)})))}}}(nY||(nY={}));const oY=new class{constructor(){this._onDidChange=new Ri,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:pe("vs/platform/theme/common/iconRegistry","iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:pe("vs/platform/theme/common/iconRegistry","iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${gd.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){const o=this.iconsById[e];if(o){if(i&&!o.description){o.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return o}const s={id:e,description:i,defaults:t,deprecationMessage:n};this.iconsById[e]=s;const r={$ref:"#/definitions/icons"};return n&&(r.deprecationMessage=n),i&&(r.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=r,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map((e=>this.iconsById[e]))}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;gd.isThemeIcon(e.defaults);)e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const n=Object.keys(this.iconsById).map((e=>this.iconsById[e]));for(const o of n.filter((e=>!!e.description)).sort(e))i.push(`||${o.id}|${gd.isThemeIcon(o.defaults)?o.defaults.id:o.id}|${o.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const o of n.filter((e=>!gd.isThemeIcon(e.defaults))).sort(e))i.push(`||${o.id}|`);return i.join("\n")}};function sY(e,t,i,n){return oY.registerIcon(e,t,i,n)}function rY(){return oY}dh.add("base.contributions.icons",oY),function(){const e=Kn();for(const t in e){const i="\\"+e[t].toString(16);oY.registerIcon(t,{fontCharacter:i})}}();const aY="vscode://schemas/icons",lY=dh.as(rg);lY.registerSchema(aY,oY.getIconSchema());const cY=new Kr((()=>lY.notifySchemaChanged(aY)),200);oY.onDidChange((()=>{cY.isScheduled()||cY.schedule()}));const dY=sY("widget-close",Yn.close,pe("vs/platform/theme/common/iconRegistry","widgetClose","Icon for the close action in widgets."));sY("goto-previous-location",Yn.arrowUp,pe("vs/platform/theme/common/iconRegistry","previousChangeIcon","Icon for goto previous editor location.")),sY("goto-next-location",Yn.arrowDown,pe("vs/platform/theme/common/iconRegistry","nextChangeIcon","Icon for goto next editor location.")),gd.modify(Yn.sync,"spin"),gd.modify(Yn.loading,"spin");class hY{getIcon(e){const t=rY();let i=e.defaults;for(;gd.isThemeIcon(i);){const e=t.getIcon(i.id);if(!e)return;i=e.defaults}return i}}const uY="vs",gY="vs-dark",mY="hc-black",pY="hc-light",fY=dh.as(eb),_Y=dh.as($E);class bY{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(vY(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(const t in this.themeData.colors)e.set(t,Kp.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=SY(this.themeData.base);for(const i in t.colors)e.has(i)||e.set(i,Kp.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){return this.getColors().get(e)||(!1!==t?this.getDefault(e):void 0)}getDefault(e){let t=this.defaultColors[e];return t||(t=fY.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return this.getColors().has(e)}get type(){switch(this.base){case uY:return AC.LIGHT;case mY:return AC.HIGH_CONTRAST_DARK;case pY:return AC.HIGH_CONTRAST_LIGHT;default:return AC.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const i=SY(this.themeData.base);e=i.rules,i.encodedTokensColors&&(t=i.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],n=this.themeData.colors["editor.background"];if(i||n){const t={token:""};i&&(t.foreground=i),n&&(t.background=n),e.push(t)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=$K.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const n=this.tokenTheme._match([e].concat(t).join(".")).metadata,o=Tf.getForeground(n),s=Tf.getFontStyle(n);return{foreground:o,italic:Boolean(1&s),bold:Boolean(2&s),underline:Boolean(4&s),strikethrough:Boolean(8&s)}}}function vY(e){return e===uY||e===gY||e===mY||e===pY}function SY(e){switch(e){case uY:return QK;case gY:return ZK;case mY:return eY;case pY:return tY}}function CY(e){const t=SY(e);return new bY(e,t)}const EY=id("themeService");var wY=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},TY=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let yY=class extends mi{constructor(e,t,i){super(),this._contextKeyService=e,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new Ri,this._onDidChangeReducedMotion=new Ri,this._accessibilityModeEnabledContext=U_.bindTo(this._contextKeyService);const n=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(n(),this._onDidChangeScreenReaderOptimized.fire()),e.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())}))),n(),this._register(this.onDidChangeScreenReaderOptimized((()=>n())));const o=cs.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=o.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this.initReducedMotionListeners(o)}initReducedMotionListeners(e){this._register(yl(e,"change",(()=>{this._systemMotionReduced=e.matches,"auto"===this._configMotionReduced&&this._onDidChangeReducedMotion.fire()})));const t=()=>{const e=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle("reduce-motion",e),this._layoutService.mainContainer.classList.toggle("enable-motion",!e)};t(),this._register(this.onDidChangeReducedMotion((()=>t())))}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const e=this._configMotionReduced;return"on"===e||"auto"===e&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};yY=wY([TY(0,Zd),TY(1,tO),TY(2,$u)],yY);var RY,LY,IY=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},AY=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let NY=class{constructor(e,t,i){this._commandService=e,this._keybindingService=t,this._hiddenStates=new kY(i)}createMenu(e,t,i){return new OY(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...i},this._commandService,this._keybindingService,t)}resetHiddenStates(e){this._hiddenStates.reset(e)}};NY=IY([AY(0,md),AY(1,tT),AY(2,vW)],NY);let kY=RY=class{constructor(e){this._storageService=e,this._disposables=new gi,this._onDidChange=new Ri,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{const t=e.get(RY._key,0,"{}");this._data=JSON.parse(t)}catch(sue){this._data=Object.create(null)}this._disposables.add(e.onDidChangeValue(0,RY._key,this._disposables)((()=>{if(!this._ignoreChangeEvent)try{const t=e.get(RY._key,0,"{}");this._data=JSON.parse(t)}catch(sue){}this._onDidChange.fire()})))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(e,t){var i;return null!==(i=this._hiddenByDefaultCache.get(`${e.id}/${t}`))&&void 0!==i&&i}setDefaultState(e,t,i){this._hiddenByDefaultCache.set(`${e.id}/${t}`,i)}isHidden(e,t){var i,n;const o=this._isHiddenByDefault(e,t),s=null!==(n=null===(i=this._data[e.id])||void 0===i?void 0:i.includes(t))&&void 0!==n&&n;return o?!s:s}updateHidden(e,t,i){this._isHiddenByDefault(e,t)&&(i=!i);const n=this._data[e.id];if(i)n?n.indexOf(t)<0&&n.push(t):this._data[e.id]=[t];else if(n){const i=n.indexOf(t);i>=0&&function(e,t){const i=e.length-1;te[1])));o.length>0&&s.push(new Eh(t,n,o))}}s.length>0&&t.push([n,s])}return t}static _fillInKbExprKeys(e,t){if(e)for(const i of e.keys())t.add(i)}static _compareMenuItems(e,t){const i=e.group,n=t.group;if(i!==n){if(!i)return 1;if(!n)return-1;if("navigation"===i)return-1;if("navigation"===n)return 1;const e=i.localeCompare(n);if(0!==e)return e}const o=e.order||0,s=t.order||0;return os?1:LY._compareTitles(_h(e)?e.command.title:e.title,_h(t)?t.command.title:t.title)}static _compareTitles(e,t){const i="string"==typeof e?e:e.original,n="string"==typeof t?t:t.original;return i.localeCompare(n)}};DY=LY=IY([AY(3,md),AY(4,tT),AY(5,Zd)],DY);let OY=class{constructor(e,t,i,n,o,s){this._disposables=new gi,this._menuInfo=new DY(e,t,i.emitEventsForSubmenuChanges,n,o,s);const r=new Kr((()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})}),i.eventDebounceDelay);this._disposables.add(r),this._disposables.add(Ch.onDidChangeMenu((t=>{t.has(e)&&r.schedule()})));const a=this._disposables.add(new gi);this._onDidChange=new Ai({onWillAddFirstListener:()=>{a.add(s.onDidChangeContext((e=>{const t=e.affectsSome(this._menuInfo.structureContextKeys),i=e.affectsSome(this._menuInfo.preconditionContextKeys),n=e.affectsSome(this._menuInfo.toggledContextKeys);(t||i||n)&&this._onDidChange.fire({menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:n})}))),a.add(t.onDidChange((e=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})})))},onDidRemoveLastListener:a.clear.bind(a),delay:i.eventDebounceDelay,merge:e=>{let t=!1,i=!1,n=!1;for(const o of e)if(t=t||o.isStructuralChange,i=i||o.isEnablementChange,n=n||o.isToggleChange,t&&i&&n)break;return{menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:n}}}),this.onDidChange=this._onDidChange.event}getActions(e){return this._menuInfo.createActionGroups(e)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}};function xY(e,t,i){const n=void 0!==t.submenu?t.submenu.id:t.id,o="string"==typeof t.title?t.title:t.title.value,s=hd({id:`hide/${e.id}/${n}`,label:pe("vs/platform/actions/common/menuService","hide.label","Hide '{0}'",o),run(){i.updateHidden(e,n,!0)}}),r=hd({id:`toggle/${e.id}/${n}`,label:o,get checked(){return!i.isHidden(e,n)},run(){i.updateHidden(e,n,!!this.checked)}});return{hide:s,toggle:r,get isHidden(){return!r.checked}}}function MY(e,t=void 0,i,n){return hd({id:`configureKeybinding/${e}`,label:pe("vs/platform/actions/common/menuService","configure keybinding","Configure Keybinding"),run(){const o=!n.lookupKeybinding(e)&&t?t.serialize():void 0;i.executeCommand("workbench.action.openGlobalKeybindings",`@command:${e}`+(o?` +when:${o}`:""))}})}OY=IY([AY(3,md),AY(4,tT),AY(5,Zd)],OY);var PY,FY=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},BY=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let HY=PY=class extends mi{constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(mr||pr)&&this.installWebKitWriteTextWorkaround(),this._register(Ci.runAndSubscribe(Sl,(({window:e,disposables:t})=>{t.add(yl(e.document,"copy",(()=>this.clearResources())))}),{window:cs,disposables:this._store}))}installWebKitWriteTextWorkaround(){const e=()=>{const e=new Xr;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=e,navigator.clipboard.write([new ClipboardItem({"text/plain":e.p})]).catch((async t=>{t instanceof Error&&"NotAllowedError"===t.name&&e.isRejected||this.logService.error(t)}))};this._register(Ci.runAndSubscribe(this.layoutService.onDidAddContainer,(({container:t,disposables:i})=>{i.add(yl(t,"click",e)),i.add(yl(t,"keydown",e))}),{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(e,t){if(this.writeResources([]),t)this.mapTextToType.set(t,e);else{if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return await navigator.clipboard.writeText(e)}catch(sue){}this.fallbackWriteText(e)}}fallbackWriteText(e){const t=Zl(),i=t.activeElement,n=t.body.appendChild(yc("textarea",{"aria-hidden":!0}));n.style.height="1px",n.style.width="1px",n.style.position="absolute",n.value=e,n.focus(),n.select(),t.execCommand("copy"),i instanceof HTMLElement&&i.focus(),t.body.removeChild(n)}async readText(e){if(e)return this.mapTextToType.get(e)||"";try{return await navigator.clipboard.readText()}catch(sue){}return""}async readFindText(){return this.findText}async writeFindText(e){this.findText=e}async writeResources(e){0===e.length?this.clearResources():(this.resources=e,this.resourcesStateHash=await this.computeResourcesStateHash())}async readResources(){const e=await this.computeResourcesStateHash();return this.resourcesStateHash!==e&&this.clearResources(),this.resources}async computeResourcesStateHash(){if(0!==this.resources.length)return ol((await this.readText()).substring(0,PY.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearResources(){this.resources=[],this.resourcesStateHash=void 0}};HY.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3,HY=PY=FY([BY(0,tO),BY(1,Lh)],HY);const WY=id("clipboardService");var UY=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},VY=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const GY="data-keybinding-context";let zY=class{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return{...this._value}}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){const t=this._value[e];return void 0===t&&this._parent?this._parent.getValue(e):t}};class KY extends zY{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}KY.INSTANCE=new KY;class YY extends zY{constructor(e,t,i){super(e,null),this._configurationService=t,this._values=GF.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration((e=>{if(7===e.source){const e=Array.from(this._values,(([e])=>e));this._values.clear(),i.fire(new jY(e))}else{const t=[];for(const i of e.affectedKeys){const e=`config.${i}`,n=this._values.findSuperstr(e);void 0!==n&&(t.push(...nt.map(n,(([e])=>e))),this._values.deleteSuperstr(e)),this._values.has(e)&&(t.push(e),this._values.delete(e))}i.fire(new jY(t))}}))}dispose(){this._listener.dispose()}getValue(e){if(0!==e.indexOf(YY._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(YY._keyPrefix.length),i=this._configurationService.getValue(t);let n;switch(typeof i){case"number":case"boolean":case"string":n=i;break;default:n=Array.isArray(i)?JSON.stringify(i):i}return this._values.set(e,n),n}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}YY._keyPrefix="config.";class qY{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){void 0===this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class $Y{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}}class jY{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every((t=>e.has(t)))}}class XY{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every((t=>t.allKeysContainedIn(e)))}}class JY extends mi{constructor(e){super(),this._onDidChangeContext=this._register(new Ii({merge:e=>new XY(e)})),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new qY(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new ZY(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return!e||e.evaluate(t)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const i=this.getContextValuesContainer(this._myContextId);i&&i.setValue(e,t)&&this._onDidChangeContext.fire(new $Y(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new $Y(e))}getContext(e){return this._isDisposed?KY.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(GY)){const t=e.getAttribute(GY);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}(e))}dispose(){super.dispose(),this._isDisposed=!0}}let QY=class extends JY{constructor(e){super(0),this._contexts=new Map,this._lastContextId=0;const t=this._register(new YY(this._myContextId,e,this._onDidChangeContext));this._contexts.set(this._myContextId,t)}getContextValuesContainer(e){return this._isDisposed?KY.INSTANCE:this._contexts.get(e)||KY.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const t=++this._lastContextId;return this._contexts.set(t,new zY(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};QY=UY([VY(0,$u)],QY);class ZY extends JY{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=this._register(new pi),this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(GY)){let e="";this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(", "))}this._domNode.setAttribute(GY,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext((e=>{var t;t=this._parent.getContextValuesContainer(this._myContextId).value,e.allKeysContainedIn(new Set(Object.keys(t)))||this._onDidChangeContext.fire(e)}))}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(GY),super.dispose())}getContextValuesContainer(e){return this._isDisposed?KY.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}pd.registerCommand("_setContext",(function(e,t,i){e.get(Zd).createKey(String(t),le(i,(e=>"object"==typeof e&&1===e.$mid?An.revive(e).toString():e instanceof An?e.toString():void 0)))})),pd.registerCommand({id:"getContextKeyInfo",handler:()=>[...Qd.all()].sort(((e,t)=>e.key.localeCompare(t.key))),metadata:{description:pe("vs/platform/contextkey/browser/contextKeyService","getContextKeyInfo","A command that returns information about context keys"),args:[]}}),pd.registerCommand("_generateContextKeyInfo",(function(){const e=[],t=new Set;for(const i of Qd.all())t.has(i.key)||(t.add(i.key),e.push(i));e.sort(((e,t)=>e.key.localeCompare(t.key)))}));class eq{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(const t of this._nodes.values())0===t.outgoing.size&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),n=this.lookupOrInsertNode(t);i.outgoing.set(n.key,n),n.incoming.set(i.key,i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(const i of this._nodes.values())i.outgoing.delete(t),i.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new class{constructor(e,t){this.key=e,this.data=t,this.incoming=new Map,this.outgoing=new Map}}(t,e),this._nodes.set(t,i)),i}isEmpty(){return 0===this._nodes.size}toString(){const e=[];for(const[t,i]of this._nodes)e.push(`${t}\n\t(-> incoming)[${[...i.incoming.keys()].join(", ")}]\n\t(outgoing ->)[${[...i.outgoing.keys()].join(",")}]\n`);return e.join("\n")}findCycleSlow(){for(const[e,t]of this._nodes){const i=new Set([e]),n=this._findCycle(t,i);if(n)return n}}_findCycle(e,t){for(const[i,n]of e.outgoing){if(t.has(i))return[...t,i].join(" -> ");t.add(i);const e=this._findCycle(n,t);if(e)return e;t.delete(i)}}}class tq extends Error{constructor(e){var t;super("cyclic dependency between services"),this.message=null!==(t=e.findCycleSlow())&&void 0!==t?t:`UNABLE to detect cycle, dumping graph: \n${e.toString()}`}}class iq{constructor(e=new LD,t=!1,i,n=!1){var o;this._services=e,this._strict=t,this._parent=i,this._enableTracing=n,this._isDisposed=!1,this._servicesToMaybeDispose=new Set,this._children=new Set,this._activeInstantiations=new Set,this._services.set(td,this),this._globalGraph=n?null!==(o=null==i?void 0:i._globalGraph)&&void 0!==o?o:new eq((e=>e)):void 0}dispose(){if(!this._isDisposed){this._isDisposed=!0,di(this._children),this._children.clear();for(const e of this._servicesToMaybeDispose)ci(e)&&e.dispose();this._servicesToMaybeDispose.clear()}}_throwIfDisposed(){if(this._isDisposed)throw new Error("InstantiationService has been disposed")}createChild(e){this._throwIfDisposed();const t=new class extends iq{dispose(){this._children.delete(t),super.dispose()}}(e,this._strict,this,this._enableTracing);return this._children.add(t),t}invokeFunction(e,...t){this._throwIfDisposed();const i=nq.traceInvocation(this._enableTracing,e);let n=!1;try{return e({get:e=>{if(n)throw oi("service accessor is only valid during the invocation of its target method");const t=this._getOrCreateServiceInstance(e,i);if(!t)throw new Error(`[invokeFunction] unknown service '${e}'`);return t}},...t)}finally{n=!0,i.stop()}}createInstance(e,...t){let i,n;return this._throwIfDisposed(),e instanceof tg?(i=nq.traceCreation(this._enableTracing,e.ctor),n=this._createInstance(e.ctor,e.staticArguments.concat(t),i)):(i=nq.traceCreation(this._enableTracing,e),n=this._createInstance(e,t,i)),i.stop(),n}_createInstance(e,t=[],i){const n=ed.getServiceDependencies(e).sort(((e,t)=>e.index-t.index)),o=[];for(const r of n){const t=this._getOrCreateServiceInstance(r.id,i);t||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${r.id}.`,!1),o.push(t)}const s=n.length>0?n[0].index:t.length;if(t.length!==s){const e=s-t.length;t=e>0?t.concat(new Array(e)):t.slice(0,s)}return Reflect.construct(e,t.concat(o))}_setCreatedServiceInstance(e,t){if(this._services.get(e)instanceof tg)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setCreatedServiceInstance(e,t)}}_getServiceInstanceOrDescriptor(e){const t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(e));const i=this._getServiceInstanceOrDescriptor(e);return i instanceof tg?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i)}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,i)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,i){var n;const o=new eq((e=>e.id.toString()));let s=0;const r=[{id:e,desc:t,_trace:i}];for(;r.length;){const t=r.pop();if(o.lookupOrInsertNode(t),s++>1e3)throw new tq(o);for(const i of ed.getServiceDependencies(t.desc.ctor)){const s=this._getServiceInstanceOrDescriptor(i.id);if(s||this._throwIfStrict(`[createInstance] ${e} depends on ${i.id} which is NOT registered.`,!0),null===(n=this._globalGraph)||void 0===n||n.insertEdge(String(t.id),String(i.id)),s instanceof tg){const e={id:i.id,desc:s,_trace:t._trace.branch(i.id,!0)};o.insertEdge(t,e),r.push(e)}}}for(;;){const e=o.roots();if(0===e.length){if(!o.isEmpty())throw new tq(o);break}for(const{data:t}of e){if(this._getServiceInstanceOrDescriptor(t.id)instanceof tg){const e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setCreatedServiceInstance(t.id,e)}o.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,i=[],n,o){if(this._services.get(e)instanceof tg)return this._createServiceInstance(e,t,i,n,o,this._servicesToMaybeDispose);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,n,o);throw new Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(e,t,i=[],n,o,s){if(n){const n=new iq(void 0,this._strict,this,this._enableTracing);n._globalGraphImplicitDependency=String(e);const r=new Map,a=new jr((()=>{const e=n._createInstance(t,i,o);for(const[t,i]of r){const n=e[t];if("function"==typeof n)for(const t of i)t.disposable=n.apply(e,t.listener)}return r.clear(),s.add(e),e}));return new Proxy(Object.create(null),{get(e,t){if(!a.isInitialized&&"string"==typeof t&&(t.startsWith("onDid")||t.startsWith("onWill"))){let e=r.get(t);e||(e=new st,r.set(t,e));return(i,n,o)=>{if(a.isInitialized)return a.value[t](i,n,o);{const t={listener:[i,n,o],disposable:void 0},s=e.push(t);return ui((()=>{var e;s(),null===(e=t.disposable)||void 0===e||e.dispose()}))}}}if(t in e)return e[t];const i=a.value;let n=i[t];return"function"!=typeof n||(n=n.bind(i),e[t]=n),n},set:(e,t,i)=>(a.value[t]=i,!0),getPrototypeOf:e=>t.prototype})}{const e=this._createInstance(t,i,o);return s.add(e),e}}_throwIfStrict(e,t){if(this._strict)throw new Error(e)}}class nq{static traceInvocation(e,t){return e?new nq(2,t.name||(new Error).stack.split("\n").slice(3,4).join("\n")):nq._None}static traceCreation(e,t){return e?new nq(1,t.name):nq._None}constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}branch(e,t){const i=new nq(3,e.toString());return this._dep.push([e,t,i]),i}stop(){const e=Date.now()-this._start;nq._totals+=e;let t=!1;const i=[`${1===this.type?"CREATE":"CALL"} ${this.name}`,`${function e(i,n){const o=[],s=new Array(i+1).join("\t");for(const[r,a,l]of n._dep)if(a&&l){t=!0,o.push(`${s}CREATES -> ${r}`);const n=e(i+1,l);n&&o.push(n)}else o.push(`${s}uses -> ${r}`);return o.join("\n")}(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${nq._totals.toFixed(2)}ms)`];(e>2||t)&&nq.all.add(i.join("\n"))}}nq.all=new Set,nq._None=new class extends nq{constructor(){super(0,null)}stop(){}branch(){return this}},nq._totals=0;const oq=new Set([Ja.inMemory,Ja.vscodeSourceControl,Ja.walkThrough,Ja.walkThroughSnippet,Ja.vscodeChatCodeBlock]);class sq{constructor(){this._byResource=new cm,this._byOwner=new Map}set(e,t,i){let n=this._byResource.get(e);n||(n=new Map,this._byResource.set(e,n)),n.set(t,i);let o=this._byOwner.get(t);o||(o=new cm,this._byOwner.set(t,o)),o.set(e,i)}get(e,t){const i=this._byResource.get(e);return null==i?void 0:i.get(t)}delete(e,t){let i=!1,n=!1;const o=this._byResource.get(e);o&&(i=o.delete(t));const s=this._byOwner.get(t);if(s&&(n=s.delete(e)),i!==n)throw new Error("illegal state");return i&&n}values(e){var t,i,n,o;return"string"==typeof e?null!==(i=null===(t=this._byOwner.get(e))||void 0===t?void 0:t.values())&&void 0!==i?i:nt.empty():An.isUri(e)?null!==(o=null===(n=this._byResource.get(e))||void 0===n?void 0:n.values())&&void 0!==o?o:nt.empty():nt.map(nt.concat(...this._byOwner.values()),(e=>e[1]))}}class rq{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new cm,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const e=this._data.get(t);e&&this._substract(e);const i=this._resourceStats(t);this._add(i),this._data.set(t,i)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(oq.has(e.scheme))return t;for(const{severity:i}of this._service.read({resource:e}))i===uU.Error?t.errors+=1:i===uU.Warning?t.warnings+=1:i===uU.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class aq{constructor(){this._onMarkerChanged=new Ai({delay:0,merge:aq._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new sq,this._stats=new rq(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const i of t||[])this.changeOne(e,i,[])}changeOne(e,t,i){if(R(i))this._data.delete(t,e)&&this._onMarkerChanged.fire([t]);else{const n=[];for(const o of i){const i=aq._toMarker(e,t,o);i&&n.push(i)}this._data.set(t,e,n),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,i){let{code:n,severity:o,message:s,source:r,startLineNumber:a,startColumn:l,endLineNumber:c,endColumn:d,relatedInformation:h,tags:u}=i;if(s)return a=a>0?a:1,l=l>0?l:1,c=c>=a?c:a,d=d>0?d:l,{resource:t,owner:e,code:n,severity:o,message:s,source:r,startLineNumber:a,startColumn:l,endLineNumber:c,endColumn:d,relatedInformation:h,tags:u}}changeAll(e,t){const i=[],n=this._data.values(e);if(n)for(const o of n){const t=nt.first(o);t&&(i.push(t.resource),this._data.delete(t.resource,e))}if(L(t)){const n=new cm;for(const{resource:o,marker:s}of t){const t=aq._toMarker(e,o,s);if(!t)continue;const r=n.get(o);r?r.push(t):(n.set(o,[t]),i.push(o))}for(const[t,i]of n)this._data.set(t,e,i)}i.length>0&&this._onMarkerChanged.fire(i)}read(e=Object.create(null)){let{owner:t,resource:i,severities:n,take:o}=e;if((!o||o<0)&&(o=-1),t&&i){const e=this._data.get(i,t);if(e){const t=[];for(const i of e)if(aq._accept(i,n)){const e=t.push(i);if(o>0&&e===o)break}return t}return[]}if(t||i){const e=this._data.values(null!=i?i:t),s=[];for(const t of e)for(const e of t)if(aq._accept(e,n)){const t=s.push(e);if(o>0&&t===o)return s}return s}{const e=[];for(const t of this._data.values())for(const i of t)if(aq._accept(i,n)){const t=e.push(i);if(o>0&&t===o)return e}return e}}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity}static _merge(e){const t=new cm;for(const i of e)for(const e of i)t.set(e,!0);return Array.from(t.keys())}}class lq extends mi{get configurationModel(){return this._configurationModel}constructor(e){super(),this.logService=e,this._configurationModel=hF.createEmptyModel(this.logService)}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=hF.createEmptyModel(this.logService);const e=dh.as(lg).getConfigurationProperties();this.updateConfigurationModel(Object.keys(e),e)}updateConfigurationModel(e,t){const i=this.getConfigurationDefaultOverrides();for(const n of e){const e=i[n],o=t[n];void 0!==e?this._configurationModel.addValue(n,e):o?this._configurationModel.addValue(n,o.default):this._configurationModel.removeValue(n)}}}const cq=id("accessibilitySignalService");class dq{static register(e){return new dq(e.fileName)}constructor(e){this.fileName=e}}dq.error=dq.register({fileName:"error.mp3"}),dq.warning=dq.register({fileName:"warning.mp3"}),dq.foldedArea=dq.register({fileName:"foldedAreas.mp3"}),dq.break=dq.register({fileName:"break.mp3"}),dq.quickFixes=dq.register({fileName:"quickFixes.mp3"}),dq.taskCompleted=dq.register({fileName:"taskCompleted.mp3"}),dq.taskFailed=dq.register({fileName:"taskFailed.mp3"}),dq.terminalBell=dq.register({fileName:"terminalBell.mp3"}),dq.diffLineInserted=dq.register({fileName:"diffLineInserted.mp3"}),dq.diffLineDeleted=dq.register({fileName:"diffLineDeleted.mp3"}),dq.diffLineModified=dq.register({fileName:"diffLineModified.mp3"}),dq.chatRequestSent=dq.register({fileName:"chatRequestSent.mp3"}),dq.chatResponseReceived1=dq.register({fileName:"chatResponseReceived1.mp3"}),dq.chatResponseReceived2=dq.register({fileName:"chatResponseReceived2.mp3"}),dq.chatResponseReceived3=dq.register({fileName:"chatResponseReceived3.mp3"}),dq.chatResponseReceived4=dq.register({fileName:"chatResponseReceived4.mp3"}),dq.clear=dq.register({fileName:"clear.mp3"}),dq.save=dq.register({fileName:"save.mp3"}),dq.format=dq.register({fileName:"format.mp3"}),dq.voiceRecordingStarted=dq.register({fileName:"voiceRecordingStarted.mp3"}),dq.voiceRecordingStopped=dq.register({fileName:"voiceRecordingStopped.mp3"}),dq.progress=dq.register({fileName:"progress.mp3"});class hq{constructor(e){this.randomOneOf=e}}class uq{constructor(e,t,i,n,o,s){this.sound=e,this.name=t,this.legacySoundSettingsKey=i,this.settingsKey=n,this.legacyAnnouncementSettingsKey=o,this.announcementMessage=s}static register(e){const t=new hq("randomOneOf"in e.sound?e.sound.randomOneOf:[e.sound]),i=new uq(t,e.name,e.legacySoundSettingsKey,e.settingsKey,e.legacyAnnouncementSettingsKey,e.announcementMessage);return uq._signals.add(i),i}}uq._signals=new Set,uq.errorAtPosition=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.positionHasError.name","Error at Position"),sound:dq.error,announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.positionHasError","Error"),settingsKey:"accessibility.signals.positionHasError"}),uq.warningAtPosition=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.positionHasWarning.name","Warning at Position"),sound:dq.warning,announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.positionHasWarning","Warning"),settingsKey:"accessibility.signals.positionHasWarning"}),uq.errorOnLine=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.lineHasError.name","Error on Line"),sound:dq.error,legacySoundSettingsKey:"audioCues.lineHasError",legacyAnnouncementSettingsKey:"accessibility.alert.error",announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.lineHasError","Error on Line"),settingsKey:"accessibility.signals.lineHasError"}),uq.warningOnLine=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.lineHasWarning.name","Warning on Line"),sound:dq.warning,legacySoundSettingsKey:"audioCues.lineHasWarning",legacyAnnouncementSettingsKey:"accessibility.alert.warning",announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.lineHasWarning","Warning on Line"),settingsKey:"accessibility.signals.lineHasWarning"}),uq.foldedArea=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.lineHasFoldedArea.name","Folded Area on Line"),sound:dq.foldedArea,legacySoundSettingsKey:"audioCues.lineHasFoldedArea",legacyAnnouncementSettingsKey:"accessibility.alert.foldedArea",announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.lineHasFoldedArea","Folded"),settingsKey:"accessibility.signals.lineHasFoldedArea"}),uq.break=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.lineHasBreakpoint.name","Breakpoint on Line"),sound:dq.break,legacySoundSettingsKey:"audioCues.lineHasBreakpoint",legacyAnnouncementSettingsKey:"accessibility.alert.breakpoint",announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.lineHasBreakpoint","Breakpoint"),settingsKey:"accessibility.signals.lineHasBreakpoint"}),uq.inlineSuggestion=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.lineHasInlineSuggestion.name","Inline Suggestion on Line"),sound:dq.quickFixes,legacySoundSettingsKey:"audioCues.lineHasInlineSuggestion",settingsKey:"accessibility.signals.lineHasInlineSuggestion"}),uq.terminalQuickFix=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.terminalQuickFix.name","Terminal Quick Fix"),sound:dq.quickFixes,legacySoundSettingsKey:"audioCues.terminalQuickFix",legacyAnnouncementSettingsKey:"accessibility.alert.terminalQuickFix",announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.terminalQuickFix","Quick Fix"),settingsKey:"accessibility.signals.terminalQuickFix"}),uq.onDebugBreak=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.onDebugBreak.name","Debugger Stopped on Breakpoint"),sound:dq.break,legacySoundSettingsKey:"audioCues.onDebugBreak",legacyAnnouncementSettingsKey:"accessibility.alert.onDebugBreak",announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.onDebugBreak","Breakpoint"),settingsKey:"accessibility.signals.onDebugBreak"}),uq.noInlayHints=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.noInlayHints","No Inlay Hints on Line"),sound:dq.error,legacySoundSettingsKey:"audioCues.noInlayHints",legacyAnnouncementSettingsKey:"accessibility.alert.noInlayHints",announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.noInlayHints","No Inlay Hints"),settingsKey:"accessibility.signals.noInlayHints"}),uq.taskCompleted=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.taskCompleted","Task Completed"),sound:dq.taskCompleted,legacySoundSettingsKey:"audioCues.taskCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.taskCompleted",announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.taskCompleted","Task Completed"),settingsKey:"accessibility.signals.taskCompleted"}),uq.taskFailed=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.taskFailed","Task Failed"),sound:dq.taskFailed,legacySoundSettingsKey:"audioCues.taskFailed",legacyAnnouncementSettingsKey:"accessibility.alert.taskFailed",announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.taskFailed","Task Failed"),settingsKey:"accessibility.signals.taskFailed"}),uq.terminalCommandFailed=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.terminalCommandFailed","Terminal Command Failed"),sound:dq.error,legacySoundSettingsKey:"audioCues.terminalCommandFailed",legacyAnnouncementSettingsKey:"accessibility.alert.terminalCommandFailed",announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.terminalCommandFailed","Command Failed"),settingsKey:"accessibility.signals.terminalCommandFailed"}),uq.terminalBell=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.terminalBell","Terminal Bell"),sound:dq.terminalBell,legacySoundSettingsKey:"audioCues.terminalBell",legacyAnnouncementSettingsKey:"accessibility.alert.terminalBell",announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.terminalBell","Terminal Bell"),settingsKey:"accessibility.signals.terminalBell"}),uq.notebookCellCompleted=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.notebookCellCompleted","Notebook Cell Completed"),sound:dq.taskCompleted,legacySoundSettingsKey:"audioCues.notebookCellCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellCompleted",announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.notebookCellCompleted","Notebook Cell Completed"),settingsKey:"accessibility.signals.notebookCellCompleted"}),uq.notebookCellFailed=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.notebookCellFailed","Notebook Cell Failed"),sound:dq.taskFailed,legacySoundSettingsKey:"audioCues.notebookCellFailed",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellFailed",announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.notebookCellFailed","Notebook Cell Failed"),settingsKey:"accessibility.signals.notebookCellFailed"}),uq.diffLineInserted=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.diffLineInserted","Diff Line Inserted"),sound:dq.diffLineInserted,legacySoundSettingsKey:"audioCues.diffLineInserted",settingsKey:"accessibility.signals.diffLineInserted"}),uq.diffLineDeleted=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.diffLineDeleted","Diff Line Deleted"),sound:dq.diffLineDeleted,legacySoundSettingsKey:"audioCues.diffLineDeleted",settingsKey:"accessibility.signals.diffLineDeleted"}),uq.diffLineModified=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.diffLineModified","Diff Line Modified"),sound:dq.diffLineModified,legacySoundSettingsKey:"audioCues.diffLineModified",settingsKey:"accessibility.signals.diffLineModified"}),uq.chatRequestSent=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.chatRequestSent","Chat Request Sent"),sound:dq.chatRequestSent,legacySoundSettingsKey:"audioCues.chatRequestSent",legacyAnnouncementSettingsKey:"accessibility.alert.chatRequestSent",announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.chatRequestSent","Chat Request Sent"),settingsKey:"accessibility.signals.chatRequestSent"}),uq.chatResponseReceived=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.chatResponseReceived","Chat Response Received"),legacySoundSettingsKey:"audioCues.chatResponseReceived",sound:{randomOneOf:[dq.chatResponseReceived1,dq.chatResponseReceived2,dq.chatResponseReceived3,dq.chatResponseReceived4]},settingsKey:"accessibility.signals.chatResponseReceived"}),uq.progress=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.progress","Progress"),sound:dq.progress,legacySoundSettingsKey:"audioCues.chatResponsePending",legacyAnnouncementSettingsKey:"accessibility.alert.chatResponseProgress",announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.progress","Progress"),settingsKey:"accessibility.signals.progress"}),uq.clear=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.clear","Clear"),sound:dq.clear,legacySoundSettingsKey:"audioCues.clear",legacyAnnouncementSettingsKey:"accessibility.alert.clear",announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.clear","Clear"),settingsKey:"accessibility.signals.clear"}),uq.save=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.save","Save"),sound:dq.save,legacySoundSettingsKey:"audioCues.save",legacyAnnouncementSettingsKey:"accessibility.alert.save",announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.save","Save"),settingsKey:"accessibility.signals.save"}),uq.format=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.format","Format"),sound:dq.format,legacySoundSettingsKey:"audioCues.format",legacyAnnouncementSettingsKey:"accessibility.alert.format",announcementMessage:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibility.signals.format","Format"),settingsKey:"accessibility.signals.format"}),uq.voiceRecordingStarted=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.voiceRecordingStarted","Voice Recording Started"),sound:dq.voiceRecordingStarted,legacySoundSettingsKey:"audioCues.voiceRecordingStarted",settingsKey:"accessibility.signals.voiceRecordingStarted"}),uq.voiceRecordingStopped=uq.register({name:pe("vs/platform/accessibilitySignal/browser/accessibilitySignalService","accessibilitySignals.voiceRecordingStopped","Voice Recording Stopped"),sound:dq.voiceRecordingStopped,legacySoundSettingsKey:"audioCues.voiceRecordingStopped",settingsKey:"accessibility.signals.voiceRecordingStopped"});class gq extends mi{constructor(e,t=[]){super(),this.logger=new Dh([e,...t]),this._register(e.onDidChangeLogLevel((e=>this.setLevel(e))))}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(e){this.logger.setLevel(e)}getLevel(){return this.logger.getLevel()}trace(e,...t){this.logger.trace(e,...t)}debug(e,...t){this.logger.debug(e,...t)}info(e,...t){this.logger.info(e,...t)}warn(e,...t){this.logger.warn(e,...t)}error(e,...t){this.logger.error(e,...t)}}const mq=[];function pq(e){mq.push(e)}var fq=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},_q=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class bq{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new Ri}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let vq=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new _i(new bq(t))):Promise.reject(new Error("Model not found"))}};vq=fq([_q(0,od)],vq);class Sq{show(){return Sq.NULL_PROGRESS_RUNNER}async showWhile(e,t){await e}}Sq.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class Cq{info(e){return this.notify({severity:AD.Info,message:e})}warn(e){return this.notify({severity:AD.Warning,message:e})}error(e){return this.notify({severity:AD.Error,message:e})}notify(e){switch(e.severity){case AD.Error:case AD.Warning:}return Cq.NO_OP}prompt(e,t,i,n){return Cq.NO_OP}status(e,t){return mi.None}}Cq.NO_OP=new class{};let Eq=class{constructor(e){this._onWillExecuteCommand=new Ri,this._onDidExecuteCommand=new Ri,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const i=pd.getCommand(e);if(!i)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const n=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(sue){return Promise.reject(sue)}}};Eq=fq([_q(0,td)],Eq);let wq=class extends EF{constructor(e,t,i,n,o,s){super(e,t,i,n,o),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const r=e=>{const t=new gi;t.add(yl(e,mc.KEY_DOWN,(e=>{const t=new Lr(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),t.add(yl(e,mc.KEY_UP,(e=>{const t=new Lr(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()}))),this._domNodeListeners.push(new Tq(e,t))},a=e=>{for(let t=0;t{e.getOption(61)||r(e.getContainerDomNode())};this._register(s.onCodeEditorAdd(l)),this._register(s.onCodeEditorRemove((e=>{e.getOption(61)||a(e.getContainerDomNode())}))),s.listCodeEditors().forEach(l);const c=e=>{r(e.getContainerDomNode())};this._register(s.onDiffEditorAdd(c)),this._register(s.onDiffEditorRemove((e=>{a(e.getContainerDomNode())}))),s.listDiffEditors().forEach(c)}addDynamicKeybinding(e,t,i,n){return hi(pd.registerCommand(e,i),this.addDynamicKeybindings([{keybinding:t,command:e,when:n}]))}addDynamicKeybindings(e){const t=e.map((e=>{var t;return{keybinding:vr(e.keybinding,qe),command:null!==(t=e.command)&&void 0!==t?t:null,commandArgs:e.commandArgs,when:e.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}}));return this._dynamicKeybindings=this._dynamicKeybindings.concat(t),this.updateResolver(),ui((()=>{for(let e=0;ethis._log(e)))}return this._cachedResolver}_documentHasFocus(){return cs.document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let n=0;for(const o of e){const e=o.when||void 0,s=o.keybinding;if(s){const r=OF.resolveKeybinding(s,qe);for(const s of r)i[n++]=new TF(s,o.command,o.commandArgs,e,t,null,!1)}else i[n++]=new TF(void 0,o.command,o.commandArgs,e,t,null,!1)}return i}resolveKeyboardEvent(e){const t=new Cr(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode);return new OF([t],qe)}};wq=fq([_q(0,Zd),_q(1,md),_q(2,Rh),_q(3,kD),_q(4,Lh),_q(5,nd)],wq);class Tq extends mi{constructor(e,t){super(),this.domNode=e,this._register(t)}}function yq(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof An)}let Rq=class{constructor(e){this.logService=e,this._onDidChangeConfiguration=new Ri,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;const t=new lq(e);this._configuration=new mF(t.reload(),hF.createEmptyModel(e),hF.createEmptyModel(e),hF.createEmptyModel(e),hF.createEmptyModel(e),hF.createEmptyModel(e),new cm,hF.createEmptyModel(e),new cm,e),t.dispose()}getValue(e,t){const i="string"==typeof e?e:void 0,n=yq(e)?e:yq(t)?t:{};return this._configuration.getValue(i,n,void 0)}updateValues(e){const t={data:this._configuration.toData()},i=[];for(const n of e){const[e,t]=n;this.getValue(e)!==t&&(this._configuration.updateValue(e,t),i.push(e))}if(i.length>0){const e=new pF({keys:i,overrides:[]},t,this._configuration,void 0,this.logService);e.source=8,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}updateValue(e,t,i,n){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}};Rq=fq([_q(0,Lh)],Rq);let Lq=class{constructor(e,t,i){this.configurationService=e,this.modelService=t,this.languageService=i,this._onDidChangeConfiguration=new Ri,this.configurationService.onDidChangeConfiguration((e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,i)=>e.affectsConfiguration(i)})}))}getValue(e,t,i){const n=Wn.isIPosition(t)?t:null,o=n?"string"==typeof i?i:void 0:"string"==typeof t?t:void 0,s=e?this.getLanguage(e,n):void 0;return void 0===o?this.configurationService.getValue({resource:e,overrideIdentifier:s}):this.configurationService.getValue(o,{resource:e,overrideIdentifier:s})}getLanguage(e,t){const i=this.modelService.getModel(e);return i?t?i.getLanguageIdAtPosition(t.lineNumber,t.column):i.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(e)}};Lq=fq([_q(0,$u),_q(1,od),_q(2,eg)],Lq);let Iq=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&"string"==typeof i&&"auto"!==i?i:Fe||Pe?"\n":"\r\n"}};Iq=fq([_q(0,$u)],Iq);class Aq{constructor(){const e=An.from({scheme:Aq.SCHEME,authority:"model",path:"/"});this.workspace={id:$F,folders:[new qF({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===Aq.SCHEME?this.workspace.folders[0]:null}}function Nq(e,t,i){if(!t)return;if(!(e instanceof Rq))return;const n=[];Object.keys(t).forEach((e=>{var o;o=e,!!lF()[`editor.${o}`]&&n.push([`editor.${e}`,t[e]]),i&&function(e){return lF()[`diffEditor.${e}`]||!1}(e)&&n.push([`diffEditor.${e}`,t[e]])})),n.length>0&&e.updateValues(n)}Aq.SCHEME="inmemory";let kq=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}async apply(e,t){const i=Array.isArray(e)?e:eF.convert(e),n=new Map;for(const r of i){if(!(r instanceof tF))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(r.resource);if(!e)throw new Error("bad edit - model not found");if("number"==typeof r.versionId&&e.getVersionId()!==r.versionId)throw new Error("bad state - model changed in the meantime");let t=n.get(e);t||(t=[],n.set(e,t)),t.push(cF.replaceMove(Un.lift(r.textEdit.range),r.textEdit.text))}let o=0,s=0;for(const[r,a]of n)r.pushStackElement(),r.pushEditOperations([],a,(()=>[])),r.pushStackElement(),s+=1,o+=a.length;return{ariaSummary:fs(iB.bulkEditServiceSummary,o,s),isApplied:o>0}}};kq=fq([_q(0,od)],kq);let Dq=class extends KP{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode())}return super.showContextView(e,t,i)}};Dq=fq([_q(0,tO),_q(1,nd)],Dq);let Oq=class extends nU{constructor(e,t,i,n,o,s){super(e,t,i,n,o,s),this.configure({blockMouse:!1})}};var xq;Oq=fq([_q(0,Rh),_q(1,kD),_q(2,Cx),_q(3,tT),_q(4,vh),_q(5,Zd)],Oq),ng(Lh,class extends gq{constructor(){super(new kh)}},0),ng($u,Rq,0),ng(rf,Lq,0),ng(af,Iq,0),ng(zF,Aq,0),ng(xF,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return UI(e)}},0),ng(Rh,class{publicLog2(){}},0),ng(rO,class{async confirm(e){return{confirmed:this.doConfirm(e.message,e.detail),checkboxChecked:!1}}doConfirm(e,t){let i=e;return t&&(i=i+"\n\n"+t),cs.confirm(i)}async prompt(e){var t,i;let n;if(this.doConfirm(e.message,e.detail)){const o=[...null!==(t=e.buttons)&&void 0!==t?t:[]];e.cancelButton&&"string"!=typeof e.cancelButton&&"boolean"!=typeof e.cancelButton&&o.push(e.cancelButton),n=await(null===(i=o[0])||void 0===i?void 0:i.run({checkboxChecked:!1}))}return{result:n}}async error(e,t){await this.prompt({type:AD.Error,message:e,detail:t})}},0),ng(wO,class{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1}},0),ng(kD,Cq,0),ng(mU,aq,0),ng(eg,class extends gB{constructor(){super()}},0),ng(EY,class extends mi{constructor(){super(),this._onColorThemeChange=this._register(new Ri),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new Ri),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new hY,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(uY,CY(uY)),this._knownThemes.set(gY,CY(gY)),this._knownThemes.set(mY,CY(mY)),this._knownThemes.set(pY,CY(pY));const e=this._register(function(e){const t=new gi,i=t.add(new Ri),n=rY();return t.add(n.onDidChange((()=>i.fire()))),e&&t.add(e.onDidProductIconThemeChange((()=>i.fire()))),{dispose:()=>t.dispose(),onDidChange:i.event,getCSS(){const t=e?e.getProductIconTheme():new hY,i={},o=[],s=[];for(const e of n.getIcons()){const n=t.getIcon(e);if(!n)continue;const r=n.font,a=`--vscode-icon-${e.id}-font-family`,l=`--vscode-icon-${e.id}-content`;r?(i[r.id]=r.definition,s.push(`${a}: ${kc(r.id)};`,`${l}: '${n.fontCharacter}';`),o.push(`.codicon-${e.id}:before { content: '${n.fontCharacter}'; font-family: ${kc(r.id)}; }`)):(s.push(`${l}: '${n.fontCharacter}'; ${a}: 'codicon';`),o.push(`.codicon-${e.id}:before { content: '${n.fontCharacter}'; }`))}for(const e in i){const t=i[e],n=t.weight?`font-weight: ${t.weight};`:"",s=t.style?`font-style: ${t.style};`:"",r=t.src.map((e=>`${Nc(e.location)} format('${e.format}')`)).join(", ");o.push(`@font-face { src: ${r}; font-family: ${kc(e)};${n}${s} font-display: block; }`)}return o.push(`:root { ${s.join(" ")} }`),o.join("\n")}}}(this));this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(uY),this._onOSSchemeChanged(),this._register(e.onDidChange((()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}))),cr(cs,"(forced-colors: active)",(()=>{this._onOSSchemeChanged()}))}registerEditorContainer(e){return $l(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=nc(void 0,(e=>{e.className="monaco-colors",e.textContent=this._allCSS})),this._styleElements.push(this._globalStyleElement)),mi.None}_registerShadowDomContainer(e){const t=nc(e,(e=>{e.className="monaco-colors",e.textContent=this._allCSS}));return this._styleElements.push(t),{dispose:()=>{for(let e=0;e{t.base===e&&t.notifyBaseUpdated()})),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(uY),this._updateActualTheme(t)}_updateActualTheme(e){e&&this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const e=cs.matchMedia("(forced-colors: active)").matches;if(e!==NC(this._theme.type)){let t;t=kC(this._theme.type)?e?mY:gY:e?pY:uY,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:i=>{t[i]||(e.push(i),t[i]=!0)}};_Y.getThemingParticipants().forEach((e=>e(this._theme,i,this._environment)));const n=[];for(const s of fY.getColors()){const e=this._theme.getColor(s.id,!0);e&&n.push(`${Q_(s.id)}: ${e.toString()};`)}i.addRule(`.monaco-editor, .monaco-diff-editor, .monaco-component { ${n.join("\n")} }`);const o=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(function(e){const t=[];for(let i=1,n=e.length;ie.textContent=this._allCSS))}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}},0),ng(od,RU,0),ng(N_,_U,0),ng(Zd,QY,0),ng(MF,class{withProgress(e,t,i){return t({report:()=>{}})}},0),ng(FF,Sq,0),ng(vW,class extends CW{constructor(){super(),this.applicationStorage=this._register(new fW(new _W,{hint:mW.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new fW(new _W,{hint:mW.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new fW(new _W,{hint:mW.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage((e=>this.emitDidChangeValue(1,e)))),this._register(this.profileStorage.onDidChangeStorage((e=>this.emitDidChangeValue(0,e)))),this._register(this.applicationStorage.onDidChangeStorage((e=>this.emitDidChangeValue(-1,e))))}getStorage(e){switch(e){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}},0),ng(hU,uf,0),ng(ZP,kq,0),ng(nB,class{constructor(){this._neverEmitter=new Ri,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}},0),ng(sd,vq,0),ng(W_,yY,0),ng(UG,class{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new gi,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}setLastFocusedList(e){var t,i;e!==this._lastFocusedWidget&&(null===(t=this._lastFocusedWidget)||void 0===t||t.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,null===(i=this._lastFocusedWidget)||void 0===i||i.getHTMLElement().classList.add("last-focused"))}register(e,t){if(this._hasCreatedStyleController||(this._hasCreatedStyleController=!0,new qH(nc(),"").style(AW)),this.lists.some((t=>t.widget===e)))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),Jl(e.getHTMLElement())&&this.setLastFocusedList(e),hi(e.onDidFocus((()=>this.setLastFocusedList(e))),ui((()=>this.lists.splice(this.lists.indexOf(i),1))),e.onDidDispose((()=>{this.lists=this.lists.filter((e=>e!==i)),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)})))}dispose(){this.disposables.dispose()}},0),ng(md,Eq,0),ng(tT,wq,0),ng(OU,VK,0),ng(Cx,Dq,0),ng(Ax,dU,0),ng(WY,HY,0),ng(Ex,Oq,0),ng(vh,NY,0),ng(cq,class{async playSignal(e,t){}},0),function(e){const t=new LD;for(const[r,a]of og())t.set(r,a);const i=new iq(t,!0);t.set(td,i),e.get=function(e){n||s({});const o=t.get(e);if(!o)throw new Error("Missing service "+e);return o instanceof tg?i.invokeFunction((t=>t.get(e))):o};let n=!1;const o=new Ri;function s(e){if(n)return i;n=!0;for(const[i,n]of og())t.get(i)||t.set(i,n);for(const i in e)if(e.hasOwnProperty(i)){const n=id(i);t.get(n)instanceof tg&&t.set(n,e[i])}const s=mq.slice(0);for(const t of s)try{i.createInstance(t)}catch(r){Jt(r)}return o.fire(),i}e.initialize=s,e.withServices=function(e){if(n)return e();const t=new gi,i=t.add(o.event((()=>{i.dispose(),t.add(e())})));return t}}(xq||(xq={}));class Mq{static capture(e){if(0===e.getScrollTop()||e.hasPendingScrollAnimation())return new Mq(e.getScrollTop(),e.getContentHeight(),null,0,null);let t=null,i=0;const n=e.getVisibleRanges();if(n.length>0){t=n[0].getStartPosition();const o=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-o}return new Mq(e.getScrollTop(),e.getContentHeight(),t,i,e.getPosition())}constructor(e,t,i,n,o){this._initialScrollTop=e,this._initialContentHeight=t,this._visiblePosition=i,this._visiblePositionScrollDelta=n,this._cursorPosition=o}restore(e){if((this._initialContentHeight!==e.getContentHeight()||this._initialScrollTop!==e.getScrollTop())&&this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){if(this._initialContentHeight===e.getContentHeight()&&this._initialScrollTop===e.getScrollTop())return;const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i)}}function Pq(){return Qi&&!!Qi.VSCODE_DEV}function Fq(e){if(Pq()){const t=function(){Bq||(Bq=new Set);const e=globalThis;return e.$hotReload_applyNewExports||(e.$hotReload_applyNewExports=e=>{const t={config:{mode:void 0},...e};for(const i of Bq){const e=i(t);if(e)return e}}),Bq}();return t.add(e),{dispose(){t.delete(e)}}}return{dispose(){}}}let Bq;function Hq(e,t){const i=new gi,n=e.createDecorationsCollection();return i.add(dH({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);n.set(i)}))),i.add({dispose:()=>{n.clear()}}),i}function Wq(e,t){return e.appendChild(t),ui((()=>{e.removeChild(t)}))}Pq()&&Fq((({oldExports:e,newSrc:t,config:i})=>{if("patch-prototype"===i.mode)return t=>{var i,n;for(const o in t){const s=t[o];if("function"==typeof s&&s.prototype){const r=e[o];if(r){for(const e of Object.getOwnPropertyNames(s.prototype)){const t=Object.getOwnPropertyDescriptor(s.prototype,e),o=Object.getOwnPropertyDescriptor(r.prototype,e);null===(i=null==t?void 0:t.value)||void 0===i||i.toString(),null===(n=null==o?void 0:o.value)||void 0===n||n.toString(),Object.defineProperty(r.prototype,e,t)}t[o]=r}}}return!0}}));class Uq extends mi{get width(){return this._width}get height(){return this._height}constructor(e,t){super(),this.elementSizeObserver=this._register(new x_(e,t)),this._width=eH(this,this.elementSizeObserver.getWidth()),this._height=eH(this,this.elementSizeObserver.getHeight()),this._register(this.elementSizeObserver.onDidChange((e=>XB((e=>{this._width.set(this.elementSizeObserver.getWidth(),e),this._height.set(this.elementSizeObserver.getHeight(),e)})))))}observe(e){this.elementSizeObserver.observe(e)}setAutomaticLayout(e){e?this.elementSizeObserver.startObserving():this.elementSizeObserver.stopObserving()}}function Vq(e,t,i){let n=t.get(),o=n,s=n;const r=eH("animatedValue",n);let a,l=-1;function c(){const t=Date.now()-l;var i,d,h;s=Math.floor((d=o,h=n-o,(i=t)===300?d+h:h*(1-Math.pow(2,-10*i/300))+d)),t<300?a=e.requestAnimationFrame(c):s=n,r.set(s,void 0)}return i.add(hH({createEmptyChangeSummary:()=>({animate:!1}),handleChange:(e,i)=>(e.didChange(t)&&(i.animate=i.animate||e.change),!0)},((i,r)=>{void 0!==a&&(e.cancelAnimationFrame(a),a=void 0),o=s,n=t.read(i),l=Date.now()-(r.animate?0:300),c()}))),r}class Gq extends mi{constructor(e,t,i){super(),this._register(new Kq(e,i)),this._register(Yq(i,{height:t.actualHeight,top:t.actualTop}))}}class zq{get afterLineNumber(){return this._afterLineNumber.get()}constructor(e,t){this._afterLineNumber=e,this.heightInPx=t,this.domNode=document.createElement("div"),this._actualTop=eH(this,void 0),this._actualHeight=eH(this,void 0),this.actualTop=this._actualTop,this.actualHeight=this._actualHeight,this.showInHiddenAreas=!0,this.onChange=this._afterLineNumber,this.onDomNodeTop=e=>{this._actualTop.set(e,void 0)},this.onComputedHeight=e=>{this._actualHeight.set(e,void 0)}}}class Kq{constructor(e,t){this._editor=e,this._domElement=t,this._overlayWidgetId="managedOverlayWidget-"+Kq._counter++,this._overlayWidget={getId:()=>this._overlayWidgetId,getDomNode:()=>this._domElement,getPosition:()=>null},this._editor.addOverlayWidget(this._overlayWidget)}dispose(){this._editor.removeOverlayWidget(this._overlayWidget)}}function Yq(e,t){return cH((i=>{for(let[n,o]of Object.entries(t))o&&"object"==typeof o&&"read"in o&&(o=o.read(i)),"number"==typeof o&&(o=`${o}px`),n=n.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),e.style[n]=o}))}function qq(e,t){return i=[e],n=t,Pq()&&bH("reload",(e=>Fq((({oldExports:t})=>{if([...Object.values(t)].some((e=>i.includes(e))))return t=>(e(void 0),!0)})))).read(n),e;var i,n}function $q(e,t,i,n){const o=new gi,s=[];return o.add(uH(((o,r)=>{const a=t.read(o),l=new Map,c=new Map;i&&i(!0),e.changeViewZones((e=>{for(const t of s)e.removeZone(t),null==n||n.delete(t);s.length=0;for(const t of a){const i=e.addZone(t);t.setZoneId&&t.setZoneId(i),s.push(i),null==n||n.add(i),l.set(t,i)}})),i&&i(!1),r.add(hH({createEmptyChangeSummary:()=>({zoneIds:[]}),handleChange(e,t){const i=c.get(e.changedObservable);return void 0!==i&&t.zoneIds.push(i),!0}},((t,n)=>{for(const e of a)e.onChange&&(c.set(e.onChange,l.get(e)),e.onChange.read(t));i&&i(!0),e.changeViewZones((e=>{for(const t of n.zoneIds)e.layoutZone(t)})),i&&i(!1)})))}))),o.add({dispose(){i&&i(!0),e.changeViewZones((e=>{for(const t of s)e.removeZone(t)})),null==n||n.clear(),i&&i(!1)}}),o}Kq._counter=0;class jq extends Fi{dispose(){super.dispose(!0)}}function Xq(e,t){const i=Wm(t,(t=>t.original.startLineNumber<=e.lineNumber));if(!i)return Un.fromPositions(e);if(i.original.endLineNumberExclusive<=e.lineNumber){const t=e.lineNumber-i.original.endLineNumberExclusive+i.modified.endLineNumberExclusive;return Un.fromPositions(new Wn(t,e.column))}if(!i.innerChanges)return Un.fromPositions(new Wn(i.modified.startLineNumber,1));const n=Wm(i.innerChanges,(t=>t.originalRange.getStartPosition().isBeforeOrEqual(e)));if(!n){const t=e.lineNumber-i.original.startLineNumber+i.modified.startLineNumber;return Un.fromPositions(new Wn(t,e.column))}if(n.originalRange.containsPosition(e))return n.modifiedRange;{const t=(o=n.originalRange.getEndPosition(),s=e,o.lineNumber===s.lineNumber?new jm(0,s.column-o.column):new jm(s.lineNumber-o.lineNumber,s.column-1));return Un.fromPositions(t.addToPosition(n.modifiedRange.getEndPosition()))}var o,s}function Jq(e,t,i){const n=e.bindTo(t);return dH({debugName:()=>`Set Context Key "${e.key}"`},(e=>{n.set(i(e))}))}var Qq=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Zq=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const e$=sY("diff-review-insert",Yn.add,pe("vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer","accessibleDiffViewerInsertIcon","Icon for 'Insert' in accessible diff viewer.")),t$=sY("diff-review-remove",Yn.remove,pe("vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer","accessibleDiffViewerRemoveIcon","Icon for 'Remove' in accessible diff viewer.")),i$=sY("diff-review-close",Yn.close,pe("vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer","accessibleDiffViewerCloseIcon","Icon for 'Close' in accessible diff viewer."));let n$=class extends mi{constructor(e,t,i,n,o,s,r,a,l){super(),this._parentNode=e,this._visible=t,this._setVisible=i,this._canClose=n,this._width=o,this._height=s,this._diffs=r,this._models=a,this._instantiationService=l,this._state=rH(this,((e,t)=>{const i=this._visible.read(e);if(this._parentNode.style.visibility=i?"visible":"hidden",!i)return null;const n=t.add(this._instantiationService.createInstance(o$,this._diffs,this._models,this._setVisible,this._canClose));return{model:n,view:t.add(this._instantiationService.createInstance(u$,this._parentNode,n,this._width,this._height,this._models))}})).recomputeInitiallyAndOnChange(this._store)}next(){XB((e=>{const t=this._visible.get();this._setVisible(!0,e),t&&this._state.get().model.nextGroup(e)}))}prev(){XB((e=>{this._setVisible(!0,e),this._state.get().model.previousGroup(e)}))}close(){XB((e=>{this._setVisible(!1,e)}))}};n$._ttPolicy=lu("diffReview",{createHTML:e=>e}),n$=Qq([Zq(8,td)],n$);let o$=class extends mi{constructor(e,t,i,n,o){super(),this._diffs=e,this._models=t,this._setVisible=i,this.canClose=n,this._accessibilitySignalService=o,this._groups=eH(this,[]),this._currentGroupIdx=eH(this,0),this._currentElementIdx=eH(this,0),this.groups=this._groups,this.currentGroup=this._currentGroupIdx.map(((e,t)=>this._groups.read(t)[e])),this.currentGroupIndex=this._currentGroupIdx,this.currentElement=this._currentElementIdx.map(((e,t)=>{var i;return null===(i=this.currentGroup.read(t))||void 0===i?void 0:i.lines[e]})),this._register(cH((e=>{const t=this._diffs.read(e);if(!t)return void this._groups.set([],void 0);const i=function(e,t,i){const n=[];for(const o of E(e,((e,t)=>t.modified.startLineNumber-e.modified.endLineNumberExclusive<2*s$))){const e=[];e.push(new l$);const s=new qm(Math.max(1,o[0].original.startLineNumber-s$),Math.min(o[o.length-1].original.endLineNumberExclusive+s$,t+1)),r=new qm(Math.max(1,o[0].modified.startLineNumber-s$),Math.min(o[o.length-1].modified.endLineNumberExclusive+s$,i+1));w(o,((t,i)=>{const n=new qm(t?t.original.endLineNumberExclusive:s.startLineNumber,i?i.original.startLineNumber:s.endLineNumberExclusive),o=new qm(t?t.modified.endLineNumberExclusive:r.startLineNumber,i?i.modified.startLineNumber:r.endLineNumberExclusive);n.forEach((t=>{e.push(new h$(t,o.startLineNumber+(t-n.startLineNumber)))})),i&&(i.original.forEach((t=>{e.push(new c$(i,t))})),i.modified.forEach((t=>{e.push(new d$(i,t))})))}));const a=o[0].modified.join(o[o.length-1].modified),l=o[0].original.join(o[o.length-1].original);n.push(new a$(new ip(a,l),e))}return n}(t,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());XB((e=>{const t=this._models.getModifiedPosition();if(t){const n=i.findIndex((e=>(null==t?void 0:t.lineNumber){const t=this.currentElement.read(e);(null==t?void 0:t.type)===r$.Deleted?this._accessibilitySignalService.playSignal(uq.diffLineDeleted,{source:"accessibleDiffViewer.currentElementChanged"}):(null==t?void 0:t.type)===r$.Added&&this._accessibilitySignalService.playSignal(uq.diffLineInserted,{source:"accessibleDiffViewer.currentElementChanged"})}))),this._register(cH((e=>{var t;const i=this.currentElement.read(e);if(i&&i.type!==r$.Header){const e=null!==(t=i.modifiedLineNumber)&&void 0!==t?t:i.diff.modified.startLineNumber;this._models.modifiedSetSelection(Un.fromPositions(new Wn(e,1)))}})))}_goToGroupDelta(e,t){const i=this.groups.get();!i||i.length<=1||QB(t,(t=>{this._currentGroupIdx.set(Bm.ofLength(i.length).clipCyclic(this._currentGroupIdx.get()+e),t),this._currentElementIdx.set(0,t)}))}nextGroup(e){this._goToGroupDelta(1,e)}previousGroup(e){this._goToGroupDelta(-1,e)}_goToLineDelta(e){const t=this.currentGroup.get();!t||t.lines.length<=1||XB((i=>{this._currentElementIdx.set(Bm.ofLength(t.lines.length).clip(this._currentElementIdx.get()+e),i)}))}goToNextLine(){this._goToLineDelta(1)}goToPreviousLine(){this._goToLineDelta(-1)}goToLine(e){const t=this.currentGroup.get();if(!t)return;const i=t.lines.indexOf(e);-1!==i&&XB((e=>{this._currentElementIdx.set(i,e)}))}revealCurrentElementInEditor(){if(!this.canClose.get())return;this._setVisible(!1,void 0);const e=this.currentElement.get();e&&(e.type===r$.Deleted?this._models.originalReveal(Un.fromPositions(new Wn(e.originalLineNumber,1))):this._models.modifiedReveal(e.type!==r$.Header?Un.fromPositions(new Wn(e.modifiedLineNumber,1)):void 0))}close(){this.canClose.get()&&(this._setVisible(!1,void 0),this._models.modifiedFocus())}};o$=Qq([Zq(4,cq)],o$);const s$=3;var r$;!function(e){e[e.Header=0]="Header",e[e.Unchanged=1]="Unchanged",e[e.Deleted=2]="Deleted",e[e.Added=3]="Added"}(r$||(r$={}));class a${constructor(e,t){this.range=e,this.lines=t}}class l${constructor(){this.type=r$.Header}}class c${constructor(e,t){this.diff=e,this.originalLineNumber=t,this.type=r$.Deleted,this.modifiedLineNumber=void 0}}class d${constructor(e,t){this.diff=e,this.modifiedLineNumber=t,this.type=r$.Added,this.originalLineNumber=void 0}}class h${constructor(e,t){this.originalLineNumber=e,this.modifiedLineNumber=t,this.type=r$.Unchanged}}let u$=class extends mi{constructor(e,t,i,n,o,s){super(),this._element=e,this._model=t,this._width=i,this._height=n,this._models=o,this._languageService=s,this.domNode=this._element,this.domNode.className="monaco-component diff-review monaco-editor-background";const r=document.createElement("div");r.className="diff-review-actions",this._actionBar=this._register(new zW(r)),this._register(cH((e=>{this._actionBar.clear(),this._model.canClose.read(e)&&this._actionBar.push(new rd("diffreview.close",pe("vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer","label.close","Close"),"close-diff-review "+gd.asClassName(i$),!0,(async()=>t.close())),{label:!1,icon:!0})}))),this._content=document.createElement("div"),this._content.className="diff-review-content",this._content.setAttribute("role","code"),this._scrollbar=this._register(new wE(this._content,{})),Cc(this.domNode,this._scrollbar.getDomNode(),r),this._register(cH((e=>{this._height.read(e),this._width.read(e),this._scrollbar.scanDomNode()}))),this._register(ui((()=>{Cc(this.domNode)}))),this._register(Yq(this.domNode,{width:this._width,height:this._height})),this._register(Yq(this._content,{width:this._width,height:this._height})),this._register(uH(((e,t)=>{this._model.currentGroup.read(e),this._render(t)}))),this._register(Ll(this.domNode,"keydown",(e=>{(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),this._model.goToNextLine()),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),this._model.goToPreviousLine()),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),this._model.close()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),this._model.revealCurrentElementInEditor())})))}_render(e){const t=this._models.getOriginalOptions(),i=this._models.getModifiedOptions(),n=document.createElement("div");n.className="diff-review-table",n.setAttribute("role","list"),n.setAttribute("aria-label",pe("vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer","ariaLabel","Accessible Diff Viewer. Use arrow up and down to navigate.")),Kc(n,i.get(50)),Cc(this._content,n);const o=this._models.getOriginalModel(),s=this._models.getModifiedModel();if(!o||!s)return;const r=o.getOptions(),a=s.getOptions(),l=i.get(67),c=this._model.currentGroup.get();for(const d of(null==c?void 0:c.lines)||[]){if(!c)break;let h;if(d.type===r$.Header){const e=document.createElement("div");e.className="diff-review-row",e.setAttribute("role","listitem");const t=c.range,i=this._model.currentGroupIndex.get(),n=this._model.groups.get().length,o=e=>0===e?pe("vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer","no_lines_changed","no lines changed"):1===e?pe("vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer","one_line_changed","1 line changed"):pe("vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer","more_lines_changed","{0} lines changed",e),s=o(t.original.length),r=o(t.modified.length);e.setAttribute("aria-label",pe("vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer",{key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",i+1,n,t.original.startLineNumber,s,t.modified.startLineNumber,r));const a=document.createElement("div");a.className="diff-review-cell diff-review-summary",a.appendChild(document.createTextNode(`${i+1}/${n}: @@ -${t.original.startLineNumber},${t.original.length} +${t.modified.startLineNumber},${t.modified.length} @@`)),e.appendChild(a),h=e}else h=this._createRow(d,l,this._width.get(),t,o,r,i,s,a);n.appendChild(h);const u=oH((e=>this._model.currentElement.read(e)===d));e.add(cH((e=>{const t=u.read(e);h.tabIndex=t?0:-1,t&&h.focus()}))),e.add(yl(h,"focus",(()=>{this._model.goToLine(d)})))}this._scrollbar.scanDomNode()}_createRow(e,t,i,n,o,s,r,a,l){const c=n.get(145),d=c.glyphMarginWidth+c.lineNumbersWidth,h=r.get(145),u=10+h.glyphMarginWidth+h.lineNumbersWidth;let g="diff-review-row",m="",p=null;switch(e.type){case r$.Added:g="diff-review-row line-insert",m=" char-insert",p=e$;break;case r$.Deleted:g="diff-review-row line-delete",m=" char-delete",p=t$}const f=document.createElement("div");f.style.minWidth=i+"px",f.className=g,f.setAttribute("role","listitem"),f.ariaLevel="";const _=document.createElement("div");_.className="diff-review-cell",_.style.height=`${t}px`,f.appendChild(_);const b=document.createElement("span");b.style.width=d+"px",b.style.minWidth=d+"px",b.className="diff-review-line-number"+m,void 0!==e.originalLineNumber?b.appendChild(document.createTextNode(String(e.originalLineNumber))):b.innerText=" ",_.appendChild(b);const v=document.createElement("span");v.style.width=u+"px",v.style.minWidth=u+"px",v.style.paddingRight="10px",v.className="diff-review-line-number"+m,void 0!==e.modifiedLineNumber?v.appendChild(document.createTextNode(String(e.modifiedLineNumber))):v.innerText=" ",_.appendChild(v);const S=document.createElement("span");if(S.className="diff-review-spacer",p){const e=document.createElement("span");e.className=gd.asClassName(p),e.innerText="  ",S.appendChild(e)}else S.innerText="  ";let C;if(_.appendChild(S),void 0!==e.modifiedLineNumber){let t=this._getLineHtml(a,r,l.tabSize,e.modifiedLineNumber,this._languageService.languageIdCodec);n$._ttPolicy&&(t=n$._ttPolicy.createHTML(t)),_.insertAdjacentHTML("beforeend",t),C=a.getLineContent(e.modifiedLineNumber)}else{let t=this._getLineHtml(o,n,s.tabSize,e.originalLineNumber,this._languageService.languageIdCodec);n$._ttPolicy&&(t=n$._ttPolicy.createHTML(t)),_.insertAdjacentHTML("beforeend",t),C=o.getLineContent(e.originalLineNumber)}0===C.length&&(C=pe("vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer","blankLine","blank"));let E="";switch(e.type){case r$.Unchanged:E=e.originalLineNumber===e.modifiedLineNumber?pe("vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer",{key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",C,e.originalLineNumber):pe("vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer","equalLine","{0} original line {1} modified line {2}",C,e.originalLineNumber,e.modifiedLineNumber);break;case r$.Added:E=pe("vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer","insertLine","+ {0} modified line {1}",C,e.modifiedLineNumber);break;case r$.Deleted:E=pe("vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer","deleteLine","- {0} original line {1}",C,e.originalLineNumber)}return f.setAttribute("aria-label",E),f}_getLineHtml(e,t,i,n,o){const s=e.getLineContent(n),r=t.get(50),a=yf.createEmpty(s,o),l=Yf.isBasicASCII(s,e.mightContainNonBasicASCII()),c=Yf.containsRTL(s,l,e.mightContainRTL());return Hf(new Of(r.isMonospace&&!t.get(33),r.canUseHalfwidthRightwardsArrow,s,!1,l,c,0,a,[],i,0,r.spaceWidth,r.middotWidth,r.wsmiddotWidth,t.get(117),t.get(99),t.get(94),t.get(51)!==kt.OFF,null)).html}};u$=Qq([Zq(5,eg)],u$);class g${constructor(e){this.editors=e}getOriginalModel(){return this.editors.original.getModel()}getOriginalOptions(){return this.editors.original.getOptions()}originalReveal(e){this.editors.original.revealRange(e),this.editors.original.setSelection(e),this.editors.original.focus()}getModifiedModel(){return this.editors.modified.getModel()}getModifiedOptions(){return this.editors.modified.getOptions()}modifiedReveal(e){e&&(this.editors.modified.revealRange(e),this.editors.modified.setSelection(e)),this.editors.modified.focus()}modifiedSetSelection(e){this.editors.modified.setSelection(e)}modifiedFocus(){this.editors.modified.focus()}getModifiedPosition(){var e;return null!==(e=this.editors.modified.getPosition())&&void 0!==e?e:void 0}}class m$ extends mi{constructor(e,t,i,n,o){super(),this._rootElement=e,this._diffModel=t,this._originalEditorLayoutInfo=i,this._modifiedEditorLayoutInfo=n,this._editors=o,this._originalScrollTop=fH(this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=fH(this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._viewZonesChanged=bH("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=eH(this,0),this._modifiedViewZonesChangedSignal=bH("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=bH("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=rH(this,((e,t)=>{var i;this._element.replaceChildren();const n=this._diffModel.read(e),o=null===(i=null==n?void 0:n.diff.read(e))||void 0===i?void 0:i.movedTexts;if(!o||0===o.length)return void this.width.set(0,void 0);this._viewZonesChanged.read(e);const s=this._originalEditorLayoutInfo.read(e),r=this._modifiedEditorLayoutInfo.read(e);if(!s||!r)return void this.width.set(0,void 0);this._modifiedViewZonesChangedSignal.read(e),this._originalViewZonesChangedSignal.read(e);const a=o.map((t=>{function i(e,t){return(t.getTopForLineNumber(e.startLineNumber,!0)+t.getTopForLineNumber(e.endLineNumberExclusive,!0))/2}const n=i(t.lineRangeMapping.original,this._editors.original),o=this._originalScrollTop.read(e),s=i(t.lineRangeMapping.modified,this._editors.modified),r=n-o,a=s-this._modifiedScrollTop.read(e),l=Math.min(n,s),c=Math.max(n,s);return{range:new Bm(l,c),from:r,to:a,fromWithoutScroll:n,toWithoutScroll:s,move:t}}));a.sort(function(...e){return(t,i)=>{for(const n of e){const e=n(t,i);if(!B.isNeitherLessOrGreaterThan(e))return e}return B.neitherLessOrGreaterThan}}(W((e=>e.fromWithoutScroll>e.toWithoutScroll),V),W((e=>e.fromWithoutScroll>e.toWithoutScroll?e.fromWithoutScroll:-e.toWithoutScroll),U)));const l=p$.compute(a.map((e=>e.range))),c=s.verticalScrollbarWidth,d=10*(l.getTrackCount()-1)+20,h=c+d+(r.contentLeft-m$.movedCodeBlockPadding);let u=0;for(const g of a){const e=c+10+10*l.getTrack(u),i=15,o=15,s=h,a=r.glyphMarginWidth+r.lineNumbersWidth,d=18,m=document.createElementNS("http://www.w3.org/2000/svg","rect");m.classList.add("arrow-rectangle"),m.setAttribute("x",""+(s-a)),m.setAttribute("y",""+(g.to-d/2)),m.setAttribute("width",`${a}`),m.setAttribute("height",`${d}`),this._element.appendChild(m);const p=document.createElementNS("http://www.w3.org/2000/svg","g"),f=document.createElementNS("http://www.w3.org/2000/svg","path");f.setAttribute("d",`M 0 ${g.from} L ${e} ${g.from} L ${e} ${g.to} L ${s-o} ${g.to}`),f.setAttribute("fill","none"),p.appendChild(f);const _=document.createElementNS("http://www.w3.org/2000/svg","polygon");_.classList.add("arrow"),t.add(cH((e=>{f.classList.toggle("currentMove",g.move===n.activeMovedText.read(e)),_.classList.toggle("currentMove",g.move===n.activeMovedText.read(e))}))),_.setAttribute("points",`${s-o},${g.to-i/2} ${s},${g.to} ${s-o},${g.to+i/2}`),p.appendChild(_),this._element.appendChild(p),u++}this.width.set(d,void 0)})),this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("class","moved-blocks-lines"),this._rootElement.appendChild(this._element),this._register(ui((()=>this._element.remove()))),this._register(cH((e=>{const t=this._originalEditorLayoutInfo.read(e),i=this._modifiedEditorLayoutInfo.read(e);t&&i&&(this._element.style.left=t.width-t.verticalScrollbarWidth+"px",this._element.style.height=`${t.height}px`,this._element.style.width=`${t.verticalScrollbarWidth+t.contentLeft-m$.movedCodeBlockPadding+this.width.read(e)}px`)}))),this._register(EH(this._state));const s=oH((e=>{const t=this._diffModel.read(e),i=null==t?void 0:t.diff.read(e);return i?i.movedTexts.map((e=>({move:e,original:new zq(mH(e.lineRangeMapping.original.startLineNumber-1),18),modified:new zq(mH(e.lineRangeMapping.modified.startLineNumber-1),18)}))):[]}));this._register($q(this._editors.original,s.map((e=>e.map((e=>e.original)))))),this._register($q(this._editors.modified,s.map((e=>e.map((e=>e.modified)))))),this._register(uH(((e,t)=>{const i=s.read(e);for(const n of i)t.add(new f$(this._editors.original,n.original,n.move,"original",this._diffModel.get())),t.add(new f$(this._editors.modified,n.modified,n.move,"modified",this._diffModel.get()))})));const r=bH("original.onDidFocusEditorWidget",(e=>this._editors.original.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0))))),a=bH("modified.onDidFocusEditorWidget",(e=>this._editors.modified.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0)))));let l="modified";this._register(hH({createEmptyChangeSummary:()=>{},handleChange:(e,t)=>(e.didChange(r)&&(l="original"),e.didChange(a)&&(l="modified"),!0)},(e=>{r.read(e),a.read(e);const t=this._diffModel.read(e);if(!t)return;const i=t.diff.read(e);let n;if(i&&"original"===l){const t=this._editors.originalCursor.read(e);t&&(n=i.movedTexts.find((e=>e.lineRangeMapping.original.contains(t.lineNumber))))}if(i&&"modified"===l){const t=this._editors.modifiedCursor.read(e);t&&(n=i.movedTexts.find((e=>e.lineRangeMapping.modified.contains(t.lineNumber))))}n!==t.movedTextToCompare.get()&&t.movedTextToCompare.set(void 0,void 0),t.setActiveMovedText(n)})))}}m$.movedCodeBlockPadding=4;class p${static compute(e){const t=[],i=[];for(const n of e){let e=t.findIndex((e=>!e.intersectsStrict(n)));if(-1===e){const i=6;t.length>=i?e=Ym(t,W((e=>e.intersectWithRangeLength(n)),U)):(e=t.length,t.push(new Hm))}t[e].addRange(n),i.push(e)}return new p$(t.length,i)}constructor(e,t){this._trackCount=e,this.trackPerLineIdx=t}getTrack(e){return this.trackPerLineIdx[e]}getTrackCount(){return this._trackCount}}class f$ extends Gq{constructor(e,t,i,n,o){const s=Fc("div.diff-hidden-lines-widget");super(e,t,s.root),this._editor=e,this._move=i,this._kind=n,this._diffModel=o,this._nodes=Fc("div.diff-moved-code-block",{style:{marginRight:"4px"}},[Fc("div.text-content@textContent"),Fc("div.action-bar@actionBar")]),s.root.appendChild(this._nodes.root);const r=fH(this._editor.onDidLayoutChange,(()=>this._editor.getLayoutInfo()));let a;this._register(Yq(this._nodes.root,{paddingRight:r.map((e=>e.verticalScrollbarWidth))})),a=i.changes.length>0?"original"===this._kind?pe("vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature","codeMovedToWithChanges","Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):pe("vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature","codeMovedFromWithChanges","Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):"original"===this._kind?pe("vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature","codeMovedTo","Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):pe("vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature","codeMovedFrom","Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);const l=this._register(new zW(this._nodes.actionBar,{highlightToggledItems:!0})),c=new rd("",a,"",!1);l.push(c,{icon:!1,label:!0});const d=new rd("","Compare",gd.asClassName(Yn.compareChanges),!0,(()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===i?void 0:this._move,void 0)}));this._register(cH((e=>{const t=this._diffModel.movedTextToCompare.read(e)===i;d.checked=t}))),l.push(d,{icon:!1,label:!0})}}ib("diffEditor.move.border",{dark:"#8b8b8b9c",light:"#8b8b8b9c",hcDark:"#8b8b8b9c",hcLight:"#8b8b8b9c"},pe("vs/editor/browser/widget/diffEditor/registrations.contribution","diffEditor.move.border","The border color for text that got moved in the diff editor.")),ib("diffEditor.moveActive.border",{dark:"#FFA500",light:"#FFA500",hcDark:"#FFA500",hcLight:"#FFA500"},pe("vs/editor/browser/widget/diffEditor/registrations.contribution","diffEditor.moveActive.border","The active border color for text that got moved in the diff editor.")),ib("diffEditor.unchangedRegionShadow",{dark:"#000000",light:"#737373BF",hcDark:"#000000",hcLight:"#737373BF"},pe("vs/editor/browser/widget/diffEditor/registrations.contribution","diffEditor.unchangedRegionShadow","The color of the shadow around unchanged region widgets."));const _$=sY("diff-insert",Yn.add,pe("vs/editor/browser/widget/diffEditor/registrations.contribution","diffInsertIcon","Line decoration for inserts in the diff editor.")),b$=sY("diff-remove",Yn.remove,pe("vs/editor/browser/widget/diffEditor/registrations.contribution","diffRemoveIcon","Line decoration for removals in the diff editor.")),v$=VN.register({className:"line-insert",description:"line-insert",isWholeLine:!0,linesDecorationsClassName:"insert-sign "+gd.asClassName(_$),marginClassName:"gutter-insert"}),S$=VN.register({className:"line-delete",description:"line-delete",isWholeLine:!0,linesDecorationsClassName:"delete-sign "+gd.asClassName(b$),marginClassName:"gutter-delete"}),C$=VN.register({className:"line-insert",description:"line-insert",isWholeLine:!0,marginClassName:"gutter-insert"}),E$=VN.register({className:"line-delete",description:"line-delete",isWholeLine:!0,marginClassName:"gutter-delete"}),w$=VN.register({className:"char-insert",description:"char-insert",shouldFillLineOnLineBreak:!0}),T$=VN.register({className:"char-insert",description:"char-insert",isWholeLine:!0}),y$=VN.register({className:"char-insert diff-range-empty",description:"char-insert diff-range-empty"}),R$=VN.register({className:"char-delete",description:"char-delete",shouldFillLineOnLineBreak:!0}),L$=VN.register({className:"char-delete",description:"char-delete",isWholeLine:!0}),I$=VN.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"});class A$ extends mi{constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._decorations=oH(this,(e=>{var t;const i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.diff.read(e);if(!i)return null;const n=this._diffModel.read(e).movedTextToCompare.read(e),o=this._options.renderIndicators.read(e),s=this._options.showEmptyDecorations.read(e),r=[],a=[];if(!n)for(const c of i.mappings)if(c.lineRangeMapping.original.isEmpty||r.push({range:c.lineRangeMapping.original.toInclusiveRange(),options:o?S$:E$}),c.lineRangeMapping.modified.isEmpty||a.push({range:c.lineRangeMapping.modified.toInclusiveRange(),options:o?v$:C$}),c.lineRangeMapping.modified.isEmpty||c.lineRangeMapping.original.isEmpty)c.lineRangeMapping.original.isEmpty||r.push({range:c.lineRangeMapping.original.toInclusiveRange(),options:L$}),c.lineRangeMapping.modified.isEmpty||a.push({range:c.lineRangeMapping.modified.toInclusiveRange(),options:T$});else for(const e of c.lineRangeMapping.innerChanges||[])c.lineRangeMapping.original.contains(e.originalRange.startLineNumber)&&r.push({range:e.originalRange,options:e.originalRange.isEmpty()&&s?I$:R$}),c.lineRangeMapping.modified.contains(e.modifiedRange.startLineNumber)&&a.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()&&s?y$:w$});if(n)for(const c of n.changes){const e=c.original.toInclusiveRange();e&&r.push({range:e,options:o?S$:E$});const t=c.modified.toInclusiveRange();t&&a.push({range:t,options:o?v$:C$});for(const i of c.innerChanges||[])r.push({range:i.originalRange,options:R$}),a.push({range:i.modifiedRange,options:w$})}const l=this._diffModel.read(e).activeMovedText.read(e);for(const c of i.movedTexts)r.push({range:c.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(c===l?" currentMove":""),blockPadding:[m$.movedCodeBlockPadding,0,m$.movedCodeBlockPadding,m$.movedCodeBlockPadding]}}),a.push({range:c.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(c===l?" currentMove":""),blockPadding:[4,0,4,4]}});return{originalDecorations:r,modifiedDecorations:a}})),this._register(Hq(this._editors.original,this._decorations.map((e=>(null==e?void 0:e.originalDecorations)||[])))),this._register(Hq(this._editors.modified,this._decorations.map((e=>(null==e?void 0:e.modifiedDecorations)||[]))))}}class N$ extends mi{constructor(e,t,i,n){super(),this._options=e,this._domNode=t,this._dimensions=i,this._sashes=n,this._sashRatio=eH(this,void 0),this.sashLeft=oH(this,(e=>{var t;const i=null!==(t=this._sashRatio.read(e))&&void 0!==t?t:this._options.splitViewDefaultRatio.read(e);return this._computeSashLeft(i,e)})),this._sash=this._register(new tV(this._domNode,{getVerticalSashTop:e=>0,getVerticalSashLeft:e=>this.sashLeft.get(),getVerticalSashHeight:e=>this._dimensions.height.get()},{orientation:0})),this._startSashPosition=void 0,this._register(this._sash.onDidStart((()=>{this._startSashPosition=this.sashLeft.get()}))),this._register(this._sash.onDidChange((e=>{const t=this._dimensions.width.get(),i=this._computeSashLeft((this._startSashPosition+(e.currentX-e.startX))/t,void 0);this._sashRatio.set(i/t,void 0)}))),this._register(this._sash.onDidEnd((()=>this._sash.layout()))),this._register(this._sash.onDidReset((()=>this._sashRatio.set(void 0,void 0)))),this._register(cH((e=>{const t=this._sashes.read(e);t&&(this._sash.orthogonalEndSash=t.bottom)}))),this._register(cH((e=>{const t=this._options.enableSplitViewResizing.read(e);this._sash.state=t?3:0,this.sashLeft.read(e),this._dimensions.height.read(e),this._sash.layout()})))}_computeSashLeft(e,t){const i=this._dimensions.width.read(t),n=Math.floor(this._options.splitViewDefaultRatio.read(t)*i),o=this._options.enableSplitViewResizing.read(t)?Math.floor(e*i):n,s=100;return i<=200?n:oi-s?i-s:o}}var k$,D$=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},O$=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const x$=id("diffProviderFactoryService");let M$=class{constructor(e){this.instantiationService=e}createDiffProvider(e){return this.instantiationService.createInstance(P$,e)}};M$=D$([O$(0,td)],M$),ng(x$,M$,1);let P$=k$=class{constructor(e,t,i){this.editorWorkerService=t,this.telemetryService=i,this.onDidChangeEventEmitter=new Ri,this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions(e)}dispose(){var e;null===(e=this.diffAlgorithmOnDidChangeSubscription)||void 0===e||e.dispose()}async computeDiff(e,t,i,n){var o,s;if("string"!=typeof this.diffAlgorithm)return this.diffAlgorithm.computeDiff(e,t,i,n);if(e.isDisposed()||t.isDisposed())return{changes:[],identical:!0,quitEarly:!1,moves:[]};if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return 1===t.getLineCount()&&1===t.getLineMaxColumn(1)?{changes:[],identical:!0,quitEarly:!1,moves:[]}:{changes:[new np(new qm(1,2),new qm(1,t.getLineCount()+1),[new op(e.getFullModelRange(),t.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};const r=JSON.stringify([e.uri.toString(),t.uri.toString()]),a=JSON.stringify([e.id,t.id,e.getAlternativeVersionId(),t.getAlternativeVersionId(),JSON.stringify(i)]),l=k$.diffCache.get(r);if(l&&l.context===a)return l.result;const c=Si.create(),d=await this.editorWorkerService.computeDiff(e.uri,t.uri,i,this.diffAlgorithm),h=c.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:h,timedOut:null===(o=null==d?void 0:d.quitEarly)||void 0===o||o,detectedMoves:i.computeMoves?null!==(s=null==d?void 0:d.moves.length)&&void 0!==s?s:0:-1}),n.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!d)throw new Error("no diff result available");return k$.diffCache.size>10&&k$.diffCache.delete(k$.diffCache.keys().next().value),k$.diffCache.set(r,{result:d,context:a}),d}setOptions(e){var t;let i=!1;e.diffAlgorithm&&this.diffAlgorithm!==e.diffAlgorithm&&(null===(t=this.diffAlgorithmOnDidChangeSubscription)||void 0===t||t.dispose(),this.diffAlgorithmOnDidChangeSubscription=void 0,this.diffAlgorithm=e.diffAlgorithm,"string"!=typeof e.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription=e.diffAlgorithm.onDidChange((()=>this.onDidChangeEventEmitter.fire()))),i=!0),i&&this.onDidChangeEventEmitter.fire()}};P$.diffCache=new Map,P$=k$=D$([O$(1,hU),O$(2,Rh)],P$);var F$=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},B$=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let H$=class extends mi{setActiveMovedText(e){this._activeMovedText.set(e,void 0)}constructor(e,t,i){super(),this.model=e,this._options=t,this._diffProviderFactoryService=i,this._isDiffUpToDate=eH(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=eH(this,void 0),this.diff=this._diff,this._unchangedRegions=eH(this,void 0),this.unchangedRegions=oH(this,(e=>{var t,i;return this._options.hideUnchangedRegions.read(e)?null!==(i=null===(t=this._unchangedRegions.read(e))||void 0===t?void 0:t.regions)&&void 0!==i?i:[]:(XB((e=>{var t;for(const i of(null===(t=this._unchangedRegions.get())||void 0===t?void 0:t.regions)||[])i.collapseAll(e)})),[])})),this.movedTextToCompare=eH(this,void 0),this._activeMovedText=eH(this,void 0),this._hoveredMovedText=eH(this,void 0),this.activeMovedText=oH(this,(e=>{var t,i;return null!==(i=null!==(t=this.movedTextToCompare.read(e))&&void 0!==t?t:this._hoveredMovedText.read(e))&&void 0!==i?i:this._activeMovedText.read(e)})),this._cancellationTokenSource=new Fi,this._diffProvider=oH(this,(e=>{const t=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(e)});return{diffProvider:t,onChangeSignal:bH("onDidChange",t.onDidChange)}})),this._register(ui((()=>this._cancellationTokenSource.cancel())));const n=SH("contentChangedSignal"),o=this._register(new Kr((()=>n.trigger(void 0)),200));this._register(cH((t=>{const i=this._unchangedRegions.read(t);if(!i||i.regions.some((e=>e.isDragged.read(t))))return;const n=i.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?qm.fromRangeInclusive(e):void 0)),o=i.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?qm.fromRangeInclusive(e):void 0)),s=i.regions.map(((e,i)=>n[i]&&o[i]?new V$(n[i].startLineNumber,o[i].startLineNumber,n[i].length,e.visibleLineCountTop.read(t),e.visibleLineCountBottom.read(t)):void 0)).filter(ee),r=[];let a=!1;for(const e of E(s,((e,i)=>e.getHiddenModifiedRange(t).endLineNumberExclusive===i.getHiddenModifiedRange(t).startLineNumber)))if(e.length>1){a=!0;const t=e.reduce(((e,t)=>e+t.lineCount),0),i=new V$(e[0].originalLineNumber,e[0].modifiedLineNumber,t,e[0].visibleLineCountTop.get(),e[e.length-1].visibleLineCountBottom.get());r.push(i)}else r.push(e[0]);if(a){const t=e.original.deltaDecorations(i.originalDecorationIds,r.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),n=e.modified.deltaDecorations(i.modifiedDecorationIds,r.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));XB((e=>{this._unchangedRegions.set({regions:r,originalDecorationIds:t,modifiedDecorationIds:n},e)}))}})));const s=(t,i,n)=>{const o=V$.fromDiffs(t.changes,e.original.getLineCount(),e.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(n),this._options.hideUnchangedRegionsContextLineCount.read(n));let s;const r=this._unchangedRegions.get();if(r){const t=r.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?qm.fromRangeInclusive(e):void 0)),i=r.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?qm.fromRangeInclusive(e):void 0));let o=function(e,t){let i;return e.filter((e=>{const t=((e,t)=>!t||e.modifiedLineNumber>=t.modifiedLineNumber+t.lineCount&&e.originalLineNumber>=t.originalLineNumber+t.lineCount)(e,i);return i=e,t}))}(r.regions.map(((e,n)=>{if(!t[n]||!i[n])return;const o=t[n].length;return new V$(t[n].startLineNumber,i[n].startLineNumber,o,Math.min(e.visibleLineCountTop.get(),o),Math.min(e.visibleLineCountBottom.get(),o-e.visibleLineCountTop.get()))})).filter(ee)).map((e=>new ip(e.getHiddenOriginalRange(n),e.getHiddenModifiedRange(n))));o=ip.clip(o,qm.ofLength(1,e.original.getLineCount()),qm.ofLength(1,e.modified.getLineCount())),s=ip.inverse(o,e.original.getLineCount(),e.modified.getLineCount())}const a=[];if(s)for(const e of o){const t=s.filter((t=>t.original.intersectsStrict(e.originalUnchangedRange)&&t.modified.intersectsStrict(e.modifiedUnchangedRange)));a.push(...e.setVisibleRanges(t,i))}else a.push(...o);const l=e.original.deltaDecorations((null==r?void 0:r.originalDecorationIds)||[],a.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),c=e.modified.deltaDecorations((null==r?void 0:r.modifiedDecorationIds)||[],a.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));this._unchangedRegions.set({regions:a,originalDecorationIds:l,modifiedDecorationIds:c},i)};this._register(e.modified.onDidChangeContent((t=>{if(this._diff.get()){ML.fromModelContentChanges(t.changes);this._lastDiff,e.original,e.modified}this._isDiffUpToDate.set(!1,void 0),o.schedule()}))),this._register(e.original.onDidChangeContent((t=>{if(this._diff.get()){ML.fromModelContentChanges(t.changes);this._lastDiff,e.original,e.modified}this._isDiffUpToDate.set(!1,void 0),o.schedule()}))),this._register(uH((async(t,i)=>{var r,a;this._options.hideUnchangedRegionsMinimumLineCount.read(t),this._options.hideUnchangedRegionsContextLineCount.read(t),o.cancel(),n.read(t);const l=this._diffProvider.read(t);l.onChangeSignal.read(t),qq(Hp,t),qq(xp,t),this._isDiffUpToDate.set(!1,void 0);let c=[];i.add(e.original.onDidChangeContent((e=>{const t=ML.fromModelContentChanges(e.changes);c=mI(c,t)})));let d=[];i.add(e.modified.onDidChangeContent((e=>{const t=ML.fromModelContentChanges(e.changes);d=mI(d,t)})));let h=await l.diffProvider.computeDiff(e.original,e.modified,{ignoreTrimWhitespace:this._options.ignoreTrimWhitespace.read(t),maxComputationTimeMs:this._options.maxComputationTimeMs.read(t),computeMoves:this._options.showMoves.read(t)},this._cancellationTokenSource.token);var u,g,m;this._cancellationTokenSource.token.isCancellationRequested||e.original.isDisposed()||e.modified.isDisposed()||(u=h,g=e.original,m=e.modified,h={changes:u.changes.map((e=>new np(e.original,e.modified,e.innerChanges?e.innerChanges.map((e=>function(e,t,i){let n=e.originalRange,o=e.modifiedRange;return(1!==n.endColumn||1!==o.endColumn)&&n.endColumn===t.getLineMaxColumn(n.endLineNumber)&&o.endColumn===i.getLineMaxColumn(o.endLineNumber)&&n.endLineNumber{s(h,e),this._lastDiff=h;const t=W$.fromDiffResult(h);this._diff.set(t,e),this._isDiffUpToDate.set(!0,e);const i=this.movedTextToCompare.get();this.movedTextToCompare.set(i?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(i.lineRangeMapping.modified))):void 0,e)})))})))}ensureModifiedLineIsVisible(e,t,i){var n,o;if(0===(null===(n=this.diff.get())||void 0===n?void 0:n.mappings.length))return;const s=(null===(o=this._unchangedRegions.get())||void 0===o?void 0:o.regions)||[];for(const r of s)if(r.getHiddenModifiedRange(void 0).contains(e))return void r.showModifiedLine(e,t,i)}ensureOriginalLineIsVisible(e,t,i){var n,o;if(0===(null===(n=this.diff.get())||void 0===n?void 0:n.mappings.length))return;const s=(null===(o=this._unchangedRegions.get())||void 0===o?void 0:o.regions)||[];for(const r of s)if(r.getHiddenOriginalRange(void 0).contains(e))return void r.showOriginalLine(e,t,i)}async waitForDiff(){await yH(this.isDiffUpToDate,(e=>e))}serializeState(){const e=this._unchangedRegions.get();return{collapsedRegions:null==e?void 0:e.regions.map((e=>({range:e.getHiddenModifiedRange(void 0).serialize()})))}}restoreSerializedState(e){var t;const i=null===(t=e.collapsedRegions)||void 0===t?void 0:t.map((e=>qm.deserialize(e.range))),n=this._unchangedRegions.get();n&&i&&XB((e=>{for(const t of n.regions)for(const n of i)if(t.modifiedUnchangedRange.intersect(n)){t.setHiddenModifiedRange(n,e);break}}))}};H$=F$([B$(2,x$)],H$);class W${static fromDiffResult(e){return new W$(e.changes.map((e=>new U$(e))),e.moves||[],e.identical,e.quitEarly)}constructor(e,t,i,n){this.mappings=e,this.movedTexts=t,this.identical=i,this.quitEarly=n}}class U${constructor(e){this.lineRangeMapping=e}}class V${static fromDiffs(e,t,i,n,o){const s=np.inverse(e,t,i),r=[];for(const a of s){let e=a.original.startLineNumber,s=a.modified.startLineNumber,l=a.original.length;const c=1===e&&1===s,d=e+l===t+1&&s+l===i+1;(c||d)&&l>=o+n?(c&&!d&&(l-=o),d&&!c&&(e+=o,s+=o,l-=o),r.push(new V$(e,s,l,0,0))):l>=2*o+n&&(e+=o,s+=o,l-=2*o,r.push(new V$(e,s,l,0,0)))}return r}get originalUnchangedRange(){return qm.ofLength(this.originalLineNumber,this.lineCount)}get modifiedUnchangedRange(){return qm.ofLength(this.modifiedLineNumber,this.lineCount)}constructor(e,t,i,n,o){this.originalLineNumber=e,this.modifiedLineNumber=t,this.lineCount=i,this._visibleLineCountTop=eH(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=eH(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=oH(this,(e=>this.visibleLineCountTop.read(e)+this.visibleLineCountBottom.read(e)===this.lineCount&&!this.isDragged.read(e))),this.isDragged=eH(this,void 0);const s=Math.max(Math.min(n,this.lineCount),0),r=Math.max(Math.min(o,this.lineCount-n),0);ah(n===s),ah(o===r),this._visibleLineCountTop.set(s,void 0),this._visibleLineCountBottom.set(r,void 0)}setVisibleRanges(e,t){const i=[],n=new $m(e.map((e=>e.modified))).subtractFrom(this.modifiedUnchangedRange);let o=this.originalLineNumber,s=this.modifiedLineNumber;const r=this.modifiedLineNumber+this.lineCount;if(0===n.ranges.length)this.showAll(t),i.push(this);else{let e=0;for(const a of n.ranges){const l=e===n.ranges.length-1;e++;const c=(l?r:a.endLineNumberExclusive)-s,d=new V$(o,s,c,0,0);d.setHiddenModifiedRange(a,t),i.push(d),o=d.originalUnchangedRange.endLineNumberExclusive,s=d.modifiedUnchangedRange.endLineNumberExclusive}}return i}shouldHideControls(e){return this._shouldHideControls.read(e)}getHiddenOriginalRange(e){return qm.ofLength(this.originalLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}getHiddenModifiedRange(e){return qm.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}setHiddenModifiedRange(e,t){const i=e.startLineNumber-this.modifiedLineNumber,n=this.modifiedLineNumber+this.lineCount-e.endLineNumberExclusive;this.setState(i,n,t)}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get()}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get()}showMoreAbove(e=10,t){const i=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+e,i),t)}showMoreBelow(e=10,t){const i=this.lineCount-this._visibleLineCountTop.get();this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+e,i),t)}showAll(e){this._visibleLineCountBottom.set(this.lineCount-this._visibleLineCountTop.get(),e)}showModifiedLine(e,t,i){const n=e+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),o=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-e;0===t&&n{var o;this._contextMenuService.showContextMenu({domForShadowRoot:h&&null!==(o=i.getDomNode())&&void 0!==o?o:void 0,getAnchor:()=>({x:e,y:t}),getActions:()=>{const e=[],t=n.modified.isEmpty;return e.push(new rd("diff.clipboard.copyDeletedContent",t?n.original.length>1?pe("vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin","diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):pe("vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin","diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):n.original.length>1?pe("vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin","diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):pe("vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin","diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,(async()=>{const e=this._originalTextModel.getValueInRange(n.original.toExclusiveRange());await this._clipboardService.writeText(e)}))),n.original.length>1&&e.push(new rd("diff.clipboard.copyDeletedLineContent",t?pe("vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin","diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.original.startLineNumber+d):pe("vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin","diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.original.startLineNumber+d),void 0,!0,(async()=>{let e=this._originalTextModel.getLineContent(n.original.startLineNumber+d);""===e&&(e=0===this._originalTextModel.getEndOfLineSequence()?"\n":"\r\n"),await this._clipboardService.writeText(e)}))),i.getOption(91)||e.push(new rd("diff.inline.revertChange",pe("vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin","diff.inline.revertChange.label","Revert this change"),void 0,!0,(async()=>{this._editor.revert(this._diff)}))),e},autoSelectFirstItem:!0})};this._register(Ll(this._diffActions,"mousedown",(e=>{if(!e.leftButton)return;const{top:t,height:i}=Hl(this._diffActions),n=Math.floor(c/3);e.preventDefault(),u(e.posx,t+i+n)}))),this._register(i.onMouseMove((e=>{8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId!==this._getViewZoneId()?this.visibility=!1:(d=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,c),this.visibility=!0)}))),this._register(i.onMouseDown((e=>{!e.event.leftButton||8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId===this._getViewZoneId()&&(e.event.preventDefault(),d=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,c),u(e.event.posx,e.event.posy+c))})))}_updateLightBulbPosition(e,t,i){const{top:n}=Hl(e),o=t-n,s=Math.floor(o/i),r=s*i;if(this._diffActions.style.top=`${r}px`,this._viewLineCounts){let e=0;for(let t=0;te});function K$(e,t,i,n){Kc(n,t.fontInfo);const o=i.length>0,s=new xu(1e4);let r=0,a=0;const l=[];for(let h=0;h');const l=t.getLineContent(),c=Yf.isBasicASCII(l,o),d=Yf.containsRTL(l,c,s),h=Ff(new Of(r.fontInfo.isMonospace&&!r.disableMonospaceOptimizations,r.fontInfo.canUseHalfwidthRightwardsArrow,l,!1,c,d,0,t,i,r.tabSize,0,r.fontInfo.spaceWidth,r.fontInfo.middotWidth,r.fontInfo.wsmiddotWidth,r.stopRenderingLineAfter,r.renderWhitespace,r.renderControlCharacters,r.fontLigatures!==kt.OFF,null),a);return a.appendString(""),h.characterMapping.getHorizontalOffset(h.characterMapping.length)}var j$=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},X$=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let J$=class extends mi{constructor(e,t,i,n,o,s,r,a,l,c){super(),this._targetWindow=e,this._editors=t,this._diffModel=i,this._options=n,this._diffEditorWidget=o,this._canIgnoreViewZoneUpdateEvent=s,this._origViewZonesToIgnore=r,this._modViewZonesToIgnore=a,this._clipboardService=l,this._contextMenuService=c,this._originalTopPadding=eH(this,0),this._originalScrollOffset=eH(this,0),this._originalScrollOffsetAnimated=Vq(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=eH(this,0),this._modifiedScrollOffset=eH(this,0),this._modifiedScrollOffsetAnimated=Vq(this._targetWindow,this._modifiedScrollOffset,this._store);const d=eH("invalidateAlignmentsState",0),h=this._register(new Kr((()=>{d.set(d.get()+1,void 0)}),0));this._register(this._editors.original.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||h.schedule()}))),this._register(this._editors.modified.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||h.schedule()}))),this._register(this._editors.original.onDidChangeConfiguration((e=>{(e.hasChanged(146)||e.hasChanged(67))&&h.schedule()}))),this._register(this._editors.modified.onDidChangeConfiguration((e=>{(e.hasChanged(146)||e.hasChanged(67))&&h.schedule()})));const u=this._diffModel.map((e=>e?fH(e.model.original.onDidChangeTokens,(()=>2===e.model.original.tokenization.backgroundTokenizationState)):void 0)).map(((e,t)=>null==e?void 0:e.read(t))),g=oH((e=>{const t=this._diffModel.read(e),i=null==t?void 0:t.diff.read(e);if(!t||!i)return null;d.read(e);const n=this._options.renderSideBySide.read(e);return Q$(this._editors.original,this._editors.modified,i.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,n)})),m=oH((e=>{var t;const i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.movedTextToCompare.read(e);if(!i)return null;d.read(e);const n=i.changes.map((e=>new U$(e)));return Q$(this._editors.original,this._editors.modified,n,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0)}));function p(){const e=document.createElement("div");return e.className="diagonal-fill",e}const f=this._register(new gi);this.viewZones=rH(this,((e,t)=>{var i,n,s,r,a,l,c,d;f.clear();const h=g.read(e)||[],_=[],b=[],v=this._modifiedTopPadding.read(e);v>0&&b.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:v,showInHiddenAreas:!0,suppressMouseDown:!0});const S=this._originalTopPadding.read(e);S>0&&_.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:S,showInHiddenAreas:!0,suppressMouseDown:!0});const C=this._options.renderSideBySide.read(e),E=C||null===(i=this._editors.modified._getViewModel())||void 0===i?void 0:i.createLineBreaksComputer();if(E){const e=this._editors.original.getModel();for(const t of h)if(t.diff)for(let i=t.originalRange.startLineNumber;ie.getLineCount())return{orig:_,mod:b};null==E||E.addRequest(e.getLineContent(i),null,null)}}const w=null!==(n=null==E?void 0:E.finalize())&&void 0!==n?n:[];let T=0;const y=this._editors.modified.getOption(67),R=null===(s=this._diffModel.read(e))||void 0===s?void 0:s.movedTextToCompare.read(e),L=null!==(a=null===(r=this._editors.original.getModel())||void 0===r?void 0:r.mightContainNonBasicASCII())&&void 0!==a&&a,I=null!==(c=null===(l=this._editors.original.getModel())||void 0===l?void 0:l.mightContainRTL())&&void 0!==c&&c,A=q$.fromEditor(this._editors.modified);for(const g of h)if(g.diff&&!C){if(!g.originalRange.isEmpty){u.read(e);const t=document.createElement("div");t.classList.add("view-lines","line-delete","monaco-mouse-cursor-text");const i=this._editors.original.getModel();if(g.originalRange.endLineNumberExclusive-1>i.getLineCount())return{orig:_,mod:b};const n=new Y$(g.originalRange.mapToLineArray((e=>i.tokenization.getLineTokens(e))),g.originalRange.mapToLineArray((e=>w[T++])),L,I),o=[];for(const e of g.diff.innerChanges||[])o.push(new qf(e.originalRange.delta(-(g.diff.original.startLineNumber-1)),R$.className,0));const s=K$(n,A,o,t),r=document.createElement("div");if(r.className="inline-deleted-margin-view-zone",Kc(r,A.fontInfo),this._options.renderIndicators.read(e))for(let e=0;ene(a)),r,this._editors.modified,g.diff,this._diffEditorWidget,s.viewLineCounts,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let e=0;e1&&_.push({afterLineNumber:g.originalRange.startLineNumber+e,domNode:p(),heightInPx:(t-1)*y,showInHiddenAreas:!0,suppressMouseDown:!0})}b.push({afterLineNumber:g.modifiedRange.startLineNumber-1,domNode:t,heightInPx:s.heightInLines*y,minWidthInPx:s.minWidthInPx,marginDomNode:r,setZoneId(e){a=e},showInHiddenAreas:!0,suppressMouseDown:!0})}const t=document.createElement("div");t.className="gutter-delete",_.push({afterLineNumber:g.originalRange.endLineNumberExclusive-1,domNode:p(),heightInPx:g.modifiedHeightInPx,marginDomNode:t,showInHiddenAreas:!0,suppressMouseDown:!0})}else{const i=g.modifiedHeightInPx-g.originalHeightInPx;if(i>0){if(null==R?void 0:R.lineRangeMapping.original.delta(-1).deltaLength(2).contains(g.originalRange.endLineNumberExclusive-1))continue;_.push({afterLineNumber:g.originalRange.endLineNumberExclusive-1,domNode:p(),heightInPx:i,showInHiddenAreas:!0,suppressMouseDown:!0})}else{let n,s=function(){const e=document.createElement("div");return e.className="arrow-revert-change "+gd.asClassName(Yn.arrowRight),t.add(yl(e,"mousedown",(e=>e.stopPropagation()))),t.add(yl(e,"click",(e=>{e.stopPropagation(),o.revert(g.diff)}))),yc("div",{},e)};if(null==R?void 0:R.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(g.modifiedRange.endLineNumberExclusive-1))continue;g.diff&&g.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(e)&&(n=s()),b.push({afterLineNumber:g.modifiedRange.endLineNumberExclusive-1,domNode:p(),heightInPx:-i,marginDomNode:n,showInHiddenAreas:!0,suppressMouseDown:!0})}}for(const o of null!==(d=m.read(e))&&void 0!==d?d:[]){if(!(null==R?void 0:R.lineRangeMapping.original.intersect(o.originalRange))||!(null==R?void 0:R.lineRangeMapping.modified.intersect(o.modifiedRange)))continue;const e=o.modifiedHeightInPx-o.originalHeightInPx;e>0?_.push({afterLineNumber:o.originalRange.endLineNumberExclusive-1,domNode:p(),heightInPx:e,showInHiddenAreas:!0,suppressMouseDown:!0}):b.push({afterLineNumber:o.modifiedRange.endLineNumberExclusive-1,domNode:p(),heightInPx:-e,showInHiddenAreas:!0,suppressMouseDown:!0})}return{orig:_,mod:b}}));let _=!1;this._register(this._editors.original.onDidScrollChange((e=>{e.scrollLeftChanged&&!_&&(_=!0,this._editors.modified.setScrollLeft(e.scrollLeft),_=!1)}))),this._register(this._editors.modified.onDidScrollChange((e=>{e.scrollLeftChanged&&!_&&(_=!0,this._editors.original.setScrollLeft(e.scrollLeft),_=!1)}))),this._originalScrollTop=fH(this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=fH(this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._register(cH((e=>{const t=this._originalScrollTop.read(e)-(this._originalScrollOffsetAnimated.get()-this._modifiedScrollOffsetAnimated.read(e))-(this._originalTopPadding.get()-this._modifiedTopPadding.read(e));t!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(t,1)}))),this._register(cH((e=>{const t=this._modifiedScrollTop.read(e)-(this._modifiedScrollOffsetAnimated.get()-this._originalScrollOffsetAnimated.read(e))-(this._modifiedTopPadding.get()-this._originalTopPadding.read(e));t!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(t,1)}))),this._register(cH((e=>{var t;const i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.movedTextToCompare.read(e);let n=0;if(i){const e=this._editors.original.getTopForLineNumber(i.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.get();n=this._editors.modified.getTopForLineNumber(i.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.get()-e}n>0?(this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(n,void 0)):n<0?(this._modifiedTopPadding.set(-n,void 0),this._originalTopPadding.set(0,void 0)):setTimeout((()=>{this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(0,void 0)}),400),this._editors.modified.hasTextFocus()?this._originalScrollOffset.set(this._modifiedScrollOffset.get()-n,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.get()+n,void 0,!0)})))}};function Q$(e,t,i,n,o,s){const r=new z(Z$(e,n)),a=new z(Z$(t,o)),l=e.getOption(67),c=t.getOption(67),d=[];let h=0,u=0;function g(e,t){for(;;){let i=r.peek(),n=a.peek();if(i&&i.lineNumber>=e&&(i=void 0),n&&n.lineNumber>=t&&(n=void 0),!i&&!n)break;const o=i?i.lineNumber-h:Number.MAX_VALUE,s=n?n.lineNumber-u:Number.MAX_VALUE;os?(a.dequeue(),i={lineNumber:n.lineNumber-u+h,heightInPx:0}):(r.dequeue(),a.dequeue()),d.push({originalRange:qm.ofLength(i.lineNumber,1),modifiedRange:qm.ofLength(n.lineNumber,1),originalHeightInPx:l+i.heightInPx,modifiedHeightInPx:c+n.heightInPx,diff:void 0})}}for(const m of i){let t=function(e,t){var i,s,h,u;if(et.lineNumbere+t.heightInPx),0))&&void 0!==s?s:0,b=null!==(u=null===(h=a.takeWhile((e=>e.lineNumbere+t.heightInPx),0))&&void 0!==u?u:0;d.push({originalRange:g,modifiedRange:f,originalHeightInPx:g.length*l+_,modifiedHeightInPx:f.length*c+b,diff:m.lineRangeMapping}),p=e,o=t};const i=m.lineRangeMapping;g(i.original.startLineNumber,i.modified.startLineNumber);let n=!0,o=i.modified.startLineNumber,p=i.original.startLineNumber;if(s)for(const s of i.innerChanges||[]){s.originalRange.startColumn>1&&s.modifiedRange.startColumn>1&&t(s.originalRange.startLineNumber,s.modifiedRange.startLineNumber);const i=e.getModel(),n=s.originalRange.endLineNumber<=i.getLineCount()?i.getLineMaxColumn(s.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;s.originalRange.endColumn1&&n.push({lineNumber:a,heightInPx:r*(e-1)})}for(const a of e.getWhitespaces()){if(t.has(a.id))continue;const e=0===a.afterLineNumber?0:s.convertViewPositionToModelPosition(new Wn(a.afterLineNumber,1)).lineNumber;i.push({lineNumber:e,heightInPx:a.height})}return function(e,t,i,n){if(0===e.length)return t;if(0===t.length)return e;const o=[];let s=0,r=0;for(;sd?(o.push(l),r++):(o.push(n(a,l)),s++,r++)}for(;se.lineNumber),((e,t)=>({lineNumber:e.lineNumber,heightInPx:e.heightInPx+t.heightInPx})))}J$=j$([X$(8,WY),X$(9,Ex)],J$);class ej extends mi{constructor(e,t,i){super(),this._editor=e,this._domNode=t,this.itemProvider=i,this.scrollTop=fH(this._editor.onDidScrollChange,(e=>this._editor.getScrollTop())),this.isScrollTopZero=this.scrollTop.map((e=>0===e)),this.modelAttached=fH(this._editor.onDidChangeModel,(e=>this._editor.hasModel())),this.editorOnDidChangeViewZones=bH("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=bH("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=SH("domNodeSizeChanged"),this.views=new Map,this._domNode.className="gutter monaco-editor";const n=this._domNode.appendChild(Fc("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),o=new ResizeObserver((()=>{XB((e=>{this.domNodeSizeChanged.trigger(e)}))}));o.observe(this._domNode),this._register(ui((()=>o.disconnect()))),this._register(cH((e=>{n.className=this.isScrollTopZero.read(e)?"":"scroll-decoration"}))),this._register(cH((e=>this.render(e))))}dispose(){super.dispose(),Cc(this._domNode)}render(e){if(!this.modelAttached.read(e))return;this.domNodeSizeChanged.read(e),this.editorOnDidChangeViewZones.read(e),this.editorOnDidContentSizeChange.read(e);const t=this.scrollTop.read(e),i=this._editor.getVisibleRanges(),n=new Set(this.views.keys()),o=Bm.ofStartAndLength(0,this._domNode.clientHeight);if(!o.isEmpty)for(const s of i){const i=new qm(s.startLineNumber,s.endLineNumber+1),r=this.itemProvider.getIntersectingGutterItems(i,e);XB((e=>{for(const s of r){if(!s.range.intersect(i))continue;n.delete(s.id);let r=this.views.get(s.id);if(r)r.item.set(s,e);else{const e=document.createElement("div");this._domNode.appendChild(e);const t=eH("item",s),i=this.itemProvider.createView(t,e);r=new tj(t,i,e),this.views.set(s.id,r)}const a=s.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(s.range.startLineNumber,!0)-t:this._editor.getBottomForLineNumber(s.range.startLineNumber-1,!1)-t,l=(s.range.isEmpty?a:this._editor.getBottomForLineNumber(s.range.endLineNumberExclusive-1,!0)-t)-a;r.domNode.style.top=`${a}px`,r.domNode.style.height=`${l}px`,r.gutterItemView.layout(Bm.ofStartAndLength(a,l),o)}}))}for(const s of n){const e=this.views.get(s);e.gutterItemView.dispose(),this._domNode.removeChild(e.domNode),this.views.delete(s)}}}class tj{constructor(e,t,i){this.item=e,this.gutterItemView=t,this.domNode=i}}class ij extends ad{constructor(e){super(),this._getContext=e}runAction(e,t){const i=this._getContext();return super.runAction(e,i)}}class nj extends ep{constructor(e){super(),this._textModel=e}getValueOfRange(e){return this._textModel.getValueInRange(e)}get length(){const e=this._textModel.getLineCount(),t=this._textModel.getLineLength(e);return new jm(e-1,t)}}class oj extends mi{constructor(e,t,i={orientation:0}){var n;super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new ki),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new gi),i.hoverDelegate=null!==(n=i.hoverDelegate)&&void 0!==n?n:this._register(SB()),this.options=i,this.lookupKeybindings="function"==typeof this.options.getKeyBinding,this.toggleMenuAction=this._register(new sj((()=>{var e;return null===(e=this.toggleMenuActionViewItem)||void 0===e?void 0:e.show()}),i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new zW(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,hoverDelegate:i.hoverDelegate,actionViewItemProvider:(e,n)=>{var o;if(e.id===sj.ID)return this.toggleMenuActionViewItem=new gW(e,e.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:gd.asClassNameArray(null!==(o=i.moreIcon)&&void 0!==o?o:Yn.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const t=i.actionViewItemProvider(e,n);if(t)return t}if(e instanceof cd){const i=new gW(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return i.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(i),this.disposables.add(this._onDidChangeDropdownVisibility.add(i.onDidChangeVisibility)),i}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach((e=>{this.actionBar.push(e,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(e)})}))}getKeybindingLabel(e){var t,i,n;const o=this.lookupKeybindings?null===(i=(t=this.options).getKeyBinding)||void 0===i?void 0:i.call(t,e):void 0;return null!==(n=null==o?void 0:o.getLabel())&&void 0!==n?n:void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}}class sj extends rd{constructor(e,t){t=t||pe("vs/base/browser/ui/toolbar/toolbar","moreActions","More Actions..."),super(sj.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}sj.ID="toolbar.toggle.more";var rj=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},aj=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let lj=class extends oj{constructor(e,t,i,n,o,s,r,a){super(e,o,{getKeyBinding:e=>{var t;return null!==(t=s.lookupKeybinding(e.id))&&void 0!==t?t:void 0},...t,allowContextMenu:!0,skipTelemetry:"string"==typeof(null==t?void 0:t.telemetrySource)}),this._options=t,this._menuService=i,this._contextKeyService=n,this._contextMenuService=o,this._keybindingService=s,this._commandService=r,this._sessionDisposables=this._store.add(new gi);const l=null==t?void 0:t.telemetrySource;l&&this._store.add(this.actionBar.onDidRun((e=>a.publicLog2("workbenchActionExecuted",{id:e.action.id,from:l}))))}setActions(e,t=[],i){var n,o,s;this._sessionDisposables.clear();const r=e.slice(),a=t.slice(),l=[];let c=0;const d=[];let h=!1;if(-1!==(null===(n=this._options)||void 0===n?void 0:n.hiddenItemStrategy))for(let u=0;unull==e?void 0:e.id))),t=this._options.overflowBehavior.maxItems-e.size;let i=0;for(let n=0;n=t&&(r[n]=void 0,d[n]=o))}}y(r),y(d),super.setActions(r,ld.join(d,a)),(l.length>0||r.length>0)&&this._sessionDisposables.add(yl(this.getElement(),"contextmenu",(e=>{var t,n,o,s,r;const a=new kr(gl(this.getElement()),e),d=this.getItemAction(a.target);if(!d)return;a.preventDefault(),a.stopPropagation();const u=[];if(d instanceof wh&&d.menuKeybinding?u.push(d.menuKeybinding):d instanceof Eh||d instanceof sj||u.push(MY(d.id,void 0,this._commandService,this._keybindingService)),l.length>0){let e=!1;if(1===c&&0===(null===(t=this._options)||void 0===t?void 0:t.hiddenItemStrategy)){e=!0;for(let e=0;ethis._menuService.resetHiddenStates(i)}))),0!==g.length&&this._contextMenuService.showContextMenu({getAnchor:()=>a,getActions:()=>g,menuId:null===(o=this._options)||void 0===o?void 0:o.contextMenu,menuActionOptions:{renderShortTitle:!0,...null===(s=this._options)||void 0===s?void 0:s.menuOptions},skipTelemetry:"string"==typeof(null===(r=this._options)||void 0===r?void 0:r.telemetrySource),contextKeyService:this._contextKeyService})})))}};lj=rj([aj(2,vh),aj(3,Zd),aj(4,Ex),aj(5,tT),aj(6,md),aj(7,Rh)],lj);let cj=class extends lj{constructor(e,t,i,n,o,s,r,a,l){super(e,{resetMenu:t,...i},n,o,s,r,a,l),this._onDidChangeMenuItems=this._store.add(new Ri),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;const c=this._store.add(n.createMenu(t,o,{emitEventsForSubmenuChanges:!0})),d=()=>{var t,n,o;const s=[],r=[];FW(c,null==i?void 0:i.menuOptions,{primary:s,secondary:r},null===(t=null==i?void 0:i.toolbarOptions)||void 0===t?void 0:t.primaryGroup,null===(n=null==i?void 0:i.toolbarOptions)||void 0===n?void 0:n.shouldInlineSubmenu,null===(o=null==i?void 0:i.toolbarOptions)||void 0===o?void 0:o.useSeparatorsInPrimaryActions),e.classList.toggle("has-no-actions",0===s.length&&0===r.length),super.setActions(s,r)};this._store.add(c.onDidChange((()=>{d(),this._onDidChangeMenuItems.fire(this)}))),d()}setActions(){throw new ai("This toolbar is populated from a menu.")}};cj=rj([aj(3,vh),aj(4,Zd),aj(5,Ex),aj(6,tT),aj(7,md),aj(8,Rh)],cj);var dj=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},hj=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const uj=[];let gj=class extends mi{constructor(e,t,i,n,o,s){var r,a;super(),this._diffModel=t,this._editors=i,this._instantiationService=n,this._contextKeyService=o,this._menuService=s,this._menu=this._register(this._menuService.createMenu(bh.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=fH(this._menu.onDidChange,(()=>this._menu.getActions())),this._hasActions=this._actions.map((e=>e.length>0)),this.width=oH(this,(e=>this._hasActions.read(e)?35:0)),this.elements=Fc("div.gutter@gutter",{style:{position:"absolute",height:"100%",width:"35px"}},[]),this._currentDiff=oH(this,(e=>{var t;const i=this._diffModel.read(e);if(!i)return;const n=null===(t=i.diff.read(e))||void 0===t?void 0:t.mappings,o=this._editors.modifiedCursor.read(e);return o?null==n?void 0:n.find((e=>e.lineRangeMapping.modified.contains(o.lineNumber))):void 0})),this._selectedDiffs=oH(this,(e=>{const t=this._diffModel.read(e),i=null==t?void 0:t.diff.read(e);if(!i)return uj;const n=this._editors.modifiedSelections.read(e);if(n.every((e=>e.isEmpty())))return uj;const o=new $m(n.map((e=>qm.fromRangeInclusive(e)))),s=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&o.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>n.some((t=>Un.areIntersecting(e.modifiedRange,t)))))})));return 0===s.length||s.every((e=>0===e.rangeMappings.length))?uj:s})),this._register((r=e,a=this.elements.root,r.prepend(a),ui((()=>{r.removeChild(a)})))),this._register(yl(this.elements.root,"click",(()=>{this._editors.modified.focus()}))),this._register(Yq(this.elements.root,{display:this._hasActions.map((e=>e?"block":"none"))})),this._register(new ej(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(e,t)=>{const i=this._diffModel.read(t);if(!i)return[];const n=i.diff.read(t);if(!n)return[];const o=this._selectedDiffs.read(t);if(o.length>0){const e=np.fromRangeMappings(o.flatMap((e=>e.rangeMappings)));return[new mj(e,!0,bh.DiffEditorSelectionToolbar,void 0,i.model.original.uri,i.model.modified.uri)]}const s=this._currentDiff.read(t);return n.mappings.map((e=>new mj(e.lineRangeMapping.withInnerChangesFromLineRanges(),e.lineRangeMapping===(null==s?void 0:s.lineRangeMapping),bh.DiffEditorHunkToolbar,void 0,i.model.original.uri,i.model.modified.uri)))},createView:(e,t)=>this._instantiationService.createInstance(pj,e,t,this)})),this._register(yl(this.elements.gutter,mc.MOUSE_WHEEL,(e=>{this._editors.modified.getOption(103).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1}))}computeStagedValue(e){var t;const i=null!==(t=e.innerChanges)&&void 0!==t?t:[],n=new nj(this._editors.modifiedModel.get()),o=new nj(this._editors.original.getModel());return new Jm(i.map((e=>e.toTextEdit(n)))).apply(o)}layout(e){this.elements.gutter.style.left=e+"px"}};gj=dj([hj(3,td),hj(4,Zd),hj(5,vh)],gj);class mj{constructor(e,t,i,n,o,s){this.mapping=e,this.showAlways=t,this.menuId=i,this.rangeOverride=n,this.originalUri=o,this.modifiedUri=s}get id(){return this.mapping.modified.toString()}get range(){var e;return null!==(e=this.rangeOverride)&&void 0!==e?e:this.mapping.modified}}let pj=class extends mi{constructor(e,t,i,n){super(),this._item=e,this._elements=Fc("div.gutterItem",{style:{height:"20px",width:"34px"}},[Fc("div.background@background",{},[]),Fc("div.buttons@buttons",{},[])]),this._showAlways=this._item.map(this,(e=>e.showAlways)),this._menuId=this._item.map(this,(e=>e.menuId)),this._isSmall=eH(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;const o=this._register(n.createInstance(Sx,"element",!0,{position:{hoverPosition:1}}));this._register(Wq(t,this._elements.root)),this._register(cH((e=>{const t=this._showAlways.read(e);this._elements.root.classList.toggle("noTransition",!0),this._elements.root.classList.toggle("showAlways",t),setTimeout((()=>{this._elements.root.classList.toggle("noTransition",!1)}),0)}))),this._register(uH(((e,t)=>{this._elements.buttons.replaceChildren();const s=t.add(n.createInstance(cj,this._elements.buttons,this._menuId.read(e),{orientation:1,hoverDelegate:o,toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},overflowBehavior:{maxItems:this._isSmall.read(e)?1:3},hiddenItemStrategy:0,actionRunner:new ij((()=>{const e=this._item.get(),t=e.mapping;return{mapping:t,originalWithModifiedChanges:i.computeStagedValue(t),originalUri:e.originalUri,modifiedUri:e.modifiedUri}})),menuOptions:{shouldForwardArgs:!0}}));t.add(s.onDidChangeMenuItems((()=>{this._lastItemRange&&this.layout(this._lastItemRange,this._lastViewRange)})))})))}layout(e,t){this._lastItemRange=e,this._lastViewRange=t;let i=this._elements.buttons.clientHeight;this._isSmall.set(1===this._item.get().mapping.original.startLineNumber&&e.length<30,void 0),i=this._elements.buttons.clientHeight,this._elements.root.style.top=e.start+"px",this._elements.root.style.height=e.length+"px";const n=e.length/2-i/2,o=i;let s=e.start+n;const r=Bm.tryCreate(o,t.endExclusive-o-i),a=Bm.tryCreate(e.start+o,e.endExclusive-i-o);a&&r&&a.start=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},bj=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let vj=fj=class extends mi{static setBreadcrumbsSourceFactory(e){this._breadcrumbsSourceFactory.set(e,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._instantiationService=n,this._modifiedOutlineSource=aH(this,(e=>{const t=this._editors.modifiedModel.read(e),i=fj._breadcrumbsSourceFactory.read(e);return t&&i?i(t,this._instantiationService):void 0})),this._isUpdatingHiddenAreas=!1,this._register(this._editors.original.onDidChangeCursorPosition((e=>{if(1===e.reason)return;const t=this._diffModel.get();XB((e=>{for(const i of this._editors.original.getSelections()||[])null==t||t.ensureOriginalLineIsVisible(i.getStartPosition().lineNumber,0,e),null==t||t.ensureOriginalLineIsVisible(i.getEndPosition().lineNumber,0,e)}))}))),this._register(this._editors.modified.onDidChangeCursorPosition((e=>{if(1===e.reason)return;const t=this._diffModel.get();XB((e=>{for(const i of this._editors.modified.getSelections()||[])null==t||t.ensureModifiedLineIsVisible(i.getStartPosition().lineNumber,0,e),null==t||t.ensureModifiedLineIsVisible(i.getEndPosition().lineNumber,0,e)}))})));const o=this._diffModel.map(((e,t)=>{var i,n;const o=null!==(i=null==e?void 0:e.unchangedRegions.read(t))&&void 0!==i?i:[];return 1===o.length&&1===o[0].modifiedLineNumber&&o[0].lineCount===(null===(n=this._editors.modifiedModel.read(t))||void 0===n?void 0:n.getLineCount())?[]:o}));this.viewZones=rH(this,((e,t)=>{const i=this._modifiedOutlineSource.read(e);if(!i)return{origViewZones:[],modViewZones:[]};const n=[],s=[],r=this._options.renderSideBySide.read(e),a=o.read(e);for(const o of a)if(!o.shouldHideControls(e)){{const e=oH(this,(e=>o.getHiddenOriginalRange(e).startLineNumber-1)),s=new zq(e,24);n.push(s),t.add(new Sj(this._editors.original,s,o,o.originalUnchangedRange,!r,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}{const e=oH(this,(e=>o.getHiddenModifiedRange(e).startLineNumber-1)),n=new zq(e,24);s.push(n),t.add(new Sj(this._editors.modified,n,o,o.modifiedUnchangedRange,!1,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}}return{origViewZones:n,modViewZones:s}}));const s={description:"unchanged lines",className:"diff-unchanged-lines",isWholeLine:!0},r={description:"Fold Unchanged",glyphMarginHoverMessage:new YM(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown(pe("vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature","foldUnchanged","Fold Unchanged Region")),glyphMarginClassName:"fold-unchanged "+gd.asClassName(Yn.fold),zIndex:10001};this._register(Hq(this._editors.original,oH(this,(e=>{const t=o.read(e),i=t.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:s})));for(const n of t)n.shouldHideControls(e)&&i.push({range:Un.fromPositions(new Wn(n.originalLineNumber,1)),options:r});return i})))),this._register(Hq(this._editors.modified,oH(this,(e=>{const t=o.read(e),i=t.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:s})));for(const n of t)n.shouldHideControls(e)&&i.push({range:qm.ofLength(n.modifiedLineNumber,1).toInclusiveRange(),options:r});return i})))),this._register(cH((e=>{const t=o.read(e);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(t.map((t=>t.getHiddenOriginalRange(e).toInclusiveRange())).filter(ee)),this._editors.modified.setHiddenAreas(t.map((t=>t.getHiddenModifiedRange(e).toInclusiveRange())).filter(ee))}finally{this._isUpdatingHiddenAreas=!1}}))),this._register(this._editors.modified.onMouseUp((e=>{var t;if(!e.event.rightButton&&e.target.position&&(null===(t=e.target.element)||void 0===t?void 0:t.className.includes("fold-unchanged"))){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const n=i.unchangedRegions.get().find((e=>e.modifiedUnchangedRange.includes(t)));if(!n)return;n.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}}))),this._register(this._editors.original.onMouseUp((e=>{var t;if(!e.event.rightButton&&e.target.position&&(null===(t=e.target.element)||void 0===t?void 0:t.className.includes("fold-unchanged"))){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const n=i.unchangedRegions.get().find((e=>e.originalUnchangedRange.includes(t)));if(!n)return;n.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}})))}};vj._breadcrumbsSourceFactory=eH("breadcrumbsSourceFactory",void 0),vj=fj=_j([bj(3,td)],vj);class Sj extends Gq{constructor(e,t,i,n,o,s,r,a){const l=Fc("div.diff-hidden-lines-widget");super(e,t,l.root),this._editor=e,this._unchangedRegion=i,this._unchangedRegionRange=n,this._hide=o,this._modifiedOutlineSource=s,this._revealModifiedHiddenLine=r,this._options=a,this._nodes=Fc("div.diff-hidden-lines",[Fc("div.top@top",{title:pe("vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature","diff.hiddenLines.top","Click or drag to show more above")}),Fc("div.center@content",{style:{display:"flex"}},[Fc("div@first",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0"}},[yc("a",{title:pe("vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature","showUnchangedRegion","Show Unchanged Region"),role:"button",onclick:()=>{this._unchangedRegion.showAll(void 0)}},...Fx("$(unfold)"))]),Fc("div@others",{style:{display:"flex",justifyContent:"center",alignItems:"center"}})]),Fc("div.bottom@bottom",{title:pe("vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature","diff.bottom","Click or drag to show more below"),role:"button"})]),l.root.appendChild(this._nodes.root);const c=fH(this._editor.onDidLayoutChange,(()=>this._editor.getLayoutInfo()));this._hide?Cc(this._nodes.first):this._register(Yq(this._nodes.first,{width:c.map((e=>e.contentLeft))})),this._register(cH((e=>{const t=this._unchangedRegion.visibleLineCountTop.read(e)+this._unchangedRegion.visibleLineCountBottom.read(e)===this._unchangedRegion.lineCount;this._nodes.bottom.classList.toggle("canMoveTop",!t),this._nodes.bottom.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0),this._nodes.top.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),this._nodes.top.classList.toggle("canMoveBottom",!t);const i=this._unchangedRegion.isDragged.read(e),n=this._editor.getDomNode();n&&(n.classList.toggle("draggingUnchangedRegion",!!i),"top"===i?(n.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),n.classList.toggle("canMoveBottom",!t)):"bottom"===i?(n.classList.toggle("canMoveTop",!t),n.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0)):(n.classList.toggle("canMoveTop",!1),n.classList.toggle("canMoveBottom",!1)))})));const d=this._editor;this._register(yl(this._nodes.top,"mousedown",(e=>{if(0!==e.button)return;this._nodes.top.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),e.preventDefault();const t=e.clientY;let i=!1;const n=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set("top",void 0);const o=gl(this._nodes.top),s=yl(o,"mousemove",(e=>{const o=e.clientY-t;i=i||Math.abs(o)>2;const s=Math.round(o/d.getOption(67)),r=Math.max(0,Math.min(n+s,this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(r,void 0)})),r=yl(o,"mouseup",(e=>{i||this._unchangedRegion.showMoreAbove(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0),this._nodes.top.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),this._unchangedRegion.isDragged.set(void 0,void 0),s.dispose(),r.dispose()}))}))),this._register(yl(this._nodes.bottom,"mousedown",(e=>{if(0!==e.button)return;this._nodes.bottom.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),e.preventDefault();const t=e.clientY;let i=!1;const n=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set("bottom",void 0);const o=gl(this._nodes.bottom),s=yl(o,"mousemove",(e=>{const o=e.clientY-t;i=i||Math.abs(o)>2;const s=Math.round(o/d.getOption(67)),r=Math.max(0,Math.min(n-s,this._unchangedRegion.getMaxVisibleLineCountBottom())),a=this._unchangedRegionRange.endLineNumberExclusive>d.getModel().getLineCount()?d.getContentHeight():d.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.visibleLineCountBottom.set(r,void 0);const l=this._unchangedRegionRange.endLineNumberExclusive>d.getModel().getLineCount()?d.getContentHeight():d.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);d.setScrollTop(d.getScrollTop()+(l-a))})),r=yl(o,"mouseup",(e=>{if(this._unchangedRegion.isDragged.set(void 0,void 0),!i){const e=d.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0);const t=d.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);d.setScrollTop(d.getScrollTop()+(t-e))}this._nodes.bottom.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),s.dispose(),r.dispose()}))}))),this._register(cH((e=>{const t=[];if(!this._hide){const n=pe("vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature","hiddenLines","{0} hidden lines",i.getHiddenModifiedRange(e).length),o=yc("span",{title:pe("vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature","diff.hiddenLines.expandAll","Double click to unfold")},n);o.addEventListener("dblclick",(e=>{0===e.button&&(e.preventDefault(),this._unchangedRegion.showAll(void 0))})),t.push(o);const s=this._unchangedRegion.getHiddenModifiedRange(e),r=this._modifiedOutlineSource.getBreadcrumbItems(s,e);if(r.length>0){t.push(yc("span",void 0,"  |  "));for(let e=0;e{this._revealModifiedHiddenLine(i.startLineNumber)}}}}Cc(this._nodes.others,...t)})))}}var Cj,Ej=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},wj=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let Tj=Cj=class extends mi{constructor(e,t,i,n,o,s,r){super(),this._editors=e,this._rootElement=t,this._diffModel=i,this._rootWidth=n,this._rootHeight=o,this._modifiedEditorLayoutInfo=s,this._themeService=r,this.width=Cj.ENTIRE_DIFF_OVERVIEW_WIDTH;const a=fH(this._themeService.onDidColorThemeChange,(()=>this._themeService.getColorTheme())),l=oH((e=>{const t=a.read(e);return{insertColor:t.getColor(sv)||(t.getColor(nv)||tv).transparent(2),removeColor:t.getColor(rv)||(t.getColor(ov)||iv).transparent(2)}})),c=zc(document.createElement("div"));c.setClassName("diffViewport"),c.setPosition("absolute");const d=Fc("div.diffOverview",{style:{position:"absolute",top:"0px",width:Cj.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register(Wq(d,c.domNode)),this._register(Ll(d,mc.POINTER_DOWN,(e=>{this._editors.modified.delegateVerticalScrollbarPointerDown(e)}))),this._register(yl(d,mc.MOUSE_WHEEL,(e=>{this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1})),this._register(Wq(this._rootElement,d)),this._register(uH(((e,t)=>{const i=this._diffModel.read(e),n=this._editors.original.createOverviewRuler("original diffOverviewRuler");n&&(t.add(n),t.add(Wq(d,n.getDomNode())));const o=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(o&&(t.add(o),t.add(Wq(d,o.getDomNode()))),!n||!o)return;const s=bH("viewZoneChanged",this._editors.original.onDidChangeViewZones),r=bH("viewZoneChanged",this._editors.modified.onDidChangeViewZones),a=bH("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),h=bH("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);t.add(cH((e=>{var t;s.read(e),r.read(e),a.read(e),h.read(e);const c=l.read(e),d=null===(t=null==i?void 0:i.diff.read(e))||void 0===t?void 0:t.mappings;function u(e,t,i){const n=i._getViewModel();return n?e.filter((e=>e.length>0)).map((e=>{const i=n.coordinatesConverter.convertModelPositionToViewPosition(new Wn(e.startLineNumber,1)),o=n.coordinatesConverter.convertModelPositionToViewPosition(new Wn(e.endLineNumberExclusive,1)),s=o.lineNumber-i.lineNumber;return new ER(i.lineNumber,o.lineNumber,s,t.toString())})):[]}const g=u((d||[]).map((e=>e.lineRangeMapping.original)),c.removeColor,this._editors.original),m=u((d||[]).map((e=>e.lineRangeMapping.modified)),c.insertColor,this._editors.modified);null==n||n.setZones(g),null==o||o.setZones(m)}))),t.add(cH((e=>{const t=this._rootHeight.read(e),i=this._rootWidth.read(e),s=this._modifiedEditorLayoutInfo.read(e);if(s){const i=Cj.ENTIRE_DIFF_OVERVIEW_WIDTH-2*Cj.ONE_OVERVIEW_WIDTH;n.setLayout({top:0,height:t,right:i+Cj.ONE_OVERVIEW_WIDTH,width:Cj.ONE_OVERVIEW_WIDTH}),o.setLayout({top:0,height:t,right:0,width:Cj.ONE_OVERVIEW_WIDTH});const r=this._editors.modifiedScrollTop.read(e),a=this._editors.modifiedScrollHeight.read(e),l=this._editors.modified.getOption(103),d=new dE(l.verticalHasArrows?l.arrowSize:0,l.verticalScrollbarSize,0,s.height,a,r);c.setTop(d.getSliderPosition()),c.setHeight(d.getSliderSize())}else c.setTop(0),c.setHeight(0);d.style.height=t+"px",d.style.left=i-Cj.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",c.setWidth(Cj.ENTIRE_DIFF_OVERVIEW_WIDTH)})))})))}};Tj.ONE_OVERVIEW_WIDTH=15,Tj.ENTIRE_DIFF_OVERVIEW_WIDTH=2*Cj.ONE_OVERVIEW_WIDTH,Tj=Cj=Ej([wj(6,KE)],Tj);const yj=[];class Rj extends mi{constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._widget=n,this._selectedDiffs=oH(this,(e=>{const t=this._diffModel.read(e),i=null==t?void 0:t.diff.read(e);if(!i)return yj;const n=this._editors.modifiedSelections.read(e);if(n.every((e=>e.isEmpty())))return yj;const o=new $m(n.map((e=>qm.fromRangeInclusive(e)))),s=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&o.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>n.some((t=>Un.areIntersecting(e.modifiedRange,t)))))})));return 0===s.length||s.every((e=>0===e.rangeMappings.length))?yj:s})),this._register(uH(((e,t)=>{if(!this._options.shouldRenderOldRevertArrows.read(e))return;const i=this._diffModel.read(e),n=null==i?void 0:i.diff.read(e);if(!i||!n)return;if(i.movedTextToCompare.read(e))return;const o=[],s=this._selectedDiffs.read(e),r=new Set(s.map((e=>e.mapping)));if(s.length>0){const i=this._editors.modifiedSelections.read(e),n=t.add(new Lj(i[i.length-1].positionLineNumber,this._widget,s.flatMap((e=>e.rangeMappings)),!0));this._editors.modified.addGlyphMarginWidget(n),o.push(n)}for(const a of n.mappings)if(!r.has(a)&&!a.lineRangeMapping.modified.isEmpty&&a.lineRangeMapping.innerChanges){const e=t.add(new Lj(a.lineRangeMapping.modified.startLineNumber,this._widget,a.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(e),o.push(e)}t.add(ui((()=>{for(const e of o)this._editors.modified.removeGlyphMarginWidget(e)})))})))}}class Lj extends mi{getId(){return this._id}constructor(e,t,i,n){super(),this._lineNumber=e,this._widget=t,this._diffs=i,this._revertSelection=n,this._id="revertButton"+Lj.counter++,this._domNode=Fc("div.revertButton",{title:this._revertSelection?pe("vs/editor/browser/widget/diffEditor/features/revertButtonsFeature","revertSelectedChanges","Revert Selected Changes"):pe("vs/editor/browser/widget/diffEditor/features/revertButtonsFeature","revertChange","Revert Change")},[Bx(Yn.arrowRight)]).root,this._register(yl(this._domNode,mc.MOUSE_DOWN,(e=>{2!==e.button&&(e.stopPropagation(),e.preventDefault())}))),this._register(yl(this._domNode,mc.MOUSE_UP,(e=>{e.stopPropagation(),e.preventDefault()}))),this._register(yl(this._domNode,mc.CLICK,(e=>{this._diffs instanceof ip?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),e.stopPropagation(),e.preventDefault()})))}getDomNode(){return this._domNode}getPosition(){return{lane:vm.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}}Lj.counter=0;class Ij{static get(e){let t=Ij._map.get(e);if(!t){t=new Ij(e),Ij._map.set(e,t);const i=e.onDidDispose((()=>{Ij._map.delete(e),i.dispose()}))}return t}constructor(e){this.editor=e,this.model=fH(this.editor.onDidChangeModel,(()=>this.editor.getModel()))}}Ij._map=new Map;var Aj=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Nj=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let kj=class extends mi{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor(e,t,i,n,o,s,r){var a;super(),this.originalEditorElement=e,this.modifiedEditorElement=t,this._options=i,this._argCodeEditorWidgetOptions=n,this._createInnerEditor=o,this._instantiationService=s,this._keybindingService=r,this.original=this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.originalEditor||{})),this.modified=this._register(this._createRightHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.modifiedEditor||{})),this._onDidContentSizeChange=this._register(new Ri),this.modifiedScrollTop=fH(this.modified.onDidScrollChange,(()=>this.modified.getScrollTop())),this.modifiedScrollHeight=fH(this.modified.onDidScrollChange,(()=>this.modified.getScrollHeight())),this.modifiedModel=(a=this.modified,Ij.get(a)).model,this.modifiedSelections=fH(this.modified.onDidChangeCursorSelection,(()=>{var e;return null!==(e=this.modified.getSelections())&&void 0!==e?e:[]})),this.modifiedCursor=sH({owner:this,equalsFn:Wn.equals},(e=>{var t,i;return null!==(i=null===(t=this.modifiedSelections.read(e)[0])||void 0===t?void 0:t.getPosition())&&void 0!==i?i:new Wn(1,1)})),this.originalCursor=fH(this.original.onDidChangeCursorPosition,(()=>{var e;return null!==(e=this.original.getPosition())&&void 0!==e?e:new Wn(1,1)})),this._argCodeEditorWidgetOptions=null,this._register(hH({createEmptyChangeSummary:()=>({}),handleChange:(e,t)=>(e.didChange(i.editorOptions)&&Object.assign(t,e.change.changedOptions),!0)},((e,t)=>{i.editorOptions.read(e),this._options.renderSideBySide.read(e),this.modified.updateOptions(this._adjustOptionsForRightHandSide(e,t)),this.original.updateOptions(this._adjustOptionsForLeftHandSide(e,t))})))}_createLeftHandSideEditor(e,t){const i=this._adjustOptionsForLeftHandSide(void 0,e),n=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,i,t);return n.setContextValue("isInDiffLeftEditor",!0),n}_createRightHandSideEditor(e,t){const i=this._adjustOptionsForRightHandSide(void 0,e),n=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,i,t);return n.setContextValue("isInDiffRightEditor",!0),n}_constructInnerEditor(e,t,i,n){const o=this._createInnerEditor(e,t,i,n);return this._register(o.onDidContentSizeChange((e=>{const t=this.original.getContentWidth()+this.modified.getContentWidth()+Tj.ENTIRE_DIFF_OVERVIEW_WIDTH,i=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:i,contentWidth:t,contentHeightChanged:e.contentHeightChanged,contentWidthChanged:e.contentWidthChanged})}))),o}_adjustOptionsForLeftHandSide(e,t){const i=this._adjustOptionsForSubEditor(t);return this._options.renderSideBySide.get()?(i.unicodeHighlight=this._options.editorOptions.get().unicodeHighlight||{},i.wordWrapOverride1=this._options.diffWordWrap.get()):(i.wordWrapOverride1="off",i.wordWrapOverride2="off",i.stickyScroll={enabled:!1},i.unicodeHighlight={nonBasicASCII:!1,ambiguousCharacters:!1,invisibleCharacters:!1}),i.glyphMargin=this._options.renderSideBySide.get(),t.originalAriaLabel&&(i.ariaLabel=t.originalAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.readOnly=!this._options.originalEditable.get(),i.dropIntoEditor={enabled:!i.readOnly},i.extraEditorClassName="original-in-monaco-diff-editor",i}_adjustOptionsForRightHandSide(e,t){const i=this._adjustOptionsForSubEditor(t);return t.modifiedAriaLabel&&(i.ariaLabel=t.modifiedAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.wordWrapOverride1=this._options.diffWordWrap.get(),i.revealHorizontalRightPadding=jt.revealHorizontalRightPadding.defaultValue+Tj.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",i}_adjustOptionsForSubEditor(e){const t={...e,dimension:{height:0,width:0}};return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar={...t.scrollbar||{}},t.folding=!1,t.codeLens=this._options.diffCodeLens.get(),t.fixedOverflowWidgets=!0,t.minimap={...t.minimap||{}},t.minimap.enabled=!1,this._options.hideUnchangedRegions.get()?t.stickyScroll={enabled:!1}:t.stickyScroll=this._options.editorOptions.get().stickyScroll,t}_updateAriaLabel(e){var t;e||(e="");const i=pe("vs/editor/browser/widget/diffEditor/components/diffEditorEditors","diff-aria-navigation-tip"," use {0} to open the accessibility help.",null===(t=this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp"))||void 0===t?void 0:t.getAriaLabel());return this._options.accessibilityVerbose.get()?e+i:e?e.replaceAll(i,""):""}};kj=Aj([Nj(5,td),Nj(6,tT)],kj);class Dj extends mi{constructor(){super(...arguments),this._id=++Dj.idCounter,this._onDidDispose=this._register(new Ri),this.onDidDispose=this._onDidDispose.event}getId(){return this.getEditorType()+":v2:"+this._id}getVisibleColumnFromPosition(e){return this._targetEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._targetEditor.getPosition()}setPosition(e,t="api"){this._targetEditor.setPosition(e,t)}revealLine(e,t=0){this._targetEditor.revealLine(e,t)}revealLineInCenter(e,t=0){this._targetEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e,t=0){this._targetEditor.revealLineNearTop(e,t)}revealPosition(e,t=0){this._targetEditor.revealPosition(e,t)}revealPositionInCenter(e,t=0){this._targetEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e,t=0){this._targetEditor.revealPositionNearTop(e,t)}getSelection(){return this._targetEditor.getSelection()}getSelections(){return this._targetEditor.getSelections()}setSelection(e,t="api"){this._targetEditor.setSelection(e,t)}setSelections(e,t="api"){this._targetEditor.setSelections(e,t)}revealLines(e,t,i=0){this._targetEditor.revealLines(e,t,i)}revealLinesInCenter(e,t,i=0){this._targetEditor.revealLinesInCenter(e,t,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._targetEditor.revealLinesInCenterIfOutsideViewport(e,t,i)}revealLinesNearTop(e,t,i=0){this._targetEditor.revealLinesNearTop(e,t,i)}revealRange(e,t=0,i=!1,n=!0){this._targetEditor.revealRange(e,t,i,n)}revealRangeInCenter(e,t=0){this._targetEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e,t=0){this._targetEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._targetEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e,t=0){this._targetEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this._targetEditor.getSupportedActions()}focus(){this._targetEditor.focus()}trigger(e,t,i){this._targetEditor.trigger(e,t,i)}createDecorationsCollection(e){return this._targetEditor.createDecorationsCollection(e)}changeDecorations(e){return this._targetEditor.changeDecorations(e)}}Dj.idCounter=0;var Oj=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},xj=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let Mj=class{get editorOptions(){return this._options}constructor(e,t){this._accessibilityService=t,this._diffEditorWidth=eH(this,0),this._screenReaderMode=fH(this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>this._accessibilityService.isScreenReaderOptimized())),this.couldShowInlineViewBecauseOfSize=oH(this,(e=>this._options.read(e).renderSideBySide&&this._diffEditorWidth.read(e)<=this._options.read(e).renderSideBySideInlineBreakpoint)),this.renderOverviewRuler=oH(this,(e=>this._options.read(e).renderOverviewRuler)),this.renderSideBySide=oH(this,(e=>this._options.read(e).renderSideBySide&&!(this._options.read(e).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(e)&&!this._screenReaderMode.read(e)))),this.readOnly=oH(this,(e=>this._options.read(e).readOnly)),this.shouldRenderOldRevertArrows=oH(this,(e=>!(!this._options.read(e).renderMarginRevertIcon||!this.renderSideBySide.read(e)||this.readOnly.read(e)||this.shouldRenderGutterMenu.read(e)))),this.shouldRenderGutterMenu=oH(this,(e=>this._options.read(e).renderGutterMenu)),this.renderIndicators=oH(this,(e=>this._options.read(e).renderIndicators)),this.enableSplitViewResizing=oH(this,(e=>this._options.read(e).enableSplitViewResizing)),this.splitViewDefaultRatio=oH(this,(e=>this._options.read(e).splitViewDefaultRatio)),this.ignoreTrimWhitespace=oH(this,(e=>this._options.read(e).ignoreTrimWhitespace)),this.maxComputationTimeMs=oH(this,(e=>this._options.read(e).maxComputationTime)),this.showMoves=oH(this,(e=>this._options.read(e).experimental.showMoves&&this.renderSideBySide.read(e))),this.isInEmbeddedEditor=oH(this,(e=>this._options.read(e).isInEmbeddedEditor)),this.diffWordWrap=oH(this,(e=>this._options.read(e).diffWordWrap)),this.originalEditable=oH(this,(e=>this._options.read(e).originalEditable)),this.diffCodeLens=oH(this,(e=>this._options.read(e).diffCodeLens)),this.accessibilityVerbose=oH(this,(e=>this._options.read(e).accessibilityVerbose)),this.diffAlgorithm=oH(this,(e=>this._options.read(e).diffAlgorithm)),this.showEmptyDecorations=oH(this,(e=>this._options.read(e).experimental.showEmptyDecorations)),this.onlyShowAccessibleDiffViewer=oH(this,(e=>this._options.read(e).onlyShowAccessibleDiffViewer)),this.hideUnchangedRegions=oH(this,(e=>this._options.read(e).hideUnchangedRegions.enabled)),this.hideUnchangedRegionsRevealLineCount=oH(this,(e=>this._options.read(e).hideUnchangedRegions.revealLineCount)),this.hideUnchangedRegionsContextLineCount=oH(this,(e=>this._options.read(e).hideUnchangedRegions.contextLineCount)),this.hideUnchangedRegionsMinimumLineCount=oH(this,(e=>this._options.read(e).hideUnchangedRegions.minimumLineCount));const i={...e,...Pj(e,nF)};this._options=eH(this,i)}updateOptions(e){const t=Pj(e,this._options.get()),i={...this._options.get(),...e,...t};this._options.set(i,void 0,{changedOptions:e})}setWidth(e){this._diffEditorWidth.set(e,void 0)}};function Pj(e,t){var i,n,o,s,r,a,l,c;return{enableSplitViewResizing:vt(e.enableSplitViewResizing,t.enableSplitViewResizing),splitViewDefaultRatio:wt(e.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:vt(e.renderSideBySide,t.renderSideBySide),renderMarginRevertIcon:vt(e.renderMarginRevertIcon,t.renderMarginRevertIcon),maxComputationTime:Ct(e.maxComputationTime,t.maxComputationTime,0,1073741824),maxFileSize:Ct(e.maxFileSize,t.maxFileSize,0,1073741824),ignoreTrimWhitespace:vt(e.ignoreTrimWhitespace,t.ignoreTrimWhitespace),renderIndicators:vt(e.renderIndicators,t.renderIndicators),originalEditable:vt(e.originalEditable,t.originalEditable),diffCodeLens:vt(e.diffCodeLens,t.diffCodeLens),renderOverviewRuler:vt(e.renderOverviewRuler,t.renderOverviewRuler),diffWordWrap:Rt(e.diffWordWrap,t.diffWordWrap,["off","on","inherit"]),diffAlgorithm:Rt(e.diffAlgorithm,t.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:vt(e.accessibilityVerbose,t.accessibilityVerbose),experimental:{showMoves:vt(null===(i=e.experimental)||void 0===i?void 0:i.showMoves,t.experimental.showMoves),showEmptyDecorations:vt(null===(n=e.experimental)||void 0===n?void 0:n.showEmptyDecorations,t.experimental.showEmptyDecorations)},hideUnchangedRegions:{enabled:vt(null!==(s=null===(o=e.hideUnchangedRegions)||void 0===o?void 0:o.enabled)&&void 0!==s?s:null===(r=e.experimental)||void 0===r?void 0:r.collapseUnchangedRegions,t.hideUnchangedRegions.enabled),contextLineCount:Ct(null===(a=e.hideUnchangedRegions)||void 0===a?void 0:a.contextLineCount,t.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:Ct(null===(l=e.hideUnchangedRegions)||void 0===l?void 0:l.minimumLineCount,t.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:Ct(null===(c=e.hideUnchangedRegions)||void 0===c?void 0:c.revealLineCount,t.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:vt(e.isInEmbeddedEditor,t.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:vt(e.onlyShowAccessibleDiffViewer,t.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:Ct(e.renderSideBySideInlineBreakpoint,t.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:vt(e.useInlineViewWhenSpaceIsLimited,t.useInlineViewWhenSpaceIsLimited),renderGutterMenu:vt(e.renderGutterMenu,t.renderGutterMenu)}}Mj=Oj([xj(1,W_)],Mj);var Fj=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Bj=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let Hj=class extends Dj{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange}constructor(e,t,i,n,o,s,r,a){var l;super(),this._domElement=e,this._parentContextKeyService=n,this._parentInstantiationService=o,this._accessibilitySignalService=r,this._editorProgressService=a,this.elements=Fc("div.monaco-diff-editor.side-by-side",{style:{position:"relative",height:"100%"}},[Fc("div.editor.original@original",{style:{position:"absolute",height:"100%"}}),Fc("div.editor.modified@modified",{style:{position:"absolute",height:"100%"}}),Fc("div.accessibleDiffViewer@accessibleDiffViewer",{style:{position:"absolute",height:"100%"}})]),this._diffModel=eH(this,void 0),this._shouldDisposeDiffModel=!1,this.onDidChangeModel=Ci.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._parentInstantiationService.createChild(new LD([Zd,this._contextKeyService])),this._boundarySashes=eH(this,void 0),this._accessibleDiffViewerShouldBeVisible=eH(this,!1),this._accessibleDiffViewerVisible=oH(this,(e=>!!this._options.onlyShowAccessibleDiffViewer.read(e)||this._accessibleDiffViewerShouldBeVisible.read(e))),this._movedBlocksLinesPart=eH(this,void 0),this._layoutInfo=oH(this,(e=>{var t,i,n,o,s;const r=this._rootSizeObserver.width.read(e),a=this._rootSizeObserver.height.read(e),l=this._sash.read(e),c=this._gutter.read(e),d=null!==(t=null==c?void 0:c.width.read(e))&&void 0!==t?t:0,h=null!==(n=null===(i=this._overviewRulerPart.read(e))||void 0===i?void 0:i.width)&&void 0!==n?n:0;let u,g,m,p,f;if(l){const t=l.sashLeft.read(e);u=0,g=t-d-(null!==(s=null===(o=this._movedBlocksLinesPart.read(e))||void 0===o?void 0:o.width.read(e))&&void 0!==s?s:0),f=t-d,m=t,p=r-m-h}else f=0,u=d,g=Math.max(5,this._editors.original.getLayoutInfo().decorationsLeft),m=d+g,p=r-m-h;return this.elements.original.style.left=u+"px",this.elements.original.style.width=g+"px",this._editors.original.layout({width:g,height:a},!0),null==c||c.layout(f),this.elements.modified.style.left=m+"px",this.elements.modified.style.width=p+"px",this._editors.modified.layout({width:p,height:a},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()}})),this._diffValue=this._diffModel.map(((e,t)=>null==e?void 0:e.diff.read(t))),this.onDidUpdateDiff=Ci.fromObservableLight(this._diffValue),s.willCreateDiffEditor(),this._contextKeyService.createKey("isInDiffEditor",!0),this._domElement.appendChild(this.elements.root),this._register(ui((()=>this._domElement.removeChild(this.elements.root)))),this._rootSizeObserver=this._register(new Uq(this.elements.root,t.dimension)),this._rootSizeObserver.setAutomaticLayout(null!==(l=t.automaticLayout)&&void 0!==l&&l),this._options=this._instantiationService.createInstance(Mj,t),this._register(cH((e=>{this._options.setWidth(this._rootSizeObserver.width.read(e))}))),this._contextKeyService.createKey(JT.isEmbeddedDiffEditor.key,!1),this._register(Jq(JT.isEmbeddedDiffEditor,this._contextKeyService,(e=>this._options.isInEmbeddedEditor.read(e)))),this._register(Jq(JT.comparingMovedCode,this._contextKeyService,(e=>{var t;return!!(null===(t=this._diffModel.read(e))||void 0===t?void 0:t.movedTextToCompare.read(e))}))),this._register(Jq(JT.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,(e=>this._options.couldShowInlineViewBecauseOfSize.read(e)))),this._register(Jq(JT.diffEditorInlineMode,this._contextKeyService,(e=>!this._options.renderSideBySide.read(e)))),this._register(Jq(JT.hasChanges,this._contextKeyService,(e=>{var t,i,n;return(null!==(n=null===(i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.diff.read(e))||void 0===i?void 0:i.mappings.length)&&void 0!==n?n:0)>0}))),this._editors=this._register(this._instantiationService.createInstance(kj,this.elements.original,this.elements.modified,this._options,i,((e,t,i,n)=>this._createInnerEditor(e,t,i,n)))),this._register(Jq(JT.diffEditorOriginalWritable,this._contextKeyService,(e=>this._options.originalEditable.read(e)))),this._register(Jq(JT.diffEditorModifiedWritable,this._contextKeyService,(e=>!this._options.readOnly.read(e)))),this._register(Jq(JT.diffEditorOriginalUri,this._contextKeyService,(e=>{var t,i;return null!==(i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.model.original.uri.toString())&&void 0!==i?i:""}))),this._register(Jq(JT.diffEditorModifiedUri,this._contextKeyService,(e=>{var t,i;return null!==(i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.model.modified.uri.toString())&&void 0!==i?i:""}))),this._overviewRulerPart=aH(this,(e=>this._options.renderOverviewRuler.read(e)?this._instantiationService.createInstance(qq(Tj,e),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map((e=>e.modifiedEditor))):void 0)).recomputeInitiallyAndOnChange(this._store),this._sash=aH(this,(e=>{const t=this._options.renderSideBySide.read(e);return this.elements.root.classList.toggle("side-by-side",t),t?new N$(this._options,this.elements.root,{height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map(((e,t)=>{var i,n;return e-(null!==(n=null===(i=this._overviewRulerPart.read(t))||void 0===i?void 0:i.width)&&void 0!==n?n:0)}))},this._boundarySashes):void 0})).recomputeInitiallyAndOnChange(this._store);const c=aH(this,(e=>this._instantiationService.createInstance(qq(vj,e),this._editors,this._diffModel,this._options))).recomputeInitiallyAndOnChange(this._store);aH(this,(e=>this._instantiationService.createInstance(qq(A$,e),this._editors,this._diffModel,this._options,this))).recomputeInitiallyAndOnChange(this._store);const d=new Set,h=new Set;let u=!1;const g=aH(this,(e=>this._instantiationService.createInstance(qq(J$,e),gl(this._domElement),this._editors,this._diffModel,this._options,this,(()=>u||c.get().isUpdatingHiddenAreas),d,h))).recomputeInitiallyAndOnChange(this._store),m=oH(this,(e=>{const t=g.read(e).viewZones.read(e).orig,i=c.read(e).viewZones.read(e).origViewZones;return t.concat(i)})),p=oH(this,(e=>{const t=g.read(e).viewZones.read(e).mod,i=c.read(e).viewZones.read(e).modViewZones;return t.concat(i)}));let f;this._register($q(this._editors.original,m,(e=>{u=e}),d)),this._register($q(this._editors.modified,p,(e=>{u=e,u?f=Mq.capture(this._editors.modified):(null==f||f.restore(this._editors.modified),f=void 0)}),h)),this._accessibleDiffViewer=aH(this,(e=>this._instantiationService.createInstance(qq(n$,e),this.elements.accessibleDiffViewer,this._accessibleDiffViewerVisible,((e,t)=>this._accessibleDiffViewerShouldBeVisible.set(e,t)),this._options.onlyShowAccessibleDiffViewer.map((e=>!e)),this._rootSizeObserver.width,this._rootSizeObserver.height,this._diffModel.map(((e,t)=>{var i;return null===(i=null==e?void 0:e.diff.read(t))||void 0===i?void 0:i.mappings.map((e=>e.lineRangeMapping))})),new g$(this._editors)))).recomputeInitiallyAndOnChange(this._store);const _=this._accessibleDiffViewerVisible.map((e=>e?"hidden":"visible"));this._register(Yq(this.elements.modified,{visibility:_})),this._register(Yq(this.elements.original,{visibility:_})),this._createDiffEditorContributions(),s.addDiffEditor(this),this._gutter=aH(this,(e=>this._options.shouldRenderGutterMenu.read(e)?this._instantiationService.createInstance(qq(gj,e),this.elements.root,this._diffModel,this._editors):void 0)),this._register(EH(this._layoutInfo)),aH(this,(e=>new(qq(m$,e))(this.elements.root,this._diffModel,this._layoutInfo.map((e=>e.originalEditor)),this._layoutInfo.map((e=>e.modifiedEditor)),this._editors))).recomputeInitiallyAndOnChange(this._store,(e=>{this._movedBlocksLinesPart.set(e,void 0)})),this._register(Ci.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!0)))),this._register(Ci.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!1))));const b=this._diffModel.map(this,((e,t)=>{if(e)return void 0===e.diff.read(t)&&!e.isDiffUpToDate.read(t)}));this._register(uH(((e,t)=>{if(!0===b.read(e)){const e=this._editorProgressService.show(!0,1e3);t.add(ui((()=>e.done())))}}))),this._register(ui((()=>{var e;this._shouldDisposeDiffModel&&(null===(e=this._diffModel.get())||void 0===e||e.dispose())}))),this._register(uH(((e,t)=>{t.add(new(qq(Rj,e))(this._editors,this._diffModel,this._options,this))})))}_createInnerEditor(e,t,i,n){return e.createInstance(MD,t,i,n)}_createDiffEditorContributions(){const e=Kh.getDiffEditorContributions();for(const t of e)try{this._register(this._instantiationService.createInstance(t.ctor,this))}catch(sue){Jt(sue)}}get _targetEditor(){return this._editors.modified}getEditorType(){return Sf.IDiffEditor}layout(e){this._rootSizeObserver.observe(e)}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus()}saveViewState(){var e;return{original:this._editors.original.saveViewState(),modified:this._editors.modified.saveViewState(),modelState:null===(e=this._diffModel.get())||void 0===e?void 0:e.serializeState()}}restoreViewState(e){var t;if(e&&e.original&&e.modified){const i=e;this._editors.original.restoreViewState(i.original),this._editors.modified.restoreViewState(i.modified),i.modelState&&(null===(t=this._diffModel.get())||void 0===t||t.restoreSerializedState(i.modelState))}}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized()}createViewModel(e){return this._instantiationService.createInstance(H$,e,this._options)}getModel(){var e,t;return null!==(t=null===(e=this._diffModel.get())||void 0===e?void 0:e.model)&&void 0!==t?t:null}setModel(e,t){!e&&this._diffModel.get()&&this._accessibleDiffViewer.get().close();const i=e?"model"in e?{model:e,shouldDispose:!1}:{model:this.createViewModel(e),shouldDispose:!0}:void 0;this._diffModel.get()!==(null==i?void 0:i.model)&&QB(t,(e=>{var t;fH.batchEventsGlobally(e,(()=>{this._editors.original.setModel(i?i.model.model.original:null),this._editors.modified.setModel(i?i.model.model.modified:null)}));const n=this._diffModel.get(),o=this._shouldDisposeDiffModel;this._shouldDisposeDiffModel=null!==(t=null==i?void 0:i.shouldDispose)&&void 0!==t&&t,this._diffModel.set(null==i?void 0:i.model,e),o&&(null==n||n.dispose())}))}updateOptions(e){this._options.updateOptions(e)}getContainerDomNode(){return this._domElement}getOriginalEditor(){return this._editors.original}getModifiedEditor(){return this._editors.modified}getLineChanges(){var e;const t=null===(e=this._diffModel.get())||void 0===e?void 0:e.diff.get();return t?t.mappings.map((e=>{const t=e.lineRangeMapping;let i,n,o,s,r=t.innerChanges;return t.original.isEmpty?(i=t.original.startLineNumber-1,n=0,r=void 0):(i=t.original.startLineNumber,n=t.original.endLineNumberExclusive-1),t.modified.isEmpty?(o=t.modified.startLineNumber-1,s=0,r=void 0):(o=t.modified.startLineNumber,s=t.modified.endLineNumberExclusive-1),{originalStartLineNumber:i,originalEndLineNumber:n,modifiedStartLineNumber:o,modifiedEndLineNumber:s,charChanges:null==r?void 0:r.map((e=>({originalStartLineNumber:e.originalRange.startLineNumber,originalStartColumn:e.originalRange.startColumn,originalEndLineNumber:e.originalRange.endLineNumber,originalEndColumn:e.originalRange.endColumn,modifiedStartLineNumber:e.modifiedRange.startLineNumber,modifiedStartColumn:e.modifiedRange.startColumn,modifiedEndLineNumber:e.modifiedRange.endLineNumber,modifiedEndColumn:e.modifiedRange.endColumn})))}})):null}revert(e){const t=this._diffModel.get();t&&t.isDiffUpToDate.get()&&this._editors.modified.executeEdits("diffEditor",[{range:e.modified.toExclusiveRange(),text:t.model.original.getValueInRange(e.original.toExclusiveRange())}])}revertRangeMappings(e){const t=this._diffModel.get();if(!t||!t.isDiffUpToDate.get())return;const i=e.map((e=>({range:e.modifiedRange,text:t.model.original.getValueInRange(e.originalRange)})));this._editors.modified.executeEdits("diffEditor",i)}_goTo(e){this._editors.modified.setPosition(new Wn(e.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter(e.lineRangeMapping.modified.toExclusiveRange())}goToDiff(e){var t,i,n,o;const s=null===(i=null===(t=this._diffModel.get())||void 0===t?void 0:t.diff.get())||void 0===i?void 0:i.mappings;if(!s||0===s.length)return;const r=this._editors.modified.getPosition().lineNumber;let a;a="next"===e?null!==(n=s.find((e=>e.lineRangeMapping.modified.startLineNumber>r)))&&void 0!==n?n:s[0]:null!==(o=Wm(s,(e=>e.lineRangeMapping.modified.startLineNumber{var t;const i=null===(t=e.diff.get())||void 0===t?void 0:t.mappings;i&&0!==i.length&&this._goTo(i[0])}))}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next()}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev()}async waitForDiff(){const e=this._diffModel.get();e&&await e.waitForDiff()}mapToOtherSide(){var e,t;const i=this._editors.modified.hasWidgetFocus(),n=i?this._editors.modified:this._editors.original,o=i?this._editors.original:this._editors.modified;let s;const r=n.getSelection();if(r){const n=null===(t=null===(e=this._diffModel.get())||void 0===e?void 0:e.diff.get())||void 0===t?void 0:t.mappings.map((e=>i?e.lineRangeMapping.flip():e.lineRangeMapping));if(n){const e=Xq(r.getStartPosition(),n),t=Xq(r.getEndPosition(),n);s=Un.plusRange(e,t)}}return{destination:o,destinationSelection:s}}switchSide(){const{destination:e,destinationSelection:t}=this.mapToOtherSide();e.focus(),t&&e.setSelection(t)}exitCompareMove(){const e=this._diffModel.get();e&&e.movedTextToCompare.set(void 0,void 0)}collapseAllUnchangedRegions(){var e;const t=null===(e=this._diffModel.get())||void 0===e?void 0:e.unchangedRegions.get();t&&XB((e=>{for(const i of t)i.collapseAll(e)}))}showAllUnchangedRegions(){var e;const t=null===(e=this._diffModel.get())||void 0===e?void 0:e.unchangedRegions.get();t&&XB((e=>{for(const i of t)i.showAll(e)}))}_handleCursorPositionChange(e,t){var i,n;if(3===(null==e?void 0:e.reason)){const o=null===(n=null===(i=this._diffModel.get())||void 0===i?void 0:i.diff.get())||void 0===n?void 0:n.mappings.find((i=>t?i.lineRangeMapping.modified.contains(e.position.lineNumber):i.lineRangeMapping.original.contains(e.position.lineNumber)));(null==o?void 0:o.lineRangeMapping.modified.isEmpty)?this._accessibilitySignalService.playSignal(uq.diffLineDeleted,{source:"diffEditor.cursorPositionChanged"}):(null==o?void 0:o.lineRangeMapping.original.isEmpty)?this._accessibilitySignalService.playSignal(uq.diffLineInserted,{source:"diffEditor.cursorPositionChanged"}):o&&this._accessibilitySignalService.playSignal(uq.diffLineModified,{source:"diffEditor.cursorPositionChanged"})}}};Hj=Fj([Bj(3,Zd),Bj(4,td),Bj(5,nd),Bj(6,cq),Bj(7,FF)],Hj);var Wj=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Uj=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let Vj=0,Gj=!1;let zj=class extends MD{constructor(e,t,i,n,o,s,r,a,l,c,d,h,u){const g={...t};g.ariaLabel=g.ariaLabel||eB.editorViewAccessibleLabel,g.ariaLabel=g.ariaLabel+";"+eB.accessibilityHelpMessage,super(e,g,{},i,n,o,s,l,c,d,h,u),this._standaloneKeybindingService=a instanceof wq?a:null,function(e){if(!e){if(Gj)return;Gj=!0}!function(e){E_=document.createElement("div"),E_.className="monaco-aria-container";const t=()=>{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),E_.appendChild(e),e};w_=t(),T_=t();const i=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),E_.appendChild(e),e};y_=i(),R_=i(),e.appendChild(E_)}(e||cs.document.body)}(g.ariaContainerElement),fB=(e,t)=>i.createInstance(Sx,e,t,{}),CB=r}addCommand(e,t,i){if(!this._standaloneKeybindingService)return null;const n="DYNAMIC_"+ ++Vj,o=Dd.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,o),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return mi.None;const t=e.id,i=e.label,n=Dd.and(Dd.equals("editorId",this.getId()),Dd.deserialize(e.precondition)),o=e.keybindings,s=Dd.and(n,Dd.deserialize(e.keybindingContext)),r=e.contextMenuGroupId||null,a=e.contextMenuOrder||0,l=(t,...i)=>Promise.resolve(e.run(this,...i)),c=new gi,d=this.getId()+":"+t;if(c.add(pd.registerCommand(d,l)),r){const e={command:{id:d,title:i},when:n,group:r,order:a};c.add(Ch.appendMenuItem(bh.EditorContext,e))}if(Array.isArray(o))for(const u of o)c.add(this._standaloneKeybindingService.addDynamicKeybinding(d,u,l,s));const h=new fL(d,i,i,void 0,n,((...t)=>Promise.resolve(e.run(this,...t))),this._contextKeyService);return this._actions.set(t,h),c.add(ui((()=>{this._actions.delete(t)}))),c}_triggerCommand(e,t){if(this._codeEditorService instanceof eO)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};zj=Wj([Uj(2,td),Uj(3,nd),Uj(4,md),Uj(5,Zd),Uj(6,vx),Uj(7,tT),Uj(8,KE),Uj(9,kD),Uj(10,W_),Uj(11,Lg),Uj(12,lf)],zj);let Kj=class extends zj{constructor(e,t,i,n,o,s,r,a,l,c,d,h,u,g,m,p){const f={...t};Nq(d,f,!1);const _=l.registerEditorContainer(e);"string"==typeof f.theme&&l.setTheme(f.theme),void 0!==f.autoDetectHighContrast&&l.setAutoDetectHighContrast(Boolean(f.autoDetectHighContrast));const b=f.model;let v;if(delete f.model,super(e,f,i,n,o,s,r,a,l,c,h,m,p),this._configurationService=d,this._standaloneThemeService=l,this._register(_),void 0===b){const e=g.getLanguageIdByMimeType(f.language)||f.language||bg;v=qj(u,g,f.value||"",e,void 0),this._ownsModel=!0}else v=b,this._ownsModel=!1;if(this._attachModel(v),v){const e={oldModelUrl:null,newModelUrl:v.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){Nq(this._configurationService,e,!1),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),void 0!==e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};Kj=Wj([Uj(2,td),Uj(3,nd),Uj(4,md),Uj(5,Zd),Uj(6,vx),Uj(7,tT),Uj(8,EY),Uj(9,kD),Uj(10,$u),Uj(11,W_),Uj(12,od),Uj(13,eg),Uj(14,Lg),Uj(15,lf)],Kj);let Yj=class extends Hj{constructor(e,t,i,n,o,s,r,a,l,c,d,h){const u={...t};Nq(a,u,!0);const g=s.registerEditorContainer(e);"string"==typeof u.theme&&s.setTheme(u.theme),void 0!==u.autoDetectHighContrast&&s.setAutoDetectHighContrast(Boolean(u.autoDetectHighContrast)),super(e,u,{},n,i,o,h,c),this._configurationService=a,this._standaloneThemeService=s,this._register(g)}dispose(){super.dispose()}updateOptions(e){Nq(this._configurationService,e,!0),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),void 0!==e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(zj,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};function qj(e,t,i,n,o){if(i=i||"",!n){const n=i.indexOf("\n");let s=i;return-1!==n&&(s=i.substring(0,n)),$j(e,i,t.createByFilepathOrFirstLine(o||null,s),o)}return $j(e,i,t.createById(n),o)}function $j(e,t,i,n){return e.createModel(t,i,n)}Yj=Wj([Uj(2,td),Uj(3,Zd),Uj(4,nd),Uj(5,EY),Uj(6,kD),Uj(7,$u),Uj(8,Ex),Uj(9,FF),Uj(10,WY),Uj(11,cq)],Yj);var jj=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Xj=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class Jj{constructor(e,t){this.viewModel=e,this.deltaScrollVertical=t}getId(){return this.viewModel}}let Qj=class extends mi{constructor(e,t,i,n){super(),this._container=e,this._overflowWidgetsDomNode=t,this._workbenchUIElementFactory=i,this._instantiationService=n,this._viewModel=eH(this,void 0),this._collapsed=oH(this,(e=>{var t;return null===(t=this._viewModel.read(e))||void 0===t?void 0:t.collapsed.read(e)})),this._editorContentHeight=eH(this,500),this.contentHeight=oH(this,(e=>(this._collapsed.read(e)?0:this._editorContentHeight.read(e))+this._outerEditorHeight)),this._modifiedContentWidth=eH(this,0),this._modifiedWidth=eH(this,0),this._originalContentWidth=eH(this,0),this._originalWidth=eH(this,0),this.maxScroll=oH(this,(e=>{const t=this._modifiedContentWidth.read(e)-this._modifiedWidth.read(e),i=this._originalContentWidth.read(e)-this._originalWidth.read(e);return t>i?{maxScroll:t,width:this._modifiedWidth.read(e)}:{maxScroll:i,width:this._originalWidth.read(e)}})),this._elements=Fc("div.multiDiffEntry",[Fc("div.header@header",[Fc("div.header-content",[Fc("div.collapse-button@collapseButton"),Fc("div.file-path",[Fc("div.title.modified.show-file-icons@primaryPath",[]),Fc("div.status.deleted@status",["R"]),Fc("div.title.original.show-file-icons@secondaryPath",[])]),Fc("div.actions@actions")])]),Fc("div.editorParent",[Fc("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(Hj,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=Zj(this.editor.getModifiedEditor()),this.isOriginalFocused=Zj(this.editor.getOriginalEditor()),this.isFocused=oH(this,(e=>this.isModifedFocused.read(e)||this.isOriginalFocused.read(e))),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=new gi,this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;const o=new CK(this._elements.collapseButton,{});this._register(cH((e=>{o.element.className="",o.icon=this._collapsed.read(e)?Yn.chevronRight:Yn.chevronDown}))),this._register(o.onDidClick((()=>{var e;null===(e=this._viewModel.get())||void 0===e||e.collapsed.set(!this._collapsed.get(),void 0)}))),this._register(cH((e=>{this._elements.editor.style.display=this._collapsed.read(e)?"none":"block"}))),this._register(this.editor.getModifiedEditor().onDidLayoutChange((e=>{const t=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(t,void 0)}))),this._register(this.editor.getOriginalEditor().onDidLayoutChange((e=>{const t=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(t,void 0)}))),this._register(this.editor.onDidContentSizeChange((e=>{JB((t=>{this._editorContentHeight.set(e.contentHeight,t),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),t),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),t)}))}))),this._register(this.editor.getOriginalEditor().onDidScrollChange((e=>{if(this._isSettingScrollTop)return;if(!e.scrollTopChanged||!this._data)return;const t=e.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(t)}))),this._register(cH((e=>{var t;const i=null===(t=this._viewModel.read(e))||void 0===t?void 0:t.isActive.read(e);this._elements.root.classList.toggle("active",i)}))),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._register(this._instantiationService.createInstance(cj,this._elements.actions,bh.MultiDiffEditorFileToolbar,{actionRunner:this._register(new ij((()=>{var e;return null===(e=this._viewModel.get())||void 0===e?void 0:e.modifiedUri}))),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("navigation")},actionViewItemProvider:(e,t)=>GW(n,e,t)}))}setScrollLeft(e){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(e):this.editor.getOriginalEditor().setScrollLeft(e)}setData(e){function t(e){return{...e,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}this._data=e;const i=e.viewModel.entry.value;i.onOptionsDidChange&&this._dataStore.add(i.onOptionsDidChange((()=>{var e;this.editor.updateOptions(t(null!==(e=i.options)&&void 0!==e?e:{}))}))),JB((n=>{var o,s,r,a;null===(o=this._resourceLabel)||void 0===o||o.setUri(null!==(s=e.viewModel.modifiedUri)&&void 0!==s?s:e.viewModel.originalUri,{strikethrough:void 0===e.viewModel.modifiedUri});let l=!1,c=!1,d=!1,h="";e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(h="R",l=!0):e.viewModel.modifiedUri?e.viewModel.originalUri||(h="A",d=!0):(h="D",c=!0),this._elements.status.classList.toggle("renamed",l),this._elements.status.classList.toggle("deleted",c),this._elements.status.classList.toggle("added",d),this._elements.status.innerText=h,null===(r=this._resourceLabel2)||void 0===r||r.setUri(l?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,n),this.editor.setModel(e.viewModel.diffEditorViewModel,n),this.editor.updateOptions(t(null!==(a=i.options)&&void 0!==a?a:{}))}))}render(e,t,i,n){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${e.start}px`,this._elements.root.style.height=`${e.length}px`,this._elements.root.style.width=`${t}px`,this._elements.root.style.position="absolute";const o=e.length-this._headerHeight,s=Math.max(0,Math.min(n.start-e.start,o));this._elements.header.style.transform=`translateY(${s}px)`,JB((i=>{this.editor.layout({width:t-16-2,height:e.length-this._outerEditorHeight})}));try{this._isSettingScrollTop=!0,this._lastScrollTop=i,this.editor.getOriginalEditor().setScrollTop(i)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",s>0||i>0),this._elements.header.classList.toggle("collapsed",s===o)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};function Zj(e){return fH((t=>{const i=new gi;return i.add(e.onDidFocusEditorWidget((()=>t(!0)))),i.add(e.onDidBlurEditorWidget((()=>t(!1)))),i}),(()=>e.hasTextFocus()))}Qj=jj([Xj(3,td)],Qj);class eX{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){var t;let i;if(0===this._unused.size)i=this._create(e),this._itemData.set(i,e);else{const n=[...this._unused.values()];i=null!==(t=n.find((t=>this._itemData.get(t).getId()===e.getId())))&&void 0!==t?t:n[0],this._unused.delete(i),this._itemData.set(i,e),i.setData(e)}return this._used.add(i),{object:i,dispose:()=>{this._used.delete(i),this._unused.size>5?i.dispose():this._unused.add(i)}}}dispose(){for(const e of this._used)e.dispose();for(const e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}}var tX=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},iX=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let nX=class extends mi{constructor(e,t,i,n,o,s){super(),this._element=e,this._dimension=t,this._viewModel=i,this._workbenchUIElementFactory=n,this._parentContextKeyService=o,this._parentInstantiationService=s,this._elements=Fc("div.monaco-component.multiDiffEditor",[Fc("div@content",{style:{overflow:"hidden"}}),Fc("div.monaco-editor@overflowWidgetsDomNode",{})]),this._sizeObserver=this._register(new Uq(this._element,void 0)),this._objectPool=this._register(new eX((e=>{const t=this._instantiationService.createInstance(Qj,this._elements.content,this._elements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return t.setData(e),t}))),this._scrollable=this._register(new mE({forceIntegerValues:!1,scheduleAtNextAnimationFrame:e=>kl(gl(this._element),e),smoothScrollDuration:100})),this._scrollableElement=this._register(new EE(this._elements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this.scrollTop=fH(this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollTop)),this.scrollLeft=fH(this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollLeft)),this._viewItemsInfo=rH(this,((e,t)=>{const i=this._viewModel.read(e);if(!i)return{items:[],getItem:e=>{throw new ai}};const n=i.items.read(e),o=new Map;return{items:n.map((e=>{var i;const n=t.add(new oX(e,this._objectPool,this.scrollLeft,(e=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+e})}))),s=null===(i=this._lastDocStates)||void 0===i?void 0:i[n.getKey()];return s&&XB((e=>{n.setViewState(s,e)})),o.set(e,n),n})),getItem:e=>o.get(e)}})),this._viewItems=this._viewItemsInfo.map(this,(e=>e.items)),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,((e,t)=>e.reduce(((e,i)=>e+i.contentHeight.read(t)+this._spaceBetweenPx),0))),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._parentInstantiationService.createChild(new LD([Zd,this._contextKeyService])),this._lastDocStates={},this._contextKeyService.createKey(JT.inMultiDiffEditor.key,!0),this._register(uH(((e,t)=>{const i=this._viewModel.read(e);if(i&&i.contextKeys)for(const[n,o]of Object.entries(i.contextKeys)){const e=this._contextKeyService.createKey(n,void 0);e.set(o),t.add(ui((()=>e.reset())))}})));const r=this._parentContextKeyService.createKey(JT.multiDiffEditorAllCollapsed.key,!1);this._register(cH((e=>{const t=this._viewModel.read(e);if(t){const i=t.items.read(e).every((t=>t.collapsed.read(e)));r.set(i)}}))),this._register(cH((e=>{const t=this._dimension.read(e);this._sizeObserver.observe(t)}))),this._elements.content.style.position="relative",this._register(cH((e=>{const t=this._sizeObserver.height.read(e);this._elements.root.style.height=`${t}px`;const i=this._totalHeight.read(e);this._elements.content.style.height=`${i}px`;const n=this._sizeObserver.width.read(e);let o=n;const s=Km(this._viewItems.read(e),W((t=>t.maxScroll.read(e).maxScroll),U));s&&(o=n+s.maxScroll.read(e).maxScroll),this._scrollableElement.setScrollDimensions({width:n,height:t,scrollHeight:i,scrollWidth:o})}))),e.replaceChildren(this._scrollableElement.getDomNode()),this._register(ui((()=>{e.replaceChildren()}))),this._register(this._register(cH((e=>{JB((t=>{this.render(e)}))}))))}render(e){const t=this.scrollTop.read(e);let i=0,n=0,o=0;const s=this._sizeObserver.height.read(e),r=Bm.ofStartAndLength(t,s),a=this._sizeObserver.width.read(e);for(const l of this._viewItems.read(e)){const c=l.contentHeight.read(e),d=Math.min(c,s),h=Bm.ofStartAndLength(n,d),u=Bm.ofStartAndLength(o,c);if(u.isBefore(r))i-=c-d,l.hide();else if(u.isAfter(r))l.hide();else{const e=Math.max(0,Math.min(r.start-u.start,c-d));i-=e;const n=Bm.ofStartAndLength(t+i,s);l.render(h,e,a,n)}n+=d+this._spaceBetweenPx,o+=c+this._spaceBetweenPx}this._elements.content.style.transform=`translateY(${-(t+i)}px)`}};nX=tX([iX(4,Zd),iX(5,td)],nX);class oX extends mi{constructor(e,t,i,n){super(),this.viewModel=e,this._objectPool=t,this._scrollLeft=i,this._deltaScrollVertical=n,this._templateRef=this._register(iH(this,void 0)),this.contentHeight=oH(this,(e=>{var t,i,n;return null!==(n=null===(i=null===(t=this._templateRef.read(e))||void 0===t?void 0:t.object.contentHeight)||void 0===i?void 0:i.read(e))&&void 0!==n?n:this.viewModel.lastTemplateData.read(e).contentHeight})),this.maxScroll=oH(this,(e=>{var t,i;return null!==(i=null===(t=this._templateRef.read(e))||void 0===t?void 0:t.object.maxScroll.read(e))&&void 0!==i?i:{maxScroll:0,scrollWidth:0}})),this.template=oH(this,(e=>{var t;return null===(t=this._templateRef.read(e))||void 0===t?void 0:t.object})),this._isHidden=eH(this,!1),this._isFocused=oH(this,(e=>{var t,i;return null!==(i=null===(t=this.template.read(e))||void 0===t?void 0:t.isFocused.read(e))&&void 0!==i&&i})),this.viewModel.setIsFocused(this._isFocused,void 0),this._register(cH((e=>{var t;const i=this._scrollLeft.read(e);null===(t=this._templateRef.read(e))||void 0===t||t.object.setScrollLeft(i)}))),this._register(cH((e=>{const t=this._templateRef.read(e);t&&this._isHidden.read(e)&&(t.object.isFocused.read(e)||this._clear())})))}dispose(){this._clear(),super.dispose()}toString(){var e;return`VirtualViewItem(${null===(e=this.viewModel.entry.value.modified)||void 0===e?void 0:e.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(e,t){var i;this.viewModel.collapsed.set(e.collapsed,t),this._updateTemplateData(t);const n=this.viewModel.lastTemplateData.get(),o=null===(i=e.selections)||void 0===i?void 0:i.map(Vn.liftSelection);this.viewModel.lastTemplateData.set({...n,selections:o},t);const s=this._templateRef.get();s&&o&&s.object.editor.setSelections(o)}_updateTemplateData(e){var t;const i=this._templateRef.get();i&&this.viewModel.lastTemplateData.set({contentHeight:i.object.contentHeight.get(),selections:null!==(t=i.object.editor.getSelections())&&void 0!==t?t:void 0},e)}_clear(){const e=this._templateRef.get();e&&XB((t=>{this._updateTemplateData(t),e.object.hide(),this._templateRef.set(void 0,t)}))}hide(){this._isHidden.set(!0,void 0)}render(e,t,i,n){this._isHidden.set(!1,void 0);let o=this._templateRef.get();if(!o){o=this._objectPool.getUnusedObj(new Jj(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(o,void 0);const e=this.viewModel.lastTemplateData.get().selections;e&&o.object.editor.setSelections(e)}o.object.render(e,i,t,n)}}ib("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},pe("vs/editor/browser/widget/multiDiffEditor/colors","multiDiffEditor.headerBackground","The background color of the diff editor's header")),ib("multiDiffEditor.background",{dark:"editorBackground",light:"editorBackground",hcDark:"editorBackground",hcLight:"editorBackground"},pe("vs/editor/browser/widget/multiDiffEditor/colors","multiDiffEditor.background","The background color of the multi file diff editor")),ib("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},pe("vs/editor/browser/widget/multiDiffEditor/colors","multiDiffEditor.border","The border color of the multi file diff editor"));var sX=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},rX=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let aX=class extends mi{constructor(e,t,i){super(),this._element=e,this._workbenchUIElementFactory=t,this._instantiationService=i,this._dimension=eH(this,void 0),this._viewModel=eH(this,void 0),this._widgetImpl=rH(this,((e,t)=>(qq(Qj,e),t.add(this._instantiationService.createInstance(qq(nX,e),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory))))),this._register(EH(this._widgetImpl))}};function lX(e){const t=xq.get(tT);return t instanceof wq?t.addDynamicKeybindings(e.map((e=>({keybinding:e.keybinding,command:e.command,commandArgs:e.commandArgs,when:Dd.deserialize(e.when)})))):mi.None}function cX(e,t){return"boolean"==typeof e?e:t}function dX(e,t){return"string"==typeof e?e:t}function hX(e,t=!1){t&&(e=e.map((function(e){return e.toLowerCase()})));const i=function(e){const t={};for(const i of e)t[i]=!0;return t}(e);return t?function(e){return void 0!==i[e.toLowerCase()]&&i.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==i[e]&&i.hasOwnProperty(e)}}function uX(e,t,i){t=t.replace(/@@/g,"");let n,o=0;do{n=!1,t=t.replace(/@(\w+)/g,(function(i,o){n=!0;let s="";if("string"==typeof e[o])s=e[o];else{if(!(e[o]&&e[o]instanceof RegExp))throw void 0===e[o]?n_(e,"language definition does not contain attribute '"+o+"', used at: "+t):n_(e,"attribute reference '"+o+"' must be a string, used at: "+t);s=e[o].source}return e_(s)?"":"(?:"+s+")"})),o++}while(n&&o<5);t=t.replace(/\x01/g,"@");const s=(e.ignoreCase?"i":"")+(e.unicode?"u":"");if(i&&t.match(/\$[sS](\d\d?)/g)){let i=null,n=null;return o=>(n&&i===o||(i=o,n=new RegExp(function(e,t,i){let n=null;return t.replace(/\$[sS](\d\d?)/g,(function(t,o){return null===n&&(n=i.split("."),n.unshift(i)),!e_(o)&&o=100){n-=100;const e=i.split(".");if(e.unshift(i),n=0&&(n.tokenSubst=!0),"string"==typeof i.bracket)if("@open"===i.bracket)n.bracket=1;else{if("@close"!==i.bracket)throw n_(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);n.bracket=-1}if(i.next){if("string"!=typeof i.next)throw n_(e,"the next state must be a string value in rule: "+t);{let o=i.next;if(!/^(@pop|@push|@popall)$/.test(o)&&("@"===o[0]&&(o=o.substr(1)),o.indexOf("$")<0&&!function(e,t){let i=t;for(;i&&i.length>0;){if(e.stateNames[i])return!0;const t=i.lastIndexOf(".");i=t<0?null:i.substr(0,t)}return!1}(e,o_(e,o,"",[],""))))throw n_(e,"the next state '"+i.next+"' is not defined in rule: "+t);n.next=o}}return"number"==typeof i.goBack&&(n.goBack=i.goBack),"string"==typeof i.switchTo&&(n.switchTo=i.switchTo),"string"==typeof i.log&&(n.log=i.log),"string"==typeof i.nextEmbedded&&(n.nextEmbedded=i.nextEmbedded,e.usesEmbedded=!0),n}}if(Array.isArray(i)){const n=[];for(let o=0,s=i.length;o0&&"^"===i[0],this.name=this.name+": "+i,this.regex=uX(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")",!0)}setAction(e,t){this.action=mX(e,this.name,t)}resolveRegex(e){return this.regex instanceof RegExp?this.regex:this.regex(e)}}function fX(e,t){if(!t||"object"!=typeof t)throw new Error("Monarch: expecting a language definition object");const i={};i.languageId=e,i.includeLF=cX(t.includeLF,!1),i.noThrow=!1,i.maxStack=100,i.start="string"==typeof t.start?t.start:null,i.ignoreCase=cX(t.ignoreCase,!1),i.unicode=cX(t.unicode,!1),i.tokenPostfix=dX(t.tokenPostfix,"."+i.languageId),i.defaultToken=dX(t.defaultToken,"source"),i.usesEmbedded=!1;const n=t;function o(e,s,r){for(const a of r){let r=a.include;if(r){if("string"!=typeof r)throw n_(i,"an 'include' attribute must be a string at: "+e);if("@"===r[0]&&(r=r.substr(1)),!t.tokenizer[r])throw n_(i,"include target '"+r+"' is not defined at: "+e);o(e+"."+r,s,t.tokenizer[r])}else{const t=new pX(e);if(Array.isArray(a)&&a.length>=1&&a.length<=3)if(t.setRegex(n,a[0]),a.length>=3)if("string"==typeof a[1])t.setAction(n,{token:a[1],next:a[2]});else{if("object"!=typeof a[1])throw n_(i,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);{const e=a[1];e.next=a[2],t.setAction(n,e)}}else t.setAction(n,a[1]);else{if(!a.regex)throw n_(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);a.name&&"string"==typeof a.name&&(t.name=a.name),a.matchOnlyAtStart&&(t.matchOnlyAtLineStart=cX(a.matchOnlyAtLineStart,!1)),t.setRegex(n,a.regex),t.setAction(n,a.action)}s.push(t)}}}if(n.languageId=e,n.includeLF=i.includeLF,n.ignoreCase=i.ignoreCase,n.unicode=i.unicode,n.noThrow=i.noThrow,n.usesEmbedded=i.usesEmbedded,n.stateNames=t.tokenizer,n.defaultToken=i.defaultToken,!t.tokenizer||"object"!=typeof t.tokenizer)throw n_(i,"a language definition must define the 'tokenizer' attribute as an object");i.tokenizer=[];for(const r in t.tokenizer)if(t.tokenizer.hasOwnProperty(r)){i.start||(i.start=r);const e=t.tokenizer[r];i.tokenizer[r]=new Array,o("tokenizer."+r,i.tokenizer[r],e)}if(i.usesEmbedded=n.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw n_(i,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const s=[];for(const r of t.brackets){let e=r;if(e&&Array.isArray(e)&&3===e.length&&(e={token:e[2],open:e[0],close:e[1]}),e.open===e.close)throw n_(i,"open and close brackets in a 'brackets' attribute must be different: "+e.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!=typeof e.open||"string"!=typeof e.token||"string"!=typeof e.close)throw n_(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array");s.push({token:e.token+i.tokenPostfix,open:t_(i,e.open),close:t_(i,e.close)})}return i.brackets=s,i.noThrow=!0,i}class _X{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if("function"==typeof this._actual.tokenize)return bX.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new Xn(n.tokens,n.endState)}}class bX{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let o=0,s=e.length;o0&&o[s-1]===a)continue;let c=e.startIndex;0===l?c=0:c{const i=await Promise.resolve(t.create());return i?"function"==typeof i.getInitialState?SX(e,i):new f_(xq.get(eg),xq.get(EY),e,fX(e,i),xq.get($u)):null}));return go.registerFactory(e,i)}const EX=id("IEditorCancelService"),wX=new Qd("cancellableOperation",!1,pe("vs/editor/contrib/editorState/browser/keybindingCancellation","cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));ng(EX,class{constructor(){this._tokens=new WeakMap}add(e,t){let i,n=this._tokens.get(e);return n||(n=e.invokeWithinContext((e=>({key:wX.bindTo(e.get(Zd)),tokens:new st}))),this._tokens.set(e,n)),n.key.set(!0),i=n.tokens.push(t),()=>{i&&(i(),n.key.set(!n.tokens.isEmpty()),i=void 0)}}cancel(e){const t=this._tokens.get(e);if(!t)return;const i=t.tokens.pop();i&&(i.cancel(),t.key.set(!t.tokens.isEmpty()))}},1);class TX extends Fi{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext((t=>t.get(EX).add(e,this)))}dispose(){this._unregister(),super.dispose()}}Uh(new class extends Ph{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:wX})}runEditorCommand(e,t){e.get(EX).cancel(t)}});let yX=class e{constructor(e,t){if(this.flags=t,0!=(1&this.flags)){const t=e.getModel();this.modelVersionId=t?fs("{0}#{1}",t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;0!=(4&this.flags)?this.position=e.getPosition():this.position=null,0!=(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!=(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(t){if(!(t instanceof e))return!1;const i=t;return this.modelVersionId===i.modelVersionId&&this.scrollLeft===i.scrollLeft&&this.scrollTop===i.scrollTop&&!(!this.position&&i.position||this.position&&!i.position||this.position&&i.position&&!this.position.equals(i.position))&&!(!this.selection&&i.selection||this.selection&&!i.selection||this.selection&&i.selection&&!this.selection.equalsRange(i.selection))}validate(t){return this._equals(new e(t,this.flags))}};class RX extends TX{constructor(e,t,i,n){super(e,n),this._listener=new gi,4&t&&this._listener.add(e.onDidChangeCursorPosition((e=>{i&&Un.containsPosition(i,e.position)||this.cancel()}))),2&t&&this._listener.add(e.onDidChangeCursorSelection((e=>{i&&Un.containsRange(i,e.selection)||this.cancel()}))),8&t&&this._listener.add(e.onDidScrollChange((e=>this.cancel()))),1&t&&(this._listener.add(e.onDidChangeModel((e=>this.cancel()))),this._listener.add(e.onDidChangeModelContent((e=>this.cancel()))))}dispose(){this._listener.dispose(),super.dispose()}}class LX extends Fi{constructor(e,t){super(t),this._listener=e.onDidChangeContent((()=>this.cancel()))}dispose(){this._listener.dispose(),super.dispose()}}function IX(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===Sf.ICodeEditor}function AX(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===Sf.IDiffEditor}function NX(e){return IX(e)?e:AX(e)?e.getModifiedEditor():(t=e)&&"object"==typeof t&&"function"==typeof t.onDidChangeActiveEditor&&IX(e.activeCodeEditor)?e.activeCodeEditor:null;var t}class kX{static _handleEolEdits(e,t){let i;const n=[];for(const o of t)"number"==typeof o.eol&&(i=o.eol),o.range&&"string"==typeof o.text&&n.push(o);return"number"==typeof i&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const n=Mq.capture(e),o=kX._handleEolEdits(e,t);1===o.length&&kX._isFullModelReplaceEdit(e,o[0])?e.executeEdits("formatEditsCommand",o.map((e=>cF.replace(Un.lift(e.range),e.text)))):e.executeEdits("formatEditsCommand",o.map((e=>cF.replaceMove(Un.lift(e.range),e.text)))),i&&e.pushUndoStop(),n.restoreRelativeVerticalPositionOfCursor(e)}}class DX{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return"string"==typeof e?e.toLowerCase():e._lower}}class OX{constructor(e){if(this._set=new Set,e)for(const t of e)this.add(t)}add(e){this._set.add(DX.toKey(e))}has(e){return this._set.has(DX.toKey(e))}}function xX(e,t,i){const n=[],o=new OX,s=e.ordered(i);for(const a of s)n.push(a),a.extensionId&&o.add(a.extensionId);const r=t.ordered(i);for(const a of r){if(a.extensionId){if(o.has(a.extensionId))continue;o.add(a.extensionId)}n.push({displayName:a.displayName,extensionId:a.extensionId,provideDocumentFormattingEdits:(e,t,i)=>a.provideDocumentRangeFormattingEdits(e,e.getFullModelRange(),t,i)})}return n}class MX{static setFormatterSelector(e){return{dispose:MX._selectors.unshift(e)}}static async select(e,t,i,n){if(0===e.length)return;const o=nt.first(MX._selectors);return o?await o(e,t,i,n):void 0}}async function PX(e,t,i,n,o,s,r){const a=e.get(td),{documentRangeFormattingEditProvider:l}=e.get(lf),c=IX(t)?t.getModel():t,d=l.ordered(c),h=await MX.select(d,c,n,2);h&&(o.report(h),await a.invokeFunction(FX,h,t,i,s,r))}async function FX(e,t,i,n,o,s){var r,a;const l=e.get(hU),c=e.get(Lh),d=e.get(cq);let h,u;IX(i)?(h=i.getModel(),u=new RX(i,5,void 0,o)):(h=i,u=new LX(i,o));const g=[];let m=0;for(const v of M(n).sort(Un.compareRangesUsingStarts))m>0&&Un.areIntersectingOrTouching(g[m-1],v)?g[m-1]=Un.fromPositions(g[m-1].getStartPosition(),v.getEndPosition()):m=g.push(v);const p=async e=>{var i,n;c.trace("[format][provideDocumentRangeFormattingEdits] (request)",null===(i=t.extensionId)||void 0===i?void 0:i.value,e);const o=await t.provideDocumentRangeFormattingEdits(h,e,h.getFormattingOptions(),u.token)||[];return c.trace("[format][provideDocumentRangeFormattingEdits] (response)",null===(n=t.extensionId)||void 0===n?void 0:n.value,o),o},f=(e,t)=>{if(!e.length||!t.length)return!1;const i=e.reduce(((e,t)=>Un.plusRange(e,t.range)),e[0].range);if(!t.some((e=>Un.intersectRanges(i,e.range))))return!1;for(const n of e)for(const e of t)if(Un.intersectRanges(n.range,e.range))return!0;return!1},_=[],b=[];try{if("function"==typeof t.provideDocumentRangesFormattingEdits){c.trace("[format][provideDocumentRangeFormattingEdits] (request)",null===(r=t.extensionId)||void 0===r?void 0:r.value,g);const e=await t.provideDocumentRangesFormattingEdits(h,g,h.getFormattingOptions(),u.token)||[];c.trace("[format][provideDocumentRangeFormattingEdits] (response)",null===(a=t.extensionId)||void 0===a?void 0:a.value,e),b.push(e)}else{for(const e of g){if(u.token.isCancellationRequested)return!0;b.push(await p(e))}for(let e=0;e({text:e.text,range:Un.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(Un.areIntersectingOrTouching(i,t))return[new Vn(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return d.playSignal(uq.format,{userGesture:s}),!0}async function BX(e,t,i,n,o,s){const r=e.get(td),a=e.get(lf),l=IX(t)?t.getModel():t,c=xX(a.documentFormattingEditProvider,a.documentRangeFormattingEditProvider,l),d=await MX.select(c,l,i,1);d&&(n.report(d),await r.invokeFunction(HX,d,t,i,o,s))}async function HX(e,t,i,n,o,s){const r=e.get(hU),a=e.get(cq);let l,c,d;IX(i)?(l=i.getModel(),c=new RX(i,5,void 0,o)):(l=i,c=new LX(i,o));try{const e=await t.provideDocumentFormattingEdits(l,l.getFormattingOptions(),c.token);if(d=await r.computeMoreMinimalEdits(l.uri,e),c.token.isCancellationRequested)return!0}finally{c.dispose()}if(!d||0===d.length)return!1;if(IX(i))kX.execute(i,d,2!==n),2!==n&&i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=d,t=new Vn(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);l.pushEditOperations([t],d.map((e=>({text:e.text,range:Un.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(Un.areIntersectingOrTouching(i,t))return[new Vn(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return a.playSignal(uq.format,{userGesture:s}),!0}function WX(e,t,i,n,o,s,r){const a=t.onTypeFormattingEditProvider.ordered(i);return 0===a.length||a[0].autoFormatTriggerCharacters.indexOf(o)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(i,n,o,s,r)).catch(Qt).then((t=>e.computeMoreMinimalEdits(i.uri,t)))}MX._selectors=new st,pd.registerCommand("_executeFormatRangeProvider",(async function(e,...t){const[i,n,o]=t;ie(An.isUri(i)),ie(Un.isIRange(n));const s=e.get(sd),r=e.get(hU),a=e.get(lf),l=await s.createModelReference(i);try{return async function(e,t,i,n,o,s){const r=t.documentRangeFormattingEditProvider.ordered(i);for(const a of r){const t=await Promise.resolve(a.provideDocumentRangeFormattingEdits(i,n,o,s)).catch(Qt);if(L(t))return await e.computeMoreMinimalEdits(i.uri,t)}}(r,a,l.object.textEditorModel,Un.lift(n),o,Mi.None)}finally{l.dispose()}})),pd.registerCommand("_executeFormatDocumentProvider",(async function(e,...t){const[i,n]=t;ie(An.isUri(i));const o=e.get(sd),s=e.get(hU),r=e.get(lf),a=await o.createModelReference(i);try{return async function(e,t,i,n,o){const s=xX(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i);for(const r of s){const t=await Promise.resolve(r.provideDocumentFormattingEdits(i,n,o)).catch(Qt);if(L(t))return await e.computeMoreMinimalEdits(i.uri,t)}}(s,r,a.object.textEditorModel,n,Mi.None)}finally{a.dispose()}})),pd.registerCommand("_executeFormatOnTypeProvider",(async function(e,...t){const[i,n,o,s]=t;ie(An.isUri(i)),ie(Wn.isIPosition(n)),ie("string"==typeof o);const r=e.get(sd),a=e.get(hU),l=e.get(lf),c=await r.createModelReference(i);try{return WX(a,l,c.object.textEditorModel,Wn.lift(n),o,s,Mi.None)}finally{c.dispose()}})),jt.wrappingIndent.defaultValue=0,jt.glyphMargin.defaultValue=!1,jt.autoIndent.defaultValue=3,jt.overviewRulerLanes.defaultValue=2,MX.setFormatterSelector(((e,t,i)=>Promise.resolve(e[0])));const UX=ls();UX.editor={create:function(e,t,i){return xq.initialize(i||{}).createInstance(Kj,e,t)},getEditors:function(){return xq.get(nd).listCodeEditors()},getDiffEditors:function(){return xq.get(nd).listDiffEditors()},onDidCreateEditor:function(e){return xq.get(nd).onCodeEditorAdd((t=>{e(t)}))},onDidCreateDiffEditor:function(e){return xq.get(nd).onDiffEditorAdd((t=>{e(t)}))},createDiffEditor:function(e,t,i){return xq.initialize(i||{}).createInstance(Yj,e,t)},addCommand:function(e){if("string"!=typeof e.id||"function"!=typeof e.run)throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return pd.registerCommand(e.id,e.run)},addEditorAction:function(e){if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const t=Dd.deserialize(e.precondition),i=new gi;if(i.add(pd.registerCommand(e.id,((i,...n)=>Ph.runEditorCommand(i,n,t,((t,i,n)=>Promise.resolve(e.run(i,...n))))))),e.contextMenuGroupId){const n={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};i.add(Ch.appendMenuItem(bh.EditorContext,n))}if(Array.isArray(e.keybindings)){const n=xq.get(tT);if(n instanceof wq){const o=Dd.and(t,Dd.deserialize(e.keybindingContext));i.add(n.addDynamicKeybindings(e.keybindings.map((t=>({keybinding:t,command:e.id,when:o})))))}}return i},addKeybindingRule:function(e){return lX([e])},addKeybindingRules:lX,createModel:function(e,t,i){const n=xq.get(eg),o=n.getLanguageIdByMimeType(t)||t;return qj(xq.get(od),n,e,o,i)},setModelLanguage:function(e,t){const i=xq.get(eg),n=i.getLanguageIdByMimeType(t)||t||bg;e.setLanguage(i.createById(n))},setModelMarkers:function(e,t,i){e&&xq.get(mU).changeOne(t,e.uri,i)},getModelMarkers:function(e){return xq.get(mU).read(e)},removeAllMarkers:function(e){xq.get(mU).changeAll(e,[])},onDidChangeMarkers:function(e){return xq.get(mU).onMarkerChanged(e)},getModels:function(){return xq.get(od).getModels()},getModel:function(e){return xq.get(od).getModel(e)},onDidCreateModel:function(e){return xq.get(od).onModelAdded(e)},onWillDisposeModel:function(e){return xq.get(od).onModelRemoved(e)},onDidChangeModelLanguage:function(e){return xq.get(od).onModelLanguageChanged((t=>{e({model:t.model,oldLanguage:t.oldLanguageId})}))},createWebWorker:function(e){return t=xq.get(od),i=xq.get(Lg),new vf(t,i,e);var t,i},colorizeElement:function(e,t){const i=xq.get(eg),n=xq.get(EY);return v_.colorizeElement(n,i,e,t).then((()=>{n.registerEditorContainer(e)}))},colorize:function(e,t,i){const n=xq.get(eg);return xq.get(EY).registerEditorContainer(cs.document.body),v_.colorize(n,e,t,i)},colorizeModelLine:function(e,t,i=4){return xq.get(EY).registerEditorContainer(cs.document.body),v_.colorizeModelLine(e,t,i)},tokenize:function(e,t){go.getOrCreate(t);const i=(s=t,go.get(s)||{getInitialState:()=>Cf,tokenize:(e,t,i)=>Ef(s,i)}),n=ws(e),o=[];var s;let r=i.getInitialState();for(let a=0,l=n.length;a("string"==typeof t&&(t=An.parse(t)),e.open(t))})},registerEditorOpener:function(e){return xq.get(nd).registerCodeEditorOpenHandler((async(t,i,n)=>{var o;if(!i)return null;const s=null===(o=t.options)||void 0===o?void 0:o.selection;let r;return s&&"number"==typeof s.endLineNumber&&"number"==typeof s.endColumn?r=s:s&&(r={lineNumber:s.startLineNumber,column:s.startColumn}),await e.openCodeEditor(i,t.resource,r)?i:null}))},AccessibilitySupport:po,ContentWidgetPositionPreference:Co,CursorChangeReason:Eo,DefaultEndOfLine:wo,EditorAutoIndentStrategy:yo,EditorOption:Ro,EndOfLinePreference:Lo,EndOfLineSequence:Io,MinimapPosition:Ho,MinimapSectionHeaderStyle:Wo,MouseTargetType:Uo,OverlayWidgetPositionPreference:zo,OverviewRulerLane:Ko,GlyphMarginLane:Ao,RenderLineNumbersType:$o,RenderMinimap:jo,ScrollbarVisibility:Jo,ScrollType:Xo,TextEditorCursorBlinkingStyle:ns,TextEditorCursorStyle:os,TrackedRangeStickiness:ss,WrappingIndent:rs,InjectedTextCursorStops:Do,PositionAffinity:qo,ShowLightbulbIconMode:Zo,ConfigurationChangedEvent:ut,BareFontInfo:Xc,FontInfo:Jc,TextModelResolvedOptions:Cm,FindMatch:Em,ApplyUpdateResult:pt,EditorZoom:$c,createMultiFileDiffEditor:function(e,t){const i=xq.initialize(t||{});return new aX(e,{},i)},EditorType:Sf,EditorOptions:jt},UX.languages={register:function(e){_g.registerLanguage(e)},getLanguages:function(){let e=[];return e=e.concat(_g.getLanguages()),e},onLanguage:function(e,t){return xq.withServices((()=>{const i=xq.get(eg).onDidRequestRichLanguageFeatures((n=>{n===e&&(i.dispose(),t())}));return i}))},onLanguageEncountered:function(e,t){return xq.withServices((()=>{const i=xq.get(eg).onDidRequestBasicLanguageFeatures((n=>{n===e&&(i.dispose(),t())}));return i}))},getEncodedLanguageId:function(e){return xq.get(eg).languageIdCodec.encodeLanguageId(e)},setLanguageConfiguration:function(e,t){if(!xq.get(eg).isRegisteredLanguageId(e))throw new Error(`Cannot set configuration for unknown language ${e}`);return xq.get(Lg).register(e,t,100)},setColorMap:function(e){const t=xq.get(EY);if(e){const i=[null];for(let t=1,n=e.length;tt}):go.register(e,SX(e,t))},setMonarchTokensProvider:function(e,t){return vX(t)?CX(e,{create:()=>t}):go.register(e,(i=t,new f_(xq.get(eg),xq.get(EY),e,fX(e,i),xq.get($u))));var i},registerReferenceProvider:function(e,t){return xq.get(lf).referenceProvider.register(e,t)},registerRenameProvider:function(e,t){return xq.get(lf).renameProvider.register(e,t)},registerNewSymbolNameProvider:function(e,t){return xq.get(lf).newSymbolNamesProvider.register(e,t)},registerCompletionItemProvider:function(e,t){return xq.get(lf).completionProvider.register(e,t)},registerSignatureHelpProvider:function(e,t){return xq.get(lf).signatureHelpProvider.register(e,t)},registerHoverProvider:function(e,t){return xq.get(lf).hoverProvider.register(e,{provideHover:async(e,i,n,o)=>{const s=e.getWordAtPosition(i);return Promise.resolve(t.provideHover(e,i,n,o)).then((e=>{if(e)return!e.range&&s&&(e.range=new Un(i.lineNumber,s.startColumn,i.lineNumber,s.endColumn)),e.range||(e.range=new Un(i.lineNumber,i.column,i.lineNumber,i.column)),e}))}})},registerDocumentSymbolProvider:function(e,t){return xq.get(lf).documentSymbolProvider.register(e,t)},registerDocumentHighlightProvider:function(e,t){return xq.get(lf).documentHighlightProvider.register(e,t)},registerLinkedEditingRangeProvider:function(e,t){return xq.get(lf).linkedEditingRangeProvider.register(e,t)},registerDefinitionProvider:function(e,t){return xq.get(lf).definitionProvider.register(e,t)},registerImplementationProvider:function(e,t){return xq.get(lf).implementationProvider.register(e,t)},registerTypeDefinitionProvider:function(e,t){return xq.get(lf).typeDefinitionProvider.register(e,t)},registerCodeLensProvider:function(e,t){return xq.get(lf).codeLensProvider.register(e,t)},registerCodeActionProvider:function(e,t,i){return xq.get(lf).codeActionProvider.register(e,{providedCodeActionKinds:null==i?void 0:i.providedCodeActionKinds,documentation:null==i?void 0:i.documentation,provideCodeActions:(e,i,n,o)=>{const s=xq.get(mU).read({resource:e.uri}).filter((e=>Un.areIntersectingOrTouching(e,i)));return t.provideCodeActions(e,i,{markers:s,only:n.only,trigger:n.trigger},o)},resolveCodeAction:t.resolveCodeAction})},registerDocumentFormattingEditProvider:function(e,t){return xq.get(lf).documentFormattingEditProvider.register(e,t)},registerDocumentRangeFormattingEditProvider:function(e,t){return xq.get(lf).documentRangeFormattingEditProvider.register(e,t)},registerOnTypeFormattingEditProvider:function(e,t){return xq.get(lf).onTypeFormattingEditProvider.register(e,t)},registerLinkProvider:function(e,t){return xq.get(lf).linkProvider.register(e,t)},registerColorProvider:function(e,t){return xq.get(lf).colorProvider.register(e,t)},registerFoldingRangeProvider:function(e,t){return xq.get(lf).foldingRangeProvider.register(e,t)},registerDeclarationProvider:function(e,t){return xq.get(lf).declarationProvider.register(e,t)},registerSelectionRangeProvider:function(e,t){return xq.get(lf).selectionRangeProvider.register(e,t)},registerDocumentSemanticTokensProvider:function(e,t){return xq.get(lf).documentSemanticTokensProvider.register(e,t)},registerDocumentRangeSemanticTokensProvider:function(e,t){return xq.get(lf).documentRangeSemanticTokensProvider.register(e,t)},registerInlineCompletionsProvider:function(e,t){return xq.get(lf).inlineCompletionsProvider.register(e,t)},registerInlineEditProvider:function(e,t){return xq.get(lf).inlineEditProvider.register(e,t)},registerInlayHintsProvider:function(e,t){return xq.get(lf).inlayHintsProvider.register(e,t)},DocumentHighlightKind:To,CompletionItemKind:bo,CompletionItemTag:vo,CompletionItemInsertTextRule:_o,SymbolKind:ts,SymbolTag:is,IndentAction:ko,CompletionTriggerKind:So,SignatureHelpTriggerKind:es,InlayHintKind:Oo,InlineCompletionTriggerKind:xo,InlineEditTriggerKind:Mo,CodeActionTriggerType:fo,NewSymbolNameTag:Vo,NewSymbolNameTriggerKind:Go,PartialAcceptTriggerKind:Yo,HoverVerbosityAction:No,FoldingRangeKind:ho,SelectedSuggestionInfo:no};const VX=UX.CancellationTokenSource,GX=UX.Emitter,zX=UX.KeyCode,KX=UX.KeyMod,YX=UX.Position,qX=UX.Range,$X=UX.Selection,jX=UX.SelectionDirection,XX=UX.MarkerSeverity,JX=UX.MarkerTag,QX=UX.Uri,ZX=UX.Token,eJ=UX.editor,tJ=UX.languages,iJ=globalThis.MonacoEnvironment;((null==iJ?void 0:iJ.globalAPI)||"function"==typeof define&&define.amd)&&(globalThis.monaco=UX),void 0!==globalThis.require&&"function"==typeof globalThis.require.config&&globalThis.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});const nJ=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:VX,Emitter:GX,KeyCode:zX,KeyMod:KX,MarkerSeverity:XX,MarkerTag:JX,Position:YX,Range:qX,Selection:$X,SelectionDirection:jX,Token:ZX,Uri:QX,editor:eJ,languages:tJ},Symbol.toStringTag,{value:"Module"})); +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var oJ=Object.defineProperty,sJ=Object.getOwnPropertyDescriptor,rJ=Object.getOwnPropertyNames,aJ=Object.prototype.hasOwnProperty,lJ=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of rJ(t))aJ.call(e,o)||o===i||oJ(e,o,{get:()=>t[o],enumerable:!(n=sJ(t,o))||n.enumerable});return e},cJ={};lJ(cJ,nJ,"default");var dJ={},hJ={},uJ=class e{static getOrCreate(t){return hJ[t]||(hJ[t]=new e(t)),hJ[t]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t}))}load(){return this._loadingTriggered||(this._loadingTriggered=!0,dJ[this._languageId].loader().then((e=>this._lazyLoadPromiseResolve(e)),(e=>this._lazyLoadPromiseReject(e)))),this._lazyLoadPromise}};function gJ(e){const t=e.id;dJ[t]=e,cJ.languages.register(e);const i=uJ.getOrCreate(t);cJ.languages.registerTokensProviderFactory(t,{create:async()=>(await i.load()).language}),cJ.languages.onLanguageEncountered(t,(async()=>{const e=await i.load();cJ.languages.setLanguageConfiguration(t,e.conf)}))}gJ({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>e((()=>import("./abap-8dbef2bf.js")),[],import.meta.url)}),gJ({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>e((()=>import("./apex-980805ec.js")),[],import.meta.url)}),gJ({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>e((()=>import("./azcli-308b7b27.js")),[],import.meta.url)}),gJ({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>e((()=>import("./bat-36ba27d3.js")),[],import.meta.url)}),gJ({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>e((()=>import("./bicep-8d8082da.js")),[],import.meta.url)}),gJ({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>e((()=>import("./cameligo-138914cb.js")),[],import.meta.url)}),gJ({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>e((()=>import("./clojure-98f3e19c.js")),[],import.meta.url)}),gJ({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>e((()=>import("./coffee-264eafbb.js")),[],import.meta.url)}),gJ({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>e((()=>import("./cpp-365dcdee.js")),[],import.meta.url)}),gJ({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>e((()=>import("./cpp-365dcdee.js")),[],import.meta.url)}),gJ({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>e((()=>import("./csharp-252a27ec.js")),[],import.meta.url)}),gJ({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>e((()=>import("./csp-b340b9c2.js")),[],import.meta.url)}),gJ({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>e((()=>import("./css-883c3d3f.js")),[],import.meta.url)}),gJ({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>e((()=>import("./cypher-66e050ee.js")),[],import.meta.url)}),gJ({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>e((()=>import("./dart-914cd887.js")),[],import.meta.url)}),gJ({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>e((()=>import("./dockerfile-2c820799.js")),[],import.meta.url)}),gJ({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>e((()=>import("./ecl-21ea5125.js")),[],import.meta.url)}),gJ({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>e((()=>import("./elixir-ba250f14.js")),[],import.meta.url)}),gJ({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>e((()=>import("./flow9-69c414bd.js")),[],import.meta.url)}),gJ({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>e((()=>import("./fsharp-ea7a3e86.js")),[],import.meta.url)}),gJ({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>e((()=>import("./freemarker2-ee95ffdf.js")),["./freemarker2-ee95ffdf.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url).then((e=>e.TagAutoInterpolationDollar))}),gJ({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>e((()=>import("./freemarker2-ee95ffdf.js")),["./freemarker2-ee95ffdf.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url).then((e=>e.TagAngleInterpolationDollar))}),gJ({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>e((()=>import("./freemarker2-ee95ffdf.js")),["./freemarker2-ee95ffdf.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url).then((e=>e.TagBracketInterpolationDollar))}),gJ({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>e((()=>import("./freemarker2-ee95ffdf.js")),["./freemarker2-ee95ffdf.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url).then((e=>e.TagAngleInterpolationBracket))}),gJ({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>e((()=>import("./freemarker2-ee95ffdf.js")),["./freemarker2-ee95ffdf.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url).then((e=>e.TagBracketInterpolationBracket))}),gJ({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>e((()=>import("./freemarker2-ee95ffdf.js")),["./freemarker2-ee95ffdf.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url).then((e=>e.TagAutoInterpolationDollar))}),gJ({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>e((()=>import("./freemarker2-ee95ffdf.js")),["./freemarker2-ee95ffdf.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url).then((e=>e.TagAutoInterpolationBracket))}),gJ({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>e((()=>import("./go-f37bc837.js")),[],import.meta.url)}),gJ({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>e((()=>import("./graphql-4f486f6e.js")),[],import.meta.url)}),gJ({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>e((()=>import("./handlebars-19f7ba3c.js")),["./handlebars-19f7ba3c.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url)}),gJ({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>e((()=>import("./hcl-46a4b6ac.js")),[],import.meta.url)}),gJ({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>e((()=>import("./html-8f178da2.js")),["./html-8f178da2.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url)}),gJ({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>e((()=>import("./ini-0cd71ac6.js")),[],import.meta.url)}),gJ({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>e((()=>import("./java-3a3d95f3.js")),[],import.meta.url)}),gJ({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>e((()=>import("./javascript-9ad19f92.js")),["./javascript-9ad19f92.js","./typescript-59dd792e.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url)}),gJ({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>e((()=>import("./julia-d556db2c.js")),[],import.meta.url)}),gJ({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>e((()=>import("./kotlin-9cabd9ac.js")),[],import.meta.url)}),gJ({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>e((()=>import("./less-af9eb932.js")),[],import.meta.url)}),gJ({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>e((()=>import("./lexon-81d7a34a.js")),[],import.meta.url)}),gJ({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>e((()=>import("./lua-b8e027c1.js")),[],import.meta.url)}),gJ({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>e((()=>import("./liquid-5e309bd0.js")),["./liquid-5e309bd0.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url)}),gJ({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>e((()=>import("./m3-29846851.js")),[],import.meta.url)}),gJ({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>e((()=>import("./markdown-12704150.js")),[],import.meta.url)}),gJ({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>e((()=>import("./mdx-77cd1361.js")),["./mdx-77cd1361.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url)}),gJ({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>e((()=>import("./mips-82161407.js")),[],import.meta.url)}),gJ({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>e((()=>import("./msdax-e3e8d930.js")),[],import.meta.url)}),gJ({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>e((()=>import("./mysql-d2518e20.js")),[],import.meta.url)}),gJ({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>e((()=>import("./objective-c-436df7bf.js")),[],import.meta.url)}),gJ({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>e((()=>import("./pascal-137ab0f3.js")),[],import.meta.url)}),gJ({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>e((()=>import("./pascaligo-095cb05a.js")),[],import.meta.url)}),gJ({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>e((()=>import("./perl-2fa3dbb2.js")),[],import.meta.url)}),gJ({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>e((()=>import("./pgsql-d9951500.js")),[],import.meta.url)}),gJ({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>e((()=>import("./php-1196af19.js")),[],import.meta.url)}),gJ({id:"pla",extensions:[".pla"],loader:()=>e((()=>import("./pla-0cefb1a9.js")),[],import.meta.url)}),gJ({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>e((()=>import("./postiats-0b778fc9.js")),[],import.meta.url)}),gJ({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>e((()=>import("./powerquery-d40f5f40.js")),[],import.meta.url)}),gJ({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>e((()=>import("./powershell-43a609d2.js")),[],import.meta.url)}),gJ({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>e((()=>import("./protobuf-117cf3a7.js")),[],import.meta.url)}),gJ({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>e((()=>import("./pug-0b4af20d.js")),[],import.meta.url)}),gJ({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>e((()=>import("./python-d8688bf7.js")),["./python-d8688bf7.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url)}),gJ({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>e((()=>import("./qsharp-e897c9e2.js")),[],import.meta.url)}),gJ({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>e((()=>import("./r-8dfaf5ac.js")),[],import.meta.url)}),gJ({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>e((()=>import("./razor-7c7068fa.js")),["./razor-7c7068fa.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url)}),gJ({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>e((()=>import("./redis-b924da62.js")),[],import.meta.url)}),gJ({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>e((()=>import("./redshift-8cb55f68.js")),[],import.meta.url)}),gJ({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>e((()=>import("./restructuredtext-dee459df.js")),[],import.meta.url)}),gJ({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>e((()=>import("./ruby-00372643.js")),[],import.meta.url)}),gJ({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>e((()=>import("./rust-c6664676.js")),[],import.meta.url)}),gJ({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>e((()=>import("./sb-5793f419.js")),[],import.meta.url)}),gJ({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>e((()=>import("./scala-3fb32ed8.js")),[],import.meta.url)}),gJ({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>e((()=>import("./scheme-82f16613.js")),[],import.meta.url)}),gJ({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>e((()=>import("./scss-f45bbec6.js")),[],import.meta.url)}),gJ({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>e((()=>import("./shell-575fe4f6.js")),[],import.meta.url)}),gJ({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>e((()=>import("./solidity-84d5804e.js")),[],import.meta.url)}),gJ({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>e((()=>import("./sophia-47b07ab0.js")),[],import.meta.url)}),gJ({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>e((()=>import("./sparql-28f2246c.js")),[],import.meta.url)}),gJ({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>e((()=>Promise.resolve().then((()=>Tae))),void 0,import.meta.url)}),gJ({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>e((()=>import("./st-2be7dd67.js")),[],import.meta.url)}),gJ({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>e((()=>import("./swift-cd7b74e4.js")),[],import.meta.url)}),gJ({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>e((()=>import("./systemverilog-9aa73440.js")),[],import.meta.url)}),gJ({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>e((()=>import("./systemverilog-9aa73440.js")),[],import.meta.url)}),gJ({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>e((()=>import("./tcl-3386a508.js")),[],import.meta.url)}),gJ({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>e((()=>import("./twig-dd90f9a5.js")),[],import.meta.url)}),gJ({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>e((()=>import("./typescript-59dd792e.js")),["./typescript-59dd792e.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url)}),gJ({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>e((()=>import("./typespec-7db0afd1.js")),[],import.meta.url)}),gJ({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>e((()=>import("./vb-df438eda.js")),[],import.meta.url)}),gJ({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>e((()=>import("./wgsl-3d167029.js")),[],import.meta.url)}),gJ({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\e((()=>import("./xml-c1ef13e6.js")),["./xml-c1ef13e6.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url)}),gJ({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>e((()=>import("./yaml-07c2d025.js")),["./yaml-07c2d025.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url)}); +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/ +var mJ=Object.defineProperty,pJ=Object.getOwnPropertyDescriptor,fJ=Object.getOwnPropertyNames,_J=Object.prototype.hasOwnProperty,bJ=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of fJ(t))_J.call(e,o)||o===i||mJ(e,o,{get:()=>t[o],enumerable:!(n=pJ(t,o))||n.enumerable});return e},vJ={};bJ(vJ,nJ,"default");var SJ=class{constructor(e,t,i){this._onDidChange=new vJ.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},CJ={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},EJ={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},wJ=new SJ("css",CJ,EJ),TJ=new SJ("scss",CJ,EJ),yJ=new SJ("less",CJ,EJ);function RJ(){return e((()=>import("./cssMode-621d8e2c.js")),["./cssMode-621d8e2c.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url)}vJ.languages.css={cssDefaults:wJ,lessDefaults:yJ,scssDefaults:TJ},vJ.languages.onLanguage("less",(()=>{RJ().then((e=>e.setupMode(yJ)))})),vJ.languages.onLanguage("scss",(()=>{RJ().then((e=>e.setupMode(TJ)))})),vJ.languages.onLanguage("css",(()=>{RJ().then((e=>e.setupMode(wJ)))})); +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/ +var LJ=Object.defineProperty,IJ=Object.getOwnPropertyDescriptor,AJ=Object.getOwnPropertyNames,NJ=Object.prototype.hasOwnProperty,kJ=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of AJ(t))NJ.call(e,o)||o===i||LJ(e,o,{get:()=>t[o],enumerable:!(n=IJ(t,o))||n.enumerable});return e},DJ={};((e,t,i)=>{kJ(DJ,t,"default")})(0,nJ);var OJ={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},suggest:{},data:{useDefaultDataProvider:!0}};function xJ(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===MJ,documentFormattingEdits:e===MJ,documentRangeFormattingEdits:e===MJ}}var MJ="html",PJ="handlebars",FJ="razor",BJ=zJ(MJ,OJ,xJ(MJ)),HJ=BJ.defaults,WJ=zJ(PJ,OJ,xJ(PJ)),UJ=WJ.defaults,VJ=zJ(FJ,OJ,xJ(FJ)),GJ=VJ.defaults;function zJ(t,i=OJ,n=xJ(t)){const o=new class{constructor(e,t,i){this._onDidChange=new DJ.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}(t,i,n);let s;const r=DJ.languages.onLanguage(t,(async()=>{s=(await e((()=>import("./htmlMode-84f22c63.js")),["./htmlMode-84f22c63.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url)).setupMode(o)}));return{defaults:o,dispose(){r.dispose(),null==s||s.dispose(),s=void 0}}}DJ.languages.html={htmlDefaults:HJ,razorDefaults:GJ,handlebarDefaults:UJ,htmlLanguageService:BJ,handlebarLanguageService:WJ,razorLanguageService:VJ,registerHTMLLanguageService:zJ};var KJ=new class{constructor(e,t,i){this._onDidChange=new GX,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});function YJ(){return e((()=>import("./jsonMode-57aeeb1f.js")),["./jsonMode-57aeeb1f.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url)}tJ.json={jsonDefaults:KJ,getWorker:()=>YJ().then((e=>e.getWorker()))},tJ.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),tJ.onLanguage("json",(()=>{YJ().then((e=>e.setupMode(KJ)))})); +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/ +var qJ=Object.defineProperty,$J=Object.getOwnPropertyDescriptor,jJ=Object.getOwnPropertyNames,XJ=Object.prototype.hasOwnProperty,JJ=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of jJ(t))XJ.call(e,o)||o===i||qJ(e,o,{get:()=>t[o],enumerable:!(n=$J(t,o))||n.enumerable});return e},QJ={};((e,t,i)=>{JJ(QJ,t,"default")})(0,nJ);var ZJ=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=99]="ESNext",e))(ZJ||{}),eQ=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(eQ||{}),tQ=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(tQ||{}),iQ=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(iQ||{}),nQ=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e))(nQ||{}),oQ=class{constructor(e,t,i,n,o){this._onDidChange=new QJ.Emitter,this._onDidExtraLibsChange=new QJ.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this.setModeConfiguration(o),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(i=void 0===t?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[i]&&(n=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(n=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[i];e&&e.version===n&&(delete this._extraLibs[i],this._removedExtraLibs[i]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(const t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(const t of e){const e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=t.content;let n=1;this._removedExtraLibs[e]&&(n=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout((()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)}),0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},sQ={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},rQ=new oQ({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},sQ),aQ=new oQ({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},sQ);function lQ(){return e((()=>import("./tsMode-462d6c5a.js")),["./tsMode-462d6c5a.js","./index-8c106f3c.js","./index-dd8124c1.css"],import.meta.url)}QJ.languages.typescript={ModuleKind:ZJ,JsxEmit:eQ,NewLineKind:tQ,ScriptTarget:iQ,ModuleResolutionKind:nQ,typescriptVersion:"5.0.2",typescriptDefaults:rQ,javascriptDefaults:aQ,getTypeScriptWorker:()=>lQ().then((e=>e.getTypeScriptWorker())),getJavaScriptWorker:()=>lQ().then((e=>e.getJavaScriptWorker()))},QJ.languages.onLanguage("typescript",(()=>lQ().then((e=>e.setupTypeScript(rQ))))),QJ.languages.onLanguage("javascript",(()=>lQ().then((e=>e.setupJavaScript(aQ)))));class cQ extends Th{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:fe(0,"Toggle Show Moved Code Blocks"),precondition:Dd.has("isInDiffEditor")})}run(e,...t){const i=e.get($u),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class dQ extends Th{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:fe(0,"Toggle Use Inline View When Space Is Limited"),precondition:Dd.has("isInDiffEditor")})}run(e,...t){const i=e.get($u),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const hQ=fe(0,"Diff Editor");class uQ extends Th{constructor(){super({id:"diffEditor.revert",title:fe(0,"Revert"),f1:!1,category:hQ})}run(e,t){var i;const n=(o=e,s=t.originalUri,r=t.modifiedUri,o.get(nd).listDiffEditors().find((e=>{var t,i;const n=e.getModifiedEditor(),o=e.getOriginalEditor();return n&&(null===(t=n.getModel())||void 0===t?void 0:t.uri.toString())===r.toString()&&o&&(null===(i=o.getModel())||void 0===i?void 0:i.uri.toString())===s.toString()}))||null);var o,s,r;n instanceof Hj&&n.revertRangeMappings(null!==(i=t.mapping.innerChanges)&&void 0!==i?i:[])}}const gQ=fe(0,"Accessible Diff Viewer");class mQ extends Th{constructor(){super({id:mQ.id,title:fe(0,"Go to Next Difference"),category:gQ,precondition:Dd.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=fQ(e);null==t||t.accessibleDiffViewerNext()}}mQ.id="editor.action.accessibleDiffViewer.next";class pQ extends Th{constructor(){super({id:pQ.id,title:fe(0,"Go to Previous Difference"),category:gQ,precondition:Dd.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=fQ(e);null==t||t.accessibleDiffViewerPrev()}}function fQ(e){const t=e.get(nd).listDiffEditors(),i=Xl();if(i)for(const n of t)if(_Q(n.getContainerDomNode(),i))return n;return null}function _Q(e,t){let i=t;for(;i;){if(i===e)return!0;i=i.parentElement}return!1}pQ.id="editor.action.accessibleDiffViewer.prev",yh(class extends Th{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:fe(0,"Toggle Collapse Unchanged Regions"),icon:Yn.map,toggled:Dd.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:Dd.has("isInDiffEditor"),menu:{when:Dd.has("isInDiffEditor"),id:bh.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get($u),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}),yh(cQ),yh(dQ),Ch.appendMenuItem(bh.EditorTitle,{command:{id:(new dQ).desc.id,title:pe("vs/editor/browser/widget/diffEditor/diffEditor.contribution","useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:Dd.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:Dd.has("isInDiffEditor")},order:11,group:"1_diff",when:Dd.and(JT.diffEditorRenderSideBySideInlineBreakpointReached,Dd.has("isInDiffEditor"))}),Ch.appendMenuItem(bh.EditorTitle,{command:{id:(new cQ).desc.id,title:pe("vs/editor/browser/widget/diffEditor/diffEditor.contribution","showMoves","Show Moved Code Blocks"),icon:Yn.move,toggled:Fd.create("config.diffEditor.experimental.showMoves",!0),precondition:Dd.has("isInDiffEditor")},order:10,group:"1_diff",when:Dd.has("isInDiffEditor")}),yh(uQ);for(const OR of[{icon:Yn.arrowRight,key:JT.diffEditorInlineMode.toNegated()},{icon:Yn.discard,key:JT.diffEditorInlineMode}])Ch.appendMenuItem(bh.DiffEditorHunkToolbar,{command:{id:(new uQ).desc.id,title:pe("vs/editor/browser/widget/diffEditor/diffEditor.contribution","revertHunk","Revert Block"),icon:OR.icon},when:Dd.and(JT.diffEditorModifiedWritable,OR.key),order:5,group:"primary"}),Ch.appendMenuItem(bh.DiffEditorSelectionToolbar,{command:{id:(new uQ).desc.id,title:pe("vs/editor/browser/widget/diffEditor/diffEditor.contribution","revertSelection","Revert Selection"),icon:OR.icon},when:Dd.and(JT.diffEditorModifiedWritable,OR.key),order:5,group:"primary"});yh(class extends Hh{constructor(){super({id:"diffEditor.switchSide",title:fe(0,"Switch Side"),icon:Yn.arrowSwap,precondition:Dd.has("isInDiffEditor"),f1:!0,category:hQ})}runEditorCommand(e,t,i){const n=fQ(e);if(n instanceof Hj){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}),yh(class extends Hh{constructor(){super({id:"diffEditor.exitCompareMove",title:fe(0,"Exit Compare Move"),icon:Yn.close,precondition:JT.comparingMovedCode,f1:!1,category:hQ,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=fQ(e);n instanceof Hj&&n.exitCompareMove()}}),yh(class extends Hh{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:fe(0,"Collapse All Unchanged Regions"),icon:Yn.fold,precondition:Dd.has("isInDiffEditor"),f1:!0,category:hQ})}runEditorCommand(e,t,...i){const n=fQ(e);n instanceof Hj&&n.collapseAllUnchangedRegions()}}),yh(class extends Hh{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:fe(0,"Show All Unchanged Regions"),icon:Yn.unfold,precondition:Dd.has("isInDiffEditor"),f1:!0,category:hQ})}runEditorCommand(e,t,...i){const n=fQ(e);n instanceof Hj&&n.showAllUnchangedRegions()}}),Ch.appendMenuItem(bh.EditorTitle,{command:{id:mQ.id,title:pe("vs/editor/browser/widget/diffEditor/diffEditor.contribution","Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:Dd.has("isInDiffEditor")},order:10,group:"2_diff",when:Dd.and(JT.accessibleDiffViewerVisible.negate(),Dd.has("isInDiffEditor"))}),pd.registerCommandAlias("editor.action.diffReview.next",mQ.id),yh(mQ),pd.registerCommandAlias("editor.action.diffReview.prev",pQ.id),yh(pQ);var bQ,vQ=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},SQ=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const CQ=new Qd("selectionAnchorSet",!1);let EQ=bQ=class{static get(e){return e.getContribution(bQ.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=CQ.bindTo(t),this.modelChangeListener=e.onDidChangeModel((()=>this.selectionAnchorSetContextKey.reset()))}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations((t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(Vn.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:(new YM).appendText(pe("vs/editor/contrib/anchorSelect/browser/anchorSelect","selectionAnchor","Selection Anchor")),className:"selection-anchor"})})),this.selectionAnchorSetContextKey.set(!!this.decorationId),L_(pe("vs/editor/contrib/anchorSelect/browser/anchorSelect","anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(Vn.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations((t=>{t.removeDecoration(e),this.decorationId=void 0})),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};EQ.ID="editor.contrib.selectionAnchorController",EQ=bQ=vQ([SQ(1,Zd)],EQ),zh(EQ.ID,EQ,4),Vh(class extends Fh{constructor(){super({id:"editor.action.setSelectionAnchor",label:pe("vs/editor/contrib/anchorSelect/browser/anchorSelect","setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:JT.editorTextFocus,primary:$i(2089,2080),weight:100}})}async run(e,t){var i;null===(i=EQ.get(t))||void 0===i||i.setSelectionAnchor()}}),Vh(class extends Fh{constructor(){super({id:"editor.action.goToSelectionAnchor",label:pe("vs/editor/contrib/anchorSelect/browser/anchorSelect","goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:CQ})}async run(e,t){var i;null===(i=EQ.get(t))||void 0===i||i.goToSelectionAnchor()}}),Vh(class extends Fh{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:pe("vs/editor/contrib/anchorSelect/browser/anchorSelect","selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:CQ,kbOpts:{kbExpr:JT.editorTextFocus,primary:$i(2089,2089),weight:100}})}async run(e,t){var i;null===(i=EQ.get(t))||void 0===i||i.selectFromAnchorToCursor()}}),Vh(class extends Fh{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:pe("vs/editor/contrib/anchorSelect/browser/anchorSelect","cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:CQ,kbOpts:{kbExpr:JT.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;null===(i=EQ.get(t))||void 0===i||i.cancelSelectionAnchor()}});const wQ=ib("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},pe("vs/editor/contrib/bracketMatching/browser/bracketMatching","overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class TQ{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class yQ extends mi{static get(e){return e.getContribution(yQ.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new Kr((()=>this._updateBrackets()),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition((e=>{"never"!==this._matchBrackets&&this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelContent((e=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModel((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelLanguageConfiguration((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))),this._register(e.onDidBlurEditorWidget((()=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidFocusEditorWidget((()=>{this._updateBracketsSoon.schedule()})))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map((t=>{const i=t.getStartPosition(),n=e.bracketPairs.matchBracket(i);let o=null;if(n)n[0].containsPosition(i)&&!n[1].containsPosition(i)?o=n[1].getStartPosition():n[1].containsPosition(i)&&(o=n[0].getStartPosition());else{const t=e.bracketPairs.findEnclosingBrackets(i);if(t)o=t[1].getStartPosition();else{const t=e.bracketPairs.findNextBracket(i);t&&t.range&&(o=t.range.getStartPosition())}}return o?new Vn(o.lineNumber,o.column,o.lineNumber,o.column):new Vn(i.lineNumber,i.column,i.lineNumber,i.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach((n=>{const o=n.getStartPosition();let s=t.bracketPairs.matchBracket(o);if(!s&&(s=t.bracketPairs.findEnclosingBrackets(o),!s)){const e=t.bracketPairs.findNextBracket(o);e&&e.range&&(s=t.bracketPairs.matchBracket(e.range.getStartPosition()))}let r=null,a=null;if(s){s.sort(Un.compareRangesUsingStarts);const[t,i]=s;if(r=e?t.getStartPosition():t.getEndPosition(),a=e?i.getEndPosition():i.getStartPosition(),i.containsPosition(o)){const e=r;r=a,a=e}}r&&a&&i.push(new Vn(r.lineNumber,r.column,a.lineNumber,a.column))})),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach((i=>{const n=i.getPosition();let o=t.bracketPairs.matchBracket(n);o||(o=t.bracketPairs.findEnclosingBrackets(n)),o&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:o[0],text:""},{range:o[1],text:""}]),this._editor.pushUndoStop())}))}_updateBrackets(){if("never"===this._matchBrackets)return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return this._lastBracketsData=[],void(this._lastVersionId=0);const e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const o=[];let s=0;for(let d=0,h=e.length;d1&&o.sort(Wn.compare);const r=[];let a=0,l=0;const c=n.length;for(let d=0,h=o.length;d0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}});const IQ=function(){if("object"==typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID.bind(crypto);let e;e="object"==typeof crypto&&"function"==typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;te,asFile:()=>{},value:"string"==typeof e?e:void 0}}class NQ{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return nt.some(this,(([e,t])=>t.asFile()))&&t.push("files"),OQ(kQ(e),t)}get(e){var t;return null===(t=this._entries.get(this.toKey(e)))||void 0===t?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return kQ(e)}}function kQ(e){return e.toLowerCase()}function DQ(e,t){return OQ(kQ(e),t.map(kQ))}function OQ(e,t){if("*/*"===e)return t.length>0;if(t.includes(e))return!0;const i=e.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!i)return!1;const[n,o,s]=i;return"*"===s&&t.some((e=>e.startsWith(o+"/")))}const xQ=Object.freeze({create:e=>I(e.map((e=>e.toString()))).join("\r\n"),split:e=>e.split("\r\n"),parse:e=>xQ.split(e).filter((e=>!e.startsWith("#")))});class MQ{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||""===this.value||e.value.startsWith(this.value+MQ.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new MQ((this.value?[this.value,...e]:e).join(MQ.sep))}}MQ.sep=".",MQ.None=new MQ("@@none@@"),MQ.Empty=new MQ("");dh.add("workbench.contributions.dragAndDrop",new class{});class PQ{constructor(){}static getInstance(){return PQ.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}function FQ(e){const t=new NQ;for(const i of e.items){const e=i.type;if("string"===i.kind){const n=new Promise((e=>i.getAsString(e)));t.append(e,AQ(n))}else if("file"===i.kind){const n=i.getAsFile();n&&t.append(e,BQ(n))}}return t}function BQ(e){const t=e.path?An.parse(e.path):void 0;return function(t,i,n){const o={id:IQ(),name:t,uri:i,data:async()=>new Uint8Array(await e.arrayBuffer())};return{asString:async()=>"",asFile:()=>o,value:void 0}}(e.name,t)}PQ.INSTANCE=new PQ;const HQ=Object.freeze(["CodeEditors","CodeFiles",pB.RESOURCES,pB.INTERNAL_URI_LIST]);function WQ(e,t=!1){const i=FQ(e),n=i.get(pB.INTERNAL_URI_LIST);if(n)i.replace(sg.uriList,n);else if(t||!i.has(sg.uriList)){const t=[];for(const i of e.items){const e=i.getAsFile();if(e){const i=e.path;try{i?t.push(An.file(i).toString()):t.push(An.parse(e.name,!0).toString())}catch(o){}}}t.length&&i.replace(sg.uriList,AQ(xQ.create(t)))}for(const s of HQ)i.delete(s);return i}var UQ=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},VQ=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class GQ{async provideDocumentPasteEdits(e,t,i,n,o){const s=await this.getEdit(i,o);if(s)return{dispose(){},edits:[{insertText:s.insertText,title:s.title,kind:s.kind,handledMimeType:s.handledMimeType,yieldTo:s.yieldTo}]}}async provideDocumentDropEdits(e,t,i,n){const o=await this.getEdit(i,n);return o?[{insertText:o.insertText,title:o.title,kind:o.kind,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}]:void 0}}class zQ extends GQ{constructor(){super(...arguments),this.kind=zQ.kind,this.dropMimeTypes=[sg.text],this.pasteMimeTypes=[sg.text]}async getEdit(e,t){const i=e.get(sg.text);if(!i)return;if(e.has(sg.uriList))return;const n=await i.asString();return{handledMimeType:sg.text,title:pe("vs/editor/contrib/dropOrPasteInto/browser/defaultProviders","text.label","Insert Plain Text"),insertText:n,kind:this.kind}}}zQ.id="text",zQ.kind=new MQ("text.plain");class KQ extends GQ{constructor(){super(...arguments),this.kind=new MQ("uri.absolute"),this.dropMimeTypes=[sg.uriList],this.pasteMimeTypes=[sg.uriList]}async getEdit(e,t){const i=await $Q(e);if(!i.length||t.isCancellationRequested)return;let n=0;const o=i.map((({uri:e,originalText:t})=>e.scheme===Ja.file?e.fsPath:(n++,t))).join(" ");let s;return s=n>0?i.length>1?pe("vs/editor/contrib/dropOrPasteInto/browser/defaultProviders","defaultDropProvider.uriList.uris","Insert Uris"):pe("vs/editor/contrib/dropOrPasteInto/browser/defaultProviders","defaultDropProvider.uriList.uri","Insert Uri"):i.length>1?pe("vs/editor/contrib/dropOrPasteInto/browser/defaultProviders","defaultDropProvider.uriList.paths","Insert Paths"):pe("vs/editor/contrib/dropOrPasteInto/browser/defaultProviders","defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:sg.uriList,insertText:o,title:s,kind:this.kind}}}let YQ=class extends GQ{constructor(e){super(),this._workspaceContextService=e,this.kind=new MQ("uri.relative"),this.dropMimeTypes=[sg.uriList],this.pasteMimeTypes=[sg.uriList]}async getEdit(e,t){const i=await $Q(e);if(!i.length||t.isCancellationRequested)return;const n=T(i.map((({uri:e})=>{const t=this._workspaceContextService.getWorkspaceFolder(e);return t?YI(t.uri,e):void 0})));return n.length?{handledMimeType:sg.uriList,insertText:n.join(" "),title:i.length>1?pe("vs/editor/contrib/dropOrPasteInto/browser/defaultProviders","defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):pe("vs/editor/contrib/dropOrPasteInto/browser/defaultProviders","defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}:void 0}};YQ=UQ([VQ(0,zF)],YQ);class qQ{constructor(){this.kind=new MQ("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:sg.text}]}async provideDocumentPasteEdits(e,t,i,n,o){var s;if(n.triggerKind!==eo.PasteAs&&!(null===(s=n.only)||void 0===s?void 0:s.contains(this.kind)))return;const r=i.get("text/html"),a=await(null==r?void 0:r.asString());return a&&!o.isCancellationRequested?{dispose(){},edits:[{insertText:a,yieldTo:this._yieldTo,title:pe("vs/editor/contrib/dropOrPasteInto/browser/defaultProviders","pasteHtmlLabel","Insert HTML"),kind:this.kind}]}:void 0}}async function $Q(e){const t=e.get(sg.uriList);if(!t)return[];const i=await t.asString(),n=[];for(const s of xQ.parse(i))try{n.push({uri:An.parse(s),originalText:s})}catch(o){}return n}let jQ=class extends mi{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new zQ)),this._register(e.documentDropEditProvider.register("*",new KQ)),this._register(e.documentDropEditProvider.register("*",new YQ(t)))}};jQ=UQ([VQ(0,lf),VQ(1,zF)],jQ);let XQ=class extends mi{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new zQ)),this._register(e.documentPasteEditProvider.register("*",new KQ)),this._register(e.documentPasteEditProvider.register("*",new YQ(t))),this._register(e.documentPasteEditProvider.register("*",new qQ))}};XQ=UQ([VQ(0,lf),VQ(1,zF)],XQ);class JQ{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t,i=0,n=this.value.charCodeAt(e);if(t=JQ._table[n],"number"==typeof t)return this.pos+=1,{type:t,pos:e,len:1};if(JQ.isDigitCharacter(n)){t=8;do{i+=1,n=this.value.charCodeAt(e+i)}while(JQ.isDigitCharacter(n));return this.pos+=i,{type:t,pos:e,len:i}}if(JQ.isVariableCharacter(n)){t=9;do{n=this.value.charCodeAt(e+ ++i)}while(JQ.isVariableCharacter(n)||JQ.isDigitCharacter(n));return this.pos+=i,{type:t,pos:e,len:i}}t=10;do{i+=1,n=this.value.charCodeAt(e+i)}while(!isNaN(n)&&void 0===JQ._table[n]&&!JQ.isDigitCharacter(n)&&!JQ.isVariableCharacter(n));return this.pos+=i,{type:t,pos:e,len:i}}}JQ._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class QQ{constructor(){this._children=[]}appendChild(e){return e instanceof ZQ&&this._children[this._children.length-1]instanceof ZQ?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),o=i.children.slice(0);o.splice(n,1,...t),i._children=o,function e(t,i){for(const n of t)n.parent=i,e(n.children,n)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof aZ)return e;e=e.parent}}toString(){return this.children.reduce(((e,t)=>e+t.toString()),"")}len(){return 0}}class ZQ extends QQ{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new ZQ(this.value)}}class eZ extends QQ{}class tZ extends eZ{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof iZ?this._children[0]:void 0}clone(){const e=new tZ(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}class iZ extends QQ{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof ZQ&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new iZ;return this.options.forEach(e.appendChild,e),e}}class nZ extends QQ{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,(function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!i&&this._children.some((e=>e instanceof oZ&&Boolean(e.elseValue)))&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof oZ){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new nZ;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map((e=>e.clone())),e}}class oZ extends QQ{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":"camelcase"===this.shorthandName?e?this._toCamelCase(e):"":Boolean(e)&&"string"==typeof this.ifValue?this.ifValue:Boolean(e)||"string"!=typeof this.elseValue?e||"":this.elseValue}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((e=>e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(((e,t)=>0===t?e.charAt(0).toLowerCase()+e.substr(1):e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}clone(){return new oZ(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class sZ extends eZ{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new ZQ(t)],!0)}clone(){const e=new sZ(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}function rZ(e,t){const i=[...e];for(;i.length>0;){const e=i.shift();if(!t(e))break;i.unshift(...e.children)}}class aZ extends QQ{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk((function(i){return i instanceof tZ&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0))),i?t:-1}fullLen(e){let t=0;return rZ([e],(e=>(t+=e.len(),!0))),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof tZ&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk((t=>(t instanceof sZ&&t.resolve(e)&&(this._placeholders=void 0),!0))),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new aZ;return this._children=this.children.map((e=>e.clone())),e}walk(e){rZ(this.children,e)}}class lZ{constructor(){this._scanner=new JQ,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new aZ;return this.parseFragment(e,n),this.ensureFinalTabstop(n,null!=i&&i,null!=t&&t),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,o=[];t.walk((e=>(e instanceof tZ&&(e.isFinalTabstop?n.set(0,void 0):!n.has(e.index)&&e.children.length>0?n.set(e.index,e.children):o.push(e)),!0)));const s=(e,i)=>{const o=n.get(e.index);if(!o)return;const r=new tZ(e.index);r.transform=e.transform;for(const t of o){const e=t.clone();r.appendChild(e),e instanceof tZ&&n.has(e.index)&&!i.has(e.index)&&(i.add(e.index),s(e,i),i.delete(e.index))}t.replace(e,[r])},r=new Set;for(const a of o)s(a,r);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find((e=>0===e.index))||e.appendChild(new tZ(0)))}_accept(e,t){if(void 0===e||this._token.type===e){const e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){const e=this._scanner.next();if(0!==e.type&&4!==e.type&&5!==e.type)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new ZQ(t)),!0)}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new tZ(Number(t)):new sZ(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const n=new tZ(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new ZQ("${"+t+":")),n.children.forEach(e.appendChild,e),!0}else{if(!(n.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);{const t=new iZ;for(;;){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(n.appendChild(t),this._accept(4)))return e.appendChild(n),!0}return this._backTo(i),!1}}}}_parseChoiceElement(e){const t=this._token,i=[];for(;2!==this._token.type&&7!==this._token.type;){let e;if(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0),!e)return this._backTo(t),!1;i.push(e)}return 0===i.length?(this._backTo(t),!1):(e.appendChild(new ZQ(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const n=new sZ(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new ZQ("${"+t+":")),n.children.forEach(e.appendChild,e),!0}}_parseTransform(e){const t=new nZ;let i="",n="";for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(6,!0)||e,i+=e;else{if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}}for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new ZQ(e));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}try{t.regexp=new RegExp(i,n)}catch(sue){return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(!n)return this._backTo(t),!1;if(!i)return e.appendChild(new oZ(Number(n))),!0;if(this._accept(4))return e.appendChild(new oZ(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){const i=this._accept(9,!0);return i&&this._accept(4)?(e.appendChild(new oZ(Number(n),i)),!0):(this._backTo(t),!1)}if(this._accept(11)){const t=this._until(4);if(t)return e.appendChild(new oZ(Number(n),void 0,t,void 0)),!0}else if(this._accept(12)){const t=this._until(4);if(t)return e.appendChild(new oZ(Number(n),void 0,void 0,t)),!0}else if(this._accept(13)){const t=this._until(1);if(t){const i=this._until(4);if(i)return e.appendChild(new oZ(Number(n),void 0,t,i)),!0}}else{const t=this._until(4);if(t)return e.appendChild(new oZ(Number(n),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return 14!==this._token.type&&(e.appendChild(new ZQ(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}function cZ(e,t,i){var n,o,s,r;return("string"==typeof i.insertText?""===i.insertText:""===i.insertText.snippet)?{edits:null!==(o=null===(n=i.additionalEdit)||void 0===n?void 0:n.edits)&&void 0!==o?o:[]}:{edits:[...t.map((t=>new tF(e,{range:t,text:"string"==typeof i.insertText?lZ.escape(i.insertText)+"$0":i.insertText.snippet,insertAsSnippet:!0}))),...null!==(r=null===(s=i.additionalEdit)||void 0===s?void 0:s.edits)&&void 0!==r?r:[]]}}function dZ(e){var t;function i(e,t){return"mimeType"in e?e.mimeType===t.handledMimeType:!!t.kind&&e.kind.contains(t.kind)}const n=new Map;for(const r of e)for(const o of null!==(t=r.yieldTo)&&void 0!==t?t:[])for(const t of e)if(t!==r&&i(o,t)){let e=n.get(r);e||(e=[],n.set(r,e)),e.push(t)}if(!n.size)return Array.from(e);const o=new Set,s=[];return function e(t){if(!t.length)return[];const i=t[0];if(s.includes(i))return t;if(o.has(i))return e(t.slice(1));let r=[];const a=n.get(i);return a&&(s.push(i),r=e(a),s.pop()),o.add(i),[...r,i,...e(t.slice(1))]}(Array.from(e))}var hZ=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},uZ=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const gZ=VN.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:" ",inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class mZ extends mi{constructor(e,t,i,n,o){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=o,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=yc(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=yc("span.icon");this.domNode.append(t),t.classList.add(...gd.asClassNameArray(Yn.loading),"codicon-modifier-spin");const i=()=>{const e=this.editor.getOption(67);this.domNode.style.height=`${e}px`,this.domNode.style.width=`${Math.ceil(.8*e)}px`};i(),this._register(this.editor.onDidChangeConfiguration((e=>{(e.hasChanged(52)||e.hasChanged(67))&&i()}))),this._register(yl(this.domNode,mc.CLICK,(e=>{this.delegate.cancel()})))}getId(){return mZ.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}mZ.baseId="editor.widget.inlineProgressWidget";let pZ=class extends mi{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new pi),this._currentWidget=new pi,this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}async showWhile(e,t,i){const n=this._operationIdPool++;this._currentOperation=n,this.clear(),this._showPromise.value=Ur((()=>{const n=Un.fromPositions(e);this._currentDecorations.set([{range:n,options:gZ}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(mZ,this.id,this._editor,n,t,i))}),this._showDelay);try{return await i}finally{this._currentOperation===n&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};pZ=hZ([uZ(2,td)],pZ);var fZ,_Z=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},bZ=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let vZ=fZ=class{static get(e){return e.getContribution(fZ.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new pi,this._messageListeners=new gi,this._mouseOverMessage=!1,this._editor=e,this._visible=fZ.MESSAGE_VISIBLE.bindTo(t)}dispose(){var e;null===(e=this._message)||void 0===e||e.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let i;L_($M(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=$M(e)?sP(e,{actionHandler:{callback:t=>{this.closeMessage(),AP(this._openerService,t,$M(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new SZ(this._editor,t,"string"==typeof e?e:this._message.element),this._messageListeners.add(Ci.debounce(this._editor.onDidBlurEditorText,((e,t)=>t),0)((()=>{this._mouseOverMessage||this._messageWidget.value&&Kl(Xl(),this._messageWidget.value.getDomNode())||this.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeCursorPosition((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidDispose((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidChangeModel((()=>this.closeMessage()))),this._messageListeners.add(yl(this._messageWidget.value.getDomNode(),mc.MOUSE_ENTER,(()=>this._mouseOverMessage=!0),!0)),this._messageListeners.add(yl(this._messageWidget.value.getDomNode(),mc.MOUSE_LEAVE,(()=>this._mouseOverMessage=!1),!0)),this._messageListeners.add(this._editor.onMouseMove((e=>{e.target.position&&(i?i.containsPosition(e.target.position)||this.closeMessage():i=new Un(t.lineNumber-3,1,e.target.position.lineNumber+3,1))})))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(SZ.fadeOut(this._messageWidget.value))}};vZ.ID="editor.contrib.messageController",vZ.MESSAGE_VISIBLE=new Qd("messageVisible",!1,pe("vs/editor/contrib/message/browser/messageController","messageVisible","Whether the editor is currently showing an inline message")),vZ=fZ=_Z([bZ(1,Zd),bZ(2,Ax)],vZ),Uh(new(Ph.bindToContribution(vZ.get))({id:"leaveEditorMessage",precondition:vZ.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));let SZ=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const s=document.createElement("div");"string"==typeof n?(s.classList.add("message"),s.textContent=n):(n.classList.add("message"),s.appendChild(n)),this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("anchor","below"),this._domNode.appendChild(r),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",2===e)}};zh(vZ.ID,vZ,4);var CZ,EZ=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},wZ=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let TZ=CZ=class extends mi{constructor(e,t,i,n,o,s,r,a,l,c){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=o,this.edits=s,this.onSelectNewEdit=r,this._contextMenuService=a,this._keybindingService=c,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(l),this.visibleContext.set(!0),this._register(ui((()=>this.visibleContext.reset()))),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(ui((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition((e=>{o.containsPosition(e.position)||this.dispose()}))),this._register(Ci.runAndSubscribe(c.onDidUpdateKeybindings,(()=>{this._updateButtonTitle()})))}_updateButtonTitle(){var e;const t=null===(e=this._keybindingService.lookupKeybinding(this.showCommand.id))||void 0===e?void 0:e.getLabel();this.button.element.title=this.showCommand.label+(t?` (${t})`:"")}create(){this.domNode=yc(".post-edit-widget"),this.button=this._register(new CK(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(yl(this.domNode,mc.CLICK,(()=>this.showSelector())))}getId(){return CZ.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=Hl(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map(((e,t)=>hd({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}})))})}};TZ.baseId="editor.widget.postEditWidget",TZ=CZ=EZ([wZ(7,Ex),wZ(8,Zd),wZ(9,tT)],TZ);let yZ=class extends mi{constructor(e,t,i,n,o,s){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=n,this._instantiationService=o,this._bulkEditService=s,this._currentWidget=this._register(new pi),this._register(Ci.any(t.onDidChangeModel,t.onDidChangeModelContent)((()=>this.clear())))}async applyEditAndShowIfNeeded(e,t,i,n,o){const s=this._editor.getModel();if(!s||!e.length)return;const r=t.allEdits.at(t.activeEditIndex);if(!r)return;const a=await n(r,o);if(o.isCancellationRequested)return;const l=cZ(s.uri,e,a),c=e[0],d=s.deltaDecorations([],[{range:c,options:{description:"paste-line-suffix",stickiness:0}}]);let h,u;this._editor.focus();try{h=await this._bulkEditService.apply(l,{editor:this._editor,token:o}),u=s.getDecorationRange(d[0])}finally{s.deltaDecorations(d,[])}o.isCancellationRequested||i&&h.isApplied&&t.allEdits.length>1&&this.show(null!=u?u:c,t,(async s=>{const r=this._editor.getModel();r&&(await r.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:s,allEdits:t.allEdits},i,n,o))}))}show(e,t,i){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(TZ,this._id,this._editor,this._visibleContext,this._showCommand,e,t,i))}clear(){this._currentWidget.clear()}tryShowSelector(){var e;null===(e=this._currentWidget.value)||void 0===e||e.showSelector()}};yZ=EZ([wZ(4,td),wZ(5,ZP)],yZ);var RZ,LZ=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},IZ=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const AZ="editor.changePasteType",NZ=new Qd("pasteWidgetVisible",!1,pe("vs/editor/contrib/dropOrPasteInto/browser/copyPasteController","pasteWidgetVisible","Whether the paste widget is showing")),kZ="application/vnd.code.copyMetadata";let DZ=RZ=class extends mi{static get(e){return e.getContribution(RZ.ID)}constructor(e,t,i,n,o,s,r){super(),this._bulkEditService=i,this._clipboardService=n,this._languageFeaturesService=o,this._quickInputService=s,this._progressService=r,this._editor=e;const a=e.getContainerDomNode();this._register(yl(a,"copy",(e=>this.handleCopy(e)))),this._register(yl(a,"cut",(e=>this.handleCopy(e)))),this._register(yl(a,"paste",(e=>this.handlePaste(e)),!0)),this._pasteProgressManager=this._register(new pZ("pasteIntoEditor",e,t)),this._postPasteWidgetManager=this._register(t.createInstance(yZ,"pasteIntoEditor",e,NZ,{id:AZ,label:pe("vs/editor/contrib/dropOrPasteInto/browser/copyPasteController","postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(e){this._editor.focus();try{this._pasteAsActionContext={preferred:e},Zl().execCommand("paste")}finally{this._pasteAsActionContext=void 0}}clearWidgets(){this._postPasteWidgetManager.clear()}isPasteAsEnabled(){return this._editor.getOption(85).enabled&&!this._editor.getOption(91)}async finishedPaste(){await this._currentPasteOperation}handleCopy(e){var t,i;if(!this._editor.hasTextFocus())return;if(He&&this._clipboardService.writeResources([]),!e.clipboardData||!this.isPasteAsEnabled())return;const n=this._editor.getModel(),o=this._editor.getSelections();if(!n||!(null==o?void 0:o.length))return;const s=this._editor.getOption(37);let r=o;const a=1===o.length&&o[0].isEmpty();if(a){if(!s)return;r=[new Un(r[0].startLineNumber,1,r[0].startLineNumber,1+n.getLineLength(r[0].startLineNumber))]}const l=null===(t=this._editor._getViewModel())||void 0===t?void 0:t.getPlainTextToCopy(o,s,Me),c={multicursorText:Array.isArray(l)?l:null,pasteOnNewLine:a,mode:null},d=this._languageFeaturesService.documentPasteEditProvider.ordered(n).filter((e=>!!e.prepareDocumentPaste));if(!d.length)return void this.setCopyMetadata(e.clipboardData,{defaultPastePayload:c});const h=FQ(e.clipboardData),u=d.flatMap((e=>{var t;return null!==(t=e.copyMimeTypes)&&void 0!==t?t:[]})),g=IQ();this.setCopyMetadata(e.clipboardData,{id:g,providerCopyMimeTypes:u,defaultPastePayload:c});const m=Mr((async e=>{const t=T(await Promise.all(d.map((async t=>{try{return await t.prepareDocumentPaste(n,r,h,e)}catch(i){return}}))));t.reverse();for(const i of t)for(const[e,t]of i)h.replace(e,t);return h}));null===(i=RZ._currentCopyOperation)||void 0===i||i.dataTransferPromise.cancel(),RZ._currentCopyOperation={handle:g,dataTransferPromise:m}}async handlePaste(e){var t,i,n,o;if(!e.clipboardData||!this._editor.hasTextFocus())return;null===(t=vZ.get(this._editor))||void 0===t||t.closeMessage(),null===(i=this._currentPasteOperation)||void 0===i||i.cancel(),this._currentPasteOperation=void 0;const s=this._editor.getModel(),r=this._editor.getSelections();if(!(null==r?void 0:r.length)||!s)return;if(!this.isPasteAsEnabled()&&!this._pasteAsActionContext)return;const a=this.fetchCopyMetadata(e),l=WQ(e.clipboardData);l.delete(kZ);const c=[...e.clipboardData.types,...null!==(n=null==a?void 0:a.providerCopyMimeTypes)&&void 0!==n?n:[],sg.uriList],d=this._languageFeaturesService.documentPasteEditProvider.ordered(s).filter((e=>{var t,i;const n=null===(t=this._pasteAsActionContext)||void 0===t?void 0:t.preferred;return!(n&&e.providedPasteEditKinds&&!this.providerMatchesPreference(e,n))&&(null===(i=e.pasteMimeTypes)||void 0===i?void 0:i.some((e=>DQ(e,c))))}));d.length?(e.preventDefault(),e.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferred,d,r,l,a):this.doPasteInline(d,r,l,a,e)):(null===(o=this._pasteAsActionContext)||void 0===o?void 0:o.preferred)&&this.showPasteAsNoEditMessage(r,this._pasteAsActionContext.preferred)}showPasteAsNoEditMessage(e,t){var i;null===(i=vZ.get(this._editor))||void 0===i||i.showMessage(pe("vs/editor/contrib/dropOrPasteInto/browser/copyPasteController","pasteAsError","No paste edits for '{0}' found",t instanceof MQ?t.value:t.providerId),e[0].getStartPosition())}doPasteInline(e,t,i,n,o){const s=Mr((async r=>{const a=this._editor;if(!a.hasModel())return;const l=a.getModel(),c=new RX(a,3,void 0,r);try{if(await this.mergeInDataFromCopy(i,n,c.token),c.token.isCancellationRequested)return;const s=e.filter((e=>this.isSupportedPasteProvider(e,i)));if(!s.length||1===s.length&&s[0]instanceof zQ)return this.applyDefaultPasteHandler(i,n,c.token,o);const r={triggerKind:eo.Automatic},d=await this.getPasteEdits(s,i,l,t,r,c.token);if(c.token.isCancellationRequested)return;if(1===d.length&&d[0].provider instanceof zQ)return this.applyDefaultPasteHandler(i,n,c.token,o);if(d.length){const e="afterPaste"===a.getOption(85).showPasteSelector;return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:d},e,(async(e,t)=>{var i,n;const o=await(null===(n=(i=e.provider).resolveDocumentPasteEdit)||void 0===n?void 0:n.call(i,e,t));return o&&(e.additionalEdit=o.additionalEdit),e}),c.token)}await this.applyDefaultPasteHandler(i,n,c.token,o)}finally{c.dispose(),this._currentPasteOperation===s&&(this._currentPasteOperation=void 0)}}));this._pasteProgressManager.showWhile(t[0].getEndPosition(),pe("vs/editor/contrib/dropOrPasteInto/browser/copyPasteController","pasteIntoEditorProgress","Running paste handlers. Click to cancel"),s),this._currentPasteOperation=s}showPasteAsPick(e,t,i,n,o){const s=Mr((async r=>{const a=this._editor;if(!a.hasModel())return;const l=a.getModel(),c=new RX(a,3,void 0,r);try{if(await this.mergeInDataFromCopy(n,o,c.token),c.token.isCancellationRequested)return;let s=t.filter((t=>this.isSupportedPasteProvider(t,n,e)));e&&(s=s.filter((t=>this.providerMatchesPreference(t,e))));const r={triggerKind:eo.PasteAs,only:e&&e instanceof MQ?e:void 0};let a,d=await this.getPasteEdits(s,n,l,i,r,c.token);if(c.token.isCancellationRequested)return;if(e&&(d=d.filter((t=>e instanceof MQ?e.contains(t.kind):e.providerId===t.provider.id))),!d.length)return void(r.only&&this.showPasteAsNoEditMessage(i,r.only));if(e)a=d.at(0);else{const e=await this._quickInputService.pick(d.map((e=>{var t;return{label:e.title,description:null===(t=e.kind)||void 0===t?void 0:t.value,edit:e}})),{placeHolder:pe("vs/editor/contrib/dropOrPasteInto/browser/copyPasteController","pasteAsPickerPlaceholder","Select Paste Action")});a=null==e?void 0:e.edit}if(!a)return;const h=cZ(l.uri,i,a);await this._bulkEditService.apply(h,{editor:this._editor})}finally{c.dispose(),this._currentPasteOperation===s&&(this._currentPasteOperation=void 0)}}));this._progressService.withProgress({location:10,title:pe("vs/editor/contrib/dropOrPasteInto/browser/copyPasteController","pasteAsProgress","Running paste handlers")},(()=>s))}setCopyMetadata(e,t){e.setData(kZ,JSON.stringify(t))}fetchCopyMetadata(e){var t;if(!e.clipboardData)return;const i=e.clipboardData.getData(kZ);if(i)try{return JSON.parse(i)}catch(sue){return}const[n,o]=HE.getTextData(e.clipboardData);return o?{defaultPastePayload:{mode:o.mode,multicursorText:null!==(t=o.multicursorText)&&void 0!==t?t:null,pasteOnNewLine:!!o.isFromEmptySelection}}:void 0}async mergeInDataFromCopy(e,t,i){var n;if((null==t?void 0:t.id)&&(null===(n=RZ._currentCopyOperation)||void 0===n?void 0:n.handle)===t.id){const t=await RZ._currentCopyOperation.dataTransferPromise;if(i.isCancellationRequested)return;for(const[i,n]of t)e.replace(i,n)}if(!e.has(sg.uriList)){const t=await this._clipboardService.readResources();if(i.isCancellationRequested)return;t.length&&e.append(sg.uriList,AQ(xQ.create(t)))}}async getPasteEdits(e,t,i,n,o,s){const r=await Pr(Promise.all(e.map((async e=>{var r,a;try{const l=await(null===(r=e.provideDocumentPasteEdits)||void 0===r?void 0:r.call(e,i,n,t,o,s));return null===(a=null==l?void 0:l.edits)||void 0===a?void 0:a.map((t=>({...t,provider:e})))}catch(l){}}))),s);return dZ(T(null!=r?r:[]).flat().filter((e=>!o.only||o.only.contains(e.kind))))}async applyDefaultPasteHandler(e,t,i,n){var o,s,r,a;const l=null!==(o=e.get(sg.text))&&void 0!==o?o:e.get("text"),c=null!==(s=await(null==l?void 0:l.asString()))&&void 0!==s?s:"";if(i.isCancellationRequested)return;const d={clipboardEvent:n,text:c,pasteOnNewLine:null!==(r=null==t?void 0:t.defaultPastePayload.pasteOnNewLine)&&void 0!==r&&r,multicursorText:null!==(a=null==t?void 0:t.defaultPastePayload.multicursorText)&&void 0!==a?a:null,mode:null};this._editor.trigger("keyboard","paste",d)}isSupportedPasteProvider(e,t,i){var n;return!!(null===(n=e.pasteMimeTypes)||void 0===n?void 0:n.some((e=>t.matches(e))))&&(!i||this.providerMatchesPreference(e,i))}providerMatchesPreference(e,t){return t instanceof MQ?!e.providedPasteEditKinds||e.providedPasteEditKinds.some((e=>t.contains(e))):e.id===t.providerId}};DZ.ID="editor.contrib.copyPasteActionController",DZ=RZ=LZ([IZ(1,td),IZ(2,ZP),IZ(3,WY),IZ(4,lf),IZ(5,OU),IZ(6,MF)],DZ);const OZ="9_cutcopypaste",xZ=Be||document.queryCommandSupported("cut"),MZ=Be||document.queryCommandSupported("copy"),PZ=void 0!==navigator.clipboard&&!hr||document.queryCommandSupported("paste");function FZ(e){return e.register(),e}const BZ=xZ?FZ(new xh({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:Be?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:bh.MenubarEditMenu,group:"2_ccp",title:pe("vs/editor/contrib/clipboard/browser/clipboard",{key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:bh.EditorContext,group:OZ,title:pe("vs/editor/contrib/clipboard/browser/clipboard","actions.clipboard.cutLabel","Cut"),when:JT.writable,order:1},{menuId:bh.CommandPalette,group:"",title:pe("vs/editor/contrib/clipboard/browser/clipboard","actions.clipboard.cutLabel","Cut"),order:1},{menuId:bh.SimpleEditorContext,group:OZ,title:pe("vs/editor/contrib/clipboard/browser/clipboard","actions.clipboard.cutLabel","Cut"),when:JT.writable,order:1}]})):void 0,HZ=MZ?FZ(new xh({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:Be?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:bh.MenubarEditMenu,group:"2_ccp",title:pe("vs/editor/contrib/clipboard/browser/clipboard",{key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:bh.EditorContext,group:OZ,title:pe("vs/editor/contrib/clipboard/browser/clipboard","actions.clipboard.copyLabel","Copy"),order:2},{menuId:bh.CommandPalette,group:"",title:pe("vs/editor/contrib/clipboard/browser/clipboard","actions.clipboard.copyLabel","Copy"),order:1},{menuId:bh.SimpleEditorContext,group:OZ,title:pe("vs/editor/contrib/clipboard/browser/clipboard","actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Ch.appendMenuItem(bh.MenubarEditMenu,{submenu:bh.MenubarCopy,title:fe(0,"Copy As"),group:"2_ccp",order:3}),Ch.appendMenuItem(bh.EditorContext,{submenu:bh.EditorContextCopy,title:fe(0,"Copy As"),group:OZ,order:3}),Ch.appendMenuItem(bh.EditorContext,{submenu:bh.EditorContextShare,title:fe(0,"Share"),group:"11_share",order:-1,when:Dd.and(Dd.notEquals("resourceScheme","output"),JT.editorTextFocus)}),Ch.appendMenuItem(bh.EditorTitleContext,{submenu:bh.EditorTitleContextShare,title:fe(0,"Share"),group:"11_share",order:-1}),Ch.appendMenuItem(bh.ExplorerContext,{submenu:bh.ExplorerContextShare,title:fe(0,"Share"),group:"11_share",order:-1});const WZ=PZ?FZ(new xh({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:Be?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:bh.MenubarEditMenu,group:"2_ccp",title:pe("vs/editor/contrib/clipboard/browser/clipboard",{key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:bh.EditorContext,group:OZ,title:pe("vs/editor/contrib/clipboard/browser/clipboard","actions.clipboard.pasteLabel","Paste"),when:JT.writable,order:4},{menuId:bh.CommandPalette,group:"",title:pe("vs/editor/contrib/clipboard/browser/clipboard","actions.clipboard.pasteLabel","Paste"),order:1},{menuId:bh.SimpleEditorContext,group:OZ,title:pe("vs/editor/contrib/clipboard/browser/clipboard","actions.clipboard.pasteLabel","Paste"),when:JT.writable,order:4}]})):void 0;function UZ(e,t){e&&(e.addImplementation(1e4,"code-editor",((e,i)=>{const n=e.get(nd).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const e=n.getOption(37),i=n.getSelection();return i&&i.isEmpty()&&!e||n.getContainerDomNode().ownerDocument.execCommand(t),!0}return!1})),e.addImplementation(0,"generic-dom",((e,i)=>(Zl().execCommand(t),!0))))}UZ(BZ,"cut"),UZ(HZ,"copy"),WZ&&(WZ.addImplementation(1e4,"code-editor",((e,t)=>{var i,n;const o=e.get(nd),s=e.get(WY),r=o.getFocusedCodeEditor();return!(!r||!r.hasTextFocus())&&(r.getContainerDomNode().ownerDocument.execCommand("paste")?null!==(n=null===(i=DZ.get(r))||void 0===i?void 0:i.finishedPaste())&&void 0!==n?n:Promise.resolve():!He||(async()=>{const e=await s.readText();if(""!==e){const t=PE.INSTANCE.get(e);let i=!1,n=null,o=null;t&&(i=r.getOption(37)&&!!t.isFromEmptySelection,n=void 0!==t.multicursorText?t.multicursorText:null,o=t.mode),r.trigger("keyboard","paste",{text:e,pasteOnNewLine:i,multicursorText:n,mode:o})}})())})),WZ.addImplementation(0,"generic-dom",((e,t)=>(Zl().execCommand("paste"),!0)))),MZ&&Vh(class extends Fh{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:pe("vs/editor/contrib/clipboard/browser/clipboard","actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:JT.textInputFocus,primary:0,weight:100}})}run(e,t){t.hasModel()&&(!t.getOption(37)&&t.getSelection().isEmpty()||(ME.forceCopyWithSyntaxHighlighting=!0,t.focus(),t.getContainerDomNode().ownerDocument.execCommand("copy"),ME.forceCopyWithSyntaxHighlighting=!1))}});const VZ=new class{constructor(){this.QuickFix=new MQ("quickfix"),this.Refactor=new MQ("refactor"),this.RefactorExtract=this.Refactor.append("extract"),this.RefactorInline=this.Refactor.append("inline"),this.RefactorMove=this.Refactor.append("move"),this.RefactorRewrite=this.Refactor.append("rewrite"),this.Notebook=new MQ("notebook"),this.Source=new MQ("source"),this.SourceOrganizeImports=this.Source.append("organizeImports"),this.SourceFixAll=this.Source.append("fixAll"),this.SurroundWith=this.Refactor.append("surround")}};var GZ;function zZ(e,t,i){return!(!t.contains(e)||i&&t.contains(i))}!function(e){e.Refactor="refactor",e.RefactorPreview="refactor preview",e.Lightbulb="lightbulb",e.Default="other (default)",e.SourceAction="source action",e.QuickFix="quick fix action",e.FixAll="fix all",e.OrganizeImports="organize imports",e.AutoFix="auto fix",e.QuickFixHover="quick fix hover window",e.OnSave="save participants",e.ProblemsView="problems view"}(GZ||(GZ={}));class KZ{static fromUser(e,t){return e&&"object"==typeof e?new KZ(KZ.getKindFromUser(e,t.kind),KZ.getApplyFromUser(e,t.apply),KZ.getPreferredUser(e)):new KZ(t.kind,t.apply,!1)}static getApplyFromUser(e,t){switch("string"==typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return"string"==typeof e.kind?new MQ(e.kind):t}static getPreferredUser(e){return"boolean"==typeof e.preferred&&e.preferred}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class YZ{constructor(e,t,i){this.action=e,this.provider=t,this.highlightRange=i}async resolve(e){var t;if((null===(t=this.provider)||void 0===t?void 0:t.resolveCodeAction)&&!this.action.edit){let t;try{t=await this.provider.resolveCodeAction(this.action,e)}catch(sue){Qt(sue)}t&&(this.action.edit=t.edit)}return this}}const qZ="editor.action.codeAction",$Z="editor.action.quickFix",jZ="editor.action.autoFix",XZ="editor.action.refactor",JZ="editor.action.sourceAction",QZ="editor.action.organizeImports",ZZ="editor.action.fixAll";class e0 extends mi{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return e.isAI&&!t.isAI?1:!e.isAI&&t.isAI?-1:L(e.diagnostics)?L(t.diagnostics)?e0.codeActionsPreferredComparator(e,t):-1:L(t.diagnostics)?1:e0.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(e0.codeActionsComparator),this.validActions=this.allActions.filter((({action:e})=>!e.disabled))}get hasAutoFix(){return this.validActions.some((({action:e})=>!!e.kind&&VZ.QuickFix.contains(new MQ(e.kind))&&!!e.isPreferred))}get hasAIFix(){return this.validActions.some((({action:e})=>!!e.isAI))}get allAIFixes(){return this.validActions.every((({action:e})=>!!e.isAI))}}const t0={actions:[],documentation:void 0};async function i0(e,t,i,n,o,s){var r;const a=n.filter||{},l={...a,excludes:[...a.excludes||[],VZ.Notebook]},c={only:null===(r=a.include)||void 0===r?void 0:r.value,trigger:n.type},d=new LX(t,s),h=2===n.type,u=(f=t,_=h?l:a,e.all(f).filter((e=>!e.providedCodeActionKinds||e.providedCodeActionKinds.some((e=>{return t=_,i=new MQ(e),!(t.include&&!t.include.intersects(i)||t.excludes&&t.excludes.some((e=>zZ(i,e,t.include)))||!t.includeSourceActions&&VZ.Source.contains(i));var t,i}))))),g=new gi,m=u.map((async e=>{try{o.report(e);const n=await e.provideCodeActions(t,i,c,d.token);if(n&&g.add(n),d.token.isCancellationRequested)return t0;const s=((null==n?void 0:n.actions)||[]).filter((e=>e&&function(e,t){const i=t.kind?new MQ(t.kind):void 0;return!(!(!e.include||i&&e.include.contains(i))||e.excludes&&i&&e.excludes.some((t=>zZ(i,t,e.include)))||!e.includeSourceActions&&i&&VZ.Source.contains(i)||e.onlyIncludePreferredActions&&!t.isPreferred)}(a,e))),r=function(e,t,i){if(!e.documentation)return;const n=e.documentation.map((e=>({kind:new MQ(e.kind),command:e.command})));if(i){let e;for(const t of n)t.kind.contains(i)&&(e?e.kind.contains(t.kind)&&(e=t):e=t);if(e)return null==e?void 0:e.command}for(const o of t)if(o.kind)for(const e of n)if(e.kind.contains(new MQ(o.kind)))return e.command}(e,s,a.include);return{actions:s.map((t=>new YZ(t,e))),documentation:r}}catch(n){if(ti(n))throw n;return Qt(n),t0}})),p=e.onDidChange((()=>{b(e.all(t),u)||d.cancel()}));var f,_;try{const i=await Promise.all(m),o=i.map((e=>e.actions)).flat(),s=[...T(i.map((e=>e.documentation))),...n0(e,t,n,o)];return new e0(o,s,g)}finally{p.dispose(),d.dispose()}}function*n0(e,t,i,n){var o,s,r;if(t&&n.length)for(const a of e.all(t))a._getAdditionalMenuItems&&(yield*null===(o=a._getAdditionalMenuItems)||void 0===o?void 0:o.call(a,{trigger:i.type,only:null===(r=null===(s=i.filter)||void 0===s?void 0:s.include)||void 0===r?void 0:r.value},n.map((e=>e.action))))}var o0;async function s0(e,t,i,n,o=Mi.None){var s;const r=e.get(ZP),a=e.get(md),l=e.get(Rh),c=e.get(kD);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred,reason:i}),await t.resolve(o),!o.isCancellationRequested){if((null===(s=t.action.edit)||void 0===s?void 0:s.edits.length)&&!(await r.apply(t.action.edit,{editor:null==n?void 0:n.editor,label:t.action.title,quotableLabel:t.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:i!==o0.OnSave,showPreview:null==n?void 0:n.preview})).isApplied)return;if(t.action.command)try{await a.executeCommand(t.action.command.id,...t.action.command.arguments||[])}catch(sue){const t="string"==typeof(d=sue)?d:d instanceof Error&&"string"==typeof d.message?d.message:void 0;c.error("string"==typeof t?t:pe("vs/editor/contrib/codeAction/browser/codeAction","applyCodeActionFailed","An unknown error occurred while applying the code action"))}}var d}!function(e){e.OnSave="onSave",e.FromProblemsView="fromProblemsView",e.FromCodeActions="fromCodeActions",e.FromAILightbulb="fromAILightbulb"}(o0||(o0={})),pd.registerCommand("_executeCodeActionProvider",(async function(e,t,i,n,o){if(!(t instanceof An))throw ni();const{codeActionProvider:s}=e.get(lf),r=e.get(od).getModel(t);if(!r)throw ni();const a=Vn.isISelection(i)?Vn.liftSelection(i):Un.isIRange(i)?r.validateRange(i):void 0;if(!a)throw ni();const l="string"==typeof n?new MQ(n):void 0,c=await i0(s,r,a,{type:1,triggerAction:GZ.Default,filter:{includeSourceActions:!0,include:l}},PF.None,Mi.None),d=[],h=Math.min(c.validActions.length,"number"==typeof o?o:0);for(let u=0;ue.action))}finally{setTimeout((()=>c.dispose()),100)}}));var r0,a0=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},l0=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let c0=r0=class{constructor(e){this.keybindingService=e}getResolver(){const e=new us((()=>this.keybindingService.getKeybindings().filter((e=>r0.codeActionCommands.indexOf(e.command)>=0)).filter((e=>e.resolvedKeybinding)).map((e=>{let t=e.commandArgs;return e.command===QZ?t={kind:VZ.SourceOrganizeImports.value}:e.command===ZZ&&(t={kind:VZ.SourceFixAll.value}),{resolvedKeybinding:e.resolvedKeybinding,...KZ.fromUser(t,{kind:MQ.None,apply:"never"})}}))));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return null==i?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new MQ(e.kind);return t.filter((e=>e.kind.contains(i))).filter((t=>!t.preferred||e.isPreferred)).reduceRight(((e,t)=>e?e.kind.contains(t.kind)?t:e:t),void 0)}};c0.codeActionCommands=[XZ,qZ,JZ,QZ,ZZ],c0=r0=a0([l0(0,tT)],c0),ib("symbolIcon.arrayForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.booleanForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.colorForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.constantForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.fileForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.folderForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.keyForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.keywordForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.moduleForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.namespaceForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.nullForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.numberForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.objectForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.operatorForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.packageForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.propertyForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.referenceForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.snippetForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.stringForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.structForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.textForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.typeParameterForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.unitForeground",{dark:ub,light:ub,hcDark:ub,hcLight:ub},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ib("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},pe("vs/editor/contrib/symbolIcons/browser/symbolIcons","symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));const d0=Object.freeze({kind:MQ.Empty,title:pe("vs/editor/contrib/codeAction/browser/codeActionMenu","codeAction.widget.id.more","More Actions...")}),h0=Object.freeze([{kind:VZ.QuickFix,title:pe("vs/editor/contrib/codeAction/browser/codeActionMenu","codeAction.widget.id.quickfix","Quick Fix")},{kind:VZ.RefactorExtract,title:pe("vs/editor/contrib/codeAction/browser/codeActionMenu","codeAction.widget.id.extract","Extract"),icon:Yn.wrench},{kind:VZ.RefactorInline,title:pe("vs/editor/contrib/codeAction/browser/codeActionMenu","codeAction.widget.id.inline","Inline"),icon:Yn.wrench},{kind:VZ.RefactorRewrite,title:pe("vs/editor/contrib/codeAction/browser/codeActionMenu","codeAction.widget.id.convert","Rewrite"),icon:Yn.wrench},{kind:VZ.RefactorMove,title:pe("vs/editor/contrib/codeAction/browser/codeActionMenu","codeAction.widget.id.move","Move"),icon:Yn.wrench},{kind:VZ.SurroundWith,title:pe("vs/editor/contrib/codeAction/browser/codeActionMenu","codeAction.widget.id.surround","Surround With"),icon:Yn.surroundWith},{kind:VZ.Source,title:pe("vs/editor/contrib/codeAction/browser/codeActionMenu","codeAction.widget.id.source","Source Action"),icon:Yn.symbolFile},d0]);var u0,g0,m0=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},p0=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};!function(e){e.Hidden={type:0},e.Showing=class{constructor(e,t,i,n){this.actions=e,this.trigger=t,this.editorPosition=i,this.widgetPosition=n,this.type=1}}}(g0||(g0={}));let f0=u0=class extends mi{constructor(e,t,i){super(),this._editor=e,this._keybindingService=t,this._onClick=this._register(new Ri),this.onClick=this._onClick.event,this._state=g0.Hidden,this._iconClasses=[],this._domNode=yc("div.lightBulbWidget"),this._domNode.role="listbox",this._register(sE.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent((e=>{const t=this._editor.getModel();(1!==this.state.type||!t||this.state.editorPosition.lineNumber>=t.getLineCount())&&this.hide()}))),this._register(function(e,t,i){return n=e,o=Rl(gl(e),t),s=i,yl(n,Ue&&br?mc.POINTER_DOWN:mc.MOUSE_DOWN,o,s);var n,o,s}(this._domNode,(e=>{if(1!==this.state.type)return;this._editor.focus(),e.preventDefault();const{top:t,height:i}=Hl(this._domNode),n=this._editor.getOption(67);let o=Math.floor(n/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber{1==(1&e.buttons)&&this.hide()}))),this._register(Ci.runAndSubscribe(this._keybindingService.onDidUpdateKeybindings,(()=>{var e,t,i,n;this._preferredKbLabel=null!==(t=null===(e=this._keybindingService.lookupKeybinding(jZ))||void 0===e?void 0:e.getLabel())&&void 0!==t?t:void 0,this._quickFixKbLabel=null!==(n=null===(i=this._keybindingService.lookupKeybinding($Z))||void 0===i?void 0:i.getLabel())&&void 0!==n?n:void 0,this._updateLightBulbTitleAndIcon()})))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();if(!this._editor.getOptions().get(65).enabled)return this.hide();const n=this._editor.getModel();if(!n)return this.hide();const{lineNumber:o,column:s}=n.validatePosition(i),r=n.getOptions().tabSize,a=this._editor.getOptions().get(50),l=Wy(n.getLineContent(o),r),c=e=>e>2&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1);let d=o,h=1;if(!(a.spaceWidth*l>22)){if(o>1&&!c(o-1))d-=1;else if(o=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},b0=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const v0="acceptSelectedCodeAction",S0="previewSelectedCodeAction";class C0{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){var n,o;i.text.textContent=null!==(o=null===(n=e.group)||void 0===n?void 0:n.title)&&void 0!==o?o:""}disposeTemplate(e){}}let E0=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");return i.className="title",e.append(i),{container:e,icon:t,text:i,keybinding:new Xz(e,qe)}}renderElement(e,t,i){var n,o,s;if((null===(n=e.group)||void 0===n?void 0:n.icon)?(i.icon.className=gd.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=Z_(e.group.icon.color.id))):(i.icon.className=gd.asClassName(Yn.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=L0(e.label),i.keybinding.set(e.keybinding),function(e,...t){e?Rc(...t):Lc(...t)}(!!e.keybinding,i.keybinding.element);const r=null===(o=this._keybindingService.lookupKeybinding(v0))||void 0===o?void 0:o.getLabel(),a=null===(s=this._keybindingService.lookupKeybinding(S0))||void 0===s?void 0:s.getLabel();i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:r&&a?this._supportsPreview&&e.canPreview?i.container.title=pe("vs/platform/actionWidget/browser/actionList",{key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to Apply, Shift+F2 to Preview"']},"{0} to Apply, {1} to Preview",r,a):i.container.title=pe("vs/platform/actionWidget/browser/actionList",{key:"label",comment:['placeholder is a keybinding, e.g "F2 to Apply"']},"{0} to Apply",r):i.container.title=""}disposeTemplate(e){e.keybinding.dispose()}};E0=_0([b0(1,tT)],E0);class w0 extends UIEvent{constructor(){super("acceptSelectedAction")}}class T0 extends UIEvent{constructor(){super("previewSelectedAction")}}function y0(e){if("action"===e.kind)return e.label}let R0=class extends mi{constructor(e,t,i,n,o,s){super(),this._delegate=n,this._contextViewService=o,this._keybindingService=s,this._actionLineHeight=24,this._headerLineHeight=26,this.cts=this._register(new Fi),this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const r={getHeight:e=>"header"===e.kind?this._headerLineHeight:this._actionLineHeight,getTemplateId:e=>e.kind};this._list=this._register(new tW(e,this.domNode,r,[new E0(t,this._keybindingService),new C0],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:y0},accessibilityProvider:{getAriaLabel:e=>{if("action"===e.kind){let t=e.label?L0(null==e?void 0:e.label):"";return e.disabled&&(t=pe("vs/platform/actionWidget/browser/actionList",{key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",t,e.disabled)),t}return null},getWidgetAriaLabel:()=>pe("vs/platform/actionWidget/browser/actionList",{key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:e=>"action"===e.kind?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(AW),this._register(this._list.onMouseClick((e=>this.onListClick(e)))),this._register(this._list.onMouseOver((e=>this.onListHover(e)))),this._register(this._list.onDidChangeFocus((()=>this.onFocus()))),this._register(this._list.onDidChangeSelection((e=>this.onListSelection(e)))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&"action"===e.kind}hide(e){this._delegate.onHide(e),this.cts.cancel(),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter((e=>"header"===e.kind)).length,i=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(i);let n=e;if(this._allMenuItems.length>=50)n=380;else{const t=this._allMenuItems.map(((e,t)=>{const i=this.domNode.ownerDocument.getElementById(this._list.getElementID(t));if(i){i.style.width="auto";const e=i.getBoundingClientRect().width;return i.style.width="",e}return 0}));n=Math.max(...t,e)}const o=Math.min(i,.7*this.domNode.ownerDocument.body.clientHeight);return this._list.layout(o,n),this.domNode.style.height=`${o}px`,this._list.domFocus(),n}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(0===t.length)return;const i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;const o=e?new T0:new w0;this._list.setSelection([i],o)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof T0):this._list.setSelection([])}onFocus(){var e,t;const i=this._list.getFocus();if(0===i.length)return;const n=i[0],o=this._list.element(n);null===(t=(e=this._delegate).onFocus)||void 0===t||t.call(e,o.item)}async onListHover(e){const t=e.element;if(t&&t.item&&this.focusCondition(t)){if(this._delegate.onHover&&!t.disabled&&"action"===t.kind){const e=await this._delegate.onHover(t.item,this.cts.token);t.canPreview=e?e.canPreview:void 0}e.index&&this._list.splice(e.index,1,[t])}this._list.setFocus("number"==typeof e.index?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};function L0(e){return e.replace(/\r\n|\r|\n/g," ")}R0=_0([b0(4,Cx),b0(5,tT)],R0);var I0=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},A0=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};ib("actionBar.toggledBackground",{dark:Hv,light:Hv,hcDark:Hv,hcLight:Hv},pe("vs/platform/actionWidget/browser/actionWidget","actionBar.toggledBackground","Background color for toggled action items in action bar."));const N0={Visible:new Qd("codeActionMenuVisible",!1,pe("vs/platform/actionWidget/browser/actionWidget","codeActionMenuVisible","Whether the action widget list is visible"))},k0=id("actionWidgetService");let D0=class extends mi{get isVisible(){return N0.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new pi)}show(e,t,i,n,o,s,r){const a=N0.Visible.bindTo(this._contextKeyService),l=this._instantiationService.createInstance(R0,e,t,i,n);this._contextViewService.showContextView({getAnchor:()=>o,render:e=>(a.set(!0),this._renderWidget(e,l,null!=r?r:[])),onHide:e=>{a.reset(),this._onWidgetClosed(e)}},s,!1)}acceptSelected(e){var t;null===(t=this._list.value)||void 0===t||t.acceptSelected(e)}focusPrevious(){var e,t;null===(t=null===(e=this._list)||void 0===e?void 0:e.value)||void 0===t||t.focusPrevious()}focusNext(){var e,t;null===(t=null===(e=this._list)||void 0===e?void 0:e.value)||void 0===t||t.focusNext()}hide(e){var t;null===(t=this._list.value)||void 0===t||t.hide(e),this._list.clear()}_renderWidget(e,t,i){var n;const o=document.createElement("div");if(o.classList.add("action-widget"),e.appendChild(o),this._list.value=t,!this._list.value)throw new Error("List has no value");o.appendChild(this._list.value.domNode);const s=new gi,r=document.createElement("div"),a=e.appendChild(r);a.classList.add("context-view-block"),s.add(yl(a,mc.MOUSE_DOWN,(e=>e.stopPropagation())));const l=document.createElement("div"),c=e.appendChild(l);c.classList.add("context-view-pointerBlock"),s.add(yl(c,mc.POINTER_MOVE,(()=>c.remove()))),s.add(yl(c,mc.MOUSE_DOWN,(()=>c.remove())));let d=0;if(i.length){const e=this._createActionBar(".action-widget-action-bar",i);e&&(o.appendChild(e.getContainer().parentElement),s.add(e),d=e.getContainer().offsetWidth)}const h=null===(n=this._list.value)||void 0===n?void 0:n.layout(d);o.style.width=`${h}px`;const u=s.add(bc(e));return s.add(u.onDidBlur((()=>this.hide(!0)))),s}_createActionBar(e,t){if(!t.length)return;const i=yc(e),n=new zW(i);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;null===(t=this._list.value)||void 0===t||t.hide(e)}};D0=I0([A0(0,Cx),A0(1,Zd),A0(2,td)],D0),ng(k0,D0,1);const O0=1100;yh(class extends Th{constructor(){super({id:"hideCodeActionWidget",title:fe(0,"Hide action widget"),precondition:N0.Visible,keybinding:{weight:O0,primary:9,secondary:[1033]}})}run(e){e.get(k0).hide(!0)}}),yh(class extends Th{constructor(){super({id:"selectPrevCodeAction",title:fe(0,"Select previous action"),precondition:N0.Visible,keybinding:{weight:O0,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(e){const t=e.get(k0);t instanceof D0&&t.focusPrevious()}}),yh(class extends Th{constructor(){super({id:"selectNextCodeAction",title:fe(0,"Select next action"),precondition:N0.Visible,keybinding:{weight:O0,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(e){const t=e.get(k0);t instanceof D0&&t.focusNext()}}),yh(class extends Th{constructor(){super({id:v0,title:fe(0,"Accept selected action"),precondition:N0.Visible,keybinding:{weight:O0,primary:3,secondary:[2137]}})}run(e){const t=e.get(k0);t instanceof D0&&t.acceptSelected()}}),yh(class extends Th{constructor(){super({id:S0,title:fe(0,"Preview selected action"),precondition:N0.Visible,keybinding:{weight:O0,primary:2051}})}run(e){const t=e.get(k0);t instanceof D0&&t.acceptSelected(!0)}});const x0=new Qd("supportedCodeAction",""),M0="_typescript.applyFixAllCodeAction";class P0 extends mi{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new Gr),this._register(this._markerService.onMarkerChanged((e=>this._onMarkerChanges(e)))),this._register(this._editor.onDidChangeCursorPosition((()=>this._tryAutoTrigger())))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some((e=>HI(e,t.uri)))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet((()=>{this.trigger({type:2,triggerAction:GZ.Default})}),this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getSelection();if(1===e.type)return t;const i=this._editor.getOption(65).enabled;if(i!==Nt.Off){if(i===Nt.On)return t;if(i===Nt.OnCode){if(!t.isEmpty())return t;const e=this._editor.getModel(),{lineNumber:i,column:n}=t.getPosition(),o=e.getLineContent(i);if(0===o.length)return;if(1===n){if(/\s/.test(o[0]))return}else if(n===e.getLineMaxColumn(i)){if(/\s/.test(o[o.length-1]))return}else if(/\s/.test(o[n-2])&&/\s/.test(o[n-1]))return}return t}}}var F0;!function(e){e.Empty={type:0},e.Triggered=class{constructor(e,t,i){this.trigger=e,this.position=t,this._cancellablePromise=i,this.type=1,this.actions=i.catch((e=>{if(ti(e))return B0;throw e}))}cancel(){this._cancellablePromise.cancel()}}}(F0||(F0={}));const B0=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1});class H0 extends mi{constructor(e,t,i,n,o,s){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=o,this._configurationService=s,this._codeActionOracle=this._register(new pi),this._state=F0.Empty,this._onDidChangeState=this._register(new Ri),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=x0.bindTo(n),this._register(this._editor.onDidChangeModel((()=>this._update()))),this._register(this._editor.onDidChangeModelLanguage((()=>this._update()))),this._register(this._registry.onDidChange((()=>this._update()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(65)&&this._update()}))),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(F0.Empty,!0))}_settingEnabledNearbyQuickfixes(){var e;const t=null===(e=this._editor)||void 0===e?void 0:e.getModel();return!!this._configurationService&&this._configurationService.getValue("editor.codeActionWidget.includeNearbyQuickFixes",{resource:null==t?void 0:t.uri})}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(F0.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(91)){const t=this._registry.all(e).flatMap((e=>{var t;return null!==(t=e.providedCodeActionKinds)&&void 0!==t?t:[]}));this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new P0(this._editor,this._markerService,(t=>{var i;if(!t)return void this.setState(F0.Empty);const n=t.selection.getStartPosition(),o=Mr((async i=>{var n,o,s,r,a,l,c,d,h,u;if(this._settingEnabledNearbyQuickfixes()&&1===t.trigger.type&&(t.trigger.triggerAction===GZ.QuickFix||(null===(o=null===(n=t.trigger.filter)||void 0===n?void 0:n.include)||void 0===o?void 0:o.contains(VZ.QuickFix)))){const n=await i0(this._registry,e,t.selection,t.trigger,PF.None,i),o=[...n.allActions];if(i.isCancellationRequested)return B0;const g=null===(s=n.validActions)||void 0===s?void 0:s.some((e=>!!e.action.kind&&VZ.QuickFix.contains(new MQ(e.action.kind)))),m=this._markerService.read({resource:e.uri});if(g){for(const e of n.validActions)(null===(a=null===(r=e.action.command)||void 0===r?void 0:r.arguments)||void 0===a?void 0:a.some((e=>"string"==typeof e&&e.includes(M0))))&&(e.action.diagnostics=[...m.filter((e=>e.relatedInformation))]);return{validActions:n.validActions,allActions:o,documentation:n.documentation,hasAutoFix:n.hasAutoFix,hasAIFix:n.hasAIFix,allAIFixes:n.allAIFixes,dispose:()=>{n.dispose()}}}if(!g&&m.length>0){const s=t.selection.getPosition();let r=s,a=Number.MAX_VALUE;const g=[...n.validActions];for(const f of m){const p=f.endColumn,_=f.endLineNumber,b=f.startLineNumber;if(_===s.lineNumber||b===s.lineNumber){r=new Wn(_,p);const f={type:t.trigger.type,triggerAction:t.trigger.triggerAction,filter:{include:(null===(l=t.trigger.filter)||void 0===l?void 0:l.include)?null===(c=t.trigger.filter)||void 0===c?void 0:c.include:VZ.QuickFix},autoApply:t.trigger.autoApply,context:{notAvailableMessage:(null===(d=t.trigger.context)||void 0===d?void 0:d.notAvailableMessage)||"",position:r}},b=new Vn(r.lineNumber,r.column,r.lineNumber,r.column),v=await i0(this._registry,e,b,f,PF.None,i);if(0!==v.validActions.length){for(const e of v.validActions)(null===(u=null===(h=e.action.command)||void 0===h?void 0:h.arguments)||void 0===u?void 0:u.some((e=>"string"==typeof e&&e.includes(M0))))&&(e.action.diagnostics=[...m.filter((e=>e.relatedInformation))]);0===n.allActions.length&&o.push(...v.allActions),Math.abs(s.column-p)i.findIndex((t=>t.action.title===e.action.title))===t));return p.sort(((e,t)=>e.action.isPreferred&&!t.action.isPreferred?-1:!e.action.isPreferred&&t.action.isPreferred||e.action.isAI&&!t.action.isAI?1:!e.action.isAI&&t.action.isAI?-1:0)),{validActions:p,allActions:o,documentation:n.documentation,hasAutoFix:n.hasAutoFix,hasAIFix:n.hasAIFix,allAIFixes:n.allAIFixes,dispose:()=>{n.dispose()}}}}return i0(this._registry,e,t.selection,t.trigger,PF.None,i)}));1===t.trigger.type&&(null===(i=this._progressService)||void 0===i||i.showWhile(o,250));const s=new F0.Triggered(t.trigger,n,o);let r=!1;1===this._state.type&&(r=1===this._state.trigger.type&&1===s.type&&2===s.trigger.type&&this._state.position!==s.position),r?setTimeout((()=>{this.setState(s)}),500):this.setState(s)}),void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:GZ.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;null===(t=this._codeActionOracle.value)||void 0===t||t.trigger(e)}setState(e,t){e!==this._state&&(1===this._state.type&&this._state.cancel(),this._state=e,t||this._disposed||this._onDidChangeState.fire(e))}}var W0,U0=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},V0=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let G0=W0=class extends mi{static get(e){return e.getContribution(W0.ID)}constructor(e,t,i,n,o,s,r,a,l,c,d){super(),this._commandService=r,this._configurationService=a,this._actionWidgetService=l,this._instantiationService=c,this._telemetryService=d,this._activeCodeActions=this._register(new pi),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new H0(this._editor,o.codeActionProvider,t,i,s,a)),this._register(this._model.onDidChangeState((e=>this.update(e)))),this._lightBulbWidget=new us((()=>{const e=this._editor.getContribution(f0.ID);return e&&this._register(e.onClick((e=>this.showCodeActionsFromLightbulb(e.actions,e)))),e})),this._resolver=n.createInstance(c0),this._register(this._editor.onDidLayoutChange((()=>this._actionWidgetService.hide())))}dispose(){this._disposed=!0,super.dispose()}async showCodeActionsFromLightbulb(e,t){if(this._telemetryService.publicLog2("codeAction.showCodeActionsFromLightbulb",{codeActionListLength:e.validActions.length,codeActions:e.validActions.map((e=>e.action.title)),codeActionProviders:e.validActions.map((e=>{var t,i;return null!==(i=null===(t=e.provider)||void 0===t?void 0:t.displayName)&&void 0!==i?i:""}))}),e.allAIFixes&&1===e.validActions.length){const t=e.validActions[0],i=t.action.command;return i&&"inlineChat.start"===i.id&&i.arguments&&i.arguments.length>=1&&(i.arguments[0]={...i.arguments[0],autoSend:!1}),void(await this._applyCodeAction(t,!1,!1,o0.FromAILightbulb))}await this.showCodeActionList(e,t,{includeDisabledActions:!1,fromLightbulb:!0})}showCodeActions(e,t,i){return this.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n){var o;if(!this._editor.hasModel())return;null===(o=vZ.get(this._editor))||void 0===o||o.closeMessage();const s=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:s}})}_trigger(e){return this._model.trigger(e)}async _applyCodeAction(e,t,i,n){try{await this._instantiationService.invokeFunction(s0,e,n,{preview:i,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:GZ.QuickFix,filter:{}})}}async update(e){var t,i,n,o,s,r,a;if(1!==e.type)return void(null===(t=this._lightBulbWidget.rawValue)||void 0===t||t.hide());let l;try{l=await e.actions}catch(sue){return void Jt(sue)}if(!this._disposed)if(null===(i=this._lightBulbWidget.value)||void 0===i||i.update(l,e.trigger,e.position),1===e.trigger.type){if(null===(n=e.trigger.filter)||void 0===n?void 0:n.include){const t=this.tryGetValidActionToApply(e.trigger,l);if(t){try{null===(o=this._lightBulbWidget.value)||void 0===o||o.hide(),await this._applyCodeAction(t,!1,!1,o0.FromCodeActions)}finally{l.dispose()}return}if(e.trigger.context){const t=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,l);if(t&&t.action.disabled)return null===(s=vZ.get(this._editor))||void 0===s||s.showMessage(t.action.disabled,e.trigger.context.position),void l.dispose()}}const t=!!(null===(r=e.trigger.filter)||void 0===r?void 0:r.include);if(e.trigger.context&&(!l.allActions.length||!t&&!l.validActions.length))return null===(a=vZ.get(this._editor))||void 0===a||a.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=l,void l.dispose();this._activeCodeActions.value=l,this.showCodeActionList(l,this.toCoords(e.position),{includeDisabledActions:t,fromLightbulb:!1})}else this._actionWidgetService.isVisible?l.dispose():this._activeCodeActions.value=l}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?t.allActions.find((({action:e})=>e.disabled)):void 0}tryGetValidActionToApply(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0}async showCodeActionList(e,t,i){const n=this._editor.createDecorationsCollection(),o=this._editor.getDomNode();if(!o)return;const s=i.includeDisabledActions&&(this._showDisabled||0===e.validActions.length)?e.allActions:e.validActions;if(!s.length)return;const r=Wn.isIPosition(t)?this.toCoords(t):t,a={onSelect:async(e,t)=>{this._applyCodeAction(e,!0,!!t,i.fromLightbulb?o0.FromAILightbulb:o0.FromCodeActions),this._actionWidgetService.hide(!1),n.clear()},onHide:t=>{var o;null===(o=this._editor)||void 0===o||o.focus(),n.clear(),i.fromLightbulb&&void 0!==t&&this._telemetryService.publicLog2("codeAction.showCodeActionList.onHide",{codeActionListLength:e.validActions.length,didCancel:t})},onHover:async(e,t)=>{var i;if(t.isCancellationRequested)return;let n=!1;const o=e.action.kind;if(o){const e=new MQ(o);n=[VZ.RefactorExtract,VZ.RefactorInline,VZ.RefactorRewrite,VZ.RefactorMove,VZ.Source].some((t=>t.contains(e)))}return{canPreview:n||!!(null===(i=e.action.edit)||void 0===i?void 0:i.edits.length)}},onFocus:e=>{var t,i;if(e&&e.action){const o=e.action.ranges,s=e.action.diagnostics;if(n.clear(),o&&o.length>0){const e=s&&(null==s?void 0:s.length)>1?s.map((e=>({range:e,options:W0.DECORATION}))):o.map((e=>({range:e,options:W0.DECORATION})));n.set(e)}else if(s&&s.length>0){const e=s.map((e=>({range:e,options:W0.DECORATION})));n.set(e);const o=s[0];o.startLineNumber&&o.startColumn&&I_(pe("vs/editor/contrib/codeAction/browser/codeActionController","editingNewSelection","Context: {0} at line {1} and column {2}.",null===(i=null===(t=this._editor.getModel())||void 0===t?void 0:t.getWordAtPosition({lineNumber:o.startLineNumber,column:o.startColumn}))||void 0===i?void 0:i.word,o.startLineNumber,o.startColumn))}}else n.clear()}};this._actionWidgetService.show("codeActionWidget",!0,function(e,t,i){if(!t)return e.map((e=>{var t;return{kind:"action",item:e,group:d0,disabled:!!e.action.disabled,label:e.action.disabled||e.action.title,canPreview:!!(null===(t=e.action.edit)||void 0===t?void 0:t.edits.length)}}));const n=h0.map((e=>({group:e,actions:[]})));for(const s of e){const e=s.action.kind?new MQ(s.action.kind):MQ.None;for(const t of n)if(t.group.kind.contains(e)){t.actions.push(s);break}}const o=[];for(const s of n)if(s.actions.length){o.push({kind:"header",group:s.group});for(const e of s.actions){const t=s.group;o.push({kind:"action",item:e,group:e.action.isAI?{title:t.title,kind:t.kind,icon:Yn.sparkle}:t,label:e.action.title,disabled:!!e.action.disabled,keybinding:i(e.action)})}}return o}(s,this._shouldShowHeaders(),this._resolver.getResolver()),a,r,o,this._getActionBarActions(e,t,i))}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=Hl(this._editor.getDomNode());return{x:i.left+t.left,y:i.top+t.top+t.height}}_shouldShowHeaders(){var e;const t=null===(e=this._editor)||void 0===e?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:null==t?void 0:t.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const n=e.documentation.map((e=>{var t;return{id:e.id,label:e.title,tooltip:null!==(t=e.tooltip)&&void 0!==t?t:"",class:void 0,enabled:!0,run:()=>{var t;return this._commandService.executeCommand(e.id,...null!==(t=e.arguments)&&void 0!==t?t:[])}}}));return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:pe("vs/editor/contrib/codeAction/browser/codeActionController","hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:pe("vs/editor/contrib/codeAction/browser/codeActionController","showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),n}};function z0(e){return Dd.regex(x0.keys()[0],new RegExp("(\\s|^)"+bs(e.value)+"\\b"))}G0.ID="editor.contrib.codeActionController",G0.DECORATION=VN.register({description:"quickfix-highlight",className:"quickfix-edit-highlight"}),G0=W0=U0([V0(1,mU),V0(2,Zd),V0(3,td),V0(4,lf),V0(5,FF),V0(6,md),V0(7,$u),V0(8,k0),V0(9,td),V0(10,Rh)],G0),XE(((e,t)=>{var i;(i=e.getColor(Gb))&&t.addRule(`.monaco-editor .quickfix-edit-highlight { background-color: ${i}; }`);const n=e.getColor(zb);n&&t.addRule(`.monaco-editor .quickfix-edit-highlight { border: 1px ${NC(e.type)?"dotted":"solid"} ${n}; box-sizing: border-box; }`)}));const K0={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:pe("vs/editor/contrib/codeAction/browser/codeActionCommands","args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:pe("vs/editor/contrib/codeAction/browser/codeActionCommands","args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[pe("vs/editor/contrib/codeAction/browser/codeActionCommands","args.schema.apply.first","Always apply the first returned code action."),pe("vs/editor/contrib/codeAction/browser/codeActionCommands","args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),pe("vs/editor/contrib/codeAction/browser/codeActionCommands","args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:pe("vs/editor/contrib/codeAction/browser/codeActionCommands","args.schema.preferred","Controls if only preferred code actions should be returned.")}}};function Y0(e,t,i,n,o=GZ.Default){if(e.hasModel()){const s=G0.get(e);null==s||s.manualTriggerAtCurrentPosition(t,o,i,n)}}zh(G0.ID,G0,3),zh(f0.ID,f0,4),Vh(class extends Fh{constructor(){super({id:$Z,label:pe("vs/editor/contrib/codeAction/browser/codeActionCommands","quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:Dd.and(JT.writable,JT.hasCodeActionsProvider),kbOpts:{kbExpr:JT.textInputFocus,primary:2137,weight:100}})}run(e,t){return Y0(t,pe("vs/editor/contrib/codeAction/browser/codeActionCommands","editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,GZ.QuickFix)}}),Vh(class extends Fh{constructor(){super({id:XZ,label:pe("vs/editor/contrib/codeAction/browser/codeActionCommands","refactor.label","Refactor..."),alias:"Refactor...",precondition:Dd.and(JT.writable,JT.hasCodeActionsProvider),kbOpts:{kbExpr:JT.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:Dd.and(JT.writable,z0(VZ.Refactor))},metadata:{description:"Refactor...",args:[{name:"args",schema:K0}]}})}run(e,t,i){const n=KZ.fromUser(i,{kind:VZ.Refactor,apply:"never"});return Y0(t,"string"==typeof(null==i?void 0:i.kind)?n.preferred?pe("vs/editor/contrib/codeAction/browser/codeActionCommands","editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):pe("vs/editor/contrib/codeAction/browser/codeActionCommands","editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):n.preferred?pe("vs/editor/contrib/codeAction/browser/codeActionCommands","editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):pe("vs/editor/contrib/codeAction/browser/codeActionCommands","editor.action.refactor.noneMessage","No refactorings available"),{include:VZ.Refactor.contains(n.kind)?n.kind:MQ.None,onlyIncludePreferredActions:n.preferred},n.apply,GZ.Refactor)}}),Vh(class extends Fh{constructor(){super({id:JZ,label:pe("vs/editor/contrib/codeAction/browser/codeActionCommands","source.label","Source Action..."),alias:"Source Action...",precondition:Dd.and(JT.writable,JT.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:Dd.and(JT.writable,z0(VZ.Source))},metadata:{description:"Source Action...",args:[{name:"args",schema:K0}]}})}run(e,t,i){const n=KZ.fromUser(i,{kind:VZ.Source,apply:"never"});return Y0(t,"string"==typeof(null==i?void 0:i.kind)?n.preferred?pe("vs/editor/contrib/codeAction/browser/codeActionCommands","editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):pe("vs/editor/contrib/codeAction/browser/codeActionCommands","editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?pe("vs/editor/contrib/codeAction/browser/codeActionCommands","editor.action.source.noneMessage.preferred","No preferred source actions available"):pe("vs/editor/contrib/codeAction/browser/codeActionCommands","editor.action.source.noneMessage","No source actions available"),{include:VZ.Source.contains(n.kind)?n.kind:MQ.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,GZ.SourceAction)}}),Vh(class extends Fh{constructor(){super({id:QZ,label:pe("vs/editor/contrib/codeAction/browser/codeActionCommands","organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:Dd.and(JT.writable,z0(VZ.SourceOrganizeImports)),kbOpts:{kbExpr:JT.textInputFocus,primary:1581,weight:100}})}run(e,t){return Y0(t,pe("vs/editor/contrib/codeAction/browser/codeActionCommands","editor.action.organize.noneMessage","No organize imports action available"),{include:VZ.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",GZ.OrganizeImports)}}),Vh(class extends Fh{constructor(){super({id:jZ,label:pe("vs/editor/contrib/codeAction/browser/codeActionCommands","autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:Dd.and(JT.writable,z0(VZ.QuickFix)),kbOpts:{kbExpr:JT.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return Y0(t,pe("vs/editor/contrib/codeAction/browser/codeActionCommands","editor.action.autoFix.noneMessage","No auto fixes available"),{include:VZ.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",GZ.AutoFix)}}),Vh(class extends Fh{constructor(){super({id:ZZ,label:pe("vs/editor/contrib/codeAction/browser/codeActionCommands","fixAll.label","Fix All"),alias:"Fix All",precondition:Dd.and(JT.writable,z0(VZ.SourceFixAll))})}run(e,t){return Y0(t,pe("vs/editor/contrib/codeAction/browser/codeActionCommands","fixAll.noneMessage","No fix all action available"),{include:VZ.SourceFixAll,includeSourceActions:!0},"ifSingle",GZ.FixAll)}}),Uh(new class extends Ph{constructor(){super({id:qZ,precondition:Dd.and(JT.writable,JT.hasCodeActionsProvider),metadata:{description:"Trigger a code action",args:[{name:"args",schema:K0}]}})}runEditorCommand(e,t,i){const n=KZ.fromUser(i,{kind:MQ.Empty,apply:"ifSingle"});return Y0(t,"string"==typeof(null==i?void 0:i.kind)?n.preferred?pe("vs/editor/contrib/codeAction/browser/codeActionCommands","editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):pe("vs/editor/contrib/codeAction/browser/codeActionCommands","editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?pe("vs/editor/contrib/codeAction/browser/codeActionCommands","editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):pe("vs/editor/contrib/codeAction/browser/codeActionCommands","editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}),dh.as(lg).registerConfiguration({...oF,properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:pe("vs/editor/contrib/codeAction/browser/codeActionContributions","showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}),dh.as(lg).registerConfiguration({...oF,properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:"boolean",scope:5,description:pe("vs/editor/contrib/codeAction/browser/codeActionContributions","includeNearbyQuickFixes","Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),default:!0}}});class q0{constructor(){this.lenses=[],this._disposables=new gi}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}async function $0(e,t,i){const n=e.ordered(t),o=new Map,s=new q0,r=n.map((async(e,n)=>{o.set(e,n);try{const n=await Promise.resolve(e.provideCodeLenses(t,i));n&&s.add(n,e)}catch(r){Qt(r)}}));return await Promise.all(r),s.lenses=s.lenses.sort(((e,t)=>e.symbol.range.startLineNumbert.symbol.range.startLineNumber?1:o.get(e.provider)o.get(t.provider)?1:e.symbol.range.startColumnt.symbol.range.startColumn?1:0)),s}pd.registerCommand("_executeCodeLensProvider",(function(e,...t){let[i,n]=t;ie(An.isUri(i)),ie("number"==typeof n||!n);const{codeLensProvider:o}=e.get(lf),s=e.get(od).getModel(i);if(!s)throw ni();const r=[],a=new gi;return $0(o,s,Mi.None).then((e=>{a.add(e);const t=[];for(const i of e.lenses)null==n||Boolean(i.symbol.command)?r.push(i.symbol):n-- >0&&i.provider.resolveCodeLens&&t.push(Promise.resolve(i.provider.resolveCodeLens(s,i.symbol,Mi.None)).then((e=>r.push(e||i.symbol))));return Promise.all(t)})).then((()=>r)).finally((()=>{setTimeout((()=>a.dispose()),100)}))}));var j0=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},X0=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const J0=id("ICodeLensCache");class Q0{constructor(e,t){this.lineCount=e,this.data=t}}let Z0=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new um(20,.75),Il(cs,(()=>e.remove("codelens/cache",1)));const t="codelens/cache2",i=e.get(t,1,"{}");this._deserialize(i),Ci.once(e.onWillSaveState)((i=>{i.reason===SW.SHUTDOWN&&e.store(t,this._serialize(),1,1)}))}put(e,t){const i=t.lenses.map((e=>{var t;return{range:e.symbol.range,command:e.symbol.command&&{id:"",title:null===(t=e.symbol.command)||void 0===t?void 0:t.title}}})),n=new q0;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const o=new Q0(e.getLineCount(),n);this._cache.set(e.uri.toString(),o)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const e of i.data.lenses)n.add(e.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const e in t){const i=t[e],n=[];for(const e of i.lines)n.push({range:new Un(e,1,e,11)});const o=new q0;o.add({lenses:n,dispose(){}},this._fakeProvider),this._cache.set(e,new Q0(i.lineCount,o))}}catch(sue){}}};Z0=j0([X0(0,vW)],Z0),ng(J0,Z0,1);class e1{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return 0!==this._lastHeight&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class t1{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+t1._idPool++,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let o=0;o{e.symbol.command&&a.push(e.symbol),i.addDecoration({range:e.symbol.range,options:n1},(e=>this._decorationIds[t]=e)),r=r?Un.plusRange(r,e.symbol.range):Un.lift(e.symbol.range)})),this._viewZone=new e1(r.startLineNumber-1,o,s),this._viewZoneId=n.addZone(this._viewZone),a.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(a,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new t1(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],null==t||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some(((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!(!i||Un.isEmpty(n.range)!==i.isEmpty())}))}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach(((e,i)=>{t.addDecoration({range:e.symbol.range,options:n1},(e=>this._decorationIds[i]=e))}))}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},r1=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let a1=class{constructor(e,t,i,n,o,s){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=o,this._codeLensCache=s,this._disposables=new gi,this._localToDispose=new gi,this._lenses=[],this._oldCodeLensModels=new gi,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new Kr((()=>this._resolveCodeLensesInViewport()),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(50)||e.hasChanged(19)||e.hasChanged(18))&&this._updateLensStyle(),e.hasChanged(17)&&this._onModelChange()}))),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),null===(e=this._currentCodeLensModel)||void 0===e||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(67)/this._editor.getOption(52));let t=this._editor.getOption(19);return(!t||t<5)&&(t=.9*this._editor.getOption(52)|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(18),n=this._editor.getOption(50),{style:o}=this._editor.getContainerDomNode();o.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),o.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),o.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),i&&(o.setProperty("--vscode-editorCodeLens-fontFamily",i),o.setProperty("--vscode-editorCodeLens-fontFamilyDefault",Yt.fontFamily)),this._editor.changeViewZones((t=>{for(const i of this._lenses)i.updateHeight(e,t)}))}_localDispose(){var e,t,i;null===(e=this._getCodeLensModelPromise)||void 0===e||e.cancel(),this._getCodeLensModelPromise=void 0,null===(t=this._resolveCodeLensesPromise)||void 0===t||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),null===(i=this._currentCodeLensModel)||void 0===i||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e)return;if(!this._editor.getOption(17)||e.isTooLargeForTokenization())return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e))return void(t&&Ur((()=>{const i=this._codeLensCache.get(e);t===i&&(this._codeLensCache.delete(e),this._onModelChange())}),3e4,this._localToDispose));for(const n of this._languageFeaturesService.codeLensProvider.all(e))if("function"==typeof n.onDidChange){const e=n.onDidChange((()=>i.schedule()));this._localToDispose.add(e)}const i=new Kr((()=>{var t;const n=Date.now();null===(t=this._getCodeLensModelPromise)||void 0===t||t.cancel(),this._getCodeLensModelPromise=Mr((t=>$0(this._languageFeaturesService.codeLensProvider,e,t))),this._getCodeLensModelPromise.then((t=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=t,this._codeLensCache.put(e,t);const o=this._provideCodeLensDebounce.update(e,Date.now()-n);i.delay=o,this._renderCodeLensSymbols(t),this._resolveCodeLensesInViewportSoon()}),Jt)}),this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add(ui((()=>this._resolveCodeLensesScheduler.cancel()))),this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{var e;this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const i=[];let n=-1;this._lenses.forEach((e=>{e.isValid()&&n!==e.getLineNumber()?(e.update(t),n=e.getLineNumber()):i.push(e)}));const o=new i1;i.forEach((e=>{e.dispose(o,t),this._lenses.splice(this._lenses.indexOf(e),1)})),o.commit(e)}))})),i.schedule(),this._resolveCodeLensesScheduler.cancel(),null===(e=this._resolveCodeLensesPromise)||void 0===e||e.cancel(),this._resolveCodeLensesPromise=void 0}))),this._localToDispose.add(this._editor.onDidFocusEditorWidget((()=>{i.schedule()}))),this._localToDispose.add(this._editor.onDidBlurEditorText((()=>{i.cancel()}))),this._localToDispose.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add(this._editor.onDidLayoutChange((()=>{this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add(ui((()=>{if(this._editor.getModel()){const e=Mq.capture(this._editor);this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{this._disposeAllLenses(e,t)}))})),e.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)}))),this._localToDispose.add(this._editor.onMouseDown((e=>{if(9!==e.target.type)return;let t=e.target.element;if("SPAN"===(null==t?void 0:t.tagName)&&(t=t.parentElement),"A"===(null==t?void 0:t.tagName))for(const i of this._lenses){const e=i.getCommand(t);if(e){this._commandService.executeCommand(e.id,...e.arguments||[]).catch((e=>this._notificationService.error(e)));break}}}))),i.schedule()}_disposeAllLenses(e,t){const i=new i1;for(const n of this._lenses)n.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let n;for(const r of e.lenses){const e=r.symbol.range.startLineNumber;e<1||e>t||(n&&n[n.length-1].symbol.range.startLineNumber===e?n.push(r):(n=[r],i.push(n)))}if(!i.length&&!this._lenses.length)return;const o=Mq.capture(this._editor),s=this._getLayoutInfo();this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const n=new i1;let o=0,r=0;for(;rthis._resolveCodeLensesInViewportSoon()))),o++,r++)}for(;othis._resolveCodeLensesInViewportSoon()))),r++;n.commit(e)}))})),o.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;null===(e=this._resolveCodeLensesPromise)||void 0===e||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],n=[];if(this._lenses.forEach((e=>{const o=e.computeIfNecessary(t);o&&(i.push(o),n.push(e))})),0===i.length)return;const o=Date.now(),s=Mr((e=>{const o=i.map(((i,o)=>{const s=new Array(i.length),r=i.map(((i,n)=>i.symbol.command||"function"!=typeof i.provider.resolveCodeLens?(s[n]=i.symbol,Promise.resolve(void 0)):Promise.resolve(i.provider.resolveCodeLens(t,i.symbol,e)).then((e=>{s[n]=e}),Qt)));return Promise.all(r).then((()=>{e.isCancellationRequested||n[o].isDisposed()||n[o].updateCommands(s)}))}));return Promise.all(o)}));this._resolveCodeLensesPromise=s,this._resolveCodeLensesPromise.then((()=>{const e=this._resolveCodeLensesDebounce.update(t,Date.now()-o);this._resolveCodeLensesScheduler.delay=e,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),s===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}),(e=>{Jt(e),s===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}))}async getModel(){var e;return await this._getCodeLensModelPromise,await this._resolveCodeLensesPromise,(null===(e=this._currentCodeLensModel)||void 0===e?void 0:e.isDisposed)?void 0:this._currentCodeLensModel}};a1.ID="css.editor.codeLens",a1=s1([r1(1,lf),r1(2,RO),r1(3,md),r1(4,kD),r1(5,J0)],a1),zh(a1.ID,a1,1),Vh(class extends Fh{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:JT.hasCodeLensProvider,label:pe("vs/editor/contrib/codelens/browser/codelensController","showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}async run(e,t){if(!t.hasModel())return;const i=e.get(OU),n=e.get(md),o=e.get(kD),s=t.getSelection().positionLineNumber,r=t.getContribution(a1.ID);if(!r)return;const a=await r.getModel();if(!a)return;const l=[];for(const h of a.lenses)h.symbol.command&&h.symbol.range.startLineNumber===s&&l.push({label:h.symbol.command.title,command:h.symbol.command});if(0===l.length)return;const c=await i.pick(l,{canPickMany:!1,placeHolder:pe("vs/editor/contrib/codelens/browser/codelensController","placeHolder","Select a command")});if(!c)return;let d=c.command;if(a.isDisposed){const e=await r.getModel(),t=null==e?void 0:e.lenses.find((e=>{var t;return e.symbol.range.startLineNumber===s&&(null===(t=e.symbol.command)||void 0===t?void 0:t.title)===d.title}));if(!t||!t.symbol.command)return;d=t.symbol.command}try{await n.executeCommand(d.id,...d.arguments||[])}catch(sue){o.error(sue)}}});var l1=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},c1=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class d1{constructor(e,t){this._editorWorkerClient=new bf(e,!1,"editorWorkerService",t)}async provideDocumentColors(e,t){return this._editorWorkerClient.computeDefaultDocumentColors(e.uri)}provideColorPresentations(e,t,i){const n=t.range,o=t.color,s=o.alpha,r=new Kp(new Vp(Math.round(255*o.red),Math.round(255*o.green),Math.round(255*o.blue),s)),a=s?Kp.Format.CSS.formatRGB(r):Kp.Format.CSS.formatRGBA(r),l=s?Kp.Format.CSS.formatHSL(r):Kp.Format.CSS.formatHSLA(r),c=s?Kp.Format.CSS.formatHex(r):Kp.Format.CSS.formatHexA(r),d=[];return d.push({label:a,textEdit:{range:n,text:a}}),d.push({label:l,textEdit:{range:n,text:l}}),d.push({label:c,textEdit:{range:n,text:c}}),d}}let h1=class extends mi{constructor(e,t,i){super(),this._register(i.colorProvider.register("*",new d1(e,t)))}};async function u1(e,t,i,n=!0){return _1(new m1,e,t,i,n)}function g1(e,t,i,n){return Promise.resolve(i.provideColorPresentations(e,t,n))}h1=l1([c1(0,od),c1(1,Lg),c1(2,lf)],h1),pq(h1);class m1{constructor(){}async compute(e,t,i,n){const o=await e.provideDocumentColors(t,i);if(Array.isArray(o))for(const s of o)n.push({colorInfo:s,provider:e});return Array.isArray(o)}}class p1{constructor(){}async compute(e,t,i,n){const o=await e.provideDocumentColors(t,i);if(Array.isArray(o))for(const s of o)n.push({range:s.range,color:[s.color.red,s.color.green,s.color.blue,s.color.alpha]});return Array.isArray(o)}}class f1{constructor(e){this.colorInfo=e}async compute(e,t,i,n){const o=await e.provideColorPresentations(t,this.colorInfo,Mi.None);return Array.isArray(o)&&n.push(...o),Array.isArray(o)}}async function _1(e,t,i,n,o){let s,r=!1;const a=[],l=t.ordered(i);for(let c=l.length-1;c>=0;c--){const t=l[c];if(t instanceof d1)s=t;else try{await e.compute(t,i,n,a)&&(r=!0)}catch(sue){Qt(sue)}}return r?a:s&&o?(await e.compute(s,i,n,a),a):[]}function b1(e,t){const{colorProvider:i}=e.get(lf),n=e.get(od).getModel(t);if(!n)throw ni();return{model:n,colorProviderRegistry:i,isDefaultColorDecoratorsEnabled:e.get($u).getValue("editor.defaultColorDecorators",{resource:t})}}pd.registerCommand("_executeDocumentColorProvider",(function(e,...t){const[i]=t;if(!(i instanceof An))throw ni();const{model:n,colorProviderRegistry:o,isDefaultColorDecoratorsEnabled:s}=b1(e,i);return _1(new p1,o,n,Mi.None,s)})),pd.registerCommand("_executeColorPresentationProvider",(function(e,...t){const[i,n]=t,{uri:o,range:s}=n;if(!(o instanceof An&&Array.isArray(i)&&4===i.length&&Un.isIRange(s)))throw ni();const{model:r,colorProviderRegistry:a,isDefaultColorDecoratorsEnabled:l}=b1(e,o),[c,d,h,u]=i;return _1(new f1({range:s,color:{red:c,green:d,blue:h,alpha:u}}),a,r,Mi.None,l)}));var v1,S1=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},C1=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const E1=Object.create({});let w1=v1=class extends mi{constructor(e,t,i,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new gi),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new pC(this._editor),this._decoratorLimitReporter=new T1,this._colorDecorationClassRefs=this._register(new gi),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:v1.RECOMPUTE_TIME}),this._register(e.onDidChangeModel((()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()}))),this._register(e.onDidChangeModelLanguage((()=>this.updateColors()))),this._register(i.colorProvider.onDidChange((()=>this.updateColors()))),this._register(e.onDidChangeConfiguration((e=>{const t=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(147);const i=t!==this._isColorDecoratorsEnabled||e.hasChanged(21),n=e.hasChanged(147);(i||n)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())}))),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(147),this.updateColors()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&"object"==typeof i){const e=i.colorDecorators;if(e&&void 0!==e.enable&&!e.enable)return e.enable}return this._editor.getOption(20)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;const e=this._editor.getModel();e&&this._languageFeaturesService.colorProvider.has(e)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._timeoutTimer||(this._timeoutTimer=new Gr,this._timeoutTimer.cancelAndSet((()=>{this._timeoutTimer=null,this.beginCompute()}),this._debounceInformation.get(e)))}))),this.beginCompute())}async beginCompute(){this._computePromise=Mr((async e=>{const t=this._editor.getModel();if(!t)return[];const i=new Si(!1),n=await u1(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,i.elapsed()),n}));try{const e=await this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(H){Jt(H)}}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map((e=>({range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:VN.EMPTY})));this._editor.changeDecorations((i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach(((t,i)=>this._colorDatas.set(t,e[i])))}))}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[],i=this._editor.getOption(21);for(let o=0;othis._colorDatas.has(e.id)));return 0===i.length?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};w1.ID="editor.contrib.colorDetector",w1.RECOMPUTE_TIME=1e3,w1=v1=S1([C1(1,$u),C1(2,lf),C1(3,RO)],w1);class T1{constructor(){this._onDidChange=new Ri,this._computed=0,this._limited=!1}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}zh(w1.ID,w1,1);class y1{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new Ri,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new Ri,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new Ri,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let n=0;n{this.backgroundColor=e.getColor(Yb)||Kp.white}))),this._register(yl(this._pickedColorNode,mc.CLICK,(()=>this.model.selectNextColorPresentation()))),this._register(yl(this._originalColorNode,mc.CLICK,(()=>{this.model.color=this.model.originalColor,this.model.flushColor()}))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=Kp.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new I1(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=Kp.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}}class I1 extends mi{constructor(e){super(),this._onClicked=this._register(new Ri),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),vc(e,this._button);const t=document.createElement("div");t.classList.add("close-button-inner-div"),vc(this._button,t),vc(t,R1(".button"+gd.asCSSSelector(sY("color-picker-close",Yn.close,pe("vs/editor/contrib/colorPicker/browser/colorPickerWidget","closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._register(yl(this._button,mc.CLICK,(()=>{this._onClicked.fire()})))}}class A1 extends mi{constructor(e,t,i,n=!1){super(),this.model=t,this.pixelRatio=i,this._insertButton=null,this._domNode=R1(".colorpicker-body"),vc(e,this._domNode),this._saturationBox=new N1(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new D1(this._domNode,this.model,n),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new O1(this._domNode,this.model,n),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),n&&(this._insertButton=this._register(new x1(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new Kp(new zp(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new Kp(new zp(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=360*(1-e);this.model.color=new Kp(new zp(360===i?0:i,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}}class N1 extends mi{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new Ri,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new Ri,this.onColorFlushed=this._onColorFlushed.event,this._domNode=R1(".saturation-wrap"),vc(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",vc(this._domNode,this._canvas),this.selection=R1(".saturation-selection"),vc(this._domNode,this.selection),this.layout(),this._register(yl(this._domNode,mc.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!(e.target&&e.target instanceof Element))return;this.monitor=this._register(new J_);const t=Hl(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangePosition(e.pageX-t.left,e.pageY-t.top)),(()=>null));const i=yl(e.target.ownerDocument,mc.POINTER_UP,(()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)}),!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new Kp(new zp(e.h,1,1,1)),i=this._canvas.getContext("2d"),n=i.createLinearGradient(0,0,this._canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const o=i.createLinearGradient(0,0,0,this._canvas.height);o.addColorStop(0,"rgba(0, 0, 0, 0)"),o.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this._canvas.width,this._canvas.height),i.fillStyle=Kp.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=o,i.fill()}paintSelection(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"}onDidChangeColor(e){if(this.monitor&&this.monitor.isMonitoring())return;this.paint();const t=e.hsva;this.paintSelection(t.s,t.v)}}class k1 extends mi{constructor(e,t,i=!1){super(),this.model=t,this._onDidChange=new Ri,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new Ri,this.onColorFlushed=this._onColorFlushed.event,i?(this.domNode=vc(e,R1(".standalone-strip")),this.overlay=vc(this.domNode,R1(".standalone-overlay"))):(this.domNode=vc(e,R1(".strip")),this.overlay=vc(this.domNode,R1(".overlay"))),this.slider=vc(this.domNode,R1(".slider")),this.slider.style.top="0px",this._register(yl(this.domNode,mc.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onDidChangeColor(e){const t=this.getValue(e);this.updateSliderPosition(t)}onPointerDown(e){if(!(e.target&&e.target instanceof Element))return;const t=this._register(new J_),i=Hl(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangeTop(e.pageY-i.top)),(()=>null));const n=yl(e.target.ownerDocument,mc.POINTER_UP,(()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")}),!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=(1-e)*this.height+"px"}}class D1 extends k1{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){super.onDidChangeColor(e);const{r:t,g:i,b:n}=e.rgba,o=new Kp(new Vp(t,i,n,1)),s=new Kp(new Vp(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${o} 0%, ${s} 100%)`}getValue(e){return e.hsva.a}}class O1 extends k1{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class x1 extends mi{constructor(e){super(),this._onClicked=this._register(new Ri),this.onClicked=this._onClicked.event,this._button=vc(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._register(yl(this._button,mc.CLICK,(()=>{this._onClicked.fire()})))}get button(){return this._button}}class M1 extends rE{constructor(e,t,i,n,o=!1){super(),this.model=t,this.pixelRatio=i,this._register(Uc.getInstance(gl(e)).onDidChange((()=>this.layout())));const s=R1(".colorpicker-widget");e.appendChild(s),this.header=this._register(new L1(s,this.model,n,o)),this.body=this._register(new A1(s,this.model,this.pixelRatio,o))}layout(){this.body.layout()}}var P1=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},F1=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class B1{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let H1=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,i){return Qr.fromPromise(this._computeAsync(e,t,i))}async _computeAsync(e,t,i){if(!this._editor.hasModel())return[];const n=w1.get(this._editor);if(!n)return[];for(const o of t){if(!n.isColorDecoration(o))continue;const e=n.getColorData(o.range.getStartPosition());if(e)return[await V1(this,this._editor.getModel(),e.colorInfo,e.provider)]}return[]}renderHoverParts(e,t){return G1(this,this._editor,this._themeService,t,e)}};H1=P1([F1(1,KE)],H1);class W1{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n}}let U1=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}async createColorHover(e,t,i){if(!this._editor.hasModel())return null;if(!w1.get(this._editor))return null;const n=await u1(i,this._editor.getModel(),Mi.None);let o=null,s=null;for(const c of n){const t=c.colorInfo;Un.containsRange(t.range,e.range)&&(o=t,s=c.provider)}const r=null!=o?o:e,a=null!=s?s:t,l=!!o;return{colorHover:await V1(this,this._editor.getModel(),r,a),foundInEditor:l}}async updateEditorModel(e){if(!this._editor.hasModel())return;const t=e.model;let i=new Un(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(await K1(this._editor.getModel(),t,this._color,i,e),i=z1(this._editor,i,t))}renderHoverParts(e,t){return G1(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};async function V1(e,t,i,n){const o=t.getValueInRange(i.range),{red:s,green:r,blue:a,alpha:l}=i.color,c=new Vp(Math.round(255*s),Math.round(255*r),Math.round(255*a),l),d=new Kp(c),h=await g1(t,i,n,Mi.None),u=new y1(d,[],0);return u.colorPresentations=h||[],u.guessColorPresentation(d,o),e instanceof H1?new B1(e,Un.lift(i.range),u,n):new W1(e,Un.lift(i.range),u,n)}function G1(e,t,i,n,o){if(0===n.length||!t.hasModel())return mi.None;if(o.setMinimumDimensions){const e=t.getOption(67)+8;o.setMinimumDimensions(new Fl(302,e))}const s=new gi,r=n[0],a=t.getModel(),l=r.model,c=s.add(new M1(o.fragment,l,t.getOption(143),i,e instanceof U1));o.setColorPicker(c);let d=!1,h=new Un(r.range.startLineNumber,r.range.startColumn,r.range.endLineNumber,r.range.endColumn);if(e instanceof U1){const t=n[0].model.color;e.color=t,K1(a,l,t,h,r),s.add(l.onColorFlushed((t=>{e.color=t})))}else s.add(l.onColorFlushed((async e=>{await K1(a,l,e,h,r),d=!0,h=z1(t,h,l)})));return s.add(l.onDidChangeColor((e=>{K1(a,l,e,h,r)}))),s.add(t.onDidChangeModelContent((e=>{d?d=!1:(o.hide(),t.focus())}))),s}function z1(e,t,i){var n,o;const s=[],r=null!==(n=i.presentation.textEdit)&&void 0!==n?n:{range:t,text:i.presentation.label,forceMoveMarkers:!1};s.push(r),i.presentation.additionalTextEdits&&s.push(...i.presentation.additionalTextEdits);const a=Un.lift(r.range),l=e.getModel()._setTrackedRange(null,a,3);return e.executeEdits("colorpicker",s),e.pushUndoStop(),null!==(o=e.getModel()._getTrackedRange(l))&&void 0!==o?o:a}async function K1(e,t,i,n,o){const s=await g1(e,{range:n,color:{red:i.rgba.r/255,green:i.rgba.g/255,blue:i.rgba.b/255,alpha:i.rgba.a}},o.provider,Mi.None);t.colorPresentations=s||[]}U1=P1([F1(1,KE)],U1);const Y1="editor.action.showHover",q1="editor.action.increaseHoverVerbosityLevel",$1="editor.action.decreaseHoverVerbosityLevel",j1="editor.action.inlineSuggest.commit",X1="editor.action.inlineSuggest.showPrevious",J1="editor.action.inlineSuggest.showNext";var Q1,Z1=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},e2=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let t2=class extends mi{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=fH(this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(62).showToolbar)),this.sessionPosition=void 0,this.position=oH(this,(e=>{var t,i,n;const o=null===(t=this.model.read(e))||void 0===t?void 0:t.primaryGhostText.read(e);if(!this.alwaysShowToolbar.read(e)||!o||0===o.parts.length)return this.sessionPosition=void 0,null;const s=o.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==o.lineNumber&&(this.sessionPosition=void 0);const r=new Wn(o.lineNumber,Math.min(s,null!==(n=null===(i=this.sessionPosition)||void 0===i?void 0:i.column)&&void 0!==n?n:Number.MAX_SAFE_INTEGER));return this.sessionPosition=r,r})),this._register(uH(((t,i)=>{const n=this.model.read(t);if(!n||!this.alwaysShowToolbar.read(t))return;const o=i.add(this.instantiationService.createInstance(o2,this.editor,!0,this.position,n.selectedInlineCompletionIndex,n.inlineCompletionsCount,n.activeCommands));e.addContentWidget(o),i.add(ui((()=>e.removeContentWidget(o)))),i.add(cH((e=>{this.position.read(e)&&n.lastTriggerKind.read(e)!==Zn.Explicit&&n.triggerExplicitly()})))})))}};t2=Z1([e2(2,td)],t2);const i2=sY("inline-suggestion-hints-next",Yn.chevronRight,pe("vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget","parameterHintsNextIcon","Icon for show next parameter hint.")),n2=sY("inline-suggestion-hints-previous",Yn.chevronLeft,pe("vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget","parameterHintsPreviousIcon","Icon for show previous parameter hint."));let o2=Q1=class extends mi{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,i){const n=new rd(e,t,i,!0,(()=>this._commandService.executeCommand(e))),o=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let s=t;return o&&(s=pe("vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget",{key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,o.getLabel())),n.tooltip=s,n}constructor(e,t,i,n,o,s,r,a,l,c,d){super(),this.editor=e,this.withBorder=t,this._position=i,this._currentSuggestionIdx=n,this._suggestionCount=o,this._extraCommands=s,this._commandService=r,this.keybindingService=l,this._contextKeyService=c,this._menuService=d,this.id="InlineSuggestionHintsContentWidget"+Q1.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=Fc("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[Fc("div@toolBar")]),this.previousAction=this.createCommandAction(X1,pe("vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget","previous","Previous"),gd.asClassName(n2)),this.availableSuggestionCountAction=new rd("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(J1,pe("vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget","next","Next"),gd.asClassName(i2)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(bh.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new Kr((()=>{this.availableSuggestionCountAction.label=""}),100)),this.disableButtonsDebounced=this._register(new Kr((()=>{this.previousAction.enabled=this.nextAction.enabled=!1}),100)),this.toolBar=this._register(a.createInstance(a2,this.nodes.toolBar,bh.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof wh)return a.createInstance(r2,e,void 0);if(e===this.availableSuggestionCountAction){const t=new s2(void 0,e,{label:!0,icon:!1});return t.setClass("availableSuggestionCount"),t}},telemetrySource:"InlineSuggestionToolbar"})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{Q1._dropDownVisible=e}))),this._register(cH((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register(cH((e=>{const t=this._suggestionCount.read(e),i=this._currentSuggestionIdx.read(e);void 0!==t?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${i+1}/${t}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),void 0!==t&&t>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()}))),this._register(cH((e=>{const t=this._extraCommands.read(e).map((e=>({class:void 0,id:e.id,enabled:!0,tooltip:e.tooltip||"",label:e.title,run:t=>this._commandService.executeCommand(e.id)})));for(const[i,n]of this.inlineCompletionsActionsMenus.getActions())for(const e of n)e instanceof wh&&t.push(e);t.length>0&&t.unshift(new ld),this.toolBar.setAdditionalSecondaryActions(t)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};o2._dropDownVisible=!1,o2.id=0,o2=Q1=Z1([e2(6,md),e2(7,td),e2(8,tT),e2(9,Zd),e2(10,vh)],o2);class s2 extends cW{constructor(){super(...arguments),this._className=void 0}setClass(e){this._className=e}render(e){super.render(e),this._className&&e.classList.add(this._className)}updateTooltip(){}}let r2=class extends HW{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=Fc("div.keybinding").root;this._register(new Xz(t,qe,{disableTitle:!0,...jz})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}updateTooltip(){}},a2=class extends lj{constructor(e,t,i,n,o,s,r,a,l){super(e,{resetMenu:t,...i},n,o,s,r,a,l),this.menuId=t,this.options2=i,this.menuService=n,this.contextKeyService=o,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){var e,t,i,n,o,s,r;const a=[],l=[];FW(this.menu,null===(e=this.options2)||void 0===e?void 0:e.menuOptions,{primary:a,secondary:l},null===(i=null===(t=this.options2)||void 0===t?void 0:t.toolbarOptions)||void 0===i?void 0:i.primaryGroup,null===(o=null===(n=this.options2)||void 0===n?void 0:n.toolbarOptions)||void 0===o?void 0:o.shouldInlineSubmenu,null===(r=null===(s=this.options2)||void 0===s?void 0:s.toolbarOptions)||void 0===r?void 0:r.useSeparatorsInPrimaryActions),l.push(...this.additionalActions),a.unshift(...this.prependedPrimaryActions),this.setActions(a,l)}setPrependedPrimaryActions(e){b(this.prependedPrimaryActions,e,((e,t)=>e===t))||(this.prependedPrimaryActions=e,this.updateToolbar())}setAdditionalSecondaryActions(e){b(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};a2=Z1([e2(3,vh),e2(4,Zd),e2(5,Ex),e2(6,tT),e2(7,md),e2(8,Rh)],a2);class l2{constructor(){let e;this._onDidWillResize=new Ri,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new Ri,this.onDidResize=this._onDidResize.event,this._sashListener=new gi,this._size=new Fl(0,0),this._minSize=new Fl(0,0),this._maxSize=new Fl(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new tV(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new tV(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new tV(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:qU.North}),this._southSash=new tV(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:qU.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let t=0,i=0;this._sashListener.add(Ci.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)((()=>{void 0===e&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)}))),this._sashListener.add(Ci.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)((()=>{void 0!==e&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(this._eastSash.onDidChange((n=>{e&&(i=n.currentX-n.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))}))),this._sashListener.add(this._westSash.onDidChange((n=>{e&&(i=-(n.currentX-n.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))}))),this._sashListener.add(this._northSash.onDidChange((n=>{e&&(t=-(n.currentY-n.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))}))),this._sashListener.add(this._southSash.onDidChange((n=>{e&&(t=n.currentY-n.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))}))),this._sashListener.add(Ci.any(this._eastSash.onDidReset,this._westSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(Ci.any(this._northSash.onDidReset,this._southSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))})))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,n){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=n?3:0}layout(e=this.size.height,t=this.size.width){const{height:i,width:n}=this._minSize,{height:o,width:s}=this._maxSize;e=Math.max(i,Math.min(o,e)),t=Math.max(n,Math.min(s,t));const r=new Fl(t,e);Fl.equals(r,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=r,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}class c2 extends mi{constructor(e,t=new Fl(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new l2),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=Fl.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize((e=>{this._resize(new Fl(e.dimension.width,e.dimension.height)),e.done&&(this._isResizing=!1)}))),this._register(this._resizableNode.onDidWillResize((()=>{this._isResizing=!0})))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){var e;return(null===(e=this._contentPosition)||void 0===e?void 0:e.position)?Wn.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(t&&i)return Hl(t).top+i.top-30}_availableVerticalSpaceBelow(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;const n=Hl(t),o=Ml(t.ownerDocument.body),s=n.top+i.top+i.height;return o.height-s-24}_findPositionPreference(e,t){var i,n;const o=Math.min(null!==(i=this._availableVerticalSpaceBelow(t))&&void 0!==i?i:1/0,e),s=Math.min(null!==(n=this._availableVerticalSpaceAbove(t))&&void 0!==n?n:1/0,e),r=Math.min(Math.max(s,o),e),a=Math.min(e,r);let l;return l=this._editor.getOption(60).above?a<=s?1:2:a<=o?2:1,1===l?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),l}_resize(e){this._resizableNode.layout(e.height,e.width)}}var d2,h2=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},u2=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let g2=d2=class extends c2{get isColorPickerVisible(){var e;return Boolean(null===(e=this._visibleData)||void 0===e?void 0:e.colorPicker)}get isVisibleFromKeyboard(){var e;return 1===(null===(e=this._visibleData)||void 0===e?void 0:e.source)}get isVisible(){var e;return null!==(e=this._hoverVisibleKey.get())&&void 0!==e&&e}get isFocused(){var e;return null!==(e=this._hoverFocusedKey.get())&&void 0!==e&&e}constructor(e,t,i,n,o){const s=e.getOption(67)+8,r=new Fl(150,s);super(e,r),this._configurationService=i,this._accessibilityService=n,this._keybindingService=o,this._hover=this._register(new Tx),this._minimumSize=r,this._hoverVisibleKey=JT.hoverVisible.bindTo(t),this._hoverFocusedKey=JT.hoverFocused.bindTo(t),vc(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange((()=>{this.isVisible&&this._updateMaxDimensions()}))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()})));const a=this._register(bc(this._resizableNode.domNode));this._register(a.onDidFocus((()=>{this._hoverFocusedKey.set(!0)}))),this._register(a.onDidBlur((()=>{this._hoverFocusedKey.set(!1)}))),this._setHoverData(void 0),this._editor.addContentWidget(this)}dispose(){var e;super.dispose(),null===(e=this._visibleData)||void 0===e||e.disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return d2.ID}static _applyDimensions(e,t,i){const n="number"==typeof t?`${t}px`:t,o="number"==typeof i?`${i}px`:i;e.style.width=n,e.style.height=o}_setContentsDomNodeDimensions(e,t){const i=this._hover.contentsDomNode;return d2._applyDimensions(i,e,t)}_setContainerDomNodeDimensions(e,t){const i=this._hover.containerDomNode;return d2._applyDimensions(i,e,t)}_setHoverWidgetDimensions(e,t){this._setContentsDomNodeDimensions(e,t),this._setContainerDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,i){const n="number"==typeof t?`${t}px`:t,o="number"==typeof i?`${i}px`:i;e.style.maxWidth=n,e.style.maxHeight=o}_setHoverWidgetMaxDimensions(e,t){d2._applyMaxDimensions(this._hover.contentsDomNode,e,t),d2._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty("--vscode-hover-maxWidth","number"==typeof e?`${e}px`:e),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions("none","none");const t=e.width,i=e.height;this._setHoverWidgetDimensions(t,i)}_updateResizableNodeMaxDimensions(){var e,t;const i=null!==(e=this._findMaximumRenderingWidth())&&void 0!==e?e:1/0,n=null!==(t=this._findMaximumRenderingHeight())&&void 0!==t?t:1/0;this._resizableNode.maxSize=new Fl(i,n),this._setHoverWidgetMaxDimensions(i,n)}_resize(e){var t,i;d2._lastDimensions=new Fl(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),null===(i=null===(t=this._visibleData)||void 0===t?void 0:t.colorPicker)||void 0===i||i.layout()}_findAvailableSpaceVertically(){var e;const t=null===(e=this._visibleData)||void 0===e?void 0:e.showAtPosition;if(t)return 1===this._positionPreference?this._availableVerticalSpaceAbove(t):this._availableVerticalSpaceBelow(t)}_findMaximumRenderingHeight(){const e=this._findAvailableSpaceVertically();if(!e)return;let t=6;return Array.from(this._hover.contentsDomNode.children).forEach((e=>{t+=e.clientHeight})),Math.min(e,t)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty("--vscode-hover-whiteSpace","nowrap"),this._hover.containerDomNode.style.setProperty("--vscode-hover-sourceWhiteSpace","nowrap");const e=Array.from(this._hover.contentsDomNode.children).some((e=>e.scrollWidth>e.clientWidth));return this._hover.containerDomNode.style.removeProperty("--vscode-hover-whiteSpace"),this._hover.containerDomNode.style.removeProperty("--vscode-hover-sourceWhiteSpace"),e}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const e=this._isHoverTextOverflowing(),t=void 0===this._contentWidth?0:this._contentWidth-2;return e||this._hover.containerDomNode.clientWidththis._visibleData.closestMouseDistance+4||(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,n),0))}_setHoverData(e){var t;null===(t=this._visibleData)||void 0===t||t.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!e),this._hover.containerDomNode.classList.toggle("hidden",!e)}_updateFont(){const{fontSize:e,lineHeight:t}=this._editor.getOption(50),i=this._hover.contentsDomNode;i.style.fontSize=`${e}px`,i.style.lineHeight=""+t/e,Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_updateContent(e){const t=this._hover.contentsDomNode;t.style.paddingBottom="",t.textContent="",t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const e=Math.max(this._editor.getLayoutInfo().height/4,250,d2._lastDimensions.height),t=Math.max(.66*this._editor.getLayoutInfo().width,500,d2._lastDimensions.width);this._setHoverWidgetMaxDimensions(t,e)}_render(e,t){this._setHoverData(t),this._updateFont(),this._updateContent(e),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){var e;return this._visibleData?{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,positionAffinity:this._visibleData.isBeforeContent?3:void 0,preference:[null!==(e=this._positionPreference)&&void 0!==e?e:1]}:null}showAt(e,t){var i,n,o,s;if(!this._editor||!this._editor.hasModel())return;this._render(e,t);const r=zl(this._hover.containerDomNode),a=t.showAtPosition;this._positionPreference=null!==(i=this._findPositionPreference(r,a))&&void 0!==i?i:1,this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),null===(n=t.colorPicker)||void 0===n||n.layout();const l=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&Rx(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),null!==(s=null===(o=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))||void 0===o?void 0:o.getAriaLabel())&&void 0!==s?s:"");l&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+", "+l)}hide(){if(!this._visibleData)return;const e=this._visibleData.stoleFocus||this._hoverFocusedKey.get();this._setHoverData(void 0),this._resizableNode.maxSize=new Fl(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){const e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions("auto","auto")}setMinimumDimensions(e){this._minimumSize=new Fl(Math.max(this._minimumSize.width,e.width),Math.max(this._minimumSize.height,e.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const e=void 0===this._contentWidth?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new Fl(e,this._minimumSize.height)}onContentsChanged(){var e;this._removeConstraintsRenderNormally();const t=this._hover.containerDomNode;let i=zl(t),n=Ul(t);if(this._resizableNode.layout(i,n),this._setHoverWidgetDimensions(n,i),i=zl(t),n=Ul(t),this._contentWidth=n,this._updateMinimumWidth(),this._resizableNode.layout(i,n),null===(e=this._visibleData)||void 0===e?void 0:e.showAtPosition){const e=zl(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(e,this._visibleData.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-30})}scrollRight(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+30})}pageUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};function m2(e,t,i,n,o,s){const r=i+o/2,a=n+s/2,l=Math.max(Math.abs(e-r)-o/2,0),c=Math.max(Math.abs(t-a)-s/2,0);return Math.sqrt(l*l+c*c)}g2.ID="editor.contrib.resizableContentHoverWidget",g2._lastDimensions=new Fl(0,0),g2=d2=h2([u2(1,Zd),u2(2,$u),u2(3,W_),u2(4,tT)],g2);class p2 extends mi{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new Ri),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new Kr((()=>this._triggerAsyncComputation()),0)),this._secondWaitScheduler=this._register(new Kr((()=>this._triggerSyncComputation()),0)),this._loadingMessageScheduler=this._register(new Kr((()=>this._triggerLoadingMessage()),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(60).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=function(e){const t=new Fi,i=e(t.token);return new Zr(t,(async e=>{const n=t.token.onCancellationRequested((()=>{n.dispose(),t.dispose(),e.reject(new ii)}));try{for await(const n of i){if(t.token.isCancellationRequested)return;e.emitOne(n)}n.dispose(),t.dispose()}catch(o){n.dispose(),t.dispose(),e.reject(o)}}))}((e=>this._computer.computeAsync(e))),(async()=>{try{for await(const e of this._asyncIterable)e&&(this._result.push(e),this._fireResult());this._asyncIterableDone=!0,3!==this._state&&4!==this._state||this._setState(0)}catch(H){Jt(H)}})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){3===this._state&&this._setState(4)}_fireResult(){if(1===this._state||2===this._state)return;const e=0===this._state,t=4===this._state;this._onResult.fire(new class{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}}(this._result.slice(0),e,t))}start(e){if(0===e)0===this._state&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}class f2{constructor(e,t,i,n){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=n,this.type=1}equals(e){return 1===e.type&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return 1===e.type&&t.lineNumber===this.range.startLineNumber}}class _2{constructor(e,t,i,n,o,s){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=n,this.initialMousePosY=o,this.supportsMarkerHover=s,this.type=2}equals(e){return 2===e.type&&this.owner===e.owner}canAdoptVisibleHover(e,t){return 2===e.type&&this.owner===e.owner}}const b2=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class v2{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function S2(e,t,i,n){const o=e.ordered(t).map(((e,o)=>async function(e,t,i,n,o){const s=await Promise.resolve(e.provideHover(i,n,o)).catch(Qt);if(s&&function(e){const t=void 0!==e.range,i=void 0!==e.contents&&e.contents&&e.contents.length>0;return t&&i}(s))return new v2(e,s,t)}(e,o,t,i,n)));return Qr.fromPromises(o).coalesce()}Wh("_executeHoverProvider",((e,t,i)=>S2(e.get(lf).hoverProvider,t,i,Mi.None).map((e=>e.hover)).toPromise()));var C2=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},E2=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const w2=yc,T2=sY("hover-increase-verbosity",Yn.add,pe("vs/editor/contrib/hover/browser/markdownHoverParticipant","increaseHoverVerbosity","Icon for increaseing hover verbosity.")),y2=sY("hover-decrease-verbosity",Yn.remove,pe("vs/editor/contrib/hover/browser/markdownHoverParticipant","decreaseHoverVerbosity","Icon for decreasing hover verbosity."));class R2{constructor(e,t,i,n,o,s=void 0){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=n,this.ordinal=o,this.source=s}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}class L2{constructor(e,t,i){this.hover=e,this.hoverProvider=t,this.hoverPosition=i}supportsVerbosityAction(e){var t,i;switch(e){case Jn.Increase:return null!==(t=this.hover.canIncreaseVerbosity)&&void 0!==t&&t;case Jn.Decrease:return null!==(i=this.hover.canDecreaseVerbosity)&&void 0!==i&&i}}}let I2=class{constructor(e,t,i,n,o,s,r){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=o,this._keybindingService=s,this._hoverService=r,this.hoverOrdinal=3}createLoadingMessage(e){return new R2(this,e.range,[(new YM).appendText(pe("vs/editor/contrib/hover/browser/markdownHoverParticipant","modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,o=i.getLineMaxColumn(n),s=[];let r=1e3;const a=i.getLineLength(n),l=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),c=this._editor.getOption(117),d=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:l});let h=!1;c>=0&&a>c&&e.range.startColumn>=c&&(h=!0,s.push(new R2(this,e.range,[{value:pe("vs/editor/contrib/hover/browser/markdownHoverParticipant","stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,r++))),!h&&"number"==typeof d&&a>=d&&s.push(new R2(this,e.range,[{value:pe("vs/editor/contrib/hover/browser/markdownHoverParticipant","too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,r++));let u=!1;for(const g of t){const t=g.range.startLineNumber===n?g.range.startColumn:1,i=g.range.endLineNumber===n?g.range.endColumn:o,a=g.options.hoverMessage;if(!a||qM(a))continue;g.options.beforeContentClassName&&(u=!0);const l=new Un(e.range.startLineNumber,t,e.range.startLineNumber,i);s.push(new R2(this,l,M(a),u,r++))}return s}computeAsync(e,t,i){if(!this._editor.hasModel()||1!==e.type)return Qr.EMPTY;const n=this._editor.getModel(),o=this._languageFeaturesService.hoverProvider;return o.has(n)?this._getMarkdownHovers(o,n,e,i):Qr.EMPTY}_getMarkdownHovers(e,t,i,n){const o=i.range.getStartPosition();return S2(e,t,o,n).filter((e=>!qM(e.hover.contents))).map((e=>{const t=e.hover.range?Un.lift(e.hover.range):i.range,n=new L2(e.hover,e.provider,o);return new R2(this,t,e.hover.contents,!1,e.ordinal,n)}))}renderHoverParts(e,t){return this._renderedHoverParts=new A2(t,e.fragment,this._editor,this._languageService,this._openerService,this._keybindingService,this._hoverService,this._configurationService,e.onContentsChanged),this._renderedHoverParts}updateFocusedMarkdownHoverPartVerbosityLevel(e){var t;null===(t=this._renderedHoverParts)||void 0===t||t.updateFocusedHoverPartVerbosityLevel(e)}};I2=C2([E2(1,eg),E2(2,Ax),E2(3,$u),E2(4,lf),E2(5,tT),E2(6,vx)],I2);class A2 extends mi{constructor(e,t,i,n,o,s,r,a,l){super(),this._editor=i,this._languageService=n,this._openerService=o,this._keybindingService=s,this._hoverService=r,this._configurationService=a,this._onFinishedRendering=l,this._hoverFocusInfo={hoverPartIndex:-1,focusRemains:!1},this._renderedHoverParts=this._renderHoverParts(e,t,this._onFinishedRendering),this._register(ui((()=>{this._renderedHoverParts.forEach((e=>{e.disposables.dispose()}))})))}_renderHoverParts(e,t,i){return e.sort(W((e=>e.ordinal),U)),e.map(((e,n)=>{const o=this._renderHoverPart(n,e.contents,e.source,i);return t.appendChild(o.renderedMarkdown),o}))}_renderHoverPart(e,t,i,n){const{renderedMarkdown:o,disposables:s}=this._renderMarkdownContent(t,n);if(!i)return{renderedMarkdown:o,disposables:s};const r=i.supportsVerbosityAction(Jn.Increase),a=i.supportsVerbosityAction(Jn.Decrease);if(!r&&!a)return{renderedMarkdown:o,disposables:s,hoverSource:i};const l=w2("div.verbosity-actions");o.prepend(l),s.add(this._renderHoverExpansionAction(l,Jn.Increase,r)),s.add(this._renderHoverExpansionAction(l,Jn.Decrease,a));const c=s.add(bc(o));return s.add(c.onDidFocus((()=>{this._hoverFocusInfo={hoverPartIndex:e,focusRemains:!0}}))),s.add(c.onDidBlur((()=>{var e;(null===(e=this._hoverFocusInfo)||void 0===e?void 0:e.focusRemains)&&(this._hoverFocusInfo.focusRemains=!1)}))),{renderedMarkdown:o,disposables:s,hoverSource:i}}_renderMarkdownContent(e,t){const i=w2("div.hover-row");i.tabIndex=0;const n=w2("div.hover-row-contents");i.appendChild(n);const o=new gi;return o.add(N2(this._editor,n,e,this._languageService,this._openerService,t)),{renderedMarkdown:i,disposables:o}}_renderHoverExpansionAction(e,t,i){const n=new gi,o=t===Jn.Increase,s=vc(e,w2(gd.asCSSSelector(o?T2:y2)));s.tabIndex=0;const r=new Sx("mouse",!1,{target:e,position:{hoverPosition:0}},this._configurationService,this._hoverService);if(o){const e=this._keybindingService.lookupKeybinding(q1);n.add(this._hoverService.setupUpdatableHover(r,s,e?pe("vs/editor/contrib/hover/browser/markdownHoverParticipant","increaseVerbosityWithKb","Increase Verbosity ({0})",e.getLabel()):pe("vs/editor/contrib/hover/browser/markdownHoverParticipant","increaseVerbosity","Increase Verbosity")))}else{const e=this._keybindingService.lookupKeybinding($1);n.add(this._hoverService.setupUpdatableHover(r,s,e?pe("vs/editor/contrib/hover/browser/markdownHoverParticipant","decreaseVerbosityWithKb","Decrease Verbosity ({0})",e.getLabel()):pe("vs/editor/contrib/hover/browser/markdownHoverParticipant","decreaseVerbosity","Decrease Verbosity")))}if(!i)return s.classList.add("disabled"),n;s.classList.add("enabled");const a=()=>this.updateFocusedHoverPartVerbosityLevel(t);return n.add(new Lx(s,a)),n.add(new Ix(s,a,[3,10])),n}async updateFocusedHoverPartVerbosityLevel(e){var t;const i=this._editor.getModel();if(!i)return;const n=this._hoverFocusInfo.hoverPartIndex,o=this._getRenderedHoverPartAtIndex(n);if(!o||!(null===(t=o.hoverSource)||void 0===t?void 0:t.supportsVerbosityAction(e)))return;const s=o.hoverSource.hoverPosition,r=o.hoverSource.hoverProvider,a={verbosityRequest:{action:e,previousHover:o.hoverSource.hover}};let l;try{l=await Promise.resolve(r.provideHover(i,s,Mi.None,a))}catch(sue){Qt(sue)}if(!l)return;const c=new L2(l,r,s),d=this._renderHoverPart(n,l.contents,c,this._onFinishedRendering);this._replaceRenderedHoverPartAtIndex(n,d),this._focusOnHoverPartWithIndex(n),this._onFinishedRendering()}_replaceRenderedHoverPartAtIndex(e,t){if(e>=this._renderHoverParts.length||e<0)return;const i=this._renderedHoverParts[e];i.renderedMarkdown.replaceWith(t.renderedMarkdown),i.disposables.dispose(),this._renderedHoverParts[e]=t}_focusOnHoverPartWithIndex(e){this._renderedHoverParts[e].renderedMarkdown.focus(),this._hoverFocusInfo.focusRemains=!0}_getRenderedHoverPartAtIndex(e){return this._renderedHoverParts[e]}}function N2(e,t,i,n,o,s){const r=new gi;for(const a of i){if(qM(a))continue;const i=w2("div.markdown-hover"),l=vc(i,w2("div.hover-contents")),c=r.add(new IP({editor:e},n,o));r.add(c.onDidRenderAsync((()=>{l.className="hover-contents code-hover-contents",s()})));const d=r.add(c.render(a));l.appendChild(d.element),t.appendChild(i)}return r}function k2(e,t){return!!e[t]}class D2{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=k2(e.event,t.triggerModifier),this.hasSideBySideModifier=k2(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class O2{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=k2(e,t.triggerModifier)}}class x2{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function M2(e){return"altKey"===e?Pe?new x2(57,"metaKey",6,"altKey"):new x2(5,"ctrlKey",6,"altKey"):Pe?new x2(6,"altKey",57,"metaKey"):new x2(6,"altKey",5,"ctrlKey")}class P2 extends mi{constructor(e,t){var i;super(),this._onMouseMoveOrRelevantKeyDown=this._register(new Ri),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new Ri),this.onExecute=this._onExecute.event,this._onCancel=this._register(new Ri),this.onCancel=this._onCancel.event,this._editor=e,this._extractLineNumberFromMouseEvent=null!==(i=null==t?void 0:t.extractLineNumberFromMouseEvent)&&void 0!==i?i:e=>e.target.position?e.target.position.lineNumber:0,this._opts=M2(this._editor.getOption(78)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration((e=>{if(e.hasChanged(78)){const e=M2(this._editor.getOption(78));if(this._opts.equals(e))return;this._opts=e,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}}))),this._register(this._editor.onMouseMove((e=>this._onEditorMouseMove(new D2(e,this._opts))))),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(new D2(e,this._opts))))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(new D2(e,this._opts))))),this._register(this._editor.onKeyDown((e=>this._onEditorKeyDown(new O2(e,this._opts))))),this._register(this._editor.onKeyUp((e=>this._onEditorKeyUp(new O2(e,this._opts))))),this._register(this._editor.onMouseDrag((()=>this._resetHandler()))),this._register(this._editor.onDidChangeCursorSelection((e=>this._onDidChangeCursorSelection(e)))),this._register(this._editor.onDidChangeModel((e=>this._resetHandler()))),this._register(this._editor.onDidChangeModelContent((()=>this._resetHandler()))),this._register(this._editor.onDidScrollChange((e=>{(e.scrollTopChanged||e.scrollLeftChanged)&&this._resetHandler()})))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(e)}_onEditorMouseUp(e){const t=this._extractLineNumberFromMouseEvent(e);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}class F2{constructor(e,t){this.range=e,this.direction=t}}class B2{constructor(e,t,i){this.hint=e,this.anchor=t,this.provider=i,this._isResolved=!1}with(e){const t=new B2(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}async resolve(e){if("function"==typeof this.provider.resolveInlayHint){if(this._currentResolve){if(await this._currentResolve,e.isCancellationRequested)return;return this.resolve(e)}this._isResolved||(this._currentResolve=this._doResolve(e).finally((()=>this._currentResolve=void 0))),await this._currentResolve}}async _doResolve(e){var t,i,n;try{const o=await Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=null!==(t=null==o?void 0:o.tooltip)&&void 0!==t?t:this.hint.tooltip,this.hint.label=null!==(i=null==o?void 0:o.label)&&void 0!==i?i:this.hint.label,this.hint.textEdits=null!==(n=null==o?void 0:o.textEdits)&&void 0!==n?n:this.hint.textEdits,this._isResolved=!0}catch(sue){Qt(sue),this._isResolved=!1}}}class H2{static async create(e,t,i,n){const o=[],s=e.ordered(t).reverse().map((e=>i.map((async i=>{try{const s=await e.provideInlayHints(t,i,n);((null==s?void 0:s.hints.length)||e.onDidChangeInlayHints)&&o.push([null!=s?s:H2._emptyInlayHintList,e])}catch(s){Qt(s)}}))));if(await Promise.all(s.flat()),n.isCancellationRequested||t.isDisposed())throw new ii;return new H2(i,o,t)}constructor(e,t,i){this._disposables=new gi,this.ranges=e,this.provider=new Set;const n=[];for(const[o,s]of t){this._disposables.add(o),this.provider.add(s);for(const e of o.hints){const t=i.validatePosition(e.position);let o="before";const r=H2._getRangeAtPosition(i,t);let a;r.getStartPosition().isBefore(t)?(a=Un.fromPositions(r.getStartPosition(),t),o="after"):(a=Un.fromPositions(t,r.getEndPosition()),o="before"),n.push(new B2(e,new F2(a,o),s))}}this.items=n.sort(((e,t)=>Wn.compare(e.hint.position,t.hint.position)))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,n=e.getWordAtPosition(t);if(n)return new Un(i,n.startColumn,i,n.endColumn);e.tokenization.tokenizeIfCheap(i);const o=e.tokenization.getLineTokens(i),s=t.column-1,r=o.findTokenIndexAtOffset(s);let a=o.getStartOffset(r),l=o.getEndOffset(r);return l-a==1&&(a===s&&r>1?(a=o.getStartOffset(r-1),l=o.getEndOffset(r-1)):l===s&&r=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},U2=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let V2=class extends MD{constructor(e,t,i,n,o,s,r,a,l,c,d,h,u){super(e,{...n.getRawOptions(),overflowWidgetsDomNode:n.getOverflowWidgetsDomNode()},i,o,s,r,a,l,c,d,h,u),this._parentEditor=n,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(n.onDidChangeConfiguration((e=>this._onParentConfigurationChanged(e))))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){de(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};V2=W2([U2(4,td),U2(5,nd),U2(6,md),U2(7,Zd),U2(8,KE),U2(9,kD),U2(10,W_),U2(11,Lg),U2(12,lf)],V2);const G2=new Kp(new Vp(0,122,204)),z2={showArrow:!0,showFrame:!0,className:"",frameColor:G2,arrowColor:G2,keepEditorSelection:!1};class K2{constructor(e,t,i,n,o,s,r,a){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this.showInHiddenAreas=r,this.ordinal=a,this._onDomNodeTop=o,this._onComputedHeight=s}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class Y2{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class q2{constructor(e){this._editor=e,this._ruleName=q2._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),dc(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){dc(this._ruleName),cc(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px !important; margin-left: -${this._height}px; `)}show(e){1===e.column&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:Un.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}q2._IdGenerator=new JM(".arrow-decoration-");class $2{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new gi,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=re(t),de(this.options,z2,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange((e=>{const t=this._getWidth(e);this.domNode.style.width=t+"px",this.domNode.style.left=this._getLeft(e)+"px",this._onWidth(t)})))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null})),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new q2(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const t=e-this._decoratingElementsHeight();this.container.style.height=`${t}px`;const i=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(i))}null===(t=this._resizeSash)||void 0===t||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=Un.isIRange(e)?Un.lift(e):Un.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:VN.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id)})),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),null===(e=this._arrow)||void 0===e||e.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){const e=this.editor.getOption(67);let t=0;return this.options.showArrow&&(t+=2*Math.round(e/3)),this.options.showFrame&&(t+=2*Math.round(e/9)),t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),o=this._getWidth(n);this.domNode.style.width=`${o}px`,this.domNode.style.left=this._getLeft(n)+"px";const s=document.createElement("div");s.style.overflow="hidden";const r=this.editor.getOption(67);if(!this.options.allowUnlimitedHeight){const e=Math.max(12,this.editor.getLayoutInfo().height/r*.8);t=Math.min(t,e)}let a=0,l=0;if(this._arrow&&this.options.showArrow&&(a=Math.round(r/3),this._arrow.height=a,this._arrow.show(i)),this.options.showFrame&&(l=Math.round(r/9)),this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new K2(s,i.lineNumber,i.column,t,(e=>this._onViewZoneTop(e)),(e=>this._onViewZoneHeight(e)),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=e.addZone(this._viewZone),this._overlayWidget=new Y2("vs.editor.contrib.zoneWidget"+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)})),this.container&&this.options.showFrame){const e=this.options.frameWidth?this.options.frameWidth:l;this.container.style.borderTopWidth=e+"px",this.container.style.borderBottomWidth=e+"px"}const c=t*r-this._decoratingElementsHeight();this.container&&(this.container.style.top=a+"px",this.container.style.height=c+"px",this.container.style.overflow="hidden"),this._doLayout(c,o),this.options.keepEditorSelection||this.editor.setSelection(e);const d=this.editor.getModel();if(d){const t=d.validateRange(new Un(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(t,t.startLineNumber===d.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones((t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))}))}_initSash(){if(this._resizeSash)return;let e;this._resizeSash=this._disposables.add(new tV(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart((t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})}))),this._disposables.add(this._resizeSash.onDidEnd((()=>{e=void 0}))),this._disposables.add(this._resizeSash.onDidChange((t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(67),n=i<0?Math.ceil(i):Math.floor(i),o=e.heightInLines+n;o>5&&o<35&&this._relayout(o)}})))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var j2=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},X2=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const J2=id("IPeekViewService");var Q2;ng(J2,class{constructor(){this._widgets=new Map}addExclusiveWidget(e,t){const i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose()),this._widgets.set(e,{widget:t,listener:t.onDidClose((()=>{const i=this._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),this._widgets.delete(e))}))})}},1),function(e){e.inPeekEditor=new Qd("inReferenceSearchEditor",!0,pe("vs/editor/contrib/peekView/browser/peekView","inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),e.notInPeekEditor=e.inPeekEditor.toNegated()}(Q2||(Q2={}));let Z2=class{constructor(e,t){e instanceof V2&&Q2.inPeekEditor.bindTo(t)}dispose(){}};Z2.ID="editor.contrib.referenceController",Z2=j2([X2(1,Zd)],Z2),zh(Z2.ID,Z2,0);const e4={headerBackgroundColor:Kp.white,primaryHeadingColor:Kp.fromHex("#333333"),secondaryHeadingColor:Kp.fromHex("#6c6c6cb3")};let t4=class extends $2{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new Ri,this.onDidClose=this._onDidClose.event,de(this.options,e4,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=yc(".head"),this._bodyElement=yc(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=yc(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),Ll(this._titleElement,"click",(e=>this._onTitleClick(e)))),vc(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=yc("span.filename"),this._secondaryHeading=yc("span.dirname"),this._metaHeading=yc("span.meta"),vc(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);const i=yc(".peekview-actions");vc(this._headElement,i);const n=this._getActionBarOptions();this._actionbarWidget=new zW(i,n),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new rd("peekview.close",pe("vs/editor/contrib/peekView/browser/peekView","label.close","Close"),gd.asClassName(Yn.close),!0,(()=>(this.dispose(),Promise.resolve()))),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:GW.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:wl(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,Rc(this._metaHeading)):Lc(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0)return void this.dispose();const i=Math.ceil(1.2*this.editor.getOption(67)),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};t4=j2([X2(2,td)],t4);const i4=ib("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:Kp.black,hcLight:Kp.white},pe("vs/editor/contrib/peekView/browser/peekView","peekViewTitleBackground","Background color of the peek view title area.")),n4=ib("peekViewTitleLabel.foreground",{dark:Kp.white,light:Kp.black,hcDark:Kp.white,hcLight:Rb},pe("vs/editor/contrib/peekView/browser/peekView","peekViewTitleForeground","Color of the peek view title.")),o4=ib("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},pe("vs/editor/contrib/peekView/browser/peekView","peekViewTitleInfoForeground","Color of the peek view title info.")),s4=ib("peekView.border",{dark:Mb,light:Mb,hcDark:pb,hcLight:pb},pe("vs/editor/contrib/peekView/browser/peekView","peekViewBorder","Color of the peek view borders and arrow.")),r4=ib("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:Kp.black,hcLight:Kp.white},pe("vs/editor/contrib/peekView/browser/peekView","peekViewResultsBackground","Background color of the peek view result list."));ib("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:Kp.white,hcLight:Rb},pe("vs/editor/contrib/peekView/browser/peekView","peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),ib("peekViewResult.fileForeground",{dark:Kp.white,light:"#1E1E1E",hcDark:Kp.white,hcLight:Rb},pe("vs/editor/contrib/peekView/browser/peekView","peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),ib("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},pe("vs/editor/contrib/peekView/browser/peekView","peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),ib("peekViewResult.selectionForeground",{dark:Kp.white,light:"#6C6C6C",hcDark:Kp.white,hcLight:Rb},pe("vs/editor/contrib/peekView/browser/peekView","peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const a4=ib("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:Kp.black,hcLight:Kp.white},pe("vs/editor/contrib/peekView/browser/peekView","peekViewEditorBackground","Background color of the peek view editor."));ib("peekViewEditorGutter.background",{dark:a4,light:a4,hcDark:a4,hcLight:a4},pe("vs/editor/contrib/peekView/browser/peekView","peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),ib("peekViewEditorStickyScroll.background",{dark:a4,light:a4,hcDark:a4,hcLight:a4},pe("vs/editor/contrib/peekView/browser/peekView","peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor.")),ib("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},pe("vs/editor/contrib/peekView/browser/peekView","peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),ib("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},pe("vs/editor/contrib/peekView/browser/peekView","peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),ib("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:fb,hcLight:fb},pe("vs/editor/contrib/peekView/browser/peekView","peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));class l4{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=QM.nextId()}get uri(){return this.link.uri}get range(){var e,t;return null!==(t=null!==(e=this._range)&&void 0!==e?e:this.link.targetSelectionRange)&&void 0!==t?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=null===(e=this.parent.getPreview(this))||void 0===e?void 0:e.preview(this.range);return t?pe("vs/editor/contrib/gotoSymbol/browser/referencesModel",{key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"{0} in {1} on line {2} at column {3}",t.value,UI(this.uri),this.range.startLineNumber,this.range.startColumn):pe("vs/editor/contrib/gotoSymbol/browser/referencesModel","aria.oneReference","in {0} on line {1} at column {2}",UI(this.uri),this.range.startLineNumber,this.range.startColumn)}}class c4{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:o,endLineNumber:s,endColumn:r}=e,a=i.getWordUntilPosition({lineNumber:n,column:o-t}),l=new Un(n,a.startColumn,n,o),c=new Un(s,r,s,1073741824),d=i.getValueInRange(l).replace(/^\s+/,""),h=i.getValueInRange(e);return{value:d+h+i.getValueInRange(c).replace(/\s+$/,""),highlight:{start:d.length,end:d.length+h.length}}}}class d4{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new cm}dispose(){di(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return 1===e?pe("vs/editor/contrib/gotoSymbol/browser/referencesModel","aria.fileReferences.1","1 symbol in {0}, full path {1}",UI(this.uri),this.uri.fsPath):pe("vs/editor/contrib/gotoSymbol/browser/referencesModel","aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,UI(this.uri),this.uri.fsPath)}async resolve(e){if(0!==this._previews.size)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const i=await e.createModelReference(t.uri);this._previews.set(t.uri,new c4(i))}catch(sue){Jt(sue)}return this}}class h4{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new Ri,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;let n;e.sort(h4._compareReferences);for(const o of e)if(n&&BI.isEqual(n.uri,o.uri,!0)||(n=new d4(this,o.uri),this.groups.push(n)),0===n.children.length||0!==h4._compareReferences(o,n.children[n.children.length-1])){const e=new l4(i===o,n,o,(e=>this._onDidChangeReferenceRange.fire(e)));this.references.push(e),n.children.push(e)}}dispose(){di(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new h4(this._links,this._title)}get title(){return this._title}get isEmpty(){return 0===this.groups.length}get ariaMessage(){return this.isEmpty?pe("vs/editor/contrib/gotoSymbol/browser/referencesModel","aria.result.0","No results found"):1===this.references.length?pe("vs/editor/contrib/gotoSymbol/browser/referencesModel","aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?pe("vs/editor/contrib/gotoSymbol/browser/referencesModel","aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):pe("vs/editor/contrib/gotoSymbol/browser/referencesModel","aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const o=i.children.length,s=i.parent.groups.length;return 1===s||t&&n+10?(n=t?(n+1)%o:(n+o-1)%o,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%s,i.parent.groups[n].children[0]):(n=(n+s-1)%s,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map(((i,n)=>({idx:n,prefixLen:Ps(i.uri.toString(),e.toString()),offsetDist:100*Math.abs(i.range.startLineNumber-t.lineNumber)+Math.abs(i.range.startColumn-t.column)}))).sort(((e,t)=>e.prefixLen>t.prefixLen?-1:e.prefixLent.offsetDist?1:0))[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&Un.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return BI.compare(e.uri,t.uri)||Un.compareRangesUsingStarts(e.range,t.range)}}var u4,g4=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},m4=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let p4=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof h4||e instanceof d4}getChildren(e){if(e instanceof h4)return e.groups;if(e instanceof d4)return e.resolve(this._resolverService).then((e=>e.children));throw new Error("bad tree")}};p4=g4([m4(0,sd)],p4);class f4{getHeight(){return 23}getTemplateId(e){return e instanceof d4?S4.id:E4.id}}let _4=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof l4){const i=null===(t=e.parent.getPreview(e))||void 0===t?void 0:t.preview(e.range);if(i)return i.value}return UI(e.uri)}};_4=g4([m4(0,tT)],_4);class b4{getId(e){return e instanceof l4?e.id:e.uri}}let v4=class extends mi{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new Kz(i,{supportHighlights:!0})),this.badge=new EK(vc(i,yc(".count")),{},IW),e.appendChild(i)}set(e,t){const i=GI(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(pe("vs/editor/contrib/gotoSymbol/browser/peek/referencesTree","referencesCount","{0} references",n)):this.badge.setTitleFormat(pe("vs/editor/contrib/gotoSymbol/browser/peek/referencesTree","referenceCount","{0} reference",n))}};v4=g4([m4(1,xF)],v4);let S4=u4=class{constructor(e){this._instantiationService=e,this.templateId=u4.id}renderTemplate(e){return this._instantiationService.createInstance(v4,e)}renderElement(e,t,i){i.set(e.element,SM(e.filterData))}disposeTemplate(e){e.dispose()}};S4.id="FileReferencesRenderer",S4=u4=g4([m4(0,td)],S4);class C4 extends mi{constructor(e){super(),this.label=this._register(new Gz(e))}set(e,t){var i;const n=null===(i=e.parent.getPreview(e))||void 0===i?void 0:i.preview(e.range);if(n&&n.value){const{value:e,highlight:i}=n;t&&!DM.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(e,SM(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(e,[i]))}else this.label.set(`${UI(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`)}}class E4{constructor(){this.templateId=E4.id}renderTemplate(e){return new C4(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(e){e.dispose()}}E4.id="OneReferenceRenderer";class w4{getWidgetAriaLabel(){return pe("vs/editor/contrib/gotoSymbol/browser/peek/referencesTree","treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var T4=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},y4=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class R4{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new gi,this._callOnModelChange=new gi,this._callOnDispose.add(this._editor.onDidChangeModel((()=>this._onModelChanged()))),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e)for(const t of this._model.references)if(t.uri.toString()===e.uri.toString())return void this._addDecorations(t.parent)}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((()=>this._onDecorationChanged())));const t=[],i=[];for(let n=0,o=e.children.length;n{const o=n.deltaDecorations([],t);for(let t=0;t{e.equals(9)&&(this._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())}),!0)),this._tree=this._instantiationService.createInstance(I4,"ReferencesWidget",this._treeContainer,new f4,[this._instantiationService.createInstance(S4),this._instantiationService.createInstance(E4)],this._instantiationService.createInstance(p4),t),this._splitView.addView({onDidChange:Ci.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:e=>{this._preview.layout({height:this._dim.height,width:e})}},aV.Distribute),this._splitView.addView({onDidChange:Ci.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:e=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${e}px`,this._tree.layout(this._dim.height,e)}},aV.Distribute),this._disposables.add(this._splitView.onDidSashChange((()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)}),void 0));const i=(e,t)=>{e instanceof l4&&("show"===t&&this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:t,source:"tree"}))};this._tree.onDidOpen((e=>{e.sideBySide?i(e.element,"side"):e.editorOptions.pinned?i(e.element,"goto"):i(e.element,"show")})),Lc(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new Fl(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then((()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))}))}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=pe("vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget","noResults","No results"),Rc(this._messageContainer),Promise.resolve(void 0)):(Lc(this._messageContainer),this._decorationsManager=new R4(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange((e=>this._tree.rerender(e)))),this._disposeOnNewModel.add(this._preview.onMouseDown((e=>{const{event:t,target:i}=e;if(2!==t.detail)return;const n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})}))),this.container.classList.add("results-loaded"),Rc(this._treeContainer),Rc(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();return e instanceof l4?e:e instanceof d4&&e.children.length>0?e.children[0]:void 0}async revealReference(e){await this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})}async _revealReference(e,t){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==Ja.inMemory?this.setTitle(WI(e.uri),this._uriLabel.getUriLabel(GI(e.uri))):this.setTitle(pe("vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget","peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent||(t&&this._tree.reveal(e.parent),await this._tree.expand(e.parent)),this._tree.reveal(e);const n=await i;if(!this._model)return void n.dispose();di(this._previewModelReference);const o=n.object;if(o){const t=this._preview.getModel()===o.textEditorModel?0:1,i=Un.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(o.textEditorModel),this._preview.setSelection(i),this._preview.revealRangeInCenter(i,t)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()}};A4=T4([y4(3,KE),y4(4,sd),y4(5,td),y4(6,J2),y4(7,xF),y4(8,CN),y4(9,tT),y4(10,eg),y4(11,Lg)],A4);var N4,k4=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},D4=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const O4=new Qd("referenceSearchVisible",!1,pe("vs/editor/contrib/gotoSymbol/browser/peek/referencesController","referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let x4=N4=class{static get(e){return e.getContribution(N4.ID)}constructor(e,t,i,n,o,s,r,a){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=o,this._instantiationService=s,this._storageService=r,this._configurationService=a,this._disposables=new gi,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=O4.bindTo(i)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),null===(e=this._widget)||void 0===e||e.dispose(),null===(t=this._model)||void 0===t||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>{this.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((()=>{this._ignoreModelChangeEvent||this.closeWidget()})));const o="peekViewLayout",s=L4.fromJSON(this._storageService.get(o,0,"{}"));this._widget=this._instantiationService.createInstance(A4,this._editor,this._defaultTreeKeyboardSupport,s),this._widget.setTitle(pe("vs/editor/contrib/gotoSymbol/browser/peek/referencesController","labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose((()=>{t.cancel(),this._widget&&(this._storageService.store(o,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((e=>{const{element:t,kind:n}=e;if(t)switch(n){case"open":"editor"===e.source&&this._configurationService.getValue("editor.stablePeek")||this.openReference(t,!1,!1);break;case"side":this.openReference(t,!0,!1);break;case"goto":i?this._gotoReference(t,!0):this.openReference(t,!1,!0)}})));const r=++this._requestIdPool;t.then((t=>{var i;if(r===this._requestIdPool&&this._widget)return null===(i=this._model)||void 0===i||i.dispose(),this._model=t,this._widget.setModel(this._model).then((()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(pe("vs/editor/contrib/gotoSymbol/browser/peek/referencesController","metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const t=this._editor.getModel().uri,i=new Wn(e.startLineNumber,e.startColumn),n=this._model.nearestReference(t,i);if(n)return this._widget.setSelection(n).then((()=>{this._widget&&"editor"===this._editor.getOption(87)&&this._widget.focusOnPreviewEditor()}))}}));t.dispose()}),(e=>{this._notificationService.error(e)}))}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}async goToNextOrPreviousReference(e){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),o=this._editor.hasTextFocus(),s=this._widget.isPreviewEditorFocused();await this._widget.setSelection(n),await this._gotoReference(n,!1),o?this._editor.focus():this._widget&&s&&this._widget.focusOnPreviewEditor()}async revealReference(e){this._editor.hasModel()&&this._model&&this._widget&&await this._widget.revealReference(e)}closeWidget(e=!0){var t,i;null===(t=this._widget)||void 0===t||t.dispose(),null===(i=this._model)||void 0===i||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var i;null===(i=this._widget)||void 0===i||i.hide(),this._ignoreModelChangeEvent=!0;const n=Un.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n,selectionSource:"code.jump",pinned:t}},this._editor).then((e=>{var t;if(this._ignoreModelChangeEvent=!1,e&&this._widget)if(this._editor===e)this._widget.show(n),this._widget.focusOnReferenceTree();else{const i=N4.get(e),o=this._model.clone();this.closeWidget(),e.focus(),null==i||i.toggleWidget(n,Mr((e=>Promise.resolve(o))),null!==(t=this._peekMode)&&void 0!==t&&t)}else this.closeWidget()}),(e=>{this._ignoreModelChangeEvent=!1,Jt(e)}))}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:o}=e;this._editorService.openCodeEditor({resource:n,options:{selection:o,selectionSource:"code.jump",pinned:i}},this._editor,t)}};function M4(e,t){const i=function(e){const t=e.get(nd).getFocusedCodeEditor();return t instanceof V2?t.getParentEditor():t}(e);if(!i)return;const n=x4.get(i);n&&t(n)}x4.ID="editor.contrib.referencesController",x4=N4=k4([D4(2,Zd),D4(3,nd),D4(4,kD),D4(5,td),D4(6,vW),D4(7,$u)],x4),uh.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:$i(2089,60),when:Dd.or(O4,Q2.inPeekEditor),handler(e){M4(e,(e=>{e.changeFocusBetweenPreviewAndReferences()}))}}),uh.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:Dd.or(O4,Q2.inPeekEditor),handler(e){M4(e,(e=>{e.goToNextOrPreviousReference(!0)}))}}),uh.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:Dd.or(O4,Q2.inPeekEditor),handler(e){M4(e,(e=>{e.goToNextOrPreviousReference(!1)}))}}),pd.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),pd.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),pd.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),pd.registerCommand("closeReferenceSearch",(e=>M4(e,(e=>e.closeWidget())))),uh.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:Dd.and(Q2.inPeekEditor,Dd.not("config.editor.stablePeek"))}),uh.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:Dd.and(O4,Dd.not("config.editor.stablePeek"),Dd.or(JT.editorTextFocus,BG.negate()))}),uh.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:Dd.and(O4,YG,QG.negate(),ez.negate()),handler(e){var t;const i=null===(t=e.get(UG).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof l4&&M4(e,(e=>e.revealReference(i[0])))}}),uh.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:Dd.and(O4,YG,QG.negate(),ez.negate()),handler(e){var t;const i=null===(t=e.get(UG).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof l4&&M4(e,(e=>e.openReference(i[0],!0,!0)))}}),pd.registerCommand("openReference",(e=>{var t;const i=null===(t=e.get(UG).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof l4&&M4(e,(e=>e.openReference(i[0],!1,!0)))}));var P4=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},F4=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const B4=new Qd("hasSymbols",!1,pe("vs/editor/contrib/gotoSymbol/browser/symbolNavigation","hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),H4=id("ISymbolNavigationService");let W4=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=B4.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),null===(e=this._currentState)||void 0===e||e.dispose(),null===(t=this._currentMessage)||void 0===t||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1)return void this.reset();this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new U4(this._editorService),n=i.onDidChange((e=>{if(this._ignoreEditorChange)return;const i=this._editorService.getActiveCodeEditor();if(!i)return;const n=i.getModel(),o=i.getPosition();if(!n||!o)return;let s=!1,r=!1;for(const a of t.references)if(HI(a.uri,n.uri))s=!0,r=r||Un.containsPosition(a.range,o);else if(s)break;s&&r||this.reset()}));this._currentState=hi(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:Un.collapseToStart(t.range),selectionRevealType:3}},e).finally((()=>{this._ignoreEditorChange=!1}))}_showMessage(){var e;null===(e=this._currentMessage)||void 0===e||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?pe("vs/editor/contrib/gotoSymbol/browser/symbolNavigation","location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):pe("vs/editor/contrib/gotoSymbol/browser/symbolNavigation","location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};W4=P4([F4(0,Zd),F4(1,nd),F4(2,kD),F4(3,tT)],W4),ng(H4,W4,1),Uh(new class extends Ph{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:B4,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(H4).revealNext(t)}}),uh.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:B4,primary:9,handler(e){e.get(H4).reset()}});let U4=class{constructor(e){this._listener=new Map,this._disposables=new gi,this._onDidChange=new Ri,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),di(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,hi(e.onDidChangeCursorPosition((t=>this._onDidChange.fire({editor:e}))),e.onDidChangeModelContent((t=>this._onDidChange.fire({editor:e})))))}_onDidRemoveEditor(e){var t;null===(t=this._listener.get(e))||void 0===t||t.dispose(),this._listener.delete(e)}};async function V4(e,t,i,n){const o=i.ordered(e).map((i=>Promise.resolve(n(i,e,t)).then(void 0,(e=>{Qt(e)}))));return T((await Promise.all(o)).flat())}function G4(e,t,i,n){return V4(t,i,e,((e,t,i)=>e.provideDefinition(t,i,n)))}function z4(e,t,i,n){return V4(t,i,e,((e,t,i)=>e.provideDeclaration(t,i,n)))}function K4(e,t,i,n){return V4(t,i,e,((e,t,i)=>e.provideImplementation(t,i,n)))}function Y4(e,t,i,n){return V4(t,i,e,((e,t,i)=>e.provideTypeDefinition(t,i,n)))}function q4(e,t,i,n,o){return V4(t,i,e,(async(e,t,i)=>{const s=await e.provideReferences(t,i,{includeDeclaration:!0},o);if(!n||!s||2!==s.length)return s;const r=await e.provideReferences(t,i,{includeDeclaration:!1},o);return r&&1===r.length?r:s}))}async function $4(e){const t=await e(),i=new h4(t,""),n=i.references.map((e=>e.link));return i.dispose(),n}var j4,X4,J4,Q4,Z4,e5,t5,i5;U4=P4([F4(0,nd)],U4),Wh("_executeDefinitionProvider",((e,t,i)=>{const n=G4(e.get(lf).definitionProvider,t,i,Mi.None);return $4((()=>n))})),Wh("_executeTypeDefinitionProvider",((e,t,i)=>{const n=Y4(e.get(lf).typeDefinitionProvider,t,i,Mi.None);return $4((()=>n))})),Wh("_executeDeclarationProvider",((e,t,i)=>{const n=z4(e.get(lf).declarationProvider,t,i,Mi.None);return $4((()=>n))})),Wh("_executeReferenceProvider",((e,t,i)=>{const n=q4(e.get(lf).referenceProvider,t,i,!1,Mi.None);return $4((()=>n))})),Wh("_executeImplementationProvider",((e,t,i)=>{const n=K4(e.get(lf).implementationProvider,t,i,Mi.None);return $4((()=>n))})),Ch.appendMenuItem(bh.EditorContext,{submenu:bh.EditorContextPeek,title:pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","peek.submenu","Peek"),group:"navigation",order:100});class n5{static is(e){return!(!e||"object"!=typeof e)&&(e instanceof n5||!(!Wn.isIPosition(e.position)||!e.model))}constructor(e,t){this.model=e,this.position=t}}class o5 extends Hh{static all(){return o5._allSymbolNavigationCommands.values()}static _patchConfig(e){const t={...e,f1:!0};if(t.menu)for(const i of nt.wrap(t.menu))i.id!==bh.EditorContext&&i.id!==bh.EditorContextPeek||(i.when=Dd.and(e.precondition,i.when));return t}constructor(e,t){super(o5._patchConfig(t)),this.configuration=e,o5._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,n){if(!t.hasModel())return Promise.resolve(void 0);const o=e.get(kD),s=e.get(nd),r=e.get(FF),a=e.get(H4),l=e.get(lf),c=e.get(td),d=t.getModel(),h=t.getPosition(),u=n5.is(i)?i:new n5(d,h),g=new RX(t,5),m=Pr(this._getLocationModel(l,u.model,u.position,g.token),g.token).then((async e=>{var o;if(!e||g.token.isCancellationRequested)return;let r;if(L_(e.ariaMessage),e.referenceAt(d.uri,h)){const e=this._getAlternativeCommand(t);!o5._activeAlternativeCommands.has(e)&&o5._allSymbolNavigationCommands.has(e)&&(r=o5._allSymbolNavigationCommands.get(e))}const l=e.references.length;if(0===l){if(!this.configuration.muteMessage){const e=d.getWordAtPosition(h);null===(o=vZ.get(t))||void 0===o||o.showMessage(this._getNoResultFoundMessage(e),h)}}else{if(1!==l||!r)return this._onResult(s,a,t,e,n);o5._activeAlternativeCommands.add(this.desc.id),c.invokeFunction((e=>r.runEditorCommand(e,t,i,n).finally((()=>{o5._activeAlternativeCommands.delete(this.desc.id)}))))}}),(e=>{o.error(e)})).finally((()=>{g.dispose()}));return r.showWhile(m,250),m}async _onResult(e,t,i,n,o){const s=this._getGoToPreference(i);if(i instanceof V2||!(this.configuration.openInPeek||"peek"===s&&n.references.length>1)){const r=n.firstReference(),a=n.references.length>1&&"gotoAndPeek"===s,l=await this._openReference(i,e,r,this.configuration.openToSide,!a);a&&l?this._openInPeek(l,n,o):n.dispose(),"goto"===s&&t.put(r)}else this._openInPeek(i,n,o)}async _openReference(e,t,i,n,o){let s;var r;if((r=i)&&An.isUri(r.uri)&&Un.isIRange(r.range)&&(Un.isIRange(r.originSelectionRange)||Un.isIRange(r.targetSelectionRange))&&(s=i.targetSelectionRange),s||(s=i.range),!s)return;const a=await t.openCodeEditor({resource:i.uri,options:{selection:Un.collapseToStart(s),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(a){if(o){const e=a.getModel(),t=a.createDecorationsCollection([{range:s,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout((()=>{a.getModel()===e&&t.clear()}),350)}return a}}_openInPeek(e,t,i){const n=x4.get(e);n&&e.hasModel()?n.toggleWidget(null!=i?i:e.getSelection(),Mr((e=>Promise.resolve(t))),this.configuration.openInPeek):t.dispose()}}o5._allSymbolNavigationCommands=new Map,o5._activeAlternativeCommands=new Set;class s5 extends o5{async _getLocationModel(e,t,i,n){return new h4(await G4(e.definitionProvider,t,i,n),pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","def.title","Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","noResultWord","No definition found for '{0}'",e.word):pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleDefinitions}}yh(((j4=class extends s5{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:j4.id,title:{...fe(0,"Go to Definition"),mnemonicTitle:pe("vs/editor/contrib/gotoSymbol/browser/goToCommands",{key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:JT.hasDefinitionProvider,keybinding:[{when:JT.editorTextFocus,primary:70,weight:100},{when:Dd.and(JT.editorTextFocus,PG),primary:2118,weight:100}],menu:[{id:bh.EditorContext,group:"navigation",order:1.1},{id:bh.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),pd.registerCommandAlias("editor.action.goToDeclaration",j4.id)}}).id="editor.action.revealDefinition",j4)),yh(((X4=class extends s5{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:X4.id,title:fe(0,"Open Definition to the Side"),precondition:Dd.and(JT.hasDefinitionProvider,JT.isInEmbeddedEditor.toNegated()),keybinding:[{when:JT.editorTextFocus,primary:$i(2089,70),weight:100},{when:Dd.and(JT.editorTextFocus,PG),primary:$i(2089,2118),weight:100}]}),pd.registerCommandAlias("editor.action.openDeclarationToTheSide",X4.id)}}).id="editor.action.revealDefinitionAside",X4)),yh(((J4=class extends s5{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:J4.id,title:fe(0,"Peek Definition"),precondition:Dd.and(JT.hasDefinitionProvider,Q2.notInPeekEditor,JT.isInEmbeddedEditor.toNegated()),keybinding:{when:JT.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:bh.EditorContextPeek,group:"peek",order:2}}),pd.registerCommandAlias("editor.action.previewDeclaration",J4.id)}}).id="editor.action.peekDefinition",J4));class r5 extends o5{async _getLocationModel(e,t,i,n){return new h4(await z4(e.declarationProvider,t,i,n),pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","decl.title","Declarations"))}_getNoResultFoundMessage(e){return e&&e.word?pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","decl.noResultWord","No declaration found for '{0}'",e.word):pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(58).multipleDeclarations}}yh(((Q4=class extends r5{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Q4.id,title:{...fe(0,"Go to Declaration"),mnemonicTitle:pe("vs/editor/contrib/gotoSymbol/browser/goToCommands",{key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:Dd.and(JT.hasDeclarationProvider,JT.isInEmbeddedEditor.toNegated()),menu:[{id:bh.EditorContext,group:"navigation",order:1.3},{id:bh.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","decl.noResultWord","No declaration found for '{0}'",e.word):pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","decl.generic.noResults","No declaration found")}}).id="editor.action.revealDeclaration",Q4)),yh(class extends r5{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:fe(0,"Peek Declaration"),precondition:Dd.and(JT.hasDeclarationProvider,Q2.notInPeekEditor,JT.isInEmbeddedEditor.toNegated()),menu:{id:bh.EditorContextPeek,group:"peek",order:3}})}});class a5 extends o5{async _getLocationModel(e,t,i,n){return new h4(await Y4(e.typeDefinitionProvider,t,i,n),pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","typedef.title","Type Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleTypeDefinitions}}yh(((Z4=class extends a5{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Z4.ID,title:{...fe(0,"Go to Type Definition"),mnemonicTitle:pe("vs/editor/contrib/gotoSymbol/browser/goToCommands",{key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:JT.hasTypeDefinitionProvider,keybinding:{when:JT.editorTextFocus,primary:0,weight:100},menu:[{id:bh.EditorContext,group:"navigation",order:1.4},{id:bh.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}}).ID="editor.action.goToTypeDefinition",Z4)),yh(((e5=class extends a5{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e5.ID,title:fe(0,"Peek Type Definition"),precondition:Dd.and(JT.hasTypeDefinitionProvider,Q2.notInPeekEditor,JT.isInEmbeddedEditor.toNegated()),menu:{id:bh.EditorContextPeek,group:"peek",order:4}})}}).ID="editor.action.peekTypeDefinition",e5));class l5 extends o5{async _getLocationModel(e,t,i,n){return new h4(await K4(e.implementationProvider,t,i,n),pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","impl.title","Implementations"))}_getNoResultFoundMessage(e){return e&&e.word?pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","goToImplementation.noResultWord","No implementation found for '{0}'",e.word):pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(58).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(58).multipleImplementations}}yh(((t5=class extends l5{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:t5.ID,title:{...fe(0,"Go to Implementations"),mnemonicTitle:pe("vs/editor/contrib/gotoSymbol/browser/goToCommands",{key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:JT.hasImplementationProvider,keybinding:{when:JT.editorTextFocus,primary:2118,weight:100},menu:[{id:bh.EditorContext,group:"navigation",order:1.45},{id:bh.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}}).ID="editor.action.goToImplementation",t5)),yh(((i5=class extends l5{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:i5.ID,title:fe(0,"Peek Implementations"),precondition:Dd.and(JT.hasImplementationProvider,Q2.notInPeekEditor,JT.isInEmbeddedEditor.toNegated()),keybinding:{when:JT.editorTextFocus,primary:3142,weight:100},menu:{id:bh.EditorContextPeek,group:"peek",order:5}})}}).ID="editor.action.peekImplementation",i5));class c5 extends o5{_getNoResultFoundMessage(e){return e?pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","references.no","No references found for '{0}'",e.word):pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(58).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(58).multipleReferences}}yh(class extends c5{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{...fe(0,"Go to References"),mnemonicTitle:pe("vs/editor/contrib/gotoSymbol/browser/goToCommands",{key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:Dd.and(JT.hasReferenceProvider,Q2.notInPeekEditor,JT.isInEmbeddedEditor.toNegated()),keybinding:{when:JT.editorTextFocus,primary:1094,weight:100},menu:[{id:bh.EditorContext,group:"navigation",order:1.45},{id:bh.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}async _getLocationModel(e,t,i,n){return new h4(await q4(e.referenceProvider,t,i,!0,n),pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","ref.title","References"))}}),yh(class extends c5{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:fe(0,"Peek References"),precondition:Dd.and(JT.hasReferenceProvider,Q2.notInPeekEditor,JT.isInEmbeddedEditor.toNegated()),menu:{id:bh.EditorContextPeek,group:"peek",order:6}})}async _getLocationModel(e,t,i,n){return new h4(await q4(e.referenceProvider,t,i,!1,n),pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","ref.title","References"))}});class d5 extends o5{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:fe(0,"Go to Any Symbol"),precondition:Dd.and(Q2.notInPeekEditor,JT.isInEmbeddedEditor.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}async _getLocationModel(e,t,i,n){return new h4(this._references,pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","generic.title","Locations"))}_getNoResultFoundMessage(e){return e&&pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return null!==(t=this._gotoMultipleBehaviour)&&void 0!==t?t:e.getOption(58).multipleReferences}_getAlternativeCommand(){return""}}async function h5(e,t,i,n){var o;const s=e.get(sd),r=e.get(Ex),a=e.get(md),l=e.get(td),c=e.get(kD);if(await n.item.resolve(Mi.None),!n.part.location)return;const d=n.part.location,h=[],u=new Set(Ch.getMenuItems(bh.EditorContext).map((e=>_h(e)?e.command.id:IQ())));for(const m of o5.all())u.has(m.desc.id)&&h.push(new rd(m.desc.id,wh.label(m.desc,{renderShortTitle:!0}),void 0,!0,(async()=>{const e=await s.createModelReference(d.uri);try{const i=new n5(e.object.textEditorModel,Un.getStartPosition(d.range)),o=n.item.anchor.range;await l.invokeFunction(m.runEditorCommand.bind(m),t,i,o)}finally{e.dispose()}})));if(n.part.command){const{command:e}=n.part;h.push(new ld),h.push(new rd(e.id,e.title,void 0,!0,(async()=>{var t;try{await a.executeCommand(e.id,...null!==(t=e.arguments)&&void 0!==t?t:[])}catch(i){c.notify({severity:ND.Error,source:n.item.provider.displayName,message:i})}})))}const g=t.getOption(127);r.showContextMenu({domForShadowRoot:g&&null!==(o=t.getDomNode())&&void 0!==o?o:void 0,getAnchor:()=>{const e=Hl(i);return{x:e.left,y:e.top+e.height+8}},getActions:()=>h,onHide:()=>{t.focus()},autoSelectFirstItem:!0})}async function u5(e,t,i,n){const o=e.get(sd),s=await o.createModelReference(n.uri);await i.invokeWithinContext((async e=>{const o=t.hasSideBySideModifier,r=e.get(Zd),a=Q2.inPeekEditor.getValue(r),l=!o&&i.getOption(88)&&!a;return new s5({openToSide:o,openInPeek:l,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e,new n5(s.object.textEditorModel,Un.getStartPosition(n.range)),Un.lift(n.range))})),s.dispose()}pd.registerCommand({id:"editor.action.goToLocations",metadata:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:An},{name:"position",description:"The position at which to start",constraint:Wn.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:async(e,t,i,n,o,s,r)=>{ie(An.isUri(t)),ie(Wn.isIPosition(i)),ie(Array.isArray(n)),ie(void 0===o||"string"==typeof o),ie(void 0===r||"boolean"==typeof r);const a=e.get(nd),l=await a.openCodeEditor({resource:t},a.getFocusedCodeEditor());if(IX(l))return l.setPosition(i),l.revealPositionInCenterIfOutsideViewport(i,0),l.invokeWithinContext((e=>{const t=new class extends d5{_getNoResultFoundMessage(e){return s||super._getNoResultFoundMessage(e)}}({muteMessage:!Boolean(s),openInPeek:Boolean(r),openToSide:!1},n,o);e.get(td).invokeFunction(t.run.bind(t),l)}))}}),pd.registerCommand({id:"editor.action.peekLocations",metadata:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:An},{name:"position",description:"The position at which to start",constraint:Wn.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"}]},handler:async(e,t,i,n,o)=>{e.get(md).executeCommand("editor.action.goToLocations",t,i,n,o,void 0,!0)}}),pd.registerCommand({id:"editor.action.findReferences",handler:(e,t,i)=>{ie(An.isUri(t)),ie(Wn.isIPosition(i));const n=e.get(lf),o=e.get(nd);return o.openCodeEditor({resource:t},o.getFocusedCodeEditor()).then((e=>{if(!IX(e)||!e.hasModel())return;const t=x4.get(e);if(!t)return;const o=Mr((t=>q4(n.referenceProvider,e.getModel(),Wn.lift(i),!1,t).then((e=>new h4(e,pe("vs/editor/contrib/gotoSymbol/browser/goToCommands","ref.title","References")))))),s=new Un(i.lineNumber,i.column,i.lineNumber,i.column);return Promise.resolve(t.toggleWidget(s,o,!1))}))}}),pd.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var g5,m5=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},p5=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class f5{constructor(){this._entries=new um(50)}get(e){const t=f5._key(e);return this._entries.get(t)}set(e,t){const i=f5._key(e);this._entries.set(i,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}const _5=id("IInlayHintsCache");ng(_5,f5,1);class b5{constructor(e,t){this.item=e,this.index=t}get part(){const e=this.item.hint.label;return"string"==typeof e?{label:e}:e[this.index]}}class v5{constructor(e,t){this.part=e,this.hasTriggerModifier=t}}let S5=g5=class{static get(e){var t;return null!==(t=e.getContribution(g5.ID))&&void 0!==t?t:void 0}constructor(e,t,i,n,o,s,r){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=n,this._commandService=o,this._notificationService=s,this._instaService=r,this._disposables=new gi,this._sessionDisposables=new gi,this._decorationsMetadata=new Map,this._ruleFactory=new pC(this._editor),this._activeRenderMode=0,this._debounceInfo=i.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange((()=>this._update()))),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(141)&&this._update()}))),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const e=this._editor.getOption(141);if("off"===e.enabled)return;const t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;if("on"===e.enabled)this._activeRenderMode=0;else{let t,i;"onUnlessPressed"===e.enabled?(t=0,i=1):(t=1,i=0),this._activeRenderMode=t,this._sessionDisposables.add(xc.getInstance().event((e=>{if(!this._editor.hasModel())return;const n=e.altKey&&e.ctrlKey&&!e.shiftKey&&!e.metaKey?i:t;if(n!==this._activeRenderMode){this._activeRenderMode=n;const e=this._editor.getModel(),t=this._copyInlayHintsWithCurrentAnchor(e);this._updateHintsDecorators([e.getFullModelRange()],t),s.schedule(0)}})))}const i=this._inlayHintsCache.get(t);let n;i&&this._updateHintsDecorators([t.getFullModelRange()],i),this._sessionDisposables.add(ui((()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)})));const o=new Set,s=new Kr((async()=>{const e=Date.now();null==n||n.dispose(!0),n=new Fi;const i=t.onWillDispose((()=>null==n?void 0:n.cancel()));try{const i=n.token,r=await H2.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),i);if(s.delay=this._debounceInfo.update(t,Date.now()-e),i.isCancellationRequested)return void r.dispose();for(const e of r.provider)"function"!=typeof e.onDidChangeInlayHints||o.has(e)||(o.add(e),this._sessionDisposables.add(e.onDidChangeInlayHints((()=>{s.isScheduled()||s.schedule()}))));this._sessionDisposables.add(r),this._updateHintsDecorators(r.ranges,r.items),this._cacheHintsForFastRestore(t)}catch(r){Jt(r)}finally{n.dispose(),i.dispose()}}),this._debounceInfo.get(t));this._sessionDisposables.add(s),this._sessionDisposables.add(ui((()=>null==n?void 0:n.dispose(!0)))),s.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange((e=>{!e.scrollTopChanged&&s.isScheduled()||s.schedule()}))),this._sessionDisposables.add(this._editor.onDidChangeModelContent((e=>{null==n||n.cancel();const t=Math.max(s.delay,1250);s.schedule(t)}))),this._sessionDisposables.add(this._installDblClickGesture((()=>s.schedule(0)))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new gi,t=e.add(new P2(this._editor)),i=new gi;return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown((e=>{const[t]=e,n=this._getInlayHintLabelPart(t),o=this._editor.getModel();if(!n||!o)return void i.clear();const s=new Fi;i.add(ui((()=>s.dispose(!0)))),n.item.resolve(s.token),this._activeInlayHintPart=n.part.command||n.part.location?new v5(n,t.hasTriggerModifier):void 0;const r=o.validatePosition(n.item.hint.position).lineNumber,a=new Un(r,1,r,o.getLineMaxColumn(r)),l=this._getInlineHintsForRange(a);this._updateHintsDecorators([a],l),i.add(ui((()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([a],l)})))}))),e.add(t.onCancel((()=>i.clear()))),e.add(t.onExecute((async e=>{const t=this._getInlayHintLabelPart(e);if(t){const i=t.part;i.location?this._instaService.invokeFunction(u5,e,this._editor,i.location):lo.is(i.command)&&await this._invokeCommand(i.command,t.item)}}))),e}_getInlineHintsForRange(e){const t=new Set;for(const i of this._decorationsMetadata.values())e.containsRange(i.item.anchor.range)&&t.add(i.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp((async t=>{if(2!==t.event.detail)return;const i=this._getInlayHintLabelPart(t);if(i&&(t.event.preventDefault(),await i.item.resolve(Mi.None),L(i.item.hint.textEdits))){const t=i.item.hint.textEdits.map((e=>cF.replace(Un.lift(e.range),e.text)));this._editor.executeEdits("inlayHint.default",t),e()}}))}_installContextMenu(){return this._editor.onContextMenu((async e=>{if(!(e.event.target instanceof HTMLElement))return;const t=this._getInlayHintLabelPart(e);t&&await this._instaService.invokeFunction(h5,this._editor,e.event.target,t)}))}_getInlayHintLabelPart(e){var t;if(6!==e.target.type)return;const i=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return i instanceof UN&&(null==i?void 0:i.attachedData)instanceof b5?i.attachedData:void 0}async _invokeCommand(e,t){var i;try{await this._commandService.executeCommand(e.id,...null!==(i=e.arguments)&&void 0!==i?i:[])}catch(sue){this._notificationService.notify({severity:ND.Error,source:t.provider.displayName,message:sue})}}_cacheHintsForFastRestore(e){const t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){const t=new Map;for(const[i,n]of this._decorationsMetadata){if(t.has(n.item))continue;const o=e.getDecorationRange(i);if(o){const e=new F2(o,n.item.anchor.direction),i=n.item.with({anchor:e});t.set(n.item,i)}}return Array.from(t.values())}_getHintsRanges(){const e=this._editor.getModel(),t=this._editor.getVisibleRangesPlusViewportAboveBelow(),i=[];for(const n of t.sort(Un.compareRangesUsingStarts)){const t=e.validateRange(new Un(n.startLineNumber-30,n.startColumn,n.endLineNumber+30,n.endColumn));0!==i.length&&Un.areIntersectingOrTouching(i[i.length-1],t)?i[i.length-1]=Un.plusRange(i[i.length-1],t):i.push(t)}return i}_updateHintsDecorators(e,t){var i,n;const o=[],s=(e,t,i,n,s)=>{const r={content:i,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:t.className,cursorStops:n,attachedData:s};o.push({item:e,classNameRef:t,decoration:{range:e.anchor.range,options:{description:"InlayHint",showIfCollapsed:e.anchor.range.isEmpty(),collapseOnReplaceEdit:!e.anchor.range.isEmpty(),stickiness:0,[e.anchor.direction]:0===this._activeRenderMode?r:void 0}}})},r=(e,t)=>{const i=this._ruleFactory.createClassNameRef({width:(a/3|0)+"px",display:"inline-block"});s(e,i," ",t?Sm.Right:Sm.None)},{fontSize:a,fontFamily:l,padding:c,isUniform:d}=this._getLayoutInfo(),h="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(h,l);let u={line:0,totalLen:0};for(const p of t){if(u.line!==p.anchor.range.startLineNumber&&(u={line:p.anchor.range.startLineNumber,totalLen:0}),u.totalLen>g5._MAX_LABEL_LEN)continue;p.hint.paddingLeft&&r(p,!1);const e="string"==typeof p.hint.label?[{label:p.hint.label}]:p.hint.label;for(let t=0;t0&&(g=g.slice(0,-f)+"…",m=!0),s(p,this._ruleFactory.createClassNameRef(l),C5(g),r&&!p.hint.paddingRight?Sm.Right:Sm.None,new b5(p,t)),m)break}if(p.hint.paddingRight&&r(p,!0),o.length>g5._MAX_DECORATORS)break}const g=[];for(const[p,f]of this._decorationsMetadata){const t=null===(n=this._editor.getModel())||void 0===n?void 0:n.getDecorationRange(p);t&&e.some((e=>e.containsRange(t)))&&(g.push(p),f.classNameRef.dispose(),this._decorationsMetadata.delete(p))}const m=Mq.capture(this._editor);this._editor.changeDecorations((e=>{const t=e.deltaDecorations(g,o.map((e=>e.decoration)));for(let i=0;ii)&&(o=i);const s=e.fontFamily||n;return{fontSize:o,fontFamily:s,padding:t,isUniform:!t&&s===n&&o===i}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};function C5(e){return e.replace(/[ \t]/g," ")}S5.ID="editor.contrib.InlayHints",S5._MAX_DECORATORS=1500,S5._MAX_LABEL_LEN=43,S5=g5=m5([p5(1,lf),p5(2,RO),p5(3,_5),p5(4,md),p5(5,kD),p5(6,td)],S5),pd.registerCommand("_executeInlayHintProvider",(async(e,...t)=>{const[i,n]=t;ie(An.isUri(i)),ie(Un.isIRange(n));const{inlayHintsProvider:o}=e.get(lf),s=await e.get(sd).createModelReference(i);try{const e=await H2.create(o,s.object.textEditorModel,[Un.lift(n)],Mi.None),t=e.items.map((e=>e.hint));return setTimeout((()=>e.dispose()),0),t}finally{s.dispose()}}));var E5=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},w5=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class T5 extends _2{constructor(e,t,i,n){super(10,t,e.item.anchor.range,i,n,!0),this.part=e}}let y5=class extends I2{constructor(e,t,i,n,o,s,r,a){super(e,t,i,s,a,n,o),this._resolverService=r,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;if(!S5.get(this._editor))return null;if(6!==e.target.type)return null;const i=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return i instanceof UN&&i.attachedData instanceof b5?new T5(i.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof T5?new Qr((async t=>{const{part:n}=e;if(await n.item.resolve(i),i.isCancellationRequested)return;let o,s;if("string"==typeof n.item.hint.tooltip?o=(new YM).appendText(n.item.hint.tooltip):n.item.hint.tooltip&&(o=n.item.hint.tooltip),o&&t.emitOne(new R2(this,e.range,[o],!1,0)),L(n.item.hint.textEdits)&&t.emitOne(new R2(this,e.range,[(new YM).appendText(pe("vs/editor/contrib/inlayHints/browser/inlayHintsHover","hint.dbl","Double-click to insert"))],!1,10001)),"string"==typeof n.part.tooltip?s=(new YM).appendText(n.part.tooltip):n.part.tooltip&&(s=n.part.tooltip),s&&t.emitOne(new R2(this,e.range,[s],!1,1)),n.part.location||n.part.command){let i;const o="altKey"===this._editor.getOption(78)?Pe?pe("vs/editor/contrib/inlayHints/browser/inlayHintsHover","links.navigate.kb.meta.mac","cmd + click"):pe("vs/editor/contrib/inlayHints/browser/inlayHintsHover","links.navigate.kb.meta","ctrl + click"):Pe?pe("vs/editor/contrib/inlayHints/browser/inlayHintsHover","links.navigate.kb.alt.mac","option + click"):pe("vs/editor/contrib/inlayHints/browser/inlayHintsHover","links.navigate.kb.alt","alt + click");n.part.location&&n.part.command?i=(new YM).appendText(pe("vs/editor/contrib/inlayHints/browser/inlayHintsHover","hint.defAndCommand","Go to Definition ({0}), right click for more",o)):n.part.location?i=(new YM).appendText(pe("vs/editor/contrib/inlayHints/browser/inlayHintsHover","hint.def","Go to Definition ({0})",o)):n.part.command&&(i=new YM(`[${pe("vs/editor/contrib/inlayHints/browser/inlayHintsHover","hint.cmd","Execute Command")}](${r=n.part.command,An.from({scheme:Ja.command,path:r.id,query:r.arguments&&encodeURIComponent(JSON.stringify(r.arguments))}).toString()} "${n.part.command.title}") (${o})`,{isTrusted:!0})),i&&t.emitOne(new R2(this,e.range,[i],!1,1e4))}var r;const a=await this._resolveInlayHintLabelPartHover(n,i);for await(const e of a)t.emitOne(e)})):Qr.EMPTY}async _resolveInlayHintLabelPartHover(e,t){if(!e.part.location)return Qr.EMPTY;const{uri:i,range:n}=e.part.location,o=await this._resolverService.createModelReference(i);try{const i=o.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(i)?S2(this._languageFeaturesService.hoverProvider,i,new Wn(n.startLineNumber,n.startColumn),t).filter((e=>!qM(e.hover.contents))).map((t=>new R2(this,e.item.anchor.range,t.hover.contents,!1,2+t.ordinal))):Qr.EMPTY}finally{o.dispose()}}};y5=E5([w5(1,eg),w5(2,Ax),w5(3,tT),w5(4,vx),w5(5,$u),w5(6,sd),w5(7,lf)],y5);class R5{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(1!==t.type&&!t.supportsMarkerHover)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const o=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter((e=>{if(e.options.isWholeLine)return!0;const i=e.range.startLineNumber===n?e.range.startColumn:1,s=e.range.endLineNumber===n?e.range.endColumn:o;if(e.options.showIfCollapsed){if(i>t.range.startColumn+1||t.range.endColumn-1>s)return!1}else if(i>t.range.startColumn||t.range.endColumn>s)return!1;return!0}))}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return Qr.EMPTY;const i=R5._getLineDecorations(this._editor,t);return Qr.merge(this._participants.map((n=>n.computeAsync?n.computeAsync(t,i,e):Qr.EMPTY)))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=R5._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return T(t)}}class L5{constructor(e,t,i){this.anchor=e,this.messages=t,this.isComplete=i}filter(e){const t=this.messages.filter((t=>t.isValidForHoverAnchor(e)));return t.length===this.messages.length?this:new I5(this,this.anchor,t,this.isComplete)}}class I5 extends L5{constructor(e,t,i,n){super(t,i,n),this.original=e}filter(e){return this.original.filter(e)}}class A5{constructor(e,t,i,n,o,s,r,a,l,c){this.initialMousePosX=e,this.initialMousePosY=t,this.colorPicker=i,this.showAtPosition=n,this.showAtSecondaryPosition=o,this.preferAbove=s,this.stoleFocus=r,this.source=a,this.isBeforeContent=l,this.disposables=c,this.closestMouseDistance=void 0}}var N5=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},k5=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const D5=yc;let O5=class extends mi{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=D5("div.hover-row.status-bar"),this.hoverElement.tabIndex=0,this.actionsElement=vc(this.hoverElement,D5("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(yx.render(this.actionsElement,e,i))}append(e){const t=vc(this.actionsElement,e);return this._hasContent=!0,t}};O5=N5([k5(0,tT)],O5);var x5,M5=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},P5=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let F5=x5=class extends mi{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._currentResult=null,this._widget=this._register(this._instantiationService.createInstance(g2,this._editor)),this._participants=[];for(const n of b2.getAll()){const e=this._instantiationService.createInstance(n,this._editor);e instanceof I2&&!(e instanceof y5)&&(this._markdownHoverParticipant=e),this._participants.push(e)}this._participants.sort(((e,t)=>e.hoverOrdinal-t.hoverOrdinal)),this._computer=new R5(this._editor,this._participants),this._hoverOperation=this._register(new p2(this._editor,this._computer)),this._register(this._hoverOperation.onResult((e=>{if(!this._computer.anchor)return;const t=e.hasLoadingMessage?this._addLoadingMessage(e.value):e.value;this._withResult(new L5(this._computer.anchor,t,e.isComplete))}))),this._register(Ll(this._widget.getDomNode(),"keydown",(e=>{e.equals(9)&&this.hide()}))),this._register(go.onDidChange((()=>{this._widget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)})))}_startShowingOrUpdateHover(e,t,i,n,o){return this._widget.position&&this._currentResult?this._editor.getOption(60).sticky&&o&&this._widget.isMouseGettingCloser(o.event.posx,o.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,i,n,!0),!0):e?!(!e||!this._currentResult.anchor.equals(e))||(e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0)):(this._setCurrentResult(null),!1):!!e&&(this._startHoverOperationIfNecessary(e,t,i,n,!1),!0)}_startHoverOperationIfNecessary(e,t,i,n,o){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=o,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&0===e.messages.length&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}_addLoadingMessage(e){if(this._computer.anchor)for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}return e}_withResult(e){if(this._widget.position&&this._currentResult&&this._currentResult.isComplete){if(!e.isComplete)return;if(this._computer.insistOnKeepingHoverVisible&&0===e.messages.length)return}this._setCurrentResult(e)}_renderMessages(e,t){const{showAtPosition:i,showAtSecondaryPosition:n,highlightRange:o}=x5.computeHoverRanges(this._editor,e.range,t),s=new gi,r=s.add(new O5(this._keybindingService)),a=document.createDocumentFragment();let l=null;const c={fragment:a,statusBar:r,setColorPicker:e=>l=e,onContentsChanged:()=>this._widget.onContentsChanged(),setMinimumDimensions:e=>this._widget.setMinimumDimensions(e),hide:()=>this.hide()};for(const h of this._participants){const e=t.filter((e=>e.owner===h));e.length>0&&s.add(h.renderHoverParts(c,e))}const d=t.some((e=>e.isBeforeContent));if(r.hasContent&&a.appendChild(r.hoverElement),a.hasChildNodes()){if(o){const e=this._editor.createDecorationsCollection();e.set([{range:o,options:x5._DECORATION_OPTIONS}]),s.add(ui((()=>{e.clear()})))}this._widget.showAt(a,new A5(e.initialMousePosX,e.initialMousePosY,l,i,n,this._editor.getOption(60).above,this._computer.shouldFocus,this._computer.source,d,s))}else s.dispose()}static computeHoverRanges(e,t,i){let n=1;if(e.hasModel()){const i=e._getViewModel(),o=i.coordinatesConverter,s=o.convertModelRangeToViewRange(t),r=new Wn(s.startLineNumber,i.getLineMinColumn(s.startLineNumber));n=o.convertViewPositionToModelPosition(r).column}const o=t.startLineNumber;let s=t.startColumn,r=i[0].range,a=null;for(const l of i)r=Un.plusRange(r,l.range),l.range.startLineNumber===o&&l.range.endLineNumber===o&&(s=Math.max(Math.min(s,l.range.startColumn),n)),l.forceShowAtRange&&(a=l.range);return{showAtPosition:a?a.getStartPosition():new Wn(o,t.startColumn),showAtSecondaryPosition:a?a.getStartPosition():new Wn(o,s),highlightRange:r}}showsOrWillShow(e){if(this._widget.isResizing)return!0;const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const i=n.suggestHoverAnchor(e);i&&t.push(i)}const i=e.target;if(6===i.type&&t.push(new f2(0,i.range,e.event.posx,e.event.posy)),7===i.type){const n=this._editor.getOption(50).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&"number"==typeof i.detail.horizontalDistanceToText&&i.detail.horizontalDistanceToTextt.priority-e.priority)),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,i,n){this._startShowingOrUpdateHover(new f2(0,e,void 0,void 0),t,i,n,null)}async updateFocusedMarkdownHoverVerbosityLevel(e){var t;null===(t=this._markdownHoverParticipant)||void 0===t||t.updateFocusedMarkdownHoverPartVerbosityLevel(e)}containsNode(e){return!!e&&this._widget.getDomNode().contains(e)}focus(){this._widget.focus()}scrollUp(){this._widget.scrollUp()}scrollDown(){this._widget.scrollDown()}scrollLeft(){this._widget.scrollLeft()}scrollRight(){this._widget.scrollRight()}pageUp(){this._widget.pageUp()}pageDown(){this._widget.pageDown()}goToTop(){this._widget.goToTop()}goToBottom(){this._widget.goToBottom()}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}get isColorPickerVisible(){return this._widget.isColorPickerVisible}get isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}get isVisible(){return this._widget.isVisible}get isFocused(){return this._widget.isFocused}get isResizing(){return this._widget.isResizing}get widget(){return this._widget}};F5._DECORATION_OPTIONS=VN.register({description:"content-hover-highlight",className:"hoverHighlight"}),F5=x5=M5([P5(1,td),P5(2,tT)],F5);class B5{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}get lane(){return this._laneOrLine}set lane(e){this._laneOrLine=e}constructor(e){this._editor=e,this._lineNumber=-1,this._laneOrLine=vm.Center}computeSync(){var e,t;const i=e=>({value:e}),n=this._editor.getLineDecorations(this._lineNumber),o=[],s="lineNo"===this._laneOrLine;if(!n)return o;for(const r of n){const n=null!==(t=null===(e=r.options.glyphMargin)||void 0===e?void 0:e.position)&&void 0!==t?t:vm.Center;if(!s&&n!==this._laneOrLine)continue;const a=s?r.options.lineNumberHoverMessage:r.options.glyphMarginHoverMessage;a&&!qM(a)&&o.push(...M(a).map(i))}return o}}const H5=yc;class W5 extends mi{constructor(e,t,i){super(),this._renderDisposeables=this._register(new gi),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new Tx),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new IP({editor:this._editor},t,i)),this._computer=new B5(this._editor),this._hoverOperation=this._register(new p2(this._editor,this._computer)),this._register(this._hoverOperation.onResult((e=>{this._withResult(e.value)}))),this._register(this._editor.onDidChangeModelDecorations((()=>this._onModelDecorationsChanged()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return W5.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}showsOrWillShow(e){const t=e.target;return 2===t.type&&t.detail.glyphMarginLane?(this._startShowingAt(t.position.lineNumber,t.detail.glyphMarginLane),!0):3===t.type&&(this._startShowingAt(t.position.lineNumber,"lineNo"),!0)}_startShowingAt(e,t){this._computer.lineNumber===e&&this._computer.lane===t||(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._computer.lane=t,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const e=H5("div.hover-row.markdown-hover"),t=vc(e,H5("div.hover-contents")),o=this._renderDisposeables.add(this._markdownRenderer.render(n.value));t.appendChild(o.element),i.appendChild(e)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),o=this._editor.getOption(67),s=i-n-(this._hover.containerDomNode.clientHeight-o)/2,r=t.glyphMarginLeft+t.glyphMarginWidth+("lineNo"===this._computer.lane?t.lineNumbersWidth:0);this._hover.containerDomNode.style.left=`${r}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(s),0)}px`}}W5.ID="editor.contrib.modesGlyphHoverWidget";var U5,V5=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},G5=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let z5=U5=class extends mi{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._listenersStore=new gi,this._hoverState={mouseDown:!1,activatedByDecoratorClick:!1},this._reactToEditorMouseMoveRunner=this._register(new Kr((()=>this._reactToEditorMouseMove(this._mouseMoveEvent)),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())})))}static get(e){return e.getContribution(U5.ID)}_hookListeners(){const e=this._editor.getOption(60);this._hoverSettings={enabled:e.enabled,sticky:e.sticky,hidingDelay:e.delay},e.enabled?(this._listenersStore.add(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._listenersStore.add(this._editor.onMouseUp((()=>this._onEditorMouseUp()))),this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))):(this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))),this._listenersStore.add(this._editor.onMouseLeave((e=>this._onEditorMouseLeave(e)))),this._listenersStore.add(this._editor.onDidChangeModel((()=>{this._cancelScheduler(),this._hideWidgets()}))),this._listenersStore.add(this._editor.onDidChangeModelContent((()=>this._cancelScheduler()))),this._listenersStore.add(this._editor.onDidScrollChange((e=>this._onEditorScrollChanged(e))))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._hoverState.mouseDown=!0,this._shouldNotHideCurrentHoverWidget(e)||this._hideWidgets()}_shouldNotHideCurrentHoverWidget(e){return!!(this._isMouseOnContentHoverWidget(e)||this._isMouseOnMarginHoverWidget(e)||this._isContentWidgetResizing())}_isMouseOnMarginHoverWidget(e){const t=e.target;return!!t&&12===t.type&&t.detail===W5.ID}_isMouseOnContentHoverWidget(e){const t=e.target;return!!t&&9===t.type&&t.detail===g2.ID}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(e){this._cancelScheduler(),this._shouldNotHideCurrentHoverWidget(e)||this._hideWidgets()}_shouldNotRecomputeCurrentHoverWidget(e){const t=this._hoverSettings.sticky;return!!(((e,t)=>{const i=this._isMouseOnMarginHoverWidget(e);return t&&i})(e,t)||((e,t)=>{const i=this._isMouseOnContentHoverWidget(e);return t&&i})(e,t)||(e=>{var t;const i=this._isMouseOnContentHoverWidget(e),n=null===(t=this._contentWidget)||void 0===t?void 0:t.isColorPickerVisible;return i&&n})(e)||((e,t)=>{var i,n,o,s;return t&&(null===(i=this._contentWidget)||void 0===i?void 0:i.containsNode(null===(n=e.event.browserEvent.view)||void 0===n?void 0:n.document.activeElement))&&!(null===(s=null===(o=e.event.browserEvent.view)||void 0===o?void 0:o.getSelection())||void 0===s?void 0:s.isCollapsed)})(e,t))}_onEditorMouseMove(e){var t,i,n,o;if(this._mouseMoveEvent=e,(null===(t=this._contentWidget)||void 0===t?void 0:t.isFocused)||(null===(i=this._contentWidget)||void 0===i?void 0:i.isResizing))return;const s=this._hoverSettings.sticky;if(s&&(null===(n=this._contentWidget)||void 0===n?void 0:n.isVisibleFromKeyboard))return;if(this._shouldNotRecomputeCurrentHoverWidget(e))return void this._reactToEditorMouseMoveRunner.cancel();const r=this._hoverSettings.hidingDelay;(null===(o=this._contentWidget)||void 0===o?void 0:o.isVisible)&&s&&r>0?this._reactToEditorMouseMoveRunner.isScheduled()||this._reactToEditorMouseMoveRunner.schedule(r):this._reactToEditorMouseMove(e)}_reactToEditorMouseMove(e){var t;if(!e)return;const i=null===(t=e.target.element)||void 0===t?void 0:t.classList.contains("colorpicker-color-decoration"),n=this._editor.getOption(148),o=this._hoverSettings.enabled,s=this._hoverState.activatedByDecoratorClick;i&&("click"===n&&!s||"hover"===n&&!o||"clickAndHover"===n&&!o&&!s)||!(i||o||s)?this._hideWidgets():this._tryShowHoverWidget(e,0)||this._tryShowHoverWidget(e,1)||this._hideWidgets()}_tryShowHoverWidget(e,t){const i=this._getOrCreateContentWidget(),n=this._getOrCreateGlyphWidget();let o,s;switch(t){case 0:o=i,s=n;break;case 1:o=n,s=i;break;default:throw new Error(`HoverWidgetType ${t} is unrecognized`)}const r=o.showsOrWillShow(e);return r&&s.hide(),r}_onKeyDown(e){var t;if(!this._editor.hasModel())return;const i=this._keybindingService.softDispatch(e,this._editor.getDomNode()),n=1===i.kind||2===i.kind&&(i.commandId===Y1||i.commandId===q1||i.commandId===$1)&&(null===(t=this._contentWidget)||void 0===t?void 0:t.isVisible);5===e.keyCode||6===e.keyCode||57===e.keyCode||4===e.keyCode||n||this._hideWidgets()}_hideWidgets(){var e,t,i;this._hoverState.mouseDown&&(null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible)||o2.dropDownVisible||(this._hoverState.activatedByDecoratorClick=!1,null===(t=this._glyphWidget)||void 0===t||t.hide(),null===(i=this._contentWidget)||void 0===i||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(F5,this._editor)),this._contentWidget}_getOrCreateGlyphWidget(){return this._glyphWidget||(this._glyphWidget=this._instantiationService.createInstance(W5,this._editor)),this._glyphWidget}showContentHover(e,t,i,n,o=!1){this._hoverState.activatedByDecoratorClick=o,this._getOrCreateContentWidget().startShowingAtRange(e,t,i,n)}_isContentWidgetResizing(){var e;return(null===(e=this._contentWidget)||void 0===e?void 0:e.widget.isResizing)||!1}updateFocusedMarkdownHoverVerbosityLevel(e){this._getOrCreateContentWidget().updateFocusedMarkdownHoverVerbosityLevel(e)}focus(){var e;null===(e=this._contentWidget)||void 0===e||e.focus()}scrollUp(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollUp()}scrollDown(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollDown()}scrollLeft(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollLeft()}scrollRight(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollRight()}pageUp(){var e;null===(e=this._contentWidget)||void 0===e||e.pageUp()}pageDown(){var e;null===(e=this._contentWidget)||void 0===e||e.pageDown()}goToTop(){var e;null===(e=this._contentWidget)||void 0===e||e.goToTop()}goToBottom(){var e;null===(e=this._contentWidget)||void 0===e||e.goToBottom()}get isColorPickerVisible(){var e;return null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible}get isHoverVisible(){var e;return null===(e=this._contentWidget)||void 0===e?void 0:e.isVisible}dispose(){var e,t;super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),null===(e=this._glyphWidget)||void 0===e||e.dispose(),null===(t=this._contentWidget)||void 0===t||t.dispose()}};z5.ID="editor.contrib.hover",z5=U5=V5([G5(1,td),G5(2,tT)],z5);class K5 extends mi{constructor(e){super(),this._editor=e,this._register(e.onMouseDown((e=>this.onMouseDown(e))))}dispose(){super.dispose()}onMouseDown(e){const t=this._editor.getOption(148);if("click"!==t&&"clickAndHover"!==t)return;const i=e.target;if(6!==i.type)return;if(!i.detail.injectedText)return;if(i.detail.injectedText.options.attachedData!==E1)return;if(!i.range)return;const n=this._editor.getContribution(z5.ID);if(n&&!n.isColorPickerVisible){const e=new Un(i.range.startLineNumber,i.range.startColumn+1,i.range.endLineNumber,i.range.endColumn+1);n.showContentHover(e,1,0,!1,!0)}}}K5.ID="editor.contrib.colorContribution",zh(K5.ID,K5,2),b2.register(H1);var Y5,q5,$5=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},j5=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let X5=Y5=class extends mi{constructor(e,t,i,n,o,s,r){super(),this._editor=e,this._modelService=i,this._keybindingService=n,this._instantiationService=o,this._languageFeatureService=s,this._languageConfigurationService=r,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=JT.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=JT.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){var e;this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||null===(e=this._standaloneColorPickerWidget)||void 0===e||e.focus():this._standaloneColorPickerWidget=new J5(this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused,this._instantiationService,this._modelService,this._keybindingService,this._languageFeatureService,this._languageConfigurationService))}hide(){var e;this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),null===(e=this._standaloneColorPickerWidget)||void 0===e||e.hide(),this._editor.focus()}insertColor(){var e;null===(e=this._standaloneColorPickerWidget)||void 0===e||e.updateEditor(),this.hide()}static get(e){return e.getContribution(Y5.ID)}};X5.ID="editor.contrib.standaloneColorPickerController",X5=Y5=$5([j5(1,Zd),j5(2,od),j5(3,tT),j5(4,td),j5(5,lf),j5(6,Lg)],X5),zh(X5.ID,X5,1);let J5=q5=class extends mi{constructor(e,t,i,n,o,s,r,a){var l;super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=i,this._modelService=o,this._keybindingService=s,this._languageFeaturesService=r,this._languageConfigurationService=a,this.allowEditorOverflow=!0,this._position=void 0,this._body=document.createElement("div"),this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new Ri),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=n.createInstance(U1,this._editor),this._position=null===(l=this._editor._getViewModel())||void 0===l?void 0:l.getPrimaryCursorState().modelState.position;const c=this._editor.getSelection(),d=c?{startLineNumber:c.startLineNumber,startColumn:c.startColumn,endLineNumber:c.endLineNumber,endColumn:c.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},h=this._register(bc(this._body));this._register(h.onDidBlur((e=>{this.hide()}))),this._register(h.onDidFocus((e=>{this.focus()}))),this._register(this._editor.onDidChangeCursorPosition((()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()}))),this._register(this._editor.onMouseMove((e=>{var t;const i=null===(t=e.target.element)||void 0===t?void 0:t.classList;i&&i.contains("colorpicker-color-decoration")&&this.hide()}))),this._register(this.onResult((e=>{this._render(e.value,e.foundInEditor)}))),this._start(d),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return q5.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;const e=this._editor.getOption(60).above;return{position:this._position,secondaryPosition:this._position,preference:e?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this._body.focus()}async _start(e){const t=await this._computeAsync(e);t&&this._onResult.fire(new Q5(t.result,t.foundInEditor))}async _computeAsync(e){if(!this._editor.hasModel())return null;const t={range:e,color:{red:0,green:0,blue:0,alpha:1}},i=await this._standaloneColorPickerParticipant.createColorHover(t,new d1(this._modelService,this._languageConfigurationService),this._languageFeaturesService.colorProvider);return i?{result:i.colorHover,foundInEditor:i.foundInEditor}:null}_render(e,t){const i=document.createDocumentFragment();let n;const o={fragment:i,statusBar:this._register(new O5(this._keybindingService)),setColorPicker:e=>n=e,onContentsChanged:()=>{},hide:()=>this.hide()};if(this._colorHover=e,this._register(this._standaloneColorPickerParticipant.renderHoverParts(o,[e])),void 0===n)return;this._body.classList.add("standalone-colorpicker-body"),this._body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this._body.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px",this._body.tabIndex=0,this._body.appendChild(i),n.layout();const s=n.body,r=s.saturationBox.domNode.clientWidth,a=s.domNode.clientWidth-r-22-8,l=n.body.enterButton;null==l||l.onClicked((()=>{this.updateEditor(),this.hide()}));const c=n.header;c.pickedColorNode.style.width=r+8+"px",c.originalColorNode.style.width=a+"px";const d=n.header.closeButton;null==d||d.onClicked((()=>{this.hide()})),t&&(l&&(l.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};J5.ID="editor.contrib.standaloneColorPickerWidget",J5=q5=$5([j5(3,td),j5(4,od),j5(5,tT),j5(6,lf),j5(7,Lg)],J5);class Q5{constructor(e,t){this.value=e,this.foundInEditor=t}}Vh(class extends Fh{constructor(){super({id:"editor.action.hideColorPicker",label:pe("vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions",{key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:JT.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100},metadata:{description:fe(0,"Hide the standalone color picker.")}})}run(e,t){var i;null===(i=X5.get(t))||void 0===i||i.hide()}}),Vh(class extends Fh{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:pe("vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions",{key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:JT.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100},metadata:{description:fe(0,"Insert hex/rgb/hsl colors with the focused standalone color picker.")}})}run(e,t){var i;null===(i=X5.get(t))||void 0===i||i.insertColor()}}),yh(class extends Hh{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{...fe(0,"Show or Focus Standalone Color Picker"),mnemonicTitle:pe("vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions",{key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker")},precondition:void 0,menu:[{id:bh.CommandPalette}],metadata:{description:fe(0,"Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors.")}})}runEditorCommand(e,t){var i;null===(i=X5.get(t))||void 0===i||i.showOrFocus()}});class Z5{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const n=t.length;if(i+n>e.length)return!1;for(let o=0;o=65&&n<=90&&n+32===s||s>=65&&s<=90&&s+32===n))return!1}return!0}_createOperationsForBlockComment(e,t,i,n,o,s){const r=e.startLineNumber,a=e.startColumn,l=e.endLineNumber,c=e.endColumn,d=o.getLineContent(r),h=o.getLineContent(l);let u,g=d.lastIndexOf(t,a-1+t.length),m=h.indexOf(i,c-1-i.length);if(-1!==g&&-1!==m)if(r===l)d.substring(g+t.length,m).indexOf(i)>=0&&(g=-1,m=-1);else{const e=d.substring(g+t.length),n=h.substring(0,m);(e.indexOf(i)>=0||n.indexOf(i)>=0)&&(g=-1,m=-1)}-1!==g&&-1!==m?(n&&g+t.length0&&32===h.charCodeAt(m-1)&&(i=" "+i,m-=1),u=Z5._createRemoveBlockCommentOperations(new Un(r,g+t.length+1,l,m+1),t,i)):(u=Z5._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=1===u.length?i:null);for(const p of u)s.addTrackedEditOperation(p.range,p.text)}static _createRemoveBlockCommentOperations(e,t,i){const n=[];return Un.isEmpty(e)?n.push(cF.delete(new Un(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(n.push(cF.delete(new Un(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(cF.delete(new Un(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),n}static _createAddBlockCommentOperations(e,t,i,n){const o=[];return Un.isEmpty(e)?o.push(cF.replace(new Un(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(o.push(cF.insert(new Wn(e.startLineNumber,e.startColumn),t+(n?" ":""))),o.push(cF.insert(new Wn(e.endLineNumber,e.endColumn),(n?" ":"")+i))),o}getEditOperations(e,t){const i=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const o=e.getLanguageIdAtPosition(i,n),s=this.languageConfigurationService.getLanguageConfiguration(o).comments;s&&s.blockCommentStartToken&&s.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,s.blockCommentStartToken,s.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(2===i.length){const e=i[0],t=i[1];return new Vn(e.range.endLineNumber,e.range.endColumn,t.range.startLineNumber,t.range.startColumn)}{const e=i[0].range,t=this._usedEndToken?-this._usedEndToken.length-1:0;return new Vn(e.endLineNumber,e.endColumn+t,e.endLineNumber,e.endColumn+t)}}}class e3{constructor(e,t,i,n,o,s,r){this.languageConfigurationService=e,this._selection=t,this._indentSize=i,this._type=n,this._insertSpace=o,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=s,this._ignoreFirstLine=r||!1}static _gatherPreflightCommentStrings(e,t,i,n){e.tokenization.tokenizeIfCheap(t);const o=e.getLanguageIdAtPosition(t,1),s=n.getLanguageConfiguration(o).comments,r=s?s.lineCommentToken:null;if(!r)return null;const a=[];for(let l=0,c=i-t+1;lr?o-1:o}}}class t3 extends Fh{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(Lg);if(!t.hasModel())return;const n=[],o=t.getModel().getOptions(),s=t.getOption(23),r=t.getSelections().map(((e,t)=>({selection:e,index:t,ignoreFirstLine:!1})));r.sort(((e,t)=>Un.compareRangesUsingStarts(e.selection,t.selection)));let a=r[0];for(let l=1;l=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},o3=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let s3=i3=class{static get(e){return e.getContribution(i3.ID)}constructor(e,t,i,n,o,s,r,a){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=n,this._keybindingService=o,this._menuService=s,this._configurationService=r,this._workspaceContextService=a,this._toDispose=new gi,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu((e=>this._onContextMenu(e)))),this._toDispose.add(this._editor.onMouseWheel((e=>{if(this._contextMenuIsBeingShownCount>0){const t=this._contextViewService.getContextViewElement(),i=e.srcElement;i.shadowRoot&&jl(t)===i.shadowRoot||this._contextViewService.hideContextView()}}))),this._toDispose.add(this._editor.onKeyDown((e=>{this._editor.getOption(24)&&58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.showContextMenu())})))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(24))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(12===e.target.type)return;if(6===e.target.type&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),11===e.target.type)return this._showScrollbarContextMenu(e.event);if(6!==e.target.type&&7!==e.target.type&&1!==e.target.type)return;if(this._editor.focus(),e.target.position){let t=!1;for(const i of this._editor.getSelections())if(i.containsPosition(e.target.position)){t=!0;break}t||this._editor.setPosition(e.target.position)}let t=null;1!==e.target.type&&(t=e.event),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(24))return;if(!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.contextMenuId);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],n=this._menuService.createMenu(t,this._contextKeyService),o=n.getActions({arg:e.uri});n.dispose();for(const s of o){const[,t]=s;let n=0;for(const o of t)if(o instanceof Eh){const t=this._getMenuActions(e,o.item.submenu);t.length>0&&(i.push(new cd(o.id,o.label,t)),n++)}else i.push(o),n++;n&&i.push(new ld)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(60);this._editor.updateOptions({hover:{enabled:!1}});let n=t;if(!n){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const e=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),t=Hl(this._editor.getDomNode()),i=t.left+e.left,o=t.top+e.top+e.height;n={x:i,y:o}}const o=this._editor.getOption(127)&&!Ue;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:o?this._editor.getDomNode():void 0,getAnchor:()=>n,getActions:()=>e,getActionViewItem:e=>{const t=this._keybindingFor(e);if(t)return new cW(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0});const i=e;return"function"==typeof i.getActionViewItem?i.getActionViewItem():new cW(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:e=>this._keybindingFor(e),onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;if(this._workspaceContextService.getWorkspace().id===$F)return;const t=this._editor.getOption(73);let i=0;const n=e=>({id:"menu-action-"+ ++i,label:e.label,tooltip:"",class:void 0,enabled:void 0===e.enabled||e.enabled,checked:e.checked,run:e.run}),o=(e,t,o,s,r)=>{if(!t)return n({label:e,enabled:t,run:()=>{}});const a=e=>()=>{this._configurationService.updateValue(o,e)},l=[];for(const i of r)l.push(n({label:i.label,checked:s===i.value,run:a(i.value)}));return new cd("menu-action-"+ ++i,e,l,void 0)},s=[];s.push(n({label:pe("vs/editor/contrib/contextmenu/browser/contextmenu","context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),s.push(new ld),s.push(n({label:pe("vs/editor/contrib/contextmenu/browser/contextmenu","context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),s.push(o(pe("vs/editor/contrib/contextmenu/browser/contextmenu","context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:pe("vs/editor/contrib/contextmenu/browser/contextmenu","context.minimap.size.proportional","Proportional"),value:"proportional"},{label:pe("vs/editor/contrib/contextmenu/browser/contextmenu","context.minimap.size.fill","Fill"),value:"fill"},{label:pe("vs/editor/contrib/contextmenu/browser/contextmenu","context.minimap.size.fit","Fit"),value:"fit"}])),s.push(o(pe("vs/editor/contrib/contextmenu/browser/contextmenu","context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:pe("vs/editor/contrib/contextmenu/browser/contextmenu","context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:pe("vs/editor/contrib/contextmenu/browser/contextmenu","context.minimap.slider.always","Always"),value:"always"}]));const r=this._editor.getOption(127)&&!Ue;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:r?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>s,onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};s3.ID="editor.contrib.contextmenu",s3=i3=n3([o3(1,Ex),o3(2,Cx),o3(3,Zd),o3(4,tT),o3(5,vh),o3(6,$u),o3(7,zF)],s3),zh(s3.ID,s3,2),Vh(class extends Fh{constructor(){super({id:"editor.action.showContextMenu",label:pe("vs/editor/contrib/contextmenu/browser/contextmenu","action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:JT.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;null===(i=s3.get(t))||void 0===i||i.showContextMenu()}});class r3{constructor(e){this.selections=e}equals(e){const t=this.selections.length;if(t!==e.selections.length)return!1;for(let i=0;i{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeModelContent((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeCursorSelection((t=>{if(this._isCursorUndoRedo)return;if(!t.oldSelections)return;if(t.oldModelVersionId!==t.modelVersionId)return;const i=new r3(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new a3(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())})))}cursorUndo(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new a3(new r3(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new a3(new r3(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}l3.ID="editor.contrib.cursorUndoRedoController",zh(l3.ID,l3,0),Vh(class extends Fh{constructor(){super({id:"cursorUndo",label:pe("vs/editor/contrib/cursorUndo/browser/cursorUndo","cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:JT.textInputFocus,primary:2099,weight:100}})}run(e,t,i){var n;null===(n=l3.get(t))||void 0===n||n.cursorUndo()}}),Vh(class extends Fh{constructor(){super({id:"cursorRedo",label:pe("vs/editor/contrib/cursorUndo/browser/cursorUndo","cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){var n;null===(n=l3.get(t))||void 0===n||n.cursorRedo()}});class c3{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new Un(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new Vn(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new Vn(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumberthis._onEditorMouseDown(e)))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(e)))),this._register(this._editor.onMouseDrag((e=>this._onEditorMouseDrag(e)))),this._register(this._editor.onMouseDrop((e=>this._onEditorMouseDrop(e)))),this._register(this._editor.onMouseDropCanceled((()=>this._onEditorMouseDropCanceled()))),this._register(this._editor.onKeyDown((e=>this.onEditorKeyDown(e)))),this._register(this._editor.onKeyUp((e=>this.onEditorKeyUp(e)))),this._register(this._editor.onDidBlurEditorWidget((()=>this.onEditorBlur()))),this._register(this._editor.onDidBlurEditorText((()=>this.onEditorBlur()))),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(d3(e)&&(this._modifierPressed=!0),this._mouseDown&&d3(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(d3(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===h3.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(null===this._dragSelection){const e=(this._editor.getSelections()||[]).filter((e=>t.position&&e.containsPosition(t.position)));if(1!==e.length)return;this._dragSelection=e[0]}d3(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new Wn(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){let i=null;if(e.event.shiftKey){const e=this._editor.getSelection();if(e){const{selectionStartLineNumber:n,selectionStartColumn:o}=e;i=[new Vn(n,o,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map((e=>e.containsPosition(t)?new Vn(t.lineNumber,t.column,t.lineNumber,t.column):e));this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(d3(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(h3.ID,new c3(this._dragSelection,t,d3(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new Un(e.lineNumber,e.column,e.lineNumber,e.column),options:h3._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return 6===e.type||7===e.type}_hitMargin(e){return 2===e.type||3===e.type||4===e.type}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}var u3;h3.ID="editor.contrib.dragAndDrop",h3.TRIGGER_KEY_VALUE=Pe?6:5,h3._DECORATION_OPTIONS=VN.register({description:"dnd-target",className:"dnd-target"}),zh(h3.ID,h3,2),zh(DZ.ID,DZ,0),pq(XQ),Uh(new class extends Ph{constructor(){super({id:AZ,precondition:NZ,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t){var i;return null===(i=DZ.get(t))||void 0===i?void 0:i.changePasteType()}}),Uh(new class extends Ph{constructor(){super({id:"editor.hidePasteWidget",precondition:NZ,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t){var i;null===(i=DZ.get(t))||void 0===i||i.clearWidgets()}}),Vh((u3=class extends Fh{constructor(){super({id:"editor.action.pasteAs",label:pe("vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution","pasteAs","Paste As..."),alias:"Paste As...",precondition:JT.writable,metadata:{description:"Paste as",args:[{name:"args",schema:u3.argsSchema}]}})}run(e,t,i){var n;let o="string"==typeof(null==i?void 0:i.kind)?i.kind:void 0;return!o&&i&&(o="string"==typeof i.id?i.id:void 0),null===(n=DZ.get(t))||void 0===n?void 0:n.pasteAs(o?new MQ(o):void 0)}},u3.argsSchema={type:"object",properties:{kind:{type:"string",description:pe("vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution","pasteAs.kind","The kind of the paste edit to try applying. If not provided or there are multiple edits for this kind, the editor will show a picker.")}}},u3)),Vh(class extends Fh{constructor(){super({id:"editor.action.pasteAsText",label:pe("vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution","pasteAsText","Paste as Text"),alias:"Paste as Text",precondition:JT.writable})}run(e,t){var i;return null===(i=DZ.get(t))||void 0===i?void 0:i.pasteAs({providerId:zQ.id})}});class g3{constructor(e){this.identifier=e}}const m3=id("treeViewsDndService");ng(m3,class{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}},1);var p3,f3=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},_3=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const b3="editor.experimental.dropIntoEditor.defaultProvider",v3="editor.changeDropType",S3=new Qd("dropWidgetVisible",!1,pe("vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController","dropWidgetVisible","Whether the drop widget is showing"));let C3=p3=class extends mi{static get(e){return e.getContribution(p3.ID)}constructor(e,t,i,n,o){super(),this._configService=i,this._languageFeaturesService=n,this._treeViewsDragAndDropService=o,this.treeItemsTransfer=PQ.getInstance(),this._dropProgressManager=this._register(t.createInstance(pZ,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(yZ,"dropIntoEditor",e,S3,{id:v3,label:pe("vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController","postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor((t=>this.onDropIntoEditor(e,t.position,t.event))))}clearWidgets(){this._postDropWidgetManager.clear()}changeDropType(){this._postDropWidgetManager.tryShowSelector()}async onDropIntoEditor(e,t,i){var n;if(!i.dataTransfer||!e.hasModel())return;null===(n=this._currentOperation)||void 0===n||n.cancel(),e.focus(),e.setPosition(t);const o=Mr((async n=>{const s=new RX(e,1,void 0,n);try{const o=await this.extractDataTransferData(i);if(0===o.size||s.token.isCancellationRequested)return;const r=e.getModel();if(!r)return;const a=this._languageFeaturesService.documentDropEditProvider.ordered(r).filter((e=>!e.dropMimeTypes||e.dropMimeTypes.some((e=>o.matches(e))))),l=await this.getDropEdits(a,r,t,o,s);if(s.token.isCancellationRequested)return;if(l.length){const i=this.getInitialActiveEditIndex(r,l),o="afterDrop"===e.getOption(36).showDropSelector;await this._postDropWidgetManager.applyEditAndShowIfNeeded([Un.fromPositions(t)],{activeEditIndex:i,allEdits:l},o,(async e=>e),n)}}finally{s.dispose(),this._currentOperation===o&&(this._currentOperation=void 0)}}));this._dropProgressManager.showWhile(t,pe("vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController","dropIntoEditorProgress","Running drop handlers. Click to cancel"),o),this._currentOperation=o}async getDropEdits(e,t,i,n,o){const s=await Pr(Promise.all(e.map((async e=>{try{const s=await e.provideDocumentDropEdits(t,i,n,o.token);return null==s?void 0:s.map((t=>({...t,providerId:e.id})))}catch(s){}}))),o.token);return dZ(T(null!=s?s:[]).flat())}getInitialActiveEditIndex(e,t){const i=this._configService.getValue(b3,{resource:e.uri});for(const[n,o]of Object.entries(i)){const e=new MQ(o),i=t.findIndex((t=>e.value===t.providerId&&t.handledMimeType&&DQ(n,[t.handledMimeType])));if(i>=0)return i}return 0}async extractDataTransferData(e){if(!e.dataTransfer)return new NQ;const t=WQ(e.dataTransfer);if(this.treeItemsTransfer.hasData(g3.prototype)){const e=this.treeItemsTransfer.getData(g3.prototype);if(Array.isArray(e))for(const i of e){const e=await this._treeViewsDragAndDropService.removeDragOperationTransfer(i.identifier);if(e)for(const[i,n]of e)t.replace(i,n)}}return t}};C3.ID="editor.contrib.dropIntoEditorController",C3=p3=f3([_3(1,td),_3(2,$u),_3(3,lf),_3(4,m3)],C3),zh(C3.ID,C3,2),pq(jQ),Uh(new class extends Ph{constructor(){super({id:v3,precondition:S3,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t,i){var n;null===(n=C3.get(t))||void 0===n||n.changeDropType()}}),Uh(new class extends Ph{constructor(){super({id:"editor.hideDropWidget",precondition:S3,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t,i){var n;null===(n=C3.get(t))||void 0===n||n.clearWidgets()}}),dh.as(lg).registerConfiguration({...oF,properties:{[b3]:{type:"object",scope:5,description:pe("vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution","defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}});class E3{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map((e=>this._editor.getModel().getDecorationRange(e))).filter((e=>!!e));if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e{if(null!==this._highlightedDecorationId&&(e.changeDecorationOptions(this._highlightedDecorationId,E3._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),null!==t&&(this._highlightedDecorationId=t,e.changeDecorationOptions(this._highlightedDecorationId,E3._CURRENT_FIND_MATCH_DECORATION)),null!==this._rangeHighlightDecorationId&&(e.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),null!==t){let i=this._editor.getModel().getDecorationRange(t);if(i.startLineNumber!==i.endLineNumber&&1===i.endColumn){const e=i.endLineNumber-1,t=this._editor.getModel().getLineMaxColumn(e);i=new Un(i.startLineNumber,i.startColumn,e,t)}this._rangeHighlightDecorationId=e.addDecoration(i,E3._RANGE_HIGHLIGHT_DECORATION)}})),i}set(e,t){this._editor.changeDecorations((i=>{let n=E3._FIND_MATCH_DECORATION;const o=[];if(e.length>1e3){n=E3._FIND_MATCH_NO_OVERVIEW_DECORATION;const t=this._editor.getModel().getLineCount(),i=this._editor.getLayoutInfo().height/t,s=Math.max(2,Math.ceil(3/i));let r=e[0].range.startLineNumber,a=e[0].range.endLineNumber;for(let n=1,l=e.length;n=t.startLineNumber?t.endLineNumber>a&&(a=t.endLineNumber):(o.push({range:new Un(r,1,a,1),options:E3._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),r=t.startLineNumber,a=t.endLineNumber)}o.push({range:new Un(r,1,a,1),options:E3._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const s=new Array(e.length);for(let t=0,r=e.length;ti.removeDecoration(e))),this._findScopeDecorationIds=[]),(null==t?void 0:t.length)&&(this._findScopeDecorationIds=t.map((e=>i.addDecoration(e,E3._FIND_SCOPE_DECORATION))))}))}matchBeforePosition(e){if(0===this._decorations.length)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(n&&!(n.endLineNumber>e.lineNumber)){if(n.endLineNumbere.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(0===this._decorations.length)return null;for(let t=0,i=this._decorations.length;te.lineNumber)return n;if(!(n.startColumn0){const e=[];for(let t=0;tUn.compareRangesUsingStarts(e.range,t.range)));const i=[];let n=e[0];for(let t=1;t0?t[0].toUpperCase()+t.substr(1):e[0][0].toUpperCase()!==e[0][0]&&t.length>0?t[0].toLowerCase()+t.substr(1):t}return t}function y3(e,t,i){return-1!==e[0].indexOf(i)&&-1!==t.indexOf(i)&&e[0].split(i).length===t.split(i).length}function R3(e,t,i){const n=t.split(i),o=e[0].split(i);let s="";return n.forEach(((e,t)=>{s+=T3([o[t]],e)+i})),s.slice(0,-1)}class L3{constructor(e){this.staticValue=e,this.kind=0}}class I3{constructor(e){this.pieces=e,this.kind=1}}class A3{static fromStaticValue(e){return new A3([N3.staticValue(e)])}get hasReplacementPatterns(){return 1===this._state.kind}constructor(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new L3(e[0].staticValue):this._state=new I3(e):this._state=new L3("")}buildReplaceString(e,t){if(0===this._state.kind)return t?T3(e,this._state.staticValue):this._state.staticValue;let i="";for(let n=0,o=this._state.pieces.length;n0){const e=[],i=t.caseOps.length;let n=0;for(let s=0,r=o.length;s=i){e.push(o.slice(s));break}switch(t.caseOps[n]){case"U":e.push(o[s].toUpperCase());break;case"u":e.push(o[s].toUpperCase()),n++;break;case"L":e.push(o[s].toLowerCase());break;case"l":e.push(o[s].toLowerCase()),n++;break;default:e.push(o[s])}}o=e.join("")}i+=o}return i}static _substitute(e,t){if(null===t)return"";if(0===e)return t[0];let i="";for(;e>0;){if(ethis.research(!1)),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition((e=>{3!==e.reason&&5!==e.reason&&6!==e.reason||this._decorations.setStartPosition(this._editor.getPosition())}))),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent((e=>{this._ignoreModelContentChanged||(e.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())}))),this._toDispose.add(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,di(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){!this._isDisposed&&this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet((()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}),240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;void 0!==t?null!==t&&(i=Array.isArray(t)?t:[t]):i=this._decorations.getFindScopes(),null!==i&&(i=i.map((e=>{if(e.startLineNumber!==e.endLineNumber){let t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new Un(e.startLineNumber,1,t,this._editor.getModel().getLineMaxColumn(t))}return e})));const n=this._findMatches(i,!1,X3);this._decorations.set(n,i);const o=this._editor.getSelection();let s=this._decorations.getCurrentMatchesPosition(o);if(0===s&&n.length>0){const e=Gm(n.map((e=>e.range)),(e=>Un.compareRangesUsingStarts(e,o)>=0));s=e>0?e-1+1:s}this._state.changeMatchInfo(s,this._decorations.getCount(),void 0),e&&this._editor.getOption(41).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){const t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const o=this._editor.getModel();return t||1===n?(1===i?i=o.getLineCount():i--,n=o.getLineMaxColumn(i)):n--,new Wn(i,n)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const t=this._decorations.matchAfterPosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const o=this._editor.getModel();return t||n===o.getLineMaxColumn(i)?(i===o.getLineCount()?i=1:i++,n=1):n++,new Wn(i,n)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const t=this._decorations.matchBeforePosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()=o)break;const s=e.charCodeAt(n);if(36===s){i.emitUnchanged(n-1),i.emitStatic("$",n+1);continue}if(48===s||38===s){i.emitUnchanged(n-1),i.emitMatchIndex(0,n+1,t),t.length=0;continue}if(49<=s&&s<=57){let r=s-48;if(n+1=o)break;const s=e.charCodeAt(n);switch(s){case 92:i.emitUnchanged(n-1),i.emitStatic("\\",n+1);break;case 110:i.emitUnchanged(n-1),i.emitStatic("\n",n+1);break;case 116:i.emitUnchanged(n-1),i.emitStatic("\t",n+1);break;case 117:case 85:case 108:case 76:i.emitUnchanged(n-1),i.emitStatic("",n+1),t.push(String.fromCharCode(s))}}}return i.finalize()}(this._state.replaceString):A3.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;const e=this._getReplacePattern(),t=this._editor.getSelection(),i=this._getNextMatch(t.getStartPosition(),!0,!1);if(i)if(t.equalsRange(i.range)){const n=e.buildReplaceString(i.matches,this._state.preserveCase),o=new vT(t,n);this._executeEditorCommand("replace",o),this._decorations.setStartPosition(new Wn(t.startLineNumber,t.startColumn+n.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(i.range)}_findMatches(e,t,i){const n=(e||[null]).map((e=>J3._getSearchRange(this._editor.getModel(),e)));return this._editor.getModel().findMatches(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();null===e&&this._state.matchesCount>=X3?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const e=new Lm(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null).parseSearchRequest();if(!e)return;let t=e.regex;if(!t.multiline){let e="mu";t.ignoreCase&&(e+="i"),t.global&&(e+="g"),t=new RegExp(t.source,e)}const i=this._editor.getModel(),n=i.getValue(1),o=i.getFullModelRange(),s=this._getReplacePattern();let r;const a=this._state.preserveCase;r=s.hasReplacementPatterns||a?n.replace(t,(function(){return s.buildReplaceString(arguments,a)})):n.replace(t,s.buildReplaceString(null,a));const l=new wT(o,r,this._editor.getSelection());this._executeEditorCommand("replaceAll",l)}_regularReplaceAll(e){const t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let s=0,r=i.length;se.range)),n);this._executeEditorCommand("replaceAll",o)}selectAllMatches(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();let t=this._findMatches(e,!1,1073741824).map((e=>new Vn(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)));const i=this._editor.getSelection();for(let n=0,o=t.length;nthis._hide()),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.style.zIndex="12",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const n={inputActiveOptionBorder:Z_(Bv),inputActiveOptionForeground:Z_(Wv),inputActiveOptionBackground:Z_(Hv)},o=this._register(SB());this.caseSensitive=this._register(new pV({appendTitle:this._keybindingLabelFor(G3),isChecked:this._state.matchCase,hoverDelegate:o,...n})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange((()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)}))),this.wholeWords=this._register(new fV({appendTitle:this._keybindingLabelFor(z3),isChecked:this._state.wholeWord,hoverDelegate:o,...n})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange((()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)}))),this.regex=this._register(new _V({appendTitle:this._keybindingLabelFor(K3),isChecked:this._state.isRegex,hoverDelegate:o,...n})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange((()=>{this._state.change({isRegex:this.regex.checked},!1)}))),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange((e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()}))),this._register(yl(this._domNode,mc.MOUSE_LEAVE,(e=>this._onMouseLeave()))),this._register(yl(this._domNode,"mouseover",(e=>this._onMouseOver())))}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return Q3.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}}function Z3(e,t){return 1===e||2!==e&&t}Q3.ID="editor.contrib.findOptionsWidget";class e6 extends mi{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return Z3(this._isRegexOverride,this._isRegex)}get wholeWord(){return Z3(this._wholeWordOverride,this._wholeWord)}get matchCase(){return Z3(this._matchCaseOverride,this._matchCase)}get preserveCase(){return Z3(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}constructor(){super(),this._onFindReplaceStateChange=this._register(new Ri),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(e,t,i){const n={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let o=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,n.matchesPosition=!0,o=!0),this._matchesCount!==t&&(this._matchesCount=t,n.matchesCount=!0,o=!0),void 0!==i&&(Un.equalsRange(this._currentMatch,i)||(this._currentMatch=i,n.currentMatch=!0,o=!0)),o&&this._onFindReplaceStateChange.fire(n)}change(e,t,i=!0){var n;const o={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let s=!1;const r=this.isRegex,a=this.wholeWord,l=this.matchCase,c=this.preserveCase;void 0!==e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,o.searchString=!0,s=!0),void 0!==e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,o.replaceString=!0,s=!0),void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,o.isRevealed=!0,s=!0),void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,o.isReplaceRevealed=!0,s=!0),void 0!==e.isRegex&&(this._isRegex=e.isRegex),void 0!==e.wholeWord&&(this._wholeWord=e.wholeWord),void 0!==e.matchCase&&(this._matchCase=e.matchCase),void 0!==e.preserveCase&&(this._preserveCase=e.preserveCase),void 0!==e.searchScope&&((null===(n=e.searchScope)||void 0===n?void 0:n.every((e=>{var t;return null===(t=this._searchScope)||void 0===t?void 0:t.some((t=>!Un.equalsRange(t,e)))})))||(this._searchScope=e.searchScope,o.searchScope=!0,s=!0)),void 0!==e.loop&&this._loop!==e.loop&&(this._loop=e.loop,o.loop=!0,s=!0),void 0!==e.isSearching&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,o.isSearching=!0,s=!0),void 0!==e.filters&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,o.filters=!0,s=!0),this._isRegexOverride=void 0!==e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride=void 0!==e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride=void 0!==e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride=void 0!==e.preserveCaseOverride?e.preserveCaseOverride:0,r!==this.isRegex&&(s=!0,o.isRegex=!0),a!==this.wholeWord&&(s=!0,o.wholeWord=!0),l!==this.matchCase&&(s=!0,o.matchCase=!0),c!==this.preserveCase&&(s=!0,o.preserveCase=!0),s&&this._onFindReplaceStateChange.fire(o)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition=X3}}const t6=pe("vs/base/browser/ui/findinput/replaceInput","defaultLabel","input"),i6=pe("vs/base/browser/ui/findinput/replaceInput","label.preserveCaseToggle","Preserve Case");class n6 extends FU{constructor(e){var t;super({icon:Yn.preserveCase,title:i6+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:vB("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class o6 extends rE{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new Ri),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new Ri),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new Ri),this._onInput=this._register(new Ri),this._onKeyUp=this._register(new Ri),this._onPreserveCaseKeyDown=this._register(new Ri),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||t6;const o=n.appendPreserveCaseLabel||"",s=n.history||[],r=!!n.flexibleHeight,a=!!n.flexibleWidth,l=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new EV(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:s,showHistoryHint:n.showHistoryHint,flexibleHeight:r,flexibleWidth:a,flexibleMaxHeight:l,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new n6({appendTitle:o,isChecked:!1,...n.toggleStyles})),this._register(this.preserveCase.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.preserveCase.onKeyDown((e=>{this._onPreserveCaseKeyDown.fire(e)}))),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const c=[this.preserveCase.domNode];this.onkeydown(this.domNode,(e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){const t=c.indexOf(this.domNode.ownerDocument.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%c.length:e.equals(15)&&(i=0===t?c.length-1:t-1),e.equals(9)?(c[t].blur(),this.inputBox.focus()):i>=0&&c[i].focus(),fc(e,!0)}}}));const d=document.createElement("div");d.className="controls",d.style.display=this._showOptionButtons?"block":"none",d.appendChild(this.preserveCase.domNode),this.domNode.appendChild(d),null==e||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){var e;null===(e=this.inputBox)||void 0===e||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var s6=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},r6=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const a6=new Qd("suggestWidgetVisible",!1,pe("vs/platform/history/browser/contextScopedHistoryWidget","suggestWidgetVisible","Whether suggestion are visible")),l6="historyNavigationWidgetFocus",c6="historyNavigationForwardsEnabled",d6="historyNavigationBackwardsEnabled";let h6;const u6=[];function g6(e,t){if(u6.includes(t))throw new Error("Cannot register the same widget multiple times");u6.push(t);const i=new gi,n=new Qd(l6,!1).bindTo(e),o=new Qd(c6,!0).bindTo(e),s=new Qd(d6,!0).bindTo(e),r=()=>{n.set(!0),h6=t},a=()=>{n.set(!1),h6===t&&(h6=void 0)};return Jl(t.element)&&r(),i.add(t.onDidFocus((()=>r()))),i.add(t.onDidBlur((()=>a()))),i.add(ui((()=>{u6.splice(u6.indexOf(t),1),a()}))),{historyNavigationForwardsEnablement:o,historyNavigationBackwardsEnablement:s,dispose(){i.dispose()}}}let m6=class extends TV{constructor(e,t,i,n){super(e,t,i);const o=this._register(n.createScoped(this.inputBox.element));this._register(g6(o,this.inputBox))}};m6=s6([r6(3,Zd)],m6);let p6=class extends o6{constructor(e,t,i,n,o=!1){super(e,t,o,i);const s=this._register(n.createScoped(this.inputBox.element));this._register(g6(s,this.inputBox))}};function f6(e){var t,i;return"Up"===(null===(t=e.lookupKeybinding("history.showPrevious"))||void 0===t?void 0:t.getElectronAccelerator())&&"Down"===(null===(i=e.lookupKeybinding("history.showNext"))||void 0===i?void 0:i.getElectronAccelerator())}p6=s6([r6(3,Zd)],p6),uh.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:Dd.and(Dd.has(l6),Dd.equals(d6,!0),Dd.not("isComposing"),a6.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{null==h6||h6.showPreviousValue()}}),uh.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:Dd.and(Dd.has(l6),Dd.equals(c6,!0),Dd.not("isComposing"),a6.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{null==h6||h6.showNextValue()}});const _6=sY("find-selection",Yn.selection,pe("vs/editor/contrib/find/browser/findWidget","findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),b6=sY("find-collapsed",Yn.chevronRight,pe("vs/editor/contrib/find/browser/findWidget","findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),v6=sY("find-expanded",Yn.chevronDown,pe("vs/editor/contrib/find/browser/findWidget","findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),S6=sY("find-replace",Yn.replace,pe("vs/editor/contrib/find/browser/findWidget","findReplaceIcon","Icon for 'Replace' in the editor find widget.")),C6=sY("find-replace-all",Yn.replaceAll,pe("vs/editor/contrib/find/browser/findWidget","findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),E6=sY("find-previous-match",Yn.arrowUp,pe("vs/editor/contrib/find/browser/findWidget","findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),w6=sY("find-next-match",Yn.arrowDown,pe("vs/editor/contrib/find/browser/findWidget","findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),T6=pe("vs/editor/contrib/find/browser/findWidget","label.findDialog","Find / Replace"),y6=pe("vs/editor/contrib/find/browser/findWidget","label.find","Find"),R6=pe("vs/editor/contrib/find/browser/findWidget","placeholder.find","Find"),L6=pe("vs/editor/contrib/find/browser/findWidget","label.previousMatchButton","Previous Match"),I6=pe("vs/editor/contrib/find/browser/findWidget","label.nextMatchButton","Next Match"),A6=pe("vs/editor/contrib/find/browser/findWidget","label.toggleSelectionFind","Find in Selection"),N6=pe("vs/editor/contrib/find/browser/findWidget","label.closeButton","Close"),k6=pe("vs/editor/contrib/find/browser/findWidget","label.replace","Replace"),D6=pe("vs/editor/contrib/find/browser/findWidget","placeholder.replace","Replace"),O6=pe("vs/editor/contrib/find/browser/findWidget","label.replaceButton","Replace"),x6=pe("vs/editor/contrib/find/browser/findWidget","label.replaceAllButton","Replace All"),M6=pe("vs/editor/contrib/find/browser/findWidget","label.toggleReplaceButton","Toggle Replace"),P6=pe("vs/editor/contrib/find/browser/findWidget","title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",X3),F6=pe("vs/editor/contrib/find/browser/findWidget","label.matchesLocation","{0} of {1}"),B6=pe("vs/editor/contrib/find/browser/findWidget","label.noResults","No results"),H6=419;let W6=69;const U6="ctrlEnterReplaceAll.windows.donotask",V6=Pe?256:2048;class G6{constructor(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function z6(e,t,i){const n=!!t.match(/\n/);i&&n&&i.selectionStart>0&&e.stopPropagation()}function K6(e,t,i){const n=!!t.match(/\n/);i&&n&&i.selectionEndthis._updateHistoryDelayer.cancel()))),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration((e=>{if(e.hasChanged(91)&&(this._codeEditor.getOption(91)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),e.hasChanged(145)&&this._tryUpdateWidgetWidth(),e.hasChanged(2)&&this.updateAccessibilitySupport(),e.hasChanged(41)){const e=this._codeEditor.getOption(41).loop;this._state.change({loop:e},!1);const t=this._codeEditor.getOption(41).addExtraSpaceOnTop;t&&!this._viewZone&&(this._viewZone=new G6(0),this._showViewZone()),!t&&this._viewZone&&this._removeViewZone()}}))),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection((()=>{this._isVisible&&this._updateToggleSelectionFindButton()}))),this._register(this._codeEditor.onDidFocusEditorWidget((async()=>{if(this._isVisible){const e=await this._controller.getGlobalBufferTerm();e&&e!==this._state.searchString&&(this._state.change({searchString:e},!1),this._findInput.select())}}))),this._findInputFocused=O3.bindTo(s),this._findFocusTracker=this._register(bc(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus((()=>{this._findInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._findFocusTracker.onDidBlur((()=>{this._findInputFocused.set(!1)}))),this._replaceInputFocused=x3.bindTo(s),this._replaceFocusTracker=this._register(bc(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus((()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._replaceFocusTracker.onDidBlur((()=>{this._replaceInputFocused.set(!1)}))),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(41).addExtraSpaceOnTop&&(this._viewZone=new G6(0)),this._register(this._codeEditor.onDidChangeModel((()=>{this._isVisible&&(this._viewZoneId=void 0)}))),this._register(this._codeEditor.onDidScrollChange((e=>{e.scrollTopChanged?this._layoutViewZone():setTimeout((()=>{this._layoutViewZone()}),0)})))}getId(){return Y6.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(91)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=Ul(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){const e=this._state.searchString.length>0&&0===this._state.matchesCount;this._domNode.classList.toggle("no-results",e),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,Jt)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let e;if(this._matchesCount.style.minWidth=W6+"px",this._state.matchesCount>=X3?this._matchesCount.title=P6:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=X3&&(t+="+");let i=String(this._state.matchesPosition);"0"===i&&(i="?"),e=fs(F6,i,t)}else e=B6;this._matchesCount.appendChild(document.createTextNode(e)),L_(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),W6=Math.max(W6,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===B6)return""===i?pe("vs/editor/contrib/find/browser/findWidget","ariaSearchNoResultEmpty","{0} found",e):pe("vs/editor/contrib/find/browser/findWidget","ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const n=pe("vs/editor/contrib/find/browser/findWidget","ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),o=this._codeEditor.getModel();return o&&t.startLineNumber<=o.getLineCount()&&t.startLineNumber>=1?`${o.getLineContent(t.startLineNumber)}, ${n}`:n}return pe("vs/editor/contrib/find/browser/findWidget","ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){const e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const i=!this._codeEditor.getOption(91);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(41).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const t=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=t;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout((()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")}),0)),this._revealTimeouts.push(setTimeout((()=>{this._findInput.validate()}),200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(41).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const n=Hl(i),o=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),s=n.left+(o?o.left:0),r=o?o.top:0;if(this._viewZone&&re.startLineNumber&&(t=!1);const i=Bl(this._domNode).left;s>i&&(t=!1);const o=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());n.left+(o?o.left:0)>i&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return void this._removeViewZone();if(!this._isVisible)return;const t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones((i=>{t.heightInPx=this._getHeight(),this._viewZoneId=i.addZone(t),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+t.heightInPx)}))}_showViewZone(e=!0){if(!this._isVisible)return;if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return;void 0===this._viewZone&&(this._viewZone=new G6(0));const t=this._viewZone;this._codeEditor.changeViewZones((i=>{if(void 0!==this._viewZoneId){const n=this._getHeight();if(n===t.heightInPx)return;const o=n-t.heightInPx;return t.heightInPx=n,i.layoutZone(this._viewZoneId),void(e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+o))}{let n=this._getHeight();if(n-=this._codeEditor.getOption(84).top,n<=0)return;t.heightInPx=n,this._viewZoneId=i.addZone(t),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+n)}}))}_removeViewZone(){this._codeEditor.changeViewZones((e=>{void 0!==this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))}))}_tryUpdateWidgetWidth(){if(!this._isVisible)return;if(!this._domNode.isConnected)return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)return void this._domNode.classList.add("hiddenEditor");this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const t=e.width,i=e.minimap.minimapWidth;let n=!1,o=!1,s=!1;if(this._resized&&Ul(this._domNode)>H6)return this._domNode.style.maxWidth=t-28-i-15+"px",void(this._replaceInput.width=Ul(this._findInput.domNode));if(447+i>=t&&(o=!0),447+i-W6>=t&&(s=!0),447+i-W6>=t+50&&(n=!0),this._domNode.classList.toggle("collapsed-find-widget",n),this._domNode.classList.toggle("narrow-find-widget",s),this._domNode.classList.toggle("reduced-find-widget",o),s||n||(this._domNode.style.maxWidth=t-28-i-15+"px"),this._findInput.layout({collapsedFindWidget:n,narrowFindWidget:s,reducedFindWidget:o}),this._resized){const e=this._findInput.inputBox.element.clientWidth;e>0&&(this._replaceInput.width=e)}else this._isReplaceVisible&&(this._replaceInput.width=Ul(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const e=this._codeEditor.getSelections();e.map((e=>{1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));const t=this._state.currentMatch;return e.startLineNumber===e.endLineNumber||Un.equalsRange(e,t)?null:e})).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){return e.equals(3|V6)?(this._keybindingService.dispatchEvent(e,e.target)||this._findInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?z6(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?K6(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(e){return e.equals(3|V6)?(this._keybindingService.dispatchEvent(e,e.target)||(Me&&Be&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(pe("vs/editor/contrib/find/browser/findWidget","ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(U6,!0,0,0)),this._replaceInput.inputBox.insertAtCursor("\n")),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?z6(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?K6(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new m6(null,this._contextViewProvider,{width:221,label:y6,placeholder:R6,appendCaseSensitiveLabel:this._keybindingLabelFor(G3),appendWholeWordsLabel:this._keybindingLabelFor(z3),appendRegexLabel:this._keybindingLabelFor(K3),validation:e=>{if(0===e.length||!this._findInput.getRegex())return null;try{return new RegExp(e,"gu"),null}catch(t){return{content:t.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>f6(this._keybindingService),inputBoxStyles:RW,toggleStyles:yW},this._contextKeyService)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown((e=>this._onFindInputKeyDown(e)))),this._register(this._findInput.inputBox.onDidChange((()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)}))),this._register(this._findInput.onDidOptionChange((()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)}))),this._register(this._findInput.onCaseSensitiveKeyDown((e=>{e.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),e.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),e.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((e=>{this._tryUpdateHeight()&&this._showViewZone()}))),Fe&&this._register(this._findInput.onMouseDown((e=>this._onFindInputMouseDown(e)))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount();const e=this._register(SB());this._prevBtn=this._register(new q6({label:L6+this._keybindingLabelFor(U3),icon:E6,hoverDelegate:e,onTrigger:()=>{ne(this._codeEditor.getAction(U3)).run().then(void 0,Jt)}},this._hoverService)),this._nextBtn=this._register(new q6({label:I6+this._keybindingLabelFor(W3),icon:w6,hoverDelegate:e,onTrigger:()=>{ne(this._codeEditor.getAction(W3)).run().then(void 0,Jt)}},this._hoverService));const t=document.createElement("div");t.className="find-part",t.appendChild(this._findInput.domNode);const i=document.createElement("div");i.className="find-actions",t.appendChild(i),i.appendChild(this._matchesCount),i.appendChild(this._prevBtn.domNode),i.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new FU({icon:_6,title:A6+this._keybindingLabelFor(Y3),isChecked:!1,hoverDelegate:e,inputActiveOptionBackground:Z_(Hv),inputActiveOptionBorder:Z_(Bv),inputActiveOptionForeground:Z_(Wv)})),this._register(this._toggleSelectionFind.onChange((()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let e=this._codeEditor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}else this._state.change({searchScope:null},!0)}))),i.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new q6({label:N6+this._keybindingLabelFor(V3),icon:dY,hoverDelegate:e,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),e.preventDefault())}},this._hoverService)),this._replaceInput=this._register(new p6(null,void 0,{label:k6,placeholder:D6,appendPreserveCaseLabel:this._keybindingLabelFor(q3),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>f6(this._keybindingService),inputBoxStyles:RW,toggleStyles:yW},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((e=>this._onReplaceInputKeyDown(e)))),this._register(this._replaceInput.inputBox.onDidChange((()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((e=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((e=>{e.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),e.preventDefault())})));const n=this._register(SB());this._replaceBtn=this._register(new q6({label:O6+this._keybindingLabelFor($3),icon:S6,hoverDelegate:n,onTrigger:()=>{this._controller.replace()},onKeyDown:e=>{e.equals(1026)&&(this._closeBtn.focus(),e.preventDefault())}},this._hoverService)),this._replaceAllBtn=this._register(new q6({label:x6+this._keybindingLabelFor(j3),icon:C6,hoverDelegate:n,onTrigger:()=>{this._controller.replaceAll()}},this._hoverService));const o=document.createElement("div");o.className="replace-part",o.appendChild(this._replaceInput.domNode);const s=document.createElement("div");s.className="replace-actions",o.appendChild(s),s.appendChild(this._replaceBtn.domNode),s.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new q6({label:M6,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=Ul(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}},this._hoverService)),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.ariaLabel=T6,this._domNode.role="dialog",this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(t),this._domNode.appendChild(this._closeBtn.domNode),this._domNode.appendChild(o),this._resizeSash=this._register(new tV(this._domNode,this,{orientation:0,size:2})),this._resized=!1;let r=H6;this._register(this._resizeSash.onDidStart((()=>{r=Ul(this._domNode)}))),this._register(this._resizeSash.onDidChange((e=>{this._resized=!0;const t=r+e.startX-e.currentX;t(parseFloat(xl(this._domNode).maxWidth)||0)||(this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=Ul(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())}))),this._register(this._resizeSash.onDidReset((()=>{const e=Ul(this._domNode);if(e{this._opts.onTrigger(),e.preventDefault()})),this.onkeydown(this._domNode,(e=>{var t,i;if(e.equals(10)||e.equals(3))return this._opts.onTrigger(),void e.preventDefault();null===(i=(t=this._opts).onKeyDown)||void 0===i||i.call(t,e)}))}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...gd.asClassNameArray(b6)),this._domNode.classList.add(...gd.asClassNameArray(v6))):(this._domNode.classList.remove(...gd.asClassNameArray(v6)),this._domNode.classList.add(...gd.asClassNameArray(b6)))}}XE(((e,t)=>{const i=e.getColor(zb);i&&t.addRule(`.monaco-editor .findMatch { border: 1px ${NC(e.type)?"dotted":"solid"} ${i}; box-sizing: border-box; }`);const n=e.getColor(Kb);n&&t.addRule(`.monaco-editor .findScope { border: 1px ${NC(e.type)?"dashed":"solid"} ${n}; }`);const o=e.getColor(pb);o&&t.addRule(`.monaco-editor .find-widget { border: 1px solid ${o}; }`)}));var $6,j6=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},X6=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};function J6(e,t="single",i=!1){if(!e.hasModel())return null;const n=e.getSelection();if("single"===t&&n.startLineNumber===n.endLineNumber||"multiple"===t)if(n.isEmpty()){const t=e.getConfiguredWordAtPosition(n.getStartPosition());if(t&&!1===i)return t.word}else if(e.getModel().getValueLengthInRange(n)<524288)return e.getModel().getValueInRange(n);return null}let Q6=$6=class extends mi{get editor(){return this._editor}static get(e){return e.getContribution($6.ID)}constructor(e,t,i,n,o,s){super(),this._editor=e,this._findWidgetVisible=D3.bindTo(t),this._contextKeyService=t,this._storageService=i,this._clipboardService=n,this._notificationService=o,this._hoverService=s,this._updateHistoryDelayer=new Br(500),this._state=this._register(new e6),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._model=null,this._register(this._editor.onDidChangeModel((()=>{const e=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(41).loop})})))}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,1)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!O3.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=bs(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}async _start(e,t){if(this.disposeModel(),!this._editor.hasModel())return;const i={...t,isRevealed:!0};if("single"===e.seedSearchStringFromSelection){const t=J6(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);t&&(this._state.isRegex?i.searchString=bs(t):i.searchString=t)}else if("multiple"===e.seedSearchStringFromSelection&&!e.updateSearchScope){const t=J6(this._editor,e.seedSearchStringFromSelection);t&&(i.searchString=t)}if(!i.searchString&&e.seedSearchStringFromGlobalClipboard){const e=await this.getGlobalBufferTerm();if(!this._editor.hasModel())return;e&&(i.searchString=e)}if(e.forceRevealReplace||i.isReplaceRevealed?i.isReplaceRevealed=!0:this._findWidgetVisible.get()||(i.isReplaceRevealed=!1),e.updateSearchScope){const e=this._editor.getSelections();e.some((e=>!e.isEmpty()))&&(i.searchScope=e)}i.loop=e.loop,this._state.change(i,!1),this._model||(this._model=new J3(this._editor,this._state))}start(e,t){return this._start(e,t)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}goToMatch(e){return!!this._model&&(this._model.moveToMatch(e),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){var e;return!!this._model&&((null===(e=this._editor.getModel())||void 0===e?void 0:e.isTooLargeForHeapOperation())?(this._notificationService.warn(pe("vs/editor/contrib/find/browser/findController","too.large.for.replaceall","The file is too large to perform a replace all operation.")),!1):(this._model.replaceAll(),!0))}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}async getGlobalBufferTerm(){return this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}setGlobalBufferTerm(e){this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};Q6.ID="editor.contrib.findController",Q6=$6=j6([X6(1,Zd),X6(2,vW),X6(3,WY),X6(4,kD),X6(5,vx)],Q6);let Z6=class extends Q6{constructor(e,t,i,n,o,s,r,a,l){super(e,i,r,a,s,l),this._contextViewService=t,this._keybindingService=n,this._themeService=o,this._widget=null,this._findOptionsWidget=null}async _start(e,t){this._widget||this._createFindWidget();const i=this._editor.getSelection();let n=!1;switch(this._editor.getOption(41).autoFindInSelection){case"always":n=!0;break;case"never":n=!1;break;case"multiline":n=!!i&&i.startLineNumber!==i.endLineNumber}e.updateSearchScope=e.updateSearchScope||n,await super._start(e,t),this._widget&&(2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput())}highlightFindOptions(e=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new Y6(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService,this._hoverService)),this._findOptionsWidget=this._register(new Q3(this._editor,this._state,this._keybindingService))}};Z6=j6([X6(1,Cx),X6(2,Zd),X6(3,tT),X6(4,KE),X6(5,kD),X6(6,vW),X6(7,WY),X6(8,vx)],Z6),Gh(new Bh({id:"actions.find",label:pe("vs/editor/contrib/find/browser/findController","startFindAction","Find"),alias:"Find",precondition:Dd.or(JT.focus,Dd.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:bh.MenubarEditMenu,group:"3_find",title:pe("vs/editor/contrib/find/browser/findController",{key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})).addImplementation(0,((e,t,i)=>{const n=Q6.get(t);return!!n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(41).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})}));const e9={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},isRegex:{type:"boolean"},matchWholeWord:{type:"boolean"},isCaseSensitive:{type:"boolean"},preserveCase:{type:"boolean"},findInSelection:{type:"boolean"}}}}]};class t9 extends Fh{async run(e,t){const i=Q6.get(t);i&&!this._run(i)&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===i.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}class i9 extends Fh{async run(e,t){const i=Q6.get(t);if(!i)return;const n=J6(t,"single",!1);n&&i.setSearchString(n),this._run(i)||(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}Gh(new Bh({id:"editor.action.startFindReplaceAction",label:pe("vs/editor/contrib/find/browser/findController","startReplace","Replace"),alias:"Replace",precondition:Dd.or(JT.focus,Dd.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:bh.MenubarEditMenu,group:"3_find",title:pe("vs/editor/contrib/find/browser/findController",{key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})).addImplementation(0,((e,t,i)=>{if(!t.hasModel()||t.getOption(91))return!1;const n=Q6.get(t);if(!n)return!1;const o=t.getSelection(),s=n.isFindInputFocused(),r=!o.isEmpty()&&o.startLineNumber===o.endLineNumber&&"never"!==t.getOption(41).seedSearchStringFromSelection&&!s,a=s||r?2:1;return n.start({forceRevealReplace:!0,seedSearchStringFromSelection:r?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:"never"!==t.getOption(41).seedSearchStringFromSelection,shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})})),zh(Q6.ID,Z6,0),Vh(class extends Fh{constructor(){super({id:"editor.actions.findWithArgs",label:pe("vs/editor/contrib/find/browser/findController","startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},metadata:e9})}async run(e,t,i){const n=Q6.get(t);if(n){const e=i?{searchString:i.searchString,replaceString:i.replaceString,isReplaceRevealed:void 0!==i.replaceString,isRegex:i.isRegex,wholeWord:i.matchWholeWord,matchCase:i.isCaseSensitive,preserveCase:i.preserveCase}:{};await n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:(null==i?void 0:i.findInSelection)||!1,loop:t.getOption(41).loop},e),n.setGlobalBufferTerm(n.getState().searchString)}}}),Vh(class extends Fh{constructor(){super({id:"actions.findWithSelection",label:pe("vs/editor/contrib/find/browser/findController","startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}async run(e,t){const i=Q6.get(t);i&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),i.setGlobalBufferTerm(i.getState().searchString))}}),Vh(class extends t9{constructor(){super({id:W3,label:pe("vs/editor/contrib/find/browser/findController","findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:JT.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:Dd.and(JT.focus,O3),primary:3,weight:100}]})}_run(e){return!!e.moveToNextMatch()&&(e.editor.pushUndoStop(),!0)}}),Vh(class extends t9{constructor(){super({id:U3,label:pe("vs/editor/contrib/find/browser/findController","findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:JT.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:Dd.and(JT.focus,O3),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}}),Vh(class extends Fh{constructor(){super({id:"editor.action.goToMatchFindAction",label:pe("vs/editor/contrib/find/browser/findController","findMatchAction.goToMatch","Go to Match..."),alias:"Go to Match...",precondition:D3}),this._highlightDecorations=[]}run(e,t,i){const n=Q6.get(t);if(!n)return;const o=n.getState().matchesCount;if(o<1)return void e.get(kD).notify({severity:ND.Warning,message:pe("vs/editor/contrib/find/browser/findController","findMatchAction.noResults","No matches. Try searching for something else.")});const s=e.get(OU).createInputBox();s.placeholder=pe("vs/editor/contrib/find/browser/findController","findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",o);const r=e=>{const t=parseInt(e);if(isNaN(t))return;const i=n.getState().matchesCount;return t>0&&t<=i?t-1:t<0&&t>=-i?i+t:void 0},a=e=>{const i=r(e);if("number"==typeof i){s.validationMessage=void 0,n.goToMatch(i);const e=n.getState().currentMatch;e&&this.addDecorations(t,e)}else s.validationMessage=pe("vs/editor/contrib/find/browser/findController","findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",n.getState().matchesCount),this.clearDecorations(t)};s.onDidChangeValue((e=>{a(e)})),s.onDidAccept((()=>{const e=r(s.value);"number"==typeof e?(n.goToMatch(e),s.hide()):s.validationMessage=pe("vs/editor/contrib/find/browser/findController","findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",n.getState().matchesCount)})),s.onDidHide((()=>{this.clearDecorations(t),s.dispose()})),s.show()}clearDecorations(e){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[])}))}addDecorations(e,t){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[{range:t,options:{description:"find-match-quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"find-match-quick-access-range-highlight-overview",overviewRuler:{color:YE(Iw),position:bm.Full}}}])}))}}),Vh(class extends i9{constructor(){super({id:"editor.action.nextSelectionMatchFindAction",label:pe("vs/editor/contrib/find/browser/findController","nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:JT.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}}),Vh(class extends i9{constructor(){super({id:"editor.action.previousSelectionMatchFindAction",label:pe("vs/editor/contrib/find/browser/findController","previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:JT.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}});const n9=Ph.bindToContribution(Q6.get);Uh(new n9({id:V3,precondition:D3,handler:e=>e.closeFindWidget(),kbOpts:{weight:105,kbExpr:Dd.and(JT.focus,Dd.not("isComposing")),primary:9,secondary:[1033]}})),Uh(new n9({id:G3,precondition:void 0,handler:e=>e.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:JT.focus,primary:M3.primary,mac:M3.mac,win:M3.win,linux:M3.linux}})),Uh(new n9({id:z3,precondition:void 0,handler:e=>e.toggleWholeWords(),kbOpts:{weight:105,kbExpr:JT.focus,primary:P3.primary,mac:P3.mac,win:P3.win,linux:P3.linux}})),Uh(new n9({id:K3,precondition:void 0,handler:e=>e.toggleRegex(),kbOpts:{weight:105,kbExpr:JT.focus,primary:F3.primary,mac:F3.mac,win:F3.win,linux:F3.linux}})),Uh(new n9({id:Y3,precondition:void 0,handler:e=>e.toggleSearchScope(),kbOpts:{weight:105,kbExpr:JT.focus,primary:B3.primary,mac:B3.mac,win:B3.win,linux:B3.linux}})),Uh(new n9({id:q3,precondition:void 0,handler:e=>e.togglePreserveCase(),kbOpts:{weight:105,kbExpr:JT.focus,primary:H3.primary,mac:H3.mac,win:H3.win,linux:H3.linux}})),Uh(new n9({id:$3,precondition:D3,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:JT.focus,primary:3094}})),Uh(new n9({id:$3,precondition:D3,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:Dd.and(JT.focus,x3),primary:3}})),Uh(new n9({id:j3,precondition:D3,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:JT.focus,primary:2563}})),Uh(new n9({id:j3,precondition:D3,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:Dd.and(JT.focus,x3),primary:void 0,mac:{primary:2051}}})),Uh(new n9({id:"editor.action.selectAllMatches",precondition:D3,handler:e=>e.selectAllMatches(),kbOpts:{weight:105,kbExpr:JT.focus,primary:515}}));const o9={0:" ",1:"u",2:"r"},s9=16777215,r9=4278190080;class a9{constructor(e){const t=Math.ceil(e/32);this._states=new Uint32Array(t)}get(e){const t=e/32|0,i=e%32;return 0!=(this._states[t]&1<65535)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new a9(e.length),this._userDefinedStates=new a9(e.length),this._recoveredStates=new a9(e.length),this._types=i,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;const e=[],t=(t,i)=>{const n=e[e.length-1];return this.getStartLineNumber(n)<=t&&this.getEndLineNumber(n)>=i};for(let i=0,n=this._startIndexes.length;is9||o>s9)throw new Error("startLineNumber or endLineNumber must not exceed "+s9);for(;e.length>0&&!t(n,o);)e.pop();const s=e.length>0?e[e.length-1]:-1;e.push(i),this._startIndexes[i]=n+((255&s)<<24),this._endIndexes[i]=o+((65280&s)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&s9}getEndLineNumber(e){return this._endIndexes[e]&s9}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){return this._collapseStates.get(e)}setCollapsed(e,t){this._collapseStates.set(e,t)}isUserDefined(e){return this._userDefinedStates.get(e)}setUserDefined(e,t){return this._userDefinedStates.set(e,t)}isRecovered(e){return this._recoveredStates.get(e)}setRecovered(e,t){return this._recoveredStates.set(e,t)}getSource(e){return this.isUserDefined(e)?1:this.isRecovered(e)?2:0}setSource(e,t){1===t?(this.setUserDefined(e,!0),this.setRecovered(e,!1)):2===t?(this.setUserDefined(e,!1),this.setRecovered(e,!0)):(this.setUserDefined(e,!1),this.setRecovered(e,!1))}setCollapsedAllOfType(e,t){let i=!1;if(this._types)for(let n=0;n>>24)+((this._endIndexes[e]&r9)>>>16);return 65535===t?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,i=this._startIndexes.length;if(0===i)return-1;for(;t=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){const e=[];for(let t=0;tArray.isArray(e)?i=>ii=c.startLineNumber))l&&l.startLineNumber===c.startLineNumber?(1===c.source?e=c:(e=l,e.isCollapsed=c.isCollapsed&&l.endLineNumber===c.endLineNumber,e.source=0),l=o(++r)):(e=c,c.isCollapsed&&0===c.source&&(e.source=2)),c=s(++a);else{let t=a,i=c;for(;;){if(!i||i.startLineNumber>l.endLineNumber){e=l;break}if(1===i.source&&i.endLineNumber>l.endLineNumber)break;i=s(++t)}l=o(++r)}if(e){for(;h&&h.endLineNumbere.startLineNumber&&e.startLineNumber>u&&e.endLineNumber<=i&&(!h||h.endLineNumber>=e.endLineNumber)&&(g.push(e),u=e.startLineNumber,h&&d.push(h),h=e)}}return g}}class c9{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}class d9{get regions(){return this._regions}get textModel(){return this._textModel}constructor(e,t){this._updateEventEmitter=new Ri,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new l9(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}toggleCollapseState(e){if(!e.length)return;e=e.sort(((e,t)=>e.regionIndex-t.regionIndex));const t={};this._decorationProvider.changeDecorations((i=>{let n=0,o=-1,s=-1;const r=e=>{for(;ns&&(s=e),n++}};for(const a of e){const e=a.regionIndex,i=this._editorDecorationIds[e];if(i&&!t[i]){t[i]=!0,r(e);const n=!this._regions.isCollapsed(e);this._regions.setCollapsed(e,n),o=Math.max(o,this._regions.getEndLineNumber(e))}}r(this._regions.length)})),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}removeManualRanges(e){const t=new Array,i=t=>{for(const i of e)if(!(i.startLineNumber>t.endLineNumber||t.startLineNumber>i.endLineNumber))return!0;return!1};for(let n=0;ni&&(i=s)}this._decorationProvider.changeDecorations((e=>this._editorDecorationIds=e.deltaDecorations(this._editorDecorationIds,t))),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(e=[]){const t=(t,i)=>{for(const n of e)if(t=o.endLineNumber||o.startLineNumber<1||o.endLineNumber>i)continue;const s=this._getLinesChecksum(o.startLineNumber+1,o.endLineNumber);t.push({startLineNumber:o.startLineNumber,endLineNumber:o.endLineNumber,isCollapsed:o.isCollapsed,source:o.source,checksum:s})}return t.length>0?t:void 0}applyMemento(e){var t,i;if(!Array.isArray(e))return;const n=[],o=this._textModel.getLineCount();for(const r of e){if(r.startLineNumber>=r.endLineNumber||r.startLineNumber<1||r.endLineNumber>o)continue;const e=this._getLinesChecksum(r.startLineNumber+1,r.endLineNumber);r.checksum&&e!==r.checksum||n.push({startLineNumber:r.startLineNumber,endLineNumber:r.endLineNumber,type:void 0,isCollapsed:null===(t=r.isCollapsed)||void 0===t||t,source:null!==(i=r.source)&&void 0!==i?i:0})}const s=l9.sanitizeAndMerge(this._regions,n,o);this.updatePost(l9.fromFoldRanges(s))}_getLinesChecksum(e,t){return ol(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){const i=[];if(this._regions){let n=this._regions.findRange(e),o=1;for(;n>=0;){const e=this._regions.toRegion(n);t&&!t(e,o)||i.push(e),o++,n=e.parentIndex}}return i}getRegionAtLine(e){if(this._regions){const t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){const i=[],n=e?e.regionIndex+1:0,o=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){const e=[];for(let s=n,r=this._regions.length;s0&&!n.containedBy(e[e.length-1]);)e.pop();e.push(n),t(n,e.length)&&i.push(n)}}else for(let s=n,r=this._regions.length;s1){const s=e.getRegionsInside(i,((e,i)=>e.isCollapsed!==o&&i0)for(const s of n){const n=e.getRegionAtLine(s);if(n&&(n.isCollapsed!==t&&o.push(n),i>1)){const s=e.getRegionsInside(n,((e,n)=>e.isCollapsed!==t&&ne.isCollapsed!==t&&ne.isCollapsed!==t&&n<=i));o.push(...n)}e.toggleCollapseState(o)}function m9(e,t,i){const n=[];for(const s of i){const t=e.getAllRegionsAtLine(s,void 0);t.length>0&&n.push(t[0])}const o=e.getRegionsInside(null,(e=>n.every((t=>!t.containedBy(e)&&!e.containedBy(t)))&&e.isCollapsed!==t));e.toggleCollapseState(o)}function p9(e,t,i){const n=e.textModel,o=e.regions,s=[];for(let r=o.length-1;r>=0;r--)if(i!==o.isCollapsed(r)){const e=o.getStartLineNumber(r);t.test(n.getLineContent(e))&&s.push(o.toRegion(r))}e.toggleCollapseState(s)}function f9(e,t,i){const n=e.regions,o=[];for(let s=n.length-1;s>=0;s--)i!==n.isCollapsed(s)&&t===n.getType(s)&&o.push(n.toRegion(s));e.toggleCollapseState(o)}class _9{get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}constructor(e){this._updateEventEmitter=new Ri,this._hasLineChanges=!1,this._foldingModel=e,this._foldingModelListener=e.onDidChange((e=>this.updateHiddenRanges())),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}notifyChangeModelContent(e){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=e.changes.some((e=>e.range.endLineNumber!==e.range.startLineNumber||0!==_L(e.text)[0])))}updateHiddenRanges(){let e=!1;const t=[];let i=0,n=0,o=Number.MAX_VALUE,s=-1;const r=this._foldingModel.regions;for(;i0}isHidden(e){return null!==b9(this._hiddenRanges,e)}adjustSelections(e){let t=!1;const i=this._foldingModel.textModel;let n=null;const o=e=>{return n&&((t=e)>=(i=n).startLineNumber&&t<=i.endLineNumber)||(n=b9(this._hiddenRanges,e)),n?n.startLineNumber-1:null;var t,i};for(let s=0,r=e.length;s0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function b9(e,t){const i=Gm(e,(e=>t=0&&e[i].endLineNumber>=t?e[i]:null}class v9{constructor(e,t,i){this.editorModel=e,this.languageConfigurationService=t,this.foldingRangesLimit=i,this.id="indent"}dispose(){}compute(e){const t=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,i=t&&!!t.offSide,n=t&&t.markers;return Promise.resolve(function(e,t,i,n=C9){const o=e.getOptions().tabSize,s=new S9(n);let r;i&&(r=new RegExp(`(${i.start.source})|(?:${i.end.source})`));const a=[],l=e.getLineCount()+1;a.push({indent:-1,endAbove:l,line:l});for(let c=e.getLineCount();c>0;c--){const i=e.getLineContent(c),n=Wy(i,o);let l,d=a[a.length-1];if(-1!==n){if(r&&(l=i.match(r))){if(!l[1]){a.push({indent:-2,endAbove:c,line:c});continue}{let e=a.length-1;for(;e>0&&-2!==a[e].indent;)e--;if(e>0){a.length=e+1,d=a[e],s.insertFirst(c,d.line,n),d.line=c,d.indent=n,d.endAbove=c;continue}}}if(d.indent>n){do{a.pop(),d=a[a.length-1]}while(d.indent>n);const e=d.endAbove-1;e-c>=1&&s.insertFirst(c,e,n)}d.indent===n?d.endAbove=c:a.push({indent:n,endAbove:c,line:c})}else t&&(d.endAbove=c)}return s.toIndentRanges(e)}(this.editorModel,i,n,this.foldingRangesLimit))}}let S9=class{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,i){if(e>s9||t>s9)return;const n=this._length;this._startIndexes[n]=e,this._endIndexes[n]=t,this._length++,i<1e3&&(this._indentOccurrences[i]=(this._indentOccurrences[i]||0)+1)}toIndentRanges(e){const t=this._foldingRangesLimit.limit;if(this._length<=t){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=this._length-1,n=0;i>=0;i--,n++)e[n]=this._startIndexes[i],t[n]=this._endIndexes[i];return new l9(e,t)}{this._foldingRangesLimit.update(this._length,t);let i=0,n=this._indentOccurrences.length;for(let e=0;et){n=e;break}i+=o}}const o=e.getOptions().tabSize,s=new Uint32Array(t),r=new Uint32Array(t);for(let a=this._length-1,l=0;a>=0;a--){const c=this._startIndexes[a],d=Wy(e.getLineContent(c),o);(d{}},E9=ib("editor.foldBackground",{light:sb(Hb,.3),dark:sb(Hb,.3),hcDark:null,hcLight:null},pe("vs/editor/contrib/folding/browser/foldingDecorations","foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0);ib("editorGutter.foldingControlForeground",{dark:gb,light:gb,hcDark:gb,hcLight:gb},pe("vs/editor/contrib/folding/browser/foldingDecorations","editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));const w9=sY("folding-expanded",Yn.chevronDown,pe("vs/editor/contrib/folding/browser/foldingDecorations","foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),T9=sY("folding-collapsed",Yn.chevronRight,pe("vs/editor/contrib/folding/browser/foldingDecorations","foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),y9=sY("folding-manual-collapsed",T9,pe("vs/editor/contrib/folding/browser/foldingDecorations","foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),R9=sY("folding-manual-expanded",w9,pe("vs/editor/contrib/folding/browser/foldingDecorations","foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),L9={color:YE(E9),position:1},I9=pe("vs/editor/contrib/folding/browser/foldingDecorations","linesCollapsed","Click to expand the range."),A9=pe("vs/editor/contrib/folding/browser/foldingDecorations","linesExpanded","Click to collapse the range.");class N9{constructor(e){this.editor=e,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(e,t,i){return t?N9.HIDDEN_RANGE_DECORATION:"never"===this.showFoldingControls?e?this.showFoldingHighlights?N9.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:N9.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:N9.NO_CONTROLS_EXPANDED_RANGE_DECORATION:e?i?this.showFoldingHighlights?N9.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:N9.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?N9.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:N9.COLLAPSED_VISUAL_DECORATION:"mouseover"===this.showFoldingControls?i?N9.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:N9.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:i?N9.MANUALLY_EXPANDED_VISUAL_DECORATION:N9.EXPANDED_VISUAL_DECORATION}changeDecorations(e){return this.editor.changeDecorations(e)}removeDecorations(e){this.editor.removeDecorations(e)}}N9.COLLAPSED_VISUAL_DECORATION=VN.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:I9,firstLineDecorationClassName:gd.asClassName(T9)}),N9.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=VN.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:L9,isWholeLine:!0,linesDecorationsTooltip:I9,firstLineDecorationClassName:gd.asClassName(T9)}),N9.MANUALLY_COLLAPSED_VISUAL_DECORATION=VN.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:I9,firstLineDecorationClassName:gd.asClassName(y9)}),N9.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=VN.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:L9,isWholeLine:!0,linesDecorationsTooltip:I9,firstLineDecorationClassName:gd.asClassName(y9)}),N9.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=VN.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:I9}),N9.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=VN.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:L9,isWholeLine:!0,linesDecorationsTooltip:I9}),N9.EXPANDED_VISUAL_DECORATION=VN.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+gd.asClassName(w9),linesDecorationsTooltip:A9}),N9.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=VN.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:gd.asClassName(w9),linesDecorationsTooltip:A9}),N9.MANUALLY_EXPANDED_VISUAL_DECORATION=VN.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+gd.asClassName(R9),linesDecorationsTooltip:A9}),N9.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=VN.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:gd.asClassName(R9),linesDecorationsTooltip:A9}),N9.NO_CONTROLS_EXPANDED_RANGE_DECORATION=VN.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0}),N9.HIDDEN_RANGE_DECORATION=VN.register({description:"folding-hidden-range-decoration",stickiness:1});const k9={};class D9{constructor(e,t,i,n,o){this.editorModel=e,this.providers=t,this.handleFoldingRangesChange=i,this.foldingRangesLimit=n,this.fallbackRangeProvider=o,this.id="syntax",this.disposables=new gi,o&&this.disposables.add(o);for(const s of t)"function"==typeof s.onDidChange&&this.disposables.add(s.onDidChange(i))}compute(e){return function(e,t,i){let n=null;const o=e.map(((e,o)=>Promise.resolve(e.provideFoldingRanges(t,k9,i)).then((e=>{if(!i.isCancellationRequested&&Array.isArray(e)){Array.isArray(n)||(n=[]);const i=t.getLineCount();for(const t of e)t.start>0&&t.end>t.start&&t.end<=i&&n.push({start:t.start,end:t.end,rank:o,kind:t.kind})}}),Qt)));return Promise.all(o).then((e=>n))}(this.providers,this.editorModel,e).then((t=>{var i,n;return t?function(e,t){const i=e.sort(((e,t)=>{let i=e.start-t.start;return 0===i&&(i=e.rank-t.rank),i})),n=new O9(t);let o;const s=[];for(const r of i)if(o){if(r.start>o.start)if(r.end<=o.end)s.push(o),o=r,n.add(r.start,r.end,r.kind&&r.kind.value,s.length);else{if(r.start>o.end){do{o=s.pop()}while(o&&r.start>o.end);o&&s.push(o),o=r}n.add(r.start,r.end,r.kind&&r.kind.value,s.length)}}else o=r,n.add(r.start,r.end,r.kind&&r.kind.value,s.length);return n.toIndentRanges()}(t,this.foldingRangesLimit):null!==(n=null===(i=this.fallbackRangeProvider)||void 0===i?void 0:i.compute(e))&&void 0!==n?n:null}))}dispose(){this.disposables.dispose()}}class O9{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,i,n){if(e>s9||t>s9)return;const o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._nestingLevels[o]=n,this._types[o]=i,this._length++,n<30&&(this._nestingLevelCounts[n]=(this._nestingLevelCounts[n]||0)+1)}toIndentRanges(){const e=this._foldingRangesLimit.limit;if(this._length<=e){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=0;ie){i=r;break}t+=n}}const n=new Uint32Array(e),o=new Uint32Array(e),s=[];for(let r=0,a=0;r=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},P9=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const F9=new Qd("foldingEnabled",!1);let B9=x9=class extends mi{static get(e){return e.getContribution(x9.ID)}static getFoldingRangeProviders(e,t){var i,n;const o=e.foldingRangeProvider.ordered(t);return null!==(n=null===(i=x9._foldingRangeSelector)||void 0===i?void 0:i.call(x9,o,t))&&void 0!==n?n:o}constructor(e,t,i,n,o,s){super(),this.contextKeyService=t,this.languageConfigurationService=i,this.languageFeaturesService=s,this.localToDispose=this._register(new gi),this.editor=e,this._foldingLimitReporter=new H9(e);const r=this.editor.getOptions();this._isEnabled=r.get(43),this._useFoldingProviders="indentation"!==r.get(44),this._unfoldOnClickAfterEndOfLine=r.get(48),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=r.get(46),this.updateDebounceInfo=o.for(s.foldingRangeProvider,"Folding",{min:200}),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new N9(e),this.foldingDecorationProvider.showFoldingControls=r.get(110),this.foldingDecorationProvider.showFoldingHighlights=r.get(45),this.foldingEnabled=F9.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel((()=>this.onModelChanged()))),this._register(this.editor.onDidChangeConfiguration((e=>{if(e.hasChanged(43)&&(this._isEnabled=this.editor.getOptions().get(43),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),e.hasChanged(47)&&this.onModelChanged(),e.hasChanged(110)||e.hasChanged(45)){const e=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=e.get(110),this.foldingDecorationProvider.showFoldingHighlights=e.get(45),this.triggerFoldingModelChanged()}e.hasChanged(44)&&(this._useFoldingProviders="indentation"!==this.editor.getOptions().get(44),this.onFoldingStrategyChanged()),e.hasChanged(48)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(48)),e.hasChanged(46)&&(this._foldingImportsByDefault=this.editor.getOptions().get(46))}))),this.onModelChanged()}saveViewState(){const e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){const t=this.foldingModel.getMemento(),i=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:i,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){const t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&(this._currentModelHasFoldedImports=!!e.foldedImports,e.collapsedRegions&&e.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(e.collapsedRegions)}finally{this._restoringViewState=!1}}}onModelChanged(){this.localToDispose.clear();const e=this.editor.getModel();this._isEnabled&&e&&!e.isTooLargeForTokenization()&&(this._currentModelHasFoldedImports=!1,this.foldingModel=new d9(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new _9(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange((e=>this.onHiddenRangesChanges(e)))),this.updateScheduler=new Br(this.updateDebounceInfo.get(e)),this.cursorChangedScheduler=new Kr((()=>this.revealCursor()),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelContent((e=>this.onDidChangeModelContent(e)))),this.localToDispose.add(this.editor.onDidChangeCursorPosition((()=>this.onCursorPositionChanged()))),this.localToDispose.add(this.editor.onMouseDown((e=>this.onEditorMouseDown(e)))),this.localToDispose.add(this.editor.onMouseUp((e=>this.onEditorMouseUp(e)))),this.localToDispose.add({dispose:()=>{var e,t;this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),null===(e=this.updateScheduler)||void 0===e||e.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,null===(t=this.rangeProvider)||void 0===t||t.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){var e;null===(e=this.rangeProvider)||void 0===e||e.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;const t=new v9(e,this.languageConfigurationService,this._foldingLimitReporter);if(this.rangeProvider=t,this._useFoldingProviders&&this.foldingModel){const i=x9.getFoldingRangeProviders(this.languageFeaturesService,e);i.length>0&&(this.rangeProvider=new D9(e,i,(()=>this.triggerFoldingModelChanged()),this._foldingLimitReporter,t))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(e){var t;null===(t=this.hiddenRangeModel)||void 0===t||t.notifyChangeModelContent(e),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger((()=>{const e=this.foldingModel;if(!e)return null;const t=new Si,i=this.getRangeProvider(e.textModel),n=this.foldingRegionPromise=Mr((e=>i.compute(e)));return n.then((i=>{if(i&&n===this.foldingRegionPromise){let n;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){const e=i.setCollapsedAllOfType(ho.Imports.value,!0);e&&(n=Mq.capture(this.editor),this._currentModelHasFoldedImports=e)}const o=this.editor.getSelections(),s=o?o.map((e=>e.startLineNumber)):[];e.update(i,s),null==n||n.restore(this.editor);const r=this.updateDebounceInfo.update(e.textModel,t.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=r)}return e}))})).then(void 0,(e=>(Jt(e),null))))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){const e=this.editor.getSelections();e&&this.hiddenRangeModel.adjustSelections(e)&&this.editor.setSelections(e)}this.editor.setHiddenAreas(e,this)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const e=this.getFoldingModel();e&&e.then((e=>{if(e){const t=this.editor.getSelections();if(t&&t.length>0){const i=[];for(const n of t){const t=n.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(t)&&i.push(...e.getAllRegionsAtLine(t,(e=>e.isCollapsed&&t>e.startLineNumber)))}i.length&&(e.toggleCollapseState(i),this.reveal(t[0].getPosition()))}}})).then(void 0,Jt)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range)return;if(!e.event.leftButton&&!e.event.middleButton)return;const t=e.target.range;let i=!1;switch(e.target.type){case 4:{const t=e.target.detail,n=e.target.element.offsetLeft;if(t.offsetX-n<4)return;i=!0;break}case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()&&!e.target.detail.isAfterLines)break;return;case 6:if(this.hiddenRangeModel.hasRanges()){const e=this.editor.getModel();if(e&&t.startColumn===e.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:i}}onEditorMouseUp(e){const t=this.foldingModel;if(!t||!this.mouseDownInfo||!e.target)return;const i=this.mouseDownInfo.lineNumber,n=this.mouseDownInfo.iconClicked,o=e.target.range;if(!o||o.startLineNumber!==i)return;if(n){if(4!==e.target.type)return}else{const e=this.editor.getModel();if(!e||o.startColumn!==e.getLineMaxColumn(i))return}const s=t.getRegionAtLine(i);if(s&&s.startLineNumber===i){const o=s.isCollapsed;if(n||o){let n=[];if(e.event.altKey){const e=e=>!e.containedBy(s)&&!s.containedBy(e),i=t.getRegionsInside(null,e);for(const t of i)t.isCollapsed&&n.push(t);0===n.length&&(n=i)}else{const i=e.event.middleButton||e.event.shiftKey;if(i)for(const e of t.getRegionsInside(s))e.isCollapsed===o&&n.push(e);!o&&i&&0!==n.length||n.push(s)}t.toggleCollapseState(n),this.reveal({lineNumber:i,column:1})}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};B9.ID="editor.contrib.folding",B9=x9=M9([P9(1,Zd),P9(2,Lg),P9(3,kD),P9(4,RO),P9(5,lf)],B9);class H9{constructor(e){this.editor=e,this._onDidChange=new Ri,this._computed=0,this._limited=!1}get limit(){return this.editor.getOptions().get(47)}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}class W9 extends Fh{runEditorCommand(e,t,i){const n=e.get(Lg),o=B9.get(t);if(!o)return;const s=o.getFoldingModel();return s?(this.reportTelemetry(e,t),s.then((e=>{if(e){this.invoke(o,e,t,i,n);const s=t.getSelection();s&&o.reveal(s.getStartPosition())}}))):void 0}getSelectedLines(e){const t=e.getSelections();return t?t.map((e=>e.startLineNumber)):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map((e=>e+1)):this.getSelectedLines(t)}run(e,t){}}function U9(e){if(!Z(e)){if(!$(e))return!1;const t=e;if(!Z(t.levels)&&!X(t.levels))return!1;if(!Z(t.direction)&&!q(t.direction))return!1;if(!(Z(t.selectionLines)||Array.isArray(t.selectionLines)&&t.selectionLines.every(X)))return!1}return!0}class V9 extends W9{getFoldingLevel(){return parseInt(this.id.substr(V9.ID_PREFIX.length))}invoke(e,t,i){!function(e,t,i,n){const o=e.getRegionsInside(null,((e,i)=>i===t&&true!==e.isCollapsed&&!n.some((t=>e.containsLine(t)))));e.toggleCollapseState(o)}(t,this.getFoldingLevel(),0,this.getSelectedLines(i))}}V9.ID_PREFIX="editor.foldLevel",V9.ID=e=>V9.ID_PREFIX+e,zh(B9.ID,B9,0),Vh(class extends W9{constructor(){super({id:"editor.unfold",label:pe("vs/editor/contrib/folding/browser/folding","unfoldAction.label","Unfold"),alias:"Unfold",precondition:F9,kbOpts:{kbExpr:JT.editorTextFocus,primary:3166,mac:{primary:2654},weight:100},metadata:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:U9,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){const o=n&&n.levels||1,s=this.getLineNumbers(n,i);n&&"up"===n.direction?g9(t,!1,o,s):u9(t,!1,o,s)}}),Vh(class extends W9{constructor(){super({id:"editor.unfoldRecursively",label:pe("vs/editor/contrib/folding/browser/folding","unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:F9,kbOpts:{kbExpr:JT.editorTextFocus,primary:$i(2089,2142),weight:100}})}invoke(e,t,i,n){u9(t,!1,Number.MAX_VALUE,this.getSelectedLines(i))}}),Vh(class extends W9{constructor(){super({id:"editor.fold",label:pe("vs/editor/contrib/folding/browser/folding","foldAction.label","Fold"),alias:"Fold",precondition:F9,kbOpts:{kbExpr:JT.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},metadata:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:U9,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){const o=this.getLineNumbers(n,i),s=n&&n.levels,r=n&&n.direction;"number"!=typeof s&&"string"!=typeof r?function(e,t,i){const n=[];for(const o of i){const t=e.getAllRegionsAtLine(o,(e=>true!==e.isCollapsed));t.length>0&&n.push(t[0])}e.toggleCollapseState(n)}(t,0,o):"up"===r?g9(t,!0,s||1,o):u9(t,!0,s||1,o)}}),Vh(class extends W9{constructor(){super({id:"editor.foldRecursively",label:pe("vs/editor/contrib/folding/browser/folding","foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:F9,kbOpts:{kbExpr:JT.editorTextFocus,primary:$i(2089,2140),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);u9(t,!0,Number.MAX_VALUE,n)}}),Vh(class extends W9{constructor(){super({id:"editor.foldAll",label:pe("vs/editor/contrib/folding/browser/folding","foldAllAction.label","Fold All"),alias:"Fold All",precondition:F9,kbOpts:{kbExpr:JT.editorTextFocus,primary:$i(2089,2069),weight:100}})}invoke(e,t,i){u9(t,!0)}}),Vh(class extends W9{constructor(){super({id:"editor.unfoldAll",label:pe("vs/editor/contrib/folding/browser/folding","unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:F9,kbOpts:{kbExpr:JT.editorTextFocus,primary:$i(2089,2088),weight:100}})}invoke(e,t,i){u9(t,!1)}}),Vh(class extends W9{constructor(){super({id:"editor.foldAllBlockComments",label:pe("vs/editor/contrib/folding/browser/folding","foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:F9,kbOpts:{kbExpr:JT.editorTextFocus,primary:$i(2089,2138),weight:100}})}invoke(e,t,i,n,o){if(t.regions.hasTypes())f9(t,ho.Comment.value,!0);else{const e=i.getModel();if(!e)return;const n=o.getLanguageConfiguration(e.getLanguageId()).comments;n&&n.blockCommentStartToken&&p9(t,new RegExp("^\\s*"+bs(n.blockCommentStartToken)),!0)}}}),Vh(class extends W9{constructor(){super({id:"editor.foldAllMarkerRegions",label:pe("vs/editor/contrib/folding/browser/folding","foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:F9,kbOpts:{kbExpr:JT.editorTextFocus,primary:$i(2089,2077),weight:100}})}invoke(e,t,i,n,o){if(t.regions.hasTypes())f9(t,ho.Region.value,!0);else{const e=i.getModel();if(!e)return;const n=o.getLanguageConfiguration(e.getLanguageId()).foldingRules;n&&n.markers&&n.markers.start&&p9(t,new RegExp(n.markers.start),!0)}}}),Vh(class extends W9{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:pe("vs/editor/contrib/folding/browser/folding","unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:F9,kbOpts:{kbExpr:JT.editorTextFocus,primary:$i(2089,2078),weight:100}})}invoke(e,t,i,n,o){if(t.regions.hasTypes())f9(t,ho.Region.value,!1);else{const e=i.getModel();if(!e)return;const n=o.getLanguageConfiguration(e.getLanguageId()).foldingRules;n&&n.markers&&n.markers.start&&p9(t,new RegExp(n.markers.start),!1)}}}),Vh(class extends W9{constructor(){super({id:"editor.foldAllExcept",label:pe("vs/editor/contrib/folding/browser/folding","foldAllExcept.label","Fold All Except Selected"),alias:"Fold All Except Selected",precondition:F9,kbOpts:{kbExpr:JT.editorTextFocus,primary:$i(2089,2136),weight:100}})}invoke(e,t,i){m9(t,!0,this.getSelectedLines(i))}}),Vh(class extends W9{constructor(){super({id:"editor.unfoldAllExcept",label:pe("vs/editor/contrib/folding/browser/folding","unfoldAllExcept.label","Unfold All Except Selected"),alias:"Unfold All Except Selected",precondition:F9,kbOpts:{kbExpr:JT.editorTextFocus,primary:$i(2089,2134),weight:100}})}invoke(e,t,i){m9(t,!1,this.getSelectedLines(i))}}),Vh(class extends W9{constructor(){super({id:"editor.toggleFold",label:pe("vs/editor/contrib/folding/browser/folding","toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:F9,kbOpts:{kbExpr:JT.editorTextFocus,primary:$i(2089,2090),weight:100}})}invoke(e,t,i){h9(t,1,this.getSelectedLines(i))}}),Vh(class extends W9{constructor(){super({id:"editor.gotoParentFold",label:pe("vs/editor/contrib/folding/browser/folding","gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:F9,kbOpts:{kbExpr:JT.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=function(e,t){let i=null;const n=t.getRegionAtLine(e);if(null!==n&&(i=n.startLineNumber,e===i)){const e=n.parentIndex;i=-1!==e?t.regions.getStartLineNumber(e):null}return i}(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),Vh(class extends W9{constructor(){super({id:"editor.gotoPreviousFold",label:pe("vs/editor/contrib/folding/browser/folding","gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:F9,kbOpts:{kbExpr:JT.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=function(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){if(e!==i.startLineNumber)return i.startLineNumber;{const e=i.parentIndex;let n=0;for(-1!==e&&(n=t.regions.getStartLineNumber(i.parentIndex));null!==i;){if(!(i.regionIndex>0))return null;if(i=t.regions.toRegion(i.regionIndex-1),i.startLineNumber<=n)return null;if(i.parentIndex===e)return i.startLineNumber}}}else if(t.regions.length>0)for(i=t.regions.toRegion(t.regions.length-1);null!==i;){if(i.startLineNumber0?t.regions.toRegion(i.regionIndex-1):null}return null}(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),Vh(class extends W9{constructor(){super({id:"editor.gotoNextFold",label:pe("vs/editor/contrib/folding/browser/folding","gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:F9,kbOpts:{kbExpr:JT.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=function(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){const e=i.parentIndex;let n=0;if(-1!==e)n=t.regions.getEndLineNumber(i.parentIndex);else{if(0===t.regions.length)return null;n=t.regions.getEndLineNumber(t.regions.length-1)}for(;null!==i;){if(!(i.regionIndex=n)return null;if(i.parentIndex===e)return i.startLineNumber}}else if(t.regions.length>0)for(i=t.regions.toRegion(0);null!==i;){if(i.startLineNumber>e)return i.startLineNumber;i=i.regionIndexe.startLineNumber&&(o.push({startLineNumber:e.startLineNumber,endLineNumber:t,type:void 0,isCollapsed:!0,source:1}),i.setSelection({startLineNumber:e.startLineNumber,startColumn:1,endLineNumber:e.startLineNumber,endColumn:1}))}if(o.length>0){o.sort(((e,t)=>e.startLineNumber-t.startLineNumber));const e=l9.sanitizeAndMerge(t.regions,o,null===(n=i.getModel())||void 0===n?void 0:n.getLineCount());t.updatePost(l9.fromFoldRanges(e))}}}}),Vh(class extends W9{constructor(){super({id:"editor.removeManualFoldingRanges",label:pe("vs/editor/contrib/folding/browser/folding","removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:F9,kbOpts:{kbExpr:JT.editorTextFocus,primary:$i(2089,2137),weight:100}})}invoke(e,t,i){const n=i.getSelections();if(n){const i=[];for(const e of n){const{startLineNumber:t,endLineNumber:n}=e;i.push(n>=t?{startLineNumber:t,endLineNumber:n}:{endLineNumber:n,startLineNumber:t})}t.removeManualRanges(i),e.triggerFoldingModelChanged()}}});for(let OR=1;OR<=7;OR++)G9=new V9({id:V9.ID(OR),label:pe("vs/editor/contrib/folding/browser/folding","foldLevelAction.label","Fold Level {0}",OR),alias:`Fold Level ${OR}`,precondition:F9,kbOpts:{kbExpr:JT.editorTextFocus,primary:$i(2089,2048|21+OR),weight:100}}),Yh.INSTANCE.registerEditorAction(G9);var G9;pd.registerCommand("_executeFoldingRangeProvider",(async function(e,...t){const[i]=t;if(!(i instanceof An))throw ni();const n=e.get(lf),o=e.get(od).getModel(i);if(!o)throw ni();const s=e.get($u);if(!s.getValue("editor.folding",{resource:i}))return[];const r=e.get(Lg),a=s.getValue("editor.foldingStrategy",{resource:i}),l={get limit(){return s.getValue("editor.foldingMaximumRegions",{resource:i})},update:(e,t)=>{}},c=new v9(o,r,l);let d=c;if("indentation"!==a){const e=B9.getFoldingRangeProviders(n,o);e.length&&(d=new D9(o,e,(()=>{}),l,c))}const h=await d.compute(Mi.None),u=[];try{if(h)for(let e=0;e=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},K9=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let Y9=class{constructor(e,t,i,n){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._accessibilitySignalService=n,this._disposables=new gi,this._sessionDisposables=new gi,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(56)&&this._update()}))),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(56))return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;const i=new Zg;for(const n of t.autoFormatTriggerCharacters)i.add(n.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType((e=>{const t=e.charCodeAt(e.length-1);i.has(t)&&this._trigger(String.fromCharCode(t))})))}_trigger(e){if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const t=this._editor.getModel(),i=this._editor.getPosition(),n=new Fi,o=this._editor.onDidChangeModelContent((e=>{if(e.isFlush)return n.cancel(),void o.dispose();for(let t=0,s=e.changes.length;t{n.token.isCancellationRequested||L(e)&&(this._accessibilitySignalService.playSignal(uq.format,{userGesture:!1}),kX.execute(this._editor,e,!0))})).finally((()=>{o.dispose()}))}};Y9.ID="editor.contrib.autoFormat",Y9=z9([K9(1,lf),K9(2,hU),K9(3,cq)],Y9);let q9=class{constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new gi,this._callOnModel=new gi,this._callOnDispose.add(e.onDidChangeConfiguration((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModel((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModelLanguage((()=>this._update()))),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(55)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste((({range:e})=>this._trigger(e))))}_trigger(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(PX,this.editor,e,2,PF.None,Mi.None,!1).catch(Jt))}};q9.ID="editor.contrib.formatOnPaste",q9=z9([K9(1,lf),K9(2,td)],q9),zh(Y9.ID,Y9,2),zh(q9.ID,q9,2),Vh(class extends Fh{constructor(){super({id:"editor.action.formatDocument",label:pe("vs/editor/contrib/format/browser/formatActions","formatDocument.label","Format Document"),alias:"Format Document",precondition:Dd.and(JT.notInCompositeEditor,JT.writable,JT.hasDocumentFormattingProvider),kbOpts:{kbExpr:JT.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}async run(e,t){if(t.hasModel()){const i=e.get(td),n=e.get(FF);await n.showWhile(i.invokeFunction(BX,t,1,PF.None,Mi.None,!0),250)}}}),Vh(class extends Fh{constructor(){super({id:"editor.action.formatSelection",label:pe("vs/editor/contrib/format/browser/formatActions","formatSelection.label","Format Selection"),alias:"Format Selection",precondition:Dd.and(JT.writable,JT.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:JT.editorTextFocus,primary:$i(2089,2084),weight:100},contextMenuOpts:{when:JT.hasNonEmptySelection,group:"1_modification",order:1.31}})}async run(e,t){if(!t.hasModel())return;const i=e.get(td),n=t.getModel(),o=t.getSelections().map((e=>e.isEmpty()?new Un(e.startLineNumber,1,e.startLineNumber,n.getLineMaxColumn(e.startLineNumber)):e)),s=e.get(FF);await s.showWhile(i.invokeFunction(PX,t,o,1,PF.None,Mi.None,!0),250)}}),pd.registerCommand("editor.action.format",(async e=>{const t=e.get(nd).getFocusedCodeEditor();if(!t||!t.hasModel())return;const i=e.get(md);t.getSelection().isEmpty()?await i.executeCommand("editor.action.formatDocument"):await i.executeCommand("editor.action.formatSelection")}));var $9=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},j9=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class X9{remove(){var e;null===(e=this.parent)||void 0===e||e.children.delete(this.id)}static findId(e,t){let i;"string"==typeof e?i=`${t.id}/${e}`:(i=`${t.id}/${e.name}`,void 0!==t.children.get(i)&&(i=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let n=i;for(let o=0;void 0!==t.children.get(n);o++)n=`${i}_${o}`;return n}static empty(e){return 0===e.children.size}}class J9 extends X9{constructor(e,t,i){super(),this.id=e,this.parent=t,this.symbol=i,this.children=new Map}}class Q9 extends X9{constructor(e,t,i,n){super(),this.id=e,this.parent=t,this.label=i,this.order=n,this.children=new Map}}class Z9 extends X9{static create(e,t,i){const n=new Fi(i),o=new Z9(t.uri),s=e.ordered(t),r=s.map(((e,i)=>{var s;const r=X9.findId(`provider_${i}`,o),a=new Q9(r,o,null!==(s=e.displayName)&&void 0!==s?s:"Unknown Outline Provider",i);return Promise.resolve(e.provideDocumentSymbols(t,n.token)).then((e=>{for(const t of e||[])Z9._makeOutlineElement(t,a);return a}),(e=>(Qt(e),a))).then((e=>{X9.empty(e)?e.remove():o._groups.set(r,e)}))})),a=e.onDidChange((()=>{b(e.ordered(t),s)||n.cancel()}));return Promise.all(r).then((()=>n.token.isCancellationRequested&&!i.isCancellationRequested?Z9.create(e,t,i):o._compact())).finally((()=>{n.dispose(),a.dispose(),n.dispose()}))}static _makeOutlineElement(e,t){const i=X9.findId(e,t),n=new J9(i,t,e);if(e.children)for(const o of e.children)Z9._makeOutlineElement(o,n);t.children.set(n.id,n)}constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}_compact(){let e=0;for(const[t,i]of this._groups)0===i.children.size?this._groups.delete(t):e+=1;if(1!==e)this.children=this._groups;else{const e=nt.first(this._groups.values());for(const[,t]of e.children)t.parent=this,this.children.set(t.id,t)}return this}getTopLevelSymbols(){const e=[];for(const t of this.children.values())t instanceof J9?e.push(t.symbol):e.push(...nt.map(t.children.values(),(e=>e.symbol)));return e.sort(((e,t)=>Un.compareRangesUsingStarts(e.range,t.range)))}asListOfDocumentSymbols(){const e=this.getTopLevelSymbols(),t=[];return Z9._flattenDocumentSymbols(t,e,""),t.sort(((e,t)=>Wn.compare(Un.getStartPosition(e.range),Un.getStartPosition(t.range))||Wn.compare(Un.getEndPosition(t.range),Un.getEndPosition(e.range))))}static _flattenDocumentSymbols(e,t,i){for(const n of t)e.push({kind:n.kind,tags:n.tags,name:n.name,detail:n.detail,containerName:n.containerName||i,range:n.range,selectionRange:n.selectionRange,children:void 0}),n.children&&Z9._flattenDocumentSymbols(e,n.children,n.name)}}const e7=id("IOutlineModelService");let t7=class{constructor(e,t,i){this._languageFeaturesService=e,this._disposables=new gi,this._cache=new um(10,.7),this._debounceInformation=t.for(e.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(i.onModelRemoved((e=>{this._cache.delete(e.id)})))}dispose(){this._disposables.dispose()}async getOrCreate(e,t){const i=this._languageFeaturesService.documentSymbolProvider,n=i.ordered(e);let o=this._cache.get(e.id);if(!o||o.versionId!==e.getVersionId()||!b(o.provider,n)){const t=new Fi;o={versionId:e.getVersionId(),provider:n,promiseCnt:0,source:t,promise:Z9.create(i,e,t.token),model:void 0},this._cache.set(e.id,o);const s=Date.now();o.promise.then((t=>{o.model=t,this._debounceInformation.update(e,Date.now()-s)})).catch((t=>{this._cache.delete(e.id)}))}if(o.model)return o.model;o.promiseCnt+=1;const s=t.onCancellationRequested((()=>{0==--o.promiseCnt&&(o.source.cancel(),this._cache.delete(e.id))}));try{return await o.promise}finally{s.dispose()}}};t7=$9([j9(0,lf),j9(1,RO),j9(2,od)],t7),ng(e7,t7,1),pd.registerCommand("_executeDocumentSymbolProvider",(async function(e,...t){const[i]=t;ie(An.isUri(i));const n=e.get(e7),o=e.get(sd),s=await o.createModelReference(i);try{return(await n.getOrCreate(s.object.textEditorModel,Mi.None)).getTopLevelSymbols()}finally{s.dispose()}}));class i7 extends mi{constructor(e,t){super(),this.contextKeyService=e,this.model=t,this.inlineCompletionVisible=i7.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=i7.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=i7.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=i7.suppressSuggestions.bindTo(this.contextKeyService),this._register(cH((e=>{const t=this.model.read(e),i=null==t?void 0:t.state.read(e),n=!!(null==i?void 0:i.inlineCompletion)&&void 0!==(null==i?void 0:i.primaryGhostText)&&!(null==i?void 0:i.primaryGhostText.isEmpty());this.inlineCompletionVisible.set(n),(null==i?void 0:i.primaryGhostText)&&(null==i?void 0:i.inlineCompletion)&&this.suppressSuggestions.set(i.inlineCompletion.inlineCompletion.source.inlineCompletions.suppressSuggestions)}))),this._register(cH((e=>{const t=this.model.read(e);let i=!1,n=!0;const o=null==t?void 0:t.primaryGhostText.read(e);if((null==t?void 0:t.selectedSuggestItem)&&o&&o.parts.length>0){const{column:e,lines:s}=o.parts[0],r=s[0];if(e<=t.textModel.getLineIndentColumn(o.lineNumber)){let e=Ts(r);-1===e&&(e=r.length-1),i=e>0;const o=t.textModel.getOptions().tabSize;n=UC.visibleColumnFromColumn(r,e+1,o)t.equals(e.parts[i])))}renderForScreenReader(e){if(0===this.parts.length)return"";const t=this.parts[this.parts.length-1],i=e.substr(0,t.column-1);return new Jm([...this.parts.map((e=>new Qm(Un.fromPositions(new Wn(1,e.column)),e.lines.join("\n"))))]).applyToString(i).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every((e=>0===e.lines.length))}get lineCount(){return 1+this.parts.reduce(((e,t)=>e+t.lines.length-1),0)}}class o7{constructor(e,t,i){this.column=e,this.text=t,this.preview=i,this.lines=ws(this.text)}equals(e){return this.column===e.column&&this.lines.length===e.lines.length&&this.lines.every(((t,i)=>t===e.lines[i]))}}class s7{constructor(e,t,i,n=0){this.lineNumber=e,this.columnRange=t,this.text=i,this.additionalReservedLineCount=n,this.parts=[new o7(this.columnRange.endColumnExclusive,this.text,!1)],this.newLines=ws(this.text)}renderForScreenReader(e){return this.newLines.join("\n")}get lineCount(){return this.newLines.length}isEmpty(){return this.parts.every((e=>0===e.lines.length))}equals(e){return this.lineNumber===e.lineNumber&&this.columnRange.equals(e.columnRange)&&this.newLines.length===e.newLines.length&&this.newLines.every(((t,i)=>t===e.newLines[i]))&&this.additionalReservedLineCount===e.additionalReservedLineCount}}function r7(e,t){return b(e,t,a7)}function a7(e,t){return e===t||!(!e||!t)&&(e instanceof n7&&t instanceof n7||e instanceof s7&&t instanceof s7)&&e.equals(t)}const l7=[];class c7{constructor(e,t){if(this.startColumn=e,this.endColumnExclusive=t,e>t)throw new ai(`startColumn ${e} cannot be after endColumnExclusive ${t}`)}toRange(e){return new Un(e,this.startColumn,e,this.endColumnExclusive)}equals(e){return this.startColumn===e.startColumn&&this.endColumnExclusive===e.endColumnExclusive}}function d7(e,t){const i=new gi,n=e.createDecorationsCollection();return i.add(dH({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);n.set(i)}))),i.add({dispose:()=>{n.clear()}}),i}function h7(e,t){return new Wn(e.lineNumber-t.lineNumber+1,e.lineNumber-t.lineNumber==0?e.column-t.column+1:e.column)}var u7=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},g7=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const m7="ghost-text";let p7=class extends mi{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=eH(this,!1),this.currentTextModel=fH(this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=oH(this,(e=>{if(this.isDisposed.read(e))return;const t=this.currentTextModel.read(e);if(t!==this.model.targetTextModel.read(e))return;const i=this.model.ghostText.read(e);if(!i)return;const n=i instanceof s7?i.columnRange:void 0,o=[],s=[];function r(e,t){if(s.length>0){const i=s[s.length-1];t&&i.decorations.push(new Lf(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)s.push({content:i,decorations:t?[new Lf(1,i.length+1,t,0)]:[]})}const a=t.getLineContent(i.lineNumber);let l,c=0;for(const h of i.parts){let e=h.lines;void 0===l?(o.push({column:h.column,text:e[0],preview:h.preview}),e=e.slice(1)):r([a.substring(c,h.column-1)],void 0),e.length>0&&(r(e,m7),void 0===l&&h.column<=a.length&&(l=h.column)),c=h.column-1}void 0!==l&&r([a.substring(c)],void 0);const d=void 0!==l?new c7(l,a.length+1):void 0;return{replacedRange:n,inlineTexts:o,additionalLines:s,hiddenRange:d,lineNumber:i.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:t}})),this.decorations=oH(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];t.replacedRange&&i.push({range:t.replacedRange.toRange(t.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(const n of t.inlineTexts)i.push({range:Un.fromPositions(new Wn(t.lineNumber,n.column)),options:{description:m7,after:{content:n.text,inlineClassName:n.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:Sm.Left},showIfCollapsed:!0}});return i})),this.additionalLinesWidget=this._register(new f7(this.editor,this.languageService.languageIdCodec,oH((e=>{const t=this.uiState.read(e);return t?{lineNumber:t.lineNumber,additionalLines:t.additionalLines,minReservedLineCount:t.additionalReservedLineCount,targetTextModel:t.targetTextModel}:void 0})))),this._register(ui((()=>{this.isDisposed.set(!0,void 0)}))),this._register(d7(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};p7=u7([g7(2,eg)],p7);class f7 extends mi{get viewZoneId(){return this._viewZoneId}constructor(e,t,i){super(),this.editor=e,this.languageIdCodec=t,this.lines=i,this._viewZoneId=void 0,this.editorOptionsChanged=bH("editorOptionChanged",Ci.filter(this.editor.onDidChangeConfiguration,(e=>e.hasChanged(33)||e.hasChanged(117)||e.hasChanged(99)||e.hasChanged(94)||e.hasChanged(51)||e.hasChanged(50)||e.hasChanged(67)))),this._register(cH((e=>{const t=this.lines.read(e);this.editorOptionsChanged.read(e),t?this.updateLines(t.lineNumber,t.additionalLines,t.minReservedLineCount):this.clear()})))}dispose(){super.dispose(),this.clear()}clear(){this.editor.changeViewZones((e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)}))}updateLines(e,t,i){const n=this.editor.getModel();if(!n)return;const{tabSize:o}=n.getOptions();this.editor.changeViewZones((n=>{this._viewZoneId&&(n.removeZone(this._viewZoneId),this._viewZoneId=void 0);const s=Math.max(t.length,i);if(s>0){const i=document.createElement("div");!function(e,t,i,n,o){const s=n.get(33),r=n.get(117),a=n.get(94),l=n.get(51),c=n.get(50),d=n.get(67),h=new xu(1e4);h.appendString('
    ');for(let m=0,p=i.length;m');const u=js(n),g=qs(n),p=yf.createEmpty(n,o);Ff(new Of(c.isMonospace&&!s,c.canUseHalfwidthRightwardsArrow,n,!1,u,g,0,p,e.decorations,t,0,c.spaceWidth,c.middotWidth,c.wsmiddotWidth,r,"none",a,l!==kt.OFF,null),h),h.appendString("
    ")}h.appendString(""),Kc(e,c);const u=h.build(),g=_7?_7.createHTML(u):u;e.innerHTML=g}(i,o,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=n.addZone({afterLineNumber:e,heightInLines:s,domNode:i,afterColumnAffinity:1})}}))}}const _7=lu("editorGhostText",{createHTML:e=>e});class b7{constructor(e){this.lines=e,this.tokenization={getLineTokens:e=>this.lines[e-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}async function v7(e,t,i,n,o=Mi.None,s){const r=function(e,t){const i=t.getWordAtPosition(e),n=t.getLineMaxColumn(e.lineNumber);return i?new Un(e.lineNumber,i.startColumn,e.lineNumber,n):Un.fromPositions(e,e.with(void 0,n))}(t,i),a=e.all(i),l=new mm;for(const _ of a)_.groupId&&l.add(_.groupId,_);function c(e){if(!e.yieldsToGroupIds)return[];const t=[];for(const i of e.yieldsToGroupIds||[]){const e=l.get(i);for(const i of e)t.push(i)}return t}const d=new Map,h=new Set;function u(e,t){if(t=[...t,e],h.has(e))return t;h.add(e);try{const i=c(e);for(const e of i){const i=u(e,t);if(i)return i}}finally{h.delete(e)}}function g(e){const s=d.get(e);if(s)return s;const r=u(e,[]);r&&Qt(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${r.map((e=>e.toString?e.toString():""+e)).join(" -> ")}`));const a=new Xr;return d.set(e,a.p),(async()=>{if(!r){const t=c(e);for(const e of t){const t=await g(e);if(t&&t.items.length>0)return}}try{return await e.provideInlineCompletions(i,t,n,o)}catch(s){return void Qt(s)}})().then((e=>a.complete(e)),(e=>a.error(e))),a.p}const m=await Promise.all(a.map((async e=>({provider:e,completions:await g(e)})))),p=new Map,f=[];for(const _ of m){const e=_.completions;if(!e)continue;const t=new C7(e,_.provider);f.push(t);for(const n of e.items){const e=E7.from(n,t,r,i,s);p.set(e.hash(),e)}}return new S7(Array.from(p.values()),new Set(p.keys()),f)}class S7{constructor(e,t,i){this.completions=e,this.hashs=t,this.providerResults=i}has(e){return this.hashs.has(e.hash())}dispose(){for(const e of this.providerResults)e.removeRef()}}class C7{constructor(e,t){this.inlineCompletions=e,this.provider=t,this.refCount=1}addRef(){this.refCount++}removeRef(){this.refCount--,0===this.refCount&&this.provider.freeInlineCompletions(this.inlineCompletions)}}class E7{static from(e,t,i,n,o){let s,r,a=e.range?Un.lift(e.range):i;if("string"==typeof e.insertText){if(s=e.insertText,o&&e.completeBracketPairs){s=w7(s,a.getStartPosition(),n,o);const t=s.length-e.insertText.length;0!==t&&(a=new Un(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn+t))}r=void 0}else if("snippet"in e.insertText){const t=e.insertText.snippet.length;if(o&&e.completeBracketPairs){e.insertText.snippet=w7(e.insertText.snippet,a.getStartPosition(),n,o);const i=e.insertText.snippet.length-t;0!==i&&(a=new Un(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn+i))}const i=(new lZ).parse(e.insertText.snippet);1===i.children.length&&i.children[0]instanceof ZQ?(s=i.children[0].value,r=void 0):(s=i.toString(),r={snippet:e.insertText.snippet,range:a})}else rh(e.insertText);return new E7(s,e.command,a,s,r,e.additionalTextEdits||l7,e,t)}constructor(e,t,i,n,o,s,r,a){this.filterText=e,this.command=t,this.range=i,this.insertText=n,this.snippetInfo=o,this.additionalTextEdits=s,this.sourceInlineCompletion=r,this.source=a,n=(e=e.replace(/\r\n|\r/g,"\n")).replace(/\r\n|\r/g,"\n")}withRange(e){return new E7(this.filterText,this.command,e,this.insertText,this.snippetInfo,this.additionalTextEdits,this.sourceInlineCompletion,this.source)}hash(){return JSON.stringify({insertText:this.insertText,range:this.range.toString()})}}function w7(e,t,i,n){const o=i.getLineContent(t.lineNumber).substring(0,t.column-1)+e,s=i.tokenization.tokenizeLineWithEdit(t,o.length-(t.column-1),e),r=null==s?void 0:s.sliceAndInflate(t.column-1,o.length,0);if(!r)return e;return function(e,t){const i=new UL,n=new sI(i,(e=>t.getLanguageConfiguration(e))),o=uI(new tI(new b7([e]),n),[],void 0,!0);let s="";const r=e.getLineContent();return function e(t,i){if(2===t.kind)if(e(t.openingBracket,i),i=RL(i,t.openingBracket.length),t.child&&(e(t.child,i),i=RL(i,t.child.length)),t.closingBracket)e(t.closingBracket,i),i=RL(i,t.closingBracket.length);else{const e=n.getSingleLanguageBracketTokens(t.openingBracket.languageId).findClosingTokenText(t.openingBracket.bracketIds);s+=e}else if(3===t.kind);else if(0===t.kind||1===t.kind)s+=r.substring(i,RL(i,t.length));else if(4===t.kind)for(const n of t.children)e(n,i),i=RL(i,n.length)}(o,CL),s}(r,n)}function T7(e,t,i){const n=i?e.range.intersectRanges(i):e.range;if(!n)return e;const o=t.getValueInRange(n,1),s=Ps(o,e.text),r=jm.ofText(o.substring(0,s)).addToPosition(e.range.getStartPosition()),a=e.text.substring(s),l=Un.fromPositions(r,e.range.getEndPosition());return new Qm(l,a)}function y7(e,t){return e.text.startsWith(t.text)&&(i=e.range,(n=t.range).getStartPosition().equals(i.getStartPosition())&&n.getEndPosition().isBeforeOrEqual(i.getEndPosition()));var i,n}function R7(e,t,i,n,o=0){let s=T7(e,t);if(s.range.endLineNumber!==s.range.startLineNumber)return;const r=t.getLineContent(s.range.startLineNumber),a=ys(r).length;if(s.range.startColumn-1<=a){const e=ys(s.text).length,t=r.substring(s.range.startColumn-1,a),[i,n]=[s.range.getStartPosition(),s.range.getEndPosition()],o=i.column+t.length<=n.column?i.delta(0,t.length):n,l=Un.fromPositions(o,n),c=s.text.startsWith(t)?s.text.substring(t.length):s.text.substring(e);s=new Qm(l,c)}const l=t.getValueInRange(s.range),c=function(e,t){if((null==L7?void 0:L7.originalValue)===e&&(null==L7?void 0:L7.newValue)===t)return null==L7?void 0:L7.changes;{let i=A7(e,t,!0);if(i){const n=I7(i);if(n>0){const o=A7(e,t,!1);o&&I7(o)0===e.originalLength));if(e.length>1||1===e.length&&e[0].originalStart!==l.length)return}const u=s.text.length-o;for(const g of c){const e=s.range.startColumn+g.originalStart+g.originalLength;if("subwordSmart"===i&&n&&n.lineNumber===s.range.startLineNumber&&e0)return;if(0===g.modifiedLength)continue;const t=g.modifiedStart+g.modifiedLength,o=Math.max(g.modifiedStart,Math.min(t,u)),r=s.text.substring(g.modifiedStart,o),a=s.text.substring(o,Math.max(g.modifiedStart,t));r.length>0&&h.push(new o7(e,r,!1)),a.length>0&&h.push(new o7(e,a,!0))}return new n7(d,h)}let L7;function I7(e){let t=0;for(const i of e)t+=i.originalLength;return t}function A7(e,t,i){if(e.length>5e3||t.length>5e3)return;function n(e){let t=0;for(let i=0,n=e.length;it&&(t=n)}return t}const o=Math.max(n(e),n(t));function s(e){if(e<0)throw new Error("unexpected");return o+e+1}function r(e){let t=0,n=0;const o=new Int32Array(e.length);for(let r=0,a=e.length;ra},{getElements:()=>l}).ComputeDiff(!1).changes}var N7=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},k7=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let D7=class extends mi{constructor(e,t,i,n,o){super(),this.textModel=e,this.versionId=t,this._debounceValue=i,this.languageFeaturesService=n,this.languageConfigurationService=o,this._updateOperation=this._register(new pi),this.inlineCompletions=iH("inlineCompletions",void 0),this.suggestWidgetInlineCompletions=iH("suggestWidgetInlineCompletions",void 0),this._register(this.textModel.onDidChangeContent((()=>{this._updateOperation.clear()})))}fetch(e,t,i){var n,o;const s=new O7(e,t,this.textModel.getVersionId()),r=t.selectedSuggestionInfo?this.suggestWidgetInlineCompletions:this.inlineCompletions;if(null===(n=this._updateOperation.value)||void 0===n?void 0:n.request.satisfies(s))return this._updateOperation.value.promise;if(null===(o=r.get())||void 0===o?void 0:o.request.satisfies(s))return Promise.resolve(!0);const a=!!this._updateOperation.value;this._updateOperation.clear();const l=new Fi,c=(async()=>{var n,o;if((a||t.triggerKind===Zn.Automatic)&&await(n=this._debounceValue.get(this.textModel),o=l.token,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),n);o&&(t=o.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),l.token.isCancellationRequested||this.textModel.getVersionId()!==s.versionId)return!1;const c=new Date,d=await v7(this.languageFeaturesService.inlineCompletionsProvider,e,this.textModel,t,l.token,this.languageConfigurationService);if(l.token.isCancellationRequested||this.textModel.getVersionId()!==s.versionId)return!1;const h=new Date;this._debounceValue.update(this.textModel,h.getTime()-c.getTime());const u=new M7(d,s,this.textModel,this.versionId);if(i){const t=i.toInlineCompletion(void 0);i.canBeReused(this.textModel,e)&&!d.has(t)&&u.prepend(i.inlineCompletion,t.range,!0)}return this._updateOperation.clear(),XB((e=>{r.set(u,e)})),!0})(),d=new x7(s,l,c);return this._updateOperation.value=d,c}clear(e){this._updateOperation.clear(),this.inlineCompletions.set(void 0,e),this.suggestWidgetInlineCompletions.set(void 0,e)}clearSuggestWidgetInlineCompletions(e){var t;(null===(t=this._updateOperation.value)||void 0===t?void 0:t.request.context.selectedSuggestionInfo)&&this._updateOperation.clear(),this.suggestWidgetInlineCompletions.set(void 0,e)}cancelUpdate(){this._updateOperation.clear()}};D7=N7([k7(3,lf),k7(4,Lg)],D7);class O7{constructor(e,t,i){this.position=e,this.context=t,this.versionId=i}satisfies(e){return this.position.equals(e.position)&&function(e,t,i){return e&&t?((e,t)=>e.equals(t))(e,t):e===t}(this.context.selectedSuggestionInfo,e.context.selectedSuggestionInfo)&&(e.context.triggerKind===Zn.Automatic||this.context.triggerKind===Zn.Explicit)&&this.versionId===e.versionId}}class x7{constructor(e,t,i){this.request=e,this.cancellationTokenSource=t,this.promise=i}dispose(){this.cancellationTokenSource.cancel()}}class M7{get inlineCompletions(){return this._inlineCompletions}constructor(e,t,i,n){this.inlineCompletionProviderResult=e,this.request=t,this._textModel=i,this._versionId=n,this._refCount=1,this._prependedInlineCompletionItems=[];const o=i.deltaDecorations([],e.completions.map((e=>({range:e.range,options:{description:"inline-completion-tracking-range"}}))));this._inlineCompletions=e.completions.map(((e,t)=>new P7(e,o[t],this._textModel,this._versionId)))}clone(){return this._refCount++,this}dispose(){if(this._refCount--,0===this._refCount){setTimeout((()=>{this._textModel.isDisposed()||this._textModel.deltaDecorations(this._inlineCompletions.map((e=>e.decorationId)),[])}),0),this.inlineCompletionProviderResult.dispose();for(const e of this._prependedInlineCompletionItems)e.source.removeRef()}}prepend(e,t,i){i&&e.source.addRef();const n=this._textModel.deltaDecorations([],[{range:t,options:{description:"inline-completion-tracking-range"}}])[0];this._inlineCompletions.unshift(new P7(e,n,this._textModel,this._versionId)),this._prependedInlineCompletionItems.push(e)}}class P7{get forwardStable(){var e;return null!==(e=this.inlineCompletion.source.inlineCompletions.enableForwardStability)&&void 0!==e&&e}constructor(e,t,i,n){this.inlineCompletion=e,this.decorationId=t,this._textModel=i,this._modelVersion=n,this.semanticId=JSON.stringify([this.inlineCompletion.filterText,this.inlineCompletion.insertText,this.inlineCompletion.range.getStartPosition().toString()]),this._updatedRange=sH({owner:this,equalsFn:Un.equalsRange},(e=>(this._modelVersion.read(e),this._textModel.getDecorationRange(this.decorationId))))}toInlineCompletion(e){var t;return this.inlineCompletion.withRange(null!==(t=this._updatedRange.read(e))&&void 0!==t?t:F7)}toSingleTextEdit(e){var t;return new Qm(null!==(t=this._updatedRange.read(e))&&void 0!==t?t:F7,this.inlineCompletion.insertText)}isVisible(e,t,i){const n=T7(this._toFilterTextReplacement(i),e),o=this._updatedRange.read(i);if(!o||!this.inlineCompletion.range.getStartPosition().equals(o.getStartPosition())||t.lineNumber!==n.range.startLineNumber)return!1;const s=e.getValueInRange(n.range,1),r=n.text,a=Math.max(0,t.column-n.range.startColumn);let l=r.substring(0,a),c=r.substring(a),d=s.substring(0,a),h=s.substring(a);const u=e.getLineIndentColumn(n.range.startLineNumber);return n.range.startColumn<=u&&(d=d.trimStart(),0===d.length&&(h=h.trimStart()),l=l.trimStart(),0===l.length&&(c=c.trimStart())),l.startsWith(d)&&!!Xx(h,c)}canBeReused(e,t){const i=this._updatedRange.read(void 0);return!!i&&i.containsPosition(t)&&this.isVisible(e,t,void 0)&&jm.ofRange(i).isGreaterThanOrEqualTo(jm.ofRange(this.inlineCompletion.range))}_toFilterTextReplacement(e){var t;return new Qm(null!==(t=this._updatedRange.read(e))&&void 0!==t?t:F7,this.inlineCompletion.filterText)}}const F7=new Un(1,1,1,1),B7={Visible:a6,HasFocusedSuggestion:new Qd("suggestWidgetHasFocusedSuggestion",!1,pe("vs/editor/contrib/suggest/browser/suggest","suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new Qd("suggestWidgetDetailsVisible",!1,pe("vs/editor/contrib/suggest/browser/suggest","suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new Qd("suggestWidgetMultipleSuggestions",!1,pe("vs/editor/contrib/suggest/browser/suggest","suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new Qd("suggestionMakesTextEdit",!0,pe("vs/editor/contrib/suggest/browser/suggest","suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new Qd("acceptSuggestionOnEnter",!0,pe("vs/editor/contrib/suggest/browser/suggest","acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new Qd("suggestionHasInsertAndReplaceRange",!1,pe("vs/editor/contrib/suggest/browser/suggest","suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new Qd("suggestionInsertMode",void 0,{type:"string",description:pe("vs/editor/contrib/suggest/browser/suggest","suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new Qd("suggestionCanResolve",!1,pe("vs/editor/contrib/suggest/browser/suggest","suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},H7=new bh("suggestWidgetStatusBar");class W7{constructor(e,t,i,n){var o;this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=DM.Default,this.distance=0,this.textLabel="string"==typeof t.label?t.label:null===(o=t.label)||void 0===o?void 0:o.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,Un.isIRange(t.range)?(this.editStart=new Wn(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new Wn(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new Wn(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||Un.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new Wn(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new Wn(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new Wn(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||Un.spansMultipleLines(t.range.insert)||Un.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),"function"!=typeof n.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._resolveDuration=0)}get isResolved(){return void 0!==this._resolveDuration}get resolveDuration(){return void 0!==this._resolveDuration?this._resolveDuration:-1}async resolve(e){if(!this._resolveCache){const t=e.onCancellationRequested((()=>{this._resolveCache=void 0,this._resolveDuration=void 0})),i=new Si(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then((e=>{Object.assign(this.completion,e),this._resolveDuration=i.elapsed()}),(e=>{ti(e)&&(this._resolveCache=void 0,this._resolveDuration=void 0)})).finally((()=>{t.dispose()}))}return this._resolveCache}}class U7{constructor(e=2,t=new Set,i=new Set,n=new Map,o=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=n,this.showDeprecated=o}}U7.default=new U7;class V7{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}async function G7(e,t,i,n=U7.default,o={triggerKind:0},s=Mi.None){const r=new Si;i=i.clone();const a=t.getWordAtPosition(i),l=a?new Un(i.lineNumber,a.startColumn,i.lineNumber,a.endColumn):Un.fromPositions(i),c={replace:l,insert:l.setEndPosition(i.lineNumber,i.column)},d=[],h=new gi,u=[];let g=!1;const m=(e,t,o)=>{var s,r,a;let l=!1;if(!t)return l;for(const h of t.suggestions)if(!n.kindFilter.has(h.kind)){if(!n.showDeprecated&&(null===(s=null==h?void 0:h.tags)||void 0===s?void 0:s.includes(1)))continue;h.range||(h.range=c),h.sortText||(h.sortText="string"==typeof h.label?h.label:h.label.label),!g&&h.insertTextRules&&4&h.insertTextRules&&(g=lZ.guessNeedsClipboard(h.insertText)),d.push(new W7(i,h,t,e)),l=!0}return ci(t)&&h.add(t),u.push({providerName:null!==(r=e._debugDisplayName)&&void 0!==r?r:"unknown_provider",elapsedProvider:null!==(a=t.duration)&&void 0!==a?a:-1,elapsedOverall:o.elapsed()}),l},p=(async()=>{})();for(const _ of e.orderedGroups(t)){let e=!1;if(await Promise.all(_.map((async r=>{if(n.providerItemsToReuse.has(r)){const t=n.providerItemsToReuse.get(r);return t.forEach((e=>d.push(e))),void(e=e||t.length>0)}if(!(n.providerFilter.size>0)||n.providerFilter.has(r))try{const n=new Si,a=await r.provideCompletionItems(t,i,o,s);e=m(r,a,n)||e}catch(a){Qt(a)}}))),e||s.isCancellationRequested)break}return await p,s.isCancellationRequested?(h.dispose(),Promise.reject(new ii)):new V7(d.sort((f=n.snippetSortOrder,K7.get(f))),g,{entries:u,elapsed:r.elapsed()},h);var f}function z7(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLowt.sortTextLow)return 1}return e.textLabelt.textLabel?1:e.completion.kind-t.completion.kind}const K7=new Map;K7.set(0,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return z7(e,t)})),K7.set(2,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return z7(e,t)})),K7.set(1,z7),pd.registerCommand("_executeCompletionItemProvider",(async(e,...t)=>{const[i,n,o,s]=t;ie(An.isUri(i)),ie(Wn.isIPosition(n)),ie("string"==typeof o||!o),ie("number"==typeof s||!s);const{completionProvider:r}=e.get(lf),a=await e.get(sd).createModelReference(i);try{const e={incomplete:!1,suggestions:[]},t=[],i=a.object.textEditorModel.validatePosition(n),l=await G7(r,a.object.textEditorModel,i,void 0,{triggerCharacter:null!=o?o:void 0,triggerKind:o?1:0});for(const n of l.items)t.length<(null!=s?s:0)&&t.push(n.resolve(Mi.None)),e.incomplete=e.incomplete||n.container.incomplete,e.suggestions.push(n.completion);try{return await Promise.all(t),e}finally{setTimeout((()=>l.disposable.dispose()),100)}}finally{a.dispose()}}));class Y7{static isAllOff(e){return"off"===e.other&&"off"===e.comments&&"off"===e.strings}static isAllOn(e){return"on"===e.other&&"on"===e.comments&&"on"===e.strings}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}function q7(e,t=Me){return function(e,t=Me){return!!t&&PI(e.charCodeAt(0))&&58===e.charCodeAt(1)}(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}var $7=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},j7=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class X7{constructor(e){this._delegates=e}resolve(e){for(const t of this._delegates){const i=t.resolve(e);if(void 0!==i)return i}}}class J7{constructor(e,t,i,n){this._model=e,this._selection=t,this._selectionIdx=i,this._overtypingCapturer=n}resolve(e){const{name:t}=e;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){let t=this._model.getValueInRange(this._selection)||void 0,i=this._selection.startLineNumber!==this._selection.endLineNumber;if(!t&&this._overtypingCapturer){const e=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);e&&(t=e.value,i=e.multiline)}if(t&&i&&e.snippet){const i=ys(this._model.getLineContent(this._selection.startLineNumber),0,this._selection.startColumn-1);let n=i;e.snippet.walk((t=>t!==e&&(t instanceof ZQ&&(n=ys(ws(t.value).pop())),!0)));const o=Ps(n,i);t=t.replace(/(\r\n|\r|\n)(.*)/g,((e,t,i)=>`${t}${n.substr(o)}${i}`))}return t}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){const e=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return e&&e.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):"CURSOR_INDEX"===t?String(this._selectionIdx):"CURSOR_NUMBER"===t?String(this._selectionIdx+1):void 0}}class Q7{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const{name:t}=e;if("TM_FILENAME"===t)return Sn(this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){const e=Sn(this._model.uri.fsPath),t=e.lastIndexOf(".");return t<=0?e:e.slice(0,t)}return"TM_DIRECTORY"===t?"."===vn(this._model.uri.fsPath)?"":this._labelService.getUriLabel(GI(this._model.uri)):"TM_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri):"RELATIVE_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0}):void 0}}class Z7{constructor(e,t,i,n){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=i,this._spread=n}resolve(e){if("CLIPBOARD"!==e.name)return;const t=this._readClipboardText();if(t){if(this._spread){const e=t.split(/\r\n|\n|\r/).filter((e=>!ms(e)));if(e.length===this._selectionCount)return e[this._selectionIdx]}return t}}}let e8=class{constructor(e,t,i){this._model=e,this._selection=t,this._languageConfigurationService=i}resolve(e){const{name:t}=e,i=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),n=this._languageConfigurationService.getLanguageConfiguration(i).comments;if(n)return"LINE_COMMENT"===t?n.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?n.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&n.blockCommentEndToken||void 0}};e8=$7([j7(2,Lg)],e8);class t8{constructor(){this._date=new Date}resolve(e){const{name:t}=e;if("CURRENT_YEAR"===t)return String(this._date.getFullYear());if("CURRENT_YEAR_SHORT"===t)return String(this._date.getFullYear()).slice(-2);if("CURRENT_MONTH"===t)return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if("CURRENT_DATE"===t)return String(this._date.getDate().valueOf()).padStart(2,"0");if("CURRENT_HOUR"===t)return String(this._date.getHours().valueOf()).padStart(2,"0");if("CURRENT_MINUTE"===t)return String(this._date.getMinutes().valueOf()).padStart(2,"0");if("CURRENT_SECOND"===t)return String(this._date.getSeconds().valueOf()).padStart(2,"0");if("CURRENT_DAY_NAME"===t)return t8.dayNames[this._date.getDay()];if("CURRENT_DAY_NAME_SHORT"===t)return t8.dayNamesShort[this._date.getDay()];if("CURRENT_MONTH_NAME"===t)return t8.monthNames[this._date.getMonth()];if("CURRENT_MONTH_NAME_SHORT"===t)return t8.monthNamesShort[this._date.getMonth()];if("CURRENT_SECONDS_UNIX"===t)return String(Math.floor(this._date.getTime()/1e3));if("CURRENT_TIMEZONE_OFFSET"===t){const e=this._date.getTimezoneOffset(),t=e>0?"-":"+",i=Math.trunc(Math.abs(e/60)),n=i<10?"0"+i:i,o=Math.abs(e)-60*i;return t+n+":"+(o<10?"0"+o:o)}}}t8.dayNames=[pe("vs/editor/contrib/snippet/browser/snippetVariables","Sunday","Sunday"),pe("vs/editor/contrib/snippet/browser/snippetVariables","Monday","Monday"),pe("vs/editor/contrib/snippet/browser/snippetVariables","Tuesday","Tuesday"),pe("vs/editor/contrib/snippet/browser/snippetVariables","Wednesday","Wednesday"),pe("vs/editor/contrib/snippet/browser/snippetVariables","Thursday","Thursday"),pe("vs/editor/contrib/snippet/browser/snippetVariables","Friday","Friday"),pe("vs/editor/contrib/snippet/browser/snippetVariables","Saturday","Saturday")],t8.dayNamesShort=[pe("vs/editor/contrib/snippet/browser/snippetVariables","SundayShort","Sun"),pe("vs/editor/contrib/snippet/browser/snippetVariables","MondayShort","Mon"),pe("vs/editor/contrib/snippet/browser/snippetVariables","TuesdayShort","Tue"),pe("vs/editor/contrib/snippet/browser/snippetVariables","WednesdayShort","Wed"),pe("vs/editor/contrib/snippet/browser/snippetVariables","ThursdayShort","Thu"),pe("vs/editor/contrib/snippet/browser/snippetVariables","FridayShort","Fri"),pe("vs/editor/contrib/snippet/browser/snippetVariables","SaturdayShort","Sat")],t8.monthNames=[pe("vs/editor/contrib/snippet/browser/snippetVariables","January","January"),pe("vs/editor/contrib/snippet/browser/snippetVariables","February","February"),pe("vs/editor/contrib/snippet/browser/snippetVariables","March","March"),pe("vs/editor/contrib/snippet/browser/snippetVariables","April","April"),pe("vs/editor/contrib/snippet/browser/snippetVariables","May","May"),pe("vs/editor/contrib/snippet/browser/snippetVariables","June","June"),pe("vs/editor/contrib/snippet/browser/snippetVariables","July","July"),pe("vs/editor/contrib/snippet/browser/snippetVariables","August","August"),pe("vs/editor/contrib/snippet/browser/snippetVariables","September","September"),pe("vs/editor/contrib/snippet/browser/snippetVariables","October","October"),pe("vs/editor/contrib/snippet/browser/snippetVariables","November","November"),pe("vs/editor/contrib/snippet/browser/snippetVariables","December","December")],t8.monthNamesShort=[pe("vs/editor/contrib/snippet/browser/snippetVariables","JanuaryShort","Jan"),pe("vs/editor/contrib/snippet/browser/snippetVariables","FebruaryShort","Feb"),pe("vs/editor/contrib/snippet/browser/snippetVariables","MarchShort","Mar"),pe("vs/editor/contrib/snippet/browser/snippetVariables","AprilShort","Apr"),pe("vs/editor/contrib/snippet/browser/snippetVariables","MayShort","May"),pe("vs/editor/contrib/snippet/browser/snippetVariables","JuneShort","Jun"),pe("vs/editor/contrib/snippet/browser/snippetVariables","JulyShort","Jul"),pe("vs/editor/contrib/snippet/browser/snippetVariables","AugustShort","Aug"),pe("vs/editor/contrib/snippet/browser/snippetVariables","SeptemberShort","Sep"),pe("vs/editor/contrib/snippet/browser/snippetVariables","OctoberShort","Oct"),pe("vs/editor/contrib/snippet/browser/snippetVariables","NovemberShort","Nov"),pe("vs/editor/contrib/snippet/browser/snippetVariables","DecemberShort","Dec")];class i8{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;const t=function(e,t){if("string"==typeof e||void 0===e)return"string"==typeof e?{id:Sn(e)}:YF;const i=e;return i.configuration?{id:i.id,configPath:i.configuration}:1===i.folders.length?{id:i.id,uri:i.folders[0].uri}:{id:i.id}}(this._workspaceService.getWorkspace());return function(e){return"string"==typeof(null==e?void 0:e.id)&&!KF(e)&&!function(e){const t=e;return"string"==typeof(null==t?void 0:t.id)&&An.isUri(t.configPath)}(e)}(t)?void 0:"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0}_resolveWorkspaceName(e){if(KF(e))return Sn(e.uri.path);let t=Sn(e.configPath.path);return t.endsWith("code-workspace")&&(t=t.substr(0,t.length-14-1)),t}_resoveWorkspacePath(e){if(KF(e))return q7(e.uri.fsPath);const t=Sn(e.configPath.path);let i=e.configPath.fsPath;return i.endsWith(t)&&(i=i.substr(0,i.length-t.length-1)),i?q7(i):"/"}}class n8{resolve(e){const{name:t}=e;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):"UUID"===t?IQ():void 0}}var o8,s8=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},r8=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class a8{constructor(e,t,i){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=i,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=C(t.placeholders,tZ.compareByIndex),this._placeholderGroupsIdx=-1}initialize(e){this._offset=e.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(-1===this._offset)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations((t=>{for(const i of this._snippet.placeholders){const n=this._snippet.offset(i),o=this._snippet.fullLen(i),s=Un.fromPositions(e.getPositionAt(this._offset+n),e.getPositionAt(this._offset+n+o)),r=i.isFinalTabstop?a8._decor.inactiveFinal:a8._decor.inactive,a=t.addDecoration(s,r);this._placeholderDecorations.set(i,a)}}))}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){const e=[];for(const t of this._placeholderGroups[this._placeholderGroupsIdx])if(t.transform){const i=this._placeholderDecorations.get(t),n=this._editor.getModel().getDecorationRange(i),o=this._editor.getModel().getValueInRange(n),s=t.transform.resolve(o).split(/\r\n|\r|\n/);for(let e=1;e0&&this._editor.executeEdits("snippet.placeholderTransform",e)}let t=!1;!0===e&&this._placeholderGroupsIdx0&&(this._placeholderGroupsIdx-=1,t=!0);const i=this._editor.getModel().changeDecorations((e=>{const i=new Set,n=[];for(const o of this._placeholderGroups[this._placeholderGroupsIdx]){const s=this._placeholderDecorations.get(o),r=this._editor.getModel().getDecorationRange(s);n.push(new Vn(r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(o),e.changeDecorationOptions(s,o.isFinalTabstop?a8._decor.activeFinal:a8._decor.active),i.add(o);for(const t of this._snippet.enclosingPlaceholders(o)){const n=this._placeholderDecorations.get(t);e.changeDecorationOptions(n,t.isFinalTabstop?a8._decor.activeFinal:a8._decor.active),i.add(t)}}for(const[t,o]of this._placeholderDecorations)i.has(t)||e.changeDecorationOptions(o,t.isFinalTabstop?a8._decor.inactiveFinal:a8._decor.inactive);return n}));return t?this.move(e):null!=i?i:[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof tZ){const e=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(e).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){if(0===this._snippet.placeholders.length)return!0;if(1===this._snippet.placeholders.length){const[e]=this._snippet.placeholders;if(e.isFinalTabstop&&this._snippet.rightMostDescendant===e)return!0}return!1}computePossibleSelections(){const e=new Map;for(const t of this._placeholderGroups){let i;for(const n of t){if(n.isFinalTabstop)break;i||(i=[],e.set(n.index,i));const t=this._placeholderDecorations.get(n),o=this._editor.getModel().getDecorationRange(t);if(!o){e.delete(n.index);break}i.push(o)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;const e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!(null==e?void 0:e.choice))return;const t=this._placeholderDecorations.get(e);if(!t)return;const i=this._editor.getModel().getDecorationRange(t);return i?{range:i,choice:e.choice}:void 0}get hasChoice(){let e=!1;return this._snippet.walk((t=>(e=t instanceof iZ,!e))),e}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations((i=>{for(const n of this._placeholderGroups[this._placeholderGroupsIdx]){const o=e.shift(),s=o._snippet.placeholderInfo.last.index;for(const e of o._snippet.placeholderInfo.all)e.isFinalTabstop?e.index=n.index+(s+1)/this._nestingLevel:e.index=n.index+e.index/this._nestingLevel;this._snippet.replace(n,o._snippet.children);const r=this._placeholderDecorations.get(n);i.removeDecoration(r),this._placeholderDecorations.delete(n);for(const e of o._snippet.placeholders){const n=o._snippet.offset(e),s=o._snippet.fullLen(e),r=Un.fromPositions(t.getPositionAt(o._offset+n),t.getPositionAt(o._offset+n+s)),a=i.addDecoration(r,a8._decor.inactive);this._placeholderDecorations.set(e,a)}}this._placeholderGroups=C(this._snippet.placeholders,tZ.compareByIndex)}))}}a8._decor={active:VN.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:VN.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:VN.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:VN.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};const l8={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let c8=o8=class{static adjustWhitespace(e,t,i,n,o){const s=ys(e.getLineContent(t.lineNumber),0,t.column-1);let r;return n.walk((t=>{if(!(t instanceof ZQ)||t.parent instanceof iZ)return!0;if(o&&!o.has(t))return!0;const a=t.value.split(/\r\n|\r|\n/);if(i){const i=n.offset(t);if(0===i)a[0]=e.normalizeIndentation(a[0]);else{r=null!=r?r:n.toString();const t=r.charCodeAt(i-1);10!==t&&13!==t||(a[0]=e.normalizeIndentation(s+a[0]))}for(let t=1;te.get(zF))),g=e.invokeWithinContext((e=>new Q7(e.get(xF),h))),m=()=>r,p=h.getValueInRange(o8.adjustSelection(h,e.getSelection(),i,0)),f=h.getValueInRange(o8.adjustSelection(h,e.getSelection(),0,n)),_=h.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),b=e.getSelections().map(((e,t)=>({selection:e,idx:t}))).sort(((e,t)=>Un.compareRangesUsingStarts(e.selection,t.selection)));for(const{selection:v,idx:S}of b){let r=o8.adjustSelection(h,v,i,0),C=o8.adjustSelection(h,v,0,n);p!==h.getValueInRange(r)&&(r=v),f!==h.getValueInRange(C)&&(C=v);const E=v.setStartPosition(r.startLineNumber,r.startColumn).setEndPosition(C.endLineNumber,C.endColumn),w=(new lZ).parse(t,!0,o),T=E.getStartPosition(),y=o8.adjustWhitespace(h,T,s||S>0&&_!==h.getLineFirstNonWhitespaceColumn(v.positionLineNumber),w);w.resolveVariables(new X7([g,new Z7(m,S,b.length,"spread"===e.getOption(79)),new J7(h,v,S,a),new e8(h,v,l),new t8,new i8(u),new n8])),c[S]=cF.replace(E,w.toString()),c[S].identifier={major:S,minor:0},c[S]._isTracked=!0,d[S]=new a8(e,w,y)}return{edits:c,snippets:d}}static createEditsAndSnippetsFromEdits(e,t,i,n,o,s,r){if(!e.hasModel()||0===t.length)return{edits:[],snippets:[]};const a=[],l=e.getModel(),c=new lZ,d=new aZ,h=new X7([e.invokeWithinContext((e=>new Q7(e.get(xF),l))),new Z7((()=>o),0,e.getSelections().length,"spread"===e.getOption(79)),new J7(l,e.getSelection(),0,s),new e8(l,e.getSelection(),r),new t8,new i8(e.invokeWithinContext((e=>e.get(zF)))),new n8]);t=t.sort(((e,t)=>Un.compareRangesUsingStarts(e.range,t.range)));let u=0;for(let g=0;g0){const i=t[g-1].range,n=Un.fromPositions(i.getEndPosition(),e.getStartPosition()),o=new ZQ(l.getValueInRange(n));d.appendChild(o),u+=o.value.length}const n=c.parseFragment(i,d);o8.adjustWhitespace(l,e.getStartPosition(),!0,d,new Set(n)),d.resolveVariables(h);const o=d.toString(),s=o.slice(u);u=o.length;const r=cF.replace(e,s);r.identifier={major:g,minor:0},r._isTracked=!0,a.push(r)}return c.ensureFinalTabstop(d,i,!0),{edits:a,snippets:[new a8(e,d,"")]}}constructor(e,t,i=l8,n){this._editor=e,this._template=t,this._options=i,this._languageConfigurationService=n,this._templateMerges=[],this._snippets=[]}dispose(){di(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:e,snippets:t}="string"==typeof this._template?o8.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):o8.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=t,this._editor.executeEdits("snippet",e,(e=>{const i=e.filter((e=>!!e.identifier));for(let n=0;nVn.fromPositions(e.range.getEndPosition())))})),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=l8){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);const{edits:i,snippets:n}=o8.createEditsAndSnippetsFromSelections(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",i,(e=>{const t=e.filter((e=>!!e.identifier));for(let o=0;oVn.fromPositions(e.range.getEndPosition())))}))}next(){const e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){const e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){const t=[];for(const i of this._snippets){const n=i.move(e);t.push(...n)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const e=this._editor.getSelections();if(e.length{e.push(...n.get(t))}))}e.sort(Un.compareRangesUsingStarts);for(const[i,n]of t)if(n.length===e.length){n.sort(Un.compareRangesUsingStarts);for(let o=0;o0}};c8=o8=s8([r8(3,Lg)],c8);var d8,h8=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},u8=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const g8={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let m8=d8=class{static get(e){return e.getContribution(d8.ID)}constructor(e,t,i,n,o){this._editor=e,this._logService=t,this._languageFeaturesService=i,this._languageConfigurationService=o,this._snippetListener=new gi,this._modelVersionId=-1,this._inSnippet=d8.InSnippetMode.bindTo(n),this._hasNextTabstop=d8.HasNextTabstop.bindTo(n),this._hasPrevTabstop=d8.HasPrevTabstop.bindTo(n)}dispose(){var e;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),null===(e=this._session)||void 0===e||e.dispose(),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,void 0===t?g8:{...g8,...t})}catch(i){this.cancel(),this._logService.error(i),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"")}}_doInsert(e,t){var i;if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&"string"!=typeof e&&this.cancel(),this._session?(ie("string"==typeof e),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new c8(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),null===(i=this._session)||void 0===i?void 0:i.hasChoice){const e={_debugDisplayName:"snippetChoiceCompletions",provideCompletionItems:(e,t)=>{if(!this._session||e!==this._editor.getModel()||!Wn.equals(this._editor.getPosition(),t))return;const{activeChoice:i}=this._session;if(!i||0===i.choice.options.length)return;const n=e.getValueInRange(i.range),o=Boolean(i.choice.options.find((e=>e.value===n))),s=[];for(let r=0;r{null==i||i.dispose(),n=!1},s=()=>{n||(i=this._languageFeaturesService.completionProvider.register({language:t.getLanguageId(),pattern:t.uri.fsPath,scheme:t.uri.scheme,exclusive:!0},e),this._snippetListener.add(i),n=!0)};this._choiceCompletions={provider:e,enable:s,disable:o}}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent((e=>e.isFlush&&this.cancel()))),this._snippetListener.add(this._editor.onDidChangeModel((()=>this.cancel()))),this._snippetListener.add(this._editor.onDidChangeCursorSelection((()=>this._updateState())))}}_updateState(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){var e;if(!this._session||!this._editor.hasModel())return void(this._currentChoice=void 0);const{activeChoice:t}=this._session;if(!t||!this._choiceCompletions)return null===(e=this._choiceCompletions)||void 0===e||e.disable(),void(this._currentChoice=void 0);this._currentChoice!==t.choice&&(this._currentChoice=t.choice,this._choiceCompletions.enable(),queueMicrotask((()=>{var e,t,i;e=this._editor,t=this._choiceCompletions.provider,null===(i=e.getContribution("editor.contrib.suggestController"))||void 0===i||i.triggerSuggest((new Set).add(t),void 0,!0)})))}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){var t;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,null===(t=this._session)||void 0===t||t.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){var e;null===(e=this._session)||void 0===e||e.prev(),this._updateState()}next(){var e;null===(e=this._session)||void 0===e||e.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};m8.ID="snippetController2",m8.InSnippetMode=new Qd("inSnippetMode",!1,pe("vs/editor/contrib/snippet/browser/snippetController2","inSnippetMode","Whether the editor in current in snippet mode")),m8.HasNextTabstop=new Qd("hasNextTabstop",!1,pe("vs/editor/contrib/snippet/browser/snippetController2","hasNextTabstop","Whether there is a next tab stop when in snippet mode")),m8.HasPrevTabstop=new Qd("hasPrevTabstop",!1,pe("vs/editor/contrib/snippet/browser/snippetController2","hasPrevTabstop","Whether there is a previous tab stop when in snippet mode")),m8=d8=h8([u8(1,Lh),u8(2,lf),u8(3,Zd),u8(4,Lg)],m8),zh(m8.ID,m8,4);const p8=Ph.bindToContribution(m8.get);Uh(new p8({id:"jumpToNextSnippetPlaceholder",precondition:Dd.and(m8.InSnippetMode,m8.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:JT.textInputFocus,primary:2}})),Uh(new p8({id:"jumpToPrevSnippetPlaceholder",precondition:Dd.and(m8.InSnippetMode,m8.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:JT.textInputFocus,primary:1026}})),Uh(new p8({id:"leaveSnippet",precondition:m8.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:JT.textInputFocus,primary:9,secondary:[1033]}})),Uh(new p8({id:"acceptSnippet",precondition:m8.InSnippetMode,handler:e=>e.finish()}));var f8,_8=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},b8=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};!function(e){e[e.Undo=0]="Undo",e[e.Redo=1]="Redo",e[e.AcceptWord=2]="AcceptWord",e[e.Other=3]="Other"}(f8||(f8={}));let v8=class extends mi{get isAcceptingPartially(){return this._isAcceptingPartially}constructor(e,t,i,n,o,s,r,a,l,c,d,h){let u;var g,m,p;super(),this.textModel=e,this.selectedSuggestItem=t,this.textModelVersionId=i,this._positions=n,this._debounceValue=o,this._suggestPreviewEnabled=s,this._suggestPreviewMode=r,this._inlineSuggestMode=a,this._enabled=l,this._instantiationService=c,this._commandService=d,this._languageConfigurationService=h,this._source=this._register(this._instantiationService.createInstance(D7,this.textModel,this.textModelVersionId,this._debounceValue)),this._isActive=eH(this,!1),this._forceUpdateExplicitlySignal=SH(this),this._selectedInlineCompletionId=eH(this,void 0),this._primaryPosition=oH(this,(e=>{var t;return null!==(t=this._positions.read(e)[0])&&void 0!==t?t:new Wn(1,1)})),this._isAcceptingPartially=!1,this._preserveCurrentCompletionReasons=new Set([f8.Redo,f8.Undo,f8.AcceptWord]),this._fetchInlineCompletionsPromise=(g={owner:this,createEmptyChangeSummary:()=>({preserveCurrentCompletion:!1,inlineCompletionTriggerKind:Zn.Automatic}),handleChange:(e,t)=>(e.didChange(this.textModelVersionId)&&this._preserveCurrentCompletionReasons.has(e.change)?t.preserveCurrentCompletion=!0:e.didChange(this._forceUpdateExplicitlySignal)&&(t.inlineCompletionTriggerKind=Zn.Explicit),!0)},m=(e,t)=>{if(this._forceUpdateExplicitlySignal.read(e),!(this._enabled.read(e)&&this.selectedSuggestItem.read(e)||this._isActive.read(e)))return void this._source.cancelUpdate();this.textModelVersionId.read(e);const i=this._source.suggestWidgetInlineCompletions.get(),n=this.selectedSuggestItem.read(e);if(i&&!n){const e=this._source.inlineCompletions.get();XB((t=>{(!e||i.request.versionId>e.request.versionId)&&this._source.inlineCompletions.set(i.clone(),t),this._source.clearSuggestWidgetInlineCompletions(t)}))}const o=this._primaryPosition.read(e),s={triggerKind:t.inlineCompletionTriggerKind,selectedSuggestionInfo:null==n?void 0:n.toSelectedSuggestionInfo()},r=this.selectedInlineCompletion.get(),a=t.preserveCurrentCompletion||(null==r?void 0:r.forwardStable)?r:void 0;return this._source.fetch(o,s,a)},new lH(new HB(g.owner,g.debugName,void 0),m,g.createEmptyChangeSummary,g.handleChange,void 0,null!==(p=g.equalityComparer)&&void 0!==p?p:FB)),this._filteredInlineCompletionItems=sH({owner:this,equalsFn:BB()},(e=>{const t=this._source.inlineCompletions.read(e);if(!t)return[];const i=this._primaryPosition.read(e);return t.inlineCompletions.filter((t=>t.isVisible(this.textModel,i,e)))})),this.selectedInlineCompletionIndex=oH(this,(e=>{const t=this._selectedInlineCompletionId.read(e),i=this._filteredInlineCompletionItems.read(e),n=void 0===this._selectedInlineCompletionId?-1:i.findIndex((e=>e.semanticId===t));return-1===n?(this._selectedInlineCompletionId.set(void 0,void 0),0):n})),this.selectedInlineCompletion=oH(this,(e=>this._filteredInlineCompletionItems.read(e)[this.selectedInlineCompletionIndex.read(e)])),this.activeCommands=sH({owner:this,equalsFn:BB()},(e=>{var t,i;return null!==(i=null===(t=this.selectedInlineCompletion.read(e))||void 0===t?void 0:t.inlineCompletion.source.inlineCompletions.commands)&&void 0!==i?i:[]})),this.lastTriggerKind=this._source.inlineCompletions.map(this,(e=>null==e?void 0:e.request.context.triggerKind)),this.inlineCompletionsCount=oH(this,(e=>this.lastTriggerKind.read(e)===Zn.Explicit?this._filteredInlineCompletionItems.read(e).length:void 0)),this.state=sH({owner:this,equalsFn:(e,t)=>e&&t?r7(e.ghostTexts,t.ghostTexts)&&e.inlineCompletion===t.inlineCompletion&&e.suggestItem===t.suggestItem:e===t},(e=>{var t,i;const n=this.textModel,o=this.selectedSuggestItem.read(e);if(o){const s=T7(o.toSingleTextEdit(),n),r=this._computeAugmentation(s,e);if(!this._suggestPreviewEnabled.read(e)&&!r)return;const a=null!==(t=null==r?void 0:r.edit)&&void 0!==t?t:s,l=r?r.edit.text.length-s.text.length:0,c=this._suggestPreviewMode.read(e),d=this._positions.read(e),h=[a,...S8(this.textModel,d,a)],u=h.map(((e,t)=>R7(e,n,c,d[t],l))).filter(ee);return{edits:h,primaryGhostText:null!==(i=u[0])&&void 0!==i?i:new n7(a.range.endLineNumber,[]),ghostTexts:u,inlineCompletion:null==r?void 0:r.completion,suggestItem:o}}{if(!this._isActive.read(e))return;const t=this.selectedInlineCompletion.read(e);if(!t)return;const i=t.toSingleTextEdit(e),o=this._inlineSuggestMode.read(e),s=this._positions.read(e),r=[i,...S8(this.textModel,s,i)],a=r.map(((e,t)=>R7(e,n,o,s[t],0))).filter(ee);if(!a[0])return;return{edits:r,primaryGhostText:a[0],ghostTexts:a,inlineCompletion:t,suggestItem:void 0}}})),this.ghostTexts=sH({owner:this,equalsFn:r7},(e=>{const t=this.state.read(e);if(t)return t.ghostTexts})),this.primaryGhostText=sH({owner:this,equalsFn:a7},(e=>{const t=this.state.read(e);if(t)return null==t?void 0:t.primaryGhostText})),this._register(EH(this._fetchInlineCompletionsPromise)),this._register(cH((e=>{var t,i;const n=this.state.read(e),o=null==n?void 0:n.inlineCompletion;if((null==o?void 0:o.semanticId)!==(null==u?void 0:u.semanticId)&&(u=o,o)){const e=o.inlineCompletion,n=e.source;null===(i=(t=n.provider).handleItemDidShow)||void 0===i||i.call(t,n.inlineCompletions,e.sourceInlineCompletion,e.insertText)}})))}async trigger(e){this._isActive.set(!0,e),await this._fetchInlineCompletionsPromise.get()}async triggerExplicitly(e){QB(e,(e=>{this._isActive.set(!0,e),this._forceUpdateExplicitlySignal.trigger(e)})),await this._fetchInlineCompletionsPromise.get()}stop(e){QB(e,(e=>{this._isActive.set(!1,e),this._source.clear(e)}))}_computeAugmentation(e,t){const i=this.textModel,n=this._source.suggestWidgetInlineCompletions.read(t);return function(e,t){for(const i of e){const e=t(i);if(void 0!==e)return e}}(n?n.inlineCompletions:[this.selectedInlineCompletion.read(t)].filter(ee),(n=>{let o=n.toSingleTextEdit(t);return o=T7(o,i,Un.fromPositions(o.range.getStartPosition(),e.range.getEndPosition())),y7(o,e)?{completion:n,edit:o}:void 0}))}async _deltaSelectedInlineCompletionIndex(e){await this.triggerExplicitly();const t=this._filteredInlineCompletionItems.get()||[];if(t.length>0){const i=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[i].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(e){var t;if(e.getModel()!==this.textModel)throw new ai;const i=this.state.get();if(!i||i.primaryGhostText.isEmpty()||!i.inlineCompletion)return;const n=i.inlineCompletion.toInlineCompletion(void 0);if(e.pushUndoStop(),n.snippetInfo)e.executeEdits("inlineSuggestion.accept",[cF.replace(n.range,""),...n.additionalTextEdits]),e.setPosition(n.snippetInfo.range.getStartPosition(),"inlineCompletionAccept"),null===(t=m8.get(e))||void 0===t||t.insert(n.snippetInfo.snippet,{undoStopBefore:!1});else{const t=i.edits,o=C8(t).map((e=>Vn.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",[...t.map((e=>cF.replace(e.range,e.text))),...n.additionalTextEdits]),e.setSelections(o,"inlineCompletionAccept")}n.command&&n.source.addRef(),XB((e=>{this._source.clear(e),this._isActive.set(!1,e)})),n.command&&(await this._commandService.executeCommand(n.command.id,...n.command.arguments||[]).then(void 0,Qt),n.source.removeRef())}async acceptNextWord(e){await this._acceptNext(e,((e,t)=>{const i=this.textModel.getLanguageIdAtPosition(e.lineNumber,e.column),n=this._languageConfigurationService.getLanguageConfiguration(i),o=new RegExp(n.wordDefinition.source,n.wordDefinition.flags.replace("g","")),s=t.match(o);let r=0;r=s&&void 0!==s.index?0===s.index?s[0].length:s.index:t.length;const a=/\s+/g.exec(t);return a&&void 0!==a.index&&a.index+a[0].length{const i=t.match(/\n/);return i&&void 0!==i.index?i.index+1:t.length}),1)}async _acceptNext(e,t,i){if(e.getModel()!==this.textModel)throw new ai;const n=this.state.get();if(!n||n.primaryGhostText.isEmpty()||!n.inlineCompletion)return;const o=n.primaryGhostText,s=n.inlineCompletion.toInlineCompletion(void 0);if(s.snippetInfo||s.filterText!==s.insertText)return void(await this.accept(e));const r=o.parts[0],a=new Wn(o.lineNumber,r.column),l=r.text,c=t(a,l);if(c===l.length&&1===o.parts.length)return void this.accept(e);const d=l.substring(0,c),h=this._positions.get(),u=h[0];s.source.addRef();try{this._isAcceptingPartially=!0;try{e.pushUndoStop();const t=Un.fromPositions(u,a),i=e.getModel().getValueInRange(t)+d,n=new Qm(t,i),o=[n,...S8(this.textModel,h,n)],s=C8(o).map((e=>Vn.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",o.map((e=>cF.replace(e.range,e.text)))),e.setSelections(s,"inlineCompletionPartialAccept")}finally{this._isAcceptingPartially=!1}if(s.source.provider.handlePartialAccept){const t=Un.fromPositions(s.range.getStartPosition(),jm.ofText(d).addToPosition(a)),n=e.getModel().getValueInRange(t,1);s.source.provider.handlePartialAccept(s.source.inlineCompletions,s.sourceInlineCompletion,n.length,{kind:i})}}finally{s.source.removeRef()}}handleSuggestAccepted(e){var t,i;const n=T7(e.toSingleTextEdit(),this.textModel),o=this._computeAugmentation(n,void 0);if(!o)return;const s=o.completion.inlineCompletion;null===(i=(t=s.source.provider).handlePartialAccept)||void 0===i||i.call(t,s.source.inlineCompletions,s.sourceInlineCompletion,n.text.length,{kind:2})}};function S8(e,t,i){if(1===t.length)return[];const n=t[0],o=t.slice(1),s=i.range.getStartPosition(),r=i.range.getEndPosition(),a=e.getValueInRange(Un.fromPositions(n,r)),l=h7(n,s);if(l.lineNumber<1)return Jt(new ai(`positionWithinTextEdit line number should be bigger than 0.\n\t\t\tInvalid subtraction between ${n.toString()} and ${s.toString()}`)),[];const c=function(e,t){let i="";const n=function(e){var t;const i=[],n=e.split(/(\r\n|\r|\n)/);for(let o=0;o{const i=(n=h7(t,s),o=r,new Wn(n.lineNumber+o.lineNumber-1,1===o.lineNumber?n.column+o.column-1:o.column));var n,o;const l=e.getValueInRange(Un.fromPositions(t,i)),d=Ps(a,l),h=Un.fromPositions(t,t.delta(0,d));return new Qm(h,c)}))}function C8(e){const t=Y.createSortPermutation(e,((e,t)=>Un.compareRangesUsingStarts(e.range,t.range))),i=new Jm(t.apply(e)).getNewRanges();return t.inverse().apply(i).map((e=>e.getEndPosition()))}v8=_8([b8(9,td),b8(10,md),b8(11,Lg)],v8);var E8,w8=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},T8=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class y8{constructor(e){this.name=e}select(e,t,i){if(0===i.length)return 0;const n=i[0].score[0];for(let o=0;othis._saveState()),500),this._disposables.add(e.onWillSaveState((e=>{e.reason===SW.SHUTDOWN&&this._saveState()})))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,i){this._withStrategy(e,t).memorize(e,t,i),this._persistSoon.schedule()}select(e,t,i){return this._withStrategy(e,t).select(e,t,i)}_withStrategy(e,t){var i;const n=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:e.getLanguageIdAtPosition(t.lineNumber,t.column),resource:e.uri});if((null===(i=this._strategy)||void 0===i?void 0:i.name)!==n){this._saveState();const e=E8._strategyCtors.get(n)||R8;this._strategy=new e;try{const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=this._storageService.get(`${E8._storagePrefix}/${n}`,e);t&&this._strategy.fromJSON(JSON.parse(t))}catch(o){}}return this._strategy}_saveState(){if(this._strategy){const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=JSON.stringify(this._strategy);this._storageService.store(`${E8._storagePrefix}/${this._strategy.name}`,t,e,1)}}};L8._strategyCtors=new Map([["recentlyUsedByPrefix",class extends y8{constructor(){super("recentlyUsedByPrefix"),this._trie=GF.forStrings(),this._seq=0}memorize(e,t,i){const{word:n}=e.getWordUntilPosition(t),o=`${e.getLanguageId()}/${n}`;this._trie.set(o,{type:i.completion.kind,insertText:i.completion.insertText,touch:this._seq++})}select(e,t,i){const{word:n}=e.getWordUntilPosition(t);if(!n)return super.select(e,t,i);const o=`${e.getLanguageId()}/${n}`;let s=this._trie.get(o);if(s||(s=this._trie.findSubstr(o)),s)for(let r=0;re.push([i,t]))),e.sort(((e,t)=>-(e[1].touch-t[1].touch))).forEach(((e,t)=>e[1].touch=t)),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(const[t,i]of e)i.type="number"==typeof i.type?i.type:Qn.fromString(i.type),this._trie.set(t,i)}}}],["recentlyUsed",class extends y8{constructor(){super("recentlyUsed"),this._cache=new um(300,.66),this._seq=0}memorize(e,t,i){const n=`${e.getLanguageId()}/${i.textLabel}`;this._cache.set(n,{touch:this._seq++,type:i.completion.kind,insertText:i.completion.insertText})}select(e,t,i){if(0===i.length)return 0;const n=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(n))return super.select(e,t,i);const o=i[0].score[0];let s=-1,r=-1;for(let a=0;ar&&n.type===i[a].completion.kind&&n.insertText===i[a].completion.insertText&&(r=n.touch,s=a),i[a].completion.preselect)return a}return-1!==s?s:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();for(const[t,i]of e)i.touch=0,i.type="number"==typeof i.type?i.type:Qn.fromString(i.type),this._cache.set(t,i);this._seq=this._cache.size}}],["first",R8]]),L8._storagePrefix="suggest/memories",L8=E8=w8([T8(0,vW),T8(1,$u)],L8);const I8=id("ISuggestMemories");ng(I8,L8,1);var A8,N8=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},k8=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let D8=A8=class{constructor(e,t){this._editor=e,this._enabled=!1,this._ckAtEnd=A8.AtEnd.bindTo(t),this._configListener=this._editor.onDidChangeConfiguration((e=>e.hasChanged(123)&&this._update())),this._update()}dispose(){var e;this._configListener.dispose(),null===(e=this._selectionListener)||void 0===e||e.dispose(),this._ckAtEnd.reset()}_update(){const e="on"===this._editor.getOption(123);if(this._enabled!==e)if(this._enabled=e,this._enabled){const e=()=>{if(!this._editor.hasModel())return void this._ckAtEnd.set(!1);const e=this._editor.getModel(),t=this._editor.getSelection(),i=e.getWordAtPosition(t.getStartPosition());i?this._ckAtEnd.set(i.endColumn===t.getStartPosition().column):this._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(e),e()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};D8.AtEnd=new Qd("atEndOfWord",!1),D8=A8=N8([k8(1,Zd)],D8);var O8,x8=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},M8=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let P8=O8=class{constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=O8.OtherSuggestions.bindTo(t)}dispose(){this.reset()}reset(){var e;this._ckOtherSuggestions.reset(),null===(e=this._listener)||void 0===e||e.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:e,index:t},i){0!==e.items.length&&O8._moveIndex(!0,e,t)!==t?(this._acceptNext=i,this._model=e,this._index=t,this._listener=this._editor.onDidChangeCursorPosition((()=>{this._ignore||this.reset()})),this._ckOtherSuggestions.set(!0)):this.reset()}static _moveIndex(e,t,i){let n=i;for(let o=t.items.length;o>0&&(n=(n+t.items.length+(e?1:-1))%t.items.length,n!==i)&&t.items[n].completion.additionalTextEdits;o--);return n}next(){this._move(!0)}prev(){this._move(!1)}_move(e){if(this._model)try{this._ignore=!0,this._index=O8._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};P8.OtherSuggestions=new Qd("hasOtherSuggestions",!1),P8=O8=x8([M8(1,Zd)],P8);class F8{constructor(e,t,i,n){this._disposables=new gi,this._disposables.add(i.onDidSuggest((e=>{0===e.completionModel.items.length&&this.reset()}))),this._disposables.add(i.onDidCancel((e=>{this.reset()}))),this._disposables.add(t.onDidShow((()=>this._onItem(t.getFocusedItem())))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType((o=>{if(this._active&&!t.isFrozen()&&0!==i.state){const t=o.charCodeAt(o.length-1);this._active.acceptCharacters.has(t)&&e.getOption(0)&&n(this._active.item)}})))}_onItem(e){if(!e||!L(e.item.completion.commitCharacters))return void this.reset();if(this._active&&this._active.item.item===e.item)return;const t=new Zg;for(const i of e.item.completion.commitCharacters)i.length>0&&t.add(i.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}class B8{async provideSelectionRanges(e,t){const i=[];for(const n of t){const t=[];i.push(t);const o=new Map;await new Promise((t=>B8._bracketsRightYield(t,0,e,n,o))),await new Promise((i=>B8._bracketsLeftYield(i,0,e,n,o,t)))}return i}static _bracketsRightYield(e,t,i,n,o){const s=new Map,r=Date.now();for(;;){if(t>=B8._maxRounds){e();break}if(!n){e();break}const a=i.bracketPairs.findNextBracket(n);if(!a){e();break}if(Date.now()-r>B8._maxDuration){setTimeout((()=>B8._bracketsRightYield(e,t+1,i,n,o)));break}if(a.bracketInfo.isOpeningBracket){const e=a.bracketInfo.bracketText,t=s.has(e)?s.get(e):0;s.set(e,t+1)}else{const e=a.bracketInfo.getOpeningBrackets()[0].bracketText;let t=s.has(e)?s.get(e):0;if(t-=1,s.set(e,Math.max(0,t)),t<0){let t=o.get(e);t||(t=new st,o.set(e,t)),t.push(a.range)}}n=a.range.getEndPosition()}}static _bracketsLeftYield(e,t,i,n,o,s){const r=new Map,a=Date.now();for(;;){if(t>=B8._maxRounds&&0===o.size){e();break}if(!n){e();break}const l=i.bracketPairs.findPrevBracket(n);if(!l){e();break}if(Date.now()-a>B8._maxDuration){setTimeout((()=>B8._bracketsLeftYield(e,t+1,i,n,o,s)));break}if(l.bracketInfo.isOpeningBracket){const e=l.bracketInfo.bracketText;let t=r.has(e)?r.get(e):0;if(t-=1,r.set(e,Math.max(0,t)),t<0){const t=o.get(e);if(t){const n=t.shift();0===t.size&&o.delete(e);const r=Un.fromPositions(l.range.getEndPosition(),n.getStartPosition()),a=Un.fromPositions(l.range.getStartPosition(),n.getEndPosition());s.push({range:r}),s.push({range:a}),B8._addBracketLeading(i,a,s)}}}else{const e=l.bracketInfo.getOpeningBrackets()[0].bracketText,t=r.has(e)?r.get(e):0;r.set(e,t+1)}n=l.range.getStartPosition()}}static _addBracketLeading(e,t,i){if(t.startLineNumber===t.endLineNumber)return;const n=t.startLineNumber,o=e.getLineFirstNonWhitespaceColumn(n);0!==o&&o!==t.startColumn&&(i.push({range:Un.fromPositions(new Wn(n,o),t.getEndPosition())}),i.push({range:Un.fromPositions(new Wn(n,1),t.getEndPosition())}));const s=n-1;if(s>0){const n=e.getLineFirstNonWhitespaceColumn(s);n===t.startColumn&&n!==e.getLineLastNonWhitespaceColumn(s)&&(i.push({range:Un.fromPositions(new Wn(s,n),t.getEndPosition())}),i.push({range:Un.fromPositions(new Wn(s,1),t.getEndPosition())}))}}}B8._maxDuration=30,B8._maxRounds=2;class H8{static async create(e,t){if(!t.getOption(118).localityBonus)return H8.None;if(!t.hasModel())return H8.None;const i=t.getModel(),n=t.getPosition();if(!e.canComputeWordRanges(i.uri))return H8.None;const[o]=await(new B8).provideSelectionRanges(i,[n]);if(0===o.length)return H8.None;const s=await e.computeWordRanges(i.uri,o[0].range);if(!s)return H8.None;const r=i.getWordUntilPosition(n);return delete s[r.word],new class extends H8{distance(e,i){if(!n.equals(t.getPosition()))return 0;if(17===i.kind)return 2<<20;const r="string"==typeof i.label?i.label:i.label.label,a=s[r];if(R(a))return 2<<20;const l=v(a,Un.fromPositions(e),Un.compareRangesUsingStarts),c=l>=0?a[l]:a[Math.max(0,~l-1)];let d=o.length;for(const t of o){if(!Un.containsRange(t.range,c))break;d-=1}return d}}}}H8.None=new class extends H8{distance(){return 0}};let W8=class{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}};class U8{constructor(e,t,i,n,o,s,r=OM.default,a=void 0){this.clipboardText=a,this._snippetCompareFn=U8._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=n,this._options=o,this._refilterKind=1,this._lineContext=i,this._fuzzyScoreOptions=r,"top"===s?this._snippetCompareFn=U8._compareCompletionItemsSnippetsUp:"bottom"===s&&(this._snippetCompareFn=U8._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta0&&i[0].container.incomplete&&e.add(t);return e}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){0!==this._refilterKind&&this._createCachedState()}_createCachedState(){this._itemsByProvider=new Map;const e=[],{leadingLineContent:t,characterCountDelta:i}=this._lineContext;let n="",o="";const s=1===this._refilterKind?this._items:this._filteredItems,r=[],a=!this._options.filterGraceful||s.length>2e3?xM:PM;for(let l=0;l=u)c.score=DM.Default;else if("string"==typeof c.completion.filterText){const t=a(n,o,e,c.completion.filterText,c.filterTextLow,0,this._fuzzyScoreOptions);if(!t)continue;0===As(c.completion.filterText,c.textLabel)?c.score=t:(c.score=vM(n,o,e,c.textLabel,c.labelLow,0),c.score[0]=t[0])}else{const t=a(n,o,e,c.textLabel,c.labelLow,0,this._fuzzyScoreOptions);if(!t)continue;c.score=t}}c.idx=l,c.distance=this._wordDistance.distance(c.position,c.completion),r.push(c),e.push(c.textLabel.length)}this._filteredItems=r.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?S(e.length-.85,e,((e,t)=>e-t)):0}}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]t.distance?1:e.idxt.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return U8._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return U8._compareCompletionItems(e,t)}}var V8,G8=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},z8=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class K8{static shouldAutoTrigger(e){if(!e.hasModel())return!1;const t=e.getModel(),i=e.getPosition();t.tokenization.tokenizeIfCheap(i.lineNumber);const n=t.getWordAtPosition(i);return!(!n||n.endColumn!==i.column&&n.startColumn+1!==i.column||!isNaN(Number(n.word)))}constructor(e,t,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.triggerOptions=i}}let Y8=V8=class{constructor(e,t,i,n,o,s,r,a,l){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=n,this._logService=o,this._contextKeyService=s,this._configurationService=r,this._languageFeaturesService=a,this._envService=l,this._toDispose=new gi,this._triggerCharacterListener=new gi,this._triggerQuickSuggest=new Gr,this._triggerState=void 0,this._completionDisposables=new gi,this._onDidCancel=new Ri,this._onDidTrigger=new Ri,this._onDidSuggest=new Ri,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new Vn(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeModelLanguage((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeConfiguration((()=>{this._updateTriggerCharacters()}))),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange((()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()})));let c=!1;this._toDispose.add(this._editor.onDidCompositionStart((()=>{c=!0}))),this._toDispose.add(this._editor.onDidCompositionEnd((()=>{c=!1,this._onCompositionEnd()}))),this._toDispose.add(this._editor.onDidChangeCursorSelection((e=>{c||this._onCursorChange(e)}))),this._toDispose.add(this._editor.onDidChangeModelContent((()=>{c||void 0===this._triggerState||this._refilterCompletionItems()}))),this._updateTriggerCharacters()}dispose(){di(this._triggerCharacterListener),di([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(91)||!this._editor.hasModel()||!this._editor.getOption(121))return;const e=new Map;for(const i of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(const t of i.triggerCharacters||[]){let n=e.get(t);n||(n=new Set,n.add(void 0),e.set(t,n)),n.add(i)}const t=t=>{var i;if(!function(e,t,i){if(!Boolean(t.getContextKeyValue("inlineSuggestionVisible")))return!0;const n=t.getContextKeyValue(i7.suppressSuggestions.key);return void 0!==n?!n:!e.getOption(62).suppressSuggestions}(this._editor,this._contextKeyService,this._configurationService))return;if(K8.shouldAutoTrigger(this._editor))return;if(!t){const e=this._editor.getPosition();t=this._editor.getModel().getLineContent(e.lineNumber).substr(0,e.column-1)}let n="";Hs(t.charCodeAt(t.length-1))?Bs(t.charCodeAt(t.length-2))&&(n=t.substr(t.length-2)):n=t.charAt(t.length-1);const o=e.get(n);if(o){const e=new Map;if(this._completionModel)for(const[t,i]of this._completionModel.getItemsByProvider())o.has(t)||e.set(t,i);this.trigger({auto:!0,triggerKind:1,triggerCharacter:n,retrigger:Boolean(this._completionModel),clipboardText:null===(i=this._completionModel)||void 0===i?void 0:i.clipboardText,completionOptions:{providerFilter:o,providerItemsToReuse:e}})}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd((()=>t())))}get state(){return this._triggerState?this._triggerState.auto?2:1:0}cancel(e=!1){var t;void 0!==this._triggerState&&(this._triggerQuickSuggest.cancel(),null===(t=this._requestToken)||void 0===t||t.cancel(),this._requestToken=void 0,this._triggerState=void 0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){void 0!==this._triggerState&&(this._editor.hasModel()&&this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.trigger({auto:this._triggerState.auto,retrigger:!0}):this.cancel())}_onCursorChange(e){if(!this._editor.hasModel())return;const t=this._currentSelection;this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason&&3!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source?this.cancel():void 0===this._triggerState&&0===e.reason?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():void 0!==this._triggerState&&3===e.reason&&this._refilterCompletionItems()}_onCompositionEnd(){void 0===this._triggerState?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){var e;Y7.isAllOff(this._editor.getOption(89))||this._editor.getOption(118).snippetsPreventQuickSuggestions&&(null===(e=m8.get(this._editor))||void 0===e?void 0:e.isInSnippet())||(this.cancel(),this._triggerQuickSuggest.cancelAndSet((()=>{if(void 0!==this._triggerState)return;if(!K8.shouldAutoTrigger(this._editor))return;if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;const e=this._editor.getModel(),t=this._editor.getPosition(),i=this._editor.getOption(89);if(!Y7.isAllOff(i)){if(!Y7.isAllOn(i)){e.tokenization.tokenizeIfCheap(t.lineNumber);const n=e.tokenization.getLineTokens(t.lineNumber),o=n.getStandardTokenType(n.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("on"!==Y7.valueFor(i,o))return}(function(e,t,i){if(!Boolean(t.getContextKeyValue(i7.inlineSuggestionVisible.key)))return!0;const n=t.getContextKeyValue(i7.suppressSuggestions.key);return void 0!==n?!n:!e.getOption(62).suppressSuggestions})(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(e)&&this.trigger({auto:!0})}}),this._editor.getOption(90)))}_refilterCompletionItems(){ie(this._editor.hasModel()),ie(void 0!==this._triggerState);const e=this._editor.getModel(),t=this._editor.getPosition(),i=new K8(e,t,{...this._triggerState,refilter:!0});this._onNewContext(i)}trigger(e){var t,i,n,o,s,r;if(!this._editor.hasModel())return;const a=this._editor.getModel(),l=new K8(a,this._editor.getPosition(),e);this.cancel(e.retrigger),this._triggerState=e,this._onDidTrigger.fire({auto:e.auto,shy:null!==(t=e.shy)&&void 0!==t&&t,position:this._editor.getPosition()}),this._context=l;let c={triggerKind:null!==(i=e.triggerKind)&&void 0!==i?i:0};e.triggerCharacter&&(c={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new Fi;let d=1;switch(this._editor.getOption(112)){case"top":d=0;break;case"bottom":d=2}const{itemKind:h,showDeprecated:u}=V8.createSuggestFilter(this._editor),g=new U7(d,null!==(o=null===(n=e.completionOptions)||void 0===n?void 0:n.kindFilter)&&void 0!==o?o:h,null===(s=e.completionOptions)||void 0===s?void 0:s.providerFilter,null===(r=e.completionOptions)||void 0===r?void 0:r.providerItemsToReuse,u),m=H8.create(this._editorWorkerService,this._editor),p=G7(this._languageFeaturesService.completionProvider,a,this._editor.getPosition(),g,c,this._requestToken.token);Promise.all([p,m]).then((async([t,i])=>{var n;if(null===(n=this._requestToken)||void 0===n||n.dispose(),!this._editor.hasModel())return;let o=null==e?void 0:e.clipboardText;if(!o&&t.needsClipboard&&(o=await this._clipboardService.readText()),void 0===this._triggerState)return;const s=this._editor.getModel(),r=new K8(s,this._editor.getPosition(),e),a={...OM.default,firstMatchCanBeWeak:!this._editor.getOption(118).matchOnWordStartOnly};if(this._completionModel=new U8(t.items,this._context.column,{leadingLineContent:r.leadingLineContent,characterCountDelta:r.column-this._context.column},i,this._editor.getOption(118),this._editor.getOption(112),a,o),this._completionDisposables.add(t.disposable),this._onNewContext(r),this._reportDurationsTelemetry(t.durations),!this._envService.isBuilt||this._envService.isExtensionDevelopment)for(const e of t.items)e.isInvalid&&this._logService.warn(`[suggest] did IGNORE invalid completion item from ${e.provider._debugDisplayName}`,e.completion)})).catch(Jt)}_reportDurationsTelemetry(e){this._telemetryGate++%230==0&&setTimeout((()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)}))}static createSuggestFilter(e){const t=new Set;"none"===e.getOption(112)&&t.add(27);const i=e.getOption(118);return i.showMethods||t.add(0),i.showFunctions||t.add(1),i.showConstructors||t.add(2),i.showFields||t.add(3),i.showVariables||t.add(4),i.showClasses||t.add(5),i.showStructs||t.add(6),i.showInterfaces||t.add(7),i.showModules||t.add(8),i.showProperties||t.add(9),i.showEvents||t.add(10),i.showOperators||t.add(11),i.showUnits||t.add(12),i.showValues||t.add(13),i.showConstants||t.add(14),i.showEnums||t.add(15),i.showEnumMembers||t.add(16),i.showKeywords||t.add(17),i.showWords||t.add(18),i.showColors||t.add(19),i.showFiles||t.add(20),i.showReferences||t.add(21),i.showColors||t.add(22),i.showFolders||t.add(23),i.showTypeParameters||t.add(24),i.showSnippets||t.add(27),i.showUsers||t.add(25),i.showIssues||t.add(26),{itemKind:t,showDeprecated:i.showDeprecated}}_onNewContext(e){if(this._context)if(e.lineNumber===this._context.lineNumber)if(ys(e.leadingLineContent)===ys(this._context.leadingLineContent)){if(e.columnthis._context.leadingWord.startColumn){if(K8.shouldAutoTrigger(this._editor)&&this._context){const e=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:e}})}}else if(e.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&0!==e.leadingWord.word.length){const e=new Map,t=new Set;for(const[i,n]of this._completionModel.getItemsByProvider())n.length>0&&n[0].container.incomplete?t.add(i):e.set(i,n);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:t,providerItemsToReuse:e}})}else{const t=this._completionModel.lineContext;let i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){const n=K8.shouldAutoTrigger(this._editor);if(!this._context)return void this.cancel();if(n&&this._context.leadingWord.endColumn0,i&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:e.triggerOptions,isFrozen:i})}}else this.cancel();else this.cancel()}};Y8=V8=G8([z8(1,hU),z8(2,WY),z8(3,Rh),z8(4,Lh),z8(5,Zd),z8(6,$u),z8(7,lf),z8(8,wO)],Y8);class q8{constructor(e,t){this._disposables=new gi,this._lastOvertyped=[],this._locked=!1,this._disposables.add(e.onWillType((()=>{if(this._locked||!e.hasModel())return;const t=e.getSelections(),i=t.length;let n=!1;for(let e=0;eq8._maxSelectionLength)return;this._lastOvertyped[e]={value:o.getValueInRange(i),multiline:i.startLineNumber!==i.endLineNumber}}}))),this._disposables.add(t.onDidTrigger((e=>{this._locked=!0}))),this._disposables.add(t.onDidCancel((e=>{this._locked=!1})))}getLastOvertypedInfo(e){if(e>=0&&e=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},j8=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let X8=class e extends HW{updateLabel(){const t=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!t)return super.updateLabel();this.label&&(this.label.textContent=pe("vs/editor/contrib/suggest/browser/suggestWidgetStatus",{key:"content",comment:["A label","A keybinding"]},"{0} ({1})",this._action.label,e.symbolPrintEnter(t)))}static symbolPrintEnter(e){var t;return null===(t=e.getLabel())||void 0===t?void 0:t.replace(/\benter\b/gi,"⏎")}},J8=class{constructor(e,t,i,n,o){this._menuId=t,this._menuService=n,this._contextKeyService=o,this._menuDisposables=new gi,this.element=vc(e,yc(".suggest-status-bar"));const s=e=>e instanceof wh?i.createInstance(X8,e,void 0):void 0;this._leftActions=new zW(this.element,{actionViewItemProvider:s}),this._rightActions=new zW(this.element,{actionViewItemProvider:s}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this._leftActions.dispose(),this._rightActions.dispose(),this.element.remove()}show(){const e=this._menuService.createMenu(this._menuId,this._contextKeyService),t=()=>{const t=[],i=[];for(const[n,o]of e.getActions())"left"===n?t.push(...o):i.push(...o);this._leftActions.clear(),this._leftActions.push(t),this._rightActions.clear(),this._rightActions.push(i)};this._menuDisposables.add(e.onDidChange((()=>t()))),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};J8=$8([j8(2,td),j8(3,vh),j8(4,Zd)],J8);var Q8=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Z8=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};function eee(e){return!!e&&Boolean(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}let tee=class{constructor(e,t){this._editor=e,this._onDidClose=new Ri,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new Ri,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new gi,this._renderDisposeable=new gi,this._borderWidth=1,this._size=new Fl(330,0),this.domNode=yc(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(IP,{editor:e}),this._body=yc(".body"),this._scrollbar=new wE(this._body,{alwaysConsumeMouseWheel:!0}),vc(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=vc(this._body,yc(".header")),this._close=vc(this._header,yc("span"+gd.asCSSSelector(Yn.close))),this._close.title=pe("vs/editor/contrib/suggest/browser/suggestWidgetDetails","details.close","Close"),this._type=vc(this._header,yc("p.type")),this._docs=vc(this._body,yc("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._configureFont()})))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const e=this._editor.getOptions(),t=e.get(50),i=t.getMassagedFontFamily(),n=e.get(119)||t.fontSize,o=e.get(120)||t.lineHeight,s=t.fontWeight,r=`${n}px`,a=`${o}px`;this.domNode.style.fontSize=r,this.domNode.style.lineHeight=""+o/n,this.domNode.style.fontWeight=s,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=a,this._close.style.width=a}getLayoutInfo(){const e=this._editor.getOption(120)||this._editor.getOption(50).lineHeight,t=this._borderWidth;return{lineHeight:e,borderWidth:t,borderHeight:2*t,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=pe("vs/editor/contrib/suggest/browser/suggestWidgetDetails","loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,2*this.getLayoutInfo().lineHeight),this._onDidChangeContents.fire(this)}renderItem(e,t){var i,n;this._renderDisposeable.clear();let{detail:o,documentation:s}=e.completion;if(t){let t="";t+=`score: ${e.score[0]}\n`,t+=`prefix: ${null!==(i=e.word)&&void 0!==i?i:"(no prefix)"}\n`,t+=`word: ${e.completion.filterText?e.completion.filterText+" (filterText)":e.textLabel}\n`,t+=`distance: ${e.distance} (localityBonus-setting)\n`,t+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"}\n`,t+=`commit_chars: ${null===(n=e.completion.commitCharacters)||void 0===n?void 0:n.join("")}\n`,s=(new YM).appendCodeblock("empty",t),o=`Provider: ${e.provider._debugDisplayName}`}if(t||eee(e)){if(this.domNode.classList.remove("no-docs","no-type"),o){const e=o.length>1e5?`${o.substr(0,1e5)}…`:o;this._type.textContent=e,this._type.title=e,Rc(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gim.test(e))}else wl(this._type),this._type.title="",Lc(this._type),this.domNode.classList.add("no-type");if(wl(this._docs),"string"==typeof s)this._docs.classList.remove("markdown-docs"),this._docs.textContent=s;else if(s){this._docs.classList.add("markdown-docs"),wl(this._docs);const e=this._markdownRenderer.render(s);this._docs.appendChild(e.element),this._renderDisposeable.add(e),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync((()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)})))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=e=>{e.preventDefault(),e.stopPropagation()},this._close.onclick=e=>{e.preventDefault(),e.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}else this.clearContents()}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get isEmpty(){return this.domNode.classList.contains("no-docs")}get size(){return this._size}layout(e,t){const i=new Fl(e,t);var n,o,s;Fl.equals(i,this._size)||(this._size=i,n=this.domNode,s=t,"number"==typeof(o=e)&&(n.style.width=`${o}px`),"number"==typeof s&&(n.style.height=`${s}px`)),this._scrollbar.scanDomNode()}scrollDown(e=8){this._body.scrollTop+=e}scrollUp(e=8){this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};tee=Q8([Z8(1,td)],tee);class iee{constructor(e,t){let i,n;this.widget=e,this._editor=t,this.allowEditorOverflow=!0,this._disposables=new gi,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new l2,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let o=0,s=0;this._disposables.add(this._resizable.onDidWillResize((()=>{i=this._topLeft,n=this._resizable.size}))),this._disposables.add(this._resizable.onDidResize((e=>{if(i&&n){this.widget.layout(e.dimension.width,e.dimension.height);let t=!1;e.west&&(s=n.width-e.dimension.width,t=!0),e.north&&(o=n.height-e.dimension.height,t=!0),t&&this._applyTopLeft({top:i.top+o,left:i.left+s})}e.done&&(i=void 0,n=void 0,o=0,s=0,this._userSize=e.dimension)}))),this._disposables.add(this.widget.onDidChangeContents((()=>{var e;this._anchorBox&&this._placeAtAnchor(this._anchorBox,null!==(e=this._userSize)&&void 0!==e?e:this.widget.size,this._preferAlignAtTop)})))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return this._topLeft?{preference:this._topLeft}:null}show(){this._added||(this._editor.addOverlayWidget(this),this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){var i;const n=e.getBoundingClientRect();this._anchorBox=n,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,null!==(i=this._userSize)&&void 0!==i?i:this.widget.size,t)}_placeAtAnchor(e,t,i){var n;const o=Ml(this.getDomNode().ownerDocument.body),s=this.widget.getLayoutInfo(),r=new Fl(220,2*s.lineHeight),a=e.top,l=function(){const i=o.width-(e.left+e.width+s.borderWidth+s.horizontalPadding),n=-s.borderWidth+e.left+e.width,l=new Fl(i,o.height-e.top-s.borderHeight-s.verticalPadding),c=l.with(void 0,e.top+e.height-s.borderHeight-s.verticalPadding);return{top:a,left:n,fit:i-t.width,maxSizeTop:l,maxSizeBottom:c,minSize:r.with(Math.min(i,r.width))}}(),c=[l,function(){const i=e.left-s.borderWidth-s.horizontalPadding,n=Math.max(s.horizontalPadding,e.left-t.width-s.borderWidth),l=new Fl(i,o.height-e.top-s.borderHeight-s.verticalPadding),c=l.with(void 0,e.top+e.height-s.borderHeight-s.verticalPadding);return{top:a,left:n,fit:i-t.width,maxSizeTop:l,maxSizeBottom:c,minSize:r.with(Math.min(i,r.width))}}(),function(){const i=e.left,n=-s.borderWidth+e.top+e.height,a=new Fl(e.width-s.borderHeight,o.height-e.top-e.height-s.verticalPadding);return{top:n,left:i,fit:a.height-t.height,maxSizeBottom:a,maxSizeTop:a,minSize:r.with(a.width)}}()],d=null!==(n=c.find((e=>e.fit>=0)))&&void 0!==n?n:c.sort(((e,t)=>t.fit-e.fit))[0],h=e.top+e.height-s.borderHeight;let u,g=t.height;const m=Math.max(d.maxSizeTop.height,d.maxSizeBottom.height);let p;g>m&&(g=m),i?g<=d.maxSizeTop.height?(u=!0,p=d.maxSizeTop):(u=!1,p=d.maxSizeBottom):g<=d.maxSizeBottom.height?(u=!1,p=d.maxSizeBottom):(u=!0,p=d.maxSizeTop);let{top:f,left:_}=d;!u&&g>e.height&&(f=h-g);const b=this._editor.getDomNode();if(b){const e=b.getBoundingClientRect();f-=e.top,_-=e.left}this._applyTopLeft({left:_,top:f}),this._resizable.enableSashes(!u,d===l,u,d!==l),this._resizable.minSize=d.minSize,this._resizable.maxSize=p,this._resizable.layout(g,Math.min(p.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this._editor.layoutOverlayWidget(this)}}var nee;!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(nee||(nee={}));const oee=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function see(e,t,i,n,o){if(o)return[`codicon-${o.id}`,"predefined-file-icon"];const s=n===nee.ROOT_FOLDER?["rootfolder-icon"]:n===nee.FOLDER?["folder-icon"]:["file-icon"];if(i){let o;if(i.scheme===Ja.data)o=XI.parseMetaData(i).get(XI.META_DATA_LABEL);else{const e=i.path.match(oee);e?(o=ree(e[2].toLowerCase()),e[1]&&s.push(`${ree(e[1].toLowerCase())}-name-dir-icon`)):o=ree(i.authority.toLowerCase())}if(n===nee.ROOT_FOLDER)s.push(`${o}-root-name-folder-icon`);else if(n===nee.FOLDER)s.push(`${o}-name-folder-icon`);else{if(o){if(s.push(`${o}-name-file-icon`),s.push("name-file-icon"),o.length<=255){const e=o.split(".");for(let t=1;t=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},cee=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};function dee(e){return`suggest-aria-id:${e}`}const hee=sY("suggest-more-info",Yn.chevronRight,pe("vs/editor/contrib/suggest/browser/suggestWidgetRenderer","suggestMoreInfoIcon","Icon for more information in the suggest widget.")),uee=new(aee=class{extract(e,t){if(e.textLabel.match(aee._regexStrict))return t[0]=e.textLabel,!0;if(e.completion.detail&&e.completion.detail.match(aee._regexStrict))return t[0]=e.completion.detail,!0;if(e.completion.documentation){const i="string"==typeof e.completion.documentation?e.completion.documentation:e.completion.documentation.value,n=aee._regexRelaxed.exec(i);if(n&&(0===n.index||n.index+n[0].length===i.length))return t[0]=n[0],!0}return!1}},aee._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/,aee._regexStrict=new RegExp(`^${aee._regexRelaxed.source}$`,"i"),aee);let gee=class{constructor(e,t,i,n){this._editor=e,this._modelService=t,this._languageService=i,this._themeService=n,this._onDidToggleDetails=new Ri,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){const t=new gi,i=e;i.classList.add("show-file-icons");const n=vc(e,yc(".icon")),o=vc(n,yc("span.colorspan")),s=vc(e,yc(".contents")),r=vc(s,yc(".main")),a=vc(r,yc(".icon-label.codicon")),l=vc(r,yc("span.left")),c=vc(r,yc("span.right")),d=new Kz(l,{supportHighlights:!0,supportIcons:!0});t.add(d);const h=vc(l,yc("span.signature-label")),u=vc(l,yc("span.qualifier-label")),g=vc(c,yc("span.details-label")),m=vc(c,yc("span.readMore"+gd.asCSSSelector(hee)));return m.title=pe("vs/editor/contrib/suggest/browser/suggestWidgetRenderer","readMore","Read More"),{root:i,left:l,right:c,icon:n,colorspan:o,iconLabel:d,iconContainer:a,parametersLabel:h,qualifierLabel:u,detailsLabel:g,readMore:m,disposables:t,configureFont:()=>{const e=this._editor.getOptions(),t=e.get(50),o=t.getMassagedFontFamily(),s=t.fontFeatureSettings,a=e.get(119)||t.fontSize,l=e.get(120)||t.lineHeight,c=t.fontWeight,d=`${a}px`,h=`${l}px`,u=`${t.letterSpacing}px`;i.style.fontSize=d,i.style.fontWeight=c,i.style.letterSpacing=u,r.style.fontFamily=o,r.style.fontFeatureSettings=s,r.style.lineHeight=h,n.style.height=h,n.style.width=h,m.style.height=h,m.style.width=h}}}renderElement(e,t,i){i.configureFont();const{completion:n}=e;i.root.id=dee(t),i.colorspan.style.backgroundColor="";const o={labelEscapeNewLines:!0,matches:SM(e.score)},s=[];if(19===n.kind&&uee.extract(e,s))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=s[0];else if(20===n.kind&&this._themeService.getFileIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";const t=see(this._modelService,this._languageService,An.from({scheme:"fake",path:e.textLabel}),nee.FILE),s=see(this._modelService,this._languageService,An.from({scheme:"fake",path:n.detail}),nee.FILE);o.extraClasses=t.length>s.length?t:s}else 23===n.kind&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",o.extraClasses=[see(this._modelService,this._languageService,An.from({scheme:"fake",path:e.textLabel}),nee.FOLDER),see(this._modelService,this._languageService,An.from({scheme:"fake",path:n.detail}),nee.FOLDER)].flat()):(i.icon.className="icon hide",i.iconContainer.className="",i.iconContainer.classList.add("suggest-icon",...gd.asClassNameArray(Qn.toIcon(n.kind))));n.tags&&n.tags.indexOf(1)>=0&&(o.extraClasses=(o.extraClasses||[]).concat(["deprecated"]),o.matches=[]),i.iconLabel.setLabel(e.textLabel,void 0,o),"string"==typeof n.label?(i.parametersLabel.textContent="",i.detailsLabel.textContent=mee(n.detail||""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=mee(n.label.detail||""),i.detailsLabel.textContent=mee(n.label.description||""),i.root.classList.remove("string-label")),this._editor.getOption(118).showInlineDetails?Rc(i.detailsLabel):Lc(i.detailsLabel),eee(e)?(i.right.classList.add("can-expand-details"),Rc(i.readMore),i.readMore.onmousedown=e=>{e.stopPropagation(),e.preventDefault()},i.readMore.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._onDidToggleDetails.fire()}):(i.right.classList.remove("can-expand-details"),Lc(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};function mee(e){return e.replace(/\r\n|\r|\n/g,"")}gee=lee([cee(1,od),cee(2,eg),cee(3,KE)],gee);var pee,fee=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},_ee=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};ib("editorSuggestWidget.background",{dark:Lb,light:Lb,hcDark:Lb,hcLight:Lb},pe("vs/editor/contrib/suggest/browser/suggestWidget","editorSuggestWidgetBackground","Background color of the suggest widget.")),ib("editorSuggestWidget.border",{dark:Ab,light:Ab,hcDark:Ab,hcLight:Ab},pe("vs/editor/contrib/suggest/browser/suggestWidget","editorSuggestWidgetBorder","Border color of the suggest widget."));const bee=ib("editorSuggestWidget.foreground",{dark:Rb,light:Rb,hcDark:Rb,hcLight:Rb},pe("vs/editor/contrib/suggest/browser/suggestWidget","editorSuggestWidgetForeground","Foreground color of the suggest widget."));ib("editorSuggestWidget.selectedForeground",{dark:iC,light:iC,hcDark:iC,hcLight:iC},pe("vs/editor/contrib/suggest/browser/suggestWidget","editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget.")),ib("editorSuggestWidget.selectedIconForeground",{dark:nC,light:nC,hcDark:nC,hcLight:nC},pe("vs/editor/contrib/suggest/browser/suggestWidget","editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));const vee=ib("editorSuggestWidget.selectedBackground",{dark:oC,light:oC,hcDark:oC,hcLight:oC},pe("vs/editor/contrib/suggest/browser/suggestWidget","editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));ib("editorSuggestWidget.highlightForeground",{dark:kS,light:kS,hcDark:kS,hcLight:kS},pe("vs/editor/contrib/suggest/browser/suggestWidget","editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),ib("editorSuggestWidget.focusHighlightForeground",{dark:DS,light:DS,hcDark:DS,hcLight:DS},pe("vs/editor/contrib/suggest/browser/suggestWidget","editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused.")),ib("editorSuggestWidgetStatus.foreground",{dark:sb(bee,.5),light:sb(bee,.5),hcDark:sb(bee,.5),hcLight:sb(bee,.5)},pe("vs/editor/contrib/suggest/browser/suggestWidget","editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));class See{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof V2}`}restore(){var e;const t=null!==(e=this._service.get(this._key,0))&&void 0!==e?e:"";try{const e=JSON.parse(t);if(Fl.is(e))return Fl.lift(e)}catch(sue){}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let Cee=pee=class{constructor(e,t,i,n,o){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._pendingLayout=new pi,this._pendingShowDetails=new pi,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new Gr,this._disposables=new gi,this._onDidSelect=new Ii,this._onDidFocus=new Ii,this._onDidHide=new Ri,this._onDidShow=new Ri,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new Ri,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new l2,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new Eee(this,e),this._persistedSize=new See(t,e);class s{constructor(e,t,i=!1,n=!1){this.persistedSize=e,this.currentSize=t,this.persistHeight=i,this.persistWidth=n}}let r;this._disposables.add(this.element.onDidWillResize((()=>{this._contentWidget.lockPreference(),r=new s(this._persistedSize.restore(),this.element.size)}))),this._disposables.add(this.element.onDidResize((e=>{var t,i,n,o;if(this._resize(e.dimension.width,e.dimension.height),r&&(r.persistHeight=r.persistHeight||!!e.north||!!e.south,r.persistWidth=r.persistWidth||!!e.east||!!e.west),e.done){if(r){const{itemHeight:e,defaultSize:s}=this.getLayoutInfo(),a=Math.round(e/2);let{width:l,height:c}=this.element.size;(!r.persistHeight||Math.abs(r.currentSize.height-c)<=a)&&(c=null!==(i=null===(t=r.persistedSize)||void 0===t?void 0:t.height)&&void 0!==i?i:s.height),(!r.persistWidth||Math.abs(r.currentSize.width-l)<=a)&&(l=null!==(o=null===(n=r.persistedSize)||void 0===n?void 0:n.width)&&void 0!==o?o:s.width),this._persistedSize.store(new Fl(l,c))}this._contentWidget.unlockPreference(),r=void 0}}))),this._messageElement=vc(this.element.domNode,yc(".message")),this._listElement=vc(this.element.domNode,yc(".tree"));const a=this._disposables.add(o.createInstance(tee,this.editor));a.onDidClose(this.toggleDetails,this,this._disposables),this._details=new iee(a,this.editor);const l=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(118).showIcons);l();const c=o.createInstance(gee,this.editor);this._disposables.add(c),this._disposables.add(c.onDidToggleDetails((()=>this.toggleDetails()))),this._list=new tW("SuggestWidget",this._listElement,{getHeight:e=>this.getLayoutInfo().itemHeight,getTemplateId:e=>"suggestion"},[c],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>pe("vs/editor/contrib/suggest/browser/suggestWidget","suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:e=>{let t=e.textLabel;if("string"!=typeof e.completion.label){const{detail:i,description:n}=e.completion.label;i&&n?t=pe("vs/editor/contrib/suggest/browser/suggestWidget","label.full","{0} {1}, {2}",t,i,n):i?t=pe("vs/editor/contrib/suggest/browser/suggestWidget","label.detail","{0} {1}",t,i):n&&(t=pe("vs/editor/contrib/suggest/browser/suggestWidget","label.desc","{0}, {1}",t,n))}if(!e.isResolved||!this._isDetailsVisible())return t;const{documentation:i,detail:n}=e.completion;return pe("vs/editor/contrib/suggest/browser/suggestWidget","ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",t,fs("{0}{1}",n||"",i?"string"==typeof i?i:i.value:""))}}}),this._list.style(NW({listInactiveFocusBackground:vee,listInactiveFocusOutline:fb})),this._status=o.createInstance(J8,this.element.domNode,H7);const d=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(118).showStatusBar);d(),this._disposables.add(n.onDidColorThemeChange((e=>this._onThemeChange(e)))),this._onThemeChange(n.getColorTheme()),this._disposables.add(this._list.onMouseDown((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onTap((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onDidChangeSelection((e=>this._onListSelection(e)))),this._disposables.add(this._list.onDidChangeFocus((e=>this._onListFocus(e)))),this._disposables.add(this.editor.onDidChangeCursorSelection((()=>this._onCursorSelectionChanged()))),this._disposables.add(this.editor.onDidChangeConfiguration((e=>{e.hasChanged(118)&&(d(),l()),this._completionModel&&(e.hasChanged(50)||e.hasChanged(119)||e.hasChanged(120))&&this._list.splice(0,this._list.length,this._completionModel.items)}))),this._ctxSuggestWidgetVisible=B7.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=B7.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=B7.MultipleSuggestions.bindTo(i),this._ctxSuggestWidgetHasFocusedSuggestion=B7.HasFocusedSuggestion.bindTo(i),this._disposables.add(Ll(this._details.widget.domNode,"keydown",(e=>{this._onDetailsKeydown.fire(e)}))),this._disposables.add(this.editor.onMouseDown((e=>this._onEditorMouseDown(e))))}dispose(){var e;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),null===(e=this._loadingTimeout)||void 0===e||e.dispose(),this._pendingLayout.dispose(),this._pendingShowDetails.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){0!==this._state&&this._contentWidget.layout()}_onListMouseDownOrTap(e){void 0!==e.element&&void 0!==e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){const i=this._completionModel;i&&(this._onDidSelect.fire({item:e,index:t,model:i}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=NC(e.type)?2:1}_onListFocus(e){var t;if(this._ignoreFocusEvents)return;if(!e.elements.length)return this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),void this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const i=e.elements[0],n=e.indexes[0];i!==this._focusedItem&&(null===(t=this._currentSuggestionDetails)||void 0===t||t.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=i,this._list.reveal(n),this._currentSuggestionDetails=Mr((async e=>{const t=Ur((()=>{this._isDetailsVisible()&&this.showDetails(!0)}),250),n=e.onCancellationRequested((()=>t.dispose()));try{return await i.resolve(e)}finally{t.dispose(),n.dispose()}})),this._currentSuggestionDetails.then((()=>{n>=this._list.length||i!==this._list.element(n)||(this._ignoreFocusEvents=!0,this._list.splice(n,1,[i]),this._list.setFocus([n]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:dee(n)}))})).catch(Jt)),this._onDidFocus.fire({item:i,index:n,model:this._completionModel})}_setState(e){if(this._state!==e)switch(this._state=e,this.element.domNode.classList.toggle("frozen",4===e),this.element.domNode.classList.remove("message"),e){case 0:Lc(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=pee.LOADING_MESSAGE,Lc(this._listElement,this._status.element),Rc(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,I_(pee.LOADING_MESSAGE);break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=pee.NO_SUGGESTIONS_MESSAGE,Lc(this._listElement,this._status.element),Rc(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,I_(pee.NO_SUGGESTIONS_MESSAGE);break;case 3:case 4:Lc(this._messageElement),Rc(this._listElement,this._status.element),this._show();break;case 5:Lc(this._messageElement),Rc(this._listElement,this._status.element),this._details.show(),this._show()}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet((()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)}),100)}showTriggered(e,t){0===this._state&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=Ur((()=>this._setState(1)),t)))}showSuggestions(e,t,i,n,o){var s,r;if(this._contentWidget.setPosition(this.editor.getPosition()),null===(s=this._loadingTimeout)||void 0===s||s.dispose(),null===(r=this._currentSuggestionDetails)||void 0===r||r.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),i&&2!==this._state&&0!==this._state)return void this._setState(4);const a=this._completionModel.items.length,l=0===a;if(this._ctxSuggestWidgetMultipleSuggestions.set(a>1),l)return this._setState(n?0:2),void(this._completionModel=void 0);this._focusedItem=void 0,this._onDidFocus.pause(),this._onDidSelect.pause();try{this._list.splice(0,this._list.length,this._completionModel.items),this._setState(i?4:3),this._list.reveal(t,0),this._list.setFocus(o?[]:[t])}finally{this._onDidFocus.resume(),this._onDidSelect.resume()}this._pendingLayout.value=Nl(gl(this.element.domNode),(()=>{this._pendingLayout.clear(),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")}))}focusSelected(){this._list.length>0&&this._list.setFocus([0])}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(0!==this._state&&2!==this._state&&1!==this._state&&this._completionModel&&this._list.getFocus().length>0)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){5===this._state?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):3===this._state&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._pendingShowDetails.clear(),this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):!eee(this._list.getFocusedElements()[0])&&!this._explainMode||3!==this._state&&5!==this._state&&4!==this._state||(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._pendingShowDetails.value=Nl(gl(this.element.domNode),(()=>{this._pendingShowDetails.clear(),this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._details.widget.isEmpty?this._details.hide():(this._positionDetails(),this.element.domNode.classList.add("shows-details")),this.editor.focus()}))}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){var e;this._pendingLayout.clear(),this._pendingShowDetails.clear(),null===(e=this._loadingTimeout)||void 0===e||e.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const t=this._persistedSize.restore(),i=Math.ceil(4.3*this.getLayoutInfo().itemHeight);t&&t.heightl&&(a=l);const c=this._completionModel?this._completionModel.stats.pLabelLen*s.typicalHalfwidthCharacterWidth:a,d=s.statusBarHeight+this._list.contentHeight+s.borderHeight,h=s.itemHeight+s.statusBarHeight,u=Hl(this.editor.getDomNode()),g=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),m=u.top+g.top+g.height,p=Math.min(o.height-m-s.verticalPadding,d),f=u.top+g.top-s.verticalPadding,_=Math.min(f,d);let b=Math.min(Math.max(_,p)+s.borderHeight,d);r===(null===(t=this._cappedHeight)||void 0===t?void 0:t.capped)&&(r=this._cappedHeight.wanted),rb&&(r=b);const v=150;r>p||this._forceRenderingAbove&&f>v?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),b=_):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),b=p),this.element.preferredSize=new Fl(c,s.defaultSize.height),this.element.maxSize=new Fl(l,b),this.element.minSize=new Fl(220,h),this._cappedHeight=r===d?{wanted:null!==(n=null===(i=this._cappedHeight)||void 0===i?void 0:i.wanted)&&void 0!==n?n:e.height,capped:r}:void 0}this._resize(a,r)}_resize(e,t){const{width:i,height:n}=this.element.maxSize;e=Math.min(i,e),t=Math.min(n,t);const{statusBarHeight:o}=this.getLayoutInfo();this._list.layout(t-o,e),this._listElement.style.height=t-o+"px",this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){var e;this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,2===(null===(e=this._contentWidget.getPosition())||void 0===e?void 0:e.preference[0]))}getLayoutInfo(){const e=this.editor.getOption(50),t=SO(this.editor.getOption(120)||e.lineHeight,8,1e3),i=this.editor.getOption(118).showStatusBar&&2!==this._state&&1!==this._state?t:0,n=this._details.widget.borderWidth,o=2*n;return{itemHeight:t,statusBarHeight:i,borderWidth:n,borderHeight:o,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new Fl(430,i+12*t+o)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};Cee.LOADING_MESSAGE=pe("vs/editor/contrib/suggest/browser/suggestWidget","suggestWidget.loading","Loading..."),Cee.NO_SUGGESTIONS_MESSAGE=pe("vs/editor/contrib/suggest/browser/suggestWidget","suggestWidget.noSuggestions","No suggestions."),Cee=pee=fee([_ee(1,vW),_ee(2,Zd),_ee(3,KE),_ee(4,td)],Cee);class Eee{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return!this._hidden&&this._position&&this._preference?{position:this._position,preference:[this._preference]}:null}beforeRender(){const{height:e,width:t}=this._widget.element.size,{borderWidth:i,horizontalPadding:n}=this._widget.getLayoutInfo();return new Fl(t+2*i+n,e+2*i)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}var wee,Tee=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},yee=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class Ree{constructor(e,t){if(this._model=e,this._position=t,this._decorationOptions=VN.register({description:"suggest-line-suffix",stickiness:1}),e.getLineMaxColumn(t.lineNumber)!==t.column){const i=e.getOffsetAt(t),n=e.getPositionAt(i+1);e.changeDecorations((e=>{this._marker&&e.removeDecoration(this._marker),this._marker=e.addDecoration(Un.fromPositions(t,n),this._decorationOptions)}))}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.changeDecorations((e=>{e.removeDecoration(this._marker),this._marker=void 0}))}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let Lee=wee=class{static get(e){return e.getContribution(wee.ID)}constructor(e,t,i,n,o,s,r){this._memoryService=t,this._commandService=i,this._contextKeyService=n,this._instantiationService=o,this._logService=s,this._telemetryService=r,this._lineSuffix=new pi,this._toDispose=new gi,this._selectors=new Iee((e=>e.priority)),this._onWillInsertSuggestItem=new Ri,this.onWillInsertSuggestItem=this._onWillInsertSuggestItem.event,this.editor=e,this.model=o.createInstance(Y8,this.editor),this._selectors.register({priority:0,select:(e,t,i)=>this._memoryService.select(e,t,i)});const a=B7.InsertMode.bindTo(n);a.set(e.getOption(118).insertMode),this._toDispose.add(this.model.onDidTrigger((()=>a.set(e.getOption(118).insertMode)))),this.widget=this._toDispose.add(new Al(gl(e.getDomNode()),(()=>{const e=this._instantiationService.createInstance(Cee,this.editor);this._toDispose.add(e),this._toDispose.add(e.onDidSelect((e=>this._insertSuggestion(e,0)),this));const t=new F8(this.editor,e,this.model,(e=>this._insertSuggestion(e,2)));this._toDispose.add(t);const i=B7.MakesTextEdit.bindTo(this._contextKeyService),n=B7.HasInsertAndReplaceRange.bindTo(this._contextKeyService),o=B7.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add(ui((()=>{i.reset(),n.reset(),o.reset()}))),this._toDispose.add(e.onDidFocus((({item:e})=>{const t=this.editor.getPosition(),s=e.editStart.column,r=t.column;let a=!0;"smart"!==this.editor.getOption(1)||2!==this.model.state||e.completion.additionalTextEdits||4&e.completion.insertTextRules||r-s!==e.completion.insertText.length||(a=this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:s,endLineNumber:t.lineNumber,endColumn:r})!==e.completion.insertText),i.set(a),n.set(!Wn.equals(e.editInsertEnd,e.editReplaceEnd)),o.set(Boolean(e.provider.resolveCompletionItem)||Boolean(e.completion.documentation)||e.completion.detail!==e.completion.label)}))),this._toDispose.add(e.onDetailsKeyDown((e=>{e.toKeyCodeChord().equals(new Cr(!0,!1,!1,!1,33))||Pe&&e.toKeyCodeChord().equals(new Cr(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeyCodeChord().isModifierKey()||this.editor.focus()}))),e}))),this._overtypingCapturer=this._toDispose.add(new Al(gl(e.getDomNode()),(()=>this._toDispose.add(new q8(this.editor,this.model))))),this._alternatives=this._toDispose.add(new Al(gl(e.getDomNode()),(()=>this._toDispose.add(new P8(this.editor,this._contextKeyService))))),this._toDispose.add(o.createInstance(D8,e)),this._toDispose.add(this.model.onDidTrigger((e=>{this.widget.value.showTriggered(e.auto,e.shy?250:50),this._lineSuffix.value=new Ree(this.editor.getModel(),e.position)}))),this._toDispose.add(this.model.onDidSuggest((e=>{if(e.triggerOptions.shy)return;let t=-1;for(const n of this._selectors.itemsOrderedByPriorityDesc)if(t=n.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items),-1!==t)break;if(-1===t&&(t=0),0===this.model.state)return;let i=!1;if(e.triggerOptions.auto){const t=this.editor.getOption(118);"never"===t.selectionMode||"always"===t.selectionMode?i="never"===t.selectionMode:"whenTriggerCharacter"===t.selectionMode?i=1!==e.triggerOptions.triggerKind:"whenQuickSuggestion"===t.selectionMode&&(i=1===e.triggerOptions.triggerKind&&!e.triggerOptions.refilter)}this.widget.value.showSuggestions(e.completionModel,t,e.isFrozen,e.triggerOptions.auto,i)}))),this._toDispose.add(this.model.onDidCancel((e=>{e.retrigger||this.widget.value.hideWidget()}))),this._toDispose.add(this.editor.onDidBlurEditorWidget((()=>{this.model.cancel(),this.model.clear()})));const l=B7.AcceptSuggestionsOnEnter.bindTo(n),c=()=>{const e=this.editor.getOption(1);l.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration((()=>c()))),c()}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose(),this._onWillInsertSuggestItem.dispose()}_insertSuggestion(e,t){if(!e||!e.item)return this._alternatives.value.reset(),this.model.cancel(),void this.model.clear();if(!this.editor.hasModel())return;const i=m8.get(this.editor);if(!i)return;this._onWillInsertSuggestItem.fire({item:e.item});const n=this.editor.getModel(),o=n.getAlternativeVersionId(),{item:s}=e,r=[],a=new Fi;1&t||this.editor.pushUndoStop();const l=this.getOverwriteInfo(s,Boolean(8&t));this._memoryService.memorize(n,this.editor.getPosition(),s);const c=s.isResolved;let d=-1,h=-1;if(Array.isArray(s.completion.additionalTextEdits)){this.model.cancel();const e=Mq.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",s.completion.additionalTextEdits.map((e=>{let t=Un.lift(e.range);if(t.startLineNumber===s.position.lineNumber&&t.startColumn>s.position.column){const e=this.editor.getPosition().column-s.position.column,i=e,n=Un.spansMultipleLines(t)?0:e;t=new Un(t.startLineNumber,t.startColumn+i,t.endLineNumber,t.endColumn+n)}return cF.replaceMove(t,e.text)}))),e.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!c){const e=new Si;let i;const o=n.onDidChangeContent((e=>{if(e.isFlush)return a.cancel(),void o.dispose();for(const t of e.changes){const e=Un.getEndPosition(t.range);i&&!Wn.isBefore(e,i)||(i=e)}})),l=t;t|=2;let c=!1;const d=this.editor.onWillType((()=>{d.dispose(),c=!0,2&l||this.editor.pushUndoStop()}));r.push(s.resolve(a.token).then((()=>{if(!s.completion.additionalTextEdits||a.token.isCancellationRequested)return;if(i&&s.completion.additionalTextEdits.some((e=>Wn.isBefore(i,Un.getStartPosition(e.range)))))return!1;c&&this.editor.pushUndoStop();const e=Mq.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",s.completion.additionalTextEdits.map((e=>cF.replaceMove(Un.lift(e.range),e.text)))),e.restoreRelativeVerticalPositionOfCursor(this.editor),!c&&2&l||this.editor.pushUndoStop(),!0})).then((t=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",e.elapsed(),t),h=!0===t?1:!1===t?0:-2})).finally((()=>{o.dispose(),d.dispose()})))}let{insertText:u}=s.completion;if(4&s.completion.insertTextRules||(u=lZ.escape(u)),this.model.cancel(),i.insert(u,{overwriteBefore:l.overwriteBefore,overwriteAfter:l.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&s.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&t||this.editor.pushUndoStop(),s.completion.command)if(s.completion.command.id===Aee.id)this.model.trigger({auto:!0,retrigger:!0});else{const e=new Si;r.push(this._commandService.executeCommand(s.completion.command.id,...s.completion.command.arguments?[...s.completion.command.arguments]:[]).catch((e=>{s.completion.extensionId?Qt(e):Jt(e)})).finally((()=>{d=e.elapsed()})))}4&t&&this._alternatives.value.set(e,(e=>{for(a.cancel();n.canUndo();){o!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(s),Promise.all(r).finally((()=>{this._reportSuggestionAcceptedTelemetry(s,n,c,d,h),this.model.clear(),a.dispose()}))}_reportSuggestionAcceptedTelemetry(e,t,i,n,o){var s,r,a;0!==Math.floor(100*Math.random())&&this._telemetryService.publicLog2("suggest.acceptedSuggestion",{extensionId:null!==(r=null===(s=e.extensionId)||void 0===s?void 0:s.value)&&void 0!==r?r:"unknown",providerId:null!==(a=e.provider._debugDisplayName)&&void 0!==a?a:"unknown",kind:e.completion.kind,basenameHash:ol(UI(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:VI(t.uri),resolveInfo:e.provider.resolveCompletionItem?i?1:0:-1,resolveDuration:e.resolveDuration,commandDuration:n,additionalEditsAsync:o})}getOverwriteInfo(e,t){ie(this.editor.hasModel());let i="replace"===this.editor.getOption(118).insertMode;t&&(i=!i);const n=e.position.column-e.editStart.column,o=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:n+(this.editor.getPosition().column-e.position.column),overwriteAfter:o+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem(e){L(e.completion.additionalTextEdits)&&L_(pe("vs/editor/contrib/suggest/browser/suggestController","aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length))}triggerSuggest(e,t,i){this.editor.hasModel()&&(this.model.trigger({auto:null!=t&&t,completionOptions:{providerFilter:e,kindFilter:i?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},n=e=>{if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;const t=this.editor.getPosition(),i=e.editStart.column,n=t.column;return n-i!==e.completion.insertText.length||this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:i,endLineNumber:t.lineNumber,endColumn:n})!==e.completion.insertText};Ci.once(this.model.onDidTrigger)((e=>{const t=[];Ci.any(this.model.onDidTrigger,this.model.onDidCancel)((()=>{di(t),i()}),void 0,t),this.model.onDidSuggest((({completionModel:e})=>{if(di(t),0===e.items.length)return void i();const o=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.items),s=e.items[o];n(s)?(this.editor.pushUndoStop(),this._insertSuggestion({index:o,item:s,model:e},7)):i()}),void 0,t)})),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const i=this.widget.value.getFocusedItem();let n=0;e&&(n|=4),t&&(n|=8),this._insertSuggestion(i,n)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}focusSuggestion(){this.widget.value.focusSelected()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};Lee.ID="editor.contrib.suggestController",Lee=wee=Tee([yee(1,I8),yee(2,md),yee(3,Zd),yee(4,td),yee(5,Lh),yee(6,Rh)],Lee);class Iee{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(-1!==this._items.indexOf(e))throw new Error("Value is already registered");return this._items.push(e),this._items.sort(((e,t)=>this.prioritySelector(t)-this.prioritySelector(e))),{dispose:()=>{const t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class Aee extends Fh{constructor(){super({id:Aee.id,label:pe("vs/editor/contrib/suggest/browser/suggestController","suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:Dd.and(JT.writable,JT.hasCompletionItemProvider,B7.Visible.toNegated()),kbOpts:{kbExpr:JT.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){const n=Lee.get(t);if(!n)return;let o;i&&"object"==typeof i&&!0===i.auto&&(o=!0),n.triggerSuggest(void 0,o,void 0)}}Aee.id="editor.action.triggerSuggest",zh(Lee.ID,Lee,2),Vh(Aee);const Nee=190,kee=Ph.bindToContribution(Lee.get);Uh(new kee({id:"acceptSelectedSuggestion",precondition:Dd.and(B7.Visible,B7.HasFocusedSuggestion),handler(e){e.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:Dd.and(B7.Visible,JT.textInputFocus),weight:Nee},{primary:3,kbExpr:Dd.and(B7.Visible,JT.textInputFocus,B7.AcceptSuggestionsOnEnter,B7.MakesTextEdit),weight:Nee}],menuOpts:[{menuId:H7,title:pe("vs/editor/contrib/suggest/browser/suggestController","accept.insert","Insert"),group:"left",order:1,when:B7.HasInsertAndReplaceRange.toNegated()},{menuId:H7,title:pe("vs/editor/contrib/suggest/browser/suggestController","accept.insert","Insert"),group:"left",order:1,when:Dd.and(B7.HasInsertAndReplaceRange,B7.InsertMode.isEqualTo("insert"))},{menuId:H7,title:pe("vs/editor/contrib/suggest/browser/suggestController","accept.replace","Replace"),group:"left",order:1,when:Dd.and(B7.HasInsertAndReplaceRange,B7.InsertMode.isEqualTo("replace"))}]})),Uh(new kee({id:"acceptAlternativeSelectedSuggestion",precondition:Dd.and(B7.Visible,JT.textInputFocus,B7.HasFocusedSuggestion),kbOpts:{weight:Nee,kbExpr:JT.textInputFocus,primary:1027,secondary:[1026]},handler(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:H7,group:"left",order:2,when:Dd.and(B7.HasInsertAndReplaceRange,B7.InsertMode.isEqualTo("insert")),title:pe("vs/editor/contrib/suggest/browser/suggestController","accept.replace","Replace")},{menuId:H7,group:"left",order:2,when:Dd.and(B7.HasInsertAndReplaceRange,B7.InsertMode.isEqualTo("replace")),title:pe("vs/editor/contrib/suggest/browser/suggestController","accept.insert","Insert")}]})),pd.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),Uh(new kee({id:"hideSuggestWidget",precondition:B7.Visible,handler:e=>e.cancelSuggestWidget(),kbOpts:{weight:Nee,kbExpr:JT.textInputFocus,primary:9,secondary:[1033]}})),Uh(new kee({id:"selectNextSuggestion",precondition:Dd.and(B7.Visible,Dd.or(B7.MultipleSuggestions,B7.HasFocusedSuggestion.negate())),handler:e=>e.selectNextSuggestion(),kbOpts:{weight:Nee,kbExpr:JT.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),Uh(new kee({id:"selectNextPageSuggestion",precondition:Dd.and(B7.Visible,Dd.or(B7.MultipleSuggestions,B7.HasFocusedSuggestion.negate())),handler:e=>e.selectNextPageSuggestion(),kbOpts:{weight:Nee,kbExpr:JT.textInputFocus,primary:12,secondary:[2060]}})),Uh(new kee({id:"selectLastSuggestion",precondition:Dd.and(B7.Visible,Dd.or(B7.MultipleSuggestions,B7.HasFocusedSuggestion.negate())),handler:e=>e.selectLastSuggestion()})),Uh(new kee({id:"selectPrevSuggestion",precondition:Dd.and(B7.Visible,Dd.or(B7.MultipleSuggestions,B7.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevSuggestion(),kbOpts:{weight:Nee,kbExpr:JT.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),Uh(new kee({id:"selectPrevPageSuggestion",precondition:Dd.and(B7.Visible,Dd.or(B7.MultipleSuggestions,B7.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevPageSuggestion(),kbOpts:{weight:Nee,kbExpr:JT.textInputFocus,primary:11,secondary:[2059]}})),Uh(new kee({id:"selectFirstSuggestion",precondition:Dd.and(B7.Visible,Dd.or(B7.MultipleSuggestions,B7.HasFocusedSuggestion.negate())),handler:e=>e.selectFirstSuggestion()})),Uh(new kee({id:"focusSuggestion",precondition:Dd.and(B7.Visible,B7.HasFocusedSuggestion.negate()),handler:e=>e.focusSuggestion(),kbOpts:{weight:Nee,kbExpr:JT.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}})),Uh(new kee({id:"focusAndAcceptSuggestion",precondition:Dd.and(B7.Visible,B7.HasFocusedSuggestion.negate()),handler:e=>{e.focusSuggestion(),e.acceptSelectedSuggestion(!0,!1)}})),Uh(new kee({id:"toggleSuggestionDetails",precondition:Dd.and(B7.Visible,B7.HasFocusedSuggestion),handler:e=>e.toggleSuggestionDetails(),kbOpts:{weight:Nee,kbExpr:JT.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:H7,group:"right",order:1,when:Dd.and(B7.DetailsVisible,B7.CanResolve),title:pe("vs/editor/contrib/suggest/browser/suggestController","detail.more","show less")},{menuId:H7,group:"right",order:1,when:Dd.and(B7.DetailsVisible.toNegated(),B7.CanResolve),title:pe("vs/editor/contrib/suggest/browser/suggestController","detail.less","show more")}]})),Uh(new kee({id:"toggleExplainMode",precondition:B7.Visible,handler:e=>e.toggleExplainMode(),kbOpts:{weight:100,primary:2138}})),Uh(new kee({id:"toggleSuggestionFocus",precondition:B7.Visible,handler:e=>e.toggleSuggestionFocus(),kbOpts:{weight:Nee,kbExpr:JT.textInputFocus,primary:2570,mac:{primary:778}}})),Uh(new kee({id:"insertBestCompletion",precondition:Dd.and(JT.textInputFocus,Dd.equals("config.editor.tabCompletion","on"),D8.AtEnd,B7.Visible.toNegated(),P8.OtherSuggestions.toNegated(),m8.InSnippetMode.toNegated()),handler:(e,t)=>{e.triggerSuggestAndAcceptBest($(t)?{fallback:"tab",...t}:{fallback:"tab"})},kbOpts:{weight:Nee,primary:2}})),Uh(new kee({id:"insertNextSuggestion",precondition:Dd.and(JT.textInputFocus,Dd.equals("config.editor.tabCompletion","on"),P8.OtherSuggestions,B7.Visible.toNegated(),m8.InSnippetMode.toNegated()),handler:e=>e.acceptNextSuggestion(),kbOpts:{weight:Nee,kbExpr:JT.textInputFocus,primary:2}})),Uh(new kee({id:"insertPrevSuggestion",precondition:Dd.and(JT.textInputFocus,Dd.equals("config.editor.tabCompletion","on"),P8.OtherSuggestions,B7.Visible.toNegated(),m8.InSnippetMode.toNegated()),handler:e=>e.acceptPrevSuggestion(),kbOpts:{weight:Nee,kbExpr:JT.textInputFocus,primary:1026}})),Vh(class extends Fh{constructor(){super({id:"editor.action.resetSuggestSize",label:pe("vs/editor/contrib/suggest/browser/suggestController","suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(e,t){var i;null===(i=Lee.get(t))||void 0===i||i.resetWidgetSize()}});class Dee extends mi{get selectedItem(){return this._selectedItem}constructor(e,t,i,n){super(),this.editor=e,this.suggestControllerPreselector=t,this.checkModelVersion=i,this.onWillAccept=n,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._selectedItem=eH(this,void 0),this._register(e.onKeyDown((e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))}))),this._register(e.onKeyUp((e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))})));const o=Lee.get(this.editor);if(o){this._register(o.registerSelector({priority:100,select:(e,t,i)=>{XB((e=>this.checkModelVersion(e)));const n=this.editor.getModel();if(!n)return-1;const s=this.suggestControllerPreselector(),r=s?T7(s,n):void 0;if(!r)return-1;const a=Wn.lift(t),l=Km(i.map(((e,t)=>{const i=T7(Oee.fromSuggestion(o,n,a,e,this.isShiftKeyPressed).toSingleTextEdit(),n);return{index:t,valid:y7(r,i),prefixLength:i.text.length,suggestItem:e}})).filter((e=>e&&e.valid&&e.prefixLength>0)),W((e=>e.prefixLength),U));return l?l.index:-1}}));let e=!1;const t=()=>{e||(e=!0,this._register(o.widget.value.onDidShow((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))),this._register(o.widget.value.onDidHide((()=>{this.isSuggestWidgetVisible=!1,this.update(!1)}))),this._register(o.widget.value.onDidFocus((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))))};this._register(Ci.once(o.model.onDidTrigger)((e=>{t()}))),this._register(o.onWillInsertSuggestItem((e=>{const t=this.editor.getPosition(),i=this.editor.getModel();if(!t||!i)return;const n=Oee.fromSuggestion(o,i,t,e.item,this.isShiftKeyPressed);this.onWillAccept(n)})))}this.update(this._isActive)}update(e){const t=this.getSuggestItemInfo();var i,n;this._isActive===e&&((i=this._currentSuggestItemInfo)===(n=t)||i&&n&&i.equals(n))||(this._isActive=e,this._currentSuggestItemInfo=t,XB((e=>{this.checkModelVersion(e),this._selectedItem.set(this._isActive?this._currentSuggestItemInfo:void 0,e)})))}getSuggestItemInfo(){const e=Lee.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;const t=e.widget.value.getFocusedItem(),i=this.editor.getPosition(),n=this.editor.getModel();return t&&i&&n?Oee.fromSuggestion(e,n,i,t.item,this.isShiftKeyPressed):void 0}stopForceRenderingAbove(){const e=Lee.get(this.editor);null==e||e.stopForceRenderingAbove()}forceRenderingAbove(){const e=Lee.get(this.editor);null==e||e.forceRenderingAbove()}}class Oee{static fromSuggestion(e,t,i,n,o){let{insertText:s}=n.completion,r=!1;if(4&n.completion.insertTextRules){const e=(new lZ).parse(s);e.children.length<100&&c8.adjustWhitespace(t,i,!0,e),s=e.toString(),r=!0}const a=e.getOverwriteInfo(n,o);return new Oee(Un.fromPositions(i.delta(0,-a.overwriteBefore),i.delta(0,Math.max(a.overwriteAfter,0))),s,n.completion.kind,r)}constructor(e,t,i,n){this.range=e,this.insertText=t,this.completionItemKind=i,this.isSnippetText=n}equals(e){return this.range.equalsRange(e.range)&&this.insertText===e.insertText&&this.completionItemKind===e.completionItemKind&&this.isSnippetText===e.isSnippetText}toSelectedSuggestionInfo(){return new no(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new Qm(this.range,this.insertText)}}var xee,Mee=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Pee=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let Fee=xee=class extends mi{static get(e){return e.getContribution(xee.ID)}constructor(e,t,i,n,o,s,r,a,l,c){var d,h,u;super(),this.editor=e,this._instantiationService=t,this._contextKeyService=i,this._configurationService=n,this._commandService=o,this._debounceService=s,this._languageFeaturesService=r,this._accessibilitySignalService=a,this._keybindingService=l,this._accessibilityService=c,this.model=this._register(iH("inlineCompletionModel",void 0)),this._textModelVersionId=eH(this,-1),this._positions=(d={owner:this,equalsFn:BB(((e,t)=>e.equals(t)))},h=[new Wn(1,1)],new tH(new HB(d.owner,d.debugName,void 0),h,null!==(u=d.equalsFn)&&void 0!==u?u:FB)),this._suggestWidgetAdaptor=this._register(new Dee(this.editor,(()=>{var e,t;return null===(t=null===(e=this.model.get())||void 0===e?void 0:e.selectedInlineCompletion.get())||void 0===t?void 0:t.toSingleTextEdit(void 0)}),(e=>this.updateObservables(e,f8.Other)),(e=>{XB((t=>{var i;this.updateObservables(t,f8.Other),null===(i=this.model.get())||void 0===i||i.handleSuggestAccepted(e)}))}))),this._enabledInConfig=fH(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).enabled)),this._isScreenReaderEnabled=fH(this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>this._accessibilityService.isScreenReaderOptimized())),this._editorDictationInProgress=fH(this._contextKeyService.onDidChangeContext,(()=>!0===this._contextKeyService.getContext(this.editor.getDomNode()).getValue("editorDictation.inProgress"))),this._enabled=oH(this,(e=>this._enabledInConfig.read(e)&&(!this._isScreenReaderEnabled.read(e)||!this._editorDictationInProgress.read(e)))),this._fontFamily=fH(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).fontFamily)),this._ghostTexts=oH(this,(e=>{var t;const i=this.model.read(e);return null!==(t=null==i?void 0:i.ghostTexts.read(e))&&void 0!==t?t:[]})),this._stablizedGhostTexts=function(e,t){const i=eH("result",[]),n=[];return t.add(cH((t=>{const o=e.read(t);XB((e=>{if(o.length!==n.length){n.length=o.length;for(let e=0;et.set(o[i],e)))}))}))),i}(this._ghostTexts,this._store),this._ghostTextWidgets=function(e,t,i,n){let o=new TH(i,void 0);return sH({debugReferenceFn:i,owner:e,onLastObserverRemoved:()=>{o.dispose(),o=new TH(i)}},(e=>(o.setItems(t.read(e)),o.getItems())))}(this,this._stablizedGhostTexts,((e,t)=>t.add(this._instantiationService.createInstance(p7,this.editor,{ghostText:e,minReservedLineCount:mH(0),targetTextModel:this.model.map((e=>null==e?void 0:e.textModel))})))).recomputeInitiallyAndOnChange(this._store),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this._playAccessibilitySignal=SH(this),this._isReadonly=fH(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(91))),this._textModel=fH(this.editor.onDidChangeModel,(()=>this.editor.getModel())),this._textModelIfWritable=oH((e=>this._isReadonly.read(e)?void 0:this._textModel.read(e))),this._register(new i7(this._contextKeyService,this.model)),this._register(cH((i=>{const n=this._textModelIfWritable.read(i);XB((i=>{if(this.model.set(void 0,i),this.updateObservables(i,f8.Other),n){const o=t.createInstance(v8,n,this._suggestWidgetAdaptor.selectedItem,this._textModelVersionId,this._positions,this._debounceValue,fH(e.onDidChangeConfiguration,(()=>e.getOption(118).preview)),fH(e.onDidChangeConfiguration,(()=>e.getOption(118).previewMode)),fH(e.onDidChangeConfiguration,(()=>e.getOption(62).mode)),this._enabled);this.model.set(o,i)}}))})));const g=this._register(tc());this._register(cH((e=>{const t=this._fontFamily.read(e);g.setStyle(""===t||"default"===t?"":`\n.monaco-editor .ghost-text-decoration,\n.monaco-editor .ghost-text-decoration-preview,\n.monaco-editor .ghost-text {\n\tfont-family: ${t};\n}`)})));const m=e=>{var t;return e.isUndoing?f8.Undo:e.isRedoing?f8.Redo:(null===(t=this.model.get())||void 0===t?void 0:t.isAcceptingPartially)?f8.AcceptWord:f8.Other};this._register(e.onDidChangeModelContent((e=>XB((t=>this.updateObservables(t,m(e))))))),this._register(e.onDidChangeCursorPosition((e=>XB((t=>{var i;this.updateObservables(t,f8.Other),3!==e.reason&&"api"!==e.source||null===(i=this.model.get())||void 0===i||i.stop(t)}))))),this._register(e.onDidType((()=>XB((e=>{var t;this.updateObservables(e,f8.Other),this._enabled.get()&&(null===(t=this.model.get())||void 0===t||t.trigger(e))}))))),this._register(this._commandService.onDidExecuteCommand((t=>{new Set([ry.Tab.id,ry.DeleteLeft.id,ry.DeleteRight.id,j1,"acceptSelectedSuggestion"]).has(t.commandId)&&e.hasTextFocus()&&this._enabled.get()&&XB((e=>{var t;null===(t=this.model.get())||void 0===t||t.trigger(e)}))}))),this._register(this.editor.onDidBlurEditorWidget((()=>{this._contextKeyService.getContextKeyValue("accessibleViewIsShown")||this._configurationService.getValue("editor.inlineSuggest.keepOnBlur")||e.getOption(62).keepOnBlur||o2.dropDownVisible||XB((e=>{var t;null===(t=this.model.get())||void 0===t||t.stop(e)}))}))),this._register(cH((e=>{var t;const i=null===(t=this.model.read(e))||void 0===t?void 0:t.state.read(e);(null==i?void 0:i.suggestItem)?i.primaryGhostText.lineCount>=2&&this._suggestWidgetAdaptor.forceRenderingAbove():this._suggestWidgetAdaptor.stopForceRenderingAbove()}))),this._register(ui((()=>{this._suggestWidgetAdaptor.stopForceRenderingAbove()})));const p=this._register(new gi);let f;this._register(hH({handleChange:(e,t)=>(e.didChange(this._playAccessibilitySignal)&&(f=void 0),!0)},(async(e,t)=>{this._playAccessibilitySignal.read(e);const i=this.model.read(e),n=null==i?void 0:i.state.read(e);if(i&&n&&n.inlineCompletion){if(n.inlineCompletion.semanticId!==f){p.clear(),f=n.inlineCompletion.semanticId;const e=i.textModel.getLineContent(n.primaryGhostText.lineNumber);await Wr(50,Bi(p)),await yH(this._suggestWidgetAdaptor.selectedItem,Z,(()=>!1),Bi(p)),await this._accessibilitySignalService.playSignal(uq.inlineSuggestion),this.editor.getOption(8)&&this.provideScreenReaderUpdate(n.primaryGhostText.renderForScreenReader(e))}}else f=void 0}))),this._register(new t2(this.editor,this.model,this._instantiationService)),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}))),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}playAccessibilitySignal(e){this._playAccessibilitySignal.trigger(e)}provideScreenReaderUpdate(e){const t=this._contextKeyService.getContextKeyValue("accessibleViewIsShown"),i=this._keybindingService.lookupKeybinding("editor.action.accessibleView");let n;!t&&i&&this.editor.getOption(149)&&(n=pe("vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController","showAccessibleViewHint","Inspect this in the accessible view ({0})",i.getAriaLabel())),L_(n?e+", "+n:e)}updateObservables(e,t){var i,n,o;const s=this.editor.getModel();this._textModelVersionId.set(null!==(i=null==s?void 0:s.getVersionId())&&void 0!==i?i:-1,e,t),this._positions.set(null!==(o=null===(n=this.editor.getSelections())||void 0===n?void 0:n.map((e=>e.getPosition())))&&void 0!==o?o:[new Wn(1,1)],e)}shouldShowHoverAt(e){var t;const i=null===(t=this.model.get())||void 0===t?void 0:t.primaryGhostText.get();return!!i&&i.parts.some((t=>e.containsPosition(new Wn(i.lineNumber,t.column))))}shouldShowHoverAtViewZone(e){var t,i;return null!==(i=null===(t=this._ghostTextWidgets.get()[0])||void 0===t?void 0:t.ownsViewZone(e))&&void 0!==i&&i}};Fee.ID="editor.contrib.inlineCompletionsController",Fee=xee=Mee([Pee(1,td),Pee(2,Zd),Pee(3,$u),Pee(4,md),Pee(5,RO),Pee(6,lf),Pee(7,cq),Pee(8,tT),Pee(9,W_)],Fee);class Bee extends Fh{constructor(){super({id:Bee.ID,label:pe("vs/editor/contrib/inlineCompletions/browser/commands","action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:Dd.and(JT.writable,i7.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}async run(e,t){var i;const n=Fee.get(t);null===(i=null==n?void 0:n.model.get())||void 0===i||i.next()}}Bee.ID=J1;class Hee extends Fh{constructor(){super({id:Hee.ID,label:pe("vs/editor/contrib/inlineCompletions/browser/commands","action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:Dd.and(JT.writable,i7.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}async run(e,t){var i;const n=Fee.get(t);null===(i=null==n?void 0:n.model.get())||void 0===i||i.previous()}}Hee.ID=X1;class Wee extends Fh{constructor(){super({id:Wee.ID,label:pe("vs/editor/contrib/inlineCompletions/browser/commands","action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:i7.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}async run(e,t){const i=Fee.get(t);XB((e=>{var t;null===(t=null==i?void 0:i.model.get())||void 0===t||t.stop(e)}))}}Wee.ID="editor.action.inlineSuggest.hide";class Uee extends Th{constructor(){super({id:Uee.ID,title:pe("vs/editor/contrib/inlineCompletions/browser/commands","action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:bh.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:Dd.equals("config.editor.inlineSuggest.showToolbar","always")})}async run(e,t){const i=e.get($u),n="always"===i.getValue("editor.inlineSuggest.showToolbar")?"onHover":"always";i.updateValue("editor.inlineSuggest.showToolbar",n)}}Uee.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar";var Vee=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Gee=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class zee{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let Kee=class{constructor(e,t,i,n,o,s){this._editor=e,this._languageService=t,this._openerService=i,this.accessibilityService=n,this._instantiationService=o,this._telemetryService=s,this.hoverOrdinal=4}suggestHoverAnchor(e){const t=Fee.get(this._editor);if(!t)return null;const i=e.target;if(8===i.type){const n=i.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId))return new _2(1e3,this,Un.fromPositions(this._editor.getModel().validatePosition(n.positionBefore||n.position)),e.event.posx,e.event.posy,!1)}return 7===i.type&&t.shouldShowHoverAt(i.range)||6===i.type&&i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range)?new _2(1e3,this,i.range,e.event.posx,e.event.posy,!1):null}computeSync(e,t){if("onHover"!==this._editor.getOption(62).showToolbar)return[];const i=Fee.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new zee(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new gi,n=t[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&!this._editor.getOption(8)&&this.renderScreenReaderText(e,n,i);const o=n.controller.model.get(),s=this._instantiationService.createInstance(o2,this._editor,!1,mH(null),o.selectedInlineCompletionIndex,o.inlineCompletionsCount,o.activeCommands);return e.fragment.appendChild(s.getDomNode()),o.triggerExplicitly(),i.add(s),i}renderScreenReaderText(e,t,i){const n=yc,o=n("div.hover-row.markdown-hover"),s=vc(o,n("div.hover-contents",{"aria-live":"assertive"})),r=i.add(new IP({editor:this._editor},this._languageService,this._openerService));i.add(cH((n=>{var o;const a=null===(o=t.controller.model.read(n))||void 0===o?void 0:o.primaryGhostText.read(n);if(a){const t=this._editor.getModel().getLineContent(a.lineNumber);(t=>{i.add(r.onDidRenderAsync((()=>{s.className="hover-contents code-hover-contents",e.onContentsChanged()})));const n=pe("vs/editor/contrib/inlineCompletions/browser/hoverParticipant","inlineSuggestionFollows","Suggestion:"),o=i.add(r.render((new YM).appendText(n).appendCodeblock("text",t)));s.replaceChildren(o.element)})(a.renderForScreenReader(t))}else Cc(s)}))),e.fragment.appendChild(o)}};Kee=Vee([Gee(1,eg),Gee(2,Ax),Gee(3,W_),Gee(4,td),Gee(5,Rh)],Kee),zh(Fee.ID,Fee,3),Vh(class extends Fh{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:pe("vs/editor/contrib/inlineCompletions/browser/commands","action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:JT.writable})}async run(e,t){const i=Fee.get(t);await async function(e,t){const i=new ZB(e,void 0);try{await e(i)}finally{i.finish()}}((async e=>{var t;await(null===(t=null==i?void 0:i.model.get())||void 0===t?void 0:t.triggerExplicitly(e)),null==i||i.playAccessibilitySignal(e)}))}}),Vh(Bee),Vh(Hee),Vh(class extends Fh{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:pe("vs/editor/contrib/inlineCompletions/browser/commands","action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:Dd.and(JT.writable,i7.inlineSuggestionVisible),kbOpts:{weight:101,primary:2065,kbExpr:Dd.and(JT.writable,i7.inlineSuggestionVisible)},menuOpts:[{menuId:bh.InlineSuggestionToolbar,title:pe("vs/editor/contrib/inlineCompletions/browser/commands","acceptWord","Accept Word"),group:"primary",order:2}]})}async run(e,t){var i;const n=Fee.get(t);await(null===(i=null==n?void 0:n.model.get())||void 0===i?void 0:i.acceptNextWord(n.editor))}}),Vh(class extends Fh{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:pe("vs/editor/contrib/inlineCompletions/browser/commands","action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:Dd.and(JT.writable,i7.inlineSuggestionVisible),kbOpts:{weight:101},menuOpts:[{menuId:bh.InlineSuggestionToolbar,title:pe("vs/editor/contrib/inlineCompletions/browser/commands","acceptLine","Accept Line"),group:"secondary",order:2}]})}async run(e,t){var i;const n=Fee.get(t);await(null===(i=null==n?void 0:n.model.get())||void 0===i?void 0:i.acceptNextLine(n.editor))}}),Vh(class extends Fh{constructor(){super({id:j1,label:pe("vs/editor/contrib/inlineCompletions/browser/commands","action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:i7.inlineSuggestionVisible,menuOpts:[{menuId:bh.InlineSuggestionToolbar,title:pe("vs/editor/contrib/inlineCompletions/browser/commands","accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:Dd.and(i7.inlineSuggestionVisible,JT.tabMovesFocus.toNegated(),i7.inlineSuggestionHasIndentationLessThanTabSize,B7.Visible.toNegated(),JT.hoverFocused.toNegated())}})}async run(e,t){var i;const n=Fee.get(t);n&&(null===(i=n.model.get())||void 0===i||i.accept(n.editor),n.editor.focus())}}),Vh(Wee),yh(Uee),b2.register(Kee);var Yee,qee=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},$ee=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let jee=Yee=class{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new gi,this.toUnhookForKeyboard=new gi,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const o=new P2(e);this.toUnhook.add(o),this.toUnhook.add(o.onMouseMoveOrRelevantKeyDown((([e,t])=>{this.startFindDefinitionFromMouse(e,null!=t?t:void 0)}))),this.toUnhook.add(o.onExecute((e=>{this.isEnabled(e)&&this.gotoDefinition(e.target.position,e.hasSideBySideModifier).catch((e=>{Jt(e)})).finally((()=>{this.removeLinkDecorations()}))}))),this.toUnhook.add(o.onCancel((()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null})))}static get(e){return e.getContribution(Yee.ID)}async startFindDefinitionFromCursor(e){await this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition((()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()}))),this.toUnhookForKeyboard.add(this.editor.onKeyDown((e=>{e&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())})))}startFindDefinitionFromMouse(e,t){if(9===e.target.type&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();const i=e.target.position;this.startFindDefinition(i)}async startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();const i=e?null===(t=this.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(e):null;if(!i)return this.currentWordAtPosition=null,void this.removeLinkDecorations();if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return;this.currentWordAtPosition=i;const n=new yX(this.editor,15);let o;this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Mr((t=>this.findDefinition(e,t)));try{o=await this.previousPromise}catch(sue){return void Jt(sue)}if(!o||!o.length||!n.validate(this.editor))return void this.removeLinkDecorations();const s=o[0].originSelectionRange?Un.lift(o[0].originSelectionRange):new Un(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);if(o.length>1){let e=s;for(const{originSelectionRange:t}of o)t&&(e=Un.plusRange(e,t));this.addDecoration(e,(new YM).appendText(pe("vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition","multipleResults","Click to show {0} definitions.",o.length)))}else{const e=o[0];if(!e.uri)return;this.textModelResolverService.createModelReference(e.uri).then((t=>{if(!t.object||!t.object.textEditorModel)return void t.dispose();const{object:{textEditorModel:i}}=t,{startLineNumber:n}=e.range;if(n<1||n>i.getLineCount())return void t.dispose();const o=this.getPreviewValue(i,n,e),r=this.languageService.guessLanguageIdByFilepathOrFirstLine(i.uri);this.addDecoration(s,o?(new YM).appendCodeblock(r||"",o):void 0),t.dispose()}))}}getPreviewValue(e,t,i){let n=i.range;return n.endLineNumber-n.startLineNumber>=Yee.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let n=e.getLineFirstNonWhitespaceColumn(t);for(let o=t+1;o{const i=!t&&this.editor.getOption(88)&&!this.isInPeekEditor(e);return new s5({openToSide:t,openInPeek:i,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e)}))}isInPeekEditor(e){const t=e.get(Zd);return Q2.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};jee.ID="editor.contrib.gotodefinitionatposition",jee.MAX_SOURCE_PREVIEW_LINES=8,jee=Yee=qee([$ee(1,sd),$ee(2,eg),$ee(3,lf)],jee),zh(jee.ID,jee,2);var Xee=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Jee=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class Qee{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let Zee=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new Ri,this.onDidChange=this._onDidChange.event,this._dispoables=new gi,this._markers=[],this._nextIdx=-1,An.isUri(e)?this._resourceFilter=t=>t.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),o=(e,t)=>{let i=Ls(e.resource.toString(),t.resource.toString());return 0===i&&(i="position"===n?Un.compareRangesUsingStarts(e,t)||uU.compare(e.severity,t.severity):uU.compare(e.severity,t.severity)||Un.compareRangesUsingStarts(e,t)),i},s=()=>{this._markers=this._markerService.read({resource:An.isUri(e)?e:void 0,severities:uU.Error|uU.Warning|uU.Info}),"function"==typeof e&&(this._markers=this._markers.filter((e=>this._resourceFilter(e.resource)))),this._markers.sort(o)};s(),this._dispoables.add(t.onMarkerChanged((e=>{this._resourceFilter&&!e.some((e=>this._resourceFilter(e)))||(s(),this._nextIdx=-1,this._onDidChange.fire())})))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!(!this._resourceFilter||!e)&&this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new Qee(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,o=this._markers.findIndex((t=>t.resource.toString()===e.uri.toString()));o<0&&(o=v(this._markers,{resource:e.uri},((e,t)=>Ls(e.resource.toString(),t.resource.toString()))),o<0&&(o=~o));for(let s=o;st.resource.toString()===e.toString()));if(!(i<0))for(;i=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},ste=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class rte{constructor(e,t,i,n,o){this._openerService=n,this._labelService=o,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new gi,this._editor=t;const s=document.createElement("div");s.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),s.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),s.appendChild(this._relatedBlock),this._disposables.add(Ll(this._relatedBlock,"click",(e=>{e.preventDefault();const t=this._relatedDiagnostics.get(e.target);t&&i(t)}))),this._scrollable=new CE(s,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll((e=>{s.style.left=`-${e.scrollLeft}px`,s.style.top=`-${e.scrollTop}px`}))),this._disposables.add(this._scrollable)}dispose(){di(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:o}=e;let s=((null==t?void 0:t.length)||0)+2;o&&(s+="string"==typeof o?o.length:o.value.length);const r=ws(i);this._lines=r.length,this._longestLineLength=0;for(const h of r)this._longestLineLength=Math.max(h.length+s,this._longestLineLength);wl(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let a=this._messageBlock;for(const h of r)a=document.createElement("div"),a.innerText=h,""===h&&(a.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(a);if(t||o){const e=document.createElement("span");if(e.classList.add("details"),a.appendChild(e),t){const i=document.createElement("span");i.innerText=t,i.classList.add("source"),e.appendChild(i)}if(o)if("string"==typeof o){const t=document.createElement("span");t.innerText=`(${o})`,t.classList.add("code"),e.appendChild(t)}else this._codeLink=yc("a.code-link"),this._codeLink.setAttribute("href",`${o.target.toString()}`),this._codeLink.onclick=e=>{this._openerService.open(o.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()},vc(this._codeLink,yc("span")).innerText=o.value,e.appendChild(this._codeLink)}if(wl(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),L(n)){const e=this._relatedBlock.appendChild(document.createElement("div"));e.style.paddingTop=`${Math.floor(.66*this._editor.getOption(67))}px`,this._lines+=1;for(const t of n){const i=document.createElement("div"),n=document.createElement("a");n.classList.add("filename"),n.innerText=`${this._labelService.getUriBasenameLabel(t.resource)}(${t.startLineNumber}, ${t.startColumn}): `,n.title=this._labelService.getUriLabel(t.resource),this._relatedDiagnostics.set(n,t);const o=document.createElement("span");o.innerText=t.message,i.appendChild(n),i.appendChild(o),this._lines+=1,e.appendChild(i)}}const l=this._editor.getOption(50),c=Math.ceil(l.typicalFullwidthCharacterWidth*this._longestLineLength*.75),d=l.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:c,scrollHeight:d})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case uU.Error:t=pe("vs/editor/contrib/gotoError/browser/gotoErrorWidget","Error","Error");break;case uU.Warning:t=pe("vs/editor/contrib/gotoError/browser/gotoErrorWidget","Warning","Warning");break;case uU.Info:t=pe("vs/editor/contrib/gotoError/browser/gotoErrorWidget","Info","Info");break;case uU.Hint:t=pe("vs/editor/contrib/gotoError/browser/gotoErrorWidget","Hint","Hint")}let i=pe("vs/editor/contrib/gotoError/browser/gotoErrorWidget","marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(i=`${n.getLineContent(e.startLineNumber)}, ${i}`),i}}let ate=nte=class extends t4{constructor(e,t,i,n,o,s,r){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},o),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=s,this._labelService=r,this._callOnDispose=new gi,this._onDidSelectRelatedInformation=new Ri,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=uU.Warning,this._backgroundColor=Kp.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(_te);let t=hte,i=ute;this._severity===uU.Warning?(t=gte,i=mte):this._severity===uU.Info&&(t=pte,i=fte);const n=e.getColor(t),o=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:o,primaryHeadingColor:e.getColor(n4),secondaryHeadingColor:e.getColor(o4)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun((e=>this.editor.focus())));const t=[],i=this._menuService.createMenu(nte.TitleMenu,this._contextKeyService);FW(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=vc(e,yc(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new rte(this._container,this.editor,(e=>this._onDidSelectRelatedInformation.fire(e)),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=Un.lift(e),o=this.editor.getPosition(),s=o&&n.containsPosition(o)?o:n.getStartPosition();super.show(s,this.computeRequiredHeight());const r=this.editor.getModel();if(r){const e=i>1?pe("vs/editor/contrib/gotoError/browser/gotoErrorWidget","problems","{0} of {1} problems",t,i):pe("vs/editor/contrib/gotoError/browser/gotoErrorWidget","change","{0} of {1} problem",t,i);this.setTitle(UI(r.uri),e)}this._icon.className=`codicon ${ite.className(uU.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(s,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};ate.TitleMenu=new bh("gotoErrorTitleMenu"),ate=nte=ote([ste(1,KE),ste(2,Ax),ste(3,vh),ste(4,td),ste(5,Zd),ste(6,xF)],ate);const lte=rb(Nb,kb),cte=rb(Ob,xb),dte=rb(Mb,Pb),hte=ib("editorMarkerNavigationError.background",{dark:lte,light:lte,hcDark:pb,hcLight:pb},pe("vs/editor/contrib/gotoError/browser/gotoErrorWidget","editorMarkerNavigationError","Editor marker navigation widget error color.")),ute=ib("editorMarkerNavigationError.headerBackground",{dark:sb(hte,.1),light:sb(hte,.1),hcDark:null,hcLight:null},pe("vs/editor/contrib/gotoError/browser/gotoErrorWidget","editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),gte=ib("editorMarkerNavigationWarning.background",{dark:cte,light:cte,hcDark:pb,hcLight:pb},pe("vs/editor/contrib/gotoError/browser/gotoErrorWidget","editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),mte=ib("editorMarkerNavigationWarning.headerBackground",{dark:sb(gte,.1),light:sb(gte,.1),hcDark:"#0C141F",hcLight:sb(gte,.2)},pe("vs/editor/contrib/gotoError/browser/gotoErrorWidget","editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),pte=ib("editorMarkerNavigationInfo.background",{dark:dte,light:dte,hcDark:pb,hcLight:pb},pe("vs/editor/contrib/gotoError/browser/gotoErrorWidget","editorMarkerNavigationInfo","Editor marker navigation widget info color.")),fte=ib("editorMarkerNavigationInfo.headerBackground",{dark:sb(pte,.1),light:sb(pte,.1),hcDark:null,hcLight:null},pe("vs/editor/contrib/gotoError/browser/gotoErrorWidget","editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),_te=ib("editorMarkerNavigation.background",{dark:yb,light:yb,hcDark:yb,hcLight:yb},pe("vs/editor/contrib/gotoError/browser/gotoErrorWidget","editorMarkerNavigationBackground","Editor marker navigation widget background."));var bte,vte=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Ste=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let Cte=bte=class{static get(e){return e.getContribution(bte.ID)}constructor(e,t,i,n,o){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=o,this._sessionDispoables=new gi,this._editor=e,this._widgetVisible=yte.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(ate,this._editor),this._widget.onDidClose((()=>this.close()),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition((e=>{var t,i,n;(null===(t=this._model)||void 0===t?void 0:t.selected)&&Un.containsPosition(null===(i=this._model)||void 0===i?void 0:i.selected.marker,e.position)||null===(n=this._model)||void 0===n||n.resetIndex()}))),this._sessionDispoables.add(this._model.onDidChange((()=>{if(!this._widget||!this._widget.position||!this._model)return;const e=this._model.find(this._editor.getModel().uri,this._widget.position);e?this._widget.updateMarker(e.marker):this._widget.showStale()}))),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation((e=>{this._editorService.openCodeEditor({resource:e.resource,options:{pinned:!0,revealIfOpened:!0,selection:Un.lift(e).collapseToStart()}},this._editor),this.close(!1)}))),this._sessionDispoables.add(this._editor.onDidChangeModel((()=>this._cleanUp()))),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new Wn(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}async nagivate(e,t){var i,n;if(this._editor.hasModel()){const o=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(o.move(e,this._editor.getModel(),this._editor.getPosition()),!o.selected)return;if(o.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const s=await this._editorService.openCodeEditor({resource:o.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:o.selected.marker}},this._editor);s&&(null===(i=bte.get(s))||void 0===i||i.close(),null===(n=bte.get(s))||void 0===n||n.nagivate(e,t))}else this._widget.showAtMarker(o.selected.marker,o.selected.index,o.selected.total)}}};Cte.ID="editor.contrib.markerController",Cte=bte=vte([Ste(1,ete),Ste(2,Zd),Ste(3,nd),Ste(4,td)],Cte);class Ete extends Fh{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}async run(e,t){var i;t.hasModel()&&(null===(i=Cte.get(t))||void 0===i||i.nagivate(this._next,this._multiFile))}}class wte extends Ete{constructor(){super(!0,!1,{id:wte.ID,label:wte.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:JT.focus,primary:578,weight:100},menuOpts:{menuId:ate.TitleMenu,title:wte.LABEL,icon:sY("marker-navigation-next",Yn.arrowDown,pe("vs/editor/contrib/gotoError/browser/gotoError","nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}wte.ID="editor.action.marker.next",wte.LABEL=pe("vs/editor/contrib/gotoError/browser/gotoError","markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class Tte extends Ete{constructor(){super(!1,!1,{id:Tte.ID,label:Tte.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:JT.focus,primary:1602,weight:100},menuOpts:{menuId:ate.TitleMenu,title:Tte.LABEL,icon:sY("marker-navigation-previous",Yn.arrowUp,pe("vs/editor/contrib/gotoError/browser/gotoError","previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}Tte.ID="editor.action.marker.prev",Tte.LABEL=pe("vs/editor/contrib/gotoError/browser/gotoError","markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)"),zh(Cte.ID,Cte,4),Vh(wte),Vh(Tte),Vh(class extends Ete{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:pe("vs/editor/contrib/gotoError/browser/gotoError","markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:JT.focus,primary:66,weight:100},menuOpts:{menuId:bh.MenubarGoMenu,title:pe("vs/editor/contrib/gotoError/browser/gotoError",{key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}),Vh(class extends Ete{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:pe("vs/editor/contrib/gotoError/browser/gotoError","markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:JT.focus,primary:1090,weight:100},menuOpts:{menuId:bh.MenubarGoMenu,title:pe("vs/editor/contrib/gotoError/browser/gotoError",{key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}});const yte=new Qd("markersNavigationVisible",!1);var Rte;Uh(new(Ph.bindToContribution(Cte.get))({id:"closeMarkersNavigation",precondition:yte,handler:e=>e.close(),kbOpts:{weight:150,kbExpr:JT.focus,primary:9,secondary:[1033]}})),function(e){e.NoAutoFocus="noAutoFocus",e.FocusIfVisible="focusIfVisible",e.AutoFocusImmediately="autoFocusImmediately"}(Rte||(Rte={}));var Lte=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Ite=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const Ate=yc;class Nte{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const kte={type:1,filter:{include:VZ.QuickFix},triggerAction:GZ.QuickFixHover};let Dte=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,o=i.getLineMaxColumn(n),s=[];for(const r of t){const t=r.range.startLineNumber===n?r.range.startColumn:1,a=r.range.endLineNumber===n?r.range.endColumn:o,l=this._markerDecorationsService.getMarker(i.uri,r);if(!l)continue;const c=new Un(e.range.startLineNumber,t,e.range.startLineNumber,a);s.push(new Nte(this,c,l))}return s}renderHoverParts(e,t){if(!t.length)return mi.None;const i=new gi;t.forEach((t=>e.fragment.appendChild(this.renderMarkerHover(t,i))));const n=1===t.length?t[0]:t.sort(((e,t)=>uU.compare(e.marker.severity,t.marker.severity)))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=Ate("div.hover-row");i.tabIndex=0;const n=vc(i,Ate("div.marker.hover-contents")),{source:o,message:s,code:r,relatedInformation:a}=e.marker;this._editor.applyFontInfo(n);const l=vc(n,Ate("span"));if(l.style.whiteSpace="pre-wrap",l.innerText=s,o||r)if(r&&"string"!=typeof r){const e=Ate("span");o&&(vc(e,Ate("span")).innerText=o);const i=vc(e,Ate("a.code-link"));i.setAttribute("href",r.target.toString()),t.add(yl(i,"click",(e=>{this._openerService.open(r.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()}))),vc(i,Ate("span")).innerText=r.value;const s=vc(n,e);s.style.opacity="0.6",s.style.paddingLeft="6px"}else{const e=vc(n,Ate("span"));e.style.opacity="0.6",e.style.paddingLeft="6px",e.innerText=o&&r?`${o}(${r})`:o||`(${r})`}if(L(a))for(const{message:c,resource:d,startLineNumber:h,startColumn:u}of a){const e=vc(n,Ate("div"));e.style.marginTop="8px";const i=vc(e,Ate("a"));i.innerText=`${UI(d)}(${h}, ${u}): `,i.style.cursor="pointer",t.add(yl(i,"click",(e=>{e.stopPropagation(),e.preventDefault(),this._openerService&&this._openerService.open(d,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:h,startColumn:u}}}).catch(Jt)})));const o=vc(e,Ate("span"));o.innerText=c,this._editor.applyFontInfo(o)}return i}renderMarkerStatusbar(e,t,i){if(t.marker.severity===uU.Error||t.marker.severity===uU.Warning||t.marker.severity===uU.Info){const i=Cte.get(this._editor);i&&e.statusBar.addAction({label:pe("vs/editor/contrib/hover/browser/markerHoverParticipant","view problem","View Problem"),commandId:wte.ID,run:()=>{e.hide(),i.showAtMarker(t.marker),this._editor.focus()}})}if(!this._editor.getOption(91)){const n=e.statusBar.append(Ate("div"));this.recentMarkerCodeActionsInfo&&(gU.makeKey(this.recentMarkerCodeActionsInfo.marker)===gU.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=pe("vs/editor/contrib/hover/browser/markerHoverParticipant","noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const o=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?mi.None:Ur((()=>n.textContent=pe("vs/editor/contrib/hover/browser/markerHoverParticipant","checkingForQuickFixes","Checking for quick fixes...")),200,i);n.textContent||(n.textContent=String.fromCharCode(160));const s=this.getCodeActions(t.marker);i.add(ui((()=>s.cancel()))),s.then((s=>{if(o.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:s.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions)return s.dispose(),void(n.textContent=pe("vs/editor/contrib/hover/browser/markerHoverParticipant","noQuickFixes","No quick fixes available"));n.style.display="none";let r=!1;i.add(ui((()=>{r||s.dispose()}))),e.statusBar.addAction({label:pe("vs/editor/contrib/hover/browser/markerHoverParticipant","quick fixes","Quick Fix..."),commandId:$Z,run:t=>{r=!0;const i=G0.get(this._editor),n=Hl(t);e.hide(),null==i||i.showCodeActions(kte,s,{x:n.left,y:n.top,width:n.width,height:n.height})}})}),Jt)}}getCodeActions(e){return Mr((t=>i0(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new Un(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),kte,PF.None,t)))}};function Ote(e,t){let i=0;for(let n=0;nn-1)return[];const{tabSize:r,indentSize:a,insertSpaces:l}=e.getOptions(),c=(e,t)=>(t=t||1,BT.shiftIndent(e,e.length+t,r,a,l)),d=(e,t)=>(t=t||1,BT.unshiftIndent(e,e.length+t,r,a,l)),h=[];let u;const g=e.getLineContent(i);let m=g;if(null!=o){u=o;const e=ys(g);m=u+g.substring(e.length),s.decreaseIndentPattern&&s.decreaseIndentPattern.test(m)&&(u=d(u),m=u+g.substring(e.length)),g!==m&&h.push(cF.replaceMove(new Vn(i,1,i,e.length+1),aT(u,a,l)))}else u=ys(g);let p=u;s.increaseIndentPattern&&s.increaseIndentPattern.test(m)?(p=c(p),u=c(u)):s.indentNextLinePattern&&s.indentNextLinePattern.test(m)&&(p=c(p));for(let f=++i;f<=n;f++){const t=e.getLineContent(f),i=ys(t),n=p+t.substring(i.length);s.decreaseIndentPattern&&s.decreaseIndentPattern.test(n)&&(p=d(p),u=d(u)),i!==p&&h.push(cF.replaceMove(new Vn(f,1,f,i.length+1),aT(p,a,l))),s.unIndentedLinePattern&&s.unIndentedLinePattern.test(t)||(s.increaseIndentPattern&&s.increaseIndentPattern.test(n)?(u=c(u),p=u):p=s.indentNextLinePattern&&s.indentNextLinePattern.test(n)?c(p):u)}return h}Dte=Lte([Ite(1,N_),Ite(2,Ax),Ite(3,lf)],Dte),zh(z5.ID,z5,2),Vh(class extends Fh{constructor(){super({id:Y1,label:pe("vs/editor/contrib/hover/browser/hoverActions",{key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse."]},"Show or Focus Hover"),metadata:{description:fe(0,"Show or focus the editor hover which shows documentation, references, and other content for a symbol at the current cursor position."),args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if and when the hover should take focus upon being triggered by this action.",enum:[Rte.NoAutoFocus,Rte.FocusIfVisible,Rte.AutoFocusImmediately],enumDescriptions:[pe("vs/editor/contrib/hover/browser/hoverActions","showOrFocusHover.focus.noAutoFocus","The hover will not automatically take focus."),pe("vs/editor/contrib/hover/browser/hoverActions","showOrFocusHover.focus.focusIfVisible","The hover will take focus only if it is already visible."),pe("vs/editor/contrib/hover/browser/hoverActions","showOrFocusHover.focus.autoFocusImmediately","The hover will automatically take focus when it appears.")],default:Rte.FocusIfVisible}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:JT.editorTextFocus,primary:$i(2089,2087),weight:100}})}run(e,t,i){if(!t.hasModel())return;const n=z5.get(t);if(!n)return;const o=null==i?void 0:i.focus;let s=Rte.FocusIfVisible;Object.values(Rte).includes(o)?s=o:"boolean"==typeof o&&o&&(s=Rte.AutoFocusImmediately);const r=e=>{const i=t.getPosition(),o=new Un(i.lineNumber,i.column,i.lineNumber,i.column);n.showContentHover(o,1,1,e)},a=2===t.getOption(2);n.isHoverVisible?s!==Rte.NoAutoFocus?n.focus():r(a):r(a||s===Rte.AutoFocusImmediately)}}),Vh(class extends Fh{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:pe("vs/editor/contrib/hover/browser/hoverActions",{key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0,metadata:{description:fe(0,"Show the definition preview hover in the editor.")}})}run(e,t){const i=z5.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const o=new Un(n.lineNumber,n.column,n.lineNumber,n.column),s=jee.get(t);s&&s.startFindDefinitionFromCursor(n).then((()=>{i.showContentHover(o,1,1,!0)}))}}),Vh(class extends Fh{constructor(){super({id:"editor.action.scrollUpHover",label:pe("vs/editor/contrib/hover/browser/hoverActions",{key:"scrollUpHover",comment:["Action that allows to scroll up in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Up Hover"),alias:"Scroll Up Hover",precondition:JT.hoverFocused,kbOpts:{kbExpr:JT.hoverFocused,primary:16,weight:100},metadata:{description:fe(0,"Scroll up the editor hover.")}})}run(e,t){const i=z5.get(t);i&&i.scrollUp()}}),Vh(class extends Fh{constructor(){super({id:"editor.action.scrollDownHover",label:pe("vs/editor/contrib/hover/browser/hoverActions",{key:"scrollDownHover",comment:["Action that allows to scroll down in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Down Hover"),alias:"Scroll Down Hover",precondition:JT.hoverFocused,kbOpts:{kbExpr:JT.hoverFocused,primary:18,weight:100},metadata:{description:fe(0,"Scroll down the editor hover.")}})}run(e,t){const i=z5.get(t);i&&i.scrollDown()}}),Vh(class extends Fh{constructor(){super({id:"editor.action.scrollLeftHover",label:pe("vs/editor/contrib/hover/browser/hoverActions",{key:"scrollLeftHover",comment:["Action that allows to scroll left in the hover widget with the left arrow when the hover widget is focused."]},"Scroll Left Hover"),alias:"Scroll Left Hover",precondition:JT.hoverFocused,kbOpts:{kbExpr:JT.hoverFocused,primary:15,weight:100},metadata:{description:fe(0,"Scroll left the editor hover.")}})}run(e,t){const i=z5.get(t);i&&i.scrollLeft()}}),Vh(class extends Fh{constructor(){super({id:"editor.action.scrollRightHover",label:pe("vs/editor/contrib/hover/browser/hoverActions",{key:"scrollRightHover",comment:["Action that allows to scroll right in the hover widget with the right arrow when the hover widget is focused."]},"Scroll Right Hover"),alias:"Scroll Right Hover",precondition:JT.hoverFocused,kbOpts:{kbExpr:JT.hoverFocused,primary:17,weight:100},metadata:{description:fe(0,"Scroll right the editor hover.")}})}run(e,t){const i=z5.get(t);i&&i.scrollRight()}}),Vh(class extends Fh{constructor(){super({id:"editor.action.pageUpHover",label:pe("vs/editor/contrib/hover/browser/hoverActions",{key:"pageUpHover",comment:["Action that allows to page up in the hover widget with the page up command when the hover widget is focused."]},"Page Up Hover"),alias:"Page Up Hover",precondition:JT.hoverFocused,kbOpts:{kbExpr:JT.hoverFocused,primary:11,secondary:[528],weight:100},metadata:{description:fe(0,"Page up the editor hover.")}})}run(e,t){const i=z5.get(t);i&&i.pageUp()}}),Vh(class extends Fh{constructor(){super({id:"editor.action.pageDownHover",label:pe("vs/editor/contrib/hover/browser/hoverActions",{key:"pageDownHover",comment:["Action that allows to page down in the hover widget with the page down command when the hover widget is focused."]},"Page Down Hover"),alias:"Page Down Hover",precondition:JT.hoverFocused,kbOpts:{kbExpr:JT.hoverFocused,primary:12,secondary:[530],weight:100},metadata:{description:fe(0,"Page down the editor hover.")}})}run(e,t){const i=z5.get(t);i&&i.pageDown()}}),Vh(class extends Fh{constructor(){super({id:"editor.action.goToTopHover",label:pe("vs/editor/contrib/hover/browser/hoverActions",{key:"goToTopHover",comment:["Action that allows to go to the top of the hover widget with the home command when the hover widget is focused."]},"Go To Top Hover"),alias:"Go To Bottom Hover",precondition:JT.hoverFocused,kbOpts:{kbExpr:JT.hoverFocused,primary:14,secondary:[2064],weight:100},metadata:{description:fe(0,"Go to the top of the editor hover.")}})}run(e,t){const i=z5.get(t);i&&i.goToTop()}}),Vh(class extends Fh{constructor(){super({id:"editor.action.goToBottomHover",label:pe("vs/editor/contrib/hover/browser/hoverActions",{key:"goToBottomHover",comment:["Action that allows to go to the bottom in the hover widget with the end command when the hover widget is focused."]},"Go To Bottom Hover"),alias:"Go To Bottom Hover",precondition:JT.hoverFocused,kbOpts:{kbExpr:JT.hoverFocused,primary:13,secondary:[2066],weight:100},metadata:{description:fe(0,"Go to the bottom of the editor hover.")}})}run(e,t){const i=z5.get(t);i&&i.goToBottom()}}),Vh(class extends Fh{constructor(){super({id:q1,label:pe("vs/editor/contrib/hover/browser/hoverActions",{key:"increaseHoverVerbosityLevel",comment:["Label for action that will increase the hover verbosity level."]},"Increase Hover Verbosity Level"),alias:"Increase Hover Verbosity Level",precondition:JT.hoverFocused})}run(e,t){var i;null===(i=z5.get(t))||void 0===i||i.updateFocusedMarkdownHoverVerbosityLevel(Jn.Increase)}}),Vh(class extends Fh{constructor(){super({id:$1,label:pe("vs/editor/contrib/hover/browser/hoverActions",{key:"decreaseHoverVerbosityLevel",comment:["Label for action that will decrease the hover verbosity level."]},"Decrease Hover Verbosity Level"),alias:"Decrease Hover Verbosity Level",precondition:JT.hoverFocused})}run(e,t,i){var n;null===(n=z5.get(t))||void 0===n||n.updateFocusedMarkdownHoverVerbosityLevel(Jn.Decrease)}}),b2.register(I2),b2.register(Dte),XE(((e,t)=>{const i=e.getColor(qb);i&&(t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${i.transparent(.5)}; }`))}));var Pte=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Fte=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class Bte extends Fh{constructor(){super({id:Bte.ID,label:pe("vs/editor/contrib/indentation/browser/indentation","indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:JT.writable,metadata:{description:fe(0,"Convert the tab indentation to spaces.")}})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),o=t.getSelection();if(!o)return;const s=new $te(o,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}Bte.ID="editor.action.indentationToSpaces";class Hte extends Fh{constructor(){super({id:Hte.ID,label:pe("vs/editor/contrib/indentation/browser/indentation","indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:JT.writable,metadata:{description:fe(0,"Convert the spaces indentation to tabs.")}})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),o=t.getSelection();if(!o)return;const s=new jte(o,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}Hte.ID="editor.action.indentationToTabs";class Wte extends Fh{constructor(e,t,i){super(i),this.insertSpaces=e,this.displaySizeOnly=t}run(e,t){const i=e.get(OU),n=e.get(od),o=t.getModel();if(!o)return;const s=n.getCreationOptions(o.getLanguageId(),o.uri,o.isForSimpleWidget),r=o.getOptions(),a=[1,2,3,4,5,6,7,8].map((e=>({id:e.toString(),label:e.toString(),description:e===s.tabSize&&e===r.tabSize?pe("vs/editor/contrib/indentation/browser/indentation","configuredTabSize","Configured Tab Size"):e===s.tabSize?pe("vs/editor/contrib/indentation/browser/indentation","defaultTabSize","Default Tab Size"):e===r.tabSize?pe("vs/editor/contrib/indentation/browser/indentation","currentTabSize","Current Tab Size"):void 0}))),l=Math.min(o.getOptions().tabSize-1,7);setTimeout((()=>{i.pick(a,{placeHolder:pe("vs/editor/contrib/indentation/browser/indentation",{key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:a[l]}).then((e=>{if(e&&o&&!o.isDisposed()){const t=parseInt(e.label,10);this.displaySizeOnly?o.updateOptions({tabSize:t}):o.updateOptions({tabSize:t,indentSize:t,insertSpaces:this.insertSpaces})}}))}),50)}}class Ute extends Wte{constructor(){super(!1,!1,{id:Ute.ID,label:pe("vs/editor/contrib/indentation/browser/indentation","indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0,metadata:{description:fe(0,"Use indentation with tabs.")}})}}Ute.ID="editor.action.indentUsingTabs";class Vte extends Wte{constructor(){super(!0,!1,{id:Vte.ID,label:pe("vs/editor/contrib/indentation/browser/indentation","indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0,metadata:{description:fe(0,"Use indentation with spaces.")}})}}Vte.ID="editor.action.indentUsingSpaces";class Gte extends Wte{constructor(){super(!0,!0,{id:Gte.ID,label:pe("vs/editor/contrib/indentation/browser/indentation","changeTabDisplaySize","Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0,metadata:{description:fe(0,"Change the space size equivalent of the tab.")}})}}Gte.ID="editor.action.changeTabDisplaySize";class zte extends Fh{constructor(){super({id:zte.ID,label:pe("vs/editor/contrib/indentation/browser/indentation","detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0,metadata:{description:fe(0,"Detect the indentation from content.")}})}run(e,t){const i=e.get(od),n=t.getModel();if(!n)return;const o=i.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget);n.detectIndentation(o.insertSpaces,o.tabSize)}}zte.ID="editor.action.detectIndentation";class Kte{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(const i of e)i.range&&"string"==typeof i.text&&this._edits.push(i)}getEditOperations(e,t){for(const n of this._edits)t.addEditOperation(Un.lift(n.range),n.text);let i=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}let Yte=class{constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new gi,this.callOnModel=new gi,this.callOnDispose.add(e.onDidChangeConfiguration((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModel((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModelLanguage((()=>this.update())))}update(){this.callOnModel.clear(),this.editor.getOption(12)<4||this.editor.getOption(55)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste((({range:e})=>{this.trigger(e)})))}trigger(e){const t=this.editor.getSelections();if(null===t||t.length>1)return;const i=this.editor.getModel();if(!i)return;if(!i.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;const n=this.editor.getOption(12),{tabSize:o,indentSize:s,insertSpaces:r}=i.getOptions(),a=[],l={shiftIndent:e=>BT.shiftIndent(e,e.length+1,o,s,r),unshiftIndent:e=>BT.unshiftIndent(e,e.length+1,o,s,r)};let c=e.startLineNumber;for(;c<=e.endLineNumber&&this.shouldIgnoreLine(i,c);)c++;if(c>e.endLineNumber)return;let d=i.getLineContent(c);if(!/\S/.test(d.substring(0,e.startColumn-1))){const e=VT(n,i,i.getLanguageId(),c,l,this._languageConfigurationService);if(null!==e){const t=ys(d),n=Ote(e,o);if(n!==Ote(t,o)){const e=xte(n,o,r);a.push({range:new Un(c,1,c,t.length+1),text:e}),d=e+d.substr(t.length)}else{const e=GT(i,c,this._languageConfigurationService);if(0===e||8===e)return}}}const h=c;for(;ci.tokenization.getLineTokens(e),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(e,t)=>i.getLanguageIdAtPosition(e,t)},getLineContent:e=>e===h?d:i.getLineContent(e)},i.getLanguageId(),c+1,l,this._languageConfigurationService);if(null!==t){const n=Ote(t,o),s=Ote(ys(i.getLineContent(c+1)),o);if(n!==s){const t=n-s;for(let n=c+1;n<=e.endLineNumber;n++){const e=ys(i.getLineContent(n)),s=xte(Ote(e,o)+t,o,r);s!==e&&a.push({range:new Un(n,1,n,e.length+1),text:s})}}}}if(a.length>0){this.editor.pushUndoStop();const e=new Kte(a,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);const i=e.getLineFirstNonWhitespaceColumn(t);if(0===i)return!0;const n=e.tokenization.getLineTokens(t);if(n.getCount()>0){const e=n.findTokenIndexAtOffset(i);if(e>=0&&1===n.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};function qte(e,t,i,n){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let o="";for(let r=0;r0&&(t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop())}}),Vh(class extends Fh{constructor(){super({id:"editor.action.reindentselectedlines",label:pe("vs/editor/contrib/indentation/browser/indentation","editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:JT.writable,metadata:{description:fe(0,"Reindent the selected lines of the editor.")}})}run(e,t){const i=e.get(Lg),n=t.getModel();if(!n)return;const o=t.getSelections();if(null===o)return;const s=[];for(const r of o){let e=r.startLineNumber,t=r.endLineNumber;if(e!==t&&1===r.endColumn&&t--,1===e){if(e===t)continue}else e--;const o=Mte(n,i,e,t);s.push(...o)}s.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop())}}),zh(S5.ID,S5,1),b2.register(y5);class Xte{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new Vn(i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new Vn(i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)}}var Jte,Qte=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Zte=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let eie=Jte=class{static get(e){return e.getContribution(Jte.ID)}constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(e,t){var i;null===(i=this.currentRequest)||void 0===i||i.cancel();const n=this.editor.getSelection(),o=this.editor.getModel();if(!o||!n)return;let s=n;if(s.startLineNumber!==s.endLineNumber)return;const r=new yX(this.editor,5),a=o.uri;return this.editorWorkerService.canNavigateValueSet(a)?(this.currentRequest=Mr((e=>this.editorWorkerService.navigateValueSet(a,s,t))),this.currentRequest.then((t=>{var i;if(!t||!t.range||!t.value)return;if(!r.validate(this.editor))return;const n=Un.lift(t.range);let o=t.range;const a=t.value.length-(s.endColumn-s.startColumn);o={startLineNumber:o.startLineNumber,startColumn:o.startColumn,endLineNumber:o.endLineNumber,endColumn:o.startColumn+t.value.length},a>1&&(s=new Vn(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn+a-1));const l=new Xte(n,s,t.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,l),this.editor.pushUndoStop(),this.decorations.set([{range:o,options:Jte.DECORATION}]),null===(i=this.decorationRemover)||void 0===i||i.cancel(),this.decorationRemover=Wr(350),this.decorationRemover.then((()=>this.decorations.clear())).catch(Jt)})).catch(Jt)):Promise.resolve(void 0)}};eie.ID="editor.contrib.inPlaceReplaceController",eie.DECORATION=VN.register({description:"in-place-replace",className:"valueSetReplacement"}),eie=Jte=Qte([Zte(1,hU)],eie),zh(eie.ID,eie,4),Vh(class extends Fh{constructor(){super({id:"editor.action.inPlaceReplace.up",label:pe("vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace","InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:JT.writable,kbOpts:{kbExpr:JT.editorTextFocus,primary:3159,weight:100}})}run(e,t){const i=eie.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}),Vh(class extends Fh{constructor(){super({id:"editor.action.inPlaceReplace.down",label:pe("vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace","InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:JT.writable,kbOpts:{kbExpr:JT.editorTextFocus,primary:3161,weight:100}})}run(e,t){const i=eie.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}),Vh(class extends Fh{constructor(){super({id:"expandLineSelection",label:pe("vs/editor/contrib/lineSelection/browser/lineSelection","expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:JT.textInputFocus,primary:2090}})}run(e,t,i){if(i=i||{},!t.hasModel())return;const n=t._getViewModel();n.model.pushStackElement(),n.setCursorStates(i.source,3,NT.expandLineSelection(n,n.getCursorStates())),n.revealAllCursors(i.source,!0)}});class tie{constructor(e,t,i){this._selection=e,this._cursors=t,this._selectionId=null,this._trimInRegexesAndStrings=i}getEditOperations(e,t){const i=function(e,t,i){t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber));for(let a=t.length-2;a>=0;a--)t[a].lineNumber===t[a+1].lineNumber&&t.splice(a,1);const n=[];let o=0,s=0;const r=t.length;for(let a=1,l=e.getLineCount();a<=l;a++){const l=e.getLineContent(a),c=l.length+1;let d=0;if(s=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},oie=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let sie=class{constructor(e,t,i,n){this._languageConfigurationService=n,this._selection=e,this._isMovingDown=t,this._autoIndent=i,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){const i=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===i)return void(this._selectionId=t.trackSelection(this._selection));if(!this._isMovingDown&&1===this._selection.startLineNumber)return void(this._selectionId=t.trackSelection(this._selection));this._moveEndPositionDown=!1;let n=this._selection;n.startLineNumbere.tokenization.getLineTokens(t),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(t,i)=>e.getLanguageIdAtPosition(t,i)},getLineContent:null};if(n.startLineNumber===n.endLineNumber&&1===e.getLineMaxColumn(n.startLineNumber)){const i=n.startLineNumber,o=this._isMovingDown?i+1:i-1;1===e.getLineMaxColumn(o)?t.addEditOperation(new Un(1,1,1,1),null):(t.addEditOperation(new Un(i,1,i,1),e.getLineContent(o)),t.addEditOperation(new Un(o,1,o,e.getLineMaxColumn(o)),null)),n=new Vn(o,1,o,1)}else{let i,s;if(this._isMovingDown){i=n.endLineNumber+1,s=e.getLineContent(i),t.addEditOperation(new Un(i-1,e.getLineMaxColumn(i-1),i,e.getLineMaxColumn(i)),null);let c=s;if(this.shouldAutoIndent(e,n)){const d=this.matchEnterRule(e,a,o,i,n.startLineNumber-1);if(null!==d){const t=xte(d+Ote(ys(e.getLineContent(i)),o),o,r);c=t+this.trimStart(s)}else{l.getLineContent=t=>t===n.startLineNumber?e.getLineContent(i):e.getLineContent(t);const t=VT(this._autoIndent,l,e.getLanguageIdAtPosition(i,1),n.startLineNumber,a,this._languageConfigurationService);if(null!==t){const n=ys(e.getLineContent(i)),a=Ote(t,o);if(a!==Ote(n,o)){const e=xte(a,o,r);c=e+this.trimStart(s)}}}t.addEditOperation(new Un(n.startLineNumber,1,n.startLineNumber,1),c+"\n");const h=this.matchEnterRuleMovingDown(e,a,o,n.startLineNumber,i,c);if(null!==h)0!==h&&this.getIndentEditsOfMovingBlock(e,t,n,o,r,h);else{l.getLineContent=t=>t===n.startLineNumber?c:t>=n.startLineNumber+1&&t<=n.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t);const s=VT(this._autoIndent,l,e.getLanguageIdAtPosition(i,1),n.startLineNumber+1,a,this._languageConfigurationService);if(null!==s){const i=ys(e.getLineContent(n.startLineNumber)),a=Ote(s,o),l=Ote(i,o);if(a!==l){const i=a-l;this.getIndentEditsOfMovingBlock(e,t,n,o,r,i)}}}}else t.addEditOperation(new Un(n.startLineNumber,1,n.startLineNumber,1),c+"\n")}else if(i=n.startLineNumber-1,s=e.getLineContent(i),t.addEditOperation(new Un(i,1,i+1,1),null),t.addEditOperation(new Un(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),"\n"+s),this.shouldAutoIndent(e,n)){l.getLineContent=t=>t===i?e.getLineContent(n.startLineNumber):e.getLineContent(t);const s=this.matchEnterRule(e,a,o,n.startLineNumber,n.startLineNumber-2);if(null!==s)0!==s&&this.getIndentEditsOfMovingBlock(e,t,n,o,r,s);else{const s=VT(this._autoIndent,l,e.getLanguageIdAtPosition(n.startLineNumber,1),i,a,this._languageConfigurationService);if(null!==s){const i=ys(e.getLineContent(n.startLineNumber)),a=Ote(s,o),l=Ote(i,o);if(a!==l){const i=a-l;this.getIndentEditsOfMovingBlock(e,t,n,o,r,i)}}}}}this._selectionId=t.trackSelection(n)}buildIndentConverter(e,t,i){return{shiftIndent:n=>BT.shiftIndent(n,n.length+1,e,t,i),unshiftIndent:n=>BT.unshiftIndent(n,n.length+1,e,t,i)}}parseEnterResult(e,t,i,n,o){if(o){let s=o.indentation;o.indentAction===uu.None||o.indentAction===uu.Indent?s=o.indentation+o.appendText:o.indentAction===uu.IndentOutdent?s=o.indentation:o.indentAction===uu.Outdent&&(s=t.unshiftIndent(o.indentation)+o.appendText);const r=e.getLineContent(n);if(this.trimStart(r).indexOf(this.trimStart(s))>=0){const o=ys(e.getLineContent(n));let r=ys(s);const a=GT(e,n,this._languageConfigurationService);return null!==a&&2&a&&(r=t.unshiftIndent(r)),Ote(r,i)-Ote(o,i)}}return null}matchEnterRuleMovingDown(e,t,i,n,o,s){if(Rs(s)>=0){const s=e.getLineMaxColumn(o),r=DT(this._autoIndent,e,new Un(o,s,o,s),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,r)}{let o=n-1;for(;o>=1&&!(Rs(e.getLineContent(o))>=0);)o--;if(o<1||n>e.getLineCount())return null;const s=e.getLineMaxColumn(o),r=DT(this._autoIndent,e,new Un(o,s,o,s),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,r)}}matchEnterRule(e,t,i,n,o,s){let r=o;for(;r>=1;){let t;if(t=r===o&&void 0!==s?s:e.getLineContent(r),Rs(t)>=0)break;r--}if(r<1||n>e.getLineCount())return null;const a=e.getLineMaxColumn(r),l=DT(this._autoIndent,e,new Un(r,a,r,a),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,l)}trimStart(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4)return!1;if(!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;const i=e.getLanguageIdAtPosition(t.startLineNumber,1);return i===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==this._languageConfigurationService.getLanguageConfiguration(i).indentRulesSupport}getIndentEditsOfMovingBlock(e,t,i,n,o,s){for(let r=i.startLineNumber;r<=i.endLineNumber;r++){const a=ys(e.getLineContent(r)),l=xte(Ote(a,n)+s,n,o);l!==a&&(t.addEditOperation(new Un(r,1,r,a.length+1),l),r===i.endLineNumber&&i.endColumn<=a.length+1&&""===l&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&i.startLineNumber=o)return null;const s=[];for(let a=n;a<=o;a++)s.push(e.getLineContent(a));let r=s.slice(0);return r.sort(rie.getCollator().compare),!0===i&&(r=r.reverse()),{startLineNumber:n,endLineNumber:o,before:s,after:r}}rie._COLLATOR=null;class lie extends Fh{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;const i=t.getSelections().map(((e,t)=>({selection:e,index:t,ignore:!1})));i.sort(((e,t)=>Un.compareRangesUsingStarts(e.selection,t.selection)));let n=i[0];for(let s=1;snew Wn(e.positionLineNumber,e.positionColumn))));const o=t.getSelection();if(null===o)return;const s=e.get($u),r=t.getModel(),a=s.getValue("files.trimTrailingWhitespaceInRegexAndStrings",{overrideIdentifier:null==r?void 0:r.getLanguageId(),resource:null==r?void 0:r.uri}),l=new tie(o,n,a);t.pushUndoStop(),t.executeCommands(this.id,[l]),t.pushUndoStop()}}hie.ID="editor.action.trimTrailingWhitespace";class uie extends Fh{run(e,t){if(!t.hasModel())return;const i=t.getSelection(),n=this._getRangesToDelete(t),o=[];for(let a=0,l=n.length-1;acF.replace(e,"")));t.pushUndoStop(),t.executeEdits(this.id,r,s),t.pushUndoStop()}}class gie extends Fh{run(e,t){const i=t.getSelections();if(null===i)return;const n=t.getModel();if(null===n)return;const o=t.getOption(131),s=[];for(const r of i)if(r.isEmpty()){const e=r.getStartPosition(),i=t.getConfiguredWordAtPosition(e);if(!i)continue;const a=new Un(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),l=n.getValueInRange(a);s.push(cF.replace(a,this._modifyText(l,o)))}else{const e=n.getValueInRange(r);s.push(cF.replace(r,this._modifyText(e,o)))}t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop()}}class mie{constructor(e,t){this._pattern=e,this._flags=t,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch(H){}}return this._actual}isSupported(){return null!==this.get()}}class pie extends gie{constructor(){super({id:"editor.action.transformToTitlecase",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:JT.writable})}_modifyText(e,t){const i=pie.titleBoundary.get();return i?e.toLocaleLowerCase().replace(i,(e=>e.toLocaleUpperCase())):e}}pie.titleBoundary=new mie("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu");class fie extends gie{constructor(){super({id:"editor.action.transformToSnakecase",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:JT.writable})}_modifyText(e,t){const i=fie.caseBoundary.get(),n=fie.singleLetters.get();return i&&n?e.replace(i,"$1_$2").replace(n,"$1_$2$3").toLocaleLowerCase():e}}fie.caseBoundary=new mie("(\\p{Ll})(\\p{Lu})","gmu"),fie.singleLetters=new mie("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu");class _ie extends gie{constructor(){super({id:"editor.action.transformToCamelcase",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","editor.transformToCamelcase","Transform to Camel Case"),alias:"Transform to Camel Case",precondition:JT.writable})}_modifyText(e,t){const i=_ie.wordBoundary.get();if(!i)return e;const n=e.split(i);return n.shift()+n.map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}_ie.wordBoundary=new mie("[_\\s-]","gm");class bie extends gie{constructor(){super({id:"editor.action.transformToPascalcase",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","editor.transformToPascalcase","Transform to Pascal Case"),alias:"Transform to Pascal Case",precondition:JT.writable})}_modifyText(e,t){const i=bie.wordBoundary.get(),n=bie.wordBoundaryToMaintain.get();return i&&n?e.split(n).map((e=>e.split(i))).flat().map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join(""):e}}bie.wordBoundary=new mie("[_\\s-]","gm"),bie.wordBoundaryToMaintain=new mie("(?<=\\.)","gm");class vie extends gie{static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every((e=>e.isSupported()))}constructor(){super({id:"editor.action.transformToKebabcase",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:JT.writable})}_modifyText(e,t){const i=vie.caseBoundary.get(),n=vie.singleLetters.get(),o=vie.underscoreBoundary.get();return i&&n&&o?e.replace(o,"$1-$3").replace(i,"$1-$2").replace(n,"$1-$2").toLocaleLowerCase():e}}vie.caseBoundary=new mie("(\\p{Ll})(\\p{Lu})","gmu"),vie.singleLetters=new mie("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu"),vie.underscoreBoundary=new mie("(\\S)(_)(\\S)","gm"),Vh(class extends lie{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:JT.writable,kbOpts:{kbExpr:JT.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:bh.MenubarSelectionMenu,group:"2_line",title:pe("vs/editor/contrib/linesOperations/browser/linesOperations",{key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}),Vh(class extends lie{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:JT.writable,kbOpts:{kbExpr:JT.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:bh.MenubarSelectionMenu,group:"2_line",title:pe("vs/editor/contrib/linesOperations/browser/linesOperations",{key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}),Vh(class extends Fh{constructor(){super({id:"editor.action.duplicateSelection",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:JT.writable,menuOpts:{menuId:bh.MenubarSelectionMenu,group:"2_line",title:pe("vs/editor/contrib/linesOperations/browser/linesOperations",{key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})}run(e,t,i){if(!t.hasModel())return;const n=[],o=t.getSelections(),s=t.getModel();for(const r of o)if(r.isEmpty())n.push(new iie(r,!0));else{const e=new Vn(r.endLineNumber,r.endColumn,r.endLineNumber,r.endColumn);n.push(new ST(e,s.getValueInRange(r)))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}),Vh(class extends cie{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:JT.writable,kbOpts:{kbExpr:JT.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:bh.MenubarSelectionMenu,group:"2_line",title:pe("vs/editor/contrib/linesOperations/browser/linesOperations",{key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}),Vh(class extends cie{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:JT.writable,kbOpts:{kbExpr:JT.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:bh.MenubarSelectionMenu,group:"2_line",title:pe("vs/editor/contrib/linesOperations/browser/linesOperations",{key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}),Vh(class extends die{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:JT.writable})}}),Vh(class extends die{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:JT.writable})}}),Vh(class extends Fh{constructor(){super({id:"editor.action.removeDuplicateLines",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","lines.deleteDuplicates","Delete Duplicate Lines"),alias:"Delete Duplicate Lines",precondition:JT.writable})}run(e,t){if(!t.hasModel())return;const i=t.getModel();if(1===i.getLineCount()&&1===i.getLineMaxColumn(1))return;const n=[],o=[];let s=0,r=!0,a=t.getSelections();1===a.length&&a[0].isEmpty()&&(a=[new Vn(1,1,i.getLineCount(),i.getLineMaxColumn(i.getLineCount()))],r=!1);for(const l of a){const e=new Set,t=[];for(let n=l.startLineNumber;n<=l.endLineNumber;n++){const o=i.getLineContent(n);e.has(o)||(t.push(o),e.add(o))}const r=new Vn(l.startLineNumber,1,l.endLineNumber,i.getLineMaxColumn(l.endLineNumber)),a=l.startLineNumber-s,c=new Vn(a,1,a+t.length-1,t[t.length-1].length);n.push(cF.replace(r,t.join("\n"))),o.push(c),s+=l.endLineNumber-l.startLineNumber+1-t.length}t.pushUndoStop(),t.executeEdits(this.id,n,r?o:void 0),t.pushUndoStop()}}),Vh(hie),Vh(class extends Fh{constructor(){super({id:"editor.action.deleteLines",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","lines.delete","Delete Line"),alias:"Delete Line",precondition:JT.writable,kbOpts:{kbExpr:JT.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;const i=this._getLinesToRemove(t),n=t.getModel();if(1===n.getLineCount()&&1===n.getLineMaxColumn(1))return;let o=0;const s=[],r=[];for(let a=0,l=i.length;a1&&(t-=1,c=n.getLineMaxColumn(t)),s.push(cF.replace(new Vn(t,c,l,d),"")),r.push(new Vn(t-o,e.positionColumn,t-o,e.positionColumn)),o+=e.endLineNumber-e.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,s,r),t.pushUndoStop()}_getLinesToRemove(e){const t=e.getSelections().map((e=>{let t=e.endLineNumber;return e.startLineNumbere.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber));const i=[];let n=t[0];for(let o=1;o=t[o].startLineNumber?n.endLineNumber=t[o].endLineNumber:(i.push(n),n=t[o]);return i.push(n),i}}),Vh(class extends Fh{constructor(){super({id:"editor.action.indentLines",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","lines.indent","Indent Line"),alias:"Indent Line",precondition:JT.writable,kbOpts:{kbExpr:JT.editorTextFocus,primary:2142,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,zT.indent(i.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}),Vh(class extends Fh{constructor(){super({id:"editor.action.outdentLines",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:JT.writable,kbOpts:{kbExpr:JT.editorTextFocus,primary:2140,weight:100}})}run(e,t){ry.Outdent.runEditorCommand(e,t,null)}}),Vh(class extends Fh{constructor(){super({id:"editor.action.insertLineBefore",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:JT.writable,kbOpts:{kbExpr:JT.editorTextFocus,primary:3075,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,zT.lineInsertBefore(i.cursorConfig,t.getModel(),t.getSelections())))}}),Vh(class extends Fh{constructor(){super({id:"editor.action.insertLineAfter",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:JT.writable,kbOpts:{kbExpr:JT.editorTextFocus,primary:2051,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,zT.lineInsertAfter(i.cursorConfig,t.getModel(),t.getSelections())))}}),Vh(class extends uie{constructor(){super({id:"deleteAllLeft",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:JT.writable,kbOpts:{kbExpr:JT.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let i=null;const n=[];let o=0;return t.forEach((t=>{let s;if(1===t.endColumn&&o>0){const e=t.startLineNumber-o;s=new Vn(e,t.startColumn,e,t.startColumn)}else s=new Vn(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);o+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?i=s:n.push(s)})),i&&n.unshift(i),n}_getRangesToDelete(e){const t=e.getSelections();if(null===t)return[];let i=t;const n=e.getModel();return null===n?[]:(i.sort(Un.compareRangesUsingStarts),i=i.map((e=>{if(e.isEmpty()){if(1===e.startColumn){const t=Math.max(1,e.startLineNumber-1),i=1===e.startLineNumber?1:n.getLineLength(t)+1;return new Un(t,i,e.startLineNumber,1)}return new Un(e.startLineNumber,1,e.startLineNumber,e.startColumn)}return new Un(e.startLineNumber,1,e.endLineNumber,e.endColumn)})),i)}}),Vh(class extends uie{constructor(){super({id:"deleteAllRight",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:JT.writable,kbOpts:{kbExpr:JT.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let i=null;const n=[];for(let o=0,s=t.length,r=0;o{if(e.isEmpty()){const i=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===i?new Un(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new Un(e.startLineNumber,e.startColumn,e.startLineNumber,i)}return e}));return n.sort(Un.compareRangesUsingStarts),n}}),Vh(class extends Fh{constructor(){super({id:"editor.action.joinLines",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","lines.joinLines","Join Lines"),alias:"Join Lines",precondition:JT.writable,kbOpts:{kbExpr:JT.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){const i=t.getSelections();if(null===i)return;let n=t.getSelection();if(null===n)return;i.sort(Un.compareRangesUsingStarts);const o=[],s=i.reduce(((e,t)=>e.isEmpty()?e.endLineNumber===t.startLineNumber?(n.equalsSelection(e)&&(n=t),t):t.startLineNumber>e.endLineNumber+1?(o.push(e),t):new Vn(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(o.push(e),t):new Vn(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)));o.push(s);const r=t.getModel();if(null===r)return;const a=[],l=[];let c=n,d=0;for(let h=0,u=o.length;h=1){let i=!0;""===p&&(i=!1),!i||" "!==p.charAt(p.length-1)&&"\t"!==p.charAt(p.length-1)||(i=!1,p=p.replace(/[\s\uFEFF\xA0]+$/g," "));const n=e.substr(t-1);p+=(i?" ":"")+n,g=i?n.length+1:n.length}else g=0}const f=new Un(t,i,s,u);if(!f.isEmpty()){let i;e.isEmpty()?(a.push(cF.replace(f,p)),i=new Vn(f.startLineNumber-d,p.length-g+1,t-d,p.length-g+1)):e.startLineNumber===e.endLineNumber?(a.push(cF.replace(f,p)),i=new Vn(e.startLineNumber-d,e.startColumn,e.endLineNumber-d,e.endColumn)):(a.push(cF.replace(f,p)),i=new Vn(e.startLineNumber-d,e.startColumn,e.startLineNumber-d,p.length-m)),null!==Un.intersectRanges(f,n)?c=i:l.push(i)}d+=f.endLineNumber-f.startLineNumber}l.unshift(c),t.pushUndoStop(),t.executeEdits(this.id,a,l),t.pushUndoStop()}}),Vh(class extends Fh{constructor(){super({id:"editor.action.transpose",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","editor.transpose","Transpose Characters around the Cursor"),alias:"Transpose Characters around the Cursor",precondition:JT.writable})}run(e,t){const i=t.getSelections();if(null===i)return;const n=t.getModel();if(null===n)return;const o=[];for(let s=0,r=i.length;s=r){if(t.lineNumber===n.getLineCount())continue;const e=new Un(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i=n.getValueInRange(e).split("").reverse().join("");o.push(new vT(new Vn(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i))}else{const e=new Un(t.lineNumber,Math.max(1,t.column-1),t.lineNumber,t.column+1),i=n.getValueInRange(e).split("").reverse().join("");o.push(new wT(e,i,new Vn(t.lineNumber,t.column+1,t.lineNumber,t.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}),Vh(class extends gie{constructor(){super({id:"editor.action.transformToUppercase",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:JT.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}}),Vh(class extends gie{constructor(){super({id:"editor.action.transformToLowercase",label:pe("vs/editor/contrib/linesOperations/browser/linesOperations","editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:JT.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}}),fie.caseBoundary.isSupported()&&fie.singleLetters.isSupported()&&Vh(fie),_ie.wordBoundary.isSupported()&&Vh(_ie),bie.wordBoundary.isSupported()&&Vh(bie),pie.titleBoundary.isSupported()&&Vh(pie),vie.isSupported()&&Vh(vie);var Sie,Cie=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Eie=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const wie=new Qd("LinkedEditingInputVisible",!1);let Tie=Sie=class extends mi{static get(e){return e.getContribution(Sie.ID)}constructor(e,t,i,n,o){super(),this.languageConfigurationService=n,this._syncRangesToken=0,this._localToDispose=this._register(new gi),this._editor=e,this._providers=i.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=wie.bindTo(t),this._debounceInformation=o.for(this._providers,"Linked Editing",{max:200}),this._currentDecorations=this._editor.createDecorationsCollection(),this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new gi),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequestCts=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel((()=>this.reinitialize(!0)))),this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(70)||e.hasChanged(93))&&this.reinitialize(!1)}))),this._register(this._providers.onDidChange((()=>this.reinitialize(!1)))),this._register(this._editor.onDidChangeModelLanguage((()=>this.reinitialize(!0)))),this.reinitialize(!0)}reinitialize(e){const t=this._editor.getModel(),i=null!==t&&(this._editor.getOption(70)||this._editor.getOption(93))&&this._providers.has(t);if(i===this._enabled&&!e)return;if(this._enabled=i,this.clearRanges(),this._localToDispose.clear(),!i||null===t)return;this._localToDispose.add(Ci.runAndSubscribe(t.onDidChangeLanguageConfiguration,(()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(t.getLanguageId()).getWordDefinition()})));const n=new Br(this._debounceInformation.get(t)),o=()=>{var e;this._rangeUpdateTriggerPromise=n.trigger((()=>this.updateRanges()),null!==(e=this._debounceDuration)&&void 0!==e?e:this._debounceInformation.get(t))},s=new Br(0),r=e=>{this._rangeSyncTriggerPromise=s.trigger((()=>this._syncRanges(e)))};this._localToDispose.add(this._editor.onDidChangeCursorPosition((()=>{o()}))),this._localToDispose.add(this._editor.onDidChangeModelContent((e=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const t=this._currentDecorations.getRange(0);if(t&&e.changes.every((e=>t.intersectRanges(e.range))))return void r(this._syncRangesToken)}o()}))),this._localToDispose.add({dispose:()=>{n.dispose(),s.dispose()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._syncRangesToken||0===this._currentDecorations.length)return;const t=this._editor.getModel(),i=this._currentDecorations.getRange(0);if(!i||i.startLineNumber!==i.endLineNumber)return this.clearRanges();const n=t.getValueInRange(i);if(this._currentWordPattern){const e=n.match(this._currentWordPattern);if((e?e[0].length:0)!==n.length)return this.clearRanges()}const o=[];for(let s=1,r=this._currentDecorations.length;s1)return void this.clearRanges();const i=this._editor.getModel(),n=i.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===n){if(t.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){const e=this._currentDecorations.getRange(0);if(e&&e.containsPosition(t))return}}this.clearRanges(),this._currentRequestPosition=t,this._currentRequestModelVersion=n;const o=this._currentRequestCts=new Fi;try{const e=new Si(!1),s=await yie(this._providers,i,t,o.token);if(this._debounceInformation.update(i,e.elapsed()),o!==this._currentRequestCts)return;if(this._currentRequestCts=null,n!==i.getVersionId())return;let r=[];(null==s?void 0:s.ranges)&&(r=s.ranges),this._currentWordPattern=(null==s?void 0:s.wordPattern)||this._languageWordPattern;let a=!1;for(let i=0,n=r.length;i({range:e,options:Sie.DECORATION})));this._visibleContextKey.set(!0),this._currentDecorations.set(l),this._syncRangesToken++}catch(sue){ti(sue)||Jt(sue),this._currentRequestCts!==o&&this._currentRequestCts||this.clearRanges()}}};function yie(e,t,i,n){return Vr(e.ordered(t).map((e=>async()=>{try{return await e.provideLinkedEditingRanges(t,i,n)}catch(o){return void Qt(o)}})),(e=>!!e&&L(null==e?void 0:e.ranges)))}Tie.ID="editor.contrib.linkedEditing",Tie.DECORATION=VN.register({description:"linked-editing",stickiness:0,className:"linked-editing-decoration"}),Tie=Sie=Cie([Eie(1,Zd),Eie(2,lf),Eie(3,Lg),Eie(4,RO)],Tie),Uh(new(Ph.bindToContribution(Tie.get))({id:"cancelLinkedEditingInput",precondition:wie,handler:e=>e.clearRanges(),kbOpts:{kbExpr:JT.editorTextFocus,weight:199,primary:9,secondary:[1033]}})),ib("editor.linkedEditingBackground",{dark:Kp.fromHex("#f00").transparent(.3),light:Kp.fromHex("#f00").transparent(.3),hcDark:Kp.fromHex("#f00").transparent(.3),hcLight:Kp.white},pe("vs/editor/contrib/linkedEditing/browser/linkedEditing","editorLinkedEditingBackground","Background color when the editor auto renames on type.")),Wh("_executeLinkedEditingProvider",((e,t,i)=>{const{linkedEditingRangeProvider:n}=e.get(lf);return yie(n,t,i,Mi.None)})),zh(Tie.ID,Tie,1),Vh(class extends Fh{constructor(){super({id:"editor.action.linkedEditing",label:pe("vs/editor/contrib/linkedEditing/browser/linkedEditing","linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:Dd.and(JT.writable,JT.hasRenameProvider),kbOpts:{kbExpr:JT.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const i=e.get(nd),[n,o]=Array.isArray(t)&&t||[void 0,void 0];return An.isUri(n)&&Wn.isIPosition(o)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(o),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),Jt):super.runCommand(e,t)}run(e,t){const i=Tie.get(t);return i?Promise.resolve(i.updateRanges(!0)):Promise.resolve()}});let Rie=class{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}async resolve(e){return this._link.url?this._link.url:"function"==typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then((t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing"))))):Promise.reject(new Error("missing"))}};class Lie{constructor(e){this._disposables=new gi;let t=[];for(const[i,n]of e){const e=i.links.map((e=>new Rie(e,n)));t=Lie._union(t,e),ci(i)&&this._disposables.add(i)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){const i=[];let n,o,s,r;for(n=0,s=0,o=e.length,r=t.length;nPromise.resolve(e.provideLinks(t,i)).then((t=>{t&&(n[o]=[t,e])}),Qt)));return Promise.all(o).then((()=>{const e=new Lie(T(n));return i.isCancellationRequested?(e.dispose(),new Lie([])):e}))}pd.registerCommand("_executeLinkProvider",(async(e,...t)=>{let[i,n]=t;ie(i instanceof An),"number"!=typeof n&&(n=0);const{linkProvider:o}=e.get(lf),s=e.get(od).getModel(i);if(!s)return[];const r=await Iie(o,s,Mi.None);if(!r)return[];for(let l=0;l=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},kie=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let Die=Aie=class extends mi{static get(e){return e.getContribution(Aie.ID)}constructor(e,t,i,n,o){super(),this.editor=e,this.openerService=t,this.notificationService=i,this.languageFeaturesService=n,this.providers=this.languageFeaturesService.linkProvider,this.debounceInformation=o.for(this.providers,"Links",{min:1e3,max:4e3}),this.computeLinks=this._register(new Kr((()=>this.computeLinksNow()),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;const s=this._register(new P2(e));this._register(s.onMouseMoveOrRelevantKeyDown((([e,t])=>{this._onEditorMouseMove(e,t)}))),this._register(s.onExecute((e=>{this.onEditorMouseUp(e)}))),this._register(s.onCancel((e=>{this.cleanUpActiveLinkDecoration()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(71)&&(this.updateDecorations([]),this.stop(),this.computeLinks.schedule(0))}))),this._register(e.onDidChangeModelContent((e=>{this.editor.hasModel()&&this.computeLinks.schedule(this.debounceInformation.get(this.editor.getModel()))}))),this._register(e.onDidChangeModel((e=>{this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.computeLinks.schedule(0)}))),this._register(e.onDidChangeModelLanguage((e=>{this.stop(),this.computeLinks.schedule(0)}))),this._register(this.providers.onDidChange((e=>{this.stop(),this.computeLinks.schedule(0)}))),this.computeLinks.schedule(0)}async computeLinksNow(){if(!this.editor.hasModel()||!this.editor.getOption(71))return;const e=this.editor.getModel();if(!e.isTooLargeForSyncing()&&this.providers.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=Mr((t=>Iie(this.providers,e,t)));try{const t=new Si(!1);if(this.activeLinksList=await this.computePromise,this.debounceInformation.update(e,t.elapsed()),e.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(sue){Jt(sue)}finally{this.computePromise=null}}}updateDecorations(e){const t="altKey"===this.editor.getOption(78),i=[],n=Object.keys(this.currentOccurrences);for(const s of n){const e=this.currentOccurrences[s];i.push(e.decorationId)}const o=[];if(e)for(const s of e)o.push(Mie.decoration(s,t));this.editor.changeDecorations((t=>{const n=t.deltaDecorations(i,o);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let i=0,o=n.length;i{t.activate(e,i),this.activeLinkDecorationId=t.decorationId}))}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const e="altKey"===this.editor.getOption(78);if(this.activeLinkDecorationId){const t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations((i=>{t.deactivate(i,e)})),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;const t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,i=!1){if(!this.openerService)return;const{link:n}=e;n.resolve(Mi.None).then((e=>{if("string"==typeof e&&this.editor.hasModel()){const t=this.editor.getModel().uri;if(t.scheme===Ja.file&&e.startsWith(`${Ja.file}:`)){const i=An.parse(e);if(i.scheme===Ja.file){const n=FI(i);let o=null;n.startsWith("/./")||n.startsWith("\\.\\")?o=`.${n.substr(1)}`:(n.startsWith("//./")||n.startsWith("\\\\.\\"))&&(o=`.${n.substr(2)}`),o&&(e=zI(t,o))}}}return this.openerService.open(e,{openToSide:t,fromUserGesture:i,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})}),(e=>{const t=e instanceof Error?e.message:e;"invalid"===t?this.notificationService.warn(pe("vs/editor/contrib/links/browser/links","invalid.url","Failed to open this link because it is not well-formed: {0}",n.url.toString())):"missing"===t?this.notificationService.warn(pe("vs/editor/contrib/links/browser/links","missing.url","Failed to open this link because its target is missing.")):Jt(e)}))}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;const t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(const i of t){const e=this.currentOccurrences[i.id];if(e)return e}return null}isEnabled(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){var e;this.computeLinks.cancel(),this.activeLinksList&&(null===(e=this.activeLinksList)||void 0===e||e.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop()}};Die.ID="editor.linkDetector",Die=Aie=Nie([kie(1,Ax),kie(2,kD),kie(3,lf),kie(4,RO)],Die);const Oie=VN.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),xie=VN.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"});class Mie{static decoration(e,t){return{range:e.range,options:Mie._getOptions(e,t,!1)}}static _getOptions(e,t,i){const n={...i?xie:Oie};return n.hoverMessage=function(e,t){const i=e.url&&/^command:/i.test(e.url.toString()),n=e.tooltip?e.tooltip:i?pe("vs/editor/contrib/links/browser/links","links.navigate.executeCmd","Execute command"):pe("vs/editor/contrib/links/browser/links","links.navigate.follow","Follow link"),o=t?Pe?pe("vs/editor/contrib/links/browser/links","links.navigate.kb.meta.mac","cmd + click"):pe("vs/editor/contrib/links/browser/links","links.navigate.kb.meta","ctrl + click"):Pe?pe("vs/editor/contrib/links/browser/links","links.navigate.kb.alt.mac","option + click"):pe("vs/editor/contrib/links/browser/links","links.navigate.kb.alt","alt + click");if(e.url){let t="";if(/^command:/i.test(e.url.toString())){const i=e.url.toString().match(/^command:([^?#]+)/);i&&(t=pe("vs/editor/contrib/links/browser/links","tooltip.explanation","Execute command {0}",i[1]))}return new YM("",!0).appendLink(e.url.toString(!0).replace(/ /g,"%20"),n,t).appendMarkdown(` (${o})`)}return(new YM).appendText(`${n} (${o})`)}(e,t),n}constructor(e,t){this.link=e,this.decorationId=t}activate(e,t){e.changeDecorationOptions(this.decorationId,Mie._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,Mie._getOptions(this.link,t,!1))}}zh(Die.ID,Die,1),Vh(class extends Fh{constructor(){super({id:"editor.action.openLink",label:pe("vs/editor/contrib/links/browser/links","label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){const i=Die.get(t);if(!i)return;if(!t.hasModel())return;const n=t.getSelections();for(const o of n){const e=i.getLinkOccurrence(o.getEndPosition());e&&i.openLinkOccurrence(e,!1)}}});class Pie extends mi{constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown((e=>{const t=this._editor.getOption(117);t>=0&&6===e.target.type&&e.target.position.column>=t&&this._editor.updateOptions({stopRenderingLineAfter:-1})})))}}Pie.ID="editor.contrib.longLinesHelper",zh(Pie.ID,Pie,2);const Fie=ib("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},pe("vs/editor/contrib/wordHighlighter/browser/highlightDecorations","wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0);ib("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},pe("vs/editor/contrib/wordHighlighter/browser/highlightDecorations","wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),ib("editor.wordHighlightTextBackground",{light:Fie,dark:Fie,hcDark:Fie,hcLight:Fie},pe("vs/editor/contrib/wordHighlighter/browser/highlightDecorations","wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);const Bie=ib("editor.wordHighlightBorder",{light:null,dark:null,hcDark:fb,hcLight:fb},pe("vs/editor/contrib/wordHighlighter/browser/highlightDecorations","wordHighlightBorder","Border color of a symbol during read-access, like reading a variable."));ib("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:fb,hcLight:fb},pe("vs/editor/contrib/wordHighlighter/browser/highlightDecorations","wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),ib("editor.wordHighlightTextBorder",{light:Bie,dark:Bie,hcDark:Bie,hcLight:Bie},pe("vs/editor/contrib/wordHighlighter/browser/highlightDecorations","wordHighlightTextBorder","Border color of a textual occurrence for a symbol."));const Hie=ib("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},pe("vs/editor/contrib/wordHighlighter/browser/highlightDecorations","overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Wie=ib("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},pe("vs/editor/contrib/wordHighlighter/browser/highlightDecorations","overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Uie=ib("editorOverviewRuler.wordHighlightTextForeground",{dark:wv,light:wv,hcDark:wv,hcLight:wv},pe("vs/editor/contrib/wordHighlighter/browser/highlightDecorations","overviewRulerWordHighlightTextForeground","Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0),Vie=VN.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:YE(Wie),position:bm.Center},minimap:{color:YE(Iv),position:1}}),Gie=VN.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:YE(Uie),position:bm.Center},minimap:{color:YE(Iv),position:1}}),zie=VN.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:YE(wv),position:bm.Center},minimap:{color:YE(Iv),position:1}}),Kie=VN.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),Yie=VN.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:YE(Hie),position:bm.Center},minimap:{color:YE(Iv),position:1}});function qie(e){return e?Kie:zie}XE(((e,t)=>{const i=e.getColor(Vb);i&&t.addRule(`.monaco-editor .selectionHighlight { background-color: ${i.transparent(.5)}; }`)}));var $ie,jie=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Xie=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};function Jie(e,t){const i=t.filter((t=>!e.find((e=>e.equals(t)))));if(i.length>=1){const e=i.map((e=>`line ${e.viewState.position.lineNumber} column ${e.viewState.position.column}`)).join(", ");I_(1===i.length?pe("vs/editor/contrib/multicursor/browser/multicursor","cursorAdded","Cursor added: {0}",e):pe("vs/editor/contrib/multicursor/browser/multicursor","cursorsAdded","Cursors added: {0}",e))}}class Qie{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class Zie{static create(e,t){if(!e.hasModel())return null;const i=t.getState();if(!e.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new Zie(e,t,!1,i.searchString,i.wholeWord,i.matchCase,null);let n,o,s=!1;const r=e.getSelections();1===r.length&&r[0].isEmpty()?(s=!0,n=!0,o=!0):(n=i.wholeWord,o=i.matchCase);const a=e.getSelection();let l,c=null;if(a.isEmpty()){const t=e.getConfiguredWordAtPosition(a.getStartPosition());if(!t)return null;l=t.word,c=new Vn(a.startLineNumber,t.startColumn,a.startLineNumber,t.endColumn)}else l=e.getModel().getValueInRange(a).replace(/\r\n/g,"\n");return new Zie(e,t,s,l,n,o,c)}constructor(e,t,i,n,o,s,r){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=n,this.wholeWord=o,this.matchCase=s,this.currentMatch=r}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new Qie(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new Qie(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1);return i?new Vn(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new Qie(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new Qie(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1);return i?new Vn(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();const t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1,1073741824)}}class ene extends mi{static get(e){return e.getContribution(ene.ID)}constructor(e){super(),this._sessionDispose=this._register(new gi),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){const t=Zie.create(this._editor,e);if(!t)return;this._session=t;const i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection((e=>{this._ignoreSelectionChange||this._endSession()}))),this._sessionDispose.add(this._editor.onDidBlurEditorText((()=>{this._endSession()}))),this._sessionDispose.add(e.getState().onFindReplaceStateChange((e=>{(e.matchCase||e.wholeWord)&&this._endSession()})))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;const i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new Vn(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){const t=this._editor.getSelections();if(t.length>1){const i=e.getState().matchCase;if(!one(this._editor.getModel(),t,i)){const e=this._editor.getModel(),i=[];for(let n=0,o=t.length;n0&&i.isRegex){const e=this._editor.getModel();t=i.searchScope?e.findMatches(i.searchString,i.searchScope,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(131):null,!1,1073741824):e.findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(131):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(i.searchScope)}if(t.length>0){const e=this._editor.getSelection();for(let i=0,n=t.length;inew Vn(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn))))}}}ene.ID="editor.contrib.multiCursorController";class tne extends Fh{run(e,t){const i=ene.get(t);if(!i)return;const n=t._getViewModel();if(n){const o=n.getCursorStates(),s=Q6.get(t);if(s)this._run(i,s);else{const n=e.get(td).createInstance(Q6,t);this._run(i,n),n.dispose()}Jie(o,n.getCursorStates())}}}class ine{constructor(e,t,i,n,o){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=n,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,o&&this._model===o._model&&this._searchText===o._searchText&&this._matchCase===o._matchCase&&this._wordSeparators===o._wordSeparators&&this._modelVersionId===o._modelVersionId&&(this._cachedFindMatches=o._cachedFindMatches)}findMatches(){return null===this._cachedFindMatches&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map((e=>e.range)),this._cachedFindMatches.sort(Un.compareRangesUsingStarts)),this._cachedFindMatches}}let nne=$ie=class extends mi{constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(108),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new Kr((()=>this._update()),300)),this.state=null,this._register(e.onDidChangeConfiguration((t=>{this._isEnabled=e.getOption(108)}))),this._register(e.onDidChangeCursorSelection((e=>{this._isEnabled&&(e.selection.isEmpty()?3===e.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())}))),this._register(e.onDidChangeModel((e=>{this._setState(null)}))),this._register(e.onDidChangeModelContent((e=>{this._isEnabled&&this.updateSoon.schedule()})));const i=Q6.get(e);i&&this._register(i.getState().onFindReplaceStateChange((e=>{this._update()}))),this.updateSoon.schedule()}_update(){this._setState($ie._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,i){if(!t)return null;if(!i.hasModel())return null;const n=i.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;const o=ene.get(i);if(!o)return null;const s=Q6.get(i);if(!s)return null;let r=o.getSession(s);if(!r){const e=i.getSelections();if(e.length>1){const t=s.getState().matchCase;if(!one(i.getModel(),e,t))return null}r=Zie.create(i,s)}if(!r)return null;if(r.currentMatch)return null;if(/^[ \t]+$/.test(r.searchText))return null;if(r.searchText.length>200)return null;const a=s.getState(),l=a.matchCase;if(a.isRevealed){let e=a.searchString;l||(e=e.toLowerCase());let t=r.searchText;if(l||(t=t.toLowerCase()),e===t&&r.matchCase===a.matchCase&&r.wholeWord===a.wholeWord&&!a.isRegex)return null}return new ine(i.getModel(),r.searchText,r.matchCase,r.wholeWord?i.getOption(131):null,e)}_setState(e){if(this.state=e,!this.state)return void this._decorations.clear();if(!this.editor.hasModel())return;const t=this.editor.getModel();if(t.isTooLargeForTokenization())return;const i=this.state.findMatches(),n=this.editor.getSelections();n.sort(Un.compareRangesUsingStarts);const o=[];for(let l=0,c=0,d=i.length,h=n.length;l=h)o.push(e),l++;else{const t=Un.compareRangesUsingStarts(e,n[c]);t<0?(!n[c].isEmpty()&&Un.areIntersecting(e,n[c])||o.push(e),l++):(t>0||l++,c++)}}const s="off"!==this.editor.getOption(81),r=this._languageFeaturesService.documentHighlightProvider.has(t)&&s,a=o.map((e=>({range:e,options:qie(r)})));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};function one(e,t,i){const n=sne(e,t[0],!i);for(let o=1,s=t.length;o1&&i.push(new Vn(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=t.getSelections(),o=t._getViewModel(),s=o.getCursorStates(),r=[];n.forEach((e=>this.getCursorsForSelection(e,i,r))),r.length>0&&t.setSelections(r),Jie(s,o.getCursorStates())}}),Vh(class extends tne{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:pe("vs/editor/contrib/multicursor/browser/multicursor","addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:JT.focus,primary:2082,weight:100},menuOpts:{menuId:bh.MenubarSelectionMenu,group:"3_multi",title:pe("vs/editor/contrib/multicursor/browser/multicursor",{key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}),Vh(class extends tne{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:pe("vs/editor/contrib/multicursor/browser/multicursor","addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:bh.MenubarSelectionMenu,group:"3_multi",title:pe("vs/editor/contrib/multicursor/browser/multicursor",{key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}),Vh(class extends tne{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:pe("vs/editor/contrib/multicursor/browser/multicursor","moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:JT.focus,primary:$i(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}),Vh(class extends tne{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:pe("vs/editor/contrib/multicursor/browser/multicursor","moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}),Vh(class extends tne{constructor(){super({id:"editor.action.selectHighlights",label:pe("vs/editor/contrib/multicursor/browser/multicursor","selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:JT.focus,primary:3114,weight:100},menuOpts:{menuId:bh.MenubarSelectionMenu,group:"3_multi",title:pe("vs/editor/contrib/multicursor/browser/multicursor",{key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}),Vh(class extends tne{constructor(){super({id:"editor.action.changeAll",label:pe("vs/editor/contrib/multicursor/browser/multicursor","changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:Dd.and(JT.writable,JT.editorTextFocus),kbOpts:{kbExpr:JT.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}),Vh(class extends Fh{constructor(){super({id:"editor.action.addCursorsToBottom",label:pe("vs/editor/contrib/multicursor/browser/multicursor","mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),n=t.getModel().getLineCount(),o=[];for(let a=i[0].startLineNumber;a<=n;a++)o.push(new Vn(a,i[0].startColumn,a,i[0].endColumn));const s=t._getViewModel(),r=s.getCursorStates();o.length>0&&t.setSelections(o),Jie(r,s.getCursorStates())}}),Vh(class extends Fh{constructor(){super({id:"editor.action.addCursorsToTop",label:pe("vs/editor/contrib/multicursor/browser/multicursor","mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),n=[];for(let r=i[0].startLineNumber;r>=1;r--)n.push(new Vn(r,i[0].startColumn,r,i[0].endColumn));const o=t._getViewModel(),s=o.getCursorStates();n.length>0&&t.setSelections(n),Jie(s,o.getCursorStates())}}),Vh(class extends Fh{constructor(){super({id:"editor.action.focusNextCursor",label:pe("vs/editor/contrib/multicursor/browser/multicursor","mutlicursor.focusNextCursor","Focus Next Cursor"),metadata:{description:pe("vs/editor/contrib/multicursor/browser/multicursor","mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const o=Array.from(n.getCursorStates()),s=o.shift();s&&(o.push(s),n.setCursorStates(i.source,3,o),n.revealPrimaryCursor(i.source,!0),Jie(o,n.getCursorStates()))}}),Vh(class extends Fh{constructor(){super({id:"editor.action.focusPreviousCursor",label:pe("vs/editor/contrib/multicursor/browser/multicursor","mutlicursor.focusPreviousCursor","Focus Previous Cursor"),metadata:{description:pe("vs/editor/contrib/multicursor/browser/multicursor","mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const o=Array.from(n.getCursorStates()),s=o.pop();s&&(o.unshift(s),n.setCursorStates(i.source,3,o),n.revealPrimaryCursor(i.source,!0),Jie(o,n.getCursorStates()))}});var rne=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},ane=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const lne="inline-edit";let cne=class extends mi{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=eH(this,!1),this.currentTextModel=fH(this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=oH(this,(e=>{var t;if(this.isDisposed.read(e))return;const i=this.currentTextModel.read(e);if(i!==this.model.targetTextModel.read(e))return;const n=this.model.ghostText.read(e);if(!n)return;let o=null===(t=this.model.range)||void 0===t?void 0:t.read(e);o&&o.startLineNumber===o.endLineNumber&&o.startColumn===o.endColumn&&(o=void 0);const s=(!o||o.startLineNumber===o.endLineNumber)&&1===n.parts.length&&1===n.parts[0].lines.length,r=1===n.parts.length&&n.parts[0].lines.every((e=>0===e.length)),a=[],l=[];function c(e,t){if(l.length>0){const i=l[l.length-1];t&&i.decorations.push(new Lf(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)l.push({content:i,decorations:t?[new Lf(1,i.length+1,t,0)]:[]})}const d=i.getLineContent(n.lineNumber);let h,u=0;if(!r){for(const e of n.parts){let t=e.lines;o&&!s&&(c(t,lne),t=[]),void 0===h?(a.push({column:e.column,text:t[0],preview:e.preview}),t=t.slice(1)):c([d.substring(u,e.column-1)],void 0),t.length>0&&(c(t,lne),void 0===h&&e.column<=d.length&&(h=e.column)),u=e.column-1}void 0!==h&&c([d.substring(u)],void 0)}const g=void 0!==h?new c7(h,d.length+1):void 0,m=s||!o?n.lineNumber:o.endLineNumber-1;return{inlineTexts:a,additionalLines:l,hiddenRange:g,lineNumber:m,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:i,range:o,isSingleLine:s,isPureRemove:r,backgroundColoring:this.model.backgroundColoring.read(e)}})),this.decorations=oH(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];if(t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"inline-edit-hidden",description:"inline-edit-hidden"}}),t.range){const e=[];if(t.isSingleLine)e.push(t.range);else if(t.isPureRemove){const i=t.range.endLineNumber-t.range.startLineNumber;for(let n=0;n{const t=this.uiState.read(e);return t&&!t.isPureRemove?{lineNumber:t.lineNumber,additionalLines:t.additionalLines,minReservedLineCount:t.additionalReservedLineCount,targetTextModel:t.targetTextModel}:void 0})))),this._register(ui((()=>{this.isDisposed.set(!0,void 0)}))),this._register(d7(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};cne=rne([ane(2,eg)],cne);var dne,hne=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},une=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let gne=class extends mi{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=fH(this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(63).showToolbar)),this.sessionPosition=void 0,this.position=oH(this,(e=>{var t,i,n;const o=null===(t=this.model.read(e))||void 0===t?void 0:t.widget.model.ghostText.read(e);if(!this.alwaysShowToolbar.read(e)||!o||0===o.parts.length)return this.sessionPosition=void 0,null;const s=o.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==o.lineNumber&&(this.sessionPosition=void 0);const r=new Wn(o.lineNumber,Math.min(s,null!==(n=null===(i=this.sessionPosition)||void 0===i?void 0:i.column)&&void 0!==n?n:Number.MAX_SAFE_INTEGER));return this.sessionPosition=r,r})),this._register(uH(((t,i)=>{if(!this.model.read(t)||!this.alwaysShowToolbar.read(t))return;const n=i.add(this.instantiationService.createInstance(mne,this.editor,!0,this.position));e.addContentWidget(n),i.add(ui((()=>e.removeContentWidget(n))))})))}};gne=hne([une(2,td)],gne);let mne=dne=class extends mi{constructor(e,t,i,n,o,s){super(),this.editor=e,this.withBorder=t,this._position=i,this._contextKeyService=o,this._menuService=s,this.id="InlineEditHintsContentWidget"+dne.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=Fc("div.inlineEditHints",{className:this.withBorder?".withBorder":""},[Fc("div@toolBar")]),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(bh.InlineEditActions,this._contextKeyService)),this.toolBar=this._register(n.createInstance(fne,this.nodes.toolBar,this.editor,bh.InlineEditToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof wh)return n.createInstance(pne,e,void 0)},telemetrySource:"InlineEditToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{dne._dropDownVisible=e}))),this._register(cH((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register(cH((e=>{const t=[];for(const[i,n]of this.inlineCompletionsActionsMenus.getActions())for(const e of n)e instanceof wh&&t.push(e);t.length>0&&t.unshift(new ld),this.toolBar.setAdditionalSecondaryActions(t)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};mne._dropDownVisible=!1,mne.id=0,mne=dne=hne([une(3,td),une(4,Zd),une(5,vh)],mne);class pne extends HW{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=Fc("div.keybinding").root;this._register(new Xz(t,qe,{disableTitle:!0,...jz})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineEditStatusBarItemLabel")}}updateTooltip(){}}let fne=class extends lj{constructor(e,t,i,n,o,s,r,a,l,c){super(e,{resetMenu:i,...n},o,s,r,a,l,c),this.editor=t,this.menuId=i,this.options2=n,this.menuService=o,this.contextKeyService=s,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this._store.add(this.editor.onDidChangeCursorPosition((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){var e,t,i,n,o,s,r;const a=[],l=[];FW(this.menu,null===(e=this.options2)||void 0===e?void 0:e.menuOptions,{primary:a,secondary:l},null===(i=null===(t=this.options2)||void 0===t?void 0:t.toolbarOptions)||void 0===i?void 0:i.primaryGroup,null===(o=null===(n=this.options2)||void 0===n?void 0:n.toolbarOptions)||void 0===o?void 0:o.shouldInlineSubmenu,null===(r=null===(s=this.options2)||void 0===s?void 0:s.toolbarOptions)||void 0===r?void 0:r.useSeparatorsInPrimaryActions),l.push(...this.additionalActions),a.unshift(...this.prependedPrimaryActions),this.setActions(a,l)}setAdditionalSecondaryActions(e){b(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};fne=hne([une(4,vh),une(5,Zd),une(6,Ex),une(7,tT),une(8,md),une(9,Rh)],fne);var _ne,bne=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},vne=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class Sne{constructor(e,t){this.widget=e,this.edit=t}dispose(){this.widget.dispose()}}let Cne=_ne=class extends mi{static get(e){return e.getContribution(_ne.ID)}constructor(e,t,i,n,o,s){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.languageFeaturesService=n,this._commandService=o,this._configurationService=s,this._isVisibleContext=_ne.inlineEditVisibleContext.bindTo(this.contextKeyService),this._isCursorAtInlineEditContext=_ne.cursorAtInlineEditContext.bindTo(this.contextKeyService),this._currentEdit=this._register(iH(this,void 0)),this._isAccepting=eH(this,!1),this._enabled=fH(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).enabled)),this._fontFamily=fH(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).fontFamily)),this._backgroundColoring=fH(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).backgroundColoring));const r=bH("InlineEditController.modelContentChangedSignal",e.onDidChangeModelContent);this._register(cH((t=>{this._enabled.read(t)&&(r.read(t),this._isAccepting.read(t)||this.getInlineEdit(e,!0))})));const a=fH(e.onDidChangeCursorPosition,(()=>e.getPosition()));this._register(cH((e=>{if(!this._enabled.read(e))return;const t=a.read(e);t&&this.checkCursorPosition(t)}))),this._register(cH((t=>{const i=this._currentEdit.read(t);if(this._isCursorAtInlineEditContext.set(!1),!i)return void this._isVisibleContext.set(!1);this._isVisibleContext.set(!0);const n=e.getPosition();n&&this.checkCursorPosition(n)})));const l=bH("InlineEditController.editorBlurSignal",e.onDidBlurEditorWidget);this._register(cH((async t=>{var i;this._enabled.read(t)&&(l.read(t),this._configurationService.getValue("editor.experimentalInlineEdit.keepOnBlur")||e.getOption(63).keepOnBlur||(null===(i=this._currentRequestCts)||void 0===i||i.dispose(!0),this._currentRequestCts=void 0,await this.clear(!1)))})));const c=bH("InlineEditController.editorFocusSignal",e.onDidFocusEditorText);this._register(cH((t=>{this._enabled.read(t)&&(c.read(t),this.getInlineEdit(e,!0))})));const d=this._register(tc());this._register(cH((e=>{const t=this._fontFamily.read(e);d.setStyle(""===t||"default"===t?"":`\n.monaco-editor .inline-edit-decoration,\n.monaco-editor .inline-edit-decoration-preview,\n.monaco-editor .inline-edit {\n\tfont-family: ${t};\n}`)}))),this._register(new gne(this.editor,this._currentEdit,this.instantiationService))}checkCursorPosition(e){var t;if(!this._currentEdit)return void this._isCursorAtInlineEditContext.set(!1);const i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.edit;i?this._isCursorAtInlineEditContext.set(Un.containsPosition(i.range,e)):this._isCursorAtInlineEditContext.set(!1)}validateInlineEdit(e,t){var i,n;if(t.text.includes("\n")&&t.range.startLineNumber!==t.range.endLineNumber&&t.range.startColumn!==t.range.endColumn){if(1!==t.range.startColumn)return!1;const o=t.range.endLineNumber;if(t.range.endColumn!==(null!==(n=null===(i=e.getModel())||void 0===i?void 0:i.getLineLength(o))&&void 0!==n?n:0)+1)return!1}return!0}async fetchInlineEdit(e,t){this._currentRequestCts&&this._currentRequestCts.dispose(!0);const i=e.getModel();if(!i)return;const n=i.getVersionId(),o=this.languageFeaturesService.inlineEditProvider.all(i);if(0===o.length)return;const s=o[0];this._currentRequestCts=new Fi;const r=this._currentRequestCts.token,a=t?mo.Automatic:mo.Invoke;var l;if(t&&await(50,l=r,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),50);l&&(t=l.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),r.isCancellationRequested||i.isDisposed()||i.getVersionId()!==n)return;const c=await s.provideInlineEdit(i,{triggerKind:a},r);return c&&!r.isCancellationRequested&&!i.isDisposed()&&i.getVersionId()===n&&this.validateInlineEdit(e,c)?c:void 0}async getInlineEdit(e,t){var i;this._isCursorAtInlineEditContext.set(!1),await this.clear();const n=await this.fetchInlineEdit(e,t);if(!n)return;const o=n.range.endLineNumber,s=n.range.endColumn,r=!n.text.endsWith("\n")||n.range.startLineNumber===n.range.endLineNumber&&n.range.startColumn===n.range.endColumn?n.text:n.text.slice(0,-1),a=new n7(o,[new o7(s,r,!1)]),l=this.instantiationService.createInstance(cne,this.editor,{ghostText:mH(a),minReservedLineCount:mH(0),targetTextModel:mH(null!==(i=this.editor.getModel())&&void 0!==i?i:void 0),range:mH(n.range),backgroundColoring:this._backgroundColoring});this._currentEdit.set(new Sne(l,n),void 0)}async trigger(){await this.getInlineEdit(this.editor,!1)}async jumpBack(){this._jumpBackPosition&&(this.editor.setPosition(this._jumpBackPosition),this.editor.revealPositionInCenterIfOutsideViewport(this._jumpBackPosition))}async accept(){var e;this._isAccepting.set(!0,void 0);const t=null===(e=this._currentEdit.get())||void 0===e?void 0:e.edit;if(!t)return;let i=t.text;t.text.startsWith("\n")&&(i=t.text.substring(1)),this.editor.pushUndoStop(),this.editor.executeEdits("acceptCurrent",[cF.replace(Un.lift(t.range),i)]),t.accepted&&await this._commandService.executeCommand(t.accepted.id,...t.accepted.arguments||[]).then(void 0,Qt),this.freeEdit(t),XB((e=>{this._currentEdit.set(void 0,e),this._isAccepting.set(!1,e)}))}jumpToCurrent(){var e,t;this._jumpBackPosition=null===(e=this.editor.getSelection())||void 0===e?void 0:e.getStartPosition();const i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.edit;if(!i)return;const n=Wn.lift({lineNumber:i.range.startLineNumber,column:i.range.startColumn});this.editor.setPosition(n),this.editor.revealPositionInCenterIfOutsideViewport(n)}async clear(e=!0){var t;const i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.edit;i&&(null==i?void 0:i.rejected)&&e&&await this._commandService.executeCommand(i.rejected.id,...i.rejected.arguments||[]).then(void 0,Qt),i&&this.freeEdit(i),this._currentEdit.set(void 0,void 0)}freeEdit(e){const t=this.editor.getModel();if(!t)return;const i=this.languageFeaturesService.inlineEditProvider.all(t);0!==i.length&&i[0].freeInlineEdit(e)}shouldShowHoverAt(e){const t=this._currentEdit.get();if(!t)return!1;const i=t.edit,n=t.widget.model;if(Un.containsPosition(i.range,e.getStartPosition())||Un.containsPosition(i.range,e.getEndPosition()))return!0;const o=n.ghostText.get();return!!o&&o.parts.some((t=>e.containsPosition(new Wn(o.lineNumber,t.column))))}shouldShowHoverAtViewZone(e){var t,i;return null!==(i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.widget.ownsViewZone(e))&&void 0!==i&&i}};Cne.ID="editor.contrib.inlineEditController",Cne.inlineEditVisibleKey="inlineEditVisible",Cne.inlineEditVisibleContext=new Qd(_ne.inlineEditVisibleKey,!1),Cne.cursorAtInlineEditKey="cursorAtInlineEdit",Cne.cursorAtInlineEditContext=new Qd(_ne.cursorAtInlineEditKey,!1),Cne=_ne=bne([vne(1,td),vne(2,Zd),vne(3,lf),vne(4,md),vne(5,$u)],Cne);var Ene=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},wne=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class Tne{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let yne=class{constructor(e,t,i){this._editor=e,this._instantiationService=t,this._telemetryService=i,this.hoverOrdinal=5}suggestHoverAnchor(e){const t=Cne.get(this._editor);if(!t)return null;const i=e.target;if(8===i.type){const n=i.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId)){const t=i.range;return new _2(1e3,this,t,e.event.posx,e.event.posy,!1)}}return 7===i.type&&t.shouldShowHoverAt(i.range)||6===i.type&&i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range)?new _2(1e3,this,i.range,e.event.posx,e.event.posy,!1):null}computeSync(e,t){if("onHover"!==this._editor.getOption(63).showToolbar)return[];const i=Cne.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new Tne(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new gi;this._telemetryService.publicLog2("inlineEditHover.shown");const n=this._instantiationService.createInstance(mne,this._editor,!1,mH(null));return e.fragment.appendChild(n.getDomNode()),i.add(n),i}};yne=Ene([wne(1,td),wne(2,Rh)],yne),Vh(class extends Fh{constructor(){super({id:"editor.action.inlineEdit.accept",label:"Accept Inline Edit",alias:"Accept Inline Edit",precondition:Dd.and(JT.writable,Cne.inlineEditVisibleContext),kbOpts:[{weight:101,primary:2,kbExpr:Dd.and(JT.writable,Cne.inlineEditVisibleContext,Cne.cursorAtInlineEditContext)}],menuOpts:[{menuId:bh.InlineEditToolbar,title:"Accept",group:"primary",order:1}]})}async run(e,t){const i=Cne.get(t);await(null==i?void 0:i.accept())}}),Vh(class extends Fh{constructor(){const e=Dd.and(JT.writable,Cne.inlineEditVisibleContext);super({id:"editor.action.inlineEdit.reject",label:"Reject Inline Edit",alias:"Reject Inline Edit",precondition:e,kbOpts:{weight:100,primary:9,kbExpr:e},menuOpts:[{menuId:bh.InlineEditToolbar,title:"Reject",group:"secondary",order:2}]})}async run(e,t){const i=Cne.get(t);await(null==i?void 0:i.clear())}}),Vh(class extends Fh{constructor(){const e=Dd.and(JT.writable,Cne.inlineEditVisibleContext,Dd.not(Cne.cursorAtInlineEditKey));super({id:"editor.action.inlineEdit.jumpTo",label:"Jump to Inline Edit",alias:"Jump to Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e},menuOpts:[{menuId:bh.InlineEditToolbar,title:"Jump To Edit",group:"primary",order:3,when:e}]})}async run(e,t){const i=Cne.get(t);null==i||i.jumpToCurrent()}}),Vh(class extends Fh{constructor(){const e=Dd.and(JT.writable,Cne.cursorAtInlineEditContext);super({id:"editor.action.inlineEdit.jumpBack",label:"Jump Back from Inline Edit",alias:"Jump Back from Inline Edit",precondition:e,kbOpts:{weight:110,primary:2646,kbExpr:e},menuOpts:[{menuId:bh.InlineEditToolbar,title:"Jump Back",group:"primary",order:3,when:e}]})}async run(e,t){const i=Cne.get(t);null==i||i.jumpBack()}}),Vh(class extends Fh{constructor(){const e=Dd.and(JT.writable,Dd.not(Cne.inlineEditVisibleKey));super({id:"editor.action.inlineEdit.trigger",label:"Trigger Inline Edit",alias:"Trigger Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e}})}async run(e,t){const i=Cne.get(t);null==i||i.trigger()}}),zh(Cne.ID,Cne,3),b2.register(yne);const Rne={Visible:new Qd("parameterHintsVisible",!1),MultipleSignatures:new Qd("parameterHintsMultipleSignatures",!1)};async function Lne(e,t,i,n,o){const s=e.ordered(t);for(const a of s)try{const e=await a.provideSignatureHelp(t,i,o,n);if(e)return e}catch(r){Qt(r)}}var Ine;pd.registerCommand("_executeSignatureHelpProvider",(async(e,...t)=>{const[i,n,o]=t;ie(An.isUri(i)),ie(Wn.isIPosition(n)),ie("string"==typeof o||!o);const s=e.get(lf),r=await e.get(sd).createModelReference(i);try{const e=await Lne(s.signatureHelpProvider,r.object.textEditorModel,Wn.lift(n),{triggerKind:to.Invoke,isRetrigger:!1,triggerCharacter:o},Mi.None);if(!e)return;return setTimeout((()=>e.dispose()),0),e.value}finally{r.dispose()}})),function(e){e.Default={type:0},e.Pending=class{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}},e.Active=class{constructor(e){this.hints=e,this.type=1}}}(Ine||(Ine={}));class Ane extends mi{constructor(e,t,i=Ane.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new Ri),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=Ine.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new pi),this.triggerChars=new Zg,this.retriggerChars=new Zg,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new Br(i),this._register(this.editor.onDidBlurEditorWidget((()=>this.cancel()))),this._register(this.editor.onDidChangeConfiguration((()=>this.onEditorConfigurationChange()))),this._register(this.editor.onDidChangeModel((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeModelLanguage((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeCursorSelection((e=>this.onCursorChange(e)))),this._register(this.editor.onDidChangeModelContent((e=>this.onModelContentChange()))),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType((e=>this.onDidType(e)))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=Ine.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){const i=this.editor.getModel();if(!i||!this.providers.has(i))return;const n=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger((()=>this.doTrigger(n)),t).catch(Jt)}next(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e==e-1,n=this.editor.getOption(86).cycle;!(e<2||i)||n?this.updateActiveSignature(i&&n?0:t+1):this.cancel()}previous(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=0===t,n=this.editor.getOption(86).cycle;!(e<2||i)||n?this.updateActiveSignature(i&&n?e-1:t-1):this.cancel()}updateActiveSignature(e){1===this.state.type&&(this.state=new Ine.Active({...this.state.hints,activeSignature:e}),this._onChangedHints.fire(this.state.hints))}async doTrigger(e){const t=1===this.state.type||2===this.state.type,i=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;const n=this._pendingTriggers.reduce(Nne);this._pendingTriggers=[];const o={triggerKind:n.triggerKind,triggerCharacter:n.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;const s=this.editor.getModel(),r=this.editor.getPosition();this.state=new Ine.Pending(Mr((e=>Lne(this.providers,s,r,o,e))),i);try{const t=await this.state.request;return e!==this.triggerId?(null==t||t.dispose(),!1):t&&t.value.signatures&&0!==t.value.signatures.length?(this.state=new Ine.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0):(null==t||t.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1)}catch(a){return e===this.triggerId&&(this.state=Ine.Default),Jt(a),!1}}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();const e=this.editor.getModel();if(e)for(const t of this.providers.ordered(e)){for(const e of t.signatureHelpTriggerCharacters||[])if(e.length){const t=e.charCodeAt(0);this.triggerChars.add(t),this.retriggerChars.add(t)}for(const e of t.signatureHelpRetriggerCharacters||[])e.length&&this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;const t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:to.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:to.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:to.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(86).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function Nne(e,t){switch(t.triggerKind){case to.Invoke:return t;case to.ContentChange:return e;case to.TriggerCharacter:default:return t}}Ane.DEFAULT_DELAY=120;var kne,Dne=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},One=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const xne=yc,Mne=sY("parameter-hints-next",Yn.chevronDown,pe("vs/editor/contrib/parameterHints/browser/parameterHintsWidget","parameterHintsNextIcon","Icon for show next parameter hint.")),Pne=sY("parameter-hints-previous",Yn.chevronUp,pe("vs/editor/contrib/parameterHints/browser/parameterHintsWidget","parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Fne=kne=class extends mi{constructor(e,t,i,n,o){super(),this.editor=e,this.model=t,this.renderDisposeables=this._register(new gi),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new IP({editor:e},o,n)),this.keyVisible=Rne.Visible.bindTo(i),this.keyMultipleSignatures=Rne.MultipleSignatures.bindTo(i)}createParameterHintDOMNodes(){const e=xne(".editor-widget.parameter-hints-widget"),t=vc(e,xne(".phwrapper"));t.tabIndex=-1;const i=vc(t,xne(".controls")),n=vc(i,xne(".button"+gd.asCSSSelector(Pne))),o=vc(i,xne(".overloads")),s=vc(i,xne(".button"+gd.asCSSSelector(Mne)));this._register(yl(n,"click",(e=>{fc(e),this.previous()}))),this._register(yl(s,"click",(e=>{fc(e),this.next()})));const r=xne(".body"),a=new wE(r,{alwaysConsumeMouseWheel:!0});this._register(a),t.appendChild(a.getDomNode());const l=vc(r,xne(".signature")),c=vc(r,xne(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:l,overloads:o,docs:c,scrollbar:a},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection((e=>{this.visible&&this.editor.layoutContentWidget(this)})));const d=()=>{if(!this.domNodes)return;const e=this.editor.getOption(50);this.domNodes.element.style.fontSize=`${e.fontSize}px`,this.domNodes.element.style.lineHeight=""+e.lineHeight/e.fontSize};d(),this._register(Ci.chain(this.editor.onDidChangeConfiguration.bind(this.editor),(e=>e.filter((e=>e.hasChanged(50)))))(d)),this._register(this.editor.onDidLayoutChange((e=>this.updateMaxHeight()))),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout((()=>{var e;null===(e=this.domNodes)||void 0===e||e.element.classList.add("visible")}),100),this.editor.layoutContentWidget(this))}hide(){var e;this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,null===(e=this.domNodes)||void 0===e||e.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){var t;if(this.renderDisposeables.clear(),!this.domNodes)return;const i=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",i),this.keyMultipleSignatures.set(i),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const n=e.signatures[e.activeSignature];if(!n)return;const o=vc(this.domNodes.signature,xne(".code")),s=this.editor.getOption(50);o.style.fontSize=`${s.fontSize}px`,o.style.fontFamily=s.fontFamily;const r=n.parameters.length>0,a=null!==(t=n.activeParameter)&&void 0!==t?t:e.activeParameter;r?this.renderParameters(o,n,a):vc(o,xne("span")).textContent=n.label;const l=n.parameters[a];if(null==l?void 0:l.documentation){const e=xne("span.documentation");if("string"==typeof l.documentation)e.textContent=l.documentation;else{const t=this.renderMarkdownDocs(l.documentation);e.appendChild(t.element)}vc(this.domNodes.docs,xne("p",{},e))}if(void 0===n.documentation);else if("string"==typeof n.documentation)vc(this.domNodes.docs,xne("p",{},n.documentation));else{const e=this.renderMarkdownDocs(n.documentation);vc(this.domNodes.docs,e.element)}const c=this.hasDocs(n,l);if(this.domNodes.signature.classList.toggle("has-docs",c),this.domNodes.docs.classList.toggle("empty",!c),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,l){let e="";const t=n.parameters[a];e=Array.isArray(t.label)?n.label.substring(t.label[0],t.label[1]):t.label,t.documentation&&(e+="string"==typeof t.documentation?`, ${t.documentation}`:`, ${t.documentation.value}`),n.documentation&&(e+="string"==typeof n.documentation?`, ${n.documentation}`:`, ${n.documentation.value}`),this.announcedLabel!==e&&(L_(pe("vs/editor/contrib/parameterHints/browser/parameterHintsWidget","hint","{0}, hint",e)),this.announcedLabel=e)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){const t=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{var e;null===(e=this.domNodes)||void 0===e||e.scrollbar.scanDomNode()}}));return t.element.classList.add("markdown-docs"),t}hasDocs(e,t){return!!(t&&"string"==typeof t.documentation&&ne(t.documentation).length>0||t&&"object"==typeof t.documentation&&ne(t.documentation).value.length>0||e.documentation&&"string"==typeof e.documentation&&ne(e.documentation).length>0||e.documentation&&"object"==typeof e.documentation&&ne(e.documentation.value).length>0)}renderParameters(e,t,i){const[n,o]=this.getParameterLabelOffsets(t,i),s=document.createElement("span");s.textContent=t.label.substring(0,n);const r=document.createElement("span");r.textContent=t.label.substring(n,o),r.className="parameter active";const a=document.createElement("span");a.textContent=t.label.substring(o),vc(e,s,r,a)}getParameterLabelOffsets(e,t){const i=e.parameters[t];if(i){if(Array.isArray(i.label))return i.label;if(i.label.length){const t=new RegExp(`(\\W|^)${bs(i.label)}(?=\\W|$)`,"g");t.test(e.label);const n=t.lastIndex-i.label.length;return n>=0?[n,t.lastIndex]:[0,0]}return[0,0]}return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return kne.ID}updateMaxHeight(){if(!this.domNodes)return;const e=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=e;const t=this.domNodes.element.getElementsByClassName("phwrapper");t.length&&(t[0].style.maxHeight=e)}};Fne.ID="editor.widget.parameterHintsWidget",Fne=kne=Dne([One(2,Zd),One(3,Ax),One(4,eg)],Fne),ib("editorHoverWidget.highlightForeground",{dark:kS,light:kS,hcDark:kS,hcLight:kS},pe("vs/editor/contrib/parameterHints/browser/parameterHintsWidget","editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."));var Bne,Hne=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Wne=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let Une=Bne=class extends mi{static get(e){return e.getContribution(Bne.ID)}constructor(e,t,i){super(),this.editor=e,this.model=this._register(new Ane(e,i.signatureHelpProvider)),this._register(this.model.onChangedHints((e=>{var t;e?(this.widget.value.show(),this.widget.value.render(e)):null===(t=this.widget.rawValue)||void 0===t||t.hide()}))),this.widget=new us((()=>this._register(t.createInstance(Fne,this.editor,this.model))))}cancel(){this.model.cancel()}previous(){var e;null===(e=this.widget.rawValue)||void 0===e||e.previous()}next(){var e;null===(e=this.widget.rawValue)||void 0===e||e.next()}trigger(e){this.model.trigger(e,0)}};Une.ID="editor.controller.parameterHints",Une=Bne=Hne([Wne(1,td),Wne(2,lf)],Une),zh(Une.ID,Une,2),Vh(class extends Fh{constructor(){super({id:"editor.action.triggerParameterHints",label:pe("vs/editor/contrib/parameterHints/browser/parameterHints","parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:JT.hasSignatureHelpProvider,kbOpts:{kbExpr:JT.editorTextFocus,primary:3082,weight:100}})}run(e,t){const i=Une.get(t);null==i||i.trigger({triggerKind:to.Invoke})}});const Vne=Ph.bindToContribution(Une.get);Uh(new Vne({id:"closeParameterHints",precondition:Rne.Visible,handler:e=>e.cancel(),kbOpts:{weight:175,kbExpr:JT.focus,primary:9,secondary:[1033]}})),Uh(new Vne({id:"showPrevParameterHint",precondition:Dd.and(Rne.Visible,Rne.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:175,kbExpr:JT.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),Uh(new Vne({id:"showNextParameterHint",precondition:Dd.and(Rne.Visible,Rne.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:175,kbExpr:JT.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}));var Gne=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},zne=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const Kne=new Qd("renameInputVisible",!1,pe("vs/editor/contrib/rename/browser/renameWidget","renameInputVisible","Whether the rename input widget is visible"));new Qd("renameInputFocused",!1,pe("vs/editor/contrib/rename/browser/renameWidget","renameInputFocused","Whether the rename input widget is focused"));let Yne=class{constructor(e,t,i,n,o,s){this._editor=e,this._acceptKeybindings=t,this._themeService=i,this._keybindingService=n,this._logService=s,this.allowEditorOverflow=!0,this._disposables=new gi,this._visibleContextKey=Kne.bindTo(o),this._isEditingRenameCandidate=!1,this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,this._candidates=new Set,this._beforeFirstInputFieldEditSW=new Si,this._inputWithButton=new $ne,this._disposables.add(this._inputWithButton),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._domNode.appendChild(this._inputWithButton.domNode),this._renameCandidateListView=this._disposables.add(new qne(this._domNode,{fontInfo:this._editor.getOption(50),onFocusChange:e=>{this._inputWithButton.input.value=e,this._isEditingRenameCandidate=!1},onSelectionChange:()=>{this._isEditingRenameCandidate=!1,this.acceptInput(!1)}})),this._disposables.add(this._inputWithButton.onDidInputChange((()=>{var e,t,i,n;void 0!==(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusedCandidate)&&(this._isEditingRenameCandidate=!0),null!==(t=this._timeBeforeFirstInputFieldEdit)&&void 0!==t||(this._timeBeforeFirstInputFieldEdit=this._beforeFirstInputFieldEditSW.elapsed()),!1===(null===(i=this._renameCandidateProvidersCts)||void 0===i?void 0:i.token.isCancellationRequested)&&this._renameCandidateProvidersCts.cancel(),null===(n=this._renameCandidateListView)||void 0===n||n.clearFocus()}))),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(e){var t,i,n,o,s;if(!this._domNode)return;const r=e.getColor(av),a=e.getColor(lv);this._domNode.style.backgroundColor=String(null!==(t=e.getColor(Lb))&&void 0!==t?t:""),this._domNode.style.boxShadow=r?` 0 0 8px 2px ${r}`:"",this._domNode.style.border=a?`1px solid ${a}`:"",this._domNode.style.color=String(null!==(i=e.getColor(Pv))&&void 0!==i?i:"");const l=e.getColor(Fv);this._inputWithButton.domNode.style.backgroundColor=String(null!==(n=e.getColor(Mv))&&void 0!==n?n:""),this._inputWithButton.input.style.backgroundColor=String(null!==(o=e.getColor(Mv))&&void 0!==o?o:""),this._inputWithButton.domNode.style.borderWidth=l?"1px":"0px",this._inputWithButton.domNode.style.borderStyle=l?"solid":"none",this._inputWithButton.domNode.style.borderColor=null!==(s=null==l?void 0:l.toString())&&void 0!==s?s:"none"}_updateFont(){if(void 0===this._domNode)return;ie(void 0!==this._label,"RenameWidget#_updateFont: _label must not be undefined given _domNode is defined"),this._editor.applyFontInfo(this._inputWithButton.input);const e=this._editor.getOption(50);this._label.style.fontSize=`${this._computeLabelFontSize(e.fontSize)}px`}_computeLabelFontSize(e){return.8*e}getPosition(){if(!this._visible)return null;if(!this._editor.hasModel()||!this._editor.getDomNode())return null;const e=Ml(this.getDomNode().ownerDocument.body),t=Hl(this._editor.getDomNode()),i=this._getTopForPosition();this._nPxAvailableAbove=i+t.top,this._nPxAvailableBelow=e.height-this._nPxAvailableAbove;const n=this._editor.getOption(67),{totalHeight:o}=jne.getLayoutInfo({lineHeight:n}),s=this._nPxAvailableBelow>6*o?[2,1]:[1,2];return{position:this._position,preference:s}}beforeRender(){var e,t;const[i,n]=this._acceptKeybindings;return this._label.innerText=pe("vs/editor/contrib/rename/browser/renameWidget",{key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",null===(e=this._keybindingService.lookupKeybinding(i))||void 0===e?void 0:e.getLabel(),null===(t=this._keybindingService.lookupKeybinding(n))||void 0===t?void 0:t.getLabel()),this._domNode.style.minWidth="200px",null}afterRender(e){if(this._trace("invoking afterRender, position: ",e?"not null":"null"),null===e)return void this.cancelInput(!0,"afterRender (because position is null)");if(!this._editor.hasModel()||!this._editor.getDomNode())return;ie(this._renameCandidateListView),ie(void 0!==this._nPxAvailableAbove),ie(void 0!==this._nPxAvailableBelow);const t=zl(this._inputWithButton.domNode),i=zl(this._label);let n;n=2===e?this._nPxAvailableBelow:this._nPxAvailableAbove,this._renameCandidateListView.layout({height:n-i-t,width:Ul(this._inputWithButton.domNode)})}acceptInput(e){var t;this._trace("invoking acceptInput"),null===(t=this._currentAcceptInput)||void 0===t||t.call(this,e)}cancelInput(e,t){var i;this._trace(`invoking cancelInput, caller: ${t}, _currentCancelInput: ${this._currentAcceptInput?"not undefined":"undefined"}`),null===(i=this._currentCancelInput)||void 0===i||i.call(this,e)}focusNextRenameSuggestion(){var e;(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusNext())||(this._inputWithButton.input.value=this._currentName)}focusPreviousRenameSuggestion(){var e;(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusPrevious())||(this._inputWithButton.input.value=this._currentName)}getInput(e,t,i,n,o){const{start:s,end:r}=this._getSelection(e,t);this._renameCts=o;const a=new gi;this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,void 0===n?this._inputWithButton.button.style.display="none":(this._inputWithButton.button.style.display="flex",this._requestRenameCandidatesOnce=n,this._requestRenameCandidates(t,!1),a.add(yl(this._inputWithButton.button,"click",(()=>this._requestRenameCandidates(t,!0)))),a.add(yl(this._inputWithButton.button,mc.KEY_DOWN,(e=>{const i=new Lr(e);(i.equals(3)||i.equals(10))&&(i.stopPropagation(),i.preventDefault(),this._requestRenameCandidates(t,!0))})))),this._isEditingRenameCandidate=!1,this._domNode.classList.toggle("preview",i),this._position=new Wn(e.startLineNumber,e.startColumn),this._currentName=t,this._inputWithButton.input.value=t,this._inputWithButton.input.setAttribute("selectionStart",s.toString()),this._inputWithButton.input.setAttribute("selectionEnd",r.toString()),this._inputWithButton.input.size=Math.max(1.1*(e.endColumn-e.startColumn),20),this._beforeFirstInputFieldEditSW.reset(),a.add(ui((()=>{this._renameCts=void 0,o.dispose(!0)}))),a.add(ui((()=>{void 0!==this._renameCandidateProvidersCts&&(this._renameCandidateProvidersCts.dispose(!0),this._renameCandidateProvidersCts=void 0)}))),a.add(ui((()=>this._candidates.clear())));const l=new Xr;return l.p.finally((()=>{a.dispose(),this._hide()})),this._currentCancelInput=e=>{var t;return this._trace("invoking _currentCancelInput"),this._currentAcceptInput=void 0,this._currentCancelInput=void 0,null===(t=this._renameCandidateListView)||void 0===t||t.clearCandidates(),l.complete(e),!0},this._currentAcceptInput=e=>{this._trace("invoking _currentAcceptInput"),ie(void 0!==this._renameCandidateListView);const n=this._renameCandidateListView.nCandidates;let o,s;const r=this._renameCandidateListView.focusedCandidate;void 0!==r?(this._trace("using new name from renameSuggestion"),o=r,s={k:"renameSuggestion"}):(this._trace("using new name from inputField"),o=this._inputWithButton.input.value,s=this._isEditingRenameCandidate?{k:"userEditedRenameSuggestion"}:{k:"inputField"}),o!==t&&0!==o.trim().length?(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView.clearCandidates(),l.complete({newName:o,wantsPreview:i&&e,stats:{source:s,nRenameSuggestions:n,timeBeforeFirstInputFieldEdit:this._timeBeforeFirstInputFieldEdit,nRenameSuggestionsInvocations:this._nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:this._hadAutomaticRenameSuggestionsInvocation}})):this.cancelInput(!0,"_currentAcceptInput (because newName === value || newName.trim().length === 0)")},a.add(o.token.onCancellationRequested((()=>this.cancelInput(!0,"cts.token.onCancellationRequested")))),a.add(this._editor.onDidBlurEditorWidget((()=>{var e;return this.cancelInput(!(null===(e=this._domNode)||void 0===e?void 0:e.ownerDocument.hasFocus()),"editor.onDidBlurEditorWidget")}))),this._show(),l.p}_requestRenameCandidates(e,t){if(void 0!==this._requestRenameCandidatesOnce&&(void 0!==this._renameCandidateProvidersCts&&this._renameCandidateProvidersCts.dispose(!0),ie(this._renameCts),"stop"!==this._inputWithButton.buttonState)){this._renameCandidateProvidersCts=new Fi;const i=t?ao.Invoke:ao.Automatic,n=this._requestRenameCandidatesOnce(i,this._renameCandidateProvidersCts.token);if(0===n.length)return void this._inputWithButton.setSparkleButton();t||(this._hadAutomaticRenameSuggestionsInvocation=!0),this._nRenameSuggestionsInvocations+=1,this._inputWithButton.setStopButton(),this._updateRenameCandidates(n,e,this._renameCts.token)}}_getSelection(e,t){ie(this._editor.hasModel());const i=this._editor.getSelection();let n=0,o=t.length;return Un.isEmpty(i)||Un.spansMultipleLines(i)||!Un.containsRange(e,i)||(n=Math.max(0,i.startColumn-e.startColumn),o=Math.min(e.endColumn,i.endColumn)-e.startColumn),{start:n,end:o}}_show(){this._trace("invoking _show"),this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout((()=>{this._inputWithButton.input.focus(),this._inputWithButton.input.setSelectionRange(parseInt(this._inputWithButton.input.getAttribute("selectionStart")),parseInt(this._inputWithButton.input.getAttribute("selectionEnd")))}),100)}async _updateRenameCandidates(e,t,i){const n=(...e)=>this._trace("_updateRenameCandidates",...e);n("start");const o=await Pr(Promise.allSettled(e),i);if(this._inputWithButton.setSparkleButton(),void 0===o)return void n("returning early - received updateRenameCandidates results - undefined");const s=o.flatMap((e=>"fulfilled"===e.status&&ee(e.value)?e.value:[]));n(`received updateRenameCandidates results - total (unfiltered) ${s.length} candidates.`);const r=I(s,(e=>e.newSymbolName));n(`distinct candidates - ${r.length} candidates.`);const a=r.filter((({newSymbolName:e})=>e.trim().length>0&&e!==this._inputWithButton.input.value&&e!==t&&!this._candidates.has(e)));n(`valid distinct candidates - ${s.length} candidates.`),a.forEach((e=>this._candidates.add(e.newSymbolName))),a.length<1?n("returning early - no valid distinct candidates"):(n("setting candidates"),this._renameCandidateListView.setCandidates(a),n("asking editor to re-layout"),this._editor.layoutContentWidget(this))}_hide(){this._trace("invoked _hide"),this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}_getTopForPosition(){const e=this._editor.getVisibleRanges();let t;return e.length>0?t=e[0].startLineNumber:(this._logService.warn("RenameWidget#_getTopForPosition: this should not happen - visibleRanges is empty"),t=Math.max(1,this._position.lineNumber-5)),this._editor.getTopForLineNumber(this._position.lineNumber)-this._editor.getTopForLineNumber(t)}_trace(...e){this._logService.trace("RenameWidget",...e)}};Yne=Gne([zne(2,KE),zne(3,tT),zne(4,Zd),zne(5,Lh)],Yne);class qne{constructor(e,t){this._disposables=new gi,this._availableHeight=0,this._minimumWidth=0,this._lineHeight=t.fontInfo.lineHeight,this._typicalHalfwidthCharacterWidth=t.fontInfo.typicalHalfwidthCharacterWidth,this._listContainer=document.createElement("div"),this._listContainer.className="rename-box rename-candidate-list-container",e.appendChild(this._listContainer),this._listWidget=qne._createListWidget(this._listContainer,this._candidateViewHeight,t.fontInfo),this._listWidget.onDidChangeFocus((e=>{1===e.elements.length&&t.onFocusChange(e.elements[0].newSymbolName)}),this._disposables),this._listWidget.onDidChangeSelection((e=>{1===e.elements.length&&t.onSelectionChange()}),this._disposables),this._disposables.add(this._listWidget.onDidBlur((e=>{this._listWidget.setFocus([])}))),this._listWidget.style(NW({listInactiveFocusForeground:iC,listInactiveFocusBackground:oC}))}dispose(){this._listWidget.dispose(),this._disposables.dispose()}layout({height:e,width:t}){this._availableHeight=e,this._minimumWidth=t}setCandidates(e){this._listWidget.splice(0,0,e);const t=this._pickListHeight(this._listWidget.length),i=this._pickListWidth(e);this._listWidget.layout(t,i),this._listContainer.style.height=`${t}px`,this._listContainer.style.width=`${i}px`,I_(pe("vs/editor/contrib/rename/browser/renameWidget","renameSuggestionsReceivedAria","Received {0} rename suggestions",e.length))}clearCandidates(){this._listContainer.style.height="0px",this._listContainer.style.width="0px",this._listWidget.splice(0,this._listWidget.length,[])}get nCandidates(){return this._listWidget.length}get focusedCandidate(){if(0===this._listWidget.length)return;const e=this._listWidget.getSelectedElements()[0];if(void 0!==e)return e.newSymbolName;const t=this._listWidget.getFocusedElements()[0];return void 0!==t?t.newSymbolName:void 0}focusNext(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();if(0===e.length)return this._listWidget.focusFirst(),this._listWidget.reveal(0),!0;if(e[0]===this._listWidget.length-1)return this._listWidget.setFocus([]),this._listWidget.reveal(0),!1;{this._listWidget.focusNext();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}}focusPrevious(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();if(0===e.length){this._listWidget.focusLast();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}if(0===e[0])return this._listWidget.setFocus([]),!1;{this._listWidget.focusPrevious();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}}clearFocus(){this._listWidget.setFocus([])}get _candidateViewHeight(){const{totalHeight:e}=jne.getLayoutInfo({lineHeight:this._lineHeight});return e}_pickListHeight(e){const t=this._candidateViewHeight*e;return Math.min(t,this._availableHeight,7*this._candidateViewHeight)}_pickListWidth(e){const t=Math.ceil(Math.max(...e.map((e=>e.newSymbolName.length)))*this._typicalHalfwidthCharacterWidth);return Math.max(this._minimumWidth,25+t+10)}static _createListWidget(e,t,i){const n=new class{getTemplateId(e){return"candidate"}getHeight(e){return t}},o=new class{constructor(){this.templateId="candidate"}renderTemplate(e){return new jne(e,i)}renderElement(e,t,i){i.populate(e)}disposeTemplate(e){e.dispose()}};return new tW("NewSymbolNameCandidates",e,n,[o],{keyboardSupport:!1,mouseSupport:!0,multipleSelectionSupport:!1})}}class $ne{constructor(){this._onDidInputChange=new Ri,this.onDidInputChange=this._onDidInputChange.event,this._disposables=new gi}get domNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="rename-input-with-button",this._domNode.style.display="flex",this._domNode.style.flexDirection="row",this._domNode.style.alignItems="center",this._inputNode=document.createElement("input"),this._inputNode.className="rename-input",this._inputNode.type="text",this._inputNode.style.border="none",this._inputNode.setAttribute("aria-label",pe("vs/editor/contrib/rename/browser/renameWidget","renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._inputNode),this._buttonNode=document.createElement("div"),this._buttonNode.className="rename-suggestions-button",this._buttonNode.setAttribute("tabindex","0"),this._buttonGenHoverText=pe("vs/editor/contrib/rename/browser/renameWidget","generateRenameSuggestionsButton","Generate new name suggestions"),this._buttonCancelHoverText=pe("vs/editor/contrib/rename/browser/renameWidget","cancelRenameSuggestionsButton","Cancel"),this._buttonHover=EB().setupUpdatableHover(vB("element"),this._buttonNode,this._buttonGenHoverText),this._disposables.add(this._buttonHover),this._domNode.appendChild(this._buttonNode),this._disposables.add(yl(this.input,mc.INPUT,(()=>this._onDidInputChange.fire()))),this._disposables.add(yl(this.input,mc.KEY_DOWN,(e=>{const t=new Lr(e);15!==t.keyCode&&17!==t.keyCode||this._onDidInputChange.fire()}))),this._disposables.add(yl(this.input,mc.CLICK,(()=>this._onDidInputChange.fire()))),this._disposables.add(yl(this.input,mc.FOCUS,(()=>{this.domNode.style.outlineWidth="1px",this.domNode.style.outlineStyle="solid",this.domNode.style.outlineOffset="-1px",this.domNode.style.outlineColor="var(--vscode-focusBorder)"}))),this._disposables.add(yl(this.input,mc.BLUR,(()=>{this.domNode.style.outline="none"})))),this._domNode}get input(){return ie(this._inputNode),this._inputNode}get button(){return ie(this._buttonNode),this._buttonNode}get buttonState(){return this._buttonState}setSparkleButton(){var e,t;this._buttonState="sparkle",null!==(e=this._sparkleIcon)&&void 0!==e||(this._sparkleIcon=Bx(Yn.sparkle)),wl(this.button),this.button.appendChild(this._sparkleIcon),this.button.setAttribute("aria-label","Generating new name suggestions"),null===(t=this._buttonHover)||void 0===t||t.update(this._buttonGenHoverText),this.input.focus()}setStopButton(){var e,t;this._buttonState="stop",null!==(e=this._stopIcon)&&void 0!==e||(this._stopIcon=Bx(Yn.primitiveSquare)),wl(this.button),this.button.appendChild(this._stopIcon),this.button.setAttribute("aria-label","Cancel generating new name suggestions"),null===(t=this._buttonHover)||void 0===t||t.update(this._buttonCancelHoverText),this.input.focus()}dispose(){this._disposables.dispose()}}class jne{constructor(e,t){this._domNode=document.createElement("div"),this._domNode.className="rename-box rename-candidate",this._domNode.style.display="flex",this._domNode.style.columnGap="5px",this._domNode.style.alignItems="center",this._domNode.style.height=`${t.lineHeight}px`,this._domNode.style.padding=`${jne._PADDING}px`;const i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.width=i.style.height=.8*t.lineHeight+"px",this._domNode.appendChild(i),this._icon=Bx(Yn.sparkle),this._icon.style.display="none",i.appendChild(this._icon),this._label=document.createElement("div"),Kc(this._label,t),this._domNode.appendChild(this._label),e.appendChild(this._domNode)}populate(e){this._updateIcon(e),this._updateLabel(e)}_updateIcon(e){var t;const i=!!(null===(t=e.tags)||void 0===t?void 0:t.includes(ro.AIGenerated));this._icon.style.display=i?"inherit":"none"}_updateLabel(e){this._label.innerText=e.newSymbolName}static getLayoutInfo({lineHeight:e}){return{totalHeight:e+2*jne._PADDING}}dispose(){}}jne._PADDING=2;var Xne,Jne=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Qne=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class Zne{constructor(e,t,i){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=i.ordered(e)}hasProvider(){return this._providers.length>0}async resolveRenameLocation(e){const t=[];for(this._providerRenameIdx=0;this._providerRenameIdx0?t.join("\n"):void 0}:{range:Un.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join("\n"):void 0}}async provideRenameEdits(e,t){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)}async _provideRenameEdits(e,t,i,n){const o=this._providers[t];if(!o)return{edits:[],rejectReason:i.join("\n")};const s=await o.provideRenameEdits(this.model,this.position,e,n);return s?s.rejectReason?this._provideRenameEdits(e,t+1,i.concat(s.rejectReason),n):s:this._provideRenameEdits(e,t+1,i.concat(pe("vs/editor/contrib/rename/browser/rename","no result","No result.")),n)}}let eoe=Xne=class{static get(e){return e.getContribution(Xne.ID)}constructor(e,t,i,n,o,s,r,a,l){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=n,this._progressService=o,this._logService=s,this._configService=r,this._languageFeaturesService=a,this._telemetryService=l,this._disposableStore=new gi,this._cts=new Fi,this._renameWidget=this._disposableStore.add(this._instaService.createInstance(Yne,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}async run(){var e,t;const i=this._logService.trace.bind(this._logService,"[rename]");if(this._cts.dispose(!0),this._cts=new Fi,!this.editor.hasModel())return void i("editor has no model");const n=this.editor.getPosition(),o=new Zne(this.editor.getModel(),n,this._languageFeaturesService.renameProvider);if(!o.hasProvider())return void i("skeleton has no provider");const s=new RX(this.editor,5,void 0,this._cts.token);let r;try{i("resolving rename location");const e=o.resolveRenameLocation(s.token);this._progressService.showWhile(e,250),r=await e,i("resolved rename location")}catch(m){return void(m instanceof ii?i("resolve rename location cancelled",JSON.stringify(m,null,"\t")):(i("resolve rename location failed",m instanceof Error?m:JSON.stringify(m,null,"\t")),("string"==typeof m||$M(m))&&(null===(e=vZ.get(this.editor))||void 0===e||e.showMessage(m||pe("vs/editor/contrib/rename/browser/rename","resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),n))))}finally{s.dispose()}if(!r)return void i("returning early - no loc");if(r.rejectReason)return i(`returning early - rejected with reason: ${r.rejectReason}`,r.rejectReason),void(null===(t=vZ.get(this.editor))||void 0===t||t.showMessage(r.rejectReason,n));if(s.token.isCancellationRequested)return void i("returning early - cts1 cancelled");const a=new RX(this.editor,5,r.range,this._cts.token),l=this.editor.getModel(),c=this._languageFeaturesService.newSymbolNamesProvider.all(l),d=await Promise.all(c.map((async e=>{var t;return[e,null!==(t=await e.supportsAutomaticNewSymbolNamesTriggerKind)&&void 0!==t&&t]})));i("creating rename input field and awaiting its result");const h=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),u=await this._renameWidget.getInput(r.range,r.text,h,c.length>0?(e,t)=>{let i=d.slice();return e===ao.Automatic&&(i=i.filter((([e,t])=>t))),i.map((([i])=>i.provideNewSymbolNames(l,r.range,e,t)))}:void 0,a);if(i("received response from rename input field"),c.length>0&&this._reportTelemetry(c.length,l.getLanguageId(),u),"boolean"==typeof u)return i(`returning early - rename input field response - ${u}`),u&&this.editor.focus(),void a.dispose();this.editor.focus(),i("requesting rename edits");const g=Pr(o.provideRenameEdits(u.newName,a.token),a.token).then((async e=>{if(e)if(this.editor.hasModel()){if(e.rejectReason)return i(`returning early - rejected with reason: ${e.rejectReason}`),void this._notificationService.info(e.rejectReason);this.editor.setSelection(Un.fromPositions(this.editor.getSelection().getPosition())),i("applying edits"),this._bulkEditService.apply(e,{editor:this.editor,showPreview:u.wantsPreview,label:pe("vs/editor/contrib/rename/browser/rename","label","Renaming '{0}' to '{1}'",null==r?void 0:r.text,u.newName),code:"undoredo.rename",quotableLabel:pe("vs/editor/contrib/rename/browser/rename","quotableLabel","Renaming {0} to {1}",null==r?void 0:r.text,u.newName),respectAutoSaveConfig:!0}).then((e=>{i("edits applied"),e.ariaSummary&&L_(pe("vs/editor/contrib/rename/browser/rename","aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",r.text,u.newName,e.ariaSummary))})).catch((e=>{i(`error when applying edits ${JSON.stringify(e,null,"\t")}`),this._notificationService.error(pe("vs/editor/contrib/rename/browser/rename","rename.failedApply","Rename failed to apply edits")),this._logService.error(e)}))}else i("returning early - no model after rename edits are provided");else i("returning early - no rename edits result")}),(e=>{i("error when providing rename edits",JSON.stringify(e,null,"\t")),this._notificationService.error(pe("vs/editor/contrib/rename/browser/rename","rename.failed","Rename failed to compute edits")),this._logService.error(e)})).finally((()=>{a.dispose()}));return i("returning rename operation"),this._progressService.showWhile(g,250),g}acceptRenameInput(e){this._renameWidget.acceptInput(e)}cancelRenameInput(){this._renameWidget.cancelInput(!0,"cancelRenameInput command")}focusNextRenameSuggestion(){this._renameWidget.focusNextRenameSuggestion()}focusPreviousRenameSuggestion(){this._renameWidget.focusPreviousRenameSuggestion()}_reportTelemetry(e,t,i){const n="boolean"==typeof i?{kind:"cancelled",languageId:t,nRenameSuggestionProviders:e}:{kind:"accepted",languageId:t,nRenameSuggestionProviders:e,source:i.stats.source.k,nRenameSuggestions:i.stats.nRenameSuggestions,timeBeforeFirstInputFieldEdit:i.stats.timeBeforeFirstInputFieldEdit,wantsPreview:i.wantsPreview,nRenameSuggestionsInvocations:i.stats.nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:i.stats.hadAutomaticRenameSuggestionsInvocation};this._telemetryService.publicLog2("renameInvokedEvent",n)}};eoe.ID="editor.contrib.renameController",eoe=Xne=Jne([Qne(1,td),Qne(2,kD),Qne(3,ZP),Qne(4,FF),Qne(5,Lh),Qne(6,rf),Qne(7,lf),Qne(8,Rh)],eoe),zh(eoe.ID,eoe,4),Vh(class extends Fh{constructor(){super({id:"editor.action.rename",label:pe("vs/editor/contrib/rename/browser/rename","rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:Dd.and(JT.writable,JT.hasRenameProvider),kbOpts:{kbExpr:JT.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const i=e.get(nd),[n,o]=Array.isArray(t)&&t||[void 0,void 0];return An.isUri(n)&&Wn.isIPosition(o)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(o),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),Jt):super.runCommand(e,t)}run(e,t){const i=e.get(Lh),n=eoe.get(t);return n?(i.trace("[RenameAction] got controller, running..."),n.run()):(i.trace("[RenameAction] returning early - controller missing"),Promise.resolve())}});const toe=Ph.bindToContribution(eoe.get);Uh(new toe({id:"acceptRenameInput",precondition:Kne,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:Dd.and(JT.focus,Dd.not("isComposing")),primary:3}})),Uh(new toe({id:"acceptRenameInputWithPreview",precondition:Dd.and(Kne,Dd.has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:Dd.and(JT.focus,Dd.not("isComposing")),primary:2051}})),Uh(new toe({id:"cancelRenameInput",precondition:Kne,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:JT.focus,primary:9,secondary:[1033]}})),yh(class extends Th{constructor(){super({id:"focusNextRenameSuggestion",title:{...fe(0,"Focus Next Rename Suggestion")},precondition:Kne,keybinding:[{primary:18,weight:199}]})}run(e){const t=e.get(nd).getFocusedCodeEditor();if(!t)return;const i=eoe.get(t);i&&i.focusNextRenameSuggestion()}}),yh(class extends Th{constructor(){super({id:"focusPreviousRenameSuggestion",title:{...fe(0,"Focus Previous Rename Suggestion")},precondition:Kne,keybinding:[{primary:16,weight:199}]})}run(e){const t=e.get(nd).getFocusedCodeEditor();if(!t)return;const i=eoe.get(t);i&&i.focusPreviousRenameSuggestion()}}),Wh("_executeDocumentRenameProvider",(function(e,t,i,...n){const[o]=n;ie("string"==typeof o);const{renameProvider:s}=e.get(lf);return async function(e,t,i,n){const o=new Zne(t,i,e),s=await o.resolveRenameLocation(Mi.None);return(null==s?void 0:s.rejectReason)?{edits:[],rejectReason:s.rejectReason}:o.provideRenameEdits(n,Mi.None)}(s,t,i,o)})),Wh("_executePrepareRename",(async function(e,t,i){const{renameProvider:n}=e.get(lf),o=new Zne(t,i,n),s=await o.resolveRenameLocation(Mi.None);if(null==s?void 0:s.rejectReason)throw new Error(s.rejectReason);return s})),dh.as(lg).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:pe("vs/editor/contrib/rename/browser/rename","enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}});var ioe=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},noe=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let ooe=class extends mi{constructor(e,t,i){super(),this.editor=e,this.languageConfigurationService=t,this.editorWorkerService=i,this.decorations=this.editor.createDecorationsCollection(),this.options=this.createOptions(e.getOption(73)),this.computePromise=null,this.currentOccurrences={},this._register(e.onDidChangeModel((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(e.onDidChangeModelLanguage((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(t.onDidChange((t=>{var i;const n=null===(i=this.editor.getModel())||void 0===i?void 0:i.getLanguageId();n&&t.affects(n)&&(this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(e.onDidChangeConfiguration((t=>{this.options&&!t.hasChanged(73)||(this.options=this.createOptions(e.getOption(73)),this.updateDecorations([]),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(this.editor.onDidChangeModelContent((e=>{this.computeSectionHeaders.schedule()}))),this._register(e.onDidChangeModelTokens((e=>{this.computeSectionHeaders.isScheduled()||this.computeSectionHeaders.schedule(1e3)}))),this.computeSectionHeaders=this._register(new Kr((()=>{this.findSectionHeaders()}),250)),this.computeSectionHeaders.schedule(0)}createOptions(e){if(!e||!this.editor.hasModel())return;const t=this.editor.getModel().getLanguageId();if(!t)return;const i=this.languageConfigurationService.getLanguageConfiguration(t).comments,n=this.languageConfigurationService.getLanguageConfiguration(t).foldingRules;return i||(null==n?void 0:n.markers)?{foldingRules:n,findMarkSectionHeaders:e.showMarkSectionHeaders,findRegionSectionHeaders:e.showRegionSectionHeaders}:void 0}findSectionHeaders(){var e,t;if(!this.editor.hasModel()||!(null===(e=this.options)||void 0===e?void 0:e.findMarkSectionHeaders)&&!(null===(t=this.options)||void 0===t?void 0:t.findRegionSectionHeaders))return;const i=this.editor.getModel();if(i.isDisposed()||i.isTooLargeForSyncing())return;const n=i.getVersionId();this.editorWorkerService.findSectionHeaders(i.uri,this.options).then((e=>{i.isDisposed()||i.getVersionId()!==n||this.updateDecorations(e)}))}updateDecorations(e){const t=this.editor.getModel();t&&(e=e.filter((e=>{if(!e.shouldBeInComments)return!0;const i=t.validateRange(e.range),n=t.tokenization.getLineTokens(i.startLineNumber),o=n.findTokenIndexAtOffset(i.startColumn-1),s=n.getStandardTokenType(o);return n.getLanguageId(o)===t.getLanguageId()&&1===s})));const i=Object.values(this.currentOccurrences).map((e=>e.decorationId)),n=e.map((e=>{return{range:(t=e).range,options:VN.createDynamic({description:"section-header",stickiness:3,collapseOnReplaceEdit:!0,minimap:{color:void 0,position:1,sectionHeaderStyle:t.hasSeparatorLine?2:1,sectionHeaderText:t.text}})};var t}));this.editor.changeDecorations((t=>{const o=t.deltaDecorations(i,n);this.currentOccurrences={};for(let i=0,n=o.length;i0?i[0]:[]}(e,t),r=await Promise.all(s.map((async e=>{let s,r=null;try{s=await e.provideDocumentSemanticTokens(t,e===i?n:null,o)}catch(a){r=a,s=null}return s&&(roe(s)||aoe(s))||(s=null),new loe(e,s,r)})));for(const a of r){if(a.error)throw a.error;if(a.tokens)return a}return r.length>0?r[0]:null}class hoe{constructor(e,t){this.provider=e,this.tokens=t}}function uoe(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}async function goe(e,t,i,n){const o=uoe(e,t),s=await Promise.all(o.map((async e=>{let o;try{o=await e.provideDocumentRangeSemanticTokens(t,i,n)}catch(s){Qt(s),o=null}return o&&roe(o)||(o=null),new hoe(e,o)})));for(const r of s)if(r.tokens)return r;return s.length>0?s[0]:null}pd.registerCommand("_provideDocumentSemanticTokensLegend",(async(e,...t)=>{const[i]=t;ie(i instanceof An);const n=e.get(od).getModel(i);if(!n)return;const{documentSemanticTokensProvider:o}=e.get(lf),s=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:null}(o,n);return s?s[0].getLegend():e.get(md).executeCommand("_provideDocumentRangeSemanticTokensLegend",i)})),pd.registerCommand("_provideDocumentSemanticTokens",(async(e,...t)=>{const[i]=t;ie(i instanceof An);const n=e.get(od).getModel(i);if(!n)return;const{documentSemanticTokensProvider:o}=e.get(lf);if(!coe(o,n))return e.get(md).executeCommand("_provideDocumentRangeSemanticTokens",i,n.getFullModelRange());const s=await doe(o,n,null,null,Mi.None);if(!s)return;const{provider:r,tokens:a}=s;if(!a||!roe(a))return;const l=soe({id:0,type:"full",data:a.data});return a.resultId&&r.releaseDocumentSemanticTokens(a.resultId),l})),pd.registerCommand("_provideDocumentRangeSemanticTokensLegend",(async(e,...t)=>{const[i,n]=t;ie(i instanceof An);const o=e.get(od).getModel(i);if(!o)return;const{documentRangeSemanticTokensProvider:s}=e.get(lf),r=uoe(s,o);if(0===r.length)return;if(1===r.length)return r[0].getLegend();if(!n||!Un.isIRange(n))return r[0].getLegend();const a=await goe(s,o,Un.lift(n),Mi.None);return a?a.provider.getLegend():void 0})),pd.registerCommand("_provideDocumentRangeSemanticTokens",(async(e,...t)=>{const[i,n]=t;ie(i instanceof An),ie(Un.isIRange(n));const o=e.get(od).getModel(i);if(!o)return;const{documentRangeSemanticTokensProvider:s}=e.get(lf),r=await goe(s,o,Un.lift(n),Mi.None);return r&&r.tokens?soe({id:0,type:"full",data:r.tokens.data}):void 0}));const moe="editor.semanticHighlighting";function poe(e,t,i){var n;const o=null===(n=i.getValue(moe,{overrideIdentifier:e.getLanguageId(),resource:e.uri}))||void 0===n?void 0:n.enabled;return"boolean"==typeof o?o:t.getColorTheme().semanticHighlighting}var foe,_oe=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},boe=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let voe=class extends mi{constructor(e,t,i,n,o,s){super(),this._watchers=Object.create(null);const r=t=>{this._watchers[t.uri.toString()]=new Soe(t,e,i,o,s)},a=(e,t)=>{t.dispose(),delete this._watchers[e.uri.toString()]},l=()=>{for(const e of t.getModels()){const t=this._watchers[e.uri.toString()];poe(e,i,n)?t||r(e):t&&a(e,t)}};t.getModels().forEach((e=>{poe(e,i,n)&&r(e)})),this._register(t.onModelAdded((e=>{poe(e,i,n)&&r(e)}))),this._register(t.onModelRemoved((e=>{const t=this._watchers[e.uri.toString()];t&&a(e,t)}))),this._register(n.onDidChangeConfiguration((e=>{e.affectsConfiguration(moe)&&l()}))),this._register(i.onDidColorThemeChange(l))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};voe=_oe([boe(0,WO),boe(1,od),boe(2,KE),boe(3,$u),boe(4,RO),boe(5,lf)],voe);let Soe=foe=class extends mi{constructor(e,t,i,n,o){super(),this._semanticTokensStylingService=t,this._isDisposed=!1,this._model=e,this._provider=o.documentSemanticTokensProvider,this._debounceInformation=n.for(this._provider,"DocumentSemanticTokens",{min:foe.REQUEST_MIN_DELAY,max:foe.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new Kr((()=>this._fetchDocumentSemanticTokensNow()),foe.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeAttached((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeLanguage((()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)})));const s=()=>{di(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const t of this._provider.all(e))"function"==typeof t.onDidChange&&this._documentProvidersChangeListeners.push(t.onDidChange((()=>{this._currentDocumentRequestCancellationTokenSource?this._providersChangedDuringRequest=!0:this._fetchDocumentSemanticTokens.schedule(0)})))};s(),this._register(this._provider.onDidChange((()=>{s(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(i.onDidColorThemeChange((e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),di(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!coe(this._provider,this._model))return void(this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1));if(!this._model.isAttachedToEditor())return;const e=new Fi,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=doe(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;const o=[],s=this._model.onDidChangeContent((e=>{o.push(e)})),r=new Si(!1);n.then((e=>{if(this._debounceInformation.update(this._model,r.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,s.dispose(),e){const{provider:t,tokens:i}=e,n=this._semanticTokensStylingService.getStyling(t);this._setDocumentSemanticTokens(t,i||null,n,o)}else this._setDocumentSemanticTokens(null,null,null,o)}),(e=>{e&&(ti(e)||"string"==typeof e.message&&-1!==e.message.indexOf("busy"))||Jt(e),this._currentDocumentRequestCancellationTokenSource=null,s.dispose(),(o.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))}))}static _copy(e,t,i,n,o){o=Math.min(o,i.length-n,e.length-t);for(let s=0;s{(n.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)e&&t&&e.releaseDocumentSemanticTokens(t.resultId);else if(e&&i){if(!t)return this._model.tokenization.setSemanticTokens(null,!0),void s();if(aoe(t)){if(!o)return void this._model.tokenization.setSemanticTokens(null,!0);if(0===t.edits.length)t={resultId:t.resultId,data:o.data};else{let e=0;for(const i of t.edits)e+=(i.data?i.data.length:0)-i.deleteCount;const n=o.data,s=new Uint32Array(n.length+e);let r=n.length,a=s.length;for(let l=t.edits.length-1;l>=0;l--){const e=t.edits[l];if(e.start>n.length)return i.warnInvalidEditStart(o.resultId,t.resultId,l,e.start,n.length),void this._model.tokenization.setSemanticTokens(null,!0);const c=r-(e.start+e.deleteCount);c>0&&(foe._copy(n,r-c,s,a-c,c),a-=c),e.data&&(foe._copy(e.data,0,s,a-e.data.length,e.data.length),a-=e.data.length),r=e.start}r>0&&foe._copy(n,0,s,0,r),t={resultId:t.resultId,data:s}}}if(roe(t)){this._currentDocumentResponse=new Coe(e,t.resultId,t.data);const o=FO(t,i,this._model.getLanguageId());if(n.length>0)for(const e of n)for(const t of o)for(const i of e.changes)t.applyEdit(i.range,i.text);this._model.tokenization.setSemanticTokens(o,!0)}else this._model.tokenization.setSemanticTokens(null,!0);s()}else this._model.tokenization.setSemanticTokens(null,!1)}};Soe.REQUEST_MIN_DELAY=300,Soe.REQUEST_MAX_DELAY=2e3,Soe=foe=_oe([boe(1,WO),boe(2,KE),boe(3,RO),boe(4,lf)],Soe);class Coe{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}pq(voe);var Eoe=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},woe=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let Toe=class extends mi{constructor(e,t,i,n,o,s){super(),this._semanticTokensStylingService=t,this._themeService=i,this._configurationService=n,this._editor=e,this._provider=s.documentRangeSemanticTokensProvider,this._debounceInformation=o.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new Kr((()=>this._tokenizeViewportNow()),100)),this._outstandingRequests=[];const r=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange((()=>{r()}))),this._register(this._editor.onDidChangeModel((()=>{this._cancelAll(),r()}))),this._register(this._editor.onDidChangeModelContent((e=>{this._cancelAll(),r()}))),this._register(this._provider.onDidChange((()=>{this._cancelAll(),r()}))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(moe)&&(this._cancelAll(),r())}))),this._register(this._themeService.onDidColorThemeChange((()=>{this._cancelAll(),r()}))),r()}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;tthis._requestRange(e,t))))}_requestRange(e,t){const i=e.getVersionId(),n=Mr((i=>Promise.resolve(goe(this._provider,e,t,i)))),o=new Si(!1);return n.then((n=>{if(this._debounceInformation.update(e,o.elapsed()),!n||!n.tokens||e.isDisposed()||e.getVersionId()!==i)return;const{provider:s,tokens:r}=n,a=this._semanticTokensStylingService.getStyling(s);e.tokenization.setPartialSemanticTokens(t,FO(r,a,e.getLanguageId()))})).then((()=>this._removeOutstandingRequest(n)),(()=>this._removeOutstandingRequest(n))),n}};Toe.ID="editor.contrib.viewportSemanticTokens",Toe=Eoe([woe(1,WO),woe(2,KE),woe(3,$u),woe(4,RO),woe(5,lf)],Toe),zh(Toe.ID,Toe,1);class yoe{constructor(e=!0){this.selectSubwords=e}provideSelectionRanges(e,t){const i=[];for(const n of t){const t=[];i.push(t),this.selectSubwords&&this._addInWordRanges(t,e,n),this._addWordRanges(t,e,n),this._addWhitespaceLine(t,e,n),t.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){const n=t.getWordAtPosition(i);if(!n)return;const{word:o,startColumn:s}=n,r=i.column-s;let a=r,l=r,c=0;for(;a>=0;a--){const e=o.charCodeAt(a);if(a!==r&&(95===e||45===e))break;if(Ds(e)&&Os(c))break;c=e}for(a+=1;l0&&0===t.getLineFirstNonWhitespaceColumn(i.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(i.lineNumber)&&e.push({range:new Un(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}var Roe,Loe=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Ioe=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class Aoe{constructor(e,t){this.index=e,this.ranges=t}mov(e){const t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const i=new Aoe(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let Noe=Roe=class{static get(e){return e.getContribution(Roe.ID)}constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}dispose(){var e;null===(e=this._selectionListener)||void 0===e||e.dispose()}async run(e){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||await Doe(this._languageFeaturesService.selectionRangeProvider,i,t.map((e=>e.getPosition())),this._editor.getOption(113),Mi.None).then((e=>{var i;if(L(e)&&e.length===t.length&&this._editor.hasModel()&&b(this._editor.getSelections(),t,((e,t)=>e.equalsSelection(t)))){for(let i=0;ie.containsPosition(t[i].getStartPosition())&&e.containsPosition(t[i].getEndPosition()))),e[i].unshift(t[i]);this._state=e.map((e=>new Aoe(0,e))),null===(i=this._selectionListener)||void 0===i||i.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition((()=>{var e;this._ignoreSelection||(null===(e=this._selectionListener)||void 0===e||e.dispose(),this._state=void 0)}))}})),!this._state)return;this._state=this._state.map((t=>t.mov(e)));const n=this._state.map((e=>Vn.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())));this._ignoreSelection=!0;try{this._editor.setSelections(n)}finally{this._ignoreSelection=!1}}};Noe.ID="editor.contrib.smartSelectController",Noe=Roe=Loe([Ioe(1,lf)],Noe);class koe extends Fh{constructor(e,t){super(t),this._forward=e}async run(e,t){const i=Noe.get(t);i&&await i.run(this._forward)}}async function Doe(e,t,i,n,o){const s=e.all(t).concat(new yoe(n.selectSubwords));1===s.length&&s.unshift(new B8);const r=[],a=[];for(const l of s)r.push(Promise.resolve(l.provideSelectionRanges(t,i,o)).then((e=>{if(L(e)&&e.length===i.length)for(let t=0;t{if(0===e.length)return[];e.sort(((e,t)=>Wn.isBefore(e.getStartPosition(),t.getStartPosition())?1:Wn.isBefore(t.getStartPosition(),e.getStartPosition())||Wn.isBefore(e.getEndPosition(),t.getEndPosition())?-1:Wn.isBefore(t.getEndPosition(),e.getEndPosition())?1:0));const i=[];let o;for(const t of e)(!o||Un.containsRange(t,o)&&!Un.equalsRange(t,o))&&(i.push(t),o=t);if(!n.selectLeadingAndTrailingWhitespace)return i;const s=[i[0]];for(let n=1;ne}),Poe="data-sticky-line-index",Foe="data-sticky-is-line",Boe="data-sticky-is-folding-icon";class Hoe extends mi{constructor(e){super(),this._editor=e,this._foldingIconStore=new gi,this._rootDomNode=document.createElement("div"),this._lineNumbersDomNode=document.createElement("div"),this._linesDomNodeScrollable=document.createElement("div"),this._linesDomNode=document.createElement("div"),this._lineHeight=this._editor.getOption(67),this._renderedStickyLines=[],this._lineNumbers=[],this._lastLineRelativePosition=0,this._minContentWidthInPx=0,this._isOnGlyphMargin=!1,this._lineNumbersDomNode.className="sticky-widget-line-numbers",this._lineNumbersDomNode.setAttribute("role","none"),this._linesDomNode.className="sticky-widget-lines",this._linesDomNode.setAttribute("role","list"),this._linesDomNodeScrollable.className="sticky-widget-lines-scrollable",this._linesDomNodeScrollable.appendChild(this._linesDomNode),this._rootDomNode.className="sticky-widget",this._rootDomNode.classList.toggle("peek",e instanceof V2),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);const t=()=>{this._linesDomNode.style.left=this._editor.getOption(115).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:"0px"};this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(115)&&t(),e.hasChanged(67)&&(this._lineHeight=this._editor.getOption(67))}))),this._register(this._editor.onDidScrollChange((e=>{e.scrollLeftChanged&&t(),e.scrollWidthChanged&&this._updateWidgetWidth()}))),this._register(this._editor.onDidChangeModel((()=>{t(),this._updateWidgetWidth()}))),this._register(this._foldingIconStore),t(),this._register(this._editor.onDidLayoutChange((e=>{this._updateWidgetWidth()}))),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getRenderedStickyLine(e){return this._renderedStickyLines.find((t=>t.lineNumber===e))}getCurrentLines(){return this._lineNumbers}setState(e,t,i){if(void 0===i&&(!this._previousState&&!e||this._previousState&&this._previousState.equals(e)))return;const n=this._isWidgetHeightZero(e),o=n?void 0:e,s=n?0:this._findLineToRebuildWidgetFrom(e,i);this._renderRootNode(o,t,s),this._previousState=e}_isWidgetHeightZero(e){if(!e)return!0;const t=e.startLineNumbers.length*this._lineHeight+e.lastLineRelativePosition;if(t>0){this._lastLineRelativePosition=e.lastLineRelativePosition;const t=[...e.startLineNumbers];null!==e.showEndForLine&&(t[e.showEndForLine]=e.endLineNumbers[e.showEndForLine]),this._lineNumbers=t}else this._lastLineRelativePosition=0,this._lineNumbers=[];return 0===t}_findLineToRebuildWidgetFrom(e,t){if(!e||!this._previousState)return 0;if(void 0!==t)return t;const i=this._previousState,n=e.startLineNumbers.findIndex((e=>!i.startLineNumbers.includes(e)));return-1===n?0:n}_updateWidgetWidth(){const e=this._editor.getLayoutInfo(),t=e.contentLeft;this._lineNumbersDomNode.style.width=`${t}px`,this._linesDomNodeScrollable.style.setProperty("--vscode-editorStickyScroll-scrollableWidth",this._editor.getScrollWidth()-e.verticalScrollbarWidth+"px"),this._rootDomNode.style.width=e.width-e.verticalScrollbarWidth+"px"}_clearStickyLinesFromLine(e){this._foldingIconStore.clear();for(let t=e;te.scrollWidth)))+n.verticalScrollbarWidth,this._editor.layoutOverlayWidget(this)}_setFoldingHoverListeners(){"mouseover"===this._editor.getOption(110)&&(this._foldingIconStore.add(yl(this._lineNumbersDomNode,mc.MOUSE_ENTER,(()=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)}))),this._foldingIconStore.add(yl(this._lineNumbersDomNode,mc.MOUSE_LEAVE,(()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)}))))}_renderChildNode(e,t,i,n){const o=this._editor._getViewModel();if(!o)return;const s=o.coordinatesConverter.convertModelPositionToViewPosition(new Wn(t,1)).lineNumber,r=o.getViewLineRenderingData(s),a=this._editor.getOption(68);let l;try{l=Lf.filter(r.inlineDecorations,s,r.minColumn,r.maxColumn)}catch(sue){l=[]}const c=new Of(!0,!0,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,0,r.tokens,l,r.tabSize,r.startVisibleColumn,1,1,1,500,"none",!0,!0,null),d=new xu(2e3),h=Ff(c,d);let u;u=Moe?Moe.createHTML(d.build()):d.build();const g=document.createElement("span");g.setAttribute(Poe,String(e)),g.setAttribute(Foe,""),g.setAttribute("role","listitem"),g.tabIndex=0,g.className="sticky-line-content",g.classList.add(`stickyLine${t}`),g.style.lineHeight=`${this._lineHeight}px`,g.innerHTML=u;const m=document.createElement("span");m.setAttribute(Poe,String(e)),m.setAttribute("data-sticky-is-line-number",""),m.className="sticky-line-number",m.style.lineHeight=`${this._lineHeight}px`;const p=n.contentLeft;m.style.width=`${p}px`;const f=document.createElement("span");1===a.renderType||3===a.renderType&&t%10==0?f.innerText=t.toString():2===a.renderType&&(f.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),f.className="sticky-line-number-inner",f.style.lineHeight=`${this._lineHeight}px`,f.style.width=`${n.lineNumbersWidth}px`,f.style.paddingLeft=`${n.lineNumbersLeft}px`,m.appendChild(f);const _=this._renderFoldingIconForLine(i,t);_&&m.appendChild(_.domNode),this._editor.applyFontInfo(g),this._editor.applyFontInfo(f),m.style.lineHeight=`${this._lineHeight}px`,g.style.lineHeight=`${this._lineHeight}px`,m.style.height=`${this._lineHeight}px`,g.style.height=`${this._lineHeight}px`;const b=new Woe(e,t,g,m,_,h.characterMapping,g.scrollWidth);return this._updateTopAndZIndexOfStickyLine(b)}_updateTopAndZIndexOfStickyLine(e){var t;const i=e.index,n=e.lineDomNode,o=e.lineNumberDomNode,s=i===this._lineNumbers.length-1;n.style.zIndex=s?"0":"1",o.style.zIndex=s?"0":"1";const r=`${i*this._lineHeight+this._lastLineRelativePosition+((null===(t=e.foldingIcon)||void 0===t?void 0:t.isCollapsed)?1:0)}px`,a=i*this._lineHeight+"px";return n.style.top=s?r:a,o.style.top=s?r:a,e}_renderFoldingIconForLine(e,t){const i=this._editor.getOption(110);if(!e||"never"===i)return;const n=e.regions,o=n.findRange(t),s=n.getStartLineNumber(o);if(t!==s)return;const r=n.isCollapsed(o),a=new Uoe(r,s,n.getEndLineNumber(o),this._lineHeight);return a.setVisible(!!this._isOnGlyphMargin||r||"always"===i),a.domNode.setAttribute(Boe,""),a}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:null}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(e){0<=e&&e0)return null;const t=this._getRenderedStickyLineFromChildDomNode(e);if(!t)return null;const i=WC(t.characterMapping,e,0);return new Wn(t.lineNumber,i)}getLineNumberFromChildDomNode(e){var t,i;return null!==(i=null===(t=this._getRenderedStickyLineFromChildDomNode(e))||void 0===t?void 0:t.lineNumber)&&void 0!==i?i:null}_getRenderedStickyLineFromChildDomNode(e){const t=this.getLineIndexFromChildDomNode(e);return null===t||t<0||t>=this._renderedStickyLines.length?null:this._renderedStickyLines[t]}getLineIndexFromChildDomNode(e){const t=this._getAttributeValue(e,Poe);return t?parseInt(t,10):null}isInStickyLine(e){return void 0!==this._getAttributeValue(e,Foe)}isInFoldingIconDomNode(e){return void 0!==this._getAttributeValue(e,Boe)}_getAttributeValue(e,t){for(;e&&e!==this._rootDomNode;){const i=e.getAttribute(t);if(null!==i)return i;e=e.parentElement}}}class Woe{constructor(e,t,i,n,o,s,r){this.index=e,this.lineNumber=t,this.lineDomNode=i,this.lineNumberDomNode=n,this.foldingIcon=o,this.characterMapping=s,this.scrollWidth=r}}class Uoe{constructor(e,t,i,n){this.isCollapsed=e,this.foldingStartLine=t,this.foldingEndLine=i,this.dimension=n,this.domNode=document.createElement("div"),this.domNode.style.width=`${n}px`,this.domNode.style.height=`${n}px`,this.domNode.className=gd.asClassName(e?T9:w9)}setVisible(e){this.domNode.style.cursor=e?"pointer":"default",this.domNode.style.opacity=e?"1":"0"}}class Voe{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}}class Goe{constructor(e,t,i){this.range=e,this.children=t,this.parent=i}}class zoe{constructor(e,t,i,n){this.uri=e,this.version=t,this.element=i,this.outlineProviderId=n}}var Koe,Yoe,qoe=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},$oe=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};!function(e){e.OUTLINE_MODEL="outlineModel",e.FOLDING_PROVIDER_MODEL="foldingProviderModel",e.INDENTATION_MODEL="indentationModel"}(Koe||(Koe={})),function(e){e[e.VALID=0]="VALID",e[e.INVALID=1]="INVALID",e[e.CANCELED=2]="CANCELED"}(Yoe||(Yoe={}));let joe=class extends mi{constructor(e,t,i,n){switch(super(),this._editor=e,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new Br(300)),this._updateOperation=this._register(new gi),this._editor.getOption(115).defaultModel){case Koe.OUTLINE_MODEL:this._modelProviders.push(new Joe(this._editor,n));case Koe.FOLDING_PROVIDER_MODEL:this._modelProviders.push(new ese(this._editor,t,n));case Koe.INDENTATION_MODEL:this._modelProviders.push(new Zoe(this._editor,i))}}dispose(){this._modelProviders.forEach((e=>e.dispose())),this._updateOperation.clear(),this._cancelModelPromise(),super.dispose()}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}async update(e){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),await this._updateScheduler.trigger((async()=>{for(const t of this._modelProviders){const{statusPromise:i,modelPromise:n}=t.computeStickyModel(e);this._modelPromise=n;const o=await i;if(this._modelPromise!==n)return null;switch(o){case Yoe.CANCELED:return this._updateOperation.clear(),null;case Yoe.VALID:return t.stickyModel}}return null})).catch((e=>(Jt(e),null)))}};joe=qoe([$oe(2,td),$oe(3,lf)],joe);class Xoe extends mi{constructor(e){super(),this._editor=e,this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,Yoe.INVALID}computeStickyModel(e){if(e.isCancellationRequested||!this.isProviderValid())return{statusPromise:this._invalid(),modelPromise:null};const t=Mr((e=>this.createModelFromProvider(e)));return{statusPromise:t.then((t=>this.isModelValid(t)?e.isCancellationRequested?Yoe.CANCELED:(this._stickyModel=this.createStickyModel(e,t),Yoe.VALID):this._invalid())).then(void 0,(e=>(Jt(e),Yoe.CANCELED))),modelPromise:t}}isModelValid(e){return!0}isProviderValid(){return!0}}let Joe=class extends Xoe{constructor(e,t){super(e),this._languageFeaturesService=t}createModelFromProvider(e){return Z9.create(this._languageFeaturesService.documentSymbolProvider,this._editor.getModel(),e)}createStickyModel(e,t){var i;const{stickyOutlineElement:n,providerID:o}=this._stickyModelFromOutlineModel(t,null===(i=this._stickyModel)||void 0===i?void 0:i.outlineProviderId),s=this._editor.getModel();return new zoe(s.uri,s.getVersionId(),n,o)}isModelValid(e){return e&&e.children.size>0}_stickyModelFromOutlineModel(e,t){let i;if(nt.first(e.children.values())instanceof Q9){const n=nt.find(e.children.values(),(e=>e.id===t));if(n)i=n.children;else{let n,o="",s=-1;for(const[t,i]of e.children.entries()){const e=this._findSumOfRangesOfGroup(i);e>s&&(n=i,s=e,o=i.id)}t=o,i=n.children}}else i=e.children;const n=[],o=Array.from(i.values()).sort(((e,t)=>{const i=new Voe(e.symbol.range.startLineNumber,e.symbol.range.endLineNumber),n=new Voe(t.symbol.range.startLineNumber,t.symbol.range.endLineNumber);return this._comparator(i,n)}));for(const s of o)n.push(this._stickyModelFromOutlineElement(s,s.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new Goe(void 0,n,void 0),providerID:t}}_stickyModelFromOutlineElement(e,t){const i=[];for(const o of e.children.values())if(o.symbol.selectionRange.startLineNumber!==o.symbol.range.endLineNumber)if(o.symbol.selectionRange.startLineNumber!==t)i.push(this._stickyModelFromOutlineElement(o,o.symbol.selectionRange.startLineNumber));else for(const e of o.children.values())i.push(this._stickyModelFromOutlineElement(e,o.symbol.selectionRange.startLineNumber));i.sort(((e,t)=>this._comparator(e.range,t.range)));const n=new Voe(e.symbol.selectionRange.startLineNumber,e.symbol.range.endLineNumber);return new Goe(n,i,void 0)}_comparator(e,t){return e.startLineNumber!==t.startLineNumber?e.startLineNumber-t.startLineNumber:t.endLineNumber-e.endLineNumber}_findSumOfRangesOfGroup(e){let t=0;for(const i of e.children.values())t+=this._findSumOfRangesOfGroup(i);return e instanceof J9?t+e.symbol.range.endLineNumber-e.symbol.selectionRange.startLineNumber:t}};Joe=qoe([$oe(1,lf)],Joe);class Qoe extends Xoe{constructor(e){super(e),this._foldingLimitReporter=new H9(e)}createStickyModel(e,t){const i=this._fromFoldingRegions(t),n=this._editor.getModel();return new zoe(n.uri,n.getVersionId(),i,void 0)}isModelValid(e){return null!==e}_fromFoldingRegions(e){const t=e.length,i=[],n=new Goe(void 0,[],void 0);for(let o=0;o0&&(this.provider=this._register(new D9(e.getModel(),n,t,this._foldingLimitReporter,void 0)))}isProviderValid(){return void 0!==this.provider}async createModelFromProvider(e){var t,i;return null!==(i=null===(t=this.provider)||void 0===t?void 0:t.compute(e))&&void 0!==i?i:null}};ese=qoe([$oe(2,lf)],ese);var tse=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},ise=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class nse{constructor(e,t,i){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=i}}let ose=class extends mi{constructor(e,t,i){super(),this._languageFeaturesService=t,this._languageConfigurationService=i,this._onDidChangeStickyScroll=this._register(new Ri),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=e,this._sessionStore=this._register(new gi),this._updateSoon=this._register(new Kr((()=>this.update()),50)),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(115)&&this.readConfiguration()}))),this.readConfiguration()}readConfiguration(){this._sessionStore.clear(),this._editor.getOption(115).enabled&&(this._sessionStore.add(this._editor.onDidChangeModel((()=>{this._model=null,this.updateStickyModelProvider(),this._onDidChangeStickyScroll.fire(),this.update()}))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas((()=>this.update()))),this._sessionStore.add(this._editor.onDidChangeModelContent((()=>this._updateSoon.schedule()))),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>this.update()))),this._sessionStore.add(ui((()=>{var e;null===(e=this._stickyModelProvider)||void 0===e||e.dispose(),this._stickyModelProvider=null}))),this.updateStickyModelProvider(),this.update())}getVersionId(){var e;return null===(e=this._model)||void 0===e?void 0:e.version}updateStickyModelProvider(){var e;null===(e=this._stickyModelProvider)||void 0===e||e.dispose(),this._stickyModelProvider=null;const t=this._editor;t.hasModel()&&(this._stickyModelProvider=new joe(t,(()=>this._updateSoon.schedule()),this._languageConfigurationService,this._languageFeaturesService))}async update(){var e;null===(e=this._cts)||void 0===e||e.dispose(!0),this._cts=new Fi,await this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()}async updateStickyModel(e){if(!this._editor.hasModel()||!this._stickyModelProvider||this._editor.getModel().isTooLargeForTokenization())return void(this._model=null);const t=await this._stickyModelProvider.update(e);e.isCancellationRequested||(this._model=t)}updateIndex(e){return-1===e?e=0:e<0&&(e=-e-2),e}getCandidateStickyLinesIntersectingFromStickyModel(e,t,i,n,o){if(0===t.children.length)return;let s=o;const r=[];for(let c=0;ce-t))),l=this.updateIndex(v(r,e.startLineNumber+n,((e,t)=>e-t)));for(let c=a;c<=l;c++){const r=t.children[c];if(!r)return;if(r.range){const t=r.range.startLineNumber,o=r.range.endLineNumber;e.startLineNumber<=o+1&&t-1<=e.endLineNumber&&t!==s&&(s=t,i.push(new nse(t,o-1,n+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(e,r,i,n+1,t))}else this.getCandidateStickyLinesIntersectingFromStickyModel(e,r,i,n,o)}}getCandidateStickyLinesIntersecting(e){var t,i;if(!(null===(t=this._model)||void 0===t?void 0:t.element))return[];let n=[];this.getCandidateStickyLinesIntersectingFromStickyModel(e,this._model.element,n,0,-1);const o=null===(i=this._editor._getViewModel())||void 0===i?void 0:i.getHiddenAreas();if(o)for(const s of o)n=n.filter((e=>!(e.startLineNumber>=s.startLineNumber&&e.endLineNumber<=s.endLineNumber+1)));return n}};ose=tse([ise(1,lf),ise(2,Lg)],ose);var sse,rse=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},ase=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let lse=sse=class extends mi{constructor(e,t,i,n,o,s,r){super(),this._editor=e,this._contextMenuService=t,this._languageFeaturesService=i,this._instaService=n,this._contextKeyService=r,this._sessionStore=new gi,this._foldingModel=null,this._maxStickyLines=Number.MAX_SAFE_INTEGER,this._candidateDefinitionsLength=-1,this._focusedStickyElementIndex=-1,this._enabled=!1,this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1,this._endLineNumbers=[],this._showEndForLine=null,this._stickyScrollWidget=new Hoe(this._editor),this._stickyLineCandidateProvider=new ose(this._editor,i,o),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=new xoe([],[],0),this._onDidResize(),this._readConfiguration();const a=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration((e=>{this._readConfigurationChange(e)}))),this._register(yl(a,mc.CONTEXT_MENU,(async e=>{this._onContextMenu(gl(a),e)}))),this._stickyScrollFocusedContextKey=JT.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=JT.stickyScrollVisible.bindTo(this._contextKeyService);const l=this._register(bc(a));this._register(l.onDidBlur((e=>{!1===this._positionRevealed&&0===a.clientHeight?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()}))),this._register(l.onDidFocus((e=>{this.focus()}))),this._registerMouseListeners(),this._register(yl(a,mc.MOUSE_DOWN,(e=>{this._onMouseDown=!0})))}static get(e){return e.getContribution(sse.ID)}_disposeFocusStickyScrollStore(){var e;this._stickyScrollFocusedContextKey.set(!1),null===(e=this._focusDisposableStore)||void 0===e||e.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown)return this._onMouseDown=!1,void this._editor.focus();!0!==this._stickyScrollFocusedContextKey.get()&&(this._focused=!0,this._focusDisposableStore=new gi,this._stickyScrollFocusedContextKey.set(!0),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}focusNext(){this._focusedStickyElementIndex0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(e){this._focusedStickyElementIndex=e?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}goToFocused(){const e=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:e[this._focusedStickyElementIndex],column:1})}_revealPosition(e){this._reveaInEditor(e,(()=>this._editor.revealPosition(e)))}_revealLineInCenterIfOutsideViewport(e){this._reveaInEditor(e,(()=>this._editor.revealLineInCenterIfOutsideViewport(e.lineNumber,0)))}_reveaInEditor(e,t){this._focused&&this._disposeFocusStickyScrollStore(),this._positionRevealed=!0,t(),this._editor.setSelection(Un.fromPositions(e)),this._editor.focus()}_registerMouseListeners(){const e=this._register(new gi),t=this._register(new P2(this._editor,{extractLineNumberFromMouseEvent:e=>{const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);return t?t.lineNumber:0}})),i=e=>{if(!this._editor.hasModel())return null;if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return null;const t=e.target.element;if(!t||t.innerText!==t.innerHTML)return null;const i=this._stickyScrollWidget.getEditorPositionFromNode(t);return i?{range:new Un(i.lineNumber,i.column,i.lineNumber,i.column+t.innerText.length),textElement:t}:null},n=this._stickyScrollWidget.getDomNode();this._register(Ll(n,mc.CLICK,(e=>{if(e.ctrlKey||e.altKey||e.metaKey)return;if(!e.leftButton)return;if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t)return;const i=new Wn(this._endLineNumbers[t],1);return void this._revealLineInCenterIfOutsideViewport(i)}if(this._stickyScrollWidget.isInFoldingIconDomNode(e.target)){const t=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);return void this._toggleFoldingRegionForLine(t)}if(!this._stickyScrollWidget.isInStickyLine(e.target))return;let t=this._stickyScrollWidget.getEditorPositionFromNode(e.target);if(!t){const i=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);if(null===i)return;t=new Wn(i,1)}this._revealPosition(t)}))),this._register(Ll(n,mc.MOUSE_MOVE,(e=>{if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t||null!==this._showEndForLine&&this._showEndForLine===t)return;return this._showEndForLine=t,void this._renderStickyScroll()}null!==this._showEndForLine&&(this._showEndForLine=null,this._renderStickyScroll())}))),this._register(yl(n,mc.MOUSE_LEAVE,(e=>{null!==this._showEndForLine&&(this._showEndForLine=null,this._renderStickyScroll())}))),this._register(t.onMouseMoveOrRelevantKeyDown((([t,n])=>{const o=i(t);if(!o||!t.hasTriggerModifier||!this._editor.hasModel())return void e.clear();const{range:s,textElement:r}=o;if(s.equalsRange(this._stickyRangeProjectedOnEditor)){if("underline"===r.style.textDecoration)return}else this._stickyRangeProjectedOnEditor=s,e.clear();const a=new Fi;let l;e.add(ui((()=>a.dispose(!0)))),G4(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new Wn(s.startLineNumber,s.startColumn+1),a.token).then((t=>{if(!a.token.isCancellationRequested)if(0!==t.length){this._candidateDefinitionsLength=t.length;const i=r;l!==i?(e.clear(),l=i,l.style.textDecoration="underline",e.add(ui((()=>{l.style.textDecoration="none"})))):l||(l=i,l.style.textDecoration="underline",e.add(ui((()=>{l.style.textDecoration="none"}))))}else e.clear()}))}))),this._register(t.onCancel((()=>{e.clear()}))),this._register(t.onExecute((async e=>{if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return;const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);t&&this._editor.hasModel()&&this._stickyRangeProjectedOnEditor&&(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:t.lineNumber,column:1})),this._instaService.invokeFunction(u5,e,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor}))})))}_onContextMenu(e,t){const i=new kr(e,t);this._contextMenuService.showContextMenu({menuId:bh.StickyScrollContext,getAnchor:()=>i})}_toggleFoldingRegionForLine(e){if(!this._foldingModel||null===e)return;const t=this._stickyScrollWidget.getRenderedStickyLine(e),i=null==t?void 0:t.foldingIcon;if(!i)return;h9(this._foldingModel,Number.MAX_VALUE,[e]),i.isCollapsed=!i.isCollapsed;const n=(i.isCollapsed?this._editor.getTopForLineNumber(i.foldingEndLine):this._editor.getTopForLineNumber(i.foldingStartLine))-this._editor.getOption(67)*t.index+1;this._editor.setScrollTop(n),this._renderStickyScroll(e)}_readConfiguration(){const e=this._editor.getOption(115);if(!1===e.enabled)return this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),void(this._enabled=!1);e.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&(this._showEndForLine=null,this._renderStickyScroll())}))),this._sessionStore.add(this._editor.onDidLayoutChange((()=>this._onDidResize()))),this._sessionStore.add(this._editor.onDidChangeModelTokens((e=>this._onTokensChange(e)))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll((()=>{this._showEndForLine=null,this._renderStickyScroll()}))),this._enabled=!0),2===this._editor.getOption(68).renderType&&this._sessionStore.add(this._editor.onDidChangeCursorPosition((()=>{this._showEndForLine=null,this._renderStickyScroll(0)})))}_readConfigurationChange(e){(e.hasChanged(115)||e.hasChanged(73)||e.hasChanged(67)||e.hasChanged(110)||e.hasChanged(68))&&this._readConfiguration(),e.hasChanged(68)&&this._renderStickyScroll(0)}_needsUpdate(e){const t=this._stickyScrollWidget.getCurrentLines();for(const i of t)for(const t of e.ranges)if(i>=t.fromLineNumber&&i<=t.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._renderStickyScroll(0)}_onDidResize(){const e=this._editor.getLayoutInfo().height/this._editor.getOption(67);this._maxStickyLines=Math.round(.25*e)}async _renderStickyScroll(e){var t,i;const n=this._editor.getModel();if(!n||n.isTooLargeForTokenization())return this._foldingModel=null,void this._stickyScrollWidget.setState(void 0,null);const o=this._stickyLineCandidateProvider.getVersionId();if(void 0===o||o===n.getVersionId())if(this._foldingModel=null!==(i=await(null===(t=B9.get(this._editor))||void 0===t?void 0:t.getFoldingModel()))&&void 0!==i?i:null,this._widgetState=this.findScrollWidgetState(),this._stickyScrollVisibleContextKey.set(!(0===this._widgetState.startLineNumbers.length)),this._focused)if(-1===this._focusedStickyElementIndex)this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,-1!==this._focusedStickyElementIndex&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{const t=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e),0===this._stickyScrollWidget.lineNumberCount?this._focusedStickyElementIndex=-1:(this._stickyScrollWidget.lineNumbers.includes(t)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}else this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e)}findScrollWidgetState(){const e=this._editor.getOption(67),t=Math.min(this._maxStickyLines,this._editor.getOption(115).maxLineCount),i=this._editor.getScrollTop();let n=0;const o=[],s=[],r=this._editor.getVisibleRanges();if(0!==r.length){const a=new Voe(r[0].startLineNumber,r[r.length-1].endLineNumber),l=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(a);for(const r of l){const a=r.startLineNumber,l=r.endLineNumber,c=r.nestingDepth;if(l-a>0){const r=(c-1)*e,d=c*e,h=this._editor.getBottomForLineNumber(a)-i,u=this._editor.getTopForLineNumber(l)-i,g=this._editor.getBottomForLineNumber(l)-i;if(r>u&&r<=g){o.push(a),s.push(l+1),n=g-d;break}if(d>h&&d<=g&&(o.push(a),s.push(l+1)),o.length===t)break}}}return this._endLineNumbers=s,new xoe(o,s,n,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}};lse.ID="store.contrib.stickyScrollController",lse=sse=rse([ase(1,Ex),ase(2,lf),ase(3,td),ase(4,Lg),ase(5,RO),ase(6,Zd)],lse);const cse=100;zh(lse.ID,lse,1),yh(class extends Th{constructor(){super({id:"editor.action.toggleStickyScroll",title:{...fe(0,"Toggle Editor Sticky Scroll"),mnemonicTitle:pe("vs/editor/contrib/stickyScroll/browser/stickyScrollActions",{key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Editor Sticky Scroll")},metadata:{description:fe(0,"Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport")},category:Ooe.View,toggled:{condition:Dd.equals("config.editor.stickyScroll.enabled",!0),title:pe("vs/editor/contrib/stickyScroll/browser/stickyScrollActions","stickyScroll","Sticky Scroll"),mnemonicTitle:pe("vs/editor/contrib/stickyScroll/browser/stickyScrollActions",{key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:bh.CommandPalette},{id:bh.MenubarAppearanceMenu,group:"4_editor",order:3},{id:bh.StickyScrollContext}]})}async run(e){const t=e.get($u),i=!t.getValue("editor.stickyScroll.enabled");return t.updateValue("editor.stickyScroll.enabled",i)}}),yh(class extends Hh{constructor(){super({id:"editor.action.focusStickyScroll",title:{...fe(0,"Focus on the editor sticky scroll"),mnemonicTitle:pe("vs/editor/contrib/stickyScroll/browser/stickyScrollActions",{key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll")},precondition:Dd.and(Dd.has("config.editor.stickyScroll.enabled"),JT.stickyScrollVisible),menu:[{id:bh.CommandPalette}]})}runEditorCommand(e,t){var i;null===(i=lse.get(t))||void 0===i||i.focus()}}),yh(class extends Hh{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:fe(0,"Select the previous sticky scroll line"),precondition:JT.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:cse,primary:16}})}runEditorCommand(e,t){var i;null===(i=lse.get(t))||void 0===i||i.focusPrevious()}}),yh(class extends Hh{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:fe(0,"Select the next editor sticky scroll line"),precondition:JT.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:cse,primary:18}})}runEditorCommand(e,t){var i;null===(i=lse.get(t))||void 0===i||i.focusNext()}}),yh(class extends Hh{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:fe(0,"Go to the focused sticky scroll line"),precondition:JT.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:cse,primary:3}})}runEditorCommand(e,t){var i;null===(i=lse.get(t))||void 0===i||i.goToFocused()}}),yh(class extends Hh{constructor(){super({id:"editor.action.selectEditor",title:fe(0,"Select Editor"),precondition:JT.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:cse,primary:9}})}runEditorCommand(e,t){var i;null===(i=lse.get(t))||void 0===i||i.selectEditor()}});var dse=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},hse=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};class use{constructor(e,t,i,n,o,s){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=n,this.command=o,this.completion=s}}let gse=class extends fi{constructor(e,t,i,n,o,s){super(o.disposable),this.model=e,this.line=t,this.word=i,this.completionModel=n,this._suggestMemoryService=s}canBeReused(e,t,i){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn=0&&a.resolve(Mi.None)}return t}};gse=dse([hse(5,I8)],gse);let mse=class extends mi{constructor(e,t,i,n){super(),this._languageFeatureService=e,this._clipboardService=t,this._suggestMemoryService=i,this._editorService=n,this._store.add(e.inlineCompletionsProvider.register("*",this))}async provideInlineCompletions(e,t,i,n){var o;if(i.selectedSuggestionInfo)return;let s;for(const g of this._editorService.listCodeEditors())if(g.getModel()===e){s=g;break}if(!s)return;const r=s.getOption(89);if(Y7.isAllOff(r))return;e.tokenization.tokenizeIfCheap(t.lineNumber);const a=e.tokenization.getLineTokens(t.lineNumber),l=a.getStandardTokenType(a.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("inline"!==Y7.valueFor(r,l))return;let c,d,h=e.getWordAtPosition(t);if((null==h?void 0:h.word)||(c=this._getTriggerCharacterInfo(e,t)),!(null==h?void 0:h.word)&&!c)return;if(h||(h=e.getWordUntilPosition(t)),h.endColumn!==t.column)return;const u=e.getValueInRange(new Un(t.lineNumber,1,t.lineNumber,t.column));if(!c&&(null===(o=this._lastResult)||void 0===o?void 0:o.canBeReused(e,t.lineNumber,h))){const e=new W8(u,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=e,this._lastResult.acquire(),d=this._lastResult}else{const i=await G7(this._languageFeatureService.completionProvider,e,t,new U7(void 0,Y8.createSuggestFilter(s).itemKind,null==c?void 0:c.providers),c&&{triggerKind:1,triggerCharacter:c.ch},n);let o;i.needsClipboard&&(o=await this._clipboardService.readText());const r=new U8(i.items,t.column,new W8(u,0),H8.None,s.getOption(118),s.getOption(112),{boostFullMatch:!1,firstMatchCanBeWeak:!1},o);d=new gse(e,t.lineNumber,h,r,i,this._suggestMemoryService)}return this._lastResult=d,d}handleItemDidShow(e,t){t.completion.resolve(Mi.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){var i;const n=e.getValueInRange(Un.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),o=new Set;for(const s of this._languageFeatureService.completionProvider.all(e))(null===(i=s.triggerCharacters)||void 0===i?void 0:i.includes(n))&&o.add(s);if(0!==o.size)return{providers:o,ch:n}}};mse=dse([hse(0,lf),hse(1,WY),hse(2,I8),hse(3,nd)],mse),pq(mse),Vh(class extends Fh{constructor(){super({id:"editor.action.forceRetokenize",label:pe("vs/editor/contrib/tokenization/browser/tokenization","forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getModel();i.tokenization.resetTokenization();const n=new Si;i.tokenization.forceTokenization(i.getLineCount()),n.stop()}});class pse extends Th{constructor(){super({id:pse.ID,title:fe(0,"Toggle Tab Key Moves Focus"),precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},metadata:{description:fe(0,"Determines whether the tab key moves focus around the workbench or inserts the tab character in the current editor. This is also called tab trapping, tab navigation, or tab focus mode.")},f1:!0})}run(){const e=!H_.getTabFocusMode();H_.setTabFocusMode(e),L_(e?pe("vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode","toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element"):pe("vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode","toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}pse.ID="editor.action.toggleTabFocusMode",yh(pse);var fse=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},_se=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let bse=class extends mi{get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}constructor(e,t,i={},n,o){var s,r;super(),this._link=t,this._hoverService=n,this._enabled=!0,this.el=vc(e,yc("a.monaco-link",{tabIndex:null!==(s=t.tabIndex)&&void 0!==s?s:0,href:t.href},t.label)),this.hoverDelegate=null!==(r=i.hoverDelegate)&&void 0!==r?r:vB("mouse"),this.setTooltip(t.title),this.el.setAttribute("role","button");const a=this._register(new AE(this.el,"click")),l=this._register(new AE(this.el,"keypress")),c=Ci.chain(l.event,(e=>e.map((e=>new Lr(e))).filter((e=>3===e.keyCode)))),d=this._register(new AE(this.el,nE.Tap)).event;this._register(sE.addTarget(this.el));const h=Ci.any(a.event,c,d);this._register(h((e=>{this.enabled&&(fc(e,!0),(null==i?void 0:i.opener)?i.opener(this._link.href):o.open(this._link.href,{allowCommands:!0}))}))),this.enabled=!0}setTooltip(e){this.hoverDelegate.showNativeHover?this.el.title=null!=e?e:"":!this.hover&&e?this.hover=this._register(this._hoverService.setupUpdatableHover(this.hoverDelegate,this.el,e)):this.hover&&this.hover.update(e)}};bse=fse([_se(3,vx),_se(4,Ax)],bse);var vse=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Sse=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let Cse=class extends mi{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(Ese))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show({...e,onClose:()=>{var t;this.hide(),null===(t=e.onClose)||void 0===t||t.call(e)}}),this._editor.setBanner(this.banner.element,26)}};Cse=vse([Sse(1,td)],Cse);let Ese=class extends mi{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(IP,{}),this.element=yc("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){return e.ariaLabel?e.ariaLabel:"string"==typeof e.message?e.message:void 0}getBannerMessage(e){if("string"==typeof e){const t=yc("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){wl(this.element)}show(e){wl(this.element);const t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);const i=vc(this.element,yc("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild(yc(`div${gd.asCSSSelector(e.icon)}`));const n=vc(this.element,yc("div.message-container"));if(n.setAttribute("aria-hidden","true"),n.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=vc(this.element,yc("div.message-actions-container")),e.actions)for(const s of e.actions)this._register(this.instantiationService.createInstance(bse,this.messageActionsContainer,{...s,tabIndex:-1},{}));const o=vc(this.element,yc("div.action-container"));this.actionBar=this._register(new zW(o)),this.actionBar.push(this._register(new rd("banner.close","Close Banner",gd.asClassName(dY),!0,(()=>{"function"==typeof e.onClose&&e.onClose()}))),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};Ese=vse([Sse(0,td)],Ese);var wse=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Tse=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const yse=sY("extensions-warning-message",Yn.warning,pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","warningIcon","Icon shown with a warning message in the extensions editor."));let Rse=class extends mi{constructor(e,t,i,n){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=e=>{if(e&&e.hasMore){if(this._bannerClosed)return;const t=Math.max(e.ambiguousCharacterCount,e.nonBasicAsciiCharacterCount,e.invisibleCharacterCount);let i;if(e.nonBasicAsciiCharacterCount>=t)i={message:pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new Hse};else if(e.ambiguousCharacterCount>=t)i={message:pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new Fse};else{if(!(e.invisibleCharacterCount>=t))throw new Error("Unreachable");i={message:pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new Bse}}this._bannerController.show({id:"unicodeHighlightBanner",message:i.message,icon:yse,actions:[{label:i.command.shortLabel,href:`command:${i.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(n.createInstance(Cse,e)),this._register(this._editor.onDidChangeModel((()=>{this._bannerClosed=!1,this._updateHighlighter()}))),this._options=e.getOption(125),this._register(i.onDidChangeTrust((e=>{this._updateHighlighter()}))),this._register(e.onDidChangeConfiguration((t=>{t.hasChanged(125)&&(this._options=e.getOption(125),this._updateHighlighter())}))),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const e=(t=this._workspaceTrustService.isWorkspaceTrusted(),{nonBasicASCII:(i=this._options).nonBasicASCII===Ft?!t:i.nonBasicASCII,ambiguousCharacters:i.ambiguousCharacters,invisibleCharacters:i.invisibleCharacters,includeComments:i.includeComments===Ft?!t:i.includeComments,includeStrings:i.includeStrings===Ft?!t:i.includeStrings,allowedCharacters:i.allowedCharacters,allowedLocales:i.allowedLocales});var t,i;if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every((e=>!1===e)))return;const n={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map((e=>e.codePointAt(0))),allowedLocales:Object.keys(e.allowedLocales).map((e=>"_os"===e?(new Intl.NumberFormat).resolvedOptions().locale:"_vscode"===e?ze:e))};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new Lse(this._editor,n,this._updateState,this._editorWorkerService):this._highlighter=new Ise(this._editor,n,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};Rse.ID="editor.contrib.unicodeHighlighter",Rse=wse([Tse(1,hU),Tse(2,nB),Tse(3,td)],Rse);let Lse=class extends mi{constructor(e,t,i,n){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=n,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new Kr((()=>this._update()),250)),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then((t=>{if(this._model.isDisposed())return;if(this._model.getVersionId()!==e)return;this._updateState(t);const i=[];if(!t.hasMore)for(const e of t.ranges)i.push({range:e,options:xse.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)}))}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel();return iD(t,e)?{reason:Ose(t.getValueInRange(e.range),this._options),inComment:nD(t,e),inString:oD(t,e)}:null}};Lse=wse([Tse(3,hU)],Lse);class Ise extends mi{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new Kr((()=>this._update()),250)),this._register(this._editor.onDidLayoutChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidScrollChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeHiddenAreas((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const n of e){const e=Om.computeUnicodeHighlights(this._model,this._options,n);for(const t of e.ranges)i.ranges.push(t);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||e.hasMore}if(!i.hasMore)for(const n of i.ranges)t.push({range:n,options:xse.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel(),i=t.getValueInRange(e.range);return iD(t,e)?{reason:Ose(i,this._options),inComment:nD(t,e),inString:oD(t,e)}:null}}const Ase=pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options");let Nse=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),n=this._editor.getContribution(Rse.ID);if(!n)return[];const o=[],s=new Set;let r=300;for(const a of t){const e=n.getDecorationInfo(a);if(!e)continue;const t=i.getValueInRange(a.range).codePointAt(0),l=Dse(t);let c;switch(e.reason.kind){case 0:c=js(e.reason.confusableWith)?pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",l,Dse(e.reason.confusableWith.codePointAt(0))):pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",l,Dse(e.reason.confusableWith.codePointAt(0)));break;case 1:c=pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","unicodeHighlight.characterIsInvisible","The character {0} is invisible.",l);break;case 2:c=pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",l)}if(s.has(c))continue;s.add(c);const d={codePoint:t,reason:e.reason,inComment:e.inComment,inString:e.inString},h=pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","unicodeHighlight.adjustSettings","Adjust settings"),u=`command:${Wse.ID}?${encodeURIComponent(JSON.stringify(d))}`,g=new YM("",!0).appendMarkdown(c).appendText(" ").appendLink(u,h,Ase);o.push(new R2(this,a.range,[g],!1,r++))}return o}renderHoverParts(e,t){return function(e,t,i,n,o){t.sort(W((e=>e.ordinal),U));const s=new gi;for(const r of t)s.add(N2(i,e.fragment,r.contents,n,o,e.onContentsChanged));return s}(e,t,this._editor,this._languageService,this._openerService)}};function kse(e){return`U+${e.toString(16).padStart(4,"0")}`}function Dse(e){let t=`\`${kse(e)}\``;return ar.isInvisibleCharacter(e)||(t+=` "${i=e,96===i?"`` ` ``":"`"+String.fromCodePoint(i)+"`"}"`),t;var i}function Ose(e,t){return Om.computeUnicodeHighlightReason(e,t)}Nse=wse([Tse(1,eg),Tse(2,Ax)],Nse);class xse{constructor(){this.map=new Map}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){const i=`${e}${t}`;let n=this.map.get(i);return n||(n=VN.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,n)),n}}xse.instance=new xse;class Mse extends Fh{constructor(){super({id:Fse.ID,label:pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}async run(e,t,i){const n=null==e?void 0:e.get($u);n&&this.runAction(n)}async runAction(e){await e.updateValue(Vt,!1,2)}}class Pse extends Fh{constructor(){super({id:Fse.ID,label:pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}async run(e,t,i){const n=null==e?void 0:e.get($u);n&&this.runAction(n)}async runAction(e){await e.updateValue(Gt,!1,2)}}class Fse extends Fh{constructor(){super({id:Fse.ID,label:pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}async run(e,t,i){const n=null==e?void 0:e.get($u);n&&this.runAction(n)}async runAction(e){await e.updateValue(Ut,!1,2)}}Fse.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";class Bse extends Fh{constructor(){super({id:Bse.ID,label:pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}async run(e,t,i){const n=null==e?void 0:e.get($u);n&&this.runAction(n)}async runAction(e){await e.updateValue(Ht,!1,2)}}Bse.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";class Hse extends Fh{constructor(){super({id:Hse.ID,label:pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}async run(e,t,i){const n=null==e?void 0:e.get($u);n&&this.runAction(n)}async runAction(e){await e.updateValue(Wt,!1,2)}}Hse.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";class Wse extends Fh{constructor(){super({id:Wse.ID,label:pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}async run(e,t,i){const{codePoint:n,reason:o,inString:s,inComment:r}=i,a=String.fromCodePoint(n),l=e.get(OU),c=e.get($u),d=[];if(0===o.kind)for(const g of o.notAmbiguousInLocales)d.push({label:pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',g),run:async()=>{Use(c,[g])}});if(d.push({label:(h=n,ar.isInvisibleCharacter(h)?pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",kse(h)):pe("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${kse(h)} "${a}"`)),run:()=>async function(e,t){const i=e.getValue(Bt);let n;n="object"==typeof i&&i?i:{};for(const o of t)n[String.fromCodePoint(o)]=!0;await e.updateValue(Bt,n,2)}(c,[n])}),r){const e=new Mse;d.push({label:e.label,run:async()=>e.runAction(c)})}else if(s){const e=new Pse;d.push({label:e.label,run:async()=>e.runAction(c)})}var h;if(0===o.kind){const e=new Fse;d.push({label:e.label,run:async()=>e.runAction(c)})}else if(1===o.kind){const e=new Bse;d.push({label:e.label,run:async()=>e.runAction(c)})}else if(2===o.kind){const e=new Hse;d.push({label:e.label,run:async()=>e.runAction(c)})}else!function(e){throw new Error(`Unexpected value: ${e}`)}(o);const u=await l.pick(d,{title:Ase});u&&await u.run()}}async function Use(e,t){var i;const n=null===(i=e.inspect(zt).user)||void 0===i?void 0:i.value;let o;o="object"==typeof n&&n?Object.assign({},n):{};for(const s of t)o[s]=!0;await e.updateValue(zt,o,2)}Wse.ID="editor.action.unicodeHighlight.showExcludeOptions",Vh(Fse),Vh(Bse),Vh(Hse),Vh(Wse),zh(Rse.ID,Rse,1),b2.register(Nse);var Vse=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Gse=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const zse="ignoreUnusualLineTerminators";let Kse=class extends mi{constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._isPresentingDialog=!1,this._config=this._editor.getOption(126),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(126)&&(this._config=this._editor.getOption(126),this._checkForUnusualLineTerminators())}))),this._register(this._editor.onDidChangeModel((()=>{this._checkForUnusualLineTerminators()}))),this._register(this._editor.onDidChangeModelContent((e=>{e.isUndoing||this._checkForUnusualLineTerminators()}))),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){if("off"===this._config)return;if(!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators())return;var t,i;if(!0===(t=this._codeEditorService,i=e,t.getModelProperty(i.uri,zse)))return;if(this._editor.getOption(91))return;if("auto"===this._config)return void e.removeUnusualLineTerminators(this._editor.getSelections());if(this._isPresentingDialog)return;let n;try{this._isPresentingDialog=!0,n=await this._dialogService.confirm({title:pe("vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators","unusualLineTerminators.title","Unusual Line Terminators"),message:pe("vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators","unusualLineTerminators.message","Detected unusual line terminators"),detail:pe("vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators","unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",UI(e.uri)),primaryButton:pe("vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators",{key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:pe("vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators","unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}n.confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,i){e.setModelProperty(t.uri,zse,!0)}(this._codeEditorService,e)}};Kse.ID="editor.contrib.unusualLineTerminatorsDetector",Kse=Vse([Gse(1,rO),Gse(2,nd)],Kse),zh(Kse.ID,Kse,1);var Yse,qse,$se=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},jse=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};const Xse=new Qd("hasWordHighlights",!1);function Jse(e,t,i,n){return Vr(e.ordered(t).map((e=>()=>Promise.resolve(e.provideDocumentHighlights(t,i,n)).then(void 0,Qt))),L).then((e=>{if(e){const i=new cm;return i.set(t.uri,e),i}return new cm}))}class Qse{constructor(e,t,i){this._model=e,this._selection=t,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=Mr((e=>this._compute(this._model,this._selection,this._wordSeparators,e)))),this._result}_getCurrentWordRange(e,t){const i=e.getWordAtPosition(t.getPosition());return i?new Un(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){const n=t.startLineNumber,o=t.startColumn,s=t.endColumn,r=this._getCurrentWordRange(e,t);let a=Boolean(this._wordRange&&this._wordRange.equalsRange(r));for(let l=0,c=i.length;!a&&l=s&&(a=!0)}return a}cancel(){this.result.cancel()}}class Zse extends Qse{constructor(e,t,i,n){super(e,t,i),this._providers=n}_compute(e,t,i,n){return Jse(this._providers,e,t.getPosition(),n).then((e=>e||new cm))}}class ere extends Qse{constructor(e,t,i,n,o){super(e,t,i),this._providers=n,this._otherModels=o}_compute(e,t,i,n){return(o=this._providers,s=e,r=t.getPosition(),a=n,l=this._otherModels,Vr(o.ordered(s).map((e=>()=>{const t=l.filter((e=>Rm(e))).filter((t=>ux(e.selector,t.uri,t.getLanguageId(),!0,void 0,void 0)>0));return Promise.resolve(e.provideMultiDocumentHighlights(s,r,t,a)).then(void 0,Qt)})),(e=>e instanceof cm&&e.size>0))).then((e=>e||new cm));var o,s,r,a,l}}class tre extends Qse{constructor(e,t,i,n,o){super(e,t,n),this._otherModels=o,this._selectionIsEmpty=t.isEmpty(),this._word=i}_compute(e,t,i,n){return Wr(250,n).then((()=>{const n=new cm;let o;if(o=this._word?this._word:e.getWordAtPosition(t.getPosition()),!o)return new cm;const s=[e,...this._otherModels];for(const e of s){if(e.isDisposed())continue;const t=e.findMatches(o.word,!0,!1,!0,i,!1).map((e=>({range:e.range,kind:io.Text})));t&&n.set(e.uri,t)}return n}))}isValid(e,t,i){const n=t.isEmpty();return this._selectionIsEmpty===n&&super.isValid(e,t,i)}}Wh("_executeDocumentHighlights",(async(e,t,i)=>{const n=e.get(lf),o=await Jse(n.documentHighlightProvider,t,i,Mi.None);return null==o?void 0:o.get(t.uri)}));let ire=Yse=class{constructor(e,t,i,n,o){this.toUnhook=new gi,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new cm,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.providers=t,this.multiDocumentProviders=i,this.codeEditorService=o,this._hasWordHighlights=Xse.bindTo(n),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(81),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition((e=>{this._ignorePositionChangeEvent||"off"!==this.occurrencesHighlight&&this._onPositionChanged(e)}))),this.toUnhook.add(e.onDidFocusEditorText((e=>{"off"!==this.occurrencesHighlight&&(this.workerRequest||this._run())}))),this.toUnhook.add(e.onDidChangeModelContent((e=>{this._stopAll()}))),this.toUnhook.add(e.onDidChangeModel((e=>{!e.newModelUrl&&e.oldModelUrl?this._stopSingular():Yse.query&&this._run()}))),this.toUnhook.add(e.onDidChangeConfiguration((e=>{const t=this.editor.getOption(81);this.occurrencesHighlight!==t&&(this.occurrencesHighlight=t,this._stopAll())}))),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,Yse.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(){"off"!==this.occurrencesHighlight&&this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(Un.compareRangesUsingStarts)}moveNext(){const e=this._getSortedHighlights(),t=(e.findIndex((e=>e.containsPosition(this.editor.getPosition())))+1)%e.length,i=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);const n=this._getWord();n&&L_(`${this.editor.getModel().getLineContent(i.startLineNumber)}, ${t+1} of ${e.length} for '${n.word}'`)}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const e=this._getSortedHighlights(),t=(e.findIndex((e=>e.containsPosition(this.editor.getPosition())))-1+e.length)%e.length,i=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);const n=this._getWord();n&&L_(`${this.editor.getModel().getLineContent(i.startLineNumber)}, ${t+1} of ${e.length} for '${n.word}'`)}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;const e=Yse.storedDecorations.get(this.editor.getModel().uri);e&&(this.editor.removeDecorations(e),Yse.storedDecorations.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(){const e=this.codeEditorService.listCodeEditors(),t=[];for(const i of e){if(!i.hasModel())continue;const e=Yse.storedDecorations.get(i.getModel().uri);if(!e)continue;i.removeDecorations(e),t.push(i.getModel().uri);const n=nre.get(i);(null==n?void 0:n.wordHighlighter)&&n.wordHighlighter.decorations.length>0&&(n.wordHighlighter.decorations.clear(),n.wordHighlighter.workerRequest=null,n.wordHighlighter._hasWordHighlights.set(!1))}for(const i of t)Yse.storedDecorations.delete(i)}_stopSingular(){var e,t,i,n;this._removeSingleDecorations(),this.editor.hasTextFocus()&&((null===(e=this.editor.getModel())||void 0===e?void 0:e.uri.scheme)!==Ja.vscodeNotebookCell&&(null===(i=null===(t=Yse.query)||void 0===t?void 0:t.modelInfo)||void 0===i?void 0:i.model.uri.scheme)!==Ja.vscodeNotebookCell?(Yse.query=null,this._run()):(null===(n=Yse.query)||void 0===n?void 0:n.modelInfo)&&(Yse.query.modelInfo=null)),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_stopAll(){this._removeAllDecorations(),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){var t;"off"===this.occurrencesHighlight||3!==e.reason&&(null===(t=this.editor.getModel())||void 0===t?void 0:t.uri.scheme)!==Ja.vscodeNotebookCell?this._stopAll():this._run()}_getWord(){const e=this.editor.getSelection(),t=e.startLineNumber,i=e.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:t,column:i})}getOtherModelsToHighlight(e){if(!e)return[];if(e.uri.scheme===Ja.vscodeNotebookCell){const t=[],i=this.codeEditorService.listCodeEditors();for(const n of i){const i=n.getModel();i&&i!==e&&i.uri.scheme===Ja.vscodeNotebookCell&&t.push(i)}return t}const t=[],i=this.codeEditorService.listCodeEditors();for(const n of i){if(!AX(n))continue;const i=n.getModel();i&&e===i.modified&&t.push(i.modified)}if(t.length)return t;if("singleFile"===this.occurrencesHighlight)return[];for(const n of i){const i=n.getModel();i&&i!==e&&t.push(i)}return t}_run(){var e;let t;if(this.editor.hasTextFocus()){const e=this.editor.getSelection();if(!e||e.startLineNumber!==e.endLineNumber)return Yse.query=null,void this._stopAll();const i=e.startColumn,n=e.endColumn,o=this._getWord();if(!o||o.startColumn>i||o.endColumn{t===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=e||[],this._beginRenderDecorations())}),Jt)}}computeWithModel(e,t,i,n){return n.length?(o=this.multiDocumentProviders,s=e,r=t,a=i,l=this.editor.getOption(131),c=n,o.has(s)?new ere(s,r,l,o,c):new tre(s,r,a,l,c)):function(e,t,i,n,o){return e.has(t)?new Zse(t,i,o,e):new tre(t,i,n,o,[])}(this.providers,e,t,i,this.editor.getOption(131));var o,s,r,a,l,c}_beginRenderDecorations(){const e=(new Date).getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout((()=>{this.renderDecorations()}),t-e)}renderDecorations(){var e,t,i;this.renderDecorationsTimer=-1;const n=this.codeEditorService.listCodeEditors();for(const s of n){const n=nre.get(s);if(!n)continue;const r=[],a=null===(e=s.getModel())||void 0===e?void 0:e.uri;if(a&&this.workerRequestValue.has(a)){const e=Yse.storedDecorations.get(a),l=this.workerRequestValue.get(a);if(l)for(const t of l)t.range&&r.push({range:t.range,options:(o=t.kind,o===io.Write?Vie:o===io.Text?Gie:Yie)});let c=[];s.changeDecorations((t=>{c=t.deltaDecorations(null!=e?e:[],r)})),Yse.storedDecorations=Yse.storedDecorations.set(a,c),r.length>0&&(null===(t=n.wordHighlighter)||void 0===t||t.decorations.set(r),null===(i=n.wordHighlighter)||void 0===i||i._hasWordHighlights.set(!0))}}var o}dispose(){this._stopSingular(),this.toUnhook.dispose()}};ire.storedDecorations=new cm,ire.query=null,ire=Yse=$se([jse(4,nd)],ire);let nre=qse=class extends mi{static get(e){return e.getContribution(qse.ID)}constructor(e,t,i,n){super(),this._wordHighlighter=null;const o=()=>{e.hasModel()&&!e.getModel().isTooLargeForTokenization()&&(this._wordHighlighter=new ire(e,i.documentHighlightProvider,i.multiDocumentHighlightProvider,t,n))};this._register(e.onDidChangeModel((e=>{this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),o()}))),o()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!(!this._wordHighlighter||!this._wordHighlighter.hasDecorations())}moveNext(){var e;null===(e=this._wordHighlighter)||void 0===e||e.moveNext()}moveBack(){var e;null===(e=this._wordHighlighter)||void 0===e||e.moveBack()}restoreViewState(e){this._wordHighlighter&&e&&this._wordHighlighter.restore()}dispose(){this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),super.dispose()}};nre.ID="editor.contrib.wordHighlighter",nre=qse=$se([jse(1,Zd),jse(2,lf),jse(3,nd)],nre);class ore extends Fh{constructor(e,t){super(t),this._isNext=e}run(e,t){const i=nre.get(t);i&&(this._isNext?i.moveNext():i.moveBack())}}zh(nre.ID,nre,0),Vh(class extends ore{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:pe("vs/editor/contrib/wordHighlighter/browser/wordHighlighter","wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:Xse,kbOpts:{kbExpr:JT.editorTextFocus,primary:65,weight:100}})}}),Vh(class extends ore{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:pe("vs/editor/contrib/wordHighlighter/browser/wordHighlighter","wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:Xse,kbOpts:{kbExpr:JT.editorTextFocus,primary:1089,weight:100}})}}),Vh(class extends Fh{constructor(){super({id:"editor.action.wordHighlight.trigger",label:pe("vs/editor/contrib/wordHighlighter/browser/wordHighlighter","wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:Xse.toNegated(),kbOpts:{kbExpr:JT.editorTextFocus,primary:0,weight:100}})}run(e,t,i){const n=nre.get(t);n&&n.restoreViewState(!0)}});class sre extends Ph{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;const n=_m(t.getOption(131),t.getOption(130)),o=t.getModel(),s=t.getSelections().map((e=>{const t=new Wn(e.positionLineNumber,e.positionColumn),i=this._move(n,o,t,this._wordNavigationType);return this._moveTo(e,i,this._inSelectionMode)}));if(o.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,s.map((e=>uT.fromModelSelection(e)))),1===s.length){const e=new Wn(s[0].positionLineNumber,s[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,i){return i?new Vn(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new Vn(t.lineNumber,t.column,t.lineNumber,t.column)}}class rre extends sre{_move(e,t,i,n){return LT.moveWordLeft(e,t,i,n)}}class are extends sre{_move(e,t,i,n){return LT.moveWordRight(e,t,i,n)}}class lre extends Ph{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){const n=e.get(Lg);if(!t.hasModel())return;const o=_m(t.getOption(131),t.getOption(130)),s=t.getModel(),r=t.getSelections(),a=t.getOption(6),l=t.getOption(11),c=n.getLanguageConfiguration(s.getLanguageId()).getAutoClosingPairs(),d=t._getViewModel(),h=r.map((e=>{const i=this._delete({wordSeparators:o,model:s,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(9),autoClosingBrackets:a,autoClosingQuotes:l,autoClosingPairs:c,autoClosedCharacters:d.getCursorAutoClosedCharacters()},this._wordNavigationType);return new vT(i,"")}));t.pushUndoStop(),t.executeCommands(this.id,h),t.pushUndoStop()}}class cre extends lre{_delete(e,t){return LT.deleteWordLeft(e,t)||new Un(1,1,1,1)}}class dre extends lre{_delete(e,t){const i=LT.deleteWordRight(e,t);if(i)return i;const n=e.model.getLineCount(),o=e.model.getLineMaxColumn(n);return new Un(n,o,n,o)}}Uh(new class extends rre{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}),Uh(new class extends rre{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}),Uh(new class extends rre{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:Dd.and(JT.textInputFocus,null===(e=Dd.and(U_,MG))||void 0===e?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}}),Uh(new class extends rre{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}),Uh(new class extends rre{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}),Uh(new class extends rre{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:Dd.and(JT.textInputFocus,null===(e=Dd.and(U_,MG))||void 0===e?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}}),Uh(new class extends are{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}),Uh(new class extends are{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:Dd.and(JT.textInputFocus,null===(e=Dd.and(U_,MG))||void 0===e?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}}),Uh(new class extends are{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}),Uh(new class extends are{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}),Uh(new class extends are{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:Dd.and(JT.textInputFocus,null===(e=Dd.and(U_,MG))||void 0===e?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}}),Uh(new class extends are{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}),Uh(new class extends rre{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,n){return super._move(_m(jt.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}),Uh(new class extends rre{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,n){return super._move(_m(jt.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}),Uh(new class extends are{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,n){return super._move(_m(jt.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}),Uh(new class extends are{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,n){return super._move(_m(jt.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}),Uh(new class extends cre{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:JT.writable})}}),Uh(new class extends cre{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:JT.writable})}}),Uh(new class extends cre{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:JT.writable,kbOpts:{kbExpr:JT.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}),Uh(new class extends dre{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:JT.writable})}}),Uh(new class extends dre{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:JT.writable})}}),Uh(new class extends dre{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:JT.writable,kbOpts:{kbExpr:JT.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}),Vh(class extends Fh{constructor(){super({id:"deleteInsideWord",precondition:JT.writable,label:pe("vs/editor/contrib/wordOperations/browser/wordOperations","deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(!t.hasModel())return;const n=_m(t.getOption(131),t.getOption(130)),o=t.getModel(),s=t.getSelections().map((e=>{const t=LT.deleteInsideWord(n,o,e);return new vT(t,"")}));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}});class hre extends sre{_move(e,t,i,n){return IT.moveWordPartLeft(e,t,i)}}pd.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft"),pd.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class ure extends sre{_move(e,t,i,n){return IT.moveWordPartRight(e,t,i)}}Uh(new class extends lre{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:JT.writable,kbOpts:{kbExpr:JT.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){return IT.deleteWordPartLeft(e)||new Un(1,1,1,1)}}),Uh(new class extends lre{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:JT.writable,kbOpts:{kbExpr:JT.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const i=IT.deleteWordPartRight(e);if(i)return i;const n=e.model.getLineCount(),o=e.model.getLineMaxColumn(n);return new Un(n,o,n,o)}}),Uh(new class extends hre{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:JT.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}),Uh(new class extends hre{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:JT.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}),Uh(new class extends ure{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:JT.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}),Uh(new class extends ure{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:JT.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}});class gre extends mi{constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit((()=>this._onDidAttemptReadOnlyEdit())))}_onDidAttemptReadOnlyEdit(){const e=vZ.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(92);t||(t=this.editor.isSimpleWidget?new YM(pe("vs/editor/contrib/readOnlyMessage/browser/contribution","editor.simple.readonly","Cannot edit in read-only input")):new YM(pe("vs/editor/contrib/readOnlyMessage/browser/contribution","editor.readonly","Cannot edit in read-only editor"))),e.showMessage(t,this.editor.getPosition())}}}gre.ID="editor.contrib.readOnlyMessageController",zh(gre.ID,gre,2);var mre=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},pre=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let fre=class extends mi{constructor(e,t,i){super(),this._textModel=e,this._languageFeaturesService=t,this._outlineModelService=i,this._currentModel=eH(this,void 0);const n=bH("documentSymbolProvider.onDidChange",this._languageFeaturesService.documentSymbolProvider.onDidChange),o=bH("_textModel.onDidChangeContent",Ci.debounce((e=>this._textModel.onDidChangeContent(e)),(()=>{}),100));this._register(uH((async(e,t)=>{n.read(e),o.read(e);const i=t.add(new jq),s=await this._outlineModelService.getOrCreate(this._textModel,i.token);t.isDisposed||this._currentModel.set(s,void 0)})))}getBreadcrumbItems(e,t){const i=this._currentModel.read(t);if(!i)return[];const n=i.asListOfDocumentSymbols().filter((t=>e.contains(t.range.startLineNumber)&&!e.contains(t.range.endLineNumber)));return n.sort(G(W((e=>e.range.endLineNumber-e.range.startLineNumber),U))),n.map((e=>({name:e.name,kind:e.kind,startLineNumber:e.range.startLineNumber})))}};fre=mre([pre(1,lf),pre(2,e7)],fre),vj.setBreadcrumbsSourceFactory(((e,t)=>t.createInstance(fre,e)));class _re extends mi{constructor(e){super(),this.editor=e,this.widget=null,Ue&&(this._register(e.onDidChangeConfiguration((()=>this.update()))),this.update())}update(){const e=!this.editor.getOption(91);!this.widget&&e?this.widget=new bre(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}_re.ID="editor.contrib.iPadShowKeyboard";class bre extends mi{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(yl(this._domNode,"touchstart",(e=>{this.editor.focus()}))),this._register(yl(this._domNode,"focus",(e=>{this.editor.focus()}))),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return bre.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}bre.ID="editor.contrib.ShowKeyboardWidget",zh(_re.ID,_re,3);var vre,Sre=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Cre=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let Ere=vre=class extends mi{static get(e){return e.getContribution(vre.ID)}constructor(e,t,i){super(),this._editor=e,this._languageService=i,this._widget=null,this._register(this._editor.onDidChangeModel((e=>this.stop()))),this._register(this._editor.onDidChangeModelLanguage((e=>this.stop()))),this._register(go.onDidChange((e=>this.stop()))),this._register(this._editor.onKeyUp((e=>9===e.keyCode&&this.stop())))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new wre(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};Ere.ID="editor.contrib.inspectTokens",Ere=vre=Sre([Cre(1,EY),Cre(2,eg)],Ere);class wre extends mi{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=function(e,t){const i=go.get(t);if(i)return i;const n=e.encodeLanguageId(t);return{getInitialState:()=>Cf,tokenize:(e,i,n)=>Ef(t,n),tokenizeEncoded:(e,t,i)=>wf(n,i)}}(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition((e=>this._compute(this._editor.getPosition())))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return wre._ID}_compute(e){const t=this._getTokensAtLine(e.lineNumber);let i=0;for(let a=t.tokens1.length-1;a>=0;a--){const n=t.tokens1[a];if(e.column-1>=n.offset){i=a;break}}let n=0;for(let a=t.tokens2.length>>>1;a>=0;a--)if(e.column-1>=t.tokens2[a<<1]){n=a;break}const o=this._model.getLineContent(e.lineNumber);let s="";if(i=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Rre=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let Lre=Tre=class{constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=dh.as(AU)}provide(e){const t=new gi;return t.add(e.onDidAccept((()=>{const[t]=e.selectedItems;t&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),t.add(e.onDidChangeValue((e=>{const t=this.registry.getQuickAccessProvider(e.substr(Tre.PREFIX.length));t&&t.prefix&&t.prefix!==Tre.PREFIX&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),e.items=this.getQuickAccessProviders().filter((e=>e.prefix!==Tre.PREFIX)),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort(((e,t)=>e.prefix.localeCompare(t.prefix))).flatMap((e=>this.createPicks(e)))}createPicks(e){return e.helpEntries.map((t=>{const i=t.prefix||e.prefix,n=i||"…";return{prefix:i,label:n,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:pe("vs/platform/quickinput/browser/helpQuickAccess","helpPickAriaLabel","{0}, {1}",n,t.description),description:t.description}}))}};Lre.PREFIX="?",Lre=Tre=yre([Rre(0,OU),Rre(1,tT)],Lre),dh.as(AU).registerQuickAccessProvider({ctor:Lre,prefix:"",helpEntries:[{description:JF.helpQuickAccessActionLabel}]});class Ire{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var i;const n=new gi;e.canAcceptInBackground=!!(null===(i=this.options)||void 0===i?void 0:i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const o=n.add(new pi);return o.value=this.doProvide(e,t),n.add(this.onDidActiveTextEditorControlChange((()=>{o.value=void 0,o.value=this.doProvide(e,t)}))),n}doProvide(e,t){var i;const n=new gi,o=this.activeTextEditorControl;if(o&&this.canProvideWithTextEditor(o)){const s={editor:o},r=NX(o);if(r){let e=null!==(i=o.saveViewState())&&void 0!==i?i:void 0;n.add(r.onDidChangeCursorPosition((()=>{var t;e=null!==(t=o.saveViewState())&&void 0!==t?t:void 0}))),s.restoreViewState=()=>{e&&o===this.activeTextEditorControl&&o.restoreViewState(e)},n.add(li(t.onCancellationRequested)((()=>{var e;return null===(e=s.restoreViewState)||void 0===e?void 0:e.call(s)})))}n.add(ui((()=>this.clearDecorations(o)))),n.add(this.provideWithTextEditor(s,e,t))}else n.add(this.provideWithoutTextEditor(e,t));return n}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range,"code.jump"),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();const i=e.getModel();i&&"getLineContent"in i&&I_(`${i.getLineContent(t.range.startLineNumber)}`)}getModel(e){var t;return AX(e)?null===(t=e.getModel())||void 0===t?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations((e=>{const i=[];this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),i.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const n=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:YE(Iw),position:bm.Full}}}],[o,s]=e.deltaDecorations(i,n);this.rangeHighlightDecorationId={rangeHighlightId:o,overviewRulerDecorationId:s}}))}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations((e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])})),this.rangeHighlightDecorationId=void 0)}}class Are extends Ire{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=pe("vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess","cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,mi.None}provideWithTextEditor(e,t,i){const n=e.editor,o=new gi;o.add(t.onDidAccept((i=>{const[o]=t.selectedItems;if(o){if(!this.isValidLineNumber(n,o.lineNumber))return;this.gotoLocation(e,{range:this.toRange(o.lineNumber,o.column),keyMods:t.keyMods,preserveFocus:i.inBackground}),i.inBackground||t.hide()}})));const s=()=>{const e=this.parsePosition(n,t.value.trim().substr(Are.PREFIX.length)),i=this.getPickLabel(n,e.lineNumber,e.column);if(t.items=[{lineNumber:e.lineNumber,column:e.column,label:i}],t.ariaLabel=i,!this.isValidLineNumber(n,e.lineNumber))return void this.clearDecorations(n);const o=this.toRange(e.lineNumber,e.column);n.revealRangeInCenter(o,0),this.addDecorations(n,o)};s(),o.add(t.onDidChangeValue((()=>s())));const r=NX(n);return r&&2===r.getOptions().get(68).renderType&&(r.updateOptions({lineNumbers:"on"}),o.add(ui((()=>r.updateOptions({lineNumbers:"relative"}))))),o}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map((e=>parseInt(e,10))).filter((e=>!isNaN(e))),n=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:n+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?pe("vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess","gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):pe("vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess","gotoLineLabel","Go to line {0}.",t);const n=e.getPosition()||{lineNumber:1,column:1},o=this.lineCount(e);return o>1?pe("vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess","gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,o):pe("vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess","gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",n.lineNumber,n.column)}isValidLineNumber(e,t){return!(!t||"number"!=typeof t)&&t>0&&t<=this.lineCount(e)}isValidColumn(e,t,i){if(!i||"number"!=typeof i)return!1;const n=this.getModel(e);if(!n)return!1;const o={lineNumber:t,column:i};return n.validatePosition(o).equals(o)}lineCount(e){var t,i;return null!==(i=null===(t=this.getModel(e))||void 0===t?void 0:t.getLineCount())&&void 0!==i?i:0}}Are.PREFIX=":";var Nre=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},kre=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let Dre=class extends Are{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=Ci.None}get activeTextEditorControl(){var e;return null!==(e=this.editorService.getFocusedCodeEditor())&&void 0!==e?e:void 0}};Dre=Nre([kre(0,nd)],Dre);let Ore=class e extends Fh{constructor(){super({id:e.ID,label:XF.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:JT.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(OU).quickAccess.show(Dre.PREFIX)}};Ore.ID="editor.action.gotoLine",Vh(Ore),dh.as(AU).registerQuickAccessProvider({ctor:Dre,prefix:Dre.PREFIX,helpEntries:[{description:XF.gotoLineActionLabel,commandId:Ore.ID}]});const xre=[void 0,[]];function Mre(e,t,i=0,n=0){const o=t;return o.values&&o.values.length>1?function(e,t,i,n){let o=0;const s=[];for(const r of t){const[t,a]=Pre(e,r,i,n);if("number"!=typeof t)return xre;o+=t,s.push(...a)}return[o,Fre(s)]}(e,o.values,i,n):Pre(e,t,i,n)}function Pre(e,t,i,n){const o=xM(t.original,t.originalLowercase,i,e,e.toLowerCase(),n,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return o?[o[0],SM(o)]:xre}function Fre(e){const t=e.sort(((e,t)=>e.start-t.start)),i=[];let n;for(const o of t)n&&Bre(n,o)?(n.start=Math.min(n.start,o.start),n.end=Math.max(n.end,o.end)):(n=o,i.push(o));return i}function Bre(e,t){return!(e.end=0,r=Hre(e);let a;const l=e.split(Wre);if(l.length>1)for(const c of l){const e=Hre(c),{pathNormalized:t,normalized:i,normalizedLowercase:n}=Vre(c);i&&(a||(a=[]),a.push({original:c,originalLowercase:c.toLowerCase(),pathNormalized:t,normalized:i,normalizedLowercase:n,expectContiguousMatch:e}))}return{original:e,originalLowercase:t,pathNormalized:i,normalized:n,normalizedLowercase:o,values:a,containsPathSeparator:s,expectContiguousMatch:r}}function Vre(e){let t;t=Me?e.replace(/\//g,En):e.replace(/\\/g,En);const i=(n=t,n.replace(/\*/g,"")).replace(/\s|"/g,"");var n;return{pathNormalized:t,normalized:i,normalizedLowercase:i.toLowerCase()}}function Gre(e){return Array.isArray(e)?Ure(e.map((e=>e.original)).join(Wre)):Ure(e.original)}var zre,Kre=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Yre=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let qre=zre=class extends Ire{constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),mi.None}provideWithTextEditor(e,t,i){const n=e.editor,o=this.getModel(n);return o?this._languageFeaturesService.documentSymbolProvider.has(o)?this.doProvideWithEditorSymbols(e,o,t,i):this.doProvideWithoutEditorSymbols(e,o,t,i):mi.None}doProvideWithoutEditorSymbols(e,t,i,n){const o=new gi;return this.provideLabelPick(i,pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(async()=>{await this.waitForLanguageSymbolRegistry(t,o)&&!n.isCancellationRequested&&o.add(this.doProvideWithEditorSymbols(e,t,i,n))})(),o}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}async waitForLanguageSymbolRegistry(e,t){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new Xr,n=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(n.dispose(),i.complete(!0))})));return t.add(ui((()=>i.complete(!1)))),i.p}doProvideWithEditorSymbols(e,t,i,n){var o;const s=e.editor,r=new gi;r.add(i.onDidAccept((t=>{const[n]=i.selectedItems;n&&n.range&&(this.gotoLocation(e,{range:n.range.selection,keyMods:i.keyMods,preserveFocus:t.inBackground}),t.inBackground||i.hide())}))),r.add(i.onDidTriggerItemButton((({item:t})=>{t&&t.range&&(this.gotoLocation(e,{range:t.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())})));const a=this.getDocumentSymbols(t,n);let l;const c=async e=>{null==l||l.dispose(!0),i.busy=!1,l=new Fi(n),i.busy=!0;try{const t=Ure(i.value.substr(zre.PREFIX.length).trim()),o=await this.doGetSymbolPicks(a,t,void 0,l.token);if(n.isCancellationRequested)return;if(o.length>0){if(i.items=o,e&&0===t.original.length){const t=Wm(o,(t=>Boolean("separator"!==t.type&&t.range&&Un.containsPosition(t.range.decoration,e))));t&&(i.activeItems=[t])}}else t.original.length>0?this.provideLabelPick(i,pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","noSymbolResults","No editor symbols"))}finally{n.isCancellationRequested||(i.busy=!1)}};return r.add(i.onDidChangeValue((()=>c(void 0)))),c(null===(o=s.getSelection())||void 0===o?void 0:o.getPosition()),r.add(i.onDidChangeActive((()=>{const[e]=i.activeItems;e&&e.range&&(s.revealRangeInCenter(e.range.selection,0),this.addDecorations(s,e.range.decoration))}))),r}async doGetSymbolPicks(e,t,i,n){var o,s;const r=await e;if(n.isCancellationRequested)return[];const a=0===t.original.indexOf(zre.SCOPE_PREFIX),l=a?1:0;let c,d,h;t.values&&t.values.length>1?(c=Gre(t.values[0]),d=Gre(t.values.slice(1))):c=t;const u=null===(s=null===(o=this.options)||void 0===o?void 0:o.openSideBySideDirection)||void 0===s?void 0:s.call(o);u&&(h=[{iconClass:"right"===u?gd.asClassName(Yn.splitHorizontal):gd.asClassName(Yn.splitVertical),tooltip:"right"===u?pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","openToSide","Open to the Side"):pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","openToBottom","Open to the Bottom")}]);const g=[];for(let b=0;bl){let e=!1;if(c!==t&&([a,u]=Mre(o,{...t,values:void 0},l,s),"number"==typeof a&&(e=!0)),"number"!=typeof a&&([a,u]=Mre(o,c,l,s),"number"!=typeof a))continue;if(!e&&d){if(v&&d.original.length>0&&([f,_]=Mre(v,d)),"number"!=typeof f)continue;"number"==typeof a&&(a+=f)}}const S=e.tags&&e.tags.indexOf(1)>=0;g.push({index:b,kind:e.kind,score:a,label:o,ariaLabel:(m=e.name,p=e.kind,pe("vs/editor/common/languages","symbolAriaLabel","{0} ({1})",m,oo[p])),description:v,highlights:S?void 0:{label:u,description:_},range:{selection:Un.collapseToStart(e.selectionRange),decoration:e.range},strikethrough:S,buttons:h})}var m,p;const f=g.sort(((e,t)=>a?this.compareByKindAndScore(e,t):this.compareByScore(e,t)));let _=[];if(a){let e,t,i=function(){t&&"number"==typeof e&&n>0&&(t.label=fs(jre[e]||$re,n))},n=0;for(const o of f)e!==o.kind?(i(),e=o.kind,n=1,t={type:"separator"},_.push(t)):n++,_.push(o);i()}else f.length>0&&(_=[{label:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","symbols","symbols ({0})",g.length),type:"separator"},...f]);return _}compareByScore(e,t){if("number"!=typeof e.score&&"number"==typeof t.score)return 1;if("number"==typeof e.score&&"number"!=typeof t.score)return-1;if("number"==typeof e.score&&"number"==typeof t.score){if(e.score>t.score)return-1;if(e.scoret.index?1:0}compareByKindAndScore(e,t){const i=jre[e.kind]||$re,n=jre[t.kind]||$re,o=i.localeCompare(n);return 0===o?this.compareByScore(e,t):o}async getDocumentSymbols(e,t){const i=await this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()}};qre.PREFIX="@",qre.SCOPE_PREFIX=":",qre.PREFIX_BY_CATEGORY=`${zre.PREFIX}${zre.SCOPE_PREFIX}`,qre=zre=Kre([Yre(0,lf),Yre(1,e7)],qre);const $re=pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","property","properties ({0})"),jre={5:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","method","methods ({0})"),11:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","function","functions ({0})"),8:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","_constructor","constructors ({0})"),12:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","variable","variables ({0})"),4:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","class","classes ({0})"),22:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","struct","structs ({0})"),23:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","event","events ({0})"),24:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","operator","operators ({0})"),10:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","interface","interfaces ({0})"),2:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","namespace","namespaces ({0})"),3:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","package","packages ({0})"),25:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","typeParameter","type parameters ({0})"),1:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","modules","modules ({0})"),6:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","property","properties ({0})"),9:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","enum","enumerations ({0})"),21:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","enumMember","enumeration members ({0})"),14:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","string","strings ({0})"),0:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","file","files ({0})"),17:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","array","arrays ({0})"),15:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","number","numbers ({0})"),16:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","boolean","booleans ({0})"),18:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","object","objects ({0})"),19:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","key","keys ({0})"),7:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","field","fields ({0})"),13:pe("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","constant","constants ({0})")};var Xre=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Jre=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let Qre=class extends qre{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=Ci.None}get activeTextEditorControl(){var e;return null!==(e=this.editorService.getFocusedCodeEditor())&&void 0!==e?e:void 0}};Qre=Xre([Jre(0,nd),Jre(1,lf),Jre(2,e7)],Qre);class Zre extends Fh{constructor(){super({id:Zre.ID,label:ZF.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:JT.hasDocumentSymbolProvider,kbOpts:{kbExpr:JT.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(OU).quickAccess.show(qre.PREFIX,{itemActivation:DU.NONE})}}function eae(e,t){return t&&(e.stack||e.stacktrace)?pe("vs/base/common/errorMessage","stackTrace.format","{0}: {1}",iae(e),tae(e.stack)||tae(e.stacktrace)):iae(e)}function tae(e){return Array.isArray(e)?e.join("\n"):e}function iae(e){return"ERR_UNC_HOST_NOT_ALLOWED"===e.code?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:"string"==typeof e.code&&"number"==typeof e.errno&&"string"==typeof e.syscall?pe("vs/base/common/errorMessage","nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||pe("vs/base/common/errorMessage","error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function nae(e=null,t=!1){if(!e)return pe("vs/base/common/errorMessage","error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(e)){const i=T(e),n=nae(i[0],t);return i.length>1?pe("vs/base/common/errorMessage","error.moreErrors","{0} ({1} errors in total)",n,i.length):n}if(q(e))return e;if(e.detail){const i=e.detail;if(i.error)return eae(i.error,t);if(i.exception)return eae(i.exception,t)}return e.stack?eae(e,t):e.message?e.message:pe("vs/base/common/errorMessage","error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}Zre.ID="editor.action.quickOutline",Vh(Zre),dh.as(AU).registerQuickAccessProvider({ctor:Qre,prefix:qre.PREFIX,helpEntries:[{description:ZF.quickOutlineActionLabel,prefix:qre.PREFIX,commandId:Zre.ID},{description:ZF.quickOutlineByCategoryActionLabel,prefix:qre.PREFIX_BY_CATEGORY}]});class oae{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){const i=this.computeEmbedding(e),n=new Map,o=[];for(const[s,r]of this.documents){if(t.isCancellationRequested)return[];for(const e of r.chunks){const t=this.computeSimilarityScore(e,i,n);t>0&&o.push({key:s,score:t})}}return o}static termFrequencies(e){return function(e){var t;const i=new Map;for(const n of e)i.set(n,(null!==(t=i.get(n))&&void 0!==t?t:0)+1);return i}(oae.splitTerms(e))}static*splitTerms(e){const t=e=>e.toLowerCase();for(const[i]of e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield t(i);const e=i.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(e.length>1)for(const i of e)i.length>2&&/\p{Letter}{3,}/gu.test(i)&&(yield t(i))}}updateDocuments(e){var t;for(const{key:i}of e)this.deleteDocument(i);for(const i of e){const e=[];for(const n of i.textChunks){const i=oae.termFrequencies(n);for(const e of i.keys())this.chunkOccurrences.set(e,(null!==(t=this.chunkOccurrences.get(e))&&void 0!==t?t:0)+1);e.push({text:n,tf:i})}this.chunkCount+=e.length,this.documents.set(i.key,{chunks:e})}return this}deleteDocument(e){const t=this.documents.get(e);if(t){this.documents.delete(e),this.chunkCount-=t.chunks.length;for(const e of t.chunks)for(const t of e.tf.keys()){const e=this.chunkOccurrences.get(t);if("number"==typeof e){const i=e-1;i<=0?this.chunkOccurrences.delete(t):this.chunkOccurrences.set(t,i)}}}}computeSimilarityScore(e,t,i){let n=0;for(const[o,s]of Object.entries(t)){const t=e.tf.get(o);if(!t)continue;let r=i.get(o);"number"!=typeof r&&(r=this.computeIdf(o),i.set(o,r)),n+=t*r*s}return n}computeEmbedding(e){const t=oae.termFrequencies(e);return this.computeTfidf(t)}computeIdf(e){var t;const i=null!==(t=this.chunkOccurrences.get(e))&&void 0!==t?t:0;return i>0?Math.log((this.chunkCount+1)/i):0}computeTfidf(e){const t=Object.create(null);for(const[i,n]of e){const e=this.computeIdf(i);e>0&&(t[i]=n*e)}return t}}var sae;function rae(e){const t=e;return Array.isArray(t.items)}function aae(e){const t=e;return!!t.picks&&t.additionalPicks instanceof Promise}!function(e){e[e.NO_ACTION=0]="NO_ACTION",e[e.CLOSE_PICKER=1]="CLOSE_PICKER",e[e.REFRESH_PICKER=2]="REFRESH_PICKER",e[e.REMOVE_ITEM=3]="REMOVE_ITEM"}(sae||(sae={}));class lae extends mi{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,i){var n;const o=new gi;let s;e.canAcceptInBackground=!!(null===(n=this.options)||void 0===n?void 0:n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=o.add(new pi),a=async()=>{var n;const o=r.value=new gi;null==s||s.dispose(!0),e.busy=!1,s=new Fi(t);const a=s.token;let l=e.value.substring(this.prefix.length);(null===(n=this.options)||void 0===n?void 0:n.shouldSkipTrimPickFilter)||(l=l.trim());const c=this._getPicks(l,o,a,i),d=(t,i)=>{var n;let o,s;if(rae(t)?(o=t.items,s=t.active):o=t,0===o.length){if(i)return!1;(l.length>0||e.hideInput)&&(null===(n=this.options)||void 0===n?void 0:n.noResultsPick)&&(o=oe(this.options.noResultsPick)?[this.options.noResultsPick(l)]:[this.options.noResultsPick])}return e.items=o,s&&(e.activeItems=[s]),!0},h=async t=>{let i=!1,n=!1;await Promise.all([(async()=>{"number"==typeof t.mergeDelay&&(await Wr(t.mergeDelay),a.isCancellationRequested)||n||(i=d(t.picks,!0))})(),(async()=>{e.busy=!0;try{const n=await t.additionalPicks;if(a.isCancellationRequested)return;let o,s,r,l;if(rae(t.picks)?(o=t.picks.items,s=t.picks.active):o=t.picks,rae(n)?(r=n.items,l=n.active):r=n,r.length>0||!i){let t;if(!s&&!l){const i=e.activeItems[0];i&&-1!==o.indexOf(i)&&(t=i)}d({items:[...o,...r],active:s||l||t})}}finally{a.isCancellationRequested||(e.busy=!1),n=!0}})()])};if(null===c);else if(aae(c))await h(c);else if(c instanceof Promise){e.busy=!0;try{const e=await c;if(a.isCancellationRequested)return;aae(e)?await h(e):d(e)}finally{a.isCancellationRequested||(e.busy=!1)}}else d(c)};o.add(e.onDidChangeValue((()=>a()))),a(),o.add(e.onDidAccept((t=>{const[i]=e.selectedItems;"function"==typeof(null==i?void 0:i.accept)&&(t.inBackground||e.hide(),i.accept(e.keyMods,t))})));const l=async(i,n)=>{var o,s;if("function"!=typeof n.trigger)return;const r=null!==(s=null===(o=n.buttons)||void 0===o?void 0:o.indexOf(i))&&void 0!==s?s:-1;if(r>=0){const i=n.trigger(r,e.keyMods),o="number"==typeof i?i:await i;if(t.isCancellationRequested)return;switch(o){case sae.NO_ACTION:break;case sae.CLOSE_PICKER:e.hide();break;case sae.REFRESH_PICKER:a();break;case sae.REMOVE_ITEM:{const t=e.items.indexOf(n);if(-1!==t){const i=e.items.slice(),n=i.splice(t,1),o=e.activeItems.filter((e=>e!==n[0])),s=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=i,o&&(e.activeItems=o),e.keepScrollPosition=s}break}}}};return o.add(e.onDidTriggerItemButton((({button:e,item:t})=>l(e,t)))),o.add(e.onDidTriggerSeparatorButton((({button:e,separator:t})=>l(e,t)))),o}}var cae,dae,hae=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},uae=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let gae=cae=class extends lae{constructor(e,t,i,n,o,s){super(cae.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=n,this.telemetryService=o,this.dialogService=s,this.commandsHistory=this._register(this.instantiationService.createInstance(mae)),this.options=e}async _getPicks(e,t,i,n){var o,s,r,a;const l=await this.getCommandPicks(i);if(i.isCancellationRequested)return[];const c=li((()=>{const t=new oae;return t.updateDocuments(l.map((e=>({key:e.commandId,textChunks:[this.getTfIdfChunk(e)]})))),function(e){var t,i;const n=e.slice(0);n.sort(((e,t)=>t.score-e.score));const o=null!==(i=null===(t=n[0])||void 0===t?void 0:t.score)&&void 0!==i?i:0;if(o>0)for(const s of n)s.score/=o;return n}(t.calculateScores(e,i)).filter((e=>e.score>cae.TFIDF_THRESHOLD)).slice(0,cae.TFIDF_MAX_RESULTS)})),d=[];for(const f of l){const t=null!==(o=cae.WORD_FILTER(e,f.label))&&void 0!==o?o:void 0,n=f.commandAlias&&null!==(s=cae.WORD_FILTER(e,f.commandAlias))&&void 0!==s?s:void 0;if(t||n)f.highlights={label:t,detail:this.options.showAlias?n:void 0},d.push(f);else if(e===f.commandId)d.push(f);else if(e.length>=3){const e=c();if(i.isCancellationRequested)return[];const t=e.find((e=>e.key===f.commandId));t&&(f.tfIdfScore=t.score,d.push(f))}}const h=new Map;for(const f of d){const e=h.get(f.label);e?(f.description=f.commandId,e.description=e.commandId):h.set(f.label,f)}d.sort(((e,t)=>{if(e.tfIdfScore&&t.tfIdfScore)return e.tfIdfScore===t.tfIdfScore?e.label.localeCompare(t.label):t.tfIdfScore-e.tfIdfScore;if(e.tfIdfScore)return 1;if(t.tfIdfScore)return-1;const i=this.commandsHistory.peek(e.commandId),n=this.commandsHistory.peek(t.commandId);if(i&&n)return i>n?-1:1;if(i)return-1;if(n)return 1;if(this.options.suggestedCommandIds){const i=this.options.suggestedCommandIds.has(e.commandId),n=this.options.suggestedCommandIds.has(t.commandId);if(i&&n)return 0;if(i)return-1;if(n)return 1}return e.label.localeCompare(t.label)}));const u=[];let g=!1,m=!0,p=!!this.options.suggestedCommandIds;for(let f=0;f{var t;const o=await this.getAdditionalCommandPicks(l,d,e,i);if(i.isCancellationRequested)return[];const s=o.map((e=>this.toCommandPick(e,n)));return m&&"separator"!==(null===(t=s[0])||void 0===t?void 0:t.type)&&s.unshift({type:"separator",label:pe("vs/platform/quickinput/browser/commandsQuickAccess","suggested","similar commands")}),s})()}:u}toCommandPick(e,t){if("separator"===e.type)return e;const i=this.keybindingService.lookupKeybinding(e.commandId),n=i?pe("vs/platform/quickinput/browser/commandsQuickAccess","commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,i.getAriaLabel()):e.label;return{...e,ariaLabel:n,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:i,accept:async()=>{var i,n;this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:null!==(i=null==t?void 0:t.from)&&void 0!==i?i:"quick open"});try{(null===(n=e.args)||void 0===n?void 0:n.length)?await this.commandService.executeCommand(e.commandId,...e.args):await this.commandService.executeCommand(e.commandId)}catch(o){ti(o)||this.dialogService.error(pe("vs/platform/quickinput/browser/commandsQuickAccess","canNotRun","Command '{0}' resulted in an error",e.label),nae(o))}}}}getTfIdfChunk({label:e,commandAlias:t,commandDescription:i}){let n=e;return t&&t!==e&&(n+=` - ${t}`),i&&i.value!==e&&(n+=` - ${i.value===i.original?i.value:`${i.value} (${i.original})`}`),n}};gae.PREFIX=">",gae.TFIDF_THRESHOLD=.5,gae.TFIDF_MAX_RESULTS=5,gae.WORD_FILTER=Yx(qx,(function(e,t,i=!1){if(!t||0===t.length)return null;let n=null,o=0;for(e=e.toLowerCase(),t=t.toLowerCase();othis.updateConfiguration(e)))),this._register(this.storageService.onWillSaveState((e=>{e.reason===SW.SHUTDOWN&&this.saveState()})))}updateConfiguration(e){e&&!e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=dae.getConfiguredCommandHistoryLength(this.configurationService),dae.cache&&dae.cache.limit!==this.configuredCommandsHistoryLength&&(dae.cache.limit=this.configuredCommandsHistoryLength,dae.hasChanges=!0))}load(){const e=this.storageService.get(dae.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch(sue){this.logService.error(`[CommandsHistory] invalid data: ${sue}`)}const i=dae.cache=new um(this.configuredCommandsHistoryLength,1);if(t){let e;e=t.usesLRU?t.entries:t.entries.sort(((e,t)=>e.value-t.value)),e.forEach((e=>i.set(e.key,e.value)))}dae.counter=this.storageService.getNumber(dae.PREF_KEY_COUNTER,0,dae.counter)}push(e){dae.cache&&(dae.cache.set(e,dae.counter++),dae.hasChanges=!0)}peek(e){var t;return null===(t=dae.cache)||void 0===t?void 0:t.peek(e)}saveState(){if(!dae.cache)return;if(!dae.hasChanges)return;const e={usesLRU:!0,entries:[]};dae.cache.forEach(((t,i)=>e.entries.push({key:i,value:t}))),this.storageService.store(dae.PREF_KEY_CACHE,JSON.stringify(e),0,0),this.storageService.store(dae.PREF_KEY_COUNTER,dae.counter,0,0),dae.hasChanges=!1}static getConfiguredCommandHistoryLength(e){var t,i;const n=null===(i=null===(t=e.getValue().workbench)||void 0===t?void 0:t.commandPalette)||void 0===i?void 0:i.history;return"number"==typeof n?n:dae.DEFAULT_COMMANDS_HISTORY_LENGTH}};mae.DEFAULT_COMMANDS_HISTORY_LENGTH=50,mae.PREF_KEY_CACHE="commandPalette.mru.cache",mae.PREF_KEY_COUNTER="commandPalette.mru.counter",mae.counter=1,mae.hasChanges=!1,mae=dae=hae([uae(0,vW),uae(1,$u),uae(2,Lh)],mae);class pae extends gae{constructor(e,t,i,n,o,s){super(e,t,i,n,o,s)}getCodeEditorCommandPicks(){var e;const t=this.activeTextEditorControl;if(!t)return[];const i=[];for(const o of t.getSupportedActions()){let t;(null===(e=o.metadata)||void 0===e?void 0:e.description)&&(t=(n=o.metadata.description)&&"object"==typeof n&&"string"==typeof n.original&&"string"==typeof n.value?o.metadata.description:{original:o.metadata.description,value:o.metadata.description}),i.push({commandId:o.id,commandAlias:o.alias,commandDescription:t,label:VM(o.label)||o.id})}var n;return i}}var fae=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},_ae=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let bae=class extends pae{get activeTextEditorControl(){var e;return null!==(e=this.codeEditorService.getFocusedCodeEditor())&&void 0!==e?e:void 0}constructor(e,t,i,n,o,s){super({showAlias:!1},e,i,n,o,s),this.codeEditorService=t}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};bae=fae([_ae(0,td),_ae(1,nd),_ae(2,tT),_ae(3,md),_ae(4,Rh),_ae(5,rO)],bae);class vae extends Fh{constructor(){super({id:vae.ID,label:QF.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:JT.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(OU).quickAccess.show(bae.PREFIX)}}vae.ID="editor.action.quickCommand",Vh(vae),dh.as(AU).registerQuickAccessProvider({ctor:bae,prefix:bae.PREFIX,helpEntries:[{description:QF.quickCommandHelp,commandId:vae.ID}]});var Sae=globalThis&&globalThis.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Cae=globalThis&&globalThis.__param||function(e,t){return function(i,n){t(i,n,e)}};let Eae=class extends x4{constructor(e,t,i,n,o,s,r){super(!0,e,t,i,n,o,s,r)}};Eae=Sae([Cae(1,Zd),Cae(2,nd),Cae(3,kD),Cae(4,td),Cae(5,vW),Cae(6,$u)],Eae),zh(x4.ID,Eae,4),Vh(class extends Fh{constructor(){super({id:"editor.action.toggleHighContrast",label:tB.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(EY),n=i.getColorTheme();NC(n.type)?(i.setTheme(this._originalThemeName||(kC(n.type)?gY:uY)),this._originalThemeName=null):(i.setTheme(kC(n.type)?mY:pY),this._originalThemeName=n.themeName)}}); +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/ +var wae={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT","ABSOLUTE","ACTION","ADA","ADD","AFTER","ALL","ALLOCATE","ALTER","ALWAYS","ANALYZE","AND","ANY","ARE","AS","ASC","ASSERTION","AT","ATTACH","AUTHORIZATION","AUTOINCREMENT","AVG","BACKUP","BEFORE","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BREAK","BROWSE","BULK","BY","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","COMPUTE","CONFLICT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATE","DAY","DBCC","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DETACH","DIAGNOSTICS","DISCONNECT","DISK","DISTINCT","DISTRIBUTED","DO","DOMAIN","DOUBLE","DROP","DUMP","EACH","ELSE","END","END-EXEC","ERRLVL","ESCAPE","EXCEPT","EXCEPTION","EXCLUDE","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTERNAL","EXTRACT","FAIL","FALSE","FETCH","FILE","FILLFACTOR","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FOREIGN","FORTRAN","FOUND","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GENERATED","GET","GLOB","GLOBAL","GO","GOTO","GRANT","GROUP","GROUPS","HAVING","HOLDLOCK","HOUR","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IGNORE","IMMEDIATE","IN","INCLUDE","INDEX","INDEXED","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISNULL","ISOLATION","JOIN","KEY","KILL","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LIMIT","LINENO","LOAD","LOCAL","LOWER","MATCH","MATERIALIZED","MAX","MERGE","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NOCHECK","NONCLUSTERED","NONE","NOT","NOTHING","NOTNULL","NULL","NULLIF","NULLS","NUMERIC","OCTET_LENGTH","OF","OFF","OFFSET","OFFSETS","ON","ONLY","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OTHERS","OUTER","OUTPUT","OVER","OVERLAPS","PAD","PARTIAL","PARTITION","PASCAL","PERCENT","PIVOT","PLAN","POSITION","PRAGMA","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRINT","PRIOR","PRIVILEGES","PROC","PROCEDURE","PUBLIC","QUERY","RAISE","RAISERROR","RANGE","READ","READTEXT","REAL","RECONFIGURE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELATIVE","RELEASE","RENAME","REPLACE","REPLICATION","RESTORE","RESTRICT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","ROLLBACK","ROW","ROWCOUNT","ROWGUIDCOL","ROWS","RULE","SAVE","SAVEPOINT","SCHEMA","SCROLL","SECOND","SECTION","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION","SESSION_USER","SET","SETUSER","SHUTDOWN","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","STATISTICS","SUBSTRING","SUM","SYSTEM_USER","TABLE","TABLESAMPLE","TEMP","TEMPORARY","TEXTSIZE","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOP","TRAILING","TRAN","TRANSACTION","TRANSLATE","TRANSLATION","TRIGGER","TRIM","TRUE","TRUNCATE","TRY_CONVERT","TSEQUAL","UNBOUNDED","UNION","UNIQUE","UNKNOWN","UNPIVOT","UPDATE","UPDATETEXT","UPPER","USAGE","USE","USER","USING","VACUUM","VALUE","VALUES","VARCHAR","VARYING","VIEW","VIRTUAL","WAITFOR","WHEN","WHENEVER","WHERE","WHILE","WINDOW","WITH","WITHIN GROUP","WITHOUT","WORK","WRITE","WRITETEXT","YEAR","ZONE"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}};const Tae=Object.freeze(Object.defineProperty({__proto__:null,conf:{comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},language:wae},Symbol.toStringTag,{value:"Module"}));var yae={exports:{}};!function(e){var i,n;i=t,n=function(){function e(t,i,n){return this.id=++e.highestId,this.name=t,this.symbols=i,this.postprocess=n,this}function t(e,t,i,n){this.rule=e,this.dot=t,this.reference=i,this.data=[],this.wantedBy=n,this.isComplete=this.dot===e.symbols.length}function i(e,t){this.grammar=e,this.index=t,this.states=[],this.wants={},this.scannable=[],this.completed={}}function n(e,t){this.rules=e,this.start=t||this.rules[0].name;var i=this.byName={};this.rules.forEach((function(e){i.hasOwnProperty(e.name)||(i[e.name]=[]),i[e.name].push(e)}))}function o(){this.reset("")}function s(e,t,s){if(e instanceof n){var r=e;s=t}else r=n.fromCompiled(e,t);for(var a in this.grammar=r,this.options={keepHistory:!1,lexer:r.lexer||new o},s||{})this.options[a]=s[a];this.lexer=this.options.lexer,this.lexerState=void 0;var l=new i(r,0);this.table=[l],l.wants[r.start]=[],l.predict(r.start),l.process(),this.current=0}function r(e){var t=typeof e;if("string"===t)return e;if("object"===t){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return e.toString();if(e.type)return"%"+e.type;if(e.test)return"<"+String(e.test)+">";throw new Error("Unknown symbol type: "+e)}}return e.highestId=0,e.prototype.toString=function(e){var t=void 0===e?this.symbols.map(r).join(" "):this.symbols.slice(0,e).map(r).join(" ")+" ● "+this.symbols.slice(e).map(r).join(" ");return this.name+" → "+t},t.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},t.prototype.nextState=function(e){var i=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return i.left=this,i.right=e,i.isComplete&&(i.data=i.build(),i.right=void 0),i},t.prototype.build=function(){var e=[],t=this;do{e.push(t.right.data),t=t.left}while(t.left);return e.reverse(),e},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,s.fail))},i.prototype.process=function(e){for(var t=this.states,i=this.wants,n=this.completed,o=0;o0&&t.push(" ^ "+n+" more lines identical to this"),n=0,t.push(" "+r)),i=r}},s.prototype.getSymbolDisplay=function(e){return function(e){var t=typeof e;if("string"===t)return e;if("object"===t){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return"character matching "+e;if(e.type)return e.type+" token";if(e.test)return"token matching "+String(e.test);throw new Error("Unknown symbol type: "+e)}}(e)},s.prototype.buildFirstStateStack=function(e,t){if(-1!==t.indexOf(e))return null;if(0===e.wantedBy.length)return[e];var i=e.wantedBy[0],n=[e].concat(t),o=this.buildFirstStateStack(i,n);return null===o?null:[e].concat(o)},s.prototype.save=function(){var e=this.table[this.current];return e.lexerState=this.lexerState,e},s.prototype.restore=function(e){var t=e.index;this.current=t,this.table[t]=e,this.table.splice(t+1),this.lexerState=e.lexerState,this.results=this.finish()},s.prototype.rewind=function(e){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[e])},s.prototype.finish=function(){var e=[],t=this.grammar.start;return this.table[this.table.length-1].states.forEach((function(i){i.rule.name===t&&i.dot===i.rule.symbols.length&&0===i.reference&&i.data!==s.fail&&e.push(i)})),e.map((function(e){return e.data}))},{Parser:s,Grammar:n,Rule:e}},e.exports?e.exports=n():i.nearley=n()}(yae);const Rae=i(yae.exports);var Lae=Object.defineProperty,Iae=Object.defineProperties,Aae=Object.getOwnPropertyDescriptors,Nae=Object.getOwnPropertySymbols,kae=Object.prototype.hasOwnProperty,Dae=Object.prototype.propertyIsEnumerable,Oae=(e,t,i)=>t in e?Lae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,xae=(e,t)=>{for(var i in t||(t={}))kae.call(t,i)&&Oae(e,i,t[i]);if(Nae)for(var i of Nae(t))Dae.call(t,i)&&Oae(e,i,t[i]);return e},Mae=(e,t)=>Iae(e,Aae(t)),Pae={};((e,t)=>{for(var i in t)Lae(e,i,{get:t[i],enumerable:!0})})(Pae,{bigquery:()=>ale,db2:()=>_le,db2i:()=>yle,hive:()=>Ole,mariadb:()=>Vle,mysql:()=>Xle,n1ql:()=>hce,plsql:()=>vce,postgresql:()=>Lce,redshift:()=>Mce,singlestoredb:()=>Ade,snowflake:()=>Fde,spark:()=>Gce,sql:()=>sde,sqlite:()=>Jce,tidb:()=>oce,transactsql:()=>Cde,trino:()=>gde});var Fae=e=>e.flatMap(Bae),Bae=e=>Yae(Wae(e)).map(Hae),Hae=e=>e.replace(/ +/g," ").trim(),Wae=e=>({type:"mandatory_block",items:Uae(e,0)[0]}),Uae=(e,t,i)=>{const n=[];for(;e[t];){const[o,s]=Vae(e,t);if(n.push(o),"|"!==e[t=s]){if("}"===e[t]||"]"===e[t]){if(i!==e[t])throw new Error(`Unbalanced parenthesis in: ${e}`);return[n,++t]}if(t===e.length){if(i)throw new Error(`Unbalanced parenthesis in: ${e}`);return[n,t]}throw new Error(`Unexpected "${e[t]}"`)}t++}return[n,t]},Vae=(e,t)=>{const i=[];for(;;){const[n,o]=Gae(e,t);if(!n)break;i.push(n),t=o}return 1===i.length?[i[0],t]:[{type:"concatenation",items:i},t]},Gae=(e,t)=>{if("{"===e[t])return zae(e,t+1);if("["===e[t])return Kae(e,t+1);{let i="";for(;e[t]&&/[A-Za-z0-9_ ]/.test(e[t]);)i+=e[t],t++;return[i,t]}},zae=(e,t)=>{const[i,n]=Uae(e,t,"}");return[{type:"mandatory_block",items:i},n]},Kae=(e,t)=>{const[i,n]=Uae(e,t,"]");return[{type:"optional_block",items:i},n]},Yae=e=>{if("string"==typeof e)return[e];if("concatenation"===e.type)return e.items.map(Yae).reduce(qae,[""]);if("mandatory_block"===e.type)return e.items.flatMap(Yae);if("optional_block"===e.type)return["",...e.items.flatMap(Yae)];throw new Error(`Unknown node type: ${e}`)},qae=(e,t)=>{const i=[];for(const n of e)for(const e of t)i.push(n+e);return i},$ae=(e=>(e.QUOTED_IDENTIFIER="QUOTED_IDENTIFIER",e.IDENTIFIER="IDENTIFIER",e.STRING="STRING",e.VARIABLE="VARIABLE",e.RESERVED_DATA_TYPE="RESERVED_DATA_TYPE",e.RESERVED_PARAMETERIZED_DATA_TYPE="RESERVED_PARAMETERIZED_DATA_TYPE",e.RESERVED_KEYWORD="RESERVED_KEYWORD",e.RESERVED_FUNCTION_NAME="RESERVED_FUNCTION_NAME",e.RESERVED_PHRASE="RESERVED_PHRASE",e.RESERVED_SET_OPERATION="RESERVED_SET_OPERATION",e.RESERVED_CLAUSE="RESERVED_CLAUSE",e.RESERVED_SELECT="RESERVED_SELECT",e.RESERVED_JOIN="RESERVED_JOIN",e.ARRAY_IDENTIFIER="ARRAY_IDENTIFIER",e.ARRAY_KEYWORD="ARRAY_KEYWORD",e.CASE="CASE",e.END="END",e.WHEN="WHEN",e.ELSE="ELSE",e.THEN="THEN",e.LIMIT="LIMIT",e.BETWEEN="BETWEEN",e.AND="AND",e.OR="OR",e.XOR="XOR",e.OPERATOR="OPERATOR",e.COMMA="COMMA",e.ASTERISK="ASTERISK",e.PROPERTY_ACCESS_OPERATOR="PROPERTY_ACCESS_OPERATOR",e.OPEN_PAREN="OPEN_PAREN",e.CLOSE_PAREN="CLOSE_PAREN",e.LINE_COMMENT="LINE_COMMENT",e.BLOCK_COMMENT="BLOCK_COMMENT",e.DISABLE_COMMENT="DISABLE_COMMENT",e.NUMBER="NUMBER",e.NAMED_PARAMETER="NAMED_PARAMETER",e.QUOTED_PARAMETER="QUOTED_PARAMETER",e.NUMBERED_PARAMETER="NUMBERED_PARAMETER",e.POSITIONAL_PARAMETER="POSITIONAL_PARAMETER",e.CUSTOM_PARAMETER="CUSTOM_PARAMETER",e.DELIMITER="DELIMITER",e.EOF="EOF",e))($ae||{}),jae=e=>({type:"EOF",raw:"«EOF»",text:"«EOF»",start:e}),Xae=jae(1/0),Jae=e=>t=>t.type===e.type&&t.text===e.text,Qae={ARRAY:Jae({text:"ARRAY",type:"RESERVED_DATA_TYPE"}),BY:Jae({text:"BY",type:"RESERVED_KEYWORD"}),SET:Jae({text:"SET",type:"RESERVED_CLAUSE"}),STRUCT:Jae({text:"STRUCT",type:"RESERVED_DATA_TYPE"}),WINDOW:Jae({text:"WINDOW",type:"RESERVED_CLAUSE"}),VALUES:Jae({text:"VALUES",type:"RESERVED_CLAUSE"})},Zae=e=>"RESERVED_DATA_TYPE"===e||"RESERVED_KEYWORD"===e||"RESERVED_FUNCTION_NAME"===e||"RESERVED_PHRASE"===e||"RESERVED_CLAUSE"===e||"RESERVED_SELECT"===e||"RESERVED_SET_OPERATION"===e||"RESERVED_JOIN"===e||"ARRAY_KEYWORD"===e||"CASE"===e||"END"===e||"WHEN"===e||"ELSE"===e||"THEN"===e||"LIMIT"===e||"BETWEEN"===e||"AND"===e||"OR"===e||"XOR"===e,ele=Fae(["SELECT [ALL | DISTINCT] [AS STRUCT | AS VALUE]"]),tle=Fae(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","QUALIFY","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","OMIT RECORD IF","INSERT [INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [BY SOURCE | BY TARGET] [THEN]","UPDATE SET","CLUSTER BY","FOR SYSTEM_TIME AS OF","WITH CONNECTION","WITH PARTITION COLUMNS","REMOTE WITH CONNECTION"]),ile=Fae(["CREATE [OR REPLACE] [TEMP|TEMPORARY|SNAPSHOT|EXTERNAL] TABLE [IF NOT EXISTS]"]),nle=Fae(["CREATE [OR REPLACE] [MATERIALIZED] VIEW [IF NOT EXISTS]","UPDATE","DELETE [FROM]","DROP [SNAPSHOT | EXTERNAL] TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","ADD COLUMN [IF NOT EXISTS]","DROP COLUMN [IF EXISTS]","RENAME TO","ALTER COLUMN [IF EXISTS]","SET DEFAULT COLLATE","SET OPTIONS","DROP NOT NULL","SET DATA TYPE","ALTER SCHEMA [IF EXISTS]","ALTER [MATERIALIZED] VIEW [IF EXISTS]","ALTER BI_CAPACITY","TRUNCATE TABLE","CREATE SCHEMA [IF NOT EXISTS]","DEFAULT COLLATE","CREATE [OR REPLACE] [TEMP|TEMPORARY|TABLE] FUNCTION [IF NOT EXISTS]","CREATE [OR REPLACE] PROCEDURE [IF NOT EXISTS]","CREATE [OR REPLACE] ROW ACCESS POLICY [IF NOT EXISTS]","GRANT TO","FILTER USING","CREATE CAPACITY","AS JSON","CREATE RESERVATION","CREATE ASSIGNMENT","CREATE SEARCH INDEX [IF NOT EXISTS]","DROP SCHEMA [IF EXISTS]","DROP [MATERIALIZED] VIEW [IF EXISTS]","DROP [TABLE] FUNCTION [IF EXISTS]","DROP PROCEDURE [IF EXISTS]","DROP ROW ACCESS POLICY","DROP ALL ROW ACCESS POLICIES","DROP CAPACITY [IF EXISTS]","DROP RESERVATION [IF EXISTS]","DROP ASSIGNMENT [IF EXISTS]","DROP SEARCH INDEX [IF EXISTS]","DROP [IF EXISTS]","GRANT","REVOKE","DECLARE","EXECUTE IMMEDIATE","LOOP","END LOOP","REPEAT","END REPEAT","WHILE","END WHILE","BREAK","LEAVE","CONTINUE","ITERATE","FOR","END FOR","BEGIN","BEGIN TRANSACTION","COMMIT TRANSACTION","ROLLBACK TRANSACTION","RAISE","RETURN","CALL","ASSERT","EXPORT DATA"]),ole=Fae(["UNION {ALL | DISTINCT}","EXCEPT DISTINCT","INTERSECT DISTINCT"]),sle=Fae(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),rle=Fae(["TABLESAMPLE SYSTEM","ANY TYPE","ALL COLUMNS","NOT DETERMINISTIC","{ROWS | RANGE} BETWEEN","IS [NOT] DISTINCT FROM"]),ale={name:"bigquery",tokenizerOptions:{reservedSelect:ele,reservedClauses:[...tle,...nle,...ile],reservedSetOperations:ole,reservedJoins:sle,reservedPhrases:rle,reservedKeywords:["ALL","AND","ANY","AS","ASC","ASSERT_ROWS_MODIFIED","AT","BETWEEN","BY","CASE","CAST","COLLATE","CONTAINS","CREATE","CROSS","CUBE","CURRENT","DEFAULT","DEFINE","DESC","DISTINCT","ELSE","END","ENUM","ESCAPE","EXCEPT","EXCLUDE","EXISTS","EXTRACT","FALSE","FETCH","FOLLOWING","FOR","FROM","FULL","GROUP","GROUPING","GROUPS","HASH","HAVING","IF","IGNORE","IN","INNER","INTERSECT","INTO","IS","JOIN","LATERAL","LEFT","LIMIT","LOOKUP","MERGE","NATURAL","NEW","NO","NOT","NULL","NULLS","OF","ON","OR","ORDER","OUTER","OVER","PARTITION","PRECEDING","PROTO","RANGE","RECURSIVE","RESPECT","RIGHT","ROLLUP","ROWS","SELECT","SET","SOME","TABLE","TABLESAMPLE","THEN","TO","TREAT","TRUE","UNBOUNDED","UNION","UNNEST","USING","WHEN","WHERE","WINDOW","WITH","WITHIN","SAFE","LIKE","COPY","CLONE","IN","OUT","INOUT","RETURNS","LANGUAGE","CASCADE","RESTRICT","DETERMINISTIC"],reservedDataTypes:["ARRAY","BOOL","BYTES","DATE","DATETIME","GEOGRAPHY","INTERVAL","INT64","INT","SMALLINT","INTEGER","BIGINT","TINYINT","BYTEINT","NUMERIC","DECIMAL","BIGNUMERIC","BIGDECIMAL","FLOAT64","STRING","STRUCT","TIME","TIMEZONE"],reservedFunctionNames:["KEYS.NEW_KEYSET","KEYS.ADD_KEY_FROM_RAW_BYTES","AEAD.DECRYPT_BYTES","AEAD.DECRYPT_STRING","AEAD.ENCRYPT","KEYS.KEYSET_CHAIN","KEYS.KEYSET_FROM_JSON","KEYS.KEYSET_TO_JSON","KEYS.ROTATE_KEYSET","KEYS.KEYSET_LENGTH","ANY_VALUE","ARRAY_AGG","AVG","CORR","COUNT","COUNTIF","COVAR_POP","COVAR_SAMP","MAX","MIN","ST_CLUSTERDBSCAN","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","VAR_POP","VAR_SAMP","ANY_VALUE","ARRAY_AGG","ARRAY_CONCAT_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","COUNT","COUNTIF","LOGICAL_AND","LOGICAL_OR","MAX","MIN","STRING_AGG","SUM","APPROX_COUNT_DISTINCT","APPROX_QUANTILES","APPROX_TOP_COUNT","APPROX_TOP_SUM","ARRAY_CONCAT","ARRAY_LENGTH","ARRAY_TO_STRING","GENERATE_ARRAY","GENERATE_DATE_ARRAY","GENERATE_TIMESTAMP_ARRAY","ARRAY_REVERSE","OFFSET","SAFE_OFFSET","ORDINAL","SAFE_ORDINAL","BIT_COUNT","PARSE_BIGNUMERIC","PARSE_NUMERIC","SAFE_CAST","CURRENT_DATE","EXTRACT","DATE","DATE_ADD","DATE_SUB","DATE_DIFF","DATE_TRUNC","DATE_FROM_UNIX_DATE","FORMAT_DATE","LAST_DAY","PARSE_DATE","UNIX_DATE","CURRENT_DATETIME","DATETIME","EXTRACT","DATETIME_ADD","DATETIME_SUB","DATETIME_DIFF","DATETIME_TRUNC","FORMAT_DATETIME","LAST_DAY","PARSE_DATETIME","ERROR","EXTERNAL_QUERY","S2_CELLIDFROMPOINT","S2_COVERINGCELLIDS","ST_ANGLE","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_AZIMUTH","ST_BOUNDARY","ST_BOUNDINGBOX","ST_BUFFER","ST_BUFFERWITHTOLERANCE","ST_CENTROID","ST_CENTROID_AGG","ST_CLOSESTPOINT","ST_CLUSTERDBSCAN","ST_CONTAINS","ST_CONVEXHULL","ST_COVEREDBY","ST_COVERS","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DUMP","ST_DWITHIN","ST_ENDPOINT","ST_EQUALS","ST_EXTENT","ST_EXTERIORRING","ST_GEOGFROM","ST_GEOGFROMGEOJSON","ST_GEOGFROMTEXT","ST_GEOGFROMWKB","ST_GEOGPOINT","ST_GEOGPOINTFROMGEOHASH","ST_GEOHASH","ST_GEOMETRYTYPE","ST_INTERIORRINGS","ST_INTERSECTION","ST_INTERSECTS","ST_INTERSECTSBOX","ST_ISCOLLECTION","ST_ISEMPTY","ST_LENGTH","ST_MAKELINE","ST_MAKEPOLYGON","ST_MAKEPOLYGONORIENTED","ST_MAXDISTANCE","ST_NPOINTS","ST_NUMGEOMETRIES","ST_NUMPOINTS","ST_PERIMETER","ST_POINTN","ST_SIMPLIFY","ST_SNAPTOGRID","ST_STARTPOINT","ST_TOUCHES","ST_UNION","ST_UNION_AGG","ST_WITHIN","ST_X","ST_Y","FARM_FINGERPRINT","MD5","SHA1","SHA256","SHA512","HLL_COUNT.INIT","HLL_COUNT.MERGE","HLL_COUNT.MERGE_PARTIAL","HLL_COUNT.EXTRACT","MAKE_INTERVAL","EXTRACT","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","JSON_EXTRACT","JSON_QUERY","JSON_EXTRACT_SCALAR","JSON_VALUE","JSON_EXTRACT_ARRAY","JSON_QUERY_ARRAY","JSON_EXTRACT_STRING_ARRAY","JSON_VALUE_ARRAY","TO_JSON_STRING","ABS","SIGN","IS_INF","IS_NAN","IEEE_DIVIDE","RAND","SQRT","POW","POWER","EXP","LN","LOG","LOG10","GREATEST","LEAST","DIV","SAFE_DIVIDE","SAFE_MULTIPLY","SAFE_NEGATE","SAFE_ADD","SAFE_SUBTRACT","MOD","ROUND","TRUNC","CEIL","CEILING","FLOOR","COS","COSH","ACOS","ACOSH","SIN","SINH","ASIN","ASINH","TAN","TANH","ATAN","ATANH","ATAN2","RANGE_BUCKET","FIRST_VALUE","LAST_VALUE","NTH_VALUE","LEAD","LAG","PERCENTILE_CONT","PERCENTILE_DISC","NET.IP_FROM_STRING","NET.SAFE_IP_FROM_STRING","NET.IP_TO_STRING","NET.IP_NET_MASK","NET.IP_TRUNC","NET.IPV4_FROM_INT64","NET.IPV4_TO_INT64","NET.HOST","NET.PUBLIC_SUFFIX","NET.REG_DOMAIN","RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","NTILE","ROW_NUMBER","SESSION_USER","CORR","COVAR_POP","COVAR_SAMP","STDDEV_POP","STDDEV_SAMP","STDDEV","VAR_POP","VAR_SAMP","VARIANCE","ASCII","BYTE_LENGTH","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CODE_POINTS_TO_BYTES","CODE_POINTS_TO_STRING","CONCAT","CONTAINS_SUBSTR","ENDS_WITH","FORMAT","FROM_BASE32","FROM_BASE64","FROM_HEX","INITCAP","INSTR","LEFT","LENGTH","LPAD","LOWER","LTRIM","NORMALIZE","NORMALIZE_AND_CASEFOLD","OCTET_LENGTH","REGEXP_CONTAINS","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPLACE","REPEAT","REVERSE","RIGHT","RPAD","RTRIM","SAFE_CONVERT_BYTES_TO_STRING","SOUNDEX","SPLIT","STARTS_WITH","STRPOS","SUBSTR","SUBSTRING","TO_BASE32","TO_BASE64","TO_CODE_POINTS","TO_HEX","TRANSLATE","TRIM","UNICODE","UPPER","CURRENT_TIME","TIME","EXTRACT","TIME_ADD","TIME_SUB","TIME_DIFF","TIME_TRUNC","FORMAT_TIME","PARSE_TIME","CURRENT_TIMESTAMP","EXTRACT","STRING","TIMESTAMP","TIMESTAMP_ADD","TIMESTAMP_SUB","TIMESTAMP_DIFF","TIMESTAMP_TRUNC","FORMAT_TIMESTAMP","PARSE_TIMESTAMP","TIMESTAMP_SECONDS","TIMESTAMP_MILLIS","TIMESTAMP_MICROS","UNIX_SECONDS","UNIX_MILLIS","UNIX_MICROS","GENERATE_UUID","COALESCE","IF","IFNULL","NULLIF","AVG","BIT_AND","BIT_OR","BIT_XOR","CORR","COUNT","COVAR_POP","COVAR_SAMP","EXACT_COUNT_DISTINCT","FIRST","GROUP_CONCAT","GROUP_CONCAT_UNQUOTED","LAST","MAX","MIN","NEST","NTH","QUANTILES","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","TOP","UNIQUE","VARIANCE","VAR_POP","VAR_SAMP","BIT_COUNT","BOOLEAN","BYTES","CAST","FLOAT","HEX_STRING","INTEGER","STRING","COALESCE","GREATEST","IFNULL","IS_INF","IS_NAN","IS_EXPLICITLY_DEFINED","LEAST","NVL","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DATE_ADD","DATEDIFF","DAY","DAYOFWEEK","DAYOFYEAR","FORMAT_UTC_USEC","HOUR","MINUTE","MONTH","MSEC_TO_TIMESTAMP","NOW","PARSE_UTC_USEC","QUARTER","SEC_TO_TIMESTAMP","SECOND","STRFTIME_UTC_USEC","TIME","TIMESTAMP","TIMESTAMP_TO_MSEC","TIMESTAMP_TO_SEC","TIMESTAMP_TO_USEC","USEC_TO_TIMESTAMP","UTC_USEC_TO_DAY","UTC_USEC_TO_HOUR","UTC_USEC_TO_MONTH","UTC_USEC_TO_WEEK","UTC_USEC_TO_YEAR","WEEK","YEAR","FORMAT_IP","PARSE_IP","FORMAT_PACKED_IP","PARSE_PACKED_IP","JSON_EXTRACT","JSON_EXTRACT_SCALAR","ABS","ACOS","ACOSH","ASIN","ASINH","ATAN","ATANH","ATAN2","CEIL","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG2","LOG10","PI","POW","RADIANS","RAND","ROUND","SIN","SINH","SQRT","TAN","TANH","REGEXP_MATCH","REGEXP_EXTRACT","REGEXP_REPLACE","CONCAT","INSTR","LEFT","LENGTH","LOWER","LPAD","LTRIM","REPLACE","RIGHT","RPAD","RTRIM","SPLIT","SUBSTR","UPPER","TABLE_DATE_RANGE","TABLE_DATE_RANGE_STRICT","TABLE_QUERY","HOST","DOMAIN","TLD","AVG","COUNT","MAX","MIN","STDDEV","SUM","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER","CURRENT_USER","EVERY","FROM_BASE64","HASH","FARM_FINGERPRINT","IF","POSITION","SHA1","SOME","TO_BASE64","BQ.JOBS.CANCEL","BQ.REFRESH_MATERIALIZED_VIEW","OPTIONS","PIVOT","UNPIVOT"],extraParens:["[]"],stringTypes:[{quote:'""".."""',prefixes:["R","B","RB","BR"]},{quote:"'''..'''",prefixes:["R","B","RB","BR"]},'""-bs',"''-bs",{quote:'""-raw',prefixes:["R","B","RB","BR"],requirePrefix:!0},{quote:"''-raw",prefixes:["R","B","RB","BR"],requirePrefix:!0}],identTypes:["``"],identChars:{dashes:!0},paramTypes:{positional:!0,named:["@"],quoted:["@"]},variableTypes:[{regex:String.raw`@@\w+`}],lineCommentTypes:["--","#"],operators:["&","|","^","~",">>","<<","||","=>"],postProcess:function(e){return function(e){let t=Xae;return e.map((e=>"OFFSET"===e.text&&"["===t.text?(t=e,Mae(xae({},e),{type:"RESERVED_FUNCTION_NAME"})):(t=e,e)))}(function(e){var t;const i=[];for(let n=0;nt=>"IDENTIFIER"===t.type||"COMMA"===t.type?t[e]+" ":t[e];function cle(e,t){let i=0;for(let n=t;n"===t.text?i--:">>"===t.text&&(i-=2),0===i)return n}return e.length-1}var dle=Fae(["SELECT [ALL | DISTINCT]"]),hle=Fae(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY [INPUT SEQUENCE]","LIMIT","OFFSET","FETCH NEXT","FOR UPDATE [OF]","FOR {READ | FETCH} ONLY","FOR {RR | CS | UR | RS} [USE AND KEEP {SHARE | UPDATE | EXCLUSIVE} LOCKS]","WAIT FOR OUTCOME","SKIP LOCKED DATA","INTO","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","INSERT"]),ule=Fae(["CREATE [GLOBAL TEMPORARY | EXTERNAL] TABLE [IF NOT EXISTS]"]),gle=Fae(["CREATE [OR REPLACE] VIEW","UPDATE","WHERE CURRENT OF","WITH {RR | RS | CS | UR}","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","DROP [COLUMN]","RENAME COLUMN","ALTER [COLUMN]","SET DATA TYPE","SET NOT NULL","DROP {DEFAULT | GENERATED | NOT NULL}","TRUNCATE [TABLE]","ALLOCATE","ALTER AUDIT POLICY","ALTER BUFFERPOOL","ALTER DATABASE PARTITION GROUP","ALTER DATABASE","ALTER EVENT MONITOR","ALTER FUNCTION","ALTER HISTOGRAM TEMPLATE","ALTER INDEX","ALTER MASK","ALTER METHOD","ALTER MODULE","ALTER NICKNAME","ALTER PACKAGE","ALTER PERMISSION","ALTER PROCEDURE","ALTER SCHEMA","ALTER SECURITY LABEL COMPONENT","ALTER SECURITY POLICY","ALTER SEQUENCE","ALTER SERVER","ALTER SERVICE CLASS","ALTER STOGROUP","ALTER TABLESPACE","ALTER THRESHOLD","ALTER TRIGGER","ALTER TRUSTED CONTEXT","ALTER TYPE","ALTER USAGE LIST","ALTER USER MAPPING","ALTER VIEW","ALTER WORK ACTION SET","ALTER WORK CLASS SET","ALTER WORKLOAD","ALTER WRAPPER","ALTER XSROBJECT","ALTER STOGROUP","ALTER TABLESPACE","ALTER TRIGGER","ALTER TRUSTED CONTEXT","ALTER VIEW","ASSOCIATE [RESULT SET] {LOCATOR | LOCATORS}","AUDIT","BEGIN DECLARE SECTION","CALL","CLOSE","COMMENT ON","COMMIT [WORK]","CONNECT","CREATE [OR REPLACE] [PUBLIC] ALIAS","CREATE AUDIT POLICY","CREATE BUFFERPOOL","CREATE DATABASE PARTITION GROUP","CREATE EVENT MONITOR","CREATE [OR REPLACE] FUNCTION","CREATE FUNCTION MAPPING","CREATE HISTOGRAM TEMPLATE","CREATE [UNIQUE] INDEX","CREATE INDEX EXTENSION","CREATE [OR REPLACE] MASK","CREATE [SPECIFIC] METHOD","CREATE [OR REPLACE] MODULE","CREATE [OR REPLACE] NICKNAME","CREATE [OR REPLACE] PERMISSION","CREATE [OR REPLACE] PROCEDURE","CREATE ROLE","CREATE SCHEMA","CREATE SECURITY LABEL [COMPONENT]","CREATE SECURITY POLICY","CREATE [OR REPLACE] SEQUENCE","CREATE SERVICE CLASS","CREATE SERVER","CREATE STOGROUP","CREATE SYNONYM","CREATE [LARGE | REGULAR | {SYSTEM | USER} TEMPORARY] TABLESPACE","CREATE THRESHOLD","CREATE {TRANSFORM | TRANSFORMS} FOR","CREATE [OR REPLACE] TRIGGER","CREATE TRUSTED CONTEXT","CREATE [OR REPLACE] TYPE","CREATE TYPE MAPPING","CREATE USAGE LIST","CREATE USER MAPPING FOR","CREATE [OR REPLACE] VARIABLE","CREATE WORK ACTION SET","CREATE WORK CLASS SET","CREATE WORKLOAD","CREATE WRAPPER","DECLARE","DECLARE GLOBAL TEMPORARY TABLE","DESCRIBE [INPUT | OUTPUT]","DISCONNECT","DROP [PUBLIC] ALIAS","DROP AUDIT POLICY","DROP BUFFERPOOL","DROP DATABASE PARTITION GROUP","DROP EVENT MONITOR","DROP [SPECIFIC] FUNCTION","DROP FUNCTION MAPPING","DROP HISTOGRAM TEMPLATE","DROP INDEX [EXTENSION]","DROP MASK","DROP [SPECIFIC] METHOD","DROP MODULE","DROP NICKNAME","DROP PACKAGE","DROP PERMISSION","DROP [SPECIFIC] PROCEDURE","DROP ROLE","DROP SCHEMA","DROP SECURITY LABEL [COMPONENT]","DROP SECURITY POLICY","DROP SEQUENCE","DROP SERVER","DROP SERVICE CLASS","DROP STOGROUP","DROP TABLE HIERARCHY","DROP {TABLESPACE | TABLESPACES}","DROP {TRANSFORM | TRANSFORMS}","DROP THRESHOLD","DROP TRIGGER","DROP TRUSTED CONTEXT","DROP TYPE [MAPPING]","DROP USAGE LIST","DROP USER MAPPING FOR","DROP VARIABLE","DROP VIEW [HIERARCHY]","DROP WORK {ACTION | CLASS} SET","DROP WORKLOAD","DROP WRAPPER","DROP XSROBJECT","END DECLARE SECTION","EXECUTE [IMMEDIATE]","EXPLAIN {PLAN [SECTION] | ALL}","FETCH [FROM]","FLUSH {BUFFERPOOL | BUFFERPOOLS} ALL","FLUSH EVENT MONITOR","FLUSH FEDERATED CACHE","FLUSH OPTIMIZATION PROFILE CACHE","FLUSH PACKAGE CACHE [DYNAMIC]","FLUSH AUTHENTICATION CACHE [FOR ALL]","FREE LOCATOR","GET DIAGNOSTICS","GOTO","GRANT","INCLUDE","ITERATE","LEAVE","LOCK TABLE","LOOP","OPEN","PIPE","PREPARE","REFRESH TABLE","RELEASE","RELEASE [TO] SAVEPOINT","RENAME [TABLE | INDEX | STOGROUP | TABLESPACE]","REPEAT","RESIGNAL","RETURN","REVOKE","ROLLBACK [WORK] [TO SAVEPOINT]","SAVEPOINT","SET COMPILATION ENVIRONMENT","SET CONNECTION","SET CURRENT","SET ENCRYPTION PASSWORD","SET EVENT MONITOR STATE","SET INTEGRITY","SET PASSTHRU","SET PATH","SET ROLE","SET SCHEMA","SET SERVER OPTION","SET {SESSION AUTHORIZATION | SESSION_USER}","SET USAGE LIST","SIGNAL","TRANSFER OWNERSHIP OF","WHENEVER {NOT FOUND | SQLERROR | SQLWARNING}","WHILE"]),mle=Fae(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),ple=Fae(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),fle=Fae(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),_le={name:"db2",tokenizerOptions:{reservedSelect:dle,reservedClauses:[...hle,...ule,...gle],reservedSetOperations:mle,reservedJoins:ple,reservedPhrases:fle,reservedKeywords:["ACTIVATE","ADD","AFTER","ALIAS","ALL","ALLOCATE","ALLOW","ALTER","AND","ANY","AS","ASENSITIVE","ASSOCIATE","ASUTIME","AT","ATTRIBUTES","AUDIT","AUTHORIZATION","AUX","AUXILIARY","BEFORE","BEGIN","BETWEEN","BINARY","BUFFERPOOL","BY","CACHE","CALL","CALLED","CAPTURE","CARDINALITY","CASCADED","CASE","CAST","CHECK","CLONE","CLOSE","CLUSTER","COLLECTION","COLLID","COLUMN","COMMENT","COMMIT","CONCAT","CONDITION","CONNECT","CONNECTION","CONSTRAINT","CONTAINS","CONTINUE","COUNT","COUNT_BIG","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_SCHEMA","CURRENT_SERVER","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DAY","DAYS","DB2GENERAL","DB2GENRL","DB2SQL","DBINFO","DBPARTITIONNAME","DBPARTITIONNUM","DEALLOCATE","DECLARE","DEFAULT","DEFAULTS","DEFINITION","DELETE","DENSERANK","DENSE_RANK","DESCRIBE","DESCRIPTOR","DETERMINISTIC","DIAGNOSTICS","DISABLE","DISALLOW","DISCONNECT","DISTINCT","DO","DOCUMENT","DROP","DSSIZE","DYNAMIC","EACH","EDITPROC","ELSE","ELSEIF","ENABLE","ENCODING","ENCRYPTION","END","END-EXEC","ENDING","ERASE","ESCAPE","EVERY","EXCEPT","EXCEPTION","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTENDED","EXTERNAL","EXTRACT","FENCED","FETCH","FIELDPROC","FILE","FINAL","FIRST1","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GENERAL","GENERATED","GET","GLOBAL","GO","GOTO","GRANT","GRAPHIC","GROUP","HANDLER","HASH","HASHED_VALUE","HAVING","HINT","HOLD","HOUR","HOURS","IDENTITY","IF","IMMEDIATE","IMPORT","IN","INCLUDING","INCLUSIVE","INCREMENT","INDEX","INDICATOR","INDICATORS","INF","INFINITY","INHERIT","INNER","INOUT","INSENSITIVE","INSERT","INTEGRITY","INTERSECT","INTO","IS","ISNULL","ISOBID","ISOLATION","ITERATE","JAR","JAVA","JOIN","KEEP","KEY","LABEL","LANGUAGE","LAST3","LATERAL","LC_CTYPE","LEAVE","LEFT","LIKE","LIMIT","LINKTYPE","LOCAL","LOCALDATE","LOCALE","LOCALTIME","LOCALTIMESTAMP","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LOOP","MAINTAINED","MATERIALIZED","MAXVALUE","MICROSECOND","MICROSECONDS","MINUTE","MINUTES","MINVALUE","MODE","MODIFIES","MONTH","MONTHS","NAN","NEW","NEW_TABLE","NEXTVAL","NO","NOCACHE","NOCYCLE","NODENAME","NODENUMBER","NOMAXVALUE","NOMINVALUE","NONE","NOORDER","NORMALIZED","NOT2","NOTNULL","NULL","NULLS","NUMPARTS","OBID","OF","OFF","OFFSET","OLD","OLD_TABLE","ON","OPEN","OPTIMIZATION","OPTIMIZE","OPTION","OR","ORDER","OUT","OUTER","OVER","OVERRIDING","PACKAGE","PADDED","PAGESIZE","PARAMETER","PART","PARTITION","PARTITIONED","PARTITIONING","PARTITIONS","PASSWORD","PATH","PERCENT","PIECESIZE","PLAN","POSITION","PRECISION","PREPARE","PREVVAL","PRIMARY","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","RANGE","RANK","READ","READS","RECOVERY","REFERENCES","REFERENCING","REFRESH","RELEASE","RENAME","REPEAT","RESET","RESIGNAL","RESTART","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROUTINE","ROW","ROWNUMBER","ROWS","ROWSET","ROW_NUMBER","RRN","RUN","SAVEPOINT","SCHEMA","SCRATCHPAD","SCROLL","SEARCH","SECOND","SECONDS","SECQTY","SECURITY","SELECT","SENSITIVE","SEQUENCE","SESSION","SESSION_USER","SET","SIGNAL","SIMPLE","SNAN","SOME","SOURCE","SPECIFIC","SQL","SQLID","STACKED","STANDARD","START","STARTING","STATEMENT","STATIC","STATMENT","STAY","STOGROUP","STORES","STYLE","SUBSTRING","SUMMARY","SYNONYM","SYSFUN","SYSIBM","SYSPROC","SYSTEM","SYSTEM_USER","TABLE","TABLESPACE","THEN","TO","TRANSACTION","TRIGGER","TRIM","TRUNCATE","TYPE","UNDO","UNION","UNIQUE","UNTIL","UPDATE","USAGE","USER","USING","VALIDPROC","VALUE","VALUES","VARIABLE","VARIANT","VCAT","VERSION","VIEW","VOLATILE","VOLUMES","WHEN","WHENEVER","WHERE","WHILE","WITH","WITHOUT","WLM","WRITE","XMLELEMENT","XMLEXISTS","XMLNAMESPACES","YEAR","YEARS"],reservedDataTypes:["ARRAY","BIGINT","BINARY","BLOB","BOOLEAN","CCSID","CHAR","CHARACTER","CLOB","DATE","DATETIME","DBCLOB","DEC","DECIMAL","DOUBLE","DOUBLE PRECISION","FLOAT","FLOAT4","FLOAT8","GRAPHIC","INT","INT2","INT4","INT8","INTEGER","INTERVAL","LONG VARCHAR","LONG VARGRAPHIC","NCHAR","NCHR","NCLOB","NVARCHAR","NUMERIC","SMALLINT","REAL","TIME","TIMESTAMP","VARBINARY","VARCHAR","VARGRAPHIC"],reservedFunctionNames:["ARRAY_AGG","AVG","CORRELATION","COUNT","COUNT_BIG","COVARIANCE","COVARIANCE_SAMP","CUME_DIST","GROUPING","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_ICPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV","STDDEV_SAMP","SUM","VARIANCE","VARIANCE_SAMP","XMLAGG","XMLGROUP","ABS","ABSVAL","ACOS","ADD_DAYS","ADD_HOURS","ADD_MINUTES","ADD_MONTHS","ADD_SECONDS","ADD_YEARS","AGE","ARRAY_DELETE","ARRAY_FIRST","ARRAY_LAST","ARRAY_NEXT","ARRAY_PRIOR","ASCII","ASCII_STR","ASIN","ATAN","ATAN2","ATANH","BITAND","BITANDNOT","BITOR","BITXOR","BITNOT","BPCHAR","BSON_TO_JSON","BTRIM","CARDINALITY","CEILING","CEIL","CHARACTER_LENGTH","CHR","COALESCE","COLLATION_KEY","COLLATION_KEY_BIT","COMPARE_DECFLOAT","CONCAT","COS","COSH","COT","CURSOR_ROWCOUNT","DATAPARTITIONNUM","DATE_PART","DATE_TRUNC","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFWEEK_ISO","DAYOFYEAR","DAYS","DAYS_BETWEEN","DAYS_TO_END_OF_MONTH","DBPARTITIONNUM","DECFLOAT","DECFLOAT_FORMAT","DECODE","DECRYPT_BIN","DECRYPT_CHAR","DEGREES","DEREF","DIFFERENCE","DIGITS","DOUBLE_PRECISION","EMPTY_BLOB","EMPTY_CLOB","EMPTY_DBCLOB","EMPTY_NCLOB","ENCRYPT","EVENT_MON_STATE","EXP","EXTRACT","FIRST_DAY","FLOOR","FROM_UTC_TIMESTAMP","GENERATE_UNIQUE","GETHINT","GREATEST","HASH","HASH4","HASH8","HASHEDVALUE","HEX","HEXTORAW","HOUR","HOURS_BETWEEN","IDENTITY_VAL_LOCAL","IFNULL","INITCAP","INSERT","INSTR","INSTR2","INSTR4","INSTRB","INTNAND","INTNOR","INTNXOR","INTNNOT","ISNULL","JSON_ARRAY","JSON_OBJECT","JSON_QUERY","JSON_TO_BSON","JSON_VALUE","JULIAN_DAY","LAST_DAY","LCASE","LEAST","LEFT","LENGTH","LENGTH2","LENGTH4","LENGTHB","LN","LOCATE","LOCATE_IN_STRING","LOG10","LONG_VARCHAR","LONG_VARGRAPHIC","LOWER","LPAD","LTRIM","MAX","MAX_CARDINALITY","MICROSECOND","MIDNIGHT_SECONDS","MIN","MINUTE","MINUTES_BETWEEN","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","MULTIPLY_ALT","NEXT_DAY","NEXT_MONTH","NEXT_QUARTER","NEXT_WEEK","NEXT_YEAR","NORMALIZE_DECFLOAT","NOW","NULLIF","NVL","NVL2","OCTET_LENGTH","OVERLAY","PARAMETER","POSITION","POSSTR","POW","POWER","QUANTIZE","QUARTER","QUOTE_IDENT","QUOTE_LITERAL","RADIANS","RAISE_ERROR","RAND","RANDOM","RAWTOHEX","REC2XML","REGEXP_COUNT","REGEXP_EXTRACT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_MATCH_COUNT","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","RID","RID_BIT","RIGHT","ROUND","ROUND_TIMESTAMP","RPAD","RTRIM","SECLABEL","SECLABEL_BY_NAME","SECLABEL_TO_CHAR","SECOND","SECONDS_BETWEEN","SIGN","SIN","SINH","SOUNDEX","SPACE","SQRT","STRIP","STRLEFT","STRPOS","STRRIGHT","SUBSTR","SUBSTR2","SUBSTR4","SUBSTRB","SUBSTRING","TABLE_NAME","TABLE_SCHEMA","TAN","TANH","THIS_MONTH","THIS_QUARTER","THIS_WEEK","THIS_YEAR","TIMESTAMP_FORMAT","TIMESTAMP_ISO","TIMESTAMPDIFF","TIMEZONE","TO_CHAR","TO_CLOB","TO_DATE","TO_HEX","TO_MULTI_BYTE","TO_NCHAR","TO_NCLOB","TO_NUMBER","TO_SINGLE_BYTE","TO_TIMESTAMP","TO_UTC_TIMESTAMP","TOTALORDER","TRANSLATE","TRIM","TRIM_ARRAY","TRUNC_TIMESTAMP","TRUNCATE","TRUNC","TYPE_ID","TYPE_NAME","TYPE_SCHEMA","UCASE","UNICODE_STR","UPPER","VALUE","VARCHAR_BIT_FORMAT","VARCHAR_FORMAT","VARCHAR_FORMAT_BIT","VERIFY_GROUP_FOR_USER","VERIFY_ROLE_FOR_USER","VERIFY_TRUSTED_CONTEXT_ROLE_FOR_USER","WEEK","WEEK_ISO","WEEKS_BETWEEN","WIDTH_BUCKET","XMLATTRIBUTES","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLQUERY","XMLROW","XMLSERIALIZE","XMLTEXT","XMLVALIDATE","XMLXSROBJECTID","XSLTRANSFORM","YEAR","YEARS_BETWEEN","YMD_BETWEEN","BASE_TABLE","JSON_TABLE","UNNEST","XMLTABLE","RANK","DENSE_RANK","NTILE","LAG","LEAD","ROW_NUMBER","FIRST_VALUE","LAST_VALUE","NTH_VALUE","RATIO_TO_REPORT","CAST"],extraParens:["[]"],stringTypes:[{quote:"''-qq",prefixes:["G","N","U&"]},{quote:"''-raw",prefixes:["X","BX","GX","UX"],requirePrefix:!0}],identTypes:['""-qq'],identChars:{first:"@#$",rest:"@#$"},paramTypes:{positional:!0,named:[":"]},paramChars:{first:"@#$",rest:"@#$"},operators:["**","%","|","&","^","~","¬=","¬>","¬<","!>","!<","^=","^>","^<","||","->","=>"]},formatOptions:{onelineClauses:[...ule,...gle],tabularOnelineClauses:gle}},ble=Fae(["SELECT [ALL | DISTINCT]"]),vle=Fae(["WITH [RECURSIVE]","INTO","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER [SIBLINGS] BY [INPUT SEQUENCE]","LIMIT","OFFSET","FETCH {FIRST | NEXT}","FOR UPDATE [OF]","FOR READ ONLY","OPTIMIZE FOR","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","DELETE","INSERT","FOR SYSTEM NAME"]),Sle=Fae(["CREATE [OR REPLACE] TABLE"]),Cle=Fae(["CREATE [OR REPLACE] [RECURSIVE] VIEW","UPDATE","WHERE CURRENT OF","WITH {NC | RR | RS | CS | UR}","DELETE FROM","DROP TABLE","ALTER TABLE","ADD [COLUMN]","ALTER [COLUMN]","DROP [COLUMN]","SET DATA TYPE","SET {GENERATED ALWAYS | GENERATED BY DEFAULT}","SET NOT NULL","SET {NOT HIDDEN | IMPLICITLY HIDDEN}","SET FIELDPROC","DROP {DEFAULT | NOT NULL | GENERATED | IDENTITY | ROW CHANGE TIMESTAMP | FIELDPROC}","TRUNCATE [TABLE]","SET [CURRENT] SCHEMA","SET CURRENT_SCHEMA","ALLOCATE CURSOR","ALLOCATE [SQL] DESCRIPTOR [LOCAL | GLOBAL] SQL","ALTER [SPECIFIC] {FUNCTION | PROCEDURE}","ALTER {MASK | PERMISSION | SEQUENCE | TRIGGER}","ASSOCIATE [RESULT SET] {LOCATOR | LOCATORS}","BEGIN DECLARE SECTION","CALL","CLOSE","COMMENT ON {ALIAS | COLUMN | CONSTRAINT | INDEX | MASK | PACKAGE | PARAMETER | PERMISSION | SEQUENCE | TABLE | TRIGGER | VARIABLE | XSROBJECT}","COMMENT ON [SPECIFIC] {FUNCTION | PROCEDURE | ROUTINE}","COMMENT ON PARAMETER SPECIFIC {FUNCTION | PROCEDURE | ROUTINE}","COMMENT ON [TABLE FUNCTION] RETURN COLUMN","COMMENT ON [TABLE FUNCTION] RETURN COLUMN SPECIFIC [PROCEDURE | ROUTINE]","COMMIT [WORK] [HOLD]","CONNECT [TO | RESET] USER","CREATE [OR REPLACE] {ALIAS | FUNCTION | MASK | PERMISSION | PROCEDURE | SEQUENCE | TRIGGER | VARIABLE}","CREATE [ENCODED VECTOR] INDEX","CREATE UNIQUE [WHERE NOT NULL] INDEX","CREATE SCHEMA","CREATE TYPE","DEALLOCATE [SQL] DESCRIPTOR [LOCAL | GLOBAL]","DECLARE CURSOR","DECLARE GLOBAL TEMPORARY TABLE","DECLARE","DESCRIBE CURSOR","DESCRIBE INPUT","DESCRIBE [OUTPUT]","DESCRIBE {PROCEDURE | ROUTINE}","DESCRIBE TABLE","DISCONNECT ALL [SQL]","DISCONNECT [CURRENT]","DROP {ALIAS | INDEX | MASK | PACKAGE | PERMISSION | SCHEMA | SEQUENCE | TABLE | TYPE | VARIABLE | XSROBJECT} [IF EXISTS]","DROP [SPECIFIC] {FUNCTION | PROCEDURE | ROUTINE} [IF EXISTS]","END DECLARE SECTION","EXECUTE [IMMEDIATE]","FREE LOCATOR","GET [SQL] DESCRIPTOR [LOCAL | GLOBAL]","GET [CURRENT | STACKED] DIAGNOSTICS","GRANT {ALL [PRIVILEGES] | ALTER | EXECUTE} ON {FUNCTION | PROCEDURE | ROUTINE | PACKAGE | SCHEMA | SEQUENCE | TABLE | TYPE | VARIABLE | XSROBJECT}","HOLD LOCATOR","INCLUDE","LABEL ON {ALIAS | COLUMN | CONSTRAINT | INDEX | MASK | PACKAGE | PERMISSION | SEQUENCE | TABLE | TRIGGER | VARIABLE | XSROBJECT}","LABEL ON [SPECIFIC] {FUNCTION | PROCEDURE | ROUTINE}","LOCK TABLE","OPEN","PREPARE","REFRESH TABLE","RELEASE","RELEASE [TO] SAVEPOINT","RENAME [TABLE | INDEX] TO","REVOKE {ALL [PRIVILEGES] | ALTER | EXECUTE} ON {FUNCTION | PROCEDURE | ROUTINE | PACKAGE | SCHEMA | SEQUENCE | TABLE | TYPE | VARIABLE | XSROBJECT}","ROLLBACK [WORK] [HOLD | TO SAVEPOINT]","SAVEPOINT","SET CONNECTION","SET CURRENT {DEBUG MODE | DECFLOAT ROUNDING MODE | DEGREE | IMPLICIT XMLPARSE OPTION | TEMPORAL SYSTEM_TIME}","SET [SQL] DESCRIPTOR [LOCAL | GLOBAL]","SET ENCRYPTION PASSWORD","SET OPTION","SET {[CURRENT [FUNCTION]] PATH | CURRENT_PATH}","SET RESULT SETS [WITH RETURN [TO CALLER | TO CLIENT]]","SET SESSION AUTHORIZATION","SET SESSION_USER","SET TRANSACTION","SIGNAL SQLSTATE [VALUE]","TAG","TRANSFER OWNERSHIP OF","WHENEVER {NOT FOUND | SQLERROR | SQLWARNING}"]),Ele=Fae(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),wle=Fae(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","[LEFT | RIGHT] EXCEPTION JOIN","{INNER | CROSS} JOIN"]),Tle=Fae(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),yle={name:"db2i",tokenizerOptions:{reservedSelect:ble,reservedClauses:[...vle,...Sle,...Cle],reservedSetOperations:Ele,reservedJoins:wle,reservedPhrases:Tle,reservedKeywords:["ABSENT","ACCORDING","ACCTNG","ACTION","ACTIVATE","ADD","ALIAS","ALL","ALLOCATE","ALLOW","ALTER","AND","ANY","APPEND","APPLNAME","ARRAY","ARRAY_AGG","ARRAY_TRIM","AS","ASC","ASENSITIVE","ASSOCIATE","ATOMIC","ATTACH","ATTRIBUTES","AUTHORIZATION","AUTONOMOUS","BEFORE","BEGIN","BETWEEN","BIND","BSON","BUFFERPOOL","BY","CACHE","CALL","CALLED","CARDINALITY","CASE","CAST","CHECK","CL","CLOSE","CLUSTER","COLLECT","COLLECTION","COLUMN","COMMENT","COMMIT","COMPACT","COMPARISONS","COMPRESS","CONCAT","CONCURRENT","CONDITION","CONNECT","CONNECT_BY_ROOT","CONNECTION","CONSTANT","CONSTRAINT","CONTAINS","CONTENT","CONTINUE","COPY","COUNT","COUNT_BIG","CREATE","CREATEIN","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_PATH","CURRENT_SCHEMA","CURRENT_SERVER","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","CURSOR","CYCLE","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DAY","DAYS","DB2GENERAL","DB2GENRL","DB2SQL","DBINFO","DBPARTITIONNAME","DBPARTITIONNUM","DEACTIVATE","DEALLOCATE","DECLARE","DEFAULT","DEFAULTS","DEFER","DEFINE","DEFINITION","DELETE","DELETING","DENSE_RANK","DENSERANK","DESC","DESCRIBE","DESCRIPTOR","DETACH","DETERMINISTIC","DIAGNOSTICS","DISABLE","DISALLOW","DISCONNECT","DISTINCT","DO","DOCUMENT","DROP","DYNAMIC","EACH","ELSE","ELSEIF","EMPTY","ENABLE","ENCODING","ENCRYPTION","END","END-EXEC","ENDING","ENFORCED","ERROR","ESCAPE","EVERY","EXCEPT","EXCEPTION","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTEND","EXTERNAL","EXTRACT","FALSE","FENCED","FETCH","FIELDPROC","FILE","FINAL","FIRST_VALUE","FOR","FOREIGN","FORMAT","FREE","FREEPAGE","FROM","FULL","FUNCTION","GBPCACHE","GENERAL","GENERATED","GET","GLOBAL","GO","GOTO","GRANT","GROUP","HANDLER","HASH","HASH_ROW","HASHED_VALUE","HAVING","HINT","HOLD","HOUR","HOURS","IDENTITY","IF","IGNORE","IMMEDIATE","IMPLICITLY","IN","INCLUDE","INCLUDING","INCLUSIVE","INCREMENT","INDEX","INDEXBP","INDICATOR","INF","INFINITY","INHERIT","INLINE","INNER","INOUT","INSENSITIVE","INSERT","INSERTING","INTEGRITY","INTERPRET","INTERSECT","INTO","IS","ISNULL","ISOLATION","ITERATE","JAVA","JOIN","JSON","JSON_ARRAY","JSON_ARRAYAGG","JSON_EXISTS","JSON_OBJECT","JSON_OBJECTAGG","JSON_QUERY","JSON_TABLE","JSON_VALUE","KEEP","KEY","KEYS","LABEL","LAG","LANGUAGE","LAST_VALUE","LATERAL","LEAD","LEAVE","LEFT","LEVEL2","LIKE","LIMIT","LINKTYPE","LISTAGG","LOCAL","LOCALDATE","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCATOR","LOCK","LOCKSIZE","LOG","LOGGED","LOOP","MAINTAINED","MASK","MATCHED","MATERIALIZED","MAXVALUE","MERGE","MICROSECOND","MICROSECONDS","MINPCTUSED","MINUTE","MINUTES","MINVALUE","MIRROR","MIXED","MODE","MODIFIES","MONTH","MONTHS","NAMESPACE","NAN","NATIONAL","NCHAR","NCLOB","NESTED","NEW","NEW_TABLE","NEXTVAL","NO","NOCACHE","NOCYCLE","NODENAME","NODENUMBER","NOMAXVALUE","NOMINVALUE","NONE","NOORDER","NORMALIZED","NOT","NOTNULL","NTH_VALUE","NTILE","NULL","NULLS","NVARCHAR","OBID","OBJECT","OF","OFF","OFFSET","OLD","OLD_TABLE","OMIT","ON","ONLY","OPEN","OPTIMIZE","OPTION","OR","ORDER","ORDINALITY","ORGANIZE","OUT","OUTER","OVER","OVERLAY","OVERRIDING","PACKAGE","PADDED","PAGE","PAGESIZE","PARAMETER","PART","PARTITION","PARTITIONED","PARTITIONING","PARTITIONS","PASSING","PASSWORD","PATH","PCTFREE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PERIOD","PERMISSION","PIECESIZE","PIPE","PLAN","POSITION","PREPARE","PREVVAL","PRIMARY","PRIOR","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PROGRAMID","QUERY","RANGE","RANK","RATIO_TO_REPORT","RCDFMT","READ","READS","RECOVERY","REFERENCES","REFERENCING","REFRESH","REGEXP_LIKE","RELEASE","RENAME","REPEAT","RESET","RESIGNAL","RESTART","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNING","RETURNS","REVOKE","RID","RIGHT","ROLLBACK","ROLLUP","ROUTINE","ROW","ROW_NUMBER","ROWNUMBER","ROWS","RRN","RUN","SAVEPOINT","SBCS","SCALAR","SCHEMA","SCRATCHPAD","SCROLL","SEARCH","SECOND","SECONDS","SECQTY","SECURED","SELECT","SENSITIVE","SEQUENCE","SESSION","SESSION_USER","SET","SIGNAL","SIMPLE","SKIP","SNAN","SOME","SOURCE","SPECIFIC","SQL","SQLID","SQLIND_DEFAULT","SQLIND_UNASSIGNED","STACKED","START","STARTING","STATEMENT","STATIC","STOGROUP","SUBSTRING","SUMMARY","SYNONYM","SYSTEM_TIME","SYSTEM_USER","TABLE","TABLESPACE","TABLESPACES","TAG","THEN","THREADSAFE","TO","TRANSACTION","TRANSFER","TRIGGER","TRIM","TRIM_ARRAY","TRUE","TRUNCATE","TRY_CAST","TYPE","UNDO","UNION","UNIQUE","UNIT","UNKNOWN","UNNEST","UNTIL","UPDATE","UPDATING","URI","USAGE","USE","USER","USERID","USING","VALUE","VALUES","VARIABLE","VARIANT","VCAT","VERSION","VERSIONING","VIEW","VOLATILE","WAIT","WHEN","WHENEVER","WHERE","WHILE","WITH","WITHIN","WITHOUT","WRAPPED","WRAPPER","WRITE","WRKSTNNAME","XMLAGG","XMLATTRIBUTES","XMLCAST","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLGROUP","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROW","XMLSERIALIZE","XMLTABLE","XMLTEXT","XMLVALIDATE","XSLTRANSFORM","XSROBJECT","YEAR","YEARS","YES","ZONE"],reservedDataTypes:["ARRAY","BIGINT","BINARY","BIT","BLOB","BOOLEAN","CCSID","CHAR","CHARACTER","CLOB","DATA","DATALINK","DATE","DBCLOB","DECFLOAT","DECIMAL","DEC","DOUBLE","DOUBLE PRECISION","FLOAT","GRAPHIC","INT","INTEGER","LONG","NUMERIC","REAL","ROWID","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR","VARGRAPHIC","XML"],reservedFunctionNames:["ARRAY_AGG","AVG","CORR","CORRELATION","COUNT","COUNT_BIG","COVAR_POP","COVARIANCE","COVAR","COVAR_SAMP","COVARIANCE_SAMP","EVERY","GROUPING","JSON_ARRAYAGG","JSON_OBJECTAGG","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","SOME","STDDEV_POP","STDDEV","STDDEV_SAMP","SUM","VAR_POP","VARIANCE","VAR","VAR_SAMP","VARIANCE_SAMP","XMLAGG","XMLGROUP","ABS","ABSVAL","ACOS","ADD_DAYS","ADD_HOURS","ADD_MINUTES","ADD_MONTHS","ADD_SECONDS","ADD_YEARS","ANTILOG","ARRAY_MAX_CARDINALITY","ARRAY_TRIM","ASCII","ASIN","ATAN","ATAN2","ATANH","BASE64_DECODE","BASE64_ENCODE","BIT_LENGTH","BITAND","BITANDNOT","BITNOT","BITOR","BITXOR","BSON_TO_JSON","CARDINALITY","CEIL","CEILING","CHAR_LENGTH","CHARACTER_LENGTH","CHR","COALESCE","COMPARE_DECFLOAT","CONCAT","CONTAINS","COS","COSH","COT","CURDATE","CURTIME","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK_ISO","DAYOFWEEK","DAYOFYEAR","DAYS","DBPARTITIONNAME","DBPARTITIONNUM","DECFLOAT_FORMAT","DECFLOAT_SORTKEY","DECRYPT_BINARY","DECRYPT_BIT","DECRYPT_CHAR","DECRYPT_DB","DEGREES","DIFFERENCE","DIGITS","DLCOMMENT","DLLINKTYPE","DLURLCOMPLETE","DLURLPATH","DLURLPATHONLY","DLURLSCHEME","DLURLSERVER","DLVALUE","DOUBLE_PRECISION","DOUBLE","ENCRPYT","ENCRYPT_AES","ENCRYPT_AES256","ENCRYPT_RC2","ENCRYPT_TDES","EXP","EXTRACT","FIRST_DAY","FLOOR","GENERATE_UNIQUE","GET_BLOB_FROM_FILE","GET_CLOB_FROM_FILE","GET_DBCLOB_FROM_FILE","GET_XML_FILE","GETHINT","GREATEST","HASH_MD5","HASH_ROW","HASH_SHA1","HASH_SHA256","HASH_SHA512","HASH_VALUES","HASHED_VALUE","HEX","HEXTORAW","HOUR","HTML_ENTITY_DECODE","HTML_ENTITY_ENCODE","HTTP_DELETE_BLOB","HTTP_DELETE","HTTP_GET_BLOB","HTTP_GET","HTTP_PATCH_BLOB","HTTP_PATCH","HTTP_POST_BLOB","HTTP_POST","HTTP_PUT_BLOB","HTTP_PUT","IDENTITY_VAL_LOCAL","IFNULL","INSERT","INSTR","INTERPRET","ISFALSE","ISNOTFALSE","ISNOTTRUE","ISTRUE","JSON_ARRAY","JSON_OBJECT","JSON_QUERY","JSON_TO_BSON","JSON_UPDATE","JSON_VALUE","JULIAN_DAY","LAND","LAST_DAY","LCASE","LEAST","LEFT","LENGTH","LN","LNOT","LOCATE_IN_STRING","LOCATE","LOG10","LOR","LOWER","LPAD","LTRIM","MAX_CARDINALITY","MAX","MICROSECOND","MIDNIGHT_SECONDS","MIN","MINUTE","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","MQREAD","MQREADCLOB","MQRECEIVE","MQRECEIVECLOB","MQSEND","MULTIPLY_ALT","NEXT_DAY","NORMALIZE_DECFLOAT","NOW","NULLIF","NVL","OCTET_LENGTH","OVERLAY","PI","POSITION","POSSTR","POW","POWER","QUANTIZE","QUARTER","RADIANS","RAISE_ERROR","RANDOM","RAND","REGEXP_COUNT","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","RID","RIGHT","ROUND_TIMESTAMP","ROUND","RPAD","RRN","RTRIM","SCORE","SECOND","SIGN","SIN","SINH","SOUNDEX","SPACE","SQRT","STRIP","STRLEFT","STRPOS","STRRIGHT","SUBSTR","SUBSTRING","TABLE_NAME","TABLE_SCHEMA","TAN","TANH","TIMESTAMP_FORMAT","TIMESTAMP_ISO","TIMESTAMPDIFF_BIG","TIMESTAMPDIFF","TO_CHAR","TO_CLOB","TO_DATE","TO_NUMBER","TO_TIMESTAMP","TOTALORDER","TRANSLATE","TRIM_ARRAY","TRIM","TRUNC_TIMESTAMP","TRUNC","TRUNCATE","UCASE","UPPER","URL_DECODE","URL_ENCODE","VALUE","VARBINARY_FORMAT","VARCHAR_BIT_FORMAT","VARCHAR_FORMAT_BINARY","VARCHAR_FORMAT","VERIFY_GROUP_FOR_USER","WEEK_ISO","WEEK","WRAP","XMLATTRIBUTES","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROW","XMLSERIALIZE","XMLTEXT","XMLVALIDATE","XOR","XSLTRANSFORM","YEAR","ZONED","BASE_TABLE","HTTP_DELETE_BLOB_VERBOSE","HTTP_DELETE_VERBOSE","HTTP_GET_BLOB_VERBOSE","HTTP_GET_VERBOSE","HTTP_PATCH_BLOB_VERBOSE","HTTP_PATCH_VERBOSE","HTTP_POST_BLOB_VERBOSE","HTTP_POST_VERBOSE","HTTP_PUT_BLOB_VERBOSE","HTTP_PUT_VERBOSE","JSON_TABLE","MQREADALL","MQREADALLCLOB","MQRECEIVEALL","MQRECEIVEALLCLOB","XMLTABLE","UNPACK","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","RATIO_TO_REPORT","ROW_NUMBER","CAST"],nestedBlockComments:!0,extraParens:["[]"],stringTypes:[{quote:"''-qq",prefixes:["G","N"]},{quote:"''-raw",prefixes:["X","BX","GX","UX"],requirePrefix:!0}],identTypes:['""-qq'],identChars:{first:"@#$",rest:"@#$"},paramTypes:{positional:!0,named:[":"]},paramChars:{first:"@#$",rest:"@#$"},operators:["**","¬=","¬>","¬<","!>","!<","||","=>"]},formatOptions:{onelineClauses:[...Sle,...Cle],tabularOnelineClauses:Cle}},Rle=Fae(["SELECT [ALL | DISTINCT]"]),Lle=Fae(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","SORT BY","CLUSTER BY","DISTRIBUTE BY","LIMIT","INSERT INTO [TABLE]","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","INSERT [VALUES]","INSERT OVERWRITE [LOCAL] DIRECTORY","LOAD DATA [LOCAL] INPATH","[OVERWRITE] INTO TABLE"]),Ile=Fae(["CREATE [TEMPORARY] [EXTERNAL] TABLE [IF NOT EXISTS]"]),Ale=Fae(["CREATE [MATERIALIZED] VIEW [IF NOT EXISTS]","UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","RENAME TO","TRUNCATE [TABLE]","ALTER","CREATE","USE","DESCRIBE","DROP","FETCH","SHOW","STORED AS","STORED BY","ROW FORMAT"]),Nle=Fae(["UNION [ALL | DISTINCT]"]),kle=Fae(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","LEFT SEMI JOIN"]),Dle=Fae(["{ROWS | RANGE} BETWEEN"]),Ole={name:"hive",tokenizerOptions:{reservedSelect:Rle,reservedClauses:[...Lle,...Ile,...Ale],reservedSetOperations:Nle,reservedJoins:kle,reservedPhrases:Dle,reservedKeywords:["ADD","ADMIN","AFTER","ANALYZE","ARCHIVE","ASC","BEFORE","BUCKET","BUCKETS","CASCADE","CHANGE","CLUSTER","CLUSTERED","CLUSTERSTATUS","COLLECTION","COLUMNS","COMMENT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONTINUE","DATA","DATABASES","DATETIME","DAY","DBPROPERTIES","DEFERRED","DEFINED","DELIMITED","DEPENDENCY","DESC","DIRECTORIES","DIRECTORY","DISABLE","DISTRIBUTE","ELEM_TYPE","ENABLE","ESCAPED","EXCLUSIVE","EXPLAIN","EXPORT","FIELDS","FILE","FILEFORMAT","FIRST","FORMAT","FORMATTED","FUNCTIONS","HOLD_DDLTIME","HOUR","IDXPROPERTIES","IGNORE","INDEX","INDEXES","INPATH","INPUTDRIVER","INPUTFORMAT","ITEMS","JAR","KEYS","KEY_TYPE","LIMIT","LINES","LOAD","LOCATION","LOCK","LOCKS","LOGICAL","LONG","MAPJOIN","MATERIALIZED","METADATA","MINUS","MINUTE","MONTH","MSCK","NOSCAN","NO_DROP","OFFLINE","OPTION","OUTPUTDRIVER","OUTPUTFORMAT","OVERWRITE","OWNER","PARTITIONED","PARTITIONS","PLUS","PRETTY","PRINCIPALS","PROTECTION","PURGE","READ","READONLY","REBUILD","RECORDREADER","RECORDWRITER","RELOAD","RENAME","REPAIR","REPLACE","REPLICATION","RESTRICT","REWRITE","ROLE","ROLES","SCHEMA","SCHEMAS","SECOND","SEMI","SERDE","SERDEPROPERTIES","SERVER","SETS","SHARED","SHOW","SHOW_DATABASE","SKEWED","SORT","SORTED","SSL","STATISTICS","STORED","STREAMTABLE","STRING","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","TINYINT","TOUCH","TRANSACTIONS","UNARCHIVE","UNDO","UNIONTYPE","UNLOCK","UNSET","UNSIGNED","URI","USE","UTC","UTCTIMESTAMP","VALUE_TYPE","VIEW","WHILE","YEAR","AUTOCOMMIT","ISOLATION","LEVEL","OFFSET","SNAPSHOT","TRANSACTION","WORK","WRITE","ABORT","KEY","LAST","NORELY","NOVALIDATE","NULLS","RELY","VALIDATE","DETAIL","DOW","EXPRESSION","OPERATOR","QUARTER","SUMMARY","VECTORIZATION","WEEK","YEARS","MONTHS","WEEKS","DAYS","HOURS","MINUTES","SECONDS","TIMESTAMPTZ","ZONE","ALL","ALTER","AND","AS","AUTHORIZATION","BETWEEN","BOTH","BY","CASE","CAST","COLUMN","CONF","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIMESTAMP","CURSOR","DATABASE","DELETE","DESCRIBE","DISTINCT","DROP","ELSE","END","EXCHANGE","EXISTS","EXTENDED","EXTERNAL","FALSE","FETCH","FOLLOWING","FOR","FROM","FULL","FUNCTION","GRANT","GROUP","GROUPING","HAVING","IF","IMPORT","IN","INNER","INSERT","INTERSECT","INTO","IS","JOIN","LATERAL","LEFT","LESS","LIKE","LOCAL","MACRO","MORE","NONE","NOT","NULL","OF","ON","OR","ORDER","OUT","OUTER","OVER","PARTIALSCAN","PARTITION","PERCENT","PRECEDING","PRESERVE","PROCEDURE","RANGE","READS","REDUCE","REVOKE","RIGHT","ROLLUP","ROW","ROWS","SELECT","SET","TABLE","TABLESAMPLE","THEN","TO","TRANSFORM","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNION","UNIQUEJOIN","UPDATE","USER","USING","UTC_TMESTAMP","VALUES","WHEN","WHERE","WINDOW","WITH","COMMIT","ONLY","REGEXP","RLIKE","ROLLBACK","START","CACHE","CONSTRAINT","FOREIGN","PRIMARY","REFERENCES","DAYOFWEEK","EXTRACT","FLOOR","VIEWS","TIME","SYNC","TEXTFILE","SEQUENCEFILE","ORC","CSV","TSV","PARQUET","AVRO","RCFILE","JSONFILE","INPUTFORMAT","OUTPUTFORMAT"],reservedDataTypes:["ARRAY","BIGINT","BINARY","BOOLEAN","CHAR","DATE","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","MAP","NUMERIC","PRECISION","SMALLINT","STRUCT","TIMESTAMP","VARCHAR"],reservedFunctionNames:["ABS","ACOS","ASIN","ATAN","BIN","BROUND","CBRT","CEIL","CEILING","CONV","COS","DEGREES","EXP","FACTORIAL","FLOOR","GREATEST","HEX","LEAST","LN","LOG","LOG10","LOG2","NEGATIVE","PI","PMOD","POSITIVE","POW","POWER","RADIANS","RAND","ROUND","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIN","SQRT","TAN","UNHEX","WIDTH_BUCKET","ARRAY_CONTAINS","MAP_KEYS","MAP_VALUES","SIZE","SORT_ARRAY","BINARY","CAST","ADD_MONTHS","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","QUARTER","SECOND","TIMESTAMP","TO_DATE","TO_UTC_TIMESTAMP","TRUNC","UNIX_TIMESTAMP","WEEKOFYEAR","YEAR","ASSERT_TRUE","COALESCE","IF","ISNOTNULL","ISNULL","NULLIF","NVL","ASCII","BASE64","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONTEXT_NGRAMS","DECODE","ELT","ENCODE","FIELD","FIND_IN_SET","FORMAT_NUMBER","GET_JSON_OBJECT","IN_FILE","INITCAP","INSTR","LCASE","LENGTH","LEVENSHTEIN","LOCATE","LOWER","LPAD","LTRIM","NGRAMS","OCTET_LENGTH","PARSE_URL","PRINTF","QUOTE","REGEXP_EXTRACT","REGEXP_REPLACE","REPEAT","REVERSE","RPAD","RTRIM","SENTENCES","SOUNDEX","SPACE","SPLIT","STR_TO_MAP","SUBSTR","SUBSTRING","TRANSLATE","TRIM","UCASE","UNBASE64","UPPER","MASK","MASK_FIRST_N","MASK_HASH","MASK_LAST_N","MASK_SHOW_FIRST_N","MASK_SHOW_LAST_N","AES_DECRYPT","AES_ENCRYPT","CRC32","CURRENT_DATABASE","CURRENT_USER","HASH","JAVA_METHOD","LOGGED_IN_USER","MD5","REFLECT","SHA","SHA1","SHA2","SURROGATE_KEY","VERSION","AVG","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COVAR_POP","COVAR_SAMP","HISTOGRAM_NUMERIC","MAX","MIN","NTILE","PERCENTILE","PERCENTILE_APPROX","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE","EXPLODE","INLINE","JSON_TUPLE","PARSE_URL_TUPLE","POSEXPLODE","STACK","LEAD","LAG","FIRST_VALUE","LAST_VALUE","RANK","ROW_NUMBER","DENSE_RANK","CUME_DIST","PERCENT_RANK","NTILE"],extraParens:["[]"],stringTypes:['""-bs',"''-bs"],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||"]},formatOptions:{onelineClauses:[...Ile,...Ale],tabularOnelineClauses:Ale}};function xle(e){return e.map(((t,i)=>{const n=e[i+1]||Xae;if(Qae.SET(t)&&"("===n.text)return Mae(xae({},t),{type:"RESERVED_FUNCTION_NAME"});const o=e[i-1]||Xae;return Qae.VALUES(t)&&"="===o.text?Mae(xae({},t),{type:"RESERVED_FUNCTION_NAME"}):t}))}var Mle=Fae(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),Ple=Fae(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","ON DUPLICATE KEY UPDATE","SET","RETURNING"]),Fle=Fae(["CREATE [OR REPLACE] [TEMPORARY] TABLE [IF NOT EXISTS]"]),Ble=Fae(["CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","UPDATE [LOW_PRIORITY] [IGNORE]","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER [ONLINE] [IGNORE] TABLE [IF EXISTS]","ADD [COLUMN] [IF NOT EXISTS]","{CHANGE | MODIFY} [COLUMN] [IF EXISTS]","DROP [COLUMN] [IF EXISTS]","RENAME [TO]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","SET {VISIBLE | INVISIBLE}","TRUNCATE [TABLE]","ALTER DATABASE","ALTER DATABASE COMMENT","ALTER EVENT","ALTER FUNCTION","ALTER PROCEDURE","ALTER SCHEMA","ALTER SCHEMA COMMENT","ALTER SEQUENCE","ALTER SERVER","ALTER USER","ALTER VIEW","ANALYZE","ANALYZE TABLE","BACKUP LOCK","BACKUP STAGE","BACKUP UNLOCK","BEGIN","BINLOG","CACHE INDEX","CALL","CHANGE MASTER TO","CHECK TABLE","CHECK VIEW","CHECKSUM TABLE","COMMIT","CREATE AGGREGATE FUNCTION","CREATE DATABASE","CREATE EVENT","CREATE FUNCTION","CREATE INDEX","CREATE PROCEDURE","CREATE ROLE","CREATE SEQUENCE","CREATE SERVER","CREATE SPATIAL INDEX","CREATE TRIGGER","CREATE UNIQUE INDEX","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP EVENT","DROP FUNCTION","DROP INDEX","DROP PREPARE","DROP PROCEDURE","DROP ROLE","DROP SEQUENCE","DROP SERVER","DROP TRIGGER","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","GET DIAGNOSTICS","GET DIAGNOSTICS CONDITION","GRANT","HANDLER","HELP","INSTALL PLUGIN","INSTALL SONAME","KILL","LOAD DATA INFILE","LOAD INDEX INTO CACHE","LOAD XML INFILE","LOCK TABLE","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","PURGE MASTER LOGS","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","REPAIR VIEW","RESET MASTER","RESET QUERY CACHE","RESET REPLICA","RESET SLAVE","RESIGNAL","REVOKE","ROLLBACK","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET GLOBAL TRANSACTION","SET NAMES","SET PASSWORD","SET ROLE","SET STATEMENT","SET TRANSACTION","SHOW","SHOW ALL REPLICAS STATUS","SHOW ALL SLAVES STATUS","SHOW AUTHORS","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW BINLOG STATUS","SHOW CHARACTER SET","SHOW CLIENT_STATISTICS","SHOW COLLATION","SHOW COLUMNS","SHOW CONTRIBUTORS","SHOW CREATE DATABASE","SHOW CREATE EVENT","SHOW CREATE FUNCTION","SHOW CREATE PACKAGE","SHOW CREATE PACKAGE BODY","SHOW CREATE PROCEDURE","SHOW CREATE SEQUENCE","SHOW CREATE TABLE","SHOW CREATE TRIGGER","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINE INNODB STATUS","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW EXPLAIN","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW INDEXES","SHOW INDEX_STATISTICS","SHOW KEYS","SHOW LOCALES","SHOW MASTER LOGS","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PACKAGE BODY CODE","SHOW PACKAGE BODY STATUS","SHOW PACKAGE STATUS","SHOW PLUGINS","SHOW PLUGINS SONAME","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW QUERY_RESPONSE_TIME","SHOW RELAYLOG EVENTS","SHOW REPLICA","SHOW REPLICA HOSTS","SHOW REPLICA STATUS","SHOW SCHEMAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW SLAVE STATUS","SHOW STATUS","SHOW STORAGE ENGINES","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW USER_STATISTICS","SHOW VARIABLES","SHOW WARNINGS","SHOW WSREP_MEMBERSHIP","SHOW WSREP_STATUS","SHUTDOWN","SIGNAL","START ALL REPLICAS","START ALL SLAVES","START REPLICA","START SLAVE","START TRANSACTION","STOP ALL REPLICAS","STOP ALL SLAVES","STOP REPLICA","STOP SLAVE","UNINSTALL PLUGIN","UNINSTALL SONAME","UNLOCK TABLE","USE","XA BEGIN","XA COMMIT","XA END","XA PREPARE","XA RECOVER","XA ROLLBACK","XA START"]),Hle=Fae(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]","MINUS [ALL | DISTINCT]"]),Wle=Fae(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),Ule=Fae(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),Vle={name:"mariadb",tokenizerOptions:{reservedSelect:Mle,reservedClauses:[...Ple,...Fle,...Ble],reservedSetOperations:Hle,reservedJoins:Wle,reservedPhrases:Ule,supportsXor:!0,reservedKeywords:["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DECLARE","DEFAULT","DELAYED","DELETE","DELETE_DOMAIN_ID","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DO_DOMAIN_IDS","DROP","DUAL","EACH","ELSE","ELSEIF","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FOR","FORCE","FOREIGN","FROM","FULLTEXT","GENERAL","GRANT","GROUP","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IGNORE_DOMAIN_IDS","IGNORE_SERVER_IDS","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","INTERSECT","INTERVAL","INTO","IS","ITERATE","JOIN","KEY","KEYS","KILL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LOOP","LOW_PRIORITY","MASTER_HEARTBEAT_PERIOD","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NULL","OFFSET","ON","OPTIMIZE","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PAGE_CHECKSUM","PARSE_VCOL_EXPR","PARTITION","POSITION","PRIMARY","PROCEDURE","PURGE","RANGE","READ","READS","READ_WRITE","RECURSIVE","REF_SYSTEM_ID","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","RETURNING","REVOKE","RIGHT","RLIKE","ROW_NUMBER","ROWS","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SLOW","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STRAIGHT_JOIN","TABLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],reservedDataTypes:["BIGINT","BINARY","BIT","BLOB","CHAR BYTE","CHAR","CHARACTER","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","FLOAT","FLOAT4","FLOAT8","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONG","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","VARBINARY","VARCHAR","VARCHARACTER","VARYING","YEAR"],reservedFunctionNames:["ADDDATE","ADD_MONTHS","BIT_AND","BIT_OR","BIT_XOR","CAST","COUNT","CUME_DIST","CURDATE","CURTIME","DATE_ADD","DATE_SUB","DATE_FORMAT","DECODE","DENSE_RANK","EXTRACT","FIRST_VALUE","GROUP_CONCAT","JSON_ARRAYAGG","JSON_OBJECTAGG","LAG","LEAD","MAX","MEDIAN","MID","MIN","NOW","NTH_VALUE","NTILE","POSITION","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","ROW_NUMBER","SESSION_USER","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUBDATE","SUBSTR","SUBSTRING","SUM","SYSTEM_USER","TRIM","TRIM_ORACLE","VARIANCE","VAR_POP","VAR_SAMP","ABS","ACOS","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ASIN","ATAN","ATAN2","BENCHMARK","BIN","BINLOG_GTID_POS","BIT_COUNT","BIT_LENGTH","CEIL","CEILING","CHARACTER_LENGTH","CHAR_LENGTH","CHR","COERCIBILITY","COLUMN_CHECK","COLUMN_EXISTS","COLUMN_LIST","COLUMN_JSON","COMPRESS","CONCAT","CONCAT_OPERATOR_ORACLE","CONCAT_WS","CONNECTION_ID","CONV","CONVERT_TZ","COS","COT","CRC32","DATEDIFF","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEGREES","DECODE_HISTOGRAM","DECODE_ORACLE","DES_DECRYPT","DES_ENCRYPT","ELT","ENCODE","ENCRYPT","EXP","EXPORT_SET","EXTRACTVALUE","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GET_LOCK","GREATEST","HEX","IFNULL","INSTR","ISNULL","IS_FREE_LOCK","IS_USED_LOCK","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_COMPACT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_DETAILED","JSON_EXISTS","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_LOOSE","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_QUERY","JSON_QUOTE","JSON_OBJECT","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_SEARCH","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAST_DAY","LAST_INSERT_ID","LCASE","LEAST","LENGTH","LENGTHB","LN","LOAD_FILE","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LPAD_ORACLE","LTRIM","LTRIM_ORACLE","MAKEDATE","MAKETIME","MAKE_SET","MASTER_GTID_WAIT","MASTER_POS_WAIT","MD5","MONTHNAME","NAME_CONST","NVL","NVL2","OCT","OCTET_LENGTH","ORD","PERIOD_ADD","PERIOD_DIFF","PI","POW","POWER","QUOTE","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","RADIANS","RAND","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPLACE_ORACLE","REVERSE","ROUND","RPAD","RPAD_ORACLE","RTRIM","RTRIM_ORACLE","SEC_TO_TIME","SHA","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SPACE","SQRT","STRCMP","STR_TO_DATE","SUBSTR_ORACLE","SUBSTRING_INDEX","SUBTIME","SYS_GUID","TAN","TIMEDIFF","TIME_FORMAT","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_SECONDS","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UUID","UUID_SHORT","VERSION","WEEKDAY","WEEKOFYEAR","WSREP_LAST_WRITTEN_GTID","WSREP_LAST_SEEN_GTID","WSREP_SYNC_WAIT_UPTO_GTID","YEARWEEK","COALESCE","NULLIF"],stringTypes:['""-qq-bs',"''-qq-bs",{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","&&","||","!","*.*"],postProcess:xle},formatOptions:{onelineClauses:[...Fle,...Ble],tabularOnelineClauses:Ble}},Gle=Fae(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),zle=Fae(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","ON DUPLICATE KEY UPDATE","SET"]),Kle=Fae(["CREATE [TEMPORARY] TABLE [IF NOT EXISTS]"]),Yle=Fae(["CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","UPDATE [LOW_PRIORITY] [IGNORE]","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","{CHANGE | MODIFY} [COLUMN]","DROP [COLUMN]","RENAME [TO | AS]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","TRUNCATE [TABLE]","ALTER DATABASE","ALTER EVENT","ALTER FUNCTION","ALTER INSTANCE","ALTER LOGFILE GROUP","ALTER PROCEDURE","ALTER RESOURCE GROUP","ALTER SERVER","ALTER TABLESPACE","ALTER USER","ALTER VIEW","ANALYZE TABLE","BINLOG","CACHE INDEX","CALL","CHANGE MASTER TO","CHANGE REPLICATION FILTER","CHANGE REPLICATION SOURCE TO","CHECK TABLE","CHECKSUM TABLE","CLONE","COMMIT","CREATE DATABASE","CREATE EVENT","CREATE FUNCTION","CREATE FUNCTION","CREATE INDEX","CREATE LOGFILE GROUP","CREATE PROCEDURE","CREATE RESOURCE GROUP","CREATE ROLE","CREATE SERVER","CREATE SPATIAL REFERENCE SYSTEM","CREATE TABLESPACE","CREATE TRIGGER","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP EVENT","DROP FUNCTION","DROP FUNCTION","DROP INDEX","DROP LOGFILE GROUP","DROP PROCEDURE","DROP RESOURCE GROUP","DROP ROLE","DROP SERVER","DROP SPATIAL REFERENCE SYSTEM","DROP TABLESPACE","DROP TRIGGER","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","GRANT","HANDLER","HELP","IMPORT TABLE","INSTALL COMPONENT","INSTALL PLUGIN","KILL","LOAD DATA","LOAD INDEX INTO CACHE","LOAD XML","LOCK INSTANCE FOR BACKUP","LOCK TABLES","MASTER_POS_WAIT","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","RESET","RESET MASTER","RESET PERSIST","RESET REPLICA","RESET SLAVE","RESTART","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE EVENT","SHOW CREATE FUNCTION","SHOW CREATE PROCEDURE","SHOW CREATE TABLE","SHOW CREATE TRIGGER","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW RELAYLOG EVENTS","SHOW REPLICA STATUS","SHOW REPLICAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW VARIABLES","SHOW WARNINGS","SHUTDOWN","SOURCE_POS_WAIT","START GROUP_REPLICATION","START REPLICA","START SLAVE","START TRANSACTION","STOP GROUP_REPLICATION","STOP REPLICA","STOP SLAVE","TABLE","UNINSTALL COMPONENT","UNINSTALL PLUGIN","UNLOCK INSTANCE","UNLOCK TABLES","USE","XA","ITERATE","LEAVE","LOOP","REPEAT","RETURN","WHILE"]),qle=Fae(["UNION [ALL | DISTINCT]"]),$le=Fae(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),jle=Fae(["ON {UPDATE | DELETE} [SET NULL]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),Xle={name:"mysql",tokenizerOptions:{reservedSelect:Gle,reservedClauses:[...zle,...Kle,...Yle],reservedSetOperations:qle,reservedJoins:$le,reservedPhrases:jle,supportsXor:!0,reservedKeywords:["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CUBE","CUME_DIST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DECLARE","DEFAULT","DELAYED","DELETE","DENSE_RANK","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DROP","DUAL","EACH","ELSE","ELSEIF","EMPTY","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FIRST_VALUE","FOR","FORCE","FOREIGN","FROM","FULLTEXT","FUNCTION","GENERATED","GET","GRANT","GROUP","GROUPING","GROUPS","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","IN","INTERSECT","INTERVAL","INTO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IS","ITERATE","JOIN","JSON_TABLE","KEY","KEYS","KILL","LAG","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LONG","LOOP","LOW_PRIORITY","MASTER_BIND","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","OF","ON","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PARTITION","PERCENT_RANK","PRIMARY","PROCEDURE","PURGE","RANGE","RANK","READ","READS","READ_WRITE","RECURSIVE","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","REVOKE","RIGHT","RLIKE","ROW","ROWS","ROW_NUMBER","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STORED","STRAIGHT_JOIN","SYSTEM","TABLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","VIRTUAL","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],reservedDataTypes:["BIGINT","BINARY","BIT","BLOB","BOOL","BOOLEAN","CHAR","CHARACTER","DATE","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","FLOAT","FLOAT4","FLOAT8","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIME","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","VARBINARY","VARCHAR","VARCHARACTER","VARYING","YEAR"],reservedFunctionNames:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","ASCII","ASIN","ATAN","ATAN2","AVG","BENCHMARK","BIN","BIN_TO_UUID","BINARY","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","CAN_ACCESS_COLUMN","CAN_ACCESS_DATABASE","CAN_ACCESS_TABLE","CAN_ACCESS_USER","CAN_ACCESS_VIEW","CAST","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CRC32","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEFAULT","DEGREES","DENSE_RANK","DIV","ELT","EXP","EXPORT_SET","EXTRACT","EXTRACTVALUE","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_PICO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOMCOLLECTION","GEOMETRYCOLLECTION","GET_DD_COLUMN_PRIVILEGES","GET_DD_CREATE_OPTIONS","GET_DD_INDEX_SUB_PART_LENGTH","GET_FORMAT","GET_LOCK","GREATEST","GROUP_CONCAT","GROUPING","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","INTERNAL_AUTO_INCREMENT","INTERNAL_AVG_ROW_LENGTH","INTERNAL_CHECK_TIME","INTERNAL_CHECKSUM","INTERNAL_DATA_FREE","INTERNAL_DATA_LENGTH","INTERNAL_DD_CHAR_LENGTH","INTERNAL_GET_COMMENT_OR_ERROR","INTERNAL_GET_ENABLED_ROLE_JSON","INTERNAL_GET_HOSTNAME","INTERNAL_GET_USERNAME","INTERNAL_GET_VIEW_WARNING_OR_ERROR","INTERNAL_INDEX_COLUMN_CARDINALITY","INTERNAL_INDEX_LENGTH","INTERNAL_IS_ENABLED_ROLE","INTERNAL_IS_MANDATORY_ROLE","INTERNAL_KEYS_DISABLED","INTERNAL_MAX_DATA_LENGTH","INTERNAL_TABLE_ROWS","INTERNAL_UPDATE_TIME","INTERVAL","IS","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS NOT","IS NOT NULL","IS NULL","IS_USED_LOCK","IS_UUID","ISNULL","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_ARRAYAGG","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LINESTRING","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MATCH","MAX","MBRCONTAINS","MBRCOVEREDBY","MBRCOVERS","MBRDISJOINT","MBREQUALS","MBRINTERSECTS","MBROVERLAPS","MBRTOUCHES","MBRWITHIN","MD5","MEMBER OF","MICROSECOND","MID","MIN","MINUTE","MOD","MONTH","MONTHNAME","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","NAME_CONST","NOT","NOT IN","NOT LIKE","NOT REGEXP","NOW","NTH_VALUE","NTILE","NULLIF","OCT","OCTET_LENGTH","ORD","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","POINT","POLYGON","POSITION","POW","POWER","PS_CURRENT_THREAD_ID","PS_THREAD_ID","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RANK","REGEXP","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROLES_GRAPHML","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_BUFFER","ST_BUFFER_STRATEGY","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_CONVEXHULL","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DISTANCE_SPHERE","ST_ENDPOINT","ST_ENVELOPE","ST_EQUALS","ST_EXTERIORRING","ST_FRECHETDISTANCE","ST_GEOHASH","ST_GEOMCOLLFROMTEXT","ST_GEOMCOLLFROMWKB","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMGEOJSON","ST_GEOMFROMTEXT","ST_GEOMFROMWKB","ST_HAUSDORFFDISTANCE","ST_INTERIORRINGN","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISSIMPLE","ST_ISVALID","ST_LATFROMGEOHASH","ST_LATITUDE","ST_LENGTH","ST_LINEFROMTEXT","ST_LINEFROMWKB","ST_LINEINTERPOLATEPOINT","ST_LINEINTERPOLATEPOINTS","ST_LONGFROMGEOHASH","ST_LONGITUDE","ST_MAKEENVELOPE","ST_MLINEFROMTEXT","ST_MLINEFROMWKB","ST_MPOINTFROMTEXT","ST_MPOINTFROMWKB","ST_MPOLYFROMTEXT","ST_MPOLYFROMWKB","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINTATDISTANCE","ST_POINTFROMGEOHASH","ST_POINTFROMTEXT","ST_POINTFROMWKB","ST_POINTN","ST_POLYFROMTEXT","ST_POLYFROMWKB","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SWAPXY","ST_SYMDIFFERENCE","ST_TOUCHES","ST_TRANSFORM","ST_UNION","ST_VALIDATE","ST_WITHIN","ST_X","ST_Y","STATEMENT_DIGEST","STATEMENT_DIGEST_TEXT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","YEAR","YEARWEEK"],stringTypes:['""-qq-bs',{quote:"''-qq-bs",prefixes:["N"]},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","->","->>","&&","||","!","*.*"],postProcess:xle},formatOptions:{onelineClauses:[...Kle,...Yle],tabularOnelineClauses:Yle}},Jle=Fae(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),Qle=Fae(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","ON DUPLICATE KEY UPDATE","SET"]),Zle=Fae(["CREATE [TEMPORARY] TABLE [IF NOT EXISTS]"]),ece=Fae(["CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","UPDATE [LOW_PRIORITY] [IGNORE]","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","{CHANGE | MODIFY} [COLUMN]","DROP [COLUMN]","RENAME [TO | AS]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","TRUNCATE [TABLE]","ALTER DATABASE","ALTER INSTANCE","ALTER RESOURCE GROUP","ALTER SEQUENCE","ALTER USER","ALTER VIEW","ANALYZE TABLE","CHECK TABLE","CHECKSUM TABLE","COMMIT","CREATE DATABASE","CREATE INDEX","CREATE RESOURCE GROUP","CREATE ROLE","CREATE SEQUENCE","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP INDEX","DROP RESOURCE GROUP","DROP ROLE","DROP TABLESPACE","DROP USER","DROP VIEW","EXPLAIN","FLUSH","GRANT","IMPORT TABLE","INSTALL COMPONENT","INSTALL PLUGIN","KILL","LOAD DATA","LOCK INSTANCE FOR BACKUP","LOCK TABLES","OPTIMIZE TABLE","PREPARE","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","RESET","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE TABLE","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW VARIABLES","SHOW WARNINGS","TABLE","UNINSTALL COMPONENT","UNINSTALL PLUGIN","UNLOCK INSTANCE","UNLOCK TABLES","USE"]),tce=Fae(["UNION [ALL | DISTINCT]"]),ice=Fae(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),nce=Fae(["ON {UPDATE | DELETE} [SET NULL]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),oce={name:"tidb",tokenizerOptions:{reservedSelect:Jle,reservedClauses:[...Qle,...Zle,...ece],reservedSetOperations:tce,reservedJoins:ice,reservedPhrases:nce,supportsXor:!0,reservedKeywords:["ADD","ALL","ALTER","ANALYZE","AND","ARRAY","AS","ASC","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEFAULT","DELAYED","DELETE","DESC","DESCRIBE","DISTINCT","DISTINCTROW","DIV","DOUBLE","DROP","DUAL","ELSE","ELSEIF","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FOR","FORCE","FOREIGN","FROM","FULLTEXT","GENERATED","GRANT","GROUP","GROUPS","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","ILIKE","IN","INDEX","INFILE","INNER","INOUT","INSERT","INTERSECT","INTERVAL","INTO","IS","ITERATE","JOIN","KEY","KEYS","KILL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LONG","LOW_PRIORITY","MATCH","MAXVALUE","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","NATURAL","NOT","NO_WRITE_TO_BINLOG","NULL","OF","ON","OPTIMIZE","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PARTITION","PRIMARY","PROCEDURE","RANGE","READ","RECURSIVE","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESTRICT","REVOKE","RIGHT","RLIKE","ROW","ROWS","SECOND_MICROSECOND","SELECT","SET","SHOW","SPATIAL","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STATS_EXTENDED","STORED","STRAIGHT_JOIN","TABLE","TABLESAMPLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","TiDB_CURRENT_TSO","UNION","UNIQUE","UNLOCK","UNSIGNED","UNTIL","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","VIRTUAL","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],reservedDataTypes:["BIGINT","BINARY","BIT","BLOB","BOOL","BOOLEAN","CHAR","CHARACTER","DATE","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","SMALLINT","TEXT","TIME","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","VARBINARY","VARCHAR","VARCHARACTER","VARYING","YEAR"],reservedFunctionNames:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","ASCII","ASIN","ATAN","ATAN2","AVG","BENCHMARK","BIN","BIN_TO_UUID","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","BITAND","BITNEG","BITOR","BITXOR","CASE","CAST","CEIL","CEILING","CHAR_FUNC","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CRC32","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_RESOURCE_GROUP","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT_FUNC","DEGREES","DENSE_RANK","DES_DECRYPT","DES_ENCRYPT","DIV","ELT","ENCODE","ENCRYPT","EQ","EXP","EXPORT_SET","EXTRACT","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_NANO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GE","GET_FORMAT","GET_LOCK","GETPARAM","GREATEST","GROUP_CONCAT","GROUPING","GT","HEX","HOUR","IF","IFNULL","ILIKE","INET6_ATON","INET6_NTOA","INET_ATON","INET_NTOA","INSERT_FUNC","INSTR","INTDIV","INTERVAL","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS_USED_LOCK","IS_UUID","ISFALSE","ISNULL","ISTRUE","JSON_ARRAY","JSON_ARRAYAGG","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MEMBEROF","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LASTVAL","LCASE","LE","LEAD","LEAST","LEFT","LEFTSHIFT","LENGTH","LIKE","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LT","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MAX","MD5","MICROSECOND","MID","MIN","MINUS","MINUTE","MOD","MONTH","MONTHNAME","MUL","NAME_CONST","NE","NEXTVAL","NOT","NOW","NTH_VALUE","NTILE","NULLEQ","OCT","OCTET_LENGTH","OLD_PASSWORD","ORD","PASSWORD_FUNC","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","PLUS","POSITION","POW","POWER","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RANK","REGEXP","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","RIGHTSHIFT","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SETVAL","SETVAR","SHA","SHA1","SHA2","SIGN","SIN","SLEEP","SM3","SPACE","SQRT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIDB_BOUNDED_STALENESS","TIDB_CURRENT_TSO","TIDB_DECODE_BINARY_PLAN","TIDB_DECODE_KEY","TIDB_DECODE_PLAN","TIDB_DECODE_SQL_DIGESTS","TIDB_ENCODE_SQL_DIGEST","TIDB_IS_DDL_OWNER","TIDB_PARSE_TSO","TIDB_PARSE_TSO_LOGICAL","TIDB_ROW_CHECKSUM","TIDB_SHARD","TIDB_VERSION","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","TRANSLATE","TRIM","TRUNCATE","UCASE","UNARYMINUS","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPPER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VAR_POP","VAR_SAMP","VARIANCE","VERSION","VITESS_HASH","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","YEAR","YEARWEEK"],stringTypes:['""-qq-bs',{quote:"''-qq-bs",prefixes:["N"]},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","->","->>","&&","||","!","*.*"],postProcess:xle},formatOptions:{onelineClauses:[...Zle,...ece],tabularOnelineClauses:ece}},sce=Fae(["SELECT [ALL | DISTINCT]"]),rce=Fae(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED THEN","UPDATE SET","INSERT","NEST","UNNEST","RETURNING"]),ace=Fae(["UPDATE","DELETE FROM","SET SCHEMA","ADVISE","ALTER INDEX","BEGIN TRANSACTION","BUILD INDEX","COMMIT TRANSACTION","CREATE COLLECTION","CREATE FUNCTION","CREATE INDEX","CREATE PRIMARY INDEX","CREATE SCOPE","DROP COLLECTION","DROP FUNCTION","DROP INDEX","DROP PRIMARY INDEX","DROP SCOPE","EXECUTE","EXECUTE FUNCTION","EXPLAIN","GRANT","INFER","PREPARE","REVOKE","ROLLBACK TRANSACTION","SAVEPOINT","SET TRANSACTION","UPDATE STATISTICS","UPSERT","LET","SET CURRENT SCHEMA","SHOW","USE [PRIMARY] KEYS"]),lce=Fae(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),cce=Fae(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","INNER JOIN"]),dce=Fae(["{ROWS | RANGE | GROUPS} BETWEEN"]),hce={name:"n1ql",tokenizerOptions:{reservedSelect:sce,reservedClauses:[...rce,...ace],reservedSetOperations:lce,reservedJoins:cce,reservedPhrases:dce,supportsXor:!0,reservedKeywords:["ADVISE","ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","AT","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","COMMITTED","CONNECT","CONTINUE","CORRELATED","COVER","CREATE","CURRENT","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FILTER","FIRST","FLATTEN","FLUSH","FOLLOWING","FOR","FORCE","FROM","FTS","FUNCTION","GOLANG","GRANT","GROUP","GROUPS","GSI","HASH","HAVING","IF","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","ISOLATION","JAVASCRIPT","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LANGUAGE","LAST","LEFT","LET","LETTING","LEVEL","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MINUS","MISSING","NAMESPACE","NEST","NL","NO","NOT","NTH_VALUE","NULL","NULLS","NUMBER","OBJECT","OFFSET","ON","OPTION","OPTIONS","OR","ORDER","OTHERS","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PRECEDING","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROBE","PROCEDURE","PUBLIC","RANGE","RAW","REALM","REDUCE","RENAME","RESPECT","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","ROW","ROWS","SATISFIES","SAVEPOINT","SCHEMA","SCOPE","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TIES","TO","TRAN","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WORK","XOR"],reservedDataTypes:[],reservedFunctionNames:["ABORT","ABS","ACOS","ADVISOR","ARRAY_AGG","ARRAY_AGG","ARRAY_APPEND","ARRAY_AVG","ARRAY_BINARY_SEARCH","ARRAY_CONCAT","ARRAY_CONTAINS","ARRAY_COUNT","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_FLATTEN","ARRAY_IFNULL","ARRAY_INSERT","ARRAY_INTERSECT","ARRAY_LENGTH","ARRAY_MAX","ARRAY_MIN","ARRAY_MOVE","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_PUT","ARRAY_RANGE","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_REPLACE","ARRAY_REVERSE","ARRAY_SORT","ARRAY_STAR","ARRAY_SUM","ARRAY_SYMDIFF","ARRAY_SYMDIFF1","ARRAY_SYMDIFFN","ARRAY_UNION","ASIN","ATAN","ATAN2","AVG","BASE64","BASE64_DECODE","BASE64_ENCODE","BITAND ","BITCLEAR ","BITNOT ","BITOR ","BITSET ","BITSHIFT ","BITTEST ","BITXOR ","CEIL","CLOCK_LOCAL","CLOCK_MILLIS","CLOCK_STR","CLOCK_TZ","CLOCK_UTC","COALESCE","CONCAT","CONCAT2","CONTAINS","CONTAINS_TOKEN","CONTAINS_TOKEN_LIKE","CONTAINS_TOKEN_REGEXP","COS","COUNT","COUNT","COUNTN","CUME_DIST","CURL","DATE_ADD_MILLIS","DATE_ADD_STR","DATE_DIFF_MILLIS","DATE_DIFF_STR","DATE_FORMAT_STR","DATE_PART_MILLIS","DATE_PART_STR","DATE_RANGE_MILLIS","DATE_RANGE_STR","DATE_TRUNC_MILLIS","DATE_TRUNC_STR","DECODE","DECODE_JSON","DEGREES","DENSE_RANK","DURATION_TO_STR","ENCODED_SIZE","ENCODE_JSON","EXP","FIRST_VALUE","FLOOR","GREATEST","HAS_TOKEN","IFINF","IFMISSING","IFMISSINGORNULL","IFNAN","IFNANORINF","IFNULL","INITCAP","ISARRAY","ISATOM","ISBITSET","ISBOOLEAN","ISNUMBER","ISOBJECT","ISSTRING","LAG","LAST_VALUE","LEAD","LEAST","LENGTH","LN","LOG","LOWER","LTRIM","MAX","MEAN","MEDIAN","META","MILLIS","MILLIS_TO_LOCAL","MILLIS_TO_STR","MILLIS_TO_TZ","MILLIS_TO_UTC","MILLIS_TO_ZONE_NAME","MIN","MISSINGIF","NANIF","NEGINFIF","NOW_LOCAL","NOW_MILLIS","NOW_STR","NOW_TZ","NOW_UTC","NTH_VALUE","NTILE","NULLIF","NVL","NVL2","OBJECT_ADD","OBJECT_CONCAT","OBJECT_INNER_PAIRS","OBJECT_INNER_VALUES","OBJECT_LENGTH","OBJECT_NAMES","OBJECT_PAIRS","OBJECT_PUT","OBJECT_REMOVE","OBJECT_RENAME","OBJECT_REPLACE","OBJECT_UNWRAP","OBJECT_VALUES","PAIRS","PERCENT_RANK","PI","POLY_LENGTH","POSINFIF","POSITION","POWER","RADIANS","RANDOM","RANK","RATIO_TO_REPORT","REGEXP_CONTAINS","REGEXP_LIKE","REGEXP_MATCHES","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGEX_CONTAINS","REGEX_LIKE","REGEX_MATCHES","REGEX_POSITION","REGEX_REPLACE","REGEX_SPLIT","REPEAT","REPLACE","REVERSE","ROUND","ROW_NUMBER","RTRIM","SEARCH","SEARCH_META","SEARCH_SCORE","SIGN","SIN","SPLIT","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DURATION","STR_TO_MILLIS","STR_TO_TZ","STR_TO_UTC","STR_TO_ZONE_NAME","SUBSTR","SUFFIXES","SUM","TAN","TITLE","TOARRAY","TOATOM","TOBOOLEAN","TOKENS","TOKENS","TONUMBER","TOOBJECT","TOSTRING","TRIM","TRUNC","UPPER","UUID","VARIANCE","VARIANCE_POP","VARIANCE_SAMP","VAR_POP","VAR_SAMP","WEEKDAY_MILLIS","WEEKDAY_STR","CAST"],stringTypes:['""-bs',"''-bs"],identTypes:["``"],extraParens:["[]","{}"],paramTypes:{positional:!0,numbered:["$"],named:["$"]},lineCommentTypes:["#","--"],operators:["%","==",":","||"]},formatOptions:{onelineClauses:ace}},uce=Fae(["SELECT [ALL | DISTINCT | UNIQUE]"]),gce=Fae(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER [SIBLINGS] BY","OFFSET","FETCH {FIRST | NEXT}","FOR UPDATE [OF]","INSERT [INTO | ALL INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [THEN]","UPDATE SET","RETURNING"]),mce=Fae(["CREATE [GLOBAL TEMPORARY | PRIVATE TEMPORARY | SHARDED | DUPLICATED | IMMUTABLE BLOCKCHAIN | BLOCKCHAIN | IMMUTABLE] TABLE"]),pce=Fae(["CREATE [OR REPLACE] [NO FORCE | FORCE] [EDITIONING | EDITIONABLE | EDITIONABLE EDITIONING | NONEDITIONABLE] VIEW","CREATE MATERIALIZED VIEW","UPDATE [ONLY]","DELETE FROM [ONLY]","DROP TABLE","ALTER TABLE","ADD","DROP {COLUMN | UNUSED COLUMNS | COLUMNS CONTINUE}","MODIFY","RENAME TO","RENAME COLUMN","TRUNCATE TABLE","SET SCHEMA","BEGIN","CONNECT BY","DECLARE","EXCEPT","EXCEPTION","LOOP","START WITH"]),fce=Fae(["UNION [ALL]","EXCEPT","INTERSECT"]),_ce=Fae(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | OUTER} APPLY"]),bce=Fae(["ON {UPDATE | DELETE} [SET NULL]","ON COMMIT","{ROWS | RANGE} BETWEEN"]),vce={name:"plsql",tokenizerOptions:{reservedSelect:uce,reservedClauses:[...gce,...mce,...pce],reservedSetOperations:fce,reservedJoins:_ce,reservedPhrases:bce,supportsXor:!0,reservedKeywords:["ADD","AGENT","AGGREGATE","ALL","ALTER","AND","ANY","ARROW","AS","ASC","AT","ATTRIBUTE","AUTHID","AVG","BEGIN","BETWEEN","BLOCK","BODY","BOTH","BOUND","BULK","BY","BYTE","CALL","CALLING","CASCADE","CASE","CHARSET","CHARSETFORM","CHARSETID","CHECK","CLOSE","CLUSTER","CLUSTERS","COLAUTH","COLLECT","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPILED","COMPRESS","CONNECT","CONSTANT","CONSTRUCTOR","CONTEXT","CONVERT","COUNT","CRASH","CREATE","CURRENT","CURSOR","CUSTOMDATUM","DANGLING","DATA","DAY","DECLARE","DEFAULT","DEFINE","DELETE","DESC","DETERMINISTIC","DISTINCT","DROP","DURATION","ELEMENT","ELSE","ELSIF","EMPTY","END","ESCAPE","EXCEPT","EXCEPTION","EXCEPTIONS","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FINAL","FIXED","FOR","FORALL","FORCE","FORM","FROM","FUNCTION","GENERAL","GOTO","GRANT","GROUP","HASH","HAVING","HEAP","HIDDEN","HOUR","IDENTIFIED","IF","IMMEDIATE","IN","INCLUDING","INDEX","INDEXES","INDICATOR","INDICES","INFINITE","INSERT","INSTANTIABLE","INTERFACE","INTERSECT","INTERVAL","INTO","INVALIDATE","IS","ISOLATION","JAVA","LANGUAGE","LARGE","LEADING","LENGTH","LEVEL","LIBRARY","LIKE","LIKE2","LIKE4","LIKEC","LIMIT","LIMITED","LOCAL","LOCK","LOOP","MAP","MAX","MAXLEN","MEMBER","MERGE","MIN","MINUS","MINUTE","MOD","MODE","MODIFY","MONTH","MULTISET","NAME","NAN","NATIONAL","NATIVE","NEW","NOCOMPRESS","NOCOPY","NOT","NOWAIT","NULL","OBJECT","OCICOLL","OCIDATE","OCIDATETIME","OCIDURATION","OCIINTERVAL","OCILOBLOCATOR","OCINUMBER","OCIRAW","OCIREF","OCIREFCURSOR","OCIROWID","OCISTRING","OCITYPE","OF","ON","ONLY","OPAQUE","OPEN","OPERATOR","OPTION","OR","ORACLE","ORADATA","ORDER","OVERLAPS","ORGANIZATION","ORLANY","ORLVARY","OTHERS","OUT","OVERRIDING","PACKAGE","PARALLEL_ENABLE","PARAMETER","PARAMETERS","PARTITION","PASCAL","PIPE","PIPELINED","PRAGMA","PRIOR","PRIVATE","PROCEDURE","PUBLIC","RAISE","RANGE","READ","RECORD","REF","REFERENCE","REM","REMAINDER","RENAME","RESOURCE","RESULT","RETURN","RETURNING","REVERSE","REVOKE","ROLLBACK","ROW","SAMPLE","SAVE","SAVEPOINT","SB1","SB2","SB4","SECOND","SEGMENT","SELECT","SELF","SEPARATE","SEQUENCE","SERIALIZABLE","SET","SHARE","SHORT","SIZE","SIZE_T","SOME","SPARSE","SQL","SQLCODE","SQLDATA","SQLNAME","SQLSTATE","STANDARD","START","STATIC","STDDEV","STORED","STRING","STRUCT","STYLE","SUBMULTISET","SUBPARTITION","SUBSTITUTABLE","SUBTYPE","SUM","SYNONYM","TABAUTH","TABLE","TDO","THE","THEN","TIME","TIMEZONE_ABBR","TIMEZONE_HOUR","TIMEZONE_MINUTE","TIMEZONE_REGION","TO","TRAILING","TRANSAC","TRANSACTIONAL","TRUSTED","TYPE","UB1","UB2","UB4","UNDER","UNION","UNIQUE","UNSIGNED","UNTRUSTED","UPDATE","USE","USING","VALIST","VALUE","VALUES","VARIABLE","VARIANCE","VARRAY","VIEW","VIEWS","VOID","WHEN","WHERE","WHILE","WITH","WORK","WRAPPED","WRITE","YEAR","ZONE"],reservedDataTypes:["ARRAY","BFILE_BASE","BINARY","BLOB_BASE","CHAR VARYING","CHAR_BASE","CHAR","CHARACTER VARYING","CHARACTER","CLOB_BASE","DATE_BASE","DATE","DECIMAL","DOUBLE","FLOAT","INT","INTERVAL DAY","INTERVAL YEAR","LONG","NATIONAL CHAR VARYING","NATIONAL CHAR","NATIONAL CHARACTER VARYING","NATIONAL CHARACTER","NCHAR VARYING","NCHAR","NCHAR","NUMBER_BASE","NUMBER","NUMBERIC","NVARCHAR","PRECISION","RAW","TIMESTAMP","UROWID","VARCHAR","VARCHAR2"],reservedFunctionNames:["ABS","ACOS","ASIN","ATAN","ATAN2","BITAND","CEIL","COS","COSH","EXP","FLOOR","LN","LOG","MOD","NANVL","POWER","REMAINDER","ROUND","SIGN","SIN","SINH","SQRT","TAN","TANH","TRUNC","WIDTH_BUCKET","CHR","CONCAT","INITCAP","LOWER","LPAD","LTRIM","NLS_INITCAP","NLS_LOWER","NLSSORT","NLS_UPPER","REGEXP_REPLACE","REGEXP_SUBSTR","REPLACE","RPAD","RTRIM","SOUNDEX","SUBSTR","TRANSLATE","TREAT","TRIM","UPPER","NLS_CHARSET_DECL_LEN","NLS_CHARSET_ID","NLS_CHARSET_NAME","ASCII","INSTR","LENGTH","REGEXP_INSTR","ADD_MONTHS","CURRENT_DATE","CURRENT_TIMESTAMP","DBTIMEZONE","EXTRACT","FROM_TZ","LAST_DAY","LOCALTIMESTAMP","MONTHS_BETWEEN","NEW_TIME","NEXT_DAY","NUMTODSINTERVAL","NUMTOYMINTERVAL","ROUND","SESSIONTIMEZONE","SYS_EXTRACT_UTC","SYSDATE","SYSTIMESTAMP","TO_CHAR","TO_TIMESTAMP","TO_TIMESTAMP_TZ","TO_DSINTERVAL","TO_YMINTERVAL","TRUNC","TZ_OFFSET","GREATEST","LEAST","ASCIISTR","BIN_TO_NUM","CAST","CHARTOROWID","COMPOSE","CONVERT","DECOMPOSE","HEXTORAW","NUMTODSINTERVAL","NUMTOYMINTERVAL","RAWTOHEX","RAWTONHEX","ROWIDTOCHAR","ROWIDTONCHAR","SCN_TO_TIMESTAMP","TIMESTAMP_TO_SCN","TO_BINARY_DOUBLE","TO_BINARY_FLOAT","TO_CHAR","TO_CLOB","TO_DATE","TO_DSINTERVAL","TO_LOB","TO_MULTI_BYTE","TO_NCHAR","TO_NCLOB","TO_NUMBER","TO_DSINTERVAL","TO_SINGLE_BYTE","TO_TIMESTAMP","TO_TIMESTAMP_TZ","TO_YMINTERVAL","TO_YMINTERVAL","TRANSLATE","UNISTR","BFILENAME","EMPTY_BLOB,","EMPTY_CLOB","CARDINALITY","COLLECT","POWERMULTISET","POWERMULTISET_BY_CARDINALITY","SET","SYS_CONNECT_BY_PATH","CLUSTER_ID","CLUSTER_PROBABILITY","CLUSTER_SET","FEATURE_ID","FEATURE_SET","FEATURE_VALUE","PREDICTION","PREDICTION_COST","PREDICTION_DETAILS","PREDICTION_PROBABILITY","PREDICTION_SET","APPENDCHILDXML","DELETEXML","DEPTH","EXTRACT","EXISTSNODE","EXTRACTVALUE","INSERTCHILDXML","INSERTXMLBEFORE","PATH","SYS_DBURIGEN","SYS_XMLAGG","SYS_XMLGEN","UPDATEXML","XMLAGG","XMLCDATA","XMLCOLATTVAL","XMLCOMMENT","XMLCONCAT","XMLFOREST","XMLPARSE","XMLPI","XMLQUERY","XMLROOT","XMLSEQUENCE","XMLSERIALIZE","XMLTABLE","XMLTRANSFORM","DECODE","DUMP","ORA_HASH","VSIZE","COALESCE","LNNVL","NULLIF","NVL","NVL2","SYS_CONTEXT","SYS_GUID","SYS_TYPEID","UID","USER","USERENV","AVG","COLLECT","CORR","CORR_S","CORR_K","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","FIRST","GROUP_ID","GROUPING","GROUPING_ID","LAST","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANK","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","STATS_BINOMIAL_TEST","STATS_CROSSTAB","STATS_F_TEST","STATS_KS_TEST","STATS_MODE","STATS_MW_TEST","STATS_ONE_WAY_ANOVA","STATS_T_TEST_ONE","STATS_T_TEST_PAIRED","STATS_T_TEST_INDEP","STATS_T_TEST_INDEPU","STATS_WSR_TEST","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTILE","RATIO_TO_REPORT","ROW_NUMBER","DEREF","MAKE_REF","REF","REFTOHEX","VALUE","CV","ITERATION_NUMBER","PRESENTNNV","PRESENTV","PREVIOUS"],stringTypes:[{quote:"''-qq",prefixes:["N"]},{quote:"q''",prefixes:["N"]}],identTypes:['""-qq'],identChars:{rest:"$#"},variableTypes:[{regex:"&{1,2}[A-Za-z][A-Za-z0-9_$#]*"}],paramTypes:{numbered:[":"],named:[":"]},paramChars:{},operators:["**",":=","%","~=","^=",">>","<<","=>","@","||"],postProcess:function(e){let t=Xae;return e.map((e=>Qae.SET(e)&&Qae.BY(t)?Mae(xae({},e),{type:"RESERVED_KEYWORD"}):(Zae(e.type)&&(t=e),e)))}},formatOptions:{alwaysDenseOperators:["@"],onelineClauses:[...mce,...pce],tabularOnelineClauses:pce}},Sce=Fae(["SELECT [ALL | DISTINCT]"]),Cce=Fae(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","FOR {UPDATE | NO KEY UPDATE | SHARE | KEY SHARE} [OF]","INSERT INTO","VALUES","DEFAULT VALUES","SET","RETURNING"]),Ece=Fae(["CREATE [GLOBAL | LOCAL] [TEMPORARY | TEMP | UNLOGGED] TABLE [IF NOT EXISTS]"]),wce=Fae(["CREATE [OR REPLACE] [TEMP | TEMPORARY] [RECURSIVE] VIEW","CREATE [MATERIALIZED] VIEW [IF NOT EXISTS]","UPDATE [ONLY]","WHERE CURRENT OF","ON CONFLICT","DELETE FROM [ONLY]","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS] [ONLY]","ALTER TABLE ALL IN TABLESPACE","RENAME [COLUMN]","RENAME TO","ADD [COLUMN] [IF NOT EXISTS]","DROP [COLUMN] [IF EXISTS]","ALTER [COLUMN]","SET DATA TYPE","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","TRUNCATE [TABLE] [ONLY]","SET SCHEMA","AFTER","ABORT","ALTER AGGREGATE","ALTER COLLATION","ALTER CONVERSION","ALTER DATABASE","ALTER DEFAULT PRIVILEGES","ALTER DOMAIN","ALTER EVENT TRIGGER","ALTER EXTENSION","ALTER FOREIGN DATA WRAPPER","ALTER FOREIGN TABLE","ALTER FUNCTION","ALTER GROUP","ALTER INDEX","ALTER LANGUAGE","ALTER LARGE OBJECT","ALTER MATERIALIZED VIEW","ALTER OPERATOR","ALTER OPERATOR CLASS","ALTER OPERATOR FAMILY","ALTER POLICY","ALTER PROCEDURE","ALTER PUBLICATION","ALTER ROLE","ALTER ROUTINE","ALTER RULE","ALTER SCHEMA","ALTER SEQUENCE","ALTER SERVER","ALTER STATISTICS","ALTER SUBSCRIPTION","ALTER SYSTEM","ALTER TABLESPACE","ALTER TEXT SEARCH CONFIGURATION","ALTER TEXT SEARCH DICTIONARY","ALTER TEXT SEARCH PARSER","ALTER TEXT SEARCH TEMPLATE","ALTER TRIGGER","ALTER TYPE","ALTER USER","ALTER USER MAPPING","ALTER VIEW","ANALYZE","BEGIN","CALL","CHECKPOINT","CLOSE","CLUSTER","COMMIT","COMMIT PREPARED","COPY","CREATE ACCESS METHOD","CREATE AGGREGATE","CREATE CAST","CREATE COLLATION","CREATE CONVERSION","CREATE DATABASE","CREATE DOMAIN","CREATE EVENT TRIGGER","CREATE EXTENSION","CREATE FOREIGN DATA WRAPPER","CREATE FOREIGN TABLE","CREATE FUNCTION","CREATE GROUP","CREATE INDEX","CREATE LANGUAGE","CREATE OPERATOR","CREATE OPERATOR CLASS","CREATE OPERATOR FAMILY","CREATE POLICY","CREATE PROCEDURE","CREATE PUBLICATION","CREATE ROLE","CREATE RULE","CREATE SCHEMA","CREATE SEQUENCE","CREATE SERVER","CREATE STATISTICS","CREATE SUBSCRIPTION","CREATE TABLESPACE","CREATE TEXT SEARCH CONFIGURATION","CREATE TEXT SEARCH DICTIONARY","CREATE TEXT SEARCH PARSER","CREATE TEXT SEARCH TEMPLATE","CREATE TRANSFORM","CREATE TRIGGER","CREATE TYPE","CREATE USER","CREATE USER MAPPING","DEALLOCATE","DECLARE","DISCARD","DROP ACCESS METHOD","DROP AGGREGATE","DROP CAST","DROP COLLATION","DROP CONVERSION","DROP DATABASE","DROP DOMAIN","DROP EVENT TRIGGER","DROP EXTENSION","DROP FOREIGN DATA WRAPPER","DROP FOREIGN TABLE","DROP FUNCTION","DROP GROUP","DROP INDEX","DROP LANGUAGE","DROP MATERIALIZED VIEW","DROP OPERATOR","DROP OPERATOR CLASS","DROP OPERATOR FAMILY","DROP OWNED","DROP POLICY","DROP PROCEDURE","DROP PUBLICATION","DROP ROLE","DROP ROUTINE","DROP RULE","DROP SCHEMA","DROP SEQUENCE","DROP SERVER","DROP STATISTICS","DROP SUBSCRIPTION","DROP TABLESPACE","DROP TEXT SEARCH CONFIGURATION","DROP TEXT SEARCH DICTIONARY","DROP TEXT SEARCH PARSER","DROP TEXT SEARCH TEMPLATE","DROP TRANSFORM","DROP TRIGGER","DROP TYPE","DROP USER","DROP USER MAPPING","DROP VIEW","EXECUTE","EXPLAIN","FETCH","GRANT","IMPORT FOREIGN SCHEMA","LISTEN","LOAD","LOCK","MOVE","NOTIFY","PREPARE","PREPARE TRANSACTION","REASSIGN OWNED","REFRESH MATERIALIZED VIEW","REINDEX","RELEASE SAVEPOINT","RESET","REVOKE","ROLLBACK","ROLLBACK PREPARED","ROLLBACK TO SAVEPOINT","SAVEPOINT","SECURITY LABEL","SELECT INTO","SET CONSTRAINTS","SET ROLE","SET SESSION AUTHORIZATION","SET TRANSACTION","SHOW","START TRANSACTION","UNLISTEN","VACUUM"]),Tce=Fae(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),yce=Fae(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),Rce=Fae(["PRIMARY KEY","GENERATED {ALWAYS | BY DEFAULT} AS IDENTITY","ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN","[TIMESTAMP | TIME] {WITH | WITHOUT} TIME ZONE","IS [NOT] DISTINCT FROM"]),Lce={name:"postgresql",tokenizerOptions:{reservedSelect:Sce,reservedClauses:[...Cce,...Ece,...wce],reservedSetOperations:Tce,reservedJoins:yce,reservedPhrases:Rce,reservedKeywords:["ALL","ANALYSE","ANALYZE","AND","ANY","AS","ASC","ASYMMETRIC","AUTHORIZATION","BETWEEN","BINARY","BOTH","CASE","CAST","CHECK","COLLATE","COLLATION","COLUMN","CONCURRENTLY","CONSTRAINT","CREATE","CROSS","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DAY","DEFAULT","DEFERRABLE","DESC","DISTINCT","DO","ELSE","END","EXCEPT","EXISTS","FALSE","FETCH","FILTER","FOR","FOREIGN","FREEZE","FROM","FULL","GRANT","GROUP","HAVING","HOUR","ILIKE","IN","INITIALLY","INNER","INOUT","INTERSECT","INTO","IS","ISNULL","JOIN","LATERAL","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","MINUTE","MONTH","NATURAL","NOT","NOTNULL","NULL","NULLIF","OFFSET","ON","ONLY","OR","ORDER","OUT","OUTER","OVER","OVERLAPS","PLACING","PRIMARY","REFERENCES","RETURNING","RIGHT","ROW","SECOND","SELECT","SESSION_USER","SIMILAR","SOME","SYMMETRIC","TABLE","TABLESAMPLE","THEN","TO","TRAILING","TRUE","UNION","UNIQUE","USER","USING","VALUES","VARIADIC","VERBOSE","WHEN","WHERE","WINDOW","WITH","WITHIN","WITHOUT","YEAR"],reservedDataTypes:["ARRAY","BIGINT","BIT","BIT VARYING","BOOL","BOOLEAN","CHAR","CHARACTER","CHARACTER VARYING","DECIMAL","DEC","DOUBLE","ENUM","FLOAT","INT","INTEGER","INTERVAL","NCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIME","TIMESTAMP","TIMESTAMPTZ","VARCHAR","XML","ZONE"],reservedFunctionNames:["ABS","ACOS","ACOSD","ACOSH","ASIN","ASIND","ASINH","ATAN","ATAN2","ATAN2D","ATAND","ATANH","CBRT","CEIL","CEILING","COS","COSD","COSH","COT","COTD","DEGREES","DIV","EXP","FACTORIAL","FLOOR","GCD","LCM","LN","LOG","LOG10","MIN_SCALE","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SCALE","SETSEED","SIGN","SIN","SIND","SINH","SQRT","TAN","TAND","TANH","TRIM_SCALE","TRUNC","WIDTH_BUCKET","ABS","ASCII","BIT_LENGTH","BTRIM","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CONCAT","CONCAT_WS","FORMAT","INITCAP","LEFT","LENGTH","LOWER","LPAD","LTRIM","MD5","NORMALIZE","OCTET_LENGTH","OVERLAY","PARSE_IDENT","PG_CLIENT_ENCODING","POSITION","QUOTE_IDENT","QUOTE_LITERAL","QUOTE_NULLABLE","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","REPEAT","REPLACE","REVERSE","RIGHT","RPAD","RTRIM","SPLIT_PART","SPRINTF","STARTS_WITH","STRING_AGG","STRING_TO_ARRAY","STRING_TO_TABLE","STRPOS","SUBSTR","SUBSTRING","TO_ASCII","TO_HEX","TRANSLATE","TRIM","UNISTR","UPPER","BIT_COUNT","BIT_LENGTH","BTRIM","CONVERT","CONVERT_FROM","CONVERT_TO","DECODE","ENCODE","GET_BIT","GET_BYTE","LENGTH","LTRIM","MD5","OCTET_LENGTH","OVERLAY","POSITION","RTRIM","SET_BIT","SET_BYTE","SHA224","SHA256","SHA384","SHA512","STRING_AGG","SUBSTR","SUBSTRING","TRIM","BIT_COUNT","BIT_LENGTH","GET_BIT","LENGTH","OCTET_LENGTH","OVERLAY","POSITION","SET_BIT","SUBSTRING","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","TO_CHAR","TO_DATE","TO_NUMBER","TO_TIMESTAMP","CLOCK_TIMESTAMP","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_BIN","DATE_PART","DATE_TRUNC","EXTRACT","ISFINITE","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","LOCALTIME","LOCALTIMESTAMP","MAKE_DATE","MAKE_INTERVAL","MAKE_TIME","MAKE_TIMESTAMP","MAKE_TIMESTAMPTZ","NOW","PG_SLEEP","PG_SLEEP_FOR","PG_SLEEP_UNTIL","STATEMENT_TIMESTAMP","TIMEOFDAY","TO_TIMESTAMP","TRANSACTION_TIMESTAMP","ENUM_FIRST","ENUM_LAST","ENUM_RANGE","AREA","BOUND_BOX","BOX","CENTER","CIRCLE","DIAGONAL","DIAMETER","HEIGHT","ISCLOSED","ISOPEN","LENGTH","LINE","LSEG","NPOINTS","PATH","PCLOSE","POINT","POLYGON","POPEN","RADIUS","SLOPE","WIDTH","ABBREV","BROADCAST","FAMILY","HOST","HOSTMASK","INET_MERGE","INET_SAME_FAMILY","MACADDR8_SET7BIT","MASKLEN","NETMASK","NETWORK","SET_MASKLEN","TRUNC","ARRAY_TO_TSVECTOR","GET_CURRENT_TS_CONFIG","JSONB_TO_TSVECTOR","JSON_TO_TSVECTOR","LENGTH","NUMNODE","PHRASETO_TSQUERY","PLAINTO_TSQUERY","QUERYTREE","SETWEIGHT","STRIP","TO_TSQUERY","TO_TSVECTOR","TSQUERY_PHRASE","TSVECTOR_TO_ARRAY","TS_DEBUG","TS_DELETE","TS_FILTER","TS_HEADLINE","TS_LEXIZE","TS_PARSE","TS_RANK","TS_RANK_CD","TS_REWRITE","TS_STAT","TS_TOKEN_TYPE","WEBSEARCH_TO_TSQUERY","UUID","CURSOR_TO_XML","CURSOR_TO_XMLSCHEMA","DATABASE_TO_XML","DATABASE_TO_XMLSCHEMA","DATABASE_TO_XML_AND_XMLSCHEMA","NEXTVAL","QUERY_TO_XML","QUERY_TO_XMLSCHEMA","QUERY_TO_XML_AND_XMLSCHEMA","SCHEMA_TO_XML","SCHEMA_TO_XMLSCHEMA","SCHEMA_TO_XML_AND_XMLSCHEMA","STRING","TABLE_TO_XML","TABLE_TO_XMLSCHEMA","TABLE_TO_XML_AND_XMLSCHEMA","XMLAGG","XMLCOMMENT","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","XML_IS_WELL_FORMED","XML_IS_WELL_FORMED_CONTENT","XML_IS_WELL_FORMED_DOCUMENT","XPATH","XPATH_EXISTS","ARRAY_TO_JSON","JSONB_AGG","JSONB_ARRAY_ELEMENTS","JSONB_ARRAY_ELEMENTS_TEXT","JSONB_ARRAY_LENGTH","JSONB_BUILD_ARRAY","JSONB_BUILD_OBJECT","JSONB_EACH","JSONB_EACH_TEXT","JSONB_EXTRACT_PATH","JSONB_EXTRACT_PATH_TEXT","JSONB_INSERT","JSONB_OBJECT","JSONB_OBJECT_AGG","JSONB_OBJECT_KEYS","JSONB_PATH_EXISTS","JSONB_PATH_EXISTS_TZ","JSONB_PATH_MATCH","JSONB_PATH_MATCH_TZ","JSONB_PATH_QUERY","JSONB_PATH_QUERY_ARRAY","JSONB_PATH_QUERY_ARRAY_TZ","JSONB_PATH_QUERY_FIRST","JSONB_PATH_QUERY_FIRST_TZ","JSONB_PATH_QUERY_TZ","JSONB_POPULATE_RECORD","JSONB_POPULATE_RECORDSET","JSONB_PRETTY","JSONB_SET","JSONB_SET_LAX","JSONB_STRIP_NULLS","JSONB_TO_RECORD","JSONB_TO_RECORDSET","JSONB_TYPEOF","JSON_AGG","JSON_ARRAY_ELEMENTS","JSON_ARRAY_ELEMENTS_TEXT","JSON_ARRAY_LENGTH","JSON_BUILD_ARRAY","JSON_BUILD_OBJECT","JSON_EACH","JSON_EACH_TEXT","JSON_EXTRACT_PATH","JSON_EXTRACT_PATH_TEXT","JSON_OBJECT","JSON_OBJECT_AGG","JSON_OBJECT_KEYS","JSON_POPULATE_RECORD","JSON_POPULATE_RECORDSET","JSON_STRIP_NULLS","JSON_TO_RECORD","JSON_TO_RECORDSET","JSON_TYPEOF","ROW_TO_JSON","TO_JSON","TO_JSONB","TO_TIMESTAMP","CURRVAL","LASTVAL","NEXTVAL","SETVAL","COALESCE","GREATEST","LEAST","NULLIF","ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_DIMS","ARRAY_FILL","ARRAY_LENGTH","ARRAY_LOWER","ARRAY_NDIMS","ARRAY_POSITION","ARRAY_POSITIONS","ARRAY_PREPEND","ARRAY_REMOVE","ARRAY_REPLACE","ARRAY_TO_STRING","ARRAY_UPPER","CARDINALITY","STRING_TO_ARRAY","TRIM_ARRAY","UNNEST","ISEMPTY","LOWER","LOWER_INC","LOWER_INF","MULTIRANGE","RANGE_MERGE","UPPER","UPPER_INC","UPPER_INF","ARRAY_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COALESCE","CORR","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","EVERY","GROUPING","JSONB_AGG","JSONB_OBJECT_AGG","JSON_AGG","JSON_OBJECT_AGG","MAX","MIN","MODE","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANGE_AGG","RANGE_INTERSECT_AGG","RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","TO_JSON","TO_JSONB","VARIANCE","VAR_POP","VAR_SAMP","XMLAGG","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER","GENERATE_SERIES","GENERATE_SUBSCRIPTS","ACLDEFAULT","ACLEXPLODE","COL_DESCRIPTION","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_QUERY","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","FORMAT_TYPE","HAS_ANY_COLUMN_PRIVILEGE","HAS_COLUMN_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE","HAS_FUNCTION_PRIVILEGE","HAS_LANGUAGE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_SEQUENCE_PRIVILEGE","HAS_SERVER_PRIVILEGE","HAS_TABLESPACE_PRIVILEGE","HAS_TABLE_PRIVILEGE","HAS_TYPE_PRIVILEGE","INET_CLIENT_ADDR","INET_CLIENT_PORT","INET_SERVER_ADDR","INET_SERVER_PORT","MAKEACLITEM","OBJ_DESCRIPTION","PG_BACKEND_PID","PG_BLOCKING_PIDS","PG_COLLATION_IS_VISIBLE","PG_CONF_LOAD_TIME","PG_CONTROL_CHECKPOINT","PG_CONTROL_INIT","PG_CONTROL_SYSTEM","PG_CONVERSION_IS_VISIBLE","PG_CURRENT_LOGFILE","PG_CURRENT_SNAPSHOT","PG_CURRENT_XACT_ID","PG_CURRENT_XACT_ID_IF_ASSIGNED","PG_DESCRIBE_OBJECT","PG_FUNCTION_IS_VISIBLE","PG_GET_CATALOG_FOREIGN_KEYS","PG_GET_CONSTRAINTDEF","PG_GET_EXPR","PG_GET_FUNCTIONDEF","PG_GET_FUNCTION_ARGUMENTS","PG_GET_FUNCTION_IDENTITY_ARGUMENTS","PG_GET_FUNCTION_RESULT","PG_GET_INDEXDEF","PG_GET_KEYWORDS","PG_GET_OBJECT_ADDRESS","PG_GET_OWNED_SEQUENCE","PG_GET_RULEDEF","PG_GET_SERIAL_SEQUENCE","PG_GET_STATISTICSOBJDEF","PG_GET_TRIGGERDEF","PG_GET_USERBYID","PG_GET_VIEWDEF","PG_HAS_ROLE","PG_IDENTIFY_OBJECT","PG_IDENTIFY_OBJECT_AS_ADDRESS","PG_INDEXAM_HAS_PROPERTY","PG_INDEX_COLUMN_HAS_PROPERTY","PG_INDEX_HAS_PROPERTY","PG_IS_OTHER_TEMP_SCHEMA","PG_JIT_AVAILABLE","PG_LAST_COMMITTED_XACT","PG_LISTENING_CHANNELS","PG_MY_TEMP_SCHEMA","PG_NOTIFICATION_QUEUE_USAGE","PG_OPCLASS_IS_VISIBLE","PG_OPERATOR_IS_VISIBLE","PG_OPFAMILY_IS_VISIBLE","PG_OPTIONS_TO_TABLE","PG_POSTMASTER_START_TIME","PG_SAFE_SNAPSHOT_BLOCKING_PIDS","PG_SNAPSHOT_XIP","PG_SNAPSHOT_XMAX","PG_SNAPSHOT_XMIN","PG_STATISTICS_OBJ_IS_VISIBLE","PG_TABLESPACE_DATABASES","PG_TABLESPACE_LOCATION","PG_TABLE_IS_VISIBLE","PG_TRIGGER_DEPTH","PG_TS_CONFIG_IS_VISIBLE","PG_TS_DICT_IS_VISIBLE","PG_TS_PARSER_IS_VISIBLE","PG_TS_TEMPLATE_IS_VISIBLE","PG_TYPEOF","PG_TYPE_IS_VISIBLE","PG_VISIBLE_IN_SNAPSHOT","PG_XACT_COMMIT_TIMESTAMP","PG_XACT_COMMIT_TIMESTAMP_ORIGIN","PG_XACT_STATUS","PQSERVERVERSION","ROW_SECURITY_ACTIVE","SESSION_USER","SHOBJ_DESCRIPTION","TO_REGCLASS","TO_REGCOLLATION","TO_REGNAMESPACE","TO_REGOPER","TO_REGOPERATOR","TO_REGPROC","TO_REGPROCEDURE","TO_REGROLE","TO_REGTYPE","TXID_CURRENT","TXID_CURRENT_IF_ASSIGNED","TXID_CURRENT_SNAPSHOT","TXID_SNAPSHOT_XIP","TXID_SNAPSHOT_XMAX","TXID_SNAPSHOT_XMIN","TXID_STATUS","TXID_VISIBLE_IN_SNAPSHOT","USER","VERSION","BRIN_DESUMMARIZE_RANGE","BRIN_SUMMARIZE_NEW_VALUES","BRIN_SUMMARIZE_RANGE","CONVERT_FROM","CURRENT_SETTING","GIN_CLEAN_PENDING_LIST","PG_ADVISORY_LOCK","PG_ADVISORY_LOCK_SHARED","PG_ADVISORY_UNLOCK","PG_ADVISORY_UNLOCK_ALL","PG_ADVISORY_UNLOCK_SHARED","PG_ADVISORY_XACT_LOCK","PG_ADVISORY_XACT_LOCK_SHARED","PG_BACKUP_START_TIME","PG_CANCEL_BACKEND","PG_COLLATION_ACTUAL_VERSION","PG_COLUMN_COMPRESSION","PG_COLUMN_SIZE","PG_COPY_LOGICAL_REPLICATION_SLOT","PG_COPY_PHYSICAL_REPLICATION_SLOT","PG_CREATE_LOGICAL_REPLICATION_SLOT","PG_CREATE_PHYSICAL_REPLICATION_SLOT","PG_CREATE_RESTORE_POINT","PG_CURRENT_WAL_FLUSH_LSN","PG_CURRENT_WAL_INSERT_LSN","PG_CURRENT_WAL_LSN","PG_DATABASE_SIZE","PG_DROP_REPLICATION_SLOT","PG_EXPORT_SNAPSHOT","PG_FILENODE_RELATION","PG_GET_WAL_REPLAY_PAUSE_STATE","PG_IMPORT_SYSTEM_COLLATIONS","PG_INDEXES_SIZE","PG_IS_IN_BACKUP","PG_IS_IN_RECOVERY","PG_IS_WAL_REPLAY_PAUSED","PG_LAST_WAL_RECEIVE_LSN","PG_LAST_WAL_REPLAY_LSN","PG_LAST_XACT_REPLAY_TIMESTAMP","PG_LOGICAL_EMIT_MESSAGE","PG_LOGICAL_SLOT_GET_BINARY_CHANGES","PG_LOGICAL_SLOT_GET_CHANGES","PG_LOGICAL_SLOT_PEEK_BINARY_CHANGES","PG_LOGICAL_SLOT_PEEK_CHANGES","PG_LOG_BACKEND_MEMORY_CONTEXTS","PG_LS_ARCHIVE_STATUSDIR","PG_LS_DIR","PG_LS_LOGDIR","PG_LS_TMPDIR","PG_LS_WALDIR","PG_PARTITION_ANCESTORS","PG_PARTITION_ROOT","PG_PARTITION_TREE","PG_PROMOTE","PG_READ_BINARY_FILE","PG_READ_FILE","PG_RELATION_FILENODE","PG_RELATION_FILEPATH","PG_RELATION_SIZE","PG_RELOAD_CONF","PG_REPLICATION_ORIGIN_ADVANCE","PG_REPLICATION_ORIGIN_CREATE","PG_REPLICATION_ORIGIN_DROP","PG_REPLICATION_ORIGIN_OID","PG_REPLICATION_ORIGIN_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_IS_SETUP","PG_REPLICATION_ORIGIN_SESSION_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_RESET","PG_REPLICATION_ORIGIN_SESSION_SETUP","PG_REPLICATION_ORIGIN_XACT_RESET","PG_REPLICATION_ORIGIN_XACT_SETUP","PG_REPLICATION_SLOT_ADVANCE","PG_ROTATE_LOGFILE","PG_SIZE_BYTES","PG_SIZE_PRETTY","PG_START_BACKUP","PG_STAT_FILE","PG_STOP_BACKUP","PG_SWITCH_WAL","PG_TABLESPACE_SIZE","PG_TABLE_SIZE","PG_TERMINATE_BACKEND","PG_TOTAL_RELATION_SIZE","PG_TRY_ADVISORY_LOCK","PG_TRY_ADVISORY_LOCK_SHARED","PG_TRY_ADVISORY_XACT_LOCK","PG_TRY_ADVISORY_XACT_LOCK_SHARED","PG_WALFILE_NAME","PG_WALFILE_NAME_OFFSET","PG_WAL_LSN_DIFF","PG_WAL_REPLAY_PAUSE","PG_WAL_REPLAY_RESUME","SET_CONFIG","SUPPRESS_REDUNDANT_UPDATES_TRIGGER","TSVECTOR_UPDATE_TRIGGER","TSVECTOR_UPDATE_TRIGGER_COLUMN","PG_EVENT_TRIGGER_DDL_COMMANDS","PG_EVENT_TRIGGER_DROPPED_OBJECTS","PG_EVENT_TRIGGER_TABLE_REWRITE_OID","PG_EVENT_TRIGGER_TABLE_REWRITE_REASON","PG_GET_OBJECT_ADDRESS","PG_MCV_LIST_ITEMS","CAST"],nestedBlockComments:!0,extraParens:["[]"],stringTypes:["$$",{quote:"''-qq",prefixes:["U&"]},{quote:"''-qq-bs",prefixes:["E"],requirePrefix:!0},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:[{quote:'""-qq',prefixes:["U&"]}],identChars:{rest:"$"},paramTypes:{numbered:["$"]},operators:["%","^","|/","||/","@",":=","&","|","#","~","<<",">>","~>~","~<~","~>=~","~<=~","@-@","@@","##","<->","&&","&<","&>","<<|","&<|","|>>","|&>","<^","^>","?#","?-","?|","?-|","?||","@>","<@","~=","?","@?","?&","->","->>","#>","#>>","#-","=>",">>=","<<=","~~","~~*","!~~","!~~*","~","~*","!~","!~*","-|-","||","@@@","!!","^@","<%","%>","<<%","%>>","<<->","<->>","<<<->","<->>>","::",":"]},formatOptions:{alwaysDenseOperators:["::",":"],onelineClauses:[...Ece,...wce],tabularOnelineClauses:wce}},Ice=Fae(["SELECT [ALL | DISTINCT]"]),Ace=Fae(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET"]),Nce=Fae(["CREATE [TEMPORARY | TEMP | LOCAL TEMPORARY | LOCAL TEMP] TABLE [IF NOT EXISTS]"]),kce=Fae(["CREATE [OR REPLACE | MATERIALIZED] VIEW","UPDATE","DELETE [FROM]","DROP TABLE [IF EXISTS]","ALTER TABLE","ALTER TABLE APPEND","ADD [COLUMN]","DROP [COLUMN]","RENAME TO","RENAME COLUMN","ALTER COLUMN","TYPE","ENCODE","TRUNCATE [TABLE]","ABORT","ALTER DATABASE","ALTER DATASHARE","ALTER DEFAULT PRIVILEGES","ALTER GROUP","ALTER MATERIALIZED VIEW","ALTER PROCEDURE","ALTER SCHEMA","ALTER USER","ANALYSE","ANALYZE","ANALYSE COMPRESSION","ANALYZE COMPRESSION","BEGIN","CALL","CANCEL","CLOSE","COMMIT","COPY","CREATE DATABASE","CREATE DATASHARE","CREATE EXTERNAL FUNCTION","CREATE EXTERNAL SCHEMA","CREATE EXTERNAL TABLE","CREATE FUNCTION","CREATE GROUP","CREATE LIBRARY","CREATE MODEL","CREATE PROCEDURE","CREATE SCHEMA","CREATE USER","DEALLOCATE","DECLARE","DESC DATASHARE","DROP DATABASE","DROP DATASHARE","DROP FUNCTION","DROP GROUP","DROP LIBRARY","DROP MODEL","DROP MATERIALIZED VIEW","DROP PROCEDURE","DROP SCHEMA","DROP USER","DROP VIEW","DROP","EXECUTE","EXPLAIN","FETCH","GRANT","LOCK","PREPARE","REFRESH MATERIALIZED VIEW","RESET","REVOKE","ROLLBACK","SELECT INTO","SET SESSION AUTHORIZATION","SET SESSION CHARACTERISTICS","SHOW","SHOW EXTERNAL TABLE","SHOW MODEL","SHOW DATASHARES","SHOW PROCEDURE","SHOW TABLE","SHOW VIEW","START TRANSACTION","UNLOAD","VACUUM"]),Dce=Fae(["UNION [ALL]","EXCEPT","INTERSECT","MINUS"]),Oce=Fae(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),xce=Fae(["NULL AS","DATA CATALOG","HIVE METASTORE","{ROWS | RANGE} BETWEEN"]),Mce={name:"redshift",tokenizerOptions:{reservedSelect:Ice,reservedClauses:[...Ace,...Nce,...kce],reservedSetOperations:Dce,reservedJoins:Oce,reservedPhrases:xce,reservedKeywords:["AES128","AES256","ALL","ALLOWOVERWRITE","ANY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BOTH","CHECK","COLUMN","CONSTRAINT","CREATE","CROSS","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DESC","DISABLE","DISTINCT","DO","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GROUP","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTO","IS","ISNULL","LANGUAGE","LEADING","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","MINUS","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RECOVER","REFERENCES","REJECTLOG","RESORT","RESPECT","RESTORE","SIMILAR","SNAPSHOT","SOME","SYSTEM","TABLE","TAG","TDES","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","UNIQUE","USING","VERBOSE","WALLET","WITHOUT","ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS","COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE","FORMAT","CSV","DELIMITER","FIXEDWIDTH","SHAPEFILE","AVRO","JSON","PARQUET","ORC","ACCESS_KEY_ID","CREDENTIALS","ENCRYPTED","IAM_ROLE","MASTER_SYMMETRIC_KEY","SECRET_ACCESS_KEY","SESSION_TOKEN","BZIP2","GZIP","LZOP","ZSTD","MANIFEST","READRATIO","REGION","SSH","RAW","AZ64","BYTEDICT","DELTA","DELTA32K","LZO","MOSTLY8","MOSTLY16","MOSTLY32","RUNLENGTH","TEXT255","TEXT32K","CATALOG_ROLE","SECRET_ARN","EXTERNAL","AUTO","EVEN","KEY","PREDICATE","COMPRESSION"],reservedDataTypes:["ARRAY","BIGINT","BPCHAR","CHAR","CHARACTER VARYING","CHARACTER","DECIMAL","INT","INT2","INT4","INT8","INTEGER","NCHAR","NUMERIC","NVARCHAR","SMALLINT","TEXT","VARBYTE","VARCHAR"],reservedFunctionNames:["ANY_VALUE","APPROXIMATE PERCENTILE_DISC","AVG","COUNT","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP","array","array_concat","array_flatten","get_array_length","split_to_array","subarray","BIT_AND","BIT_OR","BOOL_AND","BOOL_OR","COALESCE","DECODE","GREATEST","LEAST","NVL","NVL2","NULLIF","ADD_MONTHS","AT TIME ZONE","CONVERT_TIMEZONE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_CMP","DATE_CMP_TIMESTAMP","DATE_CMP_TIMESTAMPTZ","DATE_PART_YEAR","DATEADD","DATEDIFF","DATE_PART","DATE_TRUNC","EXTRACT","GETDATE","INTERVAL_CMP","LAST_DAY","MONTHS_BETWEEN","NEXT_DAY","SYSDATE","TIMEOFDAY","TIMESTAMP_CMP","TIMESTAMP_CMP_DATE","TIMESTAMP_CMP_TIMESTAMPTZ","TIMESTAMPTZ_CMP","TIMESTAMPTZ_CMP_DATE","TIMESTAMPTZ_CMP_TIMESTAMP","TIMEZONE","TO_TIMESTAMP","TRUNC","AddBBox","DropBBox","GeometryType","ST_AddPoint","ST_Angle","ST_Area","ST_AsBinary","ST_AsEWKB","ST_AsEWKT","ST_AsGeoJSON","ST_AsText","ST_Azimuth","ST_Boundary","ST_Collect","ST_Contains","ST_ContainsProperly","ST_ConvexHull","ST_CoveredBy","ST_Covers","ST_Crosses","ST_Dimension","ST_Disjoint","ST_Distance","ST_DistanceSphere","ST_DWithin","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_Force2D","ST_Force3D","ST_Force3DM","ST_Force3DZ","ST_Force4D","ST_GeometryN","ST_GeometryType","ST_GeomFromEWKB","ST_GeomFromEWKT","ST_GeomFromText","ST_GeomFromWKB","ST_InteriorRingN","ST_Intersects","ST_IsPolygonCCW","ST_IsPolygonCW","ST_IsClosed","ST_IsCollection","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_Length","ST_LengthSphere","ST_Length2D","ST_LineFromMultiPoint","ST_LineInterpolatePoint","ST_M","ST_MakeEnvelope","ST_MakeLine","ST_MakePoint","ST_MakePolygon","ST_MemSize","ST_MMax","ST_MMin","ST_Multi","ST_NDims","ST_NPoints","ST_NRings","ST_NumGeometries","ST_NumInteriorRings","ST_NumPoints","ST_Perimeter","ST_Perimeter2D","ST_Point","ST_PointN","ST_Points","ST_Polygon","ST_RemovePoint","ST_Reverse","ST_SetPoint","ST_SetSRID","ST_Simplify","ST_SRID","ST_StartPoint","ST_Touches","ST_Within","ST_X","ST_XMax","ST_XMin","ST_Y","ST_YMax","ST_YMin","ST_Z","ST_ZMax","ST_ZMin","SupportsBBox","CHECKSUM","FUNC_SHA1","FNV_HASH","MD5","SHA","SHA1","SHA2","HLL","HLL_CREATE_SKETCH","HLL_CARDINALITY","HLL_COMBINE","IS_VALID_JSON","IS_VALID_JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_EXTRACT_ARRAY_ELEMENT_TEXT","JSON_EXTRACT_PATH_TEXT","JSON_PARSE","JSON_SERIALIZE","ABS","ACOS","ASIN","ATAN","ATAN2","CBRT","CEILING","CEIL","COS","COT","DEGREES","DEXP","DLOG1","DLOG10","EXP","FLOOR","LN","LOG","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SIN","SIGN","SQRT","TAN","TO_HEX","TRUNC","EXPLAIN_MODEL","ASCII","BPCHARCMP","BTRIM","BTTEXT_PATTERN_CMP","CHAR_LENGTH","CHARACTER_LENGTH","CHARINDEX","CHR","COLLATE","CONCAT","CRC32","DIFFERENCE","INITCAP","LEFT","RIGHT","LEN","LENGTH","LOWER","LPAD","RPAD","LTRIM","OCTETINDEX","OCTET_LENGTH","POSITION","QUOTE_IDENT","QUOTE_LITERAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","REPLICATE","REVERSE","RTRIM","SOUNDEX","SPLIT_PART","STRPOS","STRTOL","SUBSTRING","TEXTLEN","TRANSLATE","TRIM","UPPER","decimal_precision","decimal_scale","is_array","is_bigint","is_boolean","is_char","is_decimal","is_float","is_integer","is_object","is_scalar","is_smallint","is_varchar","json_typeof","AVG","COUNT","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAST_VALUE","LAG","LEAD","LISTAGG","MAX","MEDIAN","MIN","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP","CAST","CONVERT","TO_CHAR","TO_DATE","TO_NUMBER","TEXT_TO_INT_ALT","TEXT_TO_NUMERIC_ALT","CHANGE_QUERY_PRIORITY","CHANGE_SESSION_PRIORITY","CHANGE_USER_PRIORITY","CURRENT_SETTING","PG_CANCEL_BACKEND","PG_TERMINATE_BACKEND","REBOOT_CLUSTER","SET_CONFIG","CURRENT_AWS_ACCOUNT","CURRENT_DATABASE","CURRENT_NAMESPACE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","CURRENT_USER_ID","HAS_ASSUMEROLE_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_TABLE_PRIVILEGE","PG_BACKEND_PID","PG_GET_COLS","PG_GET_GRANTEE_BY_IAM_ROLE","PG_GET_IAM_ROLE_BY_USER","PG_GET_LATE_BINDING_VIEW_COLS","PG_LAST_COPY_COUNT","PG_LAST_COPY_ID","PG_LAST_UNLOAD_ID","PG_LAST_QUERY_ID","PG_LAST_UNLOAD_COUNT","SESSION_USER","SLICE_NUM","USER","VERSION"],stringTypes:["''-qq"],identTypes:['""-qq'],identChars:{first:"#"},paramTypes:{numbered:["$"]},operators:["^","%","@","|/","||/","&","|","~","<<",">>","||","::"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:[...Nce,...kce],tabularOnelineClauses:kce}},Pce=Fae(["SELECT [ALL | DISTINCT]"]),Fce=Fae(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","SORT BY","CLUSTER BY","DISTRIBUTE BY","LIMIT","INSERT [INTO | OVERWRITE] [TABLE]","VALUES","INSERT OVERWRITE [LOCAL] DIRECTORY","LOAD DATA [LOCAL] INPATH","[OVERWRITE] INTO TABLE"]),Bce=Fae(["CREATE [EXTERNAL] TABLE [IF NOT EXISTS]"]),Hce=Fae(["CREATE [OR REPLACE] [GLOBAL TEMPORARY | TEMPORARY] VIEW [IF NOT EXISTS]","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD COLUMNS","DROP {COLUMN | COLUMNS}","RENAME TO","RENAME COLUMN","ALTER COLUMN","TRUNCATE TABLE","LATERAL VIEW","ALTER DATABASE","ALTER VIEW","CREATE DATABASE","CREATE FUNCTION","DROP DATABASE","DROP FUNCTION","DROP VIEW","REPAIR TABLE","USE DATABASE","TABLESAMPLE","PIVOT","TRANSFORM","EXPLAIN","ADD FILE","ADD JAR","ANALYZE TABLE","CACHE TABLE","CLEAR CACHE","DESCRIBE DATABASE","DESCRIBE FUNCTION","DESCRIBE QUERY","DESCRIBE TABLE","LIST FILE","LIST JAR","REFRESH","REFRESH TABLE","REFRESH FUNCTION","RESET","SHOW COLUMNS","SHOW CREATE TABLE","SHOW DATABASES","SHOW FUNCTIONS","SHOW PARTITIONS","SHOW TABLE EXTENDED","SHOW TABLES","SHOW TBLPROPERTIES","SHOW VIEWS","UNCACHE TABLE"]),Wce=Fae(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),Uce=Fae(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","[LEFT] {ANTI | SEMI} JOIN","NATURAL [LEFT] {ANTI | SEMI} JOIN"]),Vce=Fae(["ON DELETE","ON UPDATE","CURRENT ROW","{ROWS | RANGE} BETWEEN"]),Gce={name:"spark",tokenizerOptions:{reservedSelect:Pce,reservedClauses:[...Fce,...Bce,...Hce],reservedSetOperations:Wce,reservedJoins:Uce,reservedPhrases:Vce,supportsXor:!0,reservedKeywords:["ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANTI","ANY","ARCHIVE","AS","ASC","AT","AUTHORIZATION","BETWEEN","BOTH","BUCKET","BUCKETS","BY","CACHE","CASCADE","CAST","CHANGE","CHECK","CLEAR","CLUSTER","CLUSTERED","CODEGEN","COLLATE","COLLECTION","COLUMN","COLUMNS","COMMENT","COMMIT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONSTRAINT","COST","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATA","DATABASE","DATABASES","DAY","DBPROPERTIES","DEFINED","DELETE","DELIMITED","DESC","DESCRIBE","DFS","DIRECTORIES","DIRECTORY","DISTINCT","DISTRIBUTE","DIV","DROP","ESCAPE","ESCAPED","EXCEPT","EXCHANGE","EXISTS","EXPORT","EXTENDED","EXTERNAL","EXTRACT","FALSE","FETCH","FIELDS","FILTER","FILEFORMAT","FIRST","FIRST_VALUE","FOLLOWING","FOR","FOREIGN","FORMAT","FORMATTED","FULL","FUNCTION","FUNCTIONS","GLOBAL","GRANT","GROUP","GROUPING","HOUR","IF","IGNORE","IMPORT","IN","INDEX","INDEXES","INNER","INPATH","INPUTFORMAT","INTERSECT","INTO","IS","ITEMS","KEYS","LAST","LAST_VALUE","LATERAL","LAZY","LEADING","LEFT","LIKE","LINES","LIST","LOCAL","LOCATION","LOCK","LOCKS","LOGICAL","MACRO","MATCHED","MERGE","MINUTE","MONTH","MSCK","NAMESPACE","NAMESPACES","NATURAL","NO","NOT","NULL","NULLS","OF","ONLY","OPTION","OPTIONS","OR","ORDER","OUT","OUTER","OUTPUTFORMAT","OVER","OVERLAPS","OVERLAY","OVERWRITE","OWNER","PARTITION","PARTITIONED","PARTITIONS","PERCENT","PLACING","POSITION","PRECEDING","PRIMARY","PRINCIPALS","PROPERTIES","PURGE","QUERY","RANGE","RECORDREADER","RECORDWRITER","RECOVER","REDUCE","REFERENCES","RENAME","REPAIR","REPLACE","RESPECT","RESTRICT","REVOKE","RIGHT","RLIKE","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","SCHEMA","SECOND","SELECT","SEMI","SEPARATED","SERDE","SERDEPROPERTIES","SESSION_USER","SETS","SHOW","SKEWED","SOME","SORT","SORTED","START","STATISTICS","STORED","STRATIFY","SUBSTR","SUBSTRING","TABLE","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","THEN","TO","TOUCH","TRAILING","TRANSACTION","TRANSACTIONS","TRIM","TRUE","TRUNCATE","UNARCHIVE","UNBOUNDED","UNCACHE","UNIQUE","UNKNOWN","UNLOCK","UNSET","USE","USER","USING","VIEW","WINDOW","YEAR","ANALYSE","ARRAY_ZIP","COALESCE","CONTAINS","CONVERT","DAYS","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DECODE","DEFAULT","DISTINCTROW","ENCODE","EXPLODE","EXPLODE_OUTER","FIXED","GREATEST","GROUP_CONCAT","HOURS","HOUR_MINUTE","HOUR_SECOND","IFNULL","LEAST","LEVEL","MINUTE_SECOND","NULLIF","OFFSET","ON","OPTIMIZE","REGEXP","SEPARATOR","SIZE","TYPE","TYPES","UNSIGNED","VARIABLES","YEAR_MONTH"],reservedDataTypes:["ARRAY","BIGINT","BINARY","BOOLEAN","BYTE","CHAR","DATE","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","LONG","MAP","NUMERIC","REAL","SHORT","SMALLINT","STRING","STRUCT","TIMESTAMP_LTZ","TIMESTAMP_NTZ","TIMESTAMP","TINYINT","VARCHAR"],reservedFunctionNames:["APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COUNT","COUNT","COUNT_IF","COUNT_MIN_SKETCH","COVAR_POP","COVAR_SAMP","EVERY","FIRST","FIRST_VALUE","GROUPING","GROUPING_ID","KURTOSIS","LAST","LAST_VALUE","MAX","MAX_BY","MEAN","MIN","MIN_BY","PERCENTILE","PERCENTILE","PERCENTILE_APPROX","SKEWNESS","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE","CUME_DIST","DENSE_RANK","LAG","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER","ARRAY","ARRAY_CONTAINS","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_UNION","ARRAYS_OVERLAP","ARRAYS_ZIP","FLATTEN","SEQUENCE","SHUFFLE","SLICE","SORT_ARRAY","ELEMENT_AT","ELEMENT_AT","MAP_CONCAT","MAP_ENTRIES","MAP_FROM_ARRAYS","MAP_FROM_ENTRIES","MAP_KEYS","MAP_VALUES","STR_TO_MAP","ADD_MONTHS","CURRENT_DATE","CURRENT_DATE","CURRENT_TIMESTAMP","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","DATE_ADD","DATE_FORMAT","DATE_FROM_UNIX_DATE","DATE_PART","DATE_SUB","DATE_TRUNC","DATEDIFF","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MAKE_DATE","MAKE_DT_INTERVAL","MAKE_INTERVAL","MAKE_TIMESTAMP","MAKE_YM_INTERVAL","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","NOW","QUARTER","SECOND","SESSION_WINDOW","TIMESTAMP_MICROS","TIMESTAMP_MILLIS","TIMESTAMP_SECONDS","TO_DATE","TO_TIMESTAMP","TO_UNIX_TIMESTAMP","TO_UTC_TIMESTAMP","TRUNC","UNIX_DATE","UNIX_MICROS","UNIX_MILLIS","UNIX_SECONDS","UNIX_TIMESTAMP","WEEKDAY","WEEKOFYEAR","WINDOW","YEAR","FROM_JSON","GET_JSON_OBJECT","JSON_ARRAY_LENGTH","JSON_OBJECT_KEYS","JSON_TUPLE","SCHEMA_OF_JSON","TO_JSON","ABS","ACOS","ACOSH","AGGREGATE","ARRAY_SORT","ASCII","ASIN","ASINH","ASSERT_TRUE","ATAN","ATAN2","ATANH","BASE64","BIN","BIT_COUNT","BIT_GET","BIT_LENGTH","BROUND","BTRIM","CARDINALITY","CBRT","CEIL","CEILING","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONV","COS","COSH","COT","CRC32","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_USER","DEGREES","ELT","EXP","EXPM1","FACTORIAL","FIND_IN_SET","FLOOR","FORALL","FORMAT_NUMBER","FORMAT_STRING","FROM_CSV","GETBIT","HASH","HEX","HYPOT","INITCAP","INLINE","INLINE_OUTER","INPUT_FILE_BLOCK_LENGTH","INPUT_FILE_BLOCK_START","INPUT_FILE_NAME","INSTR","ISNAN","ISNOTNULL","ISNULL","JAVA_METHOD","LCASE","LEFT","LENGTH","LEVENSHTEIN","LN","LOCATE","LOG","LOG10","LOG1P","LOG2","LOWER","LPAD","LTRIM","MAP_FILTER","MAP_ZIP_WITH","MD5","MOD","MONOTONICALLY_INCREASING_ID","NAMED_STRUCT","NANVL","NEGATIVE","NVL","NVL2","OCTET_LENGTH","OVERLAY","PARSE_URL","PI","PMOD","POSEXPLODE","POSEXPLODE_OUTER","POSITION","POSITIVE","POW","POWER","PRINTF","RADIANS","RAISE_ERROR","RAND","RANDN","RANDOM","REFLECT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_REPLACE","REPEAT","REPLACE","REVERSE","RIGHT","RINT","ROUND","RPAD","RTRIM","SCHEMA_OF_CSV","SENTENCES","SHA","SHA1","SHA2","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIGNUM","SIN","SINH","SOUNDEX","SPACE","SPARK_PARTITION_ID","SPLIT","SQRT","STACK","SUBSTR","SUBSTRING","SUBSTRING_INDEX","TAN","TANH","TO_CSV","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRY_ADD","TRY_DIVIDE","TYPEOF","UCASE","UNBASE64","UNHEX","UPPER","UUID","VERSION","WIDTH_BUCKET","XPATH","XPATH_BOOLEAN","XPATH_DOUBLE","XPATH_FLOAT","XPATH_INT","XPATH_LONG","XPATH_NUMBER","XPATH_SHORT","XPATH_STRING","XXHASH64","ZIP_WITH","CAST","COALESCE","NULLIF"],extraParens:["[]"],stringTypes:["''-bs",'""-bs',{quote:"''-raw",prefixes:["R","X"],requirePrefix:!0},{quote:'""-raw',prefixes:["R","X"],requirePrefix:!0}],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||","->"],postProcess:function(e){return e.map(((t,i)=>{const n=e[i-1]||Xae,o=e[i+1]||Xae;return Qae.WINDOW(t)&&"OPEN_PAREN"===o.type?Mae(xae({},t),{type:"RESERVED_FUNCTION_NAME"}):"ITEMS"!==t.text||"RESERVED_KEYWORD"!==t.type||"COLLECTION"===n.text&&"TERMINATED"===o.text?t:Mae(xae({},t),{type:"IDENTIFIER",text:t.raw})}))}},formatOptions:{onelineClauses:[...Bce,...Hce],tabularOnelineClauses:Hce}},zce=Fae(["SELECT [ALL | DISTINCT]"]),Kce=Fae(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [OR ABORT | OR FAIL | OR IGNORE | OR REPLACE | OR ROLLBACK] INTO","REPLACE INTO","VALUES","SET"]),Yce=Fae(["CREATE [TEMPORARY | TEMP] TABLE [IF NOT EXISTS]"]),qce=Fae(["CREATE [TEMPORARY | TEMP] VIEW [IF NOT EXISTS]","UPDATE [OR ABORT | OR FAIL | OR IGNORE | OR REPLACE | OR ROLLBACK]","ON CONFLICT","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","DROP [COLUMN]","RENAME [COLUMN]","RENAME TO","SET SCHEMA"]),$ce=Fae(["UNION [ALL]","EXCEPT","INTERSECT"]),jce=Fae(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),Xce=Fae(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN"]),Jce={name:"sqlite",tokenizerOptions:{reservedSelect:zce,reservedClauses:[...Kce,...Yce,...qce],reservedSetOperations:$ce,reservedJoins:jce,reservedPhrases:Xce,reservedKeywords:["ABORT","ACTION","ADD","AFTER","ALL","ALTER","AND","ARE","ALWAYS","ANALYZE","AS","ASC","ATTACH","AUTOINCREMENT","BEFORE","BEGIN","BETWEEN","BY","CASCADE","CASE","CAST","CHECK","COLLATE","COLUMN","COMMIT","CONFLICT","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATABASE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DETACH","DISTINCT","DO","DROP","EACH","ELSE","END","ESCAPE","EXCEPT","EXCLUDE","EXCLUSIVE","EXISTS","EXPLAIN","FAIL","FILTER","FIRST","FOLLOWING","FOR","FOREIGN","FROM","FULL","GENERATED","GLOB","GROUP","GROUPS","HAVING","IF","IGNORE","IMMEDIATE","IN","INDEX","INDEXED","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","KEY","LAST","LEFT","LIKE","LIMIT","MATCH","MATERIALIZED","NATURAL","NO","NOT","NOTHING","NOTNULL","NULL","NULLS","OF","OFFSET","ON","ONLY","OPEN","OR","ORDER","OTHERS","OUTER","OVER","PARTITION","PLAN","PRAGMA","PRECEDING","PRIMARY","QUERY","RAISE","RANGE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELEASE","RENAME","REPLACE","RESTRICT","RETURNING","RIGHT","ROLLBACK","ROW","ROWS","SAVEPOINT","SELECT","SET","TABLE","TEMP","TEMPORARY","THEN","TIES","TO","TRANSACTION","TRIGGER","UNBOUNDED","UNION","UNIQUE","UPDATE","USING","VACUUM","VALUES","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT"],reservedDataTypes:["ANY","ARRAY","BLOB","CHARACTER","DECIMAL","INT","INTEGER","NATIVE CHARACTER","NCHAR","NUMERIC","NVARCHAR","REAL","TEXT","VARCHAR","VARYING CHARACTER"],reservedFunctionNames:["ABS","CHANGES","CHAR","COALESCE","FORMAT","GLOB","HEX","IFNULL","IIF","INSTR","LAST_INSERT_ROWID","LENGTH","LIKE","LIKELIHOOD","LIKELY","LOAD_EXTENSION","LOWER","LTRIM","NULLIF","PRINTF","QUOTE","RANDOM","RANDOMBLOB","REPLACE","ROUND","RTRIM","SIGN","SOUNDEX","SQLITE_COMPILEOPTION_GET","SQLITE_COMPILEOPTION_USED","SQLITE_OFFSET","SQLITE_SOURCE_ID","SQLITE_VERSION","SUBSTR","SUBSTRING","TOTAL_CHANGES","TRIM","TYPEOF","UNICODE","UNLIKELY","UPPER","ZEROBLOB","AVG","COUNT","GROUP_CONCAT","MAX","MIN","SUM","TOTAL","DATE","TIME","DATETIME","JULIANDAY","UNIXEPOCH","STRFTIME","row_number","rank","dense_rank","percent_rank","cume_dist","ntile","lag","lead","first_value","last_value","nth_value","ACOS","ACOSH","ASIN","ASINH","ATAN","ATAN2","ATANH","CEIL","CEILING","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG","LOG10","LOG2","MOD","PI","POW","POWER","RADIANS","SIN","SINH","SQRT","TAN","TANH","TRUNC","JSON","JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_ARRAY_LENGTH","JSON_EXTRACT","JSON_INSERT","JSON_OBJECT","JSON_PATCH","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_TYPE","JSON_TYPE","JSON_VALID","JSON_QUOTE","JSON_GROUP_ARRAY","JSON_GROUP_OBJECT","JSON_EACH","JSON_TREE","CAST"],stringTypes:["''-qq",{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``","[]"],paramTypes:{positional:!0,numbered:["?"],named:[":","@","$"]},operators:["%","~","&","|","<<",">>","==","->","->>","||"]},formatOptions:{onelineClauses:[...Yce,...qce],tabularOnelineClauses:qce}},Qce=Fae(["SELECT [ALL | DISTINCT]"]),Zce=Fae(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET"]),ede=Fae(["CREATE [GLOBAL TEMPORARY | LOCAL TEMPORARY] TABLE"]),tde=Fae(["CREATE [RECURSIVE] VIEW","UPDATE","WHERE CURRENT OF","DELETE FROM","DROP TABLE","ALTER TABLE","ADD COLUMN","DROP [COLUMN]","RENAME COLUMN","RENAME TO","ALTER [COLUMN]","{SET | DROP} DEFAULT","ADD SCOPE","DROP SCOPE {CASCADE | RESTRICT}","RESTART WITH","TRUNCATE TABLE","SET SCHEMA"]),ide=Fae(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),nde=Fae(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),ode=Fae(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),sde={name:"sql",tokenizerOptions:{reservedSelect:Qce,reservedClauses:[...Zce,...ede,...tde],reservedSetOperations:ide,reservedJoins:nde,reservedPhrases:ode,reservedKeywords:["ALL","ALLOCATE","ALTER","ANY","ARE","AS","ASC","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","BEGIN","BETWEEN","BOTH","BY","CALL","CALLED","CASCADED","CAST","CHECK","CLOSE","COALESCE","COLLATE","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CORRESPONDING","CREATE","CROSS","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DEALLOCATE","DAY","DECLARE","DEFAULT","DELETE","DEREF","DESC","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DROP","DYNAMIC","EACH","ELEMENT","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXTERNAL","FALSE","FETCH","FILTER","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GET","GLOBAL","GRANT","GROUP","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INTERSECT","INTO","IS","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LOCAL","MATCH","MEMBER","MERGE","METHOD","MINUTE","MODIFIES","MODULE","MONTH","NATURAL","NEW","NO","NONE","NOT","NULL","NULLIF","OF","OLD","ON","ONLY","OPEN","ORDER","OUT","OUTER","OVER","OVERLAPS","PARAMETER","PARTITION","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SOME","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","START","STATIC","SUBMULTISET","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATION","TREAT","TRIGGER","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","USER","USING","VALUE","VALUES","WHENEVER","WINDOW","WITHIN","WITHOUT","YEAR"],reservedDataTypes:["ARRAY","BIGINT","BINARY LARGE OBJECT","BINARY VARYING","BINARY","BLOB","BOOLEAN","CHAR LARGE OBJECT","CHAR VARYING","CHAR","CHARACTER LARGE OBJECT","CHARACTER VARYING","CHARACTER","CLOB","DATE","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","MULTISET","NATIONAL CHAR VARYING","NATIONAL CHAR","NATIONAL CHARACTER LARGE OBJECT","NATIONAL CHARACTER VARYING","NATIONAL CHARACTER","NCHAR LARGE OBJECT","NCHAR VARYING","NCHAR","NCLOB","NUMERIC","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR"],reservedFunctionNames:["GROUPING","RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","ROW_NUMBER","POSITION","OCCURRENCES_REGEX","POSITION_REGEX","EXTRACT","CHAR_LENGTH","CHARACTER_LENGTH","OCTET_LENGTH","CARDINALITY","ABS","MOD","LN","EXP","POWER","SQRT","FLOOR","CEIL","CEILING","WIDTH_BUCKET","SUBSTRING","SUBSTRING_REGEX","UPPER","LOWER","CONVERT","TRANSLATE","TRANSLATE_REGEX","TRIM","OVERLAY","NORMALIZE","SPECIFICTYPE","CURRENT_DATE","CURRENT_TIME","LOCALTIME","CURRENT_TIMESTAMP","LOCALTIMESTAMP","COUNT","AVG","MAX","MIN","SUM","STDDEV_POP","STDDEV_SAMP","VAR_SAMP","VAR_POP","COLLECT","FUSION","INTERSECTION","COVAR_POP","COVAR_SAMP","CORR","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","PERCENTILE_CONT","PERCENTILE_DISC","CAST","COALESCE","NULLIF","ROUND","SIN","COS","TAN","ASIN","ACOS","ATAN"],stringTypes:[{quote:"''-qq-bs",prefixes:["N","U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``"],paramTypes:{positional:!0},operators:["||"]},formatOptions:{onelineClauses:[...ede,...tde],tabularOnelineClauses:tde}},rde=Fae(["SELECT [ALL | DISTINCT]"]),ade=Fae(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET","MATCH_RECOGNIZE","MEASURES","ONE ROW PER MATCH","ALL ROWS PER MATCH","AFTER MATCH","PATTERN","SUBSET","DEFINE"]),lde=Fae(["CREATE TABLE [IF NOT EXISTS]"]),cde=Fae(["CREATE [OR REPLACE] [MATERIALIZED] VIEW","UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","ADD COLUMN [IF NOT EXISTS]","DROP COLUMN [IF EXISTS]","RENAME COLUMN [IF EXISTS]","RENAME TO","SET AUTHORIZATION [USER | ROLE]","SET PROPERTIES","EXECUTE","TRUNCATE TABLE","ALTER SCHEMA","ALTER MATERIALIZED VIEW","ALTER VIEW","CREATE SCHEMA","CREATE ROLE","DROP SCHEMA","DROP MATERIALIZED VIEW","DROP VIEW","DROP ROLE","EXPLAIN","ANALYZE","EXPLAIN ANALYZE","EXPLAIN ANALYZE VERBOSE","USE","DESCRIBE INPUT","DESCRIBE OUTPUT","REFRESH MATERIALIZED VIEW","RESET SESSION","SET SESSION","SET PATH","SET TIME ZONE","SHOW GRANTS","SHOW CREATE TABLE","SHOW CREATE SCHEMA","SHOW CREATE VIEW","SHOW CREATE MATERIALIZED VIEW","SHOW TABLES","SHOW SCHEMAS","SHOW CATALOGS","SHOW COLUMNS","SHOW STATS FOR","SHOW ROLES","SHOW CURRENT ROLES","SHOW ROLE GRANTS","SHOW FUNCTIONS","SHOW SESSION"]),dde=Fae(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),hde=Fae(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),ude=Fae(["{ROWS | RANGE | GROUPS} BETWEEN","IS [NOT] DISTINCT FROM"]),gde={name:"trino",tokenizerOptions:{reservedSelect:rde,reservedClauses:[...ade,...lde,...cde],reservedSetOperations:dde,reservedJoins:hde,reservedPhrases:ude,reservedKeywords:["ABSENT","ADD","ADMIN","AFTER","ALL","ALTER","ANALYZE","AND","ANY","AS","ASC","AT","AUTHORIZATION","BERNOULLI","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CATALOGS","COLUMN","COLUMNS","COMMENT","COMMIT","COMMITTED","CONDITIONAL","CONSTRAINT","COPARTITION","CREATE","CROSS","CUBE","CURRENT","CURRENT_PATH","CURRENT_ROLE","DATA","DEALLOCATE","DEFAULT","DEFINE","DEFINER","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DISTINCT","DISTRIBUTED","DOUBLE","DROP","ELSE","EMPTY","ENCODING","END","ERROR","ESCAPE","EXCEPT","EXCLUDING","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FINAL","FIRST","FOLLOWING","FOR","FROM","FULL","FUNCTIONS","GRANT","GRANTED","GRANTS","GRAPHVIZ","GROUP","GROUPING","GROUPS","HAVING","IGNORE","IN","INCLUDING","INITIAL","INNER","INPUT","INSERT","INTERSECT","INTERVAL","INTO","INVOKER","IO","IS","ISOLATION","JOIN","JSON","JSON_ARRAY","JSON_OBJECT","KEEP","KEY","KEYS","LAST","LATERAL","LEADING","LEFT","LEVEL","LIKE","LIMIT","LOCAL","LOGICAL","MATCH","MATCHED","MATCHES","MATCH_RECOGNIZE","MATERIALIZED","MEASURES","NATURAL","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NOT","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OR","ORDER","ORDINALITY","OUTER","OUTPUT","OVER","OVERFLOW","PARTITION","PARTITIONS","PASSING","PAST","PATH","PATTERN","PER","PERMUTE","PRECEDING","PRECISION","PREPARE","PRIVILEGES","PROPERTIES","PRUNE","QUOTES","RANGE","READ","RECURSIVE","REFRESH","RENAME","REPEATABLE","RESET","RESPECT","RESTRICT","RETURNING","REVOKE","RIGHT","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","RUNNING","SCALAR","SCHEMA","SCHEMAS","SECURITY","SEEK","SELECT","SERIALIZABLE","SESSION","SET","SETS","SHOW","SKIP","SOME","START","STATS","STRING","SUBSET","SYSTEM","TABLE","TABLES","TABLESAMPLE","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRUE","TYPE","UESCAPE","UNBOUNDED","UNCOMMITTED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UNNEST","UPDATE","USE","USER","USING","UTF16","UTF32","UTF8","VALIDATE","VALUE","VALUES","VERBOSE","VIEW","WHEN","WHERE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","ZONE"],reservedDataTypes:["BIGINT","INT","INTEGER","SMALLINT","TINYINT","BOOLEAN","DATE","DECIMAL","REAL","DOUBLE","HYPERLOGLOG","QDIGEST","TDIGEST","P4HYPERLOGLOG","INTERVAL","TIMESTAMP","TIME","VARBINARY","VARCHAR","CHAR","ROW","ARRAY","MAP","JSON","JSON2016","IPADDRESS","GEOMETRY","UUID","SETDIGEST","JONIREGEXP","RE2JREGEXP","LIKEPATTERN","COLOR","CODEPOINTS","FUNCTION","JSONPATH"],reservedFunctionNames:["ABS","ACOS","ALL_MATCH","ANY_MATCH","APPROX_DISTINCT","APPROX_MOST_FREQUENT","APPROX_PERCENTILE","APPROX_SET","ARBITRARY","ARRAYS_OVERLAP","ARRAY_AGG","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_SORT","ARRAY_UNION","ASIN","ATAN","ATAN2","AT_TIMEZONE","AVG","BAR","BETA_CDF","BING_TILE","BING_TILES_AROUND","BING_TILE_AT","BING_TILE_COORDINATES","BING_TILE_POLYGON","BING_TILE_QUADKEY","BING_TILE_ZOOM_LEVEL","BITWISE_AND","BITWISE_AND_AGG","BITWISE_LEFT_SHIFT","BITWISE_NOT","BITWISE_OR","BITWISE_OR_AGG","BITWISE_RIGHT_SHIFT","BITWISE_RIGHT_SHIFT_ARITHMETIC","BITWISE_XOR","BIT_COUNT","BOOL_AND","BOOL_OR","CARDINALITY","CAST","CBRT","CEIL","CEILING","CHAR2HEXINT","CHECKSUM","CHR","CLASSIFY","COALESCE","CODEPOINT","COLOR","COMBINATIONS","CONCAT","CONCAT_WS","CONTAINS","CONTAINS_SEQUENCE","CONVEX_HULL_AGG","CORR","COS","COSH","COSINE_SIMILARITY","COUNT","COUNT_IF","COVAR_POP","COVAR_SAMP","CRC32","CUME_DIST","CURRENT_CATALOG","CURRENT_DATE","CURRENT_GROUPS","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","DATE","DATE_ADD","DATE_DIFF","DATE_FORMAT","DATE_PARSE","DATE_TRUNC","DAY","DAY_OF_MONTH","DAY_OF_WEEK","DAY_OF_YEAR","DEGREES","DENSE_RANK","DOW","DOY","E","ELEMENT_AT","EMPTY_APPROX_SET","EVALUATE_CLASSIFIER_PREDICTIONS","EVERY","EXP","EXTRACT","FEATURES","FILTER","FIRST_VALUE","FLATTEN","FLOOR","FORMAT","FORMAT_DATETIME","FORMAT_NUMBER","FROM_BASE","FROM_BASE32","FROM_BASE64","FROM_BASE64URL","FROM_BIG_ENDIAN_32","FROM_BIG_ENDIAN_64","FROM_ENCODED_POLYLINE","FROM_GEOJSON_GEOMETRY","FROM_HEX","FROM_IEEE754_32","FROM_IEEE754_64","FROM_ISO8601_DATE","FROM_ISO8601_TIMESTAMP","FROM_ISO8601_TIMESTAMP_NANOS","FROM_UNIXTIME","FROM_UNIXTIME_NANOS","FROM_UTF8","GEOMETRIC_MEAN","GEOMETRY_FROM_HADOOP_SHAPE","GEOMETRY_INVALID_REASON","GEOMETRY_NEAREST_POINTS","GEOMETRY_TO_BING_TILES","GEOMETRY_UNION","GEOMETRY_UNION_AGG","GREATEST","GREAT_CIRCLE_DISTANCE","HAMMING_DISTANCE","HASH_COUNTS","HISTOGRAM","HMAC_MD5","HMAC_SHA1","HMAC_SHA256","HMAC_SHA512","HOUR","HUMAN_READABLE_SECONDS","IF","INDEX","INFINITY","INTERSECTION_CARDINALITY","INVERSE_BETA_CDF","INVERSE_NORMAL_CDF","IS_FINITE","IS_INFINITE","IS_JSON_SCALAR","IS_NAN","JACCARD_INDEX","JSON_ARRAY_CONTAINS","JSON_ARRAY_GET","JSON_ARRAY_LENGTH","JSON_EXISTS","JSON_EXTRACT","JSON_EXTRACT_SCALAR","JSON_FORMAT","JSON_PARSE","JSON_QUERY","JSON_SIZE","JSON_VALUE","KURTOSIS","LAG","LAST_DAY_OF_MONTH","LAST_VALUE","LEAD","LEARN_CLASSIFIER","LEARN_LIBSVM_CLASSIFIER","LEARN_LIBSVM_REGRESSOR","LEARN_REGRESSOR","LEAST","LENGTH","LEVENSHTEIN_DISTANCE","LINE_INTERPOLATE_POINT","LINE_INTERPOLATE_POINTS","LINE_LOCATE_POINT","LISTAGG","LN","LOCALTIME","LOCALTIMESTAMP","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","LUHN_CHECK","MAKE_SET_DIGEST","MAP","MAP_AGG","MAP_CONCAT","MAP_ENTRIES","MAP_FILTER","MAP_FROM_ENTRIES","MAP_KEYS","MAP_UNION","MAP_VALUES","MAP_ZIP_WITH","MAX","MAX_BY","MD5","MERGE","MERGE_SET_DIGEST","MILLISECOND","MIN","MINUTE","MIN_BY","MOD","MONTH","MULTIMAP_AGG","MULTIMAP_FROM_ENTRIES","MURMUR3","NAN","NGRAMS","NONE_MATCH","NORMALIZE","NORMAL_CDF","NOW","NTH_VALUE","NTILE","NULLIF","NUMERIC_HISTOGRAM","OBJECTID","OBJECTID_TIMESTAMP","PARSE_DATA_SIZE","PARSE_DATETIME","PARSE_DURATION","PERCENT_RANK","PI","POSITION","POW","POWER","QDIGEST_AGG","QUARTER","RADIANS","RAND","RANDOM","RANK","REDUCE","REDUCE_AGG","REGEXP_COUNT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGRESS","REGR_INTERCEPT","REGR_SLOPE","RENDER","REPEAT","REPLACE","REVERSE","RGB","ROUND","ROW_NUMBER","RPAD","RTRIM","SECOND","SEQUENCE","SHA1","SHA256","SHA512","SHUFFLE","SIGN","SIMPLIFY_GEOMETRY","SIN","SKEWNESS","SLICE","SOUNDEX","SPATIAL_PARTITIONING","SPATIAL_PARTITIONS","SPLIT","SPLIT_PART","SPLIT_TO_MAP","SPLIT_TO_MULTIMAP","SPOOKY_HASH_V2_32","SPOOKY_HASH_V2_64","SQRT","STARTS_WITH","STDDEV","STDDEV_POP","STDDEV_SAMP","STRPOS","ST_AREA","ST_ASBINARY","ST_ASTEXT","ST_BOUNDARY","ST_BUFFER","ST_CENTROID","ST_CONTAINS","ST_CONVEXHULL","ST_COORDDIM","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_ENDPOINT","ST_ENVELOPE","ST_ENVELOPEASPTS","ST_EQUALS","ST_EXTERIORRING","ST_GEOMETRIES","ST_GEOMETRYFROMTEXT","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMBINARY","ST_INTERIORRINGN","ST_INTERIORRINGS","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISRING","ST_ISSIMPLE","ST_ISVALID","ST_LENGTH","ST_LINEFROMTEXT","ST_LINESTRING","ST_MULTIPOINT","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINT","ST_POINTN","ST_POINTS","ST_POLYGON","ST_RELATE","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_TOUCHES","ST_UNION","ST_WITHIN","ST_X","ST_XMAX","ST_XMIN","ST_Y","ST_YMAX","ST_YMIN","SUBSTR","SUBSTRING","SUM","TAN","TANH","TDIGEST_AGG","TIMESTAMP_OBJECTID","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO_BASE","TO_BASE32","TO_BASE64","TO_BASE64URL","TO_BIG_ENDIAN_32","TO_BIG_ENDIAN_64","TO_CHAR","TO_DATE","TO_ENCODED_POLYLINE","TO_GEOJSON_GEOMETRY","TO_GEOMETRY","TO_HEX","TO_IEEE754_32","TO_IEEE754_64","TO_ISO8601","TO_MILLISECONDS","TO_SPHERICAL_GEOGRAPHY","TO_TIMESTAMP","TO_UNIXTIME","TO_UTF8","TRANSFORM","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRIM_ARRAY","TRUNCATE","TRY","TRY_CAST","TYPEOF","UPPER","URL_DECODE","URL_ENCODE","URL_EXTRACT_FRAGMENT","URL_EXTRACT_HOST","URL_EXTRACT_PARAMETER","URL_EXTRACT_PATH","URL_EXTRACT_PORT","URL_EXTRACT_PROTOCOL","URL_EXTRACT_QUERY","UUID","VALUES_AT_QUANTILES","VALUE_AT_QUANTILE","VARIANCE","VAR_POP","VAR_SAMP","VERSION","WEEK","WEEK_OF_YEAR","WIDTH_BUCKET","WILSON_INTERVAL_LOWER","WILSON_INTERVAL_UPPER","WITH_TIMEZONE","WORD_STEM","XXHASH64","YEAR","YEAR_OF_WEEK","YOW","ZIP","ZIP_WITH","CLASSIFIER","FIRST","LAST","MATCH_NUMBER","NEXT","PERMUTE","PREV"],extraParens:["[]","{}"],stringTypes:[{quote:"''-qq",prefixes:["U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq'],paramTypes:{positional:!0},operators:["%","->","=>",":","||","|","^","$"]},formatOptions:{onelineClauses:[...lde,...cde],tabularOnelineClauses:cde}},mde=Fae(["SELECT [ALL | DISTINCT]"]),pde=Fae(["WITH","INTO","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","OFFSET","FETCH {FIRST | NEXT}","FOR {BROWSE | XML | JSON}","OPTION","INSERT [INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [BY TARGET | BY SOURCE] [THEN]","UPDATE SET","CREATE [OR ALTER] {PROC | PROCEDURE}"]),fde=Fae(["CREATE TABLE"]),_de=Fae(["CREATE [OR ALTER] [MATERIALIZED] VIEW","UPDATE","WHERE CURRENT OF","DELETE [FROM]","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD","DROP COLUMN [IF EXISTS]","ALTER COLUMN","TRUNCATE TABLE","ADD SENSITIVITY CLASSIFICATION","ADD SIGNATURE","AGGREGATE","ANSI_DEFAULTS","ANSI_NULLS","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_PADDING","ANSI_WARNINGS","APPLICATION ROLE","ARITHABORT","ARITHIGNORE","ASSEMBLY","ASYMMETRIC KEY","AUTHORIZATION","AVAILABILITY GROUP","BACKUP","BACKUP CERTIFICATE","BACKUP MASTER KEY","BACKUP SERVICE MASTER KEY","BEGIN CONVERSATION TIMER","BEGIN DIALOG CONVERSATION","BROKER PRIORITY","BULK INSERT","CERTIFICATE","CLOSE MASTER KEY","CLOSE SYMMETRIC KEY","COLLATE","COLUMN ENCRYPTION KEY","COLUMN MASTER KEY","COLUMNSTORE INDEX","CONCAT_NULL_YIELDS_NULL","CONTEXT_INFO","CONTRACT","CREDENTIAL","CRYPTOGRAPHIC PROVIDER","CURSOR_CLOSE_ON_COMMIT","DATABASE","DATABASE AUDIT SPECIFICATION","DATABASE ENCRYPTION KEY","DATABASE HADR","DATABASE SCOPED CONFIGURATION","DATABASE SCOPED CREDENTIAL","DATABASE SET","DATEFIRST","DATEFORMAT","DEADLOCK_PRIORITY","DENY","DENY XML","DISABLE TRIGGER","ENABLE TRIGGER","END CONVERSATION","ENDPOINT","EVENT NOTIFICATION","EVENT SESSION","EXECUTE AS","EXTERNAL DATA SOURCE","EXTERNAL FILE FORMAT","EXTERNAL LANGUAGE","EXTERNAL LIBRARY","EXTERNAL RESOURCE POOL","EXTERNAL TABLE","FIPS_FLAGGER","FMTONLY","FORCEPLAN","FULLTEXT CATALOG","FULLTEXT INDEX","FULLTEXT STOPLIST","FUNCTION","GET CONVERSATION GROUP","GET_TRANSMISSION_STATUS","GRANT","GRANT XML","IDENTITY_INSERT","IMPLICIT_TRANSACTIONS","INDEX","LANGUAGE","LOCK_TIMEOUT","LOGIN","MASTER KEY","MESSAGE TYPE","MOVE CONVERSATION","NOCOUNT","NOEXEC","NUMERIC_ROUNDABORT","OFFSETS","OPEN MASTER KEY","OPEN SYMMETRIC KEY","PARSEONLY","PARTITION FUNCTION","PARTITION SCHEME","PROCEDURE","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUOTED_IDENTIFIER","RECEIVE","REMOTE SERVICE BINDING","REMOTE_PROC_TRANSACTIONS","RESOURCE GOVERNOR","RESOURCE POOL","RESTORE","RESTORE FILELISTONLY","RESTORE HEADERONLY","RESTORE LABELONLY","RESTORE MASTER KEY","RESTORE REWINDONLY","RESTORE SERVICE MASTER KEY","RESTORE VERIFYONLY","REVERT","REVOKE","REVOKE XML","ROLE","ROUTE","ROWCOUNT","RULE","SCHEMA","SEARCH PROPERTY LIST","SECURITY POLICY","SELECTIVE XML INDEX","SEND","SENSITIVITY CLASSIFICATION","SEQUENCE","SERVER AUDIT","SERVER AUDIT SPECIFICATION","SERVER CONFIGURATION","SERVER ROLE","SERVICE","SERVICE MASTER KEY","SETUSER","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SIGNATURE","SPATIAL INDEX","STATISTICS","STATISTICS IO","STATISTICS PROFILE","STATISTICS TIME","STATISTICS XML","SYMMETRIC KEY","SYNONYM","TABLE","TABLE IDENTITY","TEXTSIZE","TRANSACTION ISOLATION LEVEL","TRIGGER","TYPE","UPDATE STATISTICS","USER","WORKLOAD GROUP","XACT_ABORT","XML INDEX","XML SCHEMA COLLECTION"]),bde=Fae(["UNION [ALL]","EXCEPT","INTERSECT"]),vde=Fae(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","{CROSS | OUTER} APPLY"]),Sde=Fae(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),Cde={name:"transactsql",tokenizerOptions:{reservedSelect:mde,reservedClauses:[...pde,...fde,..._de],reservedSetOperations:bde,reservedJoins:vde,reservedPhrases:Sde,reservedKeywords:["ADD","ALL","ALTER","AND","ANY","AS","ASC","AUTHORIZATION","BACKUP","BEGIN","BETWEEN","BREAK","BROWSE","BULK","BY","CASCADE","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLUMN","COMMIT","COMPUTE","CONSTRAINT","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DBCC","DEALLOCATE","DECLARE","DEFAULT","DELETE","DENY","DESC","DISK","DISTINCT","DISTRIBUTED","DROP","DUMP","ERRLVL","ESCAPE","EXEC","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FILE","FILLFACTOR","FOR","FOREIGN","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GOTO","GRANT","GROUP","HAVING","HOLDLOCK","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IN","INDEX","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KILL","LEFT","LIKE","LINENO","LOAD","MERGE","NOCHECK","NONCLUSTERED","NOT","NULL","NULLIF","OF","OFF","OFFSETS","ON","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OUTER","OVER","PERCENT","PIVOT","PLAN","PRIMARY","PRINT","PROC","PROCEDURE","PUBLIC","RAISERROR","READ","READTEXT","RECONFIGURE","REFERENCES","REPLICATION","RESTORE","RESTRICT","RETURN","REVERT","REVOKE","RIGHT","ROLLBACK","ROWCOUNT","ROWGUIDCOL","RULE","SAVE","SCHEMA","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION_USER","SET","SETUSER","SHUTDOWN","SOME","STATISTICS","SYSTEM_USER","TABLE","TABLESAMPLE","TEXTSIZE","THEN","TO","TOP","TRAN","TRANSACTION","TRIGGER","TRUNCATE","TRY_CONVERT","TSEQUAL","UNION","UNIQUE","UNPIVOT","UPDATE","UPDATETEXT","USE","USER","VALUES","VIEW","WAITFOR","WHERE","WHILE","WITH","WITHIN GROUP","WRITETEXT","ABSOLUTE","ACTION","ADA","ALLOCATE","ARE","ASSERTION","AT","AVG","BIT_LENGTH","BOTH","CASCADED","CAST","CATALOG","CHARACTER_LENGTH","CHAR_LENGTH","COLLATION","CONNECT","CONNECTION","CONSTRAINTS","CORRESPONDING","COUNT","DAY","DEFERRABLE","DEFERRED","DESCRIBE","DESCRIPTOR","DIAGNOSTICS","DISCONNECT","DOMAIN","END-EXEC","EXCEPTION","EXTRACT","FALSE","FIRST","FORTRAN","FOUND","GET","GLOBAL","GO","HOUR","IMMEDIATE","INCLUDE","INDICATOR","INITIALLY","INPUT","INSENSITIVE","INTERVAL","ISOLATION","LANGUAGE","LAST","LEADING","LEVEL","LOCAL","LOWER","MATCH","MAX","MIN","MINUTE","MODULE","MONTH","NAMES","NATURAL","NEXT","NO","NONE","OCTET_LENGTH","ONLY","OUTPUT","OVERLAPS","PAD","PARTIAL","PASCAL","POSITION","PREPARE","PRESERVE","PRIOR","PRIVILEGES","RELATIVE","ROWS","SCROLL","SECOND","SECTION","SESSION","SIZE","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","SUBSTRING","SUM","TEMPORARY","TIMEZONE_HOUR","TIMEZONE_MINUTE","TRAILING","TRANSLATE","TRANSLATION","TRIM","TRUE","UNKNOWN","UPPER","USAGE","VALUE","WHENEVER","WORK","WRITE","YEAR","ZONE"],reservedDataTypes:["BINARY","BIT","CHAR","CHAR","CHARACTER","DATE","DATETIME2","DATETIMEOFFSET","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","NATIONAL","NCHAR","NUMERIC","NVARCHAR","PRECISION","REAL","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR"],reservedFunctionNames:["APPROX_COUNT_DISTINCT","AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","STDEV","STDEVP","SUM","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","Collation - COLLATIONPROPERTY","Collation - TERTIARY_WEIGHTS","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","@@CURSOR_ROWS","@@FETCH_STATUS","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","@@DATEFIRST","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TIMEZONE_ID","DATEADD","DATEDIFF","DATEDIFF_BIG","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","JSON","ISJSON","JSON_VALUE","JSON_QUERY","JSON_MODIFY","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","CHOOSE","GREATEST","IIF","LEAST","@@PROCID","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FILEPROPERTYEX","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","NEXT VALUE FOR","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","DATABASE_PRINCIPAL_ID","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","CONCAT_WS","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STRING_AGG","STRING_ESCAPE","STUFF","SUBSTRING","TRANSLATE","TRIM","UNICODE","UPPER","$PARTITION","@@ERROR","@@IDENTITY","@@PACK_RECEIVED","@@ROWCOUNT","@@TRANCOUNT","BINARY_CHECKSUM","CHECKSUM","COMPRESS","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","CURRENT_TRANSACTION_ID","DECOMPRESS","ERROR_LINE","ERROR_MESSAGE","ERROR_NUMBER","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GET_FILESTREAM_TRANSACTION_CONTEXT","GETANSINULL","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","SESSION_CONTEXT","XACT_STATE","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACK_SENT","@@PACKET_ERRORS","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","COALESCE","NULLIF"],nestedBlockComments:!0,stringTypes:[{quote:"''-qq",prefixes:["N"]}],identTypes:['""-qq',"[]"],identChars:{first:"#@",rest:"#@$"},paramTypes:{named:["@"],quoted:["@"]},operators:["%","&","|","^","~","!<","!>","+=","-=","*=","/=","%=","|=","&=","^=","::",":"],propertyAccessOperators:[".."]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:[...fde,..._de],tabularOnelineClauses:_de}},Ede=Fae(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),wde=Fae(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [IGNORE] [INTO]","VALUES","REPLACE [INTO]","ON DUPLICATE KEY UPDATE","SET","CREATE [OR REPLACE] [TEMPORARY] PROCEDURE [IF NOT EXISTS]","CREATE [OR REPLACE] [EXTERNAL] FUNCTION"]),Tde=Fae(["CREATE [ROWSTORE] [REFERENCE | TEMPORARY | GLOBAL TEMPORARY] TABLE [IF NOT EXISTS]"]),yde=Fae(["CREATE VIEW","UPDATE","DELETE [FROM]","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER [ONLINE] TABLE","ADD [COLUMN]","ADD [UNIQUE] {INDEX | KEY}","DROP [COLUMN]","MODIFY [COLUMN]","CHANGE","RENAME [TO | AS]","TRUNCATE [TABLE]","ADD AGGREGATOR","ADD LEAF","AGGREGATOR SET AS MASTER","ALTER DATABASE","ALTER PIPELINE","ALTER RESOURCE POOL","ALTER USER","ALTER VIEW","ANALYZE TABLE","ATTACH DATABASE","ATTACH LEAF","ATTACH LEAF ALL","BACKUP DATABASE","BINLOG","BOOTSTRAP AGGREGATOR","CACHE INDEX","CALL","CHANGE","CHANGE MASTER TO","CHANGE REPLICATION FILTER","CHANGE REPLICATION SOURCE TO","CHECK BLOB CHECKSUM","CHECK TABLE","CHECKSUM TABLE","CLEAR ORPHAN DATABASES","CLONE","COMMIT","CREATE DATABASE","CREATE GROUP","CREATE INDEX","CREATE LINK","CREATE MILESTONE","CREATE PIPELINE","CREATE RESOURCE POOL","CREATE ROLE","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DETACH DATABASE","DETACH PIPELINE","DROP DATABASE","DROP FUNCTION","DROP INDEX","DROP LINK","DROP PIPELINE","DROP PROCEDURE","DROP RESOURCE POOL","DROP ROLE","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","FORCE","GRANT","HANDLER","HELP","KILL CONNECTION","KILLALL QUERIES","LOAD DATA","LOAD INDEX INTO CACHE","LOAD XML","LOCK INSTANCE FOR BACKUP","LOCK TABLES","MASTER_POS_WAIT","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","REBALANCE PARTITIONS","RELEASE SAVEPOINT","REMOVE AGGREGATOR","REMOVE LEAF","REPAIR TABLE","REPLACE","REPLICATE DATABASE","RESET","RESET MASTER","RESET PERSIST","RESET REPLICA","RESET SLAVE","RESTART","RESTORE DATABASE","RESTORE REDUNDANCY","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE FUNCTION","SHOW CREATE PIPELINE","SHOW CREATE PROCEDURE","SHOW CREATE TABLE","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW RELAYLOG EVENTS","SHOW REPLICA STATUS","SHOW REPLICAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW VARIABLES","SHOW WARNINGS","SHUTDOWN","SNAPSHOT DATABASE","SOURCE_POS_WAIT","START GROUP_REPLICATION","START PIPELINE","START REPLICA","START SLAVE","START TRANSACTION","STOP GROUP_REPLICATION","STOP PIPELINE","STOP REPLICA","STOP REPLICATING","STOP SLAVE","TEST PIPELINE","UNLOCK INSTANCE","UNLOCK TABLES","USE","XA","ITERATE","LEAVE","LOOP","REPEAT","RETURN","WHILE"]),Rde=Fae(["UNION [ALL | DISTINCT]","EXCEPT","INTERSECT","MINUS"]),Lde=Fae(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),Ide=Fae(["ON DELETE","ON UPDATE","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),Ade={name:"singlestoredb",tokenizerOptions:{reservedSelect:Ede,reservedClauses:[...wde,...Tde,...yde],reservedSetOperations:Rde,reservedJoins:Lde,reservedPhrases:Ide,reservedKeywords:["ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","_BINARY","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DECLARE","DEFAULT","DELAYED","DELETE","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DROP","DUAL","EACH","ELSE","ELSEIF","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","EXTRA_JOIN","FALSE","FETCH","FOR","FORCE","FORCE_COMPILED_MODE","FORCE_INTERPRETER_MODE","FOREIGN","FROM","FULL","FULLTEXT","GRANT","GROUP","HAVING","HEARTBEAT_NO_LOGGING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","IN","_INTERNAL_DYNAMIC_TYPECAST","INTERSECT","INTERVAL","INTO","ITERATE","JOIN","KEY","KEYS","KILL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LOOP","LOW_PRIORITY","MATCH","MAXVALUE","MINUS","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NO_QUERY_REWRITE","NOT","NO_WRITE_TO_BINLOG","NO_QUERY_REWRITE","NULL","ON","OPTIMIZE","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PRIMARY","PROCEDURE","PURGE","RANGE","READ","READS","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESTRICT","RETURN","REVOKE","RIGHT","RIGHT_ANTI_JOIN","RIGHT_SEMI_JOIN","RIGHT_STRAIGHT_JOIN","RLIKE","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SEMI_JOIN","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SPATIAL","SPECIFIC","SQL","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQLEXCEPTION","SQL_NO_CACHE","SQL_NO_LOGGING","SQL_SMALL_RESULT","SQLSTATE","SQLWARNING","STRAIGHT_JOIN","TABLE","TERMINATED","THEN","TO","TRAILING","TRIGGER","TRUE","UNBOUNDED","UNDO","UNION","UNIQUE","UNLOCK","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","_UTF8","VALUES","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WRITE","XOR","YEAR_MONTH","ZEROFILL"],reservedDataTypes:["BIGINT","BINARY","BIT","BLOB","CHAR","CHARACTER","DATETIME","DEC","DECIMAL","DOUBLE PRECISION","DOUBLE","ENUM","FIXED","FLOAT","FLOAT4","FLOAT8","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","LONG","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","NATIONAL CHAR","NATIONAL VARCHAR","NUMERIC","PRECISION","REAL","SMALLINT","TEXT","TIME","TIMESTAMP","TINYBLOB","TINYINT","TINYTEXT","UNSIGNED","VARBINARY","VARCHAR","VARCHARACTER","YEAR"],reservedFunctionNames:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_COUNT_DISTINCT_ACCUMULATE","APPROX_COUNT_DISTINCT_COMBINE","APPROX_COUNT_DISTINCT_ESTIMATE","APPROX_GEOGRAPHY_INTERSECTS","APPROX_PERCENTILE","ASCII","ASIN","ATAN","ATAN2","AVG","BIN","BINARY","BIT_AND","BIT_COUNT","BIT_OR","BIT_XOR","CAST","CEIL","CEILING","CHAR","CHARACTER_LENGTH","CHAR_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COLLECT","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATEDIFF","DATE_FORMAT","DATE_SUB","DATE_TRUNC","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DENSE_RANK","DIV","DOT_PRODUCT","ELT","EUCLIDEAN_DISTANCE","EXP","EXTRACT","FIELD","FIRST","FIRST_VALUE","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOGRAPHY_AREA","GEOGRAPHY_CONTAINS","GEOGRAPHY_DISTANCE","GEOGRAPHY_INTERSECTS","GEOGRAPHY_LATITUDE","GEOGRAPHY_LENGTH","GEOGRAPHY_LONGITUDE","GEOGRAPHY_POINT","GEOGRAPHY_WITHIN_DISTANCE","GEOMETRY_AREA","GEOMETRY_CONTAINS","GEOMETRY_DISTANCE","GEOMETRY_FILTER","GEOMETRY_INTERSECTS","GEOMETRY_LENGTH","GEOMETRY_POINT","GEOMETRY_WITHIN_DISTANCE","GEOMETRY_X","GEOMETRY_Y","GREATEST","GROUPING","GROUP_CONCAT","HEX","HIGHLIGHT","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INITCAP","INSERT","INSTR","INTERVAL","IS","IS NULL","JSON_AGG","JSON_ARRAY_CONTAINS_DOUBLE","JSON_ARRAY_CONTAINS_JSON","JSON_ARRAY_CONTAINS_STRING","JSON_ARRAY_PUSH_DOUBLE","JSON_ARRAY_PUSH_JSON","JSON_ARRAY_PUSH_STRING","JSON_DELETE_KEY","JSON_EXTRACT_DOUBLE","JSON_EXTRACT_JSON","JSON_EXTRACT_STRING","JSON_EXTRACT_BIGINT","JSON_GET_TYPE","JSON_LENGTH","JSON_SET_DOUBLE","JSON_SET_JSON","JSON_SET_STRING","JSON_SPLICE_DOUBLE","JSON_SPLICE_JSON","JSON_SPLICE_STRING","LAG","LAST_DAY","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LN","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LPAD","LTRIM","MATCH","MAX","MD5","MEDIAN","MICROSECOND","MIN","MINUTE","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","NOT","NOW","NTH_VALUE","NTILE","NULLIF","OCTET_LENGTH","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIVOT","POSITION","POW","POWER","QUARTER","QUOTE","RADIANS","RAND","RANK","REGEXP","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCALAR","SCHEMA","SEC_TO_TIME","SHA1","SHA2","SIGMOID","SIGN","SIN","SLEEP","SPLIT","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUM","SYS_GUID","TAN","TIME","TIMEDIFF","TIME_BUCKET","TIME_FORMAT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_JSON","TO_NUMBER","TO_SECONDS","TO_TIMESTAMP","TRIM","TRUNC","TRUNCATE","UCASE","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","VALUES","VARIANCE","VAR_POP","VAR_SAMP","VECTOR_SUB","VERSION","WEEK","WEEKDAY","WEEKOFYEAR","YEAR"],stringTypes:['""-qq-bs',"''-qq-bs",{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_$]+"},{quote:"``",prefixes:["@"],requirePrefix:!0}],lineCommentTypes:["--","#"],operators:[":=","&","|","^","~","<<",">>","<=>","&&","||","::","::$","::%",":>","!:>","*.*"],postProcess:xle},formatOptions:{alwaysDenseOperators:["::","::$","::%"],onelineClauses:[...Tde,...yde],tabularOnelineClauses:yde}},Nde=Fae(["SELECT [ALL | DISTINCT]"]),kde=Fae(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","QUALIFY","LIMIT","OFFSET","FETCH [FIRST | NEXT]","INSERT [OVERWRITE] [ALL INTO | INTO | ALL | FIRST]","{THEN | ELSE} INTO","VALUES","SET","CLUSTER BY","[WITH] {MASKING POLICY | TAG | ROW ACCESS POLICY}","COPY GRANTS","USING TEMPLATE","MERGE INTO","WHEN MATCHED [AND]","THEN {UPDATE SET | DELETE}","WHEN NOT MATCHED THEN INSERT"]),Dde=Fae(["CREATE [OR REPLACE] [VOLATILE] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [LOCAL | GLOBAL] {TEMP|TEMPORARY} TABLE [IF NOT EXISTS]"]),Ode=Fae(["CREATE [OR REPLACE] [SECURE] [RECURSIVE] VIEW [IF NOT EXISTS]","UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","RENAME TO","SWAP WITH","[SUSPEND | RESUME] RECLUSTER","DROP CLUSTERING KEY","ADD [COLUMN]","RENAME COLUMN","{ALTER | MODIFY} [COLUMN]","DROP [COLUMN]","{ADD | ALTER | MODIFY | DROP} [CONSTRAINT]","RENAME CONSTRAINT","{ADD | DROP} SEARCH OPTIMIZATION","{SET | UNSET} TAG","{ADD | DROP} ROW ACCESS POLICY","DROP ALL ROW ACCESS POLICIES","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","[SET DATA] TYPE","UNSET COMMENT","{SET | UNSET} MASKING POLICY","TRUNCATE [TABLE] [IF EXISTS]","ALTER ACCOUNT","ALTER API INTEGRATION","ALTER CONNECTION","ALTER DATABASE","ALTER EXTERNAL TABLE","ALTER FAILOVER GROUP","ALTER FILE FORMAT","ALTER FUNCTION","ALTER INTEGRATION","ALTER MASKING POLICY","ALTER MATERIALIZED VIEW","ALTER NETWORK POLICY","ALTER NOTIFICATION INTEGRATION","ALTER PIPE","ALTER PROCEDURE","ALTER REPLICATION GROUP","ALTER RESOURCE MONITOR","ALTER ROLE","ALTER ROW ACCESS POLICY","ALTER SCHEMA","ALTER SECURITY INTEGRATION","ALTER SEQUENCE","ALTER SESSION","ALTER SESSION POLICY","ALTER SHARE","ALTER STAGE","ALTER STORAGE INTEGRATION","ALTER STREAM","ALTER TAG","ALTER TASK","ALTER USER","ALTER VIEW","ALTER WAREHOUSE","BEGIN","CALL","COMMIT","COPY INTO","CREATE ACCOUNT","CREATE API INTEGRATION","CREATE CONNECTION","CREATE DATABASE","CREATE EXTERNAL FUNCTION","CREATE EXTERNAL TABLE","CREATE FAILOVER GROUP","CREATE FILE FORMAT","CREATE FUNCTION","CREATE INTEGRATION","CREATE MANAGED ACCOUNT","CREATE MASKING POLICY","CREATE MATERIALIZED VIEW","CREATE NETWORK POLICY","CREATE NOTIFICATION INTEGRATION","CREATE PIPE","CREATE PROCEDURE","CREATE REPLICATION GROUP","CREATE RESOURCE MONITOR","CREATE ROLE","CREATE ROW ACCESS POLICY","CREATE SCHEMA","CREATE SECURITY INTEGRATION","CREATE SEQUENCE","CREATE SESSION POLICY","CREATE SHARE","CREATE STAGE","CREATE STORAGE INTEGRATION","CREATE STREAM","CREATE TAG","CREATE TASK","CREATE USER","CREATE WAREHOUSE","DELETE","DESCRIBE DATABASE","DESCRIBE EXTERNAL TABLE","DESCRIBE FILE FORMAT","DESCRIBE FUNCTION","DESCRIBE INTEGRATION","DESCRIBE MASKING POLICY","DESCRIBE MATERIALIZED VIEW","DESCRIBE NETWORK POLICY","DESCRIBE PIPE","DESCRIBE PROCEDURE","DESCRIBE RESULT","DESCRIBE ROW ACCESS POLICY","DESCRIBE SCHEMA","DESCRIBE SEQUENCE","DESCRIBE SESSION POLICY","DESCRIBE SHARE","DESCRIBE STAGE","DESCRIBE STREAM","DESCRIBE TABLE","DESCRIBE TASK","DESCRIBE TRANSACTION","DESCRIBE USER","DESCRIBE VIEW","DESCRIBE WAREHOUSE","DROP CONNECTION","DROP DATABASE","DROP EXTERNAL TABLE","DROP FAILOVER GROUP","DROP FILE FORMAT","DROP FUNCTION","DROP INTEGRATION","DROP MANAGED ACCOUNT","DROP MASKING POLICY","DROP MATERIALIZED VIEW","DROP NETWORK POLICY","DROP PIPE","DROP PROCEDURE","DROP REPLICATION GROUP","DROP RESOURCE MONITOR","DROP ROLE","DROP ROW ACCESS POLICY","DROP SCHEMA","DROP SEQUENCE","DROP SESSION POLICY","DROP SHARE","DROP STAGE","DROP STREAM","DROP TAG","DROP TASK","DROP USER","DROP VIEW","DROP WAREHOUSE","EXECUTE IMMEDIATE","EXECUTE TASK","EXPLAIN","GET","GRANT OWNERSHIP","GRANT ROLE","INSERT","LIST","MERGE","PUT","REMOVE","REVOKE ROLE","ROLLBACK","SHOW COLUMNS","SHOW CONNECTIONS","SHOW DATABASES","SHOW DATABASES IN FAILOVER GROUP","SHOW DATABASES IN REPLICATION GROUP","SHOW DELEGATED AUTHORIZATIONS","SHOW EXTERNAL FUNCTIONS","SHOW EXTERNAL TABLES","SHOW FAILOVER GROUPS","SHOW FILE FORMATS","SHOW FUNCTIONS","SHOW GLOBAL ACCOUNTS","SHOW GRANTS","SHOW INTEGRATIONS","SHOW LOCKS","SHOW MANAGED ACCOUNTS","SHOW MASKING POLICIES","SHOW MATERIALIZED VIEWS","SHOW NETWORK POLICIES","SHOW OBJECTS","SHOW ORGANIZATION ACCOUNTS","SHOW PARAMETERS","SHOW PIPES","SHOW PRIMARY KEYS","SHOW PROCEDURES","SHOW REGIONS","SHOW REPLICATION ACCOUNTS","SHOW REPLICATION DATABASES","SHOW REPLICATION GROUPS","SHOW RESOURCE MONITORS","SHOW ROLES","SHOW ROW ACCESS POLICIES","SHOW SCHEMAS","SHOW SEQUENCES","SHOW SESSION POLICIES","SHOW SHARES","SHOW SHARES IN FAILOVER GROUP","SHOW SHARES IN REPLICATION GROUP","SHOW STAGES","SHOW STREAMS","SHOW TABLES","SHOW TAGS","SHOW TASKS","SHOW TRANSACTIONS","SHOW USER FUNCTIONS","SHOW USERS","SHOW VARIABLES","SHOW VIEWS","SHOW WAREHOUSES","TRUNCATE MATERIALIZED VIEW","UNDROP DATABASE","UNDROP SCHEMA","UNDROP TABLE","UNDROP TAG","UNSET","USE DATABASE","USE ROLE","USE SCHEMA","USE SECONDARY ROLES","USE WAREHOUSE"]),xde=Fae(["UNION [ALL]","MINUS","EXCEPT","INTERSECT"]),Mde=Fae(["[INNER] JOIN","[NATURAL] {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | NATURAL} JOIN"]),Pde=Fae(["{ROWS | RANGE} BETWEEN","ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]"]),Fde={name:"snowflake",tokenizerOptions:{reservedSelect:Nde,reservedClauses:[...kde,...Dde,...Ode],reservedSetOperations:xde,reservedJoins:Mde,reservedPhrases:Pde,reservedKeywords:["ACCOUNT","ALL","ALTER","AND","ANY","AS","BETWEEN","BY","CASE","CAST","CHECK","COLUMN","CONNECT","CONNECTION","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATABASE","DELETE","DISTINCT","DROP","ELSE","EXISTS","FALSE","FOLLOWING","FOR","FROM","FULL","GRANT","GROUP","GSCLUSTER","HAVING","ILIKE","IN","INCREMENT","INNER","INSERT","INTERSECT","INTO","IS","ISSUE","JOIN","LATERAL","LEFT","LIKE","LOCALTIME","LOCALTIMESTAMP","MINUS","NATURAL","NOT","NULL","OF","ON","OR","ORDER","ORGANIZATION","QUALIFY","REGEXP","REVOKE","RIGHT","RLIKE","ROW","ROWS","SAMPLE","SCHEMA","SELECT","SET","SOME","START","TABLE","TABLESAMPLE","THEN","TO","TRIGGER","TRUE","TRY_CAST","UNION","UNIQUE","UPDATE","USING","VALUES","VIEW","WHEN","WHENEVER","WHERE","WITH","COMMENT"],reservedDataTypes:["NUMBER","DECIMAL","NUMERIC","INT","INTEGER","BIGINT","SMALLINT","TINYINT","BYTEINT","FLOAT","FLOAT4","FLOAT8","DOUBLE","DOUBLE PRECISION","REAL","VARCHAR","CHAR","CHARACTER","STRING","TEXT","BINARY","VARBINARY","BOOLEAN","DATE","DATETIME","TIME","TIMESTAMP","TIMESTAMP_LTZ","TIMESTAMP_NTZ","TIMESTAMP","TIMESTAMP_TZ","VARIANT","OBJECT","ARRAY","GEOGRAPHY","GEOMETRY"],reservedFunctionNames:["ABS","ACOS","ACOSH","ADD_MONTHS","ALL_USER_NAMES","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","APPROX_PERCENTILE_ACCUMULATE","APPROX_PERCENTILE_COMBINE","APPROX_PERCENTILE_ESTIMATE","APPROX_TOP_K","APPROX_TOP_K_ACCUMULATE","APPROX_TOP_K_COMBINE","APPROX_TOP_K_ESTIMATE","APPROXIMATE_JACCARD_INDEX","APPROXIMATE_SIMILARITY","ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_COMPACT","ARRAY_CONSTRUCT","ARRAY_CONSTRUCT_COMPACT","ARRAY_CONTAINS","ARRAY_INSERT","ARRAY_INTERSECTION","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_SIZE","ARRAY_SLICE","ARRAY_TO_STRING","ARRAY_UNION_AGG","ARRAY_UNIQUE_AGG","ARRAYS_OVERLAP","AS_ARRAY","AS_BINARY","AS_BOOLEAN","AS_CHAR","AS_VARCHAR","AS_DATE","AS_DECIMAL","AS_NUMBER","AS_DOUBLE","AS_REAL","AS_INTEGER","AS_OBJECT","AS_TIME","AS_TIMESTAMP_LTZ","AS_TIMESTAMP_NTZ","AS_TIMESTAMP_TZ","ASCII","ASIN","ASINH","ATAN","ATAN2","ATANH","AUTO_REFRESH_REGISTRATION_HISTORY","AUTOMATIC_CLUSTERING_HISTORY","AVG","BASE64_DECODE_BINARY","BASE64_DECODE_STRING","BASE64_ENCODE","BIT_LENGTH","BITAND","BITAND_AGG","BITMAP_BIT_POSITION","BITMAP_BUCKET_NUMBER","BITMAP_CONSTRUCT_AGG","BITMAP_COUNT","BITMAP_OR_AGG","BITNOT","BITOR","BITOR_AGG","BITSHIFTLEFT","BITSHIFTRIGHT","BITXOR","BITXOR_AGG","BOOLAND","BOOLAND_AGG","BOOLNOT","BOOLOR","BOOLOR_AGG","BOOLXOR","BOOLXOR_AGG","BUILD_SCOPED_FILE_URL","BUILD_STAGE_FILE_URL","CASE","CAST","CBRT","CEIL","CHARINDEX","CHECK_JSON","CHECK_XML","CHR","CHAR","COALESCE","COLLATE","COLLATION","COMPLETE_TASK_GRAPHS","COMPRESS","CONCAT","CONCAT_WS","CONDITIONAL_CHANGE_EVENT","CONDITIONAL_TRUE_EVENT","CONTAINS","CONVERT_TIMEZONE","COPY_HISTORY","CORR","COS","COSH","COT","COUNT","COUNT_IF","COVAR_POP","COVAR_SAMP","CUME_DIST","CURRENT_ACCOUNT","CURRENT_AVAILABLE_ROLES","CURRENT_CLIENT","CURRENT_DATABASE","CURRENT_DATE","CURRENT_IP_ADDRESS","CURRENT_REGION","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_SECONDARY_ROLES","CURRENT_SESSION","CURRENT_STATEMENT","CURRENT_TASK_GRAPHS","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TRANSACTION","CURRENT_USER","CURRENT_VERSION","CURRENT_WAREHOUSE","DATA_TRANSFER_HISTORY","DATABASE_REFRESH_HISTORY","DATABASE_REFRESH_PROGRESS","DATABASE_REFRESH_PROGRESS_BY_JOB","DATABASE_STORAGE_USAGE_HISTORY","DATE_FROM_PARTS","DATE_PART","DATE_TRUNC","DATEADD","DATEDIFF","DAYNAME","DECODE","DECOMPRESS_BINARY","DECOMPRESS_STRING","DECRYPT","DECRYPT_RAW","DEGREES","DENSE_RANK","DIV0","EDITDISTANCE","ENCRYPT","ENCRYPT_RAW","ENDSWITH","EQUAL_NULL","EXP","EXPLAIN_JSON","EXTERNAL_FUNCTIONS_HISTORY","EXTERNAL_TABLE_FILES","EXTERNAL_TABLE_FILE_REGISTRATION_HISTORY","EXTRACT","EXTRACT_SEMANTIC_CATEGORIES","FACTORIAL","FIRST_VALUE","FLATTEN","FLOOR","GENERATE_COLUMN_DESCRIPTION","GENERATOR","GET","GET_ABSOLUTE_PATH","GET_DDL","GET_IGNORE_CASE","GET_OBJECT_REFERENCES","GET_PATH","GET_PRESIGNED_URL","GET_RELATIVE_PATH","GET_STAGE_LOCATION","GETBIT","GREATEST","GROUPING","GROUPING_ID","HASH","HASH_AGG","HAVERSINE","HEX_DECODE_BINARY","HEX_DECODE_STRING","HEX_ENCODE","HLL","HLL_ACCUMULATE","HLL_COMBINE","HLL_ESTIMATE","HLL_EXPORT","HLL_IMPORT","HOUR","MINUTE","SECOND","IFF","IFNULL","ILIKE","ILIKE ANY","INFER_SCHEMA","INITCAP","INSERT","INVOKER_ROLE","INVOKER_SHARE","IS_ARRAY","IS_BINARY","IS_BOOLEAN","IS_CHAR","IS_VARCHAR","IS_DATE","IS_DATE_VALUE","IS_DECIMAL","IS_DOUBLE","IS_REAL","IS_GRANTED_TO_INVOKER_ROLE","IS_INTEGER","IS_NULL_VALUE","IS_OBJECT","IS_ROLE_IN_SESSION","IS_TIME","IS_TIMESTAMP_LTZ","IS_TIMESTAMP_NTZ","IS_TIMESTAMP_TZ","JAROWINKLER_SIMILARITY","JSON_EXTRACT_PATH_TEXT","KURTOSIS","LAG","LAST_DAY","LAST_QUERY_ID","LAST_TRANSACTION","LAST_VALUE","LEAD","LEAST","LEFT","LENGTH","LEN","LIKE","LIKE ALL","LIKE ANY","LISTAGG","LN","LOCALTIME","LOCALTIMESTAMP","LOG","LOGIN_HISTORY","LOGIN_HISTORY_BY_USER","LOWER","LPAD","LTRIM","MATERIALIZED_VIEW_REFRESH_HISTORY","MD5","MD5_HEX","MD5_BINARY","MD5_NUMBER — Obsoleted","MD5_NUMBER_LOWER64","MD5_NUMBER_UPPER64","MEDIAN","MIN","MAX","MINHASH","MINHASH_COMBINE","MOD","MODE","MONTHNAME","MONTHS_BETWEEN","NEXT_DAY","NORMAL","NTH_VALUE","NTILE","NULLIF","NULLIFZERO","NVL","NVL2","OBJECT_AGG","OBJECT_CONSTRUCT","OBJECT_CONSTRUCT_KEEP_NULL","OBJECT_DELETE","OBJECT_INSERT","OBJECT_KEYS","OBJECT_PICK","OCTET_LENGTH","PARSE_IP","PARSE_JSON","PARSE_URL","PARSE_XML","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIPE_USAGE_HISTORY","POLICY_CONTEXT","POLICY_REFERENCES","POSITION","POW","POWER","PREVIOUS_DAY","QUERY_ACCELERATION_HISTORY","QUERY_HISTORY","QUERY_HISTORY_BY_SESSION","QUERY_HISTORY_BY_USER","QUERY_HISTORY_BY_WAREHOUSE","RADIANS","RANDOM","RANDSTR","RANK","RATIO_TO_REPORT","REGEXP","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","REGEXP_SUBSTR_ALL","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","REGR_VALX","REGR_VALY","REPEAT","REPLACE","REPLICATION_GROUP_REFRESH_HISTORY","REPLICATION_GROUP_REFRESH_PROGRESS","REPLICATION_GROUP_REFRESH_PROGRESS_BY_JOB","REPLICATION_GROUP_USAGE_HISTORY","REPLICATION_USAGE_HISTORY","REST_EVENT_HISTORY","RESULT_SCAN","REVERSE","RIGHT","RLIKE","ROUND","ROW_NUMBER","RPAD","RTRIM","RTRIMMED_LENGTH","SEARCH_OPTIMIZATION_HISTORY","SEQ1","SEQ2","SEQ4","SEQ8","SERVERLESS_TASK_HISTORY","SHA1","SHA1_HEX","SHA1_BINARY","SHA2","SHA2_HEX","SHA2_BINARY","SIGN","SIN","SINH","SKEW","SOUNDEX","SPACE","SPLIT","SPLIT_PART","SPLIT_TO_TABLE","SQRT","SQUARE","ST_AREA","ST_ASEWKB","ST_ASEWKT","ST_ASGEOJSON","ST_ASWKB","ST_ASBINARY","ST_ASWKT","ST_ASTEXT","ST_AZIMUTH","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_COVEREDBY","ST_COVERS","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DWITHIN","ST_ENDPOINT","ST_ENVELOPE","ST_GEOGFROMGEOHASH","ST_GEOGPOINTFROMGEOHASH","ST_GEOGRAPHYFROMWKB","ST_GEOGRAPHYFROMWKT","ST_GEOHASH","ST_GEOMETRYFROMWKB","ST_GEOMETRYFROMWKT","ST_HAUSDORFFDISTANCE","ST_INTERSECTION","ST_INTERSECTS","ST_LENGTH","ST_MAKEGEOMPOINT","ST_GEOM_POINT","ST_MAKELINE","ST_MAKEPOINT","ST_POINT","ST_MAKEPOLYGON","ST_POLYGON","ST_NPOINTS","ST_NUMPOINTS","ST_PERIMETER","ST_POINTN","ST_SETSRID","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_UNION","ST_WITHIN","ST_X","ST_XMAX","ST_XMIN","ST_Y","ST_YMAX","ST_YMIN","STAGE_DIRECTORY_FILE_REGISTRATION_HISTORY","STAGE_STORAGE_USAGE_HISTORY","STARTSWITH","STDDEV","STDDEV_POP","STDDEV_SAMP","STRIP_NULL_VALUE","STRTOK","STRTOK_SPLIT_TO_TABLE","STRTOK_TO_ARRAY","SUBSTR","SUBSTRING","SUM","SYSDATE","SYSTEM$ABORT_SESSION","SYSTEM$ABORT_TRANSACTION","SYSTEM$AUTHORIZE_PRIVATELINK","SYSTEM$AUTHORIZE_STAGE_PRIVATELINK_ACCESS","SYSTEM$BEHAVIOR_CHANGE_BUNDLE_STATUS","SYSTEM$CANCEL_ALL_QUERIES","SYSTEM$CANCEL_QUERY","SYSTEM$CLUSTERING_DEPTH","SYSTEM$CLUSTERING_INFORMATION","SYSTEM$CLUSTERING_RATIO ","SYSTEM$CURRENT_USER_TASK_NAME","SYSTEM$DATABASE_REFRESH_HISTORY ","SYSTEM$DATABASE_REFRESH_PROGRESS","SYSTEM$DATABASE_REFRESH_PROGRESS_BY_JOB ","SYSTEM$DISABLE_BEHAVIOR_CHANGE_BUNDLE","SYSTEM$DISABLE_DATABASE_REPLICATION","SYSTEM$ENABLE_BEHAVIOR_CHANGE_BUNDLE","SYSTEM$ESTIMATE_QUERY_ACCELERATION","SYSTEM$ESTIMATE_SEARCH_OPTIMIZATION_COSTS","SYSTEM$EXPLAIN_JSON_TO_TEXT","SYSTEM$EXPLAIN_PLAN_JSON","SYSTEM$EXTERNAL_TABLE_PIPE_STATUS","SYSTEM$GENERATE_SAML_CSR","SYSTEM$GENERATE_SCIM_ACCESS_TOKEN","SYSTEM$GET_AWS_SNS_IAM_POLICY","SYSTEM$GET_PREDECESSOR_RETURN_VALUE","SYSTEM$GET_PRIVATELINK","SYSTEM$GET_PRIVATELINK_AUTHORIZED_ENDPOINTS","SYSTEM$GET_PRIVATELINK_CONFIG","SYSTEM$GET_SNOWFLAKE_PLATFORM_INFO","SYSTEM$GET_TAG","SYSTEM$GET_TAG_ALLOWED_VALUES","SYSTEM$GET_TAG_ON_CURRENT_COLUMN","SYSTEM$GET_TAG_ON_CURRENT_TABLE","SYSTEM$GLOBAL_ACCOUNT_SET_PARAMETER","SYSTEM$LAST_CHANGE_COMMIT_TIME","SYSTEM$LINK_ACCOUNT_OBJECTS_BY_NAME","SYSTEM$MIGRATE_SAML_IDP_REGISTRATION","SYSTEM$PIPE_FORCE_RESUME","SYSTEM$PIPE_STATUS","SYSTEM$REVOKE_PRIVATELINK","SYSTEM$REVOKE_STAGE_PRIVATELINK_ACCESS","SYSTEM$SET_RETURN_VALUE","SYSTEM$SHOW_OAUTH_CLIENT_SECRETS","SYSTEM$STREAM_GET_TABLE_TIMESTAMP","SYSTEM$STREAM_HAS_DATA","SYSTEM$TASK_DEPENDENTS_ENABLE","SYSTEM$TYPEOF","SYSTEM$USER_TASK_CANCEL_ONGOING_EXECUTIONS","SYSTEM$VERIFY_EXTERNAL_OAUTH_TOKEN","SYSTEM$WAIT","SYSTEM$WHITELIST","SYSTEM$WHITELIST_PRIVATELINK","TAG_REFERENCES","TAG_REFERENCES_ALL_COLUMNS","TAG_REFERENCES_WITH_LINEAGE","TAN","TANH","TASK_DEPENDENTS","TASK_HISTORY","TIME_FROM_PARTS","TIME_SLICE","TIMEADD","TIMEDIFF","TIMESTAMP_FROM_PARTS","TIMESTAMPADD","TIMESTAMPDIFF","TO_ARRAY","TO_BINARY","TO_BOOLEAN","TO_CHAR","TO_VARCHAR","TO_DATE","DATE","TO_DECIMAL","TO_NUMBER","TO_NUMERIC","TO_DOUBLE","TO_GEOGRAPHY","TO_GEOMETRY","TO_JSON","TO_OBJECT","TO_TIME","TIME","TO_TIMESTAMP","TO_TIMESTAMP_LTZ","TO_TIMESTAMP_NTZ","TO_TIMESTAMP_TZ","TO_VARIANT","TO_XML","TRANSLATE","TRIM","TRUNCATE","TRUNC","TRUNC","TRY_BASE64_DECODE_BINARY","TRY_BASE64_DECODE_STRING","TRY_CAST","TRY_HEX_DECODE_BINARY","TRY_HEX_DECODE_STRING","TRY_PARSE_JSON","TRY_TO_BINARY","TRY_TO_BOOLEAN","TRY_TO_DATE","TRY_TO_DECIMAL","TRY_TO_NUMBER","TRY_TO_NUMERIC","TRY_TO_DOUBLE","TRY_TO_GEOGRAPHY","TRY_TO_GEOMETRY","TRY_TO_TIME","TRY_TO_TIMESTAMP","TRY_TO_TIMESTAMP_LTZ","TRY_TO_TIMESTAMP_NTZ","TRY_TO_TIMESTAMP_TZ","TYPEOF","UNICODE","UNIFORM","UPPER","UUID_STRING","VALIDATE","VALIDATE_PIPE_LOAD","VAR_POP","VAR_SAMP","VARIANCE","VARIANCE_SAMP","VARIANCE_POP","WAREHOUSE_LOAD_HISTORY","WAREHOUSE_METERING_HISTORY","WIDTH_BUCKET","XMLGET","YEAR","YEAROFWEEK","YEAROFWEEKISO","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFWEEKISO","DAYOFYEAR","WEEK","WEEK","WEEKOFYEAR","WEEKISO","MONTH","QUARTER","ZEROIFNULL","ZIPF"],stringTypes:["$$","''-qq-bs"],identTypes:['""-qq'],variableTypes:[{regex:"[$][1-9]\\d*"},{regex:"[$][_a-zA-Z][_a-zA-Z0-9$]*"}],extraParens:["[]"],identChars:{rest:"$"},lineCommentTypes:["--","//"],operators:["%","::","||","=>"],propertyAccessOperators:[":"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:[...Dde,...Ode],tabularOnelineClauses:Ode}},Bde=e=>e[e.length-1],Hde=e=>e.sort(((e,t)=>t.length-e.length||e.localeCompare(t))),Wde=e=>e.replace(/\s+/gu," "),Ude=e=>/\n/.test(e),Vde=e=>e.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),Gde=/\s+/uy,zde=e=>new RegExp(`(?:${e})`,"uy"),Kde=e=>e.split("").map((e=>/ /gu.test(e)?"\\s+":`[${e.toUpperCase()}${e.toLowerCase()}]`)).join(""),Yde=(e,t=[])=>{const i="open"===e?0:1,n=["()",...t].map((e=>e[i]));return zde(n.map(Vde).join("|"))},qde=e=>zde(`${Hde(e).map(Vde).join("|")}`),$de=(e,t={})=>{if(0===e.length)return/^\b$/u;const i=(({rest:e,dashes:t})=>e||t?`(?![${e||""}${t?"-":""}])`:"")(t),n=Hde(e).map(Vde).join("|").replace(/ /gu,"\\s+");return new RegExp(`(?:${n})${i}\\b`,"iuy")},jde=(e,t)=>{if(!e.length)return;const i=e.map(Vde).join("|");return zde(`(?:${i})(?:${t})`)},Xde={"``":"(?:`[^`]*`)+","[]":String.raw`(?:\[[^\]]*\])(?:\][^\]]*\])*`,'""-qq':String.raw`(?:"[^"]*")+`,'""-bs':String.raw`(?:"[^"\\]*(?:\\.[^"\\]*)*")`,'""-qq-bs':String.raw`(?:"[^"\\]*(?:\\.[^"\\]*)*")+`,'""-raw':String.raw`(?:"[^"]*")`,"''-qq":String.raw`(?:'[^']*')+`,"''-bs":String.raw`(?:'[^'\\]*(?:\\.[^'\\]*)*')`,"''-qq-bs":String.raw`(?:'[^'\\]*(?:\\.[^'\\]*)*')+`,"''-raw":String.raw`(?:'[^']*')`,$$:String.raw`(?\$\w*\$)[\s\S]*?\k`,"'''..'''":String.raw`'''[^\\]*?(?:\\.[^\\]*?)*?'''`,'""".."""':String.raw`"""[^\\]*?(?:\\.[^\\]*?)*?"""`,"{}":String.raw`(?:\{[^\}]*\})`,"q''":(()=>{const e={"<":">","[":"]","(":")","{":"}"},t=Object.entries(e).map((([e,t])=>"{left}(?:(?!{right}').)*?{right}".replace(/{left}/g,Vde(e)).replace(/{right}/g,Vde(t)))),i=Vde(Object.keys(e).join(""));return`[Qq]'(?:${String.raw`(?[^\s${i}])(?:(?!\k').)*?\k`}|${t.join("|")})'`})()},Jde=e=>"string"==typeof e?Xde[e]:"regex"in e?e.regex:(({prefixes:e,requirePrefix:t})=>`(?:${e.map(Kde).join("|")}${t?"":"|"})`)(e)+Xde[e.quote],Qde=e=>e.map(Jde).join("|"),Zde=e=>zde(Qde(e)),ehe=(e={})=>zde(the(e)),the=({first:e,rest:t,dashes:i,allowFirstCharNumber:n}={})=>{const o="\\p{Alphabetic}\\p{Mark}_",s="\\p{Decimal_Number}",r=Vde(null!=e?e:""),a=Vde(null!=t?t:""),l=n?`[${o}${s}${r}][${o}${s}${a}]*`:`[${o}${r}][${o}${s}${a}]*`;return i?(c=l)+"(?:-"+c+")*":l;var c};function ihe(e,t){const i=e.slice(0,t).split(/\n/);return{line:i.length,col:i[i.length-1].length+1}}var nhe=/\/\*/uy,ohe=/([^/*]|\*[^/]|\/[^*])+/uy,she=/\*\//uy,rhe=class{constructor(){this.lastIndex=0}exec(e){let t,i="",n=0;if(!(t=this.matchSection(nhe,e)))return null;for(i+=t,n++;n>0;)if(t=this.matchSection(nhe,e))i+=t,n++;else if(t=this.matchSection(she,e))i+=t,n--;else{if(!(t=this.matchSection(ohe,e)))return null;i+=t}return[i]}matchSection(e,t){e.lastIndex=this.lastIndex;const i=e.exec(t);return i&&(this.lastIndex+=i[0].length),i?i[0]:null}},ahe=class{constructor(e,t){this.cfg=e,this.dialectName=t,this.rulesBeforeParams=this.buildRulesBeforeParams(e),this.rulesAfterParams=this.buildRulesAfterParams(e)}tokenize(e,t){const i=[...this.rulesBeforeParams,...this.buildParamRules(this.cfg,t),...this.rulesAfterParams],n=new class{constructor(e,t){this.rules=e,this.dialectName=t,this.input="",this.index=0}tokenize(e){this.input=e,this.index=0;const t=[];let i;for(;this.index"regex"in e?e.regex:Jde(e))).join("|"))):void 0},{type:"STRING",regex:Zde(e.stringTypes)},{type:"IDENTIFIER",regex:ehe(e.identChars)},{type:"DELIMITER",regex:/[;]/uy},{type:"COMMA",regex:/[,]/y},{type:"OPEN_PAREN",regex:Yde("open",e.extraParens)},{type:"CLOSE_PAREN",regex:Yde("close",e.extraParens)},{type:"OPERATOR",regex:qde(["+","-","/",">","<","=","<>","<=",">=","!=",...null!=(t=e.operators)?t:[]])},{type:"ASTERISK",regex:/[*]/uy},{type:"PROPERTY_ACCESS_OPERATOR",regex:qde([".",...null!=(i=e.propertyAccessOperators)?i:[]])}])}buildParamRules(e,t){var i,n,o,s,r;const a={named:(null==t?void 0:t.named)||(null==(i=e.paramTypes)?void 0:i.named)||[],quoted:(null==t?void 0:t.quoted)||(null==(n=e.paramTypes)?void 0:n.quoted)||[],numbered:(null==t?void 0:t.numbered)||(null==(o=e.paramTypes)?void 0:o.numbered)||[],positional:"boolean"==typeof(null==t?void 0:t.positional)?t.positional:null==(s=e.paramTypes)?void 0:s.positional,custom:(null==t?void 0:t.custom)||(null==(r=e.paramTypes)?void 0:r.custom)||[]};return this.validRules([{type:"NAMED_PARAMETER",regex:jde(a.named,the(e.paramChars||e.identChars)),key:e=>e.slice(1)},{type:"QUOTED_PARAMETER",regex:jde(a.quoted,Qde(e.identTypes)),key:e=>(({tokenKey:e,quoteChar:t})=>e.replace(new RegExp(Vde("\\"+t),"gu"),t))({tokenKey:e.slice(2,-1),quoteChar:e.slice(-1)})},{type:"NUMBERED_PARAMETER",regex:jde(a.numbered,"[0-9]+"),key:e=>e.slice(1)},{type:"POSITIONAL_PARAMETER",regex:a.positional?/[?]/y:void 0},...a.custom.map((e=>{var t;return{type:"CUSTOM_PARAMETER",regex:zde(e.regex),key:null!=(t=e.key)?t:e=>e}}))])}validRules(e){return e.filter((e=>Boolean(e.regex)))}},lhe=e=>Wde(e.toUpperCase()),che=new Map,dhe=e=>{var t;return{alwaysDenseOperators:e.alwaysDenseOperators||[],onelineClauses:Object.fromEntries(e.onelineClauses.map((e=>[e,!0]))),tabularOnelineClauses:Object.fromEntries((null!=(t=e.tabularOnelineClauses)?t:e.onelineClauses).map((e=>[e,!0])))}};function hhe(e){return"tabularLeft"===e.indentStyle||"tabularRight"===e.indentStyle}var uhe=(e,t,i)=>{if(Zae(e.type)){const n=_he(i,t);if(n&&"PROPERTY_ACCESS_OPERATOR"===n.type)return Mae(xae({},e),{type:"IDENTIFIER",text:e.raw})}return e},ghe=(e,t,i)=>{if("RESERVED_FUNCTION_NAME"===e.type){const n=bhe(i,t);if(!n||!vhe(n))return Mae(xae({},e),{type:"RESERVED_KEYWORD"})}return e},mhe=(e,t,i)=>{if("RESERVED_DATA_TYPE"===e.type){const n=bhe(i,t);if(n&&vhe(n))return Mae(xae({},e),{type:"RESERVED_PARAMETERIZED_DATA_TYPE"})}return e},phe=(e,t,i)=>{if("IDENTIFIER"===e.type){const n=bhe(i,t);if(n&&She(n))return Mae(xae({},e),{type:"ARRAY_IDENTIFIER"})}return e},fhe=(e,t,i)=>{if("RESERVED_DATA_TYPE"===e.type){const n=bhe(i,t);if(n&&She(n))return Mae(xae({},e),{type:"ARRAY_KEYWORD"})}return e},_he=(e,t)=>bhe(e,t,-1),bhe=(e,t,i=1)=>{let n=1;for(;e[t+n*i]&&Che(e[t+n*i]);)n++;return e[t+n*i]},vhe=e=>"OPEN_PAREN"===e.type&&"("===e.text,She=e=>"OPEN_PAREN"===e.type&&"["===e.text,Che=e=>"BLOCK_COMMENT"===e.type||"LINE_COMMENT"===e.type,Ehe=class{constructor(e){this.tokenize=e,this.index=0,this.tokens=[],this.input=""}reset(e,t){this.input=e,this.index=0,this.tokens=this.tokenize(e)}next(){return this.tokens[this.index++]}save(){}formatError(e){const{line:t,col:i}=ihe(this.input,e.start);return`Parse error at token: ${e.text} at line ${t} column ${i}`}has(e){return e in $ae}};function whe(e){return e[0]}var The=new Ehe((e=>[])),yhe=([[e]])=>e,Rhe=e=>({type:"keyword",tokenType:e.type,text:e.text,raw:e.raw}),Lhe=e=>({type:"data_type",text:e.text,raw:e.raw}),Ihe=(e,{leading:t,trailing:i})=>((null==t?void 0:t.length)&&(e=Mae(xae({},e),{leadingComments:t})),(null==i?void 0:i.length)&&(e=Mae(xae({},e),{trailingComments:i})),e),Ahe=(e,{leading:t,trailing:i})=>{if(null==t?void 0:t.length){const[i,...n]=e;e=[Ihe(i,{leading:t}),...n]}if(null==i?void 0:i.length){const t=e.slice(0,-1),n=e[e.length-1];e=[...t,Ihe(n,{trailing:i})]}return e},Nhe={Lexer:The,ParserRules:[{name:"main$ebnf$1",symbols:[]},{name:"main$ebnf$1",symbols:["main$ebnf$1","statement"],postprocess:e=>e[0].concat([e[1]])},{name:"main",symbols:["main$ebnf$1"],postprocess:([e])=>{const t=e[e.length-1];return t&&!t.hasSemicolon?t.children.length>0?e:e.slice(0,-1):e}},{name:"statement$subexpression$1",symbols:[The.has("DELIMITER")?{type:"DELIMITER"}:DELIMITER]},{name:"statement$subexpression$1",symbols:[The.has("EOF")?{type:"EOF"}:EOF]},{name:"statement",symbols:["expressions_or_clauses","statement$subexpression$1"],postprocess:([e,[t]])=>({type:"statement",children:e,hasSemicolon:"DELIMITER"===t.type})},{name:"expressions_or_clauses$ebnf$1",symbols:[]},{name:"expressions_or_clauses$ebnf$1",symbols:["expressions_or_clauses$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"expressions_or_clauses$ebnf$2",symbols:[]},{name:"expressions_or_clauses$ebnf$2",symbols:["expressions_or_clauses$ebnf$2","clause"],postprocess:e=>e[0].concat([e[1]])},{name:"expressions_or_clauses",symbols:["expressions_or_clauses$ebnf$1","expressions_or_clauses$ebnf$2"],postprocess:([e,t])=>[...e,...t]},{name:"clause$subexpression$1",symbols:["limit_clause"]},{name:"clause$subexpression$1",symbols:["select_clause"]},{name:"clause$subexpression$1",symbols:["other_clause"]},{name:"clause$subexpression$1",symbols:["set_operation"]},{name:"clause",symbols:["clause$subexpression$1"],postprocess:yhe},{name:"limit_clause$ebnf$1$subexpression$1$ebnf$1",symbols:["free_form_sql"]},{name:"limit_clause$ebnf$1$subexpression$1$ebnf$1",symbols:["limit_clause$ebnf$1$subexpression$1$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"limit_clause$ebnf$1$subexpression$1",symbols:[The.has("COMMA")?{type:"COMMA"}:COMMA,"limit_clause$ebnf$1$subexpression$1$ebnf$1"]},{name:"limit_clause$ebnf$1",symbols:["limit_clause$ebnf$1$subexpression$1"],postprocess:whe},{name:"limit_clause$ebnf$1",symbols:[],postprocess:()=>null},{name:"limit_clause",symbols:[The.has("LIMIT")?{type:"LIMIT"}:LIMIT,"_","expression_chain_","limit_clause$ebnf$1"],postprocess:([e,t,i,n])=>{if(n){const[o,s]=n;return{type:"limit_clause",limitKw:Ihe(Rhe(e),{trailing:t}),offset:i,count:s}}return{type:"limit_clause",limitKw:Ihe(Rhe(e),{trailing:t}),count:i}}},{name:"select_clause$subexpression$1$ebnf$1",symbols:[]},{name:"select_clause$subexpression$1$ebnf$1",symbols:["select_clause$subexpression$1$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"select_clause$subexpression$1",symbols:["all_columns_asterisk","select_clause$subexpression$1$ebnf$1"]},{name:"select_clause$subexpression$1$ebnf$2",symbols:[]},{name:"select_clause$subexpression$1$ebnf$2",symbols:["select_clause$subexpression$1$ebnf$2","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"select_clause$subexpression$1",symbols:["asteriskless_free_form_sql","select_clause$subexpression$1$ebnf$2"]},{name:"select_clause",symbols:[The.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT,"select_clause$subexpression$1"],postprocess:([e,[t,i]])=>({type:"clause",nameKw:Rhe(e),children:[t,...i]})},{name:"select_clause",symbols:[The.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT],postprocess:([e])=>({type:"clause",nameKw:Rhe(e),children:[]})},{name:"all_columns_asterisk",symbols:[The.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK],postprocess:()=>({type:"all_columns_asterisk"})},{name:"other_clause$ebnf$1",symbols:[]},{name:"other_clause$ebnf$1",symbols:["other_clause$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"other_clause",symbols:[The.has("RESERVED_CLAUSE")?{type:"RESERVED_CLAUSE"}:RESERVED_CLAUSE,"other_clause$ebnf$1"],postprocess:([e,t])=>({type:"clause",nameKw:Rhe(e),children:t})},{name:"set_operation$ebnf$1",symbols:[]},{name:"set_operation$ebnf$1",symbols:["set_operation$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"set_operation",symbols:[The.has("RESERVED_SET_OPERATION")?{type:"RESERVED_SET_OPERATION"}:RESERVED_SET_OPERATION,"set_operation$ebnf$1"],postprocess:([e,t])=>({type:"set_operation",nameKw:Rhe(e),children:t})},{name:"expression_chain_$ebnf$1",symbols:["expression_with_comments_"]},{name:"expression_chain_$ebnf$1",symbols:["expression_chain_$ebnf$1","expression_with_comments_"],postprocess:e=>e[0].concat([e[1]])},{name:"expression_chain_",symbols:["expression_chain_$ebnf$1"],postprocess:whe},{name:"expression_chain$ebnf$1",symbols:[]},{name:"expression_chain$ebnf$1",symbols:["expression_chain$ebnf$1","_expression_with_comments"],postprocess:e=>e[0].concat([e[1]])},{name:"expression_chain",symbols:["expression","expression_chain$ebnf$1"],postprocess:([e,t])=>[e,...t]},{name:"andless_expression_chain$ebnf$1",symbols:[]},{name:"andless_expression_chain$ebnf$1",symbols:["andless_expression_chain$ebnf$1","_andless_expression_with_comments"],postprocess:e=>e[0].concat([e[1]])},{name:"andless_expression_chain",symbols:["andless_expression","andless_expression_chain$ebnf$1"],postprocess:([e,t])=>[e,...t]},{name:"expression_with_comments_",symbols:["expression","_"],postprocess:([e,t])=>Ihe(e,{trailing:t})},{name:"_expression_with_comments",symbols:["_","expression"],postprocess:([e,t])=>Ihe(t,{leading:e})},{name:"_andless_expression_with_comments",symbols:["_","andless_expression"],postprocess:([e,t])=>Ihe(t,{leading:e})},{name:"free_form_sql$subexpression$1",symbols:["asteriskless_free_form_sql"]},{name:"free_form_sql$subexpression$1",symbols:["asterisk"]},{name:"free_form_sql",symbols:["free_form_sql$subexpression$1"],postprocess:yhe},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["asteriskless_andless_expression"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["logic_operator"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["comma"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["comment"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["other_keyword"]},{name:"asteriskless_free_form_sql",symbols:["asteriskless_free_form_sql$subexpression$1"],postprocess:yhe},{name:"expression$subexpression$1",symbols:["andless_expression"]},{name:"expression$subexpression$1",symbols:["logic_operator"]},{name:"expression",symbols:["expression$subexpression$1"],postprocess:yhe},{name:"andless_expression$subexpression$1",symbols:["asteriskless_andless_expression"]},{name:"andless_expression$subexpression$1",symbols:["asterisk"]},{name:"andless_expression",symbols:["andless_expression$subexpression$1"],postprocess:yhe},{name:"asteriskless_andless_expression$subexpression$1",symbols:["atomic_expression"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["between_predicate"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["case_expression"]},{name:"asteriskless_andless_expression",symbols:["asteriskless_andless_expression$subexpression$1"],postprocess:yhe},{name:"atomic_expression$subexpression$1",symbols:["array_subscript"]},{name:"atomic_expression$subexpression$1",symbols:["function_call"]},{name:"atomic_expression$subexpression$1",symbols:["property_access"]},{name:"atomic_expression$subexpression$1",symbols:["parenthesis"]},{name:"atomic_expression$subexpression$1",symbols:["curly_braces"]},{name:"atomic_expression$subexpression$1",symbols:["square_brackets"]},{name:"atomic_expression$subexpression$1",symbols:["operator"]},{name:"atomic_expression$subexpression$1",symbols:["identifier"]},{name:"atomic_expression$subexpression$1",symbols:["parameter"]},{name:"atomic_expression$subexpression$1",symbols:["literal"]},{name:"atomic_expression$subexpression$1",symbols:["data_type"]},{name:"atomic_expression$subexpression$1",symbols:["keyword"]},{name:"atomic_expression",symbols:["atomic_expression$subexpression$1"],postprocess:yhe},{name:"array_subscript",symbols:[The.has("ARRAY_IDENTIFIER")?{type:"ARRAY_IDENTIFIER"}:ARRAY_IDENTIFIER,"_","square_brackets"],postprocess:([e,t,i])=>({type:"array_subscript",array:Ihe({type:"identifier",quoted:!1,text:e.text},{trailing:t}),parenthesis:i})},{name:"array_subscript",symbols:[The.has("ARRAY_KEYWORD")?{type:"ARRAY_KEYWORD"}:ARRAY_KEYWORD,"_","square_brackets"],postprocess:([e,t,i])=>({type:"array_subscript",array:Ihe(Rhe(e),{trailing:t}),parenthesis:i})},{name:"function_call",symbols:[The.has("RESERVED_FUNCTION_NAME")?{type:"RESERVED_FUNCTION_NAME"}:RESERVED_FUNCTION_NAME,"_","parenthesis"],postprocess:([e,t,i])=>({type:"function_call",nameKw:Ihe(Rhe(e),{trailing:t}),parenthesis:i})},{name:"parenthesis",symbols:[{literal:"("},"expressions_or_clauses",{literal:")"}],postprocess:([e,t,i])=>({type:"parenthesis",children:t,openParen:"(",closeParen:")"})},{name:"curly_braces$ebnf$1",symbols:[]},{name:"curly_braces$ebnf$1",symbols:["curly_braces$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"curly_braces",symbols:[{literal:"{"},"curly_braces$ebnf$1",{literal:"}"}],postprocess:([e,t,i])=>({type:"parenthesis",children:t,openParen:"{",closeParen:"}"})},{name:"square_brackets$ebnf$1",symbols:[]},{name:"square_brackets$ebnf$1",symbols:["square_brackets$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"square_brackets",symbols:[{literal:"["},"square_brackets$ebnf$1",{literal:"]"}],postprocess:([e,t,i])=>({type:"parenthesis",children:t,openParen:"[",closeParen:"]"})},{name:"property_access$subexpression$1",symbols:["identifier"]},{name:"property_access$subexpression$1",symbols:["array_subscript"]},{name:"property_access$subexpression$1",symbols:["all_columns_asterisk"]},{name:"property_access$subexpression$1",symbols:["parameter"]},{name:"property_access",symbols:["atomic_expression","_",The.has("PROPERTY_ACCESS_OPERATOR")?{type:"PROPERTY_ACCESS_OPERATOR"}:PROPERTY_ACCESS_OPERATOR,"_","property_access$subexpression$1"],postprocess:([e,t,i,n,[o]])=>({type:"property_access",object:Ihe(e,{trailing:t}),operator:i.text,property:Ihe(o,{leading:n})})},{name:"between_predicate",symbols:[The.has("BETWEEN")?{type:"BETWEEN"}:BETWEEN,"_","andless_expression_chain","_",The.has("AND")?{type:"AND"}:AND,"_","andless_expression"],postprocess:([e,t,i,n,o,s,r])=>({type:"between_predicate",betweenKw:Rhe(e),expr1:Ahe(i,{leading:t,trailing:n}),andKw:Rhe(o),expr2:[Ihe(r,{leading:s})]})},{name:"case_expression$ebnf$1",symbols:["expression_chain_"],postprocess:whe},{name:"case_expression$ebnf$1",symbols:[],postprocess:()=>null},{name:"case_expression$ebnf$2",symbols:[]},{name:"case_expression$ebnf$2",symbols:["case_expression$ebnf$2","case_clause"],postprocess:e=>e[0].concat([e[1]])},{name:"case_expression",symbols:[The.has("CASE")?{type:"CASE"}:CASE,"_","case_expression$ebnf$1","case_expression$ebnf$2",The.has("END")?{type:"END"}:END],postprocess:([e,t,i,n,o])=>({type:"case_expression",caseKw:Ihe(Rhe(e),{trailing:t}),endKw:Rhe(o),expr:i||[],clauses:n})},{name:"case_clause",symbols:[The.has("WHEN")?{type:"WHEN"}:WHEN,"_","expression_chain_",The.has("THEN")?{type:"THEN"}:THEN,"_","expression_chain_"],postprocess:([e,t,i,n,o,s])=>({type:"case_when",whenKw:Ihe(Rhe(e),{trailing:t}),thenKw:Ihe(Rhe(n),{trailing:o}),condition:i,result:s})},{name:"case_clause",symbols:[The.has("ELSE")?{type:"ELSE"}:ELSE,"_","expression_chain_"],postprocess:([e,t,i])=>({type:"case_else",elseKw:Ihe(Rhe(e),{trailing:t}),result:i})},{name:"comma$subexpression$1",symbols:[The.has("COMMA")?{type:"COMMA"}:COMMA]},{name:"comma",symbols:["comma$subexpression$1"],postprocess:([[e]])=>({type:"comma"})},{name:"asterisk$subexpression$1",symbols:[The.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK]},{name:"asterisk",symbols:["asterisk$subexpression$1"],postprocess:([[e]])=>({type:"operator",text:e.text})},{name:"operator$subexpression$1",symbols:[The.has("OPERATOR")?{type:"OPERATOR"}:OPERATOR]},{name:"operator",symbols:["operator$subexpression$1"],postprocess:([[e]])=>({type:"operator",text:e.text})},{name:"identifier$subexpression$1",symbols:[The.has("IDENTIFIER")?{type:"IDENTIFIER"}:IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[The.has("QUOTED_IDENTIFIER")?{type:"QUOTED_IDENTIFIER"}:QUOTED_IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[The.has("VARIABLE")?{type:"VARIABLE"}:VARIABLE]},{name:"identifier",symbols:["identifier$subexpression$1"],postprocess:([[e]])=>({type:"identifier",quoted:"IDENTIFIER"!==e.type,text:e.text})},{name:"parameter$subexpression$1",symbols:[The.has("NAMED_PARAMETER")?{type:"NAMED_PARAMETER"}:NAMED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[The.has("QUOTED_PARAMETER")?{type:"QUOTED_PARAMETER"}:QUOTED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[The.has("NUMBERED_PARAMETER")?{type:"NUMBERED_PARAMETER"}:NUMBERED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[The.has("POSITIONAL_PARAMETER")?{type:"POSITIONAL_PARAMETER"}:POSITIONAL_PARAMETER]},{name:"parameter$subexpression$1",symbols:[The.has("CUSTOM_PARAMETER")?{type:"CUSTOM_PARAMETER"}:CUSTOM_PARAMETER]},{name:"parameter",symbols:["parameter$subexpression$1"],postprocess:([[e]])=>({type:"parameter",key:e.key,text:e.text})},{name:"literal$subexpression$1",symbols:[The.has("NUMBER")?{type:"NUMBER"}:NUMBER]},{name:"literal$subexpression$1",symbols:[The.has("STRING")?{type:"STRING"}:STRING]},{name:"literal",symbols:["literal$subexpression$1"],postprocess:([[e]])=>({type:"literal",text:e.text})},{name:"keyword$subexpression$1",symbols:[The.has("RESERVED_KEYWORD")?{type:"RESERVED_KEYWORD"}:RESERVED_KEYWORD]},{name:"keyword$subexpression$1",symbols:[The.has("RESERVED_PHRASE")?{type:"RESERVED_PHRASE"}:RESERVED_PHRASE]},{name:"keyword$subexpression$1",symbols:[The.has("RESERVED_JOIN")?{type:"RESERVED_JOIN"}:RESERVED_JOIN]},{name:"keyword",symbols:["keyword$subexpression$1"],postprocess:([[e]])=>Rhe(e)},{name:"data_type$subexpression$1",symbols:[The.has("RESERVED_DATA_TYPE")?{type:"RESERVED_DATA_TYPE"}:RESERVED_DATA_TYPE]},{name:"data_type",symbols:["data_type$subexpression$1"],postprocess:([[e]])=>Lhe(e)},{name:"data_type",symbols:[The.has("RESERVED_PARAMETERIZED_DATA_TYPE")?{type:"RESERVED_PARAMETERIZED_DATA_TYPE"}:RESERVED_PARAMETERIZED_DATA_TYPE,"_","parenthesis"],postprocess:([e,t,i])=>({type:"parameterized_data_type",dataType:Ihe(Lhe(e),{trailing:t}),parenthesis:i})},{name:"logic_operator$subexpression$1",symbols:[The.has("AND")?{type:"AND"}:AND]},{name:"logic_operator$subexpression$1",symbols:[The.has("OR")?{type:"OR"}:OR]},{name:"logic_operator$subexpression$1",symbols:[The.has("XOR")?{type:"XOR"}:XOR]},{name:"logic_operator",symbols:["logic_operator$subexpression$1"],postprocess:([[e]])=>Rhe(e)},{name:"other_keyword$subexpression$1",symbols:[The.has("WHEN")?{type:"WHEN"}:WHEN]},{name:"other_keyword$subexpression$1",symbols:[The.has("THEN")?{type:"THEN"}:THEN]},{name:"other_keyword$subexpression$1",symbols:[The.has("ELSE")?{type:"ELSE"}:ELSE]},{name:"other_keyword$subexpression$1",symbols:[The.has("END")?{type:"END"}:END]},{name:"other_keyword",symbols:["other_keyword$subexpression$1"],postprocess:([[e]])=>Rhe(e)},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1","comment"],postprocess:e=>e[0].concat([e[1]])},{name:"_",symbols:["_$ebnf$1"],postprocess:([e])=>e},{name:"comment",symbols:[The.has("LINE_COMMENT")?{type:"LINE_COMMENT"}:LINE_COMMENT],postprocess:([e])=>({type:"line_comment",text:e.text,precedingWhitespace:e.precedingWhitespace})},{name:"comment",symbols:[The.has("BLOCK_COMMENT")?{type:"BLOCK_COMMENT"}:BLOCK_COMMENT],postprocess:([e])=>({type:"block_comment",text:e.text,precedingWhitespace:e.precedingWhitespace})},{name:"comment",symbols:[The.has("DISABLE_COMMENT")?{type:"DISABLE_COMMENT"}:DISABLE_COMMENT],postprocess:([e])=>({type:"disable_comment",text:e.text,precedingWhitespace:e.precedingWhitespace})}],ParserStart:"main"},{Parser:khe,Grammar:Dhe}=Rae,Ohe=class{constructor(e){this.indentation=e,this.items=[]}add(...e){for(const t of e)switch(t){case 0:this.items.push(0);break;case 1:this.trimHorizontalWhitespace();break;case 2:this.trimWhitespace();break;case 3:this.trimHorizontalWhitespace(),this.addNewline(3);break;case 4:this.trimHorizontalWhitespace(),this.addNewline(4);break;case 5:this.addIndentation();break;case 6:this.items.push(6);break;default:this.items.push(t)}}trimHorizontalWhitespace(){for(;xhe(Bde(this.items));)this.items.pop()}trimWhitespace(){for(;Mhe(Bde(this.items));)this.items.pop()}addNewline(e){if(this.items.length>0)switch(Bde(this.items)){case 3:this.items.pop(),this.items.push(e);break;case 4:break;default:this.items.push(e)}}addIndentation(){for(let e=0;ethis.itemToString(e))).join("")}getLayoutItems(){return this.items}itemToString(e){switch(e){case 0:return" ";case 3:case 4:return"\n";case 6:return this.indentation.getSingleIndent();default:return e}}},xhe=e=>0===e||6===e,Mhe=e=>0===e||6===e||3===e;function Phe(e,t){if("standard"===t)return e;let i=[];return e.length>=10&&e.includes(" ")&&([e,...i]=e.split(" ")),(e="tabularLeft"===t?e.padEnd(9," "):e.padStart(9," "))+["",...i].join(" ")}function Fhe(e){return"AND"===(t=e)||"OR"===t||"XOR"===t||"RESERVED_CLAUSE"===e||"RESERVED_SELECT"===e||"RESERVED_SET_OPERATION"===e||"RESERVED_JOIN"===e||"LIMIT"===e;var t}var Bhe="top-level",Hhe=class{constructor(e){this.indent=e,this.indentTypes=[]}getSingleIndent(){return this.indent}getLevel(){return this.indentTypes.length}increaseTopLevel(){this.indentTypes.push(Bhe)}increaseBlockLevel(){this.indentTypes.push("block-level")}decreaseTopLevel(){this.indentTypes.length>0&&Bde(this.indentTypes)===Bhe&&this.indentTypes.pop()}decreaseBlockLevel(){for(;this.indentTypes.length>0&&this.indentTypes.pop()===Bhe;);}},Whe=class extends Ohe{constructor(e){super(new Hhe("")),this.expressionWidth=e,this.length=0,this.trailingSpace=!1}add(...e){if(e.forEach((e=>this.addToLength(e))),this.length>this.expressionWidth)throw new Uhe;super.add(...e)}addToLength(e){if("string"==typeof e)this.length+=e.length,this.trailingSpace=!1;else{if(4===e||3===e)throw new Uhe;5===e||6===e||0===e?this.trailingSpace||(this.length++,this.trailingSpace=!0):2!==e&&1!==e||this.trailingSpace&&(this.trailingSpace=!1,this.length--)}}},Uhe=class extends Error{},Vhe=class extends Error{};var Ghe={bigquery:"bigquery",db2:"db2",db2i:"db2i",hive:"hive",mariadb:"mariadb",mysql:"mysql",n1ql:"n1ql",plsql:"plsql",postgresql:"postgresql",redshift:"redshift",spark:"spark",sqlite:"sqlite",sql:"sql",tidb:"tidb",trino:"trino",transactsql:"transactsql",tsql:"transactsql",singlestoredb:"singlestoredb",snowflake:"snowflake"},zhe=Object.keys(Ghe),Khe={tabWidth:2,useTabs:!1,keywordCase:"preserve",identifierCase:"preserve",dataTypeCase:"preserve",functionCase:"preserve",indentStyle:"standard",logicalOperatorNewline:"before",expressionWidth:50,linesBetweenQueries:1,denseOperators:!1,newlineBeforeSemicolon:!1},Yhe=(e,t={})=>{if("string"==typeof t.language&&!zhe.includes(t.language))throw new Vhe(`Unsupported SQL dialect: ${t.language}`);const i=Ghe[t.language||"sql"];return qhe(e,Mae(xae({},t),{dialect:Pae[i]}))},qhe=(e,t)=>{var i=t,{dialect:n}=i,o=((e,t)=>{var i={};for(var n in e)kae.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&Nae)for(var n of Nae(e))t.indexOf(n)<0&&Dae.call(e,n)&&(i[n]=e[n]);return i})(i,["dialect"]);if("string"!=typeof e)throw new Error("Invalid query argument. Expected string, instead got "+typeof e);const s=function(e){const t=["multilineLists","newlineBeforeOpenParen","newlineBeforeCloseParen","aliasAs","commaPosition","tabulateAlias"];for(const n of t)if(n in e)throw new Vhe(`${n} config is no more supported.`);if(e.expressionWidth<=0)throw new Vhe(`expressionWidth config must be positive number. Received ${e.expressionWidth} instead.`);var i;return e.params&&((i=e.params)instanceof Array?i:Object.values(i)).every((e=>"string"==typeof e)),e}(xae(xae({},Khe),o));return new class{constructor(e,t){this.dialect=e,this.cfg=t,this.params=new class{constructor(e){this.params=e,this.index=0}get({key:e,text:t}){return this.params?e?this.params[e]:this.params[this.index++]:t}getPositionalParameterIndex(){return this.index}setPositionalParameterIndex(e){this.index=e}}(this.cfg.params)}format(e){const t=this.parse(e);return this.formatAst(t).trimEnd()}parse(e){return function(e){let t={};const i=new Ehe((i=>{return[...(n=e.tokenize(i,t),n.map(uhe).map(ghe).map(mhe).map(phe).map(fhe)),jae(i.length)];var n})),n=new khe(Dhe.fromCompiled(Nhe),{lexer:i});return{parse:(e,i)=>{t=i;const{results:o}=n.feed(e);if(1===o.length)return o[0];throw 0===o.length?new Error("Parse error: Invalid SQL"):new Error(`Parse error: Ambiguous grammar\n${JSON.stringify(o,void 0,2)}`)}}}(this.dialect.tokenizer).parse(e,this.cfg.paramTypes||{})}formatAst(e){return e.map((e=>this.formatStatement(e))).join("\n".repeat(this.cfg.linesBetweenQueries+1))}formatStatement(e){const t=new class e{constructor({cfg:e,dialectCfg:t,params:i,layout:n,inline:o=!1}){this.inline=!1,this.nodes=[],this.index=-1,this.cfg=e,this.dialectCfg=t,this.inline=o,this.params=i,this.layout=n}format(e){for(this.nodes=e,this.index=0;this.index{this.layout.add(this.showFunctionKw(e.nameKw))})),this.formatNode(e.parenthesis)}formatParameterizedDataType(e){this.withComments(e.dataType,(()=>{this.layout.add(this.showDataType(e.dataType))})),this.formatNode(e.parenthesis)}formatArraySubscript(e){let t;switch(e.array.type){case"data_type":t=this.showDataType(e.array);break;case"keyword":t=this.showKw(e.array);break;default:t=this.showIdentifier(e.array)}this.withComments(e.array,(()=>{this.layout.add(t)})),this.formatNode(e.parenthesis)}formatPropertyAccess(e){this.formatNode(e.object),this.layout.add(1,e.operator),this.formatNode(e.property)}formatParenthesis(e){const t=this.formatInlineExpression(e.children);t?(this.layout.add(e.openParen),this.layout.add(...t.getLayoutItems()),this.layout.add(1,e.closeParen,0)):(this.layout.add(e.openParen,3),hhe(this.cfg)?(this.layout.add(5),this.layout=this.formatSubExpression(e.children)):(this.layout.indentation.increaseBlockLevel(),this.layout.add(5),this.layout=this.formatSubExpression(e.children),this.layout.indentation.decreaseBlockLevel()),this.layout.add(3,5,e.closeParen,0))}formatBetweenPredicate(e){this.layout.add(this.showKw(e.betweenKw),0),this.layout=this.formatSubExpression(e.expr1),this.layout.add(1,0,this.showNonTabularKw(e.andKw),0),this.layout=this.formatSubExpression(e.expr2),this.layout.add(0)}formatCaseExpression(e){this.formatNode(e.caseKw),this.layout.indentation.increaseBlockLevel(),this.layout=this.formatSubExpression(e.expr),this.layout=this.formatSubExpression(e.clauses),this.layout.indentation.decreaseBlockLevel(),this.layout.add(3,5),this.formatNode(e.endKw)}formatCaseWhen(e){this.layout.add(3,5),this.formatNode(e.whenKw),this.layout=this.formatSubExpression(e.condition),this.formatNode(e.thenKw),this.layout=this.formatSubExpression(e.result)}formatCaseElse(e){this.layout.add(3,5),this.formatNode(e.elseKw),this.layout=this.formatSubExpression(e.result)}formatClause(e){this.isOnelineClause(e)?this.formatClauseInOnelineStyle(e):hhe(this.cfg)?this.formatClauseInTabularStyle(e):this.formatClauseInIndentedStyle(e)}isOnelineClause(e){return hhe(this.cfg)?this.dialectCfg.tabularOnelineClauses[e.nameKw.text]:this.dialectCfg.onelineClauses[e.nameKw.text]}formatClauseInIndentedStyle(e){this.layout.add(3,5,this.showKw(e.nameKw),3),this.layout.indentation.increaseTopLevel(),this.layout.add(5),this.layout=this.formatSubExpression(e.children),this.layout.indentation.decreaseTopLevel()}formatClauseInOnelineStyle(e){this.layout.add(3,5,this.showKw(e.nameKw),0),this.layout=this.formatSubExpression(e.children)}formatClauseInTabularStyle(e){this.layout.add(3,5,this.showKw(e.nameKw),0),this.layout.indentation.increaseTopLevel(),this.layout=this.formatSubExpression(e.children),this.layout.indentation.decreaseTopLevel()}formatSetOperation(e){this.layout.add(3,5,this.showKw(e.nameKw),3),this.layout.add(5),this.layout=this.formatSubExpression(e.children)}formatLimitClause(e){this.withComments(e.limitKw,(()=>{this.layout.add(3,5,this.showKw(e.limitKw))})),this.layout.indentation.increaseTopLevel(),hhe(this.cfg)?this.layout.add(0):this.layout.add(3,5),e.offset?(this.layout=this.formatSubExpression(e.offset),this.layout.add(1,",",0),this.layout=this.formatSubExpression(e.count)):this.layout=this.formatSubExpression(e.count),this.layout.indentation.decreaseTopLevel()}formatAllColumnsAsterisk(e){this.layout.add("*",0)}formatLiteral(e){this.layout.add(e.text,0)}formatIdentifier(e){this.layout.add(this.showIdentifier(e),0)}formatParameter(e){this.layout.add(this.params.get(e),0)}formatOperator({text:e}){this.cfg.denseOperators||this.dialectCfg.alwaysDenseOperators.includes(e)?this.layout.add(1,e):":"===e?this.layout.add(1,e,0):this.layout.add(e,0)}formatComma(e){this.inline?this.layout.add(1,",",0):this.layout.add(1,",",3,5)}withComments(e,t){this.formatComments(e.leadingComments),t(),this.formatComments(e.trailingComments)}formatComments(e){e&&e.forEach((e=>{"line_comment"===e.type?this.formatLineComment(e):this.formatBlockComment(e)}))}formatLineComment(e){Ude(e.precedingWhitespace||"")?this.layout.add(3,5,e.text,4,5):this.layout.getLayoutItems().length>0?this.layout.add(2,0,e.text,4,5):this.layout.add(e.text,4,5)}formatBlockComment(e){"block_comment"===e.type&&this.isMultilineBlockComment(e)?(this.splitBlockComment(e.text).forEach((e=>{this.layout.add(3,5,e)})),this.layout.add(3,5)):this.layout.add(e.text,0)}isMultilineBlockComment(e){return Ude(e.text)||Ude(e.precedingWhitespace||"")}isDocComment(e){const t=e.split(/\n/);return/^\/\*\*?$/.test(t[0])&&t.slice(1,t.length-1).every((e=>/^\s*\*/.test(e)))&&/^\s*\*\/$/.test(Bde(t))}splitBlockComment(e){return this.isDocComment(e)?e.split(/\n/).map((e=>/^\s*\*/.test(e)?" "+e.replace(/^\s*/,""):e)):e.split(/\n/).map((e=>e.replace(/^\s*/,"")))}formatSubExpression(t){return new e({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:this.layout,inline:this.inline}).format(t)}formatInlineExpression(t){const i=this.params.getPositionalParameterIndex();try{return new e({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:new Whe(this.cfg.expressionWidth),inline:!0}).format(t)}catch(n){if(n instanceof Uhe)return void this.params.setPositionalParameterIndex(i);throw n}}formatKeywordNode(e){switch(e.tokenType){case"RESERVED_JOIN":return this.formatJoin(e);case"AND":case"OR":case"XOR":return this.formatLogicalOperator(e);default:return this.formatKeyword(e)}}formatJoin(e){hhe(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(3,5,this.showKw(e),0),this.layout.indentation.increaseTopLevel()):this.layout.add(3,5,this.showKw(e),0)}formatKeyword(e){this.layout.add(this.showKw(e),0)}formatLogicalOperator(e){"before"===this.cfg.logicalOperatorNewline?hhe(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(3,5,this.showKw(e),0),this.layout.indentation.increaseTopLevel()):this.layout.add(3,5,this.showKw(e),0):this.layout.add(this.showKw(e),3,5)}formatDataType(e){this.layout.add(this.showDataType(e),0)}showKw(e){return Fhe(e.tokenType)?Phe(this.showNonTabularKw(e),this.cfg.indentStyle):this.showNonTabularKw(e)}showNonTabularKw(e){switch(this.cfg.keywordCase){case"preserve":return Wde(e.raw);case"upper":return e.text;case"lower":return e.text.toLowerCase()}}showFunctionKw(e){return Fhe(e.tokenType)?Phe(this.showNonTabularFunctionKw(e),this.cfg.indentStyle):this.showNonTabularFunctionKw(e)}showNonTabularFunctionKw(e){switch(this.cfg.functionCase){case"preserve":return Wde(e.raw);case"upper":return e.text;case"lower":return e.text.toLowerCase()}}showIdentifier(e){if(e.quoted)return e.text;switch(this.cfg.identifierCase){case"preserve":return e.text;case"upper":return e.text.toUpperCase();case"lower":return e.text.toLowerCase()}}showDataType(e){switch(this.cfg.dataTypeCase){case"preserve":return Wde(e.raw);case"upper":return e.text;case"lower":return e.text.toLowerCase()}}}({cfg:this.cfg,dialectCfg:this.dialect.formatOptions,params:this.params,layout:new Ohe(new Hhe((i=this.cfg,"tabularLeft"===i.indentStyle||"tabularRight"===i.indentStyle?" ".repeat(10):i.useTabs?"\t":" ".repeat(i.tabWidth))))}).format(e.children);var i;return e.hasSemicolon&&(this.cfg.newlineBeforeSemicolon?t.add(3,";"):t.add(2,";")),t.toString()}}((e=>{let t=che.get(e);return t||(t=(e=>({tokenizer:new ahe(e.tokenizerOptions,e.name),formatOptions:dhe(e.formatOptions)}))(e),che.set(e,t)),t})(n),s).format(e)};function $he(){return new Worker(""+new URL("editor.worker-4762abe0.js",import.meta.url).href)}function jhe(){return new Worker(""+new URL("json.worker-5fb42468.js",import.meta.url).href)}function Xhe(){return new Worker(""+new URL("ts.worker-127fe440.js",import.meta.url).href)}function Jhe(){return new Worker(""+new URL("html.worker-4efddbf4.js",import.meta.url).href)}const Qhe={__name:"EditorWorker",setup:e=>(self.MonacoEnvironment={getWorker:(e,t)=>"json"===t?new jhe:"typescript"===t||"javascript"===t?new Xhe:"html"===t?new Jhe:new $he},(e,t)=>null)},Zhe={__name:"index",props:{height:{type:Number,default:500},editorConfig:{type:Object,default:()=>({})},callWords:{type:Array,default:()=>[]}},setup(e,{expose:t}){const i=e,{height:g,editorConfig:m,callWords:p}=n(i),f=o(null);let _=null,b=null;return s((()=>{(()=>{_=eJ.create(f.value,{theme:"vs-dark",language:"sql",value:"",renderLineHighlight:"gutter",automaticLayout:!0,codeLens:!0,colorDecorators:!0,...m.value}),_.focus();const e=["editor.action.changeAll","editor.action.quickCommand"],t=_.getContribution("editor.contrib.contextmenu"),i=t._getMenuActions;t._getMenuActions=function(){return i.apply(t,arguments).filter((function(t){return!e.includes(t.id)}))},_.addAction({id:"format.sql",label:"格式化文档",precondition:null,contextMenuGroupId:"navigation",contextMenuOrder:1,keybindings:[KX.Alt|KX.Shift|zX.KeyF,KX.chord(KX.Alt|KX.Shift|zX.KeyF)],run:function(){_.setValue(Yhe(_.getValue()))}}),_.addAction({id:"formart.select",label:"格式化选定内容",precondition:null,contextMenuGroupId:"navigation",contextMenuOrder:2,run:function(){const e=_.getSelection(),t=_.getModel().getValueInRange(e);_.executeEdits("format",[{range:e,text:Yhe(t),forceMoveMarkers:!0}])}}),b=tJ.registerCompletionItemProvider("sql",{provideCompletionItems:(e,t)=>{var i=e.getWordUntilPosition(t),n={startLineNumber:t.lineNumber,endLineNumber:t.lineNumber,startColumn:i.startColumn,endColumn:i.endColumn};let o=[];const s=wae.keywords.map((e=>({type:"Keyword",value:e})));return[...p.value,...s].map((e=>{o.push({label:e.value,kind:tJ.CompletionItemKind[e.type],insertText:e.value+" ",detail:"Keyword"==e.type?"内置关键字":"Field"==e.type?"表字段":"表名称",range:n})})),{suggestions:[...o]}}})})()})),r((()=>{_.dispose(),b.dispose()})),t({getSelect:()=>_.getModel().getValueInRange(_.getSelection()),formartSql:()=>{_.setValue(Yhe(_.getValue()))},getContent:()=>_.getValue(),setValue:e=>_.setValue(e)}),(e,t)=>(a(),l("div",null,[c("div",{ref_key:"editRef",ref:f,style:d({width:"100%",height:`${h(g)}px`})},null,4),u(h(Qhe))]))}},eue={class:"component-container"},tue=c("strong",null,"可以在编辑器中输入age、name、sex、居住地址、tb_ksjk_sdlkkjfoe_fdds、tb_123_33进行效果测试",-1),iue=c("strong",null,"已内置sql关键字300+",-1),nue={__name:"index",setup(e){const t=o(null),i=[{type:"Field",value:"name"},{type:"Field",value:"age"},{type:"Field",value:"sex"},{type:"Field",value:"居住地址"},{type:"Constant",value:"tb_ksjk_sdlkkjfoe_fdds"},{type:"Constant",value:"tb_123_33"}],n=o("SELECT \n e.employee_id,\n e.first_name,\n e.last_name,\n d.department_name,\n j.job_title,\n a.city,\n c.country_name,\n r.region_name,\n COUNT(DISTINCT o.order_id) AS total_orders,\n SUM(o.order_total) AS total_sales\nFROM \n employees e\nJOIN \n departments d ON e.department_id = d.department_id\nJOIN \n jobs j ON e.job_id = j.job_id\nJOIN \n locations l ON d.location_id = l.location_id\nJOIN \n countries c ON l.country_id = c.country_id\nJOIN \n regions r ON c.region_id = r.region_id\nJOIN \n (SELECT \n employee_id,\n city\n FROM \n addresses\n WHERE \n address_type = 'PRIMARY') a ON e.employee_id = a.employee_id\nLEFT JOIN \n orders o ON e.employee_id = o.employee_id\nWHERE \n e.hire_date BETWEEN '2000-01-01' AND '2020-12-31'\n AND j.job_title NOT IN ('Intern', 'Trainee')\nGROUP BY \n e.employee_id,\n e.first_name,\n e.last_name,\n d.department_name,\n j.job_title,\n a.city,\n c.country_name,\n r.region_name\nHAVING \n total_orders > 100\n AND total_sales > 100000\nORDER BY \n total_sales DESC"),r=()=>{t.value.getContent()},c=()=>{t.value.formartSql()},d=()=>{t.value.getSelect()};return s((()=>{g((()=>{t.value.setValue(n.value)}))})),(e,n)=>{const o=m("el-alert"),s=m("el-button");return a(),l("div",eue,[u(o,{title:"内置功能",type:"success"},{default:p((()=>[f(" 代码格式化、选中代码格式化、自定义右键菜单、代码获取、选中代码获取、剪切、复制、粘贴、自定义代码提示("),tue,f(")、以及sql关键字提示等("),iue,f(") ")])),_:1}),u(s,{onClick:r},{default:p((()=>[f("获取代码")])),_:1}),u(s,{onClick:c},{default:p((()=>[f("格式化sql")])),_:1}),u(s,{onClick:d},{default:p((()=>[f("获取选中的")])),_:1}),u(h(Zhe),{ref_key:"editRef",ref:t,height:700,"call-words":i},null,512)])}}},oue=Object.freeze(Object.defineProperty({__proto__:null,default:nue},Symbol.toStringTag,{value:"Module"}));export{oue as i,nJ as m,rQ as t}; diff --git a/assets/index-8c106f3c.js b/assets/index-8c106f3c.js new file mode 100644 index 0000000..3fb3ad1 --- /dev/null +++ b/assets/index-8c106f3c.js @@ -0,0 +1,27 @@ +function e(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[e.toLowerCase()]:e=>!!n[e]}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const t={},n=[],r=()=>{},o=()=>!1,l=/^on[^a-z]/,a=e=>l.test(e),i=e=>e.startsWith("onUpdate:"),s=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},c=Object.prototype.hasOwnProperty,d=(e,t)=>c.call(e,t),p=Array.isArray,f=e=>"[object Map]"===k(e),v=e=>"[object Set]"===k(e),h=e=>"[object Date]"===k(e),m=e=>"[object RegExp]"===k(e),g=e=>"function"==typeof e,y=e=>"string"==typeof e,b=e=>"symbol"==typeof e,w=e=>null!==e&&"object"==typeof e,x=e=>w(e)&&g(e.then)&&g(e.catch),C=Object.prototype.toString,k=e=>C.call(e),S=e=>k(e).slice(8,-1),_=e=>"[object Object]"===k(e),E=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,O=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),M=e("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),z=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},T=/-(\w)/g,A=z((e=>e.replace(T,((e,t)=>t?t.toUpperCase():"")))),L=/\B([A-Z])/g,I=z((e=>e.replace(L,"-$1").toLowerCase())),R=z((e=>e.charAt(0).toUpperCase()+e.slice(1))),P=z((e=>e?`on${R(e)}`:"")),N=(e,t)=>!Object.is(e,t),j=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},B=e=>{const t=parseFloat(e);return isNaN(t)?e:t},H=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let D;const $=()=>D||(D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),F=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/,W={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},U=e("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console");function K(e){if(p(e)){const t={};for(let n=0;n{if(e){const n=e.split(Y);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function X(e){let t="";if(y(e))t=e;else if(p(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,ie={},se=e("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),ue=e("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),ce=/["'&<>]/,de=/^-?>||--!>|pe(e,t)))}const ve=e=>y(e)?e:null==e?"":p(e)||w(e)&&(e.toString===C||!g(e.toString))?JSON.stringify(e,he,2):String(e),he=(e,t)=>t&&t.__v_isRef?he(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()]}:!w(t)||p(t)||_(t)?t:String(t),me=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:n,EMPTY_OBJ:t,NO:o,NOOP:r,PatchFlagNames:W,camelize:A,capitalize:R,def:V,escapeHtml:function(e){const t=""+e,n=ce.exec(t);if(!n)return t;let r,o,l="",a=0;for(o=n.index;ot%2==1));r=r.filter(((e,t)=>t%2==0));let l=0;const a=[];for(let i=0;i=t){for(let e=i-2;e<=i+2||n>l;e++){if(e<0||e>=r.length)continue;const s=e+1;a.push(`${s}${" ".repeat(Math.max(3-String(s).length,0))}| ${r[e]}`);const u=r[e].length,c=o[e]&&o[e].length||0;if(e===i){const e=t-(l-(u+c)),r=Math.max(1,n>l?u-e:n-t);a.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(e>i){if(n>l){const e=Math.max(Math.min(n-l,u),1);a.push(" | "+"^".repeat(e))}l+=u+c}}break}return a.join("\n")},getGlobalThis:$,hasChanged:N,hasOwn:d,hyphenate:I,includeBooleanAttr:le,invokeArrayFns:j,isArray:p,isBooleanAttr:oe,isBuiltInDirective:M,isDate:h,isFunction:g,isGloballyWhitelisted:U,isHTMLTag:Z,isIntegerKey:E,isKnownHtmlAttr:se,isKnownSvgAttr:ue,isMap:f,isModelListener:i,isObject:w,isOn:a,isPlainObject:_,isPromise:x,isRegExp:m,isReservedProp:O,isSSRSafeAttrName:function(e){if(ie.hasOwnProperty(e))return ie[e];const t=ae.test(e);return ie[e]=!t},isSVGTag:ee,isSet:v,isSpecialBooleanAttr:re,isString:y,isSymbol:b,isVoidTag:te,looseEqual:pe,looseIndexOf:fe,looseToNumber:B,makeMap:e,normalizeClass:X,normalizeProps:Q,normalizeStyle:K,objectToString:C,parseStringStyle:J,propsToAttrMap:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},remove:u,slotFlagsText:{1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},stringifyStyle:function(e){let t="";if(!e||y(e))return t;for(const n in e){const r=e[n],o=n.startsWith("--")?n:I(n);(y(r)||"number"==typeof r)&&(t+=`${o}:${r};`)}return t},toDisplayString:ve,toHandlerKey:P,toNumber:H,toRawType:S,toTypeString:k},Symbol.toStringTag,{value:"Module"}));let ge;class ye{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ge,!e&&ge&&(this.index=(ge.scopes||(ge.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=ge;try{return ge=this,e()}finally{ge=t}}}on(){ge=this}off(){ge=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},Se=e=>(e.w&Me)>0,_e=e=>(e.n&Me)>0,Ee=new WeakMap;let Oe=0,Me=1;const ze=30;let Te;const Ae=Symbol(""),Le=Symbol("");class Ie{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,we(this,n)}run(){if(!this.active)return this.fn();let e=Te,t=Pe;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Te,Te=this,Pe=!0,Me=1<<++Oe,Oe<=ze?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{("length"===n||n>=e)&&i.push(t)}))}else switch(void 0!==n&&i.push(a.get(n)),t){case"add":p(e)?E(n)&&i.push(a.get("length")):(i.push(a.get(Ae)),f(e)&&i.push(a.get(Le)));break;case"delete":p(e)||(i.push(a.get(Ae)),f(e)&&i.push(a.get(Le)));break;case"set":f(e)&&i.push(a.get(Ae))}if(1===i.length)i[0]&&$e(i[0]);else{const e=[];for(const t of i)t&&e.push(...t);$e(ke(e))}}function $e(e,t){const n=p(e)?e:[...e];for(const r of n)r.computed&&Fe(r);for(const r of n)r.computed||Fe(r)}function Fe(e,t){(e!==Te||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const We=e("__proto__,__v_isRef,__isVue"),Ue=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(b)),Ke=Qe(),qe=Qe(!1,!0),Ye=Qe(!0),Ge=Qe(!0,!0),Je=function(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=jt(this);for(let t=0,o=this.length;t{e[t]=function(...e){je();const n=jt(this)[t].apply(this,e);return Ve(),n}})),e}();function Xe(e){const t=jt(this);return Be(t,0,e),t.hasOwnProperty(e)}function Qe(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&o===(e?t?Mt:Ot:t?Et:_t).get(n))return n;const l=p(n);if(!e){if(l&&d(Je,r))return Reflect.get(Je,r,o);if("hasOwnProperty"===r)return Xe}const a=Reflect.get(n,r,o);return(b(r)?Ue.has(r):We(r))?a:(e||Be(n,0,r),t?a:Ft(a)?l&&E(r)?a:a.value:w(a)?e?At(a):zt(a):a)}}function Ze(e=!1){return function(t,n,r,o){let l=t[n];if(Rt(l)&&Ft(l)&&!Ft(r))return!1;if(!e&&(Pt(r)||Rt(r)||(l=jt(l),r=jt(r)),!p(t)&&Ft(l)&&!Ft(r)))return l.value=r,!0;const a=p(t)&&E(n)?Number(n)!0,deleteProperty:(e,t)=>!0},nt=s({},et,{get:qe,set:Ze(!0)}),rt=s({},tt,{get:Ge}),ot=e=>e,lt=e=>Reflect.getPrototypeOf(e);function at(e,t,n=!1,r=!1){const o=jt(e=e.__v_raw),l=jt(t);n||(t!==l&&Be(o,0,t),Be(o,0,l));const{has:a}=lt(o),i=r?ot:n?Ht:Bt;return a.call(o,t)?i(e.get(t)):a.call(o,l)?i(e.get(l)):void(e!==o&&e.get(t))}function it(e,t=!1){const n=this.__v_raw,r=jt(n),o=jt(e);return t||(e!==o&&Be(r,0,e),Be(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function st(e,t=!1){return e=e.__v_raw,!t&&Be(jt(e),0,Ae),Reflect.get(e,"size",e)}function ut(e){e=jt(e);const t=jt(this);return lt(t).has.call(t,e)||(t.add(e),De(t,"add",e,e)),this}function ct(e,t){t=jt(t);const n=jt(this),{has:r,get:o}=lt(n);let l=r.call(n,e);l||(e=jt(e),l=r.call(n,e));const a=o.call(n,e);return n.set(e,t),l?N(t,a)&&De(n,"set",e,t):De(n,"add",e,t),this}function dt(e){const t=jt(this),{has:n,get:r}=lt(t);let o=n.call(t,e);o||(e=jt(e),o=n.call(t,e)),r&&r.call(t,e);const l=t.delete(e);return o&&De(t,"delete",e,void 0),l}function pt(){const e=jt(this),t=0!==e.size,n=e.clear();return t&&De(e,"clear",void 0,void 0),n}function ft(e,t){return function(n,r){const o=this,l=o.__v_raw,a=jt(l),i=t?ot:e?Ht:Bt;return!e&&Be(a,0,Ae),l.forEach(((e,t)=>n.call(r,i(e),i(t),o)))}}function vt(e,t,n){return function(...r){const o=this.__v_raw,l=jt(o),a=f(l),i="entries"===e||e===Symbol.iterator&&a,s="keys"===e&&a,u=o[e](...r),c=n?ot:t?Ht:Bt;return!t&&Be(l,0,s?Le:Ae),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:i?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function ht(e){return function(...t){return"delete"!==e&&this}}const[mt,gt,yt,bt]=function(){const e={get(e){return at(this,e)},get size(){return st(this)},has:it,add:ut,set:ct,delete:dt,clear:pt,forEach:ft(!1,!1)},t={get(e){return at(this,e,!1,!0)},get size(){return st(this)},has:it,add:ut,set:ct,delete:dt,clear:pt,forEach:ft(!1,!0)},n={get(e){return at(this,e,!0)},get size(){return st(this,!0)},has(e){return it.call(this,e,!0)},add:ht("add"),set:ht("set"),delete:ht("delete"),clear:ht("clear"),forEach:ft(!0,!1)},r={get(e){return at(this,e,!0,!0)},get size(){return st(this,!0)},has(e){return it.call(this,e,!0)},add:ht("add"),set:ht("set"),delete:ht("delete"),clear:ht("clear"),forEach:ft(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=vt(o,!1,!1),n[o]=vt(o,!0,!1),t[o]=vt(o,!1,!0),r[o]=vt(o,!0,!0)})),[e,n,t,r]}();function wt(e,t){const n=t?e?bt:yt:e?gt:mt;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(d(n,r)&&r in t?n:t,r,o)}const xt={get:wt(!1,!1)},Ct={get:wt(!1,!0)},kt={get:wt(!0,!1)},St={get:wt(!0,!0)},_t=new WeakMap,Et=new WeakMap,Ot=new WeakMap,Mt=new WeakMap;function zt(e){return Rt(e)?e:Lt(e,!1,et,xt,_t)}function Tt(e){return Lt(e,!1,nt,Ct,Et)}function At(e){return Lt(e,!0,tt,kt,Ot)}function Lt(e,t,n,r,o){if(!w(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const l=o.get(e);if(l)return l;const a=(i=e).__v_skip||!Object.isExtensible(i)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(S(i));var i;if(0===a)return e;const s=new Proxy(e,2===a?r:n);return o.set(e,s),s}function It(e){return Rt(e)?It(e.__v_raw):!(!e||!e.__v_isReactive)}function Rt(e){return!(!e||!e.__v_isReadonly)}function Pt(e){return!(!e||!e.__v_isShallow)}function Nt(e){return It(e)||Rt(e)}function jt(e){const t=e&&e.__v_raw;return t?jt(t):e}function Vt(e){return V(e,"__v_skip",!0),e}const Bt=e=>w(e)?zt(e):e,Ht=e=>w(e)?At(e):e;function Dt(e){Pe&&Te&&He((e=jt(e)).dep||(e.dep=ke()))}function $t(e,t){const n=(e=jt(e)).dep;n&&$e(n)}function Ft(e){return!(!e||!0!==e.__v_isRef)}function Wt(e){return Kt(e,!1)}function Ut(e){return Kt(e,!0)}function Kt(e,t){return Ft(e)?e:new qt(e,t)}class qt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:jt(e),this._value=t?e:Bt(e)}get value(){return Dt(this),this._value}set value(e){const t=this.__v_isShallow||Pt(e)||Rt(e);e=t?e:jt(e),N(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Bt(e),$t(this))}}function Yt(e){$t(e)}function Gt(e){return Ft(e)?e.value:e}const Jt={get:(e,t,n)=>Gt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ft(o)&&!Ft(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Xt(e){return It(e)?e:new Proxy(e,Jt)}class Qt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Dt(this)),(()=>$t(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Zt(e){return new Qt(e)}function en(e){const t=p(e)?new Array(e.length):{};for(const n in e)t[n]=on(e,n);return t}class tn{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=jt(this._object),t=this._key,null==(n=Ee.get(e))?void 0:n.get(t);var e,t,n}}class nn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function rn(e,t,n){return Ft(e)?e:g(e)?new nn(e):w(e)&&arguments.length>1?on(e,t,n):Wt(e)}function on(e,t,n){const r=e[t];return Ft(r)?r:new tn(e,t,n)}class ln{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ie(e,(()=>{this._dirty||(this._dirty=!0,$t(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=jt(this);return Dt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function an(e,t,n=!1){let o,l;const a=g(e);return a?(o=e,l=r):(o=e.get,l=e.set),new ln(o,l,a||!l,n)}function sn(e,t,n,r){let o;try{o=r?e(...r):e()}catch(l){cn(l,t,n)}return o}function un(e,t,n,r){if(g(e)){const o=sn(e,t,n,r);return o&&x(o)&&o.catch((e=>{cn(e,t,n)})),o}const o=[];for(let l=0;l>>1;En(fn[r])En(e)-En(t))),gn=0;gnnull==e.id?1/0:e.id,On=(e,t)=>{const n=En(e)-En(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Mn(e){pn=!1,dn=!0,fn.sort(On);try{for(vn=0;vny(e)?e.trim():e))),n&&(l=r.map(B))}let s,u=o[s=P(n)]||o[s=P(A(n))];!u&&a&&(u=o[s=P(I(n))]),u&&un(u,e,6,l);const c=o[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,un(c,e,6,l)}}function Ln(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const l=e.emits;let a={},i=!1;if(!g(e)){const r=e=>{const n=Ln(e,t,!0);n&&(i=!0,s(a,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return l||i?(p(l)?l.forEach((e=>a[e]=null)):s(a,l),w(e)&&r.set(e,a),a):(w(e)&&r.set(e,null),null)}function In(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),d(e,t[0].toLowerCase()+t.slice(1))||d(e,I(t))||d(e,t))}let Rn=null,Pn=null;function Nn(e){const t=Rn;return Rn=e,Pn=e&&e.type.__scopeId||null,t}function jn(e){Pn=e}function Vn(){Pn=null}function Bn(e,t=Rn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&gl(-1);const o=Nn(t);let l;try{l=e(...n)}finally{Nn(o),r._d&&gl(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function Hn(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:l,propsOptions:[a],slots:s,attrs:u,emit:c,render:d,renderCache:p,data:f,setupState:v,ctx:h,inheritAttrs:m}=e;let g,y;const b=Nn(e);try{if(4&n.shapeFlag){const e=o||r;g=Il(d.call(e,e,p,l,v,f,h)),y=u}else{const e=t;g=Il(e.length>1?e(l,{attrs:u,slots:s,emit:c}):e(l,null)),y=t.props?u:Dn(u)}}catch(x){pl.length=0,cn(x,e,1),g=Ol(cl)}let w=g;if(y&&!1!==m){const e=Object.keys(y),{shapeFlag:t}=w;e.length&&7&t&&(a&&e.some(i)&&(y=$n(y,a)),w=zl(w,y))}return n.dirs&&(w=zl(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),g=w,Nn(b),g}const Dn=e=>{let t;for(const n in e)("class"===n||"style"===n||a(n))&&((t||(t={}))[n]=e[n]);return t},$n=(e,t)=>{const n={};for(const r in e)i(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Fn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;oe.__isSuspense,Kn={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,l,a,i,s,u){null==e?function(e,t,n,r,o,l,a,i,s){const{p:u,o:{createElement:c}}=s,d=c("div"),p=e.suspense=Gn(e,o,r,t,d,n,l,a,i,s);u(null,p.pendingBranch=e.ssContent,d,null,r,p,l,a),p.deps>0?(Yn(e,"onPending"),Yn(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,l,a),Qn(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,r,o,l,a,i,s,u):function(e,t,n,r,o,l,a,i,{p:s,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:v,pendingBranch:h,isInFallback:m,isHydrating:g}=d;if(h)d.pendingBranch=p,Cl(p,h)?(s(h,p,d.hiddenContainer,null,o,d,l,a,i),d.deps<=0?d.resolve():m&&(s(v,f,n,r,o,null,l,a,i),Qn(d,f))):(d.pendingId++,g?(d.isHydrating=!1,d.activeBranch=h):u(h,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),m?(s(null,p,d.hiddenContainer,null,o,d,l,a,i),d.deps<=0?d.resolve():(s(v,f,n,r,o,null,l,a,i),Qn(d,f))):v&&Cl(p,v)?(s(v,p,n,r,o,d,l,a,i),d.resolve(!0)):(s(null,p,d.hiddenContainer,null,o,d,l,a,i),d.deps<=0&&d.resolve()));else if(v&&Cl(p,v))s(v,p,n,r,o,d,l,a,i),Qn(d,p);else if(Yn(t,"onPending"),d.pendingBranch=p,d.pendingId++,s(null,p,d.hiddenContainer,null,o,d,l,a,i),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(f)}),e):0===e&&d.fallback(f)}}(e,t,n,r,o,a,i,s,u)},hydrate:function(e,t,n,r,o,l,a,i,s){const u=t.suspense=Gn(t,r,n,e.parentNode,document.createElement("div"),null,o,l,a,i,!0),c=s(e,u.pendingBranch=t.ssContent,n,u,l,a);return 0===u.deps&&u.resolve(!1,!0),c},create:Gn,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=Jn(r?n.default:n),e.ssFallback=r?Jn(n.fallback):Ol(cl)}},qn=Kn;function Yn(e,t){const n=e.props&&e.props[t];g(n)&&n()}function Gn(e,t,n,r,o,l,a,i,s,u,c=!1){const{p:d,m:p,um:f,n:v,o:{parentNode:h,remove:m}}=u;let g;const y=null!=(null==(w=(b=e).props)?void 0:w.suspensible)&&!1!==b.props.suspensible;var b,w;y&&(null==t?void 0:t.pendingBranch)&&(g=t.pendingId,t.deps++);const x=e.props?H(e.props.timeout):void 0,C={vnode:e,parent:t,parentComponent:n,isSVG:a,container:r,hiddenContainer:o,anchor:l,deps:0,pendingId:0,timeout:"number"==typeof x?x:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:c,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:o,pendingBranch:l,pendingId:a,effects:i,parentComponent:s,container:u}=C;if(C.isHydrating)C.isHydrating=!1;else if(!e){const e=o&&l.transition&&"out-in"===l.transition.mode;e&&(o.transition.afterLeave=()=>{a===C.pendingId&&p(l,u,t,0)});let{anchor:t}=C;o&&(t=v(o),f(o,s,C,!0)),e||p(l,u,t,0)}Qn(C,l),C.pendingBranch=null,C.isInFallback=!1;let c=C.parent,d=!1;for(;c;){if(c.pendingBranch){c.effects.push(...i),d=!0;break}c=c.parent}d||kn(i),C.effects=[],y&&t&&t.pendingBranch&&g===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Yn(r,"onResolve")},fallback(e){if(!C.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,isSVG:l}=C;Yn(t,"onFallback");const a=v(n),u=()=>{C.isInFallback&&(d(null,e,o,a,r,null,l,i,s),Qn(C,e))},c=e.transition&&"out-in"===e.transition.mode;c&&(n.transition.afterLeave=u),C.isInFallback=!0,f(n,r,null,!0),c||u()},move(e,t,n){C.activeBranch&&p(C.activeBranch,e,t,n),C.container=e},next:()=>C.activeBranch&&v(C.activeBranch),registerDep(e,t){const n=!!C.pendingBranch;n&&C.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{cn(t,e,0)})).then((o=>{if(e.isUnmounted||C.isUnmounted||C.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:l}=e;Zl(e,o,!1),r&&(l.el=r);const i=!r&&e.subTree.el;t(e,l,h(r||e.subTree.el),r?null:v(e.subTree),C,a,s),i&&m(i),Wn(e,l.el),n&&0==--C.deps&&C.resolve()}))},unmount(e,t){C.isUnmounted=!0,C.activeBranch&&f(C.activeBranch,n,e,t),C.pendingBranch&&f(C.pendingBranch,n,e,t)}};return C}function Jn(e){let t;if(g(e)){const n=ml&&e._c;n&&(e._d=!1,vl()),e=e(),n&&(e._d=!0,t=fl,hl())}if(p(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function Xn(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):kn(e)}function Qn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,Wn(r,o))}function Zn(e,t){return rr(e,null,t)}function er(e,t){return rr(e,null,{flush:"post"})}const tr={};function nr(e,t,n){return rr(e,t,n)}function rr(e,n,{immediate:o,deep:l,flush:a,onTrack:i,onTrigger:s}=t){var c;const d=xe()===(null==(c=Dl)?void 0:c.scope)?Dl:null;let f,v,h=!1,m=!1;if(Ft(e)?(f=()=>e.value,h=Pt(e)):It(e)?(f=()=>e,l=!0):p(e)?(m=!0,h=e.some((e=>It(e)||Pt(e))),f=()=>e.map((e=>Ft(e)?e.value:It(e)?ar(e):g(e)?sn(e,d,2):void 0))):f=g(e)?n?()=>sn(e,d,2):()=>{if(!d||!d.isUnmounted)return v&&v(),un(e,d,3,[b])}:r,n&&l){const e=f;f=()=>ar(e())}let y,b=e=>{v=k.onStop=()=>{sn(e,d,4)}};if(Xl){if(b=r,n?o&&un(n,d,3,[f(),m?[]:void 0,b]):f(),"sync"!==a)return r;{const e=ia();y=e.__watcherHandles||(e.__watcherHandles=[])}}let w=m?new Array(e.length).fill(tr):tr;const x=()=>{if(k.active)if(n){const e=k.run();(l||h||(m?e.some(((e,t)=>N(e,w[t]))):N(e,w)))&&(v&&v(),un(n,d,3,[e,w===tr?void 0:m&&w[0]===tr?[]:w,b]),w=e)}else k.run()};let C;x.allowRecurse=!!n,"sync"===a?C=x:"post"===a?C=()=>Go(x,d&&d.suspense):(x.pre=!0,d&&(x.id=d.uid),C=()=>xn(x));const k=new Ie(f,C);n?o?x():w=k.run():"post"===a?Go(k.run.bind(k),d&&d.suspense):k.run();const S=()=>{k.stop(),d&&d.scope&&u(d.scope.effects,k)};return y&&y.push(S),S}function or(e,t,n){const r=this.proxy,o=y(e)?e.includes(".")?lr(r,e):()=>r[e]:e.bind(r,r);let l;g(t)?l=t:(l=t.handler,n=t);const a=Dl;Kl(this);const i=rr(o,l.bind(r),n);return a?Kl(a):ql(),i}function lr(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{ar(e,t)}));else if(_(e))for(const n in e)ar(e[n],t);return e}function ir(e,n){const r=Rn;if(null===r)return e;const o=na(r)||r.proxy,l=e.dirs||(e.dirs=[]);for(let a=0;a{e.isMounted=!0})),Br((()=>{e.isUnmounting=!0})),e}const cr=[Function,Array],dr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:cr,onEnter:cr,onAfterEnter:cr,onEnterCancelled:cr,onBeforeLeave:cr,onLeave:cr,onAfterLeave:cr,onLeaveCancelled:cr,onBeforeAppear:cr,onAppear:cr,onAfterAppear:cr,onAppearCancelled:cr},pr={name:"BaseTransition",props:dr,setup(e,{slots:t}){const n=$l(),r=ur();let o;return()=>{const l=t.default&&br(t.default(),!0);if(!l||!l.length)return;let a=l[0];if(l.length>1)for(const e of l)if(e.type!==cl){a=e;break}const i=jt(e),{mode:s}=i;if(r.isLeaving)return mr(a);const u=gr(a);if(!u)return mr(a);const c=hr(u,i,r,n);yr(u,c);const d=n.subTree,p=d&&gr(d);let f=!1;const{getTransitionKey:v}=u.type;if(v){const e=v();void 0===o?o=e:e!==o&&(o=e,f=!0)}if(p&&p.type!==cl&&(!Cl(u,p)||f)){const e=hr(p,i,r,n);if(yr(p,e),"out-in"===s)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,!1!==n.update.active&&n.update()},mr(a);"in-out"===s&&u.type!==cl&&(e.delayLeave=(e,t,n)=>{vr(r,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=n})}return a}}},fr=pr;function vr(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function hr(e,t,n,r){const{appear:o,mode:l,persisted:a=!1,onBeforeEnter:i,onEnter:s,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:f,onAfterLeave:v,onLeaveCancelled:h,onBeforeAppear:m,onAppear:g,onAfterAppear:y,onAppearCancelled:b}=t,w=String(e.key),x=vr(n,e),C=(e,t)=>{e&&un(e,r,9,t)},k=(e,t)=>{const n=t[1];C(e,t),p(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},S={mode:l,persisted:a,beforeEnter(t){let r=i;if(!n.isMounted){if(!o)return;r=m||i}t._leaveCb&&t._leaveCb(!0);const l=x[w];l&&Cl(e,l)&&l.el._leaveCb&&l.el._leaveCb(),C(r,[t])},enter(e){let t=s,r=u,l=c;if(!n.isMounted){if(!o)return;t=g||s,r=y||u,l=b||c}let a=!1;const i=e._enterCb=t=>{a||(a=!0,C(t?l:r,[e]),S.delayedLeave&&S.delayedLeave(),e._enterCb=void 0)};t?k(t,[e,i]):i()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();C(d,[t]);let l=!1;const a=t._leaveCb=n=>{l||(l=!0,r(),C(n?h:v,[t]),t._leaveCb=void 0,x[o]===e&&delete x[o])};x[o]=e,f?k(f,[t,a]):a()},clone:e=>hr(e,t,n,r)};return S}function mr(e){if(kr(e))return(e=zl(e)).children=null,e}function gr(e){return kr(e)?e.children?e.children[0]:void 0:e}function yr(e,t){6&e.shapeFlag&&e.component?yr(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function br(e,t=!1,n){let r=[],o=0;for(let l=0;l1)for(let l=0;l!!e.type.__asyncLoader;function Cr(e,t){const{ref:n,props:r,children:o,ce:l}=t.vnode,a=Ol(e,r,o);return a.ref=n,a.ce=l,delete t.vnode.ce,a}const kr=e=>e.type.__isKeepAlive,Sr={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=$l(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const o=new Map,l=new Set;let a=null;const i=n.suspense,{renderer:{p:s,m:u,um:c,o:{createElement:d}}}=r,p=d("div");function f(e){Ar(e),c(e,n,i,!0)}function v(e){o.forEach(((t,n)=>{const r=ra(t.type);!r||e&&e(r)||h(n)}))}function h(e){const t=o.get(e);a&&Cl(t,a)?a&&Ar(a):f(t),o.delete(e),l.delete(e)}r.activate=(e,t,n,r,o)=>{const l=e.component;u(e,t,n,0,i),s(l.vnode,e,t,n,l,i,r,e.slotScopeIds,o),Go((()=>{l.isDeactivated=!1,l.a&&j(l.a);const t=e.props&&e.props.onVnodeMounted;t&&jl(t,l.parent,e)}),i)},r.deactivate=e=>{const t=e.component;u(e,p,null,1,i),Go((()=>{t.da&&j(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&jl(n,t.parent,e),t.isDeactivated=!0}),i)},nr((()=>[e.include,e.exclude]),(([e,t])=>{e&&v((t=>Er(e,t))),t&&v((e=>!Er(t,e)))}),{flush:"post",deep:!0});let m=null;const g=()=>{null!=m&&o.set(m,Lr(n.subTree))};return Nr(g),Vr(g),Br((()=>{o.forEach((e=>{const{subTree:t,suspense:r}=n,o=Lr(t);if(e.type!==o.type||e.key!==o.key)f(e);else{Ar(o);const e=o.component.da;e&&Go(e,r)}}))})),()=>{if(m=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return a=null,n;if(!xl(r)||!(4&r.shapeFlag||128&r.shapeFlag))return a=null,r;let i=Lr(r);const s=i.type,u=ra(xr(i)?i.type.__asyncResolved||{}:s),{include:c,exclude:d,max:p}=e;if(c&&(!u||!Er(c,u))||d&&u&&Er(d,u))return a=i,r;const f=null==i.key?s:i.key,v=o.get(f);return i.el&&(i=zl(i),128&r.shapeFlag&&(r.ssContent=i)),m=f,v?(i.el=v.el,i.component=v.component,i.transition&&yr(i,i.transition),i.shapeFlag|=512,l.delete(f),l.add(f)):(l.add(f),p&&l.size>parseInt(p,10)&&h(l.values().next().value)),i.shapeFlag|=256,a=i,Un(r.type)?r:i}}},_r=Sr;function Er(e,t){return p(e)?e.some((e=>Er(e,t))):y(e)?e.split(",").includes(t):!!m(e)&&e.test(t)}function Or(e,t){zr(e,"a",t)}function Mr(e,t){zr(e,"da",t)}function zr(e,t,n=Dl){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Ir(t,r,n),n){let e=n.parent;for(;e&&e.parent;)kr(e.parent.vnode)&&Tr(r,t,n,e),e=e.parent}}function Tr(e,t,n,r){const o=Ir(t,e,r,!0);Hr((()=>{u(r[t],o)}),n)}function Ar(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Lr(e){return 128&e.shapeFlag?e.ssContent:e}function Ir(e,t,n=Dl,r=!1){if(n){const o=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;je(),Kl(n);const o=un(t,n,e,r);return ql(),Ve(),o});return r?o.unshift(l):o.push(l),l}}const Rr=e=>(t,n=Dl)=>(!Xl||"sp"===e)&&Ir(e,((...e)=>t(...e)),n),Pr=Rr("bm"),Nr=Rr("m"),jr=Rr("bu"),Vr=Rr("u"),Br=Rr("bum"),Hr=Rr("um"),Dr=Rr("sp"),$r=Rr("rtg"),Fr=Rr("rtc");function Wr(e,t=Dl){Ir("ec",e,t)}const Ur="components";function Kr(e,t){return Jr(Ur,e,!0,t)||e}const qr=Symbol.for("v-ndc");function Yr(e){return y(e)?Jr(Ur,e,!1)||e:e||qr}function Gr(e){return Jr("directives",e)}function Jr(e,t,n=!0,r=!1){const o=Rn||Dl;if(o){const n=o.type;if(e===Ur){const e=ra(n,!1);if(e&&(e===t||e===A(t)||e===R(A(t))))return n}const l=Xr(o[e]||n[e],t)||Xr(o.appContext[e],t);return!l&&r?n:l}}function Xr(e,t){return e&&(e[t]||e[A(t)]||e[R(A(t))])}function Qr(e,t,n,r){let o;const l=n&&n[r];if(p(e)||y(e)){o=new Array(e.length);for(let n=0,r=e.length;nt(e,n,void 0,l&&l[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,a=n.length;r{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function eo(e,t,n={},r,o){if(Rn.isCE||Rn.parent&&xr(Rn.parent)&&Rn.parent.isCE)return"default"!==t&&(n.name=t),Ol("slot",n,r&&r());let l=e[t];l&&l._c&&(l._d=!1),vl();const a=l&&to(l(n)),i=wl(sl,{key:n.key||a&&a.key||`_${t}`},a||(r?r():[]),a&&1===e._?64:-2);return!o&&i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),l&&l._c&&(l._d=!0),i}function to(e){return e.some((e=>!xl(e)||e.type!==cl&&!(e.type===sl&&!to(e.children))))?e:null}function no(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:P(r)]=e[r];return n}const ro=e=>e?Yl(e)?na(e)||e.proxy:ro(e.parent):null,oo=s(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ro(e.parent),$root:e=>ro(e.root),$emit:e=>e.emit,$options:e=>mo(e),$forceUpdate:e=>e.f||(e.f=()=>xn(e.update)),$nextTick:e=>e.n||(e.n=wn.bind(e.proxy)),$watch:e=>or.bind(e)}),lo=(e,n)=>e!==t&&!e.__isScriptSetup&&d(e,n),ao={get({_:e},n){const{ctx:r,setupState:o,data:l,props:a,accessCache:i,type:s,appContext:u}=e;let c;if("$"!==n[0]){const s=i[n];if(void 0!==s)switch(s){case 1:return o[n];case 2:return l[n];case 4:return r[n];case 3:return a[n]}else{if(lo(o,n))return i[n]=1,o[n];if(l!==t&&d(l,n))return i[n]=2,l[n];if((c=e.propsOptions[0])&&d(c,n))return i[n]=3,a[n];if(r!==t&&d(r,n))return i[n]=4,r[n];fo&&(i[n]=0)}}const p=oo[n];let f,v;return p?("$attrs"===n&&Be(e,0,n),p(e)):(f=s.__cssModules)&&(f=f[n])?f:r!==t&&d(r,n)?(i[n]=4,r[n]):(v=u.config.globalProperties,d(v,n)?v[n]:void 0)},set({_:e},n,r){const{data:o,setupState:l,ctx:a}=e;return lo(l,n)?(l[n]=r,!0):o!==t&&d(o,n)?(o[n]=r,!0):!(d(e.props,n)||"$"===n[0]&&n.slice(1)in e||(a[n]=r,0))},has({_:{data:e,setupState:n,accessCache:r,ctx:o,appContext:l,propsOptions:a}},i){let s;return!!r[i]||e!==t&&d(e,i)||lo(n,i)||(s=a[0])&&d(s,i)||d(o,i)||d(oo,i)||d(l.config.globalProperties,i)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:d(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},io=s({},ao,{get(e,t){if(t!==Symbol.unscopables)return ao.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!U(t)});function so(){return co().slots}function uo(){return co().attrs}function co(){const e=$l();return e.setupContext||(e.setupContext=ta(e))}function po(e){return p(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let fo=!0;function vo(e,t,n){un(p(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function ho(e,t,n,r){const o=r.includes(".")?lr(n,r):()=>n[r];if(y(e)){const n=t[e];g(n)&&nr(o,n)}else if(g(e))nr(o,e.bind(n));else if(w(e))if(p(e))e.forEach((e=>ho(e,t,n,r)));else{const r=g(e.handler)?e.handler.bind(n):t[e.handler];g(r)&&nr(o,r,e)}}function mo(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:l,config:{optionMergeStrategies:a}}=e.appContext,i=l.get(t);let s;return i?s=i:o.length||n||r?(s={},o.length&&o.forEach((e=>go(s,e,a,!0))),go(s,t,a)):s=t,w(t)&&l.set(t,s),s}function go(e,t,n,r=!1){const{mixins:o,extends:l}=t;l&&go(e,l,n,!0),o&&o.forEach((t=>go(e,t,n,!0)));for(const a in t)if(r&&"expose"===a);else{const r=yo[a]||n&&n[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const yo={data:bo,props:ko,emits:ko,methods:Co,computed:Co,beforeCreate:xo,created:xo,beforeMount:xo,mounted:xo,beforeUpdate:xo,updated:xo,beforeDestroy:xo,beforeUnmount:xo,destroyed:xo,unmounted:xo,activated:xo,deactivated:xo,errorCaptured:xo,serverPrefetch:xo,components:Co,directives:Co,watch:function(e,t){if(!e)return t;if(!t)return e;const n=s(Object.create(null),e);for(const r in t)n[r]=xo(e[r],t[r]);return n},provide:bo,inject:function(e,t){return Co(wo(e),wo(t))}};function bo(e,t){return t?e?function(){return s(g(e)?e.call(this,this):e,g(t)?t.call(this,this):t)}:t:e}function wo(e){if(p(e)){const t={};for(let n=0;n(l.has(e)||(e&&g(e.install)?(l.add(e),e.install(i,...t)):g(e)&&(l.add(e),e(i,...t))),i),mixin:e=>(o.mixins.includes(e)||o.mixins.push(e),i),component:(e,t)=>t?(o.components[e]=t,i):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,i):o.directives[e],mount(l,s,u){if(!a){const c=Ol(n,r);return c.appContext=o,s&&t?t(c,l):e(c,l,u),a=!0,i._container=l,l.__vue_app__=i,na(c.component)||c.component.proxy}},unmount(){a&&(e(null,i._container),delete i._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,i),runWithContext(e){Oo=i;try{return e()}finally{Oo=null}}};return i}}let Oo=null;function Mo(e,t){if(Dl){let n=Dl.provides;const r=Dl.parent&&Dl.parent.provides;r===n&&(n=Dl.provides=Object.create(r)),n[e]=t}}function zo(e,t,n=!1){const r=Dl||Rn;if(r||Oo){const o=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Oo._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&g(t)?t.call(r&&r.proxy):t}}function To(e,n,r,o){const[l,a]=e.propsOptions;let i,s=!1;if(n)for(let t in n){if(O(t))continue;const u=n[t];let c;l&&d(l,c=A(t))?a&&a.includes(c)?(i||(i={}))[c]=u:r[c]=u:In(e.emitsOptions,t)||t in o&&u===o[t]||(o[t]=u,s=!0)}if(a){const n=jt(r),o=i||t;for(let t=0;t{f=!0;const[t,n]=Lo(e,r,!0);s(u,t),n&&c.push(...n)};!o&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!i&&!f)return w(e)&&l.set(e,n),n;if(p(i))for(let n=0;n-1,r[1]=n<0||t-1||d(r,"default"))&&c.push(e)}}}const v=[u,c];return w(e)&&l.set(e,v),v}function Io(e){return"$"!==e[0]}function Ro(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function Po(e,t){return Ro(e)===Ro(t)}function No(e,t){return p(t)?t.findIndex((t=>Po(t,e))):g(t)&&Po(t,e)?0:-1}const jo=e=>"_"===e[0]||"$stable"===e,Vo=e=>p(e)?e.map(Il):[Il(e)],Bo=(e,t,n)=>{if(t._n)return t;const r=Bn(((...e)=>Vo(t(...e))),n);return r._c=!1,r},Ho=(e,t,n)=>{const r=e._ctx;for(const o in e){if(jo(o))continue;const n=e[o];if(g(n))t[o]=Bo(0,n,r);else if(null!=n){const e=Vo(n);t[o]=()=>e}}},Do=(e,t)=>{const n=Vo(t);e.slots.default=()=>n},$o=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=jt(t),V(t,"_",n)):Ho(t,e.slots={})}else e.slots={},t&&Do(e,t);V(e.slots,kl,1)},Fo=(e,n,r)=>{const{vnode:o,slots:l}=e;let a=!0,i=t;if(32&o.shapeFlag){const e=n._;e?r&&1===e?a=!1:(s(l,n),r||1!==e||delete l._):(a=!n.$stable,Ho(n,l)),i=n}else n&&(Do(e,n),i={default:1});if(a)for(const t in l)jo(t)||t in i||delete l[t]};function Wo(e,n,r,o,l=!1){if(p(e))return void e.forEach(((e,t)=>Wo(e,n&&(p(n)?n[t]:n),r,o,l)));if(xr(o)&&!l)return;const a=4&o.shapeFlag?na(o.component)||o.component.proxy:o.el,i=l?null:a,{i:s,r:c}=e,f=n&&n.r,v=s.refs===t?s.refs={}:s.refs,h=s.setupState;if(null!=f&&f!==c&&(y(f)?(v[f]=null,d(h,f)&&(h[f]=null)):Ft(f)&&(f.value=null)),g(c))sn(c,s,12,[i,v]);else{const t=y(c),n=Ft(c);if(t||n){const o=()=>{if(e.f){const n=t?d(h,c)?h[c]:v[c]:c.value;l?p(n)&&u(n,a):p(n)?n.includes(a)||n.push(a):t?(v[c]=[a],d(h,c)&&(h[c]=v[c])):(c.value=[a],e.k&&(v[e.k]=c.value))}else t?(v[c]=i,d(h,c)&&(h[c]=i)):n&&(c.value=i,e.k&&(v[e.k]=i))};i?(o.id=-1,Go(o,r)):o()}}}let Uo=!1;const Ko=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,qo=e=>8===e.nodeType;function Yo(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:l,parentNode:i,remove:s,insert:u,createComment:c}}=e,d=(n,r,a,s,c,g=!1)=>{const y=qo(n)&&"["===n.data,b=()=>h(n,r,a,s,c,y),{type:w,ref:x,shapeFlag:C,patchFlag:k}=r;let S=n.nodeType;r.el=n,-2===k&&(g=!1,r.dynamicChildren=null);let _=null;switch(w){case ul:3!==S?""===r.children?(u(r.el=o(""),i(n),n),_=n):_=b():(n.data!==r.children&&(Uo=!0,n.data=r.children),_=l(n));break;case cl:_=8!==S||y?b():l(n);break;case dl:if(y&&(S=(n=l(n)).nodeType),1===S||3===S){_=n;const e=!r.children.length;for(let t=0;t{i=i||!!t.dynamicChildren;const{type:u,props:c,patchFlag:d,shapeFlag:p,dirs:v}=t,h="input"===u&&v||"option"===u;if(h||-1!==d){if(v&&sr(t,null,n,"created"),c)if(h||!i||48&d)for(const t in c)(h&&t.endsWith("value")||a(t)&&!O(t))&&r(e,t,null,c[t],!1,void 0,n);else c.onClick&&r(e,"onClick",null,c.onClick,!1,void 0,n);let u;if((u=c&&c.onVnodeBeforeMount)&&jl(u,n,t),v&&sr(t,null,n,"beforeMount"),((u=c&&c.onVnodeMounted)||v)&&Xn((()=>{u&&jl(u,n,t),v&&sr(t,null,n,"mounted")}),o),16&p&&(!c||!c.innerHTML&&!c.textContent)){let r=f(e.firstChild,t,e,n,o,l,i);for(;r;){Uo=!0;const e=r;r=r.nextSibling,s(e)}}else 8&p&&e.textContent!==t.children&&(Uo=!0,e.textContent=t.children)}return e.nextSibling},f=(e,t,r,o,l,a,i)=>{i=i||!!t.dynamicChildren;const s=t.children,u=s.length;for(let c=0;c{const{slotScopeIds:s}=t;s&&(o=o?o.concat(s):s);const d=i(e),p=f(l(e),t,d,n,r,o,a);return p&&qo(p)&&"]"===p.data?l(t.anchor=p):(Uo=!0,u(t.anchor=c("]"),d,p),p)},h=(e,t,r,o,a,u)=>{if(Uo=!0,t.el=null,u){const t=m(e);for(;;){const n=l(e);if(!n||n===t)break;s(n)}}const c=l(e),d=i(e);return s(e),n(null,t,d,c,r,o,Ko(d),a),c},m=e=>{let t=0;for(;e;)if((e=l(e))&&qo(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return l(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),_n(),void(t._vnode=e);Uo=!1,d(t.firstChild,e,null,null,null),_n(),t._vnode=e},d]}const Go=Xn;function Jo(e){return Qo(e)}function Xo(e){return Qo(e,Yo)}function Qo(e,o){$().__VUE__=!0;const{insert:l,remove:a,patchProp:i,createElement:s,createText:u,createComment:c,setText:p,setElementText:f,parentNode:v,nextSibling:h,setScopeId:m=r,insertStaticContent:g}=e,y=(e,t,n,r=null,o=null,l=null,a=!1,i=null,s=!!t.dynamicChildren)=>{if(e===t)return;e&&!Cl(e,t)&&(r=G(e),W(e,o,l,!0),e=null),-2===t.patchFlag&&(s=!1,t.dynamicChildren=null);const{type:u,ref:c,shapeFlag:d}=t;switch(u){case ul:b(e,t,n,r);break;case cl:w(e,t,n,r);break;case dl:null==e&&x(t,n,r,a);break;case sl:T(e,t,n,r,o,l,a,i,s);break;default:1&d?C(e,t,n,r,o,l,a,i,s):6&d?L(e,t,n,r,o,l,a,i,s):(64&d||128&d)&&u.process(e,t,n,r,o,l,a,i,s,X)}null!=c&&o&&Wo(c,e&&e.ref,l,t||e,!t)},b=(e,t,n,r)=>{if(null==e)l(t.el=u(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&p(n,t.children)}},w=(e,t,n,r)=>{null==e?l(t.el=c(t.children||""),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=g(e.children,t,n,r,e.el,e.anchor)},C=(e,t,n,r,o,l,a,i,s)=>{a=a||"svg"===t.type,null==e?k(t,n,r,o,l,a,i,s):E(e,t,o,l,a,i,s)},k=(e,t,n,r,o,a,u,c)=>{let d,p;const{type:v,props:h,shapeFlag:m,transition:g,dirs:y}=e;if(d=e.el=s(e.type,a,h&&h.is,h),8&m?f(d,e.children):16&m&&_(e.children,d,null,r,o,a&&"foreignObject"!==v,u,c),y&&sr(e,null,r,"created"),S(d,e,e.scopeId,u,r),h){for(const t in h)"value"===t||O(t)||i(d,t,null,h[t],a,e.children,r,o,Y);"value"in h&&i(d,"value",null,h.value),(p=h.onVnodeBeforeMount)&&jl(p,r,e)}y&&sr(e,null,r,"beforeMount");const b=(!o||o&&!o.pendingBranch)&&g&&!g.persisted;b&&g.beforeEnter(d),l(d,t,n),((p=h&&h.onVnodeMounted)||b||y)&&Go((()=>{p&&jl(p,r,e),b&&g.enter(d),y&&sr(e,null,r,"mounted")}),o)},S=(e,t,n,r,o)=>{if(n&&m(e,n),r)for(let l=0;l{for(let u=s;u{const u=n.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:p}=n;c|=16&e.patchFlag;const v=e.props||t,h=n.props||t;let m;r&&Zo(r,!1),(m=h.onVnodeBeforeUpdate)&&jl(m,r,n,e),p&&sr(n,e,r,"beforeUpdate"),r&&Zo(r,!0);const g=l&&"foreignObject"!==n.type;if(d?M(e.dynamicChildren,d,u,r,o,g,a):s||B(e,n,u,null,r,o,g,a,!1),c>0){if(16&c)z(u,n,v,h,r,o,l);else if(2&c&&v.class!==h.class&&i(u,"class",null,h.class,l),4&c&&i(u,"style",v.style,h.style,l),8&c){const t=n.dynamicProps;for(let n=0;n{m&&jl(m,r,n,e),p&&sr(n,e,r,"updated")}),o)},M=(e,t,n,r,o,l,a)=>{for(let i=0;i{if(r!==o){if(r!==t)for(const t in r)O(t)||t in o||i(e,t,r[t],null,s,n.children,l,a,Y);for(const t in o){if(O(t))continue;const u=o[t],c=r[t];u!==c&&"value"!==t&&i(e,t,c,u,s,n.children,l,a,Y)}"value"in o&&i(e,"value",r.value,o.value)}},T=(e,t,n,r,o,a,i,s,c)=>{const d=t.el=e?e.el:u(""),p=t.anchor=e?e.anchor:u("");let{patchFlag:f,dynamicChildren:v,slotScopeIds:h}=t;h&&(s=s?s.concat(h):h),null==e?(l(d,n,r),l(p,n,r),_(t.children,n,p,o,a,i,s,c)):f>0&&64&f&&v&&e.dynamicChildren?(M(e.dynamicChildren,v,n,o,a,i,s),(null!=t.key||o&&t===o.subTree)&&el(e,t,!0)):B(e,t,n,p,o,a,i,s,c)},L=(e,t,n,r,o,l,a,i,s)=>{t.slotScopeIds=i,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,a,s):R(t,n,r,o,l,a,s):P(e,t,s)},R=(e,t,n,r,o,l,a)=>{const i=e.component=Hl(e,r,o);if(kr(e)&&(i.ctx.renderer=X),Ql(i),i.asyncDep){if(o&&o.registerDep(i,N),!e.el){const e=i.subTree=Ol(cl);w(null,e,t,n)}}else N(i,e,t,n,o,l,a)},P=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:l}=e,{props:a,children:i,patchFlag:s}=t,u=l.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&s>=0))return!(!o&&!i||i&&i.$stable)||r!==a&&(r?!a||Fn(r,a,u):!!a);if(1024&s)return!0;if(16&s)return r?Fn(r,a,u):!!a;if(8&s){const e=t.dynamicProps;for(let t=0;tvn&&fn.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},N=(e,t,n,r,o,l,a)=>{const i=e.effect=new Ie((()=>{if(e.isMounted){let t,{next:n,bu:r,u:i,parent:s,vnode:u}=e,c=n;Zo(e,!1),n?(n.el=u.el,V(e,n,a)):n=u,r&&j(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&jl(t,s,n,u),Zo(e,!0);const d=Hn(e),p=e.subTree;e.subTree=d,y(p,d,v(p.el),G(p),e,o,l),n.el=d.el,null===c&&Wn(e,d.el),i&&Go(i,o),(t=n.props&&n.props.onVnodeUpdated)&&Go((()=>jl(t,s,n,u)),o)}else{let a;const{el:i,props:s}=t,{bm:u,m:c,parent:d}=e,p=xr(t);if(Zo(e,!1),u&&j(u),!p&&(a=s&&s.onVnodeBeforeMount)&&jl(a,d,t),Zo(e,!0),i&&Z){const n=()=>{e.subTree=Hn(e),Z(i,e.subTree,e,o,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const a=e.subTree=Hn(e);y(null,a,n,r,e,o,l),t.el=a.el}if(c&&Go(c,o),!p&&(a=s&&s.onVnodeMounted)){const e=t;Go((()=>jl(a,d,e)),o)}(256&t.shapeFlag||d&&xr(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Go(e.a,o),e.isMounted=!0,t=n=r=null}}),(()=>xn(s)),e.scope),s=e.update=()=>i.run();s.id=e.uid,Zo(e,!0),s()},V=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:o,attrs:l,vnode:{patchFlag:a}}=e,i=jt(o),[s]=e.propsOptions;let u=!1;if(!(r||a>0)||16&a){let r;To(e,t,o,l)&&(u=!0);for(const l in i)t&&(d(t,l)||(r=I(l))!==l&&d(t,r))||(s?!n||void 0===n[l]&&void 0===n[r]||(o[l]=Ao(s,i,l,void 0,e,!0)):delete o[l]);if(l!==i)for(const e in l)t&&d(t,e)||(delete l[e],u=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r{const u=e&&e.children,c=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:v}=t;if(p>0){if(128&p)return void D(u,d,n,r,o,l,a,i,s);if(256&p)return void H(u,d,n,r,o,l,a,i,s)}8&v?(16&c&&Y(u,o,l),d!==u&&f(n,d)):16&c?16&v?D(u,d,n,r,o,l,a,i,s):Y(u,o,l,!0):(8&c&&f(n,""),16&v&&_(d,n,r,o,l,a,i,s))},H=(e,t,r,o,l,a,i,s,u)=>{t=t||n;const c=(e=e||n).length,d=t.length,p=Math.min(c,d);let f;for(f=0;fd?Y(e,l,a,!0,!1,p):_(t,r,o,l,a,i,s,u,p)},D=(e,t,r,o,l,a,i,s,u)=>{let c=0;const d=t.length;let p=e.length-1,f=d-1;for(;c<=p&&c<=f;){const n=e[c],o=t[c]=u?Rl(t[c]):Il(t[c]);if(!Cl(n,o))break;y(n,o,r,null,l,a,i,s,u),c++}for(;c<=p&&c<=f;){const n=e[p],o=t[f]=u?Rl(t[f]):Il(t[f]);if(!Cl(n,o))break;y(n,o,r,null,l,a,i,s,u),p--,f--}if(c>p){if(c<=f){const e=f+1,n=ef)for(;c<=p;)W(e[c],l,a,!0),c++;else{const v=c,h=c,m=new Map;for(c=h;c<=f;c++){const e=t[c]=u?Rl(t[c]):Il(t[c]);null!=e.key&&m.set(e.key,c)}let g,b=0;const w=f-h+1;let x=!1,C=0;const k=new Array(w);for(c=0;c=w){W(n,l,a,!0);continue}let o;if(null!=n.key)o=m.get(n.key);else for(g=h;g<=f;g++)if(0===k[g-h]&&Cl(n,t[g])){o=g;break}void 0===o?W(n,l,a,!0):(k[o-h]=c+1,o>=C?C=o:x=!0,y(n,t[o],r,null,l,a,i,s,u),b++)}const S=x?function(e){const t=e.slice(),n=[0];let r,o,l,a,i;const s=e.length;for(r=0;r>1,e[n[i]]0&&(t[r]=n[l-1]),n[l]=r)}}for(l=n.length,a=n[l-1];l-- >0;)n[l]=a,a=t[a];return n}(k):n;for(g=S.length-1,c=w-1;c>=0;c--){const e=h+c,n=t[e],p=e+1{const{el:a,type:i,transition:s,children:u,shapeFlag:c}=e;if(6&c)F(e.component.subTree,t,n,r);else if(128&c)e.suspense.move(t,n,r);else if(64&c)i.move(e,t,n,X);else if(i!==sl)if(i!==dl)if(2!==r&&1&c&&s)if(0===r)s.beforeEnter(a),l(a,t,n),Go((()=>s.enter(a)),o);else{const{leave:e,delayLeave:r,afterLeave:o}=s,i=()=>l(a,t,n),u=()=>{e(a,(()=>{i(),o&&o()}))};r?r(a,i,u):u()}else l(a,t,n);else(({el:e,anchor:t},n,r)=>{let o;for(;e&&e!==t;)o=h(e),l(e,n,r),e=o;l(t,n,r)})(e,t,n);else{l(a,t,n);for(let e=0;e{const{type:l,props:a,ref:i,children:s,dynamicChildren:u,shapeFlag:c,patchFlag:d,dirs:p}=e;if(null!=i&&Wo(i,null,n,e,!0),256&c)return void t.ctx.deactivate(e);const f=1&c&&p,v=!xr(e);let h;if(v&&(h=a&&a.onVnodeBeforeUnmount)&&jl(h,t,e),6&c)q(e.component,n,r);else{if(128&c)return void e.suspense.unmount(n,r);f&&sr(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,o,X,r):u&&(l!==sl||d>0&&64&d)?Y(u,t,n,!1,!0):(l===sl&&384&d||!o&&16&c)&&Y(s,t,n),r&&U(e)}(v&&(h=a&&a.onVnodeUnmounted)||f)&&Go((()=>{h&&jl(h,t,e),f&&sr(e,null,t,"unmounted")}),n)},U=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===sl)return void K(n,r);if(t===dl)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),a(e),e=n;a(t)})(e);const l=()=>{a(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,a=()=>t(n,l);r?r(e.el,l,a):a()}else l()},K=(e,t)=>{let n;for(;e!==t;)n=h(e),a(e),e=n;a(t)},q=(e,t,n)=>{const{bum:r,scope:o,update:l,subTree:a,um:i}=e;r&&j(r),o.stop(),l&&(l.active=!1,W(a,e,t,n)),i&&Go(i,t),Go((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Y=(e,t,n,r=!1,o=!1,l=0)=>{for(let a=l;a6&e.shapeFlag?G(e.component.subTree):128&e.shapeFlag?e.suspense.next():h(e.anchor||e.el),J=(e,t,n)=>{null==e?t._vnode&&W(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),Sn(),_n(),t._vnode=e},X={p:y,um:W,m:F,r:U,mt:R,mc:_,pc:B,pbc:M,n:G,o:e};let Q,Z;return o&&([Q,Z]=o(X)),{render:J,hydrate:Q,createApp:Eo(J,Q)}}function Zo({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function el(e,t,n=!1){const r=e.children,o=t.children;if(p(r)&&p(o))for(let l=0;le&&(e.disabled||""===e.disabled),nl=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,rl=(e,t)=>{const n=e&&e.to;return y(n)?t?t(n):null:n},ol={__isTeleport:!0,process(e,t,n,r,o,l,a,i,s,u){const{mc:c,pc:d,pbc:p,o:{insert:f,querySelector:v,createText:h,createComment:m}}=u,g=tl(t.props);let{shapeFlag:y,children:b,dynamicChildren:w}=t;if(null==e){const e=t.el=h(""),u=t.anchor=h("");f(e,n,r),f(u,n,r);const d=t.target=rl(t.props,v),p=t.targetAnchor=h("");d&&(f(p,d),a=a||nl(d));const m=(e,t)=>{16&y&&c(b,e,t,o,l,a,i,s)};g?m(n,u):d&&m(d,p)}else{t.el=e.el;const r=t.anchor=e.anchor,c=t.target=e.target,f=t.targetAnchor=e.targetAnchor,h=tl(e.props),m=h?n:c,y=h?r:f;if(a=a||nl(c),w?(p(e.dynamicChildren,w,m,o,l,a,i),el(e,t,!0)):s||d(e,t,m,y,o,l,a,i,!1),g)h||ll(t,n,r,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=rl(t.props,v);e&&ll(t,e,null,u,0)}else h&&ll(t,c,f,u,1)}il(t)},remove(e,t,n,r,{um:o,o:{remove:l}},a){const{shapeFlag:i,children:s,anchor:u,targetAnchor:c,target:d,props:p}=e;if(d&&l(c),(a||!tl(p))&&(l(u),16&i))for(let f=0;f0?fl||n:null,hl(),ml>0&&fl&&fl.push(e),e}function bl(e,t,n,r,o,l){return yl(El(e,t,n,r,o,l,!0))}function wl(e,t,n,r,o){return yl(Ol(e,t,n,r,o,!0))}function xl(e){return!!e&&!0===e.__v_isVNode}function Cl(e,t){return e.type===t.type&&e.key===t.key}const kl="__vInternal",Sl=({key:e})=>null!=e?e:null,_l=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?y(e)||Ft(e)||g(e)?{i:Rn,r:e,k:t,f:!!n}:e:null);function El(e,t=null,n=null,r=0,o=null,l=(e===sl?0:1),a=!1,i=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Sl(t),ref:t&&_l(t),scopeId:Pn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Rn};return i?(Pl(s,n),128&l&&e.normalize(s)):n&&(s.shapeFlag|=y(n)?8:16),ml>0&&!a&&fl&&(s.patchFlag>0||6&l)&&32!==s.patchFlag&&fl.push(s),s}const Ol=function(e,t=null,n=null,r=0,o=null,l=!1){if(e&&e!==qr||(e=cl),xl(e)){const r=zl(e,t,!0);return n&&Pl(r,n),ml>0&&!l&&fl&&(6&r.shapeFlag?fl[fl.indexOf(e)]=r:fl.push(r)),r.patchFlag|=-2,r}var a;if(g(a=e)&&"__vccOpts"in a&&(e=e.__vccOpts),t){t=Ml(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=X(e)),w(n)&&(Nt(n)&&!p(n)&&(n=s({},n)),t.style=K(n))}return El(e,t,n,r,o,y(e)?1:Un(e)?128:e.__isTeleport?64:w(e)?4:g(e)?2:0,l,!0)};function Ml(e){return e?Nt(e)||kl in e?s({},e):e:null}function zl(e,t,n=!1){const{props:r,ref:o,patchFlag:l,children:a}=e,i=t?Nl(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:i,key:i&&Sl(i),ref:t&&t.ref?n&&o?p(o)?o.concat(_l(t)):[o,_l(t)]:_l(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==sl?-1===l?16:16|l:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&zl(e.ssContent),ssFallback:e.ssFallback&&zl(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Tl(e=" ",t=0){return Ol(ul,null,e,t)}function Al(e,t){const n=Ol(dl,null,e);return n.staticCount=t,n}function Ll(e="",t=!1){return t?(vl(),wl(cl,null,e)):Ol(cl,null,e)}function Il(e){return null==e||"boolean"==typeof e?Ol(cl):p(e)?Ol(sl,null,e.slice()):"object"==typeof e?Rl(e):Ol(ul,null,String(e))}function Rl(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:zl(e)}function Pl(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(p(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Pl(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||kl in t?3===r&&Rn&&(1===Rn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Rn}}else g(t)?(t={default:t,_ctx:Rn},n=32):(t=String(t),64&r?(n=16,t=[Tl(t)]):n=8);e.children=t,e.shapeFlag|=n}function Nl(...e){const t={};for(let n=0;nDl||Rn;let Fl,Wl,Ul="__VUE_INSTANCE_SETTERS__";(Wl=$()[Ul])||(Wl=$()[Ul]=[]),Wl.push((e=>Dl=e)),Fl=e=>{Wl.length>1?Wl.forEach((t=>t(e))):Wl[0](e)};const Kl=e=>{Fl(e),e.scope.on()},ql=()=>{Dl&&Dl.scope.off(),Fl(null)};function Yl(e){return 4&e.vnode.shapeFlag}let Gl,Jl,Xl=!1;function Ql(e,t=!1){Xl=t;const{props:n,children:r}=e.vnode,o=Yl(e);!function(e,t,n,r=!1){const o={},l={};V(l,kl,1),e.propsDefaults=Object.create(null),To(e,t,o,l);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:Tt(o):e.type.props?e.props=o:e.props=l,e.attrs=l}(e,n,o,t),$o(e,r);const l=o?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Vt(new Proxy(e.ctx,ao));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?ta(e):null;Kl(e),je();const o=sn(r,e,0,[e.props,n]);if(Ve(),ql(),x(o)){if(o.then(ql,ql),t)return o.then((n=>{Zl(e,n,t)})).catch((t=>{cn(t,e,0)}));e.asyncDep=o}else Zl(e,o,t)}else ea(e,t)}(e,t):void 0;return Xl=!1,l}function Zl(e,t,n){g(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:w(t)&&(e.setupState=Xt(t)),ea(e,n)}function ea(e,t,n){const o=e.type;if(!e.render){if(!t&&Gl&&!o.render){const t=o.template||mo(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,i=s(s({isCustomElement:n,delimiters:l},r),a);o.render=Gl(t,i)}}e.render=o.render||r,Jl&&Jl(e)}Kl(e),je(),function(e){const t=mo(e),n=e.proxy,o=e.ctx;fo=!1,t.beforeCreate&&vo(t.beforeCreate,e,"bc");const{data:l,computed:a,methods:i,watch:s,provide:u,inject:c,created:d,beforeMount:f,mounted:v,beforeUpdate:h,updated:m,activated:y,deactivated:b,beforeDestroy:x,beforeUnmount:C,destroyed:k,unmounted:S,render:_,renderTracked:E,renderTriggered:O,errorCaptured:M,serverPrefetch:z,expose:T,inheritAttrs:A,components:L,directives:I,filters:R}=t;if(c&&function(e,t,n=r){p(e)&&(e=wo(e));for(const r in e){const n=e[r];let o;o=w(n)?"default"in n?zo(n.from||r,n.default,!0):zo(n.from||r):zo(n),Ft(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}):t[r]=o}}(c,o,null),i)for(const r in i){const e=i[r];g(e)&&(o[r]=e.bind(n))}if(l){const t=l.call(n,n);w(t)&&(e.data=zt(t))}if(fo=!0,a)for(const p in a){const e=a[p],t=g(e)?e.bind(n,n):g(e.get)?e.get.bind(n,n):r,l=!g(e)&&g(e.set)?e.set.bind(n):r,i=oa({get:t,set:l});Object.defineProperty(o,p,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(const r in s)ho(s[r],o,n,r);if(u){const e=g(u)?u.call(n):u;Reflect.ownKeys(e).forEach((t=>{Mo(t,e[t])}))}function P(e,t){p(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&vo(d,e,"c"),P(Pr,f),P(Nr,v),P(jr,h),P(Vr,m),P(Or,y),P(Mr,b),P(Wr,M),P(Fr,E),P($r,O),P(Br,C),P(Hr,S),P(Dr,z),p(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});_&&e.render===r&&(e.render=_),null!=A&&(e.inheritAttrs=A),L&&(e.components=L),I&&(e.directives=I)}(e),Ve(),ql()}function ta(e){return{get attrs(){return(t=e).attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get:(e,n)=>(Be(t,0,"$attrs"),e[n])}));var t},slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function na(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Xt(Vt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in oo?oo[n](e):void 0,has:(e,t)=>t in e||t in oo}))}function ra(e,t=!0){return g(e)?e.displayName||e.name:e.name||t&&e.__name}const oa=(e,t)=>an(e,0,Xl);function la(e,t,n){const r=arguments.length;return 2===r?w(t)&&!p(t)?xl(t)?Ol(e,null,[t]):Ol(e,t):Ol(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&xl(n)&&(n=[n]),Ol(e,t,n))}const aa=Symbol.for("v-scx"),ia=()=>zo(aa);function sa(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&fl&&fl.push(e),!0}const ua="3.3.4",ca={createComponentInstance:Hl,setupComponent:Ql,renderComponentRoot:Hn,setCurrentRenderingInstance:Nn,isVNode:xl,normalizeVNode:Il},da="undefined"!=typeof document?document:null,pa=da&&da.createElement("template"),fa={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?da.createElementNS("http://www.w3.org/2000/svg",e):da.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>da.createTextNode(e),createComment:e=>da.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>da.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,l){const a=n?n.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==l&&(o=o.nextSibling););else{pa.innerHTML=r?`${e}`:e;const o=pa.content;if(r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},va=/\s*!important$/;function ha(e,t,n){if(p(n))n.forEach((n=>ha(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=ga[t];if(n)return n;let r=A(t);if("filter"!==r&&r in e)return ga[t]=r;r=R(r);for(let o=0;oxa||(Ca.then((()=>xa=0)),xa=Date.now()),Sa=/^on[a-z]/;function _a(e,t){const n=wr(e);class r extends Oa{constructor(e){super(n,e,t)}}return r.def=n,r}const Ea="undefined"!=typeof HTMLElement?HTMLElement:class{};class Oa extends Ea{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,wn((()=>{this._connected||(Oi(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let n=0;n{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:r}=e;let o;if(n&&!p(n))for(const l in n){const e=n[l];(e===Number||e&&e.type===Number)&&(l in this._props&&(this._props[l]=H(this._props[l])),(o||(o=Object.create(null)))[A(l)]=!0)}this._numberProps=o,t&&this._resolveProps(e),this._applyStyles(r),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=p(t)?t:Object.keys(t||{});for(const r of Object.keys(this))"_"!==r[0]&&n.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of n.map(A))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(e){this._setProp(r,e)}})}_setAttr(e){let t=this.getAttribute(e);const n=A(e);this._numberProps&&this._numberProps[n]&&(t=H(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(I(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(I(e),t+""):t||this.removeAttribute(I(e))))}_update(){Oi(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Ol(this._def,s({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),I(e)!==e&&t(I(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Oa){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Ma(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Ma(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)za(e.el,t);else if(e.type===sl)e.children.forEach((e=>Ma(e,t)));else if(e.type===dl){let{el:n,anchor:r}=e;for(;n&&(za(n,t),n!==r);)n=n.nextSibling}}function za(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty(`--${e}`,t[e])}}const Ta="transition",Aa="animation",La=(e,{slots:t})=>la(fr,ja(e),t);La.displayName="Transition";const Ia={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ra=La.props=s({},dr,Ia),Pa=(e,t=[])=>{p(e)?e.forEach((e=>e(...t))):e&&e(...t)},Na=e=>!!e&&(p(e)?e.some((e=>e.length>1)):e.length>1);function ja(e){const t={};for(const s in e)s in Ia||(t[s]=e[s]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:l=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:u=l,appearActiveClass:c=a,appearToClass:d=i,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,h=function(e){if(null==e)return null;if(w(e))return[Va(e.enter),Va(e.leave)];{const t=Va(e);return[t,t]}}(o),m=h&&h[0],g=h&&h[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:x,onLeave:C,onLeaveCancelled:k,onBeforeAppear:S=y,onAppear:_=b,onAppearCancelled:E=x}=t,O=(e,t,n)=>{Ha(e,t?d:i),Ha(e,t?c:a),n&&n()},M=(e,t)=>{e._isLeaving=!1,Ha(e,p),Ha(e,v),Ha(e,f),t&&t()},z=e=>(t,n)=>{const o=e?_:b,a=()=>O(t,e,n);Pa(o,[t,a]),Da((()=>{Ha(t,e?u:l),Ba(t,e?d:i),Na(o)||Fa(t,r,m,a)}))};return s(t,{onBeforeEnter(e){Pa(y,[e]),Ba(e,l),Ba(e,a)},onBeforeAppear(e){Pa(S,[e]),Ba(e,u),Ba(e,c)},onEnter:z(!1),onAppear:z(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>M(e,t);Ba(e,p),qa(),Ba(e,f),Da((()=>{e._isLeaving&&(Ha(e,p),Ba(e,v),Na(C)||Fa(e,r,g,n))})),Pa(C,[e,n])},onEnterCancelled(e){O(e,!1),Pa(x,[e])},onAppearCancelled(e){O(e,!0),Pa(E,[e])},onLeaveCancelled(e){M(e),Pa(k,[e])}})}function Va(e){return H(e)}function Ba(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function Ha(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Da(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let $a=0;function Fa(e,t,n,r){const o=e._endId=++$a,l=()=>{o===e._endId&&r()};if(n)return setTimeout(l,n);const{type:a,timeout:i,propCount:s}=Wa(e,t);if(!a)return r();const u=a+"end";let c=0;const d=()=>{e.removeEventListener(u,p),l()},p=t=>{t.target===e&&++c>=s&&d()};setTimeout((()=>{c(n[e]||"").split(", "),o=r(`${Ta}Delay`),l=r(`${Ta}Duration`),a=Ua(o,l),i=r(`${Aa}Delay`),s=r(`${Aa}Duration`),u=Ua(i,s);let c=null,d=0,p=0;return t===Ta?a>0&&(c=Ta,d=a,p=l.length):t===Aa?u>0&&(c=Aa,d=u,p=s.length):(d=Math.max(a,u),c=d>0?a>u?Ta:Aa:null,p=c?c===Ta?l.length:s.length:0),{type:c,timeout:d,propCount:p,hasTransform:c===Ta&&/\b(transform|all)(,|$)/.test(r(`${Ta}Property`).toString())}}function Ua(e,t){for(;e.lengthKa(t)+Ka(e[n]))))}function Ka(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function qa(){return document.body.offsetHeight}const Ya=new WeakMap,Ga=new WeakMap,Ja={name:"TransitionGroup",props:s({},Ra,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=$l(),r=ur();let o,l;return Vr((()=>{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const o=1===t.nodeType?t:t.parentNode;o.appendChild(r);const{hasTransform:l}=Wa(r);return o.removeChild(r),l}(o[0].el,n.vnode.el,t))return;o.forEach(Qa),o.forEach(Za);const r=o.filter(ei);qa(),r.forEach((e=>{const n=e.el,r=n.style;Ba(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n._moveCb=null,Ha(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const a=jt(e),i=ja(a);let s=a.tag||sl;o=l,l=t.default?br(t.default()):[];for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return p(t)?e=>j(t,e):t};function ni(e){e.target.composing=!0}function ri(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const oi={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=ti(o);const l=r||o.props&&"number"===o.props.type;ba(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),l&&(r=B(r)),e._assign(r)})),n&&ba(e,"change",(()=>{e.value=e.value.trim()})),t||(ba(e,"compositionstart",ni),ba(e,"compositionend",ri),ba(e,"change",ri))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},l){if(e._assign=ti(l),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(r&&e.value.trim()===t)return;if((o||"number"===e.type)&&B(e.value)===t)return}const a=null==t?"":t;e.value!==a&&(e.value=a)}},li={deep:!0,created(e,t,n){e._assign=ti(n),ba(e,"change",(()=>{const t=e._modelValue,n=ci(e),r=e.checked,o=e._assign;if(p(t)){const e=fe(t,n),l=-1!==e;if(r&&!l)o(t.concat(n));else if(!r&&l){const n=[...t];n.splice(e,1),o(n)}}else if(v(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(di(e,r))}))},mounted:ai,beforeUpdate(e,t,n){e._assign=ti(n),ai(e,t,n)}};function ai(e,{value:t,oldValue:n},r){e._modelValue=t,p(t)?e.checked=fe(t,r.props.value)>-1:v(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=pe(t,di(e,!0)))}const ii={created(e,{value:t},n){e.checked=pe(t,n.props.value),e._assign=ti(n),ba(e,"change",(()=>{e._assign(ci(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=ti(r),t!==n&&(e.checked=pe(t,r.props.value))}},si={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=v(t);ba(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?B(ci(e)):ci(e)));e._assign(e.multiple?o?new Set(t):t:t[0])})),e._assign=ti(r)},mounted(e,{value:t}){ui(e,t)},beforeUpdate(e,t,n){e._assign=ti(n)},updated(e,{value:t}){ui(e,t)}};function ui(e,t){const n=e.multiple;if(!n||p(t)||v(t)){for(let r=0,o=e.options.length;r-1:o.selected=t.has(l);else if(pe(ci(o),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ci(e){return"_value"in e?e._value:e.value}function di(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const pi={created(e,t,n){vi(e,t,n,null,"created")},mounted(e,t,n){vi(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){vi(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){vi(e,t,n,r,"updated")}};function fi(e,t){switch(e){case"SELECT":return si;case"TEXTAREA":return oi;default:switch(t){case"checkbox":return li;case"radio":return ii;default:return oi}}}function vi(e,t,n,r,o){const l=fi(e.tagName,n.props&&n.props.type)[o];l&&l(e,t,n,r)}const hi=["ctrl","shift","alt","meta"],mi={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>hi.some((n=>e[`${n}Key`]&&!t.includes(n)))},gi=(e,t)=>(n,...r)=>{for(let e=0;en=>{if(!("key"in n))return;const r=I(n.key);return t.some((e=>e===r||yi[e]===r))?e(n):void 0},wi={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):xi(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),xi(e,!0),r.enter(e)):r.leave(e,(()=>{xi(e,!1)})):xi(e,t))},beforeUnmount(e,{value:t}){xi(e,t)}};function xi(e,t){e.style.display=t?e._vod:"none"}const Ci=s({patchProp:(e,t,n,r,o=!1,l,s,u,c)=>{var d,f,v;"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,o):"style"===t?function(e,t,n){const r=e.style,o=y(n);if(n&&!o){if(t&&!y(t))for(const e in t)null==n[e]&&ha(r,e,"");for(const e in n)ha(r,e,n[e])}else{const l=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=l)}}(e,n,r):a(t)?i(t)||function(e,t,n,r,o=null){const l=e._vei||(e._vei={}),a=l[t];if(r&&a)a.value=r;else{const[n,c]=function(e){let t;if(wa.test(e)){let n;for(t={};n=e.match(wa);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):I(e.slice(2)),t]}(t);r?ba(e,n,l[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();un(function(e,t){if(p(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=ka(),n}(r,o),c):a&&(i=n,s=a,u=c,e.removeEventListener(i,s,u),l[t]=void 0)}var i,s,u}(e,t,0,r,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):(d=e,f=t,v=r,o?"innerHTML"===f||"textContent"===f||f in d&&Sa.test(f)&&g(v):!("spellcheck"===f||"draggable"===f||"translate"===f||"form"===f||"list"===f&&"INPUT"===d.tagName||"type"===f&&"TEXTAREA"===d.tagName||Sa.test(f)&&y(v)||!(f in d))))?function(e,t,n,r,o,l,a){if("innerHTML"===t||"textContent"===t)return r&&a(r,o,l),void(e[t]=null==n?"":n);const i=e.tagName;if("value"===t&&"PROGRESS"!==i&&!i.includes("-")){e._value=n;const r=null==n?"":n;return("OPTION"===i?e.getAttribute("value"):e.value)!==r&&(e.value=r),void(null==n&&e.removeAttribute(t))}let s=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=le(n):null==n&&"string"===r?(n="",s=!0):"number"===r&&(n=0,s=!0)}try{e[t]=n}catch(u){}s&&e.removeAttribute(t)}(e,t,r,l,s,u,c):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,o){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(ya,t.slice(6,t.length)):e.setAttributeNS(ya,t,n);else{const r=re(t);null==n||r&&!le(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,o))}},fa);let ki,Si=!1;function _i(){return ki||(ki=Jo(Ci))}function Ei(){return ki=Si?ki:Xo(Ci),Si=!0,ki}const Oi=(...e)=>{_i().render(...e)},Mi=(...e)=>{Ei().hydrate(...e)},zi=(...e)=>{const t=_i().createApp(...e),{mount:n}=t;return t.mount=e=>{const r=Ti(e);if(!r)return;const o=t._component;g(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const l=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t};function Ti(e){return y(e)?document.querySelector(e):e}let Ai=!1;const Li=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:fr,BaseTransitionPropsValidators:dr,Comment:cl,EffectScope:ye,Fragment:sl,KeepAlive:_r,ReactiveEffect:Ie,Static:dl,Suspense:qn,Teleport:al,Text:ul,Transition:La,TransitionGroup:Xa,VueElement:Oa,assertNumber:function(e,t){},callWithAsyncErrorHandling:un,callWithErrorHandling:sn,camelize:A,capitalize:R,cloneVNode:zl,compatUtils:null,compile:()=>{},computed:oa,createApp:zi,createBlock:wl,createCommentVNode:Ll,createElementBlock:bl,createElementVNode:El,createHydrationRenderer:Xo,createPropsRestProxy:function(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n},createRenderer:Jo,createSSRApp:(...e)=>{const t=Ei().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Ti(e);if(t)return n(t,!0,t instanceof SVGElement)},t},createSlots:Zr,createStaticVNode:Al,createTextVNode:Tl,createVNode:Ol,customRef:Zt,defineAsyncComponent:function(e){g(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:l,suspensible:a=!0,onError:i}=e;let s,u=null,c=0;const d=()=>{let e;return u||(e=u=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),i)return new Promise(((t,n)=>{i(e,(()=>t((c++,u=null,d()))),(()=>n(e)),c+1)}));throw e})).then((t=>e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),s=t,t))))};return wr({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return s},setup(){const e=Dl;if(s)return()=>Cr(s,e);const t=t=>{u=null,cn(t,e,13,!r)};if(a&&e.suspense||Xl)return d().then((t=>()=>Cr(t,e))).catch((e=>(t(e),()=>r?Ol(r,{error:e}):null)));const i=Wt(!1),c=Wt(),p=Wt(!!o);return o&&setTimeout((()=>{p.value=!1}),o),null!=l&&setTimeout((()=>{if(!i.value&&!c.value){const e=new Error(`Async component timed out after ${l}ms.`);t(e),c.value=e}}),l),d().then((()=>{i.value=!0,e.parent&&kr(e.parent.vnode)&&xn(e.parent.update)})).catch((e=>{t(e),c.value=e})),()=>i.value&&s?Cr(s,e):c.value&&r?Ol(r,{error:c.value}):n&&!p.value?Ol(n):void 0}})},defineComponent:wr,defineCustomElement:_a,defineEmits:function(){return null},defineExpose:function(e){},defineModel:function(){},defineOptions:function(e){},defineProps:function(){return null},defineSSRCustomElement:e=>_a(e,Mi),defineSlots:function(){return null},get devtools(){return zn},effect:function(e,t){e.effect&&(e=e.effect.fn);const n=new Ie(e);t&&(s(n,t),t.scope&&we(n,t.scope)),t&&t.lazy||n.run();const r=n.run.bind(n);return r.effect=n,r},effectScope:be,getCurrentInstance:$l,getCurrentScope:xe,getTransitionRawChildren:br,guardReactiveProps:Ml,h:la,handleError:cn,hasInjectionContext:function(){return!!(Dl||Rn||Oo)},hydrate:Mi,initCustomFormatter:function(){},initDirectivesForSSR:()=>{Ai||(Ai=!0,oi.getSSRProps=({value:e})=>({value:e}),ii.getSSRProps=({value:e},t)=>{if(t.props&&pe(t.props.value,e))return{checked:!0}},li.getSSRProps=({value:e},t)=>{if(p(e)){if(t.props&&fe(e,t.props.value)>-1)return{checked:!0}}else if(v(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},pi.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=fi(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},wi.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},inject:zo,isMemoSame:sa,isProxy:Nt,isReactive:It,isReadonly:Rt,isRef:Ft,isRuntimeOnly:()=>!Gl,isShallow:Pt,isVNode:xl,markRaw:Vt,mergeDefaults:function(e,t){const n=po(e);for(const r in t){if(r.startsWith("__skip"))continue;let e=n[r];e?p(e)||g(e)?e=n[r]={type:e,default:t[r]}:e.default=t[r]:null===e&&(e=n[r]={default:t[r]}),e&&t[`__skip_${r}`]&&(e.skipFactory=!0)}return n},mergeModels:function(e,t){return e&&t?p(e)&&p(t)?e.concat(t):s({},po(e),po(t)):e||t},mergeProps:Nl,nextTick:wn,normalizeClass:X,normalizeProps:Q,normalizeStyle:K,onActivated:Or,onBeforeMount:Pr,onBeforeUnmount:Br,onBeforeUpdate:jr,onDeactivated:Mr,onErrorCaptured:Wr,onMounted:Nr,onRenderTracked:Fr,onRenderTriggered:$r,onScopeDispose:Ce,onServerPrefetch:Dr,onUnmounted:Hr,onUpdated:Vr,openBlock:vl,popScopeId:Vn,provide:Mo,proxyRefs:Xt,pushScopeId:jn,queuePostFlushCb:kn,reactive:zt,readonly:At,ref:Wt,registerRuntimeCompiler:function(e){Gl=e,Jl=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,io))}},render:Oi,renderList:Qr,renderSlot:eo,resolveComponent:Kr,resolveDirective:Gr,resolveDynamicComponent:Yr,resolveFilter:null,resolveTransitionHooks:hr,setBlockTracking:gl,setDevtoolsHook:function e(t,n){var r,o;zn=t,zn?(zn.enabled=!0,Tn.forEach((({event:e,args:t})=>zn.emit(e,...t))),Tn=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(o=null==(r=window.navigator)?void 0:r.userAgent)?void 0:o.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{zn||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Tn=[])}),3e3)):Tn=[]},setTransitionHooks:yr,shallowReactive:Tt,shallowReadonly:function(e){return Lt(e,!0,rt,St,Mt)},shallowRef:Ut,ssrContextKey:aa,ssrUtils:ca,stop:function(e){e.effect.stop()},toDisplayString:ve,toHandlerKey:P,toHandlers:no,toRaw:jt,toRef:rn,toRefs:en,toValue:function(e){return g(e)?e():Gt(e)},transformVNodeArgs:function(e){},triggerRef:Yt,unref:Gt,useAttrs:uo,useCssModule:function(e="$style"){{const n=$l();if(!n)return t;const r=n.type.__cssModules;if(!r)return t;return r[e]||t}},useCssVars:function(e){const t=$l();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>za(e,n)))},r=()=>{const r=e(t.proxy);Ma(t.subTree,r),n(r)};er(r),Nr((()=>{const e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),Hr((()=>e.disconnect()))}))},useModel:function(e,t,n){const r=$l();if(n&&n.local){const n=Wt(e[t]);return nr((()=>e[t]),(e=>n.value=e)),nr(n,(n=>{n!==e[t]&&r.emit(`update:${t}`,n)})),n}return{__v_isRef:!0,get value(){return e[t]},set value(e){r.emit(`update:${t}`,e)}}},useSSRContext:ia,useSlots:so,useTransitionState:ur,vModelCheckbox:li,vModelDynamic:pi,vModelRadio:ii,vModelSelect:si,vModelText:oi,vShow:wi,version:ua,warn:function(e,...t){},watch:nr,watchEffect:Zn,watchPostEffect:er,watchSyncEffect:function(e,t){return rr(e,null,{flush:"sync"})},withAsyncContext:function(e){const t=$l();let n=e();return ql(),x(n)&&(n=n.catch((e=>{throw Kl(t),e}))),[n,()=>Kl(t)]},withCtx:Bn,withDefaults:function(e,t){return null},withDirectives:ir,withKeys:bi,withMemo:function(e,t,n,r){const o=n[r];if(o&&sa(o,e))return o;const l=t();return l.memo=e.slice(),n[r]=l},withModifiers:gi,withScopeId:e=>Bn},Symbol.toStringTag,{value:"Module"}));function Ii(){const e=document.documentElement.clientWidth/1920;let t=16*Math.min(e,2)>12?16*Math.min(e,2):12;document.documentElement.style.fontSize=t+"px"}Ii(),window.onresize=function(){Ii(),Date.now()};const Ri=e=>Array.from(e.querySelectorAll('a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])')).filter((e=>{return Pi(e)&&(t=e,"fixed"!==getComputedStyle(t).position&&null!==t.offsetParent);var t})),Pi=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Ni=function(e,t,...n){let r;r=t.includes("mouse")||t.includes("click")?"MouseEvents":t.includes("key")?"KeyboardEvent":"HTMLEvents";const o=document.createEvent(r);return o.initEvent(t,...n),e.dispatchEvent(o),e},ji=e=>!e.getAttribute("aria-owns"),Vi=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const o=r.querySelectorAll(n);return o[Array.prototype.indexOf.call(o,e)+t]||null},Bi=e=>{e&&(e.focus(),!ji(e)&&e.click())},Hi=(e,t,{checkForDefaultPrevented:n=!0}={})=>r=>{const o=null==e?void 0:e(r);if(!1===n||!o)return null==t?void 0:t(r)},Di=e=>t=>"mouse"===t.pointerType?e(t):void 0;var $i,Fi=Object.defineProperty,Wi=Object.defineProperties,Ui=Object.getOwnPropertyDescriptors,Ki=Object.getOwnPropertySymbols,qi=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable,Gi=(e,t,n)=>t in e?Fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Ji(e,t){var n;const r=Ut();return Zn((()=>{r.value=e()}),(o=((e,t)=>{for(var n in t||(t={}))qi.call(t,n)&&Gi(e,n,t[n]);if(Ki)for(var n of Ki(t))Yi.call(t,n)&&Gi(e,n,t[n]);return e})({},t),l={flush:null!=(n=null==t?void 0:t.flush)?n:"sync"},Wi(o,Ui(l)))),At(r);var o,l}const Xi="undefined"!=typeof window,Qi=e=>void 0!==e,Zi=Object.prototype.toString,es=e=>"function"==typeof e,ts=e=>"number"==typeof e,ns=e=>"string"==typeof e,rs=e=>"[object Object]"===Zi.call(e),os=()=>+Date.now(),ls=(e,t,n)=>Math.min(n,Math.max(t,e)),as=()=>{},is=Xi&&(null==($i=null==window?void 0:window.navigator)?void 0:$i.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent),ss=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function us(e){return"function"==typeof e?e():Gt(e)}function cs(e,t){return function(...n){return new Promise(((r,o)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(r).catch(o)}))}}const ds=e=>e();function ps(e,t={}){let n,r,o=as;const l=e=>{clearTimeout(e),o(),o=as};return a=>{const i=us(e),s=us(t.maxWait);return n&&l(n),i<=0||void 0!==s&&s<=0?(r&&(l(r),r=null),Promise.resolve(a())):new Promise(((e,u)=>{o=t.rejectOnCancel?u:e,s&&!r&&(r=setTimeout((()=>{n&&l(n),r=null,e(a())}),s)),n=setTimeout((()=>{r&&l(r),r=null,e(a())}),i)}))}}function fs(e,t=!0,n=!0,r=!1){let o,l,a=0,i=!0,s=as;const u=()=>{o&&(clearTimeout(o),o=void 0,s(),s=as)};return c=>{const d=us(e),p=Date.now()-a,f=()=>l=c();return u(),d<=0?(a=Date.now(),f()):(p>d&&(n||!i)?(a=Date.now(),f()):t&&(l=new Promise(((e,t)=>{s=r?t:e,o=setTimeout((()=>{a=Date.now(),i=!0,e(f()),u()}),Math.max(0,d-p))}))),n||o||(o=setTimeout((()=>i=!0),d)),i=!1,l)}}function vs(e=ds){const t=Wt(!0);return{isActive:At(t),pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:(...n)=>{t.value&&e(...n)}}}function hs(e,t=!1,n="Timeout"){return new Promise(((r,o)=>{t?setTimeout((()=>o(n)),e):setTimeout(r,e)}))}function ms(e){return e}function gs(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const e=t;t=void 0,e&&await e},n}function ys(e,...t){return t.some((t=>t in e))}function bs(e,t){var n;if("number"==typeof e)return e+t;const r=(null==(n=e.match(/^-?[0-9]+\.?[0-9]*/))?void 0:n[0])||"",o=e.slice(r.length),l=parseFloat(r)+t;return Number.isNaN(l)?e:l+o}function ws(e,t,n=!1){return t.reduce(((t,r)=>(r in e&&(n&&void 0===e[r]||(t[r]=e[r])),t)),{})}function xs(e,t){let n,r,o;const l=Wt(!0),a=()=>{l.value=!0,o()};nr(e,a,{flush:"sync"});const i=es(t)?t:t.get,s=es(t)?void 0:t.set,u=Zt(((e,t)=>(r=e,o=t,{get:()=>(l.value&&(n=i(),l.value=!1),r(),n),set(e){null==s||s(e)}})));return Object.isExtensible(u)&&(u.trigger=a),u}function Cs(e){return!!xe()&&(Ce(e),!0)}function ks(){const e=[],t=t=>{const n=e.indexOf(t);-1!==n&&e.splice(n,1)};return{on:n=>{e.push(n);const r=()=>t(n);return Cs(r),{off:r}},off:t,trigger:t=>{e.forEach((e=>e(t)))}}}function Ss(e,t,{enumerable:n=!1,unwrap:r=!0}={}){for(const[o,l]of Object.entries(t))"value"!==o&&(Ft(l)&&r?Object.defineProperty(e,o,{get:()=>l.value,set(e){l.value=e},enumerable:n}):Object.defineProperty(e,o,{value:l,enumerable:n}));return e}var _s=Object.defineProperty,Es=Object.getOwnPropertySymbols,Os=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable,zs=(e,t,n)=>t in e?_s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Ts(e,t){const n=!1===(null==t?void 0:t.computedGetter)?Gt:us;return function(...t){return oa((()=>e.apply(this,t.map((e=>n(e))))))}}function As(e){if(!Ft(e))return zt(e);return zt(new Proxy({},{get:(t,n,r)=>Gt(Reflect.get(e.value,n,r)),set:(t,n,r)=>(Ft(e.value[n])&&!Ft(r)?e.value[n].value=r:e.value[n]=r,!0),deleteProperty:(t,n)=>Reflect.deleteProperty(e.value,n),has:(t,n)=>Reflect.has(e.value,n),ownKeys:()=>Object.keys(e.value),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})}))}function Ls(e){return As(oa(e))}function Is(e,t=1e4){return Zt(((n,r)=>{let o,l=e;return Cs((()=>{clearTimeout(o)})),{get:()=>(n(),l),set(n){l=n,r(),clearTimeout(o),o=setTimeout((()=>{l=e,r()}),us(t))}}}))}function Rs(e,t=200,n={}){return cs(ps(t,n),e)}function Ps(e,t=200,n={}){const r=Wt(e.value),o=Rs((()=>{r.value=e.value}),t,n);return nr(e,(()=>o())),r}function Ns(e,t=200,n=!1,r=!0,o=!1){return cs(fs(t,n,r,o),e)}function js(e,t=200,n=!0,r=!0){if(t<=0)return e;const o=Wt(e.value),l=Ns((()=>{o.value=e.value}),t,n,r);return nr(e,(()=>l())),o}function Vs(e,t={}){let n,r,o=e;function l(e=!0){return e&&n(),o}function a(e,n=!0){var l,a;if(e===o)return;const i=o;!1!==(null==(l=t.onBeforeChange)?void 0:l.call(t,e,i))&&(o=e,null==(a=t.onChanged)||a.call(t,e,i),n&&r())}return Ss(Zt(((e,t)=>(n=e,r=t,{get:()=>l(),set(e){a(e)}}))),{get:l,set:a,untrackedGet:()=>l(!1),silentSet:e=>a(e,!1),peek:()=>l(!1),lay:e=>a(e,!1)},{enumerable:!0})}const Bs=Vs;function Hs(e){return"function"==typeof e?oa(e):Wt(e)}function Ds(e,t,n={}){var r,o;const{flush:l="sync",deep:a=!1,immediate:i=!0,direction:s="both",transform:u={}}=n;let c,d;const p=null!=(r=u.ltr)?r:e=>e,f=null!=(o=u.rtl)?o:e=>e;return"both"!==s&&"ltr"!==s||(c=nr(e,(e=>t.value=p(e)),{flush:l,deep:a,immediate:i})),"both"!==s&&"rtl"!==s||(d=nr(t,(t=>e.value=f(t)),{flush:l,deep:a,immediate:i})),()=>{null==c||c(),null==d||d()}}var $s=Object.defineProperty,Fs=Object.defineProperties,Ws=Object.getOwnPropertyDescriptors,Us=Object.getOwnPropertySymbols,Ks=Object.prototype.hasOwnProperty,qs=Object.prototype.propertyIsEnumerable,Ys=(e,t,n)=>t in e?$s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gs=(e,t)=>{for(var n in t||(t={}))Ks.call(t,n)&&Ys(e,n,t[n]);if(Us)for(var n of Us(t))qs.call(t,n)&&Ys(e,n,t[n]);return e},Js=(e,t)=>Fs(e,Ws(t));function Xs(e){if(!Ft(e))return en(e);const t=Array.isArray(e.value)?new Array(e.value.length):{};for(const n in e.value)t[n]=Zt((()=>({get:()=>e.value[n],set(t){if(Array.isArray(e.value)){const r=[...e.value];r[n]=t,e.value=r}else{const r=Js(Gs({},e.value),{[n]:t});Object.setPrototypeOf(r,e.value),e.value=r}}})));return t}function Qs(e,t=!0){$l()?Nr(e):t?e():wn(e)}function Zs(e){$l()&&Hr(e)}function eu(e,t=!1){function n(n,{flush:r="sync",deep:o=!1,timeout:l,throwOnTimeout:a}={}){let i=null;const s=[new Promise((l=>{i=nr(e,(e=>{n(e)!==t&&(null==i||i(),l(e))}),{flush:r,deep:o,immediate:!0})}))];return null!=l&&s.push(hs(l,a).then((()=>us(e))).finally((()=>null==i?void 0:i()))),Promise.race(s)}function r(r,o){if(!Ft(r))return n((e=>e===r),o);const{flush:l="sync",deep:a=!1,timeout:i,throwOnTimeout:s}=null!=o?o:{};let u=null;const c=[new Promise((n=>{u=nr([e,r],(([e,r])=>{t!==(e===r)&&(null==u||u(),n(e))}),{flush:l,deep:a,immediate:!0})}))];return null!=i&&c.push(hs(i,s).then((()=>us(e))).finally((()=>(null==u||u(),us(e))))),Promise.race(c)}function o(e){return l(1,e)}function l(e=1,t){let r=-1;return n((()=>(r+=1,r>=e)),t)}if(Array.isArray(us(e))){return{toMatch:n,toContains:function(e,t){return n((t=>{const n=Array.from(t);return n.includes(e)||n.includes(us(e))}),t)},changed:o,changedTimes:l,get not(){return eu(e,!t)}}}return{toMatch:n,toBe:r,toBeTruthy:function(e){return n((e=>Boolean(e)),e)},toBeNull:function(e){return r(null,e)},toBeNaN:function(e){return n(Number.isNaN,e)},toBeUndefined:function(e){return r(void 0,e)},changed:o,changedTimes:l,get not(){return eu(e,!t)}}}function tu(e){return eu(e)}const nu=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ru=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ou=(e,t,n,r)=>{let o=e<12?"AM":"PM";return r&&(o=o.split("").reduce(((e,t)=>e+`${t}.`),"")),n?o.toLowerCase():o},lu=(e,t,n={})=>{var r;const o=e.getFullYear(),l=e.getMonth(),a=e.getDate(),i=e.getHours(),s=e.getMinutes(),u=e.getSeconds(),c=e.getMilliseconds(),d=e.getDay(),p=null!=(r=n.customMeridiem)?r:ou,f={YY:()=>String(o).slice(-2),YYYY:()=>o,M:()=>l+1,MM:()=>`${l+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(n.locales,{month:"short"}),MMMM:()=>e.toLocaleDateString(n.locales,{month:"long"}),D:()=>String(a),DD:()=>`${a}`.padStart(2,"0"),H:()=>String(i),HH:()=>`${i}`.padStart(2,"0"),h:()=>`${i%12||12}`.padStart(1,"0"),hh:()=>`${i%12||12}`.padStart(2,"0"),m:()=>String(s),mm:()=>`${s}`.padStart(2,"0"),s:()=>String(u),ss:()=>`${u}`.padStart(2,"0"),SSS:()=>`${c}`.padStart(3,"0"),d:()=>d,dd:()=>e.toLocaleDateString(n.locales,{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(n.locales,{weekday:"short"}),dddd:()=>e.toLocaleDateString(n.locales,{weekday:"long"}),A:()=>p(i,s),AA:()=>p(i,s,!1,!0),a:()=>p(i,s,!0),aa:()=>p(i,s,!0,!0)};return t.replace(ru,((e,t)=>t||f[e]()))},au=e=>{if(null===e)return new Date(NaN);if(void 0===e)return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){const t=e.match(nu);if(t){const e=t[2]-1||0,n=(t[7]||"0").substring(0,3);return new Date(t[1],e,t[3]||1,t[4]||0,t[5]||0,t[6]||0,n)}}return new Date(e)};function iu(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n;let l=null;const a=Wt(!1);function i(){l&&(clearInterval(l),l=null)}function s(){a.value=!1,i()}function u(){const n=us(t);n<=0||(a.value=!0,o&&e(),i(),l=setInterval(e,n))}return r&&Xi&&u(),(Ft(t)||es(t))&&Cs(nr(t,(()=>{a.value&&Xi&&u()}))),Cs(s),{isActive:a,pause:s,resume:u}}var su=Object.defineProperty,uu=Object.getOwnPropertySymbols,cu=Object.prototype.hasOwnProperty,du=Object.prototype.propertyIsEnumerable,pu=(e,t,n)=>t in e?su(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function fu(e,t,n={}){const{immediate:r=!0}=n,o=Wt(!1);let l=null;function a(){l&&(clearTimeout(l),l=null)}function i(){o.value=!1,a()}function s(...n){a(),o.value=!0,l=setTimeout((()=>{o.value=!1,l=null,e(...n)}),us(t))}return r&&(o.value=!0,Xi&&s()),Cs(i),{isPending:At(o),start:s,stop:i}}var vu=Object.defineProperty,hu=Object.getOwnPropertySymbols,mu=Object.prototype.hasOwnProperty,gu=Object.prototype.propertyIsEnumerable,yu=(e,t,n)=>t in e?vu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bu=Object.getOwnPropertySymbols,wu=Object.prototype.hasOwnProperty,xu=Object.prototype.propertyIsEnumerable,Cu=(e,t)=>{var n={};for(var r in e)wu.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&bu)for(var r of bu(e))t.indexOf(r)<0&&xu.call(e,r)&&(n[r]=e[r]);return n};function ku(e,t,n={}){const r=n,{eventFilter:o=ds}=r,l=Cu(r,["eventFilter"]);return nr(e,cs(o,t),l)}var Su=Object.getOwnPropertySymbols,_u=Object.prototype.hasOwnProperty,Eu=Object.prototype.propertyIsEnumerable,Ou=Object.defineProperty,Mu=Object.defineProperties,zu=Object.getOwnPropertyDescriptors,Tu=Object.getOwnPropertySymbols,Au=Object.prototype.hasOwnProperty,Lu=Object.prototype.propertyIsEnumerable,Iu=(e,t,n)=>t in e?Ou(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Ru(e,t,n={}){const r=n,{debounce:o=0,maxWait:l}=r,a=((e,t)=>{var n={};for(var r in e)Au.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Tu)for(var r of Tu(e))t.indexOf(r)<0&&Lu.call(e,r)&&(n[r]=e[r]);return n})(r,["debounce","maxWait"]);return ku(e,t,(i=((e,t)=>{for(var n in t||(t={}))Au.call(t,n)&&Iu(e,n,t[n]);if(Tu)for(var n of Tu(t))Lu.call(t,n)&&Iu(e,n,t[n]);return e})({},a),s={eventFilter:ps(o,{maxWait:l})},Mu(i,zu(s))));var i,s}var Pu=Object.defineProperty,Nu=Object.defineProperties,ju=Object.getOwnPropertyDescriptors,Vu=Object.getOwnPropertySymbols,Bu=Object.prototype.hasOwnProperty,Hu=Object.prototype.propertyIsEnumerable,Du=(e,t,n)=>t in e?Pu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$u=(e,t)=>{for(var n in t||(t={}))Bu.call(t,n)&&Du(e,n,t[n]);if(Vu)for(var n of Vu(t))Hu.call(t,n)&&Du(e,n,t[n]);return e},Fu=(e,t)=>Nu(e,ju(t)),Wu=(e,t)=>{var n={};for(var r in e)Bu.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Vu)for(var r of Vu(e))t.indexOf(r)<0&&Hu.call(e,r)&&(n[r]=e[r]);return n};function Uu(e,t,n={}){const r=n,{eventFilter:o=ds}=r,l=Wu(r,["eventFilter"]),a=cs(o,t);let i,s,u;if("sync"===l.flush){const t=Wt(!1);s=()=>{},i=e=>{t.value=!0,e(),t.value=!1},u=nr(e,((...e)=>{t.value||a(...e)}),l)}else{const t=[],n=Wt(0),r=Wt(0);s=()=>{n.value=r.value},t.push(nr(e,(()=>{r.value++}),Fu($u({},l),{flush:"sync"}))),i=e=>{const t=r.value;e(),n.value+=r.value-t},t.push(nr(e,((...e)=>{const t=n.value>0&&n.value===r.value;n.value=0,r.value=0,t||a(...e)}),l)),u=()=>{t.forEach((e=>e()))}}return{stop:u,ignoreUpdates:i,ignorePrevAsyncUpdates:s}}var Ku=Object.defineProperty,qu=Object.defineProperties,Yu=Object.getOwnPropertyDescriptors,Gu=Object.getOwnPropertySymbols,Ju=Object.prototype.hasOwnProperty,Xu=Object.prototype.propertyIsEnumerable,Qu=(e,t,n)=>t in e?Ku(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zu=(e,t)=>{for(var n in t||(t={}))Ju.call(t,n)&&Qu(e,n,t[n]);if(Gu)for(var n of Gu(t))Xu.call(t,n)&&Qu(e,n,t[n]);return e},ec=(e,t)=>qu(e,Yu(t)),tc=(e,t)=>{var n={};for(var r in e)Ju.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Gu)for(var r of Gu(e))t.indexOf(r)<0&&Xu.call(e,r)&&(n[r]=e[r]);return n};function nc(e,t,n={}){const r=n,{eventFilter:o}=r,l=tc(r,["eventFilter"]),{eventFilter:a,pause:i,resume:s,isActive:u}=vs(o);return{stop:ku(e,t,ec(Zu({},l),{eventFilter:a})),pause:i,resume:s,isActive:u}}var rc=Object.defineProperty,oc=Object.defineProperties,lc=Object.getOwnPropertyDescriptors,ac=Object.getOwnPropertySymbols,ic=Object.prototype.hasOwnProperty,sc=Object.prototype.propertyIsEnumerable,uc=(e,t,n)=>t in e?rc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function cc(e,t,n={}){const r=n,{throttle:o=0,trailing:l=!0,leading:a=!0}=r,i=((e,t)=>{var n={};for(var r in e)ic.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ac)for(var r of ac(e))t.indexOf(r)<0&&sc.call(e,r)&&(n[r]=e[r]);return n})(r,["throttle","trailing","leading"]);return ku(e,t,(s=((e,t)=>{for(var n in t||(t={}))ic.call(t,n)&&uc(e,n,t[n]);if(ac)for(var n of ac(t))sc.call(t,n)&&uc(e,n,t[n]);return e})({},i),u={eventFilter:fs(o,l,a)},oc(s,lc(u))));var s,u}var dc=Object.defineProperty,pc=Object.defineProperties,fc=Object.getOwnPropertyDescriptors,vc=Object.getOwnPropertySymbols,hc=Object.prototype.hasOwnProperty,mc=Object.prototype.propertyIsEnumerable,gc=(e,t,n)=>t in e?dc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function yc(e){return"function"==typeof e?e():Gt(e)}function bc(e,t,n){let r;r=Ft(n)?{evaluating:n}:n||{};const{lazy:o=!1,evaluating:l,shallow:a=!1,onError:i=as}=r,s=Wt(!o),u=a?Ut(t):Wt(t);let c=0;return Zn((async t=>{if(!s.value)return;c++;const n=c;let r=!1;l&&Promise.resolve().then((()=>{l.value=!0}));try{const o=await e((e=>{t((()=>{l&&(l.value=!1),r||e()}))}));n===c&&(u.value=o)}catch(o){i(o)}finally{l&&n===c&&(l.value=!1),r=!0}})),o?oa((()=>(s.value=!0,u.value))):u}function wc(e){var t;const n=us(e);return null!=(t=null==n?void 0:n.$el)?t:n}const xc=Xi?window:void 0,Cc=Xi?window.document:void 0,kc=Xi?window.navigator:void 0,Sc=Xi?window.location:void 0;function _c(...e){let t,n,r,o;if(ns(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=xc):[t,n,r,o]=e,!t)return as;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const l=[],a=()=>{l.forEach((e=>e())),l.length=0},i=nr((()=>[wc(t),us(o)]),(([e,t])=>{a(),e&&l.push(...n.flatMap((n=>r.map((r=>{return l=n,a=r,i=t,(o=e).addEventListener(l,a,i),()=>o.removeEventListener(l,a,i);var o,l,a,i})))))}),{immediate:!0,flush:"post"}),s=()=>{i(),a()};return Cs(s),s}let Ec=!1;function Oc(e,t,n={}){const{window:r=xc,ignore:o=[],capture:l=!0,detectIframe:a=!1}=n;if(!r)return;is&&!Ec&&(Ec=!0,Array.from(r.document.body.children).forEach((e=>e.addEventListener("click",as))));let i=!0;const s=e=>o.some((t=>{if("string"==typeof t)return Array.from(r.document.querySelectorAll(t)).some((t=>t===e.target||e.composedPath().includes(t)));{const n=wc(t);return n&&(e.target===n||e.composedPath().includes(n))}})),u=[_c(r,"click",(n=>{const r=wc(e);r&&r!==n.target&&!n.composedPath().includes(r)&&(0===n.detail&&(i=!s(n)),i?t(n):i=!0)}),{passive:!0,capture:l}),_c(r,"pointerdown",(t=>{const n=wc(e);n&&(i=!t.composedPath().includes(n)&&!s(t))}),{passive:!0}),a&&_c(r,"blur",(n=>{var o;const l=wc(e);"IFRAME"!==(null==(o=r.document.activeElement)?void 0:o.tagName)||(null==l?void 0:l.contains(r.document.activeElement))||t(n)}))].filter(Boolean);return()=>u.forEach((e=>e()))}var Mc=Object.defineProperty,zc=Object.defineProperties,Tc=Object.getOwnPropertyDescriptors,Ac=Object.getOwnPropertySymbols,Lc=Object.prototype.hasOwnProperty,Ic=Object.prototype.propertyIsEnumerable,Rc=(e,t,n)=>t in e?Mc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pc=(e,t)=>{for(var n in t||(t={}))Lc.call(t,n)&&Rc(e,n,t[n]);if(Ac)for(var n of Ac(t))Ic.call(t,n)&&Rc(e,n,t[n]);return e},Nc=(e,t)=>zc(e,Tc(t));function jc(...e){let t,n,r={};3===e.length?(t=e[0],n=e[1],r=e[2]):2===e.length?"object"==typeof e[1]?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=xc,eventName:l="keydown",passive:a=!1}=r,i=(e=>"function"==typeof e?e:"string"==typeof e?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0)(t);return _c(o,l,(e=>{i(e)&&n(e)}),a)}function Vc(e={}){var t;const{window:n=xc}=e,r=null!=(t=e.document)?t:null==n?void 0:n.document,o=xs((()=>null),(()=>null==r?void 0:r.activeElement));return n&&(_c(n,"blur",(e=>{null===e.relatedTarget&&o.trigger()}),!0),_c(n,"focus",o.trigger,!0)),o}function Bc(e,t,n){const{immediate:r=!0,delay:o=0,onError:l=as,onSuccess:a=as,resetOnExecute:i=!0,shallow:s=!0,throwError:u}=null!=n?n:{},c=s?Ut(t):Wt(t),d=Wt(!1),p=Wt(!1),f=Wt(void 0);async function v(n=0,...r){i&&(c.value=t),f.value=void 0,d.value=!1,p.value=!0,n>0&&await hs(n);const o="function"==typeof e?e(...r):e;try{const e=await o;c.value=e,d.value=!0,a(e)}catch(s){if(f.value=s,l(s),u)throw f}finally{p.value=!1}return c.value}return r&&v(o),{state:c,isReady:d,isLoading:p,error:f,execute:v}}const Hc={array:e=>JSON.stringify(e),object:e=>JSON.stringify(e),set:e=>JSON.stringify(Array.from(e)),map:e=>JSON.stringify(Object.fromEntries(e)),null:()=>""};function Dc(e){return new Promise(((t,n)=>{const r=new FileReader;r.onload=e=>{t(e.target.result)},r.onerror=n,r.readAsDataURL(e)}))}function $c(e,t=!1){const n=Wt(),r=()=>n.value=Boolean(e());return r(),Qs(r,t),n}function Fc(e,t={}){const{window:n=xc}=t,r=$c((()=>n&&"matchMedia"in n&&"function"==typeof n.matchMedia));let o;const l=Wt(!1),a=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",i):o.removeListener(i))},i=()=>{r.value&&(a(),o=n.matchMedia(Hs(e).value),l.value=o.matches,"addEventListener"in o?o.addEventListener("change",i):o.addListener(i))};return Zn(i),Cs((()=>a())),l}var Wc=Object.defineProperty,Uc=Object.getOwnPropertySymbols,Kc=Object.prototype.hasOwnProperty,qc=Object.prototype.propertyIsEnumerable,Yc=(e,t,n)=>t in e?Wc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gc=Object.defineProperty,Jc=Object.defineProperties,Xc=Object.getOwnPropertyDescriptors,Qc=Object.getOwnPropertySymbols,Zc=Object.prototype.hasOwnProperty,ed=Object.prototype.propertyIsEnumerable,td=(e,t,n)=>t in e?Gc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function nd(e){return JSON.parse(JSON.stringify(e))}const rd="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},od="__vueuse_ssr_handlers__";rd[od]=rd[od]||{};const ld=rd[od];function ad(e,t){return ld[e]||t}function id(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e?"object":Number.isNaN(e)?"any":"number"}var sd=Object.defineProperty,ud=Object.getOwnPropertySymbols,cd=Object.prototype.hasOwnProperty,dd=Object.prototype.propertyIsEnumerable,pd=(e,t,n)=>t in e?sd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fd=(e,t)=>{for(var n in t||(t={}))cd.call(t,n)&&pd(e,n,t[n]);if(ud)for(var n of ud(t))dd.call(t,n)&&pd(e,n,t[n]);return e};const vd={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},hd="vueuse-storage";function md(e,t,n,r={}){var o;const{flush:l="pre",deep:a=!0,listenToStorageChanges:i=!0,writeDefaults:s=!0,mergeDefaults:u=!1,shallow:c,window:d=xc,eventFilter:p,onError:f=(e=>{})}=r,v=(c?Ut:Wt)(t);if(!n)try{n=ad("getDefaultStorage",(()=>{var e;return null==(e=xc)?void 0:e.localStorage}))()}catch(x){f(x)}if(!n)return v;const h=us(t),m=id(h),g=null!=(o=r.serializer)?o:vd[m],{pause:y,resume:b}=nc(v,(()=>function(t){try{if(null==t)n.removeItem(e);else{const r=g.write(t),o=n.getItem(e);o!==r&&(n.setItem(e,r),d&&d.dispatchEvent(new CustomEvent(hd,{detail:{key:e,oldValue:o,newValue:r,storageArea:n}})))}}catch(x){f(x)}}(v.value)),{flush:l,deep:a,eventFilter:p});return d&&i&&(_c(d,"storage",w),_c(d,hd,(function(e){w(e.detail)}))),w(),v;function w(t){if(!t||t.storageArea===n)if(t&&null==t.key)v.value=h;else if(!t||t.key===e){y();try{v.value=function(t){const r=t?t.newValue:n.getItem(e);if(null==r)return s&&null!==h&&n.setItem(e,g.write(h)),h;if(!t&&u){const e=g.read(r);return es(u)?u(e,h):"object"!==m||Array.isArray(e)?e:fd(fd({},h),e)}return"string"!=typeof r?r:g.read(r)}(t)}catch(x){f(x)}finally{t?wn(b):b()}}}}function gd(e){return Fc("(prefers-color-scheme: dark)",e)}var yd=Object.defineProperty,bd=Object.getOwnPropertySymbols,wd=Object.prototype.hasOwnProperty,xd=Object.prototype.propertyIsEnumerable,Cd=(e,t,n)=>t in e?yd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function kd(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:o=xc,storage:l,storageKey:a="vueuse-color-scheme",listenToStorageChanges:i=!0,storageRef:s,emitAuto:u}=e,c=((e,t)=>{for(var n in t||(t={}))wd.call(t,n)&&Cd(e,n,t[n]);if(bd)for(var n of bd(t))xd.call(t,n)&&Cd(e,n,t[n]);return e})({auto:"",light:"light",dark:"dark"},e.modes||{}),d=gd({window:o}),p=oa((()=>d.value?"dark":"light")),f=s||(null==a?Wt(r):md(a,r,l,{window:o,listenToStorageChanges:i})),v=oa({get:()=>"auto"!==f.value||u?f.value:p.value,set(e){f.value=e}}),h=ad("updateHTMLAttrs",((e,t,n)=>{const r=null==o?void 0:o.document.querySelector(e);if(r)if("class"===t){const e=n.split(/\s/g);Object.values(c).flatMap((e=>(e||"").split(/\s/g))).filter(Boolean).forEach((t=>{e.includes(t)?r.classList.add(t):r.classList.remove(t)}))}else r.setAttribute(t,n)}));function m(e){var r;const o="auto"===e?p.value:e;h(t,n,null!=(r=c[o])?r:o)}function g(t){e.onChanged?e.onChanged(t,m):m(t)}return nr(v,g,{flush:"post",immediate:!0}),u&&nr(p,(()=>g(v.value)),{flush:"post"}),Qs((()=>g(v.value))),v}function Sd(e,t,{window:n=xc,initialValue:r=""}={}){const o=Wt(r),l=oa((()=>{var e;return wc(t)||(null==(e=null==n?void 0:n.document)?void 0:e.documentElement)}));return nr([l,()=>us(e)],(([e,t])=>{var l;if(e&&n){const a=null==(l=n.getComputedStyle(e).getPropertyValue(t))?void 0:l.trim();o.value=a||r}}),{immediate:!0}),nr(o,(t=>{var n;(null==(n=l.value)?void 0:n.style)&&l.value.style.setProperty(us(e),t)})),o}var _d=Object.defineProperty,Ed=Object.defineProperties,Od=Object.getOwnPropertyDescriptors,Md=Object.getOwnPropertySymbols,zd=Object.prototype.hasOwnProperty,Td=Object.prototype.propertyIsEnumerable,Ad=(e,t,n)=>t in e?_d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Ld=e=>e,Id=(e,t)=>e.value=t;function Rd(e){return e?es(e)?e:nd:Ld}function Pd(e){return e?es(e)?e:nd:Ld}function Nd(e,t={}){const{clone:n=!1,dump:r=Rd(n),parse:o=Pd(n),setSource:l=Id}=t;function a(){return Vt({snapshot:r(e.value),timestamp:os()})}const i=Wt(a()),s=Wt([]),u=Wt([]),c=t=>{l(e,o(t.snapshot)),i.value=t},d=oa((()=>[i.value,...s.value])),p=oa((()=>s.value.length>0)),f=oa((()=>u.value.length>0));return{source:e,undoStack:s,redoStack:u,last:i,history:d,canUndo:p,canRedo:f,clear:()=>{s.value.splice(0,s.value.length),u.value.splice(0,u.value.length)},commit:()=>{s.value.unshift(i.value),i.value=a(),t.capacity&&s.value.length>t.capacity&&s.value.splice(t.capacity,1/0),u.value.length&&u.value.splice(0,u.value.length)},reset:()=>{c(i.value)},undo:()=>{const e=s.value.shift();e&&(u.value.unshift(i.value),c(e))},redo:()=>{const e=u.value.shift();e&&(s.value.unshift(i.value),c(e))}}}var jd=Object.defineProperty,Vd=Object.defineProperties,Bd=Object.getOwnPropertyDescriptors,Hd=Object.getOwnPropertySymbols,Dd=Object.prototype.hasOwnProperty,$d=Object.prototype.propertyIsEnumerable,Fd=(e,t,n)=>t in e?jd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wd=(e,t)=>{for(var n in t||(t={}))Dd.call(t,n)&&Fd(e,n,t[n]);if(Hd)for(var n of Hd(t))$d.call(t,n)&&Fd(e,n,t[n]);return e},Ud=(e,t)=>Vd(e,Bd(t));function Kd(e,t={}){const{deep:n=!1,flush:r="pre",eventFilter:o}=t,{eventFilter:l,pause:a,resume:i,isActive:s}=vs(o),{ignoreUpdates:u,ignorePrevAsyncUpdates:c,stop:d}=Uu(e,h,{deep:n,flush:r,eventFilter:l}),p=Nd(e,Ud(Wd({},t),{clone:t.clone||n,setSource:function(e,t){c(),u((()=>{e.value=t}))}})),{clear:f,commit:v}=p;function h(){c(),v()}return Ud(Wd({},p),{isTracking:s,pause:a,resume:function(e){i(),e&&h()},commit:h,batch:function(e){let t=!1;const n=()=>t=!0;u((()=>{e(n)})),t||h()},dispose:function(){d(),f()}})}var qd=Object.defineProperty,Yd=Object.defineProperties,Gd=Object.getOwnPropertyDescriptors,Jd=Object.getOwnPropertySymbols,Xd=Object.prototype.hasOwnProperty,Qd=Object.prototype.propertyIsEnumerable,Zd=(e,t,n)=>t in e?qd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ep=(e,t)=>{for(var n in t||(t={}))Xd.call(t,n)&&Zd(e,n,t[n]);if(Jd)for(var n of Jd(t))Qd.call(t,n)&&Zd(e,n,t[n]);return e};function tp(e={}){const{window:t=xc}=e,n=$c((()=>t&&"DeviceOrientationEvent"in t)),r=Wt(!1),o=Wt(null),l=Wt(null),a=Wt(null);return t&&n.value&&_c(t,"deviceorientation",(e=>{r.value=e.absolute,o.value=e.alpha,l.value=e.beta,a.value=e.gamma})),{isSupported:n,isAbsolute:r,alpha:o,beta:l,gamma:a}}function np(e,t={}){const{controls:n=!1,navigator:r=kc}=t,o=$c((()=>r&&"permissions"in r));let l;const a="string"==typeof e?{name:e}:e,i=Wt(),s=()=>{l&&(i.value=l.state)},u=gs((async()=>{if(o.value){if(!l)try{l=await r.permissions.query(a),_c(l,"change",s),s()}catch(e){i.value="prompt"}return l}}));return u(),n?{state:i,isSupported:o,query:u}:i}function rp({document:e=Cc}={}){if(!e)return Wt("visible");const t=Wt(e.visibilityState);return _c(e,"visibilitychange",(()=>{t.value=e.visibilityState})),t}var op=Object.defineProperty,lp=Object.defineProperties,ap=Object.getOwnPropertyDescriptors,ip=Object.getOwnPropertySymbols,sp=Object.prototype.hasOwnProperty,up=Object.prototype.propertyIsEnumerable,cp=(e,t,n)=>t in e?op(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dp=Object.getOwnPropertySymbols,pp=Object.prototype.hasOwnProperty,fp=Object.prototype.propertyIsEnumerable,vp=(e,t)=>{var n={};for(var r in e)pp.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&dp)for(var r of dp(e))t.indexOf(r)<0&&fp.call(e,r)&&(n[r]=e[r]);return n};function hp(e,t,n={}){const r=n,{window:o=xc}=r,l=vp(r,["window"]);let a;const i=$c((()=>o&&"ResizeObserver"in o)),s=()=>{a&&(a.disconnect(),a=void 0)},u=nr((()=>wc(e)),(e=>{s(),i.value&&o&&e&&(a=new ResizeObserver(t),a.observe(e,l))}),{immediate:!0,flush:"post"}),c=()=>{s(),u()};return Cs(c),{isSupported:i,stop:c}}function mp(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:l=!0}=t,a=Wt(0),i=Wt(0),s=Wt(0),u=Wt(0),c=Wt(0),d=Wt(0),p=Wt(0),f=Wt(0);function v(){const t=wc(e);if(!t)return void(n&&(a.value=0,i.value=0,s.value=0,u.value=0,c.value=0,d.value=0,p.value=0,f.value=0));const r=t.getBoundingClientRect();a.value=r.height,i.value=r.bottom,s.value=r.left,u.value=r.right,c.value=r.top,d.value=r.width,p.value=r.x,f.value=r.y}return hp(e,v),nr((()=>wc(e)),(e=>!e&&v())),o&&_c("scroll",v,{capture:!0,passive:!0}),r&&_c("resize",v,{passive:!0}),Qs((()=>{l&&v()})),{height:a,bottom:i,left:s,right:u,top:c,width:d,x:p,y:f,update:v}}function gp(e,t={}){const{immediate:n=!0,window:r=xc}=t,o=Wt(!1);let l=0,a=null;function i(t){o.value&&r&&(e({delta:t-l,timestamp:t}),l=t,a=r.requestAnimationFrame(i))}function s(){!o.value&&r&&(o.value=!0,a=r.requestAnimationFrame(i))}function u(){o.value=!1,null!=a&&r&&(r.cancelAnimationFrame(a),a=null)}return n&&s(),Cs(u),{isActive:At(o),pause:u,resume:s}}var yp=Object.defineProperty,bp=Object.getOwnPropertySymbols,wp=Object.prototype.hasOwnProperty,xp=Object.prototype.propertyIsEnumerable,Cp=(e,t,n)=>t in e?yp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function kp(e,t={width:0,height:0},n={}){const{window:r=xc,box:o="content-box"}=n,l=oa((()=>{var t,n;return null==(n=null==(t=wc(e))?void 0:t.namespaceURI)?void 0:n.includes("svg")})),a=Wt(t.width),i=Wt(t.height);return hp(e,(([t])=>{const n="border-box"===o?t.borderBoxSize:"content-box"===o?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&l.value){const t=wc(e);if(t){const e=r.getComputedStyle(t);a.value=parseFloat(e.width),i.value=parseFloat(e.height)}}else if(n){const e=Array.isArray(n)?n:[n];a.value=e.reduce(((e,{inlineSize:t})=>e+t),0),i.value=e.reduce(((e,{blockSize:t})=>e+t),0)}else a.value=t.contentRect.width,i.value=t.contentRect.height}),n),nr((()=>wc(e)),(e=>{a.value=e?t.width:0,i.value=e?t.height:0})),{width:a,height:i}}const Sp=new Map;var _p=Object.defineProperty,Ep=Object.defineProperties,Op=Object.getOwnPropertyDescriptors,Mp=Object.getOwnPropertySymbols,zp=Object.prototype.hasOwnProperty,Tp=Object.prototype.propertyIsEnumerable,Ap=(e,t,n)=>t in e?_p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lp=(e,t)=>{for(var n in t||(t={}))zp.call(t,n)&&Ap(e,n,t[n]);if(Mp)for(var n of Mp(t))Tp.call(t,n)&&Ap(e,n,t[n]);return e},Ip=(e,t)=>Ep(e,Op(t));const Rp={json:"application/json",text:"text/plain"};function Pp(e){return e&&ys(e,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch")}function Np(e){return"undefined"!=typeof Headers&&e instanceof Headers?Object.fromEntries([...e.entries()]):e}function jp(e,...t){return"overwrite"===e?async e=>{const n=t[t.length-1];return void 0!==n&&await n(e),e}:async e=>(await t.reduce(((t,n)=>t.then((async()=>{n&&(e=Lp(Lp({},e),await n(e)))}))),Promise.resolve()),e)}function Vp(e,...t){var n;const r="function"==typeof AbortController;let o={},l={immediate:!0,refetch:!1,timeout:0};const a={method:"GET",type:"text",payload:void 0};t.length>0&&(Pp(t[0])?l=Lp(Lp({},l),t[0]):o=t[0]),t.length>1&&Pp(t[1])&&(l=Lp(Lp({},l),t[1]));const{fetch:i=(null==(n=xc)?void 0:n.fetch),initialData:s,timeout:u}=l,c=ks(),d=ks(),p=ks(),f=Wt(!1),v=Wt(!1),h=Wt(!1),m=Wt(null),g=Ut(null),y=Ut(null),b=Ut(s),w=oa((()=>r&&v.value));let x,C;const k=()=>{r&&x&&(x.abort(),x=void 0)},S=e=>{v.value=e,f.value=!e};u&&(C=fu(k,u,{immediate:!1}));const _=async(t=!1)=>{var n;S(!0),y.value=null,m.value=null,h.value=!1,r&&(k(),x=new AbortController,x.signal.onabort=()=>h.value=!0,o=Ip(Lp({},o),{signal:x.signal}));const s={method:a.method,headers:{}};if(a.payload){const e=Np(s.headers);a.payloadType&&(e["Content-Type"]=null!=(n=Rp[a.payloadType])?n:a.payloadType);const t=us(a.payload);s.body="json"===a.payloadType?JSON.stringify(t):t}let u=!1;const f={url:us(e),options:Lp(Lp({},s),o),cancel:()=>{u=!0}};if(l.beforeFetch&&Object.assign(f,await l.beforeFetch(f)),u||!i)return S(!1),Promise.resolve(null);let v=null;return C&&C.start(),new Promise(((e,n)=>{var r;i(f.url,Ip(Lp(Lp({},s),f.options),{headers:Lp(Lp({},Np(s.headers)),Np(null==(r=f.options)?void 0:r.headers))})).then((async t=>{if(g.value=t,m.value=t.status,v=await t[a.type](),l.afterFetch&&m.value>=200&&m.value<300&&({data:v}=await l.afterFetch({data:v,response:t})),b.value=v,!t.ok)throw new Error(t.statusText);return c.trigger(t),e(t)})).catch((async r=>{let o=r.message||r.name;return l.onFetchError&&({data:v,error:o}=await l.onFetchError({data:v,error:r,response:g.value})),b.value=v,y.value=o,d.trigger(r),t?n(r):e(null)})).finally((()=>{S(!1),C&&C.stop(),p.trigger(null)}))}))},E=Hs(l.refetch);nr([E,Hs(e)],(([e])=>e&&_()),{deep:!0});const O={isFinished:f,statusCode:m,response:g,error:y,data:b,isFetching:v,canAbort:w,aborted:h,abort:k,execute:_,onFetchResponse:c.on,onFetchError:d.on,onFetchFinally:p.on,get:M("GET"),put:M("PUT"),post:M("POST"),delete:M("DELETE"),patch:M("PATCH"),head:M("HEAD"),options:M("OPTIONS"),json:T("json"),text:T("text"),blob:T("blob"),arrayBuffer:T("arrayBuffer"),formData:T("formData")};function M(e){return(t,n)=>{if(!v.value){a.method=e,a.payload=t,a.payloadType=n,Ft(a.payload)&&nr([E,Hs(a.payload)],(([e])=>e&&_()),{deep:!0});const r=us(a.payload);return n||!r||Object.getPrototypeOf(r)!==Object.prototype||r instanceof FormData||(a.payloadType="json"),Ip(Lp({},O),{then:(e,t)=>z().then(e,t)})}}}function z(){return new Promise(((e,t)=>{tu(f).toBe(!0).then((()=>e(O))).catch((e=>t(e)))}))}function T(e){return()=>{if(!v.value)return a.type=e,Ip(Lp({},O),{then:(e,t)=>z().then(e,t)})}}return l.immediate&&setTimeout(_,0),Ip(Lp({},O),{then:(e,t)=>z().then(e,t)})}var Bp=Object.defineProperty,Hp=Object.getOwnPropertySymbols,Dp=Object.prototype.hasOwnProperty,$p=Object.prototype.propertyIsEnumerable,Fp=(e,t,n)=>t in e?Bp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wp=(e,t)=>{for(var n in t||(t={}))Dp.call(t,n)&&Fp(e,n,t[n]);if(Hp)for(var n of Hp(t))$p.call(t,n)&&Fp(e,n,t[n]);return e};const Up={multiple:!0,accept:"*"};var Kp=Object.defineProperty,qp=Object.getOwnPropertySymbols,Yp=Object.prototype.hasOwnProperty,Gp=Object.prototype.propertyIsEnumerable,Jp=(e,t,n)=>t in e?Kp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xp=(e,t)=>{for(var n in t||(t={}))Yp.call(t,n)&&Jp(e,n,t[n]);if(qp)for(var n of qp(t))Gp.call(t,n)&&Jp(e,n,t[n]);return e};const Qp=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Zp=["mousemove","mousedown","resize","keydown","touchstart","wheel"];var ef=Object.defineProperty,tf=Object.getOwnPropertySymbols,nf=Object.prototype.hasOwnProperty,rf=Object.prototype.propertyIsEnumerable,of=(e,t,n)=>t in e?ef(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function lf(e,t={}){const{throttle:n=0,idle:r=200,onStop:o=as,onScroll:l=as,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:i={capture:!1,passive:!0},behavior:s="auto"}=t,u=Wt(0),c=Wt(0),d=oa({get:()=>u.value,set(e){f(e,void 0)}}),p=oa({get:()=>c.value,set(e){f(void 0,e)}});function f(t,n){var r,o,l;const a=us(e);a&&(null==(l=a instanceof Document?document.body:a)||l.scrollTo({top:null!=(r=us(n))?r:p.value,left:null!=(o=us(t))?o:d.value,behavior:us(s)}))}const v=Wt(!1),h=zt({left:!0,right:!1,top:!0,bottom:!1}),m=zt({left:!1,right:!1,top:!1,bottom:!1}),g=e=>{v.value&&(v.value=!1,m.left=!1,m.right=!1,m.top=!1,m.bottom=!1,o(e))},y=Rs(g,n+r),b=e=>{const t=e.target===document?e.target.documentElement:e.target,n=t.scrollLeft;m.left=nc.value,h.left=n<=0+(a.left||0),h.right=n+t.clientWidth>=t.scrollWidth-(a.right||0)-1,u.value=n;let r=t.scrollTop;e.target!==document||r||(r=document.body.scrollTop),m.top=rc.value,h.top=r<=0+(a.top||0),h.bottom=r+t.clientHeight>=t.scrollHeight-(a.bottom||0)-1,c.value=r,v.value=!0,y(e),l(e)};return _c(e,"scroll",n?Ns(b,n,!0,!1):b,i),_c(e,"scrollend",g,i),{x:d,y:p,isScrolling:v,arrivedState:h,directions:m}}var af=Object.defineProperty,sf=Object.defineProperties,uf=Object.getOwnPropertyDescriptors,cf=Object.getOwnPropertySymbols,df=Object.prototype.hasOwnProperty,pf=Object.prototype.propertyIsEnumerable,ff=(e,t,n)=>t in e?af(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vf=(e,t)=>{for(var n in t||(t={}))df.call(t,n)&&ff(e,n,t[n]);if(cf)for(var n of cf(t))pf.call(t,n)&&ff(e,n,t[n]);return e};const hf=["mousedown","mouseup","keydown","keyup"],mf={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};var gf=Object.defineProperty,yf=Object.getOwnPropertySymbols,bf=Object.prototype.hasOwnProperty,wf=Object.prototype.propertyIsEnumerable,xf=(e,t,n)=>t in e?gf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cf=(e,t)=>{for(var n in t||(t={}))bf.call(t,n)&&xf(e,n,t[n]);if(yf)for(var n of yf(t))wf.call(t,n)&&xf(e,n,t[n]);return e};function kf(e,t){us(e)&&t(us(e))}function Sf(e){return Array.from(e).map((({label:e,kind:t,language:n,mode:r,activeCues:o,cues:l,inBandMetadataTrackDispatchType:a},i)=>({id:i,label:e,kind:t,language:n,mode:r,activeCues:o,cues:l,inBandMetadataTrackDispatchType:a})))}const _f={src:"",tracks:[]};function Ef(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:o={x:0,y:0},window:l=xc,eventFilter:a}=e,i=Wt(o.x),s=Wt(o.y),u=Wt(null),c=e=>{"page"===t?(i.value=e.pageX,s.value=e.pageY):"client"===t?(i.value=e.clientX,s.value=e.clientY):"movement"===t&&(i.value=e.movementX,s.value=e.movementY),u.value="mouse"},d=e=>{if(e.touches.length>0){const n=e.touches[0];"page"===t?(i.value=n.pageX,s.value=n.pageY):"client"===t&&(i.value=n.clientX,s.value=n.clientY),u.value="touch"}},p=e=>void 0===a?c(e):a((()=>c(e)),{}),f=e=>void 0===a?d(e):a((()=>d(e)),{});return l&&(_c(l,"mousemove",p,{passive:!0}),_c(l,"dragover",p,{passive:!0}),n&&"movement"!==t&&(_c(l,"touchstart",f,{passive:!0}),_c(l,"touchmove",f,{passive:!0}),r&&_c(l,"touchend",(()=>{i.value=o.x,s.value=o.y}),{passive:!0}))),{x:i,y:s,sourceType:u}}function Of(e,t={}){const{handleOutside:n=!0,window:r=xc}=t,{x:o,y:l,sourceType:a}=Ef(t),i=Wt(null!=e?e:null==r?void 0:r.document.body),s=Wt(0),u=Wt(0),c=Wt(0),d=Wt(0),p=Wt(0),f=Wt(0),v=Wt(!0);let h=()=>{};return r&&(h=nr([i,o,l],(()=>{const e=wc(i);if(!e)return;const{left:t,top:a,width:h,height:m}=e.getBoundingClientRect();c.value=t+r.pageXOffset,d.value=a+r.pageYOffset,p.value=m,f.value=h;const g=o.value-c.value,y=l.value-d.value;v.value=0===h||0===m||g<0||y<0||g>h||y>m,!n&&v.value||(s.value=g,u.value=y)}),{immediate:!0}),_c(document,"mouseleave",(()=>{v.value=!0}))),{x:o,y:l,sourceType:a,elementX:s,elementY:u,elementPositionX:c,elementPositionY:d,elementHeight:p,elementWidth:f,isOutside:v,stop:h}}var Mf=Object.getOwnPropertySymbols,zf=Object.prototype.hasOwnProperty,Tf=Object.prototype.propertyIsEnumerable;function Af(e,t,n={}){const r=n,{window:o=xc}=r,l=((e,t)=>{var n={};for(var r in e)zf.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Mf)for(var r of Mf(e))t.indexOf(r)<0&&Tf.call(e,r)&&(n[r]=e[r]);return n})(r,["window"]);let a;const i=$c((()=>o&&"MutationObserver"in o)),s=()=>{a&&(a.disconnect(),a=void 0)},u=nr((()=>wc(e)),(e=>{s(),i.value&&o&&e&&(a=new MutationObserver(t),a.observe(e,l))}),{immediate:!0}),c=()=>{s(),u()};return Cs(c),{isSupported:i,stop:c}}function Lf(e={}){const{window:t=xc}=e,n=null==t?void 0:t.navigator,r=$c((()=>n&&"connection"in n)),o=Wt(!0),l=Wt(!1),a=Wt(void 0),i=Wt(void 0),s=Wt(void 0),u=Wt(void 0),c=Wt(void 0),d=Wt(void 0),p=Wt("unknown"),f=r.value&&n.connection;function v(){n&&(o.value=n.onLine,a.value=o.value?void 0:Date.now(),i.value=o.value?Date.now():void 0,f&&(s.value=f.downlink,u.value=f.downlinkMax,d.value=f.effectiveType,c.value=f.rtt,l.value=f.saveData,p.value=f.type))}return t&&(_c(t,"offline",(()=>{o.value=!1,a.value=Date.now()})),_c(t,"online",(()=>{o.value=!0,i.value=Date.now()}))),f&&_c(f,"change",v,!1),v(),{isSupported:r,isOnline:o,saveData:l,offlineAt:a,onlineAt:i,downlink:s,downlinkMax:u,effectiveType:d,rtt:c,type:p}}var If=Object.defineProperty,Rf=Object.getOwnPropertySymbols,Pf=Object.prototype.hasOwnProperty,Nf=Object.prototype.propertyIsEnumerable,jf=(e,t,n)=>t in e?If(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Vf(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=Wt(new Date),o=()=>r.value=new Date,l="requestAnimationFrame"===n?gp(o,{immediate:!0}):iu(o,n,{immediate:!0});return t?((e,t)=>{for(var n in t||(t={}))Pf.call(t,n)&&jf(e,n,t[n]);if(Rf)for(var n of Rf(t))Nf.call(t,n)&&jf(e,n,t[n]);return e})({now:r},l):r}function Bf(e,t,n){if(es(e)||Rt(e))return oa((()=>ls(us(e),us(t),us(n))));const r=Wt(e);return oa({get:()=>r.value=ls(r.value,us(t),us(n)),set(e){r.value=ls(e,us(t),us(n))}})}var Hf=Object.defineProperty,Df=Object.defineProperties,$f=Object.getOwnPropertyDescriptors,Ff=Object.getOwnPropertySymbols,Wf=Object.prototype.hasOwnProperty,Uf=Object.prototype.propertyIsEnumerable,Kf=(e,t,n)=>t in e?Hf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const qf={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},Yf=Object.keys(qf);var Gf,Jf;(Jf=Gf||(Gf={})).UP="UP",Jf.RIGHT="RIGHT",Jf.DOWN="DOWN",Jf.LEFT="LEFT",Jf.NONE="NONE";const Xf="--vueuse-safe-area-top",Qf="--vueuse-safe-area-right",Zf="--vueuse-safe-area-bottom",ev="--vueuse-safe-area-left";function tv(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function nv(e){const t=window.getComputedStyle(e);if("scroll"===t.overflowX||"scroll"===t.overflowY||"auto"===t.overflowX&&e.clientHeight1||(t.preventDefault&&t.preventDefault(),!1))}var ov=Object.defineProperty,lv=Object.getOwnPropertySymbols,av=Object.prototype.hasOwnProperty,iv=Object.prototype.propertyIsEnumerable,sv=(e,t,n)=>t in e?ov(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uv=(e,t)=>{for(var n in t||(t={}))av.call(t,n)&&sv(e,n,t[n]);if(lv)for(var n of lv(t))iv.call(t,n)&&sv(e,n,t[n]);return e};const cv=(e,t)=>e.sort(t),dv=(e,t)=>e-t;var pv=Object.defineProperty,fv=Object.getOwnPropertySymbols,vv=Object.prototype.hasOwnProperty,hv=Object.prototype.propertyIsEnumerable,mv=(e,t,n)=>t in e?pv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gv=(e,t)=>{for(var n in t||(t={}))vv.call(t,n)&&mv(e,n,t[n]);if(fv)for(var n of fv(t))hv.call(t,n)&&mv(e,n,t[n]);return e};let yv=0;var bv=Object.defineProperty,wv=Object.defineProperties,xv=Object.getOwnPropertyDescriptors,Cv=Object.getOwnPropertySymbols,kv=Object.prototype.hasOwnProperty,Sv=Object.prototype.propertyIsEnumerable,_v=(e,t,n)=>t in e?bv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ev=(e,t)=>{for(var n in t||(t={}))kv.call(t,n)&&_v(e,n,t[n]);if(Cv)for(var n of Cv(t))Sv.call(t,n)&&_v(e,n,t[n]);return e},Ov=Object.defineProperty,Mv=Object.getOwnPropertySymbols,zv=Object.prototype.hasOwnProperty,Tv=Object.prototype.propertyIsEnumerable,Av=(e,t,n)=>t in e?Ov(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Lv=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:1/0,value:31536e6,name:"year"}],Iv={justNow:"just now",past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>1===e?t?"last month":"next month":`${e} month${e>1?"s":""}`,year:(e,t)=>1===e?t?"last year":"next year":`${e} year${e>1?"s":""}`,day:(e,t)=>1===e?t?"yesterday":"tomorrow":`${e} day${e>1?"s":""}`,week:(e,t)=>1===e?t?"last week":"next week":`${e} week${e>1?"s":""}`,hour:e=>`${e} hour${e>1?"s":""}`,minute:e=>`${e} minute${e>1?"s":""}`,second:e=>`${e} second${e>1?"s":""}`,invalid:""},Rv=e=>e.toISOString().slice(0,10);function Pv(e,t={},n=Date.now()){var r;const{max:o,messages:l=Iv,fullDateFormatter:a=Rv,units:i=Lv,showSecond:s=!1,rounding:u="round"}=t,c="number"==typeof u?e=>+e.toFixed(u):Math[u],d=+n-+e,p=Math.abs(d);function f(e,t){return c(Math.abs(e)/t.value)}function v(e,t){const n=f(e,t),r=e>0,o=h(t.name,n,r);return h(r?"past":"future",o,r)}function h(e,t,n){const r=l[e];return"function"==typeof r?r(t,n):r.replace("{0}",t.toString())}if(p<6e4&&!s)return l.justNow;if("number"==typeof o&&p>o)return a(new Date(e));if("string"==typeof o){const t=null==(r=i.find((e=>e.name===o)))?void 0:r.max;if(t&&p>t)return a(new Date(e))}for(const[m,g]of i.entries()){if(f(d,g)<=0&&i[m-1])return v(d,i[m-1]);if(pt in e?Nv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dv=Object.defineProperty,$v=Object.getOwnPropertySymbols,Fv=Object.prototype.hasOwnProperty,Wv=Object.prototype.propertyIsEnumerable,Uv=(e,t,n)=>t in e?Dv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Kv=((e,t)=>{for(var n in t||(t={}))Fv.call(t,n)&&Uv(e,n,t[n]);if($v)for(var n of $v(t))Wv.call(t,n)&&Uv(e,n,t[n]);return e})({linear:ms},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function qv(e,t,n,r={}){var o,l,a;const{clone:i=!1,passive:s=!1,eventName:u,deep:c=!1,defaultValue:d}=r,p=$l(),f=n||(null==p?void 0:p.emit)||(null==(o=null==p?void 0:p.$emit)?void 0:o.bind(p))||(null==(a=null==(l=null==p?void 0:p.proxy)?void 0:l.$emit)?void 0:a.bind(null==p?void 0:p.proxy));let v=u;t||(t="modelValue"),v=u||v||`update:${t.toString()}`;const h=e=>i?es(i)?i(e):nd(e):e,m=()=>Qi(e[t])?h(e[t]):d;if(s){const n=Wt(m());return nr((()=>e[t]),(e=>n.value=h(e))),nr(n,(n=>{(n!==e[t]||c)&&f(v,n)}),{deep:c}),n}return oa({get:()=>m(),set(e){f(v,e)}})}function Yv(e){const t=Wt(null),n=kp(t),r=Wt([]),o=Ut(e);return{state:Wt({start:0,end:10}),source:o,currentList:r,size:n,containerRef:t}}function Gv(e,t,n){return r=>{if("number"==typeof n)return Math.ceil(r/n);const{start:o=0}=e.value;let l=0,a=0;for(let e=o;er));e++);return a-o}}function Jv(e,t){return n=>{if("number"==typeof t)return Math.floor(n/t)+1;let r=0,o=0;for(let l=0;l=n){o=l;break}return o+1}}function Xv(e,t,n,r,{containerRef:o,state:l,currentList:a,source:i}){return()=>{const s=o.value;if(s){const o=n("vertical"===e?s.scrollTop:s.scrollLeft),u=r("vertical"===e?s.clientHeight:s.clientWidth),c=o-t,d=o+u+t;l.value={start:c<0?0:c,end:d>i.value.length?i.value.length:d},a.value=i.value.slice(l.value.start,l.value.end).map(((e,t)=>({data:e,index:t+l.value.start})))}}}function Qv(e,t){return n=>{if("number"==typeof e)return n*e;return t.value.slice(0,n).reduce(((t,n,r)=>t+e(r)),0)}}function Zv(e,t,n){nr([e.width,e.height,t],(()=>{n()}))}function eh(e,t){return oa((()=>"number"==typeof e?t.value.length*e:t.value.reduce(((t,n,r)=>t+e(r)),0)))}const th={horizontal:"scrollLeft",vertical:"scrollTop"};function nh(e,t,n,r){return o=>{r.value&&(r.value[th[e]]=n(o),t())}}const rh="ping";function oh(e){return!0===e?{}:e}const lh=e=>t=>{const n=t.data[0];return Promise.resolve(e.apply(void 0,n)).then((e=>{postMessage(["SUCCESS",e])})).catch((e=>{postMessage(["ERROR",e])}))},ah=(e,t)=>{const n=`${o=t,0===o.length?"":`importScripts(${o.map((e=>`'${e}'`)).toString()})`}; onmessage=(${lh})(${e})`,r=new Blob([n],{type:"text/javascript"});var o;return URL.createObjectURL(r)};function ih({window:e=xc}={}){if(!e)return Wt(!1);const t=Wt(e.document.hasFocus());return _c(e,"blur",(()=>{t.value=!1})),_c(e,"focus",(()=>{t.value=!0})),t}function sh(e={}){const{window:t=xc,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:l=!0}=e,a=Wt(n),i=Wt(r),s=()=>{t&&(l?(a.value=t.innerWidth,i.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return s(),Qs(s),_c("resize",s,{passive:!0}),o&&_c("orientationchange",s,{passive:!0}),{width:a,height:i}}const uh=Object.freeze(Object.defineProperty({__proto__:null,DefaultMagicKeysAliasMap:mf,StorageSerializers:vd,get SwipeDirection(){return Gf},TransitionPresets:Kv,__onlyVue27Plus:function(e="this function"){},__onlyVue3:function(e="this function"){},assert:(e,...t)=>{},asyncComputed:bc,autoResetRef:Is,breakpointsAntDesign:{xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},breakpointsBootstrapV5:{sm:576,md:768,lg:992,xl:1200,xxl:1400},breakpointsMasterCss:{"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},breakpointsQuasar:{xs:600,sm:1024,md:1440,lg:1920},breakpointsSematic:{mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},breakpointsTailwind:{sm:640,md:768,lg:1024,xl:1280,"2xl":1536},breakpointsVuetify:{xs:600,sm:960,md:1264,lg:1904},bypassFilter:ds,clamp:ls,cloneFnJSON:nd,computedAsync:bc,computedEager:Ji,computedInject:function(e,t,n,r){let o=zo(e);return n&&(o=zo(e,n)),r&&(o=zo(e,n,r)),oa("function"==typeof t?e=>t(o,e):{get:e=>t.get(o,e),set:t.set})},computedWithControl:xs,containsProp:ys,controlledComputed:xs,controlledRef:Bs,createEventHook:ks,createFetch:function(e={}){const t=e.combination||"chain",n=e.options||{},r=e.fetchOptions||{};return function(o,...l){const a=oa((()=>{const t=us(e.baseUrl),n=us(o);return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)?function(e,t){return e.endsWith("/")||t.startsWith("/")?`${e}${t}`:`${e}/${t}`}(t,n):n}));let i=n,s=r;return l.length>0&&(Pp(l[0])?i=Ip(Lp(Lp({},i),l[0]),{beforeFetch:jp(t,n.beforeFetch,l[0].beforeFetch),afterFetch:jp(t,n.afterFetch,l[0].afterFetch),onFetchError:jp(t,n.onFetchError,l[0].onFetchError)}):s=Ip(Lp(Lp({},s),l[0]),{headers:Lp(Lp({},Np(s.headers)||{}),Np(l[0].headers)||{})})),l.length>1&&Pp(l[1])&&(i=Ip(Lp(Lp({},i),l[1]),{beforeFetch:jp(t,n.beforeFetch,l[1].beforeFetch),afterFetch:jp(t,n.afterFetch,l[1].afterFetch),onFetchError:jp(t,n.onFetchError,l[1].onFetchError)})),Vp(a,s,i)}},createFilterWrapper:cs,createGlobalState:function(e){let t,n=!1;const r=be(!0);return()=>(n||(t=r.run(e),n=!0),t)},createInjectionState:function(e){const t=Symbol("InjectionState");return[(...n)=>{const r=e(...n);return Mo(t,r),r},()=>zo(t)]},createReactiveFn:Ts,createSharedComposable:function(e){let t,n,r=0;const o=()=>{r-=1,n&&r<=0&&(n.stop(),t=void 0,n=void 0)};return(...l)=>(r+=1,t||(n=be(!0),t=n.run((()=>e(...l)))),Cs(o),t)},createSingletonPromise:gs,createUnrefFn:e=>function(...t){return e.apply(this,t.map((e=>Gt(e))))},customStorageEventName:hd,debounceFilter:ps,debouncedRef:Ps,debouncedWatch:Ru,defaultDocument:Cc,defaultLocation:Sc,defaultNavigator:kc,defaultWindow:xc,directiveHooks:{mounted:"mounted",updated:"updated",unmounted:"unmounted"},eagerComputed:Ji,extendRef:Ss,formatDate:lu,formatTimeAgo:Pv,get:function(e,t){return null==t?Gt(e):Gt(e)[t]},getSSRHandler:ad,hasOwn:ss,identity:ms,ignorableWatch:Uu,increaseWithUnit:bs,invoke:function(e){return e()},isBoolean:e=>"boolean"==typeof e,isClient:Xi,isDef:Qi,isDefined:function(e){return null!=Gt(e)},isFunction:es,isIOS:is,isNumber:ts,isObject:rs,isString:ns,isWindow:e=>"undefined"!=typeof window&&"[object Window]"===Zi.call(e),makeDestructurable:function(e,t){if("undefined"!=typeof Symbol){const n=((e,t)=>{for(var n in t||(t={}))Os.call(t,n)&&zs(e,n,t[n]);if(Es)for(var n of Es(t))Ms.call(t,n)&&zs(e,n,t[n]);return e})({},e);return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let e=0;return{next:()=>({value:t[e++],done:e>t.length})}}}),n}return Object.assign([...t],e)},mapGamepadToXbox360Controller:function(e){return oa((()=>e.value?{buttons:{a:e.value.buttons[0],b:e.value.buttons[1],x:e.value.buttons[2],y:e.value.buttons[3]},bumper:{left:e.value.buttons[4],right:e.value.buttons[5]},triggers:{left:e.value.buttons[6],right:e.value.buttons[7]},stick:{left:{horizontal:e.value.axes[0],vertical:e.value.axes[1],button:e.value.buttons[10]},right:{horizontal:e.value.axes[2],vertical:e.value.axes[3],button:e.value.buttons[11]}},dpad:{up:e.value.buttons[12],down:e.value.buttons[13],left:e.value.buttons[14],right:e.value.buttons[15]},back:e.value.buttons[8],start:e.value.buttons[9]}:null))},noop:as,normalizeDate:au,now:()=>Date.now(),objectPick:ws,onClickOutside:Oc,onKeyDown:function(e,t,n={}){return jc(e,t,Nc(Pc({},n),{eventName:"keydown"}))},onKeyPressed:function(e,t,n={}){return jc(e,t,Nc(Pc({},n),{eventName:"keypress"}))},onKeyStroke:jc,onKeyUp:function(e,t,n={}){return jc(e,t,Nc(Pc({},n),{eventName:"keyup"}))},onLongPress:function(e,t,n){var r,o;const l=oa((()=>wc(e)));let a;function i(){a&&(clearTimeout(a),a=void 0)}const s={capture:null==(r=null==n?void 0:n.modifiers)?void 0:r.capture,once:null==(o=null==n?void 0:n.modifiers)?void 0:o.once};_c(l,"pointerdown",(function(e){var r,o,s,u;(null==(r=null==n?void 0:n.modifiers)?void 0:r.self)&&e.target!==l.value||(i(),(null==(o=null==n?void 0:n.modifiers)?void 0:o.prevent)&&e.preventDefault(),(null==(s=null==n?void 0:n.modifiers)?void 0:s.stop)&&e.stopPropagation(),a=setTimeout((()=>t(e)),null!=(u=null==n?void 0:n.delay)?u:500))}),s),_c(l,"pointerup",i,s),_c(l,"pointerleave",i,s)},onStartTyping:function(e,t={}){const{document:n=Cc}=t;n&&_c(n,"keydown",(t=>{!(()=>{const{activeElement:e,body:t}=document;if(!e)return!1;if(e===t)return!1;switch(e.tagName){case"INPUT":case"TEXTAREA":return!0}return e.hasAttribute("contenteditable")})()&&(({keyCode:e,metaKey:t,ctrlKey:n,altKey:r})=>!(t||n||r)&&(e>=48&&e<=57||e>=96&&e<=105||e>=65&&e<=90))(t)&&e(t)}),{passive:!0})},pausableFilter:vs,pausableWatch:nc,promiseTimeout:hs,rand:(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e),reactify:Ts,reactifyObject:function(e,t={}){let n,r=[];if(Array.isArray(t))r=t;else{n=t;const{includeOwnProperties:o=!0}=t;r.push(...Object.keys(e)),o&&r.push(...Object.getOwnPropertyNames(e))}return Object.fromEntries(r.map((t=>{const r=e[t];return[t,"function"==typeof r?Ts(r.bind(e),n):r]})))},reactiveComputed:Ls,reactiveOmit:function(e,...t){const n=t.flat();return Ls((()=>Object.fromEntries(Object.entries(en(e)).filter((e=>!n.includes(e[0]))))))},reactivePick:function(e,...t){const n=t.flat();return zt(Object.fromEntries(n.map((t=>[t,rn(e,t)]))))},refAutoReset:Is,refDebounced:Ps,refDefault:function(e,t){return oa({get(){var n;return null!=(n=e.value)?n:t},set(t){e.value=t}})},refThrottled:js,refWithControl:Vs,resolveRef:Hs,resolveUnref:us,set:function(...e){if(2===e.length){const[t,n]=e;t.value=n}if(3===e.length){const[t,n,r]=e;t[n]=r}},setSSRHandler:function(e,t){ld[e]=t},syncRef:Ds,syncRefs:function(e,t,n={}){const{flush:r="sync",deep:o=!1,immediate:l=!0}=n;return Array.isArray(t)||(t=[t]),nr(e,(e=>t.forEach((t=>t.value=e))),{flush:r,deep:o,immediate:l})},templateRef:function(e,t=null){const n=$l();let r=()=>{};const o=Zt(((o,l)=>(r=l,{get(){var r,l;return o(),null!=(l=null==(r=null==n?void 0:n.proxy)?void 0:r.$refs[e])?l:t},set(){}})));return Qs(r),Vr(r),o},throttleFilter:fs,throttledRef:js,throttledWatch:cc,timestamp:os,toReactive:As,toRefs:Xs,tryOnBeforeMount:function(e,t=!0){$l()?Pr(e):t?e():wn(e)},tryOnBeforeUnmount:function(e){$l()&&Br(e)},tryOnMounted:Qs,tryOnScopeDispose:Cs,tryOnUnmounted:Zs,unrefElement:wc,until:tu,useActiveElement:Vc,useArrayEvery:function(e,t){return oa((()=>us(e).every(((e,n,r)=>t(us(e),n,r)))))},useArrayFilter:function(e,t){return oa((()=>us(e).map((e=>us(e))).filter(t)))},useArrayFind:function(e,t){return oa((()=>us(us(e).find(((e,n,r)=>t(us(e),n,r))))))},useArrayFindIndex:function(e,t){return oa((()=>us(e).findIndex(((e,n,r)=>t(us(e),n,r)))))},useArrayFindLast:function(e,t){return oa((()=>us(Array.prototype.findLast?us(e).findLast(((e,n,r)=>t(us(e),n,r))):function(e,t){let n=e.length;for(;n-- >0;)if(t(e[n],n,e))return e[n]}(us(e),((e,n,r)=>t(us(e),n,r))))))},useArrayJoin:function(e,t){return oa((()=>us(e).map((e=>us(e))).join(us(t))))},useArrayMap:function(e,t){return oa((()=>us(e).map((e=>us(e))).map(t)))},useArrayReduce:function(e,t,...n){const r=(e,n,r)=>t(us(e),us(n),r);return oa((()=>{const t=us(e);return n.length?t.reduce(r,us(n[0])):t.reduce(r)}))},useArraySome:function(e,t){return oa((()=>us(e).some(((e,n,r)=>t(us(e),n,r)))))},useArrayUnique:function(e){return oa((()=>[...new Set(us(e).map((e=>us(e))))]))},useAsyncQueue:function(e,t={}){const{interrupt:n=!0,onError:r=as,onFinished:o=as}=t,l="rejected",a=zt(Array.from(new Array(e.length),(()=>({state:"pending",data:null})))),i=Wt(-1);if(!e||0===e.length)return o(),{activeIndex:i,result:a};function s(e,t){i.value++,a[i.value].data=t,a[i.value].state=e}return e.reduce(((t,u)=>t.then((t=>{var r;if((null==(r=a[i.value])?void 0:r.state)!==l||!n)return u(t).then((t=>(s("fulfilled",t),i.value===e.length-1&&o(),t)));o()})).catch((e=>(s(l,e),r(),e)))),Promise.resolve()),{activeIndex:i,result:a}},useAsyncState:Bc,useBase64:function(e,t){const n=Wt(""),r=Wt();function o(){if(Xi)return r.value=new Promise(((n,r)=>{try{const l=us(e);if(null==l)n("");else if("string"==typeof l)n(Dc(new Blob([l],{type:"text/plain"})));else if(l instanceof Blob)n(Dc(l));else if(l instanceof ArrayBuffer)n(window.btoa(String.fromCharCode(...new Uint8Array(l))));else if(l instanceof HTMLCanvasElement)n(l.toDataURL(null==t?void 0:t.type,null==t?void 0:t.quality));else if(l instanceof HTMLImageElement){const e=l.cloneNode(!1);e.crossOrigin="Anonymous",(o=e,new Promise(((e,t)=>{o.complete?e():(o.onload=()=>{e()},o.onerror=t)}))).then((()=>{const r=document.createElement("canvas"),o=r.getContext("2d");r.width=e.width,r.height=e.height,o.drawImage(e,0,0,r.width,r.height),n(r.toDataURL(null==t?void 0:t.type,null==t?void 0:t.quality))})).catch(r)}else{if("object"==typeof l){const e=(null==t?void 0:t.serializer)||function(e){return e?e instanceof Map?Hc.map:e instanceof Set?Hc.set:Array.isArray(e)?Hc.array:Hc.object:Hc.null}(l),r=e(l);return n(Dc(new Blob([r],{type:"application/json"})))}r(new Error("target is unsupported types"))}}catch(l){r(l)}var o})),r.value.then((e=>n.value=e)),r.value}return Ft(e)||es(e)?nr(e,o,{immediate:!0}):o(),{base64:n,promise:r,execute:o}},useBattery:function({navigator:e=kc}={}){const t=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],n=$c((()=>e&&"getBattery"in e)),r=Wt(!1),o=Wt(0),l=Wt(0),a=Wt(1);let i;function s(){r.value=this.charging,o.value=this.chargingTime||0,l.value=this.dischargingTime||0,a.value=this.level}return n.value&&e.getBattery().then((e=>{i=e,s.call(i);for(const n of t)_c(i,n,s,{passive:!0})})),{isSupported:n,charging:r,chargingTime:o,dischargingTime:l,level:a}},useBluetooth:function(e){let{acceptAllDevices:t=!1}=e||{};const{filters:n,optionalServices:r,navigator:o=kc}=e||{},l=$c((()=>o&&"bluetooth"in o)),a=Ut(void 0),i=Ut(null);nr(a,(()=>{!async function(){if(i.value=null,a.value&&a.value.gatt){a.value.addEventListener("gattserverdisconnected",(()=>{}));try{s.value=await a.value.gatt.connect()}catch(e){i.value=e}}}()}));const s=Wt(),u=oa((()=>{var e;return(null==(e=s.value)?void 0:e.connected)||!1}));return Qs((()=>{var e;a.value&&(null==(e=a.value.gatt)||e.connect())})),Cs((()=>{var e;a.value&&(null==(e=a.value.gatt)||e.disconnect())})),{isSupported:l,isConnected:u,device:a,requestDevice:async function(){if(l.value){i.value=null,n&&n.length>0&&(t=!1);try{a.value=await(null==o?void 0:o.bluetooth.requestDevice({acceptAllDevices:t,filters:n,optionalServices:r}))}catch(e){i.value=e}}},server:s,error:i}},useBreakpoints:function(e,t={}){function n(t,n){let r=e[t];return null!=n&&(r=bs(r,n)),"number"==typeof r&&(r=`${r}px`),r}const{window:r=xc}=t;function o(e){return!!r&&r.matchMedia(e).matches}const l=e=>Fc(`(min-width: ${n(e)})`,t),a=Object.keys(e).reduce(((e,t)=>(Object.defineProperty(e,t,{get:()=>l(t),enumerable:!0,configurable:!0}),e)),{});return((e,t)=>{for(var n in t||(t={}))Kc.call(t,n)&&Yc(e,n,t[n]);if(Uc)for(var n of Uc(t))qc.call(t,n)&&Yc(e,n,t[n]);return e})({greater:e=>Fc(`(min-width: ${n(e,.1)})`,t),greaterOrEqual:l,smaller:e=>Fc(`(max-width: ${n(e,-.1)})`,t),smallerOrEqual:e=>Fc(`(max-width: ${n(e)})`,t),between:(e,r)=>Fc(`(min-width: ${n(e)}) and (max-width: ${n(r,-.1)})`,t),isGreater:e=>o(`(min-width: ${n(e,.1)})`),isGreaterOrEqual:e=>o(`(min-width: ${n(e)})`),isSmaller:e=>o(`(max-width: ${n(e,-.1)})`),isSmallerOrEqual:e=>o(`(max-width: ${n(e)})`),isInBetween:(e,t)=>o(`(min-width: ${n(e)}) and (max-width: ${n(t,-.1)})`)},a)},useBroadcastChannel:e=>{const{name:t,window:n=xc}=e,r=$c((()=>n&&"BroadcastChannel"in n)),o=Wt(!1),l=Wt(),a=Wt(),i=Wt(null),s=()=>{l.value&&l.value.close(),o.value=!0};return r.value&&Qs((()=>{i.value=null,l.value=new BroadcastChannel(t),l.value.addEventListener("message",(e=>{a.value=e.data}),{passive:!0}),l.value.addEventListener("messageerror",(e=>{i.value=e}),{passive:!0}),l.value.addEventListener("close",(()=>{o.value=!0}))})),Cs((()=>{s()})),{isSupported:r,channel:l,data:a,post:e=>{l.value&&l.value.postMessage(e)},close:s,error:i,isClosed:o}},useBrowserLocation:function({window:e=xc}={}){const t=t=>{const{state:n,length:r}=(null==e?void 0:e.history)||{},{hash:o,host:l,hostname:a,href:i,origin:s,pathname:u,port:c,protocol:d,search:p}=(null==e?void 0:e.location)||{};return{trigger:t,state:n,length:r,hash:o,host:l,hostname:a,href:i,origin:s,pathname:u,port:c,protocol:d,search:p}},n=Wt(t("load"));return e&&(_c(e,"popstate",(()=>n.value=t("popstate")),{passive:!0}),_c(e,"hashchange",(()=>n.value=t("hashchange")),{passive:!0})),n},useCached:function(e,t=((e,t)=>e===t),n){const r=Wt(e.value);return nr((()=>e.value),(e=>{t(e,r.value)||(r.value=e)}),n),r},useClipboard:function(e={}){const{navigator:t=kc,read:n=!1,source:r,copiedDuring:o=1500,legacy:l=!1}=e,a=["copy","cut"],i=$c((()=>t&&"clipboard"in t)),s=oa((()=>i.value||l)),u=Wt(""),c=Wt(!1),d=fu((()=>c.value=!1),o);function p(){var e,n,r;i.value?t.clipboard.readText().then((e=>{u.value=e})):u.value=null!=(r=null==(n=null==(e=null==document?void 0:document.getSelection)?void 0:e.call(document))?void 0:n.toString())?r:""}if(s.value&&n)for(const f of a)_c(f,p);return{isSupported:s,text:u,copied:c,copy:async function(e=us(r)){s.value&&null!=e&&(i.value?await t.clipboard.writeText(e):function(e){const t=document.createElement("textarea");t.value=null!=e?e:"",t.style.position="absolute",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}(e),u.value=e,c.value=!0,d.start())}}},useCloned:function(e,t={}){const n=Wt({}),{manual:r,clone:o=nd,deep:l=!0,immediate:a=!0}=t;function i(){n.value=o(Gt(e))}return!r&&Ft(e)?nr(e,i,(s=((e,t)=>{for(var n in t||(t={}))Zc.call(t,n)&&td(e,n,t[n]);if(Qc)for(var n of Qc(t))ed.call(t,n)&&td(e,n,t[n]);return e})({},t),Jc(s,Xc({deep:l,immediate:a})))):i(),{cloned:n,sync:i};var s},useColorMode:kd,useConfirmDialog:function(e=Wt(!1)){const t=ks(),n=ks(),r=ks();let o=as;return{isRevealed:oa((()=>e.value)),reveal:t=>(r.trigger(t),e.value=!0,new Promise((e=>{o=e}))),confirm:n=>{e.value=!1,t.trigger(n),o({data:n,isCanceled:!1})},cancel:t=>{e.value=!1,n.trigger(t),o({data:t,isCanceled:!0})},onReveal:r.on,onConfirm:t.on,onCancel:n.on}},useCounter:function(e=0,t={}){const n=Wt(e),{max:r=1/0,min:o=-1/0}=t,l=e=>n.value=Math.max(o,Math.min(r,e));return{count:n,inc:(e=1)=>n.value=Math.min(r,n.value+e),dec:(e=1)=>n.value=Math.max(o,n.value-e),get:()=>n.value,set:l,reset:(t=e)=>(e=t,l(t))}},useCssVar:Sd,useCurrentElement:function(){const e=$l(),t=xs((()=>null),(()=>e.proxy.$el));return Vr(t.trigger),Nr(t.trigger),t},useCycleList:function(e,t){var n;const r=Ut(null!=(n=null==t?void 0:t.initialValue)?n:e[0]),o=oa({get(){var n;let o=(null==t?void 0:t.getIndexOf)?t.getIndexOf(r.value,e):e.indexOf(r.value);return o<0&&(o=null!=(n=null==t?void 0:t.fallbackIndex)?n:0),o},set(e){l(e)}});function l(t){const n=e.length,o=e[(t%n+n)%n];return r.value=o,o}function a(e=1){return l(o.value+e)}return{state:r,index:o,next:function(e=1){return a(e)},prev:function(e=1){return a(-e)}}},useDark:function(e={}){const{valueDark:t="dark",valueLight:n="",window:r=xc}=e,o=kd((i=((e,t)=>{for(var n in t||(t={}))zd.call(t,n)&&Ad(e,n,t[n]);if(Md)for(var n of Md(t))Td.call(t,n)&&Ad(e,n,t[n]);return e})({},e),Ed(i,Od({onChanged:(t,n)=>{var r;e.onChanged?null==(r=e.onChanged)||r.call(e,"dark"===t):n(t)},modes:{dark:t,light:n}})))),l=gd({window:r}),a=oa({get:()=>"dark"===o.value,set(e){e===l.value?o.value="auto":o.value=e?"dark":"light"}});var i;return a},useDateFormat:function(e,t="HH:mm:ss",n={}){return oa((()=>lu(au(us(e)),us(t),n)))},useDebounce:Ps,useDebounceFn:Rs,useDebouncedRefHistory:function(e,t={}){const n=t.debounce?ps(t.debounce):void 0,r=Kd(e,(o=ep({},t),Yd(o,Gd({eventFilter:n}))));var o;return ep({},r)},useDeviceMotion:function(e={}){const{window:t=xc,eventFilter:n=ds}=e,r=Wt({x:null,y:null,z:null}),o=Wt({alpha:null,beta:null,gamma:null}),l=Wt(0),a=Wt({x:null,y:null,z:null});if(t){_c(t,"devicemotion",cs(n,(e=>{r.value=e.acceleration,a.value=e.accelerationIncludingGravity,o.value=e.rotationRate,l.value=e.interval})))}return{acceleration:r,accelerationIncludingGravity:a,rotationRate:o,interval:l}},useDeviceOrientation:tp,useDevicePixelRatio:function({window:e=xc}={}){const t=Wt(1);if(e){let n,r=function(){t.value=e.devicePixelRatio,o(),n=e.matchMedia(`(resolution: ${t.value}dppx)`),n.addEventListener("change",r,{once:!0})},o=function(){null==n||n.removeEventListener("change",r)};r(),Cs(o)}return{pixelRatio:t}},useDevicesList:function(e={}){const{navigator:t=kc,requestPermissions:n=!1,constraints:r={audio:!0,video:!0},onUpdated:o}=e,l=Wt([]),a=oa((()=>l.value.filter((e=>"videoinput"===e.kind)))),i=oa((()=>l.value.filter((e=>"audioinput"===e.kind)))),s=oa((()=>l.value.filter((e=>"audiooutput"===e.kind)))),u=$c((()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices)),c=Wt(!1);async function d(){u.value&&(l.value=await t.mediaDevices.enumerateDevices(),null==o||o(l.value))}async function p(){if(!u.value)return!1;if(c.value)return!0;const{state:e,query:n}=np("camera",{controls:!0});return await n(),"granted"!==e.value?((await t.mediaDevices.getUserMedia(r)).getTracks().forEach((e=>e.stop())),d(),c.value=!0):c.value=!0,c.value}return u.value&&(n&&p(),_c(t.mediaDevices,"devicechange",d),d()),{devices:l,ensurePermissions:p,permissionGranted:c,videoInputs:a,audioInputs:i,audioOutputs:s,isSupported:u}},useDisplayMedia:function(e={}){var t;const n=Wt(null!=(t=e.enabled)&&t),r=e.video,o=e.audio,{navigator:l=kc}=e,a=$c((()=>{var e;return null==(e=null==l?void 0:l.mediaDevices)?void 0:e.getDisplayMedia})),i={audio:o,video:r},s=Ut();async function u(){if(a.value&&!s.value)return s.value=await l.mediaDevices.getDisplayMedia(i),s.value}async function c(){var e;null==(e=s.value)||e.getTracks().forEach((e=>e.stop())),s.value=void 0}return nr(n,(e=>{e?u():c()}),{immediate:!0}),{isSupported:a,stream:s,start:async function(){return await u(),s.value&&(n.value=!0),s.value},stop:function(){c(),n.value=!1},enabled:n}},useDocumentVisibility:rp,useDraggable:function(e,t={}){var n,r,o;const l=null!=(n=t.draggingElement)?n:xc,a=null!=(r=t.handle)?r:e,i=Wt(null!=(o=us(t.initialValue))?o:{x:0,y:0}),s=Wt(),u=e=>!t.pointerTypes||t.pointerTypes.includes(e.pointerType),c=e=>{us(t.preventDefault)&&e.preventDefault(),us(t.stopPropagation)&&e.stopPropagation()};return Xi&&(_c(a,"pointerdown",(n=>{var r;if(!u(n))return;if(us(t.exact)&&n.target!==us(e))return;const o=us(e).getBoundingClientRect(),l={x:n.clientX-o.left,y:n.clientY-o.top};!1!==(null==(r=t.onStart)?void 0:r.call(t,l,n))&&(s.value=l,c(n))}),!0),_c(l,"pointermove",(e=>{var n;u(e)&&s.value&&(i.value={x:e.clientX-s.value.x,y:e.clientY-s.value.y},null==(n=t.onMove)||n.call(t,i.value,e),c(e))}),!0),_c(l,"pointerup",(e=>{var n;u(e)&&s.value&&(s.value=void 0,null==(n=t.onEnd)||n.call(t,i.value,e),c(e))}),!0)),d=((e,t)=>{for(var n in t||(t={}))sp.call(t,n)&&cp(e,n,t[n]);if(ip)for(var n of ip(t))up.call(t,n)&&cp(e,n,t[n]);return e})({},Xs(i)),p={position:i,isDragging:oa((()=>!!s.value)),style:oa((()=>`left:${i.value.x}px;top:${i.value.y}px;`))},lp(d,ap(p));var d,p},useDropZone:function(e,t){const n=Wt(!1);let r=0;return Xi&&(_c(e,"dragenter",(e=>{e.preventDefault(),r+=1,n.value=!0})),_c(e,"dragover",(e=>{e.preventDefault()})),_c(e,"dragleave",(e=>{e.preventDefault(),r-=1,0===r&&(n.value=!1)})),_c(e,"drop",(e=>{var o,l;e.preventDefault(),r=0,n.value=!1;const a=Array.from(null!=(l=null==(o=e.dataTransfer)?void 0:o.files)?l:[]);null==t||t(0===a.length?null:a)}))),{isOverDropZone:n}},useElementBounding:mp,useElementByPoint:function(e){const t=Wt(null),{x:n,y:r,document:o=Cc}=e,l=gp((()=>{t.value=(null==o?void 0:o.elementFromPoint(us(n),us(r)))||null}));return((e,t)=>{for(var n in t||(t={}))wp.call(t,n)&&Cp(e,n,t[n]);if(bp)for(var n of bp(t))xp.call(t,n)&&Cp(e,n,t[n]);return e})({element:t},l)},useElementHover:function(e,t={}){const n=t?t.delayEnter:0,r=t?t.delayLeave:0,o=Wt(!1);let l;const a=e=>{const t=e?n:r;l&&(clearTimeout(l),l=void 0),t?l=setTimeout((()=>o.value=e),t):o.value=e};return window?(_c(e,"mouseenter",(()=>a(!0)),{passive:!0}),_c(e,"mouseleave",(()=>a(!1)),{passive:!0}),o):o},useElementSize:kp,useElementVisibility:function(e,{window:t=xc,scrollTarget:n}={}){const r=Wt(!1),o=()=>{if(!t)return;const n=t.document,o=wc(e);if(o){const e=o.getBoundingClientRect();r.value=e.top<=(t.innerHeight||n.documentElement.clientHeight)&&e.left<=(t.innerWidth||n.documentElement.clientWidth)&&e.bottom>=0&&e.right>=0}else r.value=!1};return nr((()=>wc(e)),(()=>o()),{immediate:!0,flush:"post"}),t&&_c(n||t,"scroll",o,{capture:!1,passive:!0}),r},useEventBus:function(e){const t=xe();function n(n){var o;const l=Sp.get(e)||[];l.push(n),Sp.set(e,l);const a=()=>r(n);return null==(o=null==t?void 0:t.cleanups)||o.push(a),a}function r(t){const n=Sp.get(e);if(!n)return;const r=n.indexOf(t);r>-1&&n.splice(r,1),n.length||Sp.delete(e)}return{on:n,once:function(e){return n((function t(...n){r(t),e(...n)}))},off:r,emit:function(t,n){var r;null==(r=Sp.get(e))||r.forEach((e=>e(t,n)))},reset:function(){Sp.delete(e)}}},useEventListener:_c,useEventSource:function(e,t=[],n={}){const r=Wt(null),o=Wt(null),l=Wt("CONNECTING"),a=Wt(null),i=Wt(null),{withCredentials:s=!1}=n,u=()=>{a.value&&(a.value.close(),a.value=null,l.value="CLOSED")},c=new EventSource(e,{withCredentials:s});a.value=c,c.onopen=()=>{l.value="OPEN",i.value=null},c.onerror=e=>{l.value="CLOSED",i.value=e},c.onmessage=e=>{r.value=null,o.value=e.data};for(const d of t)_c(c,d,(e=>{r.value=d,o.value=e.data||null}));return Cs((()=>{u()})),{eventSource:a,event:r,data:o,status:l,error:i,close:u}},useEyeDropper:function(e={}){const{initialValue:t=""}=e,n=$c((()=>"undefined"!=typeof window&&"EyeDropper"in window)),r=Wt(t);return{isSupported:n,sRGBHex:r,open:async function(e){if(!n.value)return;const t=new window.EyeDropper,o=await t.open(e);return r.value=o.sRGBHex,o}}},useFavicon:function(e=null,t={}){const{baseUrl:n="",rel:r="icon",document:o=Cc}=t,l=Hs(e);return nr(l,((e,t)=>{var l;ns(e)&&e!==t&&(l=e,null==o||o.head.querySelectorAll(`link[rel*="${r}"]`).forEach((e=>e.href=`${n}${l}`)))}),{immediate:!0}),l},useFetch:Vp,useFileDialog:function(e={}){const{document:t=Cc}=e,n=Wt(null);let r;return t&&(r=t.createElement("input"),r.type="file",r.onchange=e=>{const t=e.target;n.value=t.files}),{files:At(n),open:t=>{if(!r)return;const n=Wp(Wp(Wp({},Up),e),t);r.multiple=n.multiple,r.accept=n.accept,ss(n,"capture")&&(r.capture=n.capture),r.click()},reset:()=>{n.value=null,r&&(r.value="")}}},useFileSystemAccess:function(e={}){const{window:t=xc,dataType:n="Text"}=Gt(e),r=t,o=$c((()=>r&&"showSaveFilePicker"in r&&"showOpenFilePicker"in r)),l=Wt(),a=Wt(),i=Wt(),s=oa((()=>{var e,t;return null!=(t=null==(e=i.value)?void 0:e.name)?t:""})),u=oa((()=>{var e,t;return null!=(t=null==(e=i.value)?void 0:e.type)?t:""})),c=oa((()=>{var e,t;return null!=(t=null==(e=i.value)?void 0:e.size)?t:0})),d=oa((()=>{var e,t;return null!=(t=null==(e=i.value)?void 0:e.lastModified)?t:0}));async function p(t={}){if(o.value){if(l.value=await r.showSaveFilePicker(Xp(Xp({},Gt(e)),t)),a.value){const e=await l.value.createWritable();await e.write(a.value),await e.close()}await f()}}async function f(){var e;i.value=await(null==(e=l.value)?void 0:e.getFile())}async function v(){var e,t;"Text"===Gt(n)&&(a.value=await(null==(e=i.value)?void 0:e.text())),"ArrayBuffer"===Gt(n)&&(a.value=await(null==(t=i.value)?void 0:t.arrayBuffer())),"Blob"===Gt(n)&&(a.value=i.value)}return nr((()=>Gt(n)),v),{isSupported:o,data:a,file:i,fileName:s,fileMIME:u,fileSize:c,fileLastModified:d,open:async function(t={}){if(!o.value)return;const[n]=await r.showOpenFilePicker(Xp(Xp({},Gt(e)),t));l.value=n,await f(),await v()},create:async function(t={}){o.value&&(l.value=await r.showSaveFilePicker(Xp(Xp({},Gt(e)),t)),a.value=void 0,await f(),await v())},save:async function(e={}){if(o.value){if(!l.value)return p(e);if(a.value){const e=await l.value.createWritable();await e.write(a.value),await e.close()}await f()}},saveAs:p,updateData:v}},useFocus:function(e,t={}){const{initialValue:n=!1}=t,r=Wt(!1),o=oa((()=>wc(e)));_c(o,"focus",(()=>r.value=!0)),_c(o,"blur",(()=>r.value=!1));const l=oa({get:()=>r.value,set(e){var t,n;!e&&r.value?null==(t=o.value)||t.blur():e&&!r.value&&(null==(n=o.value)||n.focus())}});return nr(o,(()=>{l.value=n}),{immediate:!0,flush:"post"}),{focused:l}},useFocusWithin:function(e,t={}){const n=Vc(t),r=oa((()=>wc(e)));return{focused:oa((()=>!(!r.value||!n.value)&&r.value.contains(n.value)))}},useFps:function(e){var t;const n=Wt(0);if("undefined"==typeof performance)return n;const r=null!=(t=null==e?void 0:e.every)?t:10;let o=performance.now(),l=0;return gp((()=>{if(l+=1,l>=r){const e=performance.now(),t=e-o;n.value=Math.round(1e3/(t/l)),o=e,l=0}})),n},useFullscreen:function(e,t={}){const{document:n=Cc,autoExit:r=!1}=t,o=e||(null==n?void 0:n.querySelector("html")),l=Wt(!1);let a=Qp[0];const i=$c((()=>{if(!n)return!1;for(const e of Qp)if(e[1]in n)return a=e,!0;return!1})),[s,u,c,,d]=a;async function p(){i.value&&((null==n?void 0:n[c])&&await n[u](),l.value=!1)}async function f(){if(!i.value)return;await p();const e=wc(o);e&&(await e[s](),l.value=!0)}return n&&_c(n,d,(()=>{l.value=!!(null==n?void 0:n[c])}),!1),r&&Cs(p),{isSupported:i,isFullscreen:l,enter:f,exit:p,toggle:async function(){l.value?await p():await f()}}},useGamepad:function(e={}){const{navigator:t=kc}=e,n=$c((()=>t&&"getGamepads"in t)),r=Wt([]),o=ks(),l=ks(),a=e=>{const t=[],n="vibrationActuator"in e?e.vibrationActuator:null;return n&&t.push(n),e.hapticActuators&&t.push(...e.hapticActuators),{id:e.id,hapticActuators:t,index:e.index,mapping:e.mapping,connected:e.connected,timestamp:e.timestamp,axes:e.axes.map((e=>e)),buttons:e.buttons.map((e=>({pressed:e.pressed,touched:e.touched,value:e.value})))}},{isActive:i,pause:s,resume:u}=gp((()=>{const e=(null==t?void 0:t.getGamepads())||[];for(let t=0;te===n.index));e>-1&&(r.value[e]=a(n))}}})),c=e=>{r.value.some((({index:t})=>t===e.index))||(r.value.push(a(e)),o.trigger(e.index)),u()};return _c("gamepadconnected",(e=>c(e.gamepad))),_c("gamepaddisconnected",(e=>{return t=e.gamepad,r.value=r.value.filter((e=>e.index!==t.index)),void l.trigger(t.index);var t})),Qs((()=>{const e=(null==t?void 0:t.getGamepads())||[];if(e)for(let t=0;to&&"geolocation"in o)),i=Wt(null),s=Wt(null),u=Wt({accuracy:0,latitude:1/0,longitude:1/0,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function c(e){i.value=e.timestamp,u.value=e.coords,s.value=null}let d;function p(){a.value&&(d=o.geolocation.watchPosition(c,(e=>s.value=e),{enableHighAccuracy:t,maximumAge:n,timeout:r}))}function f(){d&&o&&o.geolocation.clearWatch(d)}return l&&p(),Cs((()=>{f()})),{isSupported:a,coords:u,locatedAt:i,error:s,resume:p,pause:f}},useIdle:function(e=6e4,t={}){const{initialState:n=!1,listenForVisibilityChange:r=!0,events:o=Zp,window:l=xc,eventFilter:a=fs(50)}=t,i=Wt(n),s=Wt(os());let u;const c=cs(a,(()=>{i.value=!1,s.value=os(),clearTimeout(u),u=setTimeout((()=>i.value=!0),e)}));if(l){const e=l.document;for(const t of o)_c(l,t,c,{passive:!0});r&&_c(e,"visibilitychange",(()=>{e.hidden||c()}))}return u=setTimeout((()=>i.value=!0),e),{idle:i,lastActive:s}},useImage:(e,t={})=>{const n=Bc((()=>async function(e){return new Promise(((t,n)=>{const r=new Image,{src:o,srcset:l,sizes:a}=e;r.src=o,l&&(r.srcset=l),a&&(r.sizes=a),r.onload=()=>t(r),r.onerror=n}))}(us(e))),void 0,((e,t)=>{for(var n in t||(t={}))nf.call(t,n)&&of(e,n,t[n]);if(tf)for(var n of tf(t))rf.call(t,n)&&of(e,n,t[n]);return e})({resetOnExecute:!0},t));return nr((()=>us(e)),(()=>n.execute(t.delay)),{deep:!0}),n},useInfiniteScroll:function(e,t,n={}){var r,o;const l=null!=(r=n.direction)?r:"bottom",a=zt(lf(e,(i=vf({},n),s={offset:vf({[l]:null!=(o=n.distance)?o:0},n.offset)},sf(i,uf(s)))));var i,s;nr((()=>a.arrivedState[l]),(async r=>{var o,l;if(r){const r=us(e),i={height:null!=(o=null==r?void 0:r.scrollHeight)?o:0,width:null!=(l=null==r?void 0:r.scrollWidth)?l:0};await t(a),n.preserveScrollPosition&&r&&wn((()=>{r.scrollTo({top:r.scrollHeight-i.height,left:r.scrollWidth-i.width})}))}}))},useIntersectionObserver:function(e,t,n={}){const{root:r,rootMargin:o="0px",threshold:l=.1,window:a=xc}=n,i=$c((()=>a&&"IntersectionObserver"in a));let s=as;const u=i.value?nr((()=>({el:wc(e),root:wc(r)})),(({el:e,root:n})=>{if(s(),!e)return;const r=new IntersectionObserver(t,{root:n,rootMargin:o,threshold:l});r.observe(e),s=()=>{r.disconnect(),s=as}}),{immediate:!0,flush:"post"}):as,c=()=>{s(),u()};return Cs(c),{isSupported:i,stop:c}},useInterval:function(e=1e3,t={}){const{controls:n=!1,immediate:r=!0,callback:o}=t,l=Wt(0),a=()=>l.value+=1,i=iu(o?()=>{a(),o(l.value)}:a,e,{immediate:r});return n?((e,t)=>{for(var n in t||(t={}))cu.call(t,n)&&pu(e,n,t[n]);if(uu)for(var n of uu(t))du.call(t,n)&&pu(e,n,t[n]);return e})({counter:l,reset:()=>{l.value=0}},i):l},useIntervalFn:iu,useKeyModifier:function(e,t={}){const{events:n=hf,document:r=Cc,initial:o=null}=t,l=Wt(o);return r&&n.forEach((t=>{_c(r,t,(t=>{"function"==typeof t.getModifierState&&(l.value=t.getModifierState(e))}))})),l},useLastChanged:function(e,t={}){var n;const r=Wt(null!=(n=t.initialValue)?n:null);return nr(e,(()=>r.value=os()),t),r},useLocalStorage:function(e,t,n={}){const{window:r=xc}=n;return md(e,t,null==r?void 0:r.localStorage,n)},useMagicKeys:function(e={}){const{reactive:t=!1,target:n=xc,aliasMap:r=mf,passive:o=!0,onEventFired:l=as}=e,a=zt(new Set),i={toJSON:()=>({}),current:a},s=t?zt(i):i,u=new Set,c=new Set;function d(e,n){e in s&&(t?s[e]=n:s[e].value=n)}function p(){a.clear();for(const e of c)d(e,!1)}function f(e,t){var n,r;const o=null==(n=e.key)?void 0:n.toLowerCase(),l=[null==(r=e.code)?void 0:r.toLowerCase(),o].filter(Boolean);o&&(t?a.add(o):a.delete(o));for(const a of l)c.add(a),d(a,t);"meta"!==o||t?"function"==typeof e.getModifierState&&e.getModifierState("Meta")&&t&&[...a,...l].forEach((e=>u.add(e))):(u.forEach((e=>{a.delete(e),d(e,!1)})),u.clear())}_c(n,"keydown",(e=>(f(e,!0),l(e))),{passive:o}),_c(n,"keyup",(e=>(f(e,!1),l(e))),{passive:o}),_c("blur",p,{passive:!0}),_c("focus",p,{passive:!0});const v=new Proxy(s,{get(e,n,o){if("string"!=typeof n)return Reflect.get(e,n,o);if((n=n.toLowerCase())in r&&(n=r[n]),!(n in s))if(/[+_-]/.test(n)){const e=n.split(/[+_-]/g).map((e=>e.trim()));s[n]=oa((()=>e.every((e=>Gt(v[e])))))}else s[n]=Wt(!1);const l=Reflect.get(e,n,o);return t?Gt(l):l}});return v},useManualRefHistory:Nd,useMediaControls:function(e,t={}){t=Cf(Cf({},_f),t);const{document:n=Cc}=t,r=Wt(0),o=Wt(0),l=Wt(!1),a=Wt(1),i=Wt(!1),s=Wt(!1),u=Wt(!1),c=Wt(1),d=Wt(!1),p=Wt([]),f=Wt([]),v=Wt(-1),h=Wt(!1),m=Wt(!1),g=n&&"pictureInPictureEnabled"in n,y=ks(),b=t=>{kf(e,(e=>{if(t){const n=ts(t)?t:t.id;e.textTracks[n].mode="disabled"}else for(let t=0;t{if(!n)return;const r=us(e);if(!r)return;const o=us(t.src);let l=[];o&&(ns(o)?l=[{src:o}]:Array.isArray(o)?l=o:rs(o)&&(l=[o]),r.querySelectorAll("source").forEach((e=>{e.removeEventListener("error",y.trigger),e.remove()})),l.forEach((({src:e,type:t})=>{const o=n.createElement("source");o.setAttribute("src",e),o.setAttribute("type",t||""),o.addEventListener("error",y.trigger),r.appendChild(o)})),r.load())})),Cs((()=>{const t=us(e);t&&t.querySelectorAll("source").forEach((e=>e.removeEventListener("error",y.trigger)))})),nr(a,(t=>{const n=us(e);n&&(n.volume=t)})),nr(m,(t=>{const n=us(e);n&&(n.muted=t)})),nr(c,(t=>{const n=us(e);n&&(n.playbackRate=t)})),Zn((()=>{if(!n)return;const r=us(t.tracks),o=us(e);r&&r.length&&o&&(o.querySelectorAll("track").forEach((e=>e.remove())),r.forEach((({default:e,kind:t,label:r,src:l,srcLang:a},i)=>{const s=n.createElement("track");s.default=e||!1,s.kind=t,s.label=r,s.src=l,s.srclang=a,s.default&&(v.value=i),o.appendChild(s)})))}));const{ignoreUpdates:w}=Uu(r,(t=>{const n=us(e);n&&(n.currentTime=t)})),{ignoreUpdates:x}=Uu(u,(t=>{const n=us(e);n&&(t?n.play():n.pause())}));_c(e,"timeupdate",(()=>w((()=>r.value=us(e).currentTime)))),_c(e,"durationchange",(()=>o.value=us(e).duration)),_c(e,"progress",(()=>p.value=function(e){let t=[];for(let n=0;nl.value=!0)),_c(e,"seeked",(()=>l.value=!1)),_c(e,"waiting",(()=>i.value=!0)),_c(e,"playing",(()=>{i.value=!1,s.value=!1})),_c(e,"ratechange",(()=>c.value=us(e).playbackRate)),_c(e,"stalled",(()=>d.value=!0)),_c(e,"ended",(()=>s.value=!0)),_c(e,"pause",(()=>x((()=>u.value=!1)))),_c(e,"play",(()=>x((()=>u.value=!0)))),_c(e,"enterpictureinpicture",(()=>h.value=!0)),_c(e,"leavepictureinpicture",(()=>h.value=!1)),_c(e,"volumechange",(()=>{const t=us(e);t&&(a.value=t.volume,m.value=t.muted)}));const C=[],k=nr([e],(()=>{const t=us(e);t&&(k(),C[0]=_c(t.textTracks,"addtrack",(()=>f.value=Sf(t.textTracks))),C[1]=_c(t.textTracks,"removetrack",(()=>f.value=Sf(t.textTracks))),C[2]=_c(t.textTracks,"change",(()=>f.value=Sf(t.textTracks))))}));return Cs((()=>C.forEach((e=>e())))),{currentTime:r,duration:o,waiting:i,seeking:l,ended:s,stalled:d,buffered:p,playing:u,rate:c,volume:a,muted:m,tracks:f,selectedTrack:v,enableTrack:(t,n=!0)=>{kf(e,(e=>{const r=ts(t)?t:t.id;n&&b(),e.textTracks[r].mode="showing",v.value=r}))},disableTrack:b,supportsPictureInPicture:g,togglePictureInPicture:()=>new Promise(((t,r)=>{kf(e,(async e=>{g&&(h.value?n.exitPictureInPicture().then(t).catch(r):e.requestPictureInPicture().then(t).catch(r))}))})),isPictureInPicture:h,onSourceError:y.on}},useMediaQuery:Fc,useMemoize:function(e,t){const n=(null==t?void 0:t.cache)?zt(t.cache):zt(new Map),r=(...e)=>(null==t?void 0:t.getKey)?t.getKey(...e):JSON.stringify(e),o=(t,...r)=>(n.set(t,e(...r)),n.get(t)),l=(...e)=>{const t=r(...e);return n.has(t)?n.get(t):o(t,...e)};return l.load=(...e)=>o(r(...e),...e),l.delete=(...e)=>{n.delete(r(...e))},l.clear=()=>{n.clear()},l.generateKey=r,l.cache=n,l},useMemory:function(e={}){const t=Wt(),n=$c((()=>"undefined"!=typeof performance&&"memory"in performance));if(n.value){const{interval:n=1e3}=e;iu((()=>{t.value=performance.memory}),n,{immediate:e.immediate,immediateCallback:e.immediateCallback})}return{isSupported:n,memory:t}},useMounted:function(){const e=Wt(!1);return Nr((()=>{e.value=!0})),e},useMouse:Ef,useMouseInElement:Of,useMousePressed:function(e={}){const{touch:t=!0,drag:n=!0,initialValue:r=!1,window:o=xc}=e,l=Wt(r),a=Wt(null);if(!o)return{pressed:l,sourceType:a};const i=e=>()=>{l.value=!0,a.value=e},s=()=>{l.value=!1,a.value=null},u=oa((()=>wc(e.target)||o));return _c(u,"mousedown",i("mouse"),{passive:!0}),_c(o,"mouseleave",s,{passive:!0}),_c(o,"mouseup",s,{passive:!0}),n&&(_c(u,"dragstart",i("mouse"),{passive:!0}),_c(o,"drop",s,{passive:!0}),_c(o,"dragend",s,{passive:!0})),t&&(_c(u,"touchstart",i("touch"),{passive:!0}),_c(o,"touchend",s,{passive:!0}),_c(o,"touchcancel",s,{passive:!0})),{pressed:l,sourceType:a}},useMutationObserver:Af,useNavigatorLanguage:(e={})=>{const{window:t=xc}=e,n=null==t?void 0:t.navigator,r=$c((()=>n&&"language"in n)),o=Wt(null==n?void 0:n.language);return _c(t,"languagechange",(()=>{n&&(o.value=n.language)})),{isSupported:r,language:o}},useNetwork:Lf,useNow:Vf,useObjectUrl:function(e){const t=Wt(),n=()=>{t.value&&URL.revokeObjectURL(t.value),t.value=void 0};return nr((()=>Gt(e)),(e=>{n(),e&&(t.value=URL.createObjectURL(e))}),{immediate:!0}),Cs(n),At(t)},useOffsetPagination:function(e){const{total:t=1/0,pageSize:n=10,page:r=1,onPageChange:o=as,onPageSizeChange:l=as,onPageCountChange:a=as}=e,i=Bf(n,1,1/0),s=oa((()=>Math.max(1,Math.ceil(Gt(t)/Gt(i))))),u=Bf(r,1,s),c=oa((()=>1===u.value)),d=oa((()=>u.value===s.value));Ft(r)&&Ds(r,u),Ft(n)&&Ds(n,i);const p={currentPage:u,currentPageSize:i,pageCount:s,isFirstPage:c,isLastPage:d,prev:function(){u.value--},next:function(){u.value++}};return nr(u,(()=>{o(zt(p))})),nr(i,(()=>{l(zt(p))})),nr(s,(()=>{a(zt(p))})),p},useOnline:function(e={}){const{isOnline:t}=Lf(e);return t},usePageLeave:function(e={}){const{window:t=xc}=e,n=Wt(!1),r=e=>{if(!t)return;const r=(e=e||t.event).relatedTarget||e.toElement;n.value=!r};return t&&(_c(t,"mouseout",r,{passive:!0}),_c(t.document,"mouseleave",r,{passive:!0}),_c(t.document,"mouseenter",r,{passive:!0})),n},useParallax:function(e,t={}){const{deviceOrientationTiltAdjust:n=(e=>e),deviceOrientationRollAdjust:r=(e=>e),mouseTiltAdjust:o=(e=>e),mouseRollAdjust:l=(e=>e),window:a=xc}=t,i=zt(tp({window:a})),{elementX:s,elementY:u,elementWidth:c,elementHeight:d}=Of(e,{handleOutside:!1,window:a}),p=oa((()=>i.isSupported&&(null!=i.alpha&&0!==i.alpha||null!=i.gamma&&0!==i.gamma)?"deviceOrientation":"mouse"));return{roll:oa((()=>{if("deviceOrientation"===p.value){const e=-i.beta/90;return r(e)}{const e=-(u.value-d.value/2)/d.value;return l(e)}})),tilt:oa((()=>{if("deviceOrientation"===p.value){const e=i.gamma/90;return n(e)}{const e=(s.value-c.value/2)/c.value;return o(e)}})),source:p}},usePermission:np,usePointer:function(e={}){const{target:t=xc}=e,n=Wt(!1),r=Wt(e.initialValue||{});Object.assign(r.value,qf,r.value);const o=t=>{n.value=!0,e.pointerTypes&&!e.pointerTypes.includes(t.pointerType)||(r.value=ws(t,Yf,!1))};return t&&(_c(t,"pointerdown",o,{passive:!0}),_c(t,"pointermove",o,{passive:!0}),_c(t,"pointerleave",(()=>n.value=!1),{passive:!0})),l=((e,t)=>{for(var n in t||(t={}))Wf.call(t,n)&&Kf(e,n,t[n]);if(Ff)for(var n of Ff(t))Uf.call(t,n)&&Kf(e,n,t[n]);return e})({},Xs(r)),Df(l,$f({isInside:n}));var l},usePointerLock:function(e,t={}){const{document:n=Cc,pointerLockOptions:r}=t,o=$c((()=>n&&"pointerLockElement"in n)),l=Wt(),a=Wt();let i;return o.value&&(_c(n,"pointerlockchange",(()=>{var e;const t=null!=(e=n.pointerLockElement)?e:l.value;i&&t===i&&(l.value=n.pointerLockElement,l.value||(i=a.value=null))})),_c(n,"pointerlockerror",(()=>{var e;const t=null!=(e=n.pointerLockElement)?e:l.value;if(i&&t===i){const e=n.pointerLockElement?"release":"acquire";throw new Error(`Failed to ${e} pointer lock.`)}}))),{isSupported:o,element:l,triggerElement:a,lock:async function(t,n){var s;if(!o.value)throw new Error("Pointer Lock API is not supported by your browser.");if(a.value=t instanceof Event?t.currentTarget:null,i=t instanceof Event?null!=(s=wc(e))?s:a.value:wc(t),!i)throw new Error("Target element undefined.");return i.requestPointerLock(null!=n?n:r),await tu(l).toBe(i)},unlock:async function(){return!!l.value&&(n.exitPointerLock(),await tu(l).toBeNull(),!0)}}},usePointerSwipe:function(e,t={}){const n=Hs(e),{threshold:r=50,onSwipe:o,onSwipeEnd:l,onSwipeStart:a}=t,i=zt({x:0,y:0}),s=zt({x:0,y:0}),u=(e,t)=>{s.x=e,s.y=t},c=oa((()=>i.x-s.x)),d=oa((()=>i.y-s.y)),{max:p,abs:f}=Math,v=oa((()=>p(f(c.value),f(d.value))>=r)),h=Wt(!1),m=Wt(!1),g=oa((()=>v.value?f(c.value)>f(d.value)?c.value>0?Gf.LEFT:Gf.RIGHT:d.value>0?Gf.UP:Gf.DOWN:Gf.NONE)),y=e=>{var n,r,o;const l=0===e.buttons,a=1===e.buttons;return null==(o=null!=(r=null==(n=t.pointerTypes)?void 0:n.includes(e.pointerType))?r:l||a)||o},b=[_c(e,"pointerdown",(e=>{var t,r;if(!y(e))return;m.value=!0,null==(r=null==(t=n.value)?void 0:t.style)||r.setProperty("touch-action","none");const o=e.target;null==o||o.setPointerCapture(e.pointerId);const{clientX:l,clientY:s}=e;var c,d;c=l,d=s,i.x=c,i.y=d,u(l,s),null==a||a(e)})),_c(e,"pointermove",(e=>{if(!y(e))return;if(!m.value)return;const{clientX:t,clientY:n}=e;u(t,n),!h.value&&v.value&&(h.value=!0),h.value&&(null==o||o(e))})),_c(e,"pointerup",(e=>{var t,r;y(e)&&(h.value&&(null==l||l(e,g.value)),m.value=!1,h.value=!1,null==(r=null==(t=n.value)?void 0:t.style)||r.setProperty("touch-action","initial"))}))];return{isSwiping:At(h),direction:At(g),posStart:At(i),posEnd:At(s),distanceX:c,distanceY:d,stop:()=>b.forEach((e=>e()))}},usePreferredColorScheme:function(e){const t=Fc("(prefers-color-scheme: light)",e),n=Fc("(prefers-color-scheme: dark)",e);return oa((()=>n.value?"dark":t.value?"light":"no-preference"))},usePreferredContrast:function(e){const t=Fc("(prefers-contrast: more)",e),n=Fc("(prefers-contrast: less)",e),r=Fc("(prefers-contrast: custom)",e);return oa((()=>t.value?"more":n.value?"less":r.value?"custom":"no-preference"))},usePreferredDark:gd,usePreferredLanguages:function(e={}){const{window:t=xc}=e;if(!t)return Wt(["en"]);const n=t.navigator,r=Wt(n.languages);return _c(t,"languagechange",(()=>{r.value=n.languages})),r},usePreferredReducedMotion:function(e){const t=Fc("(prefers-reduced-motion: reduce)",e);return oa((()=>t.value?"reduce":"no-preference"))},usePrevious:function(e,t){const n=Ut(t);return nr(Hs(e),((e,t)=>{n.value=t}),{flush:"sync"}),At(n)},useRafFn:gp,useRefHistory:Kd,useResizeObserver:hp,useScreenOrientation:(e={})=>{const{window:t=xc}=e,n=$c((()=>t&&"screen"in t&&"orientation"in t.screen)),r=n.value?t.screen.orientation:{},o=Wt(r.type),l=Wt(r.angle||0);return n.value&&_c(t,"orientationchange",(()=>{o.value=r.type,l.value=r.angle})),{isSupported:n,orientation:o,angle:l,lockOrientation:e=>n.value?r.lock(e):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{n.value&&r.unlock()}}},useScreenSafeArea:function(){const e=Wt(""),t=Wt(""),n=Wt(""),r=Wt("");if(Xi){const e=Sd(Xf),t=Sd(Qf),n=Sd(Zf),r=Sd(ev);e.value="env(safe-area-inset-top, 0px)",t.value="env(safe-area-inset-right, 0px)",n.value="env(safe-area-inset-bottom, 0px)",r.value="env(safe-area-inset-left, 0px)",o(),_c("resize",Rs(o))}function o(){e.value=tv(Xf),t.value=tv(Qf),n.value=tv(Zf),r.value=tv(ev)}return{top:e,right:t,bottom:n,left:r,update:o}},useScriptTag:function(e,t=as,n={}){const{immediate:r=!0,manual:o=!1,type:l="text/javascript",async:a=!0,crossOrigin:i,referrerPolicy:s,noModule:u,defer:c,document:d=Cc,attrs:p={}}=n,f=Wt(null);let v=null;const h=(n=!0)=>{return v||(r=n,v=new Promise(((n,o)=>{const v=e=>(f.value=e,n(e),e);if(!d)return void n(!1);let h=!1,m=d.querySelector(`script[src="${us(e)}"]`);m?m.hasAttribute("data-loaded")&&v(m):(m=d.createElement("script"),m.type=l,m.async=a,m.src=us(e),c&&(m.defer=c),i&&(m.crossOrigin=i),u&&(m.noModule=u),s&&(m.referrerPolicy=s),Object.entries(p).forEach((([e,t])=>null==m?void 0:m.setAttribute(e,t))),h=!0),m.addEventListener("error",(e=>o(e))),m.addEventListener("abort",(e=>o(e))),m.addEventListener("load",(()=>{m.setAttribute("data-loaded","true"),t(m),v(m)})),h&&(m=d.head.appendChild(m)),r||v(m)}))),v;var r},m=()=>{if(!d)return;v=null,f.value&&(f.value=null);const t=d.querySelector(`script[src="${us(e)}"]`);t&&d.head.removeChild(t)};return r&&!o&&Qs(h),o||Zs(m),{scriptTag:f,load:h,unload:m}},useScroll:lf,useScrollLock:function(e,t=!1){const n=Wt(t);let r,o=null;nr(Hs(e),(e=>{if(e){const t=e;r=t.style.overflow,n.value&&(t.style.overflow="hidden")}}),{immediate:!0});const l=()=>{const t=us(e);t&&n.value&&(is&&(null==o||o()),t.style.overflow=r,n.value=!1)};return Cs(l),oa({get:()=>n.value,set(t){t?(()=>{const t=us(e);t&&!n.value&&(is&&(o=_c(t,"touchmove",(e=>{rv(e)}),{passive:!1})),t.style.overflow="hidden",n.value=!0)})():l()}})},useSessionStorage:function(e,t,n={}){const{window:r=xc}=n;return md(e,t,null==r?void 0:r.sessionStorage,n)},useShare:function(e={},t={}){const{navigator:n=kc}=t,r=n,o=$c((()=>r&&"canShare"in r));return{isSupported:o,share:async(t={})=>{if(o.value){const n=uv(uv({},us(e)),us(t));let o=!0;if(n.files&&r.canShare&&(o=r.canShare({files:n.files})),o)return r.share(n)}}}},useSorted:function(...e){var t,n,r,o;const[l]=e;let a=dv,i={};2===e.length?"object"==typeof e[1]?(i=e[1],a=null!=(t=i.compareFn)?t:dv):a=null!=(n=e[1])?n:dv:e.length>2&&(a=null!=(r=e[1])?r:dv,i=null!=(o=e[2])?o:{});const{dirty:s=!1,sortFn:u=cv}=i;return s?(Zn((()=>{const e=u(Gt(l),a);Ft(l)?l.value=e:l.splice(0,l.length,...e)})),l):oa((()=>u([...Gt(l)],a)))},useSpeechRecognition:function(e={}){const{interimResults:t=!0,continuous:n=!0,window:r=xc}=e,o=Hs(e.lang||"en-US"),l=Wt(!1),a=Wt(!1),i=Wt(""),s=Ut(void 0),u=r&&(r.SpeechRecognition||r.webkitSpeechRecognition),c=$c((()=>u));let d;return c.value&&(d=new u,d.continuous=n,d.interimResults=t,d.lang=Gt(o),d.onstart=()=>{a.value=!1},nr(o,(e=>{d&&!l.value&&(d.lang=e)})),d.onresult=e=>{const t=Array.from(e.results).map((e=>(a.value=e.isFinal,e[0]))).map((e=>e.transcript)).join("");i.value=t,s.value=void 0},d.onerror=e=>{s.value=e},d.onend=()=>{l.value=!1,d.lang=Gt(o)},nr(l,(()=>{l.value?d.start():d.stop()}))),Cs((()=>{l.value=!1})),{isSupported:c,isListening:l,isFinal:a,recognition:d,result:i,error:s,toggle:(e=!l.value)=>{l.value=e},start:()=>{l.value=!0},stop:()=>{l.value=!1}}},useSpeechSynthesis:function(e,t={}){const{pitch:n=1,rate:r=1,volume:o=1,window:l=xc}=t,a=l&&l.speechSynthesis,i=$c((()=>a)),s=Wt(!1),u=Wt("init"),c=Hs(e||""),d=Hs(t.lang||"en-US"),p=Ut(void 0),f=e=>{e.lang=Gt(d),e.voice=Gt(t.voice)||null,e.pitch=n,e.rate=r,e.volume=o,e.onstart=()=>{s.value=!0,u.value="play"},e.onpause=()=>{s.value=!1,u.value="pause"},e.onresume=()=>{s.value=!0,u.value="play"},e.onend=()=>{s.value=!1,u.value="end"},e.onerror=e=>{p.value=e}},v=oa((()=>{s.value=!1,u.value="init";const e=new SpeechSynthesisUtterance(c.value);return f(e),e}));return i.value&&(f(v.value),nr(d,(e=>{v.value&&!s.value&&(v.value.lang=e)})),t.voice&&nr(t.voice,(()=>{a.cancel()})),nr(s,(()=>{s.value?a.resume():a.pause()}))),Cs((()=>{s.value=!1})),{isSupported:i,isPlaying:s,status:u,utterance:v,error:p,stop:()=>{a.cancel(),s.value=!1},toggle:(e=!s.value)=>{s.value=e},speak:()=>{a.cancel(),v&&a.speak(v.value)}}},useStepper:function(e,t){const n=Wt(e),r=oa((()=>Array.isArray(n.value)?n.value:Object.keys(n.value))),o=Wt(r.value.indexOf(null!=t?t:r.value[0])),l=oa((()=>c(o.value))),a=oa((()=>0===o.value)),i=oa((()=>o.value===r.value.length-1)),s=oa((()=>r.value[o.value+1])),u=oa((()=>r.value[o.value-1]));function c(e){return Array.isArray(n.value)?n.value[e]:n.value[r.value[e]]}function d(e){r.value.includes(e)&&(o.value=r.value.indexOf(e))}function p(e){return o.value>r.value.indexOf(e)}return{steps:n,stepNames:r,index:o,current:l,next:s,previous:u,isFirst:a,isLast:i,at:c,get:function(e){if(r.value.includes(e))return c(r.value.indexOf(e))},goTo:d,goToNext:function(){i.value||o.value++},goToPrevious:function(){a.value||o.value--},goBackTo:function(e){p(e)&&d(e)},isNext:function(e){return r.value.indexOf(e)===o.value+1},isPrevious:function(e){return r.value.indexOf(e)===o.value-1},isCurrent:function(e){return r.value.indexOf(e)===o.value},isBefore:function(e){return o.value{})}=r,v=us(t),h=id(v),m=(c?Ut:Wt)(t),g=null!=(o=r.serializer)?o:vd[h];if(!n)try{n=ad("getDefaultStorage",(()=>{var e;return null==(e=xc)?void 0:e.localStorage}))()}catch(b){f(b)}async function y(t){if(n&&(!t||t.key===e))try{const r=t?t.newValue:await n.getItem(e);if(null==r)m.value=v,s&&null!==v&&await n.setItem(e,await g.write(v));else if(u){const e=await g.read(r);es(u)?m.value=u(e,v):"object"!==h||Array.isArray(e)?m.value=e:m.value=gv(gv({},v),e)}else m.value=await g.read(r)}catch(b){f(b)}}return y(),d&&i&&_c(d,"storage",(e=>setTimeout((()=>y(e)),0))),n&&ku(m,(async()=>{try{null==m.value?await n.removeItem(e):await n.setItem(e,await g.write(m.value))}catch(b){f(b)}}),{flush:l,deep:a,eventFilter:p}),m},useStyleTag:function(e,t={}){const n=Wt(!1),{document:r=Cc,immediate:o=!0,manual:l=!1,id:a="vueuse_styletag_"+ ++yv}=t,i=Wt(e);let s=()=>{};const u=()=>{if(!r)return;const e=r.getElementById(a)||r.createElement("style");e.isConnected||(e.type="text/css",e.id=a,t.media&&(e.media=t.media),r.head.appendChild(e)),n.value||(s=nr(i,(t=>{e.textContent=t}),{immediate:!0}),n.value=!0)},c=()=>{r&&n.value&&(s(),r.head.removeChild(r.getElementById(a)),n.value=!1)};return o&&!l&&Qs(u),l||Cs(c),{id:a,css:i,unload:c,load:u,isLoaded:At(n)}},useSupported:$c,useSwipe:function(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:o,onSwipeStart:l,passive:a=!0,window:i=xc}=t,s=zt({x:0,y:0}),u=zt({x:0,y:0}),c=oa((()=>s.x-u.x)),d=oa((()=>s.y-u.y)),{max:p,abs:f}=Math,v=oa((()=>p(f(c.value),f(d.value))>=n)),h=Wt(!1),m=oa((()=>v.value?f(c.value)>f(d.value)?c.value>0?Gf.LEFT:Gf.RIGHT:d.value>0?Gf.UP:Gf.DOWN:Gf.NONE)),g=e=>[e.touches[0].clientX,e.touches[0].clientY],y=(e,t)=>{u.x=e,u.y=t};let b;const w=function(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",as,n),e.removeEventListener("x",as),t}(null==i?void 0:i.document);b=a?w?{passive:!0}:{capture:!1}:w?{passive:!1,capture:!0}:{capture:!0};const x=e=>{h.value&&(null==o||o(e,m.value)),h.value=!1},C=[_c(e,"touchstart",(e=>{b.capture&&!b.passive&&e.preventDefault();const[t,n]=g(e);var r,o;r=t,o=n,s.x=r,s.y=o,y(t,n),null==l||l(e)}),b),_c(e,"touchmove",(e=>{const[t,n]=g(e);y(t,n),!h.value&&v.value&&(h.value=!0),h.value&&(null==r||r(e))}),b),_c(e,"touchend",x,b),_c(e,"touchcancel",x,b)];return{isPassiveEventSupported:w,isSwiping:h,direction:m,coordsStart:s,coordsEnd:u,lengthX:c,lengthY:d,stop:()=>C.forEach((e=>e()))}},useTemplateRefsList:function(){const e=Wt([]);return e.value.set=t=>{t&&e.value.push(t)},jr((()=>{e.value.length=0})),e},useTextDirection:function(e={}){const{document:t=Cc,selector:n="html",observe:r=!1,initialValue:o="ltr"}=e;function l(){var e,r;return null!=(r=null==(e=null==t?void 0:t.querySelector(n))?void 0:e.getAttribute("dir"))?r:o}const a=Wt(l());return Qs((()=>a.value=l())),r&&t&&Af(t.querySelector(n),(()=>a.value=l()),{attributes:!0}),oa({get:()=>a.value,set(e){var r,o;a.value=e,t&&(a.value?null==(r=t.querySelector(n))||r.setAttribute("dir",a.value):null==(o=t.querySelector(n))||o.removeAttribute("dir"))}})},useTextSelection:function(e={}){const{window:t=xc}=e,n=Wt(null),r=oa((()=>{var e,t;return null!=(t=null==(e=n.value)?void 0:e.toString())?t:""})),o=oa((()=>n.value?function(e){var t;const n=null!=(t=e.rangeCount)?t:0,r=new Array(n);for(let o=0;oo.value.map((e=>e.getBoundingClientRect()))));return t&&_c(t.document,"selectionchange",(function(){n.value=null,t&&(n.value=t.getSelection())})),{text:r,rects:l,ranges:o,selection:n}},useTextareaAutosize:function(e){const t=Wt(null==e?void 0:e.element),n=Wt(null==e?void 0:e.input);function r(){var n,r;t.value&&(t.value.style.height="1px",t.value.style.height=`${null==(n=t.value)?void 0:n.scrollHeight}px`,null==(r=null==e?void 0:e.onResize)||r.call(e))}return nr([n,t],r,{immediate:!0}),hp(t,(()=>r())),(null==e?void 0:e.watch)&&nr(e.watch,r,{immediate:!0,deep:!0}),{textarea:t,input:n,triggerResize:r}},useThrottle:js,useThrottleFn:Ns,useThrottledRefHistory:function(e,t={}){const{throttle:n=200,trailing:r=!0}=t,o=fs(n,r),l=Kd(e,(a=Ev({},t),wv(a,xv({eventFilter:o}))));var a;return Ev({},l)},useTimeAgo:function(e,t={}){const{controls:n=!1,updateInterval:r=3e4}=t,o=Vf({interval:r,controls:!0}),{now:l}=o,a=((e,t)=>{var n={};for(var r in e)zv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Mv)for(var r of Mv(e))t.indexOf(r)<0&&Tv.call(e,r)&&(n[r]=e[r]);return n})(o,["now"]),i=oa((()=>Pv(new Date(us(e)),t,Gt(l.value))));return n?((e,t)=>{for(var n in t||(t={}))zv.call(t,n)&&Av(e,n,t[n]);if(Mv)for(var n of Mv(t))Tv.call(t,n)&&Av(e,n,t[n]);return e})({timeAgo:i},a):i},useTimeout:function(e=1e3,t={}){const{controls:n=!1,callback:r}=t,o=fu(null!=r?r:as,e,t),l=oa((()=>!o.isPending.value));return n?((e,t)=>{for(var n in t||(t={}))mu.call(t,n)&&yu(e,n,t[n]);if(hu)for(var n of hu(t))gu.call(t,n)&&yu(e,n,t[n]);return e})({ready:l},o):l},useTimeoutFn:fu,useTimeoutPoll:function(e,t,n){const{start:r}=fu(l,t),o=Wt(!1);async function l(){o.value&&(await e(),r())}function a(){o.value||(o.value=!0,l())}function i(){o.value=!1}return(null==n?void 0:n.immediate)&&a(),Cs(i),{isActive:o,pause:i,resume:a}},useTimestamp:function(e={}){const{controls:t=!1,offset:n=0,immediate:r=!0,interval:o="requestAnimationFrame",callback:l}=e,a=Wt(os()+n),i=()=>a.value=os()+n,s=l?()=>{i(),l(a.value)}:i,u="requestAnimationFrame"===o?gp(s,{immediate:r}):iu(s,o,{immediate:r});return t?((e,t)=>{for(var n in t||(t={}))Vv.call(t,n)&&Hv(e,n,t[n]);if(jv)for(var n of jv(t))Bv.call(t,n)&&Hv(e,n,t[n]);return e})({timestamp:a},u):a},useTitle:function(e=null,t={}){var n,r;const{document:o=Cc}=t,l=Hs(null!=(n=null!=e?e:null==o?void 0:o.title)?n:null),a=e&&es(e);function i(e){if(!("titleTemplate"in t))return e;const n=t.titleTemplate||"%s";return es(n)?n(e):Gt(n).replace(/%s/g,e)}return nr(l,((e,t)=>{e!==t&&o&&(o.title=i(ns(e)?e:""))}),{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!a&&Af(null==(r=o.head)?void 0:r.querySelector("title"),(()=>{o&&o.title!==l.value&&(l.value=i(o.title))}),{childList:!0}),l},useToNumber:function(e,t={}){const{method:n="parseFloat",radix:r,nanToZero:o}=t;return oa((()=>{let t=us(e);return"string"==typeof t&&(t=Number[n](t,r)),o&&isNaN(t)&&(t=0),t}))},useToString:function(e){return oa((()=>`${us(e)}`))},useToggle:function(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,o=Ft(e),l=Wt(e);function a(e){if(arguments.length)return l.value=e,l.value;{const e=us(n);return l.value=l.value===e?us(r):e,l.value}}return o?a:[l,a]},useTransition:function(e,t={}){const{delay:n=0,disabled:r=!1,duration:o=1e3,onFinished:l=as,onStarted:a=as,transition:i=ms}=t,s=oa((()=>{const e=Gt(i);return es(e)?e:function([e,t,n,r]){const o=(e,t)=>1-3*t+3*e,l=(e,t)=>3*t-6*e,a=e=>3*e,i=(e,t,n)=>((o(t,n)*e+l(t,n))*e+a(t))*e,s=(e,t,n)=>3*o(t,n)*e*e+2*l(t,n)*e+a(t);return o=>e===t&&n===r?o:i((t=>{let r=t;for(let o=0;o<4;++o){const o=s(r,e,n);if(0===o)return r;r-=(i(r,e,n)-t)/o}return r})(o),t,r)}(e)})),u=oa((()=>{const t=Gt(e);return ts(t)?t:t.map(Gt)})),c=oa((()=>ts(u.value)?[u.value]:u.value)),d=Wt(c.value.slice(0));let p,f,v,h,m;const{resume:g,pause:y}=gp((()=>{const e=Date.now(),t=ls(1-(v-e)/p,0,1);d.value=m.map(((e,n)=>{var r;return e+(null!=(r=f[n])?r:0)*s.value(t)})),t>=1&&(y(),l())}),{immediate:!1}),b=()=>{y(),p=Gt(o),f=d.value.map(((e,t)=>{var n,r;return(null!=(n=c.value[t])?n:0)-(null!=(r=d.value[t])?r:0)})),m=d.value.slice(0),h=Date.now(),v=h+p,g(),a()},w=fu(b,n,{immediate:!1});return nr(c,(()=>{Gt(r)||(Gt(n)<=0?b():w.start())}),{deep:!0}),nr((()=>Gt(r)),(e=>{e&&(d.value=c.value.slice(0),y())})),oa((()=>{const e=Gt(r)?c:d;return ts(u.value)?e.value[0]:e.value}))},useUrlSearchParams:function(e="history",t={}){const{initialValue:n={},removeNullishValues:r=!0,removeFalsyValues:o=!1,write:l=!0,window:a=xc}=t;if(!a)return zt(n);const i=zt({});function s(){return new URLSearchParams(function(){if("history"===e)return a.location.search||"";if("hash"===e){const e=a.location.hash||"",t=e.indexOf("?");return t>0?e.slice(t):""}return(a.location.hash||"").replace(/^#/,"")}())}function u(e){const t=new Set(Object.keys(i));for(const n of e.keys()){const r=e.getAll(n);i[n]=r.length>1?r:e.get(n)||"",t.delete(n)}Array.from(t).forEach((e=>delete i[e]))}const{pause:c,resume:d}=nc(i,(()=>{const e=new URLSearchParams("");Object.keys(i).forEach((t=>{const n=i[t];Array.isArray(n)?n.forEach((n=>e.append(t,n))):r&&null==n||o&&!n?e.delete(t):e.set(t,n)})),p(e)}),{deep:!0});function p(t,n){c(),n&&u(t),a.history.replaceState(a.history.state,a.document.title,a.location.pathname+function(t){const n=t.toString();if("history"===e)return`${n?`?${n}`:""}${a.location.hash||""}`;if("hash-params"===e)return`${a.location.search||""}${n?`#${n}`:""}`;const r=a.location.hash||"#",o=r.indexOf("?");return o>0?`${r.slice(0,o)}${n?`?${n}`:""}`:`${r}${n?`?${n}`:""}`}(t)),d()}function f(){l&&p(s(),!0)}_c(a,"popstate",f,!1),"history"!==e&&_c(a,"hashchange",f,!1);const v=s();return v.keys().next().value?u(v):Object.assign(i,n),i},useUserMedia:function(e={}){var t,n;const r=Wt(null!=(t=e.enabled)&&t),o=Wt(null==(n=e.autoSwitch)||n),l=Wt(e.videoDeviceId),a=Wt(e.audioDeviceId),{navigator:i=kc}=e,s=$c((()=>{var e;return null==(e=null==i?void 0:i.mediaDevices)?void 0:e.getUserMedia})),u=Ut();function c(e){return"none"!==e.value&&!1!==e.value&&(null==e.value||{deviceId:e.value})}async function d(){if(s.value&&!u.value)return u.value=await i.mediaDevices.getUserMedia({video:c(l),audio:c(a)}),u.value}async function p(){var e;null==(e=u.value)||e.getTracks().forEach((e=>e.stop())),u.value=void 0}async function f(){return await d(),u.value&&(r.value=!0),u.value}async function v(){return p(),await f()}return nr(r,(e=>{e?d():p()}),{immediate:!0}),nr([l,a],(()=>{o.value&&u.value&&v()}),{immediate:!0}),{isSupported:s,stream:u,start:f,stop:function(){p(),r.value=!1},restart:v,videoDeviceId:l,audioDeviceId:a,enabled:r,autoSwitch:o}},useVModel:qv,useVModels:function(e,t,n={}){const r={};for(const o in e)r[o]=qv(e,o,t,n);return r},useVibrate:function(e){const{pattern:t=[],interval:n=0,navigator:r=kc}=e||{},o=$c((()=>void 0!==r&&"vibrate"in r)),l=Hs(t);let a;const i=(e=l.value)=>{o.value&&r.vibrate(e)};return n>0&&(a=iu(i,n,{immediate:!1,immediateCallback:!1})),{isSupported:o,pattern:t,intervalControls:a,vibrate:i,stop:()=>{o.value&&r.vibrate(0),null==a||a.pause()}}},useVirtualList:function(e,t){const{containerStyle:n,wrapperProps:r,scrollTo:o,calculateRange:l,currentList:a,containerRef:i}="itemHeight"in t?function(e,t){const n=Yv(t),{state:r,source:o,currentList:l,size:a,containerRef:i}=n,{itemHeight:s,overscan:u=5}=e,c=Gv(r,o,s),d=Xv("vertical",u,Jv(o,s),c,n),p=Qv(s,o),f=oa((()=>p(r.value.start))),v=eh(s,o);Zv(a,t,d);return{calculateRange:d,scrollTo:nh("vertical",d,p,i),containerStyle:{overflowY:"auto"},wrapperProps:oa((()=>({style:{width:"100%",height:v.value-f.value+"px",marginTop:`${f.value}px`}}))),currentList:l,containerRef:i}}(t,e):function(e,t){const n=Yv(t),{state:r,source:o,currentList:l,size:a,containerRef:i}=n,{itemWidth:s,overscan:u=5}=e,c=Gv(r,o,s),d=Xv("horizontal",u,Jv(o,s),c,n),p=Qv(s,o),f=oa((()=>p(r.value.start))),v=eh(s,o);Zv(a,t,d);return{scrollTo:nh("horizontal",d,p,i),calculateRange:d,wrapperProps:oa((()=>({style:{height:"100%",width:v.value-f.value+"px",marginLeft:`${f.value}px`,display:"flex"}}))),containerStyle:{overflowX:"auto"},currentList:l,containerRef:i}}(t,e);return{list:a,scrollTo:o,containerProps:{ref:i,onScroll:()=>{l()},style:n},wrapperProps:r}},useWakeLock:(e={})=>{const{navigator:t=kc,document:n=Cc}=e;let r;const o=$c((()=>t&&"wakeLock"in t)),l=Wt(!1);return n&&_c(n,"visibilitychange",(async function(){o.value&&r&&(n&&"visible"===n.visibilityState&&(r=await t.wakeLock.request("screen")),l.value=!r.released)}),{passive:!0}),{isSupported:o,isActive:l,request:async function(e){o.value&&(r=await t.wakeLock.request(e),l.value=!r.released)},release:async function(){o.value&&r&&(await r.release(),l.value=!r.released,r=null)}}},useWebNotification:(e={})=>{const{window:t=xc}=e,n=$c((()=>!!t&&"Notification"in t)),r=Wt(null),o=async()=>{n.value&&"permission"in Notification&&"denied"!==Notification.permission&&await Notification.requestPermission()},l=ks(),a=ks(),i=ks(),s=ks(),u=()=>{r.value&&r.value.close(),r.value=null};if(Qs((async()=>{n.value&&await o()})),Cs(u),n.value&&t){const e=t.document;_c(e,"visibilitychange",(t=>{t.preventDefault(),"visible"===e.visibilityState&&u()}))}return{isSupported:n,notification:r,show:async t=>{if(!n.value)return;await o();const u=Object.assign({},e,t);return r.value=new Notification(u.title||"",u),r.value.onclick=e=>l.trigger(e),r.value.onshow=e=>a.trigger(e),r.value.onerror=e=>i.trigger(e),r.value.onclose=e=>s.trigger(e),r.value},close:u,onClick:l,onShow:a,onError:i,onClose:s}},useWebSocket:function(e,t={}){const{onConnected:n,onDisconnected:r,onError:o,onMessage:l,immediate:a=!0,autoClose:i=!0,protocols:s=[]}=t,u=Wt(null),c=Wt("CLOSED"),d=Wt(),p=Hs(e);let f,v,h,m=!1,g=0,y=[];const b=(e=1e3,t)=>{d.value&&(m=!0,null==f||f(),d.value.close(e,t))},w=()=>{if(y.length&&d.value&&"OPEN"===c.value){for(const e of y)d.value.send(e);y=[]}},x=(e,t=!0)=>d.value&&"OPEN"===c.value?(w(),d.value.send(e),!0):(t&&y.push(e),!1),C=()=>{if(m||void 0===p.value)return;const e=new WebSocket(p.value,s);d.value=e,c.value="CONNECTING",e.onopen=()=>{c.value="OPEN",null==n||n(e),null==v||v(),w()},e.onclose=n=>{if(c.value="CLOSED",d.value=void 0,null==r||r(e,n),!m&&t.autoReconnect){const{retries:e=-1,delay:n=1e3,onFailed:r}=oh(t.autoReconnect);g+=1,"number"==typeof e&&(e<0||g{null==o||o(e,t)},e.onmessage=n=>{if(t.heartbeat){clearTimeout(h),h=void 0;const{message:e=rh}=oh(t.heartbeat);if(n.data===e)return}u.value=n.data,null==l||l(e,n)}};if(t.heartbeat){const{message:e=rh,interval:n=1e3,pongTimeout:r=1e3}=oh(t.heartbeat),{pause:o,resume:l}=iu((()=>{x(e,!1),null==h&&(h=setTimeout((()=>{b()}),r))}),n,{immediate:!1});f=o,v=l}i&&(_c(window,"beforeunload",(()=>b())),Cs(b));const k=()=>{b(),m=!1,g=0,C()};return a&&nr(p,k,{immediate:!0}),{data:u,status:c,close:b,send:x,open:k,ws:d}},useWebWorker:function(e,t,n){const{window:r=xc}=null!=n?n:{},o=Wt(null),l=Ut();return r&&(ns(e)?l.value=new Worker(e,t):es(e)?l.value=e():l.value=e,l.value.onmessage=e=>{o.value=e.data},Cs((()=>{l.value&&l.value.terminate()}))),{data:o,post:function(e){l.value&&l.value.postMessage(e)},terminate:function(){l.value&&l.value.terminate()},worker:l}},useWebWorkerFn:(e,t={})=>{const{dependencies:n=[],timeout:r,window:o=xc}=t,l=Wt(),a=Wt("PENDING"),i=Wt({}),s=Wt(),u=(e="PENDING")=>{l.value&&l.value._url&&o&&(l.value.terminate(),URL.revokeObjectURL(l.value._url),i.value={},l.value=void 0,o.clearTimeout(s.value),a.value=e)};return u(),Cs(u),{workerFn:(...t)=>"RUNNING"===a.value?Promise.reject():(l.value=(()=>{const t=ah(e,n),o=new Worker(t);return o._url=t,o.onmessage=e=>{const{resolve:t=(()=>{}),reject:n=(()=>{})}=i.value,[r,o]=e.data;"SUCCESS"===r?(t(o),u(r)):(n(o),u("ERROR"))},o.onerror=e=>{const{reject:t=(()=>{})}=i.value;t(e),u("ERROR")},r&&(s.value=setTimeout((()=>u("TIMEOUT_EXPIRED")),r)),o})(),((...e)=>new Promise(((t,n)=>{i.value={resolve:t,reject:n},l.value&&l.value.postMessage([[...e]]),a.value="RUNNING"})))(...t)),workerStatus:a,workerTerminate:u}},useWindowFocus:ih,useWindowScroll:function({window:e=xc}={}){if(!e)return{x:Wt(0),y:Wt(0)};const t=Wt(e.scrollX),n=Wt(e.scrollY);return _c(e,"scroll",(()=>{t.value=e.scrollX,n.value=e.scrollY}),{capture:!1,passive:!0}),{x:t,y:n}},useWindowSize:sh,watchArray:function(e,t,n){let r=(null==n?void 0:n.immediate)?[]:[...e instanceof Function?e():Array.isArray(e)?e:Gt(e)];return nr(e,((e,n,o)=>{const l=new Array(r.length),a=[];for(const t of e){let e=!1;for(let n=0;n!l[t]));t(e,r,a,i,o),r=[...e]}),n)},watchAtMost:function(e,t,n){const r=n,{count:o}=r,l=((e,t)=>{var n={};for(var r in e)_u.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Su)for(var r of Su(e))t.indexOf(r)<0&&Eu.call(e,r)&&(n[r]=e[r]);return n})(r,["count"]),a=Wt(0),i=ku(e,((...e)=>{a.value+=1,a.value>=us(o)&&wn((()=>i())),t(...e)}),l);return{count:a,stop:i}},watchDebounced:Ru,watchIgnorable:Uu,watchOnce:function(e,t,n){const r=nr(e,((...e)=>(wn((()=>r())),t(...e))),n)},watchPausable:nc,watchThrottled:cc,watchTriggerable:function(e,t,n={}){let r;function o(e){r=e}const l=(e,n)=>(function(){if(!r)return;const e=r;r=void 0,e()}(),t(e,n,o)),a=Uu(e,l,n),{ignoreUpdates:i}=a;return s=((e,t)=>{for(var n in t||(t={}))hc.call(t,n)&&gc(e,n,t[n]);if(vc)for(var n of vc(t))mc.call(t,n)&&gc(e,n,t[n]);return e})({},a),u={trigger:()=>{let t;return i((()=>{var n,r;t=l(It(n=e)?n:Array.isArray(n)?n.map((e=>yc(e))):yc(n),(r=e,Array.isArray(r)?r.map((()=>{})):void 0))})),t}},pc(s,fc(u));var s,u},watchWithFilter:ku,whenever:function(e,t,n){return nr(e,((e,n,r)=>{e&&t(e,n,r)}),n)}},Symbol.toStringTag,{value:"Module"})),ch=()=>Xi&&/firefox/i.test(window.navigator.userAgent),dh=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},ph=e=>{let t,n;return"touchend"===e.type?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},fh="object"==typeof global&&global&&global.Object===Object&&global;var vh="object"==typeof self&&self&&self.Object===Object&&self;const hh=fh||vh||Function("return this")(),mh=hh.Symbol;var gh=Object.prototype,yh=gh.hasOwnProperty,bh=gh.toString,wh=mh?mh.toStringTag:void 0,xh=Object.prototype.toString,Ch="[object Null]",kh="[object Undefined]",Sh=mh?mh.toStringTag:void 0;function _h(e){return null==e?void 0===e?kh:Ch:Sh&&Sh in Object(e)?function(e){var t=yh.call(e,wh),n=e[wh];try{e[wh]=void 0;var r=!0}catch(l){}var o=bh.call(e);return r&&(t?e[wh]=n:delete e[wh]),o}(e):(t=e,xh.call(t));var t}function Eh(e){return null!=e&&"object"==typeof e}var Oh="[object Symbol]";function Mh(e){return"symbol"==typeof e||Eh(e)&&_h(e)==Oh}var zh=NaN;function Th(e){return"number"==typeof e?e:Mh(e)?zh:+e}function Ah(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}const Ym=qm(xm);var Gm=/\{\n\/\* \[wrapped with (.+)\] \*/,Jm=/,? & /,Xm=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Qm(e){return function(){return e}}const Zm=function(){try{var e=ym(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();var eg=Zm?function(e,t){return Zm(e,"toString",{configurable:!0,enumerable:!1,value:Qm(t),writable:!0})}:em;const tg=qm(eg);function ng(e,t){for(var n=-1,r=null==e?0:e.length;++n-1}var ig=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function sg(e,t,n){var r,o=t+"";return tg(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Xm,"{\n/* [wrapped with "+t+"] */\n")}(o,function(e,t){return ng(ig,(function(n){var r="_."+n[0];t&n[1]&&!ag(e,r)&&e.push(r)})),e.sort()}((r=o.match(Gm))?r[1].split(Jm):[],n)))}var ug=1,cg=2,dg=4,pg=8,fg=32,vg=64;function hg(e,t,n,r,o,l,a,i,s,u){var c=t&pg;t|=c?fg:vg,(t&=~(c?vg:fg))&dg||(t&=~(ug|cg));var d=[e,t,o,c?l:void 0,c?a:void 0,c?void 0:l,c?void 0:a,i,s,u],p=n.apply(void 0,d);return Um(e)&&Ym(p,d),p.placeholder=r,sg(p,e,t)}function mg(e){return e.placeholder}var gg=9007199254740991,yg=/^(?:0|[1-9]\d*)$/;function bg(e,t){var n=typeof e;return!!(t=null==t?gg:t)&&("number"==n||"symbol"!=n&&yg.test(e))&&e>-1&&e%1==0&&e1&&y.reverse(),c&&s-1&&e%1==0&&e<=ry}function ly(e){return null!=e&&oy(e.length)&&!lm(e)}function ay(e,t,n){if(!Fh(n))return!1;var r=typeof t;return!!("number"==r?ly(n)&&bg(t,n.length):"string"==r&&t in n)&&Jg(n[t],e)}function iy(e){return ny((function(t,n){var r=-1,o=n.length,l=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(l=e.length>3&&"function"==typeof l?(o--,l):void 0,a&&ay(n[0],n[1],a)&&(l=o<3?void 0:l,o=1),t=Object(t);++r-1},nb.prototype.set=function(e,t){var n=this.__data__,r=eb(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const rb=ym(hh,"Map");function ob(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function lb(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t0&&n(i)?t>1?kb(i,t-1,n,r,o):wb(o,i):r||(o[o.length]=i)}return o}function Sb(e){return null!=e&&e.length?kb(e,1):[]}function _b(e){return tg(ty(e,void 0,Sb),e+"")}const Eb=_b(bb),Ob=Ay(Object.getPrototypeOf,Object);var Mb="[object Object]",zb=Function.prototype,Tb=Object.prototype,Ab=zb.toString,Lb=Tb.hasOwnProperty,Ib=Ab.call(Object);function Rb(e){if(!Eh(e)||_h(e)!=Mb)return!1;var t=Ob(e);if(null===t)return!0;var n=Lb.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ab.call(n)==Ib}function Pb(e){if(!Eh(e))return!1;var t=_h(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Rb(e)}var Nb=ny((function(e,t){try{return Om(e,void 0,t)}catch(n){return Pb(n)?n:new Error(n)}}));const jb=Nb;function Vb(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=Zh(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var Bb=ny((function(e,t,n){var r=1;if(n.length){var o=Cg(n,mg(Bb));r|=32}return qg(e,r,t,n,o)}));Bb.placeholder={};const Hb=Bb;var Db=_b((function(e,t){return ng(t,(function(t){t=mb(t),Gg(e,t,Hb(e[t],e))})),e}));const $b=Db;var Fb=ny((function(e,t,n){var r=3;if(n.length){var o=Cg(n,mg(Fb));r|=32}return qg(t,r,e,n,o)}));Fb.placeholder={};const Wb=Fb;function Ub(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(o);++r=r?e:Ub(e,t,n)}var qb=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Yb(e){return qb.test(e)}var Gb="\\ud800-\\udfff",Jb="["+Gb+"]",Xb="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Qb="\\ud83c[\\udffb-\\udfff]",Zb="[^"+Gb+"]",ew="(?:\\ud83c[\\udde6-\\uddff]){2}",tw="[\\ud800-\\udbff][\\udc00-\\udfff]",nw="(?:"+Xb+"|"+Qb+")?",rw="[\\ufe0e\\ufe0f]?",ow=rw+nw+"(?:\\u200d(?:"+[Zb,ew,tw].join("|")+")"+rw+nw+")*",lw="(?:"+[Zb+Xb+"?",Xb,ew,tw,Jb].join("|")+")",aw=RegExp(Qb+"(?="+Qb+")|"+lw+ow,"g");function iw(e){return Yb(e)?e.match(aw)||[]:function(e){return e.split("")}(e)}function sw(e){return function(t){var n=Yb(t=fb(t))?iw(t):void 0,r=n?n[0]:t.charAt(0),o=n?Kb(n,1).join(""):t.slice(1);return r[e]()+o}}const uw=sw("toUpperCase");function cw(e){return uw(fb(e).toLowerCase())}function dw(e,t,n,r){var o=-1,l=null==e?0:e.length;for(r&&l&&(n=e[++o]);++o=t?e:t)),e}function tx(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=Gh(n))==n?n:0),void 0!==t&&(t=(t=Gh(t))==t?t:0),ex(Gh(e),t,n)}function nx(e){var t=this.__data__=new nb(e);this.size=t.size}function rx(e,t){return e&&Zg(t,Py(t),e)}nx.prototype.clear=function(){this.__data__=new nb,this.size=0},nx.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},nx.prototype.get=function(e){return this.__data__.get(e)},nx.prototype.has=function(e){return this.__data__.has(e)},nx.prototype.set=function(e,t){var n=this.__data__;if(n instanceof nb){var r=n.__data__;if(!rb||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new lb(r)}return n.set(e,t),this.size=n.size,this};var ox="object"==typeof exports&&exports&&!exports.nodeType&&exports,lx=ox&&"object"==typeof module&&module&&!module.nodeType&&module,ax=lx&&lx.exports===ox?hh.Buffer:void 0,ix=ax?ax.allocUnsafe:void 0;function sx(e,t){if(t)return e.slice();var n=e.length,r=ix?ix(n):new e.constructor(n);return e.copy(r),r}function ux(e,t){for(var n=-1,r=null==e?0:e.length,o=0,l=[];++ni))return!1;var u=l.get(e),c=l.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,f=n&MC?new SC:void 0;for(l.set(e,t),l.set(t,e);++d=t||n<0||d&&e-u>=l}function h(){var e,n,r=Ak();if(v(r))return m(r);i=setTimeout(h,(n=t-((e=r)-s),d?Rk(n,l-(e-u)):n))}function m(e){return i=void 0,p&&r?f(e):(r=o=void 0,a)}function g(){var e,n=Ak(),l=v(n);if(r=arguments,o=this,s=n,l){if(void 0===i)return u=e=s,i=setTimeout(h,t),c?f(e):a;if(d)return clearTimeout(i),i=setTimeout(h,t),f(s)}return void 0===i&&(i=setTimeout(h,t)),a}return t=Gh(t)||0,Fh(n)&&(c=!!n.leading,l=(d="maxWait"in n)?Ik(Gh(n.maxWait)||0,t):l,p="trailing"in n?!!n.trailing:p),g.cancel=function(){void 0!==i&&clearTimeout(i),u=0,r=s=o=i=void 0},g.flush=function(){return void 0===i?a:m(Ak())},g}var Nk=Object.prototype,jk=Nk.hasOwnProperty,Vk=ny((function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&ay(t[0],t[1],o)&&(r=1);++n=Zk&&(l=EC,a=!1,t=new SC(t));e:for(;++o":">",'"':""","'":"'"});var xS=/[&<>"']/g,CS=RegExp(xS.source);function kS(e){return(e=fb(e))&&CS.test(e)?e.replace(xS,wS):e}var SS=/[\\^$.*+?()[\]{}|]/g,_S=RegExp(SS.source);function ES(e,t){for(var n=-1,r=null==e?0:e.length;++n-1?o[l?t[a]:a]:void 0}}var AS=Math.max;function LS(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Zh(n);return o<0&&(o=AS(r+o,0)),rg(e,mk(t),o)}const IS=TS(LS);function RS(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}var PS=Math.max,NS=Math.min;function jS(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=Zh(n),o=n<0?PS(r+o,0):NS(o,r-1)),rg(e,mk(t),o,!0)}const VS=TS(jS);function BS(e){return e&&e.length?e[0]:void 0}function HS(e,t){var n=-1,r=ly(e)?Array(e.length):[];return kk(e,(function(e,o,l){r[++n]=t(e,o,l)})),r}function DS(e,t){return(Lh(e)?Ah:HS)(e,mk(t))}function $S(e,t){return kb(DS(e,t),1)}function FS(e){return null!=e&&e.length?kb(e,1/0):[]}const WS=Gw("floor");function US(e){return _b((function(t){var n=t.length,r=n,o=Hm.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new TypeError("Expected a function");if(o&&!a&&"wrapper"==Bm(l))var a=new Hm([],!0)}for(r=a?r:n;++rt}function e_(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Gh(t),n=Gh(n)),e(t,n)}}const t_=e_(ZS),n_=e_((function(e,t){return e>=t}));var r_=Object.prototype.hasOwnProperty;function o_(e,t){return null!=e&&r_.call(e,t)}function l_(e,t){return null!=e&&uk(e,t,o_)}var a_=Math.max,i_=Math.min,s_="[object String]";function u_(e){return"string"==typeof e||!Lh(e)&&Eh(e)&&_h(e)==s_}function c_(e,t){return Ah(t,(function(t){return e[t]}))}function d_(e){return null==e?[]:c_(e,Py(e))}var p_=Math.max,f_=Math.max,v_=Math.min;function h_(e,t,n){for(var r=n?Qk:ag,o=e[0].length,l=e.length,a=l,i=Array(l),s=1/0,u=[];a--;){var c=e[a];a&&t&&(c=Ah(c,Cy(t))),s=v_(c.length,s),i[a]=!n&&(t||o>=120&&c.length>=120)?new SC(a&&c):void 0}c=e[0];var d=-1,p=i[0];e:for(;++d=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}}function OE(e,t){var n=e.length;if(n)return bg(t+=t<0?n:0,n)?e[t]:void 0}function ME(e,t){return null==(e=A_(e,t=vb(t,e)))||delete e[mb(rS(t))]}function zE(e){return Rb(e)?void 0:e}var TE=_b((function(e,t){var n={};if(null==e)return n;var r=!1;t=Ah(t,(function(t){return t=vb(t,e),r||(r=t.length>1),t})),Zg(e,bx(e),n),r&&(n=wC(n,7,zE));for(var o=t.length;o--;)ME(n,t[o]);return n}));const AE=TE;function LE(e,t,n,r){if(!Fh(e))return e;for(var o=-1,l=(t=vb(t,e)).length,a=l-1,i=e;null!=i&&++ot||l&&a&&s&&!i&&!u||r&&a&&s||!n&&s||!o)return 1;if(!r&&!l&&!u&&e=i?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(HS(e,(function(e,n,o){return{criteria:Ah(t,(function(t){return t(e)})),index:++r,value:e}})))}function jE(e){return _b((function(t){return t=Ah(t,Cy(mk)),ny((function(n){var r=this;return e(t,(function(e){return Om(e,r,n)}))}))}))}const VE=jE(Ah),BE=ny;var HE=Math.min,DE=BE((function(e,t){var n=(t=1==t.length&&Lh(t[0])?Ah(t[0],Cy(mk)):Ah(kb(t,1),Cy(mk))).length;return ny((function(r){for(var o=-1,l=HE(r.length,n);++oUE)return n;do{t%2&&(n+=e),(t=KE(t/2))&&(e+=e)}while(t);return n}const YE=vk("length");var GE="\\ud800-\\udfff",JE="["+GE+"]",XE="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",QE="\\ud83c[\\udffb-\\udfff]",ZE="[^"+GE+"]",eO="(?:\\ud83c[\\udde6-\\uddff]){2}",tO="[\\ud800-\\udbff][\\udc00-\\udfff]",nO="(?:"+XE+"|"+QE+")?",rO="[\\ufe0e\\ufe0f]?",oO=rO+nO+"(?:\\u200d(?:"+[ZE,eO,tO].join("|")+")"+rO+nO+")*",lO="(?:"+[ZE+XE+"?",XE,eO,tO,JE].join("|")+")",aO=RegExp(QE+"(?="+QE+")|"+lO+oO,"g");function iO(e){return Yb(e)?function(e){for(var t=aO.lastIndex=0;aO.test(e);)++t;return t}(e):YE(e)}var sO=Math.ceil;function uO(e,t){var n=(t=void 0===t?" ":Nh(t)).length;if(n<2)return n?qE(t,e):t;var r=qE(t,sO(e/iO(t)));return Yb(t)?Kb(iw(r),0,e).join(""):r.slice(0,e)}var cO=Math.ceil,dO=Math.floor,pO=/^\s+/,fO=hh.parseInt,vO=ny((function(e,t){return qg(e,32,void 0,t,Cg(t,mg(vO)))}));vO.placeholder={};const hO=vO;var mO=ny((function(e,t){return qg(e,64,void 0,t,Cg(t,mg(mO)))}));mO.placeholder={};const gO=mO;var yO=_k((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));const bO=yO;var wO=_b((function(e,t){return null==e?{}:IE(n=e,t,(function(e,t){return ck(n,t)}));var n}));const xO=wO;function CO(e){for(var t,n=this;n instanceof Lm;){var r=$m(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function kO(e,t,n,r){for(var o=n-1,l=e.length;++o-1;)i!==e&&SO.call(i,s,1),SO.call(e,s,1);return e}function EO(e,t){return e&&e.length&&t&&t.length?_O(e,t):e}const OO=ny(EO);var MO=Array.prototype.splice;function zO(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==l){var l=o;bg(o)?MO.call(e,o,1):ME(e,o)}}return e}var TO=_b((function(e,t){var n=null==e?0:e.length,r=bb(e,t);return zO(e,Ah(t,(function(e){return bg(e,n)?+e:e})).sort(PE)),r}));const AO=TO;var LO=Math.floor,IO=Math.random;function RO(e,t){return e+LO(IO()*(t-e+1))}var PO=parseFloat,NO=Math.min,jO=Math.random,VO=Math.ceil,BO=Math.max;function HO(e){return function(t,n,r){return r&&"number"!=typeof r&&ay(t,n,r)&&(n=r=void 0),t=Qh(t),void 0===n?(n=t,t=0):n=Qh(n),function(e,t,n,r){for(var o=-1,l=BO(VO((t-e)/(n||1)),0),a=Array(l);l--;)a[r?l:++o]=e,e+=n;return a}(t,n,r=void 0===r?t1&&ay(e,t[0],t[1])?t=[]:n>2&&ay(t[0],t[1],t[2])&&(t=[t[0]]),NE(e,kb(t,1),[])}));var iM=4294967294,sM=Math.floor,uM=Math.min;function cM(e,t,n,r){var o=0,l=null==e?0:e.length;if(0===l)return 0;for(var a=(t=n(t))!=t,i=null===t,s=Mh(t),u=void 0===t;o>>1,a=e[l];null!==a&&!Mh(a)&&(n?a<=t:a/g,EM={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:_M,variable:"",imports:{_:{escape:kS}}};var OM=/\b__p \+= '';/g,MM=/\b(__p \+=) '' \+/g,zM=/(__e\(.*?\)|\b__t\)) \+\n'';/g,TM=/[()=,{}\[\]\/\s]/,AM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,LM=/($^)/,IM=/['\n\r\u2028\u2029\\]/g,RM=Object.prototype.hasOwnProperty;function PM(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Fh(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Pk(e,t,{leading:r,maxWait:t,trailing:o})}function NM(e,t){return t(e)}var jM=4294967295,VM=Math.min;function BM(){return this}function HM(){return function(e,t){var n=e;return n instanceof Rm&&(n=n.value()),dw(t,(function(e,t){return t.func.apply(t.thisArg,wb([e],t.args))}),n)}(this.__wrapped__,this.__actions__)}function DM(e,t){for(var n=e.length;n--&&lg(t,e[n],0)>-1;);return n}function $M(e,t){for(var n=-1,r=e.length;++n-1;);return n}var FM=/^\s+/,WM=/\w*$/;const UM=pw({"&":"&","<":"<",">":">",""":'"',"'":"'"});var KM=/&(?:amp|lt|gt|quot|#39);/g,qM=RegExp(KM.source),YM=Cx&&1/AC(new Cx([,-0]))[1]==1/0?function(e){return new Cx(e)}:Pm;const GM=YM;var JM=200;function XM(e,t,n){var r=-1,o=ag,l=e.length,a=!0,i=[],s=i;if(n)a=!1,o=Qk;else if(l>=JM){var u=t?null:GM(e);if(u)return AC(u);a=!1,o=EC,s=new SC}else s=t?[]:i;e:for(;++r1||this.__actions__.length)&&r instanceof Rm&&bg(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:NM,args:[o],thisArg:void 0}),new Hm(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));const vz=fz;function hz(e,t,n){var r=e.length;if(r<2)return r?XM(e[0]):[];for(var o=-1,l=Array(r);++o1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,iz(e,n)}));const Sz=kz,_z=Object.freeze(Object.defineProperty({__proto__:null,add:Vh,after:function(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=Zh(e),function(){if(--e<1)return t.apply(this,arguments)}},ary:Yg,assign:Vy,assignIn:$y,assignInWith:Wy,assignWith:Ky,at:Eb,attempt:jb,before:Vb,bind:Hb,bindAll:$b,bindKey:Wb,camelCase:Uw,capitalize:cw,castArray:Kw,ceil:Jw,chain:Xw,chunk:function(e,t,n){t=(n?ay(e,t,n):void 0===t)?1:Zw(Zh(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,l=0,a=Array(Qw(r/t));o=0&&e.slice(n,o)==t},entries:yS,entriesIn:bS,eq:Jg,escape:kS,escapeRegExp:function(e){return(e=fb(e))&&_S.test(e)?e.replace(SS,"\\$&"):e},every:function(e,t,n){var r=Lh(e)?ES:OS;return n&&ay(e,t,n)&&(t=void 0),r(e,mk(t))},extend:$y,extendWith:Wy,fill:function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&ay(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Zh(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:Zh(r))<0&&(r+=o),r=n>r?0:MS(r);n=i_(o=t,l=n)&&r-1:!!o&&lg(e,t,n)>-1},indexOf:function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Zh(n);return o<0&&(o=f_(r+o,0)),lg(e,t,o)},initial:function(e){return null!=e&&e.length?Ub(e,0,-1):[]},intersection:g_,intersectionBy:b_,intersectionWith:x_,invert:__,invertBy:T_,invoke:I_,invokeMap:P_,isArguments:hy,isArray:Lh,isArrayBuffer:j_,isArrayLike:ly,isArrayLikeObject:Dk,isBoolean:function(e){return!0===e||!1===e||Eh(e)&&"[object Boolean]"==_h(e)},isBuffer:wy,isDate:B_,isElement:function(e){return Eh(e)&&1===e.nodeType&&!Rb(e)},isEmpty:D_,isEqual:$_,isEqualWith:function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?ek(e,t,void 0,n):!!r},isError:Pb,isFinite:function(e){return"number"==typeof e&&F_(e)},isFunction:lm,isInteger:W_,isLength:oy,isMap:uC,isMatch:function(e,t){return e===t||rk(e,t,lk(t))},isMatchWith:function(e,t,n){return n="function"==typeof n?n:void 0,rk(e,t,lk(t),n)},isNaN:function(e){return U_(e)&&e!=+e},isNative:function(e){if(K_(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return gm(e)},isNil:q_,isNull:function(e){return null===e},isNumber:U_,isObject:Fh,isObjectLike:Eh,isPlainObject:Rb,isRegExp:G_,isSafeInteger:function(e){return W_(e)&&e>=-9007199254740991&&e<=9007199254740991},isSet:dC,isString:u_,isSymbol:Mh,isTypedArray:My,isUndefined:J_,isWeakMap:function(e){return Eh(e)&&"[object WeakMap]"==Rx(e)},isWeakSet:function(e){return Eh(e)&&"[object WeakSet]"==_h(e)},iteratee:function(e){return mk("function"==typeof e?e:wC(e,1))},join:function(e,t){return null==e?"":X_.call(e,t)},kebabCase:Z_,keyBy:tE,keys:Py,keysIn:Hy,last:rS,lastIndexOf:function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=Zh(n))<0?nE(r+o,0):rE(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):rg(e,og,o,!0)},lodash:Wm,lowerCase:lE,lowerFirst:aE,lt:sE,lte:uE,map:DS,mapKeys:function(e,t){var n={};return t=mk(t),xk(e,(function(e,r,o){Gg(n,t(e,r,o),e)})),n},mapValues:function(e,t){var n={};return t=mk(t),xk(e,(function(e,r,o){Gg(n,r,t(e,r,o))})),n},matches:function(e){return ik(wC(e,1))},matchesProperty:function(e,t){return fk(e,wC(t,1))},max:dE,maxBy:function(e,t){return e&&e.length?cE(e,mk(t),ZS):void 0},mean:function(e){return fE(e,em)},meanBy:function(e,t){return fE(e,mk(t))},memoize:ab,merge:hE,mergeWith:qk,method:gE,methodOf:bE,min:function(e){return e&&e.length?cE(e,em,iE):void 0},minBy:function(e,t){return e&&e.length?cE(e,mk(t),iE):void 0},mixin:function(e,t,n){var r=Py(t),o=GS(t,r),l=!(Fh(n)&&"chain"in n&&!n.chain),a=lm(e);return ng(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(l||t){var n=e(this.__wrapped__);return(n.__actions__=Dm(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,wb([this.value()],arguments))})})),e},multiply:wE,negate:xE,next:EE,noop:Pm,now:Ak,nth:function(e,t){return e&&e.length?OE(e,Zh(t)):void 0},nthArg:function(e){return e=Zh(e),ny((function(t){return OE(t,e)}))},omit:AE,omitBy:function(e,t){return RE(e,xE(mk(t)))},once:function(e){return Vb(2,e)},orderBy:function(e,t,n,r){return null==e?[]:(Lh(t)||(t=null==t?[]:[t]),Lh(n=r?void 0:n)||(n=null==n?[]:[n]),NE(e,t,n))},over:VE,overArgs:$E,overEvery:FE,overSome:WE,pad:function(e,t,n){e=fb(e);var r=(t=Zh(t))?iO(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return uO(dO(o),n)+e+uO(cO(o),n)},padEnd:function(e,t,n){e=fb(e);var r=(t=Zh(t))?iO(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=jO();return NO(e+o*(t-e+PO("1e-"+((o+"").length-1))),t)}return RO(e,t)},range:DO,rangeRight:$O,rearg:FO,reduce:function(e,t,n){var r=Lh(e)?dw:WO,o=arguments.length<3;return r(e,mk(t),n,o,kk)},reduceRight:function(e,t,n){var r=Lh(e)?UO:WO,o=arguments.length<3;return r(e,mk(t),n,o,hS)},reject:function(e,t){return(Lh(e)?ux:zS)(e,xE(mk(t)))},remove:function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],l=e.length;for(t=mk(t);++r>>0)?(e=fb(e))&&("string"==typeof t||null!=t&&!G_(t))&&!(t=Nh(t))&&Yb(e)?Kb(iw(e),0,n):e.split(t,n):[]},spread:function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:mM(Zh(t),0),ny((function(n){var r=n[t],o=Kb(n,0,t);return r&&wb(o,r),Om(e,this,o)}))},startCase:yM,startsWith:function(e,t,n){return e=fb(e),n=null==n?0:ex(Zh(n),0,e.length),t=Nh(t),e.slice(n,n+t.length)==t},stubArray:cx,stubFalse:my,stubObject:function(){return{}},stubString:function(){return""},stubTrue:function(){return!0},subtract:bM,sum:function(e){return e&&e.length?pE(e,em):0},sumBy:function(e,t){return e&&e.length?pE(e,mk(t)):0},tail:function(e){var t=null==e?0:e.length;return t?Ub(e,1,t):[]},take:function(e,t,n){return e&&e.length?Ub(e,0,(t=n||void 0===t?1:Zh(t))<0?0:t):[]},takeRight:function(e,t,n){var r=null==e?0:e.length;return r?Ub(e,(t=r-(t=n||void 0===t?1:Zh(t)))<0?0:t,r):[]},takeRightWhile:function(e,t){return e&&e.length?uS(e,mk(t),!1,!0):[]},takeWhile:function(e,t){return e&&e.length?uS(e,mk(t)):[]},tap:function(e,t){return t(e),e},template:function(e,t,n){var r=EM.imports._.templateSettings||EM;n&&ay(e,t,n)&&(t=void 0),e=fb(e),t=Wy({},t,r,CM);var o,l,a=Wy({},t.imports,r.imports,CM),i=Py(a),s=c_(a,i),u=0,c=t.interpolate||LM,d="__p += '",p=RegExp((t.escape||LM).source+"|"+c.source+"|"+(c===_M?AM:LM).source+"|"+(t.evaluate||LM).source+"|$","g"),f=RM.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(p,(function(t,n,r,a,i,s){return r||(r=a),d+=e.slice(u,s).replace(IM,SM),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),i&&(l=!0,d+="';\n"+i+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=s+t.length,t})),d+="';\n";var v=RM.call(t,"variable")&&t.variable;if(v){if(TM.test(v))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(l?d.replace(OM,""):d).replace(MM,"$1").replace(zM,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(l?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var h=jb((function(){return Function(i,f+"return "+d).apply(void 0,s)}));if(h.source=d,Pb(h))throw h;return h},templateSettings:EM,throttle:PM,thru:NM,times:function(e,t){if((e=Zh(e))<1||e>9007199254740991)return[];var n=jM,r=VM(e,jM);t=cS(t),e-=jM;for(var o=cy(r,t);++n=l)return e;var i=n-iO(r);if(i<1)return r;var s=a?Kb(a,0,i).join(""):e.slice(0,i);if(void 0===o)return s+r;if(a&&(i+=s.length-i),G_(o)){if(e.slice(i).search(o)){var u,c=s;for(o.global||(o=RegExp(o.source,fb(WM.exec(o))+"g")),o.lastIndex=0;u=o.exec(c);)var d=u.index;s=s.slice(0,void 0===d?i:d)}}else if(e.indexOf(Nh(o),i)!=i){var p=s.lastIndexOf(o);p>-1&&(s=s.slice(0,p))}return s+r},unary:function(e){return Yg(e,1)},unescape:function(e){return(e=fb(e))&&qM.test(e)?e.replace(KM,UM):e},union:QM,unionBy:ez,unionWith:nz,uniq:rz,uniqBy:function(e,t){return e&&e.length?XM(e,mk(t)):[]},uniqWith:function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?XM(e,void 0,t):[]},uniqueId:function(e){var t=++oz;return fb(e)+t},unset:function(e,t){return null==e||ME(e,t)},unzip:az,unzipWith:iz,update:function(e,t,n){return null==e?e:sz(e,t,cS(n))},updateWith:function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:sz(e,t,cS(n),r)},upperCase:cz,upperFirst:uw,value:HM,valueOf:HM,values:d_,valuesIn:function(e){return null==e?[]:c_(e,Hy(e))},without:pz,words:Dw,wrap:function(e,t){return hO(cS(t),e)},wrapperAt:vz,wrapperChain:function(){return Xw(this)},wrapperCommit:kC,wrapperLodash:Wm,wrapperNext:EE,wrapperPlant:CO,wrapperReverse:function(){var e=this.__wrapped__;if(e instanceof Rm){var t=e;return this.__actions__.length&&(t=new Rm(this)),(t=t.reverse()).__actions__.push({func:NM,args:[qO],thisArg:void 0}),new Hm(t,this.__chain__)}return this.thru(qO)},wrapperToIterator:BM,wrapperValue:HM,xor:mz,xorBy:yz,xorWith:wz,zip:xz,zipObject:function(e,t){return Cz(e||[],t||[],Qg)},zipObjectDeep:function(e,t){return Cz(e||[],t||[],LE)},zipWith:Sz},Symbol.toStringTag,{value:"Module"})),Ez=e=>void 0===e,Oz=e=>"boolean"==typeof e,Mz=e=>"number"==typeof e,zz=e=>!e&&0!==e||p(e)&&0===e.length||w(e)&&!Object.keys(e).length,Tz=e=>"undefined"!=typeof Element&&e instanceof Element,Az=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Lz=e=>R(e),Iz=e=>Object.keys(e),Rz=(e,t,n)=>({get value(){return yb(e,t,n)},set value(n){eM(e,t,n)}});let Pz=class extends Error{constructor(e){super(e),this.name="ElementPlusError"}};function Nz(e,t){throw new Pz(`[${e}] ${t}`)}const jz=(e="")=>e.split(" ").filter((e=>!!e.trim())),Vz=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Bz=(e,t)=>{e&&t.trim()&&e.classList.add(...jz(t))},Hz=(e,t)=>{e&&t.trim()&&e.classList.remove(...jz(t))},Dz=(e,t)=>{var n;if(!Xi||!e||!t)return"";let r=A(t);"float"===r&&(r="cssFloat");try{const t=e.style[r];if(t)return t;const o=null==(n=document.defaultView)?void 0:n.getComputedStyle(e,"");return o?o[r]:""}catch(o){return e.style[r]}};function $z(e,t="px"){return e?Mz(e)||y(n=e)&&!Number.isNaN(Number(n))?`${e}${t}`:y(e)?e:void 0:"";var n}const Fz=(e,t)=>{if(!Xi)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Dz(e,n);return["scroll","auto","overlay"].some((e=>r.includes(e)))},Wz=(e,t)=>{if(!Xi)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(Fz(n,t))return n;n=n.parentNode}return n};let Uz;const Kz=e=>{var t;if(!Xi)return 0;if(void 0!==Uz)return Uz;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const l=o.offsetWidth;return null==(t=n.parentNode)||t.removeChild(n),Uz=r-l,Uz};function qz(e,t){if(!Xi)return;if(!t)return void(e.scrollTop=0);const n=[];let r=t.offsetParent;for(;null!==r&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const o=t.offsetTop+n.reduce(((e,t)=>e+t.offsetTop),0),l=o+t.offsetHeight,a=e.scrollTop,i=a+e.clientHeight;oi&&(e.scrollTop=l-e.clientHeight)} +/*! Element Plus Icons Vue v2.1.0 */var Yz=(e,t)=>{let n=e.__vccOpts||e;for(let[r,o]of t)n[r]=o;return n},Gz={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Jz=[El("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),El("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),El("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0v96z"},null,-1)],Xz=Yz({name:"AddLocation"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",Gz,Jz)}],["__file","add-location.vue"]]),Qz={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Zz=[El("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),El("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32zm0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32zM96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32zm576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32z"},null,-1)],eT=Yz({name:"Aim"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",Qz,Zz)}],["__file","aim.vue"]]),tT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nT=[El("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640zm0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768z"},null,-1),El("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32l48-83.136zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32l-48-83.136zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0v192zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128l46.912 46.912z"},null,-1)],rT=Yz({name:"AlarmClock"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",tT,nT)}],["__file","alarm-clock.vue"]]),oT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lT=[El("path",{fill:"currentColor",d:"M599.872 203.776a189.44 189.44 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a426.624 426.624 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664zm-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688 63.552 0 81.28 34.688 136.96 33.536 56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152z"},null,-1)],aT=Yz({name:"Apple"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",oT,lT)}],["__file","apple.vue"]]),iT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sT=[El("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"},null,-1)],uT=Yz({name:"ArrowDownBold"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",iT,sT)}],["__file","arrow-down-bold.vue"]]),cT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dT=[El("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1)],pT=Yz({name:"ArrowDown"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",cT,dT)}],["__file","arrow-down.vue"]]),fT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vT=[El("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"},null,-1)],hT=Yz({name:"ArrowLeftBold"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",fT,vT)}],["__file","arrow-left-bold.vue"]]),mT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gT=[El("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1)],yT=Yz({name:"ArrowLeft"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",mT,gT)}],["__file","arrow-left.vue"]]),bT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wT=[El("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"},null,-1)],xT=Yz({name:"ArrowRightBold"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",bT,wT)}],["__file","arrow-right-bold.vue"]]),CT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kT=[El("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1)],ST=Yz({name:"ArrowRight"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",CT,kT)}],["__file","arrow-right.vue"]]),_T={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ET=[El("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"},null,-1)],OT=Yz({name:"ArrowUpBold"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",_T,ET)}],["__file","arrow-up-bold.vue"]]),MT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zT=[El("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1)],TT=Yz({name:"ArrowUp"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",MT,zT)}],["__file","arrow-up.vue"]]),AT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LT=[El("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0z"},null,-1)],IT=Yz({name:"Avatar"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",AT,LT)}],["__file","avatar.vue"]]),RT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PT=[El("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),El("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1)],NT=Yz({name:"Back"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",RT,PT)}],["__file","back.vue"]]),jT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},VT=[El("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6zm45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104z"},null,-1),El("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896zM108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1736.64 1736.64 0 0 1-11.392-65.728z"},null,-1)],BT=Yz({name:"Baseball"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",jT,VT)}],["__file","baseball.vue"]]),HT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},DT=[El("path",{fill:"currentColor",d:"M778.752 788.224a382.464 382.464 0 0 0 116.032-245.632 256.512 256.512 0 0 0-241.728-13.952 762.88 762.88 0 0 1 125.696 259.584zm-55.04 44.224a699.648 699.648 0 0 0-125.056-269.632 256.128 256.128 0 0 0-56.064 331.968 382.72 382.72 0 0 0 181.12-62.336zm-254.08 61.248A320.128 320.128 0 0 1 557.76 513.6a715.84 715.84 0 0 0-48.192-48.128 320.128 320.128 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.128 256.128 0 0 0 331.072-56.448 699.648 699.648 0 0 0-268.8-124.352 382.656 382.656 0 0 0-62.272 180.8zm106.56-235.84a762.88 762.88 0 0 1 258.688 125.056 256.512 256.512 0 0 0-13.44-241.088A382.464 382.464 0 0 0 235.84 245.248zm318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a779.84 779.84 0 0 1 66.176 66.112 320.832 320.832 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6z"},null,-1)],$T=Yz({name:"Basketball"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",HT,DT)}],["__file","basketball.vue"]]),FT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},WT=[El("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0h256zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.128 320.128 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8H832z"},null,-1)],UT=Yz({name:"BellFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",FT,WT)}],["__file","bell-filled.vue"]]),KT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qT=[El("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64z"},null,-1),El("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0v320zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320z"},null,-1),El("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm352 128h128a64 64 0 0 1-128 0z"},null,-1)],YT=Yz({name:"Bell"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",KT,qT)}],["__file","bell.vue"]]),GT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JT=[Al('',5)],XT=Yz({name:"Bicycle"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",GT,JT)}],["__file","bicycle.vue"]]),QT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ZT=[El("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0v416z"},null,-1),El("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z"},null,-1)],eA=Yz({name:"BottomLeft"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",QT,ZT)}],["__file","bottom-left.vue"]]),tA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nA=[El("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416H352z"},null,-1),El("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312l544 544z"},null,-1)],rA=Yz({name:"BottomRight"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",tA,nA)}],["__file","bottom-right.vue"]]),oA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lA=[El("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"},null,-1)],aA=Yz({name:"Bottom"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",oA,lA)}],["__file","bottom.vue"]]),iA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sA=[El("path",{fill:"currentColor",d:"M714.432 704a351.744 351.744 0 0 0 148.16-256H161.408a351.744 351.744 0 0 0 148.16 256h404.864zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64v-65.408zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248L493.248 320zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424L680.576 320zM352 768v64h320v-64H352z"},null,-1)],uA=Yz({name:"Bowl"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",iA,sA)}],["__file","bowl.vue"]]),cA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dA=[El("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128H317.056zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64z"},null,-1),El("path",{fill:"currentColor",d:"M64 320h896v64H64z"},null,-1),El("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16L448 327.872zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320l64-256z"},null,-1)],pA=Yz({name:"Box"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",cA,dA)}],["__file","box.vue"]]),fA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vA=[El("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320h192zM128 576h768v320H128V576zm256-256h256.064V192H384v128z"},null,-1)],hA=Yz({name:"Briefcase"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",fA,vA)}],["__file","briefcase.vue"]]),mA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gA=[El("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128h-96zM192 512V128.064h640V512H192z"},null,-1)],yA=Yz({name:"BrushFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",mA,gA)}],["__file","brush-filled.vue"]]),bA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wA=[El("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64V448zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a663.872 663.872 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384h61.248zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168z"},null,-1)],xA=Yz({name:"Brush"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",bA,wA)}],["__file","brush.vue"]]),CA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kA=[El("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H160zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44zM832 448a320 320 0 0 0-640 0h640zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704H512z"},null,-1)],SA=Yz({name:"Burger"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",CA,kA)}],["__file","burger.vue"]]),_A={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},EA=[El("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1)],OA=Yz({name:"Calendar"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",_A,EA)}],["__file","calendar.vue"]]),MA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zA=[El("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224H160zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4zm0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"},null,-1)],TA=Yz({name:"CameraFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",MA,zA)}],["__file","camera-filled.vue"]]),AA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LA=[El("path",{fill:"currentColor",d:"M896 256H128v576h768V256zm-199.424-64-32.064-64h-304.96l-32 64h369.024zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32zm416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320zm0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448z"},null,-1)],IA=Yz({name:"Camera"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",AA,LA)}],["__file","camera.vue"]]),RA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PA=[El("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"},null,-1)],NA=Yz({name:"CaretBottom"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",RA,PA)}],["__file","caret-bottom.vue"]]),jA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},VA=[El("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"},null,-1)],BA=Yz({name:"CaretLeft"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",jA,VA)}],["__file","caret-left.vue"]]),HA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},DA=[El("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1)],$A=Yz({name:"CaretRight"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",HA,DA)}],["__file","caret-right.vue"]]),FA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},WA=[El("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1)],UA=Yz({name:"CaretTop"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",FA,WA)}],["__file","caret-top.vue"]]),KA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qA=[El("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H256zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64zm128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64zm128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128z"},null,-1)],YA=Yz({name:"Cellphone"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",KA,qA)}],["__file","cellphone.vue"]]),GA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JA=[El("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"},null,-1),El("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"},null,-1)],XA=Yz({name:"ChatDotRound"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",GA,JA)}],["__file","chat-dot-round.vue"]]),QA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ZA=[El("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88L273.536 736zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"},null,-1),El("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"},null,-1)],eL=Yz({name:"ChatDotSquare"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",QA,ZA)}],["__file","chat-dot-square.vue"]]),tL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nL=[El("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"},null,-1),El("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32z"},null,-1)],rL=Yz({name:"ChatLineRound"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",tL,nL)}],["__file","chat-line-round.vue"]]),oL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lL=[El("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"},null,-1),El("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32z"},null,-1)],aL=Yz({name:"ChatLineSquare"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",oL,lL)}],["__file","chat-line-square.vue"]]),iL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sL=[El("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"},null,-1)],uL=Yz({name:"ChatRound"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",iL,sL)}],["__file","chat-round.vue"]]),cL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dL=[El("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88L273.536 736zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"},null,-1)],pL=Yz({name:"ChatSquare"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",cL,dL)}],["__file","chat-square.vue"]]),fL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vL=[El("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1)],hL=Yz({name:"Check"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",fL,vL)}],["__file","check.vue"]]),mL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gL=[El("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704v-64zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024 311.616 537.28zM384 192V96h256v96H384z"},null,-1)],yL=Yz({name:"Checked"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",mL,gL)}],["__file","checked.vue"]]),bL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wL=[El("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6zM288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320zm448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320z"},null,-1)],xL=Yz({name:"Cherry"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",bL,wL)}],["__file","cherry.vue"]]),CL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kL=[El("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.688 106.688 0 0 1-26.176-19.072 106.688 106.688 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112zm57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84zM244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52 3.52-56.32zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52-3.52 56.32z"},null,-1)],SL=Yz({name:"Chicken"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",CL,kL)}],["__file","chicken.vue"]]),_L={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},EL=[El("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.372 212.372 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67z"},null,-1),El("path",{fill:"currentColor",d:"M576.79 401.63a127.92 127.92 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128.005 128.005 0 0 0-2.16 127.44l1.24 2.13a127.906 127.906 0 0 0 46.36 46.61 127.907 127.907 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.984 127.984 0 0 0 .29-127.46 127.957 127.957 0 0 0-46.36-46.91z"},null,-1),El("path",{fill:"currentColor",d:"M394.45 333.96A213.336 213.336 0 0 1 512 298.67h369.58A426.503 426.503 0 0 0 512 85.34a425.598 425.598 0 0 0-171.74 35.98 425.644 425.644 0 0 0-142.62 102.22l118.14 204.63a213.397 213.397 0 0 1 78.67-94.21zm117.56 604.72H512zm-97.25-236.73a213.284 213.284 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.315 213.315 0 0 1-122.77-21.91z"},null,-1)],OL=Yz({name:"ChromeFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",_L,EL)}],["__file","chrome-filled.vue"]]),ML={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zL=[El("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1)],TL=Yz({name:"CircleCheckFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",ML,zL)}],["__file","circle-check-filled.vue"]]),AL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LL=[El("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),El("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1)],IL=Yz({name:"CircleCheck"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",AL,LL)}],["__file","circle-check.vue"]]),RL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PL=[El("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1)],NL=Yz({name:"CircleCloseFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",RL,PL)}],["__file","circle-close-filled.vue"]]),jL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},VL=[El("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),El("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1)],BL=Yz({name:"CircleClose"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",jL,VL)}],["__file","circle-close.vue"]]),HL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},DL=[El("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0v147.2z"},null,-1)],$L=Yz({name:"CirclePlusFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",HL,DL)}],["__file","circle-plus-filled.vue"]]),FL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},WL=[El("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),El("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0z"},null,-1),El("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1)],UL=Yz({name:"CirclePlus"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",FL,WL)}],["__file","circle-plus.vue"]]),KL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qL=[El("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),El("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),El("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1)],YL=Yz({name:"Clock"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",KL,qL)}],["__file","clock.vue"]]),GL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JL=[El("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"},null,-1)],XL=Yz({name:"CloseBold"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",GL,JL)}],["__file","close-bold.vue"]]),QL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ZL=[El("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1)],eI=Yz({name:"Close"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",QL,ZL)}],["__file","close.vue"]]),tI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nI=[El("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872zm-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"},null,-1)],rI=Yz({name:"Cloudy"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",tI,nI)}],["__file","cloudy.vue"]]),oI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lI=[El("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.128 256.128 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v32zm0 64v256a128 128 0 1 0 0-256zM96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64zm32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192H128z"},null,-1)],aI=Yz({name:"CoffeeCup"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",oI,lI)}],["__file","coffee-cup.vue"]]),iI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sI=[El("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304L822.592 192zm-64.128 0 4.544-64H260.736l4.544 64h493.184zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64h6.784zm68.736 64 36.544 512H708.16l36.544-512H279.04z"},null,-1)],uI=Yz({name:"Coffee"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",iI,sI)}],["__file","coffee.vue"]]),cI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dI=[El("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264z"},null,-1),El("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264z"},null,-1),El("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224zm0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160z"},null,-1)],pI=Yz({name:"Coin"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",cI,dI)}],["__file","coin.vue"]]),fI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vI=[El("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.064 192.064 0 0 1 768 64zM656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928H299.008z"},null,-1)],hI=Yz({name:"ColdDrink"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",fI,vI)}],["__file","cold-drink.vue"]]),mI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gI=[El("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128H256zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32z"},null,-1)],yI=Yz({name:"CollectionTag"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",mI,gI)}],["__file","collection-tag.vue"]]),bI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wI=[El("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64v544zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64z"},null,-1),El("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96H240zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224zm144-608v250.88l96-76.8 96 76.8V128H384zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44V64z"},null,-1)],xI=Yz({name:"Collection"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",bI,wI)}],["__file","collection.vue"]]),CI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kI=[El("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112zm-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112zm-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112zM128 128v640h192v160l224-160h352V128H128z"},null,-1)],SI=Yz({name:"Comment"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",CI,kI)}],["__file","comment.vue"]]),_I={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},EI=[El("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),El("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832z"},null,-1)],OI=Yz({name:"Compass"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",_I,EI)}],["__file","compass.vue"]]),MI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zI=[El("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192h192z"},null,-1),El("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.064 192.064 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192H384z"},null,-1)],TI=Yz({name:"Connection"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",MI,zI)}],["__file","connection.vue"]]),AI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LI=[El("path",{fill:"currentColor",d:"M480 512h64v320h-64z"},null,-1),El("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64zm64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128zm256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"},null,-1)],II=Yz({name:"Coordinate"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",AI,LI)}],["__file","coordinate.vue"]]),RI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PI=[El("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64h64z"},null,-1),El("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H384zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64z"},null,-1)],NI=Yz({name:"CopyDocument"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",RI,PI)}],["__file","copy-document.vue"]]),jI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},VI=[El("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64H320zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128z"},null,-1),El("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zm160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zm-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zM64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32zm0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32zm0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32z"},null,-1)],BI=Yz({name:"Cpu"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",jI,VI)}],["__file","cpu.vue"]]),HI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},DI=[El("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.352 52.352 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.352 52.352 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.352 52.352 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.352 52.352 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416V324.096zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448-20.864 11.136-41.6 17.088-98.56 17.088H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.288 116.288 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448 20.864-11.136 41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384 11.136 20.864 17.088 41.6 17.088 98.56z"},null,-1),El("path",{fill:"currentColor",d:"M64 320h896v64H64v-64zm0 128h896v64H64v-64zm128 192h256v64H192z"},null,-1)],$I=Yz({name:"CreditCard"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",HI,DI)}],["__file","credit-card.vue"]]),FI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},WI=[El("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0v672z"},null,-1),El("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32z"},null,-1)],UI=Yz({name:"Crop"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",FI,WI)}],["__file","crop.vue"]]),KI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qI=[El("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1)],YI=Yz({name:"DArrowLeft"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",KI,qI)}],["__file","d-arrow-left.vue"]]),GI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JI=[El("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1)],XI=Yz({name:"DArrowRight"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",GI,JI)}],["__file","d-arrow-right.vue"]]),QI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ZI=[El("path",{fill:"currentColor",d:"m512 128 288 320H224l288-320zM224 576h576L512 896 224 576z"},null,-1)],eR=Yz({name:"DCaret"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",QI,ZI)}],["__file","d-caret.vue"]]),tR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nR=[El("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216zM832 192H192v512h640V192zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32zm160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32zm160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32z"},null,-1)],rR=Yz({name:"DataAnalysis"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",tR,nR)}],["__file","data-analysis.vue"]]),oR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lR=[El("path",{fill:"currentColor",d:"M32 128h960v64H32z"},null,-1),El("path",{fill:"currentColor",d:"M192 192v512h640V192H192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V128z"},null,-1),El("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32L322.176 960zm453.888 0h-73.856L576 741.44l55.424-32L776.064 960z"},null,-1)],aR=Yz({name:"DataBoard"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",oR,lR)}],["__file","data-board.vue"]]),iR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sR=[El("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192zM832 192H192v512h640V192zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"},null,-1)],uR=Yz({name:"DataLine"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",iR,sR)}],["__file","data-line.vue"]]),cR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dR=[El("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64h256zm64 0h192v-64H416v64zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32H192zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32zm192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32z"},null,-1)],pR=Yz({name:"DeleteFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",cR,dR)}],["__file","delete-filled.vue"]]),fR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vR=[El("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),El("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),El("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32z"},null,-1)],hR=Yz({name:"DeleteLocation"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",fR,vR)}],["__file","delete-location.vue"]]),mR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gR=[El("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1)],yR=Yz({name:"Delete"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",mR,gR)}],["__file","delete.vue"]]),bR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wR=[El("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416zm287.104-32.064h193.792a143.808 143.808 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.808 143.808 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0h140.48zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736zM384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64z"},null,-1)],xR=Yz({name:"Dessert"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",bR,wR)}],["__file","dessert.vue"]]),CR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kR=[El("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336V704zm0 64v128h576V768H224zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"},null,-1),El("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1)],SR=Yz({name:"Discount"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",CR,kR)}],["__file","discount.vue"]]),_R={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ER=[El("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.192 448.192 0 0 1 955.392 768H68.544A448.192 448.192 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64zm32-128h768a384 384 0 1 0-768 0zm447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256h127.68z"},null,-1)],OR=Yz({name:"DishDot"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",_R,ER)}],["__file","dish-dot.vue"]]),MR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zR=[El("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152zM128 704h768a384 384 0 1 0-768 0zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64z"},null,-1)],TR=Yz({name:"Dish"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",MR,zR)}],["__file","dish.vue"]]),AR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LR=[El("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm320 512V448h64v128h128v64H544v128h-64V640H352v-64h128z"},null,-1)],IR=Yz({name:"DocumentAdd"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",AR,LR)}],["__file","document-add.vue"]]),RR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PR=[El("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312L478.4 646.144z"},null,-1)],NR=Yz({name:"DocumentChecked"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",RR,PR)}],["__file","document-checked.vue"]]),jR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},VR=[El("path",{fill:"currentColor",d:"M128 320v576h576V320H128zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zM960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32zM256 672h320v64H256v-64zm0-192h320v64H256v-64z"},null,-1)],BR=Yz({name:"DocumentCopy"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",jR,VR)}],["__file","document-copy.vue"]]),HR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},DR=[El("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248 90.496-90.496z"},null,-1)],$R=Yz({name:"DocumentDelete"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",HR,DR)}],["__file","document-delete.vue"]]),FR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},WR=[El("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm192 512h320v64H352v-64z"},null,-1)],UR=Yz({name:"DocumentRemove"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",FR,WR)}],["__file","document-remove.vue"]]),KR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qR=[El("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1)],YR=Yz({name:"Document"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",KR,qR)}],["__file","document.vue"]]),GR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JR=[El("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64v450.304z"},null,-1)],XR=Yz({name:"Download"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",GR,JR)}],["__file","download.vue"]]),QR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ZR=[El("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480zM288 800h64v64h-64v-64zm192 0h64v64h-64v-64zm-96 96h64v64h-64v-64zm192 0h64v64h-64v-64zm96-96h64v64h-64v-64z"},null,-1)],eP=Yz({name:"Drizzling"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",QR,ZR)}],["__file","drizzling.vue"]]),tP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nP=[El("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696L175.168 732.8zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336L104.32 708.8zm384 254.272v-64h448v64h-448z"},null,-1)],rP=Yz({name:"EditPen"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",tP,nP)}],["__file","edit-pen.vue"]]),oP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lP=[El("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"},null,-1),El("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1)],aP=Yz({name:"Edit"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",oP,lP)}],["__file","edit.vue"]]),iP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sP=[El("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112zm150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.688 330.688 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.552 47.552 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.304 234.304 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.552 47.552 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"},null,-1)],uP=Yz({name:"ElemeFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",iP,sP)}],["__file","eleme-filled.vue"]]),cP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dP=[El("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24zm526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.232 63.232 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8l71.04-46.08z"},null,-1)],pP=Yz({name:"Eleme"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",cP,dP)}],["__file","eleme.vue"]]),fP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vP=[El("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6c12.8-5.1 25.6-5.1 38.4 0 0 0 279 161.3 309.8 179.2 17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8zM714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4l220.1-128zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64l-2.5-38.4z"},null,-1)],hP=Yz({name:"ElementPlus"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",fP,vP)}],["__file","element-plus.vue"]]),mP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gP=[El("path",{fill:"currentColor",d:"M128 192h768v128H128V192zm0 256h512v128H128V448zm0 256h768v128H128V704zm576-352 192 160-192 128V352z"},null,-1)],yP=Yz({name:"Expand"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",mP,gP)}],["__file","expand.vue"]]),bP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wP=[El("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384v-64zm-320 0V96h256v96H384z"},null,-1)],xP=Yz({name:"Failed"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",bP,wP)}],["__file","failed.vue"]]),CP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kP=[El("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"},null,-1),El("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32z"},null,-1),El("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32z"},null,-1)],SP=Yz({name:"Female"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",CP,kP)}],["__file","female.vue"]]),_P={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},EP=[El("path",{fill:"currentColor",d:"M128 384v448h768V384H128zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32zm64-128h704v64H160zm96-128h512v64H256z"},null,-1)],OP=Yz({name:"Files"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",_P,EP)}],["__file","files.vue"]]),MP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zP=[El("path",{fill:"currentColor",d:"M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"},null,-1),El("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64h192z"},null,-1)],TP=Yz({name:"Film"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",MP,zP)}],["__file","film.vue"]]),AP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LP=[El("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288L384 523.392z"},null,-1)],IP=Yz({name:"Filter"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",AP,LP)}],["__file","filter.vue"]]),RP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PP=[El("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2l203.968 152.96zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64H736zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64H608zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64H480z"},null,-1)],NP=Yz({name:"Finished"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",RP,PP)}],["__file","finished.vue"]]),jP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},VP=[El("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64H192zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128z"},null,-1),El("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0v96zM352 128v64h320v-64H352zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1)],BP=Yz({name:"FirstAidKit"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",jP,VP)}],["__file","first-aid-kit.vue"]]),HP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},DP=[El("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96v64z"},null,-1)],$P=Yz({name:"Flag"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",HP,DP)}],["__file","flag.vue"]]),FP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},WP=[El("path",{fill:"currentColor",d:"M896 192H128v128h768V192zm0 256H384v128h512V448zm0 256H128v128h768V704zM320 384 128 512l192 128V384z"},null,-1)],UP=Yz({name:"Fold"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",FP,WP)}],["__file","fold.vue"]]),KP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qP=[El("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm384 416V416h64v128h128v64H544v128h-64V608H352v-64h128z"},null,-1)],YP=Yz({name:"FolderAdd"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",KP,qP)}],["__file","folder-add.vue"]]),GP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JP=[El("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312L510.08 630.144z"},null,-1)],XP=Yz({name:"FolderChecked"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",GP,JP)}],["__file","folder-checked.vue"]]),QP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ZP=[El("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248L466.752 576z"},null,-1)],eN=Yz({name:"FolderDelete"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",QP,ZP)}],["__file","folder-delete.vue"]]),tN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nN=[El("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"},null,-1)],rN=Yz({name:"FolderOpened"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",tN,nN)}],["__file","folder-opened.vue"]]),oN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lN=[El("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm256 416h320v64H352v-64z"},null,-1)],aN=Yz({name:"FolderRemove"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",oN,lN)}],["__file","folder-remove.vue"]]),iN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sN=[El("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32z"},null,-1)],uN=Yz({name:"Folder"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",iN,sN)}],["__file","folder.vue"]]),cN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dN=[El("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0zm128 0h192a96 96 0 0 0-192 0zm439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352zM672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32v-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288z"},null,-1)],pN=Yz({name:"Food"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",cN,dN)}],["__file","food.vue"]]),fN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vN=[El("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896zm0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768z"},null,-1),El("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a385.984 385.984 0 0 1-80.448-91.648zm653.696-5.312a385.92 385.92 0 0 1-83.776 96.96l-32.512-56.384a322.923 322.923 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184zM465.984 445.248l11.136-63.104a323.584 323.584 0 0 0 69.76 0l11.136 63.104a387.968 387.968 0 0 1-92.032 0zm-62.72-12.8A381.824 381.824 0 0 1 320 396.544l32-55.424a319.885 319.885 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.824 381.824 0 0 1-83.328 35.84l-11.2-63.552A319.885 319.885 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.92 385.92 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072zm657.536.128a1442.759 1442.759 0 0 1-49.024 43.072 321.408 321.408 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408zM465.92 578.752a387.968 387.968 0 0 1 92.032 0l-11.136 63.104a323.584 323.584 0 0 0-69.76 0l-11.136-63.104zm-62.72 12.8 11.2 63.552a319.885 319.885 0 0 0-62.464 27.712L320 627.392a381.824 381.824 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.272 318.272 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"},null,-1)],hN=Yz({name:"Football"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",fN,vN)}],["__file","football.vue"]]),mN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gN=[El("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56zM672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0V572.48zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192z"},null,-1)],yN=Yz({name:"ForkSpoon"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",mN,gN)}],["__file","fork-spoon.vue"]]),bN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wN=[El("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096V224zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160h37.12zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.744 95.744 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160h-16zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128.128 128.128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132.405 132.405 0 0 1 672 510.464V512h-1.216zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480V288zm-128 96V224a32 32 0 0 0-64 0v160h64-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704H253.12z"},null,-1)],xN=Yz({name:"Fries"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",bN,wN)}],["__file","fries.vue"]]),CN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kN=[El("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1)],SN=Yz({name:"FullScreen"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",CN,kN)}],["__file","full-screen.vue"]]),_N={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},EN=[El("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320zm503.936 64H264.064a256.128 256.128 0 0 0 495.872 0zM544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4z"},null,-1)],ON=Yz({name:"GobletFull"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",_N,EN)}],["__file","goblet-full.vue"]]),MN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zN=[El("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256v142.912zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952.32 952.32 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848z"},null,-1)],TN=Yz({name:"GobletSquareFull"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",MN,zN)}],["__file","goblet-square-full.vue"]]),AN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LN=[El("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912zM256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256v191.68z"},null,-1)],IN=Yz({name:"GobletSquare"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",AN,LN)}],["__file","goblet-square.vue"]]),RN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PN=[El("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4zM256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320z"},null,-1)],NN=Yz({name:"Goblet"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",RN,PN)}],["__file","goblet.vue"]]),jN={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},VN=[El("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16zM640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128h.01zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a359.844 359.844 0 0 0-32.36 4.79V128h128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128H384zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98z"},null,-1),El("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"},null,-1)],BN=Yz({name:"GoldMedal"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",jN,VN)}],["__file","gold-medal.vue"]]),HN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},DN=[El("path",{fill:"currentColor",d:"M192 352h640l64 544H128l64-544zm128 224h64V448h-64v128zm320 0h64V448h-64v128zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0z"},null,-1)],$N=Yz({name:"GoodsFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",HN,DN)}],["__file","goods-filled.vue"]]),FN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},WN=[El("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96z"},null,-1)],UN=Yz({name:"Goods"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",FN,WN)}],["__file","goods.vue"]]),KN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qN=[El("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64v67.2zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192z"},null,-1)],YN=Yz({name:"Grape"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",KN,qN)}],["__file","grape.vue"]]),GN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JN=[El("path",{fill:"currentColor",d:"M640 384v256H384V384h256zm64 0h192v256H704V384zm-64 512H384V704h256v192zm64 0V704h192v192H704zm-64-768v192H384V128h256zm64 0h192v192H704V128zM320 384v256H128V384h192zm0 512H128V704h192v192zm0-768v192H128V128h192z"},null,-1)],XN=Yz({name:"Grid"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",GN,JN)}],["__file","grid.vue"]]),QN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ZN=[El("path",{fill:"currentColor",d:"M640 608h-64V416h64v192zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768h64zM384 608V416h64v192h-64zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32v160z"},null,-1),El("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192zm678.784 496-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"},null,-1)],ej=Yz({name:"Guide"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",QN,ZN)}],["__file","guide.vue"]]),tj={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},nj=[El("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01zM421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5zM832 896H192V320h128v128h64V320h256v128h64V320h128v576z"},null,-1)],rj=Yz({name:"Handbag"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",tj,nj)}],["__file","handbag.vue"]]),oj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lj=[El("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848zM896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0V640zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0z"},null,-1)],aj=Yz({name:"Headset"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",oj,lj)}],["__file","headset.vue"]]),ij={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sj=[El("path",{fill:"currentColor",d:"M926.784 480H701.312A192.512 192.512 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480zm0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.512 192.512 0 0 0 701.312 544h225.472zM97.28 544h225.472A192.512 192.512 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.512 192.512 0 0 0 322.688 480H97.216z"},null,-1)],uj=Yz({name:"HelpFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",ij,sj)}],["__file","help-filled.vue"]]),cj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dj=[El("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.912 254.912 0 0 1 512 768a254.912 254.912 0 0 1-156.992-53.76l-90.944 91.008A382.464 382.464 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752zm45.312-45.312A382.464 382.464 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512c0 59.136-20.096 113.6-53.76 156.992l91.008 90.944zm-45.312-541.184A382.464 382.464 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.912 254.912 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76l90.944-91.008zm-541.184 45.312A382.464 382.464 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.912 254.912 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992l-91.008-90.944zm417.28 394.496a194.56 194.56 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.232 191.232 0 0 0-67.968-146.56A191.296 191.296 0 0 0 512 320a191.232 191.232 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.232 191.232 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1)],pj=Yz({name:"Help"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",cj,dj)}],["__file","help.vue"]]),fj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vj=[El("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),El("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1)],hj=Yz({name:"Hide"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",fj,vj)}],["__file","hide.vue"]]),mj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gj=[El("path",{fill:"currentColor",d:"M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"},null,-1)],yj=Yz({name:"Histogram"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",mj,gj)}],["__file","histogram.vue"]]),bj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wj=[El("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"},null,-1)],xj=Yz({name:"HomeFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",bj,wj)}],["__file","home-filled.vue"]]),Cj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kj=[El("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067v68.267zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2H273.067zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134zM512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133zM375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133zm273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133zM170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267z"},null,-1)],Sj=Yz({name:"HotWater"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",Cj,kj)}],["__file","hot-water.vue"]]),_j={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ej=[El("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328 192 413.952zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576z"},null,-1)],Oj=Yz({name:"House"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",_j,Ej)}],["__file","house.vue"]]),Mj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zj=[El("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248L398.848 670.4zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0z"},null,-1)],Tj=Yz({name:"IceCreamRound"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",Mj,zj)}],["__file","ice-cream-round.vue"]]),Aj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Lj=[El("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32h64zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96h-64zm-64 0h-64v160a32 32 0 1 0 64 0V704z"},null,-1)],Ij=Yz({name:"IceCreamSquare"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",Aj,Lj)}],["__file","ice-cream-square.vue"]]),Rj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Pj=[El("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.128 208.128 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448h.64zm64.256 0h286.208a144 144 0 0 0-286.208 0zm351.36 0h286.272a144 144 0 0 0-286.272 0zm-294.848 64 271.808 396.608L778.24 512H249.408zM511.68 352.64a207.872 207.872 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56z"},null,-1)],Nj=Yz({name:"IceCream"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",Rj,Pj)}],["__file","ice-cream.vue"]]),jj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Vj=[El("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128H512zm-64 0H256.256l16.064 128H448V448zm64-255.36V384h247.744A256.128 256.128 0 0 0 512 192.64zm-64 8.064A256.448 256.448 0 0 0 264.256 384H448V200.704zm64-72.064A320.128 320.128 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.384 320.384 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32v32.64zM743.68 640H280.32l32.128 256h399.104l32.128-256z"},null,-1)],Bj=Yz({name:"IceDrink"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",jj,Vj)}],["__file","ice-drink.vue"]]),Hj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Dj=[El("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352zM264.064 256h495.872a256.128 256.128 0 0 0-495.872 0zm495.424 256H264.512l48 384h398.976l48-384zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32zm160 192h64v64h-64v-64zm192 64h64v64h-64v-64zm-128 64h64v64h-64v-64zm64-192h64v64h-64v-64z"},null,-1)],$j=Yz({name:"IceTea"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",Hj,Dj)}],["__file","ice-tea.vue"]]),Fj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Wj=[El("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1)],Uj=Yz({name:"InfoFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",Fj,Wj)}],["__file","info-filled.vue"]]),Kj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qj=[El("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768H224zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64v544zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96H256zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0z"},null,-1)],Yj=Yz({name:"Iphone"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",Kj,qj)}],["__file","iphone.vue"]]),Gj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Jj=[El("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064zM512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384z"},null,-1)],Xj=Yz({name:"Key"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",Gj,Jj)}],["__file","key.vue"]]),Qj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Zj=[El("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56zm384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256 21.312 81.152 32 177.152 32 288H640z"},null,-1)],eV=Yz({name:"KnifeFork"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",Qj,Zj)}],["__file","knife-fork.vue"]]),tV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nV=[El("path",{fill:"currentColor",d:"M288 671.36v64.128A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"},null,-1),El("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736H416z"},null,-1)],rV=Yz({name:"Lightning"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",tV,nV)}],["__file","lightning.vue"]]),oV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lV=[El("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496 45.248 45.248zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152 625.152 353.6z"},null,-1)],aV=Yz({name:"Link"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",oV,lV)}],["__file","link.vue"]]),iV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sV=[El("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384v-64zM288 512h448v-64H288v64zm0 256h448v-64H288v64zm96-576V96h256v96H384z"},null,-1)],uV=Yz({name:"List"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",iV,sV)}],["__file","list.vue"]]),cV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dV=[El("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1)],pV=Yz({name:"Loading"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",cV,dV)}],["__file","loading.vue"]]),fV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vV=[El("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928zm0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6z"},null,-1)],hV=Yz({name:"LocationFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",fV,vV)}],["__file","location-filled.vue"]]),mV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gV=[El("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),El("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),El("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320z"},null,-1)],yV=Yz({name:"LocationInformation"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",mV,gV)}],["__file","location-information.vue"]]),bV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wV=[El("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),El("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320z"},null,-1)],xV=Yz({name:"Location"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",bV,wV)}],["__file","location.vue"]]),CV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kV=[El("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32H224zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96z"},null,-1),El("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32zm192-160v-64a192 192 0 1 0-384 0v64h384zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64z"},null,-1)],SV=Yz({name:"Lock"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",CV,kV)}],["__file","lock.vue"]]),_V={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},EV=[El("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0h1.28zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696zm105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"},null,-1)],OV=Yz({name:"Lollipop"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",_V,EV)}],["__file","lollipop.vue"]]),MV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zV=[El("path",{fill:"currentColor",d:"M512 64h64v192h-64V64zm0 576h64v192h-64V640zM160 480v-64h192v64H160zm576 0v-64h192v64H736zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248L657.152 606.4zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248-316.8 316.8zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248L702.4 334.848z"},null,-1)],TV=Yz({name:"MagicStick"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",MV,zV)}],["__file","magic-stick.vue"]]),AV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LV=[El("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64h128zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0z"},null,-1)],IV=Yz({name:"Magnet"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",AV,LV)}],["__file","magnet.vue"]]),RV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PV=[El("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450zm0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5zm253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125z"},null,-1),El("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125z"},null,-1),El("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"},null,-1)],NV=Yz({name:"Male"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",RV,PV)}],["__file","male.vue"]]),jV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},VV=[El("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128h256zm-448 0h128v768H128V128z"},null,-1)],BV=Yz({name:"Management"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",jV,VV)}],["__file","management.vue"]]),HV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},DV=[El("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),El("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256zm345.6 192L960 960H672v-64H352v64H64l102.4-256h691.2zm-68.928 0H235.328l-76.8 192h706.944l-76.8-192z"},null,-1)],$V=Yz({name:"MapLocation"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",HV,DV)}],["__file","map-location.vue"]]),FV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},WV=[El("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"},null,-1),El("path",{fill:"currentColor",d:"M576 128H448v200a286.72 286.72 0 0 1 64-8c19.52 0 40.832 2.688 64 8V128zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128H640zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92V128zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96-56.896 0-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64z"},null,-1)],UV=Yz({name:"Medal"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",FV,WV)}],["__file","medal.vue"]]),KV={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},qV=[El("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32z"},null,-1),El("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01zM192 896V128h96v768h-96zm640 0H352V128h480v768z"},null,-1),El("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32zm0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32z"},null,-1)],YV=Yz({name:"Memo"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",KV,qV)}],["__file","memo.vue"]]),GV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JV=[El("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32H160zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32H608zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32H160zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32H608z"},null,-1)],XV=Yz({name:"Menu"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",GV,JV)}],["__file","menu.vue"]]),QV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ZV=[El("path",{fill:"currentColor",d:"M288 384h448v64H288v-64zm96-128h256v64H384v-64zM131.456 512H384v128h256V512h252.544L721.856 192H302.144L131.456 512zM896 576H704v128H320V576H128v256h768V576zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128z"},null,-1)],eB=Yz({name:"MessageBox"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",QV,ZV)}],["__file","message-box.vue"]]),tB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nB=[El("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224H128zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64z"},null,-1),El("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224h784zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224H205.056z"},null,-1)],rB=Yz({name:"Message"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",tB,nB)}],["__file","message.vue"]]),oB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lB=[El("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64h96zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128h-96z"},null,-1)],aB=Yz({name:"Mic"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",oB,lB)}],["__file","mic.vue"]]),iB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sB=[El("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128zm0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64zm-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64z"},null,-1)],uB=Yz({name:"Microphone"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",iB,sB)}],["__file","microphone.vue"]]),cB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dB=[El("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128h192zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320H276.48zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64zm493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12z"},null,-1)],pB=Yz({name:"MilkTea"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",cB,dB)}],["__file","milk-tea.vue"]]),fB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vB=[El("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1)],hB=Yz({name:"Minus"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",fB,vB)}],["__file","minus.vue"]]),mB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gB=[El("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640h64z"},null,-1),El("path",{fill:"currentColor",d:"M768 192H128v448h640V192zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.056 29.056 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"},null,-1),El("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320zm0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192z"},null,-1)],yB=Yz({name:"Money"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",mB,gB)}],["__file","money.vue"]]),bB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wB=[El("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H544zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H192z"},null,-1)],xB=Yz({name:"Monitor"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",bB,wB)}],["__file","monitor.vue"]]),CB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kB=[El("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.256 448.256 0 0 1 384 512zM171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"},null,-1),El("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32zm128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"},null,-1)],SB=Yz({name:"MoonNight"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",CB,kB)}],["__file","moon-night.vue"]]),_B={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},EB=[El("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696z"},null,-1)],OB=Yz({name:"Moon"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",_B,EB)}],["__file","moon.vue"]]),MB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zB=[El("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1)],TB=Yz({name:"MoreFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",MB,zB)}],["__file","more-filled.vue"]]),AB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LB=[El("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1)],IB=Yz({name:"More"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",AB,LB)}],["__file","more.vue"]]),RB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PB=[El("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.808 207.808 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048zm15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.808 271.808 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72z"},null,-1)],NB=Yz({name:"MostlyCloudy"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",RB,PB)}],["__file","mostly-cloudy.vue"]]),jB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},VB=[El("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112-20.096 10.752-35.52 26.176-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76 10.752 20.096 26.176 35.52 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112 20.096-10.752 35.52-26.176 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.464 110.464 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256H438.144zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.464 174.464 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.464 174.464 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.464 174.464 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"},null,-1),El("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32zm32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96v64z"},null,-1)],BB=Yz({name:"Mouse"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",jB,VB)}],["__file","mouse.vue"]]),HB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},DB=[El("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64zm64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v128zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32H800z"},null,-1)],$B=Yz({name:"Mug"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",HB,DB)}],["__file","mug.vue"]]),FB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},WB=[El("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64H241.216zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.128 320.128 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.552 319.552 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0z"},null,-1),El("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"},null,-1)],UB=Yz({name:"MuteNotification"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",FB,WB)}],["__file","mute-notification.vue"]]),KB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qB=[El("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.232 191.232 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128zm51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528l47.808-47.808zM314.88 779.968l46.144-46.08A222.976 222.976 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032zM266.752 737.6A286.976 286.976 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288L266.752 737.6z"},null,-1),El("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"},null,-1)],YB=Yz({name:"Mute"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",KB,qB)}],["__file","mute.vue"]]),GB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JB=[El("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256l-64 64zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744l64-64zM768 576v128h128V576H768zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"},null,-1)],XB=Yz({name:"NoSmoking"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",GB,JB)}],["__file","no-smoking.vue"]]),QB={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ZB=[El("path",{fill:"currentColor",d:"M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),El("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"},null,-1)],eH=Yz({name:"Notebook"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",QB,ZB)}],["__file","notebook.vue"]]),tH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nH=[El("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128h256z"},null,-1),El("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z"},null,-1)],rH=Yz({name:"Notification"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",tH,nH)}],["__file","notification.vue"]]),oH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lH=[El("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),El("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0z"},null,-1),El("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928z"},null,-1)],aH=Yz({name:"Odometer"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",oH,lH)}],["__file","odometer.vue"]]),iH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sH=[El("path",{fill:"currentColor",d:"M192 128v704h384V128H192zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),El("path",{fill:"currentColor",d:"M256 256h256v64H256v-64zm0 192h256v64H256v-64zm0 192h256v64H256v-64zm384-128h128v64H640v-64zm0 128h128v64H640v-64zM64 832h896v64H64v-64z"},null,-1),El("path",{fill:"currentColor",d:"M640 384v448h192V384H640zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32z"},null,-1)],uH=Yz({name:"OfficeBuilding"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",iH,sH)}],["__file","office-building.vue"]]),cH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dH=[El("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724H329.956zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"},null,-1),El("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454zm0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088z"},null,-1)],pH=Yz({name:"Open"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",cH,dH)}],["__file","open.vue"]]),fH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vH=[El("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64h261.44zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64h453.44zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64h133.44z"},null,-1)],hH=Yz({name:"Operation"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",fH,vH)}],["__file","operation.vue"]]),mH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gH=[El("path",{fill:"currentColor",d:"M384 960v-64h192.064v64H384zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416zm-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288h64z"},null,-1)],yH=Yz({name:"Opportunity"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",mH,gH)}],["__file","opportunity.vue"]]),bH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wH=[El("path",{fill:"currentColor",d:"M544 894.72a382.336 382.336 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.336 382.336 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024l182.976 182.912zM894.656 480a382.336 382.336 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024h258.688zm-134.72-261.248A382.336 382.336 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696l182.912-182.976zM480 129.344a382.336 382.336 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696V129.344zm-261.248 134.72A382.336 382.336 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024L218.752 264.064zM129.344 544a382.336 382.336 0 0 0 89.408 215.936l182.976-182.912A127.232 127.232 0 0 1 388.032 544H129.344zm134.72 261.248A382.336 382.336 0 0 0 480 894.656V635.968a127.232 127.232 0 0 1-33.024-13.696L264.064 805.248zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896zm0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128z"},null,-1)],xH=Yz({name:"Orange"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",bH,wH)}],["__file","orange.vue"]]),CH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kH=[El("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"},null,-1)],SH=Yz({name:"Paperclip"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",CH,kH)}],["__file","paperclip.vue"]]),_H={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},EH=[El("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872zm-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"},null,-1),El("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6003.84 6003.84 0 0 0-49.28 41.408z"},null,-1)],OH=Yz({name:"PartlyCloudy"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",_H,EH)}],["__file","partly-cloudy.vue"]]),MH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zH=[El("path",{fill:"currentColor",d:"M542.336 258.816a443.255 443.255 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.688 162.688 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.688 162.688 0 0 0-130.112-133.12zm-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a316.608 316.608 0 0 0-9.792 15.104 226.688 226.688 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"},null,-1)],TH=Yz({name:"Pear"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",MH,zH)}],["__file","pear.vue"]]),AH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LH=[El("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048z"},null,-1)],IH=Yz({name:"PhoneFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",AH,LH)}],["__file","phone-filled.vue"]]),RH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PH=[El("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472L139.84 402.304zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192zm0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384z"},null,-1)],NH=Yz({name:"Phone"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",RH,PH)}],["__file","phone.vue"]]),jH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},VH=[El("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1)],BH=Yz({name:"PictureFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",jH,VH)}],["__file","picture-filled.vue"]]),HH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},DH=[El("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768zm0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896z"},null,-1),El("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"},null,-1)],$H=Yz({name:"PictureRounded"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",HH,DH)}],["__file","picture-rounded.vue"]]),FH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},WH=[El("path",{fill:"currentColor",d:"M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"},null,-1),El("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952L185.408 876.992z"},null,-1)],UH=Yz({name:"Picture"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",FH,WH)}],["__file","picture.vue"]]),KH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qH=[El("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.128 384.128 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.128 448.128 0 0 1 448 68.48z"},null,-1),El("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28zM512 64V33.152A448 448 0 0 1 990.848 512H512V64z"},null,-1)],YH=Yz({name:"PieChart"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",KH,qH)}],["__file","pie-chart.vue"]]),GH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JH=[El("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"},null,-1),El("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32z"},null,-1),El("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912z"},null,-1)],XH=Yz({name:"Place"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",GH,JH)}],["__file","place.vue"]]),QH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ZH=[El("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64h192zM128 704V128h768v576H128z"},null,-1)],eD=Yz({name:"Platform"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",QH,ZH)}],["__file","platform.vue"]]),tD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nD=[El("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1)],rD=Yz({name:"Plus"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",tD,nD)}],["__file","plus.vue"]]),oD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lD=[El("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.272 94.272 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128zM359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.272 158.272 0 0 1 185.984 8.32L359.04 556.8z"},null,-1)],aD=Yz({name:"Pointer"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",oD,lD)}],["__file","pointer.vue"]]),iD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sD=[El("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"},null,-1)],uD=Yz({name:"Position"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",iD,sD)}],["__file","position.vue"]]),cD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dD=[El("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32H160zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96z"},null,-1),El("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128zM288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32zm0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1)],pD=Yz({name:"Postcard"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",cD,dD)}],["__file","postcard.vue"]]),fD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vD=[El("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480zM224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32z"},null,-1)],hD=Yz({name:"Pouring"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",fD,vD)}],["__file","pouring.vue"]]),mD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gD=[El("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576h288zm64 0h288V320H544v256h288v64H544v256zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V256z"},null,-1),El("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"},null,-1),El("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),El("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1)],yD=Yz({name:"Present"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",mD,gD)}],["__file","present.vue"]]),bD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wD=[El("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"},null,-1),El("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1)],xD=Yz({name:"PriceTag"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",bD,wD)}],["__file","price-tag.vue"]]),CD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kD=[El("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256V768zm64-192v320h384V576H320zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.296 23.296 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.296 23.296 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704h128zm64-448h384V128H320v128zm-64 128h64v64h-64v-64zm128 0h64v64h-64v-64z"},null,-1)],SD=Yz({name:"Printer"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",CD,kD)}],["__file","printer.vue"]]),_D={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ED=[El("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472 64 448zm256 512V657.024L512 768 320 960z"},null,-1)],OD=Yz({name:"Promotion"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",_D,ED)}],["__file","promotion.vue"]]),MD={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},zD=[El("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51-8.67.32-16.17 3.66-22.5 10.02-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5c3.01-11.65.51-22.15-7.49-31.49v-.01zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.67 8.99-23.01zm6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01-.32-8.67-3.66-16.16-10.02-22.5-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01 3.35 11.99 10.85 19.49 22.5 22.5zm242.94 0c11.67-3.03 19.01-10.37 22.02-22.02 3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5c-6.36 6.34-9.7 13.84-10.02 22.5-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49zM512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99zm183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01z"},null,-1),El("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5zM416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68V128zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68V896zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768z"},null,-1),El("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01 0 9.35 3 17.02 8.99 23.01 6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01 0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99zm112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02z"},null,-1)],TD=Yz({name:"QuartzWatch"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",MD,zD)}],["__file","quartz-watch.vue"]]),AD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LD=[El("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1)],ID=Yz({name:"QuestionFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",AD,LD)}],["__file","question-filled.vue"]]),RD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PD=[El("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544H186.496z"},null,-1)],ND=Yz({name:"Rank"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",RD,PD)}],["__file","rank.vue"]]),jD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},VD=[El("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm-44.672-768-99.52 448h608.384l-99.52-448H307.328zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"},null,-1),El("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32zm-192-.064h64V960h-64z"},null,-1)],BD=Yz({name:"ReadingLamp"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",jD,VD)}],["__file","reading-lamp.vue"]]),HD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},DD=[El("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72l384 54.848zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36z"},null,-1),El("path",{fill:"currentColor",d:"M480 192h64v704h-64z"},null,-1)],$D=Yz({name:"Reading"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",HD,DD)}],["__file","reading.vue"]]),FD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},WD=[El("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1)],UD=Yz({name:"RefreshLeft"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",FD,WD)}],["__file","refresh-left.vue"]]),KD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qD=[El("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1)],YD=Yz({name:"RefreshRight"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",KD,qD)}],["__file","refresh-right.vue"]]),GD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JD=[El("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"},null,-1)],XD=Yz({name:"Refresh"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",GD,JD)}],["__file","refresh.vue"]]),QD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ZD=[El("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32v288zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512H256zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96zm32 224h64v96h-64v-96zm0 288h64v96h-64v-96z"},null,-1)],e$=Yz({name:"Refrigerator"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",QD,ZD)}],["__file","refrigerator.vue"]]),t$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},n$=[El("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zM288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512z"},null,-1)],r$=Yz({name:"RemoveFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",t$,n$)}],["__file","remove-filled.vue"]]),o$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},l$=[El("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),El("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1)],a$=Yz({name:"Remove"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",o$,l$)}],["__file","remove.vue"]]),i$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},s$=[El("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312L754.752 480z"},null,-1)],u$=Yz({name:"Right"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",i$,s$)}],["__file","right.vue"]]),c$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},d$=[El("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1)],p$=Yz({name:"ScaleToOriginal"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",c$,d$)}],["__file","scale-to-original.vue"]]),f$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},v$=[El("path",{fill:"currentColor",d:"M224 128v704h576V128H224zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),El("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"},null,-1),El("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0v64zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192zM320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"},null,-1)],h$=Yz({name:"School"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",f$,v$)}],["__file","school.vue"]]),m$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},g$=[El("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248z"},null,-1)],y$=Yz({name:"Scissor"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",m$,g$)}],["__file","scissor.vue"]]),b$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},w$=[El("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1)],x$=Yz({name:"Search"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",b$,w$)}],["__file","search.vue"]]),C$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},k$=[El("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496z"},null,-1)],S$=Yz({name:"Select"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",C$,k$)}],["__file","select.vue"]]),_$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},E$=[El("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248z"},null,-1)],O$=Yz({name:"Sell"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",_$,E$)}],["__file","sell.vue"]]),M$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},z$=[El("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64z"},null,-1)],T$=Yz({name:"SemiSelect"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",M$,z$)}],["__file","semi-select.vue"]]),A$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},L$=[El("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.064 192.064 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193.235 193.235 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0zM256 448a128 128 0 1 0 0 256V448zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128z"},null,-1)],I$=Yz({name:"Service"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",A$,L$)}],["__file","service.vue"]]),R$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},P$=[El("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64H224zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96z"},null,-1),El("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),El("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32zm160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),El("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1)],N$=Yz({name:"SetUp"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",R$,P$)}],["__file","set-up.vue"]]),j$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},V$=[El("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256z"},null,-1)],B$=Yz({name:"Setting"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",j$,V$)}],["__file","setting.vue"]]),H$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},D$=[El("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.808 127.808 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"},null,-1)],$$=Yz({name:"Share"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",H$,D$)}],["__file","share.vue"]]),F$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},W$=[El("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216L512 386.88zm0-70.272 144.768-65.792L512 171.84v144.768zM512 512H148.864l18.24 64H856.96l18.24-64H512zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2H185.408z"},null,-1)],U$=Yz({name:"Ship"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",F$,W$)}],["__file","ship.vue"]]),K$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},q$=[El("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384v-64zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640l60.544 423.808z"},null,-1)],Y$=Yz({name:"Shop"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",K$,q$)}],["__file","shop.vue"]]),G$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},J$=[El("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320H704zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32h160zm64 0h256a128 128 0 1 0-256 0z"},null,-1),El("path",{fill:"currentColor",d:"M192 704h640v64H192z"},null,-1)],X$=Yz({name:"ShoppingBag"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",G$,J$)}],["__file","shopping-bag.vue"]]),Q$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Z$=[El("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96zm320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96zM96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128H96zm314.24 576h395.904l82.304-384H333.44l76.8 384z"},null,-1),El("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256h183.296zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648l179.2-215.04z"},null,-1)],eF=Yz({name:"ShoppingCartFull"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",Q$,Z$)}],["__file","shopping-cart-full.vue"]]),tF={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nF=[El("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96zm320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96zM96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128H96zm314.24 576h395.904l82.304-384H333.44l76.8 384z"},null,-1)],rF=Yz({name:"ShoppingCart"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",tF,nF)}],["__file","shopping-cart.vue"]]),oF={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},lF=[El("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833zm439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64h551zM256 192h622l-96 384H256V192zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833z"},null,-1)],aF=Yz({name:"ShoppingTrolley"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",oF,lF)}],["__file","shopping-trolley.vue"]]),iF={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sF=[El("path",{fill:"currentColor",d:"M256 576v128h640V576H256zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32z"},null,-1),El("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"},null,-1)],uF=Yz({name:"Smoking"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",iF,sF)}],["__file","smoking.vue"]]),cF={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dF=[El("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24zm72.32-18.176a573.056 573.056 0 0 0 224.832-137.216 573.12 573.12 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.68 567.68 0 0 0 170.432 532.48l320.384 320.384zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536L871.04 418.496zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944-199.936 199.936-497.92 226.112-610.944 113.152zm452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248l45.248 45.248z"},null,-1)],pF=Yz({name:"Soccer"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",cF,dF)}],["__file","soccer.vue"]]),fF={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vF=[El("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"},null,-1)],hF=Yz({name:"SoldOut"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",fF,vF)}],["__file","sold-out.vue"]]),mF={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gF=[El("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"},null,-1)],yF=Yz({name:"SortDown"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",mF,gF)}],["__file","sort-down.vue"]]),bF={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wF=[El("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"},null,-1)],xF=Yz({name:"SortUp"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",bF,wF)}],["__file","sort-up.vue"]]),CF={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kF=[El("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632V96zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0V141.248z"},null,-1)],SF=Yz({name:"Sort"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",CF,kF)}],["__file","sort.vue"]]),_F={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},EF=[El("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0zM128 896v-64h768v64H128z"},null,-1)],OF=Yz({name:"Stamp"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",_F,EF)}],["__file","stamp.vue"]]),MF={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zF=[El("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1)],TF=Yz({name:"StarFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",MF,zF)}],["__file","star-filled.vue"]]),AF={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LF=[El("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1)],IF=Yz({name:"Star"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",AF,LF)}],["__file","star.vue"]]),RF={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PF=[El("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),El("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"},null,-1)],NF=Yz({name:"Stopwatch"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",RF,PF)}],["__file","stopwatch.vue"]]),jF={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},VF=[El("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1)],BF=Yz({name:"SuccessFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",jF,VF)}],["__file","success-filled.vue"]]),HF={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},DF=[El("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16l-109.248 19.2zm-548.8 198.72h447.168v2.24l60.8-60.8a63.808 63.808 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64.064 64.064 0 0 0-10.24 13.248zm0 64c2.752 4.736 6.144 9.152 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904H252.928zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928h326.208zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632l-137.6 24.256zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"},null,-1)],$F=Yz({name:"Sugar"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",HF,DF)}],["__file","sugar.vue"]]),FF={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},WF=[El("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5C77.16 253.82 64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5zM384 128h256v64H384v-64zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128v384zm448 0H320V448h384v384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128v320zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320v64z"},null,-1)],UF=Yz({name:"SuitcaseLine"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",FF,WF)}],["__file","suitcase-line.vue"]]),KF={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qF=[El("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64v64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448H128zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128z"},null,-1),El("path",{fill:"currentColor",d:"M384 128v64h256v-64H384zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64z"},null,-1)],YF=Yz({name:"Suitcase"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",KF,qF)}],["__file","suitcase.vue"]]),GF={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JF=[El("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32zM195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248zM64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32zm768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32zM195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0z"},null,-1)],XF=Yz({name:"Sunny"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",GF,JF)}],["__file","sunny.vue"]]),QF={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ZF=[El("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64zm129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0h-64.32zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32zm407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0zm-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248z"},null,-1)],eW=Yz({name:"Sunrise"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",QF,ZF)}],["__file","sunrise.vue"]]),tW={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nW=[El("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0H82.56zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32zm256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1)],rW=Yz({name:"Sunset"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",tW,nW)}],["__file","sunset.vue"]]),oW={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lW=[El("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z"},null,-1),El("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32z"},null,-1)],aW=Yz({name:"SwitchButton"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",oW,lW)}],["__file","switch-button.vue"]]),iW={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},sW=[El("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36z"},null,-1),El("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.655 196.655 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.67 196.67 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42zm-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.695 131.695 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57v644.36zm402.12-647.67a196.655 196.655 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.69 196.69 0 0 0 139.08-57.61A196.655 196.655 0 0 0 896 699.31V325.29a196.69 196.69 0 0 0-57.61-139.08zm-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82z"},null,-1)],uW=Yz({name:"SwitchFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",iW,sW)}],["__file","switch-filled.vue"]]),cW={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dW=[El("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344zM64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32z"},null,-1)],pW=Yz({name:"Switch"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",cW,dW)}],["__file","switch.vue"]]),fW={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vW=[El("path",{fill:"currentColor",d:"M832 384H192v448h640V384zM96 320h832V128H96v192zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32h-64zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64z"},null,-1)],hW=Yz({name:"TakeawayBox"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",fW,vW)}],["__file","takeaway-box.vue"]]),mW={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gW=[El("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64v160zm0-416v192h64V416h-64z"},null,-1)],yW=Yz({name:"Ticket"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",mW,gW)}],["__file","ticket.vue"]]),bW={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wW=[El("path",{fill:"currentColor",d:"M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h192v64H320v-64zm0 384h384v64H320v-64z"},null,-1)],xW=Yz({name:"Tickets"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",bW,wW)}],["__file","tickets.vue"]]),CW={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kW=[El("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640zm0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768z"},null,-1),El("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32z"},null,-1),El("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96z"},null,-1)],SW=Yz({name:"Timer"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",CW,kW)}],["__file","timer.vue"]]),_W={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},EW=[El("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224zM736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64h416zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224z"},null,-1),El("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96z"},null,-1)],OW=Yz({name:"ToiletPaper"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",_W,EW)}],["__file","toilet-paper.vue"]]),MW={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zW=[El("path",{fill:"currentColor",d:"M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0z"},null,-1)],TW=Yz({name:"Tools"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",MW,zW)}],["__file","tools.vue"]]),AW={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LW=[El("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0V256z"},null,-1),El("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312l-544-544z"},null,-1)],IW=Yz({name:"TopLeft"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",AW,LW)}],["__file","top-left.vue"]]),RW={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PW=[El("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0V256z"},null,-1),El("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312l544-544z"},null,-1)],NW=Yz({name:"TopRight"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",RW,PW)}],["__file","top-right.vue"]]),jW={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},VW=[El("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"},null,-1)],BW=Yz({name:"Top"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",jW,VW)}],["__file","top.vue"]]),HW={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},DW=[El("path",{fill:"currentColor",d:"M128 896V128h768v768H128zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624 139.84-156.608zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0z"},null,-1)],$W=Yz({name:"TrendCharts"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",HW,DW)}],["__file","trend-charts.vue"]]),FW={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},WW=[El("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4C752 67.2 745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6C259.2 80 256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 16-9.6 22.4 3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4zM256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256v182.4zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6C342.4 480 320 438.4 320 384V128h384v256c0 54.4-19.2 99.2-57.6 134.4zm172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2zM768 896H256c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6z"},null,-1)],UW=Yz({name:"TrophyBase"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",FW,WW)}],["__file","trophy-base.vue"]]),KW={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qW=[El("path",{fill:"currentColor",d:"M480 896V702.08A256.256 256.256 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.256 256.256 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64h128zm224-448V128H320v320a192 192 0 1 0 384 0zm64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768v192zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448H256z"},null,-1)],YW=Yz({name:"Trophy"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",KW,qW)}],["__file","trophy.vue"]]),GW={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JW=[El("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724H329.956zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"},null,-1),El("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454zm0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088z"},null,-1)],XW=Yz({name:"TurnOff"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",GW,JW)}],["__file","turn-off.vue"]]),QW={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ZW=[El("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0zm570.688-320a384.128 384.128 0 0 0-757.376 0h757.376z"},null,-1)],eU=Yz({name:"Umbrella"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",QW,ZW)}],["__file","umbrella.vue"]]),tU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nU=[El("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32H224zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96z"},null,-1),El("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32zm178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104l-59.456 23.808z"},null,-1)],rU=Yz({name:"Unlock"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",tU,nU)}],["__file","unlock.vue"]]),oU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lU=[El("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6H544z"},null,-1)],aU=Yz({name:"UploadFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",oU,lU)}],["__file","upload-filled.vue"]]),iU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sU=[El("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"},null,-1)],uU=Yz({name:"Upload"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",iU,sU)}],["__file","upload.vue"]]),cU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dU=[El("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0zm544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"},null,-1)],pU=Yz({name:"UserFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",cU,dU)}],["__file","user-filled.vue"]]),fU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vU=[El("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0z"},null,-1)],hU=Yz({name:"User"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",fU,vU)}],["__file","user.vue"]]),mU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gU=[El("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416h24.256zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672zm48.128-192-14.72-96H704v96h151.872zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160zm-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160z"},null,-1)],yU=Yz({name:"Van"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",mU,gU)}],["__file","van.vue"]]),bU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wU=[El("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v96zM192 768v64h384v-64H192zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0zm64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288zm-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320zm64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0z"},null,-1)],xU=Yz({name:"VideoCameraFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",bU,wU)}],["__file","video-camera-filled.vue"]]),CU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kU=[El("path",{fill:"currentColor",d:"M704 768V256H128v512h576zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v128zm0 71.552v176.896l128 64V359.552l-128 64zM192 320h192v64H192v-64z"},null,-1)],SU=Yz({name:"VideoCamera"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",CU,kU)}],["__file","video-camera.vue"]]),_U={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},EU=[El("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32zm192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32z"},null,-1)],OU=Yz({name:"VideoPause"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",_U,EU)}],["__file","video-pause.vue"]]),MU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zU=[El("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-48-247.616L668.608 512 464 375.616v272.768zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"},null,-1)],TU=Yz({name:"VideoPlay"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",MU,zU)}],["__file","video-play.vue"]]),AU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LU=[El("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1)],IU=Yz({name:"View"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",AU,LU)}],["__file","view.vue"]]),RU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PU=[El("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160H688zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96zm-80-544 128 160H384l256-160z"},null,-1)],NU=Yz({name:"WalletFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",RU,PU)}],["__file","wallet-filled.vue"]]),jU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},VU=[El("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32v192z"},null,-1),El("path",{fill:"currentColor",d:"M128 320v512h768V320H128zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32z"},null,-1),El("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128z"},null,-1)],BU=Yz({name:"Wallet"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",jU,VU)}],["__file","wallet.vue"]]),HU={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},DU=[El("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49 12.91-20.12 12.92-44.91.01-65.03zM554.67 768h-85.33v-85.33h85.33V768zm0-426.67v298.66h-85.33V341.32l85.33.01z"},null,-1)],$U=Yz({name:"WarnTriangleFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",HU,DU)}],["__file","warn-triangle-filled.vue"]]),FU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},WU=[El("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1)],UU=Yz({name:"WarningFilled"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",FU,WU)}],["__file","warning-filled.vue"]]),KU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qU=[El("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1)],YU=Yz({name:"Warning"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",KU,qU)}],["__file","warning.vue"]]),GU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JU=[El("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"},null,-1),El("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32z"},null,-1),El("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32zm128-256V128H416v128h-64V64h320v192h-64zM416 768v128h192V768h64v192H352V768h64z"},null,-1)],XU=Yz({name:"Watch"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",GU,JU)}],["__file","watch.vue"]]),QU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ZU=[El("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248L683.072 600.32zm231.552 141.056a448 448 0 1 1-632-632l632 632z"},null,-1)],eK=Yz({name:"Watermelon"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",QU,ZU)}],["__file","watermelon.vue"]]),tK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nK=[El("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32zm416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92l192-17.472zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96v226.368z"},null,-1)],rK=Yz({name:"WindPower"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",tK,nK)}],["__file","wind-power.vue"]]),oK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lK=[El("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1)],aK=Yz({name:"ZoomIn"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",oK,lK)}],["__file","zoom-in.vue"]]),iK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sK=[El("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1)],uK=Yz({name:"ZoomOut"},[["render",function(e,t,n,r,o,l){return vl(),bl("svg",iK,sK)}],["__file","zoom-out.vue"]]);const cK=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:Xz,Aim:eT,AlarmClock:rT,Apple:aT,ArrowDown:pT,ArrowDownBold:uT,ArrowLeft:yT,ArrowLeftBold:hT,ArrowRight:ST,ArrowRightBold:xT,ArrowUp:TT,ArrowUpBold:OT,Avatar:IT,Back:NT,Baseball:BT,Basketball:$T,Bell:YT,BellFilled:UT,Bicycle:XT,Bottom:aA,BottomLeft:eA,BottomRight:rA,Bowl:uA,Box:pA,Briefcase:hA,Brush:xA,BrushFilled:yA,Burger:SA,Calendar:OA,Camera:IA,CameraFilled:TA,CaretBottom:NA,CaretLeft:BA,CaretRight:$A,CaretTop:UA,Cellphone:YA,ChatDotRound:XA,ChatDotSquare:eL,ChatLineRound:rL,ChatLineSquare:aL,ChatRound:uL,ChatSquare:pL,Check:hL,Checked:yL,Cherry:xL,Chicken:SL,ChromeFilled:OL,CircleCheck:IL,CircleCheckFilled:TL,CircleClose:BL,CircleCloseFilled:NL,CirclePlus:UL,CirclePlusFilled:$L,Clock:YL,Close:eI,CloseBold:XL,Cloudy:rI,Coffee:uI,CoffeeCup:aI,Coin:pI,ColdDrink:hI,Collection:xI,CollectionTag:yI,Comment:SI,Compass:OI,Connection:TI,Coordinate:II,CopyDocument:NI,Cpu:BI,CreditCard:$I,Crop:UI,DArrowLeft:YI,DArrowRight:XI,DCaret:eR,DataAnalysis:rR,DataBoard:aR,DataLine:uR,Delete:yR,DeleteFilled:pR,DeleteLocation:hR,Dessert:xR,Discount:SR,Dish:TR,DishDot:OR,Document:YR,DocumentAdd:IR,DocumentChecked:NR,DocumentCopy:BR,DocumentDelete:$R,DocumentRemove:UR,Download:XR,Drizzling:eP,Edit:aP,EditPen:rP,Eleme:pP,ElemeFilled:uP,ElementPlus:hP,Expand:yP,Failed:xP,Female:SP,Files:OP,Film:TP,Filter:IP,Finished:NP,FirstAidKit:BP,Flag:$P,Fold:UP,Folder:uN,FolderAdd:YP,FolderChecked:XP,FolderDelete:eN,FolderOpened:rN,FolderRemove:aN,Food:pN,Football:hN,ForkSpoon:yN,Fries:xN,FullScreen:SN,Goblet:NN,GobletFull:ON,GobletSquare:IN,GobletSquareFull:TN,GoldMedal:BN,Goods:UN,GoodsFilled:$N,Grape:YN,Grid:XN,Guide:ej,Handbag:rj,Headset:aj,Help:pj,HelpFilled:uj,Hide:hj,Histogram:yj,HomeFilled:xj,HotWater:Sj,House:Oj,IceCream:Nj,IceCreamRound:Tj,IceCreamSquare:Ij,IceDrink:Bj,IceTea:$j,InfoFilled:Uj,Iphone:Yj,Key:Xj,KnifeFork:eV,Lightning:rV,Link:aV,List:uV,Loading:pV,Location:xV,LocationFilled:hV,LocationInformation:yV,Lock:SV,Lollipop:OV,MagicStick:TV,Magnet:IV,Male:NV,Management:BV,MapLocation:$V,Medal:UV,Memo:YV,Menu:XV,Message:rB,MessageBox:eB,Mic:aB,Microphone:uB,MilkTea:pB,Minus:hB,Money:yB,Monitor:xB,Moon:OB,MoonNight:SB,More:IB,MoreFilled:TB,MostlyCloudy:NB,Mouse:BB,Mug:$B,Mute:YB,MuteNotification:UB,NoSmoking:XB,Notebook:eH,Notification:rH,Odometer:aH,OfficeBuilding:uH,Open:pH,Operation:hH,Opportunity:yH,Orange:xH,Paperclip:SH,PartlyCloudy:OH,Pear:TH,Phone:NH,PhoneFilled:IH,Picture:UH,PictureFilled:BH,PictureRounded:$H,PieChart:YH,Place:XH,Platform:eD,Plus:rD,Pointer:aD,Position:uD,Postcard:pD,Pouring:hD,Present:yD,PriceTag:xD,Printer:SD,Promotion:OD,QuartzWatch:TD,QuestionFilled:ID,Rank:ND,Reading:$D,ReadingLamp:BD,Refresh:XD,RefreshLeft:UD,RefreshRight:YD,Refrigerator:e$,Remove:a$,RemoveFilled:r$,Right:u$,ScaleToOriginal:p$,School:h$,Scissor:y$,Search:x$,Select:S$,Sell:O$,SemiSelect:T$,Service:I$,SetUp:N$,Setting:B$,Share:$$,Ship:U$,Shop:Y$,ShoppingBag:X$,ShoppingCart:rF,ShoppingCartFull:eF,ShoppingTrolley:aF,Smoking:uF,Soccer:pF,SoldOut:hF,Sort:SF,SortDown:yF,SortUp:xF,Stamp:OF,Star:IF,StarFilled:TF,Stopwatch:NF,SuccessFilled:BF,Sugar:$F,Suitcase:YF,SuitcaseLine:UF,Sunny:XF,Sunrise:eW,Sunset:rW,Switch:pW,SwitchButton:aW,SwitchFilled:uW,TakeawayBox:hW,Ticket:yW,Tickets:xW,Timer:SW,ToiletPaper:OW,Tools:TW,Top:BW,TopLeft:IW,TopRight:NW,TrendCharts:$W,Trophy:YW,TrophyBase:UW,TurnOff:XW,Umbrella:eU,Unlock:rU,Upload:uU,UploadFilled:aU,User:hU,UserFilled:pU,Van:yU,VideoCamera:SU,VideoCameraFilled:xU,VideoPause:OU,VideoPlay:TU,View:IU,Wallet:BU,WalletFilled:NU,WarnTriangleFilled:$U,Warning:YU,WarningFilled:UU,Watch:XU,Watermelon:eK,WindPower:rK,ZoomIn:aK,ZoomOut:uK},Symbol.toStringTag,{value:"Module"})),dK="__epPropKey",pK=(e,t)=>{if(!w(e)||w(n=e)&&n[dK])return e;var n;const{values:r,required:o,default:l,type:a,validator:i}=e,s={type:a,required:!!o,validator:r||i?t=>{let n=!1,o=[];return r&&(o=Array.from(r),d(e,"default")&&o.push(l),n||(n=o.includes(t))),i&&(n||(n=i(t))),!n&&o.length>0&&([...new Set(o)].map((e=>JSON.stringify(e))).join(", "),JSON.stringify(t)),n}:void 0,[dK]:!0};return d(e,"default")&&(s.default=l),s},fK=e=>YS(Object.entries(e).map((([e,t])=>[e,pK(t)]))),vK=[String,Object,Function],hK={Close:eI},mK={Close:eI,SuccessFilled:BF,InfoFilled:Uj,WarningFilled:UU,CircleCloseFilled:NL},gK={success:BF,warning:UU,error:NL,info:Uj},yK={validating:pV,success:IL,error:BL},bK=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(null!=t?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},wK=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),xK=e=>(e.install=r,e),CK=(...e)=>t=>{e.forEach((e=>{g(e)?e(t):e.value=t}))},kK={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},SK=["sun","mon","tue","wed","thu","fri","sat"],_K="update:modelValue",EK="change",OK="input",MK=Symbol("INSTALLED_KEY"),zK=["","default","small","large"],TK={large:40,default:32,small:24},AK=e=>["",...zK].includes(e);var LK=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(LK||{});function IK(e){return xl(e)&&e.type===sl}const RK=e=>{const t=p(e)?e:[e],n=[];return t.forEach((e=>{var t;p(e)?n.push(...RK(e)):xl(e)&&p(e.children)?n.push(...RK(e.children)):(n.push(e),xl(e)&&(null==(t=e.component)?void 0:t.subTree)&&n.push(...RK(e.component.subTree)))})),n},PK=e=>[...new Set(e)],NK=e=>e||0===e?Array.isArray(e)?e:[e]:[],jK=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),VK=e=>Xi?window.requestAnimationFrame(e):setTimeout(e,16),BK=e=>Xi?window.cancelAnimationFrame(e):clearTimeout(e),HK=()=>Math.floor(1e4*Math.random()),DK=["class","style"],$K=/^on[A-Z]/,FK=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=oa((()=>((null==n?void 0:n.value)||[]).concat(DK))),o=$l();return oa(o?()=>{var e;return YS(Object.entries(null==(e=o.proxy)?void 0:e.$attrs).filter((([e])=>!(r.value.includes(e)||t&&$K.test(e)))))}:()=>({}))},WK=({from:e,replacement:t,scope:n,version:r,ref:o,type:l="API"},a)=>{nr((()=>Gt(a)),(e=>{}),{immediate:!0})},UK=(e,t,n)=>{let r={offsetX:0,offsetY:0};const o=t=>{const n=t.clientX,o=t.clientY,{offsetX:l,offsetY:a}=r,i=e.value.getBoundingClientRect(),s=i.left,u=i.top,c=i.width,d=i.height,p=document.documentElement.clientWidth,f=document.documentElement.clientHeight,v=-s+l,h=-u+a,m=p-s-c+l,g=f-u-d+a,y=t=>{const i=Math.min(Math.max(l+t.clientX-n,v),m),s=Math.min(Math.max(a+t.clientY-o,h),g);r={offsetX:i,offsetY:s},e.value.style.transform=`translate(${$z(i)}, ${$z(s)})`},b=()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",b)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)};Nr((()=>{Zn((()=>{n.value?t.value&&e.value&&t.value.addEventListener("mousedown",o):l()}))})),Br((()=>{l()}))};var KK={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const qK=e=>(t,n)=>YK(t,n,Gt(e)),YK=(e,t,n)=>yb(n,e,e).replace(/\{(\w+)\}/g,((e,n)=>{var r;return`${null!=(r=null==t?void 0:t[n])?r:`{${n}}`}`})),GK=Symbol("localeContextKey"),JK=e=>{const t=e||zo(GK,Wt());return n=oa((()=>t.value||KK)),{lang:oa((()=>Gt(n).name)),locale:Ft(n)?n:Wt(n),t:qK(n)};var n},XK="el",QK=(e,t,n,r,o)=>{let l=`${e}-${t}`;return n&&(l+=`-${n}`),r&&(l+=`__${r}`),o&&(l+=`--${o}`),l},ZK=Symbol("namespaceContextKey"),eq=e=>{const t=e||zo(ZK,Wt(XK));return oa((()=>Gt(t)||XK))},tq=(e,t)=>{const n=eq(t);return{namespace:n,b:(t="")=>QK(n.value,e,t,"",""),e:t=>t?QK(n.value,e,"",t,""):"",m:t=>t?QK(n.value,e,"","",t):"",be:(t,r)=>t&&r?QK(n.value,e,t,r,""):"",em:(t,r)=>t&&r?QK(n.value,e,"",t,r):"",bm:(t,r)=>t&&r?QK(n.value,e,t,"",r):"",bem:(t,r,o)=>t&&r&&o?QK(n.value,e,t,r,o):"",is:(e,...t)=>{const n=!(t.length>=1)||t[0];return e&&n?`is-${e}`:""},cssVar:e=>{const t={};for(const r in e)e[r]&&(t[`--${n.value}-${r}`]=e[r]);return t},cssVarName:e=>`--${n.value}-${e}`,cssVarBlock:t=>{const r={};for(const o in t)t[o]&&(r[`--${n.value}-${e}-${o}`]=t[o]);return r},cssVarBlockName:t=>`--${n.value}-${e}-${t}`}},nq=(e,t={})=>{Ft(e)||Nz("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||tq("popup"),r=an((()=>n.bm("parent","hidden")));if(!Xi||Vz(document.body,r.value))return;let o=0,l=!1,a="0";const i=()=>{setTimeout((()=>{Hz(null==document?void 0:document.body,r.value),l&&document&&(document.body.style.width=a)}),200)};nr(e,(e=>{if(!e)return void i();l=!Vz(document.body,r.value),l&&(a=document.body.style.width),o=Kz(n.namespace.value);const t=document.documentElement.clientHeight0&&(t||"scroll"===s)&&l&&(document.body.style.width=`calc(100% - ${o}px)`),Bz(document.body,r.value)})),Ce((()=>i()))},rq=pK({type:Boolean,default:null}),oq=pK({type:Function}),lq=e=>{const t=`update:${e}`,n=`onUpdate:${e}`;return{useModelToggle:({indicator:r,toggleReason:o,shouldHideWhenRouteChanges:l,shouldProceed:a,onShow:i,onHide:s})=>{const u=$l(),{emit:c}=u,d=u.props,p=oa((()=>g(d[n]))),f=oa((()=>null===d[e])),v=e=>{!0!==r.value&&(r.value=!0,o&&(o.value=e),g(i)&&i(e))},h=e=>{!1!==r.value&&(r.value=!1,o&&(o.value=e),g(s)&&s(e))},m=e=>{if(!0===d.disabled||g(a)&&!a())return;const n=p.value&Ξn&&c(t,!0),!f.value&&n||v(e)},y=e=>{if(!0===d.disabled||!Xi)return;const n=p.value&Ξn&&c(t,!1),!f.value&&n||h(e)},b=e=>{Oz(e)&&(d.disabled&&e?p.value&&c(t,!1):r.value!==e&&(e?v():h()))};return nr((()=>d[e]),b),l&&void 0!==u.appContext.config.globalProperties.$route&&nr((()=>({...u.proxy.$route})),(()=>{l.value&&r.value&&y()})),Nr((()=>{b(d[e])})),{hide:y,show:m,toggle:()=>{r.value?y():m()},hasUpdateHandler:p}},useModelToggleProps:{[e]:rq,[n]:oq},useModelToggleEmits:[t]}};lq("modelValue");const aq=e=>{const t=$l();return oa((()=>{var n,r;return null==(r=null==(n=null==t?void 0:t.proxy)?void 0:n.$props)?void 0:r[e]}))};var iq="top",sq="bottom",uq="right",cq="left",dq="auto",pq=[iq,sq,uq,cq],fq="start",vq="end",hq="viewport",mq="popper",gq=pq.reduce((function(e,t){return e.concat([t+"-"+fq,t+"-"+vq])}),[]),yq=[].concat(pq,[dq]).reduce((function(e,t){return e.concat([t,t+"-"+fq,t+"-"+vq])}),[]),bq=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function wq(e){return e?(e.nodeName||"").toLowerCase():null}function xq(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Cq(e){return e instanceof xq(e).Element||e instanceof Element}function kq(e){return e instanceof xq(e).HTMLElement||e instanceof HTMLElement}function Sq(e){return"undefined"!=typeof ShadowRoot&&(e instanceof xq(e).ShadowRoot||e instanceof ShadowRoot)}var _q={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];!kq(o)||!wq(o)||(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},l=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});!kq(r)||!wq(r)||(Object.assign(r.style,l),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Eq(e){return e.split("-")[0]}var Oq=Math.max,Mq=Math.min,zq=Math.round;function Tq(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(kq(e)&&t){var l=e.offsetHeight,a=e.offsetWidth;a>0&&(r=zq(n.width)/a||1),l>0&&(o=zq(n.height)/l||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Aq(e){var t=Tq(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Lq(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Sq(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Iq(e){return xq(e).getComputedStyle(e)}function Rq(e){return["table","td","th"].indexOf(wq(e))>=0}function Pq(e){return((Cq(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nq(e){return"html"===wq(e)?e:e.assignedSlot||e.parentNode||(Sq(e)?e.host:null)||Pq(e)}function jq(e){return kq(e)&&"fixed"!==Iq(e).position?e.offsetParent:null}function Vq(e){for(var t=xq(e),n=jq(e);n&&Rq(n)&&"static"===Iq(n).position;)n=jq(n);return n&&("html"===wq(n)||"body"===wq(n)&&"static"===Iq(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&kq(e)&&"fixed"===Iq(e).position)return null;var n=Nq(e);for(Sq(n)&&(n=n.host);kq(n)&&["html","body"].indexOf(wq(n))<0;){var r=Iq(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Bq(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hq(e,t,n){return Oq(e,Mq(t,n))}function Dq(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function $q(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Fq={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r,o=e.state,l=e.name,a=e.options,i=o.elements.arrow,s=o.modifiersData.popperOffsets,u=Eq(o.placement),c=Bq(u),d=[cq,uq].indexOf(u)>=0?"height":"width";if(i&&s){var p=(n=a.padding,r=o,Dq("number"!=typeof(n="function"==typeof n?n(Object.assign({},r.rects,{placement:r.placement})):n)?n:$q(n,pq))),f=Aq(i),v="y"===c?iq:cq,h="y"===c?sq:uq,m=o.rects.reference[d]+o.rects.reference[c]-s[c]-o.rects.popper[d],g=s[c]-o.rects.reference[c],y=Vq(i),b=y?"y"===c?y.clientHeight||0:y.clientWidth||0:0,w=m/2-g/2,x=p[v],C=b-f[d]-p[h],k=b/2-f[d]/2+w,S=Hq(x,k,C),_=c;o.modifiersData[l]=((t={})[_]=S,t.centerOffset=S-k,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||!Lq(t.elements.popper,r)||(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wq(e){return e.split("-")[1]}var Uq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kq(e){var t,n=e.popper,r=e.popperRect,o=e.placement,l=e.variation,a=e.offsets,i=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,v=a.y,h=void 0===v?0:v,m="function"==typeof c?c({x:f,y:h}):{x:f,y:h};f=m.x,h=m.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=cq,w=iq,x=window;if(u){var C=Vq(n),k="clientHeight",S="clientWidth";C===xq(n)&&"static"!==Iq(C=Pq(n)).position&&"absolute"===i&&(k="scrollHeight",S="scrollWidth"),(o===iq||(o===cq||o===uq)&&l===vq)&&(w=sq,h-=(d&&C===x&&x.visualViewport?x.visualViewport.height:C[k])-r.height,h*=s?1:-1),o!==cq&&(o!==iq&&o!==sq||l!==vq)||(b=uq,f-=(d&&C===x&&x.visualViewport?x.visualViewport.width:C[S])-r.width,f*=s?1:-1)}var _,E,O,M,z,T=Object.assign({position:i},u&&Uq),A=!0===c?(O=(E={x:f,y:h}).x,M=E.y,z=window.devicePixelRatio||1,{x:zq(O*z)/z||0,y:zq(M*z)/z||0}):{x:f,y:h};return f=A.x,h=A.y,s?Object.assign({},T,((_={})[w]=y?"0":"",_[b]=g?"0":"",_.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",_)):Object.assign({},T,((t={})[w]=y?h+"px":"",t[b]=g?f+"px":"",t.transform="",t))}var qq={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,l=n.adaptive,a=void 0===l||l,i=n.roundOffsets,s=void 0===i||i,u={placement:Eq(t.placement),variation:Wq(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Kq(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Kq(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Yq={passive:!0},Gq={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,l=void 0===o||o,a=r.resize,i=void 0===a||a,s=xq(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&u.forEach((function(e){e.addEventListener("scroll",n.update,Yq)})),i&&s.addEventListener("resize",n.update,Yq),function(){l&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Yq)})),i&&s.removeEventListener("resize",n.update,Yq)}},data:{}},Jq={left:"right",right:"left",bottom:"top",top:"bottom"};function Xq(e){return e.replace(/left|right|bottom|top/g,(function(e){return Jq[e]}))}var Qq={start:"end",end:"start"};function Zq(e){return e.replace(/start|end/g,(function(e){return Qq[e]}))}function eY(e){var t=xq(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function tY(e){return Tq(Pq(e)).left+eY(e).scrollLeft}function nY(e){var t=Iq(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function rY(e){return["html","body","#document"].indexOf(wq(e))>=0?e.ownerDocument.body:kq(e)&&nY(e)?e:rY(Nq(e))}function oY(e,t){var n;void 0===t&&(t=[]);var r=rY(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),l=xq(r),a=o?[l].concat(l.visualViewport||[],nY(r)?r:[]):r,i=t.concat(a);return o?i:i.concat(oY(Nq(a)))}function lY(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function aY(e,t){return t===hq?lY(function(e){var t=xq(e),n=Pq(e),r=t.visualViewport,o=n.clientWidth,l=n.clientHeight,a=0,i=0;return r&&(o=r.width,l=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,i=r.offsetTop)),{width:o,height:l,x:a+tY(e),y:i}}(e)):Cq(t)?((r=Tq(n=t)).top=r.top+n.clientTop,r.left=r.left+n.clientLeft,r.bottom=r.top+n.clientHeight,r.right=r.left+n.clientWidth,r.width=n.clientWidth,r.height=n.clientHeight,r.x=r.left,r.y=r.top,r):lY(function(e){var t,n=Pq(e),r=eY(e),o=null==(t=e.ownerDocument)?void 0:t.body,l=Oq(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Oq(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+tY(e),s=-r.scrollTop;return"rtl"===Iq(o||n).direction&&(i+=Oq(n.clientWidth,o?o.clientWidth:0)-l),{width:l,height:a,x:i,y:s}}(Pq(e)));var n,r}function iY(e){var t,n=e.reference,r=e.element,o=e.placement,l=o?Eq(o):null,a=o?Wq(o):null,i=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(l){case iq:t={x:i,y:n.y-r.height};break;case sq:t={x:i,y:n.y+n.height};break;case uq:t={x:n.x+n.width,y:s};break;case cq:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=l?Bq(l):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case fq:t[u]=t[u]-(n[c]/2-r[c]/2);break;case vq:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function sY(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,l=n.boundary,a=void 0===l?"clippingParents":l,i=n.rootBoundary,s=void 0===i?hq:i,u=n.elementContext,c=void 0===u?mq:u,d=n.altBoundary,p=void 0!==d&&d,f=n.padding,v=void 0===f?0:f,h=Dq("number"!=typeof v?v:$q(v,pq)),m=c===mq?"reference":mq,g=e.rects.popper,y=e.elements[p?m:c],b=function(e,t,n){var r,o,l,a="clippingParents"===t?(o=oY(Nq(r=e)),Cq(l=["absolute","fixed"].indexOf(Iq(r).position)>=0&&kq(r)?Vq(r):r)?o.filter((function(e){return Cq(e)&&Lq(e,l)&&"body"!==wq(e)})):[]):[].concat(t),i=[].concat(a,[n]),s=i[0],u=i.reduce((function(t,n){var r=aY(e,n);return t.top=Oq(r.top,t.top),t.right=Mq(r.right,t.right),t.bottom=Mq(r.bottom,t.bottom),t.left=Oq(r.left,t.left),t}),aY(e,s));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}(Cq(y)?y:y.contextElement||Pq(e.elements.popper),a,s),w=Tq(e.elements.reference),x=iY({reference:w,element:g,strategy:"absolute",placement:o}),C=lY(Object.assign({},g,x)),k=c===mq?C:w,S={top:b.top-k.top+h.top,bottom:k.bottom-b.bottom+h.bottom,left:b.left-k.left+h.left,right:k.right-b.right+h.right},_=e.modifiersData.offset;if(c===mq&&_){var E=_[o];Object.keys(S).forEach((function(e){var t=[uq,sq].indexOf(e)>=0?1:-1,n=[iq,sq].indexOf(e)>=0?"y":"x";S[e]+=E[n]*t}))}return S}var uY={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,l=void 0===o||o,a=n.altAxis,i=void 0===a||a,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,v=void 0===f||f,h=n.allowedAutoPlacements,m=t.options.placement,g=Eq(m),y=s||(g!==m&&v?function(e){if(Eq(e)===dq)return[];var t=Xq(e);return[Zq(e),t,Zq(t)]}(m):[Xq(m)]),b=[m].concat(y).reduce((function(e,n){return e.concat(Eq(n)===dq?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,l=n.rootBoundary,a=n.padding,i=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?yq:s,c=Wq(r),d=c?i?gq:gq.filter((function(e){return Wq(e)===c})):pq,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=sY(e,{placement:n,boundary:o,rootBoundary:l,padding:a})[Eq(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,x=t.rects.popper,C=new Map,k=!0,S=b[0],_=0;_=0,T=z?"width":"height",A=sY(t,{placement:E,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),L=z?M?uq:cq:M?sq:iq;w[T]>x[T]&&(L=Xq(L));var I=Xq(L),R=[];if(l&&R.push(A[O]<=0),i&&R.push(A[L]<=0,A[I]<=0),R.every((function(e){return e}))){S=E,k=!1;break}C.set(E,R)}if(k)for(var P=function(e){var t=b.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},N=v?3:1;N>0&&"break"!==P(N);N--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function cY(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function dY(e){return[iq,uq,sq,cq].some((function(t){return e[t]>=0}))}var pY={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,l=t.modifiersData.preventOverflow,a=sY(t,{elementContext:"reference"}),i=sY(t,{altBoundary:!0}),s=cY(a,r),u=cY(i,o,l),c=dY(s),d=dY(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},fY={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,l=void 0===o?[0,0]:o,a=yq.reduce((function(e,n){return e[n]=(r=n,o=t.rects,a=l,i=Eq(r),s=[cq,iq].indexOf(i)>=0?-1:1,u="function"==typeof a?a(Object.assign({},o,{placement:r})):a,c=u[0],d=u[1],c=c||0,d=(d||0)*s,[cq,uq].indexOf(i)>=0?{x:d,y:c}:{x:c,y:d}),e;var r,o,a,i,s,u,c,d}),{}),i=a[t.placement],s=i.x,u=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},vY={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=iY({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},hY={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,l=void 0===o||o,a=n.altAxis,i=void 0!==a&&a,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,v=n.tetherOffset,h=void 0===v?0:v,m=sY(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),g=Eq(t.placement),y=Wq(t.placement),b=!y,w=Bq(g),x="x"===w?"y":"x",C=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,_="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,E="number"==typeof _?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(C){if(l){var z,T="y"===w?iq:cq,A="y"===w?sq:uq,L="y"===w?"height":"width",I=C[w],R=I+m[T],P=I-m[A],N=f?-S[L]/2:0,j=y===fq?k[L]:S[L],V=y===fq?-S[L]:-k[L],B=t.elements.arrow,H=f&&B?Aq(B):{width:0,height:0},D=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=D[T],F=D[A],W=Hq(0,k[L],H[L]),U=b?k[L]/2-N-W-$-E.mainAxis:j-W-$-E.mainAxis,K=b?-k[L]/2+N+W+F+E.mainAxis:V+W+F+E.mainAxis,q=t.elements.arrow&&Vq(t.elements.arrow),Y=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,G=null!=(z=null==O?void 0:O[w])?z:0,J=I+K-G,X=Hq(f?Mq(R,I+U-G-Y):R,I,f?Oq(P,J):P);C[w]=X,M[w]=X-I}if(i){var Q,Z="x"===w?iq:cq,ee="x"===w?sq:uq,te=C[x],ne="y"===x?"height":"width",re=te+m[Z],oe=te-m[ee],le=-1!==[iq,cq].indexOf(g),ae=null!=(Q=null==O?void 0:O[x])?Q:0,ie=le?re:te-k[ne]-S[ne]-ae+E.altAxis,se=le?te+k[ne]+S[ne]-ae-E.altAxis:oe,ue=f&&le?function(e,t,n){var r=Hq(e,t,n);return r>n?n:r}(ie,te,se):Hq(f?ie:re,te,f?se:oe);C[x]=ue,M[x]=ue-te}t.modifiersData[r]=M}},requiresIfExists:["offset"]};function mY(e,t,n){void 0===n&&(n=!1);var r,o,l,a,i=kq(t),s=kq(t)&&(o=(r=t).getBoundingClientRect(),l=zq(o.width)/r.offsetWidth||1,a=zq(o.height)/r.offsetHeight||1,1!==l||1!==a),u=Pq(t),c=Tq(e,s),d={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(i||!i&&!n)&&(("body"!==wq(t)||nY(u))&&(d=function(e){return e!==xq(e)&&kq(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:eY(e);var t}(t)),kq(t)?((p=Tq(t,!0)).x+=t.clientLeft,p.y+=t.clientTop):u&&(p.x=tY(u))),{x:c.left+d.scrollLeft-p.x,y:c.top+d.scrollTop-p.y,width:c.width,height:c.height}}function gY(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function yY(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var bY={placement:"bottom",modifiers:[],strategy:"absolute"};function wY(){for(var e=arguments.length,t=new Array(e),n=0;n{if(!e)return{onClick:r,onMousedown:r,onMouseup:r};let t=!1,n=!1;return{onClick:r=>{t&&n&&e(r),t=n=!1},onMousedown:e=>{t=e.target===e.currentTarget},onMouseup:e=>{n=e.target===e.currentTarget}}};function SY(){let e;const t=()=>window.clearTimeout(e);return Cs((()=>t())),{registerTimeout:(n,r)=>{t(),e=window.setTimeout(n,r)},cancelTimeout:t}}const _Y={prefix:Math.floor(1e4*Math.random()),current:0},EY=Symbol("elIdInjection"),OY=()=>$l()?zo(EY,_Y):_Y,MY=e=>{const t=OY(),n=eq();return oa((()=>Gt(e)||`${n.value}-id-${t.prefix}-${t.current++}`))};let zY=[];const TY=e=>{const t=e;t.key===kK.esc&&zY.forEach((e=>e(t)))};let AY;const LY=()=>{const e=eq(),t=OY(),n=oa((()=>`${e.value}-popper-container-${t.prefix}`)),r=oa((()=>`#${n.value}`));return{id:n,selector:r}},IY=fK({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),RY=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:l}=SY(),{registerTimeout:a,cancelTimeout:i}=SY();return{onOpen:t=>{l((()=>{r(t);const e=Gt(n);Mz(e)&&e>0&&a((()=>{o(t)}),e)}),Gt(e))},onClose:e=>{i(),l((()=>{o(e)}),Gt(t))}}},PY=Symbol("elForwardRef"),NY=Wt(0),jY=2e3,VY=Symbol("zIndexContextKey"),BY=e=>{const t=e||zo(VY,void 0),n=oa((()=>{const e=Gt(t);return Mz(e)?e:jY})),r=oa((()=>n.value+NY.value));return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(NY.value++,r.value)}};function HY(e){return e.split("-")[1]}function DY(e){return"y"===e?"height":"width"}function $Y(e){return e.split("-")[0]}function FY(e){return["top","bottom"].includes($Y(e))?"x":"y"}function WY(e,t,n){let{reference:r,floating:o}=e;const l=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,i=FY(t),s=DY(i),u=r[s]/2-o[s]/2,c="x"===i;let d;switch($Y(t)){case"top":d={x:l,y:r.y-o.height};break;case"bottom":d={x:l,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(HY(t)){case"start":d[i]-=u*(n&&c?-1:1);break;case"end":d[i]+=u*(n&&c?-1:1)}return d}function UY(e,t){return"function"==typeof e?e(t):e}function KY(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}const qY=Math.min,YY=Math.max;["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const GY=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,l=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=$Y(n),i=HY(n),s="x"===FY(n),u=["left","top"].includes(a)?-1:1,c=l&&s?-1:1,d=UY(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:v}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return i&&"number"==typeof v&&(f="end"===i?-1*v:v),s?{x:f*c,y:p*u}:{x:p*u,y:f*c}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function JY(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function XY(e){return JY(e).getComputedStyle(e)}function QY(e){return e instanceof JY(e).Node}function ZY(e){return QY(e)?(e.nodeName||"").toLowerCase():""}function eG(e){return e instanceof JY(e).HTMLElement}function tG(e){return e instanceof JY(e).Element}function nG(e){return"undefined"!=typeof ShadowRoot&&(e instanceof JY(e).ShadowRoot||e instanceof ShadowRoot)}function rG(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=XY(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function oG(e){return["table","td","th"].includes(ZY(e))}function lG(e){const t=aG(),n=XY(e);return"none"!==n.transform||"none"!==n.perspective||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function aG(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function iG(e){return["html","body","#document"].includes(ZY(e))}const sG=Math.min,uG=Math.max,cG=Math.round;function dG(e){const t=XY(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=eG(e),l=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=cG(n)!==l||cG(r)!==a;return i&&(n=l,r=a),{width:n,height:r,fallback:i}}function pG(e){return tG(e)?e:e.contextElement}const fG={x:1,y:1};function vG(e){const t=pG(e);if(!eG(t))return fG;const n=t.getBoundingClientRect(),{width:r,height:o,fallback:l}=dG(t);let a=(l?cG(n.width):n.width)/r,i=(l?cG(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),i&&Number.isFinite(i)||(i=1),{x:a,y:i}}const hG={x:0,y:0};function mG(e,t,n){var r,o;if(void 0===t&&(t=!0),!aG())return hG;const l=e?JY(e):window;return!n||t&&n!==l?hG:{x:(null==(r=l.visualViewport)?void 0:r.offsetLeft)||0,y:(null==(o=l.visualViewport)?void 0:o.offsetTop)||0}}function gG(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),l=pG(e);let a=fG;t&&(r?tG(r)&&(a=vG(r)):a=vG(e));const i=mG(l,n,r);let s=(o.left+i.x)/a.x,u=(o.top+i.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(l){const e=JY(l),t=r&&tG(r)?JY(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=vG(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,s*=e.x,u*=e.y,c*=e.x,d*=e.y,s+=t.x,u+=t.y,n=JY(n).frameElement}}return KY({width:c,height:d,x:s,y:u})}function yG(e){return((QY(e)?e.ownerDocument:e.document)||window.document).documentElement}function bG(e){return tG(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function wG(e){return gG(yG(e)).left+bG(e).scrollLeft}function xG(e){if("html"===ZY(e))return e;const t=e.assignedSlot||e.parentNode||nG(e)&&e.host||yG(e);return nG(t)?t.host:t}function CG(e){const t=xG(e);return iG(t)?t.ownerDocument.body:eG(t)&&rG(t)?t:CG(t)}function kG(e,t){var n;void 0===t&&(t=[]);const r=CG(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),l=JY(r);return o?t.concat(l,l.visualViewport||[],rG(r)?r:[]):t.concat(r,kG(r))}function SG(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=JY(e),r=yG(e),o=n.visualViewport;let l=r.clientWidth,a=r.clientHeight,i=0,s=0;if(o){l=o.width,a=o.height;const e=aG();(!e||e&&"fixed"===t)&&(i=o.offsetLeft,s=o.offsetTop)}return{width:l,height:a,x:i,y:s}}(e,n);else if("document"===t)r=function(e){const t=yG(e),n=bG(e),r=e.ownerDocument.body,o=uG(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=uG(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+wG(e);const i=-n.scrollTop;return"rtl"===XY(r).direction&&(a+=uG(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:a,y:i}}(yG(e));else if(tG(t))r=function(e,t){const n=gG(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,l=eG(e)?vG(e):{x:1,y:1};return{width:e.clientWidth*l.x,height:e.clientHeight*l.y,x:o*l.x,y:r*l.y}}(t,n);else{const n=mG(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return KY(r)}function _G(e,t){const n=xG(e);return!(n===t||!tG(n)||iG(n))&&("fixed"===XY(n).position||_G(n,t))}function EG(e,t){return eG(e)&&"fixed"!==XY(e).position?t?t(e):e.offsetParent:null}function OG(e,t){const n=JY(e);if(!eG(e))return n;let r=EG(e,t);for(;r&&oG(r)&&"static"===XY(r).position;)r=EG(r,t);return r&&("html"===ZY(r)||"body"===ZY(r)&&"static"===XY(r).position&&!lG(r))?n:r||function(e){let t=xG(e);for(;eG(t)&&!iG(t);){if(lG(t))return t;t=xG(t)}return null}(e)||n}function MG(e,t,n){const r=eG(t),o=yG(t),l="fixed"===n,a=gG(e,!0,l,t);let i={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&!l)if(("body"!==ZY(t)||rG(o))&&(i=bG(t)),eG(t)){const e=gG(t,!0,l,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=wG(o));return{x:a.left+i.scrollLeft-s.x,y:a.top+i.scrollTop-s.y,width:a.width,height:a.height}}const zG={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=kG(e).filter((e=>tG(e)&&"body"!==ZY(e))),o=null;const l="fixed"===XY(e).position;let a=l?xG(e):e;for(;tG(a)&&!iG(a);){const t=XY(a),n=lG(a);n||"fixed"!==t.position||(o=null),(l?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||rG(a)&&!n&&_G(e,a))?r=r.filter((e=>e!==a)):o=t,a=xG(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=l[0],i=l.reduce(((e,n)=>{const r=SG(t,n,o);return e.top=uG(r.top,e.top),e.right=sG(r.right,e.right),e.bottom=sG(r.bottom,e.bottom),e.left=uG(r.left,e.left),e}),SG(t,a,o));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=eG(n),l=yG(n);if(n===l)return t;let a={scrollLeft:0,scrollTop:0},i={x:1,y:1};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==ZY(n)||rG(l))&&(a=bG(n)),eG(n))){const e=gG(n);i=vG(n),s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{width:t.width*i.x,height:t.height*i.y,x:t.x*i.x-a.scrollLeft*i.x+s.x,y:t.y*i.y-a.scrollTop*i.y+s.y}},isElement:tG,getDimensions:function(e){return dG(e)},getOffsetParent:OG,getDocumentElement:yG,getScale:vG,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||OG,l=this.getDimensions;return{reference:MG(t,await o(n),r),floating:{x:0,y:0,...await l(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===XY(e).direction};fK({});const TG=({middleware:e,placement:t,strategy:n})=>{const r=Wt(),o=Wt(),l=Wt(),a=Wt(),i=Wt({}),s={x:l,y:a,placement:t,strategy:n,middlewareData:i},u=async()=>{if(!Xi)return;const l=(e=>{if(!Xi)return;if(!e)return e;const t=wc(e);return t||(Ft(e)?t:e)})(r),a=wc(o);if(!l||!a)return;const i=await((e,t,n)=>{const r=new Map,o={platform:zG,...n},l={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:l=[],platform:a}=n,i=l.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=WY(u,r,s),p=r,f={},v=0;for(let h=0;h{s[e].value=i[e]}))};return Nr((()=>{Zn((()=>{u()}))})),{...s,update:u,referenceRef:r,contentRef:o}},AG=(e,t)=>{const n={},r=Ut([]);return{children:r,addChild:o=>{var l,a;n[o.uid]=o,r.value=(l=t,a=n,RK(e.subTree).filter((e=>{var t;return xl(e)&&(null==(t=e.type)?void 0:t.name)===l&&!!e.component})).map((e=>e.component.uid)).map((e=>a[e])).filter((e=>!!e)))},removeChild:e=>{delete n[e],r.value=r.value.filter((t=>t.uid!==e))}}},LG=pK({type:String,values:zK,required:!1}),IG=Symbol("size"),RG=Symbol(),PG=Wt();function NG(e,t=void 0){const n=$l()?zo(RG,PG):PG;return e?oa((()=>{var r,o;return null!=(o=null==(r=n.value)?void 0:r[e])?o:t})):n}function jG(e,t){const n=NG(),r=tq(e,oa((()=>{var e;return(null==(e=n.value)?void 0:e.namespace)||XK}))),o=JK(oa((()=>{var e;return null==(e=n.value)?void 0:e.locale}))),l=BY(oa((()=>{var e;return(null==(e=n.value)?void 0:e.zIndex)||jY}))),a=oa((()=>{var e;return Gt(t)||(null==(e=n.value)?void 0:e.size)||""}));return VG(oa((()=>Gt(n)||{}))),{ns:r,locale:o,zIndex:l,size:a}}const VG=(e,t,n=!1)=>{var r;const o=!!$l(),l=o?NG():void 0,a=null!=(r=null==t?void 0:t.provide)?r:o?Mo:void 0;if(!a)return;const i=oa((()=>{const t=Gt(e);return(null==l?void 0:l.value)?BG(l.value,t):t}));return a(RG,i),a(GK,oa((()=>i.value.locale))),a(ZK,oa((()=>i.value.namespace))),a(VY,oa((()=>i.value.zIndex))),a(IG,{size:oa((()=>i.value.size||""))}),!n&&PG.value||(PG.value=i.value),i},BG=(e,t)=>{var n;const r=[...new Set([...Iz(e),...Iz(t)])],o={};for(const l of r)o[l]=null!=(n=t[l])?n:e[l];return o},HG=fK({a11y:{type:Boolean,default:!0},locale:{type:Object},size:LG,button:{type:Object},experimentalFeatures:{type:Object},keyboardNavigation:{type:Boolean,default:!0},message:{type:Object},zIndex:Number,namespace:{type:String,default:"el"}}),DG={},$G=bK(wr({name:"ElConfigProvider",props:HG,setup(e,{slots:t}){nr((()=>e.message),(e=>{Object.assign(DG,null!=e?e:{})}),{immediate:!0,deep:!0});const n=VG(e);return()=>eo(t,"default",{config:null==n?void 0:n.value})}})),FG=fK({zIndex:{type:[Number,String],default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),WG={scroll:({scrollTop:e,fixed:t})=>Mz(e)&&Oz(t),[EK]:e=>Oz(e)};var UG=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const KG="ElAffix",qG=wr({name:KG}),YG=wr({...qG,props:FG,emits:WG,setup(e,{expose:t,emit:n}){const r=e,o=tq("affix"),l=Ut(),a=Ut(),i=Ut(),{height:s}=sh(),{height:u,width:c,top:d,bottom:p,update:f}=mp(a,{windowScroll:!1}),v=mp(l),h=Wt(!1),m=Wt(0),g=Wt(0),y=oa((()=>({height:h.value?`${u.value}px`:"",width:h.value?`${c.value}px`:""}))),b=oa((()=>{if(!h.value)return{};const e=r.offset?$z(r.offset):0;return{height:`${u.value}px`,width:`${c.value}px`,top:"top"===r.position?e:"",bottom:"bottom"===r.position?e:"",transform:g.value?`translateY(${g.value}px)`:"",zIndex:r.zIndex}})),w=()=>{if(i.value)if(m.value=i.value instanceof Window?document.documentElement.scrollTop:i.value.scrollTop||0,"top"===r.position)if(r.target){const e=v.bottom.value-r.offset-u.value;h.value=r.offset>d.value&&v.bottom.value>0,g.value=e<0?e:0}else h.value=r.offset>d.value;else if(r.target){const e=s.value-v.top.value-r.offset-u.value;h.value=s.value-r.offsetv.top.value,g.value=e<0?-e:0}else h.value=s.value-r.offsetn("change",e))),Nr((()=>{var e;r.target?(l.value=null!=(e=document.querySelector(r.target))?e:void 0,l.value||Nz(KG,`Target is not existed: ${r.target}`)):l.value=document.documentElement,i.value=Wz(a.value,!0),f()})),_c(i,"scroll",(()=>{f(),n("scroll",{scrollTop:m.value,fixed:h.value})})),Zn(w),t({update:w,updateRoot:f}),(e,t)=>(vl(),bl("div",{ref_key:"root",ref:a,class:X(Gt(o).b()),style:K(Gt(y))},[El("div",{class:X({[Gt(o).m("fixed")]:h.value}),style:K(Gt(b))},[eo(e.$slots,"default")],6)],6))}}),GG=bK(UG(YG,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]])),JG=fK({size:{type:[Number,String]},color:{type:String}}),XG=wr({name:"ElIcon",inheritAttrs:!1}),QG=wr({...XG,props:JG,setup(e){const t=e,n=tq("icon"),r=oa((()=>{const{size:e,color:n}=t;return e||n?{fontSize:Ez(e)?void 0:$z(e),"--color":n}:{}}));return(e,t)=>(vl(),bl("i",Nl({class:Gt(n).b(),style:Gt(r)},e.$attrs),[eo(e.$slots,"default")],16))}}),ZG=bK(UG(QG,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]])),eJ=fK({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Iz(gK),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:["light","dark"],default:"light"}}),tJ={close:e=>e instanceof MouseEvent},nJ=wr({name:"ElAlert"}),rJ=wr({...nJ,props:eJ,emits:tJ,setup(e,{emit:t}){const n=e,{Close:r}=mK,o=so(),l=tq("alert"),a=Wt(!0),i=oa((()=>gK[n.type])),s=oa((()=>[l.e("icon"),{[l.is("big")]:!!n.description||!!o.default}])),u=oa((()=>({[l.is("bold")]:n.description||o.default}))),c=e=>{a.value=!1,t("close",e)};return(e,t)=>(vl(),wl(La,{name:Gt(l).b("fade"),persisted:""},{default:Bn((()=>[ir(El("div",{class:X([Gt(l).b(),Gt(l).m(e.type),Gt(l).is("center",e.center),Gt(l).is(e.effect)]),role:"alert"},[e.showIcon&&Gt(i)?(vl(),wl(Gt(ZG),{key:0,class:X(Gt(s))},{default:Bn((()=>[(vl(),wl(Yr(Gt(i))))])),_:1},8,["class"])):Ll("v-if",!0),El("div",{class:X(Gt(l).e("content"))},[e.title||e.$slots.title?(vl(),bl("span",{key:0,class:X([Gt(l).e("title"),Gt(u)])},[eo(e.$slots,"title",{},(()=>[Tl(ve(e.title),1)]))],2)):Ll("v-if",!0),e.$slots.default||e.description?(vl(),bl("p",{key:1,class:X(Gt(l).e("description"))},[eo(e.$slots,"default",{},(()=>[Tl(ve(e.description),1)]))],2)):Ll("v-if",!0),e.closable?(vl(),bl(sl,{key:2},[e.closeText?(vl(),bl("div",{key:0,class:X([Gt(l).e("close-btn"),Gt(l).is("customed")]),onClick:c},ve(e.closeText),3)):(vl(),wl(Gt(ZG),{key:1,class:X(Gt(l).e("close-btn")),onClick:c},{default:Bn((()=>[Ol(Gt(r))])),_:1},8,["class"]))],64)):Ll("v-if",!0)],2)],2),[[wi,a.value]])])),_:3},8,["name"]))}}),oJ=bK(UG(rJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]])),lJ=Symbol("formContextKey"),aJ=Symbol("formItemContextKey"),iJ=(e,t={})=>{const n=Wt(void 0),r=t.prop?n:aq("size"),o=t.global?n:(()=>{const e=zo(IG,{});return oa((()=>Gt(e.size)||""))})(),l=t.form?{size:void 0}:zo(lJ,void 0),a=t.formItem?{size:void 0}:zo(aJ,void 0);return oa((()=>r.value||Gt(e)||(null==a?void 0:a.size)||(null==l?void 0:l.size)||o.value||""))},sJ=e=>{const t=aq("disabled"),n=zo(lJ,void 0);return oa((()=>t.value||Gt(e)||(null==n?void 0:n.disabled)||!1))},uJ=()=>({form:zo(lJ,void 0),formItem:zo(aJ,void 0)}),cJ=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=Wt(!1)),r||(r=Wt(!1));const o=Wt();let l;const a=oa((()=>{var n;return!!(!e.label&&t&&t.inputIds&&(null==(n=t.inputIds)?void 0:n.length)<=1)}));return Nr((()=>{l=nr([rn(e,"id"),n],(([e,n])=>{const l=null!=e?e:n?void 0:MY().value;l!==o.value&&((null==t?void 0:t.removeInputId)&&(o.value&&t.removeInputId(o.value),(null==r?void 0:r.value)||n||!l||t.addInputId(l)),o.value=l)}),{immediate:!0})})),Hr((()=>{l&&l(),(null==t?void 0:t.removeInputId)&&o.value&&t.removeInputId(o.value)})),{isLabeledByFormItem:a,inputId:o}},dJ=fK({size:{type:String,values:zK},disabled:Boolean}),pJ=fK({...dJ,model:Object,rules:{type:Object},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),fJ={validate:(e,t,n)=>(p(e)||y(e))&&Oz(t)&&y(n)};function vJ(){const e=Wt([]),t=oa((()=>{if(!e.value.length)return"0";const t=Math.max(...e.value);return t?`${t}px`:""}));function n(n){const r=e.value.indexOf(n);return-1===r&&t.value,r}return{autoLabelWidth:t,registerLabelWidth:function(t,r){if(t&&r){const o=n(r);e.value.splice(o,1,t)}else t&&e.value.push(t)},deregisterLabelWidth:function(t){const r=n(t);r>-1&&e.value.splice(r,1)}}}const hJ=(e,t)=>{const n=Kw(t);return n.length>0?e.filter((e=>e.prop&&n.includes(e.prop))):e},mJ=wr({name:"ElForm"}),gJ=wr({...mJ,props:pJ,emits:fJ,setup(e,{expose:t,emit:n}){const r=e,o=[],l=iJ(),a=tq("form"),i=oa((()=>{const{labelPosition:e,inline:t}=r;return[a.b(),a.m(l.value||"default"),{[a.m(`label-${e}`)]:e,[a.m("inline")]:t}]})),s=(e=[])=>{r.model&&hJ(o,e).forEach((e=>e.resetField()))},u=(e=[])=>{hJ(o,e).forEach((e=>e.clearValidate()))},c=oa((()=>!!r.model)),d=async e=>p(void 0,e),p=async(e=[],t)=>{const n=!g(t);try{const n=await(async(e=[])=>{if(!c.value)return!1;const t=(e=>{if(0===o.length)return[];const t=hJ(o,e);return t.length?t:[]})(e);if(0===t.length)return!0;let n={};for(const o of t)try{await o.validate("")}catch(r){n={...n,...r}}return 0===Object.keys(n).length||Promise.reject(n)})(e);return!0===n&&(null==t||t(n)),n}catch(l){if(l instanceof Error)throw l;const e=l;return r.scrollToError&&f(Object.keys(e)[0]),null==t||t(!1,e),n&&Promise.reject(e)}},f=e=>{var t;const n=hJ(o,e)[0];n&&(null==(t=n.$el)||t.scrollIntoView(r.scrollIntoViewOptions))};return nr((()=>r.rules),(()=>{r.validateOnRuleChange&&d().catch((e=>{}))}),{deep:!0}),Mo(lJ,zt({...en(r),emit:n,resetFields:s,clearValidate:u,validateField:p,addField:e=>{o.push(e)},removeField:e=>{e.prop&&o.splice(o.indexOf(e),1)},...vJ()})),t({validate:d,validateField:p,resetFields:s,clearValidate:u,scrollToField:f}),(e,t)=>(vl(),bl("form",{class:X(Gt(i))},[eo(e.$slots,"default")],2))}});var yJ=UG(gJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function bJ(){return bJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),r=1;r=l)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}})):e}function OJ(e,t){return!(null!=e&&("array"!==t||!Array.isArray(e)||e.length)&&(n=t,"string"!==n&&"url"!==n&&"hex"!==n&&"email"!==n&&"date"!==n&&"pattern"!==n||"string"!=typeof e||e));var n}function MJ(e,t,n){var r=0,o=e.length;!function l(a){if(a&&a.length)n(a);else{var i=r;r+=1,i()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,PJ=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,NJ={integer:function(e){return NJ.number(e)&&parseInt(e,10)===e},float:function(e){return NJ.number(e)&&!NJ.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!NJ.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(RJ)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(LJ)return LJ;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),l=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),i=new RegExp("^"+o+"$"),s=function(e){return e&&e.exact?l:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};s.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},s.v6=function(e){return e&&e.exact?i:new RegExp(""+t(e)+o+t(e),"g")};var u=s.v4().source,c=s.v6().source;return LJ=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+u+"|"+c+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(PJ)}},jJ="enum",VJ=IJ,BJ=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(EJ(o.messages.whitespace,e.fullField))},HJ=function(e,t,n,r,o){if(e.required&&void 0===t)IJ(e,t,n,r,o);else{var l=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(l)>-1?NJ[l](t)||r.push(EJ(o.messages.types[l],e.fullField,e.type)):l&&typeof t!==e.type&&r.push(EJ(o.messages.types[l],e.fullField,e.type))}},DJ=function(e,t,n,r,o){var l="number"==typeof e.len,a="number"==typeof e.min,i="number"==typeof e.max,s=t,u=null,c="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(c?u="number":d?u="string":p&&(u="array"),!u)return!1;p&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),l?s!==e.len&&r.push(EJ(o.messages[u].len,e.fullField,e.len)):a&&!i&&se.max?r.push(EJ(o.messages[u].max,e.fullField,e.max)):a&&i&&(se.max)&&r.push(EJ(o.messages[u].range,e.fullField,e.min,e.max))},$J=function(e,t,n,r,o){e[jJ]=Array.isArray(e[jJ])?e[jJ]:[],-1===e[jJ].indexOf(t)&&r.push(EJ(o.messages[jJ],e.fullField,e[jJ].join(", ")))},FJ=function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(EJ(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(EJ(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},WJ=function(e,t,n,r,o){var l=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(OJ(t,l)&&!e.required)return n();VJ(e,t,r,a,o,l),OJ(t,l)||HJ(e,t,r,a,o)}n(a)},UJ={string:function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(OJ(t,"string")&&!e.required)return n();VJ(e,t,r,l,o,"string"),OJ(t,"string")||(HJ(e,t,r,l,o),DJ(e,t,r,l,o),FJ(e,t,r,l,o),!0===e.whitespace&&BJ(e,t,r,l,o))}n(l)},method:function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(OJ(t)&&!e.required)return n();VJ(e,t,r,l,o),void 0!==t&&HJ(e,t,r,l,o)}n(l)},number:function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),OJ(t)&&!e.required)return n();VJ(e,t,r,l,o),void 0!==t&&(HJ(e,t,r,l,o),DJ(e,t,r,l,o))}n(l)},boolean:function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(OJ(t)&&!e.required)return n();VJ(e,t,r,l,o),void 0!==t&&HJ(e,t,r,l,o)}n(l)},regexp:function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(OJ(t)&&!e.required)return n();VJ(e,t,r,l,o),OJ(t)||HJ(e,t,r,l,o)}n(l)},integer:function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(OJ(t)&&!e.required)return n();VJ(e,t,r,l,o),void 0!==t&&(HJ(e,t,r,l,o),DJ(e,t,r,l,o))}n(l)},float:function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(OJ(t)&&!e.required)return n();VJ(e,t,r,l,o),void 0!==t&&(HJ(e,t,r,l,o),DJ(e,t,r,l,o))}n(l)},array:function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();VJ(e,t,r,l,o,"array"),null!=t&&(HJ(e,t,r,l,o),DJ(e,t,r,l,o))}n(l)},object:function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(OJ(t)&&!e.required)return n();VJ(e,t,r,l,o),void 0!==t&&HJ(e,t,r,l,o)}n(l)},enum:function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(OJ(t)&&!e.required)return n();VJ(e,t,r,l,o),void 0!==t&&$J(e,t,r,l,o)}n(l)},pattern:function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(OJ(t,"string")&&!e.required)return n();VJ(e,t,r,l,o),OJ(t,"string")||FJ(e,t,r,l,o)}n(l)},date:function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(OJ(t,"date")&&!e.required)return n();var a;VJ(e,t,r,l,o),OJ(t,"date")||(a=t instanceof Date?t:new Date(t),HJ(e,a,r,l,o),a&&DJ(e,a.getTime(),r,l,o))}n(l)},url:WJ,hex:WJ,email:WJ,required:function(e,t,n,r,o){var l=[],a=Array.isArray(t)?"array":typeof t;VJ(e,t,r,l,o,a),n(l)},any:function(e,t,n,r,o){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(OJ(t)&&!e.required)return n();VJ(e,t,r,l,o)}n(l)}};function KJ(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var qJ=KJ(),YJ=function(){function e(e){this.rules=null,this._messages=qJ,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=AJ(KJ(),e)),this._messages},t.validate=function(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var l=t,a=n,i=r;if("function"==typeof a&&(i=a,a={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,l),Promise.resolve(l);if(a.messages){var s=this.messages();s===qJ&&(s=KJ()),AJ(s,a.messages),a.messages=s}else a.messages=this.messages();var u={};(a.keys||Object.keys(this.rules)).forEach((function(e){var n=o.rules[e],r=l[e];n.forEach((function(n){var a=n;"function"==typeof a.transform&&(l===t&&(l=bJ({},l)),r=l[e]=a.transform(r)),(a="function"==typeof a?{validator:a}:bJ({},a)).validator=o.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=o.getType(a),u[e]=u[e]||[],u[e].push({rule:a,value:r,source:l,field:e}))}))}));var c={};return function(e,t,n,r,o){if(t.first){var l=new Promise((function(t,l){var a,i;MJ((a=e,i=[],Object.keys(a).forEach((function(e){i.push.apply(i,a[e]||[])})),i),n,(function(e){return r(e),e.length?l(new zJ(e,_J(e))):t(o)}))}));return l.catch((function(e){return e})),l}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],i=Object.keys(e),s=i.length,u=0,c=[],d=new Promise((function(t,l){var d=function(e){if(c.push.apply(c,e),++u===s)return r(c),c.length?l(new zJ(c,_J(c))):t(o)};i.length||(r(c),t(o)),i.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?MJ(r,n,d):function(e,t,n){var r=[],o=0,l=e.length;function a(e){r.push.apply(r,e||[]),++o===l&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}(u,a,(function(t,n){var r,o=t.rule,i=!("object"!==o.type&&"array"!==o.type||"object"!=typeof o.fields&&"object"!=typeof o.defaultField);function s(e,t){return bJ({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function u(r){void 0===r&&(r=[]);var u=Array.isArray(r)?r:[r];!a.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==o.message&&(u=[].concat(o.message));var d=u.map(TJ(o,l));if(a.first&&d.length)return c[o.field]=1,n(d);if(i){if(o.required&&!t.value)return void 0!==o.message?d=[].concat(o.message).map(TJ(o,l)):a.error&&(d=[a.error(o,EJ(a.messages.required,o.field))]),n(d);var p={};o.defaultField&&Object.keys(t.value).map((function(e){p[e]=o.defaultField})),p=bJ({},p,t.rule.fields);var f={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];f[e]=n.map(s.bind(null,e))}));var v=new e(f);v.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),v.validate(t.value,t.rule.options||a,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(i=i&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,u,t.source,a);else if(o.validator){try{r=o.validator(o,t.value,u,t.source,a)}catch(d){console.error,a.suppressValidatorError||setTimeout((function(){throw d}),0),u(d.message)}!0===r?u():!1===r?u("function"==typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?u(r):r instanceof Error&&u(r.message)}r&&r.then&&r.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){var t,n,r=[],o={};for(var a=0;a");const o=tq("form"),l=Wt(),a=Wt(0),i=(r="update")=>{wn((()=>{t.default&&e.isAutoWidth&&("update"===r?a.value=(()=>{var e;if(null==(e=l.value)?void 0:e.firstElementChild){const e=window.getComputedStyle(l.value.firstElementChild).width;return Math.ceil(Number.parseFloat(e))}return 0})():"remove"===r&&(null==n||n.deregisterLabelWidth(a.value)))}))},s=()=>i("update");return Nr((()=>{s()})),Br((()=>{i("remove")})),Vr((()=>s())),nr(a,((t,r)=>{e.updateAll&&(null==n||n.registerLabelWidth(t,r))})),hp(oa((()=>{var e,t;return null!=(t=null==(e=l.value)?void 0:e.firstElementChild)?t:null})),s),()=>{var i,s;if(!t)return null;const{isAutoWidth:u}=e;if(u){const e=null==n?void 0:n.autoLabelWidth,s={};if((null==r?void 0:r.hasLabel)&&e&&"auto"!==e){const t=Math.max(0,Number.parseInt(e,10)-a.value),r="left"===n.labelPosition?"marginRight":"marginLeft";t&&(s[r]=`${t}px`)}return Ol("div",{ref:l,class:[o.be("item","label-wrap")],style:s},[null==(i=t.default)?void 0:i.call(t)])}return Ol(sl,{ref:l},[null==(s=t.default)?void 0:s.call(t)])}}});const QJ=["role","aria-labelledby"],ZJ=wr({name:"ElFormItem"}),eX=wr({...ZJ,props:GJ,setup(e,{expose:t}){const n=e,r=so(),o=zo(lJ,void 0),l=zo(aJ,void 0),a=iJ(void 0,{formItem:!1}),i=tq("form-item"),s=MY().value,u=Wt([]),c=Wt(""),d=Ps(c,100),p=Wt(""),f=Wt();let v,h=!1;const m=oa((()=>{if("top"===(null==o?void 0:o.labelPosition))return{};const e=$z(n.labelWidth||(null==o?void 0:o.labelWidth)||"");return e?{width:e}:{}})),b=oa((()=>{if("top"===(null==o?void 0:o.labelPosition)||(null==o?void 0:o.inline))return{};if(!n.label&&!n.labelWidth&&O)return{};const e=$z(n.labelWidth||(null==o?void 0:o.labelWidth)||"");return n.label||r.label?{}:{marginLeft:e}})),w=oa((()=>[i.b(),i.m(a.value),i.is("error","error"===c.value),i.is("validating","validating"===c.value),i.is("success","success"===c.value),i.is("required",A.value||n.required),i.is("no-asterisk",null==o?void 0:o.hideRequiredAsterisk),"right"===(null==o?void 0:o.requireAsteriskPosition)?"asterisk-right":"asterisk-left",{[i.m("feedback")]:null==o?void 0:o.statusIcon}])),x=oa((()=>Oz(n.inlineMessage)?n.inlineMessage:(null==o?void 0:o.inlineMessage)||!1)),C=oa((()=>[i.e("error"),{[i.em("error","inline")]:x.value}])),k=oa((()=>n.prop?y(n.prop)?n.prop:n.prop.join("."):"")),S=oa((()=>!(!n.label&&!r.label))),_=oa((()=>n.for||1===u.value.length?u.value[0]:void 0)),E=oa((()=>!_.value&&S.value)),O=!!l,M=oa((()=>{const e=null==o?void 0:o.model;if(e&&n.prop)return Rz(e,n.prop).value})),z=oa((()=>{const{required:e}=n,t=[];n.rules&&t.push(...Kw(n.rules));const r=null==o?void 0:o.rules;if(r&&n.prop){const e=Rz(r,n.prop).value;e&&t.push(...Kw(e))}if(void 0!==e){const n=t.map(((e,t)=>[e,t])).filter((([e])=>Object.keys(e).includes("required")));if(n.length>0)for(const[r,o]of n)r.required!==e&&(t[o]={...r,required:e});else t.push({required:e})}return t})),T=oa((()=>z.value.length>0)),A=oa((()=>z.value.some((e=>e.required)))),L=oa((()=>{var e;return"error"===d.value&&n.showMessage&&(null==(e=null==o?void 0:o.showMessage)||e)})),I=oa((()=>`${n.label||""}${(null==o?void 0:o.labelSuffix)||""}`)),R=e=>{c.value=e},P=async(e,t)=>{if(h||!n.prop)return!1;const r=g(t);if(!T.value)return null==t||t(!1),!1;const l=(a=e,z.value.filter((e=>!e.trigger||!a||(Array.isArray(e.trigger)?e.trigger.includes(a):e.trigger===a))).map((({trigger:e,...t})=>t)));var a;return 0===l.length?(null==t||t(!0),!0):(R("validating"),(async e=>{const t=k.value;return new YJ({[t]:e}).validate({[t]:M.value},{firstFields:!0}).then((()=>(R("success"),null==o||o.emit("validate",n.prop,!0,""),!0))).catch((e=>((e=>{var t,r;const{errors:l,fields:a}=e;R("error"),p.value=l?null!=(r=null==(t=null==l?void 0:l[0])?void 0:t.message)?r:`${n.prop} is required`:"",null==o||o.emit("validate",n.prop,!1,p.value)})(e),Promise.reject(e))))})(l).then((()=>(null==t||t(!0),!0))).catch((e=>{const{fields:n}=e;return null==t||t(!1,n),!r&&Promise.reject(n)})))},N=()=>{R(""),p.value="",h=!1},j=async()=>{const e=null==o?void 0:o.model;if(!e||!n.prop)return;const t=Rz(e,n.prop);h=!0,t.value=xC(v),await wn(),N(),h=!1};nr((()=>n.error),(e=>{p.value=e||"",R(e?"error":"")}),{immediate:!0}),nr((()=>n.validateStatus),(e=>R(e||"")));const V=zt({...en(n),$el:f,size:a,validateState:c,labelId:s,inputIds:u,isGroup:E,hasLabel:S,addInputId:e=>{u.value.includes(e)||u.value.push(e)},removeInputId:e=>{u.value=u.value.filter((t=>t!==e))},resetField:j,clearValidate:N,validate:P});return Mo(aJ,V),Nr((()=>{n.prop&&(null==o||o.addField(V),v=xC(M.value))})),Br((()=>{null==o||o.removeField(V)})),t({size:a,validateMessage:p,validateState:c,validate:P,clearValidate:N,resetField:j}),(e,t)=>{var n;return vl(),bl("div",{ref_key:"formItemRef",ref:f,class:X(Gt(w)),role:Gt(E)?"group":void 0,"aria-labelledby":Gt(E)?Gt(s):void 0},[Ol(Gt(XJ),{"is-auto-width":"auto"===Gt(m).width,"update-all":"auto"===(null==(n=Gt(o))?void 0:n.labelWidth)},{default:Bn((()=>[Gt(S)?(vl(),wl(Yr(Gt(_)?"label":"div"),{key:0,id:Gt(s),for:Gt(_),class:X(Gt(i).e("label")),style:K(Gt(m))},{default:Bn((()=>[eo(e.$slots,"label",{label:Gt(I)},(()=>[Tl(ve(Gt(I)),1)]))])),_:3},8,["id","for","class","style"])):Ll("v-if",!0)])),_:3},8,["is-auto-width","update-all"]),El("div",{class:X(Gt(i).e("content")),style:K(Gt(b))},[eo(e.$slots,"default"),Ol(Xa,{name:`${Gt(i).namespace.value}-zoom-in-top`},{default:Bn((()=>[Gt(L)?eo(e.$slots,"error",{key:0,error:p.value},(()=>[El("div",{class:X(Gt(C))},ve(p.value),3)])):Ll("v-if",!0)])),_:3},8,["name"])],6)],10,QJ)}}});var tX=UG(eX,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const nX=bK(yJ,{FormItem:tX}),rX=xK(tX);let oX;const lX=`\n height:0 !important;\n visibility:hidden !important;\n ${ch()?"":"overflow:hidden !important;"}\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n`,aX=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function iX(e,t=1,n){var r;oX||(oX=document.createElement("textarea"),document.body.appendChild(oX));const{paddingSize:o,borderSize:l,boxSizing:a,contextStyle:i}=function(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:aX.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}(e);oX.setAttribute("style",`${i};${lX}`),oX.value=e.value||e.placeholder||"";let s=oX.scrollHeight;const u={};"border-box"===a?s+=l:"content-box"===a&&(s-=o),oX.value="";const c=oX.scrollHeight-o;if(Mz(t)){let e=c*t;"border-box"===a&&(e=e+o+l),s=Math.max(e,s),u.minHeight=`${e}px`}if(Mz(n)){let e=c*n;"border-box"===a&&(e=e+o+l),s=Math.min(e,s)}return u.height=`${s}px`,null==(r=oX.parentNode)||r.removeChild(oX),oX=void 0,u}const sX=fK({id:{type:String,default:void 0},size:LG,disabled:Boolean,modelValue:{type:[String,Number,Object],default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:vK},prefixIcon:{type:vK},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:[Object,Array,String],default:()=>({})}}),uX={[_K]:e=>y(e),input:e=>y(e),change:e=>y(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},cX=["role"],dX=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],pX=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],fX=wr({name:"ElInput",inheritAttrs:!1}),vX=wr({...fX,props:sX,emits:uX,setup(e,{expose:t,emit:n}){const o=e,l=uo(),a=so(),i=oa((()=>{const e={};return"combobox"===o.containerRole&&(e["aria-haspopup"]=l["aria-haspopup"],e["aria-owns"]=l["aria-owns"],e["aria-expanded"]=l["aria-expanded"]),e})),s=oa((()=>["textarea"===o.type?g.b():m.b(),m.m(v.value),m.is("disabled",h.value),m.is("exceed",B.value),{[m.b("group")]:a.prepend||a.append,[m.bm("group","append")]:a.append,[m.bm("group","prepend")]:a.prepend,[m.m("prefix")]:a.prefix||o.prefixIcon,[m.m("suffix")]:a.suffix||o.suffixIcon||o.clearable||o.showPassword,[m.bm("suffix","password-clear")]:P.value&&N.value},l.class])),u=oa((()=>[m.e("wrapper"),m.is("focus",x.value)])),c=FK({excludeKeys:oa((()=>Object.keys(i.value)))}),{form:d,formItem:p}=uJ(),{inputId:f}=cJ(o,{formItemContext:p}),v=iJ(),h=sJ(),m=tq("input"),g=tq("textarea"),y=Ut(),b=Ut(),x=Wt(!1),C=Wt(!1),k=Wt(!1),S=Wt(!1),_=Wt(),E=Ut(o.inputStyle),O=oa((()=>y.value||b.value)),M=oa((()=>{var e;return null!=(e=null==d?void 0:d.statusIcon)&&e})),z=oa((()=>(null==p?void 0:p.validateState)||"")),T=oa((()=>z.value&&yK[z.value])),A=oa((()=>S.value?IU:hj)),L=oa((()=>[l.style,o.inputStyle])),I=oa((()=>[o.inputStyle,E.value,{resize:o.resize}])),R=oa((()=>q_(o.modelValue)?"":String(o.modelValue))),P=oa((()=>o.clearable&&!h.value&&!o.readonly&&!!R.value&&(x.value||C.value))),N=oa((()=>o.showPassword&&!h.value&&!o.readonly&&!!R.value&&(!!R.value||x.value))),j=oa((()=>o.showWordLimit&&!!c.value.maxlength&&("text"===o.type||"textarea"===o.type)&&!h.value&&!o.readonly&&!o.showPassword)),V=oa((()=>R.value.length)),B=oa((()=>!!j.value&&V.value>Number(c.value.maxlength))),H=oa((()=>!!a.suffix||!!o.suffixIcon||P.value||o.showPassword||j.value||!!z.value&&M.value)),[D,$]=function(e){const t=Wt();return[function(){if(null==e.value)return;const{selectionStart:n,selectionEnd:r,value:o}=e.value;if(null==n||null==r)return;const l=o.slice(0,Math.max(0,n)),a=o.slice(Math.max(0,r));t.value={selectionStart:n,selectionEnd:r,value:o,beforeTxt:l,afterTxt:a}},function(){if(null==e.value||null==t.value)return;const{value:n}=e.value,{beforeTxt:r,afterTxt:o,selectionStart:l}=t.value;if(null==r||null==o||null==l)return;let a=n.length;if(n.endsWith(o))a=n.length-o.length;else if(n.startsWith(r))a=r.length;else{const e=r[l-1],t=n.indexOf(e,l-1);-1!==t&&(a=t+1)}e.value.setSelectionRange(a,a)}]}(y);hp(b,(e=>{if(W(),!j.value||"both"!==o.resize)return;const t=e[0],{width:n}=t.contentRect;_.value={right:`calc(100% - ${n+15+6}px)`}}));const F=()=>{const{type:e,autosize:t}=o;if(Xi&&"textarea"===e&&b.value)if(t){const e=w(t)?t.minRows:void 0,n=w(t)?t.maxRows:void 0,r=iX(b.value,e,n);E.value={overflowY:"hidden",...r},wn((()=>{b.value.offsetHeight,E.value=r}))}else E.value={minHeight:iX(b.value).minHeight}},W=(e=>{let t=!1;return()=>{var n;!t&&o.autosize&&(null===(null==(n=b.value)?void 0:n.offsetParent)||(e(),t=!0))}})(F),U=()=>{const e=O.value;e&&e.value!==R.value&&(e.value=R.value)},q=async e=>{D();let{value:t}=e.target;o.formatter&&(t=o.parser?o.parser(t):t,t=o.formatter(t)),k.value||(t!==R.value?(n(_K,t),n("input",t),await wn(),U(),$()):U())},Y=e=>{n("change",e.target.value)},G=e=>{n("compositionstart",e),k.value=!0},J=e=>{var t;n("compositionupdate",e);const r=null==(t=e.target)?void 0:t.value,o=r[r.length-1]||"";k.value=!jK(o)},Q=e=>{n("compositionend",e),k.value&&(k.value=!1,q(e))},Z=()=>{S.value=!S.value,ee()},ee=async()=>{var e;await wn(),null==(e=O.value)||e.focus()},te=e=>{x.value=!0,n("focus",e)},ne=e=>{var t;x.value=!1,n("blur",e),o.validateEvent&&(null==(t=null==p?void 0:p.validate)||t.call(p,"blur").catch((e=>{})))},re=e=>{C.value=!1,n("mouseleave",e)},oe=e=>{C.value=!0,n("mouseenter",e)},le=e=>{n("keydown",e)},ae=()=>{n(_K,""),n("change",""),n("clear"),n("input","")};return nr((()=>o.modelValue),(()=>{var e;wn((()=>F())),o.validateEvent&&(null==(e=null==p?void 0:p.validate)||e.call(p,"change").catch((e=>{})))})),nr(R,(()=>U())),nr((()=>o.type),(async()=>{await wn(),U(),F()})),Nr((()=>{!o.formatter&&o.parser,U(),wn(F)})),t({input:y,textarea:b,ref:O,textareaStyle:I,autosize:rn(o,"autosize"),focus:ee,blur:()=>{var e;return null==(e=O.value)?void 0:e.blur()},select:()=>{var e;null==(e=O.value)||e.select()},clear:ae,resizeTextarea:F}),(e,t)=>ir((vl(),bl("div",Nl(Gt(i),{class:Gt(s),style:Gt(L),role:e.containerRole,onMouseenter:oe,onMouseleave:re}),[Ll(" input "),"textarea"!==e.type?(vl(),bl(sl,{key:0},[Ll(" prepend slot "),e.$slots.prepend?(vl(),bl("div",{key:0,class:X(Gt(m).be("group","prepend"))},[eo(e.$slots,"prepend")],2)):Ll("v-if",!0),El("div",{class:X(Gt(u))},[Ll(" prefix slot "),e.$slots.prefix||e.prefixIcon?(vl(),bl("span",{key:0,class:X(Gt(m).e("prefix"))},[El("span",{class:X(Gt(m).e("prefix-inner")),onClick:ee},[eo(e.$slots,"prefix"),e.prefixIcon?(vl(),wl(Gt(ZG),{key:0,class:X(Gt(m).e("icon"))},{default:Bn((()=>[(vl(),wl(Yr(e.prefixIcon)))])),_:1},8,["class"])):Ll("v-if",!0)],2)],2)):Ll("v-if",!0),El("input",Nl({id:Gt(f),ref_key:"input",ref:y,class:Gt(m).e("inner")},Gt(c),{type:e.showPassword?S.value?"text":"password":e.type,disabled:Gt(h),formatter:e.formatter,parser:e.parser,readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.label,placeholder:e.placeholder,style:e.inputStyle,form:o.form,onCompositionstart:G,onCompositionupdate:J,onCompositionend:Q,onInput:q,onFocus:te,onBlur:ne,onChange:Y,onKeydown:le}),null,16,dX),Ll(" suffix slot "),Gt(H)?(vl(),bl("span",{key:1,class:X(Gt(m).e("suffix"))},[El("span",{class:X(Gt(m).e("suffix-inner")),onClick:ee},[Gt(P)&&Gt(N)&&Gt(j)?Ll("v-if",!0):(vl(),bl(sl,{key:0},[eo(e.$slots,"suffix"),e.suffixIcon?(vl(),wl(Gt(ZG),{key:0,class:X(Gt(m).e("icon"))},{default:Bn((()=>[(vl(),wl(Yr(e.suffixIcon)))])),_:1},8,["class"])):Ll("v-if",!0)],64)),Gt(P)?(vl(),wl(Gt(ZG),{key:1,class:X([Gt(m).e("icon"),Gt(m).e("clear")]),onMousedown:gi(Gt(r),["prevent"]),onClick:ae},{default:Bn((()=>[Ol(Gt(BL))])),_:1},8,["class","onMousedown"])):Ll("v-if",!0),Gt(N)?(vl(),wl(Gt(ZG),{key:2,class:X([Gt(m).e("icon"),Gt(m).e("password")]),onClick:Z},{default:Bn((()=>[(vl(),wl(Yr(Gt(A))))])),_:1},8,["class"])):Ll("v-if",!0),Gt(j)?(vl(),bl("span",{key:3,class:X(Gt(m).e("count"))},[El("span",{class:X(Gt(m).e("count-inner"))},ve(Gt(V))+" / "+ve(Gt(c).maxlength),3)],2)):Ll("v-if",!0),Gt(z)&&Gt(T)&&Gt(M)?(vl(),wl(Gt(ZG),{key:4,class:X([Gt(m).e("icon"),Gt(m).e("validateIcon"),Gt(m).is("loading","validating"===Gt(z))])},{default:Bn((()=>[(vl(),wl(Yr(Gt(T))))])),_:1},8,["class"])):Ll("v-if",!0)],2)],2)):Ll("v-if",!0)],2),Ll(" append slot "),e.$slots.append?(vl(),bl("div",{key:1,class:X(Gt(m).be("group","append"))},[eo(e.$slots,"append")],2)):Ll("v-if",!0)],64)):(vl(),bl(sl,{key:1},[Ll(" textarea "),El("textarea",Nl({id:Gt(f),ref_key:"textarea",ref:b,class:Gt(g).e("inner")},Gt(c),{tabindex:e.tabindex,disabled:Gt(h),readonly:e.readonly,autocomplete:e.autocomplete,style:Gt(I),"aria-label":e.label,placeholder:e.placeholder,form:o.form,onCompositionstart:G,onCompositionupdate:J,onCompositionend:Q,onInput:q,onFocus:te,onBlur:ne,onChange:Y,onKeydown:le}),null,16,pX),Gt(j)?(vl(),bl("span",{key:0,style:K(_.value),class:X(Gt(m).e("count"))},ve(Gt(V))+" / "+ve(Gt(c).maxlength),7)):Ll("v-if",!0)],64))],16,cX)),[[wi,"hidden"!==e.type]])}}),hX=bK(UG(vX,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]])),mX={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},gX=Symbol("scrollbarContextKey"),yX=wr({__name:"thumb",props:fK({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),setup(e){const t=e,n=zo(gX),r=tq("scrollbar");n||Nz("Thumb","can not inject scrollbar context");const o=Wt(),l=Wt(),a=Wt({}),i=Wt(!1);let s=!1,u=!1,c=Xi?document.onselectstart:null;const d=oa((()=>mX[t.vertical?"vertical":"horizontal"])),p=oa((()=>(({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}))({size:t.size,move:t.move,bar:d.value}))),f=oa((()=>o.value[d.value.offset]**2/n.wrapElement[d.value.scrollSize]/t.ratio/l.value[d.value.offset])),v=e=>{var t;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(t=window.getSelection())||t.removeAllRanges(),m(e);const n=e.currentTarget;n&&(a.value[d.value.axis]=n[d.value.offset]-(e[d.value.client]-n.getBoundingClientRect()[d.value.direction]))},h=e=>{if(!l.value||!o.value||!n.wrapElement)return;const t=100*(Math.abs(e.target.getBoundingClientRect()[d.value.direction]-e[d.value.client])-l.value[d.value.offset]/2)*f.value/o.value[d.value.offset];n.wrapElement[d.value.scroll]=t*n.wrapElement[d.value.scrollSize]/100},m=e=>{e.stopImmediatePropagation(),s=!0,document.addEventListener("mousemove",g),document.addEventListener("mouseup",y),c=document.onselectstart,document.onselectstart=()=>!1},g=e=>{if(!o.value||!l.value)return;if(!1===s)return;const t=a.value[d.value.axis];if(!t)return;const r=100*(-1*(o.value.getBoundingClientRect()[d.value.direction]-e[d.value.client])-(l.value[d.value.offset]-t))*f.value/o.value[d.value.offset];n.wrapElement[d.value.scroll]=r*n.wrapElement[d.value.scrollSize]/100},y=()=>{s=!1,a.value[d.value.axis]=0,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",y),b(),u&&(i.value=!1)};Br((()=>{b(),document.removeEventListener("mouseup",y)}));const b=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return _c(rn(n,"scrollbarElement"),"mousemove",(()=>{u=!1,i.value=!!t.size})),_c(rn(n,"scrollbarElement"),"mouseleave",(()=>{u=!0,i.value=s})),(e,t)=>(vl(),wl(La,{name:Gt(r).b("fade"),persisted:""},{default:Bn((()=>[ir(El("div",{ref_key:"instance",ref:o,class:X([Gt(r).e("bar"),Gt(r).is(Gt(d).key)]),onMousedown:h},[El("div",{ref_key:"thumb",ref:l,class:X(Gt(r).e("thumb")),style:K(Gt(p)),onMousedown:v},null,38)],34),[[wi,e.always||i.value]])])),_:1},8,["name"]))}});var bX=UG(yX,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const wX=wr({__name:"bar",props:fK({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),setup(e,{expose:t}){const n=e,r=Wt(0),o=Wt(0);return t({handleScroll:e=>{if(e){const t=e.offsetHeight-4,l=e.offsetWidth-4;o.value=100*e.scrollTop/t*n.ratioY,r.value=100*e.scrollLeft/l*n.ratioX}}}),(e,t)=>(vl(),bl(sl,null,[Ol(bX,{move:r.value,ratio:e.ratioX,size:e.width,always:e.always},null,8,["move","ratio","size","always"]),Ol(bX,{move:o.value,ratio:e.ratioY,size:e.height,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}});var xX=UG(wX,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const CX=fK({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:[String,Object,Array],default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),kX={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Mz)},SX=wr({name:"ElScrollbar"}),_X=wr({...SX,props:CX,emits:kX,setup(e,{expose:t,emit:n}){const r=e,o=tq("scrollbar");let l,a;const i=Wt(),s=Wt(),u=Wt(),c=Wt("0"),d=Wt("0"),p=Wt(),f=Wt(1),v=Wt(1),h=oa((()=>{const e={};return r.height&&(e.height=$z(r.height)),r.maxHeight&&(e.maxHeight=$z(r.maxHeight)),[r.wrapStyle,e]})),m=oa((()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}])),g=oa((()=>[o.e("view"),r.viewClass])),y=()=>{var e;s.value&&(null==(e=p.value)||e.handleScroll(s.value),n("scroll",{scrollTop:s.value.scrollTop,scrollLeft:s.value.scrollLeft}))},b=()=>{if(!s.value)return;const e=s.value.offsetHeight-4,t=s.value.offsetWidth-4,n=e**2/s.value.scrollHeight,o=t**2/s.value.scrollWidth,l=Math.max(n,r.minSize),a=Math.max(o,r.minSize);f.value=n/(e-n)/(l/(e-l)),v.value=o/(t-o)/(a/(t-a)),d.value=l+4r.noresize),(e=>{e?(null==l||l(),null==a||a()):(({stop:l}=hp(u,b)),a=_c("resize",b))}),{immediate:!0}),nr((()=>[r.maxHeight,r.height]),(()=>{r.native||wn((()=>{var e;b(),s.value&&(null==(e=p.value)||e.handleScroll(s.value))}))})),Mo(gX,zt({scrollbarElement:i,wrapElement:s})),Nr((()=>{r.native||wn((()=>{b()}))})),Vr((()=>b())),t({wrapRef:s,update:b,scrollTo:function(e,t){w(e)?s.value.scrollTo(e):Mz(e)&&Mz(t)&&s.value.scrollTo(e,t)},setScrollTop:e=>{Mz(e)&&(s.value.scrollTop=e)},setScrollLeft:e=>{Mz(e)&&(s.value.scrollLeft=e)},handleScroll:y}),(e,t)=>(vl(),bl("div",{ref_key:"scrollbarRef",ref:i,class:X(Gt(o).b())},[El("div",{ref_key:"wrapRef",ref:s,class:X(Gt(m)),style:K(Gt(h)),onScroll:y},[(vl(),wl(Yr(e.tag),{ref_key:"resizeRef",ref:u,class:X(Gt(g)),style:K(e.viewStyle)},{default:Bn((()=>[eo(e.$slots,"default")])),_:3},8,["class","style"]))],38),e.native?Ll("v-if",!0):(vl(),wl(xX,{key:0,ref_key:"barRef",ref:p,height:d.value,width:c.value,always:e.always,"ratio-x":v.value,"ratio-y":f.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}}),EX=bK(UG(_X,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]])),OX=Symbol("popper"),MX=Symbol("popperContent"),zX=fK({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),TX=wr({name:"ElPopper",inheritAttrs:!1});var AX=UG(wr({...TX,props:zX,setup(e,{expose:t}){const n=e,r={triggerRef:Wt(),popperInstanceRef:Wt(),contentRef:Wt(),referenceRef:Wt(),role:oa((()=>n.role))};return t(r),Mo(OX,r),(e,t)=>eo(e.$slots,"default")}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const LX=fK({arrowOffset:{type:Number,default:5}}),IX=wr({name:"ElPopperArrow",inheritAttrs:!1});var RX=UG(wr({...IX,props:LX,setup(e,{expose:t}){const n=e,r=tq("popper"),{arrowOffset:o,arrowRef:l,arrowStyle:a}=zo(MX,void 0);return nr((()=>n.arrowOffset),(e=>{o.value=e})),Br((()=>{l.value=void 0})),t({arrowRef:l}),(e,t)=>(vl(),bl("span",{ref_key:"arrowRef",ref:l,class:X(Gt(r).e("arrow")),style:K(Gt(a)),"data-popper-arrow":""},null,6))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const PX=wr({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var o;const l=zo(PY),a=(i=null!=(o=null==l?void 0:l.setForwardRef)?o:r,{mounted(e){i(e)},updated(e){i(e)},unmounted(){i(null)}});var i;return()=>{var e;const r=null==(e=t.default)?void 0:e.call(t,n);if(!r)return null;if(r.length>1)return null;const o=NX(r);return o?ir(zl(o,n),[[a]]):null}}});function NX(e){if(!e)return null;const t=e;for(const n of t){if(w(n))switch(n.type){case cl:continue;case ul:case"svg":return jX(n);case sl:return NX(n.children);default:return n}return jX(n)}return null}function jX(e){const t=tq("only-child");return Ol("span",{class:t.e("content")},[e])}const VX=fK({virtualRef:{type:Object},virtualTriggering:Boolean,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onContextmenu:{type:Function},id:String,open:Boolean}),BX=wr({name:"ElPopperTrigger",inheritAttrs:!1}),HX=wr({...BX,props:VX,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=zo(OX,void 0);var l;l=o,Mo(PY,{setForwardRef:e=>{l.value=e}});const a=oa((()=>s.value?n.id:void 0)),i=oa((()=>{if(r&&"tooltip"===r.value)return n.open&&n.id?n.id:void 0})),s=oa((()=>{if(r&&"tooltip"!==r.value)return r.value})),u=oa((()=>s.value?`${n.open}`:void 0));let c;return Nr((()=>{nr((()=>n.virtualRef),(e=>{e&&(o.value=wc(e))}),{immediate:!0}),nr(o,((e,t)=>{null==c||c(),c=void 0,Tz(e)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach((r=>{var o;const l=n[r];l&&(e.addEventListener(r.slice(2).toLowerCase(),l),null==(o=null==t?void 0:t.removeEventListener)||o.call(t,r.slice(2).toLowerCase(),l))})),c=nr([a,i,s,u],(t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((n,r)=>{q_(t[r])?e.removeAttribute(n):e.setAttribute(n,t[r])}))}),{immediate:!0})),Tz(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((e=>t.removeAttribute(e)))}),{immediate:!0})})),Br((()=>{null==c||c(),c=void 0})),t({triggerRef:o}),(e,t)=>e.virtualTriggering?Ll("v-if",!0):(vl(),wl(Gt(PX),Nl({key:0},e.$attrs,{"aria-controls":Gt(a),"aria-describedby":Gt(i),"aria-expanded":Gt(u),"aria-haspopup":Gt(s)}),{default:Bn((()=>[eo(e.$slots,"default")])),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var DX=UG(HX,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const $X="focus-trap.focus-after-trapped",FX="focus-trap.focus-after-released",WX={cancelable:!0,bubbles:!1},UX={cancelable:!0,bubbles:!1},KX="focusAfterTrapped",qX="focusAfterReleased",YX=Symbol("elFocusTrap"),GX=Wt(),JX=Wt(0),XX=Wt(0);let QX=0;const ZX=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},eQ=(e,t)=>{for(const n of e)if(!tQ(n,t))return n},tQ=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},nQ=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),XX.value=window.performance.now(),e!==r&&((n=e)instanceof HTMLInputElement&&"select"in n)&&t&&e.select()}var n};function rQ(e,t){const n=[...e],r=e.indexOf(t);return-1!==r&&n.splice(r,1),n}const oQ=(()=>{let e=[];return{push:t=>{const n=e[0];n&&t!==n&&n.pause(),e=rQ(e,t),e.unshift(t)},remove:t=>{var n,r;e=rQ(e,t),null==(r=null==(n=e[0])?void 0:n.resume)||r.call(n)}}})(),lQ=()=>{GX.value="pointer",JX.value=window.performance.now()},aQ=()=>{GX.value="keyboard",JX.value=window.performance.now()},iQ=e=>new CustomEvent("focus-trap.focusout-prevented",{...UX,detail:e}),sQ=wr({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[KX,qX,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=Wt();let r,o;const{focusReason:l}=(Nr((()=>{0===QX&&(document.addEventListener("mousedown",lQ),document.addEventListener("touchstart",lQ),document.addEventListener("keydown",aQ)),QX++})),Br((()=>{QX--,QX<=0&&(document.removeEventListener("mousedown",lQ),document.removeEventListener("touchstart",lQ),document.removeEventListener("keydown",aQ))})),{focusReason:GX,lastUserFocusTimestamp:JX,lastAutomatedFocusTimestamp:XX});var a;a=n=>{e.trapped&&!i.paused&&t("release-requested",n)},Nr((()=>{0===zY.length&&document.addEventListener("keydown",TY),Xi&&zY.push(a)})),Br((()=>{zY=zY.filter((e=>e!==a)),0===zY.length&&Xi&&document.removeEventListener("keydown",TY)}));const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=n=>{if(!e.loop&&!e.trapped)return;if(i.paused)return;const{key:r,altKey:o,ctrlKey:a,metaKey:s,currentTarget:u,shiftKey:c}=n,{loop:d}=e,p=r===kK.tab&&!o&&!a&&!s,f=document.activeElement;if(p&&f){const e=u,[r,o]=(e=>{const t=ZX(e);return[eQ(t,e),eQ(t.reverse(),e)]})(e);if(r&&o)if(c||f!==o){if(c&&[r,e].includes(f)){const e=iQ({focusReason:l.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&nQ(o,!0))}}else{const e=iQ({focusReason:l.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&nQ(r,!0))}else if(f===e){const e=iQ({focusReason:l.value});t("focusout-prevented",e),e.defaultPrevented||n.preventDefault()}}};Mo(YX,{focusTrapRef:n,onKeydown:s}),nr((()=>e.focusTrapEl),(e=>{e&&(n.value=e)}),{immediate:!0}),nr([n],(([e],[t])=>{e&&(e.addEventListener("keydown",s),e.addEventListener("focusin",d),e.addEventListener("focusout",p)),t&&(t.removeEventListener("keydown",s),t.removeEventListener("focusin",d),t.removeEventListener("focusout",p))}));const u=e=>{t(KX,e)},c=e=>t(qX,e),d=l=>{const a=Gt(n);if(!a)return;const s=l.target,u=l.relatedTarget,c=s&&a.contains(s);e.trapped||u&&a.contains(u)||(r=u),c&&t("focusin",l),i.paused||e.trapped&&(c?o=s:nQ(o,!0))},p=r=>{const a=Gt(n);if(!i.paused&&a)if(e.trapped){const n=r.relatedTarget;q_(n)||a.contains(n)||setTimeout((()=>{if(!i.paused&&e.trapped){const e=iQ({focusReason:l.value});t("focusout-prevented",e),e.defaultPrevented||nQ(o,!0)}}),0)}else{const e=r.target;e&&a.contains(e)||t("focusout",r)}};async function f(){await wn();const t=Gt(n);if(t){oQ.push(i);const n=t.contains(document.activeElement)?r:document.activeElement;if(r=n,!t.contains(n)){const r=new Event($X,WX);t.addEventListener($X,u),t.dispatchEvent(r),r.defaultPrevented||wn((()=>{let r=e.focusStartEl;y(r)||(nQ(r),document.activeElement!==r&&(r="first")),"first"===r&&((e,t=!1)=>{const n=document.activeElement;for(const r of e)if(nQ(r,t),document.activeElement!==n)return})(ZX(t),!0),document.activeElement!==n&&"container"!==r||nQ(t)}))}}}function v(){const e=Gt(n);if(e){e.removeEventListener($X,u);const t=new CustomEvent(FX,{...WX,detail:{focusReason:l.value}});e.addEventListener(FX,c),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=l.value&&JX.value>XX.value&&!e.contains(document.activeElement)||nQ(null!=r?r:document.body),e.removeEventListener(FX,u),oQ.remove(i)}}return Nr((()=>{e.trapped&&f(),nr((()=>e.trapped),(e=>{e?f():v()}))})),Br((()=>{e.trapped&&v()})),{onKeydown:s}}});var uQ=UG(sQ,[["render",function(e,t,n,r,o,l){return eo(e.$slots,"default",{handleKeydown:e.onKeydown})}],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const cQ=fK({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Array,default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:yq,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),dQ=fK({...cQ,id:String,style:{type:[String,Array,Object]},className:{type:[String,Array,Object]},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:[String,Array,Object]},popperStyle:{type:[String,Array,Object]},referenceEl:{type:Object},triggerTargetEl:{type:Object},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),pQ={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},fQ=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,l={placement:n,strategy:r,...o,modifiers:[...vQ(e),...t]};return a=l,(i=null==o?void 0:o.modifiers)&&(a.modifiers=[...a.modifiers,...null!=i?i:[]]),l;var a,i};function vQ(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,null!=t?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}const hQ=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=zo(OX,void 0),l=Wt(),a=Wt(),i=oa((()=>({name:"eventListeners",enabled:!!e.visible}))),s=oa((()=>{var e;const t=Gt(l),n=null!=(e=Gt(a))?e:0;return{name:"arrow",enabled:!J_(t),options:{element:t,padding:n}}})),u=oa((()=>({onFirstUpdate:()=>{v()},...fQ(e,[Gt(s),Gt(i)])}))),c=oa((()=>(e=>{if(Xi)return wc(e)})(e.referenceEl)||Gt(r))),{attributes:d,state:p,styles:f,update:v,forceUpdate:h,instanceRef:m}=((e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=function(e){const t=Object.keys(e.elements);return{styles:YS(t.map((t=>[t,e.styles[t]||{}]))),attributes:YS(t.map((t=>[t,e.attributes[t]])))}}(e);Object.assign(a.value,t)},requires:["computeStyles"]},o=oa((()=>{const{onFirstUpdate:e,placement:t,strategy:o,modifiers:l}=Gt(n);return{onFirstUpdate:e,placement:t||"bottom",strategy:o||"absolute",modifiers:[...l||[],r,{name:"applyStyles",enabled:!1}]}})),l=Ut(),a=Wt({styles:{popper:{position:Gt(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{l.value&&(l.value.destroy(),l.value=void 0)};return nr(o,(e=>{const t=Gt(l);t&&t.setOptions(e)}),{deep:!0}),nr([e,t],(([e,t])=>{i(),e&&t&&(l.value=CY(e,t,Gt(o)))})),Br((()=>{i()})),{state:oa((()=>{var e;return{...(null==(e=Gt(l))?void 0:e.state)||{}}})),styles:oa((()=>Gt(a).styles)),attributes:oa((()=>Gt(a).attributes)),update:()=>{var e;return null==(e=Gt(l))?void 0:e.update()},forceUpdate:()=>{var e;return null==(e=Gt(l))?void 0:e.forceUpdate()},instanceRef:oa((()=>Gt(l)))}})(c,n,u);return nr(m,(e=>t.value=e)),Nr((()=>{nr((()=>{var e;return null==(e=Gt(c))?void 0:e.getBoundingClientRect()}),(()=>{v()}))})),{attributes:d,arrowRef:l,contentRef:n,instanceRef:m,state:p,styles:f,role:o,forceUpdate:h,update:v}},mQ=wr({name:"ElPopperContent"}),gQ=wr({...mQ,props:dQ,emits:pQ,setup(e,{expose:t,emit:n}){const o=e,{focusStartRef:l,trapped:a,onFocusAfterReleased:i,onFocusAfterTrapped:s,onFocusInTrap:u,onFocusoutPrevented:c,onReleaseRequested:d}=((e,t)=>{const n=Wt(!1),r=Wt();return{focusStartRef:r,trapped:n,onFocusAfterReleased:e=>{var n;"pointer"!==(null==(n=e.detail)?void 0:n.focusReason)&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:t=>{e.visible&&!n.value&&(t.target&&(r.value=t.target),n.value=!0)},onFocusoutPrevented:t=>{e.trapping||("pointer"===t.detail.focusReason&&t.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}})(o,n),{attributes:p,arrowRef:f,contentRef:v,styles:h,instanceRef:m,role:g,update:y}=hQ(o),{ariaModal:b,arrowStyle:w,contentAttrs:x,contentClass:C,contentStyle:k,updateZIndex:S}=((e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=BY(),l=tq("popper"),a=oa((()=>Gt(t).popper)),i=Wt(e.zIndex||o()),s=oa((()=>[l.b(),l.is("pure",e.pure),l.is(e.effect),e.popperClass])),u=oa((()=>[{zIndex:Gt(i)},Gt(n).popper,e.popperStyle||{}]));return{ariaModal:oa((()=>"dialog"===r.value?"false":void 0)),arrowStyle:oa((()=>Gt(n).arrow||{})),contentAttrs:a,contentClass:s,contentStyle:u,contentZIndex:i,updateZIndex:()=>{i.value=e.zIndex||o()}}})(o,{styles:h,attributes:p,role:g}),_=zo(aJ,void 0),E=Wt();let O;Mo(MX,{arrowStyle:w,arrowRef:f,arrowOffset:E}),_&&(_.addInputId||_.removeInputId)&&Mo(aJ,{..._,addInputId:r,removeInputId:r});const M=(e=!0)=>{y(),e&&S()},z=()=>{M(!1),o.visible&&o.focusOnShow?a.value=!0:!1===o.visible&&(a.value=!1)};return Nr((()=>{nr((()=>o.triggerTargetEl),((e,t)=>{null==O||O(),O=void 0;const n=Gt(e||v.value),r=Gt(t||v.value);Tz(n)&&(O=nr([g,()=>o.ariaLabel,b,()=>o.id],(e=>{["role","aria-label","aria-modal","id"].forEach(((t,r)=>{q_(e[r])?n.removeAttribute(t):n.setAttribute(t,e[r])}))}),{immediate:!0})),r!==n&&Tz(r)&&["role","aria-label","aria-modal","id"].forEach((e=>{r.removeAttribute(e)}))}),{immediate:!0}),nr((()=>o.visible),z,{immediate:!0})})),Br((()=>{null==O||O(),O=void 0})),t({popperContentRef:v,popperInstanceRef:m,updatePopper:M,contentStyle:k}),(e,t)=>(vl(),bl("div",Nl({ref_key:"contentRef",ref:v},Gt(x),{style:Gt(k),class:Gt(C),tabindex:"-1",onMouseenter:t[0]||(t[0]=t=>e.$emit("mouseenter",t)),onMouseleave:t[1]||(t[1]=t=>e.$emit("mouseleave",t))}),[Ol(Gt(uQ),{trapped:Gt(a),"trap-on-focus-in":!0,"focus-trap-el":Gt(v),"focus-start-el":Gt(l),onFocusAfterTrapped:Gt(s),onFocusAfterReleased:Gt(i),onFocusin:Gt(u),onFocusoutPrevented:Gt(c),onReleaseRequested:Gt(d)},{default:Bn((()=>[eo(e.$slots,"default")])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var yQ=UG(gQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const bQ=bK(AX),wQ=Symbol("elTooltip"),xQ=fK({...IY,...dQ,appendTo:{type:[String,Object]},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Boolean,default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),CQ=fK({...VX,disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>[kK.enter,kK.space]}}),{useModelToggleProps:kQ,useModelToggleEmits:SQ,useModelToggle:_Q}=lq("visible"),EQ=fK({...zX,...kQ,...xQ,...CQ,...LX,showArrow:{type:Boolean,default:!0}}),OQ=[...SQ,"before-show","before-hide","show","hide","open","close"],MQ=(e,t,n)=>r=>{var o,l;o=Gt(e),l=t,(p(o)?o.includes(l):o===l)&&n(r)},zQ=wr({name:"ElTooltipTrigger"}),TQ=wr({...zQ,props:CQ,setup(e,{expose:t}){const n=e,r=tq("tooltip"),{controlled:o,id:l,open:a,onOpen:i,onClose:s,onToggle:u}=zo(wQ,void 0),c=Wt(null),d=()=>{if(Gt(o)||n.disabled)return!0},p=rn(n,"trigger"),f=Hi(d,MQ(p,"hover",i)),v=Hi(d,MQ(p,"hover",s)),h=Hi(d,MQ(p,"click",(e=>{0===e.button&&u(e)}))),m=Hi(d,MQ(p,"focus",i)),g=Hi(d,MQ(p,"focus",s)),y=Hi(d,MQ(p,"contextmenu",(e=>{e.preventDefault(),u(e)}))),b=Hi(d,(e=>{const{code:t}=e;n.triggerKeys.includes(t)&&(e.preventDefault(),u(e))}));return t({triggerRef:c}),(e,t)=>(vl(),wl(Gt(DX),{id:Gt(l),"virtual-ref":e.virtualRef,open:Gt(a),"virtual-triggering":e.virtualTriggering,class:X(Gt(r).e("trigger")),onBlur:Gt(g),onClick:Gt(h),onContextmenu:Gt(y),onFocus:Gt(m),onMouseenter:Gt(f),onMouseleave:Gt(v),onKeydown:Gt(b)},{default:Bn((()=>[eo(e.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var AQ=UG(TQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const LQ=wr({name:"ElTooltipContent",inheritAttrs:!1}),IQ=wr({...LQ,props:xQ,setup(e,{expose:t}){const n=e,{selector:r}=LY(),o=tq("tooltip"),l=Wt(null),a=Wt(!1),{controlled:i,id:s,open:u,trigger:c,onClose:d,onOpen:p,onShow:f,onHide:v,onBeforeShow:h,onBeforeHide:m}=zo(wQ,void 0),g=oa((()=>n.transition||`${o.namespace.value}-fade-in-linear`)),y=oa((()=>n.persistent));Br((()=>{a.value=!0}));const b=oa((()=>!!Gt(y)||Gt(u))),w=oa((()=>!n.disabled&&Gt(u))),x=oa((()=>n.appendTo||r.value)),C=oa((()=>{var e;return null!=(e=n.style)?e:{}})),k=oa((()=>!Gt(u))),S=()=>{v()},_=()=>{if(Gt(i))return!0},E=Hi(_,(()=>{n.enterable&&"hover"===Gt(c)&&p()})),O=Hi(_,(()=>{"hover"===Gt(c)&&d()})),M=()=>{var e,t;null==(t=null==(e=l.value)?void 0:e.updatePopper)||t.call(e),null==h||h()},z=()=>{null==m||m()},T=()=>{f(),L=Oc(oa((()=>{var e;return null==(e=l.value)?void 0:e.popperContentRef})),(()=>{Gt(i)||"hover"!==Gt(c)&&d()}))},A=()=>{n.virtualTriggering||d()};let L;return nr((()=>Gt(u)),(e=>{e||null==L||L()}),{flush:"post"}),nr((()=>n.content),(()=>{var e,t;null==(t=null==(e=l.value)?void 0:e.updatePopper)||t.call(e)})),t({contentRef:l}),(e,t)=>(vl(),wl(al,{disabled:!e.teleported,to:Gt(x)},[Ol(La,{name:Gt(g),onAfterLeave:S,onBeforeEnter:M,onAfterEnter:T,onBeforeLeave:z},{default:Bn((()=>[Gt(b)?ir((vl(),wl(Gt(yQ),Nl({key:0,id:Gt(s),ref_key:"contentRef",ref:l},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":Gt(k),"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,Gt(C)],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:Gt(w),"z-index":e.zIndex,onMouseenter:Gt(E),onMouseleave:Gt(O),onBlur:A,onClose:Gt(d)}),{default:Bn((()=>[a.value?Ll("v-if",!0):eo(e.$slots,"default",{key:0})])),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[wi,Gt(w)]]):Ll("v-if",!0)])),_:3},8,["name"])],8,["disabled","to"]))}});var RQ=UG(IQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const PQ=["innerHTML"],NQ={key:1},jQ=wr({name:"ElTooltip"}),VQ=wr({...jQ,props:EQ,emits:OQ,setup(e,{expose:t,emit:n}){const r=e;(()=>{const{id:e,selector:t}=LY();Pr((()=>{Xi&&(AY||document.body.querySelector(t.value)||(AY=(e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t})(e.value)))}))})();const o=MY(),l=Wt(),a=Wt(),i=()=>{var e;const t=Gt(l);t&&(null==(e=t.popperInstanceRef)||e.update())},s=Wt(!1),u=Wt(),{show:c,hide:d,hasUpdateHandler:p}=_Q({indicator:s,toggleReason:u}),{onOpen:f,onClose:v}=RY({showAfter:rn(r,"showAfter"),hideAfter:rn(r,"hideAfter"),autoClose:rn(r,"autoClose"),open:c,close:d}),h=oa((()=>Oz(r.visible)&&!p.value));return Mo(wQ,{controlled:h,id:o,open:At(s),trigger:rn(r,"trigger"),onOpen:e=>{f(e)},onClose:e=>{v(e)},onToggle:e=>{Gt(s)?v(e):f(e)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:i}),nr((()=>r.disabled),(e=>{e&&s.value&&(s.value=!1)})),Mr((()=>s.value&&d())),t({popperRef:l,contentRef:a,isFocusInsideContent:()=>{var e,t;const n=null==(t=null==(e=a.value)?void 0:e.contentRef)?void 0:t.popperContentRef;return n&&n.contains(document.activeElement)},updatePopper:i,onOpen:f,onClose:v,hide:d}),(e,t)=>(vl(),wl(Gt(bQ),{ref_key:"popperRef",ref:l,role:e.role},{default:Bn((()=>[Ol(AQ,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:Bn((()=>[e.$slots.default?eo(e.$slots,"default",{key:0}):Ll("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),Ol(RQ,{ref_key:"contentRef",ref:a,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:Bn((()=>[eo(e.$slots,"content",{},(()=>[e.rawContent?(vl(),bl("span",{key:0,innerHTML:e.content},null,8,PQ)):(vl(),bl("span",NQ,ve(e.content),1))])),e.showArrow?(vl(),wl(Gt(RX),{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):Ll("v-if",!0)])),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])])),_:3},8,["role"]))}}),BQ=bK(UG(VQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]])),HQ=fK({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:String,values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:[Function,Array],default:r},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:xQ.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),DQ={[_K]:e=>y(e),[OK]:e=>y(e),[EK]:e=>y(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>w(e)},$Q=["aria-expanded","aria-owns"],FQ={key:0},WQ=["id","aria-selected","onClick"],UQ="ElAutocomplete",KQ=wr({name:UQ,inheritAttrs:!1}),qQ=wr({...KQ,props:HQ,emits:DQ,setup(e,{expose:t,emit:n}){const r=e,o=FK(),l=uo(),a=sJ(),i=tq("autocomplete"),s=Wt(),u=Wt(),c=Wt(),d=Wt();let f=!1,v=!1;const h=Wt([]),m=Wt(-1),g=Wt(""),y=Wt(!1),b=Wt(!1),w=Wt(!1),x=oa((()=>i.b(String(HK())))),C=oa((()=>l.style)),k=oa((()=>(h.value.length>0||w.value)&&y.value)),S=oa((()=>!r.hideLoading&&w.value)),_=oa((()=>s.value?Array.from(s.value.$el.querySelectorAll("input")):[])),E=async()=>{await wn(),k.value&&(g.value=`${s.value.$el.offsetWidth}px`)},O=()=>{m.value=-1},M=Pk((async e=>{if(b.value)return;const t=e=>{w.value=!1,b.value||(p(e)?(h.value=e,m.value=r.highlightFirstItem?0:-1):Nz(UQ,"autocomplete suggestions must be an array"))};if(w.value=!0,p(r.fetchSuggestions))t(r.fetchSuggestions);else{const n=await r.fetchSuggestions(e,t);p(n)&&t(n)}}),r.debounce),z=e=>{const t=!!e;if(n(OK,e),n(_K,e),b.value=!1,y.value||(y.value=t),!r.triggerOnFocus&&!e)return b.value=!0,void(h.value=[]);M(e)},T=e=>{var t;a.value||("INPUT"!==(null==(t=e.target)?void 0:t.tagName)||_.value.includes(document.activeElement))&&(y.value=!0)},A=e=>{n(EK,e)},L=e=>{v?v=!1:(y.value=!0,n("focus",e),r.triggerOnFocus&&!f&&M(String(r.modelValue)))},I=e=>{setTimeout((()=>{var t;(null==(t=c.value)?void 0:t.isFocusInsideContent())?v=!0:(y.value&&j(),n("blur",e))}))},R=()=>{y.value=!1,n(_K,""),n("clear")},P=async()=>{k.value&&m.value>=0&&m.value{k.value&&(e.preventDefault(),e.stopPropagation(),j())},j=()=>{y.value=!1},V=async e=>{n(OK,e[r.valueKey]),n(_K,e[r.valueKey]),n("select",e),h.value=[],m.value=-1},B=e=>{if(!k.value||w.value)return;if(e<0)return void(m.value=-1);e>=h.value.length&&(e=h.value.length-1);const t=u.value.querySelector(`.${i.be("suggestion","wrap")}`),n=t.querySelectorAll(`.${i.be("suggestion","list")} li`)[e],r=t.scrollTop,{offsetTop:o,scrollHeight:l}=n;o+l>r+t.clientHeight&&(t.scrollTop+=l),o{k.value&&j()})),Nr((()=>{s.value.ref.setAttribute("role","textbox"),s.value.ref.setAttribute("aria-autocomplete","list"),s.value.ref.setAttribute("aria-controls","id"),s.value.ref.setAttribute("aria-activedescendant",`${x.value}-item-${m.value}`),f=s.value.ref.hasAttribute("readonly")})),t({highlightedIndex:m,activated:y,loading:w,inputRef:s,popperRef:c,suggestions:h,handleSelect:V,handleKeyEnter:P,focus:()=>{var e;null==(e=s.value)||e.focus()},blur:()=>{var e;null==(e=s.value)||e.blur()},close:j,highlight:B}),(e,t)=>(vl(),wl(Gt(BQ),{ref_key:"popperRef",ref:c,visible:Gt(k),placement:e.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[Gt(i).e("popper"),e.popperClass],teleported:e.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${Gt(i).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:E,onHide:O},{content:Bn((()=>[El("div",{ref_key:"regionRef",ref:u,class:X([Gt(i).b("suggestion"),Gt(i).is("loading",Gt(S))]),style:K({[e.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[Ol(Gt(EX),{id:Gt(x),tag:"ul","wrap-class":Gt(i).be("suggestion","wrap"),"view-class":Gt(i).be("suggestion","list"),role:"listbox"},{default:Bn((()=>[Gt(S)?(vl(),bl("li",FQ,[Ol(Gt(ZG),{class:X(Gt(i).is("loading"))},{default:Bn((()=>[Ol(Gt(pV))])),_:1},8,["class"])])):(vl(!0),bl(sl,{key:1},Qr(h.value,((t,n)=>(vl(),bl("li",{id:`${Gt(x)}-item-${n}`,key:n,class:X({highlighted:m.value===n}),role:"option","aria-selected":m.value===n,onClick:e=>V(t)},[eo(e.$slots,"default",{item:t},(()=>[Tl(ve(t[e.valueKey]),1)]))],10,WQ)))),128))])),_:3},8,["id","wrap-class","view-class"])],6)])),default:Bn((()=>[El("div",{ref_key:"listboxRef",ref:d,class:X([Gt(i).b(),e.$attrs.class]),style:K(Gt(C)),role:"combobox","aria-haspopup":"listbox","aria-expanded":Gt(k),"aria-owns":Gt(x)},[Ol(Gt(hX),Nl({ref_key:"inputRef",ref:s},Gt(o),{clearable:e.clearable,disabled:Gt(a),name:e.name,"model-value":e.modelValue,onInput:z,onChange:A,onFocus:L,onBlur:I,onClear:R,onKeydown:[t[0]||(t[0]=bi(gi((e=>B(m.value-1)),["prevent"]),["up"])),t[1]||(t[1]=bi(gi((e=>B(m.value+1)),["prevent"]),["down"])),bi(P,["enter"]),bi(j,["tab"]),bi(N,["esc"])],onMousedown:T}),Zr({_:2},[e.$slots.prepend?{name:"prepend",fn:Bn((()=>[eo(e.$slots,"prepend")]))}:void 0,e.$slots.append?{name:"append",fn:Bn((()=>[eo(e.$slots,"append")]))}:void 0,e.$slots.prefix?{name:"prefix",fn:Bn((()=>[eo(e.$slots,"prefix")]))}:void 0,e.$slots.suffix?{name:"suffix",fn:Bn((()=>[eo(e.$slots,"suffix")]))}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,$Q)])),_:3},8,["visible","placement","popper-class","teleported","transition"]))}}),YQ=bK(UG(qQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]])),GQ=fK({size:{type:[Number,String],values:zK,default:"",validator:e=>Mz(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:vK},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:String,default:"cover"}}),JQ={error:e=>e instanceof Event},XQ=["src","alt","srcset"],QQ=wr({name:"ElAvatar"}),ZQ=wr({...QQ,props:GQ,emits:JQ,setup(e,{emit:t}){const n=e,r=tq("avatar"),o=Wt(!1),l=oa((()=>{const{size:e,icon:t,shape:o}=n,l=[r.b()];return y(e)&&l.push(r.m(e)),t&&l.push(r.m("icon")),o&&l.push(r.m(o)),l})),a=oa((()=>{const{size:e}=n;return Mz(e)?r.cssVarBlock({size:$z(e)||""}):void 0})),i=oa((()=>({objectFit:n.fit})));function s(e){o.value=!0,t("error",e)}return nr((()=>n.src),(()=>o.value=!1)),(e,t)=>(vl(),bl("span",{class:X(Gt(l)),style:K(Gt(a))},[!e.src&&!e.srcSet||o.value?e.icon?(vl(),wl(Gt(ZG),{key:1},{default:Bn((()=>[(vl(),wl(Yr(e.icon)))])),_:1})):eo(e.$slots,"default",{key:2}):(vl(),bl("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:K(Gt(i)),onError:s},null,44,XQ))],6))}}),eZ=bK(UG(ZQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]])),tZ={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},nZ={click:e=>e instanceof MouseEvent},rZ="ElBacktop",oZ=wr({name:rZ}),lZ=wr({...oZ,props:tZ,emits:nZ,setup(e,{emit:t}){const n=e,r=tq("backtop"),{handleClick:o,visible:l}=((e,t,n)=>{const r=Ut(),o=Ut(),l=Wt(!1),a=Ns((()=>{r.value&&(l.value=r.value.scrollTop>=e.visibilityHeight)}),300,!0);return _c(o,"scroll",a),Nr((()=>{var t;o.value=document,r.value=document.documentElement,e.target&&(r.value=null!=(t=document.querySelector(e.target))?t:void 0,r.value||Nz(n,`target does not exist: ${e.target}`),o.value=r.value)})),{visible:l,handleClick:e=>{var n;null==(n=r.value)||n.scrollTo({top:0,behavior:"smooth"}),t("click",e)}}})(n,t,rZ),a=oa((()=>({right:`${n.right}px`,bottom:`${n.bottom}px`})));return(e,t)=>(vl(),wl(La,{name:`${Gt(r).namespace.value}-fade-in`},{default:Bn((()=>[Gt(l)?(vl(),bl("div",{key:0,style:K(Gt(a)),class:X(Gt(r).b()),onClick:t[0]||(t[0]=gi(((...e)=>Gt(o)&&Gt(o)(...e)),["stop"]))},[eo(e.$slots,"default",{},(()=>[Ol(Gt(ZG),{class:X(Gt(r).e("icon"))},{default:Bn((()=>[Ol(Gt(UA))])),_:1},8,["class"])]))],6)):Ll("v-if",!0)])),_:3},8,["name"]))}}),aZ=bK(UG(lZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]])),iZ=fK({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),sZ=["textContent"],uZ=wr({name:"ElBadge"}),cZ=bK(UG(wr({...uZ,props:iZ,setup(e,{expose:t}){const n=e,r=tq("badge"),o=oa((()=>n.isDot?"":Mz(n.value)&&Mz(n.max)&&n.max(vl(),bl("div",{class:X(Gt(r).b())},[eo(e.$slots,"default"),Ol(La,{name:`${Gt(r).namespace.value}-zoom-in-center`,persisted:""},{default:Bn((()=>[ir(El("sup",{class:X([Gt(r).e("content"),Gt(r).em("content",e.type),Gt(r).is("fixed",!!e.$slots.default),Gt(r).is("dot",e.isDot)]),textContent:ve(Gt(o))},null,10,sZ),[[wi,!e.hidden&&(Gt(o)||e.isDot)]])])),_:1},8,["name"])],2))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]])),dZ=Symbol("breadcrumbKey"),pZ=fK({separator:{type:String,default:"/"},separatorIcon:{type:vK}}),fZ=wr({name:"ElBreadcrumb"});var vZ=UG(wr({...fZ,props:pZ,setup(e){const t=e,n=tq("breadcrumb"),r=Wt();return Mo(dZ,t),Nr((()=>{const e=r.value.querySelectorAll(`.${n.e("item")}`);e.length&&e[e.length-1].setAttribute("aria-current","page")})),(e,t)=>(vl(),bl("div",{ref_key:"breadcrumb",ref:r,class:X(Gt(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[eo(e.$slots,"default")],2))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const hZ=fK({to:{type:[String,Object],default:""},replace:{type:Boolean,default:!1}}),mZ=wr({name:"ElBreadcrumbItem"}),gZ=wr({...mZ,props:hZ,setup(e){const t=e,n=$l(),r=zo(dZ,void 0),o=tq("breadcrumb"),{separator:l,separatorIcon:a}=en(r),i=n.appContext.config.globalProperties.$router,s=Wt(),u=()=>{t.to&&i&&(t.replace?i.replace(t.to):i.push(t.to))};return(e,t)=>(vl(),bl("span",{class:X(Gt(o).e("item"))},[El("span",{ref_key:"link",ref:s,class:X([Gt(o).e("inner"),Gt(o).is("link",!!e.to)]),role:"link",onClick:u},[eo(e.$slots,"default")],2),Gt(a)?(vl(),wl(Gt(ZG),{key:0,class:X(Gt(o).e("separator"))},{default:Bn((()=>[(vl(),wl(Yr(Gt(a))))])),_:1},8,["class"])):(vl(),bl("span",{key:1,class:X(Gt(o).e("separator")),role:"presentation"},ve(Gt(l)),3))],2))}});var yZ=UG(gZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const bZ=bK(vZ,{BreadcrumbItem:yZ}),wZ=xK(yZ),xZ=Symbol("buttonGroupContextKey"),CZ=["default","primary","success","warning","info","danger","text",""],kZ=fK({size:LG,disabled:Boolean,type:{type:String,values:CZ,default:""},icon:{type:vK},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:vK,default:()=>pV},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:[String,Object],default:"button"}}),SZ={click:e=>e instanceof MouseEvent};function _Z(e,t){var n;"string"==typeof(n=e)&&-1!==n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function EZ(e){return Math.min(1,Math.max(0,e))}function OZ(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function MZ(e){return e<=1?"".concat(100*Number(e),"%"):e}function zZ(e){return 1===e.length?"0"+e:String(e)}function TZ(e,t,n){e=_Z(e,255),t=_Z(t,255),n=_Z(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),l=0,a=0,i=(r+o)/2;if(r===o)a=0,l=0;else{var s=r-o;switch(a=i>.5?s/(2-r-o):s/(r+o),r){case e:l=(t-n)/s+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function LZ(e,t,n){e=_Z(e,255),t=_Z(t,255),n=_Z(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),l=0,a=r,i=r-o,s=0===r?0:i/r;if(r===o)l=0;else{switch(r){case e:l=(t-n)/i+(t>16,g:(65280&o)>>8,b:255&o}),this.originalInput=t;var l=function(e){var t,n,r,o={r:0,g:0,b:0},l=1,a=null,i=null,s=null,u=!1,c=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(jZ[e])e=jZ[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=DZ.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=DZ.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=DZ.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=DZ.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=DZ.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=DZ.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=DZ.hex8.exec(e))?{r:NZ(n[1]),g:NZ(n[2]),b:NZ(n[3]),a:PZ(n[4]),format:t?"name":"hex8"}:(n=DZ.hex6.exec(e))?{r:NZ(n[1]),g:NZ(n[2]),b:NZ(n[3]),format:t?"name":"hex"}:(n=DZ.hex4.exec(e))?{r:NZ(n[1]+n[1]),g:NZ(n[2]+n[2]),b:NZ(n[3]+n[3]),a:PZ(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=DZ.hex3.exec(e))&&{r:NZ(n[1]+n[1]),g:NZ(n[2]+n[2]),b:NZ(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&($Z(e.r)&&$Z(e.g)&&$Z(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*_Z(t,255),g:255*_Z(n,255),b:255*_Z(r,255)},u=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):$Z(e.h)&&$Z(e.s)&&$Z(e.v)?(a=MZ(e.s),i=MZ(e.v),o=function(e,t,n){e=6*_Z(e,360),t=_Z(t,100),n=_Z(n,100);var r=Math.floor(e),o=e-r,l=n*(1-t),a=n*(1-o*t),i=n*(1-(1-o)*t),s=r%6;return{r:255*[n,a,l,l,i,n][s],g:255*[i,n,n,a,l,l][s],b:255*[l,l,i,n,n,a][s]}}(e.h,a,i),u=!0,c="hsv"):$Z(e.h)&&$Z(e.s)&&$Z(e.l)&&(a=MZ(e.s),s=MZ(e.l),o=function(e,t,n){var r,o,l;if(e=_Z(e,360),t=_Z(t,100),n=_Z(n,100),0===t)o=n,l=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,i=2*n-a;r=AZ(i,a,e+1/3),o=AZ(i,a,e),l=AZ(i,a,e-1/3)}return{r:255*r,g:255*o,b:255*l}}(e.h,a,s),u=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(l=e.a)),l=OZ(l),{ok:u,format:e.format||c,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:l}}(t);this.originalInput=t,this.r=l.r,this.g=l.g,this.b=l.b,this.a=l.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:l.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=l.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=OZ(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=LZ(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=LZ(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=TZ(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=TZ(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),IZ(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var l=[zZ(Math.round(e).toString(16)),zZ(Math.round(t).toString(16)),zZ(Math.round(n).toString(16)),zZ(RZ(r))];return o&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))&&l[3].startsWith(l[3].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*_Z(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*_Z(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+IZ(this.r,this.g,this.b,!1),t=0,n=Object.entries(jZ);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=EZ(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=EZ(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=EZ(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=EZ(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),l=n/100;return new e({r:(o.r-r.r)*l+r.r,g:(o.g-r.g)*l+r.g,b:(o.b-r.b)*l+r.b,a:(o.a-r.a)*l+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,l=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,l.push(new e(r));return l},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,l=n.v,a=[],i=1/t;t--;)a.push(new e({h:r,s:o,v:l})),l=(l+i)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],l=360/t,a=1;a{let r={};const o=e.color;if(o){const l=new FZ(o),a=e.dark?l.tint(20).toString():WZ(l,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?WZ(l,90):l.tint(90).toString(),"text-color":o,"border-color":e.dark?WZ(l,50):l.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":a,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":a}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?WZ(l,90):l.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?WZ(l,50):l.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?WZ(l,80):l.tint(80).toString());else{const i=e.dark?WZ(l,30):l.tint(30).toString(),s=l.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":s,"border-color":o,"hover-bg-color":i,"hover-text-color":s,"hover-border-color":i,"active-bg-color":a,"active-border-color":a}),t.value){const t=e.dark?WZ(l,50):l.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=t,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=t}}}return r}))}(r),l=tq("button"),{_ref:a,_size:i,_type:s,_disabled:u,_props:c,shouldAddSpace:d,handleClick:p}=((e,t)=>{WK({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},oa((()=>"text"===e.type)));const n=zo(xZ,void 0),r=NG("button"),{form:o}=uJ(),l=iJ(oa((()=>null==n?void 0:n.size))),a=sJ(),i=Wt(),s=so(),u=oa((()=>e.type||(null==n?void 0:n.type)||"")),c=oa((()=>{var t,n,o;return null!=(o=null!=(n=e.autoInsertSpace)?n:null==(t=r.value)?void 0:t.autoInsertSpace)&&o})),d=oa((()=>"button"===e.tag?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{})),p=oa((()=>{var e;const t=null==(e=s.default)?void 0:e.call(s);if(c.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===ul){const t=e.children;return/^\p{Unified_Ideograph}{2}$/u.test(t.trim())}}return!1}));return{_disabled:a,_size:l,_type:u,_ref:i,_props:d,shouldAddSpace:p,handleClick:n=>{"reset"===e.nativeType&&(null==o||o.resetFields()),t("click",n)}}})(r,n);return t({ref:a,size:i,type:s,disabled:u,shouldAddSpace:d}),(e,t)=>(vl(),wl(Yr(e.tag),Nl({ref_key:"_ref",ref:a},Gt(c),{class:[Gt(l).b(),Gt(l).m(Gt(s)),Gt(l).m(Gt(i)),Gt(l).is("disabled",Gt(u)),Gt(l).is("loading",e.loading),Gt(l).is("plain",e.plain),Gt(l).is("round",e.round),Gt(l).is("circle",e.circle),Gt(l).is("text",e.text),Gt(l).is("link",e.link),Gt(l).is("has-bg",e.bg)],style:Gt(o),onClick:Gt(p)}),{default:Bn((()=>[e.loading?(vl(),bl(sl,{key:0},[e.$slots.loading?eo(e.$slots,"loading",{key:0}):(vl(),wl(Gt(ZG),{key:1,class:X(Gt(l).is("loading"))},{default:Bn((()=>[(vl(),wl(Yr(e.loadingIcon)))])),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?(vl(),wl(Gt(ZG),{key:1},{default:Bn((()=>[e.icon?(vl(),wl(Yr(e.icon),{key:0})):eo(e.$slots,"icon",{key:1})])),_:3})):Ll("v-if",!0),e.$slots.default?(vl(),bl("span",{key:2,class:X({[Gt(l).em("text","expand")]:Gt(d)})},[eo(e.$slots,"default")],2)):Ll("v-if",!0)])),_:3},16,["class","style","onClick"]))}});var qZ=UG(KZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const YZ={size:kZ.size,type:kZ.type},GZ=wr({name:"ElButtonGroup"});var JZ=UG(wr({...GZ,props:YZ,setup(e){const t=e;Mo(xZ,zt({size:rn(t,"size"),type:rn(t,"type")}));const n=tq("button");return(e,t)=>(vl(),bl("div",{class:X(`${Gt(n).b("group")}`)},[eo(e.$slots,"default")],2))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const XZ=bK(qZ,{ButtonGroup:JZ}),QZ=xK(JZ);var ZZ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function t0(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(t,n))}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var n0={exports:{}};n0.exports=function(){var e=6e4,t=36e5,n="millisecond",r="second",o="minute",l="hour",a="day",i="week",s="month",u="quarter",c="year",d="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(o,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var i=t.name;b[i]=t,o=i}return!r&&o&&(y=o),o||!r&&y},C=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new S(n)},k=g;k.l=x,k.i=w,k.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function h(e){this.$L=x(e.locale,null,!0),this.parse(e)}var m=h.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var o=r[2]-1||0,l=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,l)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,l)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return k},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return C(e)68?1900:2e3)},i=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=l[e];return t&&(t.indexOf?t:t.s.concat(t.f))},c=function(e,t){var n,r=l.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=c(e,!1)}],a:[o,function(e){this.afternoon=c(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,i("seconds")],ss:[r,i("seconds")],m:[r,i("minutes")],mm:[r,i("minutes")],H:[r,i("hours")],h:[r,i("hours")],HH:[r,i("hours")],hh:[r,i("hours")],D:[r,i("day")],DD:[n,i("day")],Do:[o,function(e){var t=l.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,i("month")],MM:[n,i("month")],MMM:[o,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,i("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,i("year")],Z:s,ZZ:s};return function(n,r,o){o.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(a=n.parseTwoDigitYear);var i=r.prototype,s=i.parse;i.parse=function(n){var r=n.date,a=n.utc,i=n.args;this.$u=a;var u=i[1];if("string"==typeof u){var c=!0===i[2],p=!0===i[3],f=c||p,v=i[2];p&&(v=i[2]),l=this.$locale(),!c&&v&&(l=o.Ls[v]),this.$d=function(n,r,o){try{if(["x","X"].indexOf(r)>-1)return new Date(("X"===r?1e3:1)*n);var a=function(n){var r,o;r=n,o=l&&l.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var l=r&&r.toUpperCase();return n||o[r]||e[r]||o[l].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),i=a.length,s=0;s0?s-1:m.getMonth());var w=c||0,x=p||0,C=f||0,k=v||0;return h?new Date(Date.UTC(y,b,g,w,x,C,k+60*h.offset*1e3)):o?new Date(Date.UTC(y,b,g,w,x,C,k)):new Date(y,b,g,w,x,C,k)}catch(S){return new Date("")}}(r,u,a),this.init(),v&&!0!==v&&(this.$L=this.locale(v).$L),f&&r!=this.format(u)&&(this.$d=new Date("")),l={}}else if(u instanceof Array)for(var h=u.length,m=1;m<=h;m+=1){i[1]=u[m-1];var g=o.apply(this,i);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}m===h&&(this.$d=new Date(""))}else s.call(this,n)}}}();const l0=e0(o0.exports),a0=["hours","minutes","seconds"],i0="HH:mm:ss",s0="YYYY-MM-DD",u0={date:s0,dates:s0,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${s0} ${i0}`,monthrange:"YYYY-MM",daterange:s0,datetimerange:`${s0} ${i0}`},c0=(e,t)=>[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),p0=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),f0=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),v0=function(e,t){const n=h(e),r=h(t);return n&&r?e.getTime()===t.getTime():!n&&!r&&e===t},h0=function(e,t){const n=p(e),r=p(t);return n&&r?e.length===t.length&&e.every(((e,n)=>v0(e,t[n]))):!n&&!r&&v0(e,t)},m0=function(e,t,n){const r=zz(t)||"x"===t?r0(e).locale(n):r0(e,t).locale(n);return r.isValid()?r:void 0},g0=function(e,t,n){return zz(t)?e:"x"===t?+e:r0(e).locale(n).format(t)},y0=(e,t)=>{var n;const r=[],o=null==t?void 0:t();for(let l=0;l({})},modelValue:{type:[Date,Array,String,Number],default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:[Date,Array]},defaultTime:{type:[Date,Array]},isRange:{type:Boolean,default:!1},...b0,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),C0=["id","name","placeholder","value","disabled","readonly"],k0=["id","name","placeholder","value","disabled","readonly"],S0=wr({name:"Picker"}),_0=wr({...S0,props:x0,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,{lang:o}=JK(),l=tq("date"),a=tq("input"),i=tq("range"),{form:s,formItem:u}=uJ(),c=zo("ElPopperOptions",{}),d=Wt(),f=Wt(),v=Wt(!1),h=Wt(!1),m=Wt(null);let g=!1,y=!1;nr(v,(e=>{e?wn((()=>{e&&(m.value=r.modelValue)})):(Q.value=null,wn((()=>{b(r.modelValue)})))}));const b=(e,t)=>{!t&&h0(e,m.value)||(n("change",e),r.validateEvent&&(null==u||u.validate("change").catch((e=>{}))))},w=e=>{if(!h0(r.modelValue,e)){let t;p(e)?t=e.map((e=>g0(e,r.valueFormat,o.value))):e&&(t=g0(e,r.valueFormat,o.value)),n("update:modelValue",e?t:e,o.value)}},x=oa((()=>{if(f.value){const e=q.value?f.value:f.value.$el;return Array.from(e.querySelectorAll("input"))}return[]})),C=(e,t,n)=>{const r=x.value;r.length&&(n&&"min"!==n?"max"===n&&(r[1].setSelectionRange(e,t),r[1].focus()):(r[0].setSelectionRange(e,t),r[0].focus()))},k=(e="",t=!1)=>{let n;t||(y=!0),v.value=t,n=p(e)?e.map((e=>e.toDate())):e?e.toDate():e,Q.value=null,w(n)},S=()=>{h.value=!0},_=()=>{n("visible-change",!0)},E=e=>{(null==e?void 0:e.key)===kK.esc&&M(!0,!0)},O=()=>{h.value=!1,v.value=!1,y=!1,n("visible-change",!1)},M=(e=!0,t=!1)=>{y=t;const[n,r]=Gt(x);let o=n;!e&&q.value&&(o=r),o&&o.focus()},z=e=>{r.readonly||L.value||v.value||y||(v.value=!0,n("focus",e))};let T;const A=e=>{const t=async()=>{setTimeout((()=>{var o;T===t&&((null==(o=d.value)?void 0:o.isFocusInsideContent())&&!g||0!==x.value.filter((e=>e.contains(document.activeElement))).length||(Z(),v.value=!1,n("blur",e),r.validateEvent&&(null==u||u.validate("blur").catch((e=>{})))),g=!1)}),0)};T=t,t()},L=oa((()=>r.disabled||(null==s?void 0:s.disabled))),I=oa((()=>{let e;if(D.value?ue.value.getDefaultValue&&(e=ue.value.getDefaultValue()):e=p(r.modelValue)?r.modelValue.map((e=>m0(e,r.valueFormat,o.value))):m0(r.modelValue,r.valueFormat,o.value),ue.value.getRangeAvailableTime){const t=ue.value.getRangeAvailableTime(e);$_(t,e)||(e=t,w(p(e)?e.map((e=>e.toDate())):e.toDate()))}return p(e)&&e.some((e=>!e))&&(e=[]),e})),R=oa((()=>{if(!ue.value.panelReady)return"";const e=te(I.value);return p(Q.value)?[Q.value[0]||e&&e[0]||"",Q.value[1]||e&&e[1]||""]:null!==Q.value?Q.value:!N.value&&D.value||!v.value&&D.value?"":e?j.value?e.join(", "):e:""})),P=oa((()=>r.type.includes("time"))),N=oa((()=>r.type.startsWith("time"))),j=oa((()=>"dates"===r.type)),V=oa((()=>r.prefixIcon||(P.value?YL:OA))),B=Wt(!1),H=e=>{r.readonly||L.value||B.value&&(e.stopPropagation(),M(!0,!0),wn((()=>{y=!1})),w(null),b(null,!0),B.value=!1,v.value=!1,ue.value.handleClear&&ue.value.handleClear())},D=oa((()=>{const{modelValue:e}=r;return!e||p(e)&&!e.filter(Boolean).length})),$=async e=>{var t;r.readonly||L.value||("INPUT"!==(null==(t=e.target)?void 0:t.tagName)||x.value.includes(document.activeElement))&&(v.value=!0)},F=()=>{r.readonly||L.value||!D.value&&r.clearable&&(B.value=!0)},W=()=>{B.value=!1},U=e=>{var t;r.readonly||L.value||("INPUT"!==(null==(t=e.touches[0].target)?void 0:t.tagName)||x.value.includes(document.activeElement))&&(v.value=!0)},q=oa((()=>r.type.includes("range"))),Y=iJ(),G=oa((()=>{var e,t;return null==(t=null==(e=Gt(d))?void 0:e.popperRef)?void 0:t.contentRef})),J=oa((()=>{var e;return Gt(q)?Gt(f):null==(e=Gt(f))?void 0:e.$el}));Oc(J,(e=>{const t=Gt(G),n=Gt(J);t&&(e.target===t||e.composedPath().includes(t))||e.target===n||e.composedPath().includes(n)||(v.value=!1)}));const Q=Wt(null),Z=()=>{if(Q.value){const e=ee(R.value);e&&ne(e)&&(w(p(e)?e.map((e=>e.toDate())):e.toDate()),Q.value=null)}""===Q.value&&(w(null),b(null),Q.value=null)},ee=e=>e?ue.value.parseUserInput(e):null,te=e=>e?ue.value.formatToString(e):null,ne=e=>ue.value.isValidValue(e),re=async e=>{if(r.readonly||L.value)return;const{code:t}=e;if(n("keydown",e),t!==kK.esc)if(t===kK.down&&(ue.value.handleFocusPicker&&(e.preventDefault(),e.stopPropagation()),!1===v.value&&(v.value=!0,await wn()),ue.value.handleFocusPicker))ue.value.handleFocusPicker();else{if(t!==kK.tab)return t===kK.enter||t===kK.numpadEnter?((null===Q.value||""===Q.value||ne(ee(R.value)))&&(Z(),v.value=!1),void e.stopPropagation()):void(Q.value?e.stopPropagation():ue.value.handleKeydownInput&&ue.value.handleKeydownInput(e));g=!0}else!0===v.value&&(v.value=!1,e.preventDefault(),e.stopPropagation())},oe=e=>{Q.value=e,v.value||(v.value=!0)},le=e=>{const t=e.target;Q.value?Q.value=[t.value,Q.value[1]]:Q.value=[t.value,null]},ae=e=>{const t=e.target;Q.value?Q.value=[Q.value[0],t.value]:Q.value=[null,t.value]},ie=()=>{var e;const t=Q.value,n=ee(t&&t[0]),r=Gt(I);if(n&&n.isValid()){Q.value=[te(n),(null==(e=R.value)?void 0:e[1])||null];const t=[n,r&&(r[1]||null)];ne(t)&&(w(t),Q.value=null)}},se=()=>{var e;const t=Gt(Q),n=ee(t&&t[1]),r=Gt(I);if(n&&n.isValid()){Q.value=[(null==(e=Gt(R))?void 0:e[0])||null,te(n)];const t=[r&&r[0],n];ne(t)&&(w(t),Q.value=null)}},ue=Wt({}),ce=e=>{ue.value[e[0]]=e[1],ue.value.panelReady=!0},de=e=>{n("calendar-change",e)},pe=(e,t,r)=>{n("panel-change",e,t,r)};return Mo("EP_PICKER_BASE",{props:r}),t({focus:M,handleFocusInput:z,handleBlurInput:A,handleOpen:()=>{v.value=!0},handleClose:()=>{v.value=!1},onPick:k}),(e,t)=>(vl(),wl(Gt(BQ),Nl({ref_key:"refPopper",ref:d,visible:v.value,effect:"light",pure:"",trigger:"click"},e.$attrs,{role:"dialog",teleported:"",transition:`${Gt(l).namespace.value}-zoom-in-top`,"popper-class":[`${Gt(l).namespace.value}-picker__popper`,e.popperClass],"popper-options":Gt(c),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:S,onShow:_,onHide:O}),{default:Bn((()=>[Gt(q)?(vl(),bl("div",{key:1,ref_key:"inputRef",ref:f,class:X([Gt(l).b("editor"),Gt(l).bm("editor",e.type),Gt(a).e("wrapper"),Gt(l).is("disabled",Gt(L)),Gt(l).is("active",v.value),Gt(i).b("editor"),Gt(Y)?Gt(i).bm("editor",Gt(Y)):"",e.$attrs.class]),style:K(e.$attrs.style),onClick:z,onMouseenter:F,onMouseleave:W,onTouchstart:U,onKeydown:re},[Gt(V)?(vl(),wl(Gt(ZG),{key:0,class:X([Gt(a).e("icon"),Gt(i).e("icon")]),onMousedown:gi($,["prevent"]),onTouchstart:U},{default:Bn((()=>[(vl(),wl(Yr(Gt(V))))])),_:1},8,["class","onMousedown"])):Ll("v-if",!0),El("input",{id:e.id&&e.id[0],autocomplete:"off",name:e.name&&e.name[0],placeholder:e.startPlaceholder,value:Gt(R)&&Gt(R)[0],disabled:Gt(L),readonly:!e.editable||e.readonly,class:X(Gt(i).b("input")),onMousedown:$,onInput:le,onChange:ie,onFocus:z,onBlur:A},null,42,C0),eo(e.$slots,"range-separator",{},(()=>[El("span",{class:X(Gt(i).b("separator"))},ve(e.rangeSeparator),3)])),El("input",{id:e.id&&e.id[1],autocomplete:"off",name:e.name&&e.name[1],placeholder:e.endPlaceholder,value:Gt(R)&&Gt(R)[1],disabled:Gt(L),readonly:!e.editable||e.readonly,class:X(Gt(i).b("input")),onMousedown:$,onFocus:z,onBlur:A,onInput:ae,onChange:se},null,42,k0),e.clearIcon?(vl(),wl(Gt(ZG),{key:1,class:X([Gt(a).e("icon"),Gt(i).e("close-icon"),{[Gt(i).e("close-icon--hidden")]:!B.value}]),onClick:H},{default:Bn((()=>[(vl(),wl(Yr(e.clearIcon)))])),_:1},8,["class"])):Ll("v-if",!0)],38)):(vl(),wl(Gt(hX),{key:0,id:e.id,ref_key:"inputRef",ref:f,"container-role":"combobox","model-value":Gt(R),name:e.name,size:Gt(Y),disabled:Gt(L),placeholder:e.placeholder,class:X([Gt(l).b("editor"),Gt(l).bm("editor",e.type),e.$attrs.class]),style:K(e.$attrs.style),readonly:!e.editable||e.readonly||Gt(j)||"week"===e.type,label:e.label,tabindex:e.tabindex,"validate-event":!1,onInput:oe,onFocus:z,onBlur:A,onKeydown:re,onChange:Z,onMousedown:$,onMouseenter:F,onMouseleave:W,onTouchstart:U,onClick:t[0]||(t[0]=gi((()=>{}),["stop"]))},{prefix:Bn((()=>[Gt(V)?(vl(),wl(Gt(ZG),{key:0,class:X(Gt(a).e("icon")),onMousedown:gi($,["prevent"]),onTouchstart:U},{default:Bn((()=>[(vl(),wl(Yr(Gt(V))))])),_:1},8,["class","onMousedown"])):Ll("v-if",!0)])),suffix:Bn((()=>[B.value&&e.clearIcon?(vl(),wl(Gt(ZG),{key:0,class:X(`${Gt(a).e("icon")} clear-icon`),onClick:gi(H,["stop"])},{default:Bn((()=>[(vl(),wl(Yr(e.clearIcon)))])),_:1},8,["class","onClick"])):Ll("v-if",!0)])),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))])),content:Bn((()=>[eo(e.$slots,"default",{visible:v.value,actualVisible:h.value,parsedValue:Gt(I),format:e.format,unlinkPanels:e.unlinkPanels,type:e.type,defaultValue:e.defaultValue,onPick:k,onSelectRange:C,onSetPickerOption:ce,onCalendarChange:de,onPanelChange:pe,onKeydown:E,onMousedown:t[1]||(t[1]=gi((()=>{}),["stop"]))})])),_:3},16,["visible","transition","popper-class","popper-options"]))}});var E0=UG(_0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const O0=fK({...w0,datetimeRole:String,parsedValue:{type:Object}}),M0=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const r={};return{timePickerOptions:r,getAvailableTime:(r,o,l,a)=>{const i={hour:e,minute:t,second:n};let s=r;return["hour","minute","second"].forEach((e=>{if(i[e]){let t;const n=i[e];switch(e){case"minute":t=n(s.hour(),o,a);break;case"second":t=n(s.hour(),s.minute(),o,a);break;default:t=n(o,a)}if((null==t?void 0:t.length)&&!t.includes(s[e]())){const n=l?0:t.length-1;s=s[e](t[n])}}})),s},onSetOption:([e,t])=>{r[e]=t}}},z0=e=>e.map(((e,t)=>e||t)).filter((e=>!0!==e)),T0=(e,t,n)=>({getHoursList:(t,n)=>y0(24,e&&(()=>null==e?void 0:e(t,n))),getMinutesList:(e,n,r)=>y0(60,t&&(()=>null==t?void 0:t(e,n,r))),getSecondsList:(e,t,r,o)=>y0(60,n&&(()=>null==n?void 0:n(e,t,r,o)))}),A0=(e,t,n)=>{const{getHoursList:r,getMinutesList:o,getSecondsList:l}=T0(e,t,n);return{getAvailableHours:(e,t)=>z0(r(e,t)),getAvailableMinutes:(e,t,n)=>z0(o(e,t,n)),getAvailableSeconds:(e,t,n,r)=>z0(l(e,t,n,r))}},L0=e=>{const t=Wt(e.parsedValue);return nr((()=>e.visible),(n=>{n||(t.value=e.parsedValue)})),t},I0=new Map;let R0;function P0(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Tz(t.arg)&&n.push(t.arg),function(r,o){const l=t.instance.popperRef,a=r.target,i=null==o?void 0:o.target,s=!t||!t.instance,u=!a||!i,c=e.contains(a)||e.contains(i),d=e===a,p=n.length&&n.some((e=>null==e?void 0:e.contains(a)))||n.length&&n.includes(i),f=l&&(l.contains(a)||l.contains(i));s||u||c||d||p||f||t.value(r,o)}}Xi&&(document.addEventListener("mousedown",(e=>R0=e)),document.addEventListener("mouseup",(e=>{for(const t of I0.values())for(const{documentHandler:n}of t)n(e,R0)})));const N0={beforeMount(e,t){I0.has(e)||I0.set(e,[]),I0.get(e).push({documentHandler:P0(e,t),bindingFn:t.value})},updated(e,t){I0.has(e)||I0.set(e,[]);const n=I0.get(e),r=n.findIndex((e=>e.bindingFn===t.oldValue)),o={documentHandler:P0(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(e){I0.delete(e)}},j0=100,V0=600,B0={beforeMount(e,t){const n=t.value,{interval:r=j0,delay:o=V0}=g(n)?{}:n;let l,a;const i=()=>g(n)?n():n.handler(),s=()=>{a&&(clearTimeout(a),a=void 0),l&&(clearInterval(l),l=void 0)};e.addEventListener("mousedown",(e=>{0===e.button&&(s(),i(),document.addEventListener("mouseup",(()=>s()),{once:!0}),a=setTimeout((()=>{l=setInterval((()=>{i()}),r)}),o))}))}},H0="_trap-focus-children",D0=[],$0=e=>{if(0===D0.length)return;const t=D0[D0.length-1][H0];if(t.length>0&&e.code===kK.tab){if(1===t.length)return e.preventDefault(),void(document.activeElement!==t[0]&&t[0].focus());const n=e.shiftKey,r=e.target===t[0],o=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),o&&!n&&(e.preventDefault(),t[0].focus())}},F0={beforeMount(e){e[H0]=Ri(e),D0.push(e),D0.length<=1&&document.addEventListener("keydown",$0)},updated(e){wn((()=>{e[H0]=Ri(e)}))},unmounted(){D0.shift(),0===D0.length&&document.removeEventListener("keydown",$0)}};var W0,U0,K0,q0,Y0,G0,J0,X0,Q0,Z0,e2,t2,n2,r2,o2,l2=!1;function a2(){if(!l2){l2=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(t2=/\b(iPhone|iP[ao]d)/.exec(e),n2=/\b(iP[ao]d)/.exec(e),Z0=/Android/i.exec(e),r2=/FBAN\/\w+;/i.exec(e),o2=/Mobile/i.exec(e),e2=!!/Win64/.exec(e),t){(W0=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(W0=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);G0=r?parseFloat(r[1])+4:W0,U0=t[2]?parseFloat(t[2]):NaN,K0=t[3]?parseFloat(t[3]):NaN,(q0=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Y0=t&&t[1]?parseFloat(t[1]):NaN):Y0=NaN}else W0=U0=K0=Y0=q0=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);J0=!o||parseFloat(o[1].replace("_","."))}else J0=!1;X0=!!n[2],Q0=!!n[3]}else J0=X0=Q0=!1}}var i2,s2={ie:function(){return a2()||W0},ieCompatibilityMode:function(){return a2()||G0>W0},ie64:function(){return s2.ie()&&e2},firefox:function(){return a2()||U0},opera:function(){return a2()||K0},webkit:function(){return a2()||q0},safari:function(){return s2.webkit()},chrome:function(){return a2()||Y0},windows:function(){return a2()||X0},osx:function(){return a2()||J0},linux:function(){return a2()||Q0},iphone:function(){return a2()||t2},mobile:function(){return a2()||t2||n2||Z0||o2},nativeApp:function(){return a2()||r2},android:function(){return a2()||Z0},ipad:function(){return a2()||n2}},u2=s2,c2=!!(typeof window<"u"&&window.document&&window.document.createElement),d2=c2;c2&&!window.addEventListener&&window.attachEvent,c2&&window.screen;d2&&(i2=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));function p2(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}p2.getEventType=function(){return u2.firefox()?"DOMMouseScroll":function(e,t){if(!d2||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r="function"==typeof o[n]}return!r&&i2&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}("wheel")?"wheel":"mousewheel"};var f2=p2; +/** + * Checks if an event is supported in the current execution environment. + * + * NOTE: This will not work correctly for non-generic events such as `change`, + * `reset`, `load`, `error`, and `select`. + * + * Borrows from Modernizr. + * + * @param {string} eventNameSuffix Event name, e.g. "click". + * @param {?boolean} capture Check if the capture phase is supported. + * @return {boolean} True if the event is supported. + * @internal + * @license Modernizr 3.0.0pre (Custom Build) | MIT + */const v2={beforeMount(e,t){!function(e,t){if(e&&e.addEventListener){const n=function(e){const n=f2(e);t&&Reflect.apply(t,this,[e,n])};e.addEventListener("wheel",n,{passive:!0})}}(e,t.value)}},h2=fK({role:{type:String,required:!0},spinnerDate:{type:Object,required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""},...b0}),m2=["onClick"],g2=["onMouseenter"],y2=wr({__name:"basic-time-spinner",props:h2,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=tq("time"),{getHoursList:o,getMinutesList:l,getSecondsList:a}=T0(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let i=!1;const s=Wt(),u={hours:Wt(),minutes:Wt(),seconds:Wt()},c=oa((()=>n.showSeconds?a0:a0.slice(0,2))),d=oa((()=>{const{spinnerDate:e}=n;return{hours:e.hour(),minutes:e.minute(),seconds:e.second()}})),p=oa((()=>{const{hours:e,minutes:t}=Gt(d);return{hours:o(n.role),minutes:l(e,n.role),seconds:a(e,t,n.role)}})),f=oa((()=>{const{hours:e,minutes:t,seconds:n}=Gt(d);return{hours:c0(e,23),minutes:c0(t,59),seconds:c0(n,59)}})),v=Pk((e=>{i=!1,g(e)}),200),h=e=>{if(!n.amPmMode)return"";let t=e<12?" am":" pm";return"A"===n.amPmMode&&(t=t.toUpperCase()),t},m=e=>{let n;switch(e){case"hours":n=[0,2];break;case"minutes":n=[3,5];break;case"seconds":n=[6,8]}const[r,o]=n;t("select-range",r,o),s.value=e},g=e=>{w(e,Gt(d)[e])},y=()=>{g("hours"),g("minutes"),g("seconds")},b=e=>e.querySelector(`.${r.namespace.value}-scrollbar__wrap`),w=(e,t)=>{if(n.arrowControl)return;const r=Gt(u[e]);r&&r.$el&&(b(r.$el).scrollTop=Math.max(0,t*x(e)))},x=e=>{const t=Gt(u[e]);return(null==t?void 0:t.$el.querySelector("li").offsetHeight)||0},C=()=>{S(1)},k=()=>{S(-1)},S=e=>{s.value||m("hours");const t=s.value,n=Gt(d)[t],r="hours"===s.value?24:60,o=_(t,n,e,r);E(t,o),w(t,o),wn((()=>m(t)))},_=(e,t,n,r)=>{let o=(t+n+r)%r;const l=Gt(p)[e];for(;l[o]&&o!==t;)o=(o+n+r)%r;return o},E=(e,r)=>{if(Gt(p)[e][r])return;const{hours:o,minutes:l,seconds:a}=Gt(d);let i;switch(e){case"hours":i=n.spinnerDate.hour(r).minute(l).second(a);break;case"minutes":i=n.spinnerDate.hour(o).minute(r).second(a);break;case"seconds":i=n.spinnerDate.hour(o).minute(l).second(r)}t("change",i)},O=()=>{const e=e=>{const t=Gt(u[e]);t&&t.$el&&(b(t.$el).onscroll=()=>{(e=>{i=!0,v(e);const t=Math.min(Math.round((b(Gt(u[e]).$el).scrollTop-(.5*(e=>Gt(u[e]).$el.offsetHeight)(e)-10)/x(e)+3)/x(e)),"hours"===e?23:59);E(e,t)})(e)})};e("hours"),e("minutes"),e("seconds")};return Nr((()=>{wn((()=>{!n.arrowControl&&O(),y(),"start"===n.role&&m("hours")}))})),t("set-option",[`${n.role}_scrollDown`,S]),t("set-option",[`${n.role}_emitSelectRange`,m]),nr((()=>n.spinnerDate),(()=>{i||y()})),(e,t)=>(vl(),bl("div",{class:X([Gt(r).b("spinner"),{"has-seconds":e.showSeconds}])},[e.arrowControl?Ll("v-if",!0):(vl(!0),bl(sl,{key:0},Qr(Gt(c),(t=>(vl(),wl(Gt(EX),{key:t,ref_for:!0,ref:e=>{return n=e,void(u[t].value=n);var n},class:X(Gt(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":Gt(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:e=>m(t),onMousemove:e=>g(t)},{default:Bn((()=>[(vl(!0),bl(sl,null,Qr(Gt(p)[t],((n,o)=>(vl(),bl("li",{key:o,class:X([Gt(r).be("spinner","item"),Gt(r).is("active",o===Gt(d)[t]),Gt(r).is("disabled",n)]),onClick:e=>((e,{value:t,disabled:n})=>{n||(E(e,t),m(e),w(e,t))})(t,{value:o,disabled:n})},["hours"===t?(vl(),bl(sl,{key:0},[Tl(ve(("0"+(e.amPmMode?o%12||12:o)).slice(-2))+ve(h(o)),1)],64)):(vl(),bl(sl,{key:1},[Tl(ve(("0"+o).slice(-2)),1)],64))],10,m2)))),128))])),_:2},1032,["class","view-class","onMouseenter","onMousemove"])))),128)),e.arrowControl?(vl(!0),bl(sl,{key:1},Qr(Gt(c),(t=>(vl(),bl("div",{key:t,class:X([Gt(r).be("spinner","wrapper"),Gt(r).is("arrow")]),onMouseenter:e=>m(t)},[ir((vl(),wl(Gt(ZG),{class:X(["arrow-up",Gt(r).be("spinner","arrow")])},{default:Bn((()=>[Ol(Gt(TT))])),_:1},8,["class"])),[[Gt(B0),k]]),ir((vl(),wl(Gt(ZG),{class:X(["arrow-down",Gt(r).be("spinner","arrow")])},{default:Bn((()=>[Ol(Gt(pT))])),_:1},8,["class"])),[[Gt(B0),C]]),El("ul",{class:X(Gt(r).be("spinner","list"))},[(vl(!0),bl(sl,null,Qr(Gt(f)[t],((n,o)=>(vl(),bl("li",{key:o,class:X([Gt(r).be("spinner","item"),Gt(r).is("active",n===Gt(d)[t]),Gt(r).is("disabled",Gt(p)[t][n])])},["number"==typeof n?(vl(),bl(sl,{key:0},["hours"===t?(vl(),bl(sl,{key:0},[Tl(ve(("0"+(e.amPmMode?n%12||12:n)).slice(-2))+ve(h(n)),1)],64)):(vl(),bl(sl,{key:1},[Tl(ve(("0"+n).slice(-2)),1)],64))],64)):Ll("v-if",!0)],2)))),128))],2)],42,g2)))),128)):Ll("v-if",!0)],2))}});var b2=UG(y2,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const w2=wr({__name:"panel-time-pick",props:O0,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=zo("EP_PICKER_BASE"),{arrowControl:o,disabledHours:l,disabledMinutes:a,disabledSeconds:i,defaultValue:s}=r.props,{getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:d}=A0(l,a,i),p=tq("time"),{t:f,lang:v}=JK(),h=Wt([0,2]),m=L0(n),g=oa((()=>Ez(n.actualVisible)?`${p.namespace.value}-zoom-in-top`:"")),y=oa((()=>n.format.includes("ss"))),b=oa((()=>n.format.includes("A")?"A":n.format.includes("a")?"a":"")),w=()=>{t("pick",m.value,!1)},x=e=>{if(!n.visible)return;const r=E(e).millisecond(0);t("pick",r,!0)},C=(e,n)=>{t("select-range",e,n),h.value=[e,n]},{timePickerOptions:k,onSetOption:S,getAvailableTime:_}=M0({getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:d}),E=e=>_(e,n.datetimeRole||"",!0);return t("set-picker-option",["isValidValue",e=>{const t=r0(e).locale(v.value),n=E(t);return t.isSame(n)}]),t("set-picker-option",["formatToString",e=>e?e.format(n.format):null]),t("set-picker-option",["parseUserInput",e=>e?r0(e,n.format).locale(v.value):null]),t("set-picker-option",["handleKeydownInput",e=>{const t=e.code,{left:n,right:r,up:o,down:l}=kK;if([n,r].includes(t))return(e=>{const t=[0,3].concat(y.value?[6]:[]),n=["hours","minutes"].concat(y.value?["seconds"]:[]),r=(t.indexOf(h.value[0])+e+t.length)%t.length;k.start_emitSelectRange(n[r])})(t===n?-1:1),void e.preventDefault();if([o,l].includes(t)){const n=t===o?-1:1;return k.start_scrollDown(n),void e.preventDefault()}}]),t("set-picker-option",["getRangeAvailableTime",E]),t("set-picker-option",["getDefaultValue",()=>r0(s).locale(v.value)]),(e,r)=>(vl(),wl(La,{name:Gt(g)},{default:Bn((()=>[e.actualVisible||e.visible?(vl(),bl("div",{key:0,class:X(Gt(p).b("panel"))},[El("div",{class:X([Gt(p).be("panel","content"),{"has-seconds":Gt(y)}])},[Ol(b2,{ref:"spinner",role:e.datetimeRole||"start","arrow-control":Gt(o),"show-seconds":Gt(y),"am-pm-mode":Gt(b),"spinner-date":e.parsedValue,"disabled-hours":Gt(l),"disabled-minutes":Gt(a),"disabled-seconds":Gt(i),onChange:x,onSetOption:Gt(S),onSelectRange:C},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),El("div",{class:X(Gt(p).be("panel","footer"))},[El("button",{type:"button",class:X([Gt(p).be("panel","btn"),"cancel"]),onClick:w},ve(Gt(f)("el.datepicker.cancel")),3),El("button",{type:"button",class:X([Gt(p).be("panel","btn"),"confirm"]),onClick:r[0]||(r[0]=e=>((e=!1,r=!1)=>{r||t("pick",n.parsedValue,e)})())},ve(Gt(f)("el.datepicker.confirm")),3)],2)],2)):Ll("v-if",!0)])),_:1},8,["name"]))}});var x2=UG(w2,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const C2=fK({...w0,parsedValue:{type:Array}}),k2=["disabled"],S2=wr({__name:"panel-time-range",props:C2,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(e,t)=>{const n=[];for(let r=e;r<=t;r++)n.push(r);return n},{t:o,lang:l}=JK(),a=tq("time"),i=tq("picker"),s=zo("EP_PICKER_BASE"),{arrowControl:u,disabledHours:c,disabledMinutes:d,disabledSeconds:f,defaultValue:v}=s.props,h=oa((()=>n.parsedValue[0])),m=oa((()=>n.parsedValue[1])),g=L0(n),y=oa((()=>n.format.includes("ss"))),b=oa((()=>n.format.includes("A")?"A":n.format.includes("a")?"a":"")),w=e=>{C(e.millisecond(0),m.value)},x=e=>{C(h.value,e.millisecond(0))},C=(e,n)=>{t("pick",[e,n],!0)},k=oa((()=>h.value>m.value)),S=Wt([0,2]),_=(e,n)=>{t("select-range",e,n,"min"),S.value=[e,n]},E=oa((()=>y.value?11:8)),O=(e,n)=>{t("select-range",e,n,"max");const r=Gt(E);S.value=[e+r,n+r]},M=(e,t)=>{const n=c?c(e):[],o="start"===e,l=(t||(o?m.value:h.value)).hour(),a=o?r(l+1,23):r(0,l-1);return QM(n,a)},z=(e,t,n)=>{const o=d?d(e,t):[],l="start"===t,a=n||(l?m.value:h.value);if(e!==a.hour())return o;const i=a.minute(),s=l?r(i+1,59):r(0,i-1);return QM(o,s)},T=(e,t,n,o)=>{const l=f?f(e,t,n):[],a="start"===n,i=o||(a?m.value:h.value),s=i.hour(),u=i.minute();if(e!==s||t!==u)return l;const c=i.second(),d=a?r(c+1,59):r(0,c-1);return QM(l,d)},A=([e,t])=>[N(e,"start",!0,t),N(t,"end",!1,e)],{getAvailableHours:L,getAvailableMinutes:I,getAvailableSeconds:R}=A0(M,z,T),{timePickerOptions:P,getAvailableTime:N,onSetOption:j}=M0({getAvailableHours:L,getAvailableMinutes:I,getAvailableSeconds:R});return t("set-picker-option",["formatToString",e=>e?p(e)?e.map((e=>e.format(n.format))):e.format(n.format):null]),t("set-picker-option",["parseUserInput",e=>e?p(e)?e.map((e=>r0(e,n.format).locale(l.value))):r0(e,n.format).locale(l.value):null]),t("set-picker-option",["isValidValue",e=>{const t=e.map((e=>r0(e).locale(l.value))),n=A(t);return t[0].isSame(n[0])&&t[1].isSame(n[1])}]),t("set-picker-option",["handleKeydownInput",e=>{const t=e.code,{left:n,right:r,up:o,down:l}=kK;if([n,r].includes(t))return(e=>{const t=y.value?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(y.value?["seconds"]:[]),r=(t.indexOf(S.value[0])+e+t.length)%t.length,o=t.length/2;r{if(p(v))return v.map((e=>r0(e).locale(l.value)));const e=r0(v).locale(l.value);return[e,e.add(60,"m")]}]),t("set-picker-option",["getRangeAvailableTime",A]),(e,n)=>e.actualVisible?(vl(),bl("div",{key:0,class:X([Gt(a).b("range-picker"),Gt(i).b("panel")])},[El("div",{class:X(Gt(a).be("range-picker","content"))},[El("div",{class:X(Gt(a).be("range-picker","cell"))},[El("div",{class:X(Gt(a).be("range-picker","header"))},ve(Gt(o)("el.datepicker.startTime")),3),El("div",{class:X([Gt(a).be("range-picker","body"),Gt(a).be("panel","content"),Gt(a).is("arrow",Gt(u)),{"has-seconds":Gt(y)}])},[Ol(b2,{ref:"minSpinner",role:"start","show-seconds":Gt(y),"am-pm-mode":Gt(b),"arrow-control":Gt(u),"spinner-date":Gt(h),"disabled-hours":M,"disabled-minutes":z,"disabled-seconds":T,onChange:w,onSetOption:Gt(j),onSelectRange:_},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),El("div",{class:X(Gt(a).be("range-picker","cell"))},[El("div",{class:X(Gt(a).be("range-picker","header"))},ve(Gt(o)("el.datepicker.endTime")),3),El("div",{class:X([Gt(a).be("range-picker","body"),Gt(a).be("panel","content"),Gt(a).is("arrow",Gt(u)),{"has-seconds":Gt(y)}])},[Ol(b2,{ref:"maxSpinner",role:"end","show-seconds":Gt(y),"am-pm-mode":Gt(b),"arrow-control":Gt(u),"spinner-date":Gt(m),"disabled-hours":M,"disabled-minutes":z,"disabled-seconds":T,onChange:x,onSetOption:Gt(j),onSelectRange:O},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),El("div",{class:X(Gt(a).be("panel","footer"))},[El("button",{type:"button",class:X([Gt(a).be("panel","btn"),"cancel"]),onClick:n[0]||(n[0]=e=>{t("pick",g.value,!1)})},ve(Gt(o)("el.datepicker.cancel")),3),El("button",{type:"button",class:X([Gt(a).be("panel","btn"),"confirm"]),disabled:Gt(k),onClick:n[1]||(n[1]=e=>((e=!1)=>{t("pick",[h.value,m.value],e)})())},ve(Gt(o)("el.datepicker.confirm")),11,k2)],2)],2)):Ll("v-if",!0)}});var _2=UG(S2,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);r0.extend(l0);var E2=wr({name:"ElTimePicker",install:null,props:{...x0,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=Wt(),[r,o]=e.isRange?["timerange",_2]:["time",x2],l=e=>t.emit("update:modelValue",e);return Mo("ElPopperOptions",e.popperOptions),t.expose({focus:e=>{var t;null==(t=n.value)||t.handleFocusInput(e)},blur:e=>{var t;null==(t=n.value)||t.handleBlurInput(e)},handleOpen:()=>{var e;null==(e=n.value)||e.handleOpen()},handleClose:()=>{var e;null==(e=n.value)||e.handleClose()}}),()=>{var t;const a=null!=(t=e.format)?t:i0;return Ol(E0,Nl(e,{ref:n,type:r,format:a,"onUpdate:modelValue":l}),{default:e=>Ol(o,e,null)})}}});const O2=E2;O2.install=e=>{e.component(O2.name,O2)};const M2=O2,z2=fK({selectedDay:{type:Object},range:{type:Array},date:{type:Object,required:!0},hideHeader:{type:Boolean}}),T2={pick:e=>w(e)};var A2={exports:{}};A2.exports=function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},l=function(e,t,n,r,l){var a=e.name?e:e.$locale(),i=o(a[t]),s=o(a[n]),u=i||s.map((function(e){return e.slice(0,r)}));if(!l)return u;var c=a.weekStart;return u.map((function(e,t){return u[(t+(c||0))%7]}))},a=function(){return n.Ls[n.locale()]},i=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))},s=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):l(e,"months")},monthsShort:function(t){return t?t.format("MMM"):l(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):l(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):l(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):l(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return i(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return s.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return i(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return l(a(),"months")},n.monthsShort=function(){return l(a(),"monthsShort","months",3)},n.weekdays=function(e){return l(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return l(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return l(a(),"weekdaysMin","weekdays",2,e)}};const L2=e0(A2.exports),I2={key:0},R2=["onClick"],P2=wr({name:"DateTable"}),N2=wr({...P2,props:z2,emits:T2,setup(e,{expose:t,emit:n}){const r=e,{isInRange:o,now:l,rows:a,weekDays:i,getFormattedDate:s,handlePickDay:u,getSlotData:c}=((e,t)=>{r0.extend(L2);const n=r0.localeData().firstDayOfWeek(),{t:r,lang:o}=JK(),l=r0().locale(o.value),a=oa((()=>!!e.range&&!!e.range.length)),i=oa((()=>{let t=[];if(a.value){const[n,r]=e.range,o=d0(r.date()-n.date()+1).map((e=>({text:n.date()+e,type:"current"})));let l=o.length%7;l=0===l?0:7-l;const a=d0(l).map(((e,t)=>({text:t+1,type:"next"})));t=o.concat(a)}else{const r=e.date.startOf("month").day();t=[...((e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return d0(t).map(((e,r)=>n-(t-r-1)))})(e.date,(r-n+7)%7).map((e=>({text:e,type:"prev"}))),...(e=>{const t=e.daysInMonth();return d0(t).map(((e,t)=>t+1))})(e.date).map((e=>({text:e,type:"current"})))];const o=7-(t.length%7||7),l=d0(o).map(((e,t)=>({text:t+1,type:"next"})));t=t.concat(l)}return d0((r=t).length/7).map((e=>{const t=7*e;return r.slice(t,t+7)}));var r})),s=oa((()=>{const e=n;return 0===e?SK.map((e=>r(`el.datepicker.weeks.${e}`))):SK.slice(e).concat(SK.slice(0,e)).map((e=>r(`el.datepicker.weeks.${e}`)))})),u=(t,n)=>{switch(n){case"prev":return e.date.startOf("month").subtract(1,"month").date(t);case"next":return e.date.startOf("month").add(1,"month").date(t);case"current":return e.date.date(t)}};return{now:l,isInRange:a,rows:i,weekDays:s,getFormattedDate:u,handlePickDay:({text:e,type:n})=>{const r=u(e,n);t("pick",r)},getSlotData:({text:t,type:n})=>{const r=u(t,n);return{isSelected:r.isSame(e.selectedDay),type:`${n}-month`,day:r.format("YYYY-MM-DD"),date:r.toDate()}}}})(r,n),d=tq("calendar-table"),p=tq("calendar-day"),f=({text:e,type:t})=>{const n=[t];if("current"===t){const o=s(e,t);o.isSame(r.selectedDay,"day")&&n.push(p.is("selected")),o.isSame(l,"day")&&n.push(p.is("today"))}return n};return t({getFormattedDate:s}),(e,t)=>(vl(),bl("table",{class:X([Gt(d).b(),Gt(d).is("range",Gt(o))]),cellspacing:"0",cellpadding:"0"},[e.hideHeader?Ll("v-if",!0):(vl(),bl("thead",I2,[(vl(!0),bl(sl,null,Qr(Gt(i),(e=>(vl(),bl("th",{key:e},ve(e),1)))),128))])),El("tbody",null,[(vl(!0),bl(sl,null,Qr(Gt(a),((t,n)=>(vl(),bl("tr",{key:n,class:X({[Gt(d).e("row")]:!0,[Gt(d).em("row","hide-border")]:0===n&&e.hideHeader})},[(vl(!0),bl(sl,null,Qr(t,((t,n)=>(vl(),bl("td",{key:n,class:X(f(t)),onClick:e=>Gt(u)(t)},[El("div",{class:X(Gt(p).b())},[eo(e.$slots,"date-cell",{data:Gt(c)(t)},(()=>[El("span",null,ve(t.text),1)]))],2)],10,R2)))),128))],2)))),128))])],2))}});var j2=UG(N2,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const V2=fK({modelValue:{type:Date},range:{type:Array,validator:e=>p(e)&&2===e.length&&e.every((e=>h(e)))}}),B2={[_K]:e=>h(e),[OK]:e=>h(e)},H2=wr({name:"ElCalendar"}),D2=wr({...H2,props:V2,emits:B2,setup(e,{expose:t,emit:n}){const r=e,o=tq("calendar"),{calculateValidatedDateRange:l,date:a,pickDay:i,realSelectedDay:s,selectDate:u,validatedRange:c}=((e,t,n)=>{const r=so(),{lang:o}=JK(),l=Wt(),a=r0().locale(o.value),i=oa({get:()=>e.modelValue?u.value:l.value,set(e){if(!e)return;l.value=e;const n=e.toDate();t(OK,n),t(_K,n)}}),s=oa((()=>{if(!e.range)return[];const t=e.range.map((e=>r0(e).locale(o.value))),[n,r]=t;return n.isAfter(r)?[]:n.isSame(r,"month")?v(n,r):n.add(1,"month").month()!==r.month()?[]:v(n,r)})),u=oa((()=>e.modelValue?r0(e.modelValue).locale(o.value):i.value||(s.value.length?s.value[0][0]:a))),c=oa((()=>u.value.subtract(1,"month").date(1))),d=oa((()=>u.value.add(1,"month").date(1))),p=oa((()=>u.value.subtract(1,"year").date(1))),f=oa((()=>u.value.add(1,"year").date(1))),v=(e,t)=>{const n=e.startOf("week"),r=t.endOf("week"),o=n.get("month"),l=r.get("month");return o===l?[[n,r]]:(o+1)%12===l?((e,t)=>{const n=e.endOf("month"),r=t.startOf("month"),o=n.isSame(r,"week");return[[e,n],[(o?r.add(1,"week"):r).startOf("week"),t]]})(n,r):o+2===l||(o+1)%11===l?((e,t)=>{const n=e.endOf("month"),r=e.add(1,"month").startOf("month"),o=n.isSame(r,"week")?r.add(1,"week"):r,l=o.endOf("month"),a=t.startOf("month"),i=l.isSame(a,"week")?a.add(1,"week"):a;return[[e,n],[o.startOf("week"),l],[i.startOf("week"),t]]})(n,r):[]},h=e=>{i.value=e};return WK({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},oa((()=>!!r.dateCell))),{calculateValidatedDateRange:v,date:u,realSelectedDay:i,pickDay:h,selectDate:e=>{const t={"prev-month":c.value,"next-month":d.value,"prev-year":p.value,"next-year":f.value,today:a}[e];t.isSame(u.value,"day")||h(t)},validatedRange:s}})(r,n),{t:d}=JK(),p=oa((()=>{const e=`el.datepicker.month${a.value.format("M")}`;return`${a.value.year()} ${d("el.datepicker.year")} ${d(e)}`}));return t({selectedDay:s,pickDay:i,selectDate:u,calculateValidatedDateRange:l}),(e,t)=>(vl(),bl("div",{class:X(Gt(o).b())},[El("div",{class:X(Gt(o).e("header"))},[eo(e.$slots,"header",{date:Gt(p)},(()=>[El("div",{class:X(Gt(o).e("title"))},ve(Gt(p)),3),0===Gt(c).length?(vl(),bl("div",{key:0,class:X(Gt(o).e("button-group"))},[Ol(Gt(QZ),null,{default:Bn((()=>[Ol(Gt(XZ),{size:"small",onClick:t[0]||(t[0]=e=>Gt(u)("prev-month"))},{default:Bn((()=>[Tl(ve(Gt(d)("el.datepicker.prevMonth")),1)])),_:1}),Ol(Gt(XZ),{size:"small",onClick:t[1]||(t[1]=e=>Gt(u)("today"))},{default:Bn((()=>[Tl(ve(Gt(d)("el.datepicker.today")),1)])),_:1}),Ol(Gt(XZ),{size:"small",onClick:t[2]||(t[2]=e=>Gt(u)("next-month"))},{default:Bn((()=>[Tl(ve(Gt(d)("el.datepicker.nextMonth")),1)])),_:1})])),_:1})],2)):Ll("v-if",!0)]))],2),0===Gt(c).length?(vl(),bl("div",{key:0,class:X(Gt(o).e("body"))},[Ol(j2,{date:Gt(a),"selected-day":Gt(s),onPick:Gt(i)},Zr({_:2},[e.$slots["date-cell"]||e.$slots.dateCell?{name:"date-cell",fn:Bn((t=>[e.$slots["date-cell"]?eo(e.$slots,"date-cell",Q(Nl({key:0},t))):eo(e.$slots,"dateCell",Q(Nl({key:1},t)))]))}:void 0]),1032,["date","selected-day","onPick"])],2)):(vl(),bl("div",{key:1,class:X(Gt(o).e("body"))},[(vl(!0),bl(sl,null,Qr(Gt(c),((t,n)=>(vl(),wl(j2,{key:n,date:t[0],"selected-day":Gt(s),range:t,"hide-header":0!==n,onPick:Gt(i)},Zr({_:2},[e.$slots["date-cell"]||e.$slots.dateCell?{name:"date-cell",fn:Bn((t=>[e.$slots["date-cell"]?eo(e.$slots,"date-cell",Q(Nl({key:0},t))):eo(e.$slots,"dateCell",Q(Nl({key:1},t)))]))}:void 0]),1032,["date","selected-day","range","hide-header","onPick"])))),128))],2))],2))}}),$2=bK(UG(D2,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]])),F2=fK({header:{type:String,default:""},bodyStyle:{type:[String,Object,Array],default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),W2=wr({name:"ElCard"}),U2=bK(UG(wr({...W2,props:F2,setup(e){const t=tq("card");return(e,n)=>(vl(),bl("div",{class:X([Gt(t).b(),Gt(t).is(`${e.shadow}-shadow`)])},[e.$slots.header||e.header?(vl(),bl("div",{key:0,class:X(Gt(t).e("header"))},[eo(e.$slots,"header",{},(()=>[Tl(ve(e.header),1)]))],2)):Ll("v-if",!0),El("div",{class:X(Gt(t).e("body")),style:K(e.bodyStyle)},[eo(e.$slots,"default")],6)],2))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]])),K2=fK({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),q2={change:(e,t)=>[e,t].every(Mz)},Y2=Symbol("carouselContextKey"),G2=["onMouseenter","onClick"],J2={key:0},X2=wr({name:"ElCarousel"}),Q2=wr({...X2,props:K2,emits:q2,setup(e,{expose:t,emit:n}){const r=e,{root:o,activeIndex:l,arrowDisplay:a,hasLabel:i,hover:s,isCardType:u,items:c,isVertical:d,containerStyle:p,handleButtonEnter:f,handleButtonLeave:v,handleIndicatorClick:h,handleMouseEnter:m,handleMouseLeave:g,setActiveItem:b,prev:w,next:x,throttledArrowClick:C,throttledIndicatorHover:k}=((e,t,n)=>{const{children:r,addChild:o,removeChild:l}=AG($l(),"ElCarouselItem"),a=Wt(-1),i=Wt(null),s=Wt(!1),u=Wt(),c=Wt(0),d=oa((()=>"never"!==e.arrow&&!Gt(v))),p=oa((()=>r.value.some((e=>e.props.label.toString().length>0)))),f=oa((()=>"card"===e.type)),v=oa((()=>"vertical"===e.direction)),h=oa((()=>"auto"!==e.height?{height:e.height}:{height:`${c.value}px`,overflow:"hidden"})),m=PM((e=>{C(e)}),300,{trailing:!0}),g=PM((t=>{var n;n=t,"hover"===e.trigger&&n!==a.value&&(a.value=n)}),300);function b(){i.value&&(clearInterval(i.value),i.value=null)}function w(){e.interval<=0||!e.autoplay||i.value||(i.value=setInterval((()=>x()),e.interval))}const x=()=>{a.valuee.props.name===t));e.length>0&&(t=r.value.indexOf(e[0]))}if(t=Number(t),Number.isNaN(t)||t!==Math.floor(t))return;const n=r.value.length,o=a.value;a.value=t<0?e.loop?n-1:0:t>=n?e.loop?0:n-1:t,o===a.value&&k(o),S()}function k(e){r.value.forEach(((t,n)=>{t.translateItem(n,a.value,e)}))}function S(){b(),w()}nr((()=>a.value),((e,n)=>{k(n),n>-1&&t("change",e,n)})),nr((()=>e.autoplay),(e=>{e?w():b()})),nr((()=>e.loop),(()=>{C(a.value)})),nr((()=>e.interval),(()=>{S()})),nr((()=>r.value),(()=>{r.value.length>0&&C(e.initialIndex)}));const _=Ut();return Nr((()=>{_.value=hp(u.value,(()=>{k()})),w()})),Br((()=>{b(),u.value&&_.value&&_.value.stop()})),Mo(Y2,{root:u,isCardType:f,isVertical:v,items:r,loop:e.loop,addItem:o,removeItem:l,setActiveItem:C,setContainerHeight:function(t){"auto"===e.height&&(c.value=t)}}),{root:u,activeIndex:a,arrowDisplay:d,hasLabel:p,hover:s,isCardType:f,items:r,isVertical:v,containerStyle:h,handleButtonEnter:function(e){Gt(v)||r.value.forEach(((t,n)=>{e===function(e,t){var n,o,l,a;const i=Gt(r),s=i.length;if(0===s||!e.states.inStage)return!1;const u=t+1,c=t-1,d=s-1,p=i[d].states.active,f=i[0].states.active,v=null==(o=null==(n=i[u])?void 0:n.states)?void 0:o.active,h=null==(a=null==(l=i[c])?void 0:l.states)?void 0:a.active;return t===d&&f||v?"left":!!(0===t&&p||h)&&"right"}(t,n)&&(t.states.hover=!0)}))},handleButtonLeave:function(){Gt(v)||r.value.forEach((e=>{e.states.hover=!1}))},handleIndicatorClick:function(e){a.value=e},handleMouseEnter:function(){s.value=!0,e.pauseOnHover&&b()},handleMouseLeave:function(){s.value=!1,w()},setActiveItem:C,prev:function(){C(a.value-1)},next:function(){C(a.value+1)},throttledArrowClick:m,throttledIndicatorHover:g}})(r,n),S=tq("carousel"),_=oa((()=>{const e=[S.b(),S.m(r.direction)];return Gt(u)&&e.push(S.m("card")),e})),E=oa((()=>{const e=[S.e("indicators"),S.em("indicators",r.direction)];return Gt(i)&&e.push(S.em("indicators","labels")),"outside"===r.indicatorPosition&&e.push(S.em("indicators","outside")),Gt(d)&&e.push(S.em("indicators","right")),e}));return t({setActiveItem:b,prev:w,next:x}),(e,t)=>(vl(),bl("div",{ref_key:"root",ref:o,class:X(Gt(_)),onMouseenter:t[6]||(t[6]=gi(((...e)=>Gt(m)&&Gt(m)(...e)),["stop"])),onMouseleave:t[7]||(t[7]=gi(((...e)=>Gt(g)&&Gt(g)(...e)),["stop"]))},[El("div",{class:X(Gt(S).e("container")),style:K(Gt(p))},[Gt(a)?(vl(),wl(La,{key:0,name:"carousel-arrow-left",persisted:""},{default:Bn((()=>[ir(El("button",{type:"button",class:X([Gt(S).e("arrow"),Gt(S).em("arrow","left")]),onMouseenter:t[0]||(t[0]=e=>Gt(f)("left")),onMouseleave:t[1]||(t[1]=(...e)=>Gt(v)&&Gt(v)(...e)),onClick:t[2]||(t[2]=gi((e=>Gt(C)(Gt(l)-1)),["stop"]))},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(yT))])),_:1})],34),[[wi,("always"===e.arrow||Gt(s))&&(r.loop||Gt(l)>0)]])])),_:1})):Ll("v-if",!0),Gt(a)?(vl(),wl(La,{key:1,name:"carousel-arrow-right",persisted:""},{default:Bn((()=>[ir(El("button",{type:"button",class:X([Gt(S).e("arrow"),Gt(S).em("arrow","right")]),onMouseenter:t[3]||(t[3]=e=>Gt(f)("right")),onMouseleave:t[4]||(t[4]=(...e)=>Gt(v)&&Gt(v)(...e)),onClick:t[5]||(t[5]=gi((e=>Gt(C)(Gt(l)+1)),["stop"]))},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(ST))])),_:1})],34),[[wi,("always"===e.arrow||Gt(s))&&(r.loop||Gt(l)(vl(),bl("li",{key:n,class:X([Gt(S).e("indicator"),Gt(S).em("indicator",e.direction),Gt(S).is("active",n===Gt(l))]),onMouseenter:e=>Gt(k)(n),onClick:gi((e=>Gt(h)(n)),["stop"])},[El("button",{class:X(Gt(S).e("button"))},[Gt(i)?(vl(),bl("span",J2,ve(t.props.label),1)):Ll("v-if",!0)],2)],42,G2)))),128))],2)):Ll("v-if",!0)],34))}});var Z2=UG(Q2,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const e1=fK({name:{type:String,default:""},label:{type:[String,Number],default:""}}),t1=wr({name:"ElCarouselItem"}),n1=wr({...t1,props:e1,setup(e){const t=e,n=tq("carousel"),{carouselItemRef:r,active:o,animating:l,hover:a,inStage:i,isVertical:s,translate:u,isCardType:c,scale:d,ready:p,handleItemClick:f}=((e,t)=>{const n=zo(Y2),r=$l(),o=Wt(),l=Wt(!1),a=Wt(0),i=Wt(1),s=Wt(!1),u=Wt(!1),c=Wt(!1),d=Wt(!1),{isCardType:p,isVertical:f}=n,v=(e,t,r)=>{var l;const v=Gt(p),h=null!=(l=n.items.value.length)?l:Number.NaN,m=e===t;v||Ez(r)||(d.value=m||e===r),!m&&h>2&&n.loop&&(e=function(e,t,n){const r=n-1,o=n/2;return 0===t&&e===r?-1:t===r&&0===e?n:e=o?n+1:e>t+1&&e-t>=o?-2:e}(e,t,h));const g=Gt(f);s.value=m,v?(c.value=Math.round(Math.abs(e-t))<=1,a.value=function(e,t){var r,o;const l=Gt(f)?(null==(r=n.root.value)?void 0:r.offsetHeight)||0:(null==(o=n.root.value)?void 0:o.offsetWidth)||0;return c.value?l*(1.17*(e-t)+1)/4:e{n.addItem({props:e,states:zt({hover:l,translate:a,scale:i,active:s,ready:u,inStage:c,animating:d}),uid:r.uid,translateItem:v})})),Hr((()=>{n.removeItem(r.uid)})),{carouselItemRef:o,active:s,animating:d,hover:l,inStage:c,isVertical:f,translate:a,isCardType:p,scale:i,ready:u,handleItemClick:function(){if(n&&Gt(p)){const e=n.items.value.findIndex((({uid:e})=>e===r.uid));n.setActiveItem(e)}}}})(t),v=oa((()=>({transform:[`${"translate"+(Gt(s)?"Y":"X")}(${Gt(u)}px)`,`scale(${Gt(d)})`].join(" ")})));return(e,t)=>ir((vl(),bl("div",{ref_key:"carouselItemRef",ref:r,class:X([Gt(n).e("item"),Gt(n).is("active",Gt(o)),Gt(n).is("in-stage",Gt(i)),Gt(n).is("hover",Gt(a)),Gt(n).is("animating",Gt(l)),{[Gt(n).em("item","card")]:Gt(c),[Gt(n).em("item","card-vertical")]:Gt(c)&&Gt(s)}]),style:K(Gt(v)),onClick:t[0]||(t[0]=(...e)=>Gt(f)&&Gt(f)(...e))},[Gt(c)?ir((vl(),bl("div",{key:0,class:X(Gt(n).e("mask"))},null,2)),[[wi,!Gt(o)]]):Ll("v-if",!0),eo(e.$slots,"default")],6)),[[wi,Gt(p)]])}});var r1=UG(n1,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const o1=bK(Z2,{CarouselItem:r1}),l1=xK(r1),a1={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:LG,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},i1={[_K]:e=>y(e)||Mz(e)||Oz(e),change:e=>y(e)||Mz(e)||Oz(e)},s1=Symbol("checkboxGroupContextKey"),u1=(e,t)=>{const{formItem:n}=uJ(),{model:r,isGroup:o,isLimitExceeded:l}=(e=>{const t=Wt(!1),{emit:n}=$l(),r=zo(s1,void 0),o=oa((()=>!1===Ez(r))),l=Wt(!1);return{model:oa({get(){var n,l;return o.value?null==(n=null==r?void 0:r.modelValue)?void 0:n.value:null!=(l=e.modelValue)?l:t.value},set(e){var a,i;o.value&&p(e)?(l.value=void 0!==(null==(a=null==r?void 0:r.max)?void 0:a.value)&&e.length>(null==r?void 0:r.max.value),!1===l.value&&(null==(i=null==r?void 0:r.changeEvent)||i.call(r,e))):(n(_K,e),t.value=e)}}),isGroup:o,isLimitExceeded:l}})(e),{isFocused:a,isChecked:i,checkboxButtonSize:s,checkboxSize:u,hasOwnLabel:c}=((e,t,{model:n})=>{const r=zo(s1,void 0),o=Wt(!1),l=oa((()=>{const t=n.value;return Oz(t)?t:p(t)?w(e.label)?t.map(jt).some((t=>$_(t,e.label))):t.map(jt).includes(e.label):null!=t?t===e.trueLabel:!!t}));return{checkboxButtonSize:iJ(oa((()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value})),{prop:!0}),isChecked:l,isFocused:o,checkboxSize:iJ(oa((()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value}))),hasOwnLabel:oa((()=>!(!t.default&&!e.label)))}})(e,t,{model:r}),{isDisabled:d}=(({model:e,isChecked:t})=>{const n=zo(s1,void 0),r=oa((()=>{var r,o;const l=null==(r=null==n?void 0:n.max)?void 0:r.value,a=null==(o=null==n?void 0:n.min)?void 0:o.value;return!Ez(l)&&e.value.length>=l&&!t.value||!Ez(a)&&e.value.length<=a&&t.value}));return{isDisabled:sJ(oa((()=>(null==n?void 0:n.disabled.value)||r.value))),isLimitDisabled:r}})({model:r,isChecked:i}),{inputId:f,isLabeledByFormItem:v}=cJ(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:o}),{handleChange:h,onClickRoot:m}=((e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:l})=>{const a=zo(s1,void 0),{formItem:i}=uJ(),{emit:s}=$l();function u(t){var n,r;return t===e.trueLabel||!0===t?null==(n=e.trueLabel)||n:null!=(r=e.falseLabel)&&r}const c=oa((()=>(null==a?void 0:a.validateEvent)||e.validateEvent));return nr((()=>e.modelValue),(()=>{c.value&&(null==i||i.validate("change").catch((e=>{})))})),{handleChange:function(e){if(n.value)return;const t=e.target;s("change",u(t.checked),e)},onClickRoot:async function(a){var i,c;n.value||r.value||o.value||!l.value||a.composedPath().some((e=>"LABEL"===e.tagName))||(t.value=u([!1,e.falseLabel].includes(t.value)),await wn(),i=t.value,c=a,s("change",u(i),c))}}})(e,{model:r,isLimitExceeded:l,hasOwnLabel:c,isDisabled:d,isLabeledByFormItem:v});return((e,{model:t})=>{e.checked&&(p(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0)})(e,{model:r}),{inputId:f,isLabeledByFormItem:v,isChecked:i,isDisabled:d,isFocused:a,checkboxButtonSize:s,checkboxSize:u,hasOwnLabel:c,model:r,handleChange:h,onClickRoot:m}},c1=["tabindex","role","aria-checked"],d1=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],p1=["id","aria-hidden","disabled","value","name","tabindex"],f1=wr({name:"ElCheckbox"});var v1=UG(wr({...f1,props:a1,emits:i1,setup(e){const t=e,n=so(),{inputId:r,isLabeledByFormItem:o,isChecked:l,isDisabled:a,isFocused:i,checkboxSize:s,hasOwnLabel:u,model:c,handleChange:d,onClickRoot:p}=u1(t,n),f=tq("checkbox"),v=oa((()=>[f.b(),f.m(s.value),f.is("disabled",a.value),f.is("bordered",t.border),f.is("checked",l.value)])),h=oa((()=>[f.e("input"),f.is("disabled",a.value),f.is("checked",l.value),f.is("indeterminate",t.indeterminate),f.is("focus",i.value)]));return(e,t)=>(vl(),wl(Yr(!Gt(u)&&Gt(o)?"span":"label"),{class:X(Gt(v)),"aria-controls":e.indeterminate?e.controls:null,onClick:Gt(p)},{default:Bn((()=>[El("span",{class:X(Gt(h)),tabindex:e.indeterminate?0:void 0,role:e.indeterminate?"checkbox":void 0,"aria-checked":e.indeterminate?"mixed":void 0},[e.trueLabel||e.falseLabel?ir((vl(),bl("input",{key:0,id:Gt(r),"onUpdate:modelValue":t[0]||(t[0]=e=>Ft(c)?c.value=e:null),class:X(Gt(f).e("original")),type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,tabindex:e.tabindex,disabled:Gt(a),"true-value":e.trueLabel,"false-value":e.falseLabel,onChange:t[1]||(t[1]=(...e)=>Gt(d)&&Gt(d)(...e)),onFocus:t[2]||(t[2]=e=>i.value=!0),onBlur:t[3]||(t[3]=e=>i.value=!1)},null,42,d1)),[[li,Gt(c)]]):ir((vl(),bl("input",{key:1,id:Gt(r),"onUpdate:modelValue":t[4]||(t[4]=e=>Ft(c)?c.value=e:null),class:X(Gt(f).e("original")),type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:Gt(a),value:e.label,name:e.name,tabindex:e.tabindex,onChange:t[5]||(t[5]=(...e)=>Gt(d)&&Gt(d)(...e)),onFocus:t[6]||(t[6]=e=>i.value=!0),onBlur:t[7]||(t[7]=e=>i.value=!1)},null,42,p1)),[[li,Gt(c)]]),El("span",{class:X(Gt(f).e("inner"))},null,2)],10,c1),Gt(u)?(vl(),bl("span",{key:0,class:X(Gt(f).e("label"))},[eo(e.$slots,"default"),e.$slots.default?Ll("v-if",!0):(vl(),bl(sl,{key:0},[Tl(ve(e.label),1)],64))],2)):Ll("v-if",!0)])),_:3},8,["class","aria-controls","onClick"]))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const h1=["name","tabindex","disabled","true-value","false-value"],m1=["name","tabindex","disabled","value"],g1=wr({name:"ElCheckboxButton"}),y1=wr({...g1,props:a1,emits:i1,setup(e){const t=e,n=so(),{isFocused:r,isChecked:o,isDisabled:l,checkboxButtonSize:a,model:i,handleChange:s}=u1(t,n),u=zo(s1,void 0),c=tq("checkbox"),d=oa((()=>{var e,t,n,r;const o=null!=(t=null==(e=null==u?void 0:u.fill)?void 0:e.value)?t:"";return{backgroundColor:o,borderColor:o,color:null!=(r=null==(n=null==u?void 0:u.textColor)?void 0:n.value)?r:"",boxShadow:o?`-1px 0 0 0 ${o}`:void 0}})),p=oa((()=>[c.b("button"),c.bm("button",a.value),c.is("disabled",l.value),c.is("checked",o.value),c.is("focus",r.value)]));return(e,t)=>(vl(),bl("label",{class:X(Gt(p))},[e.trueLabel||e.falseLabel?ir((vl(),bl("input",{key:0,"onUpdate:modelValue":t[0]||(t[0]=e=>Ft(i)?i.value=e:null),class:X(Gt(c).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:Gt(l),"true-value":e.trueLabel,"false-value":e.falseLabel,onChange:t[1]||(t[1]=(...e)=>Gt(s)&&Gt(s)(...e)),onFocus:t[2]||(t[2]=e=>r.value=!0),onBlur:t[3]||(t[3]=e=>r.value=!1)},null,42,h1)),[[li,Gt(i)]]):ir((vl(),bl("input",{key:1,"onUpdate:modelValue":t[4]||(t[4]=e=>Ft(i)?i.value=e:null),class:X(Gt(c).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:Gt(l),value:e.label,onChange:t[5]||(t[5]=(...e)=>Gt(s)&&Gt(s)(...e)),onFocus:t[6]||(t[6]=e=>r.value=!0),onBlur:t[7]||(t[7]=e=>r.value=!1)},null,42,m1)),[[li,Gt(i)]]),e.$slots.default||e.label?(vl(),bl("span",{key:2,class:X(Gt(c).be("button","inner")),style:K(Gt(o)?Gt(d):void 0)},[eo(e.$slots,"default",{},(()=>[Tl(ve(e.label),1)]))],6)):Ll("v-if",!0)],2))}});var b1=UG(y1,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const w1=fK({modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:Number,max:Number,size:LG,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),x1={[_K]:e=>p(e),change:e=>p(e)},C1=wr({name:"ElCheckboxGroup"}),k1=wr({...C1,props:w1,emits:x1,setup(e,{emit:t}){const n=e,r=tq("checkbox"),{formItem:o}=uJ(),{inputId:l,isLabeledByFormItem:a}=cJ(n,{formItemContext:o}),i=async e=>{t(_K,e),await wn(),t("change",e)},s=oa({get:()=>n.modelValue,set(e){i(e)}});return Mo(s1,{...xO(en(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:s,changeEvent:i}),nr((()=>n.modelValue),(()=>{n.validateEvent&&(null==o||o.validate("change").catch((e=>{})))})),(e,t)=>{var n;return vl(),wl(Yr(e.tag),{id:Gt(l),class:X(Gt(r).b("group")),role:"group","aria-label":Gt(a)?void 0:e.label||"checkbox-group","aria-labelledby":Gt(a)?null==(n=Gt(o))?void 0:n.labelId:void 0},{default:Bn((()=>[eo(e.$slots,"default")])),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var S1=UG(k1,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const _1=bK(v1,{CheckboxButton:b1,CheckboxGroup:S1}),E1=xK(b1),O1=xK(S1),M1=fK({size:LG,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),z1=fK({...M1,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),T1={[_K]:e=>y(e)||Mz(e)||Oz(e),[EK]:e=>y(e)||Mz(e)||Oz(e)},A1=Symbol("radioGroupKey"),L1=(e,t)=>{const n=Wt(),r=zo(A1,void 0),o=oa((()=>!!r)),l=oa({get:()=>o.value?r.modelValue:e.modelValue,set(l){o.value?r.changeEvent(l):t&&t(_K,l),n.value.checked=e.modelValue===e.label}}),a=iJ(oa((()=>null==r?void 0:r.size))),i=sJ(oa((()=>null==r?void 0:r.disabled))),s=Wt(!1),u=oa((()=>i.value||o.value&&l.value!==e.label?-1:0));return{radioRef:n,isGroup:o,radioGroup:r,focus:s,size:a,disabled:i,tabIndex:u,modelValue:l}},I1=["value","name","disabled"],R1=wr({name:"ElRadio"}),P1=wr({...R1,props:z1,emits:T1,setup(e,{emit:t}){const n=e,r=tq("radio"),{radioRef:o,radioGroup:l,focus:a,size:i,disabled:s,modelValue:u}=L1(n,t);function c(){wn((()=>t("change",u.value)))}return(e,t)=>{var n;return vl(),bl("label",{class:X([Gt(r).b(),Gt(r).is("disabled",Gt(s)),Gt(r).is("focus",Gt(a)),Gt(r).is("bordered",e.border),Gt(r).is("checked",Gt(u)===e.label),Gt(r).m(Gt(i))])},[El("span",{class:X([Gt(r).e("input"),Gt(r).is("disabled",Gt(s)),Gt(r).is("checked",Gt(u)===e.label)])},[ir(El("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":t[0]||(t[0]=e=>Ft(u)?u.value=e:null),class:X(Gt(r).e("original")),value:e.label,name:e.name||(null==(n=Gt(l))?void 0:n.name),disabled:Gt(s),type:"radio",onFocus:t[1]||(t[1]=e=>a.value=!0),onBlur:t[2]||(t[2]=e=>a.value=!1),onChange:c},null,42,I1),[[ii,Gt(u)]]),El("span",{class:X(Gt(r).e("inner"))},null,2)],2),El("span",{class:X(Gt(r).e("label")),onKeydown:t[3]||(t[3]=gi((()=>{}),["stop"]))},[eo(e.$slots,"default",{},(()=>[Tl(ve(e.label),1)]))],34)],2)}}});var N1=UG(P1,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const j1=fK({...M1,name:{type:String,default:""}}),V1=["value","name","disabled"],B1=wr({name:"ElRadioButton"}),H1=wr({...B1,props:j1,setup(e){const t=e,n=tq("radio"),{radioRef:r,focus:o,size:l,disabled:a,modelValue:i,radioGroup:s}=L1(t),u=oa((()=>({backgroundColor:(null==s?void 0:s.fill)||"",borderColor:(null==s?void 0:s.fill)||"",boxShadow:(null==s?void 0:s.fill)?`-1px 0 0 0 ${s.fill}`:"",color:(null==s?void 0:s.textColor)||""})));return(e,t)=>{var c;return vl(),bl("label",{class:X([Gt(n).b("button"),Gt(n).is("active",Gt(i)===e.label),Gt(n).is("disabled",Gt(a)),Gt(n).is("focus",Gt(o)),Gt(n).bm("button",Gt(l))])},[ir(El("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":t[0]||(t[0]=e=>Ft(i)?i.value=e:null),class:X(Gt(n).be("button","original-radio")),value:e.label,type:"radio",name:e.name||(null==(c=Gt(s))?void 0:c.name),disabled:Gt(a),onFocus:t[1]||(t[1]=e=>o.value=!0),onBlur:t[2]||(t[2]=e=>o.value=!1)},null,42,V1),[[ii,Gt(i)]]),El("span",{class:X(Gt(n).be("button","inner")),style:K(Gt(i)===e.label?Gt(u):{}),onKeydown:t[3]||(t[3]=gi((()=>{}),["stop"]))},[eo(e.$slots,"default",{},(()=>[Tl(ve(e.label),1)]))],38)],2)}}});var D1=UG(H1,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const $1=fK({id:{type:String,default:void 0},size:LG,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),F1=T1,W1=["id","aria-label","aria-labelledby"],U1=wr({name:"ElRadioGroup"}),K1=wr({...U1,props:$1,emits:F1,setup(e,{emit:t}){const n=e,r=tq("radio"),o=MY(),l=Wt(),{formItem:a}=uJ(),{inputId:i,isLabeledByFormItem:s}=cJ(n,{formItemContext:a});Nr((()=>{const e=l.value.querySelectorAll("[type=radio]"),t=e[0];!Array.from(e).some((e=>e.checked))&&t&&(t.tabIndex=0)}));const u=oa((()=>n.name||o.value));return Mo(A1,zt({...en(n),changeEvent:e=>{t(_K,e),wn((()=>t("change",e)))},name:u})),nr((()=>n.modelValue),(()=>{n.validateEvent&&(null==a||a.validate("change").catch((e=>{})))})),(e,t)=>(vl(),bl("div",{id:Gt(i),ref_key:"radioGroupRef",ref:l,class:X(Gt(r).b("group")),role:"radiogroup","aria-label":Gt(s)?void 0:e.label||"radio-group","aria-labelledby":Gt(s)?Gt(a).labelId:void 0},[eo(e.$slots,"default")],10,W1))}});var q1=UG(K1,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const Y1=bK(N1,{RadioButton:D1,RadioGroup:q1}),G1=xK(q1),J1=xK(D1);var X1=wr({name:"NodeContent",setup:()=>({ns:tq("cascader-node")}),render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:r,label:o}=t,{renderLabelFn:l}=n;return la("span",{class:e.e("label")},l?l({node:t,data:r}):o)}});const Q1=Symbol(),Z1=wr({name:"ElCascaderNode",components:{ElCheckbox:_1,ElRadio:Y1,NodeContent:X1,ElIcon:ZG,Check:hL,Loading:pV,ArrowRight:ST},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=zo(Q1),r=tq("cascader-node"),o=oa((()=>n.isHoverMenu)),l=oa((()=>n.config.multiple)),a=oa((()=>n.config.checkStrictly)),i=oa((()=>{var e;return null==(e=n.checkedNodes[0])?void 0:e.uid})),s=oa((()=>e.node.isDisabled)),u=oa((()=>e.node.isLeaf)),c=oa((()=>a.value&&!u.value||!s.value)),d=oa((()=>f(n.expandingNode))),p=oa((()=>a.value&&n.checkedNodes.some(f))),f=t=>{var n;const{level:r,uid:o}=e.node;return(null==(n=null==t?void 0:t.pathNodes[r-1])?void 0:n.uid)===o},v=()=>{d.value||n.expandNode(e.node)},h=t=>{const{node:r}=e;t!==r.checked&&n.handleCheckChange(r,t)},m=()=>{n.lazyLoad(e.node,(()=>{u.value||v()}))},g=()=>{const{node:t}=e;c.value&&!t.loading&&(t.loaded?v():m())},y=t=>{e.node.loaded?(h(t),!a.value&&v()):m()};return{panel:n,isHoverMenu:o,multiple:l,checkStrictly:a,checkedNodeId:i,isDisabled:s,isLeaf:u,expandable:c,inExpandingPath:d,inCheckedPath:p,ns:r,handleHoverExpand:e=>{o.value&&(g(),!u.value&&t("expand",e))},handleExpand:g,handleClick:()=>{o.value&&!u.value||(!u.value||s.value||a.value||l.value?g():y(!0))},handleCheck:y,handleSelectCheck:t=>{a.value?(h(t),e.node.loaded&&v()):y(t)}}}}),e4=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],t4=El("span",null,null,-1),n4=wr({name:"ElCascaderMenu",components:{Loading:pV,ElIcon:ZG,ElScrollbar:EX,ElCascaderNode:UG(Z1,[["render",function(e,t,n,r,o,l){const a=Kr("el-checkbox"),i=Kr("el-radio"),s=Kr("check"),u=Kr("el-icon"),c=Kr("node-content"),d=Kr("loading"),p=Kr("arrow-right");return vl(),bl("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:X([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...t)=>e.handleHoverExpand&&e.handleHoverExpand(...t)),onFocus:t[3]||(t[3]=(...t)=>e.handleHoverExpand&&e.handleHoverExpand(...t)),onClick:t[4]||(t[4]=(...t)=>e.handleClick&&e.handleClick(...t))},[Ll(" prefix "),e.multiple?(vl(),wl(a,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=gi((()=>{}),["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(vl(),wl(i,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=gi((()=>{}),["stop"]))},{default:Bn((()=>[Ll("\n Add an empty element to avoid render label,\n do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485\n "),t4])),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(vl(),wl(u,{key:2,class:X(e.ns.e("prefix"))},{default:Bn((()=>[Ol(s)])),_:1},8,["class"])):Ll("v-if",!0),Ll(" content "),Ol(c),Ll(" postfix "),e.isLeaf?Ll("v-if",!0):(vl(),bl(sl,{key:3},[e.node.loading?(vl(),wl(u,{key:0,class:X([e.ns.is("loading"),e.ns.e("postfix")])},{default:Bn((()=>[Ol(d)])),_:1},8,["class"])):(vl(),wl(u,{key:1,class:X(["arrow-right",e.ns.e("postfix")])},{default:Bn((()=>[Ol(p)])),_:1},8,["class"]))],64))],42,e4)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]])},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=$l(),n=tq("cascader-menu"),{t:r}=JK(),o=HK();let l=null,a=null;const i=zo(Q1),s=Wt(null),u=oa((()=>!e.nodes.length)),c=oa((()=>!i.initialLoaded)),d=oa((()=>`cascader-menu-${o}-${e.index}`)),p=()=>{a&&(clearTimeout(a),a=null)},f=()=>{s.value&&(s.value.innerHTML="",p())};return{ns:n,panel:i,hoverZone:s,isEmpty:u,isLoading:c,menuId:d,t:r,handleExpand:e=>{l=e.target},handleMouseMove:e=>{if(i.isHoverMenu&&l&&s.value)if(l.contains(e.target)){p();const n=t.vnode.el,{left:r}=n.getBoundingClientRect(),{offsetWidth:o,offsetHeight:a}=n,i=e.clientX-r,u=l.offsetTop,c=u+l.offsetHeight;s.value.innerHTML=`\n \n \n `}else a||(a=window.setTimeout(f,i.config.hoverThreshold))},clearHoverZone:f}}});var r4=UG(n4,[["render",function(e,t,n,r,o,l){const a=Kr("el-cascader-node"),i=Kr("loading"),s=Kr("el-icon"),u=Kr("el-scrollbar");return vl(),wl(u,{key:e.menuId,tag:"ul",role:"menu",class:X(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:Bn((()=>{var t;return[(vl(!0),bl(sl,null,Qr(e.nodes,(t=>(vl(),wl(a,{key:t.uid,node:t,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"])))),128)),e.isLoading?(vl(),bl("div",{key:0,class:X(e.ns.e("empty-text"))},[Ol(s,{size:"14",class:X(e.ns.is("loading"))},{default:Bn((()=>[Ol(i)])),_:1},8,["class"]),Tl(" "+ve(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(vl(),bl("div",{key:1,class:X(e.ns.e("empty-text"))},ve(e.t("el.cascader.noData")),3)):(null==(t=e.panel)?void 0:t.isHoverMenu)?(vl(),bl("svg",{key:2,ref:"hoverZone",class:X(e.ns.e("hover-zone"))},null,2)):Ll("v-if",!0)]})),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let o4=0,l4=class e{constructor(t,n,r,o=!1){this.data=t,this.config=n,this.parent=r,this.root=o,this.uid=o4++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:l,label:a,children:i}=n,s=t[i],u=(e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t})(this);this.level=o?0:r?r.level+1:1,this.value=t[l],this.label=t[a],this.pathNodes=u,this.pathValues=u.map((e=>e.value)),this.pathLabels=u.map((e=>e.label)),this.childrenData=s,this.children=(s||[]).map((t=>new e(t,n,this))),this.loaded=!n.lazy||this.isLeaf||!zz(s)}get isDisabled(){const{data:e,parent:t,config:n}=this,{disabled:r,checkStrictly:o}=n;return(g(r)?r(e,this):!!e[r])||!o&&(null==t?void 0:t.isDisabled)}get isLeaf(){const{data:e,config:t,childrenData:n,loaded:r}=this,{lazy:o,leaf:l}=t,a=g(l)?l(e,this):e[l];return Ez(a)?!(o&&!r||Array.isArray(n)&&n.length):!!a}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,o=new e(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],r.push(o),o}calcText(e,t){const n=e?this.pathLabels.join(t):this.label;return this.text=n,n}broadcast(e,...t){const n=`onParent${Lz(e)}`;this.children.forEach((r=>{r&&(r.broadcast(e,...t),r[n]&&r[n](...t))}))}emit(e,...t){const{parent:n}=this,r=`onChild${Lz(e)}`;n&&(n[r]&&n[r](...t),n.emit(e,...t))}onParentCheck(e){this.isDisabled||this.setCheckState(e)}onChildCheck(){const{children:e}=this,t=e.filter((e=>!e.isDisabled)),n=!!t.length&&t.every((e=>e.checked));this.setCheckState(n)}setCheckState(e){const t=this.children.length,n=this.children.reduce(((e,t)=>e+(t.checked?1:t.indeterminate?.5:0)),0);this.checked=this.loaded&&this.children.filter((e=>!e.isDisabled)).every((e=>e.loaded&&e.checked))&&e,this.indeterminate=this.loaded&&n!==t&&n>0}doCheck(e){if(this.checked===e)return;const{checkStrictly:t,multiple:n}=this.config;t||!n?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check"))}};const a4=(e,t)=>e.reduce(((e,n)=>(n.isLeaf?e.push(n):(!t&&e.push(n),e=e.concat(a4(n.children,t))),e)),[]);class i4{constructor(e,t){this.config=t;const n=(e||[]).map((e=>new l4(e,this.config)));this.nodes=n,this.allNodes=a4(n,!1),this.leafNodes=a4(n,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,t){const n=t?t.appendChild(e):new l4(e,this.config);t||this.nodes.push(n),this.allNodes.push(n),n.isLeaf&&this.leafNodes.push(n)}appendNodes(e,t){e.forEach((e=>this.appendNode(e,t)))}getNodeByValue(e,t=!1){return(e||0===e)&&this.getFlattedNodes(t).find((t=>$_(t.value,e)||$_(t.pathValues,e)))||null}getSameNode(e){return e&&this.getFlattedNodes(!1).find((({value:t,level:n})=>$_(e.value,t)&&e.level===n))||null}}const s4=fK({modelValue:{type:[Number,String,Array]},options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({})}}),u4={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:r,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},c4=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},d4=wr({name:"ElCascaderPanel",components:{ElCascaderMenu:r4},props:{...s4,border:{type:Boolean,default:!0},renderLabel:Function},emits:[_K,EK,"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const o=tq("cascader"),l=(a=e,oa((()=>({...u4,...a.props}))));var a;let i=null;const s=Wt(!0),u=Wt([]),c=Wt(null),d=Wt([]),p=Wt(null),f=Wt([]),v=oa((()=>"hover"===l.value.expandTrigger)),h=oa((()=>e.renderLabel||n.default)),m=(e,t)=>{const n=l.value;(e=e||new l4({},n,void 0,!0)).loading=!0,n.lazyLoad(e,(n=>{const r=e,o=r.root?null:r;n&&(null==i||i.appendNodes(n,o)),r.loading=!1,r.loaded=!0,r.childrenData=r.childrenData||[],t&&t(n)}))},g=(e,n)=>{var r;const{level:o}=e,l=d.value.slice(0,o);let a;e.isLeaf?a=e.pathNodes[o-2]:(a=e,l.push(e.children)),(null==(r=p.value)?void 0:r.uid)!==(null==a?void 0:a.uid)&&(p.value=e,d.value=l,!n&&t("expand-change",(null==e?void 0:e.pathValues)||[]))},y=(e,n,o=!0)=>{const{checkStrictly:a,multiple:i}=l.value,s=f.value[0];r=!0,!i&&(null==s||s.doCheck(!1)),e.doCheck(n),C(),o&&!i&&!a&&t("close"),!o&&!i&&!a&&b(e)},b=e=>{e&&(e=e.parent,b(e),e&&g(e))},w=e=>null==i?void 0:i.getFlattedNodes(e),x=e=>{var t;return null==(t=w(e))?void 0:t.filter((e=>!1!==e.checked))},C=()=>{var e;const{checkStrictly:t,multiple:n}=l.value,r=((e,t)=>{const n=t.slice(0),r=n.map((e=>e.uid)),o=e.reduce(((e,t)=>{const o=r.indexOf(t.uid);return o>-1&&(e.push(t),n.splice(o,1),r.splice(o,1)),e}),[]);return o.push(...n),o})(f.value,x(!t)),o=r.map((e=>e.valueByOption));f.value=r,c.value=n?o:null!=(e=o[0])?e:null},k=(t=!1,n=!1)=>{const{modelValue:o}=e,{lazy:a,multiple:u,checkStrictly:d}=l.value,p=!d;if(s.value&&!r&&(n||!$_(o,c.value)))if(a&&!t){const e=PK(FS(NK(o))).map((e=>null==i?void 0:i.getNodeByValue(e))).filter((e=>!!e&&!e.loaded&&!e.loading));e.length?e.forEach((e=>{m(e,(()=>k(!1,n)))})):k(!0,n)}else{const e=u?NK(o):[o],t=PK(e.map((e=>null==i?void 0:i.getNodeByValue(e,p))));S(t,n),c.value=CC(o)}},S=(e,t=!0)=>{const{checkStrictly:n}=l.value,r=f.value,o=e.filter((e=>!!e&&(n||e.isLeaf))),a=null==i?void 0:i.getSameNode(p.value),s=t&&a||o[0];s?s.pathNodes.forEach((e=>g(e,!0))):p.value=null,r.forEach((e=>e.doCheck(!1))),o.forEach((e=>e.doCheck(!0))),f.value=o,wn(_)},_=()=>{Xi&&u.value.forEach((e=>{const t=null==e?void 0:e.$el;t&&qz(t.querySelector(`.${o.namespace.value}-scrollbar__wrap`),t.querySelector(`.${o.b("node")}.${o.is("active")}`)||t.querySelector(`.${o.b("node")}.in-active-path`))}))};return Mo(Q1,zt({config:l,expandingNode:p,checkedNodes:f,isHoverMenu:v,initialLoaded:s,renderLabelFn:h,lazyLoad:m,expandNode:g,handleCheckChange:y})),nr([l,()=>e.options],(()=>{const{options:t}=e,n=l.value;r=!1,i=new i4(t,n),d.value=[i.getNodes()],n.lazy&&zz(e.options)?(s.value=!1,m(void 0,(e=>{e&&(i=new i4(e,n),d.value=[i.getNodes()]),s.value=!0,k(!1,!0)}))):k(!1,!0)}),{deep:!0,immediate:!0}),nr((()=>e.modelValue),(()=>{r=!1,k()}),{deep:!0}),nr((()=>c.value),(n=>{$_(n,e.modelValue)||(t(_K,n),t(EK,n))})),jr((()=>u.value=[])),Nr((()=>!zz(e.modelValue)&&k())),{ns:o,menuList:u,menus:d,checkedNodes:f,handleKeyDown:e=>{const t=e.target,{code:n}=e;switch(n){case kK.up:case kK.down:{e.preventDefault();const r=n===kK.up?-1:1;Bi(Vi(t,r,`.${o.b("node")}[tabindex="-1"]`));break}case kK.left:{e.preventDefault();const n=u.value[c4(t)-1],r=null==n?void 0:n.$el.querySelector(`.${o.b("node")}[aria-expanded="true"]`);Bi(r);break}case kK.right:{e.preventDefault();const n=u.value[c4(t)+1],r=null==n?void 0:n.$el.querySelector(`.${o.b("node")}[tabindex="-1"]`);Bi(r);break}case kK.enter:(e=>{if(!e)return;const t=e.querySelector("input");t?t.click():ji(e)&&e.click()})(t)}},handleCheckChange:y,getFlattedNodes:w,getCheckedNodes:x,clearCheckedNodes:()=>{f.value.forEach((e=>e.doCheck(!1))),C(),d.value=d.value.slice(0,1),p.value=null,t("expand-change",[])},calculateCheckedValue:C,scrollToExpandingNode:_}}});var p4=UG(d4,[["render",function(e,t,n,r,o,l){const a=Kr("el-cascader-menu");return vl(),bl("div",{class:X([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...t)=>e.handleKeyDown&&e.handleKeyDown(...t))},[(vl(!0),bl(sl,null,Qr(e.menus,((t,n)=>(vl(),wl(a,{key:n,ref_for:!0,ref:t=>e.menuList[n]=t,index:n,nodes:[...t]},null,8,["index","nodes"])))),128))],34)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);p4.install=e=>{e.component(p4.name,p4)};const f4=p4,v4=f4,h4=fK({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:zK,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),m4={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},g4=wr({name:"ElTag"}),y4=wr({...g4,props:h4,emits:m4,setup(e,{emit:t}){const n=e,r=iJ(),o=tq("tag"),l=oa((()=>{const{type:e,hit:t,effect:l,closable:a,round:i}=n;return[o.b(),o.is("closable",a),o.m(e),o.m(r.value),o.m(l),o.is("hit",t),o.is("round",i)]})),a=e=>{t("close",e)},i=e=>{t("click",e)};return(e,t)=>e.disableTransitions?(vl(),bl("span",{key:0,class:X(Gt(l)),style:K({backgroundColor:e.color}),onClick:i},[El("span",{class:X(Gt(o).e("content"))},[eo(e.$slots,"default")],2),e.closable?(vl(),wl(Gt(ZG),{key:0,class:X(Gt(o).e("close")),onClick:gi(a,["stop"])},{default:Bn((()=>[Ol(Gt(eI))])),_:1},8,["class","onClick"])):Ll("v-if",!0)],6)):(vl(),wl(La,{key:1,name:`${Gt(o).namespace.value}-zoom-in-center`,appear:""},{default:Bn((()=>[El("span",{class:X(Gt(l)),style:K({backgroundColor:e.color}),onClick:i},[El("span",{class:X(Gt(o).e("content"))},[eo(e.$slots,"default")],2),e.closable?(vl(),wl(Gt(ZG),{key:0,class:X(Gt(o).e("close")),onClick:gi(a,["stop"])},{default:Bn((()=>[Ol(Gt(eI))])),_:1},8,["class","onClick"])):Ll("v-if",!0)],6)])),_:3},8,["name"]))}}),b4=bK(UG(y4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]])),w4=fK({...s4,size:LG,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:Function,default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:Function,default:()=>!0},popperClass:{type:String,default:""},teleported:xQ.teleported,tagType:{...h4.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),x4={[_K]:e=>!!e||null===e,[EK]:e=>!!e||null===e,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>Oz(e),expandChange:e=>!!e,removeTag:e=>!!e},C4={key:0},k4=["placeholder","onKeydown"],S4=["onClick"],_4=wr({name:"ElCascader"}),E4=wr({..._4,props:w4,emits:x4,setup(e,{expose:t,emit:n}){const r=e,o={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:e})=>{const{modifiersData:t,placement:n}=e;["right","left","bottom","top"].includes(n)||(t.arrow.x=35)},requires:["arrow"]}]},l=uo();let a=0,i=0;const s=tq("cascader"),u=tq("input"),{t:c}=JK(),{form:d,formItem:p}=uJ(),f=Wt(null),v=Wt(null),h=Wt(null),m=Wt(null),g=Wt(null),y=Wt(!1),b=Wt(!1),w=Wt(!1),C=Wt(!1),k=Wt(""),S=Wt(""),_=Wt([]),E=Wt([]),O=Wt([]),M=Wt(!1),z=oa((()=>l.style)),T=oa((()=>r.disabled||(null==d?void 0:d.disabled))),A=oa((()=>r.placeholder||c("el.cascader.placeholder"))),L=oa((()=>S.value||_.value.length>0||M.value?"":A.value)),I=iJ(),R=oa((()=>["small"].includes(I.value)?"small":"default")),P=oa((()=>!!r.props.multiple)),N=oa((()=>!r.filterable||P.value)),j=oa((()=>P.value?S.value:k.value)),V=oa((()=>{var e;return(null==(e=m.value)?void 0:e.checkedNodes)||[]})),B=oa((()=>!(!r.clearable||T.value||w.value||!b.value||!V.value.length))),H=oa((()=>{const{showAllLevels:e,separator:t}=r,n=V.value;return n.length?P.value?"":n[0].calcText(e,t):""})),D=oa({get:()=>CC(r.modelValue),set(e){n(_K,e),n(EK,e),r.validateEvent&&(null==p||p.validate("change").catch((e=>{})))}}),$=oa((()=>[s.b(),s.m(I.value),s.is("disabled",T.value),l.class])),F=oa((()=>[u.e("icon"),"icon-arrow-down",s.is("reverse",y.value)])),W=oa((()=>s.is("focus",y.value||C.value))),U=oa((()=>{var e,t;return null==(t=null==(e=f.value)?void 0:e.popperRef)?void 0:t.contentRef})),q=e=>{var t,o,l;T.value||(e=null!=e?e:!y.value)!==y.value&&(y.value=e,null==(o=null==(t=v.value)?void 0:t.input)||o.setAttribute("aria-expanded",`${e}`),e?(Y(),wn(null==(l=m.value)?void 0:l.scrollToExpandingNode)):r.filterable&&ae(),n("visibleChange",e))},Y=()=>{wn((()=>{var e;null==(e=f.value)||e.updatePopper()}))},G=()=>{w.value=!1},J=e=>{const{showAllLevels:t,separator:n}=r;return{node:e,key:e.uid,text:e.calcText(t,n),hitState:!1,closable:!T.value&&!e.isDisabled,isCollapseTag:!1}},Q=e=>{var t;const r=e.node;r.doCheck(!1),null==(t=m.value)||t.calculateCheckedValue(),n("removeTag",r.valueByOption)},Z=()=>{var e,t;const{filterMethod:n,showAllLevels:o,separator:l}=r,a=null==(t=null==(e=m.value)?void 0:e.getFlattedNodes(!r.props.checkStrictly))?void 0:t.filter((e=>!e.isDisabled&&(e.calcText(o,l),n(e,j.value))));P.value&&(_.value.forEach((e=>{e.hitState=!1})),E.value.forEach((e=>{e.hitState=!1}))),w.value=!0,O.value=a,Y()},ee=()=>{var e;let t;t=w.value&&g.value?g.value.$el.querySelector(`.${s.e("suggestion-item")}`):null==(e=m.value)?void 0:e.$el.querySelector(`.${s.b("node")}[tabindex="-1"]`),t&&(t.focus(),!w.value&&t.click())},te=()=>{var e,t;const n=null==(e=v.value)?void 0:e.input,r=h.value,o=null==(t=g.value)?void 0:t.$el;if(Xi&&n&&(o&&(o.querySelector(`.${s.e("suggestion-list")}`).style.minWidth=`${n.offsetWidth}px`),r)){const{offsetHeight:e}=r,t=_.value.length>0?`${Math.max(e+6,a)}px`:`${a}px`;n.style.height=t,Y()}},ne=e=>{Y(),n("expandChange",e)},re=e=>{var t;const n=null==(t=e.target)?void 0:t.value;if("compositionend"===e.type)M.value=!1,wn((()=>pe(n)));else{const e=n[n.length-1]||"";M.value=!jK(e)}},oe=e=>{if(!M.value)switch(e.code){case kK.enter:q();break;case kK.down:q(!0),wn(ee),e.preventDefault();break;case kK.esc:!0===y.value&&(e.preventDefault(),e.stopPropagation(),q(!1));break;case kK.tab:q(!1)}},le=()=>{var e;null==(e=m.value)||e.clearCheckedNodes(),!y.value&&r.filterable&&ae(),q(!1)},ae=()=>{const{value:e}=H;k.value=e,S.value=e},ie=e=>{const t=e.target,{code:n}=e;switch(n){case kK.up:case kK.down:{const e=n===kK.up?-1:1;Bi(Vi(t,e,`.${s.e("suggestion-item")}[tabindex="-1"]`));break}case kK.enter:t.click()}},se=()=>{const e=_.value,t=e[e.length-1];i=S.value?0:i+1,!t||!i||r.collapseTags&&e.length>1||(t.hitState?Q(t):t.hitState=!0)},ue=e=>{const t=e.target,r=s.e("search-input");t.className===r&&(C.value=!0),n("focus",e)},ce=e=>{C.value=!1,n("blur",e)},de=Pk((()=>{const{value:e}=j;if(!e)return;const t=r.beforeFilter(e);x(t)?t.then(Z).catch((()=>{})):!1!==t?Z():G()}),r.debounce),pe=(e,t)=>{!y.value&&q(!0),(null==t?void 0:t.isComposing)||(e?de():G())};return nr(w,Y),nr([V,T],(()=>{if(!P.value)return;const e=V.value,t=[],n=[];if(e.forEach((e=>n.push(J(e)))),E.value=n,e.length){const[n,...o]=e,l=o.length;t.push(J(n)),l&&(r.collapseTags?t.push({key:-1,text:`+ ${l}`,closable:!1,isCollapseTag:!0}):o.forEach((e=>t.push(J(e)))))}_.value=t})),nr(_,(()=>{wn((()=>te()))})),nr(H,ae,{immediate:!0}),Nr((()=>{const e=v.value.input,t=Number.parseFloat(Sd(u.cssVarName("input-height"),e).value)-2;a=e.offsetHeight||t,hp(e,te)})),t({getCheckedNodes:e=>{var t;return null==(t=m.value)?void 0:t.getCheckedNodes(e)},cascaderPanelRef:m,togglePopperVisible:q,contentRef:U}),(e,t)=>(vl(),wl(Gt(BQ),{ref_key:"tooltipRef",ref:f,visible:y.value,teleported:e.teleported,"popper-class":[Gt(s).e("dropdown"),e.popperClass],"popper-options":o,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${Gt(s).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:G},{default:Bn((()=>[ir((vl(),bl("div",{class:X(Gt($)),style:K(Gt(z)),onClick:t[5]||(t[5]=()=>q(!Gt(N)||void 0)),onKeydown:oe,onMouseenter:t[6]||(t[6]=e=>b.value=!0),onMouseleave:t[7]||(t[7]=e=>b.value=!1)},[Ol(Gt(hX),{ref_key:"input",ref:v,modelValue:k.value,"onUpdate:modelValue":t[1]||(t[1]=e=>k.value=e),placeholder:Gt(L),readonly:Gt(N),disabled:Gt(T),"validate-event":!1,size:Gt(I),class:X(Gt(W)),tabindex:Gt(P)&&e.filterable&&!Gt(T)?-1:void 0,onCompositionstart:re,onCompositionupdate:re,onCompositionend:re,onFocus:ue,onBlur:ce,onInput:pe},{suffix:Bn((()=>[Gt(B)?(vl(),wl(Gt(ZG),{key:"clear",class:X([Gt(u).e("icon"),"icon-circle-close"]),onClick:gi(le,["stop"])},{default:Bn((()=>[Ol(Gt(BL))])),_:1},8,["class","onClick"])):(vl(),wl(Gt(ZG),{key:"arrow-down",class:X(Gt(F)),onClick:t[0]||(t[0]=gi((e=>q()),["stop"]))},{default:Bn((()=>[Ol(Gt(pT))])),_:1},8,["class"]))])),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),Gt(P)?(vl(),bl("div",{key:0,ref_key:"tagWrapper",ref:h,class:X(Gt(s).e("tags"))},[(vl(!0),bl(sl,null,Qr(_.value,(t=>(vl(),wl(Gt(b4),{key:t.key,type:e.tagType,size:Gt(R),hit:t.hitState,closable:t.closable,"disable-transitions":"",onClose:e=>Q(t)},{default:Bn((()=>[!1===t.isCollapseTag?(vl(),bl("span",C4,ve(t.text),1)):(vl(),wl(Gt(BQ),{key:1,disabled:y.value||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:Bn((()=>[El("span",null,ve(t.text),1)])),content:Bn((()=>[El("div",{class:X(Gt(s).e("collapse-tags"))},[(vl(!0),bl(sl,null,Qr(E.value.slice(1),((t,n)=>(vl(),bl("div",{key:n,class:X(Gt(s).e("collapse-tag"))},[(vl(),wl(Gt(b4),{key:t.key,class:"in-tooltip",type:e.tagType,size:Gt(R),hit:t.hitState,closable:t.closable,"disable-transitions":"",onClose:e=>Q(t)},{default:Bn((()=>[El("span",null,ve(t.text),1)])),_:2},1032,["type","size","hit","closable","onClose"]))],2)))),128))],2)])),_:2},1032,["disabled"]))])),_:2},1032,["type","size","hit","closable","onClose"])))),128)),e.filterable&&!Gt(T)?ir((vl(),bl("input",{key:0,"onUpdate:modelValue":t[2]||(t[2]=e=>S.value=e),type:"text",class:X(Gt(s).e("search-input")),placeholder:Gt(H)?"":Gt(A),onInput:t[3]||(t[3]=e=>pe(S.value,e)),onClick:t[4]||(t[4]=gi((e=>q(!0)),["stop"])),onKeydown:bi(se,["delete"]),onCompositionstart:re,onCompositionupdate:re,onCompositionend:re,onFocus:ue,onBlur:ce},null,42,k4)),[[oi,S.value]]):Ll("v-if",!0)],2)):Ll("v-if",!0)],38)),[[Gt(N0),()=>q(!1),Gt(U)]])])),content:Bn((()=>[ir(Ol(Gt(f4),{ref_key:"cascaderPanelRef",ref:m,modelValue:Gt(D),"onUpdate:modelValue":t[8]||(t[8]=e=>Ft(D)?D.value=e:null),options:e.options,props:r.props,border:!1,"render-label":e.$slots.default,onExpandChange:ne,onClose:t[9]||(t[9]=t=>e.$nextTick((()=>q(!1))))},null,8,["modelValue","options","props","render-label"]),[[wi,!w.value]]),e.filterable?ir((vl(),wl(Gt(EX),{key:0,ref_key:"suggestionPanel",ref:g,tag:"ul",class:X(Gt(s).e("suggestion-panel")),"view-class":Gt(s).e("suggestion-list"),onKeydown:ie},{default:Bn((()=>[O.value.length?(vl(!0),bl(sl,{key:0},Qr(O.value,(e=>(vl(),bl("li",{key:e.uid,class:X([Gt(s).e("suggestion-item"),Gt(s).is("checked",e.checked)]),tabindex:-1,onClick:t=>(e=>{var t,n;const{checked:r}=e;P.value?null==(t=m.value)||t.handleCheckChange(e,!r,!1):(!r&&(null==(n=m.value)||n.handleCheckChange(e,!0,!1)),q(!1))})(e)},[El("span",null,ve(e.text),1),e.checked?(vl(),wl(Gt(ZG),{key:0},{default:Bn((()=>[Ol(Gt(hL))])),_:1})):Ll("v-if",!0)],10,S4)))),128)):eo(e.$slots,"empty",{key:1},(()=>[El("li",{class:X(Gt(s).e("empty-text"))},ve(Gt(c)("el.cascader.noMatch")),3)]))])),_:3},8,["class","view-class"])),[[wi,w.value]]):Ll("v-if",!0)])),_:3},8,["visible","teleported","popper-class","transition"]))}});var O4=UG(E4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);O4.install=e=>{e.component(O4.name,O4)};const M4=O4,z4=fK({checked:{type:Boolean,default:!1}}),T4={"update:checked":e=>Oz(e),[EK]:e=>Oz(e)},A4=wr({name:"ElCheckTag"}),L4=wr({...A4,props:z4,emits:T4,setup(e,{emit:t}){const n=e,r=tq("check-tag"),o=oa((()=>[r.b(),r.is("checked",n.checked)])),l=()=>{const e=!n.checked;t(EK,e),t("update:checked",e)};return(e,t)=>(vl(),bl("span",{class:X(Gt(o)),onClick:l},[eo(e.$slots,"default")],2))}}),I4=bK(UG(L4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]])),R4=Symbol("rowContextKey"),P4=fK({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"],default:"top"}}),N4=wr({name:"ElRow"}),j4=wr({...N4,props:P4,setup(e){const t=e,n=tq("row"),r=oa((()=>t.gutter));Mo(R4,{gutter:r});const o=oa((()=>{const e={};return t.gutter?(e.marginRight=e.marginLeft=`-${t.gutter/2}px`,e):e})),l=oa((()=>[n.b(),n.is(`justify-${t.justify}`,"start"!==t.justify),n.is(`align-${t.align}`,"top"!==t.align)]));return(e,t)=>(vl(),wl(Yr(e.tag),{class:X(Gt(l)),style:K(Gt(o))},{default:Bn((()=>[eo(e.$slots,"default")])),_:3},8,["class","style"]))}}),V4=bK(UG(j4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]])),B4=fK({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:[Number,Object],default:()=>({})},sm:{type:[Number,Object],default:()=>({})},md:{type:[Number,Object],default:()=>({})},lg:{type:[Number,Object],default:()=>({})},xl:{type:[Number,Object],default:()=>({})}}),H4=wr({name:"ElCol"}),D4=wr({...H4,props:B4,setup(e){const t=e,{gutter:n}=zo(R4,{gutter:oa((()=>0))}),r=tq("col"),o=oa((()=>{const e={};return n.value&&(e.paddingLeft=e.paddingRight=n.value/2+"px"),e})),l=oa((()=>{const e=[];return["span","offset","pull","push"].forEach((n=>{const o=t[n];Mz(o)&&("span"===n?e.push(r.b(`${t[n]}`)):o>0&&e.push(r.b(`${n}-${t[n]}`)))})),["xs","sm","md","lg","xl"].forEach((n=>{Mz(t[n])?e.push(r.b(`${n}-${t[n]}`)):w(t[n])&&Object.entries(t[n]).forEach((([t,o])=>{e.push("span"!==t?r.b(`${n}-${t}-${o}`):r.b(`${n}-${o}`))}))})),n.value&&e.push(r.is("guttered")),[r.b(),e]}));return(e,t)=>(vl(),wl(Yr(e.tag),{class:X(Gt(l)),style:K(Gt(o))},{default:Bn((()=>[eo(e.$slots,"default")])),_:3},8,["class","style"]))}}),$4=bK(UG(D4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]])),F4=e=>typeof Mz(e),W4=fK({accordion:Boolean,modelValue:{type:[Array,String,Number],default:()=>[]}}),U4={[_K]:F4,[EK]:F4},K4=Symbol("collapseContextKey"),q4=wr({name:"ElCollapse"}),Y4=wr({...q4,props:W4,emits:U4,setup(e,{expose:t,emit:n}){const r=e,{activeNames:o,setActiveNames:l}=((e,t)=>{const n=Wt(Kw(e.modelValue)),r=r=>{n.value=r;const o=e.accordion?n.value[0]:n.value;t(_K,o),t(EK,o)};return nr((()=>e.modelValue),(()=>n.value=Kw(e.modelValue)),{deep:!0}),Mo(K4,{activeNames:n,handleItemClick:t=>{if(e.accordion)r([n.value[0]===t?"":t]);else{const e=[...n.value],o=e.indexOf(t);o>-1?e.splice(o,1):e.push(t),r(e)}}}),{activeNames:n,setActiveNames:r}})(r,n),{rootKls:a}=(()=>{const e=tq("collapse");return{rootKls:oa((()=>e.b()))}})();return t({activeNames:o,setActiveNames:l}),(e,t)=>(vl(),bl("div",{class:X(Gt(a)),role:"tablist","aria-multiselectable":"true"},[eo(e.$slots,"default")],2))}});var G4=UG(Y4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const J4=wr({name:"ElCollapseTransition"}),X4=wr({...J4,setup(e){const t=tq("collapse-transition"),n={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.maxHeight=`${e.scrollHeight}px`,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){0!==e.scrollHeight&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}};return(e,r)=>(vl(),wl(La,Nl({name:Gt(t).b()},no(n)),{default:Bn((()=>[eo(e.$slots,"default")])),_:3},16,["name"]))}});var Q4=UG(X4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);Q4.install=e=>{e.component(Q4.name,Q4)};const Z4=Q4,e6=Z4,t6=fK({title:{type:String,default:""},name:{type:[String,Number],default:()=>HK()},disabled:Boolean}),n6=["aria-expanded","aria-controls","aria-describedby"],r6=["id","tabindex"],o6=["id","aria-hidden","aria-labelledby"],l6=wr({name:"ElCollapseItem"});var a6=UG(wr({...l6,props:t6,setup(e,{expose:t}){const n=e,{focusing:r,id:o,isActive:l,handleFocus:a,handleHeaderClick:i,handleEnterClick:s}=(e=>{const t=zo(K4),n=Wt(!1),r=Wt(!1),o=Wt(HK()),l=oa((()=>null==t?void 0:t.activeNames.value.includes(e.name)));return{focusing:n,id:o,isActive:l,handleFocus:()=>{setTimeout((()=>{r.value?r.value=!1:n.value=!0}),50)},handleHeaderClick:()=>{e.disabled||(null==t||t.handleItemClick(e.name),n.value=!1,r.value=!0)},handleEnterClick:()=>{null==t||t.handleItemClick(e.name)}}})(n),{arrowKls:u,headKls:c,rootKls:d,itemWrapperKls:p,itemContentKls:f,scopedContentId:v,scopedHeadId:h}=((e,{focusing:t,isActive:n,id:r})=>{const o=tq("collapse"),l=oa((()=>[o.b("item"),o.is("active",Gt(n)),o.is("disabled",e.disabled)])),a=oa((()=>[o.be("item","header"),o.is("active",Gt(n)),{focusing:Gt(t)&&!e.disabled}]));return{arrowKls:oa((()=>[o.be("item","arrow"),o.is("active",Gt(n))])),headKls:a,rootKls:l,itemWrapperKls:oa((()=>o.be("item","wrap"))),itemContentKls:oa((()=>o.be("item","content"))),scopedContentId:oa((()=>o.b(`content-${Gt(r)}`))),scopedHeadId:oa((()=>o.b(`head-${Gt(r)}`)))}})(n,{focusing:r,isActive:l,id:o});return t({isActive:l}),(e,t)=>(vl(),bl("div",{class:X(Gt(d))},[El("div",{role:"tab","aria-expanded":Gt(l),"aria-controls":Gt(v),"aria-describedby":Gt(v)},[El("div",{id:Gt(h),class:X(Gt(c)),role:"button",tabindex:e.disabled?-1:0,onClick:t[0]||(t[0]=(...e)=>Gt(i)&&Gt(i)(...e)),onKeypress:t[1]||(t[1]=bi(gi(((...e)=>Gt(s)&&Gt(s)(...e)),["stop","prevent"]),["space","enter"])),onFocus:t[2]||(t[2]=(...e)=>Gt(a)&&Gt(a)(...e)),onBlur:t[3]||(t[3]=e=>r.value=!1)},[eo(e.$slots,"title",{},(()=>[Tl(ve(e.title),1)])),Ol(Gt(ZG),{class:X(Gt(u))},{default:Bn((()=>[Ol(Gt(ST))])),_:1},8,["class"])],42,r6)],8,n6),Ol(Gt(Z4),null,{default:Bn((()=>[ir(El("div",{id:Gt(v),class:X(Gt(p)),role:"tabpanel","aria-hidden":!Gt(l),"aria-labelledby":Gt(h)},[El("div",{class:X(Gt(f))},[eo(e.$slots,"default")],2)],10,o6),[[wi,Gt(l)]])])),_:3})],2))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const i6=bK(G4,{CollapseItem:a6}),s6=xK(a6),u6=fK({color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}});let c6=!1;function d6(e,t){if(!Xi)return;const n=function(e){var n;null==(n=t.drag)||n.call(t,e)},r=function(e){var o;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,c6=!1,null==(o=t.end)||o.call(t,e)},o=function(e){var o;c6||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),c6=!0,null==(o=t.start)||o.call(t,e))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o)}const p6=wr({name:"ElColorAlphaSlider"}),f6=wr({...p6,props:u6,setup(e,{expose:t}){const n=e,{bar:r,thumb:o,handleDrag:l,handleClick:a}=(e=>{const t=$l(),n=Ut(),r=Ut();function o(o){if(!r.value||!n.value)return;const l=t.vnode.el.getBoundingClientRect(),{clientX:a,clientY:i}=ph(o);if(e.vertical){let t=i-l.top;t=Math.max(n.value.offsetHeight/2,t),t=Math.min(t,l.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((t-n.value.offsetHeight/2)/(l.height-n.value.offsetHeight)*100))}else{let t=a-l.left;t=Math.max(n.value.offsetWidth/2,t),t=Math.min(t,l.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((t-n.value.offsetWidth/2)/(l.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:r,handleDrag:o,handleClick:function(e){e.target!==n.value&&o(e)}}})(n),{rootKls:i,barKls:s,barStyle:u,thumbKls:c,thumbStyle:d,update:p}=((e,{bar:t,thumb:n,handleDrag:r})=>{const o=$l(),l=tq("color-alpha-slider"),a=Wt(0),i=Wt(0),s=Wt();function u(){a.value=function(){if(!n.value)return 0;if(e.vertical)return 0;const t=o.vnode.el,r=e.color.get("alpha");return t?Math.round(r*(t.offsetWidth-n.value.offsetWidth/2)/100):0}(),i.value=function(){if(!n.value)return 0;const t=o.vnode.el;if(!e.vertical)return 0;const r=e.color.get("alpha");return t?Math.round(r*(t.offsetHeight-n.value.offsetHeight/2)/100):0}(),s.value=function(){if(e.color&&e.color.value){const{r:t,g:n,b:r}=e.color.toRgb();return`linear-gradient(to right, rgba(${t}, ${n}, ${r}, 0) 0%, rgba(${t}, ${n}, ${r}, 1) 100%)`}return""}()}Nr((()=>{if(!t.value||!n.value)return;const e={drag:e=>{r(e)},end:e=>{r(e)}};d6(t.value,e),d6(n.value,e),u()})),nr((()=>e.color.get("alpha")),(()=>u())),nr((()=>e.color.value),(()=>u()));const c=oa((()=>[l.b(),l.is("vertical",e.vertical)])),d=oa((()=>l.e("bar"))),p=oa((()=>l.e("thumb")));return{rootKls:c,barKls:d,barStyle:oa((()=>({background:s.value}))),thumbKls:p,thumbStyle:oa((()=>({left:$z(a.value),top:$z(i.value)}))),update:u}})(n,{bar:r,thumb:o,handleDrag:l});return t({update:p,bar:r,thumb:o}),(e,t)=>(vl(),bl("div",{class:X(Gt(i))},[El("div",{ref_key:"bar",ref:r,class:X(Gt(s)),style:K(Gt(u)),onClick:t[0]||(t[0]=(...e)=>Gt(a)&&Gt(a)(...e))},null,6),El("div",{ref_key:"thumb",ref:o,class:X(Gt(c)),style:K(Gt(d))},null,6)],2))}});var v6=UG(f6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const h6=wr({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=tq("color-hue-slider"),n=$l(),r=Wt(),o=Wt(),l=Wt(0),a=Wt(0),i=oa((()=>e.color.get("hue")));function s(t){if(!o.value||!r.value)return;const l=n.vnode.el.getBoundingClientRect(),{clientX:a,clientY:i}=ph(t);let s;if(e.vertical){let e=i-l.top;e=Math.min(e,l.height-r.value.offsetHeight/2),e=Math.max(r.value.offsetHeight/2,e),s=Math.round((e-r.value.offsetHeight/2)/(l.height-r.value.offsetHeight)*360)}else{let e=a-l.left;e=Math.min(e,l.width-r.value.offsetWidth/2),e=Math.max(r.value.offsetWidth/2,e),s=Math.round((e-r.value.offsetWidth/2)/(l.width-r.value.offsetWidth)*360)}e.color.set("hue",s)}function u(){l.value=function(){if(!r.value)return 0;const t=n.vnode.el;if(e.vertical)return 0;const o=e.color.get("hue");return t?Math.round(o*(t.offsetWidth-r.value.offsetWidth/2)/360):0}(),a.value=function(){if(!r.value)return 0;const t=n.vnode.el;if(!e.vertical)return 0;const o=e.color.get("hue");return t?Math.round(o*(t.offsetHeight-r.value.offsetHeight/2)/360):0}()}return nr((()=>i.value),(()=>{u()})),Nr((()=>{if(!o.value||!r.value)return;const e={drag:e=>{s(e)},end:e=>{s(e)}};d6(o.value,e),d6(r.value,e),u()})),{bar:o,thumb:r,thumbLeft:l,thumbTop:a,hueValue:i,handleClick:function(e){e.target!==r.value&&s(e)},update:u,ns:t}}});var m6=UG(h6,[["render",function(e,t,n,r,o,l){return vl(),bl("div",{class:X([e.ns.b(),e.ns.is("vertical",e.vertical)])},[El("div",{ref:"bar",class:X(e.ns.e("bar")),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,2),El("div",{ref:"thumb",class:X(e.ns.e("thumb")),style:K({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const g6=fK({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:LG,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:Array},validateEvent:{type:Boolean,default:!0}}),y6={[_K]:e=>y(e)||q_(e),[EK]:e=>y(e)||q_(e),activeChange:e=>y(e)||q_(e)},b6=Symbol("colorPickerContextKey"),w6=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},x6=function(e,t){var n;"string"==typeof(n=e)&&n.includes(".")&&1===Number.parseFloat(n)&&(e="100%");const r=function(e){return"string"==typeof e&&e.includes("%")}(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),r&&(e=Number.parseInt(""+e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},C6={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},k6=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${C6[t]||t}${C6[n]||n}`},S6=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${k6(e)}${k6(t)}${k6(n)}`},_6={A:10,B:11,C:12,D:13,E:14,F:15},E6=function(e){return 2===e.length?16*(_6[e[0].toUpperCase()]||+e[0])+(_6[e[1].toUpperCase()]||+e[1]):_6[e[1].toUpperCase()]||+e[1]},O6=(e,t,n)=>{e=x6(e,255),t=x6(t,255),n=x6(n,255);const r=Math.max(e,t,n),o=Math.min(e,t,n);let l;const a=r,i=r-o,s=0===r?0:i/r;if(r===o)l=0;else{switch(r){case e:l=(t-n)/i+(t{this._hue=Math.max(0,Math.min(360,e)),this._saturation=Math.max(0,Math.min(100,t)),this._value=Math.max(0,Math.min(100,n)),this.doOnChange()};if(e.includes("hsl")){const n=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3){const{h:e,s:r,v:o}=function(e,t,n){n/=100;let r=t/=100;const o=Math.max(n,.01);return t*=(n*=2)<=1?n:2-n,r*=o<=1?o:2-o,{h:e,s:100*(0===n?2*r/(o+r):2*t/(n+t)),v:(n+t)/2*100}}(n[0],n[1],n[2]);t(e,r,o)}}else if(e.includes("hsv")){const n=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3&&t(n[0],n[1],n[2])}else if(e.includes("rgb")){const n=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3){const{h:e,s:r,v:o}=O6(n[0],n[1],n[2]);t(e,r,o)}}else if(e.includes("#")){const n=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(n))return;let r,o,l;3===n.length?(r=E6(n[0]+n[0]),o=E6(n[1]+n[1]),l=E6(n[2]+n[2])):6!==n.length&&8!==n.length||(r=E6(n.slice(0,2)),o=E6(n.slice(2,4)),l=E6(n.slice(4,6))),8===n.length?this._alpha=E6(n.slice(6))/255*100:3!==n.length&&6!==n.length||(this._alpha=100);const{h:a,s:i,v:s}=O6(r,o,l);t(a,i,s)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:t,_value:n,_alpha:r,format:o}=this;if(this.enableAlpha)switch(o){case"hsl":{const r=w6(e,t/100,n/100);this.value=`hsla(${e}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%, ${this.get("alpha")/100})`;break}case"hsv":this.value=`hsva(${e}, ${Math.round(t)}%, ${Math.round(n)}%, ${this.get("alpha")/100})`;break;case"hex":this.value=`${S6(M6(e,t,n))}${k6(255*r/100)}`;break;default:{const{r:r,g:o,b:l}=M6(e,t,n);this.value=`rgba(${r}, ${o}, ${l}, ${this.get("alpha")/100})`}}else switch(o){case"hsl":{const r=w6(e,t/100,n/100);this.value=`hsl(${e}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%)`;break}case"hsv":this.value=`hsv(${e}, ${Math.round(t)}%, ${Math.round(n)}%)`;break;case"rgb":{const{r:r,g:o,b:l}=M6(e,t,n);this.value=`rgb(${r}, ${o}, ${l})`;break}default:this.value=S6(M6(e,t,n))}}}const T6=wr({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=tq("color-predefine"),{currentColor:n}=zo(b6),r=Wt(o(e.colors,e.color));function o(e,t){return e.map((e=>{const n=new z6;return n.enableAlpha=!0,n.format="rgba",n.fromString(e),n.selected=n.value===t.value,n}))}return nr((()=>n.value),(e=>{const t=new z6;t.fromString(e),r.value.forEach((e=>{e.selected=t.compare(e)}))})),Zn((()=>{r.value=o(e.colors,e.color)})),{rgbaColors:r,handleSelect:function(t){e.color.fromString(e.colors[t])},ns:t}}}),A6=["onClick"];var L6=UG(T6,[["render",function(e,t,n,r,o,l){return vl(),bl("div",{class:X(e.ns.b())},[El("div",{class:X(e.ns.e("colors"))},[(vl(!0),bl(sl,null,Qr(e.rgbaColors,((t,n)=>(vl(),bl("div",{key:e.colors[n],class:X([e.ns.e("color-selector"),e.ns.is("alpha",t._alpha<100),{selected:t.selected}]),onClick:t=>e.handleSelect(n)},[El("div",{style:K({backgroundColor:t.value})},null,4)],10,A6)))),128))],2)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const I6=wr({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=tq("color-svpanel"),n=$l(),r=Wt(0),o=Wt(0),l=Wt("hsl(0, 100%, 50%)"),a=oa((()=>({hue:e.color.get("hue"),value:e.color.get("value")})));function i(){const t=e.color.get("saturation"),a=e.color.get("value"),i=n.vnode.el,{clientWidth:s,clientHeight:u}=i;o.value=t*s/100,r.value=(100-a)*u/100,l.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function s(t){const l=n.vnode.el.getBoundingClientRect(),{clientX:a,clientY:i}=ph(t);let s=a-l.left,u=i-l.top;s=Math.max(0,s),s=Math.min(s,l.width),u=Math.max(0,u),u=Math.min(u,l.height),o.value=s,r.value=u,e.color.set({saturation:s/l.width*100,value:100-u/l.height*100})}return nr((()=>a.value),(()=>{i()})),Nr((()=>{d6(n.vnode.el,{drag:e=>{s(e)},end:e=>{s(e)}}),i()})),{cursorTop:r,cursorLeft:o,background:l,colorValue:a,handleDrag:s,update:i,ns:t}}}),R6=[El("div",null,null,-1)];var P6=UG(I6,[["render",function(e,t,n,r,o,l){return vl(),bl("div",{class:X(e.ns.b()),style:K({backgroundColor:e.background})},[El("div",{class:X(e.ns.e("white"))},null,2),El("div",{class:X(e.ns.e("black"))},null,2),El("div",{class:X(e.ns.e("cursor")),style:K({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},R6,6)],6)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const N6=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],j6=wr({name:"ElColorPicker"}),V6=wr({...j6,props:g6,emits:y6,setup(e,{expose:t,emit:n}){const r=e,{t:o}=JK(),l=tq("color"),{formItem:a}=uJ(),i=iJ(),s=sJ(),{inputId:u,isLabeledByFormItem:c}=cJ(r,{formItemContext:a}),d=Wt(),p=Wt(),f=Wt(),v=Wt();let h=!0;const m=zt(new z6({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),g=Wt(!1),y=Wt(!1),b=Wt(""),w=oa((()=>r.modelValue||y.value?function(e,t){if(!(e instanceof z6))throw new TypeError("color should be instance of _color Class");const{r:n,g:r,b:o}=e.toRgb();return t?`rgba(${n}, ${r}, ${o}, ${e.get("alpha")/100})`:`rgb(${n}, ${r}, ${o})`}(m,r.showAlpha):"transparent")),x=oa((()=>r.modelValue||y.value?m.value:"")),C=oa((()=>c.value?void 0:r.label||o("el.colorpicker.defaultLabel"))),k=oa((()=>c.value?null==a?void 0:a.labelId:void 0)),S=oa((()=>[l.b("picker"),l.is("disabled",s.value),l.bm("picker",i.value)]));function _(e){g.value=e}const E=Pk(_,100);function O(){E(!1),M()}function M(){wn((()=>{r.modelValue?m.fromString(r.modelValue):(m.value="",wn((()=>{y.value=!1})))}))}function z(){s.value||E(!g.value)}function T(){m.fromString(b.value)}function A(){const e=m.value;n(_K,e),n("change",e),r.validateEvent&&(null==a||a.validate("change").catch((e=>{}))),E(!1),wn((()=>{const e=new z6({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});m.compare(e)||M()}))}function L(){E(!1),n(_K,null),n("change",null),null!==r.modelValue&&r.validateEvent&&(null==a||a.validate("change").catch((e=>{}))),M()}return Nr((()=>{r.modelValue&&(b.value=x.value)})),nr((()=>r.modelValue),(e=>{e?e&&e!==m.value&&(h=!1,m.fromString(e)):y.value=!1})),nr((()=>x.value),(e=>{b.value=e,h&&n("activeChange",e),h=!0})),nr((()=>m.value),(()=>{r.modelValue||y.value||(y.value=!0)})),nr((()=>g.value),(()=>{wn((()=>{var e,t,n;null==(e=d.value)||e.update(),null==(t=p.value)||t.update(),null==(n=f.value)||n.update()}))})),Mo(b6,{currentColor:x}),t({color:m,show:function(){s.value||_(!0)},hide:O}),(e,t)=>(vl(),wl(Gt(BQ),{ref_key:"popper",ref:v,visible:g.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[Gt(l).be("picker","panel"),Gt(l).b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${Gt(l).namespace.value}-zoom-in-top`,persistent:""},{content:Bn((()=>[ir((vl(),bl("div",null,[El("div",{class:X(Gt(l).be("dropdown","main-wrapper"))},[Ol(m6,{ref_key:"hue",ref:d,class:"hue-slider",color:Gt(m),vertical:""},null,8,["color"]),Ol(P6,{ref:"svPanel",color:Gt(m)},null,8,["color"])],2),e.showAlpha?(vl(),wl(v6,{key:0,ref_key:"alpha",ref:f,color:Gt(m)},null,8,["color"])):Ll("v-if",!0),e.predefine?(vl(),wl(L6,{key:1,ref:"predefine",color:Gt(m),colors:e.predefine},null,8,["color","colors"])):Ll("v-if",!0),El("div",{class:X(Gt(l).be("dropdown","btns"))},[El("span",{class:X(Gt(l).be("dropdown","value"))},[Ol(Gt(hX),{modelValue:b.value,"onUpdate:modelValue":t[0]||(t[0]=e=>b.value=e),"validate-event":!1,size:"small",onKeyup:bi(T,["enter"]),onBlur:T},null,8,["modelValue","onKeyup"])],2),Ol(Gt(XZ),{class:X(Gt(l).be("dropdown","link-btn")),text:"",size:"small",onClick:L},{default:Bn((()=>[Tl(ve(Gt(o)("el.colorpicker.clear")),1)])),_:1},8,["class"]),Ol(Gt(XZ),{plain:"",size:"small",class:X(Gt(l).be("dropdown","btn")),onClick:A},{default:Bn((()=>[Tl(ve(Gt(o)("el.colorpicker.confirm")),1)])),_:1},8,["class"])],2)])),[[Gt(N0),O]])])),default:Bn((()=>[El("div",{id:Gt(u),class:X(Gt(S)),role:"button","aria-label":Gt(C),"aria-labelledby":Gt(k),"aria-description":Gt(o)("el.colorpicker.description",{color:e.modelValue||""}),tabindex:e.tabindex,onKeydown:bi(z,["enter"])},[Gt(s)?(vl(),bl("div",{key:0,class:X(Gt(l).be("picker","mask"))},null,2)):Ll("v-if",!0),El("div",{class:X(Gt(l).be("picker","trigger")),onClick:z},[El("span",{class:X([Gt(l).be("picker","color"),Gt(l).is("alpha",e.showAlpha)])},[El("span",{class:X(Gt(l).be("picker","color-inner")),style:K({backgroundColor:Gt(w)})},[ir(Ol(Gt(ZG),{class:X([Gt(l).be("picker","icon"),Gt(l).is("icon-arrow-down")])},{default:Bn((()=>[Ol(Gt(pT))])),_:1},8,["class"]),[[wi,e.modelValue||y.value]]),e.modelValue||y.value?Ll("v-if",!0):(vl(),wl(Gt(ZG),{key:0,class:X([Gt(l).be("picker","empty"),Gt(l).is("icon-close")])},{default:Bn((()=>[Ol(Gt(eI))])),_:1},8,["class"]))],6)],2)],2)],42,N6)])),_:1},8,["visible","popper-class","transition"]))}}),B6=bK(UG(V6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]])),H6=wr({name:"ElContainer"});var D6=UG(wr({...H6,props:{direction:{type:String}},setup(e){const t=e,n=so(),r=tq("container"),o=oa((()=>"vertical"===t.direction||"horizontal"!==t.direction&&(!(!n||!n.default)&&n.default().some((e=>{const t=e.type.name;return"ElHeader"===t||"ElFooter"===t})))));return(e,t)=>(vl(),bl("section",{class:X([Gt(r).b(),Gt(r).is("vertical",Gt(o))])},[eo(e.$slots,"default")],2))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const $6=wr({name:"ElAside"}),F6=wr({...$6,props:{width:{type:String,default:null}},setup(e){const t=e,n=tq("aside"),r=oa((()=>t.width?n.cssVarBlock({width:t.width}):{}));return(e,t)=>(vl(),bl("aside",{class:X(Gt(n).b()),style:K(Gt(r))},[eo(e.$slots,"default")],6))}});var W6=UG(F6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const U6=wr({name:"ElFooter"}),K6=wr({...U6,props:{height:{type:String,default:null}},setup(e){const t=e,n=tq("footer"),r=oa((()=>t.height?n.cssVarBlock({height:t.height}):{}));return(e,t)=>(vl(),bl("footer",{class:X(Gt(n).b()),style:K(Gt(r))},[eo(e.$slots,"default")],6))}});var q6=UG(K6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const Y6=wr({name:"ElHeader"}),G6=wr({...Y6,props:{height:{type:String,default:null}},setup(e){const t=e,n=tq("header"),r=oa((()=>t.height?n.cssVarBlock({height:t.height}):{}));return(e,t)=>(vl(),bl("header",{class:X(Gt(n).b()),style:K(Gt(r))},[eo(e.$slots,"default")],6))}});var J6=UG(G6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const X6=wr({name:"ElMain"});var Q6=UG(wr({...X6,setup(e){const t=tq("main");return(e,n)=>(vl(),bl("main",{class:X(Gt(t).b())},[eo(e.$slots,"default")],2))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const Z6=bK(D6,{Aside:W6,Footer:q6,Header:J6,Main:Q6}),e3=xK(W6),t3=xK(q6),n3=xK(J6),r3=xK(Q6);var o3={exports:{}};o3.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),l=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(l)}};const l3=e0(o3.exports);var a3={exports:{}};a3.exports=function(){var e="week",t="year";return function(n,r,o){var l=r.prototype;l.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var l=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(l.isBefore(a))return 1}var i=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),s=this.diff(i,e,!0);return s<0?o(this).startOf("week").week():Math.ceil(s)},l.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}();const i3=e0(a3.exports);var s3={exports:{}};s3.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}};const u3=e0(s3.exports);var c3={exports:{}};c3.exports=function(e,t,n){t.prototype.dayOfYear=function(e){var t=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"day")}};const d3=e0(c3.exports);var p3={exports:{}};p3.exports=function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}};const f3=e0(p3.exports);var v3={exports:{}};v3.exports=function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}};const h3=e0(v3.exports),m3=Symbol(),g3=fK({...x0,type:{type:String,default:"date"}}),y3=["date","dates","year","month","week","range"],b3=fK({disabledDate:{type:Function},date:{type:Object,required:!0},minDate:{type:Object},maxDate:{type:Object},parsedValue:{type:[Object,Array]},rangeState:{type:Object,default:()=>({endDate:null,selecting:!1})}}),w3=fK({type:{type:String,required:!0,values:["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"]}}),x3=fK({unlinkPanels:Boolean,parsedValue:{type:Array}}),C3=e=>({type:String,values:y3,default:e}),k3=fK({...w3,parsedValue:{type:[Object,Array]},visible:{type:Boolean},format:{type:String,default:""}}),S3=fK({...b3,cellClassName:{type:Function},showWeekNumber:Boolean,selectionMode:C3("date")}),_3=e=>{if(!p(e))return!1;const[t,n]=e;return r0.isDayjs(t)&&r0.isDayjs(n)&&t.isSameOrBefore(n)},E3=(e,{lang:t,unit:n,unlinkPanels:r})=>{let o;if(p(e)){let[o,l]=e.map((e=>r0(e).locale(t)));return r||(l=o.add(1,n)),[o,l]}return o=e?r0(e):r0(),o=o.locale(t),[o,o.add(1,n)]};var O3=wr({name:"ElDatePickerCell",props:fK({cell:{type:Object}}),setup(e){const t=tq("date-table-cell"),{slots:n}=zo(m3);return()=>{const{cell:r}=e;if(n.default){const e=n.default(r).filter((e=>-2!==e.patchFlag&&"Symbol(Comment)"!==e.type.toString()));if(e.length)return e}return Ol("div",{class:t.b()},[Ol("span",{class:t.e("text")},[null==r?void 0:r.text])])}}});const M3=["aria-label","onMousedown"],z3={key:0,scope:"col"},T3=["aria-label"],A3=["aria-current","aria-selected","tabindex"],L3=wr({__name:"basic-date-table",props:S3,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,o=tq("date-table"),{t:l,lang:a}=JK(),i=Wt(),s=Wt(),u=Wt(),c=Wt(),d=Wt([[],[],[],[],[],[]]);let p=!1;const f=r.date.$locale().weekStart||7,v=r.date.locale("en").localeData().weekdaysShort().map((e=>e.toLowerCase())),h=oa((()=>f>3?7-f:-f)),m=oa((()=>{const e=r.date.startOf("month");return e.subtract(e.day()||7,"day")})),g=oa((()=>v.concat(v).slice(f,f+7))),y=oa((()=>Sb(C.value).some((e=>e.isCurrent)))),b=oa((()=>{const e=r.date.startOf("month");return{startOfMonthDay:e.day()||7,dateCountOfMonth:e.daysInMonth(),dateCountOfLastMonth:e.subtract(1,"month").daysInMonth()}})),w=oa((()=>"dates"===r.selectionMode?NK(r.parsedValue):[])),x=e=>{if("week"===r.selectionMode){const[t,n]=r.showWeekNumber?[1,7]:[0,6],o=R(e[t+1]);e[t].inRange=o,e[t].start=o,e[n].inRange=o,e[n].end=o}},C=oa((()=>{const{minDate:e,maxDate:t,rangeState:n,showWeekNumber:o}=r,l=h.value,i=d.value,s="day";let u=1;if(o)for(let r=0;r<6;r++)i[r][0]||(i[r][0]={type:"week",text:m.value.add(7*r+1,s).week()});return((e,t,{columnIndexOffset:n,startDate:r,nextEndDate:o,now:l,unit:a,relativeDateGetter:i,setCellMetadata:s,setRowMetadata:u})=>{for(let c=0;cm.value.add(e-l,s),setCellMetadata:(...e)=>{((e,{columnIndex:t,rowIndex:n},o)=>{const{disabledDate:l,cellClassName:a}=r,i=Gt(w),s=((e,{count:t,rowIndex:n,columnIndex:r})=>{const{startOfMonthDay:o,dateCountOfMonth:l,dateCountOfLastMonth:a}=Gt(b),i=Gt(h);if(!(n>=0&&n<=1))return t<=l?e.text=t:(e.text=t-l,e.type="next-month"),!0;{const l=o+i<0?7+o+i:o+i;if(r+7*n>=l)return e.text=t,!0;e.text=a-(l-r%7)+1+7*n,e.type="prev-month"}return!1})(e,{count:o,rowIndex:n,columnIndex:t}),u=e.dayjs.toDate();return e.selected=i.find((t=>t.valueOf()===e.dayjs.valueOf())),e.isSelected=!!e.selected,e.isCurrent=S(e),e.disabled=null==l?void 0:l(u),e.customClass=null==a?void 0:a(u),s})(...e,u)&&(u+=1)},setRowMetadata:x}),i}));nr((()=>r.date),(async()=>{var e,t;(null==(e=i.value)?void 0:e.contains(document.activeElement))&&(await wn(),null==(t=s.value)||t.focus())}));const k=(e="")=>["normal","today"].includes(e),S=e=>"date"===r.selectionMode&&k(e.type)&&_(e,r.parsedValue),_=(e,t)=>!!t&&r0(t).locale(a.value).isSame(r.date.date(Number(e.text)),"day"),E=e=>{const t=[];return k(e.type)&&!e.disabled?(t.push("available"),"today"===e.type&&t.push("today")):t.push(e.type),S(e)&&t.push("current"),e.inRange&&(k(e.type)||"week"===r.selectionMode)&&(t.push("in-range"),e.start&&t.push("start-date"),e.end&&t.push("end-date")),e.disabled&&t.push("disabled"),e.selected&&t.push("selected"),e.customClass&&t.push(e.customClass),t.join(" ")},O=(e,t)=>{const n=7*e+(t-(r.showWeekNumber?1:0))-h.value;return m.value.add(n,"day")},M=e=>{var t;if(!r.rangeState.selecting)return;let o=e.target;if("SPAN"===o.tagName&&(o=null==(t=o.parentNode)?void 0:t.parentNode),"DIV"===o.tagName&&(o=o.parentNode),"TD"!==o.tagName)return;const l=o.parentNode.rowIndex-1,a=o.cellIndex;C.value[l][a].disabled||l===u.value&&a===c.value||(u.value=l,c.value=a,n("changerange",{selecting:!0,endDate:O(l,a)}))},z=e=>!y.value&&1===(null==e?void 0:e.text)&&"normal"===e.type||e.isCurrent,T=e=>{p||y.value||"date"!==r.selectionMode||I(e,!0)},A=e=>{e.target.closest("td")&&(p=!0)},L=e=>{e.target.closest("td")&&(p=!1)},I=(e,t=!1)=>{const o=e.target.closest("td");if(!o)return;const l=o.parentNode.rowIndex-1,a=o.cellIndex,i=C.value[l][a];if(i.disabled||"week"===i.type)return;const s=O(l,a);if("range"===r.selectionMode)r.rangeState.selecting&&r.minDate?(s>=r.minDate?n("pick",{minDate:r.minDate,maxDate:s}):n("pick",{minDate:s,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:s,maxDate:null}),n("select",!0));else if("date"===r.selectionMode)n("pick",s,t);else if("week"===r.selectionMode){const e=s.week(),t=`${s.year()}w${e}`;n("pick",{year:s.year(),week:e,value:t,date:s.startOf("week")})}else if("dates"===r.selectionMode){const e=i.selected?NK(r.parsedValue).filter((e=>(null==e?void 0:e.valueOf())!==s.valueOf())):NK(r.parsedValue).concat([s]);n("pick",e)}},R=e=>{if("week"!==r.selectionMode)return!1;let t=r.date.startOf("day");if("prev-month"===e.type&&(t=t.subtract(1,"month")),"next-month"===e.type&&(t=t.add(1,"month")),t=t.date(Number.parseInt(e.text,10)),r.parsedValue&&!Array.isArray(r.parsedValue)){const e=(r.parsedValue.day()-f+7)%7-1;return r.parsedValue.subtract(e,"day").isSame(t,"day")}return!1};return t({focus:async()=>{var e;null==(e=s.value)||e.focus()}}),(e,t)=>(vl(),bl("table",{role:"grid","aria-label":Gt(l)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:X([Gt(o).b(),{"is-week-mode":"week"===e.selectionMode}]),onClick:I,onMousemove:M,onMousedown:gi(A,["prevent"]),onMouseup:L},[El("tbody",{ref_key:"tbodyRef",ref:i},[El("tr",null,[e.showWeekNumber?(vl(),bl("th",z3,ve(Gt(l)("el.datepicker.week")),1)):Ll("v-if",!0),(vl(!0),bl(sl,null,Qr(Gt(g),((e,t)=>(vl(),bl("th",{key:t,scope:"col","aria-label":Gt(l)("el.datepicker.weeksFull."+e)},ve(Gt(l)("el.datepicker.weeks."+e)),9,T3)))),128))]),(vl(!0),bl(sl,null,Qr(Gt(C),((e,t)=>(vl(),bl("tr",{key:t,class:X([Gt(o).e("row"),{current:R(e[1])}])},[(vl(!0),bl(sl,null,Qr(e,((e,n)=>(vl(),bl("td",{key:`${t}.${n}`,ref_for:!0,ref:t=>z(e)&&(s.value=t),class:X(E(e)),"aria-current":e.isCurrent?"date":void 0,"aria-selected":e.isCurrent,tabindex:z(e)?0:-1,onFocus:T},[Ol(Gt(O3),{cell:e},null,8,["cell"])],42,A3)))),128))],2)))),128))],512)],42,M3))}});var I3=UG(L3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const R3=fK({...b3,selectionMode:C3("month")}),P3=["aria-label"],N3=["aria-selected","aria-label","tabindex","onKeydown"],j3={class:"cell"},V3=wr({__name:"basic-month-table",props:R3,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,o=tq("month-table"),{t:l,lang:a}=JK(),i=Wt(),s=Wt(),u=Wt(r.date.locale("en").localeData().monthsShort().map((e=>e.toLowerCase()))),c=Wt([[],[],[]]),d=Wt(),p=Wt(),f=oa((()=>{var e,t;const n=c.value,o=r0().locale(a.value).startOf("month");for(let l=0;l<3;l++){const a=n[l];for(let n=0;n<4;n++){const i=a[n]||(a[n]={row:l,column:n,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});i.type="normal";const s=4*l+n,u=r.date.startOf("year").month(s),c=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;i.inRange=!!(r.minDate&&u.isSameOrAfter(r.minDate,"month")&&c&&u.isSameOrBefore(c,"month"))||!!(r.minDate&&u.isSameOrBefore(r.minDate,"month")&&c&&u.isSameOrAfter(c,"month")),(null==(e=r.minDate)?void 0:e.isSameOrAfter(c))?(i.start=!(!c||!u.isSame(c,"month")),i.end=r.minDate&&u.isSame(r.minDate,"month")):(i.start=!(!r.minDate||!u.isSame(r.minDate,"month")),i.end=!(!c||!u.isSame(c,"month"))),o.isSame(u)&&(i.type="today"),i.text=s,i.disabled=(null==(t=r.disabledDate)?void 0:t.call(r,u.toDate()))||!1}}return n})),v=e=>{const t={},n=r.date.year(),o=new Date,l=e.text;return t.disabled=!!r.disabledDate&&((e,t,n)=>{const r=r0().locale(n).startOf("month").month(t).year(e),o=r.daysInMonth();return d0(o).map((e=>r.add(e,"day").toDate()))})(n,l,a.value).every(r.disabledDate),t.current=NK(r.parsedValue).findIndex((e=>r0.isDayjs(e)&&e.year()===n&&e.month()===l))>=0,t.today=o.getFullYear()===n&&o.getMonth()===l,e.inRange&&(t["in-range"]=!0,e.start&&(t["start-date"]=!0),e.end&&(t["end-date"]=!0)),t},h=e=>{const t=r.date.year(),n=e.text;return NK(r.date).findIndex((e=>e.year()===t&&e.month()===n))>=0},m=e=>{var t;if(!r.rangeState.selecting)return;let o=e.target;if("A"===o.tagName&&(o=null==(t=o.parentNode)?void 0:t.parentNode),"DIV"===o.tagName&&(o=o.parentNode),"TD"!==o.tagName)return;const l=o.parentNode.rowIndex,a=o.cellIndex;f.value[l][a].disabled||l===d.value&&a===p.value||(d.value=l,p.value=a,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(4*l+a)}))},g=e=>{var t;const o=null==(t=e.target)?void 0:t.closest("td");if("TD"!==(null==o?void 0:o.tagName))return;if(Vz(o,"disabled"))return;const l=o.cellIndex,a=4*o.parentNode.rowIndex+l,i=r.date.startOf("year").month(a);"range"===r.selectionMode?r.rangeState.selecting?(r.minDate&&i>=r.minDate?n("pick",{minDate:r.minDate,maxDate:i}):n("pick",{minDate:i,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:i,maxDate:null}),n("select",!0)):n("pick",a)};return nr((()=>r.date),(async()=>{var e,t;(null==(e=i.value)?void 0:e.contains(document.activeElement))&&(await wn(),null==(t=s.value)||t.focus())})),t({focus:()=>{var e;null==(e=s.value)||e.focus()}}),(e,t)=>(vl(),bl("table",{role:"grid","aria-label":Gt(l)("el.datepicker.monthTablePrompt"),class:X(Gt(o).b()),onClick:g,onMousemove:m},[El("tbody",{ref_key:"tbodyRef",ref:i},[(vl(!0),bl(sl,null,Qr(Gt(f),((e,t)=>(vl(),bl("tr",{key:t},[(vl(!0),bl(sl,null,Qr(e,((e,t)=>(vl(),bl("td",{key:t,ref_for:!0,ref:t=>h(e)&&(s.value=t),class:X(v(e)),"aria-selected":`${h(e)}`,"aria-label":Gt(l)("el.datepicker.month"+(+e.text+1)),tabindex:h(e)?0:-1,onKeydown:[bi(gi(g,["prevent","stop"]),["space"]),bi(gi(g,["prevent","stop"]),["enter"])]},[El("div",null,[El("span",j3,ve(Gt(l)("el.datepicker.months."+u.value[e.text])),1)])],42,N3)))),128))])))),128))],512)],42,P3))}});var B3=UG(V3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:H3,disabledDate:D3,parsedValue:$3}=b3,F3=fK({date:H3,disabledDate:D3,parsedValue:$3}),W3=["aria-label"],U3=["aria-selected","tabindex","onKeydown"],K3={class:"cell"},q3={key:1},Y3=wr({__name:"basic-year-table",props:F3,emits:["pick"],setup(e,{expose:t,emit:n}){const r=e,o=tq("year-table"),{t:l,lang:a}=JK(),i=Wt(),s=Wt(),u=oa((()=>10*Math.floor(r.date.year()/10))),c=e=>{const t={},n=r0().locale(a.value);return t.disabled=!!r.disabledDate&&((e,t)=>{const n=r0(String(e)).locale(t).startOf("year"),r=n.endOf("year").dayOfYear();return d0(r).map((e=>n.add(e,"day").toDate()))})(e,a.value).every(r.disabledDate),t.current=NK(r.parsedValue).findIndex((t=>t.year()===e))>=0,t.today=n.year()===e,t},d=e=>e===u.value&&r.date.year()u.value+9||NK(r.date).findIndex((t=>t.year()===e))>=0,p=e=>{const t=e.target.closest("td");if(t&&t.textContent){if(Vz(t,"disabled"))return;const e=t.textContent||t.innerText;n("pick",Number(e))}};return nr((()=>r.date),(async()=>{var e,t;(null==(e=i.value)?void 0:e.contains(document.activeElement))&&(await wn(),null==(t=s.value)||t.focus())})),t({focus:()=>{var e;null==(e=s.value)||e.focus()}}),(e,t)=>(vl(),bl("table",{role:"grid","aria-label":Gt(l)("el.datepicker.yearTablePrompt"),class:X(Gt(o).b()),onClick:p},[El("tbody",{ref_key:"tbodyRef",ref:i},[(vl(),bl(sl,null,Qr(3,((e,t)=>El("tr",{key:t},[(vl(),bl(sl,null,Qr(4,((e,n)=>(vl(),bl(sl,{key:t+"_"+n},[4*t+n<10?(vl(),bl("td",{key:0,ref_for:!0,ref:e=>d(Gt(u)+4*t+n)&&(s.value=e),class:X(["available",c(Gt(u)+4*t+n)]),"aria-selected":`${d(Gt(u)+4*t+n)}`,tabindex:d(Gt(u)+4*t+n)?0:-1,onKeydown:[bi(gi(p,["prevent","stop"]),["space"]),bi(gi(p,["prevent","stop"]),["enter"])]},[El("span",K3,ve(Gt(u)+4*t+n),1)],42,U3)):(vl(),bl("td",q3))],64)))),64))]))),64))],512)],10,W3))}});var G3=UG(Y3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const J3=["onClick"],X3=["aria-label"],Q3=["aria-label"],Z3=["aria-label"],e8=["aria-label"],t8=wr({__name:"panel-date-pick",props:k3,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=tq("picker-panel"),o=tq("date-picker"),l=uo(),a=so(),{t:i,lang:s}=JK(),u=zo("EP_PICKER_BASE"),c=zo(wQ),{shortcuts:d,disabledDate:f,cellClassName:v,defaultTime:h,arrowControl:m}=u.props,y=rn(u.props,"defaultValue"),b=Wt(),w=Wt(r0().locale(s.value)),x=Wt(!1),C=oa((()=>r0(h).locale(s.value))),k=oa((()=>w.value.month())),S=oa((()=>w.value.year())),_=Wt([]),E=Wt(null),O=Wt(null),M=e=>!(_.value.length>0&&(_.value,n.format,0)),z=e=>!h||Y.value||x.value?$.value?e.millisecond(0):e.startOf("day"):C.value.year(e.year()).month(e.month()).date(e.date()),T=(e,...n)=>{if(e)if(p(e)){const r=e.map(z);t("pick",r,...n)}else t("pick",z(e),...n);else t("pick",e,...n);E.value=null,O.value=null,x.value=!1},A=(e,t)=>{if("date"===N.value){let r=n.parsedValue?n.parsedValue.year(e.year()).month(e.month()).date(e.date()):e;M()||(r=_.value[0][0].year(e.year()).month(e.month()).date(e.date())),w.value=r,T(r,$.value||t)}else"week"===N.value?T(e.date):"dates"===N.value&&T(e,!0)},L=e=>{const t=e?"add":"subtract";w.value=w.value[t](1,"month"),se("month")},I=e=>{const t=w.value,n=e?"add":"subtract";w.value="year"===R.value?t[n](10,"year"):t[n](1,"year"),se("year")},R=Wt("date"),P=oa((()=>{const e=i("el.datepicker.year");if("year"===R.value){const t=10*Math.floor(S.value/10);return e?`${t} ${e} - ${t+9} ${e}`:`${t} - ${t+9}`}return`${S.value} ${e}`})),N=oa((()=>{const{type:e}=n;return["week","month","year","dates"].includes(e)?e:"date"})),j=oa((()=>"date"===N.value?R.value:N.value)),V=oa((()=>!!d.length)),B=async e=>{w.value=w.value.startOf("month").month(e),"month"===N.value?T(w.value,!1):(R.value="date",["month","year","date","week"].includes(N.value)&&(T(w.value,!0),await wn(),le())),se("month")},H=async e=>{"year"===N.value?(w.value=w.value.startOf("year").year(e),T(w.value,!1)):(w.value=w.value.year(e),R.value="month",["month","year","date","week"].includes(N.value)&&(T(w.value,!0),await wn(),le())),se("year")},D=async e=>{R.value=e,await wn(),le()},$=oa((()=>"datetime"===n.type||"datetimerange"===n.type)),F=oa((()=>$.value||"dates"===N.value)),W=()=>{if("dates"===N.value)T(n.parsedValue);else{let e=n.parsedValue;if(!e){const t=r0(h).locale(s.value),n=oe();e=t.year(n.year()).month(n.month()).date(n.date())}w.value=e,T(e)}},U=()=>{const e=r0().locale(s.value).toDate();x.value=!0,f&&f(e)||!M()||(w.value=r0().locale(s.value),T(w.value))},K=oa((()=>f0(n.format))),q=oa((()=>p0(n.format))),Y=oa((()=>O.value?O.value:n.parsedValue||y.value?(n.parsedValue||w.value).format(K.value):void 0)),G=oa((()=>E.value?E.value:n.parsedValue||y.value?(n.parsedValue||w.value).format(q.value):void 0)),J=Wt(!1),Q=()=>{J.value=!0},Z=()=>{J.value=!1},ee=e=>({hour:e.hour(),minute:e.minute(),second:e.second(),year:e.year(),month:e.month(),date:e.date()}),te=(e,t,r)=>{const{hour:o,minute:l,second:a}=ee(e),i=n.parsedValue?n.parsedValue.hour(o).minute(l).second(a):e;w.value=i,T(w.value,!0),r||(J.value=t)},ne=e=>{const t=r0(e,K.value).locale(s.value);if(t.isValid()&&M()){const{year:e,month:n,date:r}=ee(w.value);w.value=t.year(e).month(n).date(r),O.value=null,J.value=!1,T(w.value,!0)}},re=e=>{const t=r0(e,q.value).locale(s.value);if(t.isValid()){if(f&&f(t.toDate()))return;const{hour:e,minute:n,second:r}=ee(w.value);w.value=t.hour(e).minute(n).second(r),E.value=null,T(w.value,!0)}},oe=()=>{const e=r0(y.value).locale(s.value);if(!y.value){const e=C.value;return r0().hour(e.hour()).minute(e.minute()).second(e.second()).locale(s.value)}return e},le=async()=>{var e;["week","month","year","date"].includes(N.value)&&(null==(e=b.value)||e.focus(),"week"===N.value&&ie(kK.down))},ae=e=>{const{code:t}=e;[kK.up,kK.down,kK.left,kK.right,kK.home,kK.end,kK.pageUp,kK.pageDown].includes(t)&&(ie(t),e.stopPropagation(),e.preventDefault()),[kK.enter,kK.space,kK.numpadEnter].includes(t)&&null===E.value&&null===O.value&&(e.preventDefault(),T(w.value,!1))},ie=e=>{var n;const{up:r,down:o,left:l,right:a,home:i,end:u,pageUp:c,pageDown:d}=kK,p={year:{[r]:-4,[o]:4,[l]:-1,[a]:1,offset:(e,t)=>e.setFullYear(e.getFullYear()+t)},month:{[r]:-4,[o]:4,[l]:-1,[a]:1,offset:(e,t)=>e.setMonth(e.getMonth()+t)},week:{[r]:-1,[o]:1,[l]:-1,[a]:1,offset:(e,t)=>e.setDate(e.getDate()+7*t)},date:{[r]:-7,[o]:7,[l]:-1,[a]:1,[i]:e=>-e.getDay(),[u]:e=>6-e.getDay(),[c]:e=>-new Date(e.getFullYear(),e.getMonth(),0).getDate(),[d]:e=>new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),offset:(e,t)=>e.setDate(e.getDate()+t)}},v=w.value.toDate();for(;Math.abs(w.value.diff(v,"year",!0))<1;){const r=p[j.value];if(!r)return;if(r.offset(v,g(r[e])?r[e](v):null!=(n=r[e])?n:0),f&&f(v))break;const o=r0(v).locale(s.value);w.value=o,t("pick",o,!0);break}},se=e=>{t("panel-change",w.value.toDate(),e,R.value)};return nr((()=>N.value),(e=>{["month","year"].includes(e)?R.value=e:R.value="date"}),{immediate:!0}),nr((()=>R.value),(()=>{null==c||c.updatePopper()})),nr((()=>y.value),(e=>{e&&(w.value=oe())}),{immediate:!0}),nr((()=>n.parsedValue),(e=>{if(e){if("dates"===N.value)return;if(Array.isArray(e))return;w.value=e}else w.value=oe()}),{immediate:!0}),t("set-picker-option",["isValidValue",e=>r0.isDayjs(e)&&e.isValid()&&(!f||!f(e.toDate()))]),t("set-picker-option",["formatToString",e=>"dates"===N.value?e.map((e=>e.format(n.format))):e.format(n.format)]),t("set-picker-option",["parseUserInput",e=>r0(e,n.format).locale(s.value)]),t("set-picker-option",["handleFocusPicker",le]),(e,n)=>(vl(),bl("div",{class:X([Gt(r).b(),Gt(o).b(),{"has-sidebar":e.$slots.sidebar||Gt(V),"has-time":Gt($)}])},[El("div",{class:X(Gt(r).e("body-wrapper"))},[eo(e.$slots,"sidebar",{class:X(Gt(r).e("sidebar"))}),Gt(V)?(vl(),bl("div",{key:0,class:X(Gt(r).e("sidebar"))},[(vl(!0),bl(sl,null,Qr(Gt(d),((e,n)=>(vl(),bl("button",{key:n,type:"button",class:X(Gt(r).e("shortcut")),onClick:n=>(e=>{const n=g(e.value)?e.value():e.value;n?T(r0(n).locale(s.value)):e.onClick&&e.onClick({attrs:l,slots:a,emit:t})})(e)},ve(e.text),11,J3)))),128))],2)):Ll("v-if",!0),El("div",{class:X(Gt(r).e("body"))},[Gt($)?(vl(),bl("div",{key:0,class:X(Gt(o).e("time-header"))},[El("span",{class:X(Gt(o).e("editor-wrap"))},[Ol(Gt(hX),{placeholder:Gt(i)("el.datepicker.selectDate"),"model-value":Gt(G),size:"small","validate-event":!1,onInput:n[0]||(n[0]=e=>E.value=e),onChange:re},null,8,["placeholder","model-value"])],2),ir((vl(),bl("span",{class:X(Gt(o).e("editor-wrap"))},[Ol(Gt(hX),{placeholder:Gt(i)("el.datepicker.selectTime"),"model-value":Gt(Y),size:"small","validate-event":!1,onFocus:Q,onInput:n[1]||(n[1]=e=>O.value=e),onChange:ne},null,8,["placeholder","model-value"]),Ol(Gt(x2),{visible:J.value,format:Gt(K),"time-arrow-control":Gt(m),"parsed-value":w.value,onPick:te},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[Gt(N0),Z]])],2)):Ll("v-if",!0),ir(El("div",{class:X([Gt(o).e("header"),("year"===R.value||"month"===R.value)&&Gt(o).e("header--bordered")])},[El("span",{class:X(Gt(o).e("prev-btn"))},[El("button",{type:"button","aria-label":Gt(i)("el.datepicker.prevYear"),class:X(["d-arrow-left",Gt(r).e("icon-btn")]),onClick:n[2]||(n[2]=e=>I(!1))},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(YI))])),_:1})],10,X3),ir(El("button",{type:"button","aria-label":Gt(i)("el.datepicker.prevMonth"),class:X([Gt(r).e("icon-btn"),"arrow-left"]),onClick:n[3]||(n[3]=e=>L(!1))},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(yT))])),_:1})],10,Q3),[[wi,"date"===R.value]])],2),El("span",{role:"button",class:X(Gt(o).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:n[4]||(n[4]=bi((e=>D("year")),["enter"])),onClick:n[5]||(n[5]=e=>D("year"))},ve(Gt(P)),35),ir(El("span",{role:"button","aria-live":"polite",tabindex:"0",class:X([Gt(o).e("header-label"),{active:"month"===R.value}]),onKeydown:n[6]||(n[6]=bi((e=>D("month")),["enter"])),onClick:n[7]||(n[7]=e=>D("month"))},ve(Gt(i)(`el.datepicker.month${Gt(k)+1}`)),35),[[wi,"date"===R.value]]),El("span",{class:X(Gt(o).e("next-btn"))},[ir(El("button",{type:"button","aria-label":Gt(i)("el.datepicker.nextMonth"),class:X([Gt(r).e("icon-btn"),"arrow-right"]),onClick:n[8]||(n[8]=e=>L(!0))},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(ST))])),_:1})],10,Z3),[[wi,"date"===R.value]]),El("button",{type:"button","aria-label":Gt(i)("el.datepicker.nextYear"),class:X([Gt(r).e("icon-btn"),"d-arrow-right"]),onClick:n[9]||(n[9]=e=>I(!0))},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(XI))])),_:1})],10,e8)],2)],2),[[wi,"time"!==R.value]]),El("div",{class:X(Gt(r).e("content")),onKeydown:ae},["date"===R.value?(vl(),wl(I3,{key:0,ref_key:"currentViewRef",ref:b,"selection-mode":Gt(N),date:w.value,"parsed-value":e.parsedValue,"disabled-date":Gt(f),"cell-class-name":Gt(v),onPick:A},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):Ll("v-if",!0),"year"===R.value?(vl(),wl(G3,{key:1,ref_key:"currentViewRef",ref:b,date:w.value,"disabled-date":Gt(f),"parsed-value":e.parsedValue,onPick:H},null,8,["date","disabled-date","parsed-value"])):Ll("v-if",!0),"month"===R.value?(vl(),wl(B3,{key:2,ref_key:"currentViewRef",ref:b,date:w.value,"parsed-value":e.parsedValue,"disabled-date":Gt(f),onPick:B},null,8,["date","parsed-value","disabled-date"])):Ll("v-if",!0)],34)],2)],2),ir(El("div",{class:X(Gt(r).e("footer"))},[ir(Ol(Gt(XZ),{text:"",size:"small",class:X(Gt(r).e("link-btn")),onClick:U},{default:Bn((()=>[Tl(ve(Gt(i)("el.datepicker.now")),1)])),_:1},8,["class"]),[[wi,"dates"!==Gt(N)]]),Ol(Gt(XZ),{plain:"",size:"small",class:X(Gt(r).e("link-btn")),onClick:W},{default:Bn((()=>[Tl(ve(Gt(i)("el.datepicker.confirm")),1)])),_:1},8,["class"])],2),[[wi,Gt(F)&&"date"===R.value]])],2))}});var n8=UG(t8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const r8=fK({...w3,...x3}),o8=(e,{defaultValue:t,leftDate:n,rightDate:r,unit:o,onParsedValueChanged:l})=>{const{emit:a}=$l(),{pickerNs:i}=zo(m3),s=tq("date-range-picker"),{t:u,lang:c}=JK(),d=(e=>{const{emit:t}=$l(),n=uo(),r=so();return o=>{const l=g(o.value)?o.value():o.value;l?t("pick",[r0(l[0]).locale(e.value),r0(l[1]).locale(e.value)]):o.onClick&&o.onClick({attrs:n,slots:r,emit:t})}})(c),f=Wt(),v=Wt(),h=Wt({endDate:null,selecting:!1}),m=()=>{const[l,a]=E3(Gt(t),{lang:Gt(c),unit:o,unlinkPanels:e.unlinkPanels});f.value=void 0,v.value=void 0,n.value=l,r.value=a};return nr(t,(e=>{e&&m()}),{immediate:!0}),nr((()=>e.parsedValue),(e=>{if(p(e)&&2===e.length){const[t,r]=e;f.value=t,n.value=t,v.value=r,l(Gt(f),Gt(v))}else m()}),{immediate:!0}),{minDate:f,maxDate:v,rangeState:h,lang:c,ppNs:i,drpNs:s,handleChangeRange:e=>{h.value=e},handleRangeConfirm:(e=!1)=>{const t=Gt(f),n=Gt(v);_3([t,n])&&a("pick",[t,n],e)},handleShortcutClick:d,onSelect:e=>{h.value.selecting=e,e||(h.value.endDate=null)},t:u}},l8=["onClick"],a8=["disabled"],i8=["disabled"],s8=["disabled"],u8=["disabled"],c8="month",d8=wr({__name:"panel-date-range",props:r8,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=zo("EP_PICKER_BASE"),{disabledDate:o,cellClassName:l,format:a,defaultTime:i,arrowControl:s,clearable:u}=r.props,c=rn(r.props,"shortcuts"),d=rn(r.props,"defaultValue"),{lang:f}=JK(),v=Wt(r0().locale(f.value)),h=Wt(r0().locale(f.value).add(1,c8)),{minDate:m,maxDate:g,rangeState:y,ppNs:b,drpNs:w,handleChangeRange:x,handleRangeConfirm:C,handleShortcutClick:k,onSelect:S,t:_}=o8(n,{defaultValue:d,leftDate:v,rightDate:h,unit:c8,onParsedValueChanged:function(e,t){if(n.unlinkPanels&&t){const n=(null==e?void 0:e.year())||0,r=(null==e?void 0:e.month())||0,o=t.year(),l=t.month();h.value=n===o&&r===l?t.add(1,c8):t}else h.value=v.value.add(1,c8),t&&(h.value=h.value.hour(t.hour()).minute(t.minute()).second(t.second()))}}),E=Wt({min:null,max:null}),O=Wt({min:null,max:null}),M=oa((()=>`${v.value.year()} ${_("el.datepicker.year")} ${_(`el.datepicker.month${v.value.month()+1}`)}`)),z=oa((()=>`${h.value.year()} ${_("el.datepicker.year")} ${_(`el.datepicker.month${h.value.month()+1}`)}`)),T=oa((()=>v.value.year())),A=oa((()=>v.value.month())),L=oa((()=>h.value.year())),I=oa((()=>h.value.month())),R=oa((()=>!!c.value.length)),P=oa((()=>null!==E.value.min?E.value.min:m.value?m.value.format(H.value):"")),N=oa((()=>null!==E.value.max?E.value.max:g.value||m.value?(g.value||m.value).format(H.value):"")),j=oa((()=>null!==O.value.min?O.value.min:m.value?m.value.format(B.value):"")),V=oa((()=>null!==O.value.max?O.value.max:g.value||m.value?(g.value||m.value).format(B.value):"")),B=oa((()=>f0(a))),H=oa((()=>p0(a))),D=()=>{v.value=v.value.subtract(1,"year"),n.unlinkPanels||(h.value=v.value.add(1,"month")),G("year")},$=()=>{v.value=v.value.subtract(1,"month"),n.unlinkPanels||(h.value=v.value.add(1,"month")),G("month")},F=()=>{n.unlinkPanels?h.value=h.value.add(1,"year"):(v.value=v.value.add(1,"year"),h.value=v.value.add(1,"month")),G("year")},W=()=>{n.unlinkPanels?h.value=h.value.add(1,"month"):(v.value=v.value.add(1,"month"),h.value=v.value.add(1,"month")),G("month")},U=()=>{v.value=v.value.add(1,"year"),G("year")},K=()=>{v.value=v.value.add(1,"month"),G("month")},q=()=>{h.value=h.value.subtract(1,"year"),G("year")},Y=()=>{h.value=h.value.subtract(1,"month"),G("month")},G=e=>{t("panel-change",[v.value.toDate(),h.value.toDate()],e)},J=oa((()=>{const e=(A.value+1)%12,t=A.value+1>=12?1:0;return n.unlinkPanels&&new Date(T.value+t,e)n.unlinkPanels&&12*L.value+I.value-(12*T.value+A.value+1)>=12)),Z=oa((()=>!(m.value&&g.value&&!y.value.selecting&&_3([m.value,g.value])))),ee=oa((()=>"datetime"===n.type||"datetimerange"===n.type)),te=(e,t)=>{if(e)return i?r0(i[t]||i).locale(f.value).year(e.year()).month(e.month()).date(e.date()):e},ne=(e,n=!0)=>{const r=e.minDate,o=e.maxDate,l=te(r,0),a=te(o,1);g.value===a&&m.value===l||(t("calendar-change",[r.toDate(),o&&o.toDate()]),g.value=a,m.value=l,n&&!ee.value&&C())},re=Wt(!1),oe=Wt(!1),le=()=>{re.value=!1},ae=()=>{oe.value=!1},ie=(e,t)=>{E.value[t]=e;const r=r0(e,H.value).locale(f.value);if(r.isValid()){if(o&&o(r.toDate()))return;"min"===t?(v.value=r,m.value=(m.value||v.value).year(r.year()).month(r.month()).date(r.date()),n.unlinkPanels||(h.value=r.add(1,"month"),g.value=m.value.add(1,"month"))):(h.value=r,g.value=(g.value||h.value).year(r.year()).month(r.month()).date(r.date()),n.unlinkPanels||(v.value=r.subtract(1,"month"),m.value=g.value.subtract(1,"month")))}},se=(e,t)=>{E.value[t]=null},ue=(e,t)=>{O.value[t]=e;const n=r0(e,B.value).locale(f.value);n.isValid()&&("min"===t?(re.value=!0,m.value=(m.value||v.value).hour(n.hour()).minute(n.minute()).second(n.second()),g.value&&!g.value.isBefore(m.value)||(g.value=m.value)):(oe.value=!0,g.value=(g.value||h.value).hour(n.hour()).minute(n.minute()).second(n.second()),h.value=g.value,g.value&&g.value.isBefore(m.value)&&(m.value=g.value)))},ce=(e,t)=>{O.value[t]=null,"min"===t?(v.value=m.value,re.value=!1):(h.value=g.value,oe.value=!1)},de=(e,t,n)=>{O.value.min||(e&&(v.value=e,m.value=(m.value||v.value).hour(e.hour()).minute(e.minute()).second(e.second())),n||(re.value=t),g.value&&!g.value.isBefore(m.value)||(g.value=m.value,h.value=e))},pe=(e,t,n)=>{O.value.max||(e&&(h.value=e,g.value=(g.value||h.value).hour(e.hour()).minute(e.minute()).second(e.second())),n||(oe.value=t),g.value&&g.value.isBefore(m.value)&&(m.value=g.value))},fe=()=>{v.value=E3(Gt(d),{lang:Gt(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],h.value=v.value.add(1,"month"),t("pick",null)};return t("set-picker-option",["isValidValue",_3]),t("set-picker-option",["parseUserInput",e=>p(e)?e.map((e=>r0(e,a).locale(f.value))):r0(e,a).locale(f.value)]),t("set-picker-option",["formatToString",e=>p(e)?e.map((e=>e.format(a))):e.format(a)]),t("set-picker-option",["handleClear",fe]),(e,t)=>(vl(),bl("div",{class:X([Gt(b).b(),Gt(w).b(),{"has-sidebar":e.$slots.sidebar||Gt(R),"has-time":Gt(ee)}])},[El("div",{class:X(Gt(b).e("body-wrapper"))},[eo(e.$slots,"sidebar",{class:X(Gt(b).e("sidebar"))}),Gt(R)?(vl(),bl("div",{key:0,class:X(Gt(b).e("sidebar"))},[(vl(!0),bl(sl,null,Qr(Gt(c),((e,t)=>(vl(),bl("button",{key:t,type:"button",class:X(Gt(b).e("shortcut")),onClick:t=>Gt(k)(e)},ve(e.text),11,l8)))),128))],2)):Ll("v-if",!0),El("div",{class:X(Gt(b).e("body"))},[Gt(ee)?(vl(),bl("div",{key:0,class:X(Gt(w).e("time-header"))},[El("span",{class:X(Gt(w).e("editors-wrap"))},[El("span",{class:X(Gt(w).e("time-picker-wrap"))},[Ol(Gt(hX),{size:"small",disabled:Gt(y).selecting,placeholder:Gt(_)("el.datepicker.startDate"),class:X(Gt(w).e("editor")),"model-value":Gt(P),"validate-event":!1,onInput:t[0]||(t[0]=e=>ie(e,"min")),onChange:t[1]||(t[1]=e=>se(0,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),ir((vl(),bl("span",{class:X(Gt(w).e("time-picker-wrap"))},[Ol(Gt(hX),{size:"small",class:X(Gt(w).e("editor")),disabled:Gt(y).selecting,placeholder:Gt(_)("el.datepicker.startTime"),"model-value":Gt(j),"validate-event":!1,onFocus:t[2]||(t[2]=e=>re.value=!0),onInput:t[3]||(t[3]=e=>ue(e,"min")),onChange:t[4]||(t[4]=e=>ce(0,"min"))},null,8,["class","disabled","placeholder","model-value"]),Ol(Gt(x2),{visible:re.value,format:Gt(B),"datetime-role":"start","time-arrow-control":Gt(s),"parsed-value":v.value,onPick:de},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[Gt(N0),le]])],2),El("span",null,[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(ST))])),_:1})]),El("span",{class:X([Gt(w).e("editors-wrap"),"is-right"])},[El("span",{class:X(Gt(w).e("time-picker-wrap"))},[Ol(Gt(hX),{size:"small",class:X(Gt(w).e("editor")),disabled:Gt(y).selecting,placeholder:Gt(_)("el.datepicker.endDate"),"model-value":Gt(N),readonly:!Gt(m),"validate-event":!1,onInput:t[5]||(t[5]=e=>ie(e,"max")),onChange:t[6]||(t[6]=e=>se(0,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),ir((vl(),bl("span",{class:X(Gt(w).e("time-picker-wrap"))},[Ol(Gt(hX),{size:"small",class:X(Gt(w).e("editor")),disabled:Gt(y).selecting,placeholder:Gt(_)("el.datepicker.endTime"),"model-value":Gt(V),readonly:!Gt(m),"validate-event":!1,onFocus:t[7]||(t[7]=e=>Gt(m)&&(oe.value=!0)),onInput:t[8]||(t[8]=e=>ue(e,"max")),onChange:t[9]||(t[9]=e=>ce(0,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),Ol(Gt(x2),{"datetime-role":"end",visible:oe.value,format:Gt(B),"time-arrow-control":Gt(s),"parsed-value":h.value,onPick:pe},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[Gt(N0),ae]])],2)],2)):Ll("v-if",!0),El("div",{class:X([[Gt(b).e("content"),Gt(w).e("content")],"is-left"])},[El("div",{class:X(Gt(w).e("header"))},[El("button",{type:"button",class:X([Gt(b).e("icon-btn"),"d-arrow-left"]),onClick:D},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(YI))])),_:1})],2),El("button",{type:"button",class:X([Gt(b).e("icon-btn"),"arrow-left"]),onClick:$},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(yT))])),_:1})],2),e.unlinkPanels?(vl(),bl("button",{key:0,type:"button",disabled:!Gt(Q),class:X([[Gt(b).e("icon-btn"),{"is-disabled":!Gt(Q)}],"d-arrow-right"]),onClick:U},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(XI))])),_:1})],10,a8)):Ll("v-if",!0),e.unlinkPanels?(vl(),bl("button",{key:1,type:"button",disabled:!Gt(J),class:X([[Gt(b).e("icon-btn"),{"is-disabled":!Gt(J)}],"arrow-right"]),onClick:K},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(ST))])),_:1})],10,i8)):Ll("v-if",!0),El("div",null,ve(Gt(M)),1)],2),Ol(I3,{"selection-mode":"range",date:v.value,"min-date":Gt(m),"max-date":Gt(g),"range-state":Gt(y),"disabled-date":Gt(o),"cell-class-name":Gt(l),onChangerange:Gt(x),onPick:ne,onSelect:Gt(S)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),El("div",{class:X([[Gt(b).e("content"),Gt(w).e("content")],"is-right"])},[El("div",{class:X(Gt(w).e("header"))},[e.unlinkPanels?(vl(),bl("button",{key:0,type:"button",disabled:!Gt(Q),class:X([[Gt(b).e("icon-btn"),{"is-disabled":!Gt(Q)}],"d-arrow-left"]),onClick:q},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(YI))])),_:1})],10,s8)):Ll("v-if",!0),e.unlinkPanels?(vl(),bl("button",{key:1,type:"button",disabled:!Gt(J),class:X([[Gt(b).e("icon-btn"),{"is-disabled":!Gt(J)}],"arrow-left"]),onClick:Y},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(yT))])),_:1})],10,u8)):Ll("v-if",!0),El("button",{type:"button",class:X([Gt(b).e("icon-btn"),"d-arrow-right"]),onClick:F},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(XI))])),_:1})],2),El("button",{type:"button",class:X([Gt(b).e("icon-btn"),"arrow-right"]),onClick:W},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(ST))])),_:1})],2),El("div",null,ve(Gt(z)),1)],2),Ol(I3,{"selection-mode":"range",date:h.value,"min-date":Gt(m),"max-date":Gt(g),"range-state":Gt(y),"disabled-date":Gt(o),"cell-class-name":Gt(l),onChangerange:Gt(x),onPick:ne,onSelect:Gt(S)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),Gt(ee)?(vl(),bl("div",{key:0,class:X(Gt(b).e("footer"))},[Gt(u)?(vl(),wl(Gt(XZ),{key:0,text:"",size:"small",class:X(Gt(b).e("link-btn")),onClick:fe},{default:Bn((()=>[Tl(ve(Gt(_)("el.datepicker.clear")),1)])),_:1},8,["class"])):Ll("v-if",!0),Ol(Gt(XZ),{plain:"",size:"small",class:X(Gt(b).e("link-btn")),disabled:Gt(Z),onClick:t[10]||(t[10]=e=>Gt(C)(!1))},{default:Bn((()=>[Tl(ve(Gt(_)("el.datepicker.confirm")),1)])),_:1},8,["class","disabled"])],2)):Ll("v-if",!0)],2))}});var p8=UG(d8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const f8=fK({...x3}),v8=["onClick"],h8=["disabled"],m8=["disabled"],g8="year",y8=wr({name:"DatePickerMonthRange"}),b8=wr({...y8,props:f8,emits:["pick","set-picker-option"],setup(e,{emit:t}){const n=e,{lang:r}=JK(),o=zo("EP_PICKER_BASE"),{shortcuts:l,disabledDate:a,format:i}=o.props,s=rn(o.props,"defaultValue"),u=Wt(r0().locale(r.value)),c=Wt(r0().locale(r.value).add(1,g8)),{minDate:d,maxDate:p,rangeState:f,ppNs:v,drpNs:h,handleChangeRange:m,handleRangeConfirm:g,handleShortcutClick:y,onSelect:b}=o8(n,{defaultValue:s,leftDate:u,rightDate:c,unit:g8,onParsedValueChanged:function(e,t){if(n.unlinkPanels&&t){const n=(null==e?void 0:e.year())||0,r=t.year();c.value=n===r?t.add(1,g8):t}else c.value=u.value.add(1,g8)}}),w=oa((()=>!!l.length)),{leftPrevYear:x,rightNextYear:C,leftNextYear:k,rightPrevYear:S,leftLabel:_,rightLabel:E,leftYear:O,rightYear:M}=(({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=JK();return{leftPrevYear:()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},rightNextYear:()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},leftNextYear:()=>{t.value=t.value.add(1,"year")},rightPrevYear:()=>{n.value=n.value.subtract(1,"year")},leftLabel:oa((()=>`${t.value.year()} ${r("el.datepicker.year")}`)),rightLabel:oa((()=>`${n.value.year()} ${r("el.datepicker.year")}`)),leftYear:oa((()=>t.value.year())),rightYear:oa((()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year()))}})({unlinkPanels:rn(n,"unlinkPanels"),leftDate:u,rightDate:c}),z=oa((()=>n.unlinkPanels&&M.value>O.value+1)),T=(e,t=!0)=>{const n=e.minDate,r=e.maxDate;p.value===r&&d.value===n||(p.value=r,d.value=n,t&&g())};return t("set-picker-option",["formatToString",e=>e.map((e=>e.format(i)))]),(e,t)=>(vl(),bl("div",{class:X([Gt(v).b(),Gt(h).b(),{"has-sidebar":Boolean(e.$slots.sidebar)||Gt(w)}])},[El("div",{class:X(Gt(v).e("body-wrapper"))},[eo(e.$slots,"sidebar",{class:X(Gt(v).e("sidebar"))}),Gt(w)?(vl(),bl("div",{key:0,class:X(Gt(v).e("sidebar"))},[(vl(!0),bl(sl,null,Qr(Gt(l),((e,t)=>(vl(),bl("button",{key:t,type:"button",class:X(Gt(v).e("shortcut")),onClick:t=>Gt(y)(e)},ve(e.text),11,v8)))),128))],2)):Ll("v-if",!0),El("div",{class:X(Gt(v).e("body"))},[El("div",{class:X([[Gt(v).e("content"),Gt(h).e("content")],"is-left"])},[El("div",{class:X(Gt(h).e("header"))},[El("button",{type:"button",class:X([Gt(v).e("icon-btn"),"d-arrow-left"]),onClick:t[0]||(t[0]=(...e)=>Gt(x)&&Gt(x)(...e))},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(YI))])),_:1})],2),e.unlinkPanels?(vl(),bl("button",{key:0,type:"button",disabled:!Gt(z),class:X([[Gt(v).e("icon-btn"),{[Gt(v).is("disabled")]:!Gt(z)}],"d-arrow-right"]),onClick:t[1]||(t[1]=(...e)=>Gt(k)&&Gt(k)(...e))},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(XI))])),_:1})],10,h8)):Ll("v-if",!0),El("div",null,ve(Gt(_)),1)],2),Ol(B3,{"selection-mode":"range",date:u.value,"min-date":Gt(d),"max-date":Gt(p),"range-state":Gt(f),"disabled-date":Gt(a),onChangerange:Gt(m),onPick:T,onSelect:Gt(b)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),El("div",{class:X([[Gt(v).e("content"),Gt(h).e("content")],"is-right"])},[El("div",{class:X(Gt(h).e("header"))},[e.unlinkPanels?(vl(),bl("button",{key:0,type:"button",disabled:!Gt(z),class:X([[Gt(v).e("icon-btn"),{"is-disabled":!Gt(z)}],"d-arrow-left"]),onClick:t[2]||(t[2]=(...e)=>Gt(S)&&Gt(S)(...e))},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(YI))])),_:1})],10,m8)):Ll("v-if",!0),El("button",{type:"button",class:X([Gt(v).e("icon-btn"),"d-arrow-right"]),onClick:t[3]||(t[3]=(...e)=>Gt(C)&&Gt(C)(...e))},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(XI))])),_:1})],2),El("div",null,ve(Gt(E)),1)],2),Ol(B3,{"selection-mode":"range",date:c.value,"min-date":Gt(d),"max-date":Gt(p),"range-state":Gt(f),"disabled-date":Gt(a),onChangerange:Gt(m),onPick:T,onSelect:Gt(b)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var w8=UG(b8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);r0.extend(L2),r0.extend(l3),r0.extend(l0),r0.extend(i3),r0.extend(u3),r0.extend(d3),r0.extend(f3),r0.extend(h3);var x8=wr({name:"ElDatePicker",install:null,props:g3,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:r}){const o=tq("picker-panel");Mo("ElPopperOptions",zt(rn(e,"popperOptions"))),Mo(m3,{slots:r,pickerNs:o});const l=Wt();t({focus:(e=!0)=>{var t;null==(t=l.value)||t.focus(e)},handleOpen:()=>{var e;null==(e=l.value)||e.handleOpen()},handleClose:()=>{var e;null==(e=l.value)||e.handleClose()}});const a=e=>{n("update:modelValue",e)};return()=>{var t;const n=null!=(t=e.format)?t:u0[e.type]||s0,o=function(e){switch(e){case"daterange":case"datetimerange":return p8;case"monthrange":return w8;default:return n8}}(e.type);return Ol(E0,Nl(e,{format:n,type:e.type,ref:l,"onUpdate:modelValue":a}),{default:e=>Ol(o,e,null),"range-separator":r["range-separator"]})}}});const C8=x8;C8.install=e=>{e.component(C8.name,C8)};const k8=C8,S8=Symbol("elDescriptions");var _8=wr({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup:()=>({descriptions:zo(S8,{})}),render(){var e,t,n,r,o,l;const a=(e=>{if(!xl(e))return{};const t=e.props||{},n=(xl(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach((e=>{d(n[e],"default")&&(r[e]=n[e].default)})),Object.keys(t).forEach((e=>{r[A(e)]=t[e]})),r})(this.cell),{border:i,direction:s}=this.descriptions,u="vertical"===s,c=(null==(n=null==(t=null==(e=this.cell)?void 0:e.children)?void 0:t.label)?void 0:n.call(t))||a.label,p=null==(l=null==(o=null==(r=this.cell)?void 0:r.children)?void 0:o.default)?void 0:l.call(o),f=a.span,v=a.align?`is-${a.align}`:"",h=a.labelAlign?`is-${a.labelAlign}`:v,m=a.className,g=a.labelClassName,y={width:$z(a.width),minWidth:$z(a.minWidth)},b=tq("descriptions");switch(this.type){case"label":return la(this.tag,{style:y,class:[b.e("cell"),b.e("label"),b.is("bordered-label",i),b.is("vertical-label",u),h,g],colSpan:u?f:1},c);case"content":return la(this.tag,{style:y,class:[b.e("cell"),b.e("content"),b.is("bordered-content",i),b.is("vertical-content",u),v,m],colSpan:u?f:2*f-1},p);default:return la("td",{style:y,class:[b.e("cell"),v],colSpan:f},[q_(c)?void 0:la("span",{class:[b.e("label"),g]},c),la("span",{class:[b.e("content"),m]},p)])}}});const E8=fK({row:{type:Array,default:()=>[]}}),O8={key:1},M8=wr({name:"ElDescriptionsRow"}),z8=wr({...M8,props:E8,setup(e){const t=zo(S8,{});return(e,n)=>"vertical"===Gt(t).direction?(vl(),bl(sl,{key:0},[El("tr",null,[(vl(!0),bl(sl,null,Qr(e.row,((e,t)=>(vl(),wl(Gt(_8),{key:`tr1-${t}`,cell:e,tag:"th",type:"label"},null,8,["cell"])))),128))]),El("tr",null,[(vl(!0),bl(sl,null,Qr(e.row,((e,t)=>(vl(),wl(Gt(_8),{key:`tr2-${t}`,cell:e,tag:"td",type:"content"},null,8,["cell"])))),128))])],64)):(vl(),bl("tr",O8,[(vl(!0),bl(sl,null,Qr(e.row,((e,n)=>(vl(),bl(sl,{key:`tr3-${n}`},[Gt(t).border?(vl(),bl(sl,{key:0},[Ol(Gt(_8),{cell:e,tag:"td",type:"label"},null,8,["cell"]),Ol(Gt(_8),{cell:e,tag:"td",type:"content"},null,8,["cell"])],64)):(vl(),wl(Gt(_8),{key:1,cell:e,tag:"td",type:"both"},null,8,["cell"]))],64)))),128))]))}});var T8=UG(z8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const A8=fK({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:LG,title:{type:String,default:""},extra:{type:String,default:""}}),L8=wr({name:"ElDescriptions"}),I8=wr({...L8,props:A8,setup(e){const t=e,n=tq("descriptions"),r=iJ(),o=so();Mo(S8,t);const l=oa((()=>[n.b(),n.m(r.value)])),a=(e,t,n,r=!1)=>(e.props||(e.props={}),t>n&&(e.props.span=n),r&&(e.props.span=t),e),i=()=>{var e;const n=RK(null==(e=o.default)?void 0:e.call(o)).filter((e=>{var t;return"ElDescriptionsItem"===(null==(t=null==e?void 0:e.type)?void 0:t.name)})),r=[];let l=[],i=t.column,s=0;return n.forEach(((e,o)=>{var u;const c=(null==(u=e.props)?void 0:u.span)||1;if(oi?i:c),o===n.length-1){const n=t.column-s%t.column;return l.push(a(e,n,i,!0)),void r.push(l)}c(vl(),bl("div",{class:X(Gt(l))},[e.title||e.extra||e.$slots.title||e.$slots.extra?(vl(),bl("div",{key:0,class:X(Gt(n).e("header"))},[El("div",{class:X(Gt(n).e("title"))},[eo(e.$slots,"title",{},(()=>[Tl(ve(e.title),1)]))],2),El("div",{class:X(Gt(n).e("extra"))},[eo(e.$slots,"extra",{},(()=>[Tl(ve(e.extra),1)]))],2)],2)):Ll("v-if",!0),El("div",{class:X(Gt(n).e("body"))},[El("table",{class:X([Gt(n).e("table"),Gt(n).is("bordered",e.border)])},[El("tbody",null,[(vl(!0),bl(sl,null,Qr(i(),((e,t)=>(vl(),wl(T8,{key:t,row:e},null,8,["row"])))),128))])],2)],2)],2))}});var R8=UG(I8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),P8=wr({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const N8=bK(R8,{DescriptionsItem:P8}),j8=xK(P8);var V8=wr({name:"ElOverlay",props:fK({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:[String,Array,Object]},zIndex:{type:[String,Number]}}),emits:{click:e=>e instanceof MouseEvent},setup(e,{slots:t,emit:n}){const r=tq("overlay"),{onClick:o,onMousedown:l,onMouseup:a}=kY(e.customMaskEvent?void 0:e=>{n("click",e)});return()=>e.mask?Ol("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:l,onMouseup:a},[eo(t,"default")],LK.STYLE|LK.CLASS|LK.PROPS,["onClick","onMouseup","onMousedown"]):la("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[eo(t,"default")])}});const B8=V8,H8=Symbol("dialogInjectionKey"),D8=fK({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:vK},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),$8=["aria-label"],F8=["id"],W8=wr({name:"ElDialogContent"}),U8=wr({...W8,props:D8,emits:{close:()=>!0},setup(e){const t=e,{t:n}=JK(),{Close:r}=hK,{dialogRef:o,headerRef:l,bodyId:a,ns:i,style:s}=zo(H8),{focusTrapRef:u}=zo(YX),c=CK(u,o),d=oa((()=>t.draggable));return UK(o,l,d),(e,t)=>(vl(),bl("div",{ref:Gt(c),class:X([Gt(i).b(),Gt(i).is("fullscreen",e.fullscreen),Gt(i).is("draggable",Gt(d)),Gt(i).is("align-center",e.alignCenter),{[Gt(i).m("center")]:e.center},e.customClass]),style:K(Gt(s)),tabindex:"-1"},[El("header",{ref_key:"headerRef",ref:l,class:X(Gt(i).e("header"))},[eo(e.$slots,"header",{},(()=>[El("span",{role:"heading",class:X(Gt(i).e("title"))},ve(e.title),3)])),e.showClose?(vl(),bl("button",{key:0,"aria-label":Gt(n)("el.dialog.close"),class:X(Gt(i).e("headerbtn")),type:"button",onClick:t[0]||(t[0]=t=>e.$emit("close"))},[Ol(Gt(ZG),{class:X(Gt(i).e("close"))},{default:Bn((()=>[(vl(),wl(Yr(e.closeIcon||Gt(r))))])),_:1},8,["class"])],10,$8)):Ll("v-if",!0)],2),El("div",{id:Gt(a),class:X(Gt(i).e("body"))},[eo(e.$slots,"default")],10,F8),e.$slots.footer?(vl(),bl("footer",{key:0,class:X(Gt(i).e("footer"))},[eo(e.$slots,"footer")],2)):Ll("v-if",!0)],6))}});var K8=UG(U8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const q8=fK({...D8,appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),Y8={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[_K]:e=>Oz(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},G8=(e,t)=>{const n=$l().emit,{nextZIndex:r}=BY();let o="";const l=MY(),a=MY(),i=Wt(!1),s=Wt(!1),u=Wt(!1),c=Wt(e.zIndex||r());let d,p;const f=NG("namespace",XK),v=oa((()=>{const t={},n=`--${f.value}-dialog`;return e.fullscreen||(e.top&&(t[`${n}-margin-top`]=e.top),e.width&&(t[`${n}-width`]=$z(e.width))),t})),h=oa((()=>e.alignCenter?{display:"flex"}:{}));function m(){null==p||p(),null==d||d(),e.openDelay&&e.openDelay>0?({stop:d}=fu((()=>b()),e.openDelay)):b()}function g(){null==d||d(),null==p||p(),e.closeDelay&&e.closeDelay>0?({stop:p}=fu((()=>w()),e.closeDelay)):w()}function y(){e.beforeClose?e.beforeClose((function(e){e||(s.value=!0,i.value=!1)})):g()}function b(){Xi&&(i.value=!0)}function w(){i.value=!1}return e.lockScroll&&nq(i),nr((()=>e.modelValue),(o=>{o?(s.value=!1,m(),u.value=!0,c.value=e.zIndex?c.value++:r(),wn((()=>{n("open"),t.value&&(t.value.scrollTop=0)}))):i.value&&g()})),nr((()=>e.fullscreen),(e=>{t.value&&(e?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)})),Nr((()=>{e.modelValue&&(i.value=!0,u.value=!0,m())})),{afterEnter:function(){n("opened")},afterLeave:function(){n("closed"),n(_K,!1),e.destroyOnClose&&(u.value=!1)},beforeLeave:function(){n("close")},handleClose:y,onModalClick:function(){e.closeOnClickModal&&y()},close:g,doClose:w,onOpenAutoFocus:function(){n("openAutoFocus")},onCloseAutoFocus:function(){n("closeAutoFocus")},onCloseRequested:function(){e.closeOnPressEscape&&y()},onFocusoutPrevented:function(e){var t;"pointer"===(null==(t=e.detail)?void 0:t.focusReason)&&e.preventDefault()},titleId:l,bodyId:a,closed:s,style:v,overlayDialogStyle:h,rendered:u,visible:i,zIndex:c}},J8=["aria-label","aria-labelledby","aria-describedby"],X8=wr({name:"ElDialog",inheritAttrs:!1}),Q8=wr({...X8,props:q8,emits:Y8,setup(e,{expose:t}){const n=e,r=so();WK({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},oa((()=>!!r.title))),WK({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},oa((()=>!!n.customClass)));const o=tq("dialog"),l=Wt(),a=Wt(),i=Wt(),{visible:s,titleId:u,bodyId:c,style:d,overlayDialogStyle:p,rendered:f,zIndex:v,afterEnter:h,afterLeave:m,beforeLeave:g,handleClose:y,onModalClick:b,onOpenAutoFocus:w,onCloseAutoFocus:x,onCloseRequested:C,onFocusoutPrevented:k}=G8(n,l);Mo(H8,{dialogRef:l,headerRef:a,bodyId:c,ns:o,rendered:f,style:d});const S=kY(b),_=oa((()=>n.draggable&&!n.fullscreen));return t({visible:s,dialogContentRef:i}),(e,t)=>(vl(),wl(al,{to:"body",disabled:!e.appendToBody},[Ol(La,{name:"dialog-fade",onAfterEnter:Gt(h),onAfterLeave:Gt(m),onBeforeLeave:Gt(g),persisted:""},{default:Bn((()=>[ir(Ol(Gt(B8),{"custom-mask-event":"",mask:e.modal,"overlay-class":e.modalClass,"z-index":Gt(v)},{default:Bn((()=>[El("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:Gt(u),"aria-describedby":Gt(c),class:X(`${Gt(o).namespace.value}-overlay-dialog`),style:K(Gt(p)),onClick:t[0]||(t[0]=(...e)=>Gt(S).onClick&&Gt(S).onClick(...e)),onMousedown:t[1]||(t[1]=(...e)=>Gt(S).onMousedown&&Gt(S).onMousedown(...e)),onMouseup:t[2]||(t[2]=(...e)=>Gt(S).onMouseup&&Gt(S).onMouseup(...e))},[Ol(Gt(uQ),{loop:"",trapped:Gt(s),"focus-start-el":"container",onFocusAfterTrapped:Gt(w),onFocusAfterReleased:Gt(x),onFocusoutPrevented:Gt(k),onReleaseRequested:Gt(C)},{default:Bn((()=>[Gt(f)?(vl(),wl(K8,Nl({key:0,ref_key:"dialogContentRef",ref:i},e.$attrs,{"custom-class":e.customClass,center:e.center,"align-center":e.alignCenter,"close-icon":e.closeIcon,draggable:Gt(_),fullscreen:e.fullscreen,"show-close":e.showClose,title:e.title,onClose:Gt(y)}),Zr({header:Bn((()=>[e.$slots.title?eo(e.$slots,"title",{key:1}):eo(e.$slots,"header",{key:0,close:Gt(y),titleId:Gt(u),titleClass:Gt(o).e("title")})])),default:Bn((()=>[eo(e.$slots,"default")])),_:2},[e.$slots.footer?{name:"footer",fn:Bn((()=>[eo(e.$slots,"footer")]))}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):Ll("v-if",!0)])),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,J8)])),_:3},8,["mask","overlay-class","z-index"]),[[wi,Gt(s)]])])),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}}),Z8=bK(UG(Q8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]])),e5=fK({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:String,default:"solid"}}),t5=wr({name:"ElDivider"}),n5=bK(UG(wr({...t5,props:e5,setup(e){const t=e,n=tq("divider"),r=oa((()=>n.cssVar({"border-style":t.borderStyle})));return(e,t)=>(vl(),bl("div",{class:X([Gt(n).b(),Gt(n).m(e.direction)]),style:K(Gt(r)),role:"separator"},[e.$slots.default&&"vertical"!==e.direction?(vl(),bl("div",{key:0,class:X([Gt(n).e("text"),Gt(n).is(e.contentPosition)])},[eo(e.$slots,"default")],2)):Ll("v-if",!0)],6))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]])),r5=fK({...q8,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),o5=wr({name:"ElDrawer",components:{ElOverlay:B8,ElFocusTrap:uQ,ElIcon:ZG,Close:eI},inheritAttrs:!1,props:r5,emits:Y8,setup(e,{slots:t}){WK({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},oa((()=>!!t.title))),WK({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},oa((()=>!!e.customClass)));const n=Wt(),r=Wt(),o=tq("drawer"),{t:l}=JK(),a=oa((()=>"rtl"===e.direction||"ltr"===e.direction)),i=oa((()=>$z(e.size)));return{...G8(e,n),drawerRef:n,focusStartRef:r,isHorizontal:a,drawerSize:i,ns:o,t:l}}}),l5=["aria-label","aria-labelledby","aria-describedby"],a5=["id"],i5=["aria-label"],s5=["id"],u5=bK(UG(o5,[["render",function(e,t,n,r,o,l){const a=Kr("close"),i=Kr("el-icon"),s=Kr("el-focus-trap"),u=Kr("el-overlay");return vl(),wl(al,{to:"body",disabled:!e.appendToBody},[Ol(La,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:Bn((()=>[ir(Ol(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:Bn((()=>[Ol(s,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Bn((()=>[El("div",Nl({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=gi((()=>{}),["stop"]))}),[El("span",{ref:"focusStartRef",class:X(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(vl(),bl("header",{key:0,class:X(e.ns.e("header"))},[e.$slots.title?eo(e.$slots,"title",{key:1},(()=>[Ll(" DEPRECATED SLOT ")])):eo(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},(()=>[e.$slots.title?Ll("v-if",!0):(vl(),bl("span",{key:0,id:e.titleId,role:"heading",class:X(e.ns.e("title"))},ve(e.title),11,a5))])),e.showClose?(vl(),bl("button",{key:2,"aria-label":e.t("el.drawer.close"),class:X(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...t)=>e.handleClose&&e.handleClose(...t))},[Ol(i,{class:X(e.ns.e("close"))},{default:Bn((()=>[Ol(a)])),_:1},8,["class"])],10,i5)):Ll("v-if",!0)],2)):Ll("v-if",!0),e.rendered?(vl(),bl("div",{key:1,id:e.bodyId,class:X(e.ns.e("body"))},[eo(e.$slots,"default")],10,s5)):Ll("v-if",!0),e.$slots.footer?(vl(),bl("div",{key:2,class:X(e.ns.e("footer"))},[eo(e.$slots,"footer")],2)):Ll("v-if",!0)],16,l5)])),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])])),_:3},8,["mask","overlay-class","z-index","onClick"]),[[wi,e.visible]])])),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]));var c5=UG(wr({inheritAttrs:!1}),[["render",function(e,t,n,r,o,l){return eo(e.$slots,"default")}],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]),d5=UG(wr({name:"ElCollectionItem",inheritAttrs:!1}),[["render",function(e,t,n,r,o,l){return eo(e.$slots,"default")}],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const p5="data-el-collection-item",f5=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),o=Symbol(n),l={...c5,name:t,setup(){const e=Wt(null),t=new Map;Mo(r,{itemMap:t,getItems:()=>{const n=Gt(e);if(!n)return[];const r=Array.from(n.querySelectorAll(`[${p5}]`));return[...t.values()].sort(((e,t)=>r.indexOf(e.ref)-r.indexOf(t.ref)))},collectionRef:e})}},a={...d5,name:n,setup(e,{attrs:t}){const n=Wt(null),l=zo(r,void 0);Mo(o,{collectionItemRef:n}),Nr((()=>{const e=Gt(n);e&&l.itemMap.set(e,{ref:e,...t})})),Br((()=>{const e=Gt(n);l.itemMap.delete(e)}))}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:l,ElCollectionItem:a}},v5=fK({style:{type:[String,Array,Object]},currentTabId:{type:String},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:String},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:h5,ElCollectionItem:m5,COLLECTION_INJECTION_KEY:g5,COLLECTION_ITEM_INJECTION_KEY:y5}=f5("RovingFocusGroup"),b5=Symbol("elRovingFocusGroup"),w5=Symbol("elRovingFocusGroupItem"),x5={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},C5=e=>{const{activeElement:t}=document;for(const n of e){if(n===t)return;if(n.focus(),t!==document.activeElement)return}},k5="currentTabIdChange",S5="rovingFocusGroup.entryFocus",_5={bubbles:!1,cancelable:!0},E5=wr({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:v5,emits:[k5,"entryFocus"],setup(e,{emit:t}){var n;const r=Wt(null!=(n=e.currentTabId||e.defaultCurrentTabId)?n:null),o=Wt(!1),l=Wt(!1),a=Wt(null),{getItems:i}=zo(g5,void 0),s=oa((()=>[{outline:"none"},e.style])),u=Hi((t=>{var n;null==(n=e.onMousedown)||n.call(e,t)}),(()=>{l.value=!0})),c=Hi((t=>{var n;null==(n=e.onFocus)||n.call(e,t)}),(e=>{const t=!Gt(l),{target:n,currentTarget:a}=e;if(n===a&&t&&!Gt(o)){const e=new Event(S5,_5);if(null==a||a.dispatchEvent(e),!e.defaultPrevented){const e=i().filter((e=>e.focusable)),t=[e.find((e=>e.active)),e.find((e=>e.id===Gt(r))),...e].filter(Boolean).map((e=>e.ref));C5(t)}}l.value=!1})),d=Hi((t=>{var n;null==(n=e.onBlur)||n.call(e,t)}),(()=>{o.value=!1}));Mo(b5,{currentTabbedId:At(r),loop:rn(e,"loop"),tabIndex:oa((()=>Gt(o)?-1:0)),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:s,orientation:rn(e,"orientation"),dir:rn(e,"dir"),onItemFocus:e=>{t(k5,e)},onItemShiftTab:()=>{o.value=!0},onBlur:d,onFocus:c,onMousedown:u}),nr((()=>e.currentTabId),(e=>{r.value=null!=e?e:null})),_c(a,S5,((...e)=>{t("entryFocus",...e)}))}});var O5=UG(wr({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:h5,ElRovingFocusGroupImpl:UG(E5,[["render",function(e,t,n,r,o,l){return eo(e.$slots,"default")}],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]])}}),[["render",function(e,t,n,r,o,l){const a=Kr("el-roving-focus-group-impl"),i=Kr("el-focus-group-collection");return vl(),wl(i,null,{default:Bn((()=>[Ol(a,Q(Ml(e.$attrs)),{default:Bn((()=>[eo(e.$slots,"default")])),_:3},16)])),_:3})}],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const M5=wr({components:{ElRovingFocusCollectionItem:m5},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:r,onItemFocus:o,onItemShiftTab:l}=zo(b5,void 0),{getItems:a}=zo(g5,void 0),i=MY(),s=Wt(null),u=Hi((e=>{t("mousedown",e)}),(t=>{e.focusable?o(Gt(i)):t.preventDefault()})),c=Hi((e=>{t("focus",e)}),(()=>{o(Gt(i))})),d=Hi((e=>{t("keydown",e)}),(e=>{const{key:t,shiftKey:n,target:o,currentTarget:i}=e;if(t===kK.tab&&n)return void l();if(o!==i)return;const s=((e,t,n)=>{const r=((e,t)=>{if("rtl"!==t)return e;switch(e){case kK.right:return kK.left;case kK.left:return kK.right;default:return e}})(e.key,n);if(!("vertical"===t&&[kK.left,kK.right].includes(r)||"horizontal"===t&&[kK.up,kK.down].includes(r)))return x5[r]})(e);if(s){e.preventDefault();let t=a().filter((e=>e.focusable)).map((e=>e.ref));switch(s){case"last":t.reverse();break;case"prev":case"next":{"prev"===s&&t.reverse();const e=t.indexOf(i);t=r.value?(c=e+1,(u=t).map(((e,t)=>u[(t+c)%u.length]))):t.slice(e+1);break}}wn((()=>{C5(t)}))}var u,c})),p=oa((()=>n.value===Gt(i)));return Mo(w5,{rovingFocusGroupItemRef:s,tabIndex:oa((()=>Gt(p)?0:-1)),handleMousedown:u,handleFocus:c,handleKeydown:d}),{id:i,handleKeydown:d,handleFocus:c,handleMousedown:u}}});var z5=UG(M5,[["render",function(e,t,n,r,o,l){const a=Kr("el-roving-focus-collection-item");return vl(),wl(a,{id:e.id,focusable:e.focusable,active:e.active},{default:Bn((()=>[eo(e.$slots,"default")])),_:3},8,["id","focusable","active"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const T5=fK({trigger:CQ.trigger,effect:{...xQ.effect,default:"light"},type:{type:String},placement:{type:String,default:"bottom"},popperOptions:{type:Object,default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:[Number,String],default:0},maxHeight:{type:[Number,String],default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Object},teleported:xQ.teleported}),A5=fK({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:vK}}),L5=fK({onKeydown:{type:Function}}),I5=[kK.down,kK.pageDown,kK.home],R5=[kK.up,kK.pageUp,kK.end],P5=[...I5,...R5],{ElCollection:N5,ElCollectionItem:j5,COLLECTION_INJECTION_KEY:V5,COLLECTION_ITEM_INJECTION_KEY:B5}=f5("Dropdown"),H5=Symbol("elDropdown"),{ButtonGroup:D5}=XZ,$5=wr({name:"ElDropdown",components:{ElButton:XZ,ElButtonGroup:D5,ElScrollbar:EX,ElDropdownCollection:N5,ElTooltip:BQ,ElRovingFocusGroup:O5,ElOnlyChild:PX,ElIcon:ZG,ArrowDown:pT},props:T5,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=$l(),r=tq("dropdown"),{t:o}=JK(),l=Wt(),a=Wt(),i=Wt(null),s=Wt(null),u=Wt(null),c=Wt(null),d=Wt(!1),f=[kK.enter,kK.space,kK.down],v=oa((()=>({maxHeight:$z(e.maxHeight)}))),h=oa((()=>[r.m(b.value)])),m=MY().value,g=oa((()=>e.id||m));function y(){var e;null==(e=i.value)||e.onClose()}nr([l,rn(e,"trigger")],(([e,t],[n])=>{var r,o,l;const a=p(t)?t:[t];(null==(r=null==n?void 0:n.$el)?void 0:r.removeEventListener)&&n.$el.removeEventListener("pointerenter",w),(null==(o=null==e?void 0:e.$el)?void 0:o.removeEventListener)&&e.$el.removeEventListener("pointerenter",w),(null==(l=null==e?void 0:e.$el)?void 0:l.addEventListener)&&a.includes("hover")&&e.$el.addEventListener("pointerenter",w)}),{immediate:!0}),Br((()=>{var e,t;(null==(t=null==(e=l.value)?void 0:e.$el)?void 0:t.removeEventListener)&&l.value.$el.removeEventListener("pointerenter",w)}));const b=iJ();function w(){var e,t;null==(t=null==(e=l.value)?void 0:e.$el)||t.focus()}return Mo(H5,{contentRef:s,role:oa((()=>e.role)),triggerId:g,isUsingKeyboard:d,onItemEnter:function(){},onItemLeave:function(){const e=Gt(s);null==e||e.focus(),c.value=null}}),Mo("elDropdown",{instance:n,dropdownSize:b,handleClick:function(){y()},commandHandler:function(...e){t("command",...e)},trigger:rn(e,"trigger"),hideOnClick:rn(e,"hideOnClick")}),{t:o,ns:r,scrollbar:u,wrapStyle:v,dropdownTriggerKls:h,dropdownSize:b,triggerId:g,triggerKeys:f,currentTabId:c,handleCurrentTabIdChange:function(e){c.value=e},handlerMainButtonClick:e=>{t("click",e)},handleEntryFocus:function(e){d.value||(e.preventDefault(),e.stopImmediatePropagation())},handleClose:y,handleOpen:function(){var e;null==(e=i.value)||e.onOpen()},handleBeforeShowTooltip:function(){t("visible-change",!0)},handleShowTooltip:function(e){"keydown"===(null==e?void 0:e.type)&&s.value.focus()},handleBeforeHideTooltip:function(){t("visible-change",!1)},onFocusAfterTrapped:e=>{var t,n;e.preventDefault(),null==(n=null==(t=s.value)?void 0:t.focus)||n.call(t,{preventScroll:!0})},popperRef:i,contentRef:s,triggeringElementRef:l,referenceElementRef:a}}});var F5=UG($5,[["render",function(e,t,n,r,o,l){var a;const i=Kr("el-dropdown-collection"),s=Kr("el-roving-focus-group"),u=Kr("el-scrollbar"),c=Kr("el-only-child"),d=Kr("el-tooltip"),p=Kr("el-button"),f=Kr("arrow-down"),v=Kr("el-icon"),h=Kr("el-button-group");return vl(),bl("div",{class:X([e.ns.b(),e.ns.is("disabled",e.disabled)])},[Ol(d,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":"hover"===e.trigger?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":null==(a=e.referenceElementRef)?void 0:a.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":"hover"===e.trigger?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Zr({content:Bn((()=>[Ol(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:Bn((()=>[Ol(s,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:Bn((()=>[Ol(i,null,{default:Bn((()=>[eo(e.$slots,"dropdown")])),_:3})])),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])])),_:3},8,["wrap-style","view-class"])])),_:2},[e.splitButton?void 0:{name:"default",fn:Bn((()=>[Ol(c,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:Bn((()=>[eo(e.$slots,"default")])),_:3},8,["id","tabindex"])]))}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(vl(),wl(h,{key:0},{default:Bn((()=>[Ol(p,Nl({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:Bn((()=>[eo(e.$slots,"default")])),_:3},16,["size","type","disabled","tabindex","onClick"]),Ol(p,Nl({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:Bn((()=>[Ol(v,{class:X(e.ns.e("icon"))},{default:Bn((()=>[Ol(f)])),_:1},8,["class"])])),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])])),_:3})):Ll("v-if",!0)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const W5=wr({name:"DropdownItemImpl",components:{ElIcon:ZG},props:A5,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=tq("dropdown"),{role:r}=zo(H5,void 0),{collectionItemRef:o}=zo(B5,void 0),{collectionItemRef:l}=zo(y5,void 0),{rovingFocusGroupItemRef:a,tabIndex:i,handleFocus:s,handleKeydown:u,handleMousedown:c}=zo(w5,void 0),d=CK(o,l,a),p=oa((()=>"menu"===r.value?"menuitem":"navigation"===r.value?"link":"button")),f=Hi((e=>{const{code:n}=e;if(n===kK.enter||n===kK.space)return e.preventDefault(),e.stopImmediatePropagation(),t("clickimpl",e),!0}),u);return{ns:n,itemRef:d,dataset:{[p5]:""},role:p,tabIndex:i,handleFocus:s,handleKeydown:f,handleMousedown:c}}}),U5=["aria-disabled","tabindex","role"];var K5=UG(W5,[["render",function(e,t,n,r,o,l){const a=Kr("el-icon");return vl(),bl(sl,null,[e.divided?(vl(),bl("li",Nl({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):Ll("v-if",!0),El("li",Nl({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=t=>e.$emit("clickimpl",t)),onFocus:t[1]||(t[1]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onKeydown:t[2]||(t[2]=gi(((...t)=>e.handleKeydown&&e.handleKeydown(...t)),["self"])),onMousedown:t[3]||(t[3]=(...t)=>e.handleMousedown&&e.handleMousedown(...t)),onPointermove:t[4]||(t[4]=t=>e.$emit("pointermove",t)),onPointerleave:t[5]||(t[5]=t=>e.$emit("pointerleave",t))}),[e.icon?(vl(),wl(a,{key:0},{default:Bn((()=>[(vl(),wl(Yr(e.icon)))])),_:1})):Ll("v-if",!0),eo(e.$slots,"default")],16,U5)],64)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const q5=()=>{const e=zo("elDropdown",{}),t=oa((()=>null==e?void 0:e.dropdownSize));return{elDropdown:e,_elDropdownSize:t}},Y5=wr({name:"ElDropdownItem",components:{ElDropdownCollectionItem:j5,ElRovingFocusItem:z5,ElDropdownItemImpl:K5},inheritAttrs:!1,props:A5,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=q5(),o=$l(),l=Wt(null),a=oa((()=>{var e,t;return null!=(t=null==(e=Gt(l))?void 0:e.textContent)?t:""})),{onItemEnter:i,onItemLeave:s}=zo(H5,void 0),u=Hi((e=>(t("pointermove",e),e.defaultPrevented)),Di((t=>{if(e.disabled)return void s(t);const n=t.currentTarget;n===document.activeElement||n.contains(document.activeElement)||(i(t),t.defaultPrevented||null==n||n.focus())}))),c=Hi((e=>(t("pointerleave",e),e.defaultPrevented)),Di((e=>{s(e)})));return{handleClick:Hi((n=>{if(!e.disabled)return t("click",n),"keydown"!==n.type&&n.defaultPrevented}),(t=>{var n,l,a;e.disabled?t.stopImmediatePropagation():((null==(n=null==r?void 0:r.hideOnClick)?void 0:n.value)&&(null==(l=r.handleClick)||l.call(r)),null==(a=r.commandHandler)||a.call(r,e.command,o,t))})),handlePointerMove:u,handlePointerLeave:c,textContent:a,propsAndAttrs:oa((()=>({...e,...n})))}}});var G5=UG(Y5,[["render",function(e,t,n,r,o,l){var a;const i=Kr("el-dropdown-item-impl"),s=Kr("el-roving-focus-item"),u=Kr("el-dropdown-collection-item");return vl(),wl(u,{disabled:e.disabled,"text-value":null!=(a=e.textValue)?a:e.textContent},{default:Bn((()=>[Ol(s,{focusable:!e.disabled},{default:Bn((()=>[Ol(i,Nl(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:Bn((()=>[eo(e.$slots,"default")])),_:3},16,["onPointerleave","onPointermove","onClickimpl"])])),_:3},8,["focusable"])])),_:3},8,["disabled","text-value"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const J5=wr({name:"ElDropdownMenu",props:L5,setup(e){const t=tq("dropdown"),{_elDropdownSize:n}=q5(),r=n.value,{focusTrapRef:o,onKeydown:l}=zo(YX,void 0),{contentRef:a,role:i,triggerId:s}=zo(H5,void 0),{collectionRef:u,getItems:c}=zo(V5,void 0),{rovingFocusGroupRef:d,rovingFocusGroupRootStyle:p,tabIndex:f,onBlur:v,onFocus:h,onMousedown:m}=zo(b5,void 0),{collectionRef:g}=zo(g5,void 0),y=oa((()=>[t.b("menu"),t.bm("menu",null==r?void 0:r.value)])),b=CK(a,u,o,d,g),w=Hi((t=>{var n;null==(n=e.onKeydown)||n.call(e,t)}),(e=>{const{currentTarget:t,code:n,target:r}=e;if(t.contains(r),kK.tab===n&&e.stopImmediatePropagation(),e.preventDefault(),r!==Gt(a))return;if(!P5.includes(n))return;const o=c().filter((e=>!e.disabled)).map((e=>e.ref));R5.includes(n)&&o.reverse(),C5(o)}));return{size:r,rovingFocusGroupRootStyle:p,tabIndex:f,dropdownKls:y,role:i,triggerId:s,dropdownListWrapperRef:b,handleKeydown:e=>{w(e),l(e)},onBlur:v,onFocus:h,onMousedown:m}}}),X5=["role","aria-labelledby"];var Q5=UG(J5,[["render",function(e,t,n,r,o,l){return vl(),bl("ul",{ref:e.dropdownListWrapperRef,class:X(e.dropdownKls),style:K(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:t[1]||(t[1]=(...t)=>e.onFocus&&e.onFocus(...t)),onKeydown:t[2]||(t[2]=gi(((...t)=>e.handleKeydown&&e.handleKeydown(...t)),["self"])),onMousedown:t[3]||(t[3]=gi(((...t)=>e.onMousedown&&e.onMousedown(...t)),["self"]))},[eo(e.$slots,"default")],46,X5)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const Z5=bK(F5,{DropdownItem:G5,DropdownMenu:Q5}),e9=xK(G5),t9=xK(Q5),n9={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},r9=["id"],o9=["stop-color"],l9=["stop-color"],a9=["id"],i9=["stop-color"],s9=["stop-color"],u9=["id"],c9={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},d9={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},p9={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},f9=["fill"],v9=["fill"],h9={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},m9=["fill"],g9=["fill"],y9=["fill"],b9=["fill"],w9=["fill"],x9={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},C9=["fill","xlink:href"],k9=["fill","mask"],S9=["fill"],_9=wr({name:"ImgEmpty"});var E9=UG(wr({..._9,setup(e){const t=tq("empty"),n=MY();return(e,r)=>(vl(),bl("svg",n9,[El("defs",null,[El("linearGradient",{id:`linearGradient-1-${Gt(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[El("stop",{"stop-color":`var(${Gt(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,o9),El("stop",{"stop-color":`var(${Gt(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,l9)],8,r9),El("linearGradient",{id:`linearGradient-2-${Gt(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[El("stop",{"stop-color":`var(${Gt(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,i9),El("stop",{"stop-color":`var(${Gt(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,s9)],8,a9),El("rect",{id:`path-3-${Gt(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,u9)]),El("g",c9,[El("g",d9,[El("g",p9,[El("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${Gt(t).cssVarBlockName("fill-color-3")})`},null,8,f9),El("polygon",{id:"Rectangle-Copy-14",fill:`var(${Gt(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,v9),El("g",h9,[El("polygon",{id:"Rectangle-Copy-10",fill:`var(${Gt(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,m9),El("polygon",{id:"Rectangle-Copy-11",fill:`var(${Gt(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,g9),El("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${Gt(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,y9),El("polygon",{id:"Rectangle-Copy-13",fill:`var(${Gt(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,b9)]),El("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${Gt(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,w9),El("g",x9,[El("use",{id:"Mask",fill:`var(${Gt(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${Gt(n)}`},null,8,C9),El("polygon",{id:"Rectangle-Copy",fill:`var(${Gt(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${Gt(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,k9)]),El("polygon",{id:"Rectangle-Copy-18",fill:`var(${Gt(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,S9)])])])]))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const O9=fK({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),M9=["src"],z9={key:1},T9=wr({name:"ElEmpty"}),A9=wr({...T9,props:O9,setup(e){const t=e,{t:n}=JK(),r=tq("empty"),o=oa((()=>t.description||n("el.table.emptyText"))),l=oa((()=>({width:$z(t.imageSize)})));return(e,t)=>(vl(),bl("div",{class:X(Gt(r).b())},[El("div",{class:X(Gt(r).e("image")),style:K(Gt(l))},[e.image?(vl(),bl("img",{key:0,src:e.image,ondragstart:"return false"},null,8,M9)):eo(e.$slots,"image",{key:1},(()=>[Ol(E9)]))],6),El("div",{class:X(Gt(r).e("description"))},[e.$slots.description?eo(e.$slots,"description",{key:0}):(vl(),bl("p",z9,ve(Gt(o)),1))],2),e.$slots.default?(vl(),bl("div",{key:0,class:X(Gt(r).e("bottom"))},[eo(e.$slots,"default")],2)):Ll("v-if",!0)],2))}}),L9=bK(UG(A9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]])),I9=fK({urlList:{type:Array,default:()=>[]},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),R9={close:()=>!0,switch:e=>Mz(e)},P9=["src"],N9=wr({name:"ElImageViewer"}),j9=wr({...N9,props:I9,emits:R9,setup(e,{expose:t,emit:n}){const r=e,o={CONTAIN:{name:"contain",icon:Vt(SN)},ORIGINAL:{name:"original",icon:Vt(p$)}},{t:l}=JK(),a=tq("image-viewer"),{nextZIndex:i}=BY(),s=Wt(),u=Wt([]),c=be(),d=Wt(!0),p=Wt(r.initialIndex),f=Ut(o.CONTAIN),v=Wt({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),h=oa((()=>{const{urlList:e}=r;return e.length<=1})),m=oa((()=>0===p.value)),g=oa((()=>p.value===r.urlList.length-1)),y=oa((()=>r.urlList[p.value])),b=oa((()=>{const{scale:e,deg:t,offsetX:n,offsetY:r,enableTransition:l}=v.value;let a=n/e,i=r/e;switch(t%360){case 90:case-270:[a,i]=[i,-a];break;case 180:case-180:[a,i]=[-a,-i];break;case 270:case-90:[a,i]=[-i,a]}const s={transform:`scale(${e}) rotate(${t}deg) translate(${a}px, ${i}px)`,transition:l?"transform .3s":""};return f.value.name===o.CONTAIN.name&&(s.maxWidth=s.maxHeight="100%"),s})),w=oa((()=>Mz(r.zIndex)?r.zIndex:i()));function x(){c.stop(),n("close")}function C(){d.value=!1}function k(e){d.value=!1,e.target.alt=l("el.image.error")}function S(e){if(d.value||0!==e.button||!s.value)return;v.value.enableTransition=!1;const{offsetX:t,offsetY:n}=v.value,r=e.pageX,o=e.pageY,l=PM((e=>{v.value={...v.value,offsetX:t+e.pageX-r,offsetY:n+e.pageY-o}})),a=_c(document,"mousemove",l);_c(document,"mouseup",(()=>{a()})),e.preventDefault()}function _(){v.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function E(){if(d.value)return;const e=Iz(o),t=Object.values(o),n=f.value.name,r=(t.findIndex((e=>e.name===n))+1)%e.length;f.value=o[e[r]],_()}function O(e){const t=r.urlList.length;p.value=(e+t)%t}function M(){m.value&&!r.infinite||O(p.value-1)}function z(){g.value&&!r.infinite||O(p.value+1)}function T(e,t={}){if(d.value)return;const{zoomRate:n,rotateDeg:o,enableTransition:l}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...t};switch(e){case"zoomOut":v.value.scale>.2&&(v.value.scale=Number.parseFloat((v.value.scale/n).toFixed(3)));break;case"zoomIn":v.value.scale<7&&(v.value.scale=Number.parseFloat((v.value.scale*n).toFixed(3)));break;case"clockwise":v.value.deg+=o;break;case"anticlockwise":v.value.deg-=o}v.value.enableTransition=l}return nr(y,(()=>{wn((()=>{const e=u.value[0];(null==e?void 0:e.complete)||(d.value=!0)}))})),nr(p,(e=>{_(),n("switch",e)})),Nr((()=>{var e,t;!function(){const e=PM((e=>{switch(e.code){case kK.esc:r.closeOnPressEscape&&x();break;case kK.space:E();break;case kK.left:M();break;case kK.up:T("zoomIn");break;case kK.right:z();break;case kK.down:T("zoomOut")}})),t=PM((e=>{T((e.deltaY||e.deltaX)<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})}));c.run((()=>{_c(document,"keydown",e),_c(document,"wheel",t)}))}(),null==(t=null==(e=s.value)?void 0:e.focus)||t.call(e)})),t({setActiveItem:O}),(e,t)=>(vl(),wl(al,{to:"body",disabled:!e.teleported},[Ol(La,{name:"viewer-fade",appear:""},{default:Bn((()=>[El("div",{ref_key:"wrapper",ref:s,tabindex:-1,class:X(Gt(a).e("wrapper")),style:K({zIndex:Gt(w)})},[El("div",{class:X(Gt(a).e("mask")),onClick:t[0]||(t[0]=gi((t=>e.hideOnClickModal&&x()),["self"]))},null,2),Ll(" CLOSE "),El("span",{class:X([Gt(a).e("btn"),Gt(a).e("close")]),onClick:x},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(eI))])),_:1})],2),Ll(" ARROW "),Gt(h)?Ll("v-if",!0):(vl(),bl(sl,{key:0},[El("span",{class:X([Gt(a).e("btn"),Gt(a).e("prev"),Gt(a).is("disabled",!e.infinite&&Gt(m))]),onClick:M},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(yT))])),_:1})],2),El("span",{class:X([Gt(a).e("btn"),Gt(a).e("next"),Gt(a).is("disabled",!e.infinite&&Gt(g))]),onClick:z},[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(ST))])),_:1})],2)],64)),Ll(" ACTIONS "),El("div",{class:X([Gt(a).e("btn"),Gt(a).e("actions")])},[El("div",{class:X(Gt(a).e("actions__inner"))},[Ol(Gt(ZG),{onClick:t[1]||(t[1]=e=>T("zoomOut"))},{default:Bn((()=>[Ol(Gt(uK))])),_:1}),Ol(Gt(ZG),{onClick:t[2]||(t[2]=e=>T("zoomIn"))},{default:Bn((()=>[Ol(Gt(aK))])),_:1}),El("i",{class:X(Gt(a).e("actions__divider"))},null,2),Ol(Gt(ZG),{onClick:E},{default:Bn((()=>[(vl(),wl(Yr(Gt(f).icon)))])),_:1}),El("i",{class:X(Gt(a).e("actions__divider"))},null,2),Ol(Gt(ZG),{onClick:t[3]||(t[3]=e=>T("anticlockwise"))},{default:Bn((()=>[Ol(Gt(UD))])),_:1}),Ol(Gt(ZG),{onClick:t[4]||(t[4]=e=>T("clockwise"))},{default:Bn((()=>[Ol(Gt(YD))])),_:1})],2)],2),Ll(" CANVAS "),El("div",{class:X(Gt(a).e("canvas"))},[(vl(!0),bl(sl,null,Qr(e.urlList,((e,t)=>ir((vl(),bl("img",{ref_for:!0,ref:e=>u.value[t]=e,key:e,src:e,style:K(Gt(b)),class:X(Gt(a).e("img")),onLoad:C,onError:k,onMousedown:S},null,46,P9)),[[wi,t===p.value]]))),128))],2),eo(e.$slots,"default")],6)])),_:3})],8,["disabled"]))}}),V9=bK(UG(j9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]])),B9=fK({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:[String,Object]},previewSrcList:{type:Array,default:()=>[]},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),H9={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>Mz(e),close:()=>!0,show:()=>!0},D9=["src","loading"],$9={key:0},F9=wr({name:"ElImage",inheritAttrs:!1}),W9=wr({...F9,props:B9,emits:H9,setup(e,{emit:t}){const n=e;let r="";const{t:o}=JK(),l=tq("image"),a=uo(),i=FK(),s=Wt(),u=Wt(!1),c=Wt(!0),d=Wt(!1),p=Wt(),f=Wt(),v=Xi&&"loading"in HTMLImageElement.prototype;let h,m;const g=oa((()=>a.style)),b=oa((()=>{const{fit:e}=n;return Xi&&e?{objectFit:e}:{}})),w=oa((()=>{const{previewSrcList:e}=n;return Array.isArray(e)&&e.length>0})),x=oa((()=>{const{previewSrcList:e,initialIndex:t}=n;let r=t;return t>e.length-1&&(r=0),r})),C=oa((()=>"eager"!==n.loading&&(!v&&"lazy"===n.loading||n.lazy))),k=()=>{Xi&&(c.value=!0,u.value=!1,s.value=n.src)};function S(e){c.value=!1,u.value=!1,t("load",e)}function _(e){c.value=!1,u.value=!0,t("error",e)}function E(){((e,t)=>{if(!Xi||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return r=t instanceof Element?t.getBoundingClientRect():{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.topr.top&&n.right>r.left&&n.leftE()),100))}function z(){Xi&&f.value&&O&&(null==h||h(),f.value=void 0)}function T(e){if(e.ctrlKey)return e.deltaY<0||e.deltaY>0?(e.preventDefault(),!1):void 0}function A(){w.value&&(m=_c("wheel",T,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",d.value=!0,t("show"))}function L(){null==m||m(),document.body.style.overflow=r,d.value=!1,t("close")}function I(e){t("switch",e)}return nr((()=>n.src),(()=>{C.value?(c.value=!0,u.value=!1,z(),M()):k()})),Nr((()=>{C.value?M():k()})),(e,t)=>(vl(),bl("div",{ref_key:"container",ref:p,class:X([Gt(l).b(),e.$attrs.class]),style:K(Gt(g))},[u.value?eo(e.$slots,"error",{key:0},(()=>[El("div",{class:X(Gt(l).e("error"))},ve(Gt(o)("el.image.error")),3)])):(vl(),bl(sl,{key:1},[void 0!==s.value?(vl(),bl("img",Nl({key:0},Gt(i),{src:s.value,loading:e.loading,style:Gt(b),class:[Gt(l).e("inner"),Gt(w)&&Gt(l).e("preview"),c.value&&Gt(l).is("loading")],onClick:A,onLoad:S,onError:_}),null,16,D9)):Ll("v-if",!0),c.value?(vl(),bl("div",{key:1,class:X(Gt(l).e("wrapper"))},[eo(e.$slots,"placeholder",{},(()=>[El("div",{class:X(Gt(l).e("placeholder"))},null,2)]))],2)):Ll("v-if",!0)],64)),Gt(w)?(vl(),bl(sl,{key:2},[d.value?(vl(),wl(Gt(V9),{key:0,"z-index":e.zIndex,"initial-index":Gt(x),infinite:e.infinite,"zoom-rate":e.zoomRate,"url-list":e.previewSrcList,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:L,onSwitch:I},{default:Bn((()=>[e.$slots.viewer?(vl(),bl("div",$9,[eo(e.$slots,"viewer")])):Ll("v-if",!0)])),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):Ll("v-if",!0)],64)):Ll("v-if",!0)],6))}}),U9=bK(UG(W9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]])),K9=fK({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:LG,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>null===e||Mz(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),q9={[EK]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[OK]:e=>Mz(e)||q_(e),[_K]:e=>Mz(e)||q_(e)},Y9=["aria-label","onKeydown"],G9=["aria-label","onKeydown"],J9=wr({name:"ElInputNumber"}),X9=wr({...J9,props:K9,emits:q9,setup(e,{expose:t,emit:n}){const r=e,{t:o}=JK(),l=tq("input-number"),a=Wt(),i=zt({currentValue:r.modelValue,userInput:null}),{formItem:s}=uJ(),u=oa((()=>Mz(r.modelValue)&&r.modelValue<=r.min)),c=oa((()=>Mz(r.modelValue)&&r.modelValue>=r.max)),d=oa((()=>{const e=g(r.step);return Ez(r.precision)?Math.max(g(r.modelValue),e):(r.precision,r.precision)})),p=oa((()=>r.controls&&"right"===r.controlsPosition)),f=iJ(),v=sJ(),h=oa((()=>{if(null!==i.userInput)return i.userInput;let e=i.currentValue;if(q_(e))return"";if(Mz(e)){if(Number.isNaN(e))return"";Ez(r.precision)||(e=e.toFixed(r.precision))}return e})),m=(e,t)=>{if(Ez(t)&&(t=d.value),0===t)return Math.round(e);let n=String(e);const r=n.indexOf(".");if(-1===r)return e;if(!n.replace(".","").split("")[r+t])return e;const o=n.length;return"5"===n.charAt(o-1)&&(n=`${n.slice(0,Math.max(0,o-1))}6`),Number.parseFloat(Number(n).toFixed(t))},g=e=>{if(q_(e))return 0;const t=e.toString(),n=t.indexOf(".");let r=0;return-1!==n&&(r=t.length-n-1),r},b=(e,t=1)=>Mz(e)?m(e+r.step*t):i.currentValue,w=()=>{if(r.readonly||v.value||c.value)return;const e=Number(h.value)||0,t=b(e);k(t),n(OK,i.currentValue)},x=()=>{if(r.readonly||v.value||u.value)return;const e=Number(h.value)||0,t=b(e,-1);k(t),n(OK,i.currentValue)},C=(e,t)=>{const{max:o,min:l,step:a,precision:i,stepStrictly:s,valueOnClear:u}=r;oo||co?o:l,t&&n(_K,c)),c},k=(e,t=!0)=>{var o;const l=i.currentValue,a=C(e);t?l!==a&&(i.userInput=null,n(_K,a),n(EK,a,l),r.validateEvent&&(null==(o=null==s?void 0:s.validate)||o.call(s,"change").catch((e=>{}))),i.currentValue=a):n(_K,a)},S=e=>{i.userInput=e;const t=""===e?null:Number(e);n(OK,t),k(t,!1)},_=e=>{const t=""!==e?Number(e):"";(Mz(t)&&!Number.isNaN(t)||""===e)&&k(t),i.userInput=null},E=e=>{n("focus",e)},O=e=>{var t;n("blur",e),r.validateEvent&&(null==(t=null==s?void 0:s.validate)||t.call(s,"blur").catch((e=>{})))};return nr((()=>r.modelValue),(e=>{const t=C(i.userInput),n=C(e,!0);Mz(t)||t&&t===n||(i.currentValue=n,i.userInput=null)}),{immediate:!0}),Nr((()=>{var e;const{min:t,max:o,modelValue:l}=r,s=null==(e=a.value)?void 0:e.input;if(s.setAttribute("role","spinbutton"),Number.isFinite(o)?s.setAttribute("aria-valuemax",String(o)):s.removeAttribute("aria-valuemax"),Number.isFinite(t)?s.setAttribute("aria-valuemin",String(t)):s.removeAttribute("aria-valuemin"),s.setAttribute("aria-valuenow",String(i.currentValue)),s.setAttribute("aria-disabled",String(v.value)),!Mz(l)&&null!=l){let e=Number(l);Number.isNaN(e)&&(e=null),n(_K,e)}})),Vr((()=>{var e;const t=null==(e=a.value)?void 0:e.input;null==t||t.setAttribute("aria-valuenow",`${i.currentValue}`)})),t({focus:()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.focus)||t.call(e)},blur:()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.blur)||t.call(e)}}),(e,t)=>(vl(),bl("div",{class:X([Gt(l).b(),Gt(l).m(Gt(f)),Gt(l).is("disabled",Gt(v)),Gt(l).is("without-controls",!e.controls),Gt(l).is("controls-right",Gt(p))]),onDragstart:t[1]||(t[1]=gi((()=>{}),["prevent"]))},[e.controls?ir((vl(),bl("span",{key:0,role:"button","aria-label":Gt(o)("el.inputNumber.decrease"),class:X([Gt(l).e("decrease"),Gt(l).is("disabled",Gt(u))]),onKeydown:bi(x,["enter"])},[Ol(Gt(ZG),null,{default:Bn((()=>[Gt(p)?(vl(),wl(Gt(pT),{key:0})):(vl(),wl(Gt(hB),{key:1}))])),_:1})],42,Y9)),[[Gt(B0),x]]):Ll("v-if",!0),e.controls?ir((vl(),bl("span",{key:1,role:"button","aria-label":Gt(o)("el.inputNumber.increase"),class:X([Gt(l).e("increase"),Gt(l).is("disabled",Gt(c))]),onKeydown:bi(w,["enter"])},[Ol(Gt(ZG),null,{default:Bn((()=>[Gt(p)?(vl(),wl(Gt(TT),{key:0})):(vl(),wl(Gt(rD),{key:1}))])),_:1})],42,G9)),[[Gt(B0),w]]):Ll("v-if",!0),Ol(Gt(hX),{id:e.id,ref_key:"input",ref:a,type:"number",step:e.step,"model-value":Gt(h),placeholder:e.placeholder,readonly:e.readonly,disabled:Gt(v),size:Gt(f),max:e.max,min:e.min,name:e.name,label:e.label,"validate-event":!1,onWheel:t[0]||(t[0]=gi((()=>{}),["prevent"])),onKeydown:[bi(gi(w,["prevent"]),["up"]),bi(gi(x,["prevent"]),["down"])],onBlur:O,onFocus:E,onInput:S,onChange:_},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}}),Q9=bK(UG(X9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]])),Z9=fK({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:vK}}),e7={click:e=>e instanceof MouseEvent},t7=["href"],n7=wr({name:"ElLink"}),r7=wr({...n7,props:Z9,emits:e7,setup(e,{emit:t}){const n=e,r=tq("link"),o=oa((()=>[r.b(),r.m(n.type),r.is("disabled",n.disabled),r.is("underline",n.underline&&!n.disabled)]));function l(e){n.disabled||t("click",e)}return(e,t)=>(vl(),bl("a",{class:X(Gt(o)),href:e.disabled||!e.href?void 0:e.href,onClick:l},[e.icon?(vl(),wl(Gt(ZG),{key:0},{default:Bn((()=>[(vl(),wl(Yr(e.icon)))])),_:1})):Ll("v-if",!0),e.$slots.default?(vl(),bl("span",{key:1,class:X(Gt(r).e("inner"))},[eo(e.$slots,"default")],2)):Ll("v-if",!0),e.$slots.icon?eo(e.$slots,"icon",{key:2}):Ll("v-if",!0)],10,t7))}}),o7=bK(UG(r7,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]));var l7=UG(wr({name:"ElMenuCollapseTransition",setup(){const e=tq("menu");return{listeners:{onBeforeEnter:e=>e.style.opacity="0.2",onEnter(t,n){Bz(t,`${e.namespace.value}-opacity-transition`),t.style.opacity="1",n()},onAfterEnter(t){Hz(t,`${e.namespace.value}-opacity-transition`),t.style.opacity=""},onBeforeLeave(t){t.dataset||(t.dataset={}),Vz(t,e.m("collapse"))?(Hz(t,e.m("collapse")),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth.toString(),Bz(t,e.m("collapse"))):(Bz(t,e.m("collapse")),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth.toString(),Hz(t,e.m("collapse"))),t.style.width=`${t.scrollWidth}px`,t.style.overflow="hidden"},onLeave(e){Bz(e,"horizontal-collapse-transition"),e.style.width=`${e.dataset.scrollWidth}px`}}}}}),[["render",function(e,t,n,r,o,l){return vl(),wl(La,Nl({mode:"out-in"},e.listeners),{default:Bn((()=>[eo(e.$slots,"default")])),_:3},16)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function a7(e,t){const n=oa((()=>{let n=e.parent;const r=[t.value];for(;"ElMenu"!==n.type.name;)n.props.index&&r.unshift(n.props.index),n=n.parent;return r}));return{parentMenu:oa((()=>{let t=e.parent;for(;t&&!["ElMenu","ElSubMenu"].includes(t.type.name);)t=t.parent;return t})),indexPath:n}}function i7(e){return oa((()=>{const t=e.backgroundColor;return t?new FZ(t).shade(20).toString():""}))}const s7=(e,t)=>{const n=tq("menu");return oa((()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":i7(e).value||"","active-color":e.activeTextColor||"",level:`${t}`})))},u7=fK({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:vK},expandOpenIcon:{type:vK},collapseCloseIcon:{type:vK},collapseOpenIcon:{type:vK}}),c7="ElSubMenu";var d7=wr({name:c7,props:u7,setup(e,{slots:t,expose:n}){WK({from:"popper-append-to-body",replacement:"teleported",scope:c7,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},oa((()=>void 0!==e.popperAppendToBody)));const r=$l(),{indexPath:o,parentMenu:l}=a7(r,oa((()=>e.index))),a=tq("menu"),i=tq("sub-menu"),s=zo("rootMenu");s||Nz(c7,"can not inject root menu");const u=zo(`subMenu:${l.value.uid}`);u||Nz(c7,"can not inject sub menu");const c=Wt({}),d=Wt({});let p;const f=Wt(!1),v=Wt(),h=Wt(null),m=oa((()=>"horizontal"===M.value&&b.value?"bottom-start":"right-start")),g=oa((()=>"horizontal"===M.value&&b.value||"vertical"===M.value&&!s.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?k.value?e.expandOpenIcon:e.expandCloseIcon:pT:e.collapseCloseIcon&&e.collapseOpenIcon?k.value?e.collapseOpenIcon:e.collapseCloseIcon:ST)),b=oa((()=>0===u.level)),w=oa((()=>{var t;const n=null!=(t=e.teleported)?t:e.popperAppendToBody;return void 0===n?b.value:n})),x=oa((()=>s.props.collapse?`${a.namespace.value}-zoom-in-left`:`${a.namespace.value}-zoom-in-top`)),C=oa((()=>"horizontal"===M.value&&b.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"])),k=oa((()=>s.openedMenus.includes(e.index))),S=oa((()=>{let e=!1;return Object.values(c.value).forEach((t=>{t.active&&(e=!0)})),Object.values(d.value).forEach((t=>{t.active&&(e=!0)})),e})),_=oa((()=>s.props.backgroundColor||"")),E=oa((()=>s.props.activeTextColor||"")),O=oa((()=>s.props.textColor||"")),M=oa((()=>s.props.mode)),z=zt({index:e.index,indexPath:o,active:S}),T=s7(s.props,u.level+1),A=oa((()=>"horizontal"!==M.value?{color:O.value}:{borderBottomColor:S.value?s.props.activeTextColor?E.value:"":"transparent",color:S.value?E.value:O.value})),L=()=>{"hover"===s.props.menuTrigger&&"horizontal"===s.props.mode||s.props.collapse&&"vertical"===s.props.mode||e.disabled||s.handleSubMenuClick({index:e.index,indexPath:o.value,active:S.value})},I=(t,n=e.showTimeout)=>{var r;"focus"!==t.type&&("click"===s.props.menuTrigger&&"horizontal"===s.props.mode||!s.props.collapse&&"vertical"===s.props.mode||e.disabled||(u.mouseInChild.value=!0,null==p||p(),({stop:p}=fu((()=>{s.openMenu(e.index,o.value)}),n)),w.value&&(null==(r=l.value.vnode.el)||r.dispatchEvent(new MouseEvent("mouseenter")))))},R=(t=!1)=>{var n,l;"click"===s.props.menuTrigger&&"horizontal"===s.props.mode||!s.props.collapse&&"vertical"===s.props.mode||(null==p||p(),u.mouseInChild.value=!1,({stop:p}=fu((()=>!f.value&&s.closeMenu(e.index,o.value)),e.hideTimeout)),w.value&&t&&"ElSubMenu"===(null==(n=r.parent)?void 0:n.type.name)&&(null==(l=u.handleMouseleave)||l.call(u,!0)))};nr((()=>s.props.collapse),(e=>(e=>{var t,n,r;e||null==(r=null==(n=null==(t=h.value)?void 0:t.popperRef)?void 0:n.popperInstanceRef)||r.destroy()})(Boolean(e))));{const e=e=>{d.value[e.index]=e},t=e=>{delete d.value[e.index]};Mo(`subMenu:${r.uid}`,{addSubMenu:e,removeSubMenu:t,handleMouseleave:R,mouseInChild:f,level:u.level+1})}return n({opened:k}),Nr((()=>{s.addSubMenu(z),u.addSubMenu(z)})),Br((()=>{u.removeSubMenu(z),s.removeSubMenu(z)})),()=>{var n;const o=[null==(n=t.title)?void 0:n.call(t),la(ZG,{class:i.e("icon-arrow"),style:{transform:k.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&s.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>y(g.value)?la(r.appContext.components[g.value]):la(g.value)})],l=s.isMenuPopup?la(BQ,{ref:h,visible:k.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:m.value,teleported:w.value,fallbackPlacements:C.value,transition:x.value,gpuAcceleration:!1},{content:()=>{var n;return la("div",{class:[a.m(M.value),a.m("popup-container"),e.popperClass],onMouseenter:e=>I(e,100),onMouseleave:()=>R(!0),onFocus:e=>I(e,100)},[la("ul",{class:[a.b(),a.m("popup"),a.m(`popup-${m.value}`)],style:T.value},[null==(n=t.default)?void 0:n.call(t)])])},default:()=>la("div",{class:i.e("title"),style:[A.value,{backgroundColor:_.value}],onClick:L},o)}):la(sl,{},[la("div",{class:i.e("title"),style:[A.value,{backgroundColor:_.value}],ref:v,onClick:L},o),la(Z4,{},{default:()=>{var e;return ir(la("ul",{role:"menu",class:[a.b(),a.m("inline")],style:T.value},[null==(e=t.default)?void 0:e.call(t)]),[[wi,k.value]])}})]);return la("li",{class:[i.b(),i.is("active",S.value),i.is("opened",k.value),i.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:k.value,onMouseenter:I,onMouseleave:()=>R(!0),onFocus:I},[l])}}});const p7=fK({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Array,default:()=>[]},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),f7=e=>Array.isArray(e)&&e.every((e=>y(e))),v7={close:(e,t)=>y(e)&&f7(t),open:(e,t)=>y(e)&&f7(t),select:(e,t,n,r)=>y(e)&&f7(t)&&w(n)&&(void 0===r||r instanceof Promise)};var h7=wr({name:"ElMenu",props:p7,emits:v7,setup(e,{emit:t,slots:n,expose:r}){const o=$l(),l=o.appContext.config.globalProperties.$router,a=Wt(),i=tq("menu"),s=tq("sub-menu"),u=Wt(-1),c=Wt(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),d=Wt(e.defaultActive),p=Wt({}),f=Wt({}),v=oa((()=>"horizontal"===e.mode||"vertical"===e.mode&&e.collapse)),h=(n,r)=>{c.value.includes(n)||(e.uniqueOpened&&(c.value=c.value.filter((e=>r.includes(e)))),c.value.push(n),t("open",n,r))},m=e=>{const t=c.value.indexOf(e);-1!==t&&c.value.splice(t,1)},g=(e,n)=>{m(e),t("close",e,n)},y=({index:e,indexPath:t})=>{c.value.includes(e)?g(e,t):h(e,t)},b=n=>{("horizontal"===e.mode||e.collapse)&&(c.value=[]);const{index:r,indexPath:o}=n;if(!q_(r)&&!q_(o))if(e.router&&l){const e=n.route||r,a=l.push(e).then((e=>(e||(d.value=r),e)));t("select",r,o,{index:r,indexPath:o,route:e},a)}else d.value=r,t("select",r,o,{index:r,indexPath:o})};let w=!0;const x=()=>{const e=()=>{u.value=-1,wn((()=>{u.value=(()=>{var e,t;if(!a.value)return-1;const n=Array.from(null!=(t=null==(e=a.value)?void 0:e.childNodes)?t:[]).filter((e=>"#comment"!==e.nodeName&&("#text"!==e.nodeName||e.nodeValue))),r=Number.parseInt(getComputedStyle(a.value).paddingLeft,10),o=Number.parseInt(getComputedStyle(a.value).paddingRight,10),l=a.value.clientWidth-r-o;let i=0,s=0;return n.forEach(((e,t)=>{i+=e.offsetWidth||0,i<=l-64&&(s=t+1)})),s===n.length?-1:s})()}))};w?e():((e,t=33.34)=>{let n;return()=>{n&&clearTimeout(n),n=setTimeout((()=>{e()}),t)}})(e)(),w=!1};let C;nr((()=>e.defaultActive),(t=>{p.value[t]||(d.value=""),(t=>{const n=p.value,r=n[t]||d.value&&n[d.value]||n[e.defaultActive];d.value=r?r.index:t})(t)})),nr((()=>e.collapse),(e=>{e&&(c.value=[])})),nr(p.value,(()=>{const t=d.value&&p.value[d.value];t&&"horizontal"!==e.mode&&!e.collapse&&t.indexPath.forEach((e=>{const t=f.value[e];t&&h(e,t.indexPath)}))})),Zn((()=>{"horizontal"===e.mode&&e.ellipsis?C=hp(a,x).stop:null==C||C()}));{const t=e=>{f.value[e.index]=e},n=e=>{delete f.value[e.index]},r=e=>{p.value[e.index]=e},l=e=>{delete p.value[e.index]};Mo("rootMenu",zt({props:e,openedMenus:c,items:p,subMenus:f,activeIndex:d,isMenuPopup:v,addMenuItem:r,removeMenuItem:l,addSubMenu:t,removeSubMenu:n,openMenu:h,closeMenu:g,handleMenuItemClick:b,handleSubMenuClick:y})),Mo(`subMenu:${o.uid}`,{addSubMenu:t,removeSubMenu:n,mouseInChild:Wt(!1),level:0})}Nr((()=>{"horizontal"===e.mode&&new class{constructor(e,t){this.domNode=e,this.init(t)}init(e){const t=this.domNode.childNodes;Array.from(t).forEach((t=>{1===t.nodeType&&new class{constructor(e,t){this.domNode=e,this.submenu=null,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new class{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(t=>{t.addEventListener("keydown",(t=>{let n=!1;switch(t.code){case kK.down:this.gotoSubIndex(this.subIndex+1),n=!0;break;case kK.up:this.gotoSubIndex(this.subIndex-1),n=!0;break;case kK.tab:Ni(e,"mouseleave");break;case kK.enter:case kK.space:n=!0,t.currentTarget.click()}return n&&(t.preventDefault(),t.stopPropagation()),!1}))}))}}(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",(e=>{let t=!1;switch(e.code){case kK.down:Ni(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),t=!0;break;case kK.up:Ni(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),t=!0;break;case kK.tab:Ni(e.currentTarget,"mouseleave");break;case kK.enter:case kK.space:t=!0,e.currentTarget.click()}t&&e.preventDefault()}))}}(t,e)}))}}(o.vnode.el,i.namespace.value)}));r({open:e=>{const{indexPath:t}=f.value[e];t.forEach((e=>h(e,t)))},close:m,handleResize:x});return()=>{var t,r;let o=null!=(r=null==(t=n.default)?void 0:t.call(n))?r:[];const l=[];if("horizontal"===e.mode&&a.value){const t=RK(o),n=-1===u.value?t:t.slice(0,u.value),r=-1===u.value?[]:t.slice(u.value);(null==r?void 0:r.length)&&e.ellipsis&&(o=n,l.push(la(d7,{index:"sub-menu-more",class:s.e("hide-arrow")},{title:()=>la(ZG,{class:s.e("icon-more")},{default:()=>la(IB)}),default:()=>r})))}const c=s7(e,0),d=la("ul",{key:String(e.collapse),role:"menubar",ref:a,style:c.value,class:{[i.b()]:!0,[i.m(e.mode)]:!0,[i.m("collapse")]:e.collapse}},[...o,...l]);return e.collapseTransition&&"vertical"===e.mode?la(l7,(()=>d)):d}}});const m7=fK({index:{type:[String,null],default:null},route:{type:[String,Object]},disabled:Boolean}),g7="ElMenuItem",y7=wr({name:g7,components:{ElTooltip:BQ},props:m7,emits:{click:e=>y(e.index)&&Array.isArray(e.indexPath)},setup(e,{emit:t}){const n=$l(),r=zo("rootMenu"),o=tq("menu"),l=tq("menu-item");r||Nz(g7,"can not inject root menu");const{parentMenu:a,indexPath:i}=a7(n,rn(e,"index")),s=zo(`subMenu:${a.value.uid}`);s||Nz(g7,"can not inject sub menu");const u=oa((()=>e.index===r.activeIndex)),c=zt({index:e.index,indexPath:i,active:u});return Nr((()=>{s.addSubMenu(c),r.addMenuItem(c)})),Br((()=>{s.removeSubMenu(c),r.removeMenuItem(c)})),{parentMenu:a,rootMenu:r,active:u,nsMenu:o,nsMenuItem:l,handleClick:()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:i.value,route:e.route}),t("click",c))}}}});var b7=UG(y7,[["render",function(e,t,n,r,o,l){const a=Kr("el-tooltip");return vl(),bl("li",{class:X([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},["ElMenu"===e.parentMenu.type.name&&e.rootMenu.props.collapse&&e.$slots.title?(vl(),wl(a,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:Bn((()=>[eo(e.$slots,"title")])),default:Bn((()=>[El("div",{class:X(e.nsMenu.be("tooltip","trigger"))},[eo(e.$slots,"default")],2)])),_:3},8,["effect"])):(vl(),bl(sl,{key:1},[eo(e.$slots,"default"),eo(e.$slots,"title")],64))],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]),w7=UG(wr({name:"ElMenuItemGroup",props:{title:String},setup:()=>({ns:tq("menu-item-group")})}),[["render",function(e,t,n,r,o,l){return vl(),bl("li",{class:X(e.ns.b())},[El("div",{class:X(e.ns.e("title"))},[e.$slots.title?eo(e.$slots,"title",{key:1}):(vl(),bl(sl,{key:0},[Tl(ve(e.title),1)],64))],2),El("ul",null,[eo(e.$slots,"default")])],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const x7=bK(h7,{MenuItem:b7,MenuItemGroup:w7,SubMenu:d7}),C7=xK(b7),k7=xK(w7),S7=xK(d7),_7=fK({icon:{type:vK,default:()=>NT},title:String,content:{type:String,default:""}}),E7=["aria-label"],O7=wr({name:"ElPageHeader"}),M7=wr({...O7,props:_7,emits:{back:()=>!0},setup(e,{emit:t}){const n=so(),{t:r}=JK(),o=tq("page-header"),l=oa((()=>[o.b(),{[o.m("has-breadcrumb")]:!!n.breadcrumb,[o.m("has-extra")]:!!n.extra,[o.is("contentful")]:!!n.default}]));function a(){t("back")}return(e,t)=>(vl(),bl("div",{class:X(Gt(l))},[e.$slots.breadcrumb?(vl(),bl("div",{key:0,class:X(Gt(o).e("breadcrumb"))},[eo(e.$slots,"breadcrumb")],2)):Ll("v-if",!0),El("div",{class:X(Gt(o).e("header"))},[El("div",{class:X(Gt(o).e("left"))},[El("div",{class:X(Gt(o).e("back")),role:"button",tabindex:"0",onClick:a},[e.icon||e.$slots.icon?(vl(),bl("div",{key:0,"aria-label":e.title||Gt(r)("el.pageHeader.title"),class:X(Gt(o).e("icon"))},[eo(e.$slots,"icon",{},(()=>[e.icon?(vl(),wl(Gt(ZG),{key:0},{default:Bn((()=>[(vl(),wl(Yr(e.icon)))])),_:1})):Ll("v-if",!0)]))],10,E7)):Ll("v-if",!0),El("div",{class:X(Gt(o).e("title"))},[eo(e.$slots,"title",{},(()=>[Tl(ve(e.title||Gt(r)("el.pageHeader.title")),1)]))],2)],2),Ol(Gt(n5),{direction:"vertical"}),El("div",{class:X(Gt(o).e("content"))},[eo(e.$slots,"content",{},(()=>[Tl(ve(e.content),1)]))],2)],2),e.$slots.extra?(vl(),bl("div",{key:0,class:X(Gt(o).e("extra"))},[eo(e.$slots,"extra")],2)):Ll("v-if",!0)],2),e.$slots.default?(vl(),bl("div",{key:1,class:X(Gt(o).e("main"))},[eo(e.$slots,"default")],2)):Ll("v-if",!0)],2))}}),z7=bK(UG(M7,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]])),T7=Symbol("elPaginationKey"),A7=fK({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:vK}}),L7={click:e=>e instanceof MouseEvent},I7=["disabled","aria-label","aria-disabled"],R7={key:0},P7=wr({name:"ElPaginationPrev"}),N7=wr({...P7,props:A7,emits:L7,setup(e){const t=e,{t:n}=JK(),r=oa((()=>t.disabled||t.currentPage<=1));return(e,t)=>(vl(),bl("button",{type:"button",class:"btn-prev",disabled:Gt(r),"aria-label":e.prevText||Gt(n)("el.pagination.prev"),"aria-disabled":Gt(r),onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[e.prevText?(vl(),bl("span",R7,ve(e.prevText),1)):(vl(),wl(Gt(ZG),{key:1},{default:Bn((()=>[(vl(),wl(Yr(e.prevIcon)))])),_:1}))],8,I7))}});var j7=UG(N7,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const V7=fK({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:vK}}),B7=["disabled","aria-label","aria-disabled"],H7={key:0},D7=wr({name:"ElPaginationNext"}),$7=wr({...D7,props:V7,emits:["click"],setup(e){const t=e,{t:n}=JK(),r=oa((()=>t.disabled||t.currentPage===t.pageCount||0===t.pageCount));return(e,t)=>(vl(),bl("button",{type:"button",class:"btn-next",disabled:Gt(r),"aria-label":e.nextText||Gt(n)("el.pagination.next"),"aria-disabled":Gt(r),onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[e.nextText?(vl(),bl("span",H7,ve(e.nextText),1)):(vl(),wl(Gt(ZG),{key:1},{default:Bn((()=>[(vl(),wl(Yr(e.nextIcon)))])),_:1}))],8,B7))}});var F7=UG($7,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const W7=Symbol("ElSelectGroup"),U7=Symbol("ElSelect"),K7=wr({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=tq("select"),n=zt({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:r,itemSelected:o,isDisabled:l,select:a,hoverItem:i}=function(e,t){const n=zo(U7),r=zo(W7,{disabled:!1}),o=oa((()=>"[object object]"===Object.prototype.toString.call(e.value).toLowerCase())),l=oa((()=>n.props.multiple?d(n.props.modelValue,e.value):p(e.value,n.props.modelValue))),a=oa((()=>{if(n.props.multiple){const e=n.props.modelValue||[];return!l.value&&e.length>=n.props.multipleLimit&&n.props.multipleLimit>0}return!1})),i=oa((()=>e.label||(o.value?"":e.value))),s=oa((()=>e.value||e.label||"")),u=oa((()=>e.disabled||t.groupDisabled||a.value)),c=$l(),d=(e=[],t)=>{if(o.value){const r=n.props.valueKey;return e&&e.some((e=>jt(yb(e,r))===yb(t,r)))}return e&&e.includes(t)},p=(e,t)=>{if(o.value){const{valueKey:r}=n.props;return yb(e,r)===yb(t,r)}return e===t};nr((()=>i.value),(()=>{e.created||n.props.remote||n.setSelected()})),nr((()=>e.value),((t,r)=>{const{remote:o,valueKey:l}=n.props;if(Object.is(t,r)||(n.onOptionDestroy(r,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!o){if(l&&"object"==typeof t&&"object"==typeof r&&t[l]===r[l])return;n.setSelected()}})),nr((()=>r.disabled),(()=>{t.groupDisabled=r.disabled}),{immediate:!0});const{queryChange:f}=jt(n);return nr(f,(r=>{const{query:o}=Gt(r),l=new RegExp(Az(o),"i");t.visible=l.test(i.value)||e.created,t.visible||n.filteredOptionsCount--}),{immediate:!0}),{select:n,currentLabel:i,currentValue:s,itemSelected:l,isDisabled:u,hoverItem:()=>{e.disabled||r.disabled||(n.hoverIndex=n.optionsArray.indexOf(c.proxy))}}}(e,n),{visible:s,hover:u}=en(n),c=$l().proxy;return a.onOptionCreate(c),Br((()=>{const e=c.value,{selected:t}=a,n=(a.props.multiple?t:[t]).some((e=>e.value===c.value));wn((()=>{a.cachedOptions.get(e)!==c||n||a.cachedOptions.delete(e)})),a.onOptionDestroy(e,c)})),{ns:t,currentLabel:r,itemSelected:o,isDisabled:l,select:a,hoverItem:i,visible:s,hover:u,selectOptionClick:function(){!0!==e.disabled&&!0!==n.groupDisabled&&a.handleOptionSelect(c)},states:n}}});var q7=UG(K7,[["render",function(e,t,n,r,o,l){return ir((vl(),bl("li",{class:X([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...t)=>e.hoverItem&&e.hoverItem(...t)),onClick:t[1]||(t[1]=gi(((...t)=>e.selectOptionClick&&e.selectOptionClick(...t)),["stop"]))},[eo(e.$slots,"default",{},(()=>[El("span",null,ve(e.currentLabel),1)]))],34)),[[wi,e.visible]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const Y7=wr({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=zo(U7),t=tq("select"),n=oa((()=>e.props.popperClass)),r=oa((()=>e.props.multiple)),o=oa((()=>e.props.fitInputWidth)),l=Wt("");function a(){var t;l.value=`${null==(t=e.selectWrapper)?void 0:t.offsetWidth}px`}return Nr((()=>{a(),hp(e.selectWrapper,a)})),{ns:t,minWidth:l,popperClass:n,isMultiple:r,isFitInputWidth:o}}});var G7=UG(Y7,[["render",function(e,t,n,r,o,l){return vl(),bl("div",{class:X([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:K({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[eo(e.$slots,"default")],6)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);let J7=!1;const X7=(e,t,n)=>{const{t:r}=JK(),o=tq("select");WK({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},oa((()=>!1===e.suffixTransition)));const l=Wt(null),a=Wt(null),i=Wt(null),s=Wt(null),u=Wt(null),c=Wt(null),d=Wt(null),p=Wt(-1),f=Ut({query:""}),v=Ut(""),h=Wt([]);let m=0;const{form:b,formItem:x}=uJ(),C=oa((()=>!e.filterable||e.multiple||!t.visible)),k=oa((()=>e.disabled||(null==b?void 0:b.disabled))),_=oa((()=>{const n=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:void 0!==e.modelValue&&null!==e.modelValue&&""!==e.modelValue;return e.clearable&&!k.value&&t.inputHovering&&n})),E=oa((()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon)),O=oa((()=>o.is("reverse",E.value&&t.visible&&e.suffixTransition))),M=oa((()=>e.remote?300:0)),z=oa((()=>e.loading?e.loadingText||r("el.select.loading"):(!e.remote||""!==t.query||0!==t.options.size)&&(e.filterable&&t.query&&t.options.size>0&&0===t.filteredOptionsCount?e.noMatchText||r("el.select.noMatch"):0===t.options.size?e.noDataText||r("el.select.noData"):null))),T=oa((()=>{const e=Array.from(t.options.values()),n=[];return h.value.forEach((t=>{const r=e.findIndex((e=>e.currentLabel===t));r>-1&&n.push(e[r])})),n.length?n:e})),A=oa((()=>Array.from(t.cachedOptions.values()))),L=oa((()=>{const n=T.value.filter((e=>!e.created)).some((e=>e.currentLabel===t.query));return e.filterable&&e.allowCreate&&""!==t.query&&!n})),I=iJ(),R=oa((()=>["small"].includes(I.value)?"small":"default")),P=oa({get:()=>t.visible&&!1!==z.value,set(e){t.visible=e}});nr([()=>k.value,()=>I.value,()=>null==b?void 0:b.size],(()=>{wn((()=>{N()}))})),nr((()=>e.placeholder),(n=>{t.cachedPlaceHolder=t.currentPlaceholder=n,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")})),nr((()=>e.modelValue),((n,r)=>{e.multiple&&(N(),n&&n.length>0||a.value&&""!==t.query?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",j(t.query))),H(),e.filterable&&!e.multiple&&(t.inputLength=20),!$_(n,r)&&e.validateEvent&&(null==x||x.validate("change").catch((e=>{})))}),{flush:"post",deep:!0}),nr((()=>t.visible),(r=>{var o,l,u,c,d;r?(null==(l=null==(o=s.value)?void 0:o.updatePopper)||l.call(o),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,null==(c=null==(u=i.value)?void 0:u.focus)||c.call(u),e.multiple?null==(d=a.value)||d.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),j(t.query),e.multiple||e.remote||(f.value.query="",Yt(f),Yt(v)))):(e.filterable&&(g(e.filterMethod)&&e.filterMethod(""),g(e.remoteMethod)&&e.remoteMethod("")),a.value&&a.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,$(),wn((()=>{a.value&&""===a.value.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",r)})),nr((()=>t.options.entries()),(()=>{var n,r,o;if(!Xi)return;null==(r=null==(n=s.value)?void 0:n.updatePopper)||r.call(n),e.multiple&&N();const l=(null==(o=c.value)?void 0:o.querySelectorAll("input"))||[];Array.from(l).includes(document.activeElement)||H(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&B()}),{flush:"post"}),nr((()=>t.hoverIndex),(e=>{Mz(e)&&e>-1?p.value=T.value[e]||{}:p.value={},T.value.forEach((e=>{e.hover=p.value===e}))}));const N=()=>{wn((()=>{var e,n;if(!l.value)return;const r=l.value.$el.querySelector("input");m=m||(r.clientHeight>0?r.clientHeight+2:0);const o=u.value,a=(c=I.value||(null==b?void 0:b.size),TK[c||"default"]),i=I.value||a===m||m<=0?a:m;var c;!(null===r.offsetParent)&&(r.style.height=(0===t.selected.length?i:Math.max(o?o.clientHeight+(o.clientHeight>i?6:0):0,i))-2+"px"),t.tagInMultiLine=Number.parseFloat(r.style.height)>=i,t.visible&&!1!==z.value&&(null==(n=null==(e=s.value)?void 0:e.updatePopper)||n.call(e))}))},j=async n=>{t.previousQuery===n||t.isOnComposition||(null!==t.previousQuery||!g(e.filterMethod)&&!g(e.remoteMethod)?(t.previousQuery=n,wn((()=>{var e,n;t.visible&&(null==(n=null==(e=s.value)?void 0:e.updatePopper)||n.call(e))})),t.hoverIndex=-1,e.multiple&&e.filterable&&wn((()=>{const n=15*a.value.value.length+20;t.inputLength=e.collapseTags?Math.min(50,n):n,V(),N()})),e.remote&&g(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(n)):g(e.filterMethod)?(e.filterMethod(n),Yt(v)):(t.filteredOptionsCount=t.optionsCount,f.value.query=n,Yt(f),Yt(v)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await wn(),B())):t.previousQuery=n)},V=()=>{""!==t.currentPlaceholder&&(t.currentPlaceholder=a.value.value?"":t.cachedPlaceHolder)},B=()=>{const e=T.value.filter((e=>e.visible&&!e.disabled&&!e.states.groupDisabled)),n=e.find((e=>e.created)),r=e[0];t.hoverIndex=Y(T.value,n||r)},H=()=>{var n;if(!e.multiple){const r=D(e.modelValue);return(null==(n=r.props)?void 0:n.created)?(t.createdLabel=r.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=r.currentLabel,t.selected=r,void(e.filterable&&(t.query=t.selectedLabel))}t.selectedLabel="";const r=[];Array.isArray(e.modelValue)&&e.modelValue.forEach((e=>{r.push(D(e))})),t.selected=r,wn((()=>{N()}))},D=n=>{let r;const o="object"===S(n).toLowerCase(),l="null"===S(n).toLowerCase(),a="undefined"===S(n).toLowerCase();for(let s=t.cachedOptions.size-1;s>=0;s--){const t=A.value[s];if(o?yb(t.value,e.valueKey)===yb(n,e.valueKey):t.value===n){r={value:n,currentLabel:t.currentLabel,isDisabled:t.isDisabled};break}}if(r)return r;const i={value:n,currentLabel:o?n.label:l||a?"":n};return e.multiple&&(i.hitState=!1),i},$=()=>{setTimeout((()=>{const n=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map((e=>T.value.findIndex((t=>yb(t,n)===yb(e,n)))))):t.hoverIndex=-1:t.hoverIndex=T.value.findIndex((e=>ee(e)===ee(t.selected)))}),300)},F=Pk((()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,j(t.query))}),M.value),W=Pk((e=>{j(e.target.value)}),M.value),U=t=>{$_(e.modelValue,t)||n.emit(EK,t)},K=r=>{r.stopPropagation();const o=e.multiple?[]:"";if(!y(o))for(const e of t.selected)e.isDisabled&&o.push(e.value);n.emit(_K,o),U(o),t.hoverIndex=-1,t.visible=!1,n.emit("clear")},q=r=>{var o;if(e.multiple){const l=(e.modelValue||[]).slice(),i=Y(l,r.value);i>-1?l.splice(i,1):(e.multipleLimit<=0||l.length{J(r)}))},Y=(t=[],n)=>{if(!w(n))return t.indexOf(n);const r=e.valueKey;let o=-1;return t.some(((e,t)=>jt(yb(e,r))===yb(n,r)&&(o=t,!0))),o},G=()=>{const e=a.value||l.value;e&&(null==e||e.focus())},J=e=>{var t,n,r,l,a;const i=Array.isArray(e)?e[0]:e;let u=null;if(null==i?void 0:i.value){const e=T.value.filter((e=>e.value===i.value));e.length>0&&(u=e[0].$el)}if(s.value&&u){const e=null==(l=null==(r=null==(n=null==(t=s.value)?void 0:t.popperRef)?void 0:n.contentRef)?void 0:r.querySelector)?void 0:l.call(r,`.${o.be("dropdown","wrap")}`);e&&qz(e,u)}null==(a=d.value)||a.handleScroll()},X=e=>{if(!Array.isArray(t.selected))return;const n=t.selected[t.selected.length-1];return n?!0===e||!1===e?(n.hitState=e,e):(n.hitState=!n.hitState,n.hitState):void 0},Q=()=>{t.visible=!1},Z=e=>{var n;e&&!t.mouseEnter||k.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:s.value&&s.value.isFocusInsideContent()||(t.visible=!t.visible),t.visible&&(null==(n=a.value||l.value)||n.focus()))},ee=t=>w(t.value)?yb(t.value,e.valueKey):t.value,te=oa((()=>T.value.filter((e=>e.visible)).every((e=>e.disabled)))),ne=oa((()=>t.selected.slice(0,e.maxCollapseTags))),re=oa((()=>t.selected.slice(e.maxCollapseTags))),oe=e=>{if(t.visible){if(0!==t.options.size&&0!==t.filteredOptionsCount&&!t.isOnComposition&&!te.value){"next"===e?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):"prev"===e&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const n=T.value[t.hoverIndex];!0!==n.disabled&&!0!==n.states.groupDisabled&&n.visible||oe(e),wn((()=>J(p.value)))}}else t.visible=!0};return{optionList:h,optionsArray:T,selectSize:I,handleResize:()=>{var n,r,o;t.inputWidth=null==(o=l.value)?void 0:o.$el.offsetWidth,null==(r=null==(n=s.value)?void 0:n.updatePopper)||r.call(n),e.multiple&&N()},debouncedOnInputChange:F,debouncedQueryChange:W,deletePrevTag:r=>{if(r.code!==kK.delete){if(r.target.value.length<=0&&!X()){const t=e.modelValue.slice();t.pop(),n.emit(_K,t),U(t)}1===r.target.value.length&&0===e.modelValue.length&&(t.currentPlaceholder=t.cachedPlaceHolder)}},deleteTag:(r,o)=>{const l=t.selected.indexOf(o);if(l>-1&&!k.value){const t=e.modelValue.slice();t.splice(l,1),n.emit(_K,t),U(t),n.emit("remove-tag",o.value)}r.stopPropagation()},deleteSelected:K,handleOptionSelect:q,scrollToOption:J,readonly:C,resetInputHeight:N,showClose:_,iconComponent:E,iconReverse:O,showNewOption:L,collapseTagSize:R,setSelected:H,managePlaceholder:V,selectDisabled:k,emptyText:z,toggleLastOptionHitState:X,resetInputState:e=>{e.code!==kK.backspace&&X(!1),t.inputLength=15*a.value.value.length+20,N()},handleComposition:e=>{const n=e.target.value;if("compositionend"===e.type)t.isOnComposition=!1,wn((()=>j(n)));else{const e=n[n.length-1]||"";t.isOnComposition=!jK(e)}},onOptionCreate:e=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(e.value,e),t.cachedOptions.set(e.value,e)},onOptionDestroy:(e,n)=>{t.options.get(e)===n&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(e))},handleMenuEnter:()=>{wn((()=>J(t.selected)))},handleFocus:r=>{J7?J7=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",r))},blur:()=>{var e,n,r;t.visible=!1,null==(e=l.value)||e.blur(),null==(r=null==(n=i.value)?void 0:n.blur)||r.call(n)},handleBlur:e=>{setTimeout((()=>{var r;(null==(r=s.value)?void 0:r.isFocusInsideContent())?J7=!0:(t.visible&&Q(),n.emit("blur",e))}))},handleClearClick:e=>{K(e)},handleClose:Q,handleKeydownEscape:e=>{t.visible&&(e.preventDefault(),e.stopPropagation(),t.visible=!1)},toggleMenu:Z,selectOption:()=>{t.visible?T.value[t.hoverIndex]&&q(T.value[t.hoverIndex]):Z()},getValueKey:ee,navigateOptions:oe,dropMenuVisible:P,queryChange:f,groupQueryChange:v,showTagList:ne,collapseTagList:re,reference:l,input:a,iOSInput:i,tooltipRef:s,tags:u,selectWrapper:c,scrollbar:d,handleMouseEnter:()=>{t.mouseEnter=!0},handleMouseLeave:()=>{t.mouseEnter=!1}}};var Q7=wr({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let r=[];return()=>{var e,o;const l=null==(e=t.default)?void 0:e.call(t),a=[];return l.length&&function e(t){Array.isArray(t)&&t.forEach((t=>{var n,r,o,l;const i=null==(n=(null==t?void 0:t.type)||{})?void 0:n.name;"ElOptionGroup"===i?e(y(t.children)||Array.isArray(t.children)||!g(null==(r=t.children)?void 0:r.default)?t.children:null==(o=t.children)?void 0:o.default()):"ElOption"===i?a.push(null==(l=t.props)?void 0:l.label):Array.isArray(t.children)&&e(t.children)}))}(null==(o=l[0])?void 0:o.children),function(e,t){if(e.length!==t.length)return!1;for(const[n]of e.entries())if(e[n]!=t[n])return!1;return!0}(a,r)||(r=a,n("update-options",a)),l}}});const Z7="ElSelect",eee=wr({name:Z7,componentName:Z7,components:{ElInput:hX,ElSelectMenu:G7,ElOption:q7,ElOptions:Q7,ElTag:b4,ElScrollbar:EX,ElTooltip:BQ,ElIcon:ZG},directives:{ClickOutside:N0},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:AK},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},teleported:xQ.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:vK,default:BL},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:vK,default:pT},tagType:{...h4.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:yq,default:"bottom-start"}},emits:[_K,EK,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=tq("select"),r=tq("input"),{t:o}=JK(),l=function(e){const{t:t}=JK();return zt({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,tagInMultiLine:!1,mouseEnter:!1})}(e),{optionList:a,optionsArray:i,selectSize:s,readonly:u,handleResize:c,collapseTagSize:d,debouncedOnInputChange:p,debouncedQueryChange:f,deletePrevTag:v,deleteTag:h,deleteSelected:m,handleOptionSelect:g,scrollToOption:y,setSelected:b,resetInputHeight:w,managePlaceholder:x,showClose:C,selectDisabled:k,iconComponent:S,iconReverse:_,showNewOption:E,emptyText:O,toggleLastOptionHitState:M,resetInputState:z,handleComposition:T,onOptionCreate:A,onOptionDestroy:L,handleMenuEnter:I,handleFocus:R,blur:P,handleBlur:N,handleClearClick:j,handleClose:V,handleKeydownEscape:B,toggleMenu:H,selectOption:D,getValueKey:$,navigateOptions:F,dropMenuVisible:W,reference:U,input:K,iOSInput:q,tooltipRef:Y,tags:G,selectWrapper:J,scrollbar:X,queryChange:Q,groupQueryChange:Z,handleMouseEnter:ee,handleMouseLeave:te,showTagList:ne,collapseTagList:re}=X7(e,l,t),{focus:oe}=(le=U,{focus:()=>{var e,t;null==(t=null==(e=le.value)?void 0:e.focus)||t.call(e)}});var le;const{inputWidth:ae,selected:ie,inputLength:se,filteredOptionsCount:ue,visible:ce,selectedLabel:de,hoverIndex:pe,query:fe,inputHovering:ve,currentPlaceholder:he,menuVisibleOnFocus:me,isOnComposition:ge,options:ye,cachedOptions:be,optionsCount:we,prefixWidth:xe,tagInMultiLine:Ce}=en(l),ke=oa((()=>{const t=[n.b()],r=Gt(s);return r&&t.push(n.m(r)),e.disabled&&t.push(n.m("disabled")),t})),Se=oa((()=>({maxWidth:Gt(ae)-32+"px",width:"100%"}))),_e=oa((()=>({maxWidth:(Gt(ae)>123?Gt(ae)-123:Gt(ae)-75)+"px"})));Mo(U7,zt({props:e,options:ye,optionsArray:i,cachedOptions:be,optionsCount:we,filteredOptionsCount:ue,hoverIndex:pe,handleOptionSelect:g,onOptionCreate:A,onOptionDestroy:L,selectWrapper:J,selected:ie,setSelected:b,queryChange:Q,groupQueryChange:Z})),Nr((()=>{l.cachedPlaceHolder=he.value=e.placeholder||(()=>o("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(he.value=""),hp(J,c),e.remote&&e.multiple&&w(),wn((()=>{const e=U.value&&U.value.$el;if(e&&(ae.value=e.getBoundingClientRect().width,t.slots.prefix)){const t=e.querySelector(`.${r.e("prefix")}`);xe.value=Math.max(t.getBoundingClientRect().width+5,30)}})),b()})),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(_K,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(_K,"");const Ee=oa((()=>{var e,t;return null==(t=null==(e=Y.value)?void 0:e.popperRef)?void 0:t.contentRef}));return{isIOS:is,onOptionsRendered:e=>{a.value=e},tagInMultiLine:Ce,prefixWidth:xe,selectSize:s,readonly:u,handleResize:c,collapseTagSize:d,debouncedOnInputChange:p,debouncedQueryChange:f,deletePrevTag:v,deleteTag:h,deleteSelected:m,handleOptionSelect:g,scrollToOption:y,inputWidth:ae,selected:ie,inputLength:se,filteredOptionsCount:ue,visible:ce,selectedLabel:de,hoverIndex:pe,query:fe,inputHovering:ve,currentPlaceholder:he,menuVisibleOnFocus:me,isOnComposition:ge,options:ye,resetInputHeight:w,managePlaceholder:x,showClose:C,selectDisabled:k,iconComponent:S,iconReverse:_,showNewOption:E,emptyText:O,toggleLastOptionHitState:M,resetInputState:z,handleComposition:T,handleMenuEnter:I,handleFocus:R,blur:P,handleBlur:N,handleClearClick:j,handleClose:V,handleKeydownEscape:B,toggleMenu:H,selectOption:D,getValueKey:$,navigateOptions:F,dropMenuVisible:W,focus:oe,reference:U,input:K,iOSInput:q,tooltipRef:Y,popperPaneRef:Ee,tags:G,selectWrapper:J,scrollbar:X,wrapperKls:ke,selectTagsStyle:Se,nsSelect:n,tagTextStyle:_e,handleMouseEnter:ee,handleMouseLeave:te,showTagList:ne,collapseTagList:re}}}),tee=["disabled","autocomplete"],nee=["disabled"],ree={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};var oee=UG(eee,[["render",function(e,t,n,r,o,l){const a=Kr("el-tag"),i=Kr("el-tooltip"),s=Kr("el-icon"),u=Kr("el-input"),c=Kr("el-option"),d=Kr("el-options"),p=Kr("el-scrollbar"),f=Kr("el-select-menu"),v=Gr("click-outside");return ir((vl(),bl("div",{ref:"selectWrapper",class:X(e.wrapperKls),onMouseenter:t[21]||(t[21]=(...t)=>e.handleMouseEnter&&e.handleMouseEnter(...t)),onMouseleave:t[22]||(t[22]=(...t)=>e.handleMouseLeave&&e.handleMouseLeave(...t)),onClick:t[23]||(t[23]=gi(((...t)=>e.toggleMenu&&e.toggleMenu(...t)),["stop"]))},[Ol(i,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:Bn((()=>[El("div",{class:"select-trigger",onMouseenter:t[19]||(t[19]=t=>e.inputHovering=!0),onMouseleave:t[20]||(t[20]=t=>e.inputHovering=!1)},[e.multiple?(vl(),bl("div",{key:0,ref:"tags",class:X([e.nsSelect.e("tags"),e.nsSelect.is("disabled",e.selectDisabled)]),style:K(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(vl(),wl(La,{key:0,onAfterLeave:e.resetInputHeight},{default:Bn((()=>[El("span",{class:X([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(vl(!0),bl(sl,null,Qr(e.showTagList,(t=>(vl(),wl(a,{key:e.getValueKey(t),closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,hit:t.hitState,type:e.tagType,"disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:Bn((()=>[El("span",{class:X(e.nsSelect.e("tags-text")),style:K(e.tagTextStyle)},ve(t.currentLabel),7)])),_:2},1032,["closable","size","hit","type","onClose"])))),128)),e.selected.length>e.maxCollapseTags?(vl(),wl(a,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:Bn((()=>[e.collapseTagsTooltip?(vl(),wl(i,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:Bn((()=>[El("span",{class:X(e.nsSelect.e("tags-text"))},"+ "+ve(e.selected.length-e.maxCollapseTags),3)])),content:Bn((()=>[El("div",{class:X(e.nsSelect.e("collapse-tags"))},[(vl(!0),bl(sl,null,Qr(e.collapseTagList,(t=>(vl(),bl("div",{key:e.getValueKey(t),class:X(e.nsSelect.e("collapse-tag"))},[Ol(a,{class:"in-tooltip",closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,hit:t.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:n=>e.deleteTag(n,t)},{default:Bn((()=>[El("span",{class:X(e.nsSelect.e("tags-text")),style:K({maxWidth:e.inputWidth-75+"px"})},ve(t.currentLabel),7)])),_:2},1032,["closable","size","hit","type","onClose"])],2)))),128))],2)])),_:1},8,["disabled","effect","teleported"])):(vl(),bl("span",{key:1,class:X(e.nsSelect.e("tags-text"))},"+ "+ve(e.selected.length-e.maxCollapseTags),3))])),_:1},8,["size","type"])):Ll("v-if",!0)],2)])),_:1},8,["onAfterLeave"])):Ll("v-if",!0),e.collapseTags?Ll("v-if",!0):(vl(),wl(La,{key:1,onAfterLeave:e.resetInputHeight},{default:Bn((()=>[El("span",{class:X([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(vl(!0),bl(sl,null,Qr(e.selected,(t=>(vl(),wl(a,{key:e.getValueKey(t),closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,hit:t.hitState,type:e.tagType,"disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:Bn((()=>[El("span",{class:X(e.nsSelect.e("tags-text")),style:K({maxWidth:e.inputWidth-75+"px"})},ve(t.currentLabel),7)])),_:2},1032,["closable","size","hit","type","onClose"])))),128))],2)])),_:1},8,["onAfterLeave"])),e.filterable?ir((vl(),bl("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=t=>e.query=t),type:"text",class:X([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.is("disabled",e.selectDisabled)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:K({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:e.inputLength/(e.inputWidth-32)+"%",maxWidth:e.inputWidth-42+"px"}),onFocus:t[1]||(t[1]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onBlur:t[2]||(t[2]=(...t)=>e.handleBlur&&e.handleBlur(...t)),onKeyup:t[3]||(t[3]=(...t)=>e.managePlaceholder&&e.managePlaceholder(...t)),onKeydown:[t[4]||(t[4]=(...t)=>e.resetInputState&&e.resetInputState(...t)),t[5]||(t[5]=bi(gi((t=>e.navigateOptions("next")),["prevent"]),["down"])),t[6]||(t[6]=bi(gi((t=>e.navigateOptions("prev")),["prevent"]),["up"])),t[7]||(t[7]=bi(((...t)=>e.handleKeydownEscape&&e.handleKeydownEscape(...t)),["esc"])),t[8]||(t[8]=bi(gi(((...t)=>e.selectOption&&e.selectOption(...t)),["stop","prevent"]),["enter"])),t[9]||(t[9]=bi(((...t)=>e.deletePrevTag&&e.deletePrevTag(...t)),["delete"])),t[10]||(t[10]=bi((t=>e.visible=!1),["tab"]))],onCompositionstart:t[11]||(t[11]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onCompositionupdate:t[12]||(t[12]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onCompositionend:t[13]||(t[13]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onInput:t[14]||(t[14]=(...t)=>e.debouncedQueryChange&&e.debouncedQueryChange(...t))},null,46,tee)),[[oi,e.query]]):Ll("v-if",!0)],6)):Ll("v-if",!0),Ll(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(vl(),bl("input",{key:1,ref:"iOSInput",class:X([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.em("input","iOS")]),disabled:e.selectDisabled,type:"text"},null,10,nee)):Ll("v-if",!0),Ol(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[15]||(t[15]=t=>e.selectedLabel=t),type:"text",placeholder:"function"==typeof e.currentPlaceholder?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:X([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[16]||(t[16]=bi(gi((t=>e.navigateOptions("next")),["stop","prevent"]),["down"])),t[17]||(t[17]=bi(gi((t=>e.navigateOptions("prev")),["stop","prevent"]),["up"])),bi(gi(e.selectOption,["stop","prevent"]),["enter"]),bi(e.handleKeydownEscape,["esc"]),t[18]||(t[18]=bi((t=>e.visible=!1),["tab"]))]},Zr({suffix:Bn((()=>[e.iconComponent&&!e.showClose?(vl(),wl(s,{key:0,class:X([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:Bn((()=>[(vl(),wl(Yr(e.iconComponent)))])),_:1},8,["class"])):Ll("v-if",!0),e.showClose&&e.clearIcon?(vl(),wl(s,{key:1,class:X([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:Bn((()=>[(vl(),wl(Yr(e.clearIcon)))])),_:1},8,["class","onClick"])):Ll("v-if",!0)])),_:2},[e.$slots.prefix?{name:"prefix",fn:Bn((()=>[El("div",ree,[eo(e.$slots,"prefix")])]))}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)])),content:Bn((()=>[Ol(f,null,{default:Bn((()=>[ir(Ol(p,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:X([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&0===e.filteredOptionsCount)])},{default:Bn((()=>[e.showNewOption?(vl(),wl(c,{key:0,value:e.query,created:!0},null,8,["value"])):Ll("v-if",!0),Ol(d,{onUpdateOptions:e.onOptionsRendered},{default:Bn((()=>[eo(e.$slots,"default")])),_:3},8,["onUpdateOptions"])])),_:3},8,["wrap-class","view-class","class"]),[[wi,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.size)?(vl(),bl(sl,{key:0},[e.$slots.empty?eo(e.$slots,"empty",{key:0}):(vl(),bl("p",{key:1,class:X(e.nsSelect.be("dropdown","empty"))},ve(e.emptyText),3))],64)):Ll("v-if",!0)])),_:3})])),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[v,e.handleClose,e.popperPaneRef]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const lee=wr({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=tq("select"),n=Wt(!0),r=$l(),o=Wt([]);Mo(W7,zt({...en(e)}));const l=zo(U7);Nr((()=>{o.value=a(r.subTree)}));const a=e=>{const t=[];return Array.isArray(e.children)&&e.children.forEach((e=>{var n;e.type&&"ElOption"===e.type.name&&e.component&&e.component.proxy?t.push(e.component.proxy):(null==(n=e.children)?void 0:n.length)&&t.push(...a(e))})),t},{groupQueryChange:i}=jt(l);return nr(i,(()=>{n.value=o.value.some((e=>!0===e.visible))}),{flush:"post"}),{visible:n,ns:t}}});var aee=UG(lee,[["render",function(e,t,n,r,o,l){return ir((vl(),bl("ul",{class:X(e.ns.be("group","wrap"))},[El("li",{class:X(e.ns.be("group","title"))},ve(e.label),3),El("li",null,[El("ul",{class:X(e.ns.b("group"))},[eo(e.$slots,"default")],2)])],2)),[[wi,e.visible]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const iee=bK(oee,{Option:q7,OptionGroup:aee}),see=xK(q7),uee=xK(aee),cee=()=>zo(T7,{}),dee=fK({pageSize:{type:Number,required:!0},pageSizes:{type:Array,default:()=>[10,20,30,40,50,100]},popperClass:{type:String},disabled:Boolean,size:{type:String,values:zK}}),pee=wr({name:"ElPaginationSizes"}),fee=wr({...pee,props:dee,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=JK(),o=tq("pagination"),l=cee(),a=Wt(n.pageSize);nr((()=>n.pageSizes),((e,r)=>{if(!$_(e,r)&&Array.isArray(e)){const r=e.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",r)}})),nr((()=>n.pageSize),(e=>{a.value=e}));const i=oa((()=>n.pageSizes));function s(e){var t;e!==a.value&&(a.value=e,null==(t=l.handleSizeChange)||t.call(l,Number(e)))}return(e,t)=>(vl(),bl("span",{class:X(Gt(o).e("sizes"))},[Ol(Gt(iee),{"model-value":a.value,disabled:e.disabled,"popper-class":e.popperClass,size:e.size,"validate-event":!1,onChange:s},{default:Bn((()=>[(vl(!0),bl(sl,null,Qr(Gt(i),(e=>(vl(),wl(Gt(see),{key:e,value:e,label:e+Gt(r)("el.pagination.pagesize")},null,8,["value","label"])))),128))])),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var vee=UG(fee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const hee=fK({size:{type:String,values:zK}}),mee=["disabled"],gee=wr({name:"ElPaginationJumper"}),yee=wr({...gee,props:hee,setup(e){const{t:t}=JK(),n=tq("pagination"),{pageCount:r,disabled:o,currentPage:l,changeEvent:a}=cee(),i=Wt(),s=oa((()=>{var e;return null!=(e=i.value)?e:null==l?void 0:l.value}));function u(e){i.value=e?+e:""}function c(e){e=Math.trunc(+e),null==a||a(e),i.value=void 0}return(e,l)=>(vl(),bl("span",{class:X(Gt(n).e("jump")),disabled:Gt(o)},[El("span",{class:X([Gt(n).e("goto")])},ve(Gt(t)("el.pagination.goto")),3),Ol(Gt(hX),{size:e.size,class:X([Gt(n).e("editor"),Gt(n).is("in-pagination")]),min:1,max:Gt(r),disabled:Gt(o),"model-value":Gt(s),"validate-event":!1,label:Gt(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:c},null,8,["size","class","max","disabled","model-value","label"]),El("span",{class:X([Gt(n).e("classifier")])},ve(Gt(t)("el.pagination.pageClassifier")),3)],10,mee))}});var bee=UG(yee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const wee=fK({total:{type:Number,default:1e3}}),xee=["disabled"],Cee=wr({name:"ElPaginationTotal"}),kee=wr({...Cee,props:wee,setup(e){const{t:t}=JK(),n=tq("pagination"),{disabled:r}=cee();return(e,o)=>(vl(),bl("span",{class:X(Gt(n).e("total")),disabled:Gt(r)},ve(Gt(t)("el.pagination.total",{total:e.total})),11,xee))}});var See=UG(kee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const _ee=fK({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),Eee=["onKeyup"],Oee=["aria-current","aria-label","tabindex"],Mee=["tabindex","aria-label"],zee=["aria-current","aria-label","tabindex"],Tee=["tabindex","aria-label"],Aee=["aria-current","aria-label","tabindex"],Lee=wr({name:"ElPaginationPager"}),Iee=wr({...Lee,props:_ee,emits:["change"],setup(e,{emit:t}){const n=e,r=tq("pager"),o=tq("icon"),{t:l}=JK(),a=Wt(!1),i=Wt(!1),s=Wt(!1),u=Wt(!1),c=Wt(!1),d=Wt(!1),p=oa((()=>{const e=n.pagerCount,t=(e-1)/2,r=Number(n.currentPage),o=Number(n.pageCount);let l=!1,a=!1;o>e&&(r>e-t&&(l=!0),r["more","btn-quickprev",o.b(),r.is("disabled",n.disabled)])),v=oa((()=>["more","btn-quicknext",o.b(),r.is("disabled",n.disabled)])),h=oa((()=>n.disabled?-1:0));function m(e=!1){n.disabled||(e?s.value=!0:u.value=!0)}function g(e=!1){e?c.value=!0:d.value=!0}function y(e){const r=e.target;if("li"===r.tagName.toLowerCase()&&Array.from(r.classList).includes("number")){const e=Number(r.textContent);e!==n.currentPage&&t("change",e)}else"li"===r.tagName.toLowerCase()&&Array.from(r.classList).includes("more")&&b(e)}function b(e){const r=e.target;if("ul"===r.tagName.toLowerCase()||n.disabled)return;let o=Number(r.textContent);const l=n.pageCount,a=n.currentPage,i=n.pagerCount-2;r.className.includes("more")&&(r.className.includes("quickprev")?o=a-i:r.className.includes("quicknext")&&(o=a+i)),Number.isNaN(+o)||(o<1&&(o=1),o>l&&(o=l)),o!==a&&t("change",o)}return Zn((()=>{const e=(n.pagerCount-1)/2;a.value=!1,i.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-e&&(a.value=!0),n.currentPage(vl(),bl("ul",{class:X(Gt(r).b()),onClick:b,onKeyup:bi(y,["enter"])},[e.pageCount>0?(vl(),bl("li",{key:0,class:X([[Gt(r).is("active",1===e.currentPage),Gt(r).is("disabled",e.disabled)],"number"]),"aria-current":1===e.currentPage,"aria-label":Gt(l)("el.pagination.currentPage",{pager:1}),tabindex:Gt(h)}," 1 ",10,Oee)):Ll("v-if",!0),a.value?(vl(),bl("li",{key:1,class:X(Gt(f)),tabindex:Gt(h),"aria-label":Gt(l)("el.pagination.prevPages",{pager:e.pagerCount-2}),onMouseenter:t[0]||(t[0]=e=>m(!0)),onMouseleave:t[1]||(t[1]=e=>s.value=!1),onFocus:t[2]||(t[2]=e=>g(!0)),onBlur:t[3]||(t[3]=e=>c.value=!1)},[!s.value&&!c.value||e.disabled?(vl(),wl(Gt(TB),{key:1})):(vl(),wl(Gt(YI),{key:0}))],42,Mee)):Ll("v-if",!0),(vl(!0),bl(sl,null,Qr(Gt(p),(t=>(vl(),bl("li",{key:t,class:X([[Gt(r).is("active",e.currentPage===t),Gt(r).is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===t,"aria-label":Gt(l)("el.pagination.currentPage",{pager:t}),tabindex:Gt(h)},ve(t),11,zee)))),128)),i.value?(vl(),bl("li",{key:2,class:X(Gt(v)),tabindex:Gt(h),"aria-label":Gt(l)("el.pagination.nextPages",{pager:e.pagerCount-2}),onMouseenter:t[4]||(t[4]=e=>m()),onMouseleave:t[5]||(t[5]=e=>u.value=!1),onFocus:t[6]||(t[6]=e=>g()),onBlur:t[7]||(t[7]=e=>d.value=!1)},[!u.value&&!d.value||e.disabled?(vl(),wl(Gt(TB),{key:1})):(vl(),wl(Gt(XI),{key:0}))],42,Tee)):Ll("v-if",!0),e.pageCount>1?(vl(),bl("li",{key:3,class:X([[Gt(r).is("active",e.currentPage===e.pageCount),Gt(r).is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===e.pageCount,"aria-label":Gt(l)("el.pagination.currentPage",{pager:e.pageCount}),tabindex:Gt(h)},ve(e.pageCount),11,Aee)):Ll("v-if",!0)],42,Eee))}});var Ree=UG(Iee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const Pee=e=>"number"!=typeof e,Nee=fK({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>Mz(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2==1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:Array,default:()=>[10,20,30,40,50,100]},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:vK,default:()=>yT},nextText:{type:String,default:""},nextIcon:{type:vK,default:()=>ST},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean});var jee=wr({name:"ElPagination",props:Nee,emits:{"update:current-page":e=>Mz(e),"update:page-size":e=>Mz(e),"size-change":e=>Mz(e),"current-change":e=>Mz(e),"prev-click":e=>Mz(e),"next-click":e=>Mz(e)},setup(e,{emit:t,slots:n}){const{t:r}=JK(),o=tq("pagination"),l=$l().vnode.props||{},a="onUpdate:currentPage"in l||"onUpdate:current-page"in l||"onCurrentChange"in l,i="onUpdate:pageSize"in l||"onUpdate:page-size"in l||"onSizeChange"in l,s=oa((()=>{if(Pee(e.total)&&Pee(e.pageCount))return!1;if(!Pee(e.currentPage)&&!a)return!1;if(e.layout.includes("sizes"))if(Pee(e.pageCount)){if(!Pee(e.total)&&!Pee(e.pageSize)&&!i)return!1}else if(!i)return!1;return!0})),u=Wt(Pee(e.defaultPageSize)?10:e.defaultPageSize),c=Wt(Pee(e.defaultCurrentPage)?1:e.defaultCurrentPage),d=oa({get:()=>Pee(e.pageSize)?u.value:e.pageSize,set(n){Pee(e.pageSize)&&(u.value=n),i&&(t("update:page-size",n),t("size-change",n))}}),p=oa((()=>{let t=0;return Pee(e.pageCount)?Pee(e.total)||(t=Math.max(1,Math.ceil(e.total/d.value))):t=e.pageCount,t})),f=oa({get:()=>Pee(e.currentPage)?c.value:e.currentPage,set(n){let r=n;n<1?r=1:n>p.value&&(r=p.value),Pee(e.currentPage)&&(c.value=r),a&&(t("update:current-page",r),t("current-change",r))}});function v(e){f.value=e}function h(){e.disabled||(f.value-=1,t("prev-click",f.value))}function m(){e.disabled||(f.value+=1,t("next-click",f.value))}function g(e,t){e&&(e.props||(e.props={}),e.props.class=[e.props.class,t].join(" "))}return nr(p,(e=>{f.value>e&&(f.value=e)})),Mo(T7,{pageCount:p,disabled:oa((()=>e.disabled)),currentPage:f,changeEvent:v,handleSizeChange:function(e){d.value=e;const t=p.value;f.value>t&&(f.value=t)}}),()=>{var t,l;if(!s.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout)return null;if(e.hideOnSinglePage&&p.value<=1)return null;const a=[],i=[],u=la("div",{class:o.e("rightwrapper")},i),c={prev:la(j7,{disabled:e.disabled,currentPage:f.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:h}),jumper:la(bee,{size:e.small?"small":"default"}),pager:la(Ree,{currentPage:f.value,pageCount:p.value,pagerCount:e.pagerCount,onChange:v,disabled:e.disabled}),next:la(F7,{disabled:e.disabled,currentPage:f.value,pageCount:p.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:m}),sizes:la(vee,{pageSize:d.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:null!=(l=null==(t=null==n?void 0:n.default)?void 0:t.call(n))?l:null,total:la(See,{total:Pee(e.total)?0:e.total})},y=e.layout.split(",").map((e=>e.trim()));let b=!1;return y.forEach((e=>{"->"!==e?b?i.push(c[e]):a.push(c[e]):b=!0})),g(a[0],o.is("first")),g(a[a.length-1],o.is("last")),b&&i.length>0&&(g(i[0],o.is("first")),g(i[i.length-1],o.is("last")),a.push(u)),la("div",{class:[o.b(),o.is("background",e.background),{[o.m("small")]:e.small}]},a)}}});const Vee=bK(jee),Bee=fK({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:CZ,default:"primary"},cancelButtonType:{type:String,values:CZ,default:"text"},icon:{type:vK,default:()=>ID},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:xQ.teleported,persistent:xQ.persistent,width:{type:[String,Number],default:150}}),Hee={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},Dee=wr({name:"ElPopconfirm"}),$ee=wr({...Dee,props:Bee,emits:Hee,setup(e,{emit:t}){const n=e,{t:r}=JK(),o=tq("popconfirm"),l=Wt(),a=()=>{var e,t;null==(t=null==(e=l.value)?void 0:e.onClose)||t.call(e)},i=oa((()=>({width:$z(n.width)}))),s=e=>{t("confirm",e),a()},u=e=>{t("cancel",e),a()},c=oa((()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText"))),d=oa((()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText")));return(e,t)=>(vl(),wl(Gt(BQ),Nl({ref_key:"tooltipRef",ref:l,trigger:"click",effect:"light"},e.$attrs,{"popper-class":`${Gt(o).namespace.value}-popover`,"popper-style":Gt(i),teleported:e.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":e.hideAfter,persistent:e.persistent}),{content:Bn((()=>[El("div",{class:X(Gt(o).b())},[El("div",{class:X(Gt(o).e("main"))},[!e.hideIcon&&e.icon?(vl(),wl(Gt(ZG),{key:0,class:X(Gt(o).e("icon")),style:K({color:e.iconColor})},{default:Bn((()=>[(vl(),wl(Yr(e.icon)))])),_:1},8,["class","style"])):Ll("v-if",!0),Tl(" "+ve(e.title),1)],2),El("div",{class:X(Gt(o).e("action"))},[Ol(Gt(XZ),{size:"small",type:"text"===e.cancelButtonType?"":e.cancelButtonType,text:"text"===e.cancelButtonType,onClick:u},{default:Bn((()=>[Tl(ve(Gt(d)),1)])),_:1},8,["type","text"]),Ol(Gt(XZ),{size:"small",type:"text"===e.confirmButtonType?"":e.confirmButtonType,text:"text"===e.confirmButtonType,onClick:s},{default:Bn((()=>[Tl(ve(Gt(c)),1)])),_:1},8,["type","text"])],2)],2)])),default:Bn((()=>[e.$slots.reference?eo(e.$slots,"reference",{key:0}):Ll("v-if",!0)])),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}}),Fee=bK(UG($ee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]])),Wee=fK({trigger:CQ.trigger,placement:T5.placement,disabled:CQ.disabled,visible:xQ.visible,transition:xQ.transition,popperOptions:T5.popperOptions,tabindex:T5.tabindex,content:xQ.content,popperStyle:xQ.popperStyle,popperClass:xQ.popperClass,enterable:{...xQ.enterable,default:!0},effect:{...xQ.effect,default:"light"},teleported:xQ.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),Uee={"update:visible":e=>Oz(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Kee=wr({name:"ElPopover"}),qee=wr({...Kee,props:Wee,emits:Uee,setup(e,{expose:t,emit:n}){const r=e,o=oa((()=>r["onUpdate:visible"])),l=tq("popover"),a=Wt(),i=oa((()=>{var e;return null==(e=Gt(a))?void 0:e.popperRef})),s=oa((()=>[{width:$z(r.width)},r.popperStyle])),u=oa((()=>[l.b(),r.popperClass,{[l.m("plain")]:!!r.content}])),c=oa((()=>r.transition===`${l.namespace.value}-fade-in-linear`)),d=()=>{n("before-enter")},p=()=>{n("before-leave")},f=()=>{n("after-enter")},v=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:i,hide:()=>{var e;null==(e=a.value)||e.hide()}}),(e,t)=>(vl(),wl(Gt(BQ),Nl({ref_key:"tooltipRef",ref:a},e.$attrs,{trigger:e.trigger,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":Gt(u),"popper-style":Gt(s),teleported:e.teleported,persistent:e.persistent,"gpu-acceleration":Gt(c),"onUpdate:visible":Gt(o),onBeforeShow:d,onBeforeHide:p,onShow:f,onHide:v}),{content:Bn((()=>[e.title?(vl(),bl("div",{key:0,class:X(Gt(l).e("title")),role:"title"},ve(e.title),3)):Ll("v-if",!0),eo(e.$slots,"default",{},(()=>[Tl(ve(e.content),1)]))])),default:Bn((()=>[e.$slots.reference?eo(e.$slots,"reference",{key:0}):Ll("v-if",!0)])),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var Yee=UG(qee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const Gee=(e,t)=>{const n=t.arg||t.value,r=null==n?void 0:n.popperRef;r&&(r.triggerRef=e)},Jee=((e,t)=>(e.install=t=>{t.directive("popover",e)},e))({mounted(e,t){Gee(e,t)},updated(e,t){Gee(e,t)}}),Xee=bK(Yee,{directive:Jee}),Qee=fK({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},striped:Boolean,stripedFlow:Boolean,format:{type:Function,default:e=>`${e}%`}}),Zee=["aria-valuenow"],ete={viewBox:"0 0 100 100"},tte=["d","stroke","stroke-width"],nte=["d","stroke","opacity","stroke-linecap","stroke-width"],rte={key:0},ote=wr({name:"ElProgress"}),lte=wr({...ote,props:Qee,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=tq("progress"),o=oa((()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:b(t.percentage)}))),l=oa((()=>(t.strokeWidth/t.width*100).toFixed(1))),a=oa((()=>["circle","dashboard"].includes(t.type)?Number.parseInt(""+(50-Number.parseFloat(l.value)/2),10):0)),i=oa((()=>{const e=a.value,n="dashboard"===t.type;return`\n M 50 50\n m 0 ${n?"":"-"}${e}\n a ${e} ${e} 0 1 1 0 ${n?"-":""}${2*e}\n a ${e} ${e} 0 1 1 0 ${n?"":"-"}${2*e}\n `})),s=oa((()=>2*Math.PI*a.value)),u=oa((()=>"dashboard"===t.type?.75:1)),c=oa((()=>-1*s.value*(1-u.value)/2+"px")),d=oa((()=>({strokeDasharray:`${s.value*u.value}px, ${s.value}px`,strokeDashoffset:c.value}))),p=oa((()=>({strokeDasharray:`${s.value*u.value*(t.percentage/100)}px, ${s.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"}))),f=oa((()=>{let e;return e=t.color?b(t.percentage):n[t.status]||n.default,e})),v=oa((()=>"warning"===t.status?UU:"line"===t.type?"success"===t.status?IL:BL:"success"===t.status?hL:eI)),h=oa((()=>"line"===t.type?12+.4*t.strokeWidth:.111111*t.width+2)),m=oa((()=>t.format(t.percentage))),b=e=>{var n;const{color:r}=t;if(g(r))return r(e);if(y(r))return r;{const t=function(e){const t=100/e.length;return e.map(((e,n)=>y(e)?{color:e,percentage:(n+1)*t}:e)).sort(((e,t)=>e.percentage-t.percentage))}(r);for(const n of t)if(n.percentage>e)return n.color;return null==(n=t[t.length-1])?void 0:n.color}};return(e,t)=>(vl(),bl("div",{class:X([Gt(r).b(),Gt(r).m(e.type),Gt(r).is(e.status),{[Gt(r).m("without-text")]:!e.showText,[Gt(r).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},["line"===e.type?(vl(),bl("div",{key:0,class:X(Gt(r).b("bar"))},[El("div",{class:X(Gt(r).be("bar","outer")),style:K({height:`${e.strokeWidth}px`})},[El("div",{class:X([Gt(r).be("bar","inner"),{[Gt(r).bem("bar","inner","indeterminate")]:e.indeterminate},{[Gt(r).bem("bar","inner","striped")]:e.striped},{[Gt(r).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:K(Gt(o))},[(e.showText||e.$slots.default)&&e.textInside?(vl(),bl("div",{key:0,class:X(Gt(r).be("bar","innerText"))},[eo(e.$slots,"default",{percentage:e.percentage},(()=>[El("span",null,ve(Gt(m)),1)]))],2)):Ll("v-if",!0)],6)],6)],2)):(vl(),bl("div",{key:1,class:X(Gt(r).b("circle")),style:K({height:`${e.width}px`,width:`${e.width}px`})},[(vl(),bl("svg",ete,[El("path",{class:X(Gt(r).be("circle","track")),d:Gt(i),stroke:`var(${Gt(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":Gt(l),fill:"none",style:K(Gt(d))},null,14,tte),El("path",{class:X(Gt(r).be("circle","path")),d:Gt(i),stroke:Gt(f),fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":Gt(l),style:K(Gt(p))},null,14,nte)]))],6)),!e.showText&&!e.$slots.default||e.textInside?Ll("v-if",!0):(vl(),bl("div",{key:2,class:X(Gt(r).e("text")),style:K({fontSize:`${Gt(h)}px`})},[eo(e.$slots,"default",{percentage:e.percentage},(()=>[e.status?(vl(),wl(Gt(ZG),{key:1},{default:Bn((()=>[(vl(),wl(Yr(Gt(v))))])),_:1})):(vl(),bl("span",rte,ve(Gt(m)),1))]))],6))],10,Zee))}}),ate=bK(UG(lte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]])),ite=fK({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:[Array,Object],default:()=>["","",""]},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:[Array,Object],default:()=>[TF,TF,TF]},voidIcon:{type:vK,default:()=>IF},disabledVoidIcon:{type:vK,default:()=>TF},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:Array,default:()=>["Extremely bad","Disappointed","Fair","Satisfied","Surprise"]},scoreTemplate:{type:String,default:"{value}"},size:LG,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),ste={[EK]:e=>Mz(e),[_K]:e=>Mz(e)},ute=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],cte=["onMousemove","onClick"],dte=wr({name:"ElRate"}),pte=wr({...dte,props:ite,emits:ste,setup(e,{expose:t,emit:n}){const r=e;function o(e,t){const n=e=>w(e),r=Object.keys(t).map((e=>+e)).filter((r=>{const o=t[r];return n(o)&&o.excluded?ee-t)),o=t[r[0]];return n(o)&&o.value||o}const l=zo(lJ,void 0),a=zo(aJ,void 0),i=iJ(),s=tq("rate"),{inputId:u,isLabeledByFormItem:c}=cJ(r,{formItemContext:a}),d=Wt(r.modelValue),f=Wt(-1),v=Wt(!0),h=oa((()=>[s.b(),s.m(i.value)])),m=oa((()=>r.disabled||(null==l?void 0:l.disabled))),g=oa((()=>s.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":k.value}))),b=oa((()=>{let e="";return r.showScore?e=r.scoreTemplate.replace(/\{\s*value\s*\}/,m.value?`${r.modelValue}`:`${d.value}`):r.showText&&(e=r.texts[Math.ceil(d.value)-1]),e})),x=oa((()=>100*r.modelValue-100*Math.floor(r.modelValue))),C=oa((()=>p(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors)),k=oa((()=>{const e=o(d.value,C.value);return w(e)?"":e})),S=oa((()=>{let e="";return m.value?e=`${x.value}%`:r.allowHalf&&(e="50%"),{color:k.value,width:e}})),_=oa((()=>{let e=p(r.icons)?[...r.icons]:{...r.icons};return e=Vt(e),p(e)?{[r.lowThreshold]:e[0],[r.highThreshold]:{value:e[1],excluded:!0},[r.max]:e[2]}:e})),E=oa((()=>o(r.modelValue,_.value))),O=oa((()=>m.value?y(r.disabledVoidIcon)?r.disabledVoidIcon:Vt(r.disabledVoidIcon):y(r.voidIcon)?r.voidIcon:Vt(r.voidIcon))),M=oa((()=>o(d.value,_.value)));function z(e){const t=m.value&&x.value>0&&e-1r.modelValue,n=r.allowHalf&&v.value&&e-.5<=d.value&&e>d.value;return t||n}function T(e){r.clearable&&e===r.modelValue&&(e=0),n(_K,e),r.modelValue!==e&&n("change",e)}function A(e){if(m.value)return;let t=d.value;const o=e.code;return o===kK.up||o===kK.right?(r.allowHalf?t+=.5:t+=1,e.stopPropagation(),e.preventDefault()):o!==kK.left&&o!==kK.down||(r.allowHalf?t-=.5:t-=1,e.stopPropagation(),e.preventDefault()),t=t<0?0:t,t=t>r.max?r.max:t,n(_K,t),n("change",t),t}function L(e,t){if(!m.value){if(r.allowHalf&&t){let n=t.target;Vz(n,s.e("item"))&&(n=n.querySelector(`.${s.e("icon")}`)),(0===n.clientWidth||Vz(n,s.e("decimal")))&&(n=n.parentNode),v.value=2*t.offsetX<=n.clientWidth,d.value=v.value?e-.5:e}else d.value=e;f.value=e}}function I(){m.value||(r.allowHalf&&(v.value=r.modelValue!==Math.floor(r.modelValue)),d.value=r.modelValue,f.value=-1)}return nr((()=>r.modelValue),(e=>{d.value=e,v.value=r.modelValue!==Math.floor(r.modelValue)})),r.modelValue||n(_K,0),t({setCurrentValue:L,resetCurrentValue:I}),(e,t)=>{var n;return vl(),bl("div",{id:Gt(u),class:X([Gt(h),Gt(s).is("disabled",Gt(m))]),role:"slider","aria-label":Gt(c)?void 0:e.label||"rating","aria-labelledby":Gt(c)?null==(n=Gt(a))?void 0:n.labelId:void 0,"aria-valuenow":d.value,"aria-valuetext":Gt(b)||void 0,"aria-valuemin":"0","aria-valuemax":e.max,tabindex:"0",style:K(Gt(g)),onKeydown:A},[(vl(!0),bl(sl,null,Qr(e.max,((e,t)=>(vl(),bl("span",{key:t,class:X(Gt(s).e("item")),onMousemove:t=>L(e,t),onMouseleave:I,onClick:t=>{return n=e,void(m.value||(r.allowHalf&&v.value?T(d.value):T(n)));var n}},[Ol(Gt(ZG),{class:X([Gt(s).e("icon"),{hover:f.value===e},Gt(s).is("active",e<=d.value)])},{default:Bn((()=>[z(e)?Ll("v-if",!0):(vl(),bl(sl,{key:0},[ir((vl(),wl(Yr(Gt(M)),null,null,512)),[[wi,e<=d.value]]),ir((vl(),wl(Yr(Gt(O)),null,null,512)),[[wi,!(e<=d.value)]])],64)),z(e)?(vl(),wl(Gt(ZG),{key:1,style:K(Gt(S)),class:X([Gt(s).e("icon"),Gt(s).e("decimal")])},{default:Bn((()=>[(vl(),wl(Yr(Gt(E))))])),_:1},8,["style","class"])):Ll("v-if",!0)])),_:2},1032,["class"])],42,cte)))),128)),e.showText||e.showScore?(vl(),bl("span",{key:0,class:X(Gt(s).e("text"))},ve(Gt(b)),3)):Ll("v-if",!0)],46,ute)}}}),fte=bK(UG(pte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]])),vte={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},hte={[vte.success]:TL,[vte.warning]:UU,[vte.error]:NL,[vte.info]:Uj},mte=fK({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),gte=wr({name:"ElResult"}),yte=bK(UG(wr({...gte,props:mte,setup(e){const t=e,n=tq("result"),r=oa((()=>{const e=t.icon,n=e&&vte[e]?vte[e]:"icon-info";return{class:n,component:hte[n]||hte["icon-info"]}}));return(e,t)=>(vl(),bl("div",{class:X(Gt(n).b())},[El("div",{class:X(Gt(n).e("icon"))},[eo(e.$slots,"icon",{},(()=>[Gt(r).component?(vl(),wl(Yr(Gt(r).component),{key:0,class:X(Gt(r).class)},null,8,["class"])):Ll("v-if",!0)]))],2),e.title||e.$slots.title?(vl(),bl("div",{key:0,class:X(Gt(n).e("title"))},[eo(e.$slots,"title",{},(()=>[El("p",null,ve(e.title),1)]))],2)):Ll("v-if",!0),e.subTitle||e.$slots["sub-title"]?(vl(),bl("div",{key:1,class:X(Gt(n).e("subtitle"))},[eo(e.$slots,"sub-title",{},(()=>[El("p",null,ve(e.subTitle),1)]))],2)):Ll("v-if",!0),e.$slots.extra?(vl(),bl("div",{key:2,class:X(Gt(n).e("extra"))},[eo(e.$slots,"extra")],2)):Ll("v-if",!0)],2))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]));var bte=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function wte(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const e=$l().proxy.$props;return oa((()=>{const t=(e,t,n)=>({});return e.perfMode?ab(t):function(e,t){void 0===t&&(t=wte);var n=null;function r(){for(var r=[],o=0;o[]},direction:$te,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:[Object,String,Array]},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),qte=fK({cache:Dte,estimatedItemSize:Hte,layout:Ute,initScrollOffset:Fte,total:Wte,itemSize:Bte,...Kte}),Yte={type:Number,default:6},Gte={type:Number,default:0},Jte={type:Number,default:2},Xte=fK({columnCache:Dte,columnWidth:Bte,estimatedColumnWidth:Hte,estimatedRowHeight:Hte,initScrollLeft:Fte,initScrollTop:Fte,itemKey:{type:Function,default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:Dte,rowHeight:Bte,totalColumn:Wte,totalRow:Wte,hScrollbarSize:Yte,vScrollbarSize:Yte,scrollbarStartGap:Gte,scrollbarEndGap:Jte,role:String,...Kte}),Qte=fK({alwaysOn:Boolean,class:String,layout:Ute,total:Wte,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:Yte,startGap:Gte,endGap:Jte,visible:Boolean}),Zte=(e,t)=>e"ltr"===e||e===Ite||e===Ate,tne=e=>e===Ite;let nne=null;function rne(e=!1){if(null===nne||e){const e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";const n=document.createElement("div"),r=n.style;return r.width="100px",r.height="100px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?nne=Nte:(e.scrollLeft=1,nne=0===e.scrollLeft?Rte:Pte),document.body.removeChild(e),nne}return nne}const one=wr({name:"ElVirtualScrollBar",props:Qte,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=oa((()=>e.startGap+e.endGap)),r=tq("virtual-scrollbar"),o=tq("scrollbar"),l=Wt(),a=Wt();let i=null,s=null;const u=zt({isDragging:!1,traveled:0}),c=oa((()=>mX[e.layout])),d=oa((()=>e.clientSize-Gt(n))),p=oa((()=>({position:"absolute",width:`${Ate===e.layout?d.value:e.scrollbarSize}px`,height:`${Ate===e.layout?e.scrollbarSize:d.value}px`,[jte[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"}))),f=oa((()=>{const t=e.ratio,n=e.clientSize;if(t>=100)return Number.POSITIVE_INFINITY;if(t>=50)return t*n/100;const r=n/3;return Math.floor(Math.min(Math.max(t*n,20),r))})),v=oa((()=>{if(!Number.isFinite(f.value))return{display:"none"};const t=`${f.value}px`;return function({move:e,size:t,bar:n},r){const o={},l=`translate${n.axis}(${e}px)`;return o[n.size]=t,o.transform=l,o.msTransform=l,o.webkitTransform=l,"horizontal"===r?o.height="100%":o.width="100%",o}({bar:c.value,size:t,move:u.traveled},e.layout)})),h=oa((()=>Math.floor(e.clientSize-f.value-Gt(n)))),m=()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",y),document.onselectstart=s,s=null;const e=Gt(a);e&&(e.removeEventListener("touchmove",b),e.removeEventListener("touchend",y))},g=e=>{e.stopImmediatePropagation(),e.ctrlKey||[1,2].includes(e.button)||(u.isDragging=!0,u[c.value.axis]=e.currentTarget[c.value.offset]-(e[c.value.client]-e.currentTarget.getBoundingClientRect()[c.value.direction]),t("start-move"),(()=>{window.addEventListener("mousemove",b),window.addEventListener("mouseup",y);const e=Gt(a);e&&(s=document.onselectstart,document.onselectstart=()=>!1,e.addEventListener("touchmove",b),e.addEventListener("touchend",y))})())},y=()=>{u.isDragging=!1,u[c.value.axis]=0,t("stop-move"),m()},b=n=>{const{isDragging:r}=u;if(!r)return;if(!a.value||!l.value)return;const o=u[c.value.axis];if(!o)return;BK(i);const s=-1*(l.value.getBoundingClientRect()[c.value.direction]-n[c.value.client])-(a.value[c.value.offset]-o);i=VK((()=>{u.traveled=Math.max(e.startGap,Math.min(s,h.value)),t("scroll",s,h.value)}))},w=e=>{const n=Math.abs(e.target.getBoundingClientRect()[c.value.direction]-e[c.value.client])-a.value[c.value.offset]/2;u.traveled=Math.max(0,Math.min(n,h.value)),t("scroll",n,h.value)};return nr((()=>e.scrollFrom),(e=>{u.isDragging||(u.traveled=Math.ceil(e*h.value))})),Br((()=>{m()})),()=>la("div",{role:"presentation",ref:l,class:[r.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:p.value,onMousedown:gi(w,["stop","prevent"]),onTouchstartPrevent:g},la("div",{ref:a,class:o.e("thumb"),style:v.value,onMousedown:g},[]))}}),lne=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:o,getStartIndexForOffset:l,getStopIndexForStartIndex:a,initCache:i,clearCache:s,validateProps:u})=>wr({name:null!=e?e:"ElVirtualList",props:qte,emits:[Cte,kte],setup(e,{emit:c,expose:p}){u(e);const f=$l(),v=tq("vl"),h=Wt(i(e,f)),m=xte(),g=Wt(),y=Wt(),b=Wt(),w=Wt({isScrolling:!1,scrollDir:"forward",scrollOffset:Mz(e.initScrollOffset)?e.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:e.scrollbarAlwaysOn}),x=oa((()=>{const{total:t,cache:n}=e,{isScrolling:r,scrollDir:o,scrollOffset:i}=Gt(w);if(0===t)return[0,0,0,0];const s=l(e,i,Gt(h)),u=a(e,s,i,Gt(h)),c=r&&o!==_te?1:Math.max(1,n),d=r&&o!==Ste?1:Math.max(1,n);return[Math.max(0,s-c),Math.max(0,Math.min(t-1,u+d)),s,u]})),C=oa((()=>o(e,Gt(h)))),k=oa((()=>ene(e.layout))),S=oa((()=>[{position:"relative",["overflow-"+(k.value?"x":"y")]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:e.direction,height:Mz(e.height)?`${e.height}px`:e.height,width:Mz(e.width)?`${e.width}px`:e.width},e.style])),_=oa((()=>{const e=Gt(C),t=Gt(k);return{height:t?"100%":`${e}px`,pointerEvents:Gt(w).isScrolling?"none":void 0,width:t?`${e}px`:"100%"}})),E=oa((()=>k.value?e.width:e.height)),{onWheel:O}=(({atEndEdge:e,atStartEdge:t,layout:n},r)=>{let o,l=0;const a=n=>n<0&&t.value||n>0&&e.value;return{hasReachedEdge:a,onWheel:e=>{BK(o);const t=e[Vte[n.value]];a(l)&&a(l+t)||(l+=t,ch()||e.preventDefault(),o=VK((()=>{r(l),l=0})))}}})({atStartEdge:oa((()=>w.value.scrollOffset<=0)),atEndEdge:oa((()=>w.value.scrollOffset>=C.value)),layout:oa((()=>e.layout))},(e=>{var t,n;null==(n=(t=b.value).onMouseUp)||n.call(t),z(Math.min(w.value.scrollOffset+e,C.value-E.value))})),M=()=>{const{total:t}=e;if(t>0){const[e,t,n,r]=Gt(x);c(Cte,e,t,n,r)}const{scrollDir:n,scrollOffset:r,updateRequested:o}=Gt(w);c(kte,n,r,o)},z=e=>{(e=Math.max(e,0))!==Gt(w).scrollOffset&&(w.value={...Gt(w),scrollOffset:e,scrollDir:Zte(Gt(w).scrollOffset,e),updateRequested:!0},wn(A))},T=(n,r=Ete)=>{const{scrollOffset:o}=Gt(w);n=Math.max(0,Math.min(n,e.total-1)),z(t(e,n,r,o,Gt(h)))},A=()=>{w.value.isScrolling=!1,wn((()=>{m.value(-1,null,null)}))},L=()=>{const e=g.value;e&&(e.scrollTop=0)};Nr((()=>{if(!Xi)return;const{initScrollOffset:t}=e,n=Gt(g);Mz(t)&&n&&(Gt(k)?n.scrollLeft=t:n.scrollTop=t),M()})),Vr((()=>{const{direction:t,layout:n}=e,{scrollOffset:r,updateRequested:o}=Gt(w),l=Gt(g);if(o&&l)if(n===Ate)if(t===Ite)switch(rne()){case Rte:l.scrollLeft=-r;break;case Pte:l.scrollLeft=r;break;default:{const{clientWidth:e,scrollWidth:t}=l;l.scrollLeft=t-e-r;break}}else l.scrollLeft=r;else l.scrollTop=r}));const I={ns:v,clientSize:E,estimatedTotalSize:C,windowStyle:S,windowRef:g,innerRef:y,innerStyle:_,itemsToRender:x,scrollbarRef:b,states:w,getItemStyle:t=>{const{direction:o,itemSize:l,layout:a}=e,i=m.value(s&&l,s&&a,s&&o);let u;if(d(i,String(t)))u=i[t];else{const l=r(e,t,Gt(h)),a=n(e,t,Gt(h)),s=Gt(k),c=o===Ite,d=s?l:0;i[t]=u={position:"absolute",left:c?void 0:`${d}px`,right:c?`${d}px`:void 0,top:s?0:`${l}px`,height:s?"100%":`${a}px`,width:s?`${a}px`:"100%"}}return u},onScroll:t=>{Gt(k)?(t=>{const{clientWidth:n,scrollLeft:r,scrollWidth:o}=t.currentTarget,l=Gt(w);if(l.scrollOffset===r)return;const{direction:a}=e;let i=r;if(a===Ite)switch(rne()){case Rte:i=-r;break;case Nte:i=o-n-r}i=Math.max(0,Math.min(i,o-n)),w.value={...l,isScrolling:!0,scrollDir:Zte(l.scrollOffset,i),scrollOffset:i,updateRequested:!1},wn(A)})(t):(e=>{const{clientHeight:t,scrollHeight:n,scrollTop:r}=e.currentTarget,o=Gt(w);if(o.scrollOffset===r)return;const l=Math.max(0,Math.min(r,n-t));w.value={...o,isScrolling:!0,scrollDir:Zte(o.scrollOffset,l),scrollOffset:l,updateRequested:!1},wn(A)})(t),M()},onScrollbarScroll:(e,t)=>{const n=(C.value-E.value)/t*e;z(Math.min(C.value-E.value,n))},onWheel:O,scrollTo:z,scrollToItem:T,resetScrollTop:L};return p({windowRef:g,innerRef:y,getItemStyleCache:m,scrollTo:z,scrollToItem:T,resetScrollTop:L,states:w}),I},render(e){var t;const{$slots:n,className:r,clientSize:o,containerElement:l,data:a,getItemStyle:i,innerElement:s,itemsToRender:u,innerStyle:c,layout:d,total:p,onScroll:f,onScrollbarScroll:v,onWheel:h,states:m,useIsScrolling:g,windowStyle:b,ns:w}=e,[x,C]=u,k=Yr(l),S=Yr(s),_=[];if(p>0)for(let y=x;y<=C;y++)_.push(null==(t=n.default)?void 0:t.call(n,{data:a,key:y,index:y,isScrolling:g?m.isScrolling:void 0,style:i(y)}));const E=[la(S,{style:c,ref:"innerRef"},y(S)?_:{default:()=>_})],O=la(one,{ref:"scrollbarRef",clientSize:o,layout:d,onScroll:v,ratio:100*o/this.estimatedTotalSize,scrollFrom:m.scrollOffset/(this.estimatedTotalSize-o),total:p}),M=la(k,{class:[w.e("window"),r],style:b,onScroll:f,onWheel:h,ref:"windowRef",key:0},y(k)?[E]:{default:()=>[E]});return la("div",{key:0,class:[w.e("wrapper"),m.scrollbarAlwaysOn?"always-on":""]},[M,O])}}),ane=lne({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:r,width:o},l,a,i)=>{const s=ene(r)?o:e,u=Math.max(0,t*n-s),c=Math.min(u,l*n),d=Math.max(0,(l+1)*n-s);switch(a===Ote&&(a=i>=d-s&&i<=c+s?Ete:zte),a){case Mte:return c;case Tte:return d;case zte:{const e=Math.round(d+(c-d)/2);return eu+Math.floor(s/2)?u:e}default:return i>=d&&i<=c?i:iMath.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:r,width:o},l,a)=>{const i=l*n,s=ene(r)?o:e,u=Math.ceil((s+a-i)/n);return Math.max(0,Math.min(t-1,l+u-1))},initCache(){},clearCache:!0,validateProps(){}}),ine=(e,t,n)=>{const{itemSize:r}=e,{items:o,lastVisitedIndex:l}=n;if(t>l){let e=0;if(l>=0){const t=o[l];e=t.offset+t.size}for(let n=l+1;n<=t;n++){const t=r(n);o[n]={offset:e,size:t},e+=t}n.lastVisitedIndex=t}return o[t]},sne=(e,t,n,r,o)=>{for(;n<=r;){const l=n+Math.floor((r-n)/2),a=ine(e,l,t).offset;if(a===o)return l;ao&&(r=l-1)}return Math.max(0,n-1)},une=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:r})=>{let o=0;if(r>=e&&(r=e-1),r>=0){const e=t[r];o=e.offset+e.size}return o+(e-r-1)*n},cne=lne({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>ine(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:une,getOffset:(e,t,n,r,o)=>{const{height:l,layout:a,width:i}=e,s=ene(a)?i:l,u=ine(e,t,o),c=une(e,o),d=Math.max(0,Math.min(c-s,u.offset)),p=Math.max(0,u.offset-s+u.size);switch(n===Ote&&(n=r>=p-s&&r<=d+s?Ete:zte),n){case Mte:return d;case Tte:return p;case zte:return Math.round(p+(d-p)/2);default:return r>=p&&r<=d?r:r((e,t,n)=>{const{items:r,lastVisitedIndex:o}=t;return(o>0?r[o].offset:0)>=n?sne(e,t,0,o,n):((e,t,n,r)=>{const{total:o}=e;let l=1;for(;n{const{height:o,total:l,layout:a,width:i}=e,s=ene(a)?i:o,u=ine(e,t,r),c=n+s;let d=u.offset+u.size,p=t;for(;p{var o,l;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,e-1),null==(o=t.exposed)||o.getItemStyleCache(-1),r&&(null==(l=t.proxy)||l.$forceUpdate())}};return n},clearCache:!1,validateProps:({itemSize:e})=>{}}),dne=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:o,getEstimatedTotalHeight:l,getEstimatedTotalWidth:a,getColumnOffset:i,getRowOffset:s,getRowPosition:u,getRowStartIndexForOffset:c,getRowStopIndexForStartIndex:p,initCache:f,injectToInstance:v,validateProps:h})=>wr({name:null!=e?e:"ElVirtualList",props:Xte,emits:[Cte,kte],setup(e,{emit:m,expose:g,slots:b}){const w=tq("vl");h(e);const x=$l(),C=Wt(f(e,x));null==v||v(x,C);const k=Wt(),S=Wt(),_=Wt(),E=Wt(null),O=Wt({isScrolling:!1,scrollLeft:Mz(e.initScrollLeft)?e.initScrollLeft:0,scrollTop:Mz(e.initScrollTop)?e.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Ste,yAxisScrollDir:Ste}),M=xte(),z=oa((()=>Number.parseInt(`${e.height}`,10))),T=oa((()=>Number.parseInt(`${e.width}`,10))),A=oa((()=>{const{totalColumn:t,totalRow:n,columnCache:l}=e,{isScrolling:a,xAxisScrollDir:i,scrollLeft:s}=Gt(O);if(0===t||0===n)return[0,0,0,0];const u=r(e,s,Gt(C)),c=o(e,u,s,Gt(C)),d=a&&i!==_te?1:Math.max(1,l),p=a&&i!==Ste?1:Math.max(1,l);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]})),L=oa((()=>{const{totalColumn:t,totalRow:n,rowCache:r}=e,{isScrolling:o,yAxisScrollDir:l,scrollTop:a}=Gt(O);if(0===t||0===n)return[0,0,0,0];const i=c(e,a,Gt(C)),s=p(e,i,a,Gt(C)),u=o&&l!==_te?1:Math.max(1,r),d=o&&l!==Ste?1:Math.max(1,r);return[Math.max(0,i-u),Math.max(0,Math.min(n-1,s+d)),i,s]})),I=oa((()=>l(e,Gt(C)))),R=oa((()=>a(e,Gt(C)))),P=oa((()=>{var t;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:e.direction,height:Mz(e.height)?`${e.height}px`:e.height,width:Mz(e.width)?`${e.width}px`:e.width},null!=(t=e.style)?t:{}]})),N=oa((()=>{const e=`${Gt(R)}px`;return{height:`${Gt(I)}px`,pointerEvents:Gt(O).isScrolling?"none":void 0,width:e}})),j=()=>{const{totalColumn:t,totalRow:n}=e;if(t>0&&n>0){const[e,t,n,r]=Gt(A),[o,l,a,i]=Gt(L);m(Cte,{columnCacheStart:e,columnCacheEnd:t,rowCacheStart:o,rowCacheEnd:l,columnVisibleStart:n,columnVisibleEnd:r,rowVisibleStart:a,rowVisibleEnd:i})}const{scrollLeft:r,scrollTop:o,updateRequested:l,xAxisScrollDir:a,yAxisScrollDir:i}=Gt(O);m(kte,{xAxisScrollDir:a,scrollLeft:r,yAxisScrollDir:i,scrollTop:o,updateRequested:l})},V=t=>{const{clientHeight:n,clientWidth:r,scrollHeight:o,scrollLeft:l,scrollTop:a,scrollWidth:i}=t.currentTarget,s=Gt(O);if(s.scrollTop===a&&s.scrollLeft===l)return;let u=l;if(tne(e.direction))switch(rne()){case Rte:u=-l;break;case Nte:u=i-r-l}O.value={...s,isScrolling:!0,scrollLeft:u,scrollTop:Math.max(0,Math.min(a,o-n)),updateRequested:!0,xAxisScrollDir:Zte(s.scrollLeft,u),yAxisScrollDir:Zte(s.scrollTop,a)},wn((()=>W())),U(),j()},B=(e,t)=>{const n=Gt(z),r=(I.value-n)/t*e;$({scrollTop:Math.min(I.value-n,r)})},H=(e,t)=>{const n=Gt(T),r=(R.value-n)/t*e;$({scrollLeft:Math.min(R.value-n,r)})},{onWheel:D}=(({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:r},o)=>{let l=null,a=0,i=0;const s=(o,l)=>{const a=o<=0&&t.value||o>=0&&e.value,i=l<=0&&r.value||l>=0&&n.value;return a&&i};return{hasReachedEdge:s,onWheel:e=>{BK(l);let t=e.deltaX,n=e.deltaY;Math.abs(t)>Math.abs(n)?n=0:t=0,e.shiftKey&&0!==n&&(t=n,n=0),s(a,i)&&s(a+t,i+n)||(a+=t,i+=n,e.preventDefault(),l=VK((()=>{o(a,i),a=0,i=0})))}}})({atXStartEdge:oa((()=>O.value.scrollLeft<=0)),atXEndEdge:oa((()=>O.value.scrollLeft>=R.value-Gt(T))),atYStartEdge:oa((()=>O.value.scrollTop<=0)),atYEndEdge:oa((()=>O.value.scrollTop>=I.value-Gt(z)))},((e,t)=>{var n,r,o,l;null==(r=null==(n=S.value)?void 0:n.onMouseUp)||r.call(n),null==(l=null==(o=S.value)?void 0:o.onMouseUp)||l.call(o);const a=Gt(T),i=Gt(z);$({scrollLeft:Math.min(O.value.scrollLeft+e,R.value-a),scrollTop:Math.min(O.value.scrollTop+t,I.value-i)})})),$=({scrollLeft:e=O.value.scrollLeft,scrollTop:t=O.value.scrollTop})=>{e=Math.max(e,0),t=Math.max(t,0);const n=Gt(O);t===n.scrollTop&&e===n.scrollLeft||(O.value={...n,xAxisScrollDir:Zte(n.scrollLeft,e),yAxisScrollDir:Zte(n.scrollTop,t),scrollLeft:e,scrollTop:t,updateRequested:!0},wn((()=>W())),U(),j())},F=(r,o)=>{const{columnWidth:l,direction:a,rowHeight:i}=e,s=M.value(t&&l,t&&i,t&&a),c=`${r},${o}`;if(d(s,c))return s[c];{const[,t]=n(e,o,Gt(C)),l=Gt(C),i=tne(a),[d,p]=u(e,r,l),[f]=n(e,o,l);return s[c]={position:"absolute",left:i?void 0:`${t}px`,right:i?`${t}px`:void 0,top:`${p}px`,height:`${d}px`,width:`${f}px`},s[c]}},W=()=>{O.value.isScrolling=!1,wn((()=>{M.value(-1,null,null)}))};Nr((()=>{if(!Xi)return;const{initScrollLeft:t,initScrollTop:n}=e,r=Gt(k);r&&(Mz(t)&&(r.scrollLeft=t),Mz(n)&&(r.scrollTop=n)),j()}));const U=()=>{const{direction:t}=e,{scrollLeft:n,scrollTop:r,updateRequested:o}=Gt(O),l=Gt(k);if(o&&l){if(t===Ite)switch(rne()){case Rte:l.scrollLeft=-n;break;case Pte:l.scrollLeft=n;break;default:{const{clientWidth:e,scrollWidth:t}=l;l.scrollLeft=t-e-n;break}}else l.scrollLeft=Math.max(0,n);l.scrollTop=Math.max(0,r)}},{resetAfterColumnIndex:K,resetAfterRowIndex:q,resetAfter:Y}=x.proxy;g({windowRef:k,innerRef:E,getItemStyleCache:M,scrollTo:$,scrollToItem:(t=0,n=0,r=Ete)=>{const o=Gt(O);n=Math.max(0,Math.min(n,e.totalColumn-1)),t=Math.max(0,Math.min(t,e.totalRow-1));const u=Kz(w.namespace.value),c=Gt(C),d=l(e,c),p=a(e,c);$({scrollLeft:i(e,n,r,o.scrollLeft,c,p>e.width?u:0),scrollTop:s(e,t,r,o.scrollTop,c,d>e.height?u:0)})},states:O,resetAfterColumnIndex:K,resetAfterRowIndex:q,resetAfter:Y});return()=>{const t=Yr(e.containerElement),{horizontalScrollbar:n,verticalScrollbar:r}=(()=>{const{scrollbarAlwaysOn:t,scrollbarStartGap:n,scrollbarEndGap:r,totalColumn:o,totalRow:l}=e,a=Gt(T),i=Gt(z),s=Gt(R),u=Gt(I),{scrollLeft:c,scrollTop:d}=Gt(O);return{horizontalScrollbar:la(one,{ref:S,alwaysOn:t,startGap:n,endGap:r,class:w.e("horizontal"),clientSize:a,layout:"horizontal",onScroll:H,ratio:100*a/s,scrollFrom:c/(s-a),total:l,visible:!0}),verticalScrollbar:la(one,{ref:_,alwaysOn:t,startGap:n,endGap:r,class:w.e("vertical"),clientSize:i,layout:"vertical",onScroll:B,ratio:100*i/u,scrollFrom:d/(u-i),total:o,visible:!0})}})(),o=(()=>{const t=Yr(e.innerElement),n=(()=>{var t;const[n,r]=Gt(A),[o,l]=Gt(L),{data:a,totalColumn:i,totalRow:s,useIsScrolling:u,itemKey:c}=e,d=[];if(s>0&&i>0)for(let e=o;e<=l;e++)for(let o=n;o<=r;o++)d.push(null==(t=b.default)?void 0:t.call(b,{columnIndex:o,data:a,key:c({columnIndex:o,data:a,rowIndex:e}),isScrolling:u?Gt(O).isScrolling:void 0,style:F(e,o),rowIndex:e}));return d})();return[la(t,{style:Gt(N),ref:E},y(t)?n:{default:()=>n})]})();return la("div",{key:0,class:w.e("wrapper"),role:e.role},[la(t,{class:e.className,style:Gt(P),onScroll:V,onWheel:D,ref:k},y(t)?o:{default:()=>o}),n,r])}}}),pne=dne({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},r,o,l,a,i)=>{n=Number(n);const s=Math.max(0,e*t-n),u=Math.min(s,r*t),c=Math.max(0,r*t-n+i+t);switch("smart"===o&&(o=l>=c-n&&l<=u+n?Ete:zte),o){case Mte:return u;case Tte:return c;case zte:{const e=Math.round(c+(u-c)/2);return es+Math.floor(n/2)?s:e}default:return l>=c&&l<=u?l:c>u||l{t=Number(t);const s=Math.max(0,n*e-t),u=Math.min(s,r*e),c=Math.max(0,r*e-t+i+e);switch(o===Ote&&(o=l>=c-t&&l<=u+t?Ete:zte),o){case Mte:return u;case Tte:return c;case zte:{const e=Math.round(c+(u-c)/2);return es+Math.floor(t/2)?s:e}default:return l>=c&&l<=u?l:c>u||lMath.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},r,o)=>{const l=r*e,a=Math.ceil((n+o-l)/e);return Math.max(0,Math.min(t-1,r+a-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},r,o)=>{const l=r*e,a=Math.ceil((n+o-l)/e);return Math.max(0,Math.min(t-1,r+a-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),{max:fne,min:vne,floor:hne}=Math,mne={column:"columnWidth",row:"rowHeight"},gne={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},yne=(e,t,n,r)=>{const[o,l,a]=[n[r],e[mne[r]],n[gne[r]]];if(t>a){let e=0;if(a>=0){const t=o[a];e=t.offset+t.size}for(let n=a+1;n<=t;n++){const t=l(n);o[n]={offset:e,size:t},e+=t}n[gne[r]]=t}return o[t]},bne=(e,t,n,r,o,l)=>{for(;n<=r;){const a=n+hne((r-n)/2),i=yne(e,a,t,l).offset;if(i===o)return a;i{const[o,l]=[t[r],t[gne[r]]];return(l>0?o[l].offset:0)>=n?bne(e,t,0,l,n,r):((e,t,n,r,o)=>{const l="column"===o?e.totalColumn:e.totalRow;let a=1;for(;n{let o=0;if(n>=e&&(n=e-1),n>=0){const e=r[n];o=e.offset+e.size}return o+(e-n-1)*t},Cne=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:r})=>{let o=0;if(r>e&&(r=e-1),r>=0){const e=t[r];o=e.offset+e.size}return o+(e-r-1)*n},kne={column:Cne,row:xne},Sne=(e,t,n,r,o,l,a)=>{const[i,s]=["row"===l?e.height:e.width,kne[l]],u=yne(e,t,o,l),c=s(e,o),d=fne(0,vne(c-i,u.offset)),p=fne(0,u.offset-i+a+u.size);switch(n===Ote&&(n=r>=p-i&&r<=d+i?Ete:zte),n){case Mte:return d;case Tte:return p;case zte:return Math.round(p+(d-p)/2);default:return r>=p&&r<=d?r:p>d||r{const r=yne(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=yne(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,o,l)=>Sne(e,t,n,r,o,"column",l),getRowOffset:(e,t,n,r,o,l)=>Sne(e,t,n,r,o,"row",l),getColumnStartIndexForOffset:(e,t,n)=>wne(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const o=yne(e,t,r,"column"),l=n+e.width;let a=o.offset+o.size,i=t;for(;iwne(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:o,height:l}=e,a=yne(e,t,r,"row"),i=n+l;let s=a.size+a.offset,u=t;for(;u{const n=({columnIndex:n,rowIndex:r},o)=>{var l,a;o=!!Ez(o)||o,Mz(n)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,n-1)),Mz(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),null==(l=e.exposed)||l.getItemStyleCache.value(-1,null,null),o&&(null==(a=e.proxy)||a.$forceUpdate())};Object.assign(e.proxy,{resetAfterColumnIndex:(e,t)=>{n({columnIndex:e},t)},resetAfterRowIndex:(e,t)=>{n({rowIndex:e},t)},resetAfter:n})},initCache:({estimatedColumnWidth:e=50,estimatedRowHeight:t=50})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}});var Ene=UG(wr({props:{item:{type:Object,required:!0},style:Object,height:Number},setup:()=>({ns:tq("select")})}),[["render",function(e,t,n,r,o,l){return e.item.isTitle?(vl(),bl("div",{key:0,class:X(e.ns.be("group","title")),style:K([e.style,{lineHeight:`${e.height}px`}])},ve(e.item.label),7)):(vl(),bl("div",{key:1,class:X(e.ns.be("group","split")),style:K(e.style)},[El("span",{class:X(e.ns.be("group","split-dash")),style:K({top:e.height/2+"px"})},null,6)],6))}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);const One={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:BL},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},teleported:xQ.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:AK},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:String,values:yq,default:"bottom-start"}},Mne=wr({props:{data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},emits:["select","hover"],setup(e,{emit:t}){const n=tq("select"),{hoverItem:r,selectOptionClick:o}=function(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}(e,{emit:t});return{ns:n,hoverItem:r,selectOptionClick:o}}}),zne=["aria-selected"];var Tne=UG(Mne,[["render",function(e,t,n,r,o,l){return vl(),bl("li",{"aria-selected":e.selected,style:K(e.style),class:X([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...t)=>e.hoverItem&&e.hoverItem(...t)),onClick:t[1]||(t[1]=gi(((...t)=>e.selectOptionClick&&e.selectOptionClick(...t)),["stop"]))},[eo(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},(()=>[El("span",null,ve(e.item.label),1)]))],46,zne)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const Ane=Symbol("ElSelectV2Injection");var Lne=wr({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const r=zo(Ane),o=tq("select"),l=Wt([]),a=Wt(),i=oa((()=>e.data.length));nr((()=>i.value),(()=>{var e,t;null==(t=(e=r.popper.value).updatePopper)||t.call(e)}));const s=oa((()=>Ez(r.props.estimatedOptionHeight))),u=oa((()=>s.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:e=>l.value[e]})),c=(e,t)=>{const{valueKey:n}=r.props;return r.props.multiple?((e=[],t)=>{const{props:{valueKey:n}}=r;return w(t)?e&&e.some((e=>yb(e,n)===yb(t,n))):e.includes(t)})(e,yb(t,n)):((e,t)=>{if(w(t)){const{valueKey:n}=r.props;return yb(e,n)===yb(t,n)}return e===t})(e,yb(t,n))},d=(e,t)=>{const{disabled:n,multiple:o,multipleLimit:l}=r.props;return n||!t&&!!o&&l>0&&e.length>=l},p=t=>e.hoveringIndex===t;n({listRef:a,isSized:s,isItemDisabled:d,isItemHovering:p,isItemSelected:c,scrollToItem:e=>{const t=a.value;t&&t.scrollToItem(e)},resetScrollTop:()=>{const e=a.value;e&&e.resetScrollTop()}});const f=e=>{const{index:n,data:o,style:l}=e,a=Gt(s),{itemSize:i,estimatedSize:f}=Gt(u),{modelValue:v}=r.props,{onSelect:h,onHover:m}=r,g=o[n];if("Group"===g.type)return Ol(Ene,{item:g,style:l,height:a?i:f},null);const y=c(v,g),b=d(v,y),w=p(n);return Ol(Tne,Nl(e,{selected:y,disabled:g.disabled||b,created:!!g.created,hovering:w,item:g,onSelect:h,onHover:m}),{default:e=>{var n;return(null==(n=t.default)?void 0:n.call(t,e))||Ol("span",null,[g.label])}})},{onKeyboardNavigate:v,onKeyboardSelect:h}=r,m=e=>{const{code:t}=e,{tab:n,esc:o,down:l,up:a,enter:i}=kK;switch(t!==n&&(e.preventDefault(),e.stopPropagation()),t){case n:case o:r.expanded=!1;break;case l:v("forward");break;case a:v("backward");break;case i:h()}};return()=>{var n;const{data:l,width:i}=e,{height:c,multiple:d,scrollbarAlwaysOn:p}=r.props;if(0===l.length)return Ol("div",{class:o.b("dropdown"),style:{width:`${i}px`}},[null==(n=t.empty)?void 0:n.call(t)]);const v=Gt(s)?ane:cne;return Ol("div",{class:[o.b("dropdown"),o.is("multiple",d)]},[Ol(v,Nl({ref:a},Gt(u),{className:o.be("dropdown","list"),scrollbarAlwaysOn:p,data:l,height:c,width:i,total:l.length,onKeydown:m}),{default:e=>Ol(f,e,null)})])}}});const Ine={larget:51,default:42,small:33},Rne=(e,t)=>{const{t:n}=JK(),r=tq("select-v2"),o=tq("input"),{form:l,formItem:a}=uJ(),i=zt({inputValue:"",displayInputValue:"",calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),s=Wt(-1),u=Wt(-1),c=Wt(null),d=Wt(null),f=Wt(null),v=Wt(null),h=Wt(null),m=Wt(null),y=Wt(null),b=Wt(!1),x=oa((()=>e.disabled||(null==l?void 0:l.disabled))),C=oa((()=>{const t=34*A.value.length;return t>e.height?e.height:t})),k=oa((()=>!q_(e.modelValue))),S=oa((()=>{const t=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:k.value;return e.clearable&&!x.value&&i.comboBoxHovering&&t})),_=oa((()=>e.remote&&e.filterable?"":TT)),E=oa((()=>_.value&&r.is("reverse",b.value))),O=oa((()=>(null==a?void 0:a.validateState)||"")),M=oa((()=>yK[O.value])),z=oa((()=>e.remote?300:0)),T=oa((()=>{const t=A.value;return e.loading?e.loadingText||n("el.select.loading"):(!e.remote||""!==i.inputValue||0!==t.length)&&(e.filterable&&i.inputValue&&t.length>0?e.noMatchText||n("el.select.noMatch"):0===t.length?e.noDataText||n("el.select.noData"):null)})),A=oa((()=>{const t=e=>{const t=i.inputValue,n=new RegExp(Az(t),"i");return!t||n.test(e.label||"")};return e.loading?[]:(e=>{const t=[];return e.forEach((e=>{p(e.options)?(t.push({label:e.label,isTitle:!0,type:"Group"}),e.options.forEach((e=>{t.push(e)})),t.push({type:"Group"})):t.push(e)})),t})(e.options.concat(i.createdOptions).map((n=>{if(p(n.options)){const e=n.options.filter(t);if(e.length>0)return{...n,options:e}}else if(e.remote||t(n))return n;return null})).filter((e=>null!==e)))})),L=oa((()=>A.value.every((e=>e.disabled)))),I=iJ(),R=oa((()=>"small"===I.value?"small":"default")),P=oa((()=>{const e=m.value,t=R.value||"default",n=e?Number.parseInt(getComputedStyle(e).paddingLeft):0,r=e?Number.parseInt(getComputedStyle(e).paddingRight):0;return i.selectWidth-r-n-Ine[t]})),N=()=>{var e;u.value=(null==(e=h.value)?void 0:e.offsetWidth)||200},j=oa((()=>({width:`${0===i.calculatedWidth?11:Math.ceil(i.calculatedWidth)+11}px`}))),V=oa((()=>p(e.modelValue)?0===e.modelValue.length&&!i.displayInputValue:!e.filterable||0===i.displayInputValue.length)),B=oa((()=>{const t=e.placeholder||n("el.select.placeholder");return e.multiple||q_(e.modelValue)?t:i.selectedLabel})),H=oa((()=>{var e,t;return null==(t=null==(e=v.value)?void 0:e.popperRef)?void 0:t.contentRef})),D=oa((()=>{if(e.multiple){const t=e.modelValue.length;if(e.modelValue.length>0)return A.value.findIndex((n=>n.value===e.modelValue[t-1]))}else if(e.modelValue)return A.value.findIndex((t=>t.value===e.modelValue));return-1})),$=oa({get:()=>b.value&&!1!==T.value,set(e){b.value=e}}),F=oa((()=>i.cachedOptions.slice(0,e.maxCollapseTags))),W=oa((()=>i.cachedOptions.slice(e.maxCollapseTags))),{createNewOption:U,removeNewOption:K,selectNewOption:q,clearAllNewOption:Y}=function(e,t){const n=Wt(0),r=Wt(null),o=oa((()=>e.allowCreate&&e.filterable));return{createNewOption:function(l){if(o.value)if(l&&l.length>0&&!function(n){const r=e=>e.value===n;return e.options&&e.options.some(r)||t.createdOptions.some(r)}(l)){const e={value:l,label:l,created:!0,disabled:!1};t.createdOptions.length>=n.value?t.createdOptions[n.value]=e:t.createdOptions.push(e)}else if(e.multiple)t.createdOptions.length=n.value;else{const e=r.value;t.createdOptions.length=0,e&&e.created&&t.createdOptions.push(e)}},removeNewOption:function(r){if(!o.value||!r||!r.created||r.created&&e.reserveKeyword&&t.inputValue===r.label)return;const l=t.createdOptions.findIndex((e=>e.value===r.value));~l&&(t.createdOptions.splice(l,1),n.value--)},selectNewOption:function(t){o.value&&(e.multiple&&t.created?n.value++:r.value=t)},clearAllNewOption:function(){o.value&&(t.createdOptions.length=0,n.value=0)}}}(e,i),{handleCompositionStart:G,handleCompositionUpdate:J,handleCompositionEnd:X}=function(e){const t=Wt(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:e=>{const n=e.target.value,r=n[n.length-1]||"";t.value=!jK(r)},handleCompositionEnd:n=>{t.value&&(t.value=!1,g(e)&&e(n))}}}((e=>he(e))),Q=()=>{var e,t,n;null==(t=null==(e=d.value)?void 0:e.focus)||t.call(e),null==(n=v.value)||n.updatePopper()},Z=()=>{if(!e.automaticDropdown)return x.value?void 0:(i.isComposing&&(i.softFocus=!0),wn((()=>{var e,t;b.value=!b.value,null==(t=null==(e=d.value)?void 0:e.focus)||t.call(e)})))},ee=()=>(e.filterable&&i.inputValue!==i.selectedLabel&&(i.query=i.selectedLabel),ne(i.inputValue),wn((()=>{U(i.inputValue)}))),te=Pk(ee,z.value),ne=t=>{i.previousQuery!==t&&(i.previousQuery=t,e.filterable&&g(e.filterMethod)?e.filterMethod(t):e.filterable&&e.remote&&g(e.remoteMethod)&&e.remoteMethod(t))},re=n=>{var r;t(_K,n),r=n,$_(e.modelValue,r)||t(EK,r),i.previousValue=null==n?void 0:n.toString()},oe=t=>w(t)?yb(t,e.valueKey):t,le=()=>wn((()=>{var e,t;if(!d.value)return;const n=m.value;h.value.height=n.offsetHeight,b.value&&!1!==T.value&&(null==(t=null==(e=v.value)?void 0:e.updatePopper)||t.call(e))})),ae=()=>{var t,n;if(ie(),N(),null==(n=null==(t=v.value)?void 0:t.updatePopper)||n.call(t),e.multiple)return le()},ie=()=>{const e=m.value;e&&(i.selectWidth=e.getBoundingClientRect().width)},se=(t,n,r=!0)=>{var o,l;if(e.multiple){let r=e.modelValue.slice();const a=((t=[],n)=>{if(!w(n))return t.indexOf(n);const r=e.valueKey;let o=-1;return t.some(((e,t)=>yb(e,r)===yb(n,r)&&(o=t,!0))),o})(r,oe(t));a>-1?(r=[...r.slice(0,a),...r.slice(a+1)],i.cachedOptions.splice(a,1),K(t)):(e.multipleLimit<=0||r.length(i.softFocus=!1,wn((()=>{var n,r;null==(r=null==(n=d.value)?void 0:n.blur)||r.call(n),y.value&&(i.calculatedWidth=y.value.getBoundingClientRect().width),i.isSilentBlur?i.isSilentBlur=!1:i.isComposing&&t("blur",e),i.isComposing=!1}))),ce=e=>{i.displayInputValue=e,i.inputValue=e},de=(e,t=void 0)=>{const n=A.value;if(!["forward","backward"].includes(e)||x.value||n.length<=0||L.value)return;if(!b.value)return Z();void 0===t&&(t=i.hoveringIndex);let r=-1;"forward"===e?(r=t+1,r>=n.length&&(r=0)):"backward"===e&&(r=t-1,(r<0||r>=n.length)&&(r=n.length-1));const o=n[r];if(o.disabled||"Group"===o.type)return de(e,r);pe(r),me(r)},pe=e=>{i.hoveringIndex=e},fe=()=>{i.hoveringIndex=-1},ve=()=>{var e;const t=d.value;t&&(null==(e=t.focus)||e.call(t))},he=t=>{const n=t.target.value;if(ce(n),i.displayInputValue.length>0&&!b.value&&(b.value=!0),i.calculatedWidth=y.value.getBoundingClientRect().width,e.multiple&&le(),!e.remote)return ee();te()},me=e=>{f.value.scrollToItem(e)},ge=()=>{if(fe(),e.multiple)if(e.modelValue.length>0){let t=!1;i.cachedOptions.length=0,i.previousValue=e.modelValue.toString(),e.modelValue.forEach((e=>{const n=A.value.findIndex((t=>oe(t)===e));~n&&(i.cachedOptions.push(A.value[n]),t||pe(n),t=!0)}))}else i.cachedOptions=[],i.previousValue=void 0;else if(k.value){i.previousValue=e.modelValue;const t=A.value,n=t.findIndex((t=>oe(t)===oe(e.modelValue)));~n?(i.selectedLabel=t[n].label,pe(n)):i.selectedLabel=`${e.modelValue}`}else i.selectedLabel="",i.previousValue=void 0;Y(),N()};return nr(b,(e=>{var n,r;t("visible-change",e),e?null==(r=(n=v.value).update)||r.call(n):(i.displayInputValue="",i.previousQuery=null,U(""))})),nr((()=>e.modelValue),((t,n)=>{var r;t&&t.toString()===i.previousValue||ge(),!$_(t,n)&&e.validateEvent&&(null==(r=null==a?void 0:a.validate)||r.call(a,"change").catch((e=>{})))}),{deep:!0}),nr((()=>e.options),(()=>{const e=d.value;(!e||e&&document.activeElement!==e)&&ge()}),{deep:!0}),nr(A,(()=>wn(f.value.resetScrollTop))),nr((()=>$.value),(e=>{e||fe()})),Nr((()=>{ge()})),hp(h,ae),{collapseTagSize:R,currentPlaceholder:B,expanded:b,emptyText:T,popupHeight:C,debounce:z,filteredOptions:A,iconComponent:_,iconReverse:E,inputWrapperStyle:j,popperSize:u,dropdownMenuVisible:$,hasModelValue:k,shouldShowPlaceholder:V,selectDisabled:x,selectSize:I,showClearBtn:S,states:i,tagMaxWidth:P,nsSelectV2:r,nsInput:o,calculatorRef:y,controlRef:c,inputRef:d,menuRef:f,popper:v,selectRef:h,selectionRef:m,popperRef:H,validateState:O,validateIcon:M,showTagList:F,collapseTagList:W,debouncedOnInputChange:te,deleteTag:(n,r)=>{const{valueKey:o}=e,l=e.modelValue.indexOf(yb(r,o));if(l>-1&&!x.value){const n=[...e.modelValue.slice(0,l),...e.modelValue.slice(l+1)];return i.cachedOptions.splice(l,1),re(n),t("remove-tag",yb(r,o)),i.softFocus=!0,K(r),wn(Q)}n.stopPropagation()},getLabel:e=>w(e)?e.label:e,getValueKey:oe,handleBlur:ue,handleClear:()=>{let n;return n=p(e.modelValue)?[]:void 0,i.softFocus=!0,e.multiple?i.cachedOptions=[]:i.selectedLabel="",b.value=!1,re(n),t("clear"),Y(),wn(Q)},handleClickOutside:()=>(b.value=!1,ue()),handleDel:t=>{if(0===i.displayInputValue.length){t.preventDefault();const n=e.modelValue.slice();n.pop(),K(i.cachedOptions.pop()),re(n)}},handleEsc:()=>{i.displayInputValue.length>0?ce(""):b.value=!1},handleFocus:e=>{const n=i.isComposing;i.isComposing=!0,i.softFocus?i.softFocus=!1:n||t("focus",e)},handleMenuEnter:()=>(i.inputValue=i.displayInputValue,wn((()=>{~D.value&&(pe(D.value),me(i.hoveringIndex))}))),handleResize:ae,toggleMenu:Z,scrollTo:me,onInput:he,onKeyboardNavigate:de,onKeyboardSelect:()=>{if(!b.value)return Z();~i.hoveringIndex&&A.value[i.hoveringIndex]&&se(A.value[i.hoveringIndex],i.hoveringIndex,!1)},onSelect:se,onHover:pe,onUpdateInputValue:ce,handleCompositionStart:G,handleCompositionEnd:X,handleCompositionUpdate:J}},Pne=wr({name:"ElSelectV2",components:{ElSelectMenu:Lne,ElTag:b4,ElTooltip:BQ,ElIcon:ZG},directives:{ClickOutside:N0,ModelText:oi},props:One,emits:[_K,EK,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=oa((()=>{const{modelValue:t,multiple:n}=e,r=n?[]:void 0;return p(t)?n?t:r:n?r:t})),r=Rne(zt({...en(e),modelValue:n}),t);return Mo(Ane,{props:zt({...en(e),height:r.popupHeight,modelValue:n}),popper:r.popper,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:n}}}),Nne={key:0},jne=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],Vne=["textContent"],Bne=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],Hne=["textContent"];var Dne=UG(Pne,[["render",function(e,t,n,r,o,l){const a=Kr("el-tag"),i=Kr("el-tooltip"),s=Kr("el-icon"),u=Kr("el-select-menu"),c=Gr("model-text"),d=Gr("click-outside");return ir((vl(),bl("div",{ref:"selectRef",class:X([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=gi(((...t)=>e.toggleMenu&&e.toggleMenu(...t)),["stop"])),onMouseenter:t[25]||(t[25]=t=>e.states.comboBoxHovering=!0),onMouseleave:t[26]||(t[26]=t=>e.states.comboBoxHovering=!1)},[Ol(i,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[23]||(t[23]=t=>e.states.inputValue=e.states.displayInputValue)},{default:Bn((()=>[El("div",{ref:"selectionRef",class:X([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing||e.expanded),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(vl(),bl("div",Nne,[eo(e.$slots,"prefix")])):Ll("v-if",!0),e.multiple?(vl(),bl("div",{key:1,class:X(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(vl(),bl(sl,{key:0},[(vl(!0),bl(sl,null,Qr(e.showTagList,(t=>(vl(),bl("div",{key:e.getValueKey(t),class:X(e.nsSelectV2.e("selected-item"))},[Ol(a,{closable:!e.selectDisabled&&!(null==t?void 0:t.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:Bn((()=>[El("span",{class:X(e.nsSelectV2.e("tags-text")),style:K({maxWidth:`${e.tagMaxWidth}px`})},ve(null==t?void 0:t.label),7)])),_:2},1032,["closable","size","onClose"])],2)))),128)),El("div",{class:X(e.nsSelectV2.e("selected-item"))},[e.modelValue.length>e.maxCollapseTags?(vl(),wl(a,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:Bn((()=>[e.collapseTagsTooltip?(vl(),wl(i,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:Bn((()=>[El("span",{class:X(e.nsSelectV2.e("tags-text")),style:K({maxWidth:`${e.tagMaxWidth}px`})},"+ "+ve(e.modelValue.length-e.maxCollapseTags),7)])),content:Bn((()=>[El("div",{class:X(e.nsSelectV2.e("selection"))},[(vl(!0),bl(sl,null,Qr(e.collapseTagList,(t=>(vl(),bl("div",{key:e.getValueKey(t),class:X(e.nsSelectV2.e("selected-item"))},[Ol(a,{closable:!e.selectDisabled&&!t.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:Bn((()=>[El("span",{class:X(e.nsSelectV2.e("tags-text")),style:K({maxWidth:`${e.tagMaxWidth}px`})},ve(e.getLabel(t)),7)])),_:2},1032,["closable","size","onClose"])],2)))),128))],2)])),_:1},8,["disabled","effect"])):(vl(),bl("span",{key:1,class:X(e.nsSelectV2.e("tags-text")),style:K({maxWidth:`${e.tagMaxWidth}px`})},"+ "+ve(e.modelValue.length-e.maxCollapseTags),7))])),_:1},8,["size"])):Ll("v-if",!0)],2)],64)):(vl(!0),bl(sl,{key:1},Qr(e.states.cachedOptions,(t=>(vl(),bl("div",{key:e.getValueKey(t),class:X(e.nsSelectV2.e("selected-item"))},[Ol(a,{closable:!e.selectDisabled&&!t.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:Bn((()=>[El("span",{class:X(e.nsSelectV2.e("tags-text")),style:K({maxWidth:`${e.tagMaxWidth}px`})},ve(e.getLabel(t)),7)])),_:2},1032,["closable","size","onClose"])],2)))),128)),El("div",{class:X([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:K(e.inputWrapperStyle)},[ir(El("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:X([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":t[0]||(t[0]=(...t)=>e.onUpdateInputValue&&e.onUpdateInputValue(...t)),onFocus:t[1]||(t[1]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onBlur:t[2]||(t[2]=(...t)=>e.handleBlur&&e.handleBlur(...t)),onInput:t[3]||(t[3]=(...t)=>e.onInput&&e.onInput(...t)),onCompositionstart:t[4]||(t[4]=(...t)=>e.handleCompositionStart&&e.handleCompositionStart(...t)),onCompositionupdate:t[5]||(t[5]=(...t)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...t)),onCompositionend:t[6]||(t[6]=(...t)=>e.handleCompositionEnd&&e.handleCompositionEnd(...t)),onKeydown:[t[7]||(t[7]=bi(gi((t=>e.onKeyboardNavigate("backward")),["stop","prevent"]),["up"])),t[8]||(t[8]=bi(gi((t=>e.onKeyboardNavigate("forward")),["stop","prevent"]),["down"])),t[9]||(t[9]=bi(gi(((...t)=>e.onKeyboardSelect&&e.onKeyboardSelect(...t)),["stop","prevent"]),["enter"])),t[10]||(t[10]=bi(gi(((...t)=>e.handleEsc&&e.handleEsc(...t)),["stop","prevent"]),["esc"])),t[11]||(t[11]=bi(gi(((...t)=>e.handleDel&&e.handleDel(...t)),["stop"]),["delete"]))]},null,42,jne),[[c,e.states.displayInputValue]]),e.filterable?(vl(),bl("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:X(e.nsSelectV2.e("input-calculator")),textContent:ve(e.states.displayInputValue)},null,10,Vne)):Ll("v-if",!0)],6)],2)):(vl(),bl(sl,{key:2},[El("div",{class:X([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[ir(El("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:X(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:t[12]||(t[12]=(...t)=>e.handleCompositionStart&&e.handleCompositionStart(...t)),onCompositionupdate:t[13]||(t[13]=(...t)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...t)),onCompositionend:t[14]||(t[14]=(...t)=>e.handleCompositionEnd&&e.handleCompositionEnd(...t)),onFocus:t[15]||(t[15]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onBlur:t[16]||(t[16]=(...t)=>e.handleBlur&&e.handleBlur(...t)),onInput:t[17]||(t[17]=(...t)=>e.onInput&&e.onInput(...t)),onKeydown:[t[18]||(t[18]=bi(gi((t=>e.onKeyboardNavigate("backward")),["stop","prevent"]),["up"])),t[19]||(t[19]=bi(gi((t=>e.onKeyboardNavigate("forward")),["stop","prevent"]),["down"])),t[20]||(t[20]=bi(gi(((...t)=>e.onKeyboardSelect&&e.onKeyboardSelect(...t)),["stop","prevent"]),["enter"])),t[21]||(t[21]=bi(gi(((...t)=>e.handleEsc&&e.handleEsc(...t)),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[22]||(t[22]=(...t)=>e.onUpdateInputValue&&e.onUpdateInputValue(...t))},null,42,Bne),[[c,e.states.displayInputValue]])],2),e.filterable?(vl(),bl("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:X([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:ve(e.states.displayInputValue)},null,10,Hne)):Ll("v-if",!0)],64)),e.shouldShowPlaceholder?(vl(),bl("span",{key:3,class:X([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?0===e.modelValue.length:!e.hasModelValue)])},ve(e.currentPlaceholder),3)):Ll("v-if",!0),El("span",{class:X(e.nsSelectV2.e("suffix"))},[e.iconComponent?ir((vl(),wl(s,{key:0,class:X([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:Bn((()=>[(vl(),wl(Yr(e.iconComponent)))])),_:1},8,["class"])),[[wi,!e.showClearBtn]]):Ll("v-if",!0),e.showClearBtn&&e.clearIcon?(vl(),wl(s,{key:1,class:X([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:gi(e.handleClear,["prevent","stop"])},{default:Bn((()=>[(vl(),wl(Yr(e.clearIcon)))])),_:1},8,["class","onClick"])):Ll("v-if",!0),e.validateState&&e.validateIcon?(vl(),wl(s,{key:2,class:X([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:Bn((()=>[(vl(),wl(Yr(e.validateIcon)))])),_:1},8,["class"])):Ll("v-if",!0)],2)],2)])),content:Bn((()=>[Ol(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:Bn((t=>[eo(e.$slots,"default",Q(Ml(t)))])),empty:Bn((()=>[eo(e.$slots,"empty",{},(()=>[El("p",{class:X(e.nsSelectV2.e("empty"))},ve(e.emptyText?e.emptyText:""),3)]))])),_:3},8,["data","width","hovering-index","scrollbar-always-on"])])),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[d,e.handleClickOutside,e.popperRef]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);Dne.install=e=>{e.component(Dne.name,Dne)};const $ne=Dne,Fne=fK({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),Wne=fK({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),Une=wr({name:"ElSkeletonItem"});var Kne=UG(wr({...Une,props:Wne,setup(e){const t=tq("skeleton");return(e,n)=>(vl(),bl("div",{class:X([Gt(t).e("item"),Gt(t).e(e.variant)])},["image"===e.variant?(vl(),wl(Gt(BH),{key:0})):Ll("v-if",!0)],2))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const qne=wr({name:"ElSkeleton"}),Yne=wr({...qne,props:Fne,setup(e,{expose:t}){const n=e,r=tq("skeleton"),o=((e,t=0)=>{if(0===t)return e;const n=Wt(!1);let r=0;const o=()=>{r&&clearTimeout(r),r=window.setTimeout((()=>{n.value=e.value}),t)};return Nr(o),nr((()=>e.value),(e=>{e?o():n.value=e})),n})(rn(n,"loading"),n.throttle);return t({uiLoading:o}),(e,t)=>Gt(o)?(vl(),bl("div",Nl({key:0,class:[Gt(r).b(),Gt(r).is("animated",e.animated)]},e.$attrs),[(vl(!0),bl(sl,null,Qr(e.count,(t=>(vl(),bl(sl,{key:t},[e.loading?eo(e.$slots,"template",{key:t},(()=>[Ol(Kne,{class:X(Gt(r).is("first")),variant:"p"},null,8,["class"]),(vl(!0),bl(sl,null,Qr(e.rows,(t=>(vl(),wl(Kne,{key:t,class:X([Gt(r).e("paragraph"),Gt(r).is("last",t===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"])))),128))])):Ll("v-if",!0)],64)))),128))],16)):eo(e.$slots,"default",Q(Nl({key:1},e.$attrs)))}}),Gne=bK(UG(Yne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]),{SkeletonItem:Kne}),Jne=xK(Kne),Xne=Symbol("sliderContextKey"),Qne=fK({modelValue:{type:[Number,Array],default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:LG,inputSize:LG,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Function,default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:Function,default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:yq,default:"top"},marks:{type:Object},validateEvent:{type:Boolean,default:!0}}),Zne=e=>Mz(e)||p(e)&&e.every(Mz),ere={[_K]:Zne,[OK]:Zne,[EK]:Zne},{left:tre,down:nre,right:rre,up:ore,home:lre,end:are,pageUp:ire,pageDown:sre}=kK,ure=(e,t,n)=>{const{disabled:r,min:o,max:l,step:a,showTooltip:i,precision:s,sliderSize:u,formatTooltip:c,emitChange:d,resetSize:p,updateDragging:f}=zo(Xne),{tooltip:v,tooltipVisible:h,formatValue:m,displayTooltip:g,hideTooltip:y}=((e,t,n)=>{const r=Wt(),o=Wt(!1),l=oa((()=>t.value instanceof Function)),a=oa((()=>l.value&&t.value(e.modelValue)||e.modelValue)),i=Pk((()=>{n.value&&(o.value=!0)}),50),s=Pk((()=>{n.value&&(o.value=!1)}),50);return{tooltip:r,tooltipVisible:o,formatValue:a,displayTooltip:i,hideTooltip:s}})(e,c,i),b=Wt(),w=oa((()=>(e.modelValue-o.value)/(l.value-o.value)*100+"%")),x=oa((()=>e.vertical?{bottom:w.value}:{left:w.value})),C=e=>{r.value||(t.newPosition=Number.parseFloat(w.value)+e/(l.value-o.value)*100,E(t.newPosition),d())},k=e=>{let t,n;return e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},S=n=>{if(t.dragging){let r;t.isClick=!1,g(),p();const{clientX:o,clientY:l}=k(n);e.vertical?(t.currentY=l,r=(t.startY-t.currentY)/u.value*100):(t.currentX=o,r=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+r,E(t.newPosition)}},_=()=>{t.dragging&&(setTimeout((()=>{t.dragging=!1,t.hovering||y(),t.isClick||E(t.newPosition),d()}),0),window.removeEventListener("mousemove",S),window.removeEventListener("touchmove",S),window.removeEventListener("mouseup",_),window.removeEventListener("touchend",_),window.removeEventListener("contextmenu",_))},E=async r=>{if(null===r||Number.isNaN(+r))return;r<0?r=0:r>100&&(r=100);const i=100/((l.value-o.value)/a.value);let u=Math.round(r/i)*i*(l.value-o.value)*.01+o.value;u=Number.parseFloat(u.toFixed(s.value)),u!==e.modelValue&&n(_K,u),t.dragging||e.modelValue===t.oldValue||(t.oldValue=e.modelValue),await wn(),t.dragging&&g(),v.value.updatePopper()};return nr((()=>t.dragging),(e=>{f(e)})),{disabled:r,button:b,tooltip:v,tooltipVisible:h,showTooltip:i,wrapperStyle:x,formatValue:m,handleMouseEnter:()=>{t.hovering=!0,g()},handleMouseLeave:()=>{t.hovering=!1,t.dragging||y()},onButtonDown:n=>{r.value||(n.preventDefault(),(n=>{t.dragging=!0,t.isClick=!0;const{clientX:r,clientY:o}=k(n);e.vertical?t.startY=o:t.startX=r,t.startPosition=Number.parseFloat(w.value),t.newPosition=t.startPosition})(n),window.addEventListener("mousemove",S),window.addEventListener("touchmove",S),window.addEventListener("mouseup",_),window.addEventListener("touchend",_),window.addEventListener("contextmenu",_),b.value.focus())},onKeyDown:e=>{let t=!0;[tre,nre].includes(e.key)?C(-a.value):[rre,ore].includes(e.key)?C(a.value):e.key===lre?r.value||(E(0),d()):e.key===are?r.value||(E(100),d()):e.key===sre?C(4*-a.value):e.key===ire?C(4*a.value):t=!1,t&&e.preventDefault()},setPosition:E}},cre=fK({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:yq,default:"top"}}),dre={[_K]:e=>Mz(e)},pre=["tabindex"],fre=wr({name:"ElSliderButton"}),vre=wr({...fre,props:cre,emits:dre,setup(e,{expose:t,emit:n}){const r=e,o=tq("slider"),l=zt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:a,button:i,tooltip:s,showTooltip:u,tooltipVisible:c,wrapperStyle:d,formatValue:p,handleMouseEnter:f,handleMouseLeave:v,onButtonDown:h,onKeyDown:m,setPosition:g}=ure(r,l,n),{hovering:y,dragging:b}=en(l);return t({onButtonDown:h,onKeyDown:m,setPosition:g,hovering:y,dragging:b}),(e,t)=>(vl(),bl("div",{ref_key:"button",ref:i,class:X([Gt(o).e("button-wrapper"),{hover:Gt(y),dragging:Gt(b)}]),style:K(Gt(d)),tabindex:Gt(a)?-1:0,onMouseenter:t[0]||(t[0]=(...e)=>Gt(f)&&Gt(f)(...e)),onMouseleave:t[1]||(t[1]=(...e)=>Gt(v)&&Gt(v)(...e)),onMousedown:t[2]||(t[2]=(...e)=>Gt(h)&&Gt(h)(...e)),onTouchstart:t[3]||(t[3]=(...e)=>Gt(h)&&Gt(h)(...e)),onFocus:t[4]||(t[4]=(...e)=>Gt(f)&&Gt(f)(...e)),onBlur:t[5]||(t[5]=(...e)=>Gt(v)&&Gt(v)(...e)),onKeydown:t[6]||(t[6]=(...e)=>Gt(m)&&Gt(m)(...e))},[Ol(Gt(BQ),{ref_key:"tooltip",ref:s,visible:Gt(c),placement:e.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":e.tooltipClass,disabled:!Gt(u),persistent:""},{content:Bn((()=>[El("span",null,ve(Gt(p)),1)])),default:Bn((()=>[El("div",{class:X([Gt(o).e("button"),{hover:Gt(y),dragging:Gt(b)}])},null,2)])),_:1},8,["visible","placement","popper-class","disabled"])],46,pre))}});var hre=UG(vre,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]),mre=wr({name:"ElSliderMarker",props:fK({mark:{type:[String,Object],default:void 0}}),setup(e){const t=tq("slider"),n=oa((()=>y(e.mark)?e.mark:e.mark.label)),r=oa((()=>y(e.mark)?void 0:e.mark.style));return()=>la("div",{class:t.e("marks-text"),style:r.value},n.value)}});const gre=["id","role","aria-label","aria-labelledby"],yre={key:1},bre=wr({name:"ElSlider"}),wre=wr({...bre,props:Qne,emits:ere,setup(e,{expose:t,emit:n}){const r=e,o=tq("slider"),{t:l}=JK(),a=zt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:i,slider:s,firstButton:u,secondButton:c,sliderDisabled:d,minValue:p,maxValue:f,runwayStyle:v,barStyle:h,resetSize:m,emitChange:g,onSliderWrapperPrevent:y,onSliderClick:b,onSliderDown:w,setFirstValue:x,setSecondValue:C}=((e,t,n)=>{const{form:r,formItem:o}=uJ(),l=Ut(),a=Wt(),i=Wt(),s={firstButton:a,secondButton:i},u=oa((()=>e.disabled||(null==r?void 0:r.disabled)||!1)),c=oa((()=>Math.min(t.firstValue,t.secondValue))),d=oa((()=>Math.max(t.firstValue,t.secondValue))),p=oa((()=>e.range?100*(d.value-c.value)/(e.max-e.min)+"%":100*(t.firstValue-e.min)/(e.max-e.min)+"%")),f=oa((()=>e.range?100*(c.value-e.min)/(e.max-e.min)+"%":"0%")),v=oa((()=>e.vertical?{height:e.height}:{})),h=oa((()=>e.vertical?{height:p.value,bottom:f.value}:{width:p.value,left:f.value})),m=()=>{l.value&&(t.sliderSize=l.value["client"+(e.vertical?"Height":"Width")])},g=n=>{const r=(n=>{const r=e.min+n*(e.max-e.min)/100;if(!e.range)return a;let o;return o=Math.abs(c.value-r)t.secondValue?"firstButton":"secondButton",s[o]})(n);return r.value.setPosition(n),r},y=e=>{n(_K,e),n(OK,e)},b=async()=>{await wn(),n(EK,e.range?[c.value,d.value]:e.modelValue)},w=n=>{var r,o,a,i,s,c;if(u.value||t.dragging)return;m();let d=0;if(e.vertical){const e=null!=(a=null==(o=null==(r=n.touches)?void 0:r.item(0))?void 0:o.clientY)?a:n.clientY;d=(l.value.getBoundingClientRect().bottom-e)/t.sliderSize*100}else d=((null!=(c=null==(s=null==(i=n.touches)?void 0:i.item(0))?void 0:s.clientX)?c:n.clientX)-l.value.getBoundingClientRect().left)/t.sliderSize*100;return d<0||d>100?void 0:g(d)};return{elFormItem:o,slider:l,firstButton:a,secondButton:i,sliderDisabled:u,minValue:c,maxValue:d,runwayStyle:v,barStyle:h,resetSize:m,setPosition:g,emitChange:b,onSliderWrapperPrevent:e=>{var t,n;((null==(t=s.firstButton.value)?void 0:t.dragging)||(null==(n=s.secondButton.value)?void 0:n.dragging))&&e.preventDefault()},onSliderClick:e=>{w(e)&&b()},onSliderDown:async e=>{const t=w(e);t&&(await wn(),t.value.onButtonDown(e))},setFirstValue:n=>{t.firstValue=n,y(e.range?[c.value,d.value]:n)},setSecondValue:n=>{t.secondValue=n,e.range&&y([c.value,d.value])}}})(r,a,n),{stops:k,getStopStyle:S}=(N=r,j=a,V=p,B=f,{stops:oa((()=>{if(!N.showStops||N.min>N.max)return[];if(0===N.step)return[];const e=(N.max-N.min)/N.step,t=100*N.step/(N.max-N.min),n=Array.from({length:e-1}).map(((e,n)=>(n+1)*t));return N.range?n.filter((e=>e<100*(V.value-N.min)/(N.max-N.min)||e>100*(B.value-N.min)/(N.max-N.min))):n.filter((e=>e>100*(j.firstValue-N.min)/(N.max-N.min)))})),getStopStyle:e=>N.vertical?{bottom:`${e}%`}:{left:`${e}%`}}),{inputId:_,isLabeledByFormItem:E}=cJ(r,{formItemContext:i}),O=iJ(),M=oa((()=>r.inputSize||O.value)),z=oa((()=>r.label||l("el.slider.defaultLabel",{min:r.min,max:r.max}))),T=oa((()=>r.range?r.rangeStartLabel||l("el.slider.defaultRangeStartLabel"):z.value)),A=oa((()=>r.formatValueText?r.formatValueText($.value):`${$.value}`)),L=oa((()=>r.rangeEndLabel||l("el.slider.defaultRangeEndLabel"))),I=oa((()=>r.formatValueText?r.formatValueText(F.value):`${F.value}`)),R=oa((()=>[o.b(),o.m(O.value),o.is("vertical",r.vertical),{[o.m("with-input")]:r.showInput}])),P=(e=>oa((()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort(((e,t)=>e-t)).filter((t=>t<=e.max&&t>=e.min)).map((t=>({point:t,position:100*(t-e.min)/(e.max-e.min),mark:e.marks[t]}))):[])))(r);var N,j,V,B;((e,t,n,r,o,l)=>{const a=e=>{o(_K,e),o(OK,e)},i=()=>e.range?![n.value,r.value].every(((e,n)=>e===t.oldValue[n])):e.modelValue!==t.oldValue,s=()=>{var n,r;e.min>e.max&&Nz("Slider","min should not be greater than max.");const o=e.modelValue;e.range&&Array.isArray(o)?o[1]e.max?a([e.max,e.max]):o[0]e.max?a([o[0],e.max]):(t.firstValue=o[0],t.secondValue=o[1],i()&&(e.validateEvent&&(null==(n=null==l?void 0:l.validate)||n.call(l,"change").catch((e=>{}))),t.oldValue=o.slice())):e.range||"number"!=typeof o||Number.isNaN(o)||(oe.max?a(e.max):(t.firstValue=o,i()&&(e.validateEvent&&(null==(r=null==l?void 0:l.validate)||r.call(l,"change").catch((e=>{}))),t.oldValue=o)))};s(),nr((()=>t.dragging),(e=>{e||s()})),nr((()=>e.modelValue),((e,n)=>{t.dragging||Array.isArray(e)&&Array.isArray(n)&&e.every(((e,t)=>e===n[t]))&&t.firstValue===e[0]&&t.secondValue===e[1]||s()}),{deep:!0}),nr((()=>[e.min,e.max]),(()=>{s()}))})(r,a,p,f,n,i);const H=oa((()=>{const e=[r.min,r.max,r.step].map((e=>{const t=`${e}`.split(".")[1];return t?t.length:0}));return Math.max.apply(null,e)})),{sliderWrapper:D}=((e,t,n)=>{const r=Wt();return Nr((async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):("number"!=typeof e.modelValue||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),_c(window,"resize",n),await wn(),n()})),{sliderWrapper:r}})(r,a,m),{firstValue:$,secondValue:F,sliderSize:W}=en(a);return Mo(Xne,{...en(r),sliderSize:W,disabled:d,precision:H,emitChange:g,resetSize:m,updateDragging:e=>{a.dragging=e}}),t({onSliderClick:b}),(e,t)=>{var n,r;return vl(),bl("div",{id:e.range?Gt(_):void 0,ref_key:"sliderWrapper",ref:D,class:X(Gt(R)),role:e.range?"group":void 0,"aria-label":e.range&&!Gt(E)?Gt(z):void 0,"aria-labelledby":e.range&&Gt(E)?null==(n=Gt(i))?void 0:n.labelId:void 0,onTouchstart:t[2]||(t[2]=(...e)=>Gt(y)&&Gt(y)(...e)),onTouchmove:t[3]||(t[3]=(...e)=>Gt(y)&&Gt(y)(...e))},[El("div",{ref_key:"slider",ref:s,class:X([Gt(o).e("runway"),{"show-input":e.showInput&&!e.range},Gt(o).is("disabled",Gt(d))]),style:K(Gt(v)),onMousedown:t[0]||(t[0]=(...e)=>Gt(w)&&Gt(w)(...e)),onTouchstart:t[1]||(t[1]=(...e)=>Gt(w)&&Gt(w)(...e))},[El("div",{class:X(Gt(o).e("bar")),style:K(Gt(h))},null,6),Ol(hre,{id:e.range?void 0:Gt(_),ref_key:"firstButton",ref:u,"model-value":Gt($),vertical:e.vertical,"tooltip-class":e.tooltipClass,placement:e.placement,role:"slider","aria-label":e.range||!Gt(E)?Gt(T):void 0,"aria-labelledby":!e.range&&Gt(E)?null==(r=Gt(i))?void 0:r.labelId:void 0,"aria-valuemin":e.min,"aria-valuemax":e.range?Gt(F):e.max,"aria-valuenow":Gt($),"aria-valuetext":Gt(A),"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":Gt(d),"onUpdate:modelValue":Gt(x)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),e.range?(vl(),wl(hre,{key:0,ref_key:"secondButton",ref:c,"model-value":Gt(F),vertical:e.vertical,"tooltip-class":e.tooltipClass,placement:e.placement,role:"slider","aria-label":Gt(L),"aria-valuemin":Gt($),"aria-valuemax":e.max,"aria-valuenow":Gt(F),"aria-valuetext":Gt(I),"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":Gt(d),"onUpdate:modelValue":Gt(C)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):Ll("v-if",!0),e.showStops?(vl(),bl("div",yre,[(vl(!0),bl(sl,null,Qr(Gt(k),((e,t)=>(vl(),bl("div",{key:t,class:X(Gt(o).e("stop")),style:K(Gt(S)(e))},null,6)))),128))])):Ll("v-if",!0),Gt(P).length>0?(vl(),bl(sl,{key:2},[El("div",null,[(vl(!0),bl(sl,null,Qr(Gt(P),((e,t)=>(vl(),bl("div",{key:t,style:K(Gt(S)(e.position)),class:X([Gt(o).e("stop"),Gt(o).e("marks-stop")])},null,6)))),128))]),El("div",{class:X(Gt(o).e("marks"))},[(vl(!0),bl(sl,null,Qr(Gt(P),((e,t)=>(vl(),wl(Gt(mre),{key:t,mark:e.mark,style:K(Gt(S)(e.position))},null,8,["mark","style"])))),128))],2)],64)):Ll("v-if",!0)],38),e.showInput&&!e.range?(vl(),wl(Gt(Q9),{key:0,ref:"input","model-value":Gt($),class:X(Gt(o).e("input")),step:e.step,disabled:Gt(d),controls:e.showInputControls,min:e.min,max:e.max,debounce:e.debounce,size:Gt(M),"onUpdate:modelValue":Gt(x),onChange:Gt(g)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):Ll("v-if",!0)],42,gre)}}}),xre=bK(UG(wre,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]])),Cre=wr({name:"ElSpaceItem",props:fK({prefixCls:{type:String}}),setup(e,{slots:t}){const n=tq("space"),r=oa((()=>`${e.prefixCls||n.b()}__item`));return()=>la("div",{class:r.value},eo(t,"default"))}}),kre={small:8,default:12,large:16},Sre=wr({name:"ElSpace",props:fK({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:[String,Object,Array],default:""},style:{type:[String,Array,Object],default:""},alignment:{type:String,default:"center"},prefixCls:{type:String},spacer:{type:[Object,String,Number,Array],default:null,validator:e=>xl(e)||Mz(e)||y(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:zK,validator:e=>Mz(e)||p(e)&&2===e.length&&e.every(Mz)}}),setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:o}=function(e){const t=tq("space"),n=oa((()=>[t.b(),t.m(e.direction),e.class])),r=Wt(0),o=Wt(0),l=oa((()=>[e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${o.value}px`}:{},{alignItems:e.alignment},e.style])),a=oa((()=>[{paddingBottom:`${o.value}px`,marginRight:`${r.value}px`},e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{}]));return Zn((()=>{const{size:t="small",wrap:n,direction:l,fill:a}=e;if(p(t)){const[e=0,n=0]=t;r.value=e,o.value=n}else{let e;e=Mz(t)?t:kre[t||"small"]||kre.small,(n||a)&&"horizontal"===l?r.value=o.value=e:"horizontal"===l?(r.value=e,o.value=0):(o.value=e,r.value=0)}})),{classes:n,containerStyle:l,itemStyle:a}}(e);function l(t,n="",r=[]){const{prefixCls:a}=e;return t.forEach(((e,t)=>{IK(e)?p(e.children)&&e.children.forEach(((e,t)=>{IK(e)&&p(e.children)?l(e.children,`${n+t}-`,r):r.push(Ol(Cre,{style:o.value,prefixCls:a,key:`nested-${n+t}`},{default:()=>[e]},LK.PROPS|LK.STYLE,["style","prefixCls"]))})):function(e){return xl(e)&&!IK(e)&&!(xl(t=e)&&t.type===cl);var t}(e)&&r.push(Ol(Cre,{style:o.value,prefixCls:a,key:`LoopKey${n+t}`},{default:()=>[e]},LK.PROPS|LK.STYLE,["style","prefixCls"]))})),r}return()=>{var a;const{spacer:i,direction:s}=e,u=eo(t,"default",{key:0},(()=>[]));if(0===(null!=(a=u.children)?a:[]).length)return null;if(p(u.children)){let e=l(u.children);if(i){const t=e.length-1;e=e.reduce(((e,n,r)=>{const l=[...e,n];return r!==t&&l.push(Ol("span",{style:[o.value,"vertical"===s?"width: 100%":null],key:r},[xl(i)?i:Tl(i,LK.TEXT)],LK.STYLE)),l}),[])}return Ol("div",{class:n.value,style:r.value},e,LK.STYLE|LK.CLASS)}return u.children}}}),_re=bK(Sre),Ere=fK({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:[Number,Object],default:0},prefix:String,suffix:String,title:String,valueStyle:{type:[String,Object,Array]}}),Ore=wr({name:"ElStatistic"}),Mre=wr({...Ore,props:Ere,setup(e,{expose:t}){const n=e,r=tq("statistic"),o=oa((()=>{const{value:e,formatter:t,precision:r,decimalSeparator:o,groupSeparator:l}=n;if(g(t))return t(e);if(!Mz(e))return e;let[a,i=""]=String(e).split(".");return i=i.padEnd(r,"0").slice(0,r>0?r:0),a=a.replace(/\B(?=(\d{3})+(?!\d))/g,l),[a,i].join(i?o:"")}));return t({displayValue:o}),(e,t)=>(vl(),bl("div",{class:X(Gt(r).b())},[e.$slots.title||e.title?(vl(),bl("div",{key:0,class:X(Gt(r).e("head"))},[eo(e.$slots,"title",{},(()=>[Tl(ve(e.title),1)]))],2)):Ll("v-if",!0),El("div",{class:X(Gt(r).e("content"))},[e.$slots.prefix||e.prefix?(vl(),bl("div",{key:0,class:X(Gt(r).e("prefix"))},[eo(e.$slots,"prefix",{},(()=>[El("span",null,ve(e.prefix),1)]))],2)):Ll("v-if",!0),El("span",{class:X(Gt(r).e("number")),style:K(e.valueStyle)},ve(Gt(o)),7),e.$slots.suffix||e.suffix?(vl(),bl("div",{key:1,class:X(Gt(r).e("suffix"))},[eo(e.$slots,"suffix",{},(()=>[El("span",null,ve(e.suffix),1)]))],2)):Ll("v-if",!0)],2)],2))}}),zre=bK(UG(Mre,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]])),Tre=fK({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:[Number,Object],default:0},valueStyle:{type:[String,Object,Array]}}),Are={finish:()=>!0,[EK]:e=>Mz(e)},Lre=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],Ire=e=>Mz(e)?new Date(e).getTime():e.valueOf(),Rre=(e,t)=>{let n=e;return Lre.reduce(((e,[t,r])=>{const o=new RegExp(`${t}+(?![^\\[\\]]*\\])`,"g");if(o.test(e)){const t=Math.floor(n/r);return n-=t*r,e.replace(o,(e=>String(t).padStart(e.length,"0")))}return e}),t).replace(/\[([^\]]*)]/g,"$1")},Pre=wr({name:"ElCountdown"}),Nre=wr({...Pre,props:Tre,emits:Are,setup(e,{expose:t,emit:n}){const r=e;let o;const l=Wt(Ire(r.value)-Date.now()),a=oa((()=>Rre(l.value,r.format))),i=e=>Rre(e,r.format),s=()=>{o&&(BK(o),o=void 0)};return nr((()=>[r.value,r.format]),(()=>{s(),(()=>{const e=Ire(r.value),t=()=>{let r=e-Date.now();n("change",r),r<=0?(r=0,s(),n("finish")):o=VK(t),l.value=r};o=VK(t)})()}),{immediate:!0}),Br((()=>{s()})),t({displayValue:a}),(e,t)=>(vl(),wl(Gt(zre),{value:l.value,title:e.title,prefix:e.prefix,suffix:e.suffix,"value-style":e.valueStyle,formatter:i},Zr({_:2},[Qr(e.$slots,((t,n)=>({name:n,fn:Bn((()=>[eo(e.$slots,n)]))})))]),1032,["value","title","prefix","suffix","value-style"]))}}),jre=bK(UG(Nre,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]])),Vre=fK({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),Bre={[EK]:(e,t)=>[e,t].every(Mz)},Hre=wr({name:"ElSteps"}),Dre=wr({...Hre,props:Vre,emits:Bre,setup(e,{emit:t}){const n=e,r=tq("steps"),{children:o,addChild:l,removeChild:a}=AG($l(),"ElStep");return nr(o,(()=>{o.value.forEach(((e,t)=>{e.setIndex(t)}))})),Mo("ElSteps",{props:n,steps:o,addStep:l,removeStep:a}),nr((()=>n.active),((e,n)=>{t(EK,e,n)})),(e,t)=>(vl(),bl("div",{class:X([Gt(r).b(),Gt(r).m(e.simple?"simple":e.direction)])},[eo(e.$slots,"default")],2))}});var $re=UG(Dre,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const Fre=fK({title:{type:String,default:""},icon:{type:vK},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),Wre=wr({name:"ElStep"}),Ure=wr({...Wre,props:Fre,setup(e){const t=e,n=tq("step"),r=Wt(-1),o=Wt({}),l=Wt(""),a=zo("ElSteps"),i=$l();Nr((()=>{nr([()=>a.props.active,()=>a.props.processStatus,()=>a.props.finishStatus],(([e])=>{y(e)}),{immediate:!0})})),Br((()=>{a.removeStep(b.uid)}));const s=oa((()=>t.status||l.value)),u=oa((()=>{const e=a.steps.value[r.value-1];return e?e.currentStatus:"wait"})),c=oa((()=>a.props.alignCenter)),d=oa((()=>"vertical"===a.props.direction)),p=oa((()=>a.props.simple)),f=oa((()=>a.steps.value.length)),v=oa((()=>{var e;return(null==(e=a.steps.value[f.value-1])?void 0:e.uid)===(null==i?void 0:i.uid)})),h=oa((()=>p.value?"":a.props.space)),m=oa((()=>[n.b(),n.is(p.value?"simple":a.props.direction),n.is("flex",v.value&&!h.value&&!c.value),n.is("center",c.value&&!d.value&&!p.value)])),g=oa((()=>{const e={flexBasis:Mz(h.value)?`${h.value}px`:h.value?h.value:100/(f.value-(c.value?0:1))+"%"};return d.value||v.value&&(e.maxWidth=100/f.value+"%"),e})),y=e=>{e>r.value?l.value=a.props.finishStatus:e===r.value&&"error"!==u.value?l.value=a.props.processStatus:l.value="wait";const t=a.steps.value[r.value-1];t&&t.calcProgress(l.value)},b=zt({uid:i.uid,currentStatus:s,setIndex:e=>{r.value=e},calcProgress:e=>{const t="wait"===e,n={transitionDelay:`${t?"-":""}${150*r.value}ms`},l=e===a.props.processStatus||t?0:100;n.borderWidth=l&&!p.value?"1px":0,n["vertical"===a.props.direction?"height":"width"]=`${l}%`,o.value=n}});return a.addStep(b),(e,t)=>(vl(),bl("div",{style:K(Gt(g)),class:X(Gt(m))},[Ll(" icon & line "),El("div",{class:X([Gt(n).e("head"),Gt(n).is(Gt(s))])},[Gt(p)?Ll("v-if",!0):(vl(),bl("div",{key:0,class:X(Gt(n).e("line"))},[El("i",{class:X(Gt(n).e("line-inner")),style:K(o.value)},null,6)],2)),El("div",{class:X([Gt(n).e("icon"),Gt(n).is(e.icon||e.$slots.icon?"icon":"text")])},[eo(e.$slots,"icon",{},(()=>[e.icon?(vl(),wl(Gt(ZG),{key:0,class:X(Gt(n).e("icon-inner"))},{default:Bn((()=>[(vl(),wl(Yr(e.icon)))])),_:1},8,["class"])):"success"===Gt(s)?(vl(),wl(Gt(ZG),{key:1,class:X([Gt(n).e("icon-inner"),Gt(n).is("status")])},{default:Bn((()=>[Ol(Gt(hL))])),_:1},8,["class"])):"error"===Gt(s)?(vl(),wl(Gt(ZG),{key:2,class:X([Gt(n).e("icon-inner"),Gt(n).is("status")])},{default:Bn((()=>[Ol(Gt(eI))])),_:1},8,["class"])):Gt(p)?Ll("v-if",!0):(vl(),bl("div",{key:3,class:X(Gt(n).e("icon-inner"))},ve(r.value+1),3))]))],2)],2),Ll(" title & description "),El("div",{class:X(Gt(n).e("main"))},[El("div",{class:X([Gt(n).e("title"),Gt(n).is(Gt(s))])},[eo(e.$slots,"title",{},(()=>[Tl(ve(e.title),1)]))],2),Gt(p)?(vl(),bl("div",{key:0,class:X(Gt(n).e("arrow"))},null,2)):(vl(),bl("div",{key:1,class:X([Gt(n).e("description"),Gt(n).is(Gt(s))])},[eo(e.$slots,"description",{},(()=>[Tl(ve(e.description),1)]))],2))],2)],6))}});var Kre=UG(Ure,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const qre=bK($re,{Step:Kre}),Yre=xK(Kre),Gre=fK({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:vK},inactiveIcon:{type:vK},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:Function},size:{type:String,validator:AK},tabindex:{type:[String,Number]}}),Jre={[_K]:e=>Oz(e)||y(e)||Mz(e),[EK]:e=>Oz(e)||y(e)||Mz(e),[OK]:e=>Oz(e)||y(e)||Mz(e)},Xre=["onClick"],Qre=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],Zre=["aria-hidden"],eoe=["aria-hidden"],toe=["aria-hidden"],noe="ElSwitch",roe=wr({name:noe}),ooe=wr({...roe,props:Gre,emits:Jre,setup(e,{expose:t,emit:n}){const r=e,o=$l(),{formItem:l}=uJ(),a=iJ(),i=tq("switch");WK({from:'"value"',replacement:'"model-value" or "v-model"',scope:noe,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},oa((()=>{var e;return!!(null==(e=o.vnode.props)?void 0:e.value)})));const{inputId:s}=cJ(r,{formItemContext:l}),u=sJ(oa((()=>r.loading))),c=Wt(!1!==r.modelValue),d=Wt(),p=Wt(),f=oa((()=>[i.b(),i.m(a.value),i.is("disabled",u.value),i.is("checked",m.value)])),v=oa((()=>({width:$z(r.width)})));nr((()=>r.modelValue),(()=>{c.value=!0})),nr((()=>r.value),(()=>{c.value=!1}));const h=oa((()=>c.value?r.modelValue:r.value)),m=oa((()=>h.value===r.activeValue));[r.activeValue,r.inactiveValue].includes(h.value)||(n(_K,r.inactiveValue),n(EK,r.inactiveValue),n(OK,r.inactiveValue)),nr(m,(e=>{var t;d.value.checked=e,r.validateEvent&&(null==(t=null==l?void 0:l.validate)||t.call(l,"change").catch((e=>{})))}));const g=()=>{const e=m.value?r.inactiveValue:r.activeValue;n(_K,e),n(EK,e),n(OK,e),wn((()=>{d.value.checked=m.value}))},y=()=>{if(u.value)return;const{beforeChange:e}=r;if(!e)return void g();const t=e();[x(t),Oz(t)].includes(!0)||Nz(noe,"beforeChange must return type `Promise` or `boolean`"),x(t)?t.then((e=>{e&&g()})).catch((e=>{})):t&&g()},b=oa((()=>i.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})));return Nr((()=>{d.value.checked=m.value})),t({focus:()=>{var e,t;null==(t=null==(e=d.value)?void 0:e.focus)||t.call(e)},checked:m}),(e,t)=>(vl(),bl("div",{class:X(Gt(f)),style:K(Gt(b)),onClick:gi(y,["prevent"])},[El("input",{id:Gt(s),ref_key:"input",ref:d,class:X(Gt(i).e("input")),type:"checkbox",role:"switch","aria-checked":Gt(m),"aria-disabled":Gt(u),name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:Gt(u),tabindex:e.tabindex,onChange:g,onKeydown:bi(y,["enter"])},null,42,Qre),e.inlinePrompt||!e.inactiveIcon&&!e.inactiveText?Ll("v-if",!0):(vl(),bl("span",{key:0,class:X([Gt(i).e("label"),Gt(i).em("label","left"),Gt(i).is("active",!Gt(m))])},[e.inactiveIcon?(vl(),wl(Gt(ZG),{key:0},{default:Bn((()=>[(vl(),wl(Yr(e.inactiveIcon)))])),_:1})):Ll("v-if",!0),!e.inactiveIcon&&e.inactiveText?(vl(),bl("span",{key:1,"aria-hidden":Gt(m)},ve(e.inactiveText),9,Zre)):Ll("v-if",!0)],2)),El("span",{ref_key:"core",ref:p,class:X(Gt(i).e("core")),style:K(Gt(v))},[e.inlinePrompt?(vl(),bl("div",{key:0,class:X(Gt(i).e("inner"))},[e.activeIcon||e.inactiveIcon?(vl(),wl(Gt(ZG),{key:0,class:X(Gt(i).is("icon"))},{default:Bn((()=>[(vl(),wl(Yr(Gt(m)?e.activeIcon:e.inactiveIcon)))])),_:1},8,["class"])):e.activeText||e.inactiveText?(vl(),bl("span",{key:1,class:X(Gt(i).is("text")),"aria-hidden":!Gt(m)},ve(Gt(m)?e.activeText:e.inactiveText),11,eoe)):Ll("v-if",!0)],2)):Ll("v-if",!0),El("div",{class:X(Gt(i).e("action"))},[e.loading?(vl(),wl(Gt(ZG),{key:0,class:X(Gt(i).is("loading"))},{default:Bn((()=>[Ol(Gt(pV))])),_:1},8,["class"])):Ll("v-if",!0)],2)],6),e.inlinePrompt||!e.activeIcon&&!e.activeText?Ll("v-if",!0):(vl(),bl("span",{key:1,class:X([Gt(i).e("label"),Gt(i).em("label","right"),Gt(i).is("active",Gt(m))])},[e.activeIcon?(vl(),wl(Gt(ZG),{key:0},{default:Bn((()=>[(vl(),wl(Yr(e.activeIcon)))])),_:1})):Ll("v-if",!0),!e.activeIcon&&e.activeText?(vl(),bl("span",{key:1,"aria-hidden":!Gt(m)},ve(e.activeText),9,toe)):Ll("v-if",!0)],2))],14,Xre))}}),loe=bK(UG(ooe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]])); +/*! + * escape-html + * Copyright(c) 2012-2013 TJ Holowaychuk + * Copyright(c) 2015 Andreas Lubbe + * Copyright(c) 2015 Tiancheng "Timothy" Gu + * MIT Licensed + */ +var aoe=/["'&<>]/;const ioe=e0((function(e){var t,n=""+e,r=aoe.exec(n);if(!r)return n;var o="",l=0,a=0;for(l=r.index;l{e.id===t&&(n=e)})),n},coe=function(e,t){let n=null;for(let r=0;r{if(!e)throw new Error("Row is required when get row identity");if("string"==typeof t){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const e of n)r=r[e];return`${r}`}if("function"==typeof t)return t.call(null,e)},foe=function(e,t){const n={};return(e||[]).forEach(((e,r)=>{n[poe(e,t)]={row:e,index:r}})),n};function voe(e){return""===e||void 0!==e&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function hoe(e){return""===e||void 0!==e&&(e=voe(e),Number.isNaN(e)&&(e=80)),e}function moe(e,t,n){let r=!1;const o=e.indexOf(t),l=-1!==o,a=a=>{"add"===a?e.push(t):e.splice(o,1),r=!0,p(t.children)&&t.children.forEach((t=>{moe(e,t,null!=n?n:!l)}))};return Oz(n)?n&&!l?a("add"):!n&&l&&a("remove"):a(l?"remove":"add"),r}function goe(e,t,n="children",r="hasChildren"){const o=e=>!(Array.isArray(e)&&e.length);function l(e,a,i){t(e,a,i),a.forEach((e=>{if(e[r])return void t(e,null,i+1);const a=e[n];o(a)||l(e,a,i+1)}))}e.forEach((e=>{if(e[r])return void t(e,null,0);const a=e[n];o(a)||l(e,a,0)}))}let yoe;function boe(e){return e.children?$S(e.children,boe):[e]}function woe(e,t){return e+t.colSpan}const xoe=(e,t,n,r)=>{let o=0,l=e;const a=n.states.columns.value;if(r){const t=boe(r[e]);o=a.slice(0,a.indexOf(t[0])).reduce(woe,0),l=o+t.reduce(woe,0)-1}else o=e;let i;switch(t){case"left":l=a.length-n.states.rightFixedLeafColumnsLength.value&&(i="right");break;default:l=a.length-n.states.rightFixedLeafColumnsLength.value&&(i="right")}return i?{direction:i,start:o,after:l}:{}},Coe=(e,t,n,r,o,l=0)=>{const a=[],{direction:i,start:s,after:u}=xoe(t,n,r,o);if(i){const t="left"===i;a.push(`${e}-fixed-column--${i}`),t&&u+l===r.states.fixedLeafColumnsLength.value-1?a.push("is-last-column"):t||s-l!=r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value||a.push("is-first-column")}return a};function koe(e,t){return e+(null===t.realWidth||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Soe=(e,t,n,r)=>{const{direction:o,start:l=0,after:a=0}=xoe(e,t,n,r);if(!o)return;const i={},s="left"===o,u=n.states.columns.value;return s?i.left=u.slice(0,l).reduce(koe,0):i.right=u.slice(a+1).reverse().reduce(koe,0),i},_oe=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))},Eoe=(e,t)=>{const n=t.sortingColumn;return n&&"string"!=typeof n.sortable?function(e,t,n,r,o){if(!t&&!r&&(!o||Array.isArray(o)&&!o.length))return e;n="string"==typeof n?"descending"===n?-1:1:n&&n<0?-1:1;const l=r?null:function(n,r){return o?(Array.isArray(o)||(o=[o]),o.map((t=>"string"==typeof t?yb(n,t):t(n,r,e)))):("$key"!==t&&w(n)&&"$value"in n&&(n=n.$value),[w(n)?yb(n,t):n])};return e.map(((e,t)=>({value:e,index:t,key:l?l(e,t):null}))).sort(((e,t)=>{let o=function(e,t){if(r)return r(e.value,t.value);for(let n=0,r=e.key.length;nt.key[n])return 1}return 0}(e,t);return o||(o=e.index-t.index),o*+n})).map((e=>e.value))}(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e},Ooe=e=>{const t=[];return e.forEach((e=>{e.children?t.push.apply(t,Ooe(e.children)):t.push(e)})),t};function Moe(e,t){return e.map((e=>{var n;return e.id===t.id?t:((null==(n=e.children)?void 0:n.length)&&(e.children=Moe(e.children,t)),e)}))}function zoe(e){e.forEach((e=>{var t,n;e.no=null==(t=e.getColumnIndex)?void 0:t.call(e),(null==(n=e.children)?void 0:n.length)&&zoe(e.children)})),e.sort(((e,t)=>e.no-t.no))}const Toe={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"}};function Aoe(e,t){if(!e)throw new Error("Table is required.");const n=function(){const e=$l(),t=function(){var e;const t=$l(),{size:n}=en(null==(e=t.proxy)?void 0:e.$props),r=Wt(null),o=Wt([]),l=Wt([]),a=Wt(!1),i=Wt([]),s=Wt([]),u=Wt([]),c=Wt([]),p=Wt([]),f=Wt([]),v=Wt([]),h=Wt([]),m=Wt(0),g=Wt(0),y=Wt(0),b=Wt(!1),w=Wt([]),x=Wt(!1),C=Wt(!1),k=Wt(null),S=Wt({}),_=Wt(null),E=Wt(null),O=Wt(null),M=Wt(null),z=Wt(null);nr(o,(()=>t.state&&L(!1)),{deep:!0});const T=e=>{var t;null==(t=e.children)||t.forEach((t=>{t.fixed=e.fixed,T(t)}))},A=()=>{i.value.forEach((e=>{T(e)})),c.value=i.value.filter((e=>!0===e.fixed||"left"===e.fixed)),p.value=i.value.filter((e=>"right"===e.fixed)),c.value.length>0&&i.value[0]&&"selection"===i.value[0].type&&!i.value[0].fixed&&(i.value[0].fixed=!0,c.value.unshift(i.value[0]));const e=i.value.filter((e=>!e.fixed));s.value=[].concat(c.value).concat(e).concat(p.value);const t=Ooe(e),n=Ooe(c.value),r=Ooe(p.value);m.value=t.length,g.value=n.length,y.value=r.length,u.value=[].concat(n).concat(t).concat(r),a.value=c.value.length>0||p.value.length>0},L=(e,n=!1)=>{e&&A(),n?t.state.doLayout():t.state.debouncedUpdateLayout()},I=e=>{var n;if(!t||!t.store)return 0;const{treeData:r}=t.store.states;let o=0;const l=null==(n=r.value[e])?void 0:n.children;return l&&(o+=l.length,l.forEach((e=>{o+=I(e)}))),o},R=(e,t,n)=>{E.value&&E.value!==e&&(E.value.order=null),E.value=e,O.value=t,M.value=n},P=()=>{let e=Gt(l);Object.keys(S.value).forEach((t=>{const n=S.value[t];if(!n||0===n.length)return;const r=uoe({columns:u.value},t);r&&r.filterMethod&&(e=e.filter((e=>n.some((t=>r.filterMethod.call(null,t,e,r))))))})),_.value=e},N=()=>{o.value=Eoe(_.value,{sortingColumn:E.value,sortProp:O.value,sortOrder:M.value})},{setExpandRowKeys:j,toggleRowExpansion:V,updateExpandRows:B,states:H,isRowExpanded:D}=function(e){const t=$l(),n=Wt(!1),r=Wt([]);return{updateExpandRows:()=>{const t=e.data.value||[],o=e.rowKey.value;if(n.value)r.value=t.slice();else if(o){const e=foe(r.value,o);r.value=t.reduce(((t,n)=>{const r=poe(n,o);return e[r]&&t.push(n),t}),[])}else r.value=[]},toggleRowExpansion:(e,n)=>{moe(r.value,e,n)&&t.emit("expand-change",e,r.value.slice())},setExpandRowKeys:n=>{t.store.assertRowKey();const o=e.data.value||[],l=e.rowKey.value,a=foe(o,l);r.value=n.reduce(((e,t)=>{const n=a[t];return n&&e.push(n.row),e}),[])},isRowExpanded:t=>{const n=e.rowKey.value;return n?!!foe(r.value,n)[poe(t,n)]:r.value.includes(t)},states:{expandRows:r,defaultExpandAll:n}}}({data:o,rowKey:r}),{updateTreeExpandKeys:$,toggleTreeExpansion:F,updateTreeData:W,loadOrToggle:U,states:K}=function(e){const t=Wt([]),n=Wt({}),r=Wt(16),o=Wt(!1),l=Wt({}),a=Wt("hasChildren"),i=Wt("children"),s=$l(),u=oa((()=>{if(!e.rowKey.value)return{};const t=e.data.value||[];return d(t)})),c=oa((()=>{const t=e.rowKey.value,n=Object.keys(l.value),r={};return n.length?(n.forEach((e=>{if(l.value[e].length){const n={children:[]};l.value[e].forEach((e=>{const o=poe(e,t);n.children.push(o),e[a.value]&&!r[o]&&(r[o]={children:[]})})),r[e]=n}})),r):r})),d=t=>{const n=e.rowKey.value,r={};return goe(t,((e,t,l)=>{const a=poe(e,n);Array.isArray(t)?r[a]={children:t.map((e=>poe(e,n))),level:l}:o.value&&(r[a]={children:[],lazy:!0,level:l})}),i.value,a.value),r},p=(e=!1,r=(e=>null==(e=s.store)?void 0:e.states.defaultExpandAll.value)())=>{var l;const a=u.value,i=c.value,d=Object.keys(a),p={};if(d.length){const l=Gt(n),s=[],u=(n,o)=>{if(e)return t.value?r||t.value.includes(o):!(!r&&!(null==n?void 0:n.expanded));{const e=r||t.value&&t.value.includes(o);return!(!(null==n?void 0:n.expanded)&&!e)}};d.forEach((e=>{const t=l[e],n={...a[e]};if(n.expanded=u(t,e),n.lazy){const{loaded:r=!1,loading:o=!1}=t||{};n.loaded=!!r,n.loading=!!o,s.push(e)}p[e]=n}));const c=Object.keys(i);o.value&&c.length&&s.length&&c.forEach((e=>{const t=l[e],n=i[e].children;if(s.includes(e)){if(0!==p[e].children.length)throw new Error("[ElTable]children must be an empty array.");p[e].children=n}else{const{loaded:r=!1,loading:o=!1}=t||{};p[e]={lazy:!0,loaded:!!r,loading:!!o,expanded:u(t,e),children:n,level:""}}}))}n.value=p,null==(l=s.store)||l.updateTableScrollY()};nr((()=>t.value),(()=>{p(!0)})),nr((()=>u.value),(()=>{p()})),nr((()=>c.value),(()=>{p()}));const f=(t,r)=>{s.store.assertRowKey();const o=e.rowKey.value,l=poe(t,o),a=l&&n.value[l];if(l&&a&&"expanded"in a){const e=a.expanded;r=void 0===r?!a.expanded:r,n.value[l].expanded=r,e!==r&&s.emit("expand-change",t,r),s.store.updateTableScrollY()}},v=(e,t,r)=>{const{load:o}=s.props;o&&!n.value[t].loaded&&(n.value[t].loading=!0,o(e,r,(r=>{if(!Array.isArray(r))throw new TypeError("[ElTable] data must be an array");n.value[t].loading=!1,n.value[t].loaded=!0,n.value[t].expanded=!0,r.length&&(l.value[t]=r),s.emit("expand-change",e,!0)})))};return{loadData:v,loadOrToggle:t=>{s.store.assertRowKey();const r=e.rowKey.value,l=poe(t,r),a=n.value[l];o.value&&a&&"loaded"in a&&!a.loaded?v(t,l,a):f(t,void 0)},toggleTreeExpansion:f,updateTreeExpandKeys:e=>{t.value=e,p()},updateTreeData:p,normalize:d,states:{expandRowKeys:t,treeData:n,indent:r,lazy:o,lazyTreeNodeMap:l,lazyColumnIdentifier:a,childrenColumnName:i}}}({data:o,rowKey:r}),{updateCurrentRowData:q,updateCurrentRow:Y,setCurrentRowKey:G,states:J}=function(e){const t=$l(),n=Wt(null),r=Wt(null),o=()=>{n.value=null},l=n=>{const{data:o,rowKey:l}=e;let a=null;l.value&&(a=(Gt(o)||[]).find((e=>poe(e,l.value)===n))),r.value=a,t.emit("current-change",r.value,null)};return{setCurrentRowKey:e=>{t.store.assertRowKey(),n.value=e,l(e)},restoreCurrentRowKey:o,setCurrentRowByKey:l,updateCurrentRow:e=>{const n=r.value;if(e&&e!==n)return r.value=e,void t.emit("current-change",r.value,n);!e&&n&&(r.value=null,t.emit("current-change",null,n))},updateCurrentRowData:()=>{const a=e.rowKey.value,i=e.data.value||[],s=r.value;if(!i.includes(s)&&s){if(a){const e=poe(s,a);l(e)}else r.value=null;null===r.value&&t.emit("current-change",null,s)}else n.value&&(l(n.value),o())},states:{_currentRowKey:n,currentRow:r}}}({data:o,rowKey:r});return{assertRowKey:()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},updateColumns:A,scheduleLayout:L,isSelected:e=>w.value.includes(e),clearSelection:()=>{b.value=!1,w.value.length&&(w.value=[],t.emit("selection-change",[]))},cleanSelection:()=>{let e;if(r.value){e=[];const t=foe(w.value,r.value),n=foe(o.value,r.value);for(const r in t)d(t,r)&&!n[r]&&e.push(t[r].row)}else e=w.value.filter((e=>!o.value.includes(e)));if(e.length){const n=w.value.filter((t=>!e.includes(t)));w.value=n,t.emit("selection-change",n.slice())}},getSelectionRows:()=>(w.value||[]).slice(),toggleRowSelection:(e,n=void 0,r=!0)=>{if(moe(w.value,e,n)){const n=(w.value||[]).slice();r&&t.emit("select",n,e),t.emit("selection-change",n)}},_toggleAllSelection:()=>{var e,n;const r=C.value?!b.value:!(b.value||w.value.length);b.value=r;let l=!1,a=0;const i=null==(n=null==(e=null==t?void 0:t.store)?void 0:e.states)?void 0:n.rowKey.value;o.value.forEach(((e,t)=>{const n=t+a;k.value?k.value.call(null,e,n)&&moe(w.value,e,r)&&(l=!0):moe(w.value,e,r)&&(l=!0),a+=I(poe(e,i))})),l&&t.emit("selection-change",w.value?w.value.slice():[]),t.emit("select-all",w.value)},toggleAllSelection:null,updateSelectionByRowKey:()=>{const e=foe(w.value,r.value);o.value.forEach((t=>{const n=poe(t,r.value),o=e[n];o&&(w.value[o.index]=t)}))},updateAllSelected:()=>{var e,n,l;if(0===(null==(e=o.value)?void 0:e.length))return void(b.value=!1);let a;r.value&&(a=foe(w.value,r.value));let i=!0,s=0,u=0;for(let d=0,p=(o.value||[]).length;d{Array.isArray(e)||(e=[e]);const n={};return e.forEach((e=>{S.value[e.id]=t,n[e.columnKey||e.id]=t})),n},updateCurrentRow:Y,updateSort:R,execFilter:P,execSort:N,execQuery:(e=void 0)=>{e&&e.filter||P(),N()},clearFilter:e=>{const{tableHeaderRef:n}=t.refs;if(!n)return;const r=Object.assign({},n.filterPanels),o=Object.keys(r);if(o.length)if("string"==typeof e&&(e=[e]),Array.isArray(e)){const n=e.map((e=>coe({columns:u.value},e)));o.forEach((e=>{const t=n.find((t=>t.id===e));t&&(t.filteredValue=[])})),t.store.commit("filterChange",{column:n,values:[],silent:!0,multi:!0})}else o.forEach((e=>{const t=u.value.find((t=>t.id===e));t&&(t.filteredValue=[])})),S.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},clearSort:()=>{E.value&&(R(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},toggleRowExpansion:V,setExpandRowKeysAdapter:e=>{j(e),$(e)},setCurrentRowKey:G,toggleRowExpansionAdapter:(e,t)=>{u.value.some((({type:e})=>"expand"===e))?V(e,t):F(e,t)},isRowExpanded:D,updateExpandRows:B,updateCurrentRowData:q,loadOrToggle:U,updateTreeData:W,states:{tableSize:n,rowKey:r,data:o,_data:l,isComplex:a,_columns:i,originColumns:s,columns:u,fixedColumns:c,rightFixedColumns:p,leafColumns:f,fixedLeafColumns:v,rightFixedLeafColumns:h,updateOrderFns:[],leafColumnsLength:m,fixedLeafColumnsLength:g,rightFixedLeafColumnsLength:y,isAllSelected:b,selection:w,reserveSelection:x,selectOnIndeterminate:C,selectable:k,filters:S,filteredData:_,sortingColumn:E,sortProp:O,sortOrder:M,hoverRow:z,...H,...K,...J}}}(),n={setData(t,n){const r=Gt(t._data)!==n;t.data.value=n,t._data.value=n,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),Gt(t.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):r?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(t,n,r,o){const l=Gt(t._columns);let a=[];r?(r&&!r.children&&(r.children=[]),r.children.push(n),a=Moe(l,r)):(l.push(n),a=l),zoe(a),t._columns.value=a,t.updateOrderFns.push(o),"selection"===n.type&&(t.selectable.value=n.selectable,t.reserveSelection.value=n.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(t,n){var r;(null==(r=n.getColumnIndex)?void 0:r.call(n))!==n.no&&(zoe(t._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(t,n,r,o){const l=Gt(t._columns)||[];if(r)r.children.splice(r.children.findIndex((e=>e.id===n.id)),1),wn((()=>{var e;0===(null==(e=r.children)?void 0:e.length)&&delete r.children})),t._columns.value=Moe(l,r);else{const e=l.indexOf(n);e>-1&&(l.splice(e,1),t._columns.value=l)}const a=t.updateOrderFns.indexOf(o);a>-1&&t.updateOrderFns.splice(a,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(t,n){const{prop:r,order:o,init:l}=n;if(r){const n=Gt(t.columns).find((e=>e.property===r));n&&(n.order=o,e.store.updateSort(n,r,o),e.store.commit("changeSortCondition",{init:l}))}},changeSortCondition(t,n){const{sortingColumn:r,sortProp:o,sortOrder:l}=t,a=Gt(r),i=Gt(o),s=Gt(l);null===s&&(t.sortingColumn.value=null,t.sortProp.value=null),e.store.execQuery({filter:!0}),n&&(n.silent||n.init)||e.emit("sort-change",{column:a,prop:i,order:s}),e.store.updateTableScrollY()},filterChange(t,n){const{column:r,values:o,silent:l}=n,a=e.store.updateFilters(r,o);e.store.execQuery(),l||e.emit("filter-change",a),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(t,n){e.store.toggleRowSelection(n),e.store.updateAllSelected()},setHoverRow(e,t){e.hoverRow.value=t},setCurrentRow(t,n){e.store.updateCurrentRow(n)}};return{ns:tq("table"),...t,mutations:n,commit:function(t,...n){const r=e.store.mutations;if(!r[t])throw new Error(`Action not found: ${t}`);r[t].apply(e,[e.store.states].concat(n))},updateTableScrollY:function(){wn((()=>e.layout.updateScrollY.apply(e.layout)))}}}();return n.toggleAllSelection=Pk(n._toggleAllSelection,10),Object.keys(Toe).forEach((e=>{Loe(Ioe(t,e),e,n)})),r=n,o=t,Object.keys(Toe).forEach((e=>{nr((()=>Ioe(o,e)),(t=>{Loe(t,e,r)}))})),n;var r,o}function Loe(e,t,n){let r=e,o=Toe[t];"object"==typeof Toe[t]&&(o=o.key,r=r||Toe[t].default),n.states[o].value=r}function Ioe(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach((e=>{r=r[e]})),r}return e[t]}class Roe{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=Wt(null),this.scrollX=Wt(!1),this.scrollY=Wt(!1),this.bodyWidth=Wt(null),this.fixedWidth=Wt(null),this.rightFixedWidth=Wt(null),this.gutterWidth=0;for(const t in e)d(e,t)&&(Ft(this[t])?this[t].value=e[t]:this[t]=e[t]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(null===this.height.value)return!1;const e=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(null==e?void 0:e.wrapRef)){let t=!0;const n=this.scrollY.value;return t=e.wrapRef.scrollHeight>e.wrapRef.clientHeight,this.scrollY.value=t,n!==t}return!1}setHeight(e,t="height"){if(!Xi)return;const n=this.table.vnode.el;var r;if(e="number"==typeof(r=e)?r:"string"==typeof r?/^\d+(?:px)?$/.test(r)?Number.parseInt(r,10):r:null,this.height.value=Number(e),!n&&(e||0===e))return wn((()=>this.setHeight(e,t)));"number"==typeof e?(n.style[t]=`${e}px`,this.updateElsHeight()):"string"==typeof e&&(n.style[t]=e,this.updateElsHeight())}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[];return this.table.store.states.columns.value.forEach((t=>{t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)})),e}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let t=e;for(;"DIV"!==t.tagName;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}updateColumnsWidth(){if(!Xi)return;const e=this.fit,t=this.table.vnode.el.clientWidth;let n=0;const r=this.getFlattenColumns(),o=r.filter((e=>"number"!=typeof e.width));if(r.forEach((e=>{"number"==typeof e.width&&e.realWidth&&(e.realWidth=null)})),o.length>0&&e){if(r.forEach((e=>{n+=Number(e.width||e.minWidth||80)})),n<=t){this.scrollX.value=!1;const e=t-n;if(1===o.length)o[0].realWidth=Number(o[0].minWidth||80)+e;else{const t=e/o.reduce(((e,t)=>e+Number(t.minWidth||80)),0);let n=0;o.forEach(((e,r)=>{if(0===r)return;const o=Math.floor(Number(e.minWidth||80)*t);n+=o,e.realWidth=Number(e.minWidth||80)+o})),o[0].realWidth=Number(o[0].minWidth||80)+e-n}}else this.scrollX.value=!0,o.forEach((e=>{e.realWidth=Number(e.minWidth)}));this.bodyWidth.value=Math.max(n,t),this.table.state.resizeState.value.width=this.bodyWidth.value}else r.forEach((e=>{e.width||e.minWidth?e.realWidth=Number(e.width||e.minWidth):e.realWidth=80,n+=e.realWidth})),this.scrollX.value=n>t,this.bodyWidth.value=n;const l=this.store.states.fixedColumns.value;if(l.length>0){let e=0;l.forEach((t=>{e+=Number(t.realWidth||t.width)})),this.fixedWidth.value=e}const a=this.store.states.rightFixedColumns.value;if(a.length>0){let e=0;a.forEach((t=>{e+=Number(t.realWidth||t.width)})),this.rightFixedWidth.value=e}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){const t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)}notifyObservers(e){this.observers.forEach((t=>{var n,r;switch(e){case"columns":null==(n=t.state)||n.onColumnsChange(this);break;case"scrollable":null==(r=t.state)||r.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}}))}}const{CheckboxGroup:Poe}=_1,Noe=wr({name:"ElTableFilterPanel",components:{ElCheckbox:_1,ElCheckboxGroup:Poe,ElScrollbar:EX,ElTooltip:BQ,ElIcon:ZG,ArrowDown:pT,ArrowUp:TT},directives:{ClickOutside:N0},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=$l(),{t:n}=JK(),r=tq("table-filter"),o=null==t?void 0:t.parent;o.filterPanels.value[e.column.id]||(o.filterPanels.value[e.column.id]=t);const l=Wt(!1),a=Wt(null),i=oa((()=>e.column&&e.column.filters)),s=oa({get:()=>{var t;return((null==(t=e.column)?void 0:t.filteredValue)||[])[0]},set:e=>{u.value&&(null!=e?u.value.splice(0,1,e):u.value.splice(0,1))}}),u=oa({get:()=>e.column&&e.column.filteredValue||[],set(t){e.column&&e.upDataColumn("filteredValue",t)}}),c=oa((()=>!e.column||e.column.filterMultiple)),d=()=>{l.value=!1},p=t=>{e.store.commit("filterChange",{column:e.column,values:t}),e.store.updateAllSelected()};nr(l,(t=>{e.column&&e.upDataColumn("filterOpened",t)}),{immediate:!0});const f=oa((()=>{var e,t;return null==(t=null==(e=a.value)?void 0:e.popperRef)?void 0:t.contentRef}));return{tooltipVisible:l,multiple:c,filteredValue:u,filterValue:s,filters:i,handleConfirm:()=>{p(u.value),d()},handleReset:()=>{u.value=[],p(u.value),d()},handleSelect:e=>{s.value=e,p(null!=e?u.value:[]),d()},isActive:e=>e.value===s.value,t:n,ns:r,showFilterPanel:e=>{e.stopPropagation(),l.value=!l.value},hideFilterPanel:()=>{l.value=!1},popperPaneRef:f,tooltip:a}}}),joe={key:0},Voe=["disabled"],Boe=["label","onClick"];var Hoe=UG(Noe,[["render",function(e,t,n,r,o,l){const a=Kr("el-checkbox"),i=Kr("el-checkbox-group"),s=Kr("el-scrollbar"),u=Kr("arrow-up"),c=Kr("arrow-down"),d=Kr("el-icon"),p=Kr("el-tooltip"),f=Gr("click-outside");return vl(),wl(p,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:Bn((()=>[e.multiple?(vl(),bl("div",joe,[El("div",{class:X(e.ns.e("content"))},[Ol(s,{"wrap-class":e.ns.e("wrap")},{default:Bn((()=>[Ol(i,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=t=>e.filteredValue=t),class:X(e.ns.e("checkbox-group"))},{default:Bn((()=>[(vl(!0),bl(sl,null,Qr(e.filters,(e=>(vl(),wl(a,{key:e.value,label:e.value},{default:Bn((()=>[Tl(ve(e.text),1)])),_:2},1032,["label"])))),128))])),_:1},8,["modelValue","class"])])),_:1},8,["wrap-class"])],2),El("div",{class:X(e.ns.e("bottom"))},[El("button",{class:X({[e.ns.is("disabled")]:0===e.filteredValue.length}),disabled:0===e.filteredValue.length,type:"button",onClick:t[1]||(t[1]=(...t)=>e.handleConfirm&&e.handleConfirm(...t))},ve(e.t("el.table.confirmFilter")),11,Voe),El("button",{type:"button",onClick:t[2]||(t[2]=(...t)=>e.handleReset&&e.handleReset(...t))},ve(e.t("el.table.resetFilter")),1)],2)])):(vl(),bl("ul",{key:1,class:X(e.ns.e("list"))},[El("li",{class:X([e.ns.e("list-item"),{[e.ns.is("active")]:void 0===e.filterValue||null===e.filterValue}]),onClick:t[3]||(t[3]=t=>e.handleSelect(null))},ve(e.t("el.table.clearFilter")),3),(vl(!0),bl(sl,null,Qr(e.filters,(t=>(vl(),bl("li",{key:t.value,class:X([e.ns.e("list-item"),e.ns.is("active",e.isActive(t))]),label:t.value,onClick:n=>e.handleSelect(t.value)},ve(t.text),11,Boe)))),128))],2))])),default:Bn((()=>[ir((vl(),bl("span",{class:X([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...t)=>e.showFilterPanel&&e.showFilterPanel(...t))},[Ol(d,null,{default:Bn((()=>[e.column.filterOpened?(vl(),wl(u,{key:0})):(vl(),wl(c,{key:1}))])),_:1})],2)),[[f,e.hideFilterPanel,e.popperPaneRef]])])),_:1},8,["visible","placement","popper-class"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function Doe(e){const t=$l();Pr((()=>{n.value.addObserver(t)})),Nr((()=>{r(n.value),o(n.value)})),Vr((()=>{r(n.value),o(n.value)})),Hr((()=>{n.value.removeObserver(t)}));const n=oa((()=>{const t=e.layout;if(!t)throw new Error("Can not find table layout.");return t})),r=t=>{var n;const r=(null==(n=e.vnode.el)?void 0:n.querySelectorAll("colgroup > col"))||[];if(!r.length)return;const o=t.getFlattenColumns(),l={};o.forEach((e=>{l[e.id]=e}));for(let e=0,a=r.length;e{var n,r;const o=(null==(n=e.vnode.el)?void 0:n.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let e=0,a=o.length;e{const t=[];return e.forEach((e=>{e.children?(t.push(e),t.push.apply(t,Foe(e.children))):t.push(e)})),t};var Woe=wr({name:"ElTableHeader",components:{ElCheckbox:_1},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=$l(),r=zo($oe),o=tq("table"),l=Wt({}),{onColumnsChange:a,onScrollableChange:i}=Doe(r);Nr((async()=>{await wn(),await wn();const{prop:t,order:n}=e.defaultSort;null==r||r.store.commit("sort",{prop:t,order:n,init:!0})}));const{handleHeaderClick:s,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:d,handleMouseOut:p,handleSortClick:f,handleFilterClick:v}=function(e,t){const n=$l(),r=zo($oe),o=e=>{e.stopPropagation()},l=Wt(null),a=Wt(!1),i=Wt({}),s=(t,n,o)=>{var l;t.stopPropagation();const a=n.order===o?null:o||(({order:e,sortOrders:t})=>{if(""===e)return t[0];const n=t.indexOf(e||null);return t[n>t.length-2?0:n+1]})(n),i=null==(l=t.target)?void 0:l.closest("th");if(i&&Vz(i,"noclick"))return void Hz(i,"noclick");if(!n.sortable)return;const s=e.store.states;let u,c=s.sortProp.value;const d=s.sortingColumn.value;(d!==n||d===n&&null===d.order)&&(d&&(d.order=null),s.sortingColumn.value=n,c=n.property),u=n.order=a||null,s.sortProp.value=c,s.sortOrder.value=u,null==r||r.store.commit("changeSortCondition")};return{handleHeaderClick:(e,t)=>{!t.filters&&t.sortable?s(e,t,!1):t.filterable&&!t.sortable&&o(e),null==r||r.emit("header-click",t,e)},handleHeaderContextMenu:(e,t)=>{null==r||r.emit("header-contextmenu",t,e)},handleMouseDown:(o,s)=>{if(Xi&&!(s.children&&s.children.length>0)&&l.value&&e.border){a.value=!0;const u=r;t("set-drag-visible",!0);const c=(null==u?void 0:u.vnode.el).getBoundingClientRect().left,d=n.vnode.el.querySelector(`th.${s.id}`),p=d.getBoundingClientRect(),f=p.left-c+30;Bz(d,"noclick"),i.value={startMouseLeft:o.clientX,startLeft:p.right-c,startColumnLeft:p.left-c,tableLeft:c};const v=null==u?void 0:u.refs.resizeProxy;v.style.left=`${i.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const h=e=>{const t=e.clientX-i.value.startMouseLeft,n=i.value.startLeft+t;v.style.left=`${Math.max(f,n)}px`},m=()=>{if(a.value){const{startColumnLeft:n,startLeft:r}=i.value,c=Number.parseInt(v.style.left,10)-n;s.width=s.realWidth=c,null==u||u.emit("header-dragend",s.width,r-n,s,o),requestAnimationFrame((()=>{e.store.scheduleLayout(!1,!0)})),document.body.style.cursor="",a.value=!1,l.value=null,i.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",m),document.onselectstart=null,document.ondragstart=null,setTimeout((()=>{Hz(d,"noclick")}),0)};document.addEventListener("mousemove",h),document.addEventListener("mouseup",m)}},handleMouseMove:(t,n)=>{if(n.children&&n.children.length>0)return;const r=t.target;if(!Tz(r))return;const o=null==r?void 0:r.closest("th");if(n&&n.resizable&&!a.value&&e.border){const e=o.getBoundingClientRect(),r=document.body.style;e.width>12&&e.right-t.pageX<8?(r.cursor="col-resize",Vz(o,"is-sortable")&&(o.style.cursor="col-resize"),l.value=n):a.value||(r.cursor="",Vz(o,"is-sortable")&&(o.style.cursor="pointer"),l.value=null)}},handleMouseOut:()=>{Xi&&(document.body.style.cursor="")},handleSortClick:s,handleFilterClick:o}}(e,t),{getHeaderRowStyle:h,getHeaderRowClass:m,getHeaderCellStyle:g,getHeaderCellClass:y}=function(e){const t=zo($oe),n=tq("table");return{getHeaderRowStyle:e=>{const n=null==t?void 0:t.props.headerRowStyle;return"function"==typeof n?n.call(null,{rowIndex:e}):n},getHeaderRowClass:e=>{const n=[],r=null==t?void 0:t.props.headerRowClassName;return"string"==typeof r?n.push(r):"function"==typeof r&&n.push(r.call(null,{rowIndex:e})),n.join(" ")},getHeaderCellStyle:(n,r,o,l)=>{var a;let i=null!=(a=null==t?void 0:t.props.headerCellStyle)?a:{};"function"==typeof i&&(i=i.call(null,{rowIndex:n,columnIndex:r,row:o,column:l}));const s=Soe(r,l.fixed,e.store,o);return _oe(s,"left"),_oe(s,"right"),Object.assign({},i,s)},getHeaderCellClass:(r,o,l,a)=>{const i=Coe(n.b(),o,a.fixed,e.store,l),s=[a.id,a.order,a.headerAlign,a.className,a.labelClassName,...i];a.children||s.push("is-leaf"),a.sortable&&s.push("is-sortable");const u=null==t?void 0:t.props.headerCellClassName;return"string"==typeof u?s.push(u):"function"==typeof u&&s.push(u.call(null,{rowIndex:r,columnIndex:o,row:l,column:a})),s.push(n.e("cell")),s.filter((e=>Boolean(e))).join(" ")}}}(e),{isGroup:b,toggleAllSelection:w,columnRows:x}=function(e){const t=zo($oe),n=oa((()=>(e=>{let t=1;const n=(e,r)=>{if(r&&(e.level=r.level+1,t{n(r,e),t+=r.colSpan})),e.colSpan=t}else e.colSpan=1};e.forEach((e=>{e.level=1,n(e,void 0)}));const r=[];for(let o=0;o{e.children?(e.rowSpan=1,e.children.forEach((e=>e.isSubColumn=!0))):e.rowSpan=t-e.level+1,r[e.level-1].push(e)})),r})(e.store.states.originColumns.value)));return{isGroup:oa((()=>{const e=n.value.length>1;return e&&t&&(t.state.isGroup.value=!0),e})),toggleAllSelection:e=>{e.stopPropagation(),null==t||t.store.commit("toggleAllSelection")},columnRows:n}}(e);return n.state={onColumnsChange:a,onScrollableChange:i},n.filterPanels=l,{ns:o,filterPanels:l,onColumnsChange:a,onScrollableChange:i,columnRows:x,getHeaderRowClass:m,getHeaderRowStyle:h,getHeaderCellClass:y,getHeaderCellStyle:g,handleHeaderClick:s,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:d,handleMouseOut:p,handleSortClick:f,handleFilterClick:v,isGroup:b,toggleAllSelection:w}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:o,getHeaderRowClass:l,getHeaderRowStyle:a,handleHeaderClick:i,handleHeaderContextMenu:s,handleMouseDown:u,handleMouseMove:c,handleSortClick:d,handleMouseOut:p,store:f,$parent:v}=this;let h=1;return la("thead",{class:{[e.is("group")]:t}},n.map(((e,t)=>la("tr",{class:l(t),key:t,style:a(t)},e.map(((n,l)=>(n.rowSpan>h&&(h=n.rowSpan),la("th",{class:o(t,l,e,n),colspan:n.colSpan,key:`${n.id}-thead`,rowspan:n.rowSpan,style:r(t,l,e,n),onClick:e=>i(e,n),onContextmenu:e=>s(e,n),onMousedown:e=>u(e,n),onMousemove:e=>c(e,n),onMouseout:p},[la("div",{class:["cell",n.filteredValue&&n.filteredValue.length>0?"highlight":""]},[n.renderHeader?n.renderHeader({column:n,$index:l,store:f,_self:v}):n.label,n.sortable&&la("span",{onClick:e=>d(e,n),class:"caret-wrapper"},[la("i",{onClick:e=>d(e,n,"ascending"),class:"sort-caret ascending"}),la("i",{onClick:e=>d(e,n,"descending"),class:"sort-caret descending"})]),n.filterable&&la(Hoe,{store:f,placement:n.filterPlacement||"bottom-start",column:n,upDataColumn:(e,t)=>{n[e]=t}})])]))))))))}});function Uoe(e){const t=zo($oe),n=tq("table"),{handleDoubleClick:r,handleClick:o,handleContextMenu:l,handleMouseEnter:a,handleMouseLeave:i,handleCellMouseEnter:s,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:d}=function(e){const t=zo($oe),n=Wt(""),r=Wt(la("div")),{nextZIndex:o}=BY(),l=(n,r,o)=>{var l;const a=t,i=soe(n);let s;const u=null==(l=null==a?void 0:a.vnode.el)?void 0:l.dataset.prefix;i&&(s=doe({columns:e.store.states.columns.value},i,u),s&&(null==a||a.emit(`cell-${o}`,r,s,i,n))),null==a||a.emit(`row-${o}`,r,s,n)};return{handleDoubleClick:(e,t)=>{l(e,t,"dblclick")},handleClick:(t,n)=>{e.store.commit("setCurrentRow",n),l(t,n,"click")},handleContextMenu:(e,t)=>{l(e,t,"contextmenu")},handleMouseEnter:Pk((t=>{e.store.commit("setHoverRow",t)}),30),handleMouseLeave:Pk((()=>{e.store.commit("setHoverRow",null)}),30),handleCellMouseEnter:(n,r,l)=>{var a;const i=t,s=soe(n),u=null==(a=null==i?void 0:i.vnode.el)?void 0:a.dataset.prefix;if(s){const t=doe({columns:e.store.states.columns.value},s,u),o=i.hoverState={cell:s,column:t,row:r};null==i||i.emit("cell-mouse-enter",o.row,o.column,o.cell,n)}if(!l)return;const c=n.target.querySelector(".cell");if(!Vz(c,`${u}-tooltip`)||!c.childNodes.length)return;const d=document.createRange();d.setStart(c,0),d.setEnd(c,c.childNodes.length),(Math.round(d.getBoundingClientRect().width)+((Number.parseInt(Dz(c,"paddingLeft"),10)||0)+(Number.parseInt(Dz(c,"paddingRight"),10)||0))>c.offsetWidth||c.scrollWidth>c.offsetWidth)&&function(e,t,n,r,o){o=hE({enterable:!0,showArrow:!0},o);const l=null==e?void 0:e.dataset.prefix,a=null==e?void 0:e.querySelector(`.${l}-scrollbar__wrap`);function i(){s&&s.update()}null==yoe||yoe(),yoe=()=>{try{s&&s.destroy(),d&&(null==e||e.removeChild(d)),t.removeEventListener("mouseenter",u),t.removeEventListener("mouseleave",c),null==a||a.removeEventListener("scroll",yoe),yoe=void 0}catch(n){}};let s=null,u=i,c=yoe;o.enterable&&({onOpen:u,onClose:c}=RY({showAfter:o.showAfter,hideAfter:o.hideAfter,open:i,close:yoe}));const d=function(){const t="light"===o.effect,a=document.createElement("div");return a.className=[`${l}-popper`,t?"is-light":"is-dark",o.popperClass||""].join(" "),n=ioe(n),a.innerHTML=n,a.style.zIndex=String(r()),null==e||e.appendChild(a),a}();d.onmouseenter=u,d.onmouseleave=c;const p=[];if(o.offset&&p.push({name:"offset",options:{offset:[0,o.offset]}}),o.showArrow){const e=d.appendChild(function(){const e=document.createElement("div");return e.className=`${l}-popper__arrow`,e}());p.push({name:"arrow",options:{element:e,padding:10}})}const f=o.popperOptions||{};s=CY(t,d,{placement:o.placement||"top",strategy:"fixed",...f,modifiers:f.modifiers?p.concat(f.modifiers):p}),t.addEventListener("mouseenter",u),t.addEventListener("mouseleave",c),null==a||a.addEventListener("scroll",yoe)}(null==t?void 0:t.refs.tableWrapper,s,s.innerText||s.textContent,o,l)},handleCellMouseLeave:e=>{if(!soe(e))return;const n=null==t?void 0:t.hoverState;null==t||t.emit("cell-mouse-leave",null==n?void 0:n.row,null==n?void 0:n.column,null==n?void 0:n.cell,e)},tooltipContent:n,tooltipTrigger:r}}(e),{getRowStyle:p,getRowClass:f,getCellStyle:v,getCellClass:h,getSpan:m,getColspanRealWidth:g}=function(e){const t=zo($oe),n=tq("table");return{getRowStyle:(e,n)=>{const r=null==t?void 0:t.props.rowStyle;return"function"==typeof r?r.call(null,{row:e,rowIndex:n}):r||null},getRowClass:(r,o)=>{const l=[n.e("row")];(null==t?void 0:t.props.highlightCurrentRow)&&r===e.store.states.currentRow.value&&l.push("current-row"),e.stripe&&o%2==1&&l.push(n.em("row","striped"));const a=null==t?void 0:t.props.rowClassName;return"string"==typeof a?l.push(a):"function"==typeof a&&l.push(a.call(null,{row:r,rowIndex:o})),l},getCellStyle:(n,r,o,l)=>{const a=null==t?void 0:t.props.cellStyle;let i=null!=a?a:{};"function"==typeof a&&(i=a.call(null,{rowIndex:n,columnIndex:r,row:o,column:l}));const s=Soe(r,null==e?void 0:e.fixed,e.store);return _oe(s,"left"),_oe(s,"right"),Object.assign({},i,s)},getCellClass:(r,o,l,a,i)=>{const s=Coe(n.b(),o,null==e?void 0:e.fixed,e.store,void 0,i),u=[a.id,a.align,a.className,...s],c=null==t?void 0:t.props.cellClassName;return"string"==typeof c?u.push(c):"function"==typeof c&&u.push(c.call(null,{rowIndex:r,columnIndex:o,row:l,column:a})),u.push(n.e("cell")),u.filter((e=>Boolean(e))).join(" ")},getSpan:(e,n,r,o)=>{let l=1,a=1;const i=null==t?void 0:t.props.spanMethod;if("function"==typeof i){const t=i({row:e,column:n,rowIndex:r,columnIndex:o});Array.isArray(t)?(l=t[0],a=t[1]):"object"==typeof t&&(l=t.rowspan,a=t.colspan)}return{rowspan:l,colspan:a}},getColspanRealWidth:(e,t,n)=>{if(t<1)return e[n].realWidth;const r=e.map((({realWidth:e,width:t})=>e||t)).slice(n,n+t);return Number(r.reduce(((e,t)=>Number(e)+Number(t)),-1))}}}(e),y=oa((()=>e.store.states.columns.value.findIndex((({type:e})=>"default"===e)))),b=(e,n)=>{const r=t.props.rowKey;return r?poe(e,r):n},w=(c,d,w,C=!1)=>{const{tooltipEffect:k,tooltipOptions:S,store:_}=e,{indent:E,columns:O}=_.states,M=f(c,d);let z=!0;return w&&(M.push(n.em("row",`level-${w.level}`)),z=w.display),la("tr",{style:[z?null:{display:"none"},p(c,d)],class:M,key:b(c,d),onDblclick:e=>r(e,c),onClick:e=>o(e,c),onContextmenu:e=>l(e,c),onMouseenter:()=>a(d),onMouseleave:i},O.value.map(((n,r)=>{const{rowspan:o,colspan:l}=m(c,n,d,r);if(!o||!l)return null;const a={...n};a.realWidth=g(O.value,l,r);const i={store:e.store,_self:e.context||t,column:a,row:c,$index:d,cellIndex:r,expanded:C};r===y.value&&w&&(i.treeNode={indent:w.level*E.value,level:w.level},"boolean"==typeof w.expanded&&(i.treeNode.expanded=w.expanded,"loading"in w&&(i.treeNode.loading=w.loading),"noLazyChildren"in w&&(i.treeNode.noLazyChildren=w.noLazyChildren)));const p=`${d},${r}`,f=a.columnKey||a.rawColumnKey||"",b=x(r,n,i),_=n.showOverflowTooltip&&hE({effect:k},S,n.showOverflowTooltip);return la("td",{style:v(d,r,c,n),class:h(d,r,c,n,l-1),key:`${f}${p}`,rowspan:o,colspan:l,onMouseenter:e=>s(e,c,_),onMouseleave:u},[b])})))},x=(e,t,n)=>t.renderCell(n);return{wrappedRowRender:(r,o)=>{const l=e.store,{isRowExpanded:a,assertRowKey:i}=l,{treeData:s,lazyTreeNodeMap:u,childrenColumnName:c,rowKey:d}=l.states,p=l.states.columns.value;if(p.some((({type:e})=>"expand"===e))){const e=a(r),i=w(r,o,void 0,e),s=t.renderExpanded;return e?s?[[i,la("tr",{key:`expanded-row__${i.key}`},[la("td",{colspan:p.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[s({row:r,$index:o,store:l,expanded:e})])])]]:i:[[i]]}if(Object.keys(s.value).length){i();const e=poe(r,d.value);let t=s.value[e],n=null;t&&(n={expanded:t.expanded,level:t.level,display:!0},"boolean"==typeof t.lazy&&("boolean"==typeof t.loaded&&t.loaded&&(n.noLazyChildren=!(t.children&&t.children.length)),n.loading=t.loading));const l=[w(r,o,n)];if(t){let n=0;const a=(e,r)=>{e&&e.length&&r&&e.forEach((e=>{const i={display:r.display&&r.expanded,level:r.level+1,expanded:!1,noLazyChildren:!1,loading:!1},p=poe(e,d.value);if(null==p)throw new Error("For nested data item, row-key is required.");if(t={...s.value[p]},t&&(i.expanded=t.expanded,t.level=t.level||i.level,t.display=!(!t.expanded||!i.display),"boolean"==typeof t.lazy&&("boolean"==typeof t.loaded&&t.loaded&&(i.noLazyChildren=!(t.children&&t.children.length)),i.loading=t.loading)),n++,l.push(w(e,o+n,i)),t){const n=u.value[p]||e[c.value];a(n,t)}}))};t.display=!0;const i=u.value[e]||r[c.value];a(i,t)}return l}return w(r,o,void 0)},tooltipContent:c,tooltipTrigger:d}}var Koe=wr({name:"ElTableBody",props:{store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean},setup(e){const t=$l(),n=zo($oe),r=tq("table"),{wrappedRowRender:o,tooltipContent:l,tooltipTrigger:a}=Uoe(e),{onColumnsChange:i,onScrollableChange:s}=Doe(n);return nr(e.store.states.hoverRow,((n,o)=>{if(!e.store.states.isComplex.value||!Xi)return;let l=window.requestAnimationFrame;l||(l=e=>window.setTimeout(e,16)),l((()=>{const e=null==t?void 0:t.vnode.el,l=Array.from((null==e?void 0:e.children)||[]).filter((e=>null==e?void 0:e.classList.contains(`${r.e("row")}`))),a=l[o],i=l[n];a&&Hz(a,"hover-row"),i&&Bz(i,"hover-row")}))})),Hr((()=>{var e;null==(e=yoe)||e()})),{ns:r,onColumnsChange:i,onScrollableChange:s,wrappedRowRender:o,tooltipContent:l,tooltipTrigger:a}},render(){const{wrappedRowRender:e,store:t}=this;return la("tbody",{},[(t.states.data.value||[]).reduce(((t,n)=>t.concat(e(n,t.length))),[])])}});function qoe(e){const t="auto"===e.tableLayout;let n=e.columns||[];return t&&n.every((e=>void 0===e.width))&&(n=[]),la("colgroup",{},n.map((n=>la("col",(n=>{const r={key:`${e.tableLayout}_${n.id}`,style:{},name:void 0};return t?r.style={width:`${n.width}px`}:r.name=n.id,r})(n)))))}qoe.props=["columns","tableLayout"];var Yoe=wr({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:r}=function(e){const{columns:t}=function(){const e=zo($oe),t=null==e?void 0:e.store;return{leftFixedLeafCount:oa((()=>t.states.fixedLeafColumnsLength.value)),rightFixedLeafCount:oa((()=>t.states.rightFixedColumns.value.length)),columnsCount:oa((()=>t.states.columns.value.length)),leftFixedCount:oa((()=>t.states.fixedColumns.value.length)),rightFixedCount:oa((()=>t.states.rightFixedColumns.value.length)),columns:t.states.columns}}(),n=tq("table");return{getCellClasses:(t,r)=>{const o=t[r],l=[n.e("cell"),o.id,o.align,o.labelClassName,...Coe(n.b(),r,o.fixed,e.store)];return o.className&&l.push(o.className),o.children||l.push(n.is("leaf")),l},getCellStyles:(t,n)=>{const r=Soe(n,t.fixed,e.store);return _oe(r,"left"),_oe(r,"right"),r},columns:t}}(e);return{ns:tq("table"),getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:o,ns:l}=this,a=this.store.states.data.value;let i=[];return r?i=r({columns:e,data:a}):e.forEach(((e,t)=>{if(0===t)return void(i[t]=o);const n=a.map((t=>Number(t[e.property]))),r=[];let l=!0;n.forEach((e=>{if(!Number.isNaN(+e)){l=!1;const t=`${e}`.split(".")[1];r.push(t?t.length:0)}}));const s=Math.max.apply(null,r);i[t]=l?"":n.reduce(((e,t)=>{const n=Number(t);return Number.isNaN(+n)?e:Number.parseFloat((e+t).toFixed(Math.min(s,20)))}),0)})),la("table",{class:l.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[qoe({columns:e}),la("tbody",[la("tr",{},[...e.map(((r,o)=>la("td",{key:o,colspan:r.colSpan,rowspan:r.rowSpan,class:n(e,o),style:t(r,o)},[la("div",{class:["cell",r.labelClassName]},[i[o]])])))])])])}});var Goe={data:{type:Array,default:()=>[]},size:LG,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};let Joe=1;const Xoe=wr({name:"ElTable",directives:{Mousewheel:v2},components:{TableHeader:Woe,TableBody:Koe,TableFooter:Yoe,ElScrollbar:EX,hColgroup:qoe},props:Goe,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t:t}=JK(),n=tq("table"),r=$l();Mo($oe,r);const o=Aoe(r,e);r.store=o;const l=new Roe({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=l;const a=oa((()=>0===(o.states.data.value||[]).length)),{setCurrentRow:i,getSelectionRows:s,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:p,toggleRowExpansion:f,clearSort:v,sort:h}=(H=o,{setCurrentRow:e=>{H.commit("setCurrentRow",e)},getSelectionRows:()=>H.getSelectionRows(),toggleRowSelection:(e,t)=>{H.toggleRowSelection(e,t,!1),H.updateAllSelected()},clearSelection:()=>{H.clearSelection()},clearFilter:e=>{H.clearFilter(e)},toggleAllSelection:()=>{H.commit("toggleAllSelection")},toggleRowExpansion:(e,t)=>{H.toggleRowExpansionAdapter(e,t)},clearSort:()=>{H.clearSort()},sort:(e,t)=>{H.commit("sort",{prop:e,order:t})}}),{isHidden:m,renderExpanded:g,setDragVisible:y,isGroup:b,handleMouseLeave:w,handleHeaderFooterMousewheel:x,tableSize:C,emptyBlockStyle:k,handleFixedMousewheel:S,resizeProxyVisible:_,bodyWidth:E,resizeState:O,doLayout:M,tableBodyStyles:z,tableLayout:T,scrollbarViewStyle:A,tableInnerStyle:L,scrollbarStyle:I}=function(e,t,n,r){const o=Wt(!1),l=Wt(null),a=Wt(!1),i=Wt({width:null,height:null,headerHeight:null}),s=Wt(!1),u=Wt(),c=Wt(0),d=Wt(0),p=Wt(0),f=Wt(0);Zn((()=>{t.setHeight(e.height)})),Zn((()=>{t.setMaxHeight(e.maxHeight)})),nr((()=>[e.currentRowKey,n.states.rowKey]),(([e,t])=>{Gt(t)&&Gt(e)&&n.setCurrentRowKey(`${e}`)}),{immediate:!0}),nr((()=>e.data),(e=>{r.store.commit("setData",e)}),{immediate:!0,deep:!0}),Zn((()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)}));const v=oa((()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0)),h=oa((()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""}))),m=()=>{v.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(y)};Nr((async()=>{await wn(),n.updateColumns(),b(),requestAnimationFrame(m);const t=r.vnode.el,o=r.refs.headerWrapper;e.flexible&&t&&t.parentElement&&(t.parentElement.style.minWidth="0"),i.value={width:u.value=t.offsetWidth,height:t.offsetHeight,headerHeight:e.showHeader&&o?o.offsetHeight:null},n.states.columns.value.forEach((e=>{e.filteredValue&&e.filteredValue.length&&r.store.commit("filterChange",{column:e,values:e.filteredValue,silent:!0})})),r.$ready=!0}));const g=e=>{const{tableWrapper:n}=r.refs;((e,n)=>{if(!e)return;const r=Array.from(e.classList).filter((e=>!e.startsWith("is-scrolling-")));r.push(t.scrollX.value?n:"is-scrolling-none"),e.className=r.join(" ")})(n,e)},y=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const e="is-scrolling-none";return void((e=>{const{tableWrapper:t}=r.refs;return!(!t||!t.classList.contains(e))})(e)||g(e))}const e=r.refs.scrollBarRef.wrapRef;if(!e)return;const{scrollLeft:n,offsetWidth:o,scrollWidth:l}=e,{headerWrapper:a,footerWrapper:i}=r.refs;a&&(a.scrollLeft=n),i&&(i.scrollLeft=n),g(n>=l-o-1?"is-scrolling-right":0===n?"is-scrolling-left":"is-scrolling-middle")},b=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&_c(r.refs.scrollBarRef.wrapRef,"scroll",y,{passive:!0}),e.fit?hp(r.vnode.el,w):_c(window,"resize",w),hp(r.refs.bodyWrapper,(()=>{var e,t;w(),null==(t=null==(e=r.refs)?void 0:e.scrollBarRef)||t.update()})))},w=()=>{var t,n,o;const l=r.vnode.el;if(!r.$ready||!l)return;let a=!1;const{width:s,height:h,headerHeight:g}=i.value,y=u.value=l.offsetWidth;s!==y&&(a=!0);const b=l.offsetHeight;(e.height||v.value)&&h!==b&&(a=!0);const w="fixed"===e.tableLayout?r.refs.headerWrapper:null==(t=r.refs.tableHeaderRef)?void 0:t.$el;e.showHeader&&(null==w?void 0:w.offsetHeight)!==g&&(a=!0),c.value=(null==(n=r.refs.tableWrapper)?void 0:n.scrollHeight)||0,p.value=(null==w?void 0:w.scrollHeight)||0,f.value=(null==(o=r.refs.footerWrapper)?void 0:o.offsetHeight)||0,d.value=c.value-p.value-f.value,a&&(i.value={width:y,height:b,headerHeight:e.showHeader&&(null==w?void 0:w.offsetHeight)||0},m())},x=iJ(),C=oa((()=>{const{bodyWidth:e,scrollY:n,gutterWidth:r}=t;return e.value?e.value-(n.value?r:0)+"px":""})),k=oa((()=>e.maxHeight?"fixed":e.tableLayout)),S=oa((()=>{if(e.data&&e.data.length)return null;let t="100%";e.height&&d.value&&(t=`${d.value}px`);const n=u.value;return{width:n?`${n}px`:"",height:t}})),_=oa((()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{})),E=oa((()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${p.value+f.value}px)`}:{maxHeight:e.maxHeight-p.value-f.value+"px"}:{}));return{isHidden:o,renderExpanded:l,setDragVisible:e=>{a.value=e},isGroup:s,handleMouseLeave:()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},handleHeaderFooterMousewheel:(e,t)=>{const{pixelX:n,pixelY:o}=t;Math.abs(n)>=Math.abs(o)&&(r.refs.bodyWrapper.scrollLeft+=t.pixelX/5)},tableSize:x,emptyBlockStyle:S,handleFixedMousewheel:(e,t)=>{const n=r.refs.bodyWrapper;if(Math.abs(t.spinY)>0){const r=n.scrollTop;t.pixelY<0&&0!==r&&e.preventDefault(),t.pixelY>0&&n.scrollHeight-n.clientHeight>r&&e.preventDefault(),n.scrollTop+=Math.ceil(t.pixelY/5)}else n.scrollLeft+=Math.ceil(t.pixelX/5)},resizeProxyVisible:a,bodyWidth:C,resizeState:i,doLayout:m,tableBodyStyles:h,tableLayout:k,scrollbarViewStyle:{display:"inline-block",verticalAlign:"middle"},tableInnerStyle:_,scrollbarStyle:E}}(e,l,o,r),{scrollBarRef:R,scrollTo:P,setScrollLeft:N,setScrollTop:j}=(()=>{const e=Wt(),t=(t,n)=>{const r=e.value;r&&Mz(n)&&["Top","Left"].includes(t)&&r[`setScroll${t}`](n)};return{scrollBarRef:e,scrollTo:(t,n)=>{const r=e.value;r&&r.scrollTo(t,n)},setScrollTop:e=>t("Top",e),setScrollLeft:e=>t("Left",e)}})(),V=Pk(M,50),B=`${n.namespace.value}-table_${Joe++}`;var H;r.tableId=B,r.state={isGroup:b,resizeState:O,doLayout:M,debouncedUpdateLayout:V};const D=oa((()=>e.sumText||t("el.table.sumText"))),$=oa((()=>e.emptyText||t("el.table.emptyText")));return function(e){const t=Wt();Nr((()=>{(()=>{const n=e.vnode.el.querySelector(".hidden-columns"),r=e.store.states.updateOrderFns;t.value=new MutationObserver((()=>{r.forEach((e=>e()))})),t.value.observe(n,{childList:!0,subtree:!0})})()})),Hr((()=>{var e;null==(e=t.value)||e.disconnect()}))}(r),{ns:n,layout:l,store:o,handleHeaderFooterMousewheel:x,handleMouseLeave:w,tableId:B,tableSize:C,isHidden:m,isEmpty:a,renderExpanded:g,resizeProxyVisible:_,resizeState:O,isGroup:b,bodyWidth:E,tableBodyStyles:z,emptyBlockStyle:k,debouncedUpdateLayout:V,handleFixedMousewheel:S,setCurrentRow:i,getSelectionRows:s,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:p,toggleRowExpansion:f,clearSort:v,doLayout:M,sort:h,t:t,setDragVisible:y,context:r,computedSumText:D,computedEmptyText:$,tableLayout:T,scrollbarViewStyle:A,tableInnerStyle:L,scrollbarStyle:I,scrollBarRef:R,scrollTo:P,setScrollLeft:N,setScrollTop:j}}}),Qoe=["data-prefix"],Zoe={ref:"hiddenColumns",class:"hidden-columns"};var ele=UG(Xoe,[["render",function(e,t,n,r,o,l){const a=Kr("hColgroup"),i=Kr("table-header"),s=Kr("table-body"),u=Kr("el-scrollbar"),c=Kr("table-footer"),d=Gr("mousewheel");return vl(),bl("div",{ref:"tableWrapper",class:X([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:0!==(e.store.states.data.value||[]).length&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:K(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...t)=>e.handleMouseLeave&&e.handleMouseLeave(...t))},[El("div",{class:X(e.ns.e("inner-wrapper")),style:K(e.tableInnerStyle)},[El("div",Zoe,[eo(e.$slots,"default")],512),e.showHeader&&"fixed"===e.tableLayout?ir((vl(),bl("div",{key:0,ref:"headerWrapper",class:X(e.ns.e("header-wrapper"))},[El("table",{ref:"tableHeader",class:X(e.ns.e("header")),style:K(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Ol(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Ol(i,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[d,e.handleHeaderFooterMousewheel]]):Ll("v-if",!0),El("div",{ref:"bodyWrapper",class:X(e.ns.e("body-wrapper"))},[Ol(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:Bn((()=>[El("table",{ref:"tableBody",class:X(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:K({width:e.bodyWidth,tableLayout:e.tableLayout})},[Ol(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&"auto"===e.tableLayout?(vl(),wl(i,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):Ll("v-if",!0),Ol(s,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),e.isEmpty?(vl(),bl("div",{key:0,ref:"emptyBlock",style:K(e.emptyBlockStyle),class:X(e.ns.e("empty-block"))},[El("span",{class:X(e.ns.e("empty-text"))},[eo(e.$slots,"empty",{},(()=>[Tl(ve(e.computedEmptyText),1)]))],2)],6)):Ll("v-if",!0),e.$slots.append?(vl(),bl("div",{key:1,ref:"appendWrapper",class:X(e.ns.e("append-wrapper"))},[eo(e.$slots,"append")],2)):Ll("v-if",!0)])),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?ir((vl(),bl("div",{key:1,ref:"footerWrapper",class:X(e.ns.e("footer-wrapper"))},[Ol(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:K(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[wi,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):Ll("v-if",!0),e.border||e.isGroup?(vl(),bl("div",{key:2,class:X(e.ns.e("border-left-patch"))},null,2)):Ll("v-if",!0)],6),ir(El("div",{ref:"resizeProxy",class:X(e.ns.e("column-resize-proxy"))},null,2),[[wi,e.resizeProxyVisible]])],46,Qoe)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const tle={selection:"table-column--selection",expand:"table__expand-column"},nle={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},rle={selection:{renderHeader:({store:e})=>la(_1,{disabled:e.states.data.value&&0===e.states.data.value.length,size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value}),renderCell:({row:e,column:t,store:n,$index:r})=>la(_1,{disabled:!!t.selectable&&!t.selectable.call(null,e,r),size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:e=>e.stopPropagation(),modelValue:n.isSelected(e)}),sortable:!1,resizable:!1},index:{renderHeader:({column:e})=>e.label||"#",renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return"number"==typeof r?n=t+r:"function"==typeof r&&(n=r(t)),la("div",{},[n])},sortable:!1},expand:{renderHeader:({column:e})=>e.label||"",renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,o=[r.e("expand-icon")];return n&&o.push(r.em("expand-icon","expanded")),la("div",{class:o,onClick:function(n){n.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[la(ZG,null,{default:()=>[la(ST)]})]})},sortable:!1,resizable:!1}};function ole({row:e,column:t,$index:n}){var r;const o=t.property,l=o&&Rz(e,o).value;return t&&t.formatter?t.formatter(e,t,l,n):(null==(r=null==l?void 0:l.toString)?void 0:r.call(l))||""}function lle(e,t){return e.reduce(((e,t)=>(e[t]=t,e)),t)}var ale={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:[Boolean,Object],fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every((e=>["ascending","descending",null].includes(e)))}};let ile=1;var sle=wr({name:"ElTableColumn",components:{ElCheckbox:_1},props:ale,setup(e,{slots:t}){const n=$l(),r=Wt({}),o=oa((()=>{let e=n.parent;for(;e&&!e.tableId;)e=e.parent;return e})),{registerNormalWatchers:l,registerComplexWatchers:a}=function(e,t){const n=$l();return{registerComplexWatchers:()=>{const r={realWidth:"width",realMinWidth:"minWidth"},o=lle(["fixed"],r);Object.keys(o).forEach((o=>{const l=r[o];d(t,l)&&nr((()=>t[l]),(t=>{let r=t;"width"===l&&"realWidth"===o&&(r=voe(t)),"minWidth"===l&&"realMinWidth"===o&&(r=hoe(t)),n.columnConfig.value[l]=r,n.columnConfig.value[o]=r;const a="fixed"===l;e.value.store.scheduleLayout(a)}))}))},registerNormalWatchers:()=>{const e={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},r=lle(["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],e);Object.keys(r).forEach((r=>{const o=e[r];d(t,o)&&nr((()=>t[o]),(e=>{n.columnConfig.value[r]=e}))}))}}}(o,e),{columnId:i,isSubColumn:s,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:p,setColumnForcedProps:f,setColumnRenders:v,getPropsData:h,getColumnElIndex:m,realAlign:g,updateColumnOrder:y}=function(e,t,n){const r=$l(),o=Wt(""),l=Wt(!1),a=Wt(),i=Wt(),s=tq("table");Zn((()=>{a.value=e.align?`is-${e.align}`:null,a.value})),Zn((()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:a.value,i.value}));const u=oa((()=>{let e=r.vnode.vParent||r.parent;for(;e&&!e.tableId&&!e.columnId;)e=e.vnode.vParent||e.parent;return e})),c=oa((()=>{const{store:e}=r.parent;if(!e)return!1;const{treeData:t}=e.states,n=t.value;return n&&Object.keys(n).length>0})),d=Wt(voe(e.width)),p=Wt(hoe(e.minWidth));return{columnId:o,realAlign:a,isSubColumn:l,realHeaderAlign:i,columnOrTableParent:u,setColumnWidth:e=>(d.value&&(e.width=d.value),p.value&&(e.minWidth=p.value),!d.value&&p.value&&(e.width=void 0),e.minWidth||(e.minWidth=80),e.realWidth=Number(void 0===e.width?e.minWidth:e.width),e),setColumnForcedProps:e=>{const t=e.type,n=rle[t]||{};Object.keys(n).forEach((t=>{const r=n[t];"className"!==t&&void 0!==r&&(e[t]=r)}));const r=tle[t]||"";if(r){const t=`${Gt(s.namespace)}-${r}`;e.className=e.className?`${e.className} ${t}`:t}return e},setColumnRenders:o=>{e.renderHeader||"selection"!==o.type&&(o.renderHeader=e=>{r.columnConfig.value.label;const n=t.header;return n?n(e):o.label});let l=o.renderCell;return"expand"===o.type?(o.renderCell=e=>la("div",{class:"cell"},[l(e)]),n.value.renderExpanded=e=>t.default?t.default(e):t.default):(l=l||ole,o.renderCell=e=>{let a=null;if(t.default){const n=t.default(e);a=n.some((e=>e.type!==cl))?n:l(e)}else a=l(e);const{columns:i}=n.value.store.states,u=i.value.findIndex((e=>"default"===e.type)),d=function({row:e,treeNode:t,store:n},r=!1){const{ns:o}=n;if(!t)return r?[la("span",{class:o.e("placeholder")})]:null;const l=[],a=function(r){r.stopPropagation(),t.loading||n.loadOrToggle(e)};if(t.indent&&l.push(la("span",{class:o.e("indent"),style:{"padding-left":`${t.indent}px`}})),"boolean"!=typeof t.expanded||t.noLazyChildren)l.push(la("span",{class:o.e("placeholder")}));else{const e=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let n=ST;t.loading&&(n=pV),l.push(la("div",{class:e,onClick:a},{default:()=>[la(ZG,{class:{[o.is("loading")]:t.loading}},{default:()=>[la(n)]})]}))}return l}(e,c.value&&e.cellIndex===u),p={class:"cell",style:{}};return o.showOverflowTooltip&&(p.class=`${p.class} ${Gt(s.namespace)}-tooltip`,p.style={width:(e.column.realWidth||Number(e.column.width))-1+"px"}),(e=>{function t(e){var t;"ElTableColumn"===(null==(t=null==e?void 0:e.type)?void 0:t.name)&&(e.vParent=r)}Array.isArray(e)?e.forEach((e=>t(e))):t(e)})(a),la("div",p,[d,a])}),o},getPropsData:(...t)=>t.reduce(((t,n)=>(Array.isArray(n)&&n.forEach((n=>{t[n]=e[n]})),t)),{}),getColumnElIndex:(e,t)=>Array.prototype.indexOf.call(e,t),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}(e,t,o),b=c.value;i.value=`${b.tableId||b.columnId}_column_${ile++}`,Pr((()=>{s.value=o.value!==b;const t=e.type||"default",c=""===e.sortable||e.sortable,m={...nle[t],id:i.value,type:t,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:e.showOverflowTooltip,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:c,index:e.index,rawColumnKey:n.vnode.key};let y=h(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);y=function(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(d(t,r)){const e=t[r];void 0!==e&&(n[r]=e)}return n}(m,y);y=function(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}(v,p,f)(y),r.value=y,l(),a()})),Nr((()=>{var e;const t=c.value,l=s.value?t.vnode.el.children:null==(e=t.refs.hiddenColumns)?void 0:e.children,a=()=>m(l||[],n.vnode.el);r.value.getColumnIndex=a,a()>-1&&o.value.store.commit("insertColumn",r.value,s.value?t.columnConfig.value:null,y)})),Br((()=>{o.value.store.commit("removeColumn",r.value,s.value?b.columnConfig.value:null,y)})),n.columnId=i.value,n.columnConfig=r},render(){var e,t,n;try{const r=null==(t=(e=this.$slots).default)?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(Array.isArray(r))for(const e of r)"ElTableColumn"===(null==(n=e.type)?void 0:n.name)||2&e.shapeFlag?o.push(e):e.type===sl&&Array.isArray(e.children)&&e.children.forEach((e=>{1024===(null==e?void 0:e.patchFlag)||y(null==e?void 0:e.children)||o.push(e)}));return la("div",o)}catch(r){return la("div",[])}}});const ule=bK(ele,{TableColumn:sle}),cle=xK(sle);var dle=(e=>(e.ASC="asc",e.DESC="desc",e))(dle||{}),ple=(e=>(e.CENTER="center",e.RIGHT="right",e))(ple||{}),fle=(e=>(e.LEFT="left",e.RIGHT="right",e))(fle||{});const vle={asc:"desc",desc:"asc"},hle=Symbol("placeholder"),mle=(e,t)=>e+t,gle=e=>p(e)?e.reduce(mle,0):e,yle=(e,t,n={})=>g(e)?e(t):null!=e?e:n,ble=e=>(["width","maxWidth","minWidth","height"].forEach((t=>{e[t]=$z(e[t])})),e),wle=e=>xl(e)?t=>la(e,t):e;function xle(e){const t=Wt(),n=Wt(),r=Wt(),{columns:o,columnsStyles:l,columnsTotalWidth:a,fixedColumnsOnLeft:i,fixedColumnsOnRight:s,hasFixedColumns:u,mainColumns:c,onColumnSorted:d}=function(e,t,n){const r=oa((()=>Gt(t).filter((e=>!e.hidden)))),o=oa((()=>Gt(r).filter((e=>"left"===e.fixed||!0===e.fixed)))),l=oa((()=>Gt(r).filter((e=>"right"===e.fixed)))),a=oa((()=>Gt(r).filter((e=>!e.fixed)))),i=oa((()=>{const e=[];return Gt(o).forEach((t=>{e.push({...t,placeholderSign:hle})})),Gt(a).forEach((t=>{e.push(t)})),Gt(l).forEach((t=>{e.push({...t,placeholderSign:hle})})),e})),s=oa((()=>Gt(o).length||Gt(l).length)),u=oa((()=>Gt(t).reduce(((t,r)=>(t[r.key]=((e,t,n)=>{var r;const o={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(o.flexShrink=1);const l={...null!=(r=e.style)?r:{},...o,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(l.maxWidth=e.maxWidth),e.minWidth&&(l.minWidth=e.minWidth)),l})(r,Gt(n),e.fixed),t)),{}))),c=oa((()=>Gt(r).reduce(((e,t)=>e+t.width),0))),d=e=>Gt(t).find((t=>t.key===e));return{columns:t,columnsStyles:u,columnsTotalWidth:c,fixedColumnsOnLeft:o,fixedColumnsOnRight:l,hasFixedColumns:s,mainColumns:i,normalColumns:a,visibleColumns:r,getColumn:d,getColumnStyle:e=>Gt(u)[e],updateColumnWidth:(e,t)=>{e.width=t},onColumnSorted:function(t){var n;const{key:r}=t.currentTarget.dataset;if(!r)return;const{sortState:o,sortBy:l}=e;let a=dle.ASC;a=w(o)?vle[o[r]]:vle[l.order],null==(n=e.onColumnSort)||n.call(e,{column:d(r),key:r,order:a})}}}(e,rn(e,"columns"),rn(e,"fixed")),{scrollTo:f,scrollToLeft:v,scrollToTop:h,scrollToRow:m,onScroll:g,onVerticalScroll:y,scrollPos:b}=((e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:o})=>{const l=Wt({scrollLeft:0,scrollTop:0});function a(e){var o,l,a;const{scrollTop:i}=e;null==(o=t.value)||o.scrollTo(e),null==(l=n.value)||l.scrollToTop(i),null==(a=r.value)||a.scrollToTop(i)}function i(e){l.value=e,a(e)}function s(e){l.value.scrollTop=e,a(Gt(l))}return nr((()=>Gt(l).scrollTop),((e,t)=>{e>t&&o()})),{scrollPos:l,scrollTo:i,scrollToLeft:function(e){var n,r;l.value.scrollLeft=e,null==(r=null==(n=t.value)?void 0:n.scrollTo)||r.call(n,Gt(l))},scrollToTop:s,scrollToRow:function(e,n="auto"){var r;null==(r=t.value)||r.scrollToRow(e,n)},onScroll:function(t){var n;i(t),null==(n=e.onScroll)||n.call(e,t)},onVerticalScroll:function({scrollTop:e}){const{scrollTop:t}=Gt(l);e!==t&&s(e)}}})(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:function(){const{onEndReached:t}=e;if(!t)return;const{scrollTop:n}=Gt(b),r=Gt(H),o=r-(n+Gt(D))+e.hScrollbarSize;Gt(k)>=0&&r===n+Gt(N)-Gt(U)&&t(o)}}),{expandedRowKeys:x,hoveringRowKey:C,lastRenderedRowIndex:k,isDynamic:S,isResetting:_,rowHeights:E,resetAfterIndex:O,onRowExpanded:M,onRowHeightChange:z,onRowHovered:T,onRowsRendered:A}=((e,{mainTableRef:t,leftTableRef:n,rightTableRef:r})=>{const o=$l(),{emit:l}=o,a=Ut(!1),i=Ut(null),s=Wt(e.defaultExpandedRowKeys||[]),u=Wt(-1),c=Ut(null),d=Wt({}),p=Wt({}),f=Ut({}),v=Ut({}),h=Ut({}),m=oa((()=>Mz(e.estimatedRowHeight))),g=Pk((()=>{var e,l,i,s;a.value=!0,d.value={...Gt(d),...Gt(p)},y(Gt(c),!1),p.value={},c.value=null,null==(e=t.value)||e.forceUpdate(),null==(l=n.value)||l.forceUpdate(),null==(i=r.value)||i.forceUpdate(),null==(s=o.proxy)||s.$forceUpdate(),a.value=!1}),0);function y(e,o=!1){Gt(m)&&[t,n,r].forEach((t=>{const n=Gt(t);n&&n.resetAfterRowIndex(e,o)}))}return{hoveringRowKey:i,expandedRowKeys:s,lastRenderedRowIndex:u,isDynamic:m,isResetting:a,rowHeights:d,resetAfterIndex:y,onRowExpanded:function({expanded:t,rowData:n,rowIndex:r,rowKey:o}){var a,i;const u=[...Gt(s)],c=u.indexOf(o);t?-1===c&&u.push(o):c>-1&&u.splice(c,1),s.value=u,l("update:expandedRowKeys",u),null==(a=e.onRowExpand)||a.call(e,{expanded:t,rowData:n,rowIndex:r,rowKey:o}),null==(i=e.onExpandedRowsChange)||i.call(e,u)},onRowHovered:function({hovered:e,rowKey:t}){i.value=e?t:null},onRowsRendered:function(t){var n;null==(n=e.onRowsRendered)||n.call(e,t),t.rowCacheEnd>Gt(u)&&(u.value=t.rowCacheEnd)},onRowHeightChange:function({rowKey:e,height:t,rowIndex:n},r){r?r===fle.RIGHT?h.value[e]=t:f.value[e]=t:v.value[e]=t;const o=Math.max(...[f,h,v].map((t=>t.value[e]||0)));Gt(d)[e]!==o&&(function(e,t,n){const r=Gt(c);(null===r||r>n)&&(c.value=n),p.value[e]=t}(e,o,n),g())}}})(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r}),{data:L,depthMap:I}=((e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const o=Wt({}),l=oa((()=>{const n={},{data:r,rowKey:l}=e,a=Gt(t);if(!a||!a.length)return r;const i=[],s=new Set;a.forEach((e=>s.add(e)));let u=r.slice();for(u.forEach((e=>n[e[l]]=0));u.length>0;){const e=u.shift();i.push(e),s.has(e[l])&&Array.isArray(e.children)&&e.children.length>0&&(u=[...e.children,...u],e.children.forEach((t=>n[t[l]]=n[e[l]]+1)))}return o.value=n,i})),a=oa((()=>{const{data:t,expandColumnKey:n}=e;return n?Gt(l):t}));return nr(a,((e,t)=>{e!==t&&(n.value=-1,r(0,!0))})),{data:a,depthMap:o}})(e,{expandedRowKeys:x,lastRenderedRowIndex:k,resetAfterIndex:O}),{bodyWidth:R,fixedTableHeight:P,mainTableHeight:N,leftTableWidth:j,rightTableWidth:V,headerWidth:B,rowsHeight:H,windowHeight:D,footerHeight:$,emptyStyle:F,rootStyle:W,headerHeight:U}=((e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:o})=>{const l=oa((()=>{const{fixed:n,width:r,vScrollbarSize:o}=e,l=r-o;return n?Math.max(Math.round(Gt(t)),l):l})),a=oa((()=>Gt(l)+(e.fixed?e.vScrollbarSize:0))),i=oa((()=>{const{height:t=0,maxHeight:n=0,footerHeight:r,hScrollbarSize:o}=e;if(n>0){const e=Gt(v),t=Gt(s),l=Gt(f)+e+t+o;return Math.min(l,n-r)}return t-r})),s=oa((()=>{const{rowHeight:t,estimatedRowHeight:r}=e,o=Gt(n);return Mz(r)?o.length*r:o.length*t})),u=oa((()=>{const{maxHeight:t}=e,n=Gt(i);if(Mz(t)&&t>0)return n;const r=Gt(s)+Gt(f)+Gt(v);return Math.min(n,r)})),c=e=>e.width,d=oa((()=>gle(Gt(r).map(c)))),p=oa((()=>gle(Gt(o).map(c)))),f=oa((()=>gle(e.headerHeight))),v=oa((()=>{var t;return((null==(t=e.fixedData)?void 0:t.length)||0)*e.rowHeight})),h=oa((()=>Gt(i)-Gt(f)-Gt(v))),m=oa((()=>{const{style:t={},height:n,width:r}=e;return ble({...t,height:n,width:r})})),g=oa((()=>ble({height:e.footerHeight}))),y=oa((()=>({top:$z(Gt(f)),bottom:$z(e.footerHeight),width:$z(e.width)})));return{bodyWidth:l,fixedTableHeight:u,mainTableHeight:i,leftTableWidth:d,rightTableWidth:p,headerWidth:a,rowsHeight:s,windowHeight:h,footerHeight:g,emptyStyle:y,rootStyle:m,headerHeight:f}})(e,{columnsTotalWidth:a,data:L,fixedColumnsOnLeft:i,fixedColumnsOnRight:s}),K=Ut(!1),q=Wt(),Y=oa((()=>{const t=0===Gt(L).length;return p(e.fixedData)?0===e.fixedData.length&&t:t}));return nr((()=>e.expandedRowKeys),(e=>x.value=e),{deep:!0}),{columns:o,containerRef:q,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:S,isResetting:_,isScrolling:K,hoveringRowKey:C,hasFixedColumns:u,columnsStyles:l,columnsTotalWidth:a,data:L,expandedRowKeys:x,depthMap:I,fixedColumnsOnLeft:i,fixedColumnsOnRight:s,mainColumns:c,bodyWidth:R,emptyStyle:F,rootStyle:W,headerWidth:B,footerHeight:$,mainTableHeight:N,fixedTableHeight:P,leftTableWidth:j,rightTableWidth:V,showEmpty:Y,getRowHeight:function(t){const{estimatedRowHeight:n,rowHeight:r,rowKey:o}=e;return n?Gt(E)[Gt(L)[t][o]]||n:r},onColumnSorted:d,onRowHovered:T,onRowExpanded:M,onRowsRendered:A,onRowHeightChange:z,scrollTo:f,scrollToLeft:v,scrollToTop:h,scrollToRow:m,onScroll:g,onVerticalScroll:y}}const Cle=Symbol("tableV2"),kle=String,Sle={type:Array,required:!0},_le={type:Array},Ele={..._le,required:!0},Ole={type:Array,default:()=>[]},Mle={type:Number,required:!0},zle={type:[String,Number,Symbol],default:"id"},Tle={type:Object},Ale=fK({class:String,columns:Sle,columnsStyles:{type:Object,required:!0},depth:Number,expandColumnKey:String,estimatedRowHeight:{...Xte.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:Function},onRowHover:{type:Function},onRowHeightChange:{type:Function},rowData:{type:Object,required:!0},rowEventHandlers:{type:Object},rowIndex:{type:Number,required:!0},rowKey:zle,style:{type:Object}}),Lle={type:Number,required:!0},Ile=fK({class:String,columns:Sle,fixedHeaderData:{type:Array},headerData:{type:Array,required:!0},headerHeight:{type:[Number,Array],default:50},rowWidth:Lle,rowHeight:{type:Number,default:50},height:Lle,width:Lle}),Rle=fK({columns:Sle,data:Ele,fixedData:_le,estimatedRowHeight:Ale.estimatedRowHeight,width:Mle,height:Mle,headerWidth:Mle,headerHeight:Ile.headerHeight,bodyWidth:Mle,rowHeight:Mle,cache:qte.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Xte.scrollbarAlwaysOn,scrollbarStartGap:Xte.scrollbarStartGap,scrollbarEndGap:Xte.scrollbarEndGap,class:kle,style:Tle,containerStyle:Tle,getRowHeight:{type:Function,required:!0},rowKey:Ale.rowKey,onRowsRendered:{type:Function},onScroll:{type:Function}}),Ple=fK({cache:Rle.cache,estimatedRowHeight:Ale.estimatedRowHeight,rowKey:zle,headerClass:{type:[String,Function]},headerProps:{type:[Object,Function]},headerCellProps:{type:[Object,Function]},headerHeight:Ile.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:[String,Function]},rowProps:{type:[Object,Function]},rowHeight:{type:Number,default:50},cellProps:{type:[Object,Function]},columns:Sle,data:Ele,dataGetter:{type:Function},fixedData:_le,expandColumnKey:Ale.expandColumnKey,expandedRowKeys:Ole,defaultExpandedRowKeys:Ole,class:kle,fixed:Boolean,style:{type:Object},width:Mle,height:Mle,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Xte.hScrollbarSize,vScrollbarSize:Xte.vScrollbarSize,scrollbarAlwaysOn:Qte.alwaysOn,sortBy:{type:Object,default:()=>({})},sortState:{type:Object,default:void 0},onColumnSort:{type:Function},onExpandedRowsChange:{type:Function},onEndReached:{type:Function},onRowExpand:Ale.onRowExpand,onScroll:Rle.onScroll,onRowsRendered:Rle.onRowsRendered,rowEventHandlers:Ale.rowEventHandlers}),Nle=(e,{slots:t})=>{var n;const{cellData:r,style:o}=e,l=(null==(n=null==r?void 0:r.toString)?void 0:n.call(r))||"";return Ol("div",{class:e.class,title:l,style:o},[t.default?t.default(e):l])};Nle.displayName="ElTableV2Cell",Nle.inheritAttrs=!1;const jle=(e,{slots:t})=>{var n,r;return t.default?t.default(e):Ol("div",{class:e.class,title:null==(n=e.column)?void 0:n.title},[null==(r=e.column)?void 0:r.title])};jle.displayName="ElTableV2HeaderCell",jle.inheritAttrs=!1;const Vle=wr({name:"ElTableV2HeaderRow",props:fK({class:String,columns:Sle,columnsStyles:{type:Object,required:!0},headerIndex:Number,style:{type:Object}}),setup:(e,{slots:t})=>()=>{const{columns:n,columnsStyles:r,headerIndex:o,style:l}=e;let a=n.map(((e,l)=>t.cell({columns:n,column:e,columnIndex:l,headerIndex:o,style:r[e.key]})));return t.header&&(a=t.header({cells:a.map((e=>p(e)&&1===e.length?e[0]:e)),columns:n,headerIndex:o})),Ol("div",{class:e.class,style:l,role:"row"},[a])}}),Ble=wr({name:"ElTableV2Header",props:Ile,setup(e,{slots:t,expose:n}){const r=tq("table-v2"),o=Wt(),l=oa((()=>ble({width:e.width,height:e.height}))),a=oa((()=>ble({width:e.rowWidth,height:e.height}))),i=oa((()=>Kw(Gt(e.headerHeight)))),s=()=>{const n=r.e("fixed-header-row"),{columns:o,fixedHeaderData:l,rowHeight:a}=e;return null==l?void 0:l.map(((e,r)=>{var l;const i=ble({height:a,width:"100%"});return null==(l=t.fixed)?void 0:l.call(t,{class:n,columns:o,rowData:e,rowIndex:-(r+1),style:i})}))},u=()=>{const n=r.e("dynamic-header-row"),{columns:o}=e;return Gt(i).map(((e,r)=>{var l;const a=ble({width:"100%",height:e});return null==(l=t.dynamic)?void 0:l.call(t,{class:n,columns:o,headerIndex:r,style:a})}))};return n({scrollToLeft:e=>{const t=Gt(o);wn((()=>{(null==t?void 0:t.scroll)&&t.scroll({left:e})}))}}),()=>{if(!(e.height<=0))return Ol("div",{ref:o,class:e.class,style:Gt(l),role:"rowgroup"},[Ol("div",{style:Gt(a),class:r.e("header")},[u(),s()])])}}}),Hle=wr({name:"ElTableV2TableRow",props:Ale,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:o,isScrolling:l,measurable:a,measured:i,rowRef:s,onExpand:u}=(e=>{const{isScrolling:t}=zo(Cle),n=Wt(!1),r=Wt(),o=oa((()=>Mz(e.estimatedRowHeight)&&e.rowIndex>=0)),l=oa((()=>{const{rowData:t,rowIndex:n,rowKey:r,onRowHover:o}=e,l=e.rowEventHandlers||{},a={};return Object.entries(l).forEach((([e,o])=>{g(o)&&(a[e]=e=>{o({event:e,rowData:t,rowIndex:n,rowKey:r})})})),o&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach((({name:e,hovered:l})=>{const i=a[e];a[e]=e=>{o({event:e,hovered:l,rowData:t,rowIndex:n,rowKey:r}),null==i||i(e)}})),a}));return Nr((()=>{Gt(o)&&((t=!1)=>{const o=Gt(r);if(!o)return;const{columns:l,onRowHeightChange:a,rowKey:i,rowIndex:s,style:u}=e,{height:c}=o.getBoundingClientRect();n.value=!0,wn((()=>{if(t||c!==Number.parseInt(u.height)){const e=l[0],t=(null==e?void 0:e.placeholderSign)===hle;null==a||a({rowKey:i,height:c,rowIndex:s},e&&!t&&e.fixed)}}))})(!0)})),{isScrolling:t,measurable:o,measured:n,rowRef:r,eventHandlers:l,onExpand:t=>{const{onRowExpand:n,rowData:r,rowIndex:o,rowKey:l}=e;null==n||n({expanded:t,rowData:r,rowIndex:o,rowKey:l})}}})(e);return t({onExpand:u}),()=>{const{columns:t,columnsStyles:c,expandColumnKey:d,depth:f,rowData:v,rowIndex:h,style:m}=e;let g=t.map(((e,r)=>{const o=p(v.children)&&v.children.length>0&&e.key===d;return n.cell({column:e,columns:t,columnIndex:r,depth:f,style:c[e.key],rowData:v,rowIndex:h,isScrolling:Gt(l),expandIconProps:o?{rowData:v,rowIndex:h,onExpand:u}:void 0})}));if(n.row&&(g=n.row({cells:g.map((e=>p(e)&&1===e.length?e[0]:e)),style:m,columns:t,depth:f,rowData:v,rowIndex:h,isScrolling:Gt(l)})),Gt(a)){const{height:t,...n}=m||{},l=Gt(i);return Ol("div",Nl({ref:s,class:e.class,style:l?m:n,role:"row"},r,Gt(o)),[g])}return Ol("div",Nl(r,{ref:s,class:e.class,style:m,role:"row"},Gt(o)),[g])}}}),Dle=e=>{const{sortOrder:t}=e;return Ol(ZG,{size:14,class:e.class},{default:()=>[t===dle.ASC?Ol(xF,null,null):Ol(yF,null,null)]})},$le=e=>{const{expanded:t,expandable:n,onExpand:r,style:o,size:l}=e,a={onClick:n?()=>r(!t):void 0,class:e.class};return Ol(ZG,Nl(a,{size:l,style:o}),{default:()=>[Ol(ST,null,null)]})},Fle=wr({name:"ElTableV2Grid",props:Rle,setup(e,{slots:t,expose:n}){const{ns:r}=zo(Cle),{bodyRef:o,fixedRowHeight:l,gridHeight:a,hasHeader:i,headerRef:s,headerHeight:u,totalHeight:c,forceUpdate:d,itemKey:p,onItemRendered:f,resetAfterRowIndex:v,scrollTo:h,scrollToTop:m,scrollToRow:g}=(e=>{const t=Wt(),n=Wt(),r=oa((()=>{const{data:t,rowHeight:n,estimatedRowHeight:r}=e;if(!r)return t.length*n})),o=oa((()=>{const{fixedData:t,rowHeight:n}=e;return((null==t?void 0:t.length)||0)*n})),l=oa((()=>gle(e.headerHeight))),a=oa((()=>{const{height:t}=e;return Math.max(0,t-Gt(l)-Gt(o))})),i=oa((()=>Gt(l)+Gt(o)>0));return{bodyRef:n,forceUpdate:function(){var e,r;null==(e=Gt(n))||e.$forceUpdate(),null==(r=Gt(t))||r.$forceUpdate()},fixedRowHeight:o,gridHeight:a,hasHeader:i,headerHeight:l,headerRef:t,totalHeight:r,itemKey:({data:t,rowIndex:n})=>t[n][e.rowKey],onItemRendered:function({rowCacheStart:t,rowCacheEnd:n,rowVisibleStart:r,rowVisibleEnd:o}){var l;null==(l=e.onRowsRendered)||l.call(e,{rowCacheStart:t,rowCacheEnd:n,rowVisibleStart:r,rowVisibleEnd:o})},resetAfterRowIndex:function(e,t){var r;null==(r=n.value)||r.resetAfterRowIndex(e,t)},scrollTo:function(e,r){const o=Gt(t),l=Gt(n);o&&l&&(w(e)?(o.scrollToLeft(e.scrollLeft),l.scrollTo(e)):(o.scrollToLeft(e),l.scrollTo({scrollLeft:e,scrollTop:r})))},scrollToTop:function(e){var t;null==(t=Gt(n))||t.scrollTo({scrollTop:e})},scrollToRow:function(e,t){var r;null==(r=Gt(n))||r.scrollToItem(e,1,t)}}})(e);n({forceUpdate:d,totalHeight:c,scrollTo:h,scrollToTop:m,scrollToRow:g,resetAfterRowIndex:v});const y=()=>e.bodyWidth;return()=>{const{cache:n,columns:c,data:d,fixedData:v,useIsScrolling:h,scrollbarAlwaysOn:m,scrollbarEndGap:g,scrollbarStartGap:b,style:w,rowHeight:x,bodyWidth:C,estimatedRowHeight:k,headerWidth:S,height:_,width:E,getRowHeight:O,onScroll:M}=e,z=Mz(k),T=z?_ne:pne,A=Gt(u);return Ol("div",{role:"table",class:[r.e("table"),e.class],style:w},[Ol(T,{ref:o,data:d,useIsScrolling:h,itemKey:p,columnCache:0,columnWidth:z?y:C,totalColumn:1,totalRow:d.length,rowCache:n,rowHeight:z?O:x,width:E,height:Gt(a),class:r.e("body"),role:"rowgroup",scrollbarStartGap:b,scrollbarEndGap:g,scrollbarAlwaysOn:m,onScroll:M,onItemRendered:f,perfMode:!1},{default:e=>{var n;const r=d[e.rowIndex];return null==(n=t.row)?void 0:n.call(t,{...e,columns:c,rowData:r})}}),Gt(i)&&Ol(Ble,{ref:s,class:r.e("header-wrapper"),columns:c,headerData:d,headerHeight:e.headerHeight,fixedHeaderData:v,rowWidth:S,rowHeight:x,width:E,height:Math.min(A+Gt(l),_)},{dynamic:t.header,fixed:t.row})])}}}),Wle=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return Ol(Fle,Nl({ref:n},r),"function"==typeof(o=t)||"[object Object]"===Object.prototype.toString.call(o)&&!xl(o)?t:{default:()=>[t]});var o},Ule=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return Ol(Fle,Nl({ref:n},r),"function"==typeof(o=t)||"[object Object]"===Object.prototype.toString.call(o)&&!xl(o)?t:{default:()=>[t]});var o},Kle=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return Ol(Fle,Nl({ref:n},r),"function"==typeof(o=t)||"[object Object]"===Object.prototype.toString.call(o)&&!xl(o)?t:{default:()=>[t]});var o},qle=(e,{slots:t})=>{const{columns:n,columnsStyles:r,depthMap:o,expandColumnKey:l,expandedRowKeys:a,estimatedRowHeight:i,hasFixedColumns:s,hoveringRowKey:u,rowData:c,rowIndex:d,style:p,isScrolling:f,rowProps:v,rowClass:h,rowKey:m,rowEventHandlers:g,ns:y,onRowHovered:b,onRowExpanded:w}=e,x=yle(h,{columns:n,rowData:c,rowIndex:d},""),C=yle(v,{columns:n,rowData:c,rowIndex:d}),k=c[m],S=o[k]||0,_=Boolean(l),E=d<0,O={...C,columns:n,columnsStyles:r,class:[y.e("row"),x,{[y.e(`row-depth-${S}`)]:_&&d>=0,[y.is("expanded")]:_&&a.includes(k),[y.is("hovered")]:!f&&k===u,[y.is("fixed")]:!S&&E,[y.is("customized")]:Boolean(t.row)}],depth:S,expandColumnKey:l,estimatedRowHeight:E?void 0:i,isScrolling:f,rowIndex:d,rowData:c,rowKey:k,rowEventHandlers:g,style:p};return Ol(Hle,Nl(O,{onRowHover:s?b:void 0,onRowExpand:w}),"function"==typeof(M=t)||"[object Object]"===Object.prototype.toString.call(M)&&!xl(M)?t:{default:()=>[t]});var M},Yle=({columns:e,column:t,columnIndex:n,depth:r,expandIconProps:o,isScrolling:l,rowData:a,rowIndex:i,style:s,expandedRowKeys:u,ns:c,cellProps:d,expandColumnKey:p,indentSize:f,iconSize:v,rowKey:h},{slots:m})=>{const y=ble(s);if(t.placeholderSign===hle)return Ol("div",{class:c.em("row-cell","placeholder"),style:y},null);const{cellRenderer:b,dataKey:x,dataGetter:C}=t,k=wle(b)||m.default||(e=>Ol(Nle,e,null)),S=g(C)?C({columns:e,column:t,columnIndex:n,rowData:a,rowIndex:i}):yb(a,null!=x?x:""),_=yle(d,{cellData:S,columns:e,column:t,columnIndex:n,rowIndex:i,rowData:a}),E=k({class:c.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:S,isScrolling:l,rowData:a,rowIndex:i}),O=[c.e("row-cell"),t.class,t.align===ple.CENTER&&c.is("align-center"),t.align===ple.RIGHT&&c.is("align-right")],M=i>=0&&p&&t.key===p,z=i>=0&&u.includes(a[h]);let T;const A=`margin-inline-start: ${r*f}px;`;return M&&(T=w(o)?Ol($le,Nl(o,{class:[c.e("expand-icon"),c.is("expanded",z)],size:v,expanded:z,style:A,expandable:!0}),null):Ol("div",{style:[A,`width: ${v}px; height: ${v}px;`].join(" ")},null)),Ol("div",Nl({class:O,style:y},_,{role:"cell"}),[T,E])};Yle.inheritAttrs=!1;const Gle=({columns:e,columnsStyles:t,headerIndex:n,style:r,headerClass:o,headerProps:l,ns:a},{slots:i})=>{const s={columns:e,headerIndex:n},u=[a.e("header-row"),yle(o,s,""),{[a.is("customized")]:Boolean(i.header)}],c={...yle(l,s),columnsStyles:t,class:u,columns:e,headerIndex:n,style:r};return Ol(Vle,c,"function"==typeof(d=i)||"[object Object]"===Object.prototype.toString.call(d)&&!xl(d)?i:{default:()=>[i]});var d},Jle=(e,{slots:t})=>{const{column:n,ns:r,style:o,onColumnSorted:l}=e,a=ble(o);if(n.placeholderSign===hle)return Ol("div",{class:r.em("header-row-cell","placeholder"),style:a},null);const{headerCellRenderer:i,headerClass:s,sortable:u}=n,c={...e,class:r.e("header-cell-text")},d=(wle(i)||t.default||(e=>Ol(jle,e,null)))(c),{sortBy:p,sortState:f,headerCellProps:v}=e;let h,m;if(f){const e=f[n.key];h=Boolean(vle[e]),m=h?e:dle.ASC}else h=n.key===p.key,m=h?p.order:dle.ASC;const g=[r.e("header-cell"),yle(s,e,""),n.align===ple.CENTER&&r.is("align-center"),n.align===ple.RIGHT&&r.is("align-right"),u&&r.is("sortable")],y={...yle(v,e),onClick:n.sortable?l:void 0,class:g,style:a,"data-key":n.key};return Ol("div",Nl(y,{role:"columnheader"}),[d,u&&Ol(Dle,{class:[r.e("sort-icon"),h&&r.is("sorting")],sortOrder:m},null)])},Xle=(e,{slots:t})=>{var n;return Ol("div",{class:e.class,style:e.style},[null==(n=t.default)?void 0:n.call(t)])};Xle.displayName="ElTableV2Footer";const Qle=(e,{slots:t})=>Ol("div",{class:e.class,style:e.style},[t.default?t.default():Ol(L9,null,null)]);Qle.displayName="ElTableV2Empty";const Zle=(e,{slots:t})=>{var n;return Ol("div",{class:e.class,style:e.style},[null==(n=t.default)?void 0:n.call(t)])};function eae(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!xl(e)}Zle.displayName="ElTableV2Overlay";const tae=wr({name:"ElTableV2",props:Ple,setup(e,{slots:t,expose:n}){const r=tq("table-v2"),{columnsStyles:o,fixedColumnsOnLeft:l,fixedColumnsOnRight:a,mainColumns:i,mainTableHeight:s,fixedTableHeight:u,leftTableWidth:c,rightTableWidth:d,data:p,depthMap:f,expandedRowKeys:v,hasFixedColumns:h,hoveringRowKey:m,mainTableRef:g,leftTableRef:y,rightTableRef:b,isDynamic:w,isResetting:x,isScrolling:C,bodyWidth:k,emptyStyle:S,rootStyle:_,headerWidth:E,footerHeight:O,showEmpty:M,scrollTo:z,scrollToLeft:T,scrollToTop:A,scrollToRow:L,getRowHeight:I,onColumnSorted:R,onRowHeightChange:P,onRowHovered:N,onRowExpanded:j,onRowsRendered:V,onScroll:B,onVerticalScroll:H}=xle(e);return n({scrollTo:z,scrollToLeft:T,scrollToTop:A,scrollToRow:L}),Mo(Cle,{ns:r,isResetting:x,hoveringRowKey:m,isScrolling:C}),()=>{const{cache:n,cellProps:x,estimatedRowHeight:C,expandColumnKey:z,fixedData:T,headerHeight:A,headerClass:L,headerProps:D,headerCellProps:$,sortBy:F,sortState:W,rowHeight:U,rowClass:K,rowEventHandlers:q,rowKey:Y,rowProps:G,scrollbarAlwaysOn:J,indentSize:X,iconSize:Q,useIsScrolling:Z,vScrollbarSize:ee,width:te}=e,ne=Gt(p),re={cache:n,class:r.e("main"),columns:Gt(i),data:ne,fixedData:T,estimatedRowHeight:C,bodyWidth:Gt(k),headerHeight:A,headerWidth:Gt(E),height:Gt(s),mainTableRef:g,rowKey:Y,rowHeight:U,scrollbarAlwaysOn:J,scrollbarStartGap:2,scrollbarEndGap:ee,useIsScrolling:Z,width:te,getRowHeight:I,onRowsRendered:V,onScroll:B},oe=Gt(c),le=Gt(u),ae={cache:n,class:r.e("left"),columns:Gt(l),data:ne,estimatedRowHeight:C,leftTableRef:y,rowHeight:U,bodyWidth:oe,headerWidth:oe,headerHeight:A,height:le,rowKey:Y,scrollbarAlwaysOn:J,scrollbarStartGap:2,scrollbarEndGap:ee,useIsScrolling:Z,width:oe,getRowHeight:I,onScroll:H},ie=Gt(d)+ee,se={cache:n,class:r.e("right"),columns:Gt(a),data:ne,estimatedRowHeight:C,rightTableRef:b,rowHeight:U,bodyWidth:ie,headerWidth:ie,headerHeight:A,height:le,rowKey:Y,scrollbarAlwaysOn:J,scrollbarStartGap:2,scrollbarEndGap:ee,width:ie,style:`--${Gt(r.namespace)}-table-scrollbar-size: ${ee}px`,useIsScrolling:Z,getRowHeight:I,onScroll:H},ue=Gt(o),ce={ns:r,depthMap:Gt(f),columnsStyles:ue,expandColumnKey:z,expandedRowKeys:Gt(v),estimatedRowHeight:C,hasFixedColumns:Gt(h),hoveringRowKey:Gt(m),rowProps:G,rowClass:K,rowKey:Y,rowEventHandlers:q,onRowHovered:N,onRowExpanded:j,onRowHeightChange:P},de={cellProps:x,expandColumnKey:z,indentSize:X,iconSize:Q,rowKey:Y,expandedRowKeys:Gt(v),ns:r},pe={ns:r,headerClass:L,headerProps:D,columnsStyles:ue},fe={ns:r,sortBy:F,sortState:W,headerCellProps:$,onColumnSorted:R},ve={row:e=>Ol(qle,Nl(e,ce),{row:t.row,cell:e=>{let n;return t.cell?Ol(Yle,Nl(e,de,{style:ue[e.column.key]}),eae(n=t.cell(e))?n:{default:()=>[n]}):Ol(Yle,Nl(e,de,{style:ue[e.column.key]}),null)}}),header:e=>Ol(Gle,Nl(e,pe),{header:t.header,cell:e=>{let n;return t["header-cell"]?Ol(Jle,Nl(e,fe,{style:ue[e.column.key]}),eae(n=t["header-cell"](e))?n:{default:()=>[n]}):Ol(Jle,Nl(e,fe,{style:ue[e.column.key]}),null)}})},he=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:Gt(w)}],me={class:r.e("footer"),style:Gt(O)};return Ol("div",{class:he,style:Gt(_)},[Ol(Wle,re,eae(ve)?ve:{default:()=>[ve]}),Ol(Ule,ae,eae(ve)?ve:{default:()=>[ve]}),Ol(Kle,se,eae(ve)?ve:{default:()=>[ve]}),t.footer&&Ol(Xle,me,{default:t.footer}),Gt(M)&&Ol(Qle,{class:r.e("empty"),style:Gt(S)},{default:t.empty}),t.overlay&&Ol(Zle,{class:r.e("overlay")},{default:t.overlay})])}}}),nae=wr({name:"ElAutoResizer",props:fK({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:Function}}),setup(e,{slots:t}){const n=tq("auto-resizer"),{height:r,width:o,sizer:l}=(e=>{const t=Wt(),n=Wt(0),r=Wt(0);let o;return Nr((()=>{o=hp(t,(([e])=>{const{width:t,height:o}=e.contentRect,{paddingLeft:l,paddingRight:a,paddingTop:i,paddingBottom:s}=getComputedStyle(e.target),u=Number.parseInt(l)||0,c=Number.parseInt(a)||0,d=Number.parseInt(i)||0,p=Number.parseInt(s)||0;n.value=t-u-c,r.value=o-d-p})).stop})),Br((()=>{null==o||o()})),nr([n,r],(([t,n])=>{var r;null==(r=e.onResize)||r.call(e,{width:t,height:n})})),{sizer:t,width:n,height:r}})(e),a={width:"100%",height:"100%"};return()=>{var e;return Ol("div",{ref:l,class:n.b(),style:a},[null==(e=t.default)?void 0:e.call(t,{height:r.value,width:o.value})])}}}),rae=bK(tae),oae=bK(nae),lae=Symbol("tabsRootContextKey"),aae=fK({tabs:{type:Array,default:()=>[]}}),iae="ElTabBar",sae=wr({name:iae}),uae=wr({...sae,props:aae,setup(e,{expose:t}){const n=e,r=$l(),o=zo(lae);o||Nz(iae,"");const l=tq("tabs"),a=Wt(),i=Wt(),s=()=>i.value=(()=>{let e=0,t=0;const l=["top","bottom"].includes(o.props.tabPosition)?"width":"height",a="width"===l?"x":"y",i="x"===a?"left":"top";return n.tabs.every((o=>{var a,s;const u=null==(s=null==(a=r.parent)?void 0:a.refs)?void 0:s[`tab-${o.uid}`];if(!u)return!1;if(!o.active)return!0;e=u[`offset${Lz(i)}`],t=u[`client${Lz(l)}`];const c=window.getComputedStyle(u);return"width"===l&&(n.tabs.length>1&&(t-=Number.parseFloat(c.paddingLeft)+Number.parseFloat(c.paddingRight)),e+=Number.parseFloat(c.paddingLeft)),!1})),{[l]:`${t}px`,transform:`translate${Lz(a)}(${e}px)`}})();return nr((()=>n.tabs),(async()=>{await wn(),s()}),{immediate:!0}),hp(a,(()=>s())),t({ref:a,update:s}),(e,t)=>(vl(),bl("div",{ref_key:"barRef",ref:a,class:X([Gt(l).e("active-bar"),Gt(l).is(Gt(o).props.tabPosition)]),style:K(i.value)},null,6))}});var cae=UG(uae,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const dae=fK({panes:{type:Array,default:()=>[]},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),pae="ElTabNav",fae=wr({name:pae,props:dae,emits:{tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},setup(e,{expose:t,emit:n}){const r=$l(),o=zo(lae);o||Nz(pae,"");const l=tq("tabs"),a=rp(),i=ih(),s=Wt(),u=Wt(),c=Wt(),d=Wt(),p=Wt(!1),f=Wt(0),v=Wt(!1),h=Wt(!0),m=oa((()=>["top","bottom"].includes(o.props.tabPosition)?"width":"height")),g=oa((()=>({transform:`translate${"width"===m.value?"X":"Y"}(-${f.value}px)`}))),y=()=>{if(!s.value)return;const e=s.value[`offset${Lz(m.value)}`],t=f.value;if(!t)return;const n=t>e?t-e:0;f.value=n},b=()=>{if(!s.value||!u.value)return;const e=u.value[`offset${Lz(m.value)}`],t=s.value[`offset${Lz(m.value)}`],n=f.value;if(e-n<=t)return;const r=e-n>2*t?n+t:e-t;f.value=r},w=async()=>{const e=u.value;if(!(p.value&&c.value&&s.value&&e))return;await wn();const t=c.value.querySelector(".is-active");if(!t)return;const n=s.value,r=["top","bottom"].includes(o.props.tabPosition),l=t.getBoundingClientRect(),a=n.getBoundingClientRect(),i=r?e.offsetWidth-a.width:e.offsetHeight-a.height,d=f.value;let v=d;r?(l.lefta.right&&(v=d+l.right-a.right)):(l.topa.bottom&&(v=d+(l.bottom-a.bottom))),v=Math.max(v,0),f.value=Math.min(v,i)},x=()=>{var t;if(!u.value||!s.value)return;e.stretch&&(null==(t=d.value)||t.update());const n=u.value[`offset${Lz(m.value)}`],r=s.value[`offset${Lz(m.value)}`],o=f.value;r0&&(f.value=0))},C=e=>{const t=e.code,{up:n,down:r,left:o,right:l}=kK;if(![n,r,o,l].includes(t))return;const a=Array.from(e.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),i=a.indexOf(e.target);let s;s=t===o||t===n?0===i?a.length-1:i-1:i{h.value&&(v.value=!0)},S=()=>v.value=!1;return nr(a,(e=>{"hidden"===e?h.value=!1:"visible"===e&&setTimeout((()=>h.value=!0),50)})),nr(i,(e=>{e?setTimeout((()=>h.value=!0),50):h.value=!1})),hp(c,x),Nr((()=>setTimeout((()=>w()),0))),Vr((()=>x())),t({scrollToActiveTab:w,removeFocus:S}),nr((()=>e.panes),(()=>r.update()),{flush:"post",deep:!0}),()=>{const t=p.value?[Ol("span",{class:[l.e("nav-prev"),l.is("disabled",!p.value.prev)],onClick:y},[Ol(ZG,null,{default:()=>[Ol(yT,null,null)]})]),Ol("span",{class:[l.e("nav-next"),l.is("disabled",!p.value.next)],onClick:b},[Ol(ZG,null,{default:()=>[Ol(ST,null,null)]})])]:null,r=e.panes.map(((t,r)=>{var a,i,s,u;const c=t.uid,d=t.props.disabled,p=null!=(i=null!=(a=t.props.name)?a:t.index)?i:`${r}`,f=!d&&(t.isClosable||e.editable);t.index=`${r}`;const h=f?Ol(ZG,{class:"is-icon-close",onClick:e=>n("tabRemove",t,e)},{default:()=>[Ol(eI,null,null)]}):null,m=(null==(u=(s=t.slots).label)?void 0:u.call(s))||t.props.label,g=!d&&t.active?0:-1;return Ol("div",{ref:`tab-${c}`,class:[l.e("item"),l.is(o.props.tabPosition),l.is("active",t.active),l.is("disabled",d),l.is("closable",f),l.is("focus",v.value)],id:`tab-${p}`,key:`tab-${c}`,"aria-controls":`pane-${p}`,role:"tab","aria-selected":t.active,tabindex:g,onFocus:()=>k(),onBlur:()=>S(),onClick:e=>{S(),n("tabClick",t,p,e)},onKeydown:e=>{!f||e.code!==kK.delete&&e.code!==kK.backspace||n("tabRemove",t,e)}},[m,h])}));return Ol("div",{ref:c,class:[l.e("nav-wrap"),l.is("scrollable",!!p.value),l.is(o.props.tabPosition)]},[t,Ol("div",{class:l.e("nav-scroll"),ref:s},[Ol("div",{class:[l.e("nav"),l.is(o.props.tabPosition),l.is("stretch",e.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:u,style:g.value,role:"tablist",onKeydown:C},[e.type?null:Ol(cae,{ref:d,tabs:[...e.panes]},null),r])])])}}}),vae=fK({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Function,default:()=>!0},stretch:Boolean}),hae=e=>y(e)||Mz(e);var mae=wr({name:"ElTabs",props:vae,emits:{[_K]:e=>hae(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>hae(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>hae(e),tabAdd:()=>!0},setup(e,{emit:t,slots:n,expose:r}){var o,l;const a=tq("tabs"),{children:i,addChild:s,removeChild:u}=AG($l(),"ElTabPane"),c=Wt(),d=Wt(null!=(l=null!=(o=e.modelValue)?o:e.activeName)?l:"0"),p=async n=>{var r,o,l,a;if(d.value!==n&&!Ez(n))try{!1!==await(null==(r=e.beforeLeave)?void 0:r.call(e,n,d.value))&&(a=n,d.value=a,t(_K,a),t("tabChange",a),null==(l=null==(o=c.value)?void 0:o.removeFocus)||l.call(o))}catch(a){}},f=(e,n,r)=>{e.props.disabled||(p(n),t("tabClick",e,r))},v=(e,n)=>{e.props.disabled||Ez(e.props.name)||(n.stopPropagation(),t("edit",e.props.name,"remove"),t("tabRemove",e.props.name))},h=()=>{t("edit",void 0,"add"),t("tabAdd")};return WK({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},oa((()=>!!e.activeName))),nr((()=>e.activeName),(e=>p(e))),nr((()=>e.modelValue),(e=>p(e))),nr(d,(async()=>{var e;await wn(),null==(e=c.value)||e.scrollToActiveTab()})),Mo(lae,{props:e,currentName:d,registerPane:s,unregisterPane:u}),r({currentName:d}),()=>{const t=e.editable||e.addable?Ol("span",{class:a.e("new-tab"),tabindex:"0",onClick:h,onKeydown:e=>{e.code===kK.enter&&h()}},[Ol(ZG,{class:a.is("icon-plus")},{default:()=>[Ol(rD,null,null)]})]):null,r=Ol("div",{class:[a.e("header"),a.is(e.tabPosition)]},[t,Ol(fae,{ref:c,currentName:d.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:f,onTabRemove:v},null)]),o=Ol("div",{class:a.e("content")},[eo(n,"default")]);return Ol("div",{class:[a.b(),a.m(e.tabPosition),{[a.m("card")]:"card"===e.type,[a.m("border-card")]:"border-card"===e.type}]},[..."bottom"!==e.tabPosition?[r,o]:[o,r]])}}});const gae=fK({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),yae=["id","aria-hidden","aria-labelledby"],bae="ElTabPane",wae=wr({name:bae}),xae=wr({...wae,props:gae,setup(e){const t=e,n=$l(),r=so(),o=zo(lae);o||Nz(bae,"usage: ");const l=tq("tab-pane"),a=Wt(),i=oa((()=>t.closable||o.props.closable)),s=Ji((()=>{var e;return o.currentName.value===(null!=(e=t.name)?e:a.value)})),u=Wt(s.value),c=oa((()=>{var e;return null!=(e=t.name)?e:a.value})),d=Ji((()=>!t.lazy||u.value||s.value));nr(s,(e=>{e&&(u.value=!0)}));const p=zt({uid:n.uid,slots:r,props:t,paneName:c,active:s,index:a,isClosable:i});return Nr((()=>{o.registerPane(p)})),Hr((()=>{o.unregisterPane(p.uid)})),(e,t)=>Gt(d)?ir((vl(),bl("div",{key:0,id:`pane-${Gt(c)}`,class:X(Gt(l).b()),role:"tabpanel","aria-hidden":!Gt(s),"aria-labelledby":`tab-${Gt(c)}`},[eo(e.$slots,"default")],10,yae)),[[wi,Gt(s)]]):Ll("v-if",!0)}});var Cae=UG(xae,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const kae=bK(mae,{TabPane:Cae}),Sae=xK(Cae),_ae=fK({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:zK,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),Eae=wr({name:"ElText"}),Oae=bK(UG(wr({...Eae,props:_ae,setup(e){const t=e,n=iJ(),r=tq("text"),o=oa((()=>[r.b(),r.m(t.type),r.m(n.value),r.is("truncated",t.truncated)]));return(e,t)=>(vl(),wl(Yr(e.tag),{class:X(Gt(o))},{default:Bn((()=>[eo(e.$slots,"default")])),_:3},8,["class"]))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]])),Mae=fK({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:LG,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:[String,Object],default:()=>YL},clearIcon:{type:[String,Object],default:()=>BL}}),zae=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),o=e.toUpperCase();return o.includes("AM")&&12===n?n=0:o.includes("PM")&&12!==n&&(n+=12),{hours:n,minutes:r}}return null},Tae=(e,t)=>{const n=zae(e);if(!n)return-1;const r=zae(t);if(!r)return-1;const o=n.minutes+60*n.hours,l=r.minutes+60*r.hours;return o===l?0:o>l?1:-1},Aae=e=>`${e}`.padStart(2,"0"),Lae=e=>`${Aae(e.hours)}:${Aae(e.minutes)}`,Iae=(e,t)=>{const n=zae(e);if(!n)return"";const r=zae(t);if(!r)return"";const o={hours:n.hours,minutes:n.minutes};return o.minutes+=r.minutes,o.hours+=r.hours,o.hours+=Math.floor(o.minutes/60),o.minutes=o.minutes%60,Lae(o)},Rae=wr({name:"ElTimeSelect"}),Pae=wr({...Rae,props:Mae,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const n=e;r0.extend(l0);const{Option:r}=iee,o=tq("input"),l=Wt(),a=sJ(),i=oa((()=>n.modelValue)),s=oa((()=>{const e=zae(n.start);return e?Lae(e):null})),u=oa((()=>{const e=zae(n.end);return e?Lae(e):null})),c=oa((()=>{const e=zae(n.step);return e?Lae(e):null})),d=oa((()=>{const e=zae(n.minTime||"");return e?Lae(e):null})),p=oa((()=>{const e=zae(n.maxTime||"");return e?Lae(e):null})),f=oa((()=>{const e=[];if(n.start&&n.end&&n.step){let t,r=s.value;for(;r&&u.value&&Tae(r,u.value)<=0;)t=r0(r,"HH:mm").format(n.format),e.push({value:t,disabled:Tae(r,d.value||"-1:-1")<=0||Tae(r,p.value||"100:100")>=0}),r=Iae(r,c.value)}return e}));return t({blur:()=>{var e,t;null==(t=null==(e=l.value)?void 0:e.blur)||t.call(e)},focus:()=>{var e,t;null==(t=null==(e=l.value)?void 0:e.focus)||t.call(e)}}),(e,t)=>(vl(),wl(Gt(iee),{ref_key:"select",ref:l,"model-value":Gt(i),disabled:Gt(a),clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:modelValue",t)),onChange:t[1]||(t[1]=t=>e.$emit("change",t)),onBlur:t[2]||(t[2]=t=>e.$emit("blur",t)),onFocus:t[3]||(t[3]=t=>e.$emit("focus",t))},{prefix:Bn((()=>[e.prefixIcon?(vl(),wl(Gt(ZG),{key:0,class:X(Gt(o).e("prefix-icon"))},{default:Bn((()=>[(vl(),wl(Yr(e.prefixIcon)))])),_:1},8,["class"])):Ll("v-if",!0)])),default:Bn((()=>[(vl(!0),bl(sl,null,Qr(Gt(f),(e=>(vl(),wl(Gt(r),{key:e.value,label:e.value,value:e.value,disabled:e.disabled},null,8,["label","value","disabled"])))),128))])),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var Nae=UG(Pae,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);Nae.install=e=>{e.component(Nae.name,Nae)};const jae=Nae,Vae=wr({name:"ElTimeline",setup(e,{slots:t}){const n=tq("timeline");return Mo("timeline",t),()=>la("ul",{class:[n.b()]},[eo(t,"default")])}}),Bae=fK({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:vK},hollow:{type:Boolean,default:!1}}),Hae=wr({name:"ElTimelineItem"});var Dae=UG(wr({...Hae,props:Bae,setup(e){const t=e,n=tq("timeline-item"),r=oa((()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]));return(e,t)=>(vl(),bl("li",{class:X([Gt(n).b(),{[Gt(n).e("center")]:e.center}])},[El("div",{class:X(Gt(n).e("tail"))},null,2),e.$slots.dot?Ll("v-if",!0):(vl(),bl("div",{key:0,class:X(Gt(r)),style:K({backgroundColor:e.color})},[e.icon?(vl(),wl(Gt(ZG),{key:0,class:X(Gt(n).e("icon"))},{default:Bn((()=>[(vl(),wl(Yr(e.icon)))])),_:1},8,["class"])):Ll("v-if",!0)],6)),e.$slots.dot?(vl(),bl("div",{key:1,class:X(Gt(n).e("dot"))},[eo(e.$slots,"dot")],2)):Ll("v-if",!0),El("div",{class:X(Gt(n).e("wrapper"))},[e.hideTimestamp||"top"!==e.placement?Ll("v-if",!0):(vl(),bl("div",{key:0,class:X([Gt(n).e("timestamp"),Gt(n).is("top")])},ve(e.timestamp),3)),El("div",{class:X(Gt(n).e("content"))},[eo(e.$slots,"default")],2),e.hideTimestamp||"bottom"!==e.placement?Ll("v-if",!0):(vl(),bl("div",{key:1,class:X([Gt(n).e("timestamp"),Gt(n).is("bottom")])},ve(e.timestamp),3))],2)],2))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const $ae=bK(Vae,{TimelineItem:Dae}),Fae=xK(Dae),Wae=fK({nowrap:Boolean});var Uae=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(Uae||{});const Kae=Object.values(Uae),qae=fK({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:Object,default:null}}),Yae=fK({side:{type:String,values:Kae,required:!0}}),Gae=fK({ariaLabel:String,arrowPadding:{type:Number,default:5},effect:{type:String,default:""},contentClass:String,placement:{type:String,values:["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],default:"bottom"},reference:{type:Object,default:null},offset:{type:Number,default:8},strategy:{type:String,values:["absolute","fixed"],default:"absolute"},showArrow:{type:Boolean,default:!1}}),Jae=fK({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),Xae={type:Function},Qae=fK({onBlur:Xae,onClick:Xae,onFocus:Xae,onMouseDown:Xae,onMouseEnter:Xae,onMouseLeave:Xae}),Zae=fK({...Jae,...qae,...Qae,...Gae,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:Object,default:null},teleported:Boolean,to:{type:String,default:"body"}}),eie=Symbol("tooltipV2"),tie=Symbol("tooltipV2Content"),nie="tooltip_v2.open",rie=wr({name:"ElTooltipV2Root"}),oie=wr({...rie,props:Jae,setup(e,{expose:t}){const n=e,r=Wt(n.defaultOpen),o=Wt(null),l=oa({get:()=>q_(n.open)?r.value:n.open,set:e=>{var t;r.value=e,null==(t=n["onUpdate:open"])||t.call(n,e)}}),a=oa((()=>Mz(n.delayDuration)&&n.delayDuration>0)),{start:i,stop:s}=fu((()=>{l.value=!0}),oa((()=>n.delayDuration)),{immediate:!1}),u=tq("tooltip-v2"),c=MY(),d=()=>{s(),l.value=!0},p=d,f=()=>{s(),l.value=!1};return nr(l,(e=>{var t;e&&(document.dispatchEvent(new CustomEvent(nie)),p()),null==(t=n.onOpenChange)||t.call(n,e)})),Nr((()=>{document.addEventListener(nie,f)})),Br((()=>{s(),document.removeEventListener(nie,f)})),Mo(eie,{contentId:c,triggerRef:o,ns:u,onClose:f,onDelayOpen:()=>{Gt(a)?i():d()},onOpen:p}),t({onOpen:p,onClose:f}),(e,t)=>eo(e.$slots,"default",{open:Gt(l)})}});var lie=UG(oie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const aie=wr({name:"ElTooltipV2Arrow"}),iie=wr({...aie,props:{...qae,...Yae},setup(e){const t=e,{ns:n}=zo(eie),{arrowRef:r}=zo(tie),o=oa((()=>{const{style:e,width:r,height:o}=t,l=n.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${r}px`,[`--${l}-tooltip-v2-arrow-height`]:`${o}px`,[`--${l}-tooltip-v2-arrow-border-width`]:r/2+"px",[`--${l}-tooltip-v2-arrow-cover-width`]:r/2-1,...e||{}}}));return(e,t)=>(vl(),bl("span",{ref_key:"arrowRef",ref:r,style:K(Gt(o)),class:X(Gt(n).e("arrow"))},null,6))}});var sie=UG(iie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const uie=fK({style:{type:[String,Object,Array],default:()=>({})}}),cie=wr({name:"ElVisuallyHidden"});var die=UG(wr({...cie,props:uie,setup(e){const t=e,n=oa((()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]));return(e,t)=>(vl(),bl("span",Nl(e.$attrs,{style:Gt(n)}),[eo(e.$slots,"default")],16))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const pie=["data-side"],fie=wr({name:"ElTooltipV2Content"}),vie=wr({...fie,props:{...Gae,...Wae},setup(e){const t=e,{triggerRef:n,contentId:r}=zo(eie),o=Wt(t.placement),l=Wt(t.strategy),a=Wt(null),{referenceRef:i,contentRef:s,middlewareData:u,x:c,y:d,update:p}=TG({placement:o,strategy:l,middleware:oa((()=>{const e=[GY(t.offset)];return t.showArrow&&e.push((({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=Gt(e);return r?(e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:l,platform:a,elements:i}=t,{element:s,padding:u=0}=UY(e,t)||{};if(null==s)return{};const c="number"!=typeof(C=u)?(k=C,{top:0,right:0,bottom:0,left:0,...k}):{top:C,right:C,bottom:C,left:C},d={x:n,y:r},p=FY(o),f=DY(p),v=await a.getDimensions(s),h="y"===p,m=h?"top":"left",g=h?"bottom":"right",y=h?"clientHeight":"clientWidth",b=l.reference[f]+l.reference[p]-d[p]-l.floating[f],w=d[p]-l.reference[p],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s));var C,k;let S=x?x[y]:0;S&&await(null==a.isElement?void 0:a.isElement(x))||(S=i.floating[y]||l.floating[f]);const _=b/2-w/2,E=S/2-v[f]/2-1,O=qY(c[m],E),M=qY(c[g],E),z=O,T=S-v[f]-M,A=S/2-v[f]/2+_,L=function(e,t,n){return YY(e,qY(t,n))}(z,A,T),I=null!=HY(o)&&A!=L&&l.reference[f]/2-(Ao.value.split("-")[0])),m=oa((()=>({position:Gt(l),top:`${Gt(d)||0}px`,left:`${Gt(c)||0}px`,zIndex:f}))),g=oa((()=>{if(!t.showArrow)return{};const{arrow:e}=Gt(u);return{[`--${v.namespace.value}-tooltip-v2-arrow-x`]:`${null==e?void 0:e.x}px`||"",[`--${v.namespace.value}-tooltip-v2-arrow-y`]:`${null==e?void 0:e.y}px`||""}})),y=oa((()=>[v.e("content"),v.is("dark","dark"===t.effect),v.is(Gt(l)),t.contentClass]));return nr(a,(()=>p())),nr((()=>t.placement),(e=>o.value=e)),Nr((()=>{nr((()=>t.reference||n.value),(e=>{i.value=e||void 0}),{immediate:!0})})),Mo(tie,{arrowRef:a}),(e,t)=>(vl(),bl("div",{ref_key:"contentRef",ref:s,style:K(Gt(m)),"data-tooltip-v2-root":""},[e.nowrap?Ll("v-if",!0):(vl(),bl("div",{key:0,"data-side":Gt(h),class:X(Gt(y))},[eo(e.$slots,"default",{contentStyle:Gt(m),contentClass:Gt(y)}),Ol(Gt(die),{id:Gt(r),role:"tooltip"},{default:Bn((()=>[e.ariaLabel?(vl(),bl(sl,{key:0},[Tl(ve(e.ariaLabel),1)],64)):eo(e.$slots,"default",{key:1})])),_:3},8,["id"]),eo(e.$slots,"arrow",{style:K(Gt(g)),side:Gt(h)})],10,pie))],4))}});var hie=UG(vie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]),mie=wr({props:fK({setRef:{type:Function,required:!0},onlyChild:Boolean}),setup(e,{slots:t}){const n=Wt(),r=CK(n,(t=>{t?e.setRef(t.nextElementSibling):e.setRef(null)}));return()=>{var n;const[o]=(null==(n=t.default)?void 0:n.call(t))||[],l=e.onlyChild?(e=>{if(!p(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]})(o.children):o.children;return Ol(sl,{ref:r},[l])}}});const gie=wr({name:"ElTooltipV2Trigger"}),yie=wr({...gie,props:{...Wae,...Qae},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:o,triggerRef:l,contentId:a}=zo(eie);let i=!1;const s=e=>{l.value=e},u=()=>{i=!1},c=Hi(t.onMouseEnter,o),d=Hi(t.onMouseLeave,n),p=Hi(t.onMouseDown,(()=>{n(),i=!0,document.addEventListener("mouseup",u,{once:!0})})),f=Hi(t.onFocus,(()=>{i||r()})),v={blur:Hi(t.onBlur,n),click:Hi(t.onClick,(e=>{0===e.detail&&n()})),focus:f,mousedown:p,mouseenter:c,mouseleave:d},h=(e,t,n)=>{e&&Object.entries(t).forEach((([t,r])=>{e[n](t,r)}))};return nr(l,((e,t)=>{h(e,v,"addEventListener"),h(t,v,"removeEventListener"),e&&e.setAttribute("aria-describedby",a.value)})),Br((()=>{h(l.value,v,"removeEventListener"),document.removeEventListener("mouseup",u)})),(e,t)=>e.nowrap?(vl(),wl(Gt(mie),{key:0,"set-ref":s,"only-child":""},{default:Bn((()=>[eo(e.$slots,"default")])),_:3})):(vl(),bl("button",Nl({key:1,ref_key:"triggerRef",ref:l},e.$attrs),[eo(e.$slots,"default")],16))}});var bie=UG(yie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const wie=wr({name:"ElTooltipV2"}),xie=wr({...wie,props:Zae,setup(e){const t=en(e),n=zt(xO(t,Object.keys(qae))),r=zt(xO(t,Object.keys(Gae))),o=zt(xO(t,Object.keys(Jae))),l=zt(xO(t,Object.keys(Qae)));return(e,t)=>(vl(),wl(lie,Q(Ml(o)),{default:Bn((({open:t})=>[Ol(bie,Nl(l,{nowrap:""}),{default:Bn((()=>[eo(e.$slots,"trigger")])),_:3},16),(vl(),wl(al,{to:e.to,disabled:!e.teleported},[e.fullTransition?(vl(),wl(La,Q(Nl({key:0},e.transitionProps)),{default:Bn((()=>[e.alwaysOn||t?(vl(),wl(hie,Q(Nl({key:0},r)),{arrow:Bn((({style:t,side:r})=>[e.showArrow?(vl(),wl(sie,Nl({key:0},n,{style:t,side:r}),null,16,["style","side"])):Ll("v-if",!0)])),default:Bn((()=>[eo(e.$slots,"default")])),_:3},16)):Ll("v-if",!0)])),_:2},1040)):(vl(),bl(sl,{key:1},[e.alwaysOn||t?(vl(),wl(hie,Q(Nl({key:0},r)),{arrow:Bn((({style:t,side:r})=>[e.showArrow?(vl(),wl(sie,Nl({key:0},n,{style:t,side:r}),null,16,["style","side"])):Ll("v-if",!0)])),default:Bn((()=>[eo(e.$slots,"default")])),_:3},16)):Ll("v-if",!0)],64))],8,["to","disabled"]))])),_:3},16))}}),Cie=bK(UG(xie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]])),kie="left-check-change",Sie="right-check-change",_ie=fK({data:{type:Array,default:()=>[]},titles:{type:Array,default:()=>[]},buttonTexts:{type:Array,default:()=>[]},filterPlaceholder:String,filterMethod:{type:Function},leftDefaultChecked:{type:Array,default:()=>[]},rightDefaultChecked:{type:Array,default:()=>[]},renderContent:{type:Function},modelValue:{type:Array,default:()=>[]},format:{type:Object,default:()=>({})},filterable:Boolean,props:{type:Object,default:()=>({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),Eie=(e,t)=>[e,t].every(p)||p(e)&&q_(t),Oie={[EK]:(e,t,n)=>[e,n].every(p)&&["left","right"].includes(t),[_K]:e=>p(e),[kie]:Eie,[Sie]:Eie},Mie="checked-change",zie=fK({data:_ie.data,optionRender:{type:Function},placeholder:String,title:String,filterable:Boolean,format:_ie.format,filterMethod:_ie.filterMethod,defaultChecked:_ie.leftDefaultChecked,props:_ie.props}),Tie={[Mie]:Eie},Aie=e=>{const t={label:"label",key:"key",disabled:"disabled"};return oa((()=>({...t,...e.props})))},Lie=wr({name:"ElTransferPanel"}),Iie=wr({...Lie,props:zie,emits:Tie,setup(e,{expose:t,emit:n}){const r=e,o=so(),l=({option:e})=>e,{t:a}=JK(),i=tq("transfer"),s=zt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=Aie(r),{filteredData:c,checkedSummary:d,isIndeterminate:p,handleAllCheckedChange:f}=((e,t,n)=>{const r=Aie(e),o=oa((()=>e.data.filter((n=>g(e.filterMethod)?e.filterMethod(t.query,n):String(n[r.value.label]||n[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))))),l=oa((()=>o.value.filter((e=>!e[r.value.disabled])))),a=oa((()=>{const n=t.checked.length,r=e.data.length,{noChecked:o,hasChecked:l}=e.format;return o&&l?n>0?l.replace(/\${checked}/g,n.toString()).replace(/\${total}/g,r.toString()):o.replace(/\${total}/g,r.toString()):`${n}/${r}`})),i=oa((()=>{const e=t.checked.length;return e>0&&e{const e=l.value.map((e=>e[r.value.key]));t.allChecked=e.length>0&&e.every((e=>t.checked.includes(e)))};return nr((()=>t.checked),((e,r)=>{if(s(),t.checkChangeByUser){const t=e.concat(r).filter((t=>!e.includes(t)||!r.includes(t)));n(Mie,e,t)}else n(Mie,e),t.checkChangeByUser=!0})),nr(l,(()=>{s()})),nr((()=>e.data),(()=>{const e=[],n=o.value.map((e=>e[r.value.key]));t.checked.forEach((t=>{n.includes(t)&&e.push(t)})),t.checkChangeByUser=!1,t.checked=e})),nr((()=>e.defaultChecked),((e,n)=>{if(n&&e.length===n.length&&e.every((e=>n.includes(e))))return;const o=[],a=l.value.map((e=>e[r.value.key]));e.forEach((e=>{a.includes(e)&&o.push(e)})),t.checkChangeByUser=!1,t.checked=o}),{immediate:!0}),{filteredData:o,checkableData:l,checkedSummary:a,isIndeterminate:i,updateAllChecked:s,handleAllCheckedChange:e=>{t.checked=e?l.value.map((e=>e[r.value.key])):[]}}})(r,s,n),v=oa((()=>!zz(s.query)&&zz(c.value))),h=oa((()=>!zz(o.default()[0].children))),{checked:m,allChecked:y,query:b}=en(s);return t({query:b}),(e,t)=>(vl(),bl("div",{class:X(Gt(i).b("panel"))},[El("p",{class:X(Gt(i).be("panel","header"))},[Ol(Gt(_1),{modelValue:Gt(y),"onUpdate:modelValue":t[0]||(t[0]=e=>Ft(y)?y.value=e:null),indeterminate:Gt(p),"validate-event":!1,onChange:Gt(f)},{default:Bn((()=>[Tl(ve(e.title)+" ",1),El("span",null,ve(Gt(d)),1)])),_:1},8,["modelValue","indeterminate","onChange"])],2),El("div",{class:X([Gt(i).be("panel","body"),Gt(i).is("with-footer",Gt(h))])},[e.filterable?(vl(),wl(Gt(hX),{key:0,modelValue:Gt(b),"onUpdate:modelValue":t[1]||(t[1]=e=>Ft(b)?b.value=e:null),class:X(Gt(i).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":Gt(x$),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):Ll("v-if",!0),ir(Ol(Gt(O1),{modelValue:Gt(m),"onUpdate:modelValue":t[2]||(t[2]=e=>Ft(m)?m.value=e:null),"validate-event":!1,class:X([Gt(i).is("filterable",e.filterable),Gt(i).be("panel","list")])},{default:Bn((()=>[(vl(!0),bl(sl,null,Qr(Gt(c),(t=>(vl(),wl(Gt(_1),{key:t[Gt(u).key],class:X(Gt(i).be("panel","item")),label:t[Gt(u).key],disabled:t[Gt(u).disabled],"validate-event":!1},{default:Bn((()=>{var n;return[Ol(l,{option:null==(n=e.optionRender)?void 0:n.call(e,t)},null,8,["option"])]})),_:2},1032,["class","label","disabled"])))),128))])),_:1},8,["modelValue","class"]),[[wi,!Gt(v)&&!Gt(zz)(e.data)]]),ir(El("p",{class:X(Gt(i).be("panel","empty"))},ve(Gt(v)?Gt(a)("el.transfer.noMatch"):Gt(a)("el.transfer.noData")),3),[[wi,Gt(v)||Gt(zz)(e.data)]])],2),Gt(h)?(vl(),bl("p",{key:0,class:X(Gt(i).be("panel","footer"))},[eo(e.$slots,"default")],2)):Ll("v-if",!0)],2))}});var Rie=UG(Iie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const Pie={key:0},Nie={key:0},jie=wr({name:"ElTransfer"}),Vie=wr({...jie,props:_ie,emits:Oie,setup(e,{expose:t,emit:n}){const r=e,o=so(),{t:l}=JK(),a=tq("transfer"),{formItem:i}=uJ(),s=zt({leftChecked:[],rightChecked:[]}),u=Aie(r),{sourceData:c,targetData:d}=(e=>{const t=Aie(e),n=oa((()=>e.data.reduce(((e,n)=>(e[n[t.value.key]]=n)&&e),{})));return{sourceData:oa((()=>e.data.filter((n=>!e.modelValue.includes(n[t.value.key]))))),targetData:oa((()=>"original"===e.targetOrder?e.data.filter((n=>e.modelValue.includes(n[t.value.key]))):e.modelValue.reduce(((e,t)=>{const r=n.value[t];return r&&e.push(r),e}),[])))}})(r),{onSourceCheckedChange:p,onTargetCheckedChange:f}=(C=s,k=n,{onSourceCheckedChange:(e,t)=>{C.leftChecked=e,t&&k(kie,e,t)},onTargetCheckedChange:(e,t)=>{C.rightChecked=e,t&&k(Sie,e,t)}}),{addToLeft:v,addToRight:h}=((e,t,n)=>{const r=Aie(e),o=(e,t,r)=>{n(_K,e),n(EK,e,t,r)};return{addToLeft:()=>{const n=e.modelValue.slice();t.rightChecked.forEach((e=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)})),o(n,"left",t.rightChecked)},addToRight:()=>{let n=e.modelValue.slice();const l=e.data.filter((n=>{const o=n[r.value.key];return t.leftChecked.includes(o)&&!e.modelValue.includes(o)})).map((e=>e[r.value.key]));n="unshift"===e.targetOrder?l.concat(n):n.concat(l),"original"===e.targetOrder&&(n=e.data.filter((e=>n.includes(e[r.value.key]))).map((e=>e[r.value.key]))),o(n,"right",t.leftChecked)}}})(r,s,n),m=Wt(),g=Wt(),y=oa((()=>2===r.buttonTexts.length)),b=oa((()=>r.titles[0]||l("el.transfer.titles.0"))),w=oa((()=>r.titles[1]||l("el.transfer.titles.1"))),x=oa((()=>r.filterPlaceholder||l("el.transfer.filterPlaceholder")));var C,k;nr((()=>r.modelValue),(()=>{var e;r.validateEvent&&(null==(e=null==i?void 0:i.validate)||e.call(i,"change").catch((e=>{})))}));const S=oa((()=>e=>r.renderContent?r.renderContent(la,e):o.default?o.default({option:e}):la("span",e[u.value.label]||e[u.value.key])));return t({clearQuery:e=>{switch(e){case"left":m.value.query="";break;case"right":g.value.query=""}},leftPanel:m,rightPanel:g}),(e,t)=>(vl(),bl("div",{class:X(Gt(a).b())},[Ol(Rie,{ref_key:"leftPanel",ref:m,data:Gt(c),"option-render":Gt(S),placeholder:Gt(x),title:Gt(b),filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:r.props,onCheckedChange:Gt(p)},{default:Bn((()=>[eo(e.$slots,"left-footer")])),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),El("div",{class:X(Gt(a).e("buttons"))},[Ol(Gt(XZ),{type:"primary",class:X([Gt(a).e("button"),Gt(a).is("with-texts",Gt(y))]),disabled:Gt(zz)(s.rightChecked),onClick:Gt(v)},{default:Bn((()=>[Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(yT))])),_:1}),Gt(Ez)(e.buttonTexts[0])?Ll("v-if",!0):(vl(),bl("span",Pie,ve(e.buttonTexts[0]),1))])),_:1},8,["class","disabled","onClick"]),Ol(Gt(XZ),{type:"primary",class:X([Gt(a).e("button"),Gt(a).is("with-texts",Gt(y))]),disabled:Gt(zz)(s.leftChecked),onClick:Gt(h)},{default:Bn((()=>[Gt(Ez)(e.buttonTexts[1])?Ll("v-if",!0):(vl(),bl("span",Nie,ve(e.buttonTexts[1]),1)),Ol(Gt(ZG),null,{default:Bn((()=>[Ol(Gt(ST))])),_:1})])),_:1},8,["class","disabled","onClick"])],2),Ol(Rie,{ref_key:"rightPanel",ref:g,data:Gt(d),"option-render":Gt(S),placeholder:Gt(x),filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:Gt(w),"default-checked":e.rightDefaultChecked,props:r.props,onCheckedChange:Gt(f)},{default:Bn((()=>[eo(e.$slots,"right-footer")])),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}}),Bie=bK(UG(Vie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]])),Hie="$treeNodeId",Die=function(e,t){t&&!t[Hie]&&Object.defineProperty(t,Hie,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},$ie=function(e,t){return e?t[e]:t[Hie]},Fie=(e,t,n)=>{const r=e.value.currentNode;n();const o=e.value.currentNode;r!==o&&t("current-change",o?o.data:null,o)},Wie=e=>{let t=!0,n=!0,r=!0;for(let o=0,l=e.length;o0&&e.lazy&&e.defaultExpandAll&&this.expand(),Array.isArray(this.data)||Die(this,this.data),!this.data)return;const n=e.defaultExpandedKeys,r=e.key;r&&n&&n.includes(this.key)&&this.expand(null,e.autoExpandParent),r&&void 0!==e.currentNodeKey&&this.key===e.currentNodeKey&&(e.currentNode=this,e.currentNode.isCurrent=!0),e.lazy&&e._initDefaultCheckedNode(this),this.updateLeafState(),!this.parent||1!==this.level&&!0!==this.parent.expanded||(this.canFocus=!0)}setData(e){let t;Array.isArray(e)||Die(this,e),this.data=e,this.childNodes=[],t=0===this.level&&Array.isArray(this.data)?this.data:Kie(this,"children")||[];for(let n=0,r=t.length;n-1)return e.childNodes[t+1]}return null}get previousSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}contains(e,t=!0){return(this.childNodes||[]).some((n=>n===e||t&&n.contains(e)))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(t,n,r){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof e)){if(!r){const e=this.getChildren(!0);e.includes(t.data)||(void 0===n||n<0?e.push(t.data):e.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),(t=zt(new e(t)))instanceof e&&t.initialize()}t.level=this.level+1,void 0===n||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(e,t){let n;t&&(n=this.childNodes.indexOf(t)),this.insertChild(e,n)}insertAfter(e,t){let n;t&&(n=this.childNodes.indexOf(t),-1!==n&&(n+=1)),this.insertChild(e,n)}removeChild(e){const t=this.getChildren()||[],n=t.indexOf(e.data);n>-1&&t.splice(n,1);const r=this.childNodes.indexOf(e);r>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()}removeChildByData(e){let t=null;for(let n=0;n{if(t){let e=this.parent;for(;e.level>0;)e.expanded=!0,e=e.parent}this.expanded=!0,e&&e(),this.childNodes.forEach((e=>{e.canFocus=!0}))};this.shouldLoadData()?this.loadData((e=>{Array.isArray(e)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Uie(this),n())})):n()}doCreateChildren(e,t={}){e.forEach((e=>{this.insertChild(Object.assign({data:e},t),void 0,!0)}))}collapse(){this.expanded=!1,this.childNodes.forEach((e=>{e.canFocus=!1}))}shouldLoadData(){return!0===this.store.lazy&&this.store.load&&!this.loaded}updateLeafState(){if(!0===this.store.lazy&&!0!==this.loaded&&void 0!==this.isLeafByUser)return void(this.isLeaf=this.isLeafByUser);const e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}setChecked(e,t,n,r){if(this.indeterminate="half"===e,this.checked=!0===e,this.store.checkStrictly)return;if(!this.shouldLoadData()||this.store.checkDescendants){const{all:n,allWithoutDisable:o}=Wie(this.childNodes);this.isLeaf||n||!o||(this.checked=!1,e=!1);const l=()=>{if(t){const n=this.childNodes;for(let a=0,i=n.length;a{l(),Uie(this)}),{checked:!1!==e});l()}const o=this.parent;o&&0!==o.level&&(n||Uie(o))}getChildren(e=!1){if(0===this.level)return this.data;const t=this.data;if(!t)return null;const n=this.store.props;let r="children";return n&&(r=n.children||"children"),void 0===t[r]&&(t[r]=null),e&&!t[r]&&(t[r]=[]),t[r]}updateChildren(){const e=this.getChildren()||[],t=this.childNodes.map((e=>e.data)),n={},r=[];e.forEach(((e,o)=>{const l=e[Hie];l&&t.findIndex((e=>e[Hie]===l))>=0?n[l]={index:o,data:e}:r.push({index:o,data:e})})),this.store.lazy||t.forEach((e=>{n[e[Hie]]||this.removeChildByData(e)})),r.forEach((({index:e,data:t})=>{this.insertChild({data:t},e)})),this.updateLeafState()}loadData(e,t={}){if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(t).length)e&&e.call(this);else{this.loading=!0;const n=n=>{this.childNodes=[],this.doCreateChildren(n,t),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,n)};this.store.load(this,n)}}};class Gie{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const t in e)d(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){this.root=new Yie({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load?(0,this.load)(this.root,(e=>{this.root.doCreateChildren(e),this._initDefaultCheckedNodes()})):this._initDefaultCheckedNodes()}filter(e){const t=this.filterNodeMethod,n=this.lazy,r=function(o){const l=o.root?o.root.childNodes:o.childNodes;if(l.forEach((n=>{n.visible=t.call(n,e,n.data,n),r(n)})),!o.visible&&l.length){let e=!0;e=!l.some((e=>e.visible)),o.root?o.root.visible=!1===e:o.visible=!1===e}e&&(!o.visible||o.isLeaf||n||o.expand())};r(this)}setData(e){e!==this.root.data?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(e){if(e instanceof Yie)return e;const t=w(e)?$ie(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){const n=this.getNode(t);n.parent.insertBefore({data:e},n)}insertAfter(e,t){const n=this.getNode(t);n.parent.insertAfter({data:e},n)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const n=t?this.getNode(t):this.root;n&&n.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach((e=>{const n=t[e];n&&n.setChecked(!0,!this.checkStrictly)}))}_initDefaultCheckedNode(e){(this.defaultCheckedKeys||[]).includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;e&&e.data&&(t?void 0!==e.key&&(this.nodesMap[e.key]=e):this.nodesMap[e.id]=e)}deregisterNode(e){this.key&&e&&e.data&&(e.childNodes.forEach((e=>{this.deregisterNode(e)})),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const n=[],r=function(o){(o.root?o.root.childNodes:o.childNodes).forEach((o=>{(o.checked||t&&o.indeterminate)&&(!e||e&&o.isLeaf)&&n.push(o.data),r(o)}))};return r(this),n}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map((e=>(e||{})[this.key]))}getHalfCheckedNodes(){const e=[],t=function(n){(n.root?n.root.childNodes:n.childNodes).forEach((n=>{n.indeterminate&&e.push(n.data),t(n)}))};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map((e=>(e||{})[this.key]))}_getAllNodes(){const e=[],t=this.nodesMap;for(const n in t)d(t,n)&&e.push(t[n]);return e}updateChildren(e,t){const n=this.nodesMap[e];if(!n)return;const r=n.childNodes;for(let o=r.length-1;o>=0;o--){const e=r[o];this.remove(e.data)}for(let o=0,l=t.length;ot.level-e.level)),o=Object.create(null),l=Object.keys(n);r.forEach((e=>e.setChecked(!1,!1)));for(let a=0,i=r.length;a0;)o[s.data[e]]=!0,s=s.parent;if(n.isLeaf||this.checkStrictly)n.setChecked(!0,!1);else if(n.setChecked(!0,!0),t){n.setChecked(!1,!1);const e=function(t){t.childNodes.forEach((t=>{t.isLeaf||t.setChecked(!1,!1),e(t)}))};e(n)}}}setCheckedNodes(e,t=!1){const n=this.key,r={};e.forEach((e=>{r[(e||{})[n]]=!0})),this._setCheckedKeys(n,t,r)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const n=this.key,r={};e.forEach((e=>{r[e]=!0})),this._setCheckedKeys(n,t,r)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach((e=>{const t=this.getNode(e);t&&t.expand(null,this.autoExpandParent)}))}setChecked(e,t,n){const r=this.getNode(e);r&&r.setChecked(!!t,n)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){const n=e[this.key],r=this.nodesMap[n];this.setCurrentNode(r),t&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(e,t=!0){if(null==e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);const n=this.getNode(e);n&&(this.setCurrentNode(n),t&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}var Jie=UG(wr({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=tq("tree"),n=zo("NodeInstance"),r=zo("RootTree");return()=>{const o=e.node,{data:l,store:a}=o;return e.renderContent?e.renderContent(la,{_self:n,node:o,data:l,store:a}):r.ctx.slots.default?r.ctx.slots.default({node:o,data:l}):la("span",{class:t.be("node","label")},[o.label])}}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function Xie(e){const t=zo("TreeNodeMap",null),n={treeNodeExpand:t=>{e.node!==t&&e.node.collapse()},children:[]};return t&&t.children.push(n),Mo("TreeNodeMap",n),{broadcastExpanded:t=>{if(e.accordion)for(const e of n.children)e.treeNodeExpand(t)}}}const Qie=Symbol("dragEvents"),Zie=wr({name:"ElTreeNode",components:{ElCollapseTransition:Z4,ElCheckbox:_1,NodeContent:Jie,ElIcon:ZG,Loading:pV},props:{node:{type:Yie,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=tq("tree"),{broadcastExpanded:r}=Xie(e),o=zo("RootTree"),l=Wt(!1),a=Wt(!1),i=Wt(null),s=Wt(null),u=Wt(null),c=zo(Qie),d=$l();Mo("NodeInstance",d),e.node.expanded&&(l.value=!0,a.value=!0);const p=o.props.children||"children";nr((()=>{const t=e.node.data[p];return t&&[...t]}),(()=>{e.node.updateChildren()})),nr((()=>e.node.indeterminate),(t=>{f(e.node.checked,t)})),nr((()=>e.node.checked),(t=>{f(t,e.node.indeterminate)})),nr((()=>e.node.expanded),(e=>{wn((()=>l.value=e)),e&&(a.value=!0)}));const f=(t,n)=>{i.value===t&&s.value===n||o.ctx.emit("check-change",e.node.data,t,n),i.value=t,s.value=n},v=()=>{e.node.isLeaf||(l.value?(o.ctx.emit("node-collapse",e.node.data,e.node,d),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,d)))},h=(t,n)=>{e.node.setChecked(n.target.checked,!o.props.checkStrictly),wn((()=>{const t=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})}))};return{ns:n,node$:u,tree:o,expanded:l,childNodeRendered:a,oldChecked:i,oldIndeterminate:s,getNodeKey:e=>$ie(o.props.nodeKey,e.data),getNodeClass:t=>{const n=e.props.class;if(!n)return{};let r;if(g(n)){const{data:e}=t;r=n(e,t)}else r=n;return y(r)?{[r]:!0}:r},handleSelectChange:f,handleClick:t=>{Fie(o.store,o.ctx.emit,(()=>o.store.value.setCurrentNode(e.node))),o.currentNode.value=e.node,o.props.expandOnClickNode&&v(),o.props.checkOnClickNode&&!e.node.disabled&&h(0,{target:{checked:!e.node.checked}}),o.ctx.emit("node-click",e.node.data,e.node,d,t)},handleContextMenu:t=>{o.instance.vnode.props.onNodeContextmenu&&(t.stopPropagation(),t.preventDefault()),o.ctx.emit("node-contextmenu",t,e.node.data,e.node,d)},handleExpandIconClick:v,handleCheckChange:h,handleChildNodeExpand:(e,t,n)=>{r(t),o.ctx.emit("node-expand",e,t,n)},handleDragStart:t=>{o.props.draggable&&c.treeNodeDragStart({event:t,treeNode:e})},handleDragOver:t=>{t.preventDefault(),o.props.draggable&&c.treeNodeDragOver({event:t,treeNode:{$el:u.value,node:e.node}})},handleDrop:e=>{e.preventDefault()},handleDragEnd:e=>{o.props.draggable&&c.treeNodeDragEnd(e)},CaretRight:$A}}}),ese=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],tse=["aria-expanded"],nse=wr({name:"ElTree",components:{ElTreeNode:UG(Zie,[["render",function(e,t,n,r,o,l){const a=Kr("el-icon"),i=Kr("el-checkbox"),s=Kr("loading"),u=Kr("node-content"),c=Kr("el-tree-node"),d=Kr("el-collapse-transition");return ir((vl(),bl("div",{ref:"node$",class:X([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=gi(((...t)=>e.handleClick&&e.handleClick(...t)),["stop"])),onContextmenu:t[2]||(t[2]=(...t)=>e.handleContextMenu&&e.handleContextMenu(...t)),onDragstart:t[3]||(t[3]=gi(((...t)=>e.handleDragStart&&e.handleDragStart(...t)),["stop"])),onDragover:t[4]||(t[4]=gi(((...t)=>e.handleDragOver&&e.handleDragOver(...t)),["stop"])),onDragend:t[5]||(t[5]=gi(((...t)=>e.handleDragEnd&&e.handleDragEnd(...t)),["stop"])),onDrop:t[6]||(t[6]=gi(((...t)=>e.handleDrop&&e.handleDrop(...t)),["stop"]))},[El("div",{class:X(e.ns.be("node","content")),style:K({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(vl(),wl(a,{key:0,class:X([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:gi(e.handleExpandIconClick,["stop"])},{default:Bn((()=>[(vl(),wl(Yr(e.tree.props.icon||e.CaretRight)))])),_:1},8,["class","onClick"])):Ll("v-if",!0),e.showCheckbox?(vl(),wl(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=gi((()=>{}),["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):Ll("v-if",!0),e.node.loading?(vl(),wl(a,{key:2,class:X([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:Bn((()=>[Ol(s)])),_:1},8,["class"])):Ll("v-if",!0),Ol(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),Ol(d,null,{default:Bn((()=>[!e.renderAfterExpand||e.childNodeRendered?ir((vl(),bl("div",{key:0,class:X(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(vl(!0),bl(sl,null,Qr(e.node.childNodes,(t=>(vl(),wl(c,{key:e.getNodeKey(t),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:t,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"])))),128))],10,tse)),[[wi,e.expanded]]):Ll("v-if",!0)])),_:1})],42,ese)),[[wi,e.node.visible]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]])},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:vK}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=JK(),r=tq("tree"),o=Wt(new Gie({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));o.value.initialize();const l=Wt(o.value.root),a=Wt(null),i=Wt(null),s=Wt(null),{broadcastExpanded:u}=Xie(e),{dragState:c}=function({props:e,ctx:t,el$:n,dropIndicator$:r,store:o}){const l=tq("tree"),a=Wt({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Mo(Qie,{treeNodeDragStart:({event:n,treeNode:r})=>{if("function"==typeof e.allowDrag&&!e.allowDrag(r.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(o){}a.value.draggingNode=r,t.emit("node-drag-start",r.node,n)},treeNodeDragOver:({event:o,treeNode:i})=>{const s=i,u=a.value.dropNode;u&&u.node.id!==s.node.id&&Hz(u.$el,l.is("drop-inner"));const c=a.value.draggingNode;if(!c||!s)return;let d=!0,p=!0,f=!0,v=!0;"function"==typeof e.allowDrop&&(d=e.allowDrop(c.node,s.node,"prev"),v=p=e.allowDrop(c.node,s.node,"inner"),f=e.allowDrop(c.node,s.node,"next")),o.dataTransfer.dropEffect=p||d||f?"move":"none",(d||p||f)&&(null==u?void 0:u.node.id)!==s.node.id&&(u&&t.emit("node-drag-leave",c.node,u.node,o),t.emit("node-drag-enter",c.node,s.node,o)),(d||p||f)&&(a.value.dropNode=s),s.node.nextSibling===c.node&&(f=!1),s.node.previousSibling===c.node&&(d=!1),s.node.contains(c.node,!1)&&(p=!1),(c.node===s.node||c.node.contains(s.node))&&(d=!1,p=!1,f=!1);const h=s.$el.getBoundingClientRect(),m=n.value.getBoundingClientRect();let g;const y=d?p?.25:f?.45:1:-1,b=f?p?.75:d?.55:0:1;let w=-9999;const x=o.clientY-h.top;g=xh.height*b?"after":p?"inner":"none";const C=s.$el.querySelector(`.${l.be("node","expand-icon")}`).getBoundingClientRect(),k=r.value;"before"===g?w=C.top-m.top:"after"===g&&(w=C.bottom-m.top),k.style.top=`${w}px`,k.style.left=C.right-m.left+"px","inner"===g?Bz(s.$el,l.is("drop-inner")):Hz(s.$el,l.is("drop-inner")),a.value.showDropIndicator="before"===g||"after"===g,a.value.allowDrop=a.value.showDropIndicator||v,a.value.dropType=g,t.emit("node-drag-over",c.node,s.node,o)},treeNodeDragEnd:e=>{const{draggingNode:n,dropType:r,dropNode:i}=a.value;if(e.preventDefault(),e.dataTransfer.dropEffect="move",n&&i){const a={data:n.node.data};"none"!==r&&n.node.remove(),"before"===r?i.node.parent.insertBefore(a,i.node):"after"===r?i.node.parent.insertAfter(a,i.node):"inner"===r&&i.node.insertChild(a),"none"!==r&&o.value.registerNode(a),Hz(i.$el,l.is("drop-inner")),t.emit("node-drag-end",n.node,i.node,r,e),"none"!==r&&t.emit("node-drop",n.node,i.node,r,e)}n&&!i&&t.emit("node-drag-end",n.node,null,r,e),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0}}),{dragState:a}}({props:e,ctx:t,el$:i,dropIndicator$:s,store:o});!function({el$:e},t){const n=tq("tree"),r=Ut([]),o=Ut([]);Nr((()=>{l()})),Vr((()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),o.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))})),nr(o,(e=>{e.forEach((e=>{e.setAttribute("tabindex","-1")}))})),_c(e,"keydown",(o=>{const l=o.target;if(!l.className.includes(n.b("node")))return;const a=o.code;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const i=r.value.indexOf(l);let s;if([kK.up,kK.down].includes(a)){if(o.preventDefault(),a===kK.up){s=-1===i?0:0!==i?i-1:r.value.length-1;const e=s;for(;!t.value.getNode(r.value[s].dataset.key).canFocus;){if(s--,s===e){s=-1;break}s<0&&(s=r.value.length-1)}}else{s=-1===i?0:i=r.value.length&&(s=0)}}-1!==s&&r.value[s].focus()}[kK.left,kK.right].includes(a)&&(o.preventDefault(),l.click());const u=l.querySelector('[type="checkbox"]');[kK.enter,kK.space].includes(a)&&u&&(o.preventDefault(),u.click())}));const l=()=>{var t;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),o.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const l=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);l.length?l[0].setAttribute("tabindex","0"):null==(t=r.value[0])||t.setAttribute("tabindex","0")}}({el$:i},o);const d=oa((()=>{const{childNodes:e}=l.value;return!e||0===e.length||e.every((({visible:e})=>!e))}));nr((()=>e.currentNodeKey),(e=>{o.value.setCurrentNodeKey(e)})),nr((()=>e.defaultCheckedKeys),(e=>{o.value.setDefaultCheckedKey(e)})),nr((()=>e.defaultExpandedKeys),(e=>{o.value.setDefaultExpandedKeys(e)})),nr((()=>e.data),(e=>{o.value.setData(e)}),{deep:!0}),nr((()=>e.checkStrictly),(e=>{o.value.checkStrictly=e}));const p=()=>{const e=o.value.getCurrentNode();return e?e.data:null};return Mo("RootTree",{ctx:t,props:e,store:o,root:l,currentNode:a,instance:$l()}),Mo(aJ,void 0),{ns:r,store:o,root:l,currentNode:a,dragState:c,el$:i,dropIndicator$:s,isEmpty:d,filter:t=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(t)},getNodeKey:t=>$ie(e.nodeKey,t.data),getNodePath:t=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const n=o.value.getNode(t);if(!n)return[];const r=[n.data];let a=n.parent;for(;a&&a!==l.value;)r.push(a.data),a=a.parent;return r.reverse()},getCheckedNodes:(e,t)=>o.value.getCheckedNodes(e,t),getCheckedKeys:e=>o.value.getCheckedKeys(e),getCurrentNode:p,getCurrentKey:()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const t=p();return t?t[e.nodeKey]:null},setCheckedNodes:(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");o.value.setCheckedNodes(t,n)},setCheckedKeys:(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");o.value.setCheckedKeys(t,n)},setChecked:(e,t,n)=>{o.value.setChecked(e,t,n)},getHalfCheckedNodes:()=>o.value.getHalfCheckedNodes(),getHalfCheckedKeys:()=>o.value.getHalfCheckedKeys(),setCurrentNode:(n,r=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");Fie(o,t.emit,(()=>o.value.setUserCurrentNode(n,r)))},setCurrentKey:(n,r=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");Fie(o,t.emit,(()=>o.value.setCurrentNodeKey(n,r)))},t:n,getNode:e=>o.value.getNode(e),remove:e=>{o.value.remove(e)},append:(e,t)=>{o.value.append(e,t)},insertBefore:(e,t)=>{o.value.insertBefore(e,t)},insertAfter:(e,t)=>{o.value.insertAfter(e,t)},handleNodeExpand:(e,n,r)=>{u(n),t.emit("node-expand",e,n,r)},updateKeyChildren:(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");o.value.updateChildren(t,n)}}}});var rse=UG(nse,[["render",function(e,t,n,r,o,l){const a=Kr("el-tree-node");return vl(),bl("div",{ref:"el$",class:X([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner","inner"===e.dragState.dropType),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(vl(!0),bl(sl,null,Qr(e.root.childNodes,(t=>(vl(),wl(a,{key:e.getNodeKey(t),node:t,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"])))),128)),e.isEmpty?(vl(),bl("div",{key:0,class:X(e.ns.e("empty-block"))},[eo(e.$slots,"empty",{},(()=>{var t;return[El("span",{class:X(e.ns.e("empty-text"))},ve(null!=(t=e.emptyText)?t:e.t("el.tree.emptyText")),3)]}))],2)):Ll("v-if",!0),ir(El("div",{ref:"dropIndicator$",class:X(e.ns.e("drop-indicator"))},null,2),[[wi,e.dragState.showDropIndicator]])],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);rse.install=e=>{e.component(rse.name,rse)};const ose=rse,lse=ose,ase=wr({extends:see,setup(e,t){const n=see.setup(e,t);delete n.selectOptionClick;const r=$l().proxy;return wn((()=>{n.select.cachedOptions.get(r.value)||n.select.onOptionCreate(r)})),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function ise(e){return e||0===e}function sse(e){return Array.isArray(e)&&e.length}function use(e){return Array.isArray(e)?e:ise(e)?[e]:[]}function cse(e,t,n,r,o){for(let l=0;l{nr((()=>e.modelValue),(()=>{e.showCheckbox&&wn((()=>{const t=l.value;t&&!$_(t.getCheckedKeys(),use(e.modelValue))&&t.setCheckedKeys(use(e.modelValue))}))}),{immediate:!0,deep:!0});const i=oa((()=>({value:a.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props}))),s=(e,t)=>{var n;const r=i.value[e];return g(r)?r(t,null==(n=l.value)?void 0:n.getNode(s("value",t))):t[r]},u=use(e.modelValue).map((t=>cse(e.data||[],(e=>s("value",e)===t),(e=>s("children",e)),((e,t,n,r)=>r&&s("value",r))))).filter((e=>ise(e))),c=oa((()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const t=[];return dse(e.data.concat(e.cacheData),(e=>{const n=s("value",e);t.push({value:n,currentLabel:s("label",e),isDisabled:s("disabled",e)})}),(e=>s("children",e))),t})),d=oa((()=>c.value.reduce(((e,t)=>({...e,[t.value]:t})),{})));return{...xO(en(e),Object.keys(ose.props)),...t,nodeKey:a,expandOnClickNode:oa((()=>!e.checkStrictly&&e.expandOnClickNode)),defaultExpandedKeys:oa((()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u)),renderContent:(t,{node:r,data:o,store:l})=>t(ase,{value:s("value",o),label:s("label",o),disabled:s("disabled",o)},e.renderContent?()=>e.renderContent(t,{node:r,data:o,store:l}):n.default?()=>n.default({node:r,data:o,store:l}):void 0),filterNodeMethod:(t,n,r)=>{var o;return e.filterNodeMethod?e.filterNodeMethod(t,n,r):!t||(null==(o=s("label",n))?void 0:o.includes(t))},onNodeClick:(n,r,l)=>{var a,i,u;if(null==(a=t.onNodeClick)||a.call(t,n,r,l),!e.showCheckbox||!e.checkOnClickNode)if(e.showCheckbox||!e.checkStrictly&&!r.isLeaf)e.expandOnClickNode&&l.proxy.handleExpandIconClick();else if(!s("disabled",n)){const e=null==(i=o.value)?void 0:i.options.get(s("value",n));null==(u=o.value)||u.handleOptionSelect(e)}},onCheck:(n,o)=>{if(!e.showCheckbox)return;const a=s("value",n),i=o.checkedKeys,u=e.multiple?use(e.modelValue).filter((e=>e in d.value&&!l.value.getNode(e)&&!i.includes(e))):[],c=i.concat(u);if(e.checkStrictly)r(_K,e.multiple?c:c.includes(a)?a:void 0);else if(e.multiple)r(_K,l.value.getCheckedKeys(!0));else{const t=cse([n],(e=>!sse(s("children",e))&&!s("disabled",e)),(e=>s("children",e))),o=t?s("value",t):void 0,l=ise(e.modelValue)&&!!cse([n],(t=>s("value",t)===e.modelValue),(e=>s("children",e)));r(_K,o===e.modelValue||l?void 0:o)}wn((()=>{var r;const o=use(e.modelValue);l.value.setCheckedKeys(o),null==(r=t.onCheck)||r.call(t,n,{checkedKeys:l.value.getCheckedKeys(),checkedNodes:l.value.getCheckedNodes(),halfCheckedKeys:l.value.getHalfCheckedKeys(),halfCheckedNodes:l.value.getHalfCheckedNodes()})}))},cacheOptions:c}};var fse=wr({props:{data:{type:Array,default:()=>[]}},setup(e){const t=zo(U7);return nr((()=>e.data),(()=>{var n;e.data.forEach((e=>{t.cachedOptions.has(e.value)||t.cachedOptions.set(e.value,e)}));const r=(null==(n=t.selectWrapper)?void 0:n.querySelectorAll("input"))||[];Array.from(r).includes(document.activeElement)||t.setSelected()}),{flush:"post",immediate:!0}),()=>{}}});const vse=wr({name:"ElTreeSelect",inheritAttrs:!1,props:{...iee.props,...ose.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,o=Wt(),l=Wt(),a=oa((()=>e.nodeKey||e.valueKey||"value")),i=((e,{attrs:t},{tree:n,key:r})=>{const o=tq("tree-select"),l={...xO(en(e),Object.keys(iee.props)),...t,valueKey:r,popperClass:oa((()=>{const t=[o.e("popper")];return e.popperClass&&t.push(e.popperClass),t.join(" ")})),filterMethod:(t="")=>{e.filterMethod&&e.filterMethod(t),wn((()=>{var e;null==(e=n.value)||e.filter(t)}))},onVisibleChange:n=>{var r;null==(r=t.onVisibleChange)||r.call(t,n),e.filterable&&n&&l.filterMethod()}};return l})(e,t,{select:o,tree:l,key:a}),{cacheOptions:s,...u}=pse(e,t,{select:o,tree:l,key:a}),c=zt({});return r(c),Nr((()=>{Object.assign(c,{...xO(l.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...xO(o.value,["focus","blur"])})})),()=>la(iee,zt({...i,ref:e=>o.value=e}),{...n,default:()=>[la(fse,{data:s.value}),la(ose,zt({...u,ref:e=>l.value=e}))]})}});var hse=UG(vse,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);hse.install=e=>{e.component(hse.name,hse)};const mse=hse,gse=Symbol(),yse={key:-1,level:-1,data:{}};var bse=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(bse||{}),wse=(e=>(e.ADD="add",e.DELETE="delete",e))(wse||{});const xse={type:Number,default:26},Cse=fK({data:{type:Array,default:()=>[]},emptyText:{type:String},height:{type:Number,default:200},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:Array,default:()=>[]},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:Array,default:()=>[]},indent:{type:Number,default:16},itemSize:xse,icon:{type:vK},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:[String,Number]},accordion:{type:Boolean,default:!1},filterMethod:{type:Function},perfMode:{type:Boolean,default:!0}}),kse=fK({node:{type:Object,default:()=>yse},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:xse}),Sse=fK({node:{type:Object,required:!0}}),_se="node-click",Ese="node-expand",Ose="node-collapse",Mse="current-change",zse="check",Tse="check-change",Ase="node-contextmenu",Lse={[_se]:(e,t,n)=>e&&t&&n,[Ese]:(e,t)=>e&&t,[Ose]:(e,t)=>e&&t,[Mse]:(e,t)=>e&&t,[zse]:(e,t)=>e&&t,[Tse]:(e,t)=>e&&"boolean"==typeof t,[Ase]:(e,t,n)=>e&&t&&n};var Ise=wr({name:"ElTreeNodeContent",props:Sse,setup(e){const t=zo(gse),n=tq("tree");return()=>{const r=e.node,{data:o}=r;return(null==t?void 0:t.ctx.slots.default)?t.ctx.slots.default({node:r,data:o}):la("span",{class:n.be("node","label")},[null==r?void 0:r.label])}}});const Rse=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],Pse=wr({name:"ElTreeNode"}),Nse=wr({...Pse,props:kse,emits:{click:(e,t)=>!(!e||!t),toggle:e=>!!e,check:(e,t)=>e&&"boolean"==typeof t},setup(e,{emit:t}){const n=e,r=zo(gse),o=tq("tree"),l=oa((()=>{var e;return null!=(e=null==r?void 0:r.props.indent)?e:16})),a=oa((()=>{var e;return null!=(e=null==r?void 0:r.props.icon)?e:$A})),i=e=>{t("click",n.node,e)},s=()=>{t("toggle",n.node)},u=e=>{t("check",n.node,e)},c=e=>{var t,o,l,a;(null==(l=null==(o=null==(t=null==r?void 0:r.instance)?void 0:t.vnode)?void 0:o.props)?void 0:l.onNodeContextmenu)&&(e.stopPropagation(),e.preventDefault()),null==r||r.ctx.emit(Ase,e,null==(a=n.node)?void 0:a.data,n.node)};return(e,t)=>{var n,r,d;return vl(),bl("div",{ref:"node$",class:X([Gt(o).b("node"),Gt(o).is("expanded",e.expanded),Gt(o).is("current",e.current),Gt(o).is("focusable",!e.disabled),Gt(o).is("checked",!e.disabled&&e.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":null==(n=e.node)?void 0:n.key,onClick:gi(i,["stop"]),onContextmenu:c},[El("div",{class:X(Gt(o).be("node","content")),style:K({paddingLeft:(e.node.level-1)*Gt(l)+"px",height:e.itemSize+"px"})},[Gt(a)?(vl(),wl(Gt(ZG),{key:0,class:X([Gt(o).is("leaf",!!(null==(r=e.node)?void 0:r.isLeaf)),Gt(o).is("hidden",e.hiddenExpandIcon),{expanded:!(null==(d=e.node)?void 0:d.isLeaf)&&e.expanded},Gt(o).be("node","expand-icon")]),onClick:gi(s,["stop"])},{default:Bn((()=>[(vl(),wl(Yr(Gt(a))))])),_:1},8,["class","onClick"])):Ll("v-if",!0),e.showCheckbox?(vl(),wl(Gt(_1),{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:u,onClick:t[0]||(t[0]=gi((()=>{}),["stop"]))},null,8,["model-value","indeterminate","disabled"])):Ll("v-if",!0),Ol(Gt(Ise),{node:e.node},null,8,["node"])],6)],42,Rse)}}});var jse=UG(Nse,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const Vse=wr({name:"ElTreeV2"}),Bse=wr({...Vse,props:Cse,emits:Lse,setup(e,{expose:t,emit:n}){const r=e,o=so(),l=oa((()=>r.itemSize));Mo(gse,{ctx:{emit:n,slots:o},props:r,instance:$l()}),Mo(aJ,void 0);const{t:a}=JK(),i=tq("tree"),{flattenTree:s,isNotEmpty:u,toggleExpand:c,isExpanded:d,isIndeterminate:p,isChecked:f,isDisabled:v,isCurrent:h,isForceHiddenExpandIcon:m,handleNodeClick:y,handleNodeCheck:b,toggleCheckbox:x,getCurrentNode:C,getCurrentKey:k,setCurrentKey:S,getCheckedKeys:_,getCheckedNodes:E,getHalfCheckedKeys:O,getHalfCheckedNodes:M,setChecked:z,setCheckedKeys:T,filter:A,setData:L,getNode:I,expandNode:R,collapseNode:P,setExpandedKeys:N}=function(e,t){const n=Wt(new Set(e.defaultExpandedKeys)),r=Wt(),o=Ut();nr((()=>e.currentNodeKey),(e=>{r.value=e}),{immediate:!0}),nr((()=>e.data),(e=>{I(e)}),{immediate:!0});const{isIndeterminate:l,isChecked:a,toggleCheckbox:i,getCheckedKeys:s,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:d,setChecked:p,setCheckedKeys:f}=function(e,t){const n=Wt(new Set),r=Wt(new Set),{emit:o}=$l();nr([()=>t.value,()=>e.defaultCheckedKeys],(()=>wn((()=>{d(e.defaultCheckedKeys)}))),{immediate:!0});const l=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:o,maxLevel:l}=t.value,a=n.value,i=new Set;for(let e=l-1;e>=1;--e){const t=o.get(e);t&&t.forEach((e=>{const t=e.children;if(t){let n=!0,r=!1;for(const e of t){const t=e.key;if(a.has(t))r=!0;else{if(i.has(t)){n=!1,r=!0;break}n=!1}}n?a.add(e.key):r?(i.add(e.key),a.delete(e.key)):(a.delete(e.key),i.delete(e.key))}}))}r.value=i},a=e=>n.value.has(e.key),i=(t,r,o=!0)=>{const a=n.value,i=(t,n)=>{a[n?wse.ADD:wse.DELETE](t.key);const r=t.children;!e.checkStrictly&&r&&r.forEach((e=>{e.disabled||i(e,n)}))};i(t,r),l(),o&&s(t,r)},s=(e,t)=>{const{checkedNodes:n,checkedKeys:r}=u(),{halfCheckedNodes:l,halfCheckedKeys:a}=c();o(zse,e.data,{checkedKeys:r,checkedNodes:n,halfCheckedKeys:a,halfCheckedNodes:l}),o(Tse,e.data,t)};function u(r=!1){const o=[],l=[];if((null==t?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:e}=t.value;n.value.forEach((t=>{const n=e.get(t);n&&(!r||r&&n.isLeaf)&&(l.push(t),o.push(n.data))}))}return{checkedKeys:l,checkedNodes:o}}function c(){const n=[],o=[];if((null==t?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:e}=t.value;r.value.forEach((t=>{const r=e.get(t);r&&(o.push(t),n.push(r.data))}))}return{halfCheckedNodes:n,halfCheckedKeys:o}}function d(n){if(null==t?void 0:t.value){const{treeNodeMap:r}=t.value;if(e.showCheckbox&&r&&n)for(const e of n){const t=r.get(e);t&&!a(t)&&i(t,!0,!1)}}}return{updateCheckedKeys:l,toggleCheckbox:i,isChecked:a,isIndeterminate:e=>r.value.has(e.key),getCheckedKeys:function(e=!1){return u(e).checkedKeys},getCheckedNodes:function(e=!1){return u(e).checkedNodes},getHalfCheckedKeys:function(){return c().halfCheckedKeys},getHalfCheckedNodes:function(){return c().halfCheckedNodes},setChecked:function(n,r){if((null==t?void 0:t.value)&&e.showCheckbox){const e=t.value.treeNodeMap.get(n);e&&i(e,r,!1)}},setCheckedKeys:function(e){n.value.clear(),r.value.clear(),d(e)}}}(e,o),{doFilter:v,hiddenNodeKeySet:h,isForceHiddenExpandIcon:m}=function(e,t){const n=Wt(new Set([])),r=Wt(new Set([])),o=oa((()=>g(e.filterMethod)));return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:function(l){var a;if(!o.value)return;const i=new Set,s=r.value,u=n.value,c=[],d=(null==(a=t.value)?void 0:a.treeNodes)||[],p=e.filterMethod;return u.clear(),function e(t){t.forEach((t=>{c.push(t),(null==p?void 0:p(l,t.data))?c.forEach((e=>{i.add(e.key)})):t.isLeaf&&u.add(t.key);const n=t.children;if(n&&e(n),!t.isLeaf)if(i.has(t.key)){if(n){let e=!0;for(const t of n)if(!u.has(t.key)){e=!1;break}e?s.add(t.key):s.delete(t.key)}}else u.add(t.key);c.pop()}))}(d),i},isForceHiddenExpandIcon:function(e){return r.value.has(e.key)}}}(e,o),y=oa((()=>{var t;return(null==(t=e.props)?void 0:t.value)||bse.KEY})),b=oa((()=>{var t;return(null==(t=e.props)?void 0:t.children)||bse.CHILDREN})),x=oa((()=>{var t;return(null==(t=e.props)?void 0:t.disabled)||bse.DISABLED})),C=oa((()=>{var t;return(null==(t=e.props)?void 0:t.label)||bse.LABEL})),k=oa((()=>{const e=n.value,t=h.value,r=[],l=o.value&&o.value.treeNodes||[];return function(){const n=[];for(let e=l.length-1;e>=0;--e)n.push(l[e]);for(;n.length;){const o=n.pop();if(o&&(t.has(o.key)||r.push(o),e.has(o.key))){const e=o.children;if(e)for(let t=e.length-1;t>=0;--t)n.push(e[t])}}}(),r})),S=oa((()=>k.value.length>0));function _(e){return e[b.value]}function E(e){return e?e[y.value]:""}function O(e){return e[x.value]}function M(e){return e[C.value]}function z(e){n.value.has(e.key)?A(e):T(e)}function T(r){const l=n.value;if(o.value&&e.accordion){const{treeNodeMap:e}=o.value;l.forEach((t=>{const n=e.get(t);r&&r.level===(null==n?void 0:n.level)&&l.delete(t)}))}l.add(r.key),t(Ese,r.data,r)}function A(e){n.value.delete(e.key),t(Ose,e.data,e)}function L(e){const t=r.value;return!!t&&t===e.key}function I(e){wn((()=>o.value=function(e){const t=new Map,n=new Map;let r=1;const o=function e(o,l=1,a){var i;const s=[];for(const r of o){const o=E(r),u={level:l,key:o,data:r};u.label=M(r),u.parent=a;const c=_(r);u.disabled=O(r),u.isLeaf=!c||0===c.length,c&&c.length&&(u.children=e(c,l+1,u)),s.push(u),t.set(o,u),n.has(l)||n.set(l,[]),null==(i=n.get(l))||i.push(u)}return l>r&&(r=l),s}(e);return{treeNodeMap:t,levelTreeNodeMap:n,maxLevel:r,treeNodes:o}}(e)))}return{tree:o,flattenTree:k,isNotEmpty:S,getKey:E,getChildren:_,toggleExpand:z,toggleCheckbox:i,isExpanded:function(e){return n.value.has(e.key)},isChecked:a,isIndeterminate:l,isDisabled:function(e){return!!e.disabled},isCurrent:L,isForceHiddenExpandIcon:m,handleNodeClick:function(n,o){var l;t(_se,n.data,n,o),L(l=n)||(r.value=l.key,t(Mse,l.data,l)),e.expandOnClickNode&&z(n),e.showCheckbox&&e.checkOnClickNode&&!n.disabled&&i(n,!a(n),!0)},handleNodeCheck:function(e,t){i(e,t)},getCurrentNode:function(){var e,t;if(r.value)return null==(t=null==(e=o.value)?void 0:e.treeNodeMap.get(r.value))?void 0:t.data},getCurrentKey:function(){return r.value},setCurrentKey:function(e){r.value=e},getCheckedKeys:s,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:d,setChecked:p,setCheckedKeys:f,filter:function(e){const t=v(e);t&&(n.value=t)},setData:I,getNode:function(e){var t;const n=w(e)?E(e):e;return null==(t=o.value)?void 0:t.treeNodeMap.get(n)},expandNode:T,collapseNode:A,setExpandedKeys:function(e){n.value=new Set(e)}}}(r,n);return t({toggleCheckbox:x,getCurrentNode:C,getCurrentKey:k,setCurrentKey:S,getCheckedKeys:_,getCheckedNodes:E,getHalfCheckedKeys:O,getHalfCheckedNodes:M,setChecked:z,setCheckedKeys:T,filter:A,setData:L,getNode:I,expandNode:R,collapseNode:P,setExpandedKeys:N}),(e,t)=>{var n;return vl(),bl("div",{class:X([Gt(i).b(),{[Gt(i).m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[Gt(u)?(vl(),wl(Gt(ane),{key:0,"class-name":Gt(i).b("virtual-list"),data:Gt(s),total:Gt(s).length,height:e.height,"item-size":Gt(l),"perf-mode":e.perfMode},{default:Bn((({data:t,index:n,style:r})=>[(vl(),wl(jse,{key:t[n].key,style:K(r),node:t[n],expanded:Gt(d)(t[n]),"show-checkbox":e.showCheckbox,checked:Gt(f)(t[n]),indeterminate:Gt(p)(t[n]),"item-size":Gt(l),disabled:Gt(v)(t[n]),current:Gt(h)(t[n]),"hidden-expand-icon":Gt(m)(t[n]),onClick:Gt(y),onToggle:Gt(c),onCheck:Gt(b)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))])),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(vl(),bl("div",{key:1,class:X(Gt(i).e("empty-block"))},[El("span",{class:X(Gt(i).e("empty-text"))},ve(null!=(n=e.emptyText)?n:Gt(a)("el.tree.emptyText")),3)],2))],2)}}}),Hse=bK(UG(Bse,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]])),Dse=Symbol("uploadContextKey");class $se extends Error{constructor(e,t,n,r){super(e),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=r}}function Fse(e,t,n){let r;return r=n.response?`${n.response.error||n.response}`:n.responseText?`${n.responseText}`:`fail to ${t.method} ${e} ${n.status}`,new $se(r,n.status,t.method,e)}const Wse=["text","picture","picture-card"];let Use=1;const Kse=()=>Date.now()+Use++,qse=fK({action:{type:String,default:"#"},headers:{type:Object},method:{type:String,default:"post"},data:{type:Object,default:()=>({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:Array,default:()=>[]},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:Wse,default:"text"},httpRequest:{type:Function,default:e=>{"undefined"==typeof XMLHttpRequest&&Nz("ElUpload","XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",(t=>{const n=t;n.percent=t.total>0?t.loaded/t.total*100:0,e.onProgress(n)}));const r=new FormData;if(e.data)for(const[l,a]of Object.entries(e.data))Array.isArray(a)?r.append(l,...a):r.append(l,a);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",(()=>{e.onError(Fse(n,e,t))})),t.addEventListener("load",(()=>{if(t.status<200||t.status>=300)return e.onError(Fse(n,e,t));e.onSuccess(function(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}(t))})),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach(((e,n)=>t.setRequestHeader(n,e)));else for(const[l,a]of Object.entries(o))q_(a)||t.setRequestHeader(l,String(a));return t.send(r),t}},disabled:Boolean,limit:Number}),Yse=fK({...qse,beforeUpload:{type:Function,default:r},beforeRemove:{type:Function},onRemove:{type:Function,default:r},onChange:{type:Function,default:r},onPreview:{type:Function,default:r},onSuccess:{type:Function,default:r},onProgress:{type:Function,default:r},onError:{type:Function,default:r},onExceed:{type:Function,default:r}}),Gse=fK({files:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},handlePreview:{type:Function,default:r},listType:{type:String,values:Wse,default:"text"}}),Jse=["onKeydown"],Xse=["src"],Qse=["onClick"],Zse=["onClick"],eue=["onClick"],tue=wr({name:"ElUploadList"}),nue=wr({...tue,props:Gse,emits:{remove:e=>!!e},setup(e,{emit:t}){const{t:n}=JK(),r=tq("upload"),o=tq("icon"),l=tq("list"),a=sJ(),i=Wt(!1),s=e=>{t("remove",e)};return(e,t)=>(vl(),wl(Xa,{tag:"ul",class:X([Gt(r).b("list"),Gt(r).bm("list",e.listType),Gt(r).is("disabled",Gt(a))]),name:Gt(l).b()},{default:Bn((()=>[(vl(!0),bl(sl,null,Qr(e.files,(l=>(vl(),bl("li",{key:l.uid||l.name,class:X([Gt(r).be("list","item"),Gt(r).is(l.status),{focusing:i.value}]),tabindex:"0",onKeydown:bi((e=>!Gt(a)&&s(l)),["delete"]),onFocus:t[0]||(t[0]=e=>i.value=!0),onBlur:t[1]||(t[1]=e=>i.value=!1),onClick:t[2]||(t[2]=e=>i.value=!1)},[eo(e.$slots,"default",{file:l},(()=>["picture"===e.listType||"uploading"!==l.status&&"picture-card"===e.listType?(vl(),bl("img",{key:0,class:X(Gt(r).be("list","item-thumbnail")),src:l.url,alt:""},null,10,Xse)):Ll("v-if",!0),"uploading"===l.status||"picture-card"!==e.listType?(vl(),bl("div",{key:1,class:X(Gt(r).be("list","item-info"))},[El("a",{class:X(Gt(r).be("list","item-name")),onClick:gi((t=>e.handlePreview(l)),["prevent"])},[Ol(Gt(ZG),{class:X(Gt(o).m("document"))},{default:Bn((()=>[Ol(Gt(YR))])),_:1},8,["class"]),El("span",{class:X(Gt(r).be("list","item-file-name"))},ve(l.name),3)],10,Qse),"uploading"===l.status?(vl(),wl(Gt(ate),{key:0,type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:Number(l.percentage),style:K("picture-card"===e.listType?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):Ll("v-if",!0)],2)):Ll("v-if",!0),El("label",{class:X(Gt(r).be("list","item-status-label"))},["text"===e.listType?(vl(),wl(Gt(ZG),{key:0,class:X([Gt(o).m("upload-success"),Gt(o).m("circle-check")])},{default:Bn((()=>[Ol(Gt(IL))])),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(vl(),wl(Gt(ZG),{key:1,class:X([Gt(o).m("upload-success"),Gt(o).m("check")])},{default:Bn((()=>[Ol(Gt(hL))])),_:1},8,["class"])):Ll("v-if",!0)],2),Gt(a)?Ll("v-if",!0):(vl(),wl(Gt(ZG),{key:2,class:X(Gt(o).m("close")),onClick:e=>s(l)},{default:Bn((()=>[Ol(Gt(eI))])),_:2},1032,["class","onClick"])),Ll(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),Ll(" This is a bug which needs to be fixed "),Ll(" TODO: Fix the incorrect navigation interaction "),Gt(a)?Ll("v-if",!0):(vl(),bl("i",{key:3,class:X(Gt(o).m("close-tip"))},ve(Gt(n)("el.upload.deleteTip")),3)),"picture-card"===e.listType?(vl(),bl("span",{key:4,class:X(Gt(r).be("list","item-actions"))},[El("span",{class:X(Gt(r).be("list","item-preview")),onClick:t=>e.handlePreview(l)},[Ol(Gt(ZG),{class:X(Gt(o).m("zoom-in"))},{default:Bn((()=>[Ol(Gt(aK))])),_:1},8,["class"])],10,Zse),Gt(a)?Ll("v-if",!0):(vl(),bl("span",{key:0,class:X(Gt(r).be("list","item-delete")),onClick:e=>s(l)},[Ol(Gt(ZG),{class:X(Gt(o).m("delete"))},{default:Bn((()=>[Ol(Gt(yR))])),_:1},8,["class"])],10,eue))],2)):Ll("v-if",!0)]))],42,Jse)))),128)),eo(e.$slots,"append")])),_:3},8,["class","name"]))}});var rue=UG(nue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const oue=fK({disabled:{type:Boolean,default:!1}}),lue={file:e=>p(e)},aue=["onDrop","onDragover"],iue="ElUploadDrag",sue=wr({name:iue}),uue=wr({...sue,props:oue,emits:lue,setup(e,{emit:t}){const n=zo(Dse);n||Nz(iue,"usage: ");const r=tq("upload"),o=Wt(!1),l=sJ(),a=e=>{if(l.value)return;o.value=!1,e.stopPropagation();const r=Array.from(e.dataTransfer.files),a=n.accept.value;if(!a)return void t("file",r);const i=r.filter((e=>{const{type:t,name:n}=e,r=n.includes(".")?`.${n.split(".").pop()}`:"",o=t.replace(/\/.*$/,"");return a.split(",").map((e=>e.trim())).filter((e=>e)).some((e=>e.startsWith(".")?r===e:/\/\*$/.test(e)?o===e.replace(/\/\*$/,""):!!/^[^/]+\/[^/]+$/.test(e)&&t===e))}));t("file",i)},i=()=>{l.value||(o.value=!0)};return(e,t)=>(vl(),bl("div",{class:X([Gt(r).b("dragger"),Gt(r).is("dragover",o.value)]),onDrop:gi(a,["prevent"]),onDragover:gi(i,["prevent"]),onDragleave:t[0]||(t[0]=gi((e=>o.value=!1),["prevent"]))},[eo(e.$slots,"default")],42,aue))}});var cue=UG(uue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const due=fK({...qse,beforeUpload:{type:Function,default:r},onRemove:{type:Function,default:r},onStart:{type:Function,default:r},onSuccess:{type:Function,default:r},onProgress:{type:Function,default:r},onError:{type:Function,default:r},onExceed:{type:Function,default:r}}),pue=["onKeydown"],fue=["name","multiple","accept"],vue=wr({name:"ElUploadContent",inheritAttrs:!1}),hue=wr({...vue,props:due,setup(e,{expose:t}){const n=e,r=tq("upload"),o=sJ(),l=Ut({}),a=Ut(),i=e=>{if(0===e.length)return;const{autoUpload:t,limit:r,fileList:o,multiple:l,onStart:a,onExceed:i}=n;if(r&&o.length+e.length>r)i(e,o);else{l||(e=e.slice(0,1));for(const n of e){const e=n;e.uid=Kse(),a(e),t&&s(e)}}},s=async e=>{if(a.value.value="",!n.beforeUpload)return u(e);let t,r={};try{const o=n.data,l=n.beforeUpload(e);r=w(n.data)?CC(n.data):n.data,t=await l,w(n.data)&&$_(o,r)&&(r=CC(n.data))}catch(l){t=!1}if(!1===t)return void n.onRemove(e);let o=e;t instanceof Blob&&(o=t instanceof File?t:new File([t],e.name,{type:e.type})),u(Object.assign(o,{uid:e.uid}),r)},u=(e,t)=>{const{headers:r,data:o,method:a,withCredentials:i,name:s,action:u,onProgress:c,onSuccess:d,onError:p,httpRequest:f}=n,{uid:v}=e,h={headers:r||{},withCredentials:i,file:e,data:null!=t?t:o,method:a,filename:s,action:u,onProgress:t=>{c(t,e)},onSuccess:t=>{d(t,e),delete l.value[v]},onError:t=>{p(t,e),delete l.value[v]}},m=f(h);l.value[v]=m,m instanceof Promise&&m.then(h.onSuccess,h.onError)},c=e=>{const t=e.target.files;t&&i(Array.from(t))},d=()=>{o.value||(a.value.value="",a.value.click())},p=()=>{d()};return t({abort:e=>{var t;(t=l.value,Object.entries(t)).filter(e?([t])=>String(e.uid)===t:()=>!0).forEach((([e,t])=>{t instanceof XMLHttpRequest&&t.abort(),delete l.value[e]}))},upload:s}),(e,t)=>(vl(),bl("div",{class:X([Gt(r).b(),Gt(r).m(e.listType),Gt(r).is("drag",e.drag)]),tabindex:"0",onClick:d,onKeydown:bi(gi(p,["self"]),["enter","space"])},[e.drag?(vl(),wl(cue,{key:0,disabled:Gt(o),onFile:i},{default:Bn((()=>[eo(e.$slots,"default")])),_:3},8,["disabled"])):eo(e.$slots,"default",{key:1}),El("input",{ref_key:"inputRef",ref:a,class:X(Gt(r).e("input")),name:e.name,multiple:e.multiple,accept:e.accept,type:"file",onChange:c,onClick:t[0]||(t[0]=gi((()=>{}),["stop"]))},null,42,fue)],42,pue))}});var mue=UG(hue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const gue=wr({name:"ElUpload"}),yue=wr({...gue,props:Yse,setup(e,{expose:t}){const n=e,r=so(),o=sJ(),l=Ut(),{abort:a,submit:i,clearFiles:s,uploadFiles:u,handleStart:c,handleError:d,handleRemove:p,handleSuccess:f,handleProgress:v}=((e,t)=>{const n=qv(e,"fileList",void 0,{passive:!0}),r=e=>n.value.find((t=>t.uid===e.uid));function o(e){var n;null==(n=t.value)||n.abort(e)}return nr((()=>e.listType),(t=>{"picture-card"!==t&&"picture"!==t||(n.value=n.value.map((t=>{const{raw:r,url:o}=t;if(!o&&r)try{t.url=URL.createObjectURL(r)}catch(l){e.onError(l,t,n.value)}return t})))})),nr(n,(e=>{for(const t of e)t.uid||(t.uid=Kse()),t.status||(t.status="success")}),{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:function(e=["ready","uploading","success","fail"]){n.value=n.value.filter((t=>!e.includes(t.status)))},handleError:(t,o)=>{const l=r(o);l&&(l.status="fail",n.value.splice(n.value.indexOf(l),1),e.onError(t,l,n.value),e.onChange(l,n.value))},handleProgress:(t,o)=>{const l=r(o);l&&(e.onProgress(t,l,n.value),l.status="uploading",l.percentage=Math.round(t.percent))},handleStart:t=>{q_(t.uid)&&(t.uid=Kse());const r={name:t.name,percentage:0,status:"ready",size:t.size,raw:t,uid:t.uid};if("picture-card"===e.listType||"picture"===e.listType)try{r.url=URL.createObjectURL(t)}catch(o){o.message,e.onError(o,r,n.value)}n.value=[...n.value,r],e.onChange(r,n.value)},handleSuccess:(t,o)=>{const l=r(o);l&&(l.status="success",l.response=t,e.onSuccess(t,l,n.value),e.onChange(l,n.value))},handleRemove:async t=>{const l=t instanceof File?r(t):t;l||Nz("ElUpload","file to be removed not found");const a=t=>{o(t);const r=n.value;var l,a;r.splice(r.indexOf(t),1),e.onRemove(t,r),(null==(a=(l=t).url)?void 0:a.startsWith("blob:"))&&URL.revokeObjectURL(l.url)};e.beforeRemove?!1!==await e.beforeRemove(l,n.value)&&a(l):a(l)},submit:function(){n.value.filter((({status:e})=>"ready"===e)).forEach((({raw:e})=>{var n;return e&&(null==(n=t.value)?void 0:n.upload(e))}))}}})(n,l),h=oa((()=>"picture-card"===n.listType)),m=oa((()=>({...n,fileList:u.value,onStart:c,onProgress:v,onSuccess:f,onError:d,onRemove:p})));return Br((()=>{u.value.forEach((({url:e})=>{(null==e?void 0:e.startsWith("blob:"))&&URL.revokeObjectURL(e)}))})),Mo(Dse,{accept:rn(n,"accept")}),t({abort:a,submit:i,clearFiles:s,handleStart:c,handleRemove:p}),(e,t)=>(vl(),bl("div",null,[Gt(h)&&e.showFileList?(vl(),wl(rue,{key:0,disabled:Gt(o),"list-type":e.listType,files:Gt(u),"handle-preview":e.onPreview,onRemove:Gt(p)},Zr({append:Bn((()=>[Ol(mue,Nl({ref_key:"uploadRef",ref:l},Gt(m)),{default:Bn((()=>[Gt(r).trigger?eo(e.$slots,"trigger",{key:0}):Ll("v-if",!0),!Gt(r).trigger&&Gt(r).default?eo(e.$slots,"default",{key:1}):Ll("v-if",!0)])),_:3},16)])),_:2},[e.$slots.file?{name:"default",fn:Bn((({file:t})=>[eo(e.$slots,"file",{file:t})]))}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):Ll("v-if",!0),!Gt(h)||Gt(h)&&!e.showFileList?(vl(),wl(mue,Nl({key:1,ref_key:"uploadRef",ref:l},Gt(m)),{default:Bn((()=>[Gt(r).trigger?eo(e.$slots,"trigger",{key:0}):Ll("v-if",!0),!Gt(r).trigger&&Gt(r).default?eo(e.$slots,"default",{key:1}):Ll("v-if",!0)])),_:3},16)):Ll("v-if",!0),e.$slots.trigger?eo(e.$slots,"default",{key:2}):Ll("v-if",!0),eo(e.$slots,"tip"),!Gt(h)&&e.showFileList?(vl(),wl(rue,{key:3,disabled:Gt(o),"list-type":e.listType,files:Gt(u),"handle-preview":e.onPreview,onRemove:Gt(p)},Zr({_:2},[e.$slots.file?{name:"default",fn:Bn((({file:t})=>[eo(e.$slots,"file",{file:t})]))}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):Ll("v-if",!0)]))}}),bue=bK(UG(yue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]));var wue=[GG,oJ,YQ,oae,eZ,aZ,cZ,bZ,wZ,XZ,QZ,$2,U2,o1,l1,M4,v4,I4,_1,E1,O1,$4,i6,s6,e6,B6,$G,Z6,e3,t3,n3,r3,k8,N8,j8,Z8,n5,u5,Z5,e9,t9,L9,nX,rX,ZG,U9,V9,hX,Q9,o7,x7,C7,k7,S7,z7,Vee,Fee,Xee,bQ,ate,Y1,J1,G1,fte,yte,V4,EX,iee,see,uee,$ne,Gne,Jne,xre,_re,zre,jre,qre,Yre,loe,ule,cle,rae,kae,Sae,b4,Oae,M2,jae,$ae,Fae,BQ,Cie,Bie,lse,mse,Hse,bue];const xue="ElInfiniteScroll",Cue={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},kue=(e,t)=>Object.entries(Cue).reduce(((n,[r,o])=>{var l,a;const{type:i,default:s}=o,u=e.getAttribute(`infinite-scroll-${r}`);let c=null!=(a=null!=(l=t[u])?l:u)?a:s;return c="false"!==c&&c,c=i(c),n[r]=Number.isNaN(c)?s:c,n}),{}),Sue=e=>{const{observer:t}=e[xue];t&&(t.disconnect(),delete e[xue].observer)},_ue=(e,t)=>{const{container:n,containerEl:r,instance:o,observer:l,lastScrollTop:a}=e[xue],{disabled:i,distance:s}=kue(e,o),{clientHeight:u,scrollHeight:c,scrollTop:d}=r,p=d-a;if(e[xue].lastScrollTop=d,l||i||p<0)return;let f=!1;if(n===e)f=c-(u+d)<=s;else{const{clientTop:t,scrollHeight:n}=e;f=d+u>=(v=e,h=r,Math.abs(dh(v)-dh(h)))+t+n-s}var v,h;f&&t.call(o)};function Eue(e,t){const{containerEl:n,instance:r}=e[xue],{disabled:o}=kue(e,r);o||0===n.clientHeight||(n.scrollHeight<=n.clientHeight?t.call(r):Sue(e))}const Oue={async mounted(e,t){const{instance:n,value:r}=t;g(r)||Nz(xue,"'v-infinite-scroll' binding value must be a function"),await wn();const{delay:o,immediate:l}=kue(e,n),a=Wz(e,!0),i=a===window?document.documentElement:a,s=PM(_ue.bind(null,e,r),o);if(a){if(e[xue]={instance:n,container:a,containerEl:i,delay:o,cb:r,onScroll:s,lastScrollTop:i.scrollTop},l){const t=new MutationObserver(PM(Eue.bind(null,e,r),50));e[xue].observer=t,t.observe(e,{childList:!0,subtree:!0}),Eue(e,r)}a.addEventListener("scroll",s)}},unmounted(e){const{container:t,onScroll:n}=e[xue];null==t||t.removeEventListener("scroll",n),Sue(e)},async updated(e){if(e[xue]){const{containerEl:t,cb:n,observer:r}=e[xue];t.clientHeight&&r&&Eue(e,n)}else await wn()}},Mue=Oue;Mue.install=e=>{e.directive("InfiniteScroll",Mue)};const zue=Mue;let Tue;const Aue=function(e={}){if(!Xi)return;const t=Lue(e);if(t.fullscreen&&Tue)return Tue;const n=function(e){let t;const n=Wt(!1),r=zt({...e,originalPosition:"",originalOverflow:"",visible:!1});function o(){var e,t;null==(t=null==(e=s.$el)?void 0:e.parentNode)||t.removeChild(s.$el)}function l(){if(!n.value)return;const e=r.parent;n.value=!1,e.vLoadingAddClassList=void 0,function(){const e=r.parent,t=s.ns;if(!e.vLoadingAddClassList){let n=e.getAttribute("loading-number");n=Number.parseInt(n)-1,n?e.setAttribute("loading-number",n.toString()):(Hz(e,t.bm("parent","relative")),e.removeAttribute("loading-number")),Hz(e,t.bm("parent","hidden"))}o(),i.unmount()}()}const a=wr({name:"ElLoading",setup(e,{expose:t}){const{ns:n,zIndex:o}=jG("loading");return t({ns:n,zIndex:o}),()=>{const e=r.spinner||r.svg,t=la("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...e?{innerHTML:e}:{}},[la("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),o=r.text?la("p",{class:n.b("text")},[r.text]):void 0;return la(La,{name:n.b("fade"),onAfterLeave:l},{default:Bn((()=>[ir(Ol("div",{style:{backgroundColor:r.background||""},class:[n.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[la("div",{class:n.b("spinner")},[t,o])]),[[wi,r.visible]])]))})}}}),i=zi(a),s=i.mount(document.createElement("div"));return{...en(r),setText:function(e){r.text=e},removeElLoadingChild:o,close:function(){var o;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(l,400),r.visible=!1,null==(o=e.closed)||o.call(e))},handleAfterLeave:l,vm:s,get $el(){return s.$el}}}({...t,closed:()=>{var e;null==(e=t.closed)||e.call(t),t.fullscreen&&(Tue=void 0)}});Iue(t,t.parent,n),Rue(t,t.parent,n),t.parent.vLoadingAddClassList=()=>Rue(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r=r?`${Number.parseInt(r)+1}`:"1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),wn((()=>n.visible.value=t.visible)),t.fullscreen&&(Tue=n),n},Lue=e=>{var t,n,r,o;let l;return l=y(e.target)?null!=(t=document.querySelector(e.target))?t:document.body:e.target||document.body,{parent:l===document.body||e.body?document.body:l,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:l===document.body&&(null==(n=e.fullscreen)||n),lock:null!=(r=e.lock)&&r,customClass:e.customClass||"",visible:null==(o=e.visible)||o,target:l}},Iue=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=Dz(document.body,"position"),n.originalOverflow.value=Dz(document.body,"overflow"),o.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Dz(document.body,"position"),await wn();for(const t of["top","left"]){const n="top"===t?"scrollTop":"scrollLeft";o[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]-Number.parseInt(Dz(document.body,`margin-${t}`),10)+"px"}for(const t of["height","width"])o[t]=`${e.target.getBoundingClientRect()[t]}px`}else n.originalPosition.value=Dz(t,"position");for(const[l,a]of Object.entries(o))n.$el.style[l]=a},Rue=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Hz(t,r.bm("parent","relative")):Bz(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Bz(t,r.bm("parent","hidden")):Hz(t,r.bm("parent","hidden"))},Pue=Symbol("ElLoading"),Nue=(e,t)=>{var n,r,o,l;const a=t.instance,i=e=>w(t.value)?t.value[e]:void 0,s=t=>(e=>{const t=y(e)&&(null==a?void 0:a[e])||e;return t?Wt(t):t})(i(t)||e.getAttribute(`element-loading-${I(t)}`)),u=null!=(n=i("fullscreen"))?n:t.modifiers.fullscreen,c={text:s("text"),svg:s("svg"),svgViewBox:s("svgViewBox"),spinner:s("spinner"),background:s("background"),customClass:s("customClass"),fullscreen:u,target:null!=(r=i("target"))?r:u?void 0:e,body:null!=(o=i("body"))?o:t.modifiers.body,lock:null!=(l=i("lock"))?l:t.modifiers.lock};e[Pue]={options:c,instance:Aue(c)}},jue={mounted(e,t){t.value&&Nue(e,t)},updated(e,t){const n=e[Pue];t.oldValue!==t.value&&(t.value&&!t.oldValue?Nue(e,t):t.value&&t.oldValue?w(t.value)&&((e,t)=>{for(const n of Object.keys(t))Ft(t[n])&&(t[n].value=e[n])})(t.value,n.options):null==n||n.instance.close())},unmounted(e){var t;null==(t=e[Pue])||t.instance.close()}},Vue={install(e){e.directive("loading",jue),e.config.globalProperties.$loading=Aue},directive:jue,service:Aue},Bue=["success","info","warning","error"],Hue={customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Xi?document.body:void 0},Due=fK({customClass:{type:String,default:Hue.customClass},center:{type:Boolean,default:Hue.center},dangerouslyUseHTMLString:{type:Boolean,default:Hue.dangerouslyUseHTMLString},duration:{type:Number,default:Hue.duration},icon:{type:vK,default:Hue.icon},id:{type:String,default:Hue.id},message:{type:[String,Object,Function],default:Hue.message},onClose:{type:Function,required:!1},showClose:{type:Boolean,default:Hue.showClose},type:{type:String,values:Bue,default:Hue.type},offset:{type:Number,default:Hue.offset},zIndex:{type:Number,default:Hue.zIndex},grouping:{type:Boolean,default:Hue.grouping},repeatNum:{type:Number,default:Hue.repeatNum}}),$ue=Tt([]),Fue=["id"],Wue=["innerHTML"],Uue=wr({name:"ElMessage"}),Kue=wr({...Uue,props:Due,emits:{destroy:()=>!0},setup(e,{expose:t}){const n=e,{Close:r}=mK,{ns:o,zIndex:l}=jG("message"),{currentZIndex:a,nextZIndex:i}=l,s=Wt(),u=Wt(!1),c=Wt(0);let d;const p=oa((()=>n.type?"error"===n.type?"danger":n.type:"info")),f=oa((()=>{const e=n.type;return{[o.bm("icon",e)]:e&&gK[e]}})),v=oa((()=>n.icon||gK[n.type]||"")),h=oa((()=>(e=>{const{prev:t}=(e=>{const t=$ue.findIndex((t=>t.id===e)),n=$ue[t];let r;return t>0&&(r=$ue[t-1]),{current:n,prev:r}})(e);return t?t.vm.exposed.bottom.value:0})(n.id))),m=oa((()=>{return e=n.id,t=n.offset,($ue.findIndex((t=>t.id===e))>0?20:t)+h.value;var e,t})),g=oa((()=>c.value+m.value)),y=oa((()=>({top:`${m.value}px`,zIndex:a.value})));function b(){0!==n.duration&&({stop:d}=fu((()=>{x()}),n.duration))}function w(){null==d||d()}function x(){u.value=!1}return Nr((()=>{b(),i(),u.value=!0})),nr((()=>n.repeatNum),(()=>{w(),b()})),_c(document,"keydown",(function({code:e}){e===kK.esc&&x()})),hp(s,(()=>{c.value=s.value.getBoundingClientRect().height})),t({visible:u,bottom:g,close:x}),(e,t)=>(vl(),wl(La,{name:Gt(o).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[0]||(t[0]=t=>e.$emit("destroy")),persisted:""},{default:Bn((()=>[ir(El("div",{id:e.id,ref_key:"messageRef",ref:s,class:X([Gt(o).b(),{[Gt(o).m(e.type)]:e.type&&!e.icon},Gt(o).is("center",e.center),Gt(o).is("closable",e.showClose),e.customClass]),style:K(Gt(y)),role:"alert",onMouseenter:w,onMouseleave:b},[e.repeatNum>1?(vl(),wl(Gt(cZ),{key:0,value:e.repeatNum,type:Gt(p),class:X(Gt(o).e("badge"))},null,8,["value","type","class"])):Ll("v-if",!0),Gt(v)?(vl(),wl(Gt(ZG),{key:1,class:X([Gt(o).e("icon"),Gt(f)])},{default:Bn((()=>[(vl(),wl(Yr(Gt(v))))])),_:1},8,["class"])):Ll("v-if",!0),eo(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?(vl(),bl(sl,{key:1},[Ll(" Caution here, message could've been compromised, never use user's input as message "),El("p",{class:X(Gt(o).e("content")),innerHTML:e.message},null,10,Wue)],2112)):(vl(),bl("p",{key:0,class:X(Gt(o).e("content"))},ve(e.message),3))])),e.showClose?(vl(),wl(Gt(ZG),{key:2,class:X(Gt(o).e("closeBtn")),onClick:gi(x,["stop"])},{default:Bn((()=>[Ol(Gt(r))])),_:1},8,["class","onClick"])):Ll("v-if",!0)],46,Fue),[[wi,u.value]])])),_:3},8,["name","onBeforeLeave"]))}});var que=UG(Kue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Yue=1;const Gue=e=>{const t=!e||y(e)||xl(e)||g(e)?{message:e}:e,n={...Hue,...t};if(n.appendTo){if(y(n.appendTo)){let e=document.querySelector(n.appendTo);Tz(e)||(e=document.body),n.appendTo=e}}else n.appendTo=document.body;return n},Jue=(e={},t)=>{if(!Xi)return{close:()=>{}};if(Mz(DG.max)&&$ue.length>=DG.max)return{close:()=>{}};const n=Gue(e);if(n.grouping&&$ue.length){const e=$ue.find((({vnode:e})=>{var t;return(null==(t=e.props)?void 0:t.message)===n.message}));if(e)return e.props.repeatNum+=1,e.props.type=n.type,e.handler}const r=(({appendTo:e,...t},n)=>{const r="message_"+Yue++,o=t.onClose,l=document.createElement("div"),a={...t,id:r,onClose:()=>{null==o||o(),(e=>{const t=$ue.indexOf(e);if(-1===t)return;$ue.splice(t,1);const{handler:n}=e;n.close()})(c)},onDestroy:()=>{Oi(null,l)}},i=Ol(que,a,g(a.message)||xl(a.message)?{default:g(a.message)?a.message:()=>a.message}:null);i.appContext=n||Jue._context,Oi(i,l),e.appendChild(l.firstElementChild);const s=i.component,u={close:()=>{s.exposed.visible.value=!1}},c={id:r,vnode:i,vm:s,handler:u,props:i.component.props};return c})(n,t);return $ue.push(r),r.handler};Bue.forEach((e=>{Jue[e]=(t={},n)=>{const r=Gue(t);return Jue({...r,type:e},n)}})),Jue.closeAll=function(e){for(const t of $ue)e&&e!==t.props.type||t.handler.close()},Jue._context=null;const Xue=wK(Jue,"$message"),Que=wr({name:"ElMessageBox",directives:{TrapFocus:F0},components:{ElButton:XZ,ElFocusTrap:uQ,ElInput:hX,ElOverlay:B8,ElIcon:ZG,...mK},inheritAttrs:!1,props:{buttonSize:{type:String,validator:AK},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:o,size:l}=jG("message-box",oa((()=>e.buttonSize))),{t:a}=n,{nextZIndex:i}=r,s=Wt(!1),u=zt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),c=oa((()=>{const e=u.type;return{[o.bm("icon",e)]:e&&gK[e]}})),d=MY(),p=MY(),f=oa((()=>u.icon||gK[u.type]||"")),v=oa((()=>!!u.message)),h=Wt(),m=Wt(),g=Wt(),y=Wt(),b=Wt(),w=oa((()=>u.confirmButtonClass));nr((()=>u.inputValue),(async t=>{await wn(),"prompt"===e.boxType&&null!==t&&E()}),{immediate:!0}),nr((()=>s.value),(t=>{var n,r;t&&("prompt"!==e.boxType&&(u.autofocus?g.value=null!=(r=null==(n=b.value)?void 0:n.$el)?r:h.value:g.value=h.value),u.zIndex=i()),"prompt"===e.boxType&&(t?wn().then((()=>{var e;y.value&&y.value.$el&&(u.autofocus?g.value=null!=(e=O())?e:h.value:g.value=h.value)})):(u.editorErrorMessage="",u.validateError=!1))}));const x=oa((()=>e.draggable));function C(){s.value&&(s.value=!1,wn((()=>{u.action&&t("action",u.action)})))}UK(h,m,x),Nr((async()=>{await wn(),e.closeOnHashChange&&window.addEventListener("hashchange",C)})),Br((()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",C)}));const k=()=>{e.closeOnClickModal&&_(u.distinguishCancelAndClose?"close":"cancel")},S=kY(k),_=t=>{var n;("prompt"!==e.boxType||"confirm"!==t||E())&&(u.action=t,u.beforeClose?null==(n=u.beforeClose)||n.call(u,t,u,C):C())},E=()=>{if("prompt"===e.boxType){const e=u.inputPattern;if(e&&!e.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;const t=u.inputValidator;if("function"==typeof t){const e=t(u.inputValue);if(!1===e)return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;if("string"==typeof e)return u.editorErrorMessage=e,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},O=()=>{const e=y.value.$refs;return e.input||e.textarea},M=()=>{_("close")};return e.lockScroll&&nq(s),{...en(u),ns:o,overlayEvent:S,visible:s,hasMessage:v,typeClass:c,contentId:d,inputId:p,btnSize:l,iconComponent:f,confirmButtonClasses:w,rootRef:h,focusStartRef:g,headerRef:m,inputRef:y,confirmRef:b,doClose:C,handleClose:M,onCloseRequested:()=>{e.closeOnPressEscape&&M()},handleWrapperClick:k,handleInputEnter:e=>{if("textarea"!==u.inputType)return e.preventDefault(),_("confirm")},handleAction:_,t:a}}}),Zue=["aria-label","aria-describedby"],ece=["aria-label"],tce=["id"];var nce=UG(Que,[["render",function(e,t,n,r,o,l){const a=Kr("el-icon"),i=Kr("close"),s=Kr("el-input"),u=Kr("el-button"),c=Kr("el-focus-trap"),d=Kr("el-overlay");return vl(),wl(La,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=t=>e.$emit("vanish")),persisted:""},{default:Bn((()=>[ir(Ol(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:Bn((()=>[El("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:X(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...t)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...t)),onMousedown:t[9]||(t[9]=(...t)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...t)),onMouseup:t[10]||(t[10]=(...t)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...t))},[Ol(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Bn((()=>[El("div",{ref:"rootRef",class:X([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:K(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=gi((()=>{}),["stop"]))},[null!==e.title&&void 0!==e.title?(vl(),bl("div",{key:0,ref:"headerRef",class:X(e.ns.e("header"))},[El("div",{class:X(e.ns.e("title"))},[e.iconComponent&&e.center?(vl(),wl(a,{key:0,class:X([e.ns.e("status"),e.typeClass])},{default:Bn((()=>[(vl(),wl(Yr(e.iconComponent)))])),_:1},8,["class"])):Ll("v-if",!0),El("span",null,ve(e.title),1)],2),e.showClose?(vl(),bl("button",{key:0,type:"button",class:X(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=bi(gi((t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),["prevent"]),["enter"]))},[Ol(a,{class:X(e.ns.e("close"))},{default:Bn((()=>[Ol(i)])),_:1},8,["class"])],42,ece)):Ll("v-if",!0)],2)):Ll("v-if",!0),El("div",{id:e.contentId,class:X(e.ns.e("content"))},[El("div",{class:X(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(vl(),wl(a,{key:0,class:X([e.ns.e("status"),e.typeClass])},{default:Bn((()=>[(vl(),wl(Yr(e.iconComponent)))])),_:1},8,["class"])):Ll("v-if",!0),e.hasMessage?(vl(),bl("div",{key:1,class:X(e.ns.e("message"))},[eo(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?(vl(),wl(Yr(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(vl(),wl(Yr(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:Bn((()=>[Tl(ve(e.dangerouslyUseHTMLString?"":e.message),1)])),_:1},8,["for"]))]))],2)):Ll("v-if",!0)],2),ir(El("div",{class:X(e.ns.e("input"))},[Ol(s,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=t=>e.inputValue=t),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:X({invalid:e.validateError}),onKeydown:bi(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),El("div",{class:X(e.ns.e("errormsg")),style:K({visibility:e.editorErrorMessage?"visible":"hidden"})},ve(e.editorErrorMessage),7)],2),[[wi,e.showInput]])],10,tce),El("div",{class:X(e.ns.e("btns"))},[e.showCancelButton?(vl(),wl(u,{key:0,loading:e.cancelButtonLoading,class:X([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=t=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=bi(gi((t=>e.handleAction("cancel")),["prevent"]),["enter"]))},{default:Bn((()=>[Tl(ve(e.cancelButtonText||e.t("el.messagebox.cancel")),1)])),_:1},8,["loading","class","round","size"])):Ll("v-if",!0),ir(Ol(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:X([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=t=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=bi(gi((t=>e.handleAction("confirm")),["prevent"]),["enter"]))},{default:Bn((()=>[Tl(ve(e.confirmButtonText||e.t("el.messagebox.confirm")),1)])),_:1},8,["loading","class","round","disabled","size"]),[[wi,e.showConfirmButton]])],2)],6)])),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Zue)])),_:3},8,["z-index","overlay-class","mask"]),[[wi,e.visible]])])),_:3})}],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const rce=new Map,oce=(e,t)=>{const n=document.createElement("div");e.onVanish=()=>{Oi(null,n),rce.delete(o)},e.onAction=t=>{const n=rce.get(o);let l;l=e.showInput?{value:o.inputValue,action:t}:t,e.callback?e.callback(l,r.proxy):"cancel"===t||"close"===t?e.distinguishCancelAndClose&&"cancel"!==t?n.reject("close"):n.reject("cancel"):n.resolve(l)};const r=((e,t,n=null)=>{const r=Ol(nce,e,g(e.message)||xl(e.message)?{default:g(e.message)?e.message:()=>e.message}:null);return r.appContext=n,Oi(r,t),(e=>{let t=document.body;return e.appendTo&&(y(e.appendTo)&&(t=document.querySelector(e.appendTo)),Tz(e.appendTo)&&(t=e.appendTo),Tz(t)||(t=document.body)),t})(e).appendChild(t.firstElementChild),r.component})(e,n,t),o=r.proxy;for(const l in e)d(e,l)&&!d(o.$props,l)&&(o[l]=e[l]);return o.visible=!0,o};function lce(e,t=null){if(!Xi)return Promise.reject();let n;return y(e)||xl(e)?e={message:e}:n=e.callback,new Promise(((r,o)=>{const l=oce(e,null!=t?t:lce._context);rce.set(l,{options:e,callback:n,resolve:r,reject:o})}))}const ace={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};["alert","confirm","prompt"].forEach((e=>{var t;lce[e]=(t=e,(e,n,r,o)=>{let l="";return w(n)?(r=n,l=""):l=Ez(n)?"":n,lce(Object.assign({title:l,message:e,type:"",...ace[t]},r,{boxType:t}),o)})})),lce.close=()=>{rce.forEach(((e,t)=>{t.doClose()})),rce.clear()},lce._context=null;const ice=lce;ice.install=e=>{ice._context=e._context,e.config.globalProperties.$msgbox=ice,e.config.globalProperties.$messageBox=ice,e.config.globalProperties.$alert=ice.alert,e.config.globalProperties.$confirm=ice.confirm,e.config.globalProperties.$prompt=ice.prompt};const sce=ice,uce=["success","info","warning","error"],cce=fK({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:vK},id:{type:String,default:""},message:{type:[String,Object],default:""},offset:{type:Number,default:0},onClick:{type:Function,default:()=>{}},onClose:{type:Function,required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...uce,""],default:""},zIndex:Number}),dce=["id"],pce=["textContent"],fce={key:0},vce=["innerHTML"],hce=wr({name:"ElNotification"}),mce=wr({...hce,props:cce,emits:{destroy:()=>!0},setup(e,{expose:t}){const n=e,{ns:r,zIndex:o}=jG("notification"),{nextZIndex:l,currentZIndex:a}=o,{Close:i}=hK,s=Wt(!1);let u;const c=oa((()=>{const e=n.type;return e&&gK[n.type]?r.m(e):""})),d=oa((()=>n.type&&gK[n.type]||n.icon)),p=oa((()=>n.position.endsWith("right")?"right":"left")),f=oa((()=>n.position.startsWith("top")?"top":"bottom")),v=oa((()=>{var e;return{[f.value]:`${n.offset}px`,zIndex:null!=(e=n.zIndex)?e:a.value}}));function h(){n.duration>0&&({stop:u}=fu((()=>{s.value&&g()}),n.duration))}function m(){null==u||u()}function g(){s.value=!1}return Nr((()=>{h(),l(),s.value=!0})),_c(document,"keydown",(function({code:e}){e===kK.delete||e===kK.backspace?m():e===kK.esc?s.value&&g():h()})),t({visible:s,close:g}),(e,t)=>(vl(),wl(La,{name:Gt(r).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[1]||(t[1]=t=>e.$emit("destroy")),persisted:""},{default:Bn((()=>[ir(El("div",{id:e.id,class:X([Gt(r).b(),e.customClass,Gt(p)]),style:K(Gt(v)),role:"alert",onMouseenter:m,onMouseleave:h,onClick:t[0]||(t[0]=(...t)=>e.onClick&&e.onClick(...t))},[Gt(d)?(vl(),wl(Gt(ZG),{key:0,class:X([Gt(r).e("icon"),Gt(c)])},{default:Bn((()=>[(vl(),wl(Yr(Gt(d))))])),_:1},8,["class"])):Ll("v-if",!0),El("div",{class:X(Gt(r).e("group"))},[El("h2",{class:X(Gt(r).e("title")),textContent:ve(e.title)},null,10,pce),ir(El("div",{class:X(Gt(r).e("content")),style:K(e.title?void 0:{margin:0})},[eo(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?(vl(),bl(sl,{key:1},[Ll(" Caution here, message could've been compromised, never use user's input as message "),El("p",{innerHTML:e.message},null,8,vce)],2112)):(vl(),bl("p",fce,ve(e.message),1))]))],6),[[wi,e.message]]),e.showClose?(vl(),wl(Gt(ZG),{key:0,class:X(Gt(r).e("closeBtn")),onClick:gi(g,["stop"])},{default:Bn((()=>[Ol(Gt(i))])),_:1},8,["class","onClick"])):Ll("v-if",!0)],2)],46,dce),[[wi,s.value]])])),_:3},8,["name","onBeforeLeave"]))}});var gce=UG(mce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const yce={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]};let bce=1;const wce=function(e={},t=null){if(!Xi)return{close:()=>{}};("string"==typeof e||xl(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;yce[n].forEach((({vm:e})=>{var t;r+=((null==(t=e.el)?void 0:t.offsetHeight)||0)+16})),r+=16;const o="notification_"+bce++,l=e.onClose,a={...e,offset:r,id:o,onClose:()=>{!function(e,t,n){const r=yce[t],o=r.findIndex((({vm:t})=>{var n;return(null==(n=t.component)?void 0:n.props.id)===e}));if(-1===o)return;const{vm:l}=r[o];if(!l)return;null==n||n(l);const a=l.el.offsetHeight,i=t.split("-")[0];r.splice(o,1);const s=r.length;if(!(s<1))for(let u=o;ua.message}:null);return u.appContext=null!=t?t:wce._context,u.props.onDestroy=()=>{Oi(null,s)},Oi(u,s),yce[n].push({vm:u}),i.appendChild(s.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};uce.forEach((e=>{wce[e]=(t={})=>(("string"==typeof t||xl(t))&&(t={message:t}),wce({...t,type:e}))})),wce.closeAll=function(){for(const e of Object.values(yce))e.forEach((({vm:e})=>{e.component.exposed.visible.value=!1}))},wce._context=null;var xce=((e=[])=>({version:"2.3.6",install:(t,n)=>{t[MK]||(t[MK]=!0,e.forEach((e=>t.use(e))),n&&VG(n,t,!0))}}))([...wue,zue,Vue,Xue,sce,wK(wce,"$notify"),Jee]);const Cce={},kce=function(e,t,n){if(!t||0===t.length)return e();const r=document.getElementsByTagName("link");return Promise.all(t.map((e=>{if((e=new URL(e,n).href)in Cce)return;Cce[e]=!0;const t=e.endsWith(".css"),o=t?'[rel="stylesheet"]':"";if(n)for(let n=r.length-1;n>=0;n--){const o=r[n];if(o.href===e&&(!t||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${e}"]${o}`))return;const l=document.createElement("link");return l.rel=t?"stylesheet":"modulepreload",t||(l.as="script",l.crossOrigin=""),l.href=e,document.head.appendChild(l),t?new Promise(((t,n)=>{l.addEventListener("load",t),l.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${e}`))))})):void 0}))).then((()=>e()))},Sce="undefined"!=typeof window,_ce=Object.assign;function Ece(e,t){const n={};for(const r in t){const o=t[r];n[r]=Mce(o)?o.map(e):e(o)}return n}const Oce=()=>{},Mce=Array.isArray,zce=/\/$/;function Tce(e,t,n="/"){let r,o={},l="",a="";const i=t.indexOf("#");let s=t.indexOf("?");return i=0&&(s=-1),s>-1&&(r=t.slice(0,s),l=t.slice(s+1,i>-1?i:t.length),o=e(l)),i>-1&&(r=r||t.slice(0,i),a=t.slice(i,t.length)),r=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];".."!==o&&"."!==o||r.push("");let l,a,i=n.length-1;for(l=0;l1&&i--}return n.slice(0,i).join("/")+"/"+r.slice(l-(l===r.length?1:0)).join("/")}(null!=r?r:t,n),{fullPath:r+(l&&"?")+l+a,path:r,query:o,hash:a}}function Ace(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Lce(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ice(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Rce(e[n],t[n]))return!1;return!0}function Rce(e,t){return Mce(e)?Pce(e,t):Mce(t)?Pce(t,e):e===t}function Pce(e,t){return Mce(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var Nce,jce;!function(e){e.pop="pop",e.push="push"}(Nce||(Nce={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(jce||(jce={}));const Vce=/^[^#]+#/;function Bce(e,t){return e.replace(Vce,"#")+t}const Hce=()=>({left:window.pageXOffset,top:window.pageYOffset});function Dce(e,t){return(history.state?history.state.position-t:-1)+e}const $ce=new Map;function Fce(e,t){const{pathname:n,search:r,hash:o}=t,l=e.indexOf("#");if(l>-1){let t=o.includes(e.slice(l))?e.slice(l).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),Ace(n,"")}return Ace(n,e)+r+o}function Wce(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Hce():null}}function Uce(e){return"string"==typeof e||"symbol"==typeof e}const Kce={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},qce=Symbol("");var Yce;function Gce(e,t){return _ce(new Error,{type:e,[qce]:!0},t)}function Jce(e,t){return e instanceof Error&&qce in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(Yce||(Yce={}));const Xce="[^/]+?",Qce={sensitive:!1,strict:!1,start:!0,end:!0},Zce=/[.+*?^${}()[\]/\\]/g;function ede(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function tde(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const rde={type:0,value:""},ode=/[a-zA-Z0-9_]/;function lde(e,t,n){const r=function(e,t){const n=_ce({},Qce,t),r=[];let o=n.start?"^":"";const l=[];for(const s of e){const e=s.length?[]:[90];n.strict&&!s.length&&(o+="/");for(let t=0;t1&&("*"===i||"+"===i)&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:u,regexp:c,repeatable:"*"===i||"+"===i,optional:"*"===i||"?"===i})):t("Invalid state to consume buffer"),u="")}function p(){u+=i}for(;s_ce(e,t.meta)),{})}function cde(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function dde(e,t){return t.children.some((t=>t===e||dde(e,t)))}const pde=/#/g,fde=/&/g,vde=/\//g,hde=/=/g,mde=/\?/g,gde=/\+/g,yde=/%5B/g,bde=/%5D/g,wde=/%5E/g,xde=/%60/g,Cde=/%7B/g,kde=/%7C/g,Sde=/%7D/g,_de=/%20/g;function Ede(e){return encodeURI(""+e).replace(kde,"|").replace(yde,"[").replace(bde,"]")}function Ode(e){return Ede(e).replace(gde,"%2B").replace(_de,"+").replace(pde,"%23").replace(fde,"%26").replace(xde,"`").replace(Cde,"{").replace(Sde,"}").replace(wde,"^")}function Mde(e){return null==e?"":(t=e,Ede(t).replace(pde,"%23").replace(mde,"%3F")).replace(vde,"%2F");var t}function zde(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Tde(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let r=0;re&&Ode(e))):[r&&Ode(r)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Lde(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=Mce(r)?r.map((e=>null==e?null:""+e)):null==r?r:""+r)}return t}const Ide=Symbol(""),Rde=Symbol(""),Pde=Symbol(""),Nde=Symbol(""),jde=Symbol("");function Vde(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e,reset:function(){e=[]}}}function Bde(e,t,n,r,o){const l=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise(((a,i)=>{const s=e=>{var s;!1===e?i(Gce(4,{from:n,to:t})):e instanceof Error?i(e):"string"==typeof(s=e)||s&&"object"==typeof s?i(Gce(2,{from:t,to:e})):(l&&r.enterCallbacks[o]===l&&"function"==typeof e&&l.push(e),a())},u=e.call(r&&r.instances[o],t,n,s);let c=Promise.resolve(u);e.length<3&&(c=c.then(s)),c.catch((e=>i(e)))}))}function Hde(e,t,n,r){const o=[];for(const l of e)for(const e in l.components){let a=l.components[e];if("beforeRouteEnter"===t||l.instances[e])if(Dde(a)){const i=(a.__vccOpts||a)[t];i&&o.push(Bde(i,n,r,l,e))}else{let i=a();o.push((()=>i.then((o=>{if(!o)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${l.path}"`));const a=(i=o).__esModule||"Module"===i[Symbol.toStringTag]?o.default:o;var i;l.components[e]=a;const s=(a.__vccOpts||a)[t];return s&&Bde(s,n,r,l,e)()}))))}}return o}function Dde(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function $de(e){const t=zo(Pde),n=zo(Nde),r=oa((()=>t.resolve(Gt(e.to)))),o=oa((()=>{const{matched:e}=r.value,{length:t}=e,o=e[t-1],l=n.matched;if(!o||!l.length)return-1;const a=l.findIndex(Lce.bind(null,o));if(a>-1)return a;const i=Wde(e[t-2]);return t>1&&Wde(o)===i&&l[l.length-1].path!==i?l.findIndex(Lce.bind(null,e[t-2])):a})),l=oa((()=>o.value>-1&&function(e,t){for(const n in t){const r=t[n],o=e[n];if("string"==typeof r){if(r!==o)return!1}else if(!Mce(o)||o.length!==r.length||r.some(((e,t)=>e!==o[t])))return!1}return!0}(n.params,r.value.params))),a=oa((()=>o.value>-1&&o.value===n.matched.length-1&&Ice(n.params,r.value.params)));return{route:r,href:oa((()=>r.value.href)),isActive:l,isExactActive:a,navigate:function(n={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(n)?t[Gt(e.replace)?"replace":"push"](Gt(e.to)).catch(Oce):Promise.resolve()}}}const Fde=wr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:$de,setup(e,{slots:t}){const n=zt($de(e)),{options:r}=zo(Pde),o=oa((()=>({[Ude(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ude(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const r=t.default&&t.default(n);return e.custom?r:la("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}});function Wde(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ude=(e,t,n)=>null!=e?e:null!=t?t:n,Kde=wr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=zo(jde),o=oa((()=>e.route||r.value)),l=zo(Rde,0),a=oa((()=>{let e=Gt(l);const{matched:t}=o.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),i=oa((()=>o.value.matched[a.value]));Mo(Rde,oa((()=>a.value+1))),Mo(Ide,i),Mo(jde,o);const s=Wt();return nr((()=>[s.value,i.value,e.name]),(([e,t,n],[r,o,l])=>{t&&(t.instances[n]=e,o&&o!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),t.updateGuards.size||(t.updateGuards=o.updateGuards))),!e||!t||o&&Lce(t,o)&&r||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const r=o.value,l=e.name,a=i.value,u=a&&a.components[l];if(!u)return qde(n.default,{Component:u,route:r});const c=a.props[l],d=c?!0===c?r.params:"function"==typeof c?c(r):c:null,p=la(u,_ce({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[l]=null)},ref:s}));return qde(n.default,{Component:p,route:r})||p}}});function qde(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Yde=Kde;function Gde(){return zo(Pde)}function Jde(){return zo(Nde)}const Xde=function(e){const t=function(e,t){const n=[],r=new Map;function o(e,n,r){const i=!r,s={path:(u=e).path,redirect:u.redirect,name:u.name,meta:u.meta||{},aliasOf:void 0,beforeEnter:u.beforeEnter,props:ide(u),children:u.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in u?u.components||null:u.component&&{default:u.component}};var u;s.aliasOf=r&&r.record;const c=cde(t,e),d=[s];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)d.push(_ce({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s}))}let p,f;for(const t of d){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&r+u)}if(p=lde(t,n,c),r?r.alias.push(p):(f=f||p,f!==p&&f.alias.push(p),i&&e.name&&!sde(p)&&l(e.name)),s.children){const e=s.children;for(let t=0;t{l(f)}:Oce}function l(e){if(Uce(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(l),t.alias.forEach(l))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(l),e.alias.forEach(l))}}function a(e){let t=0;for(;t=0&&(e.record.path!==n[t].record.path||!dde(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!sde(e)&&r.set(e.record.name,e)}return t=cde({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>o(e))),{addRoute:o,resolve:function(e,t){let o,l,a,i={};if("name"in e&&e.name){if(o=r.get(e.name),!o)throw Gce(1,{location:e});a=o.record.name,i=_ce(ade(t.params,o.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params&&ade(e.params,o.keys.map((e=>e.name)))),l=o.stringify(i)}else if("path"in e)l=e.path,o=n.find((e=>e.re.test(l))),o&&(i=o.parse(l),a=o.record.name);else{if(o=t.name?r.get(t.name):n.find((e=>e.re.test(t.path))),!o)throw Gce(1,{location:e,currentLocation:t});a=o.record.name,i=_ce({},t.params,e.params),l=o.stringify(i)}const s=[];let u=o;for(;u;)s.unshift(u.record),u=u.parent;return{name:a,path:l,params:i,matched:s,meta:ude(s)}},removeRoute:l,getRoutes:function(){return n},getRecordMatcher:function(e){return r.get(e)}}}(e.routes,e),n=e.parseQuery||Tde,r=e.stringifyQuery||Ade,o=e.history,l=Vde(),a=Vde(),i=Vde(),s=Ut(Kce);let u=Kce;Sce&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Ece.bind(null,(e=>""+e)),d=Ece.bind(null,Mde),p=Ece.bind(null,zde);function f(e,l){if(l=_ce({},l||s.value),"string"==typeof e){const r=Tce(n,e,l.path),a=t.resolve({path:r.path},l),i=o.createHref(r.fullPath);return _ce(r,a,{params:p(a.params),hash:zde(r.hash),redirectedFrom:void 0,href:i})}let a;if("path"in e)a=_ce({},e,{path:Tce(n,e.path,l.path).path});else{const t=_ce({},e.params);for(const e in t)null==t[e]&&delete t[e];a=_ce({},e,{params:d(t)}),l.params=d(l.params)}const i=t.resolve(a,l),u=e.hash||"";i.params=c(p(i.params));const f=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(r,_ce({},e,{hash:(v=u,Ede(v).replace(Cde,"{").replace(Sde,"}").replace(wde,"^")),path:i.path}));var v;const h=o.createHref(f);return _ce({fullPath:f,hash:u,query:r===Ade?Lde(e.query):e.query||{}},i,{redirectedFrom:void 0,href:h})}function v(e){return"string"==typeof e?Tce(n,e,s.value.path):_ce({},e)}function h(e,t){if(u!==e)return Gce(8,{from:t,to:e})}function m(e){return y(e)}function g(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let r="function"==typeof n?n(e):n;return"string"==typeof r&&(r=r.includes("?")||r.includes("#")?r=v(r):{path:r},r.params={}),_ce({query:e.query,hash:e.hash,params:"path"in r?{}:e.params},r)}}function y(e,t){const n=u=f(e),o=s.value,l=e.state,a=e.force,i=!0===e.replace,c=g(n);if(c)return y(_ce(v(c),{state:"object"==typeof c?_ce({},l,c.state):l,force:a,replace:i}),t||n);const d=n;let p;return d.redirectedFrom=t,!a&&function(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Lce(t.matched[r],n.matched[o])&&Ice(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(r,o,n)&&(p=Gce(16,{to:d,from:o}),T(o,o,!0,!1)),(p?Promise.resolve(p):x(d,o)).catch((e=>Jce(e)?Jce(e,2)?e:z(e):M(e,d,o))).then((e=>{if(e){if(Jce(e,2))return y(_ce({replace:i},v(e.to),{state:"object"==typeof e.to?_ce({},l,e.to.state):l,force:a}),t||d)}else e=k(d,o,!0,i,l);return C(d,o,e),e}))}function b(e,t){const n=h(e,t);return n?Promise.reject(n):Promise.resolve()}function w(e){const t=I.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function x(e,t){let n;const[r,o,i]=function(e,t){const n=[],r=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let a=0;aLce(e,l)))?r.push(l):n.push(l));const i=e.matched[a];i&&(t.matched.find((e=>Lce(e,i)))||o.push(i))}return[n,r,o]}(e,t);n=Hde(r.reverse(),"beforeRouteLeave",e,t);for(const l of r)l.leaveGuards.forEach((r=>{n.push(Bde(r,e,t))}));const s=b.bind(null,e,t);return n.push(s),P(n).then((()=>{n=[];for(const r of l.list())n.push(Bde(r,e,t));return n.push(s),P(n)})).then((()=>{n=Hde(o,"beforeRouteUpdate",e,t);for(const r of o)r.updateGuards.forEach((r=>{n.push(Bde(r,e,t))}));return n.push(s),P(n)})).then((()=>{n=[];for(const r of e.matched)if(r.beforeEnter&&!t.matched.includes(r))if(Mce(r.beforeEnter))for(const o of r.beforeEnter)n.push(Bde(o,e,t));else n.push(Bde(r.beforeEnter,e,t));return n.push(s),P(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Hde(i,"beforeRouteEnter",e,t),n.push(s),P(n)))).then((()=>{n=[];for(const r of a.list())n.push(Bde(r,e,t));return n.push(s),P(n)})).catch((e=>Jce(e,8)?e:Promise.reject(e)))}function C(e,t,n){for(const r of i.list())w((()=>r(e,t,n)))}function k(e,t,n,r,l){const a=h(e,t);if(a)return a;const i=t===Kce,u=Sce?history.state:{};n&&(r||i?o.replace(e.fullPath,_ce({scroll:i&&u&&u.scroll},l)):o.push(e.fullPath,l)),s.value=e,T(e,t,n,i),z()}let S;let _,E=Vde(),O=Vde();function M(e,t,n){z(e);const r=O.list();return r.length&&r.forEach((r=>r(e,t,n))),Promise.reject(e)}function z(e){return _||(_=!e,S||(S=o.listen(((e,t,n)=>{if(!R.listening)return;const r=f(e),l=g(r);if(l)return void y(_ce(l,{replace:!0}),r).catch(Oce);u=r;const a=s.value;var i,c;Sce&&(i=Dce(a.fullPath,n.delta),c=Hce(),$ce.set(i,c)),x(r,a).catch((e=>Jce(e,12)?e:Jce(e,2)?(y(e.to,r).then((e=>{Jce(e,20)&&!n.delta&&n.type===Nce.pop&&o.go(-1,!1)})).catch(Oce),Promise.reject()):(n.delta&&o.go(-n.delta,!1),M(e,r,a)))).then((e=>{(e=e||k(r,a,!1))&&(n.delta&&!Jce(e,8)?o.go(-n.delta,!1):n.type===Nce.pop&&Jce(e,20)&&o.go(-1,!1)),C(r,a,e)})).catch(Oce)}))),E.list().forEach((([t,n])=>e?n(e):t())),E.reset()),e}function T(t,n,r,o){const{scrollBehavior:l}=e;if(!Sce||!l)return Promise.resolve();const a=!r&&function(e){const t=$ce.get(e);return $ce.delete(e),t}(Dce(t.fullPath,0))||(o||!r)&&history.state&&history.state.scroll||null;return wn().then((()=>l(t,n,a))).then((e=>e&&function(e){let t;if("el"in e){const n=e.el,r="string"==typeof n&&n.startsWith("#"),o="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}(e))).catch((e=>M(e,t,n)))}const A=e=>o.go(e);let L;const I=new Set,R={currentRoute:s,listening:!0,addRoute:function(e,n){let r,o;return Uce(e)?(r=t.getRecordMatcher(e),o=n):o=e,t.addRoute(o,r)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:f,options:e,push:m,replace:function(e){return m(_ce(v(e),{replace:!0}))},go:A,back:()=>A(-1),forward:()=>A(1),beforeEach:l.add,beforeResolve:a.add,afterEach:i.add,onError:O.add,isReady:function(){return _&&s.value!==Kce?Promise.resolve():new Promise(((e,t)=>{E.add([e,t])}))},install(e){e.component("RouterLink",Fde),e.component("RouterView",Yde),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Gt(s)}),Sce&&!L&&s.value===Kce&&(L=!0,m(o.location).catch((e=>{})));const t={};for(const r in Kce)t[r]=oa((()=>s.value[r]));e.provide(Pde,this),e.provide(Nde,zt(t)),e.provide(jde,s);const n=e.unmount;I.add(e),e.unmount=function(){I.delete(e),I.size<1&&(u=Kce,S&&S(),S=null,s.value=Kce,L=!1,_=!1),n()}}};function P(e){return e.reduce(((e,t)=>e.then((()=>w(t)))),Promise.resolve())}return R}({history:((Qde=location.host?Qde||location.pathname+location.search:"").includes("#")||(Qde+="#"),function(e){const t=function(e){const{history:t,location:n}=window,r={value:Fce(e,n)},o={value:t.state};function l(r,l,a){const i=e.indexOf("#"),s=i>-1?(n.host&&document.querySelector("base")?e:e.slice(i))+r:location.protocol+"//"+location.host+e+r;try{t[a?"replaceState":"pushState"](l,"",s),o.value=l}catch(u){n[a?"replace":"assign"](s)}}return o.value||l(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:o,push:function(e,n){const a=_ce({},o.value,t.state,{forward:e,scroll:Hce()});l(a.current,a,!0),l(e,_ce({},Wce(r.value,e,null),{position:a.position+1},n),!1),r.value=e},replace:function(e,n){l(e,_ce({},t.state,Wce(o.value.back,e,o.value.forward,!0),n,{position:o.value.position}),!0),r.value=e}}}(e=function(e){if(!e)if(Sce){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),(e=>e.replace(zce,""))(e)}(e)),n=function(e,t,n,r){let o=[],l=[],a=null;const i=({state:l})=>{const i=Fce(e,location),s=n.value,u=t.value;let c=0;if(l){if(n.value=i,t.value=l,a&&a===s)return void(a=null);c=u?l.position-u.position:0}else r(i);o.forEach((e=>{e(n.value,s,{delta:c,type:Nce.pop,direction:c?c>0?jce.forward:jce.back:jce.unknown})}))};function s(){const{history:e}=window;e.state&&e.replaceState(_ce({},e.state,{scroll:Hce()}),"")}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:function(){a=n.value},listen:function(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return l.push(t),t},destroy:function(){for(const e of l)e();l=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",s)}}}(e,t.state,t.location,t.replace),r=_ce({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:Bce.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}(Qde)),routes:[{path:"/",name:"index",redirect:"/home",component:()=>kce((()=>import("./index-a95b2668.js")),["./index-a95b2668.js","./index-4335e24a.css"],import.meta.url),children:[{path:"/home",name:"home",component:()=>kce((()=>import("./HomeView-b4da75f2.js")),["./HomeView-b4da75f2.js","./HomeView-0670d773.css"],import.meta.url)}]},{path:"/antv",name:"antv",redirect:"/demo",component:()=>kce((()=>import("./index-a95b2668.js")),["./index-a95b2668.js","./index-4335e24a.css"],import.meta.url),children:[{path:"demo",name:"demo",meta:{title:"x6拖拽demo"},component:()=>kce((()=>import("./AntvDemo-a4e1863e.js")),["./AntvDemo-a4e1863e.js","./AntvDemo-9645014a.css"],import.meta.url)},{path:"problem",name:"problem",meta:{title:"常见问题"},component:()=>kce((()=>import("./AntvProblem-e82d1272.js")),["./AntvProblem-e82d1272.js","./AntvProblem-6f60ebac.css"],import.meta.url)}]},{path:"/element",name:"element",redirect:"/config",component:()=>kce((()=>import("./index-a95b2668.js")),["./index-a95b2668.js","./index-4335e24a.css"],import.meta.url),children:[{path:"config",name:"config",meta:{title:"elementPlus 配置"},component:()=>kce((()=>import("./ElementConfig-515dad6a.js")),[],import.meta.url)}]},{path:"/editor",name:"editor",redirect:"/editor",component:()=>kce((()=>import("./index-a95b2668.js")),["./index-a95b2668.js","./index-4335e24a.css"],import.meta.url),children:[{path:"/editor",name:"editor",component:()=>kce((()=>import("./index-8027a4c8.js").then((e=>e.i))),["./index-8027a4c8.js","./index-e3156159.css"],import.meta.url)}]},{path:"/login",name:"login",component:()=>kce((()=>import("./LoginView-eb17913e.js")),[],import.meta.url)},{path:"/:pathMatch(.*)*",component:()=>kce((()=>import("./404-36998c71.js")),["./404-36998c71.js","./404-39741891.css"],import.meta.url),hidden:!0},{path:"/401",component:()=>kce((()=>import("./401-fe355076.js")),["./401-fe355076.js","./401-f5de1683.css"],import.meta.url),hidden:!0}],scrollBehavior:(e,t,n)=>n||{top:0}});var Qde,Zde={exports:{}};Zde.exports=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
    '};function o(e,t,n){return en?n:e}function l(e){return 100*(-1+e)}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=o(e,r.minimum,1),n.status=1===e?null:e;var s=n.render(!t),u=s.querySelector(r.barSelector),c=r.speed,d=r.easing;return s.offsetWidth,a((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),i(u,function(e,t,n){var o;return(o="translate3d"===r.positionUsing?{transform:"translate3d("+l(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+l(e)+"%,0)"}:{"margin-left":l(e)+"%"}).transition="all "+t+"ms "+n,o}(e,c,d)),1===e?(i(s,{transition:"none",opacity:1}),s.offsetWidth,setTimeout((function(){i(s,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),c)}),c)):setTimeout(t,c)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*o(Math.random()*t,.1,.95)),t=o(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var o,a=t.querySelector(r.barSelector),s=e?"-100":l(n.status||0),c=document.querySelector(r.parent);return i(a,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),r.showSpinner||(o=t.querySelector(r.spinnerSelector))&&p(o),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var a=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),i=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n){return n=function(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}(n),t[n]||(t[n]=function(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,l=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+l)in n)return r;return t}(n))}function r(e,t,r){t=n(t),e.style[t]=r}return function(e,t){var n,o,l=arguments;if(2==l.length)for(n in t)void 0!==(o=t[n])&&t.hasOwnProperty(n)&&r(e,n,o);else r(e,l[1],l[2])}}();function s(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=d(e),r=n+t;s(n,t)||(e.className=r.substring(1))}function c(e,t){var n,r=d(e);s(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n}();const epe=e0(Zde.exports),tpe=["/login","/antv/demo","/antv/problem","/home","/element/config","/editor"];epe.configure({showSpinner:!0}),Xde.beforeEach(((e,t,n)=>{if(epe.start(),tpe.includes(e.path))return n()})),Xde.afterEach((()=>{epe.done()}));var npe={},rpe={};Object.defineProperty(rpe,"__esModule",{value:!0});const ope=e=>"fixed"!==getComputedStyle(e).position&&null!==e.offsetParent,lpe=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},ape=e=>!e.getAttribute("aria-owns");rpe.attemptFocus=e=>{var t;return!!lpe(e)&&(null==(t=e.focus)||t.call(e),document.activeElement===e)},rpe.focusNode=e=>{e&&(e.focus(),!ape(e)&&e.click())},rpe.getSibling=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const o=r.querySelectorAll(n);return o[Array.prototype.indexOf.call(o,e)+t]||null},rpe.isFocusable=lpe,rpe.isLeaf=ape,rpe.isVisible=ope,rpe.obtainAllFocusableElements=e=>Array.from(e.querySelectorAll('a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])')).filter((e=>lpe(e)&&ope(e))),rpe.triggerEvent=function(e,t,...n){let r;r=t.includes("mouse")||t.includes("click")?"MouseEvents":t.includes("key")?"KeyboardEvent":"HTMLEvents";const o=document.createEvent(r);return o.initEvent(t,...n),e.dispatchEvent(o),e};var ipe={};Object.defineProperty(ipe,"__esModule",{value:!0}),ipe.composeEventHandlers=(e,t,{checkForDefaultPrevented:n=!0}={})=>r=>{const o=null==e?void 0:e(r);if(!1===n||!o)return null==t?void 0:t(r)},ipe.whenMouse=e=>t=>"mouse"===t.pointerType?e(t):void 0;var spe={};const upe=t0(uh);Object.defineProperty(spe,"__esModule",{value:!0});var cpe=upe;const dpe=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t};spe.getClientXY=e=>{let t,n;return"touchend"===e.type?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},spe.getOffsetTop=dpe,spe.getOffsetTopDistance=(e,t)=>Math.abs(dpe(e)-dpe(t)),spe.isInContainer=(e,t)=>{if(!cpe.isClient||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return r=t instanceof Element?t.getBoundingClientRect():{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.topr.top&&n.right>r.left&&n.left"boolean"==typeof e,e.isElement=e=>"undefined"!=typeof Element&&e instanceof Element,e.isEmpty=e=>!e&&0!==e||t.isArray(e)&&0===e.length||t.isObject(e)&&!Object.keys(e).length,e.isNumber=e=>"number"==typeof e,e.isPropAbsent=e=>n.isNil(e),e.isStringNumber=e=>!!t.isString(e)&&!Number.isNaN(Number(e)),e.isUndefined=e=>void 0===e}(vpe);var ype={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=mpe,n=hpe;Object.defineProperty(e,"hasOwn",{enumerable:!0,get:function(){return n.hasOwn}}),e.entriesOf=e=>Object.entries(e),e.getProp=(e,n,r)=>({get value(){return t.get(e,n,r)},set value(r){t.set(e,n,r)}}),e.keysOf=e=>Object.keys(e)}(ype);var bpe={};Object.defineProperty(bpe,"__esModule",{value:!0});class wpe extends Error{constructor(e){super(e),this.name="ElementPlusError"}}bpe.debugWarn=function(e,t){},bpe.throwError=function(e,t){throw new wpe(`[${e}] ${t}`)},Object.defineProperty(fpe,"__esModule",{value:!0});var xpe=vpe,Cpe=ype,kpe=bpe,Spe=upe,_pe=hpe;const Epe=(e="")=>e.split(" ").filter((e=>!!e.trim())),Ope=(e,t,n)=>{if(e&&t)if(_pe.isObject(t))Cpe.entriesOf(t).forEach((([t,n])=>Ope(e,t,n)));else{const r=_pe.camelize(t);e.style[r]=n}},Mpe=(e,t)=>{e&&t&&(_pe.isObject(t)?Cpe.keysOf(t).forEach((t=>Mpe(e,t))):Ope(e,t,""))};fpe.addClass=(e,t)=>{e&&t.trim()&&e.classList.add(...Epe(t))},fpe.addUnit=function(e,t="px"){return e?xpe.isNumber(e)||xpe.isStringNumber(e)?`${e}${t}`:_pe.isString(e)?e:void kpe.debugWarn("utils/dom/style","binding value must be a string or number"):""},fpe.classNameToArray=Epe,fpe.getStyle=(e,t)=>{var n;if(!Spe.isClient||!e||!t)return"";let r=_pe.camelize(t);"float"===r&&(r="cssFloat");try{const t=e.style[r];if(t)return t;const o=null==(n=document.defaultView)?void 0:n.getComputedStyle(e,"");return o?o[r]:""}catch(o){return e.style[r]}},fpe.hasClass=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},fpe.removeClass=(e,t)=>{e&&t.trim()&&e.classList.remove(...Epe(t))},fpe.removeStyle=Mpe,fpe.setStyle=Ope,Object.defineProperty(ppe,"__esModule",{value:!0});var zpe=fpe,Tpe=upe;const Ape=(e,t)=>{if(!Tpe.isClient)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=zpe.getStyle(e,n);return["scroll","auto","overlay"].some((e=>r.includes(e)))};let Lpe;ppe.getScrollBarWidth=e=>{var t;if(!Tpe.isClient)return 0;if(void 0!==Lpe)return Lpe;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const l=o.offsetWidth;return null==(t=n.parentNode)||t.removeChild(n),Lpe=r-l,Lpe},ppe.getScrollContainer=(e,t)=>{if(!Tpe.isClient)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(Ape(n,t))return n;n=n.parentNode}return n},ppe.isScroll=Ape,ppe.scrollIntoView=function(e,t){if(!Tpe.isClient)return;if(!t)return void(e.scrollTop=0);const n=[];let r=t.offsetParent;for(;null!==r&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const o=t.offsetTop+n.reduce(((e,t)=>e+t.offsetTop),0),l=o+t.offsetHeight,a=e.scrollTop,i=a+e.clientHeight;oi&&(e.scrollTop=l-e.clientHeight)},Object.defineProperty(npe,"__esModule",{value:!0});var Ipe=rpe,Rpe=ipe,Ppe=spe,Npe=ppe,jpe=fpe;npe.attemptFocus=Ipe.attemptFocus,npe.focusNode=Ipe.focusNode,npe.getSibling=Ipe.getSibling,npe.isFocusable=Ipe.isFocusable,npe.isLeaf=Ipe.isLeaf,npe.isVisible=Ipe.isVisible,npe.obtainAllFocusableElements=Ipe.obtainAllFocusableElements,npe.triggerEvent=Ipe.triggerEvent,npe.composeEventHandlers=Rpe.composeEventHandlers,npe.whenMouse=Rpe.whenMouse,npe.getClientXY=Ppe.getClientXY,npe.getOffsetTop=Ppe.getOffsetTop,npe.getOffsetTopDistance=Ppe.getOffsetTopDistance,npe.isInContainer=Ppe.isInContainer,npe.getScrollBarWidth=Npe.getScrollBarWidth,npe.getScrollContainer=Npe.getScrollContainer,npe.isScroll=Npe.isScroll,npe.scrollIntoView=Npe.scrollIntoView,npe.addClass=jpe.addClass,npe.addUnit=jpe.addUnit,npe.classNameToArray=jpe.classNameToArray;var Vpe=npe.getStyle=jpe.getStyle;npe.hasClass=jpe.hasClass,npe.removeClass=jpe.removeClass,npe.removeStyle=jpe.removeStyle,npe.setStyle=jpe.setStyle;const Bpe={created(e,t,n){let r=n.children.find((e=>{var t;return"ElTooltip"==(null==(t=e.component)?void 0:t.type.name)}));if(r){let{content:t}=r.props;t&&["添加","编辑","删除","查看"].includes(t)?e.addEventListener("click",(function(){let e=r.component.props.disabled;e||(r.component.props.disabled=!0,setTimeout((()=>{r.component.props.disabled=e}),200))})):e.addEventListener("mouseenter",(()=>{r.component.props.disabled=!0;const t=document.createRange();t.setStart(e,0),t.setEnd(e,e.childNodes.length),(Math.round(t.getBoundingClientRect().width)+((parseInt(Vpe(e,"paddingLeft"),10)||0)+(parseInt(Vpe(e,"paddingRight"),10)||0))>e.offsetWidth||e.scrollWidth>e.offsetWidth)&&(r.component.props.disabled=!1)}))}}};function Hpe(e){return(Hpe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dpe(e){var t=function(e,t){if("object"!==Hpe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Hpe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Hpe(t)?t:String(t)}function $pe(e,t,n){return(t=Dpe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fpe(e,t,n,r,o,l,a){try{var i=e[l](a),s=i.value}catch(u){return void n(u)}i.done?t(s):Promise.resolve(s).then(r,o)}function Wpe(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var l=e.apply(t,n);function a(e){Fpe(l,r,o,a,i,"next",e)}function i(e){Fpe(l,r,o,a,i,"throw",e)}a(void 0)}))}}var Upe={exports:{}},Kpe={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Kpe);var qpe=Kpe.exports;!function(e){var t=qpe.default;function n(){e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},o=Object.prototype,l=o.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(A){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,l=Object.create(o.prototype),i=new M(r||[]);return a(l,"_invoke",{value:S(e,n,i)}),l}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}r.wrap=p;var v={};function h(){}function m(){}function g(){}var y={};d(y,s,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(z([])));w&&w!==o&&l.call(w,s)&&(y=w);var x=g.prototype=h.prototype=Object.create(y);function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,n){function r(o,a,i,s){var u=f(e[o],e,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==t(d)&&l.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):n.resolve(d).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(u.arg)}var o;a(this,"_invoke",{value:function(e,t){function l(){return new n((function(n,o){r(e,t,n,o)}))}return o=o?o.then(l,l):l()}})}function S(e,t,n){var r="suspendedStart";return function(o,l){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw l;return{value:void 0,done:!0}}for(n.method=o,n.arg=l;;){var a=n.delegate;if(a){var i=_(a,n);if(i){if(i===v)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function _(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,v;var l=o.arg;return l?l.done?(t[e.resultName]=l.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,v):l:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function z(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var i=l.call(o,"catchLoc"),s=l.call(o,"finallyLoc");if(i&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:z(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Upe);var Ype=(0,Upe.exports)(),Gpe=Ype;try{regeneratorRuntime=Ype}catch(im){"object"==typeof globalThis?globalThis.regeneratorRuntime=Ype:Function("r","regeneratorRuntime = r")(Ype)}const Jpe=e0(Gpe);function Xpe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1;if(t)return!0;if(Mfe.has(e))return Mfe.get(e);var n=t;if(!n){var r=e.toString();n=/^function\b\s[A-Z].*/.test(r)||/^class\b/.test(r)}return Mfe.set(e,n),n}var Tfe=new WeakMap;function Afe(e,t){var n=e[t];if(Tfe.has(n))return Tfe.get(n);if(_fe(n)&&!Ofe(n)&&!zfe(n)){var r=Function.prototype.bind.call(n,e);for(var o in Tfe.set(n,r),n)r[o]=n[o];return n.hasOwnProperty("prototype")&&!r.hasOwnProperty("prototype")&&Object.defineProperty(r,"prototype",{value:n.prototype,enumerable:!1,writable:!0}),r}return n}function Lfe(e){return window.document.querySelector("iframe[".concat(efe,'="').concat(e,'"]'))}function Ife(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function Rfe(e){if(!e)throw Wfe(dfe),new Error;var t=Pfe(e),n=t.protocol+"//"+t.host,r=t.pathname+t.search+t.hash;return r.startsWith("/")||(r="/"+r),{urlElement:t,appHostPath:n,appRoutePath:r}}function Pfe(e){var t=window.document.createElement("a");return t.href=e,t.href=t.href,t}function Nfe(e){var t=e.search.replace("?","").split("&"),n={};return t.forEach((function(e){var t=Zpe(e.split("="),2),r=t[0],o=t[1];r&&o&&(n[r]=o)})),n}function jfe(e){var t=Nfe(Pfe(window.location.href));return Object.keys(t).includes(e)}function Vfe(e,t,n){var r=e.Element.prototype.setAttribute;t.prototype.setAttribute=function(e,t){var o=t;e===n&&(o=Hfe(t,this.baseURI||"",!0)),r.call(this,e,o)};var o=Object.getOwnPropertyDescriptor(t.prototype,n),l=o.enumerable,a=o.configurable,i=o.get,s=o.set;Object.defineProperty(t.prototype,n,{enumerable:l,configurable:a,get:function(){return i.call(this)},set:function(e){s.call(this,Hfe(e,this.baseURI,!0))}})}function Bfe(e){var t=e;return t.protocol+"//"+t.host+t.pathname}function Hfe(e,t,n){try{return e?n&&e.startsWith("#")?e:new URL(e,t).href:e}catch(r){return e}}var Dfe=window.requestIdleCallback||function(e){return setTimeout(e,1)};function $fe(e){return"string"==typeof e?document.querySelector(e):e}function Ffe(e,t){var n;null===(n=console)||void 0===n||n.warn("[wujie warn]: ".concat(e),t)}function Wfe(e,t){var n;null===(n=console)||void 0===n||n.error("[wujie error]: ".concat(e),t)}function Ufe(e){var t=e.indexOf(">")+1,n=e.lastIndexOf("<");return e.substring(t,n)}function Kfe(e){if("object"===Hpe(e))return"/";try{var t=new URL(e,location.href),n=t.origin,r=t.pathname.split("/");return r.pop(),"".concat(n).concat(r.join("/"),"/")}catch(o){return""}}function qfe(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o2?n-2:0),o=2;o0&&e.map((function(e){return e[t]})).filter((function(e){return xfe(e)})).forEach((function(e){return e.apply(void 0,r)}))}catch(l){Wfe(l)}}function Jfe(e){var t;return"SCRIPT"===(null===(t=e.tagName)||void 0===t?void 0:t.toUpperCase())}var Xfe=1;function Qfe(e,t){if(Jfe(e)){var n=t||String(Xfe++);e.setAttribute(tfe,n)}}function Zfe(e){return Jfe(e)?e.getAttribute(tfe):null}function eve(e,t){return{name:e.name,el:e.el||(null==t?void 0:t.el),url:e.url||(null==t?void 0:t.url),html:e.html||(null==t?void 0:t.html),exec:void 0!==e.exec?e.exec:null==t?void 0:t.exec,replace:e.replace||(null==t?void 0:t.replace),fetch:e.fetch||(null==t?void 0:t.fetch),props:e.props||(null==t?void 0:t.props),sync:void 0!==e.sync?e.sync:null==t?void 0:t.sync,prefix:e.prefix||(null==t?void 0:t.prefix),loading:e.loading||(null==t?void 0:t.loading),attrs:void 0!==e.attrs?e.attrs:(null==t?void 0:t.attrs)||{},degradeAttrs:void 0!==e.degradeAttrs?e.degradeAttrs:(null==t?void 0:t.degradeAttrs)||{},fiber:void 0!==e.fiber?e.fiber:void 0===(null==t?void 0:t.fiber)||(null==t?void 0:t.fiber),alive:void 0!==e.alive?e.alive:null==t?void 0:t.alive,degrade:void 0!==e.degrade?e.degrade:null==t?void 0:t.degrade,plugins:e.plugins||(null==t?void 0:t.plugins),lifecycles:{beforeLoad:e.beforeLoad||(null==t?void 0:t.beforeLoad),beforeMount:e.beforeMount||(null==t?void 0:t.beforeMount),afterMount:e.afterMount||(null==t?void 0:t.afterMount),beforeUnmount:e.beforeUnmount||(null==t?void 0:t.beforeUnmount),afterUnmount:e.afterUnmount||(null==t?void 0:t.afterUnmount),activated:e.activated||(null==t?void 0:t.activated),deactivated:e.deactivated||(null==t?void 0:t.deactivated),loadError:e.loadError||(null==t?void 0:t.loadError)}}}function tve(e,t,n){var r;"function"==typeof window.CustomEvent?r=new CustomEvent(t,{detail:n}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!1,n),e.dispatchEvent(r)}function nve(){throw Ffe(vfe),new Error(ffe)}var rve=/()[\s\S]*?<\/script>/gi,ove=/<(script)\s+((?!type=('|")text\/ng\x2Dtemplate\3)[\s\S])*?>[\s\S]*?<\/\1>/i,lve=/.*\ssrc=('|")?([^>'"\s]+)/,ave=/.*\stype=('|")?([^>'"\s]+)/,ive=/.*\sentry\s*.*/,sve=/.*\sasync\s*.*/,uve=/.*\sdefer\s*.*/,cve=/.*\snomodule\s*.*/,dve=/.*\stype=('|")?module('|")?\s*.*/,pve=/<(link)\s+[\s\S]*?>/gi,fve=/\srel=('|")?(preload|prefetch|modulepreload)\1/,vve=/.*\shref=('|")?([^>'"\s]+)/,hve=/.*\sas=('|")?font\1.*/,mve=/]*>[\s\S]*?<\/style>/gi,gve=/\s+rel=('|")?stylesheet\1.*/,yve=/.*\shref=('|")?([^>'"\s]+)/,bve=//g,wve=//i,xve=//i,Cve=//i,kve=/.*\scrossorigin=?('|")?(use-credentials|anonymous)?('|")?/i;function Sve(e){return e.startsWith("//")||e.startsWith("http://")||e.startsWith("https://")}function _ve(e,t){return new URL(e,t).toString()}function Eve(e){var t=/<[-\w]+\s+([^>]*)>/i.exec(e);if(!t)return{};for(var n,r=t[1],o=/([^\s=]+)\s*=\s*(['"])(.*?)\2/g,l={};null!==(n=o.exec(r));){var a=n[1],i=n[3];l[a]=i}return l}var Ove=function(e){return"\x3c!-- ".concat(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"prefetch/preload/modulepreload":""," link ").concat(e," replaced by wujie --\x3e")},Mve=function(e){return"\x3c!-- inline-style-".concat(e," replaced by wujie --\x3e")},zve=function(e){return"\x3c!-- ".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:""," script ").concat(e," replaced by wujie --\x3e")},Tve="\x3c!-- inline scripts replaced by wujie --\x3e",Ave=function(e){return"\x3c!-- ignore asset ".concat(e||"file"," replaced by wujie --\x3e")},Lve=function(e,t){return"\x3c!-- ".concat(t?"nomodule":"module"," script ").concat(e," ignored by wujie --\x3e")};function Ive(e){return function(e){if(Array.isArray(e))return Xpe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qpe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rve(e){var t=e.plugins,n=e.replace;return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0;return qfe(t.map((function(e){return e.cssLoader})))(n?n(e):e,r,o)}}function Pve(e,t){var n=t.map((function(t){return t[e]})).filter((function(e){return null==e?void 0:e.length})).reduce((function(e,t){return e.concat(t)}),[]);return"cssBeforeLoaders"===e?n.reverse():n}function Nve(e,t){return t.map((function(t){return t[e]})).filter((function(e){return null==e?void 0:e.length})).reduce((function(e,t){return e.concat(t)}),[])}function jve(e,t){return t.some((function(t){return"string"==typeof t?e===t:t.test(e)}))}var Vve={cssLoader:function(e,t,n){var r=t?Hfe(t,n):n;return e.replace(/(url\((?!['"]?(?:data):)['"]?)([^'")]*)(['"]?\))/g,(function(e,t,n,o){return t+Hfe(n,r)+o}))},cssBeforeLoaders:[{content:"html {view-transition-name: none;}"}]};function Bve(e){return Array.isArray(e)?[Vve].concat(Ive(e)):[Vve]}function Hve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dve(e){for(var t=1;t'):"")):n&&(r=r.replace(Mve(t),"")))}))}))).then((function(){return r})));case 2:case"end":return e.stop()}}),e)}))),Jve.apply(this,arguments)}var Xve=function(e){return e.startsWith("<")},Qve=function(e,t,n,r,o){return t[e]||(t[e]=n(e).then((function(n){if(n.status>=400){if(t[e]=null,r)return Wfe(gfe,{src:e,response:n}),null==o||o(e,new Error(gfe)),"";throw Wfe(mfe,{src:e,response:n}),null==o||o(e,new Error(mfe)),new Error(mfe)}return n.text()})).catch((function(n){return t[e]=null,r?(Wfe(gfe,e),null==o||o(e,n),""):(Wfe(mfe,e),null==o||o(e,n),"")})))};function Zve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uve,n=arguments.length>2?arguments[2]:void 0;return e.map((function(e){var r=e.src,o=e.content,l=e.ignore;return o?{src:"",contentPromise:Promise.resolve(o)}:Xve(r)?{src:"",contentPromise:Promise.resolve(Ufe(r))}:{src:r,ignore:l,contentPromise:l?Promise.resolve(""):Qve(r,$ve,t,!0,n)}}))}function ehe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uve,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return e.map((function(e){var o,l=e.src,a=e.async,i=e.defer,s=e.module,u=e.ignore;return o=(a||i)&&l&&!s?new Promise((function(e,o){return r?Dfe((function(){return Qve(l,Fve,t,!1,n).then(e,o)})):Qve(l,Fve,t,!1,n).then(e,o)})):s&&l||u?Promise.resolve(""):l?Qve(l,Fve,t,!1,n):Promise.resolve(e.content),s&&!a&&(e.defer=!0),Dve(Dve({},e),{},{contentPromise:o})}))}function the(e){var t,n,r=e.url,o=e.opts,l=e.html,a=null!==(t=o.fetch)&&void 0!==t?t:Uve,i=null===(n=o.fiber)||void 0===n||n,s=o.plugins,u=o.loadError,c=s?qfe(s.map((function(e){return e.htmlLoader}))):Kve,d=Nve("jsExcludes",s),p=Nve("cssExcludes",s),f=Nve("jsIgnores",s),v=Nve("cssIgnores",s),h=Kfe,m=function(e,t,n){return(t?Promise.resolve(t):a(e).then((function(t){return t.status>=400?(Wfe(yfe,{url:e,response:t}),null==u||u(e,new Error(yfe)),""):t.text()})).catch((function(t){return Wve[e]=null,null==u||u(e,t),Promise.reject(t)}))).then((function(t){var r=h(e),o=function(e,t,n){var r=[],o=[],l=null,a="noModule"in window.document.createElement("script"),i={template:e.replace(bve,"").replace(pve,(function(e){if(e.match(gve)){var n=e.match(yve),r=e.match(wve);if(n){var l=n&&n[2],a=l;return l&&!Sve(l)&&(a=_ve(l,t)),r?Ave(a):(o.push({src:a}),Ove(a))}}if(e.match(fve)&&e.match(vve)&&!e.match(hve)){var i=Zpe(e.match(vve),3)[2];return Ove(i,!0)}return e})).replace(mve,(function(e){if(xve.test(e))return Ave("style file");var t=Ufe(e);return o.push({src:"",content:t}),Mve(o.length-1)})).replace(rve,(function(e,n){var o,i=n.match(Cve),s=!!n.match(dve),u=n.match(kve),c=(null==u?void 0:u[2])||"",d=a&&!!n.match(cve)||!a&&s,p=n.match(ave);if((o=p&&p[2])&&-1===["text/javascript","module","application/javascript","text/ecmascript","application/ecmascript"].indexOf(o))return e;if(ove.test(e)&&n.match(lve)){var f=n.match(ive),v=n.match(lve),h=v&&v[2];if(l&&f)throw new SyntaxError("You should not set multiply entry script!");if(h&&!Sve(h)&&(h=_ve(h,t)),l=l||f&&h,i)return Ave(h||"js file");if(d)return Lve(h||"js file",a);if(h){var m=!!n.match(sve),g=!!n.match(uve);return r.push(m||g?{async:m,defer:g,src:h,module:s,crossorigin:!!u,crossoriginType:c,attrs:Eve(e)}:{src:h,module:s,crossorigin:!!u,crossoriginType:c,attrs:Eve(e)}),zve(h,(m?"async":g&&"defer")||"")}return e}if(i)return Ave("js file");if(d)return Lve("js file",a);var y=Ufe(e);return!y.split(/[\r\n]+/).every((function(e){return!e.trim()||e.trim().startsWith("//")}))&&y&&r.push({src:"",content:y,module:s,crossorigin:!!u,crossoriginType:c,attrs:Eve(e)}),Tve})),scripts:r,styles:o,entry:l||r[r.length-1]};return"function"==typeof n&&(i=n(i)),i}(n(t),r),l=o.template,s=o.scripts,c=o.styles;return{template:l,assetPublicPath:r,getExternalScripts:function(){return ehe(s.filter((function(e){return!e.src||!jve(e.src,d)})).map((function(e){return Dve(Dve({},e),{},{ignore:e.src&&jve(e.src,f)})})),a,u,i)},getExternalStyleSheets:function(){return Zve(c.filter((function(e){return!e.src||!jve(e.src,p)})).map((function(e){return Dve(Dve({},e),{},{ignore:e.src&&jve(e.src,v)})})),a,u)}}}))};return null!=o&&o.plugins.some((function(e){return e.htmlLoader}))?m(r,l,c):Wve[r]||(Wve[r]=m(r,l,c))}function nhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rhe(e,t){for(var n=0;n")),{targetScript:o,iframe:r}}function $he(e){return function(t){var n=t,r=e.rawElementContains,o=e.wujieId;return n&&Jfe(n)?null!==Dhe(n,o).targetScript:r(n)}}function Fhe(e){var t=new Map;e._cacheListeners=t,e.addEventListener=function(n,r,o){var l=t.get(n)||[];return t.set(n,[].concat(Ive(l),[r])),zhe.call(e,n,r,o)},e.removeEventListener=function(n,r,o){var l=t.get(n),a=null==l?void 0:l.indexOf(r);return null!=l&&l.length&&-1!==a&&l.splice(a,1),The.call(e,n,r,o)}}function Whe(e){Ive(e._cacheListeners.entries()).forEach((function(t){var n=Zpe(t,2),r=n[0];n[1].forEach((function(t){return The.call(e,r,t)}))}))}function Uhe(e,t,n){var r;n||(Fhe(e.head),Fhe(e.body)),e.head.appendChild=Hhe({rawDOMAppendOrInsertBefore:Ihe,wujieId:t}),e.head.insertBefore=Hhe({rawDOMAppendOrInsertBefore:Ohe,wujieId:t}),e.head.removeChild=(r={rawElementRemoveChild:_he.bind(e.head),wujieId:t},function(e){var t=e,n=r.rawElementRemoveChild,o=r.wujieId;if(t&&Jfe(t)){var l=Dhe(t,o),a=l.targetScript,i=l.iframe;return null!==a?i.contentWindow.__WUJIE_RAW_DOCUMENT_HEAD__.removeChild(a):null}return n(t)}),e.head.contains=$he({rawElementContains:Ehe.bind(e.head),wujieId:t}),e.contains=$he({rawElementContains:Ehe.bind(e),wujieId:t}),e.body.appendChild=Hhe({rawDOMAppendOrInsertBefore:Ihe,wujieId:t}),e.body.insertBefore=Hhe({rawDOMAppendOrInsertBefore:Mhe,wujieId:t})}function Khe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qhe(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement("iframe");return Ife(n,qhe(qhe({},t),{},$pe({style:["height:100%;width:100%",t.style].join(";")},efe,e))),n}(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r=Jhe(n,t),o=n.contentWindow.document;return o.open(),o.write(""),o.close(),{iframe:n,container:r}}function Qhe(e,t){return Zhe.apply(this,arguments)}function Zhe(){return Zhe=Wpe(Jpe.mark((function e(t,n){var r,o,l,a,i,s,u,c;return Jpe.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.iframe.contentDocument,o=t.plugins,l=t.replace,a=t.proxyLocation,i=Rve({plugins:o,replace:l}),s=Pve("cssBeforeLoaders",o),u=Pve("cssAfterLoaders",o),c=Bfe(a),e.next=8,Promise.all([Promise.all(Zve(s,t.fetch,t.lifecycles.loadError).map((function(e){var t=e.src;return e.contentPromise.then((function(e){return{src:t,content:e}}))}))).then((function(e){e.forEach((function(e){var t=e.src,o=e.content;if(o){var l=r.createElement("style");l.setAttribute("type","text/css"),l.appendChild(r.createTextNode(o?i(o,t,c):o));var a=n.querySelector("head"),s=n.querySelector("body");n.insertBefore(l,a||s||n.firstChild)}}))})),Promise.all(Zve(u,t.fetch,t.lifecycles.loadError).map((function(e){var t=e.src;return e.contentPromise.then((function(e){return{src:t,content:e}}))}))).then((function(e){e.forEach((function(e){var t=e.src,o=e.content;if(o){var l=r.createElement("style");l.setAttribute("type","text/css"),l.appendChild(r.createTextNode(o?i(o,t,c):o)),n.appendChild(l)}}))}))]).then((function(){return n}),(function(){return n}));case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)}))),Zhe.apply(this,arguments)}function eme(e,t){var n=e.__WUJIE,r=n.head,o=n.body,l=n.alive,a=n.execFlag,i=e.document,s=i.createElement("html");s.innerHTML=t,!l&&a?s=function(e,t,n){var r=e.querySelector("head"),o=e.querySelector("body");if(r){for(;r.firstChild;)Ihe.call(t,r.firstChild.cloneNode(!0)),r.removeChild(r.firstChild);r.parentNode.replaceChild(t,r)}if(o){for(;o.firstChild;)Ihe.call(n,o.firstChild.cloneNode(!0)),o.removeChild(o.firstChild);o.parentNode.replaceChild(n,o)}return e}(s,r,o):(n.head=s.querySelector("head"),n.body=s.querySelector("body"));for(var u=i.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,null,!1),c=u.currentNode;c;){yme(c,e);var d=xhe[c.tagName],p=c[d];d&&c.setAttribute(d,Hfe(p,c.baseURI||"")),c=u.nextNode()}if(!s.querySelector("head")){var f=i.createElement("head");s.appendChild(f)}if(!s.querySelector("body")){var v=i.createElement("body");s.appendChild(v)}return s}function tme(e,t,n){return nme.apply(this,arguments)}function nme(){return nme=Wpe(Jpe.mark((function e(t,n,r){var o,l,a;return Jpe.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=eme(n,r),e.next=3,Qhe(n.__WUJIE,o);case 3:l=e.sent,t.appendChild(l),(a=document.createElement("div")).setAttribute("style",sfe),l.insertBefore(a,l.firstChild),t.head=t.querySelector("head"),t.body=t.querySelector("body"),Object.defineProperty(t.firstChild,"parentNode",{enumerable:!0,configurable:!0,get:function(){return n.document}}),Uhe(t,n.__WUJIE.id,!1);case 12:case"end":return e.stop()}}),e)}))),nme.apply(this,arguments)}function rme(e,t,n){return ome.apply(this,arguments)}function ome(){return ome=Wpe(Jpe.mark((function e(t,n,r){var o,l;return Jpe.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=eme(n,r),e.next=3,Qhe(n.__WUJIE,o);case 3:l=e.sent,t.replaceChild(l,t.documentElement),Object.defineProperty(t.documentElement,"parentNode",{enumerable:!0,configurable:!0,get:function(){return n.document}}),Uhe(t,n.__WUJIE.id,!0);case 7:case"end":return e.stop()}}),e)}))),ome.apply(this,arguments)}function lme(e){for(;null!=e&&e.firstChild;)_he.call(e,e.firstChild)}function ame(e,t){var n=$fe(e);lme(n);var r=null;try{r=window.getComputedStyle(n)}catch(l){return}"static"===r.position?(n.setAttribute(rfe,r.position),n.setAttribute(ofe,"visible"===r.overflow?"":r.overflow),n.style.setProperty("position","relative"),n.style.setProperty("overflow","hidden")):["relative","sticky"].includes(r.position)&&(n.setAttribute(ofe,"visible"===r.overflow?"":r.overflow),n.style.setProperty("overflow","hidden"));var o=document.createElement("div");o.setAttribute(lfe,""),o.setAttribute("style",ufe),t?o.appendChild(t):o.innerHTML=cfe,n.appendChild(o)}function ime(e){var t=e.getAttribute(rfe),n=e.getAttribute(ofe);t&&e.style.removeProperty("position"),null!==n&&(n?e.style.setProperty("overflow",n):e.style.removeProperty("overflow")),e.removeAttribute(rfe),e.removeAttribute(ofe);var r=e.querySelector("div[".concat(lfe,"]"));r&&e.removeChild(r)}function sme(e){for(var t=[],n=[],r=/:root/g,o=0;oo[s].length)&&(s=e)})),n?a[r]=window.encodeURIComponent(s?i.replace(o[s],"{".concat(s,"}")):i):delete a[r];var u="?"+Object.keys(a).map((function(e){return e+"="+a[e]})).join("&");l.search=u,l.href!==window.location.href&&window.history.replaceState(null,"",l.href),l=null}function cme(e){var t=e.location,n=t.pathname,r=t.search,o=t.hash,l=e.__WUJIE,a=l.id,i=l.url,s=l.sync,u=l.execFlag,c=l.prefix,d=l.inject,p=s&&!u?function(e,t){var n,r=Pfe(window.location.href),o=Nfe(r);r=null;var l=window.decodeURIComponent(o[e]||""),a=null===(n=l.match(/^{([^}]*)}/))||void 0===n?void 0:n[1];return t&&a?l.replace("{".concat(a,"}"),t[a]):l}(a,c):i,f=Rfe((/^http/.test(p)?null:p)||i).appRoutePath;n+r+o!==f&&e.history.replaceState(null,"",d.mainHostPath+f)}function dme(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pme(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;return qfe(o.map((function(e){return e.jsLoader})))(l?l(e):e,t,n)}),k=C(u,i,Bfe(x));f&&Object.keys(f).filter((function(t){return!Object.keys(e).includes(t)})).forEach((function(e){return m.setAttribute(e,String(f[e]))})),u?(t.__WUJIE.degrade||s||(k="(function(window, self, global, location) {\n ".concat(k,"\n}).bind(window.__WUJIE.proxy)(\n window.__WUJIE.proxy,\n window.__WUJIE.proxy,\n window.__WUJIE.proxy,\n window.__WUJIE.proxyLocation,\n);")),Object.defineProperty(m,"src",{get:function(){return i||""}})):(i&&m.setAttribute("src",i),c&&m.setAttribute("crossorigin",d)),s&&m.setAttribute("type","module"),m.textContent=k||"",g.textContent="if(window.__WUJIE.execQueue && window.__WUJIE.execQueue.length){ window.__WUJIE.execQueue.shift()()}";var S=Rhe.call(t.document,"head"),_=function(){return!p&&S.appendChild(g)},E=function(){null==h||h(),_()};if(/^2&&void 0!==arguments[2]?arguments[2]:{},r=window.document.createElement("iframe");Ife(r,pme(pme({},n),{},{src:e,style:["height:100%;width:100%",n.style].join(";")})),Jhe(r,t)}function xme(e,t,n,r,o){var l=window.document.createElement("iframe");Ife(l,pme(pme({src:n,style:"display: none"},t),{},$pe({name:e.id},nfe,""))),window.document.body.appendChild(l);var a,i,s=l.contentWindow;return fme(s,e,r),e.iframeReady=(a=s,i=a.document,new Promise((function(e){!function t(){setTimeout((function(){var n=null;try{n=a.document}catch(r){n=null}n&&n!=i?(a.stop?a.stop():a.document.execCommand("Stop"),e()):t()}),1)}()}))).then((function(){s.__WUJIE||fme(s,e,r),function(e,t,n,r){var o,l,a,i,s,u,c=e.document,d=window.document.implementation.createHTMLDocument(""),p=c.importNode(d.documentElement,!0);c.documentElement?c.replaceChild(p,c.documentElement):c.appendChild(p),e.__WUJIE_RAW_DOCUMENT_HEAD__=c.head,e.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__=e.Document.prototype.querySelector,e.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__=e.Document.prototype.querySelectorAll,e.__WUJIE_RAW_DOCUMENT_CREATE_ELEMENT__=e.Document.prototype.createElement,e.__WUJIE_RAW_DOCUMENT_CREATE_TEXT_NODE__=e.Document.prototype.createTextNode,o=e,l=t.url,a=o.document,i=a.createElement("base"),s=Pfe(o.location.href),u=Pfe(l),i.setAttribute("href",u.protocol+"//"+u.host+s.pathname),a.head.appendChild(i),function(e,t,n){var r=e.history,o=r.pushState,l=r.replaceState;r.pushState=function(l,a,i){var s=n+e.location.pathname+e.location.search+e.location.hash,u=Hfe(null==i?void 0:i.replace(t,""),s),c=void 0===i;o.call(r,l,a,c?void 0:u),c||(vme(e,t,n),ume(e))},r.replaceState=function(o,a,i){var s=n+e.location.pathname+e.location.search+e.location.hash,u=Hfe(null==i?void 0:i.replace(t,""),s),c=void 0===i;l.call(r,o,a,c?void 0:u),c||(vme(e,t,n),ume(e))}}(e,r,n),function(e){e.addEventListener=function(t,n,r){if(Gfe(e.__WUJIE.plugins,"windowAddEventListenerHook",e,t,n,r),bhe.includes(t)||"object"===Hpe(r)&&r.targetWindow){var o="object"===Hpe(r)&&r.targetWindow?null==r?void 0:r.targetWindow:e;return Ahe.call(o,t,n,r)}Ahe.call(window.__WUJIE_RAW_WINDOW__||window,t,n,r)},e.removeEventListener=function(t,n,r){if(Gfe(e.__WUJIE.plugins,"windowRemoveEventListenerHook",e,t,n,r),bhe.includes(t)||"object"===Hpe(r)&&r.targetWindow){var o="object"===Hpe(r)&&r.targetWindow?null==r?void 0:r.targetWindow:e;return Lhe.call(o,t,n,r)}Lhe.call(window.__WUJIE_RAW_WINDOW__||window,t,n,r)}}(e),t.degrade&&function(e){var t=e.__WUJIE;e.Node.prototype.addEventListener=function(e,n,r){var o=t.elementEventCacheMap.get(this);return o?o.find((function(e){return e.handler===n}))||o.push({type:e,handler:n,options:r}):t.elementEventCacheMap.set(this,[{type:e,handler:n,options:r}]),zhe.call(this,e,n,r)},e.Node.prototype.removeEventListener=function(e,n,r){var o=t.elementEventCacheMap.get(this);if(o){var l=null==o?void 0:o.findIndex((function(e){return e.handler===n}));o.splice(l,1)}return null!=o&&o.length||t.elementEventCacheMap.delete(this),The.call(this,e,n,r)}}(e),function(e){e.addEventListener("hashchange",(function(){return ume(e)})),e.addEventListener("popstate",(function(){ume(e)}))}(e),function(e){function t(t){var n=e[t];try{return"function"!=typeof n||zfe(n)?e[t]=window[t]:e[t]=window[t].bind(window),!0}catch(r){return Ffe(r.message),!1}}Object.getOwnPropertyNames(e).forEach((function(n){"getSelection"!==n?Che.includes(n)?t(n):khe.some((function(r){return!(!r.test(n)||!(n in e.parent))&&t(n)})):Object.defineProperty(e,n,{get:function(){return e.document[n]}})})),Object.getOwnPropertyNames(window).filter((function(e){return/^on/.test(e)})).filter((function(e){return!whe.includes(e)})).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t)||{enumerable:!0,writable:!0};try{Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:!0,get:function(){return window[t]},set:n.writable||n.set?function(n){window[t]="function"==typeof n?n.bind(e):n}:void 0})}catch(r){Ffe(r.message)}})),Gfe(e.__WUJIE.plugins,"windowPropertyOverride",e)}(e),function(e){var t=e.__WUJIE,n=new WeakMap,r=new WeakMap;e.Document.prototype.addEventListener=function(o,l,a){var i=n.get(l),s=r.get(l);return!i&&l&&(i="function"==typeof l?l.bind(this):l,n.set(l,i)),s?s.includes(o)||s.push(o):r.set(l,[o]),Gfe(e.__WUJIE.plugins,"documentAddEventListenerHook",e,o,i,a),hhe.includes(o)?zhe.call(this,o,i,a):t.degrade?t.document.addEventListener(o,i,a):ghe.includes(o)?window.document.addEventListener(o,i,a):yhe.includes(o)?(window.document.addEventListener(o,i,a),void t.shadowRoot.addEventListener(o,i,a)):void t.shadowRoot.addEventListener(o,i,a)},e.Document.prototype.removeEventListener=function(o,l,a){var i=n.get(l),s=r.get(l);if(i){if(null!=s&&s.includes(o)&&(s.splice(s.indexOf(o),1),s.length||(n.delete(l),r.delete(l))),Gfe(e.__WUJIE.plugins,"documentRemoveEventListenerHook",e,o,i,a),hhe.includes(o))return The.call(this,o,i,a);if(t.degrade)return t.document.removeEventListener(o,i,a);if(ghe.includes(o))return window.document.removeEventListener(o,i,a);if(yhe.includes(o))return window.document.removeEventListener(o,i,a),void t.shadowRoot.removeEventListener(o,i,a);t.shadowRoot.removeEventListener(o,i,a)}};var o=Object.keys(e.HTMLElement.prototype).filter((function(e){return/^on/.test(e)})),l=Object.keys(e.Document.prototype).filter((function(e){return/^on/.test(e)})).filter((function(e){return!mhe.includes(e)}));o.filter((function(e){return l.includes(e)})).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e.Document.prototype,n)||{enumerable:!0,writable:!0};try{Object.defineProperty(e.Document.prototype,n,{enumerable:r.enumerable,configurable:!0,get:function(){return t.degrade?t.document[n]:t.shadowRoot.firstElementChild[n]},set:r.writable||r.set?function(r){var o="function"==typeof r?r.bind(e.document):r;t.degrade?t.document[n]=o:t.shadowRoot.firstElementChild[n]=o}:void 0})}catch(o){Ffe(o.message)}}));var a=vhe.ownerProperties,i=vhe.modifyProperties,s=vhe.shadowProperties,u=vhe.shadowMethods,c=vhe.documentProperties,d=vhe.documentMethods,p=vhe.documentEvents;i.concat(s,u,c,d).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e.Document.prototype,n)||{enumerable:!0,writable:!0};try{Object.defineProperty(e.Document.prototype,n,{enumerable:r.enumerable,configurable:!0,get:function(){return t.proxyDocument[n]},set:void 0})}catch(o){Ffe(o.message)}})),p.forEach((function(n){var r=Object.getOwnPropertyDescriptor(e.Document.prototype,n)||{enumerable:!0,writable:!0};try{Object.defineProperty(e.Document.prototype,n,{enumerable:r.enumerable,configurable:!0,get:function(){return(t.degrade?t:window).document[n]},set:r.writable||r.set?function(r){(t.degrade?t:window).document[n]="function"==typeof r?r.bind(e.document):r}:void 0})}catch(o){Ffe(o.message)}})),a.forEach((function(n){Object.defineProperty(e.document,n,{enumerable:!0,configurable:!0,get:function(){return t.proxyDocument[n]},set:void 0})})),Gfe(e.__WUJIE.plugins,"documentPropertyOverride",e)}(e),function(e){var t=e.Node.prototype.getRootNode,n=e.Node.prototype.appendChild,r=e.Node.prototype.insertBefore;e.Node.prototype.getRootNode=function(n){var r=t.call(this,n);return r===e.__WUJIE.shadowRoot?e.document:r},e.Node.prototype.appendChild=function(t){var r=n.call(this,t);return yme(t,e),r},e.Node.prototype.insertBefore=function(t,n){var o=r.call(this,t,n);return yme(t,e),o}}(e),function(e){Vfe(e,e.HTMLImageElement,"src"),Vfe(e,e.HTMLAnchorElement,"href"),Vfe(e,e.HTMLSourceElement,"src"),Vfe(e,e.HTMLLinkElement,"href"),Vfe(e,e.HTMLScriptElement,"src"),Vfe(e,e.HTMLMediaElement,"src")}(e)}(s,e,n,r),jfe(s.__WUJIE.id)||s.history.replaceState(null,"",n+o)})),l}function Cme(e,t,n){var r=e.contentWindow.__WUJIE,o=r.shadowRoot,l=r.id,a=r.degrade,i=r.document,s=r.degradeAttrs,u=t;if(!/^http/.test(u)){var c=Pfe(u);u=n+c.pathname+c.search+c.hash,c=null}if(e.contentWindow.__WUJIE.hrefFlag=!0,a){var d=Rhe.call(e.contentDocument,"body");Jhe(i.documentElement,d),wme(window.decodeURIComponent(u),Lfe(l).parentElement,s)}else wme(u,o.host.parentElement,s);return function(e,t){var n=Pfe(window.location.href),r=Nfe(n);r[e]=window.encodeURIComponent(t);var o="?"+Object.keys(r).map((function(e){return e+"="+r[e]})).join("&");n.search=o,window.history.pushState(null,"",n.href),n=null}(l,u),!0}var kme=window.__POWERED_BY_WUJIE__?window.__WUJIE.inject.appEventObjMap:new Map,Sme=function(){function e(t){nhe(this,e),this.id=t,this.$clear(),kme.get(this.id)||kme.set(this.id,{}),this.eventObj=kme.get(this.id)}return ohe(e,[{key:"$on",value:function(e,t){var n=this.eventObj[e];return n?(n.includes(t)||n.push(t),this):(this.eventObj[e]=[t],this)}},{key:"$onAll",value:function(e){return this.$on(ife,e)}},{key:"$once",value:function(e,t){var n=function(){this.$off(e,n),t.apply(void 0,arguments)}.bind(this);this.$on(e,n)}},{key:"$off",value:function(e,t){var n=this.eventObj[e];if(!e||!n||!n.length)return Ffe("".concat(e," ").concat(hfe)),this;for(var r=n.length;r--;)if(n[r]===t){n.splice(r,1);break}return this}},{key:"$offAll",value:function(e){return this.$off(ife,e)}},{key:"$emit",value:function(e){var t=[],n=[];if(kme.forEach((function(r){r[e]&&(t=t.concat(r[e])),r[ife]&&(n=n.concat(r[ife]))})),!e||0===t.length&&0===n.length)Ffe("".concat(e," ").concat(hfe));else try{for(var r=arguments.length,o=new Array(r>1?r-1:0),l=1;l=0;--o){var l=this.tryEntries[o],a=l.completion;if("root"===l.tryLoc)return r("end");if(l.tryLoc<=this.prev){var i=n.call(l,"catchLoc"),s=n.call(l,"finallyLoc");if(i&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function Pme(e,t,n,r,o,l,a){try{var i=e[l](a),s=i.value}catch(u){return void n(u)}i.done?t(s):Promise.resolve(s).then(r,o)}window.__WUJIE&&!window.__POWERED_BY_WUJIE__&&nve(),window.addEventListener("popstate",(function(){var e=Pfe(window.location.href),t=Nfe(e);e=null,Object.keys(t).map((function(e){return phe(e)})).filter((function(e){return e})).forEach((function(e){var n=t[e.id],r=Rhe.call(e.iframe.contentDocument,"body");if(/http/.test(n))e.degrade?(Jhe(e.document.documentElement,r),wme(window.decodeURIComponent(n),Lfe(e.id).parentElement,e.degradeAttrs)):wme(window.decodeURIComponent(n),e.shadowRoot.host.parentElement,e.degradeAttrs),e.hrefFlag=!0;else if(e.hrefFlag){if(e.degrade){var o=Xhe(e.id,e.el,e.degradeAttrs).iframe;gme(o.contentWindow,e.iframe.contentWindow),o.contentWindow.onunload=function(){e.unmount()},o.contentDocument.appendChild(r.firstElementChild),e.document=o.contentDocument}else Jhe(e.shadowRoot.host,e.el);e.hrefFlag=!1}}))})),function(){var e=window.customElements;if(e&&(null==e||!e.get("wujie-app"))){var t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lhe(e,t)}(n,she(HTMLElement));var t=Yhe(n);function n(){return nhe(this,n),t.apply(this,arguments)}return ohe(n,[{key:"connectedCallback",value:function(){if(!this.shadowRoot){var e=this.attachShadow({mode:"open"}),t=phe(this.getAttribute(efe));yme(e,t.iframe.contentWindow),t.shadowRoot=e}}},{key:"disconnectedCallback",value:function(){var e=phe(this.getAttribute(efe));null==e||e.unmount()}}]),n}();null==e||e.define("wujie-app",t)}}(),Cfe||Ffe("当前浏览器不支持无界,子应用将采用iframe方式渲染");var Nme={name:"WujieVue",props:{width:{type:String,default:""},height:{type:String,default:""},name:{type:String,default:""},loading:{type:HTMLElement,default:void 0},url:{type:String,default:""},sync:{type:Boolean,default:void 0},prefix:{type:Object,default:void 0},alive:{type:Boolean,default:void 0},props:{type:Object,default:void 0},attrs:{type:Object,default:void 0},replace:{type:Function,default:void 0},fetch:{type:Function,default:void 0},fiber:{type:Boolean,default:void 0},degrade:{type:Boolean,default:void 0},plugins:{type:Array,default:null},beforeLoad:{type:Function,default:null},beforeMount:{type:Function,default:null},afterMount:{type:Function,default:null},beforeUnmount:{type:Function,default:null},afterUnmount:{type:Function,default:null},activated:{type:Function,default:null},deactivated:{type:Function,default:null},loadError:{type:Function,default:null}},data:function(){return{startAppQueue:Promise.resolve()}},mounted:function(){var e=this;zme.$onAll(this.handleEmit),this.execStartApp(),this.$watch((function(){return e.name+e.url}),(function(){return e.execStartApp()}))},methods:{handleEmit:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{const n=e.__vccOpts||e;for(var[r,o]of t)n[r]=o;return n}},function(t,n){t.exports=e},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),a(n(1));var r=a(n(22)),o=a(n(42)),l=n(43);function a(e){return e&&e.__esModule?e:{default:e}}t.default={name:"JsonViewer",components:{JsonBox:r.default},props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expanded:{type:Boolean,default:!1},expandDepth:{type:Number,default:1},copyable:{type:[Boolean,Object],default:!1},sort:{type:Boolean,default:!1},boxed:{type:Boolean,default:!1},theme:{type:String,default:"jv-light"},timeformat:{type:Function,default:function(e){return e.toLocaleString()}},previewMode:{type:Boolean,default:!1},showArrayIndex:{type:Boolean,default:!0},showDoubleQuotes:{type:Boolean,default:!1}},provide:function(){return{expandDepth:this.expandDepth,timeformat:this.timeformat,onKeyclick:this.onKeyclick}},data:function(){return{copied:!1,expandableCode:!1,expandCode:this.expanded}},computed:{jvClass:function(){return"jv-container "+this.theme+(this.boxed?" boxed":"")},copyText:function(){var e=this.copyable;return{copyText:e.copyText||"copy",copiedText:e.copiedText||"copied!",timeout:e.timeout||2e3,align:e.align}}},watch:{value:function(){this.onResized()}},mounted:function(){var e=this;this.debounceResized=(0,l.debounce)(this.debResized.bind(this),200),this.boxed&&this.$refs.jsonBox&&(this.onResized(),this.$refs.jsonBox.$el.addEventListener("resized",this.onResized,!0)),this.copyable&&new o.default(this.$refs.clip,{container:this.$refs.viewer,text:function(){return JSON.stringify(e.value,null,2)}}).on("success",(function(t){e.onCopied(t)}))},methods:{onResized:function(){this.debounceResized()},debResized:function(){var e=this;this.$nextTick((function(){e.$refs.jsonBox&&(250<=e.$refs.jsonBox.$el.clientHeight?e.expandableCode=!0:e.expandableCode=!1)}))},onCopied:function(e){var t=this;this.copied||(this.copied=!0,setTimeout((function(){t.copied=!1}),this.copyText.timeout),this.$emit("copied",e))},toggleExpandCode:function(){this.expandCode=!this.expandCode},onKeyclick:function(e){this.$emit("keyclick",e)}}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(1),l=f(n(31)),a=f(n(32)),i=f(n(33)),s=f(n(34)),u=f(n(35)),c=f(n(36)),d=f(n(37)),p=f(n(38));function f(e){return e&&e.__esModule?e:{default:e}}t.default={name:"JsonBox",inject:["expandDepth","onKeyclick"],props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},keyName:{type:String,default:""},sort:Boolean,depth:{type:Number,default:0},previewMode:Boolean,forceExpand:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:{type:String,default:"$"}},data:function(){return{expand:!0,forceExpandMe:this.forceExpand}},mounted:function(){this.expand=this.previewMode||!(this.depth>=this.expandDepth)||this.forceExpandMe},methods:{toggle:function(){this.expand=!this.expand,this.dispatchEvent()},toggleAll:function(){this.expand=!this.expand,this.forceExpandMe=this.expand,this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch(t){var e=document.createEvent("Event");e.initEvent("resized",!0,!1),this.$el.dispatchEvent(e)}},getPath:function(){for(var e=[this.keyName],t=this.$parent;t.depth;)t.$el.classList.contains("jv-node")&&e.push(t.keyName),t=t.$parent;return e.reverse()}},render:function(){var e=this,t=[],n=void 0;null===this.value||void 0===this.value?n=a.default:Array.isArray(this.value)?n=c.default:"[object Date]"===Object.prototype.toString.call(this.value)?n=p.default:"object"===r(this.value)?n=u.default:"number"==typeof this.value?n=i.default:"string"==typeof this.value?n=l.default:"boolean"==typeof this.value?n=s.default:"function"==typeof this.value&&(n=d.default);var f=this.keyName&&this.value&&(Array.isArray(this.value)||"object"===r(this.value)&&"[object Date]"!==Object.prototype.toString.call(this.value));return!this.previewMode&&f&&t.push((0,o.h)("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:function(t){t.altKey?e.toggleAll():e.toggle()}})),this.keyName&&t.push((0,o.h)("span",{class:{"jv-key":!0},innerText:this.showDoubleQuotes?'"'+this.keyName+'":':this.keyName+":",onClick:function(){e.onKeyclick(e.path)}})),t.push((0,o.h)(n,{class:{"jv-push":!0},jsonValue:this.value,keyName:this.keyName,sort:this.sort,depth:this.depth,expand:this.expand,previewMode:this.previewMode,forceExpand:this.forceExpandMe,showArrayIndex:this.showArrayIndex,showDoubleQuotes:this.showDoubleQuotes,path:this.path,"onUpdate:expand":function(t){e.expand=t},"onUpdate:expandAll":function(t){e.expand=t,e.forceExpandMe=e.expand}})),(0,o.h)("div",{class:{"jv-node":!0,"jv-key-node":Boolean(this.keyName)&&!f,toggle:!this.previewMode&&f}},t)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=/^\w+:\/\//;t.default={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data:function(){return{expand:!0,canExtend:!1}},mounted:function(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle:function(){this.expand=!this.expand}},render:function(){var e=this.jsonValue,t=o.test(e),n=void 0;return this.expand?(n={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},t?n.innerHTML='"'+(e=''+e+"").toString()+'"':n.innerText='"'+e.toString()+'"'):n={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},(0,r.h)("span",{},[this.canExtend&&(0,r.h)("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),(0,r.h)("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),(0,r.h)("span",n)])}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.default={name:"JsonUndefined",functional:!0,props:{jsonValue:{type:Object,default:null}},render:function(){return(0,r.h)("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:null===this.jsonValue?"null":"undefined"})}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.default={name:"JsonNumber",functional:!0,props:{jsonValue:{type:Number,required:!0}},render:function(){var e=Number.isInteger(this.jsonValue);return(0,r.h)("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":e,"jv-number-float":!e},innerText:this.jsonValue.toString()})}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.default={name:"JsonBoolean",functional:!0,props:{jsonValue:Boolean},render:function(){return(0,r.h)("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:this.jsonValue.toString()})}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=(n=n(22))&&n.__esModule?n:{default:n};t.default={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean,forceExpand:Boolean,sort:Boolean,previewMode:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:String},data:function(){return{value:{}}},computed:{ordered:function(){var e=this;if(!this.sort)return this.value;var t={};return Object.keys(this.value).sort().forEach((function(n){t[n]=e.value[n]})),t}},watch:{jsonValue:function(e){this.setValue(e)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(e){var t=this;setTimeout((function(){t.value=e}),0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},toggleAll:function(){this.$emit("update:expandAll",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch(t){var e=document.createEvent("Event");e.initEvent("resized",!0,!1),this.$el.dispatchEvent(e)}}},render:function(){var e,t=this,n=[];if(this.previewMode||this.keyName||n.push((0,r.h)("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:function(e){e.altKey?t.toggleAll():t.toggle()}})),n.push((0,r.h)("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"{"})),this.expand)for(var l in this.ordered)this.ordered.hasOwnProperty(l)&&(e=this.ordered[l],n.push((0,r.h)(o.default,{key:l,style:{display:this.expand?void 0:"none"},sort:this.sort,keyName:l,depth:this.depth+1,value:e,previewMode:this.previewMode,forceExpand:this.forceExpand,showArrayIndex:this.showArrayIndex,showDoubleQuotes:this.showDoubleQuotes,path:this.path+"."+l})));return!this.expand&&Object.keys(this.value).length&&n.push((0,r.h)("span",{class:{"jv-ellipsis":!0},onClick:function(e){e.altKey?t.toggleAll():t.toggle()},title:"click to reveal object content (keys: "+Object.keys(this.ordered).join(", ")+")",innerText:"..."})),n.push((0,r.h)("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"}"})),(0,r.h)("span",n)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=(n=n(22))&&n.__esModule?n:{default:n};t.default={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},sort:Boolean,expand:Boolean,forceExpand:Boolean,previewMode:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:String},data:function(){return{value:[]}},watch:{jsonValue:function(e){this.setValue(e)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(e){var t=this,n=1n&&(t.value.push(e[n]),t.setValue(e,n+1))}),0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},toggleAll:function(){this.$emit("update:expandAll",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch(t){var e=document.createEvent("Event");e.initEvent("resized",!0,!1),this.$el.dispatchEvent(e)}}},render:function(){var e=this,t=[];return this.previewMode||this.keyName||t.push((0,r.h)("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:function(t){t.altKey?e.toggleAll():e.toggle()}})),t.push((0,r.h)("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"["})),this.expand&&this.value.forEach((function(n,l){t.push((0,r.h)(o.default,{key:l,style:{display:e.expand?void 0:"none"},sort:e.sort,keyName:e.showArrayIndex?""+l:"",depth:e.depth+1,value:n,previewMode:e.previewMode,forceExpand:e.forceExpand,showArrayIndex:e.showArrayIndex,showDoubleQuotes:e.showDoubleQuotes,path:e.path+"."+l}))})),!this.expand&&this.value.length&&t.push((0,r.h)("span",{class:{"jv-ellipsis":!0},onClick:function(t){t.altKey?e.toggleAll():e.toggle()},title:"click to reveal "+this.value.length+" hidden items",innerText:"..."})),t.push((0,r.h)("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"]"})),(0,r.h)("span",t)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.default={name:"JsonFunction",functional:!0,props:{jsonValue:{type:Function,required:!0}},render:function(){return(0,r.h)("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:this.jsonValue.toString()},innerHTML:"<function>"})}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.default={name:"JsonDate",inject:["timeformat"],functional:!0,props:{jsonValue:{type:Date,required:!0}},render:function(){var e=this.jsonValue,t=this.timeformat;return(0,r.h)("span",{class:{"jv-item":!0,"jv-string":!0},innerText:'"'+t(e)+'"'})}}},function(e,t,n){n.r(t);var r,o=n(2),l=n.n(o);for(r in n.d(t,"default",(function(){return l.a})),o)["default","default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r)},function(e,t,n){n.r(t);var r,o=n(3),l=n.n(o);for(r in n.d(t,"default",(function(){return l.a})),o)["default","default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r)},function(e,t,n){n.r(t);var r,o=n(4),l=n.n(o);for(r in n.d(t,"default",(function(){return l.a})),o)["default","default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r)},function(e,t,n){n.r(t);var r,o=n(5),l=n.n(o);for(r in n.d(t,"default",(function(){return l.a})),o)["default","default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r)},function(e,t,n){n.r(t);var r,o=n(6),l=n.n(o);for(r in n.d(t,"default",(function(){return l.a})),o)["default","default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r)},function(e,t,n){n.r(t);var r,o=n(7),l=n.n(o);for(r in n.d(t,"default",(function(){return l.a})),o)["default","default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r)},function(e,t,n){n.r(t);var r,o=n(8),l=n.n(o);for(r in n.d(t,"default",(function(){return l.a})),o)["default","default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r)},function(e,t,n){n.r(t);var r,o=n(9),l=n.n(o);for(r in n.d(t,"default",(function(){return l.a})),o)["default","default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r)},function(e,t,n){n.r(t);var r,o=n(10),l=n.n(o);for(r in n.d(t,"default",(function(){return l.a})),o)["default","default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r)},function(e,t,n){n.r(t);var r,o=n(11),l=n.n(o);for(r in n.d(t,"default",(function(){return l.a})),o)["default","default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r)},function(e,t,n){n.r(t);var r,o=n(13);for(r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);n(39);var l=n(0);l=n.n(l)()(o.default,[["__file","lib/json-box.vue"]]),t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.render=function(e,t,n,o,l,a){var i=(0,r.resolveComponent)("json-box");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"viewer",class:(0,r.normalizeClass)(a.jvClass)},[n.copyable?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)("jv-tooltip "+(a.copyText.align||"right"))},[(0,r.createElementVNode)("span",{ref:"clip",class:(0,r.normalizeClass)(["jv-button",{copied:l.copied}])},[(0,r.renderSlot)(e.$slots,"copy",{copied:l.copied},(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(l.copied?a.copyText.copiedText:a.copyText.copyText),1)]}))],2)],2)):(0,r.createCommentVNode)("v-if",!0),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["jv-code",{open:l.expandCode,boxed:n.boxed}])},[(0,r.createVNode)(i,{ref:"jsonBox",value:n.value,sort:n.sort,"preview-mode":n.previewMode,"show-array-index":n.showArrayIndex,"show-double-quotes":n.showDoubleQuotes,onKeyclick:a.onKeyclick},null,8,["value","sort","preview-mode","show-array-index","show-double-quotes","onKeyclick"])],2),l.expandableCode&&n.boxed?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,class:"jv-more",onClick:t[0]||(t[0]=function(){return a.toggleExpandCode&&a.toggleExpandCode.apply(a,arguments)})},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["jv-toggle",{open:!!l.expandCode}])},null,2)])):(0,r.createCommentVNode)("v-if",!0)],2)};var r=n(1)},function(e,t,n){var r=n(40);"string"==typeof r&&(r=[[e.i,r,""]]);n(26)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},function(e,t,n){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n,r,o,l,a,i=(r=e,l=(n=t)[1]||"",(a=n[3])?r&&"function"==typeof btoa?(o=a,o=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),n="/*# ".concat(o," */"),r=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")})),[l].concat(r).concat([n]).join("\n")):[l].join("\n"):l);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=d(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=d(e.value,t):(n=s()(e),u("copy")),n};function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===v(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=a()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,o=e.target,l=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==f(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return l?p(l,{container:r}):o?"cut"===n?c(o):p(o,{container:r}):void 0}({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return y("action",e)}},{key:"defaultTarget",value:function(e){var t=y("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return y("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return p(e,t)}},{key:"cut",value:function(e){return c(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&h(t.prototype,n),r&&h(t,r),l}(o()),w=b},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function o(e,t,n,r,o){var a=l.apply(this,arguments);return e.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}function l(e,t,n,o){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=function(e,t,n,r,l){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,r,l)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return a=t,i=n,(l=e).addEventListener(a,i),{destroy:function(){l.removeEventListener(a,i)}};var l,a,i;if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Ume={class:"dialog-footer"},Kme={__name:"App",setup(e){const t=Wt(!1),n=Wt("");Wt("");const r=()=>{t.value=!1,localStorage.setItem("version","1.0.2"),localStorage.setItem("version",Fme)};return Nr((()=>{(async()=>{const e=await fetch("/update_description.json");if(e.ok){const t=await e.json();n.value=t[0].content["wj-gzsjzt-admin"]}})(),localStorage.getItem("version")===Fme&&localStorage.getItem("version")||(t.value=!0)})),(e,o)=>{const l=Kr("router-view"),a=Kr("el-config-provider"),i=Kr("el-button"),s=Kr("el-dialog");return vl(),bl(sl,null,[Ol(a,{locale:Gt($me)},{default:Bn((()=>[Ol(l)])),_:1},8,["locale"]),Ol(s,{modelValue:Gt(t),"onUpdate:modelValue":o[1]||(o[1]=e=>Ft(t)?t.value=e:null),title:"Tips",width:"500","before-close":e.handleClose},{footer:Bn((()=>[El("div",Ume,[Ol(i,{onClick:o[0]||(o[0]=e=>t.value=!1)},{default:Bn((()=>[Tl("Cancel")])),_:1}),Ol(i,{type:"primary",onClick:r},{default:Bn((()=>[Tl(" Confirm ")])),_:1})])])),default:Bn((()=>[(vl(!0),bl(sl,null,Qr(Gt(n),((e,t)=>(vl(),bl("div",{key:t},ve(t+1)+"、"+ve(e),1)))),128))])),_:1},8,["modelValue","before-close"])],64)}}},qme=Wme(Kme,[["__scopeId","data-v-d8475b0d"]]),Yme=Wt(!1);ule.TableColumn.props.renderHeader={type:Function,default:({column:e})=>la("div",[la(BQ,{content:`${e.label||e.property}`,placement:"top",disabled:Yme.value},[la("span",{style:{display:"inline-block",maxWidth:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},onMouseenter:e=>async function(e){const t=await(n=e,new Promise((e=>{const t=(window.event||n).target,r=document.defaultView.getComputedStyle(t,""),o=parseInt(r.paddingLeft.replace("px",""))+parseInt(r.paddingRight.replace("px","")),l=document.createRange();l.setStart(t,0),l.setEnd(t,t.childNodes.length),l.getBoundingClientRect().width+o>t.offsetWidth||t.scrollWidth>t.offsetWidth?e(!0):e(!1)})));var n;Yme.value=!t}(e)},e.label||e.property)])])};const Gme=zi(qme);for(const[Jme,Xme]of Object.entries(cK))Gme.component(Jme,Xme);Gme.use(Xde),Gme.use(xce),Gme.use(jme),Gme.use(Dme),Gme.directive("tooltip",Bpe),Gme.mount("#app");export{kce as $,aE as A,Rb as B,Yk as C,CC as D,fM as E,sl as F,hE as G,rz as H,nS as I,vM as J,QM as K,$_ as L,Bk as M,D_ as N,aM as O,QS as P,dE as Q,l_ as R,xC as S,La as T,U_ as U,PM as V,xO as W,$l as X,Ft as Y,K as Z,Wme as _,Kr as a,ZZ as a0,e0 as a1,en as a2,Hr as a3,wn as a4,oa as a5,Al as a6,Ol as b,bl as c,Qr as d,Tl as e,Gt as f,El as g,Jde as h,wl as i,Yr as j,Ll as k,Nr as l,Gr as m,ir as n,vl as o,jn as p,Vn as q,Wt as r,yM as s,ve as t,Gde as u,Uw as v,Bn as w,Fh as x,tx as y,uw as z}; diff --git a/assets/index-a95b2668.js b/assets/index-a95b2668.js new file mode 100644 index 0000000..7a673a5 --- /dev/null +++ b/assets/index-a95b2668.js @@ -0,0 +1,2 @@ +import{r as e,u as t,a as n,o as a,c as o,b as r,w as i,F as u,d as l,e as s,t as d,f as c,g as p,_ as f,h as m,T as h,i as v,j as _,k as x}from"./index-8c106f3c.js"; +/*! js-cookie v3.0.5 | MIT */function b(e){for(var t=1;t{C.set("activeRoute",e)};return h.value=v||"/home",v||_.push({path:"/home"}),(e,t)=>{const p=n("house"),v=n("el-icon"),_=n("el-menu-item"),b=n("sunny"),C=n("el-sub-menu"),I=n("el-menu");return a(),o("div",g,[r(I,{"default-active":c(h),router:"","default-openeds":["/antv","/element"]},{default:i((()=>[r(_,{index:"/home",onClick:x},{default:i((()=>[r(v,null,{default:i((()=>[r(p)])),_:1}),y])),_:1}),r(C,{index:"/antv"},{title:i((()=>[r(v,null,{default:i((()=>[r(b)])),_:1}),k])),default:i((()=>[(a(),o(u,null,l(f,(e=>r(_,{key:e.path,index:e.path,onClick:x},{default:i((()=>[s(d(e.name),1)])),_:2},1032,["index"]))),64))])),_:1}),r(C,{index:"/element"},{title:i((()=>[r(v,null,{default:i((()=>[r(b)])),_:1}),w])),default:i((()=>[(a(),o(u,null,l(m,(e=>r(_,{key:e.path,index:e.path,onClick:x},{default:i((()=>[s(d(e.name),1)])),_:2},1032,["index"]))),64))])),_:1}),r(_,{index:"/editor",onClick:x},{default:i((()=>[r(v,null,{default:i((()=>[r(p)])),_:1}),R])),_:1})])),_:1},8,["default-active"])])}}},B={class:"head-container"},U=f({__name:"Head",setup(e){const t=m(),u=()=>{window.open("https://www.yuque.com/forms/share/0e925ffb-79ff-46b1-a060-06c833d182be")};return(e,l)=>{const p=n("el-breadcrumb-item"),f=n("el-breadcrumb"),m=n("el-button");return a(),o("div",B,[r(f,{"separator-icon":"arrowRight"},{default:i((()=>[r(p,{to:{path:"/"}},{default:i((()=>[s("首页")])),_:1}),r(p,{to:{path:c(t).path}},{default:i((()=>[s(d(c(t).meta.title),1)])),_:1},8,["to"])])),_:1}),r(m,{type:"primary",text:"",icon:"ChatDotRound",onClick:u},{default:i((()=>[s("给作者留言")])),_:1})])}}},[["__scopeId","data-v-2c5123ec"]]),j={class:"main-container"},D=f({},[["render",function(e,t){const u=n("router-view");return a(),o("div",j,[r(u,null,{default:i((({Component:e,route:t})=>[r(h,{name:"fade",mode:"out-in"},{default:i((()=>[t.meta.link?x("",!0):(a(),v(_(e),{key:t.path}))])),_:2},1024)])),_:1})])}],["__scopeId","data-v-a2f1a513"]]),A={class:"layout-container"},F={class:"layout-sideBar"},E={class:"layout-right"},O={class:"layout-right-top"},S={class:"layout-right-main"},z=f({__name:"index",setup:e=>(e,t)=>(a(),o("div",A,[p("div",F,[r(c(I))]),p("div",E,[p("div",O,[r(c(U))]),p("div",S,[r(c(D))])])]))},[["__scopeId","data-v-38aa5df4"]]);export{z as default}; diff --git a/assets/javascript-9ad19f92.js b/assets/javascript-9ad19f92.js new file mode 100644 index 0000000..1e9ad3c --- /dev/null +++ b/assets/javascript-9ad19f92.js @@ -0,0 +1,7 @@ +import{conf as e,language as t}from"./typescript-59dd792e.js";import"./index-8027a4c8.js";import"./index-8c106f3c.js"; +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var s=e,i={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:t.operators,symbols:t.symbols,escapes:t.escapes,digits:t.digits,octaldigits:t.octaldigits,binarydigits:t.binarydigits,hexdigits:t.hexdigits,regexpctl:t.regexpctl,regexpesc:t.regexpesc,tokenizer:t.tokenizer};export{s as conf,i as language}; diff --git a/assets/jsonMode-57aeeb1f.js b/assets/jsonMode-57aeeb1f.js new file mode 100644 index 0000000..b755990 --- /dev/null +++ b/assets/jsonMode-57aeeb1f.js @@ -0,0 +1,7 @@ +import{m as e}from"./index-8027a4c8.js";import"./index-8c106f3c.js"; +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o=(e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let c of r(o))i.call(e,c)||c===a||t(e,c,{get:()=>o[c],enumerable:!(s=n(o,c))||s.enumerable});return e},a={};o(a,e,"default");var s,c,u,d,g,l,h,f,p,m,v,k,b,_,w,C,y,E,A,x,I,S,T,R,D,P,j,M,L,F,O,N,W,U,V,H,K,z,q,X,B,$,J,Q,G,Y,Z,ee,te,ne=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=a.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(c=s||(s={})).MIN_VALUE=-2147483648,c.MAX_VALUE=2147483647,(d=u||(u={})).MIN_VALUE=0,d.MAX_VALUE=2147483647,(l=g||(g={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=u.MAX_VALUE),t===Number.MAX_VALUE&&(t=u.MAX_VALUE),{line:e,character:t}},l.is=function(e){var t=e;return rt.objectLiteral(t)&&rt.uinteger(t.line)&&rt.uinteger(t.character)},(f=h||(h={})).create=function(e,t,n,r){if(rt.uinteger(e)&&rt.uinteger(t)&&rt.uinteger(n)&&rt.uinteger(r))return{start:g.create(e,t),end:g.create(n,r)};if(g.is(e)&&g.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},f.is=function(e){var t=e;return rt.objectLiteral(t)&&g.is(t.start)&&g.is(t.end)},(m=p||(p={})).create=function(e,t){return{uri:e,range:t}},m.is=function(e){var t=e;return rt.defined(t)&&h.is(t.range)&&(rt.string(t.uri)||rt.undefined(t.uri))},(k=v||(v={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},k.is=function(e){var t=e;return rt.defined(t)&&h.is(t.targetRange)&&rt.string(t.targetUri)&&(h.is(t.targetSelectionRange)||rt.undefined(t.targetSelectionRange))&&(h.is(t.originSelectionRange)||rt.undefined(t.originSelectionRange))},(_=b||(b={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},_.is=function(e){var t=e;return rt.numberRange(t.red,0,1)&&rt.numberRange(t.green,0,1)&&rt.numberRange(t.blue,0,1)&&rt.numberRange(t.alpha,0,1)},(C=w||(w={})).create=function(e,t){return{range:e,color:t}},C.is=function(e){var t=e;return h.is(t.range)&&b.is(t.color)},(E=y||(y={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},E.is=function(e){var t=e;return rt.string(t.label)&&(rt.undefined(t.textEdit)||U.is(t))&&(rt.undefined(t.additionalTextEdits)||rt.typedArray(t.additionalTextEdits,U.is))},(x=A||(A={})).Comment="comment",x.Imports="imports",x.Region="region",(S=I||(I={})).create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return rt.defined(n)&&(o.startCharacter=n),rt.defined(r)&&(o.endCharacter=r),rt.defined(i)&&(o.kind=i),o},S.is=function(e){var t=e;return rt.uinteger(t.startLine)&&rt.uinteger(t.startLine)&&(rt.undefined(t.startCharacter)||rt.uinteger(t.startCharacter))&&(rt.undefined(t.endCharacter)||rt.uinteger(t.endCharacter))&&(rt.undefined(t.kind)||rt.string(t.kind))},(R=T||(T={})).create=function(e,t){return{location:e,message:t}},R.is=function(e){var t=e;return rt.defined(t)&&p.is(t.location)&&rt.string(t.message)},(P=D||(D={})).Error=1,P.Warning=2,P.Information=3,P.Hint=4,(M=j||(j={})).Unnecessary=1,M.Deprecated=2,(L||(L={})).is=function(e){var t=e;return null!=t&&rt.string(t.href)},(O=F||(F={})).create=function(e,t,n,r,i,o){var a={range:e,message:t};return rt.defined(n)&&(a.severity=n),rt.defined(r)&&(a.code=r),rt.defined(i)&&(a.source=i),rt.defined(o)&&(a.relatedInformation=o),a},O.is=function(e){var t,n=e;return rt.defined(n)&&h.is(n.range)&&rt.string(n.message)&&(rt.number(n.severity)||rt.undefined(n.severity))&&(rt.integer(n.code)||rt.string(n.code)||rt.undefined(n.code))&&(rt.undefined(n.codeDescription)||rt.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(rt.string(n.source)||rt.undefined(n.source))&&(rt.undefined(n.relatedInformation)||rt.typedArray(n.relatedInformation,T.is))},(W=N||(N={})).create=function(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i},W.is=function(e){var t=e;return rt.defined(t)&&rt.string(t.title)&&rt.string(t.command)},(V=U||(U={})).replace=function(e,t){return{range:e,newText:t}},V.insert=function(e,t){return{range:{start:e,end:e},newText:t}},V.del=function(e){return{range:e,newText:""}},V.is=function(e){var t=e;return rt.objectLiteral(t)&&rt.string(t.newText)&&h.is(t.range)},(K=H||(H={})).create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},K.is=function(e){var t=e;return void 0!==t&&rt.objectLiteral(t)&&rt.string(t.label)&&(rt.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(rt.string(t.description)||void 0===t.description)},(z||(z={})).is=function(e){return"string"==typeof e},(X=q||(q={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},X.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},X.del=function(e,t){return{range:e,newText:"",annotationId:t}},X.is=function(e){var t=e;return U.is(t)&&(H.is(t.annotationId)||z.is(t.annotationId))},($=B||(B={})).create=function(e,t){return{textDocument:e,edits:t}},$.is=function(e){var t=e;return rt.defined(t)&&se.is(t.textDocument)&&Array.isArray(t.edits)},(Q=J||(J={})).create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},Q.is=function(e){var t=e;return t&&"create"===t.kind&&rt.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||rt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||rt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||z.is(t.annotationId))},(Y=G||(G={})).create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},Y.is=function(e){var t=e;return t&&"rename"===t.kind&&rt.string(t.oldUri)&&rt.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||rt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||rt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||z.is(t.annotationId))},(ee=Z||(Z={})).create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},ee.is=function(e){var t=e;return t&&"delete"===t.kind&&rt.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||rt.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||rt.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||z.is(t.annotationId))},(te||(te={})).is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return rt.string(e.kind)?J.is(e)||G.is(e)||Z.is(e):B.is(e)})))};var re,ie,oe,ae,se,ce,ue,de,ge,le,he,fe,pe,me,ve,ke,be,_e,we,Ce,ye,Ee,Ae,xe,Ie,Se,Te,Re,De,Pe,je,Me,Le,Fe,Oe,Ne,We,Ue,Ve,He,Ke,ze,qe,Xe,Be,$e,Je,Qe,Ge,Ye,Ze,et,tt=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=U.insert(e,t):z.is(n)?(i=n,r=q.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=q.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=U.replace(e,t):z.is(n)?(i=n,r=q.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=q.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=U.del(e):z.is(t)?(r=t,n=q.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=q.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),nt=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(z.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new nt(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(B.is(e)){var n=new tt(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new tt(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(se.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new tt(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new tt(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new nt,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(H.is(t)||z.is(t)?r=t:n=t,void 0===r?i=J.create(e,n):(o=z.is(r)?r:this._changeAnnotations.manage(r),i=J.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(H.is(n)||z.is(n)?i=n:r=n,void 0===i?o=G.create(e,t,r):(a=z.is(i)?i:this._changeAnnotations.manage(i),o=G.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(H.is(t)||z.is(t)?r=t:n=t,void 0===r?i=Z.create(e,n):(o=z.is(r)?r:this._changeAnnotations.manage(r),i=Z.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),(ie=re||(re={})).create=function(e){return{uri:e}},ie.is=function(e){var t=e;return rt.defined(t)&&rt.string(t.uri)},(ae=oe||(oe={})).create=function(e,t){return{uri:e,version:t}},ae.is=function(e){var t=e;return rt.defined(t)&&rt.string(t.uri)&&rt.integer(t.version)},(ce=se||(se={})).create=function(e,t){return{uri:e,version:t}},ce.is=function(e){var t=e;return rt.defined(t)&&rt.string(t.uri)&&(null===t.version||rt.integer(t.version))},(de=ue||(ue={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},de.is=function(e){var t=e;return rt.defined(t)&&rt.string(t.uri)&&rt.string(t.languageId)&&rt.integer(t.version)&&rt.string(t.text)},(le=ge||(ge={})).PlainText="plaintext",le.Markdown="markdown",(et=ge||(ge={})).is=function(e){var t=e;return t===et.PlainText||t===et.Markdown},(he||(he={})).is=function(e){var t=e;return rt.objectLiteral(e)&&ge.is(t.kind)&&rt.string(t.value)},(pe=fe||(fe={})).Text=1,pe.Method=2,pe.Function=3,pe.Constructor=4,pe.Field=5,pe.Variable=6,pe.Class=7,pe.Interface=8,pe.Module=9,pe.Property=10,pe.Unit=11,pe.Value=12,pe.Enum=13,pe.Keyword=14,pe.Snippet=15,pe.Color=16,pe.File=17,pe.Reference=18,pe.Folder=19,pe.EnumMember=20,pe.Constant=21,pe.Struct=22,pe.Event=23,pe.Operator=24,pe.TypeParameter=25,(ve=me||(me={})).PlainText=1,ve.Snippet=2,(ke||(ke={})).Deprecated=1,(_e=be||(be={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},_e.is=function(e){var t=e;return t&&rt.string(t.newText)&&h.is(t.insert)&&h.is(t.replace)},(Ce=we||(we={})).asIs=1,Ce.adjustIndentation=2,(ye||(ye={})).create=function(e){return{label:e}},(Ee||(Ee={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(xe=Ae||(Ae={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},xe.is=function(e){var t=e;return rt.string(t)||rt.objectLiteral(t)&&rt.string(t.language)&&rt.string(t.value)},(Ie||(Ie={})).is=function(e){var t=e;return!!t&&rt.objectLiteral(t)&&(he.is(t.contents)||Ae.is(t.contents)||rt.typedArray(t.contents,Ae.is))&&(void 0===e.range||h.is(e.range))},(Se||(Se={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Te||(Te={})).create=function(e,t){for(var n=[],r=2;r=0;a--){var s=i[a],c=e.offsetAt(s.range.start),u=e.offsetAt(s.range.end);if(!(u<=o))throw new Error("Overlapping edit");r=r.substring(0,c)+s.newText+r.substring(u,r.length),o=c}return r}}(Ze||(Ze={}));var rt,it,ot,at=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return g.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return g.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{a.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(a.editor.onDidCreateModel(r)),this._disposables.push(a.editor.onWillDisposeModel(i)),this._disposables.push(a.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{a.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{a.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),a.editor.getModels().forEach(r)}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"==typeof t.code?String(t.code):t.code;return{severity:ct(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=a.editor.getModel(e);i&&i.getLanguageId()===t&&a.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{}))}};function ct(e){switch(e){case D.Error:return a.MarkerSeverity.Error;case D.Warning:return a.MarkerSeverity.Warning;case D.Information:return a.MarkerSeverity.Info;case D.Hint:return a.MarkerSeverity.Hint;default:return a.MarkerSeverity.Info}}var ut=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),dt(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new a.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:ht(e.kind)};var n,r;return e.textEdit&&(void 0!==(r=e.textEdit).insert&&void 0!==r.replace?t.range={insert:lt(e.textEdit.insert),replace:lt(e.textEdit.replace)}:t.range=lt(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(ft)),e.insertTextFormat===me.Snippet&&(t.insertTextRules=a.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function dt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function gt(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function lt(e){if(e)return new a.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function ht(e){const t=a.languages.CompletionItemKind;switch(e){case fe.Text:return t.Text;case fe.Method:return t.Method;case fe.Function:return t.Function;case fe.Constructor:return t.Constructor;case fe.Field:return t.Field;case fe.Variable:return t.Variable;case fe.Class:return t.Class;case fe.Interface:return t.Interface;case fe.Module:return t.Module;case fe.Property:return t.Property;case fe.Unit:return t.Unit;case fe.Value:return t.Value;case fe.Enum:return t.Enum;case fe.Keyword:return t.Keyword;case fe.Snippet:return t.Snippet;case fe.Color:return t.Color;case fe.File:return t.File;case fe.Reference:return t.Reference}return t.Property}function ft(e){if(e)return{range:lt(e.range),text:e.newText}}var pt=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),dt(t)))).then((e=>{if(e)return{range:lt(e.range),contents:vt(e.contents)}}))}};function mt(e){return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function vt(e){if(e)return Array.isArray(e)?e.map(mt):[mt(e)]}var kt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),dt(t)))).then((e=>{if(e)return e.map((e=>({range:lt(e.range),kind:bt(e.kind)})))}))}};function bt(e){switch(e){case Re.Read:return a.languages.DocumentHighlightKind.Read;case Re.Write:return a.languages.DocumentHighlightKind.Write;case Re.Text:return a.languages.DocumentHighlightKind.Text}return a.languages.DocumentHighlightKind.Text}var _t=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),dt(t)))).then((e=>{if(e)return[wt(e)]}))}};function wt(e){return{uri:a.Uri.parse(e.uri),range:lt(e.range)}}var Ct=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),dt(t)))).then((e=>{if(e)return e.map(wt)}))}},yt=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),dt(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=a.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:lt(i.range),text:i.newText}})}return{edits:t}}(e)))}},Et=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>"children"in e?At(e):{name:e.name,detail:"",containerName:e.containerName,kind:xt(e.kind),range:lt(e.location.range),selectionRange:lt(e.location.range),tags:[]}))}))}};function At(e){return{name:e.name,detail:e.detail??"",kind:xt(e.kind),range:lt(e.range),selectionRange:lt(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map((e=>At(e)))}}function xt(e){let t=a.languages.SymbolKind;switch(e){case je.File:return t.File;case je.Module:return t.Module;case je.Namespace:return t.Namespace;case je.Package:return t.Package;case je.Class:return t.Class;case je.Method:return t.Method;case je.Property:return t.Property;case je.Field:return t.Field;case je.Constructor:return t.Constructor;case je.Enum:return t.Enum;case je.Interface:return t.Interface;case je.Function:return t.Function;case je.Variable:return t.Variable;case je.Constant:return t.Constant;case je.String:return t.String;case je.Number:return t.Number;case je.Boolean:return t.Boolean;case je.Array:return t.Array}return t.Function}var It=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:lt(e.range),url:e.target})))}}))}},St=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,Rt(t)).then((e=>{if(e&&0!==e.length)return e.map(ft)}))))}},Tt=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),gt(t),Rt(n)).then((e=>{if(e&&0!==e.length)return e.map(ft)}))))}};function Rt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Dt,Pt=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:lt(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,gt(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=ft(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(ft)),t}))}))}},jt=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case A.Comment:return a.languages.FoldingRangeKind.Comment;case A.Imports:return a.languages.FoldingRangeKind.Imports;case A.Region:return a.languages.FoldingRangeKind.Region}}(e.kind)),t}))}))}},Mt=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(dt)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:lt(e.range)}),e=e.parent;return t}))}))}};function Lt(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function Ft(e){return 10===e||13===e||8232===e||8233===e}function Ot(e){return e>=48&&e<=57}(Dt||(Dt={})).DEFAULT={allowTrailingComma:!1};var Nt=function(e,t){void 0===t&&(t=!1);var n=e.length,r=0,i="",o=0,a=16,s=0,c=0,u=0,d=0,g=0;function l(t,n){for(var i=0,o=0;i=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}r++,i++}return i=n)return o=n,a=17;var t=e.charCodeAt(r);if(Lt(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(Lt(t));return a=15}if(Ft(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),s++,u=r,a=14;switch(t){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,i=function(){for(var t="",i=r;;){if(r>=n){t+=e.substring(i,r),g=2;break}var o=e.charCodeAt(r);if(34===o){t+=e.substring(i,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(Ft(o)){t+=e.substring(i,r),g=2;break}g=6}r++}else{if(t+=e.substring(i,r),++r>=n){g=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var a=l(4,!0);a>=0?t+=String.fromCharCode(a):g=4;break;default:g=5}i=r}}return t}(),a=10;case 47:var h=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r=12&&e<=15);return e}:h,getToken:function(){return a},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return c},getTokenStartCharacter:function(){return o-d},getTokenError:function(){return g}}};var Wt,Ut="delimiter.bracket.json",Vt="delimiter.array.json",Ht="delimiter.colon.json",Kt="delimiter.comma.json",zt="keyword.json",qt="keyword.json",Xt="string.value.json",Bt="number.json",$t="string.key.json",Jt="comment.block.json",Qt="comment.line.json",Gt=class e{constructor(e,t){this.parent=e,this.type=t}static pop(e){return e?e.parent:null}static push(t,n){return new e(t,n)}static equals(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;for(;e&&t;){if(e===t)return!0;if(e.type!==t.type)return!1;e=e.parent,t=t.parent}return!0}},Yt=class e{constructor(e,t,n,r){this._state=e,this.scanError=t,this.lastWasColon=n,this.parents=r}clone(){return new e(this._state,this.scanError,this.lastWasColon,this.parents)}equals(t){return t===this||!!(t&&t instanceof e)&&this.scanError===t.scanError&&this.lastWasColon===t.lastWasColon&&Gt.equals(this.parents,t.parents)}getStateData(){return this._state}setStateData(e){this._state=e}};function Zt(){return new Promise(((e,t)=>{if(!Wt)return t("JSON not registered!");e(Wt)}))}var en=class extends st{constructor(e,t,n){super(e,t,n.onDidChange),this._disposables.push(a.editor.onWillDisposeModel((e=>{this._resetSchema(e.uri)}))),this._disposables.push(a.editor.onDidChangeModelLanguage((e=>{this._resetSchema(e.model.uri)})))}_resetSchema(e){this._worker().then((t=>{t.resetSchema(e.toString())}))}};function tn(e){const t=[],n=[],r=new ne(e);function i(){const{languageId:t,modeConfiguration:r}=e;rn(n),r.documentFormattingEdits&&n.push(a.languages.registerDocumentFormattingEditProvider(t,new St(Wt))),r.documentRangeFormattingEdits&&n.push(a.languages.registerDocumentRangeFormattingEditProvider(t,new Tt(Wt))),r.completionItems&&n.push(a.languages.registerCompletionItemProvider(t,new ut(Wt,[" ",":",'"']))),r.hovers&&n.push(a.languages.registerHoverProvider(t,new pt(Wt))),r.documentSymbols&&n.push(a.languages.registerDocumentSymbolProvider(t,new Et(Wt))),r.tokens&&n.push(a.languages.setTokensProvider(t,function(e){return{getInitialState:()=>new Yt(null,null,!1,null),tokenize:(t,n)=>function(e,t,n,r=0){let i=0,o=!1;switch(n.scanError){case 2:t='"'+t,i=1;break;case 1:t="/*"+t,i=2}const a=Nt(t);let s=n.lastWasColon,c=n.parents;const u={tokens:[],endState:n.clone()};for(;;){let d=r+a.getPosition(),g="";const l=a.scan();if(17===l)break;if(d===r+a.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+t.substr(a.getPosition(),3));switch(o&&(d-=i),o=i>0,l){case 1:c=Gt.push(c,0),g=Ut,s=!1;break;case 2:c=Gt.pop(c),g=Ut,s=!1;break;case 3:c=Gt.push(c,1),g=Vt,s=!1;break;case 4:c=Gt.pop(c),g=Vt,s=!1;break;case 6:g=Ht,s=!0;break;case 5:g=Kt,s=!1;break;case 8:case 9:g=zt,s=!1;break;case 7:g=qt,s=!1;break;case 10:const e=c?c.type:0;g=s||1===e?Xt:$t,s=!1;break;case 11:g=Bt,s=!1}if(e)switch(l){case 12:g=Qt;break;case 13:g=Jt}u.endState=new Yt(n.getStateData(),a.getTokenError(),s,c),u.tokens.push({startIndex:d,scopes:g})}return u}(e,t,n)}}(!0))),r.colors&&n.push(a.languages.registerColorProvider(t,new Pt(Wt))),r.foldingRanges&&n.push(a.languages.registerFoldingRangeProvider(t,new jt(Wt))),r.diagnostics&&n.push(new en(t,Wt,e)),r.selectionRanges&&n.push(a.languages.registerSelectionRangeProvider(t,new Mt(Wt)))}t.push(r),Wt=(...e)=>r.getLanguageServiceWorker(...e),i(),t.push(a.languages.setLanguageConfiguration(e.languageId,on));let o=e.modeConfiguration;return e.onDidChange((e=>{e.modeConfiguration!==o&&(o=e.modeConfiguration,i())})),t.push(nn(n)),nn(t)}function nn(e){return{dispose:()=>rn(e)}}function rn(e){for(;e.length;)e.pop().dispose()}var on={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]};export{ut as CompletionAdapter,_t as DefinitionAdapter,st as DiagnosticsAdapter,Pt as DocumentColorAdapter,St as DocumentFormattingEditProvider,kt as DocumentHighlightAdapter,It as DocumentLinkAdapter,Tt as DocumentRangeFormattingEditProvider,Et as DocumentSymbolAdapter,jt as FoldingRangeAdapter,pt as HoverAdapter,Ct as ReferenceAdapter,yt as RenameAdapter,Mt as SelectionRangeAdapter,ne as WorkerManager,dt as fromPosition,gt as fromRange,Zt as getWorker,tn as setupMode,lt as toRange,ft as toTextEdit}; diff --git a/assets/liquid-5e309bd0.js b/assets/liquid-5e309bd0.js new file mode 100644 index 0000000..0c5b37a --- /dev/null +++ b/assets/liquid-5e309bd0.js @@ -0,0 +1,7 @@ +import{m as e}from"./index-8027a4c8.js";import"./index-8c106f3c.js"; +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,r=(e,r,l,a)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let d of n(r))o.call(e,d)||d===l||t(e,d,{get:()=>r[d],enumerable:!(a=i(r,d))||a.enumerable});return e},l={};r(l,e,"default");var a=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],d={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${a.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:l.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${a.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:l.languages.IndentAction.Indent}}]},s={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[//,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{d as conf,s as language}; diff --git a/assets/mdx-77cd1361.js b/assets/mdx-77cd1361.js new file mode 100644 index 0000000..5f6e399 --- /dev/null +++ b/assets/mdx-77cd1361.js @@ -0,0 +1,7 @@ +import{m as e}from"./index-8027a4c8.js";import"./index-8c106f3c.js"; +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s=(e,s,r,d)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let c of o(s))i.call(e,c)||c===r||t(e,c,{get:()=>s[c],enumerable:!(d=n(s,c))||d.enumerable});return e},r={};s(r,e,"default");var d={comments:{blockComment:["{/*","*/}"]},brackets:[["{","}"]],autoClosingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"“",close:"”"},{open:"‘",close:"’"},{open:"`",close:"`"},{open:"{",close:"}"},{open:"(",close:")"},{open:"_",close:"_"},{open:"**",close:"**"},{open:"<",close:">"}],onEnterRules:[{beforeText:/^\s*- .+/,action:{indentAction:r.languages.IndentAction.None,appendText:"- "}},{beforeText:/^\s*\+ .+/,action:{indentAction:r.languages.IndentAction.None,appendText:"+ "}},{beforeText:/^\s*\* .+/,action:{indentAction:r.languages.IndentAction.None,appendText:"* "}},{beforeText:/^> /,action:{indentAction:r.languages.IndentAction.None,appendText:"> "}},{beforeText:/<\w+/,action:{indentAction:r.languages.IndentAction.Indent}},{beforeText:/\s+>\s*$/,action:{indentAction:r.languages.IndentAction.Indent}},{beforeText:/<\/\w+>/,action:{indentAction:r.languages.IndentAction.Outdent}},...Array.from({length:100},((e,t)=>({beforeText:new RegExp(`^${t}\\. .+`),action:{indentAction:r.languages.IndentAction.None,appendText:`${t+1}. `}})))]},c={defaultToken:"",tokenPostfix:".mdx",control:/[!#()*+.[\\\]_`{}\-]/,escapes:/\\@control/,tokenizer:{root:[[/^---$/,{token:"meta.content",next:"@frontmatter",nextEmbedded:"yaml"}],[/^\s*import/,{token:"keyword",next:"@import",nextEmbedded:"js"}],[/^\s*export/,{token:"keyword",next:"@export",nextEmbedded:"js"}],[/<\w+/,{token:"type.identifier",next:"@jsx"}],[/<\/?\w+>/,"type.identifier"],[/^(\s*)(>*\s*)(#{1,6}\s)/,[{token:"white"},{token:"comment"},{token:"keyword",next:"@header"}]],[/^(\s*)(>*\s*)([*+-])(\s+)/,["white","comment","keyword","white"]],[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/,["white","comment","number","white"]],[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/,["white","comment","number","white"]],[/^(\s*)(>*\s*)(-{3,}|\*{3,}|_{3,})$/,["white","comment","keyword"]],[/`{3,}(\s.*)?$/,{token:"string",next:"@codeblock_backtick"}],[/~{3,}(\s.*)?$/,{token:"string",next:"@codeblock_tilde"}],[/`{3,}(\S+).*$/,{token:"string",next:"@codeblock_highlight_backtick",nextEmbedded:"$1"}],[/~{3,}(\S+).*$/,{token:"string",next:"@codeblock_highlight_tilde",nextEmbedded:"$1"}],[/^(\s*)(-{4,})$/,["white","comment"]],[/^(\s*)(>+)/,["white","comment"]],{include:"content"}],content:[[/(\[)(.+)(]\()(.+)(\s+".*")(\))/,["","string.link","","type.identifier","string.link",""]],[/(\[)(.+)(]\()(.+)(\))/,["","type.identifier","","string.link",""]],[/(\[)(.+)(]\[)(.+)(])/,["","type.identifier","","type.identifier",""]],[/(\[)(.+)(]:\s+)(\S*)/,["","type.identifier","","string.link"]],[/(\[)(.+)(])/,["","type.identifier",""]],[/`.*`/,"variable.source"],[/_/,{token:"emphasis",next:"@emphasis_underscore"}],[/\*(?!\*)/,{token:"emphasis",next:"@emphasis_asterisk"}],[/\*\*/,{token:"strong",next:"@strong"}],[/{/,{token:"delimiter.bracket",next:"@expression",nextEmbedded:"js"}]],import:[[/'\s*(;|$)/,{token:"string",next:"@pop",nextEmbedded:"@pop"}]],expression:[[/{/,{token:"delimiter.bracket",next:"@expression"}],[/}/,{token:"delimiter.bracket",next:"@pop",nextEmbedded:"@pop"}]],export:[[/^\s*$/,{token:"delimiter.bracket",next:"@pop",nextEmbedded:"@pop"}]],jsx:[[/\s+/,""],[/(\w+)(=)("(?:[^"\\]|\\.)*")/,["attribute.name","operator","string"]],[/(\w+)(=)('(?:[^'\\]|\\.)*')/,["attribute.name","operator","string"]],[/(\w+(?=\s|>|={|$))/,["attribute.name"]],[/={/,{token:"delimiter.bracket",next:"@expression",nextEmbedded:"js"}],[/>/,{token:"type.identifier",next:"@pop"}]],header:[[/.$/,{token:"keyword",next:"@pop"}],{include:"content"},[/./,{token:"keyword"}]],strong:[[/\*\*/,{token:"strong",next:"@pop"}],{include:"content"},[/./,{token:"strong"}]],emphasis_underscore:[[/_/,{token:"emphasis",next:"@pop"}],{include:"content"},[/./,{token:"emphasis"}]],emphasis_asterisk:[[/\*(?!\*)/,{token:"emphasis",next:"@pop"}],{include:"content"},[/./,{token:"emphasis"}]],frontmatter:[[/^---$/,{token:"meta.content",nextEmbedded:"@pop",next:"@pop"}]],codeblock_highlight_backtick:[[/\s*`{3,}\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/.*$/,"variable.source"]],codeblock_highlight_tilde:[[/\s*~{3,}\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/.*$/,"variable.source"]],codeblock_backtick:[[/\s*`{3,}\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblock_tilde:[[/\s*~{3,}\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]]}};export{d as conf,c as language}; diff --git a/assets/python-d8688bf7.js b/assets/python-d8688bf7.js new file mode 100644 index 0000000..a4e701e --- /dev/null +++ b/assets/python-d8688bf7.js @@ -0,0 +1,7 @@ +import{m as e}from"./index-8027a4c8.js";import"./index-8c106f3c.js"; +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o=(e,o,i,l)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of r(o))s.call(e,a)||a===i||t(e,a,{get:()=>o[a],enumerable:!(l=n(o,a))||l.enumerable});return e},i={};o(i,e,"default");var l={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},a={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","type","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};export{l as conf,a as language}; diff --git a/assets/razor-7c7068fa.js b/assets/razor-7c7068fa.js new file mode 100644 index 0000000..96308db --- /dev/null +++ b/assets/razor-7c7068fa.js @@ -0,0 +1,7 @@ +import{m as e}from"./index-8027a4c8.js";import"./index-8c106f3c.js"; +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,i=(e,i,m,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let s of o(i))n.call(e,s)||s===m||t(e,s,{get:()=>i[s],enumerable:!(a=r(i,s))||a.enumerable});return e},m={};i(m,e,"default");var a=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],s={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${a.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:m.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${a.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:m.languages.IndentAction.Indent}}]},c={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{s as conf,c as language}; diff --git a/assets/tsMode-462d6c5a.js b/assets/tsMode-462d6c5a.js new file mode 100644 index 0000000..596d93d --- /dev/null +++ b/assets/tsMode-462d6c5a.js @@ -0,0 +1,7 @@ +var e;import{t,m as i}from"./index-8027a4c8.js";import"./index-8c106f3c.js"; +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var s=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(e,t,i,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of n(t))a.call(e,l)||l===i||s(e,l,{get:()=>t[l],enumerable:!(o=r(t,l))||o.enumerable});return e},l={};o(l,i,"default");var c=class{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker())),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange((()=>this._updateExtraLibs()))}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=l.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(l.editor.getModels().filter((e=>e.getLanguageId()===this._modeId)).map((e=>e.uri))):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},d={};function u(e,t,i=0){if("string"==typeof e)return e;if(void 0===e)return"";let s="";if(i){s+=t;for(let e=0;ee.text)).join(""):""}d["lib.d.ts"]=!0,d["lib.decorators.d.ts"]=!0,d["lib.decorators.legacy.d.ts"]=!0,d["lib.dom.d.ts"]=!0,d["lib.dom.iterable.d.ts"]=!0,d["lib.es2015.collection.d.ts"]=!0,d["lib.es2015.core.d.ts"]=!0,d["lib.es2015.d.ts"]=!0,d["lib.es2015.generator.d.ts"]=!0,d["lib.es2015.iterable.d.ts"]=!0,d["lib.es2015.promise.d.ts"]=!0,d["lib.es2015.proxy.d.ts"]=!0,d["lib.es2015.reflect.d.ts"]=!0,d["lib.es2015.symbol.d.ts"]=!0,d["lib.es2015.symbol.wellknown.d.ts"]=!0,d["lib.es2016.array.include.d.ts"]=!0,d["lib.es2016.d.ts"]=!0,d["lib.es2016.full.d.ts"]=!0,d["lib.es2017.d.ts"]=!0,d["lib.es2017.full.d.ts"]=!0,d["lib.es2017.intl.d.ts"]=!0,d["lib.es2017.object.d.ts"]=!0,d["lib.es2017.sharedmemory.d.ts"]=!0,d["lib.es2017.string.d.ts"]=!0,d["lib.es2017.typedarrays.d.ts"]=!0,d["lib.es2018.asyncgenerator.d.ts"]=!0,d["lib.es2018.asynciterable.d.ts"]=!0,d["lib.es2018.d.ts"]=!0,d["lib.es2018.full.d.ts"]=!0,d["lib.es2018.intl.d.ts"]=!0,d["lib.es2018.promise.d.ts"]=!0,d["lib.es2018.regexp.d.ts"]=!0,d["lib.es2019.array.d.ts"]=!0,d["lib.es2019.d.ts"]=!0,d["lib.es2019.full.d.ts"]=!0,d["lib.es2019.intl.d.ts"]=!0,d["lib.es2019.object.d.ts"]=!0,d["lib.es2019.string.d.ts"]=!0,d["lib.es2019.symbol.d.ts"]=!0,d["lib.es2020.bigint.d.ts"]=!0,d["lib.es2020.d.ts"]=!0,d["lib.es2020.date.d.ts"]=!0,d["lib.es2020.full.d.ts"]=!0,d["lib.es2020.intl.d.ts"]=!0,d["lib.es2020.number.d.ts"]=!0,d["lib.es2020.promise.d.ts"]=!0,d["lib.es2020.sharedmemory.d.ts"]=!0,d["lib.es2020.string.d.ts"]=!0,d["lib.es2020.symbol.wellknown.d.ts"]=!0,d["lib.es2021.d.ts"]=!0,d["lib.es2021.full.d.ts"]=!0,d["lib.es2021.intl.d.ts"]=!0,d["lib.es2021.promise.d.ts"]=!0,d["lib.es2021.string.d.ts"]=!0,d["lib.es2021.weakref.d.ts"]=!0,d["lib.es2022.array.d.ts"]=!0,d["lib.es2022.d.ts"]=!0,d["lib.es2022.error.d.ts"]=!0,d["lib.es2022.full.d.ts"]=!0,d["lib.es2022.intl.d.ts"]=!0,d["lib.es2022.object.d.ts"]=!0,d["lib.es2022.regexp.d.ts"]=!0,d["lib.es2022.sharedmemory.d.ts"]=!0,d["lib.es2022.string.d.ts"]=!0,d["lib.es2023.array.d.ts"]=!0,d["lib.es2023.d.ts"]=!0,d["lib.es2023.full.d.ts"]=!0,d["lib.es5.d.ts"]=!0,d["lib.es6.d.ts"]=!0,d["lib.esnext.d.ts"]=!0,d["lib.esnext.full.d.ts"]=!0,d["lib.esnext.intl.d.ts"]=!0,d["lib.scripthost.d.ts"]=!0,d["lib.webworker.d.ts"]=!0,d["lib.webworker.importscripts.d.ts"]=!0,d["lib.webworker.iterable.d.ts"]=!0;var p=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let i=e.getPositionAt(t.start),s=e.getPositionAt(t.start+t.length),{lineNumber:r,column:n}=i,{lineNumber:a,column:o}=s;return{startLineNumber:r,startColumn:n,endLineNumber:a,endColumn:o}}},m=class{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return!!e&&0===e.path.indexOf("/lib.")&&!!d[e.path.slice(1)]}getOrCreateModel(e){const i=l.Uri.parse(e),s=l.editor.getModel(i);if(s)return s;if(this.isLibFile(i)&&this._hasFetchedLibFiles)return l.editor.createModel(this._libFiles[i.path.slice(1)],"typescript",i);const r=t.getExtraLibs()[e];return r?l.editor.createModel(r.content,"typescript",i):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then((e=>e.getLibFiles())).then((e=>{this._hasFetchedLibFiles=!0,this._libFiles=e}))),this._fetchLibFilesPromise}},h=class extends p{constructor(e,t,i,s){super(s),this._libFiles=e,this._defaults=t,this._selector=i,this._disposables=[],this._listener=Object.create(null);const r=e=>{if(e.getLanguageId()!==i)return;const t=()=>{const{onlyVisible:t}=this._defaults.getDiagnosticsOptions();t?e.isAttachedToEditor()&&this._doValidate(e):this._doValidate(e)};let s;const r=e.onDidChangeContent((()=>{clearTimeout(s),s=window.setTimeout(t,500)})),n=e.onDidChangeAttached((()=>{const{onlyVisible:i}=this._defaults.getDiagnosticsOptions();i&&(e.isAttachedToEditor()?t():l.editor.setModelMarkers(e,this._selector,[]))}));this._listener[e.uri.toString()]={dispose(){r.dispose(),n.dispose(),clearTimeout(s)}},t()},n=e=>{l.editor.setModelMarkers(e,this._selector,[]);const t=e.uri.toString();this._listener[t]&&(this._listener[t].dispose(),delete this._listener[t])};this._disposables.push(l.editor.onDidCreateModel((e=>r(e)))),this._disposables.push(l.editor.onWillDisposeModel(n)),this._disposables.push(l.editor.onDidChangeModelLanguage((e=>{n(e.model),r(e.model)}))),this._disposables.push({dispose(){for(const e of l.editor.getModels())n(e)}});const a=()=>{for(const e of l.editor.getModels())n(e),r(e)};this._disposables.push(this._defaults.onDidChange(a)),this._disposables.push(this._defaults.onDidExtraLibsChange(a)),l.editor.getModels().forEach((e=>r(e)))}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables=[]}async _doValidate(e){const t=await this._worker(e.uri);if(e.isDisposed())return;const i=[],{noSyntaxValidation:s,noSemanticValidation:r,noSuggestionDiagnostics:n}=this._defaults.getDiagnosticsOptions();s||i.push(t.getSyntacticDiagnostics(e.uri.toString())),r||i.push(t.getSemanticDiagnostics(e.uri.toString())),n||i.push(t.getSuggestionDiagnostics(e.uri.toString()));const a=await Promise.all(i);if(!a||e.isDisposed())return;const o=a.reduce(((e,t)=>t.concat(e)),[]).filter((e=>-1===(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(e.code))),c=o.map((e=>e.relatedInformation||[])).reduce(((e,t)=>t.concat(e)),[]).map((e=>e.file?l.Uri.parse(e.file.fileName):null));await this._libFiles.fetchLibFilesIfNecessary(c),e.isDisposed()||l.editor.setModelMarkers(e,this._selector,o.map((t=>this._convertDiagnostics(e,t))))}_convertDiagnostics(e,t){const i=t.start||0,s=t.length||1,{lineNumber:r,column:n}=e.getPositionAt(i),{lineNumber:a,column:o}=e.getPositionAt(i+s),c=[];return t.reportsUnnecessary&&c.push(l.MarkerTag.Unnecessary),t.reportsDeprecated&&c.push(l.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:r,startColumn:n,endLineNumber:a,endColumn:o,message:u(t.messageText,"\n"),code:t.code.toString(),tags:c,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];const i=[];return t.forEach((t=>{let s=e;if(t.file&&(s=this._libFiles.getOrCreateModel(t.file.fileName)),!s)return;const r=t.start||0,n=t.length||1,{lineNumber:a,column:o}=s.getPositionAt(r),{lineNumber:l,column:c}=s.getPositionAt(r+n);i.push({resource:s.uri,startLineNumber:a,startColumn:o,endLineNumber:l,endColumn:c,message:u(t.messageText,"\n")})})),i}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return l.MarkerSeverity.Error;case 3:return l.MarkerSeverity.Info;case 0:return l.MarkerSeverity.Warning;case 2:return l.MarkerSeverity.Hint}return l.MarkerSeverity.Info}},b=class e extends p{get triggerCharacters(){return["."]}async provideCompletionItems(t,i,s,r){const n=t.getWordUntilPosition(i),a=new l.Range(i.lineNumber,n.startColumn,i.lineNumber,n.endColumn),o=t.uri,c=t.getOffsetAt(i),d=await this._worker(o);if(t.isDisposed())return;const u=await d.getCompletionsAtPosition(o.toString(),c);return u&&!t.isDisposed()?{suggestions:u.entries.map((s=>{let r=a;if(s.replacementSpan){const e=t.getPositionAt(s.replacementSpan.start),i=t.getPositionAt(s.replacementSpan.start+s.replacementSpan.length);r=new l.Range(e.lineNumber,e.column,i.lineNumber,i.column)}const n=[];return void 0!==s.kindModifiers&&-1!==s.kindModifiers.indexOf("deprecated")&&n.push(l.languages.CompletionItemTag.Deprecated),{uri:o,position:i,offset:c,range:r,label:s.name,insertText:s.name,sortText:s.sortText,kind:e.convertKind(s.kind),tags:n}}))}:void 0}async resolveCompletionItem(t,i){const s=t,r=s.uri,n=s.position,a=s.offset,o=await this._worker(r),l=await o.getCompletionEntryDetails(r.toString(),a,s.label);return l?{uri:r,position:n,label:l.name,kind:e.convertKind(l.kind),detail:g(l.displayParts),documentation:{value:e.createDocumentationString(l)}}:s}static convertKind(e){switch(e){case k.primitiveType:case k.keyword:return l.languages.CompletionItemKind.Keyword;case k.variable:case k.localVariable:return l.languages.CompletionItemKind.Variable;case k.memberVariable:case k.memberGetAccessor:case k.memberSetAccessor:return l.languages.CompletionItemKind.Field;case k.function:case k.memberFunction:case k.constructSignature:case k.callSignature:case k.indexSignature:return l.languages.CompletionItemKind.Function;case k.enum:return l.languages.CompletionItemKind.Enum;case k.module:return l.languages.CompletionItemKind.Module;case k.class:return l.languages.CompletionItemKind.Class;case k.interface:return l.languages.CompletionItemKind.Interface;case k.warning:return l.languages.CompletionItemKind.File}return l.languages.CompletionItemKind.Property}static createDocumentationString(e){let t=g(e.documentation);if(e.tags)for(const i of e.tags)t+=`\n\n${f(i)}`;return t}};function f(e){let t=`*@${e.name}*`;if("param"===e.name&&e.text){const[i,...s]=e.text;t+=`\`${i.text}\``,s.length>0&&(t+=` — ${s.map((e=>e.text)).join(" ")}`)}else Array.isArray(e.text)?t+=` — ${e.text.map((e=>e.text)).join(" ")}`:e.text&&(t+=` — ${e.text}`);return t}var y=class e extends p{constructor(){super(...arguments),this.signatureHelpTriggerCharacters=["(",","]}static _toSignatureHelpTriggerReason(e){switch(e.triggerKind){case l.languages.SignatureHelpTriggerKind.TriggerCharacter:return e.triggerCharacter?e.isRetrigger?{kind:"retrigger",triggerCharacter:e.triggerCharacter}:{kind:"characterTyped",triggerCharacter:e.triggerCharacter}:{kind:"invoked"};case l.languages.SignatureHelpTriggerKind.ContentChange:return e.isRetrigger?{kind:"retrigger"}:{kind:"invoked"};case l.languages.SignatureHelpTriggerKind.Invoke:default:return{kind:"invoked"}}}async provideSignatureHelp(t,i,s,r){const n=t.uri,a=t.getOffsetAt(i),o=await this._worker(n);if(t.isDisposed())return;const l=await o.getSignatureHelpItems(n.toString(),a,{triggerReason:e._toSignatureHelpTriggerReason(r)});if(!l||t.isDisposed())return;const c={activeSignature:l.selectedItemIndex,activeParameter:l.argumentIndex,signatures:[]};return l.items.forEach((e=>{const t={label:"",parameters:[]};t.documentation={value:g(e.documentation)},t.label+=g(e.prefixDisplayParts),e.parameters.forEach(((i,s,r)=>{const n=g(i.displayParts),a={label:n,documentation:{value:g(i.documentation)}};t.label+=n,t.parameters.push(a),sf(e))).join(" \n\n"):"",c=g(a.displayParts);return{range:this._textSpanToRange(e,a.textSpan),contents:[{value:"```typescript\n"+c+"\n```\n"},{value:o+(l?"\n\n"+l:"")}]}}},w=class extends p{async provideDocumentHighlights(e,t,i){const s=e.uri,r=e.getOffsetAt(t),n=await this._worker(s);if(e.isDisposed())return;const a=await n.getDocumentHighlights(s.toString(),r,[s.toString()]);return a&&!e.isDisposed()?a.flatMap((t=>t.highlightSpans.map((t=>({range:this._textSpanToRange(e,t.textSpan),kind:"writtenReference"===t.kind?l.languages.DocumentHighlightKind.Write:l.languages.DocumentHighlightKind.Text}))))):void 0}},S=class extends p{constructor(e,t){super(t),this._libFiles=e}async provideDefinition(e,t,i){const s=e.uri,r=e.getOffsetAt(t),n=await this._worker(s);if(e.isDisposed())return;const a=await n.getDefinitionAtPosition(s.toString(),r);if(!a||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(a.map((e=>l.Uri.parse(e.fileName)))),e.isDisposed())return;const o=[];for(let l of a){const e=this._libFiles.getOrCreateModel(l.fileName);e&&o.push({uri:e.uri,range:this._textSpanToRange(e,l.textSpan)})}return o}},x=class extends p{constructor(e,t){super(t),this._libFiles=e}async provideReferences(e,t,i,s){const r=e.uri,n=e.getOffsetAt(t),a=await this._worker(r);if(e.isDisposed())return;const o=await a.getReferencesAtPosition(r.toString(),n);if(!o||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(o.map((e=>l.Uri.parse(e.fileName)))),e.isDisposed())return;const c=[];for(let l of o){const e=this._libFiles.getOrCreateModel(l.fileName);e&&c.push({uri:e.uri,range:this._textSpanToRange(e,l.textSpan)})}return c}},v=class extends p{async provideDocumentSymbols(e,t){const i=e.uri,s=await this._worker(i);if(e.isDisposed())return;const r=await s.getNavigationTree(i.toString());if(!r||e.isDisposed())return;const n=(t,i)=>{var s;return{name:t.text,detail:"",kind:C[t.kind]||l.languages.SymbolKind.Variable,range:this._textSpanToRange(e,t.spans[0]),selectionRange:this._textSpanToRange(e,t.spans[0]),tags:[],children:null==(s=t.childItems)?void 0:s.map((e=>n(e,t.text))),containerName:i}};return r.childItems?r.childItems.map((e=>n(e))):[]}},k=((e=class{}).unknown="",e.keyword="keyword",e.script="script",e.module="module",e.class="class",e.interface="interface",e.type="type",e.enum="enum",e.variable="var",e.localVariable="local var",e.function="function",e.localFunction="local function",e.memberFunction="method",e.memberGetAccessor="getter",e.memberSetAccessor="setter",e.memberVariable="property",e.constructorImplementation="constructor",e.callSignature="call",e.indexSignature="index",e.constructSignature="construct",e.parameter="parameter",e.typeParameter="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.const="const",e.let="let",e.warning="warning",e),C=Object.create(null);C[k.module]=l.languages.SymbolKind.Module,C[k.class]=l.languages.SymbolKind.Class,C[k.enum]=l.languages.SymbolKind.Enum,C[k.interface]=l.languages.SymbolKind.Interface,C[k.memberFunction]=l.languages.SymbolKind.Method,C[k.memberVariable]=l.languages.SymbolKind.Property,C[k.memberGetAccessor]=l.languages.SymbolKind.Property,C[k.memberSetAccessor]=l.languages.SymbolKind.Property,C[k.variable]=l.languages.SymbolKind.Variable,C[k.const]=l.languages.SymbolKind.Variable,C[k.localVariable]=l.languages.SymbolKind.Variable,C[k.variable]=l.languages.SymbolKind.Variable,C[k.function]=l.languages.SymbolKind.Function,C[k.localFunction]=l.languages.SymbolKind.Function;var D,A,F=class extends p{static _convertOptions(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:2,NewLineCharacter:"\n",InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}_convertTextChanges(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)}}},I=class extends F{constructor(){super(...arguments),this.canFormatMultipleRanges=!1}async provideDocumentRangeFormattingEdits(e,t,i,s){const r=e.uri,n=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),a=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),o=await this._worker(r);if(e.isDisposed())return;const l=await o.getFormattingEditsForRange(r.toString(),n,a,F._convertOptions(i));return l&&!e.isDisposed()?l.map((t=>this._convertTextChanges(e,t))):void 0}},T=class extends F{get autoFormatTriggerCharacters(){return[";","}","\n"]}async provideOnTypeFormattingEdits(e,t,i,s,r){const n=e.uri,a=e.getOffsetAt(t),o=await this._worker(n);if(e.isDisposed())return;const l=await o.getFormattingEditsAfterKeystroke(n.toString(),a,i,F._convertOptions(s));return l&&!e.isDisposed()?l.map((t=>this._convertTextChanges(e,t))):void 0}},P=class extends F{async provideCodeActions(e,t,i,s){const r=e.uri,n=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),a=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),o=F._convertOptions(e.getOptions()),l=i.markers.filter((e=>e.code)).map((e=>e.code)).map(Number),c=await this._worker(r);if(e.isDisposed())return;const d=await c.getCodeFixesAtPosition(r.toString(),n,a,l,o);return!d||e.isDisposed()?{actions:[],dispose:()=>{}}:{actions:d.filter((e=>0===e.changes.filter((e=>e.isNewFile)).length)).map((t=>this._tsCodeFixActionToMonacoCodeAction(e,i,t))),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(e,t,i){const s=[];for(const r of i.changes)for(const t of r.textChanges)s.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,t.span),text:t.newText}});return{title:i.description,edit:{edits:s},diagnostics:t.markers,kind:"quickfix"}}},L=class extends p{constructor(e,t){super(t),this._libFiles=e}async provideRenameEdits(e,t,i,s){const r=e.uri,n=r.toString(),a=e.getOffsetAt(t),o=await this._worker(r);if(e.isDisposed())return;const l=await o.getRenameInfo(n,a,{allowRenameOfImportPath:!1});if(!1===l.canRename)return{edits:[],rejectReason:l.localizedErrorMessage};if(void 0!==l.fileToRename)throw new Error("Renaming files is not supported.");const c=await o.findRenameLocations(n,a,!1,!1,!1);if(!c||e.isDisposed())return;const d=[];for(const u of c){const e=this._libFiles.getOrCreateModel(u.fileName);if(!e)throw new Error(`Unknown file ${u.fileName}.`);d.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,u.textSpan),text:i}})}return{edits:d}}},O=class extends p{async provideInlayHints(e,t,i){const s=e.uri,r=s.toString(),n=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),a=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),o=await this._worker(s);return e.isDisposed()?null:{hints:(await o.provideInlayHints(r,n,a)).map((t=>({...t,label:t.text,position:e.getPositionAt(t.position),kind:this._convertHintKind(t.kind)}))),dispose:()=>{}}}_convertHintKind(e){return"Parameter"===e?l.languages.InlayHintKind.Parameter:l.languages.InlayHintKind.Type}};function N(e){A=E(e,"typescript")}function M(e){D=E(e,"javascript")}function K(){return new Promise(((e,t)=>{if(!D)return t("JavaScript not registered!");e(D)}))}function R(){return new Promise(((e,t)=>{if(!A)return t("TypeScript not registered!");e(A)}))}function E(e,t){const i=[],s=new c(t,e),r=(...e)=>s.getLanguageServiceWorker(...e),n=new m(r);return function(){const{modeConfiguration:s}=e;!function(e){for(;e.length;)e.pop().dispose()}(i),s.completionItems&&i.push(l.languages.registerCompletionItemProvider(t,new b(r))),s.signatureHelp&&i.push(l.languages.registerSignatureHelpProvider(t,new y(r))),s.hovers&&i.push(l.languages.registerHoverProvider(t,new _(r))),s.documentHighlights&&i.push(l.languages.registerDocumentHighlightProvider(t,new w(r))),s.definitions&&i.push(l.languages.registerDefinitionProvider(t,new S(n,r))),s.references&&i.push(l.languages.registerReferenceProvider(t,new x(n,r))),s.documentSymbols&&i.push(l.languages.registerDocumentSymbolProvider(t,new v(r))),s.rename&&i.push(l.languages.registerRenameProvider(t,new L(n,r))),s.documentRangeFormattingEdits&&i.push(l.languages.registerDocumentRangeFormattingEditProvider(t,new I(r))),s.onTypeFormattingEdits&&i.push(l.languages.registerOnTypeFormattingEditProvider(t,new T(r))),s.codeActions&&i.push(l.languages.registerCodeActionProvider(t,new P(r))),s.inlayHints&&i.push(l.languages.registerInlayHintsProvider(t,new O(r))),s.diagnostics&&i.push(new h(n,e,t,r))}(),r}export{p as Adapter,P as CodeActionAdaptor,S as DefinitionAdapter,h as DiagnosticsAdapter,w as DocumentHighlightAdapter,I as FormatAdapter,F as FormatHelper,T as FormatOnTypeAdapter,O as InlayHintsAdapter,k as Kind,m as LibFiles,v as OutlineAdapter,_ as QuickInfoAdapter,x as ReferenceAdapter,L as RenameAdapter,y as SignatureHelpAdapter,b as SuggestAdapter,c as WorkerManager,u as flattenDiagnosticMessageText,K as getJavaScriptWorker,R as getTypeScriptWorker,M as setupJavaScript,N as setupTypeScript}; diff --git a/assets/typescript-59dd792e.js b/assets/typescript-59dd792e.js new file mode 100644 index 0000000..dd07ef7 --- /dev/null +++ b/assets/typescript-59dd792e.js @@ -0,0 +1,7 @@ +import{m as e}from"./index-8027a4c8.js";import"./index-8c106f3c.js"; +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(e,i,s,c)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let a of o(i))r.call(e,a)||a===s||t(e,a,{get:()=>i[a],enumerable:!(c=n(i,a))||c.enumerable});return e},s={};i(s,e,"default");var c={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:s.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:s.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:s.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:s.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},a={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{c as conf,a as language}; diff --git a/assets/xml-c1ef13e6.js b/assets/xml-c1ef13e6.js new file mode 100644 index 0000000..716cb9e --- /dev/null +++ b/assets/xml-c1ef13e6.js @@ -0,0 +1,7 @@ +import{m as e}from"./index-8027a4c8.js";import"./index-8c106f3c.js"; +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,i=(e,i,r,m)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let l of o(i))a.call(e,l)||l===r||t(e,l,{get:()=>i[l],enumerable:!(m=n(i,l))||m.enumerable});return e},r={};i(r,e,"default");var m={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:r.languages.IndentAction.Indent}}]},l={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[/