@xtrable-ltd/nanoesis 0.1.11 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/adapter-azure-blob.js +1 -1
  2. package/dist/{chunk-XO3CT6GL.js → chunk-7TB5ANIS.js} +58 -4
  3. package/dist/chunk-LXNOLO66.js +1224 -0
  4. package/dist/editor-api.js +21 -1198
  5. package/dist/index.d.ts +50 -12
  6. package/dist/index.js +1 -1
  7. package/dist/mcp.d.ts +48 -0
  8. package/dist/mcp.js +76 -0
  9. package/editor/assets/{MigrationsPane-BYGqWBAA.js → MigrationsPane-BnVflp7I.js} +1 -1
  10. package/editor/assets/{TemplatesPane-B5hn_v0Z.js → TemplatesPane-DPcXg8ZA.js} +12 -8
  11. package/editor/assets/{cssMode-BbIf5k6I.js → cssMode-CA8TzUhD.js} +1 -1
  12. package/editor/assets/{freemarker2-DoW0pSYV.js → freemarker2-BVvYxc4P.js} +1 -1
  13. package/editor/assets/{handlebars-DLlET-qc.js → handlebars-mDJMZKVv.js} +1 -1
  14. package/editor/assets/{html-4khbqrhe.js → html-D6Gw0A_W.js} +1 -1
  15. package/editor/assets/{htmlMode-DblHkZ-k.js → htmlMode-BD8QBoPu.js} +1 -1
  16. package/editor/assets/index-DAuQQi22.js +138 -0
  17. package/editor/assets/{javascript-CgPO2Hmj.js → javascript-CT1GQ3oq.js} +1 -1
  18. package/editor/assets/{jsonMode-BrWh2436.js → jsonMode-CBS8chp_.js} +1 -1
  19. package/editor/assets/{liquid-BsQJXwPT.js → liquid-BywhH4Kg.js} +1 -1
  20. package/editor/assets/{mdx-AO8t67gx.js → mdx-VnQOs-88.js} +1 -1
  21. package/editor/assets/{python-3w4sZj5c.js → python-vRZdM7SD.js} +1 -1
  22. package/editor/assets/{razor-BFsvo06w.js → razor--qLVVNOO.js} +1 -1
  23. package/editor/assets/{tsMode-QrC4ERjp.js → tsMode-CLwp9V4R.js} +1 -1
  24. package/editor/assets/{typescript-BXJ3QLad.js → typescript-DUO5mANL.js} +1 -1
  25. package/editor/assets/{xml-CxKYn1FP.js → xml-CcxvqYR1.js} +1 -1
  26. package/editor/assets/{yaml-BmWLvF7Q.js → yaml-BpCmDgZz.js} +1 -1
  27. package/editor/index.html +1 -1
  28. package/package.json +7 -1
  29. package/editor/assets/index-Do1drqEQ.js +0 -138
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./freemarker2-DoW0pSYV.js","./index-Do1drqEQ.js","./index-CkESQLMV.css","./handlebars-DLlET-qc.js","./html-4khbqrhe.js","./javascript-CgPO2Hmj.js","./typescript-BXJ3QLad.js","./liquid-BsQJXwPT.js","./mdx-AO8t67gx.js","./python-3w4sZj5c.js","./razor-BFsvo06w.js","./xml-CxKYn1FP.js","./yaml-BmWLvF7Q.js","./cssMode-BbIf5k6I.js","./htmlMode-DblHkZ-k.js","./jsonMode-BrWh2436.js","./tsMode-QrC4ERjp.js"])))=>i.map(i=>d[i]);
2
- var cQ=Object.defineProperty;var dQ=(o,e,t)=>e in o?cQ(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var _n=(o,e,t)=>dQ(o,typeof e!="symbol"?e+"":e,t);import{F as KI,I as Zd,am as Yd,a7 as Xd,Q as lU,a1 as pr,D as cU,G as R,ad as qe,ao as si,_ as Ee,s as Bm,a3 as Uu,av as gl,J as Jt,f as $e,W as $u,au as Wi,l as we,m as nL,B as Zs,y as wc,ak as Je,P as dU,c as hU,ap as Ut,ag as bo,ae as Tt,ai as Ni,z as ur,t as qt,w as kh,E as Ze,L as GR,h as hQ,C as sL,a as oL,aa as uQ,S as gQ,k as fQ,j as Zb,as as mQ,N as uU,n as gU,X as pQ,a0 as fS,U as rL,ar as b7,Z as _Q,i as bQ,ah as fU,A as vQ,aj as PN,a9 as jg,a4 as mU,a8 as pU,o as ZR,an as CQ,x as wQ,d as yQ,H as e0,$ as ON,al as Dv,e as Pl,r as SQ,p as LQ,a5 as v7,a6 as xQ,a2 as C7,u as w7,v as kQ,T as DQ,R as IQ,O as EQ,ab as NQ,M as TQ,q as RQ,b as FN,at as MQ}from"./index-Do1drqEQ.js";const AQ=[{type:"shorttext",summary:"A single line of plain text, the default for headings and any token not inferred as something more specific.",example:"<h1>{title}</h1>"},{type:"text",summary:"Multi-line plain text with no formatting, inferred for paragraphs and block elements.",example:"<p>{summary}</p>"},{type:"richtext",summary:"Formatted HTML from the rich-text editor (headings, links, lists, inline images). Opt-in, never inferred, so a plain block never becomes a surprise editor.",example:'<div data-type="richtext">{body}</div>'},{type:"code",summary:"A monospaced code block, inferred inside <pre>, <code>, <kbd>, and <samp>.",example:"<pre>{snippet}</pre>"},{type:"image",summary:"An image asset. On publish it runs the media pipeline (responsive <picture> variants). Inferred from <img src>.",example:'<img src="{hero}" alt="{caption}">'},{type:"file",summary:"A downloadable file asset (PDF, zip…). Inferred from a non-image src, or an <a href> marked download.",example:'<a href="{brochure}" download>Download the brochure</a>'},{type:"url",summary:"A link target, an internal page reference or an external URL. Inferred from <a href>.",example:'<a href="{cta_link}">{cta_label}</a>'},{type:"email",summary:"An email address. Inferred from an href that starts with mailto:.",example:'<a href="mailto:{email}">{email}</a>'},{type:"phone",summary:"A phone number. Inferred from an href that starts with tel:.",example:'<a href="tel:{phone}">{phone}</a>'},{type:"date",summary:"A calendar date, shown as a date picker. Opt-in via data-type, never inferred.",example:'<time datetime="{published}" data-type="date">{published}</time>'},{type:"time",summary:"A time of day, shown as a time picker. Opt-in via data-type, never inferred.",example:'<span data-type="time">{doors_open}</span>'},{type:"authors",summary:"A byline: an ordered list of authors the editor builds from your users’ display names (or typed-in guests), rendered as one grammatical line, “A”, “A and B”, “A, B and C” (no Oxford comma). Opt-in via data-type, never inferred. A display-name change updates every past byline.",example:'<p class="byline" data-type="authors">{authors}</p>'}];function y7(o={}){return{title:"nanoesis authoring reference",intro:"Everything you can put in a template. A template is ordinary HTML with {tokens}; the set of tokens is the editor form, “the template is the schema”. This reference is generated from the engine, so it always matches the version you are running.",sections:[PQ(),OQ(),FQ(),WQ(o),BQ(o),VQ(),HQ()]}}function PQ(){return{title:"Tokens",intro:"Wrap a field name in braces to print it. Each distinct token becomes one field in the editor; where the token sits decides the field’s type.",entries:[{name:"{field}",summary:"Print a page field, the name in the braces is the field name.",example:`<h1>{title}</h1>
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./freemarker2-BVvYxc4P.js","./index-DAuQQi22.js","./index-CkESQLMV.css","./handlebars-mDJMZKVv.js","./html-D6Gw0A_W.js","./javascript-CT1GQ3oq.js","./typescript-DUO5mANL.js","./liquid-BywhH4Kg.js","./mdx-VnQOs-88.js","./python-vRZdM7SD.js","./razor--qLVVNOO.js","./xml-CcxvqYR1.js","./yaml-BpCmDgZz.js","./cssMode-CA8TzUhD.js","./htmlMode-BD8QBoPu.js","./jsonMode-CBS8chp_.js","./tsMode-CLwp9V4R.js"])))=>i.map(i=>d[i]);
2
+ var cQ=Object.defineProperty;var dQ=(o,e,t)=>e in o?cQ(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var _n=(o,e,t)=>dQ(o,typeof e!="symbol"?e+"":e,t);import{F as KI,I as Zd,am as Yd,a7 as Xd,Q as lU,a1 as pr,D as cU,G as R,ad as qe,ao as si,_ as Ee,s as Bm,a3 as Uu,av as gl,J as Jt,f as $e,W as $u,au as Wi,l as we,m as nL,B as Zs,y as wc,ak as Je,P as dU,c as hU,ap as Ut,ag as bo,ae as Tt,ai as Ni,z as ur,t as qt,w as kh,E as Ze,L as GR,h as hQ,C as sL,a as oL,aa as uQ,S as gQ,k as fQ,j as Zb,as as mQ,N as uU,n as gU,X as pQ,a0 as fS,U as rL,ar as b7,Z as _Q,i as bQ,ah as fU,A as vQ,aj as PN,a9 as jg,a4 as mU,a8 as pU,o as ZR,an as CQ,x as wQ,d as yQ,H as e0,$ as ON,al as Dv,e as Pl,r as SQ,p as LQ,a5 as v7,a6 as xQ,a2 as C7,u as w7,v as kQ,T as DQ,R as IQ,O as EQ,ab as NQ,M as TQ,q as RQ,b as FN,at as MQ}from"./index-DAuQQi22.js";const AQ=[{type:"shorttext",summary:"A single line of plain text, the default for headings and any token not inferred as something more specific.",example:"<h1>{title}</h1>"},{type:"text",summary:"Multi-line plain text with no formatting, inferred for paragraphs and block elements.",example:"<p>{summary}</p>"},{type:"richtext",summary:"Formatted HTML from the rich-text editor (headings, links, lists, inline images). Opt-in, never inferred, so a plain block never becomes a surprise editor.",example:'<div data-type="richtext">{body}</div>'},{type:"code",summary:"A monospaced code block, inferred inside <pre>, <code>, <kbd>, and <samp>.",example:"<pre>{snippet}</pre>"},{type:"image",summary:"An image asset. On publish it runs the media pipeline (responsive <picture> variants). Inferred from <img src>.",example:'<img src="{hero}" alt="{caption}">'},{type:"file",summary:"A downloadable file asset (PDF, zip…). Inferred from a non-image src, or an <a href> marked download.",example:'<a href="{brochure}" download>Download the brochure</a>'},{type:"url",summary:"A link target, an internal page reference or an external URL. Inferred from <a href>.",example:'<a href="{cta_link}">{cta_label}</a>'},{type:"email",summary:"An email address. Inferred from an href that starts with mailto:.",example:'<a href="mailto:{email}">{email}</a>'},{type:"phone",summary:"A phone number. Inferred from an href that starts with tel:.",example:'<a href="tel:{phone}">{phone}</a>'},{type:"date",summary:"A calendar date, shown as a date picker. Opt-in via data-type, never inferred.",example:'<time datetime="{published}" data-type="date">{published}</time>'},{type:"time",summary:"A time of day, shown as a time picker. Opt-in via data-type, never inferred.",example:'<span data-type="time">{doors_open}</span>'},{type:"authors",summary:"A byline: an ordered list of authors the editor builds from your users’ display names (or typed-in guests), rendered as one grammatical line, “A”, “A and B”, “A, B and C” (no Oxford comma). Opt-in via data-type, never inferred. A display-name change updates every past byline.",example:'<p class="byline" data-type="authors">{authors}</p>'}];function y7(o={}){return{title:"nanoesis authoring reference",intro:"Everything you can put in a template. A template is ordinary HTML with {tokens}; the set of tokens is the editor form, “the template is the schema”. This reference is generated from the engine, so it always matches the version you are running.",sections:[PQ(),OQ(),FQ(),WQ(o),BQ(o),VQ(),HQ()]}}function PQ(){return{title:"Tokens",intro:"Wrap a field name in braces to print it. Each distinct token becomes one field in the editor; where the token sits decides the field’s type.",entries:[{name:"{field}",summary:"Print a page field, the name in the braces is the field name.",example:`<h1>{title}</h1>
3
3
  <p>{summary}</p>`},{name:"{title}, {published}, {created}, {updated}",summary:"Built-in fields every page has. {title} names the page in the tree; the others are ISO timestamps you can format or print."},{name:"{item} and {item.field}",summary:"Inside a loop, the current item: {item} is its URL, and {item.title} (or any field) is its content.",example:'<a href="{item}">{item.title}</a>'}]}}function OQ(){return{title:"Field types",intro:"A token’s control type is inferred from where it sits; the non-obvious ones (rich text, date, time, code) are opt-in with data-type. One entry per type, with the snippet that produces it.",entries:AQ.map(({type:o,summary:e,example:t})=>({name:o,summary:e,example:t,...KI[o].multiline&&{detail:"Multi-line."}}))}}function FQ(){return{title:"Field annotations",intro:"Optional data-* attributes that refine a field. Put them on the element holding the token; use data-field to name the field when the element has none.",entries:[{name:"data-field",summary:"Says which field an element’s annotations apply to. They default to the element’s first token (attributes before text); use data-field to target a different one, e.g. make the link text required, not the URL. (Not needed when the element holds a single token.)",example:'<a href="{url}" data-field="label" data-required>{label}</a>'},{name:"data-label",summary:"Set the label shown above the field in the editor (defaults to a humanised name).",example:'<p data-label="Short summary">{summary}</p>'},{name:"data-help",summary:"Add a line of helper text beneath the field in the editor.",example:'<p data-help="One or two sentences.">{summary}</p>'},{name:"data-required",summary:"Mark the field mandatory. Publishing is blocked until every page fills it.",example:"<p data-required>{summary}</p>"},{name:"data-minlength / data-maxlength",summary:"Warn (it does not block) when the value is shorter or longer than N characters, e.g. a 50-160 character SEO meta description.",example:'<p data-minlength="50" data-maxlength="160">{summary}</p>'},{name:"data-type",summary:"Force the control type, overriding inference, the escape hatch for rich text, date, time, and code.",example:'<div data-type="richtext">{body}</div>'}]}}function WQ(o){const e=[{name:"Automatic loop, data-each-in",summary:"Repeat an element once per published page in a folder (and its subfolders), filling {item.…} tokens automatically. Point it at a folder path.",example:`<ul>
4
4
  <li data-each-in="/blog" data-sort="published desc" data-limit="5">
5
5
  <a href="{item}">{item.title}</a>
@@ -11,7 +11,11 @@ var cQ=Object.defineProperty;var dQ=(o,e,t)=>e in o?cQ(o,e,{enumerable:!0,config
11
11
  <div data-type="richtext"></div>{body}
12
12
 
13
13
  <!-- RIGHT -->
14
- <div data-type="richtext">{body}</div>`},{name:"After write_file on a template, check `schemaDelta`",summary:"Every write to templates/*.html or components/*.html returns a `schemaDelta` describing added/removed/typeChanged fields. If `typeChanged` contains `destructive: true` entries or `removed` is non-empty, an auto-stamp has been written and authored content may need migration — surface to the user before further edits.",detail:"`schemaDelta` shape: `{added: [{name, type}], removed: [{name, type}], typeChanged: [{name, from, to, destructive}]}`. Empty arrays everywhere means the edit changed only whitespace, comments, or non-token markup — safe."},{name:"After rename_path on a template, search content for the old name",summary:'Renaming `templates/article.html` to `templates/post.html` leaves every content item with `template: "article"` bound to a now-missing template. The validation gate will report these on publish, but the cheaper check is `list_pending_migrations` followed by editing the items\' `template` fields.'},{name:"After delete_path on a template, expect publish-blocking errors",summary:"Deleting a template that any item binds to will fail validation with `template-missing` per item. Use `list_pending_migrations` first to see who would be affected, and consider whether to rename items to a different template before deleting."},{name:"Read describe_template before editing a content item",summary:"A content item's `fields` object MUST match the bound template's schema (field names and value shapes). `describe_template` returns the field list with types so you build the right shape on the first try; mismatched keys become orphan fields the gate warns about."},{name:"richtext values are HTML, shorttext/text are plain text",summary:"For a `richtext` field, write the value as HTML (`<p>...</p>` etc). For `shorttext` or `text`, write plain text — any HTML you include is escaped at render time. If the gate emits a `content.type-drift` warning, a field's type changed destructively (commonly richtext → shorttext) and the old HTML content now renders as escaped text."}]}}function VQ(){return{title:"The document shell",intro:"templates/document.html wraps every page, the <head> and the chrome around <slot></slot>. Tokens here (meta description, Open Graph image…) become each page’s Meta & SEO fields, so annotations like data-required and data-maxlength on them apply to every page.",entries:[]}}function _U(o){return[...new Set(o??[])].sort()}function zQ(o){const e=[`# ${o.title}`,"",o.intro,""];for(const t of o.sections){e.push(`## ${t.title}`,"",t.intro,"");for(const i of t.entries)e.push(`### ${i.name}`,"",i.summary,""),i.detail!==void 0&&e.push(`*${i.detail}*`,""),i.example!==void 0&&e.push("```html",i.example,"```","")}return`${e.join(`
14
+ <div data-type="richtext">{body}</div>`},{name:"After write_file on a template, check `schemaDelta`",summary:"Every write to templates/*.html or components/*.html returns a `schemaDelta` describing added/removed/typeChanged fields. If `typeChanged` contains `destructive: true` entries or `removed` is non-empty, an auto-stamp has been written and authored content may need migration — surface to the user before further edits.",detail:"`schemaDelta` shape: `{added: [{name, type}], removed: [{name, type}], typeChanged: [{name, from, to, destructive}]}`. Empty arrays everywhere means the edit changed only whitespace, comments, or non-token markup — safe."},{name:"After rename_path on a template, search content for the old name",summary:'Renaming `templates/article.html` to `templates/post.html` leaves every content item with `template: "article"` bound to a now-missing template. The validation gate will report these on publish, but the cheaper check is `list_pending_migrations` followed by editing the items\' `template` fields.'},{name:"After delete_path on a template, expect publish-blocking errors",summary:"Deleting a template that any item binds to will fail validation with `template-missing` per item. Use `list_pending_migrations` first to see who would be affected, and consider whether to rename items to a different template before deleting."},{name:"Read describe_template before editing a content item",summary:"A content item's `fields` object MUST match the bound template's schema (field names and value shapes). `describe_template` returns the field list with types so you build the right shape on the first try; mismatched keys become orphan fields the gate warns about."},{name:"richtext values are HTML, shorttext/text are plain text",summary:"For a `richtext` field, write the value as HTML (`<p>...</p>` etc). For `shorttext` or `text`, write plain text — any HTML you include is escaped at render time. If the gate emits a `content.type-drift` warning, a field's type changed destructively (commonly richtext → shorttext) and the old HTML content now renders as escaped text."},{name:"Content fields nest under `fields`, not at the top level",summary:"A content/*.json item has system keys at the top level (`template`, `title`, `isPublished`, `created`, `published`, `updated`) and ALL template-specific values under `fields`. Writing `{ template, title, body, tagline }` at the top level silently drops `body`/`tagline` because the parser is tolerant of unknown keys; the page publishes with empty placeholders. After write_file, check the response for `parseDiagnostics.unknownTopLevelKeys` and the gate for `content.unknown-top-level-key` both list what was dropped.",detail:'System keys are case-sensitive: `IsPublished` is not the same as `isPublished` (the typo silently defaults to false), and `Fields` is not `fields`. The same drop-and-flag applies. The published HTML for a tolerated-drift item will render with empty `<div class="prose"></div>` etc., which is the smoking-gun symptom.',example:`<!-- WRONG (body and tagline silently dropped) -->
15
+ { "template": "about", "title": "Hi", "body": "...", "tagline": "..." }
16
+
17
+ <!-- RIGHT -->
18
+ { "template": "about", "title": "Hi", "fields": { "title": "Hi", "body": "...", "tagline": "..." } }`}]}}function VQ(){return{title:"The document shell",intro:"templates/document.html wraps every page, the <head> and the chrome around <slot></slot>. Tokens here (meta description, Open Graph image…) become each page’s Meta & SEO fields, so annotations like data-required and data-maxlength on them apply to every page.",entries:[]}}function _U(o){return[...new Set(o??[])].sort()}function zQ(o){const e=[`# ${o.title}`,"",o.intro,""];for(const t of o.sections){e.push(`## ${t.title}`,"",t.intro,"");for(const i of t.entries)e.push(`### ${i.name}`,"",i.summary,""),i.detail!==void 0&&e.push(`*${i.detail}*`,""),i.example!==void 0&&e.push("```html",i.example,"```","")}return`${e.join(`
15
19
  `).replace(/\n{3,}/g,`
16
20
 
17
21
  `).trimEnd()}
@@ -679,27 +683,27 @@ ${e.toString()}`}}class Ox{constructor(e=new fv,t=!1,i,n=bpe){this._services=e,t
679
683
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
680
684
  * Released under the MIT license
681
685
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
682
- *-----------------------------------------------------------------------------*/var yye=Object.defineProperty,Sye=Object.getOwnPropertyDescriptor,Lye=Object.getOwnPropertyNames,xye=Object.prototype.hasOwnProperty,kye=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Lye(e))!xye.call(o,n)&&n!==t&&yye(o,n,{get:()=>e[n],enumerable:!(i=Sye(e,n))||i.enumerable});return o},Dye=(o,e,t)=>(kye(o,e,"default"),t),pC={};Dye(pC,Vy);var lZ={},fR={},Iye=class cZ{static getOrCreate(e){return fR[e]||(fR[e]=new cZ(e)),fR[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,lZ[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function Ae(o){const e=o.id;lZ[e]=o,pC.languages.register(o);const t=Iye.getOrCreate(e);pC.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),pC.languages.onLanguageEncountered(e,async()=>{const i=await t.load();pC.languages.setLanguageConfiguration(e,i.conf)})}Ae({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Ee(()=>import("./abap-BrgZPUOV.js"),[],import.meta.url)});Ae({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Ee(()=>import("./apex-DyP6w7ZV.js"),[],import.meta.url)});Ae({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Ee(()=>import("./azcli-BaLxmfj-.js"),[],import.meta.url)});Ae({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Ee(()=>import("./bat-CFOPXBzS.js"),[],import.meta.url)});Ae({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Ee(()=>import("./bicep-BfEKNvv3.js"),[],import.meta.url)});Ae({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Ee(()=>import("./cameligo-BFG1Mk7z.js"),[],import.meta.url)});Ae({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Ee(()=>import("./clojure-DTECt2xU.js"),[],import.meta.url)});Ae({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Ee(()=>import("./coffee-CDGzqUPQ.js"),[],import.meta.url)});Ae({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Ee(()=>import("./cpp-CLLBncYj.js"),[],import.meta.url)});Ae({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Ee(()=>import("./cpp-CLLBncYj.js"),[],import.meta.url)});Ae({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Ee(()=>import("./csharp-dUCx_-0o.js"),[],import.meta.url)});Ae({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>Ee(()=>import("./csp-5Rap-vPy.js"),[],import.meta.url)});Ae({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Ee(()=>import("./css-D3h14YRZ.js"),[],import.meta.url)});Ae({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Ee(()=>import("./cypher-DrQuvNYM.js"),[],import.meta.url)});Ae({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Ee(()=>import("./dart-CFKIUWau.js"),[],import.meta.url)});Ae({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Ee(()=>import("./dockerfile-Zznr-cwX.js"),[],import.meta.url)});Ae({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Ee(()=>import("./ecl-Ce3n6wWz.js"),[],import.meta.url)});Ae({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Ee(()=>import("./elixir-deUWdS0T.js"),[],import.meta.url)});Ae({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Ee(()=>import("./flow9-i9-g7ZhI.js"),[],import.meta.url)});Ae({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Ee(()=>import("./fsharp-CzKuDChf.js"),[],import.meta.url)});Ae({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Ee(()=>import("./freemarker2-DoW0pSYV.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAutoInterpolationDollar)});Ae({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Ee(()=>import("./freemarker2-DoW0pSYV.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAngleInterpolationDollar)});Ae({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Ee(()=>import("./freemarker2-DoW0pSYV.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagBracketInterpolationDollar)});Ae({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Ee(()=>import("./freemarker2-DoW0pSYV.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAngleInterpolationBracket)});Ae({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Ee(()=>import("./freemarker2-DoW0pSYV.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagBracketInterpolationBracket)});Ae({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Ee(()=>import("./freemarker2-DoW0pSYV.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAutoInterpolationDollar)});Ae({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Ee(()=>import("./freemarker2-DoW0pSYV.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAutoInterpolationBracket)});Ae({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Ee(()=>import("./go-Cphgjts3.js"),[],import.meta.url)});Ae({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Ee(()=>import("./graphql-Cg7bfA9N.js"),[],import.meta.url)});Ae({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Ee(()=>import("./handlebars-DLlET-qc.js"),__vite__mapDeps([3,1,2]),import.meta.url)});Ae({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Ee(()=>import("./hcl-0cvrggvQ.js"),[],import.meta.url)});Ae({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:()=>Ee(()=>import("./html-4khbqrhe.js"),__vite__mapDeps([4,1,2]),import.meta.url)});Ae({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Ee(()=>import("./ini-Drc7WvVn.js"),[],import.meta.url)});Ae({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Ee(()=>import("./java-B_fMsGYe.js"),[],import.meta.url)});Ae({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Ee(()=>import("./javascript-CgPO2Hmj.js"),__vite__mapDeps([5,6,1,2]),import.meta.url)});Ae({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Ee(()=>import("./julia-Bqgm2twL.js"),[],import.meta.url)});Ae({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Ee(()=>import("./kotlin-BSkB5QuD.js"),[],import.meta.url)});Ae({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Ee(()=>import("./less-BsTHnhdd.js"),[],import.meta.url)});Ae({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Ee(()=>import("./lexon-YWi4-JPR.js"),[],import.meta.url)});Ae({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Ee(()=>import("./lua-nf6ki56Z.js"),[],import.meta.url)});Ae({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Ee(()=>import("./liquid-BsQJXwPT.js"),__vite__mapDeps([7,1,2]),import.meta.url)});Ae({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Ee(()=>import("./m3-Cpb6xl2v.js"),[],import.meta.url)});Ae({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Ee(()=>import("./markdown-DSZPf7rp.js"),[],import.meta.url)});Ae({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Ee(()=>import("./mdx-AO8t67gx.js"),__vite__mapDeps([8,1,2]),import.meta.url)});Ae({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Ee(()=>import("./mips-B_c3zf-v.js"),[],import.meta.url)});Ae({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Ee(()=>import("./msdax-rUNN04Wq.js"),[],import.meta.url)});Ae({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Ee(()=>import("./mysql-DDwshQtU.js"),[],import.meta.url)});Ae({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Ee(()=>import("./objective-c-B5zXfXm9.js"),[],import.meta.url)});Ae({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Ee(()=>import("./pascal-CXOwvkN_.js"),[],import.meta.url)});Ae({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Ee(()=>import("./pascaligo-Bc-ZgV77.js"),[],import.meta.url)});Ae({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Ee(()=>import("./perl-CwNk8-XU.js"),[],import.meta.url)});Ae({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Ee(()=>import("./pgsql-tGk8EFnU.js"),[],import.meta.url)});Ae({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Ee(()=>import("./php-CpIb_Oan.js"),[],import.meta.url)});Ae({id:"pla",extensions:[".pla"],loader:()=>Ee(()=>import("./pla-B03wrqEc.js"),[],import.meta.url)});Ae({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Ee(()=>import("./postiats-BKlk5iyT.js"),[],import.meta.url)});Ae({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Ee(()=>import("./powerquery-Bhzvs7bI.js"),[],import.meta.url)});Ae({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Ee(()=>import("./powershell-Dd3NCNK9.js"),[],import.meta.url)});Ae({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Ee(()=>import("./protobuf-COyEY5Pt.js"),[],import.meta.url)});Ae({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Ee(()=>import("./pug-BaJupSGV.js"),[],import.meta.url)});Ae({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Ee(()=>import("./python-3w4sZj5c.js"),__vite__mapDeps([9,1,2]),import.meta.url)});Ae({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Ee(()=>import("./qsharp-DXyYeYxl.js"),[],import.meta.url)});Ae({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Ee(()=>import("./r-CdQndTaG.js"),[],import.meta.url)});Ae({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Ee(()=>import("./razor-BFsvo06w.js"),__vite__mapDeps([10,1,2]),import.meta.url)});Ae({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Ee(()=>import("./redis-CVwtpugi.js"),[],import.meta.url)});Ae({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Ee(()=>import("./redshift-25W9uPmb.js"),[],import.meta.url)});Ae({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Ee(()=>import("./restructuredtext-DfzH4Xui.js"),[],import.meta.url)});Ae({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Ee(()=>import("./ruby-Cp1zYvxS.js"),[],import.meta.url)});Ae({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Ee(()=>import("./rust-D5C2fndG.js"),[],import.meta.url)});Ae({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Ee(()=>import("./sb-CDntyWJ8.js"),[],import.meta.url)});Ae({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:()=>Ee(()=>import("./scala-BoFRg7Ot.js"),[],import.meta.url)});Ae({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Ee(()=>import("./scheme-Bio4gycK.js"),[],import.meta.url)});Ae({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Ee(()=>import("./scss-4Ik7cdeQ.js"),[],import.meta.url)});Ae({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Ee(()=>import("./shell-CX-rkNHf.js"),[],import.meta.url)});Ae({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Ee(()=>import("./solidity-Tw7wswEv.js"),[],import.meta.url)});Ae({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Ee(()=>import("./sophia-C5WLch3f.js"),[],import.meta.url)});Ae({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Ee(()=>import("./sparql-DHaeiCBh.js"),[],import.meta.url)});Ae({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Ee(()=>import("./sql-CCSDG5nI.js"),[],import.meta.url)});Ae({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Ee(()=>import("./st-pnP8ivHi.js"),[],import.meta.url)});Ae({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Ee(()=>import("./swift-DwJ7jVG9.js"),[],import.meta.url)});Ae({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Ee(()=>import("./systemverilog-B9Xyijhd.js"),[],import.meta.url)});Ae({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Ee(()=>import("./systemverilog-B9Xyijhd.js"),[],import.meta.url)});Ae({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Ee(()=>import("./tcl-DnHyzjbg.js"),[],import.meta.url)});Ae({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Ee(()=>import("./twig-CPajHgWi.js"),[],import.meta.url)});Ae({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Ee(()=>import("./typescript-BXJ3QLad.js"),__vite__mapDeps([6,1,2]),import.meta.url)});Ae({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Ee(()=>import("./typespec-D-MeaMDU.js"),[],import.meta.url)});Ae({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Ee(()=>import("./vb-DgyLZaXg.js"),[],import.meta.url)});Ae({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Ee(()=>import("./wgsl-BIv9DU6q.js"),[],import.meta.url)});Ae({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>Ee(()=>import("./xml-CxKYn1FP.js"),__vite__mapDeps([11,1,2]),import.meta.url)});Ae({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Ee(()=>import("./yaml-BmWLvF7Q.js"),__vite__mapDeps([12,1,2]),import.meta.url)});/*!-----------------------------------------------------------------------------
686
+ *-----------------------------------------------------------------------------*/var yye=Object.defineProperty,Sye=Object.getOwnPropertyDescriptor,Lye=Object.getOwnPropertyNames,xye=Object.prototype.hasOwnProperty,kye=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Lye(e))!xye.call(o,n)&&n!==t&&yye(o,n,{get:()=>e[n],enumerable:!(i=Sye(e,n))||i.enumerable});return o},Dye=(o,e,t)=>(kye(o,e,"default"),t),pC={};Dye(pC,Vy);var lZ={},fR={},Iye=class cZ{static getOrCreate(e){return fR[e]||(fR[e]=new cZ(e)),fR[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,lZ[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function Ae(o){const e=o.id;lZ[e]=o,pC.languages.register(o);const t=Iye.getOrCreate(e);pC.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),pC.languages.onLanguageEncountered(e,async()=>{const i=await t.load();pC.languages.setLanguageConfiguration(e,i.conf)})}Ae({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Ee(()=>import("./abap-BrgZPUOV.js"),[],import.meta.url)});Ae({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Ee(()=>import("./apex-DyP6w7ZV.js"),[],import.meta.url)});Ae({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Ee(()=>import("./azcli-BaLxmfj-.js"),[],import.meta.url)});Ae({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Ee(()=>import("./bat-CFOPXBzS.js"),[],import.meta.url)});Ae({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Ee(()=>import("./bicep-BfEKNvv3.js"),[],import.meta.url)});Ae({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Ee(()=>import("./cameligo-BFG1Mk7z.js"),[],import.meta.url)});Ae({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Ee(()=>import("./clojure-DTECt2xU.js"),[],import.meta.url)});Ae({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Ee(()=>import("./coffee-CDGzqUPQ.js"),[],import.meta.url)});Ae({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Ee(()=>import("./cpp-CLLBncYj.js"),[],import.meta.url)});Ae({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Ee(()=>import("./cpp-CLLBncYj.js"),[],import.meta.url)});Ae({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Ee(()=>import("./csharp-dUCx_-0o.js"),[],import.meta.url)});Ae({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>Ee(()=>import("./csp-5Rap-vPy.js"),[],import.meta.url)});Ae({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Ee(()=>import("./css-D3h14YRZ.js"),[],import.meta.url)});Ae({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Ee(()=>import("./cypher-DrQuvNYM.js"),[],import.meta.url)});Ae({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Ee(()=>import("./dart-CFKIUWau.js"),[],import.meta.url)});Ae({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Ee(()=>import("./dockerfile-Zznr-cwX.js"),[],import.meta.url)});Ae({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Ee(()=>import("./ecl-Ce3n6wWz.js"),[],import.meta.url)});Ae({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Ee(()=>import("./elixir-deUWdS0T.js"),[],import.meta.url)});Ae({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Ee(()=>import("./flow9-i9-g7ZhI.js"),[],import.meta.url)});Ae({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Ee(()=>import("./fsharp-CzKuDChf.js"),[],import.meta.url)});Ae({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Ee(()=>import("./freemarker2-BVvYxc4P.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAutoInterpolationDollar)});Ae({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Ee(()=>import("./freemarker2-BVvYxc4P.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAngleInterpolationDollar)});Ae({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Ee(()=>import("./freemarker2-BVvYxc4P.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagBracketInterpolationDollar)});Ae({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Ee(()=>import("./freemarker2-BVvYxc4P.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAngleInterpolationBracket)});Ae({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Ee(()=>import("./freemarker2-BVvYxc4P.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagBracketInterpolationBracket)});Ae({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Ee(()=>import("./freemarker2-BVvYxc4P.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAutoInterpolationDollar)});Ae({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Ee(()=>import("./freemarker2-BVvYxc4P.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAutoInterpolationBracket)});Ae({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Ee(()=>import("./go-Cphgjts3.js"),[],import.meta.url)});Ae({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Ee(()=>import("./graphql-Cg7bfA9N.js"),[],import.meta.url)});Ae({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Ee(()=>import("./handlebars-mDJMZKVv.js"),__vite__mapDeps([3,1,2]),import.meta.url)});Ae({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Ee(()=>import("./hcl-0cvrggvQ.js"),[],import.meta.url)});Ae({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:()=>Ee(()=>import("./html-D6Gw0A_W.js"),__vite__mapDeps([4,1,2]),import.meta.url)});Ae({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Ee(()=>import("./ini-Drc7WvVn.js"),[],import.meta.url)});Ae({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Ee(()=>import("./java-B_fMsGYe.js"),[],import.meta.url)});Ae({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Ee(()=>import("./javascript-CT1GQ3oq.js"),__vite__mapDeps([5,6,1,2]),import.meta.url)});Ae({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Ee(()=>import("./julia-Bqgm2twL.js"),[],import.meta.url)});Ae({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Ee(()=>import("./kotlin-BSkB5QuD.js"),[],import.meta.url)});Ae({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Ee(()=>import("./less-BsTHnhdd.js"),[],import.meta.url)});Ae({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Ee(()=>import("./lexon-YWi4-JPR.js"),[],import.meta.url)});Ae({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Ee(()=>import("./lua-nf6ki56Z.js"),[],import.meta.url)});Ae({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Ee(()=>import("./liquid-BywhH4Kg.js"),__vite__mapDeps([7,1,2]),import.meta.url)});Ae({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Ee(()=>import("./m3-Cpb6xl2v.js"),[],import.meta.url)});Ae({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Ee(()=>import("./markdown-DSZPf7rp.js"),[],import.meta.url)});Ae({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Ee(()=>import("./mdx-VnQOs-88.js"),__vite__mapDeps([8,1,2]),import.meta.url)});Ae({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Ee(()=>import("./mips-B_c3zf-v.js"),[],import.meta.url)});Ae({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Ee(()=>import("./msdax-rUNN04Wq.js"),[],import.meta.url)});Ae({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Ee(()=>import("./mysql-DDwshQtU.js"),[],import.meta.url)});Ae({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Ee(()=>import("./objective-c-B5zXfXm9.js"),[],import.meta.url)});Ae({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Ee(()=>import("./pascal-CXOwvkN_.js"),[],import.meta.url)});Ae({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Ee(()=>import("./pascaligo-Bc-ZgV77.js"),[],import.meta.url)});Ae({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Ee(()=>import("./perl-CwNk8-XU.js"),[],import.meta.url)});Ae({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Ee(()=>import("./pgsql-tGk8EFnU.js"),[],import.meta.url)});Ae({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Ee(()=>import("./php-CpIb_Oan.js"),[],import.meta.url)});Ae({id:"pla",extensions:[".pla"],loader:()=>Ee(()=>import("./pla-B03wrqEc.js"),[],import.meta.url)});Ae({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Ee(()=>import("./postiats-BKlk5iyT.js"),[],import.meta.url)});Ae({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Ee(()=>import("./powerquery-Bhzvs7bI.js"),[],import.meta.url)});Ae({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Ee(()=>import("./powershell-Dd3NCNK9.js"),[],import.meta.url)});Ae({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Ee(()=>import("./protobuf-COyEY5Pt.js"),[],import.meta.url)});Ae({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Ee(()=>import("./pug-BaJupSGV.js"),[],import.meta.url)});Ae({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Ee(()=>import("./python-vRZdM7SD.js"),__vite__mapDeps([9,1,2]),import.meta.url)});Ae({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Ee(()=>import("./qsharp-DXyYeYxl.js"),[],import.meta.url)});Ae({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Ee(()=>import("./r-CdQndTaG.js"),[],import.meta.url)});Ae({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Ee(()=>import("./razor--qLVVNOO.js"),__vite__mapDeps([10,1,2]),import.meta.url)});Ae({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Ee(()=>import("./redis-CVwtpugi.js"),[],import.meta.url)});Ae({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Ee(()=>import("./redshift-25W9uPmb.js"),[],import.meta.url)});Ae({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Ee(()=>import("./restructuredtext-DfzH4Xui.js"),[],import.meta.url)});Ae({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Ee(()=>import("./ruby-Cp1zYvxS.js"),[],import.meta.url)});Ae({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Ee(()=>import("./rust-D5C2fndG.js"),[],import.meta.url)});Ae({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Ee(()=>import("./sb-CDntyWJ8.js"),[],import.meta.url)});Ae({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:()=>Ee(()=>import("./scala-BoFRg7Ot.js"),[],import.meta.url)});Ae({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Ee(()=>import("./scheme-Bio4gycK.js"),[],import.meta.url)});Ae({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Ee(()=>import("./scss-4Ik7cdeQ.js"),[],import.meta.url)});Ae({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Ee(()=>import("./shell-CX-rkNHf.js"),[],import.meta.url)});Ae({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Ee(()=>import("./solidity-Tw7wswEv.js"),[],import.meta.url)});Ae({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Ee(()=>import("./sophia-C5WLch3f.js"),[],import.meta.url)});Ae({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Ee(()=>import("./sparql-DHaeiCBh.js"),[],import.meta.url)});Ae({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Ee(()=>import("./sql-CCSDG5nI.js"),[],import.meta.url)});Ae({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Ee(()=>import("./st-pnP8ivHi.js"),[],import.meta.url)});Ae({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Ee(()=>import("./swift-DwJ7jVG9.js"),[],import.meta.url)});Ae({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Ee(()=>import("./systemverilog-B9Xyijhd.js"),[],import.meta.url)});Ae({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Ee(()=>import("./systemverilog-B9Xyijhd.js"),[],import.meta.url)});Ae({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Ee(()=>import("./tcl-DnHyzjbg.js"),[],import.meta.url)});Ae({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Ee(()=>import("./twig-CPajHgWi.js"),[],import.meta.url)});Ae({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Ee(()=>import("./typescript-DUO5mANL.js"),__vite__mapDeps([6,1,2]),import.meta.url)});Ae({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Ee(()=>import("./typespec-D-MeaMDU.js"),[],import.meta.url)});Ae({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Ee(()=>import("./vb-DgyLZaXg.js"),[],import.meta.url)});Ae({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Ee(()=>import("./wgsl-BIv9DU6q.js"),[],import.meta.url)});Ae({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>Ee(()=>import("./xml-CcxvqYR1.js"),__vite__mapDeps([11,1,2]),import.meta.url)});Ae({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Ee(()=>import("./yaml-BpCmDgZz.js"),__vite__mapDeps([12,1,2]),import.meta.url)});/*!-----------------------------------------------------------------------------
683
687
  * Copyright (c) Microsoft Corporation. All rights reserved.
684
688
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
685
689
  * Released under the MIT license
686
690
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
687
- *-----------------------------------------------------------------------------*/var Eye=Object.defineProperty,Nye=Object.getOwnPropertyDescriptor,Tye=Object.getOwnPropertyNames,Rye=Object.prototype.hasOwnProperty,Mye=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Tye(e))!Rye.call(o,n)&&n!==t&&Eye(o,n,{get:()=>e[n],enumerable:!(i=Nye(e,n))||i.enumerable});return o},Aye=(o,e,t)=>(Mye(o,e,"default"),t),_v={};Aye(_v,Vy);var hB=class{constructor(e,t,i){this._onDidChange=new _v.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)}},uB={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}},gB={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},dZ=new hB("css",uB,gB),hZ=new hB("scss",uB,gB),uZ=new hB("less",uB,gB);_v.languages.css={cssDefaults:dZ,lessDefaults:uZ,scssDefaults:hZ};function fB(){return Ee(()=>import("./cssMode-BbIf5k6I.js"),__vite__mapDeps([13,1,2]),import.meta.url)}_v.languages.onLanguage("less",()=>{fB().then(o=>o.setupMode(uZ))});_v.languages.onLanguage("scss",()=>{fB().then(o=>o.setupMode(hZ))});_v.languages.onLanguage("css",()=>{fB().then(o=>o.setupMode(dZ))});/*!-----------------------------------------------------------------------------
691
+ *-----------------------------------------------------------------------------*/var Eye=Object.defineProperty,Nye=Object.getOwnPropertyDescriptor,Tye=Object.getOwnPropertyNames,Rye=Object.prototype.hasOwnProperty,Mye=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Tye(e))!Rye.call(o,n)&&n!==t&&Eye(o,n,{get:()=>e[n],enumerable:!(i=Nye(e,n))||i.enumerable});return o},Aye=(o,e,t)=>(Mye(o,e,"default"),t),_v={};Aye(_v,Vy);var hB=class{constructor(e,t,i){this._onDidChange=new _v.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)}},uB={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}},gB={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},dZ=new hB("css",uB,gB),hZ=new hB("scss",uB,gB),uZ=new hB("less",uB,gB);_v.languages.css={cssDefaults:dZ,lessDefaults:uZ,scssDefaults:hZ};function fB(){return Ee(()=>import("./cssMode-CA8TzUhD.js"),__vite__mapDeps([13,1,2]),import.meta.url)}_v.languages.onLanguage("less",()=>{fB().then(o=>o.setupMode(uZ))});_v.languages.onLanguage("scss",()=>{fB().then(o=>o.setupMode(hZ))});_v.languages.onLanguage("css",()=>{fB().then(o=>o.setupMode(dZ))});/*!-----------------------------------------------------------------------------
688
692
  * Copyright (c) Microsoft Corporation. All rights reserved.
689
693
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
690
694
  * Released under the MIT license
691
695
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
692
- *-----------------------------------------------------------------------------*/var Pye=Object.defineProperty,Oye=Object.getOwnPropertyDescriptor,Fye=Object.getOwnPropertyNames,Wye=Object.prototype.hasOwnProperty,Bye=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Fye(e))!Wye.call(o,n)&&n!==t&&Pye(o,n,{get:()=>e[n],enumerable:!(i=Oye(e,n))||i.enumerable});return o},Hye=(o,e,t)=>(Bye(o,e,"default"),t),aN={};Hye(aN,Vy);var Vye=class{constructor(e,t,i){this._onDidChange=new aN.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)}},zye={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"},lN={format:zye,suggest:{},data:{useDefaultDataProvider:!0}};function cN(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===iw,documentFormattingEdits:o===iw,documentRangeFormattingEdits:o===iw}}var iw="html",hV="handlebars",uV="razor",gZ=dN(iw,lN,cN(iw)),Uye=gZ.defaults,fZ=dN(hV,lN,cN(hV)),$ye=fZ.defaults,mZ=dN(uV,lN,cN(uV)),jye=mZ.defaults;aN.languages.html={htmlDefaults:Uye,razorDefaults:jye,handlebarDefaults:$ye,htmlLanguageService:gZ,handlebarLanguageService:fZ,razorLanguageService:mZ,registerHTMLLanguageService:dN};function Kye(){return Ee(()=>import("./htmlMode-DblHkZ-k.js"),__vite__mapDeps([14,1,2]),import.meta.url)}function dN(o,e=lN,t=cN(o)){const i=new Vye(o,e,t);let n;const s=aN.languages.onLanguage(o,async()=>{n=(await Kye()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}/*!-----------------------------------------------------------------------------
696
+ *-----------------------------------------------------------------------------*/var Pye=Object.defineProperty,Oye=Object.getOwnPropertyDescriptor,Fye=Object.getOwnPropertyNames,Wye=Object.prototype.hasOwnProperty,Bye=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Fye(e))!Wye.call(o,n)&&n!==t&&Pye(o,n,{get:()=>e[n],enumerable:!(i=Oye(e,n))||i.enumerable});return o},Hye=(o,e,t)=>(Bye(o,e,"default"),t),aN={};Hye(aN,Vy);var Vye=class{constructor(e,t,i){this._onDidChange=new aN.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)}},zye={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"},lN={format:zye,suggest:{},data:{useDefaultDataProvider:!0}};function cN(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===iw,documentFormattingEdits:o===iw,documentRangeFormattingEdits:o===iw}}var iw="html",hV="handlebars",uV="razor",gZ=dN(iw,lN,cN(iw)),Uye=gZ.defaults,fZ=dN(hV,lN,cN(hV)),$ye=fZ.defaults,mZ=dN(uV,lN,cN(uV)),jye=mZ.defaults;aN.languages.html={htmlDefaults:Uye,razorDefaults:jye,handlebarDefaults:$ye,htmlLanguageService:gZ,handlebarLanguageService:fZ,razorLanguageService:mZ,registerHTMLLanguageService:dN};function Kye(){return Ee(()=>import("./htmlMode-BD8QBoPu.js"),__vite__mapDeps([14,1,2]),import.meta.url)}function dN(o,e=lN,t=cN(o)){const i=new Vye(o,e,t);let n;const s=aN.languages.onLanguage(o,async()=>{n=(await Kye()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}/*!-----------------------------------------------------------------------------
693
697
  * Copyright (c) Microsoft Corporation. All rights reserved.
694
698
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
695
699
  * Released under the MIT license
696
700
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
697
- *-----------------------------------------------------------------------------*/var qye=Object.defineProperty,Gye=Object.getOwnPropertyDescriptor,Zye=Object.getOwnPropertyNames,Yye=Object.prototype.hasOwnProperty,Xye=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Zye(e))!Yye.call(o,n)&&n!==t&&qye(o,n,{get:()=>e[n],enumerable:!(i=Gye(e,n))||i.enumerable});return o},Qye=(o,e,t)=>(Xye(o,e,"default"),t),zy={};Qye(zy,Vy);var Jye=class{constructor(e,t,i){this._onDidChange=new zy.Emitter,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)}},e0e={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},t0e={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},pZ=new Jye("json",e0e,t0e),i0e=()=>_Z().then(o=>o.getWorker());zy.languages.json={jsonDefaults:pZ,getWorker:i0e};function _Z(){return Ee(()=>import("./jsonMode-BrWh2436.js"),__vite__mapDeps([15,1,2]),import.meta.url)}zy.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});zy.languages.onLanguage("json",()=>{_Z().then(o=>o.setupMode(pZ))});/*!-----------------------------------------------------------------------------
701
+ *-----------------------------------------------------------------------------*/var qye=Object.defineProperty,Gye=Object.getOwnPropertyDescriptor,Zye=Object.getOwnPropertyNames,Yye=Object.prototype.hasOwnProperty,Xye=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Zye(e))!Yye.call(o,n)&&n!==t&&qye(o,n,{get:()=>e[n],enumerable:!(i=Gye(e,n))||i.enumerable});return o},Qye=(o,e,t)=>(Xye(o,e,"default"),t),zy={};Qye(zy,Vy);var Jye=class{constructor(e,t,i){this._onDidChange=new zy.Emitter,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)}},e0e={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},t0e={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},pZ=new Jye("json",e0e,t0e),i0e=()=>_Z().then(o=>o.getWorker());zy.languages.json={jsonDefaults:pZ,getWorker:i0e};function _Z(){return Ee(()=>import("./jsonMode-CBS8chp_.js"),__vite__mapDeps([15,1,2]),import.meta.url)}zy.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});zy.languages.onLanguage("json",()=>{_Z().then(o=>o.setupMode(pZ))});/*!-----------------------------------------------------------------------------
698
702
  * Copyright (c) Microsoft Corporation. All rights reserved.
699
703
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
700
704
  * Released under the MIT license
701
705
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
702
- *-----------------------------------------------------------------------------*/var n0e=Object.defineProperty,s0e=Object.getOwnPropertyDescriptor,o0e=Object.getOwnPropertyNames,r0e=Object.prototype.hasOwnProperty,a0e=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of o0e(e))!r0e.call(o,n)&&n!==t&&n0e(o,n,{get:()=>e[n],enumerable:!(i=s0e(e,n))||i.enumerable});return o},l0e=(o,e,t)=>(a0e(o,e,"default"),t),c0e="5.4.5",Ab={};l0e(Ab,Vy);var bZ=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(bZ||{}),vZ=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(vZ||{}),CZ=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(CZ||{}),wZ=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(wZ||{}),yZ=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(yZ||{}),SZ=class{constructor(o,e,t,i,n){this._onDidChange=new Ab.Emitter,this._onDidExtraLibsChange=new Ab.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),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(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(void 0)}},d0e=c0e,LZ={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},xZ=new SZ({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},LZ),kZ=new SZ({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},LZ),h0e=()=>hN().then(o=>o.getTypeScriptWorker()),u0e=()=>hN().then(o=>o.getJavaScriptWorker());Ab.languages.typescript={ModuleKind:bZ,JsxEmit:vZ,NewLineKind:CZ,ScriptTarget:wZ,ModuleResolutionKind:yZ,typescriptVersion:d0e,typescriptDefaults:xZ,javascriptDefaults:kZ,getTypeScriptWorker:h0e,getJavaScriptWorker:u0e};function hN(){return Ee(()=>import("./tsMode-QrC4ERjp.js"),__vite__mapDeps([16,1,2]),import.meta.url)}Ab.languages.onLanguage("typescript",()=>hN().then(o=>o.setupTypeScript(xZ)));Ab.languages.onLanguage("javascript",()=>hN().then(o=>o.setupJavaScript(kZ)));class g0e extends so{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:He("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:ne.map,toggled:Z.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:Z.has("isInDiffEditor"),menu:{when:Z.has("isInDiffEditor"),id:be.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(ht),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class DZ extends so{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:He("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:Z.has("isInDiffEditor")})}run(e,...t){const i=e.get(ht),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class IZ extends so{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:He("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:Z.has("isInDiffEditor")})}run(e,...t){const i=e.get(ht),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const Uy=He("diffEditor","Diff Editor");class f0e extends Nl{constructor(){super({id:"diffEditor.switchSide",title:He("switchSide","Switch Side"),icon:ne.arrowSwap,precondition:Z.has("isInDiffEditor"),f1:!0,category:Uy})}runEditorCommand(e,t,i){const n=bv(e);if(n instanceof $d){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class m0e extends Nl{constructor(){super({id:"diffEditor.exitCompareMove",title:He("exitCompareMove","Exit Compare Move"),icon:ne.close,precondition:I.comparingMovedCode,f1:!1,category:Uy,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=bv(e);n instanceof $d&&n.exitCompareMove()}}class p0e extends Nl{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:He("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:ne.fold,precondition:Z.has("isInDiffEditor"),f1:!0,category:Uy})}runEditorCommand(e,t,...i){const n=bv(e);n instanceof $d&&n.collapseAllUnchangedRegions()}}class _0e extends Nl{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:He("showAllUnchangedRegions","Show All Unchanged Regions"),icon:ne.unfold,precondition:Z.has("isInDiffEditor"),f1:!0,category:Uy})}runEditorCommand(e,t,...i){const n=bv(e);n instanceof $d&&n.showAllUnchangedRegions()}}class PO extends so{constructor(){super({id:"diffEditor.revert",title:He("revert","Revert"),f1:!1,category:Uy})}run(e,t){const i=b0e(e,t.originalUri,t.modifiedUri);i instanceof $d&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const EZ=He("accessibleDiffViewer","Accessible Diff Viewer"),sI=class sI extends so{constructor(){super({id:sI.id,title:He("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:EZ,precondition:Z.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=bv(e);t==null||t.accessibleDiffViewerNext()}};sI.id="editor.action.accessibleDiffViewer.next";let W1=sI;const oI=class oI extends so{constructor(){super({id:oI.id,title:He("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:EZ,precondition:Z.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=bv(e);t==null||t.accessibleDiffViewerPrev()}};oI.id="editor.action.accessibleDiffViewer.prev";let hk=oI;function b0e(o,e,t){return o.get(Ft).listDiffEditors().find(s=>{var l,c;const r=s.getModifiedEditor(),a=s.getOriginalEditor();return r&&((l=r.getModel())==null?void 0:l.uri.toString())===t.toString()&&a&&((c=a.getModel())==null?void 0:c.uri.toString())===e.toString()})||null}function bv(o){const t=o.get(Ft).listDiffEditors(),i=as();if(i)for(const n of t){const s=n.getContainerDomNode();if(v0e(s,i))return n}return null}function v0e(o,e){let t=e;for(;t;){if(t===o)return!0;t=t.parentElement}return!1}hi(g0e);hi(DZ);hi(IZ);Vn.appendMenuItem(be.EditorTitle,{command:{id:new IZ().desc.id,title:m("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:Z.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:Z.has("isInDiffEditor")},order:11,group:"1_diff",when:Z.and(I.diffEditorRenderSideBySideInlineBreakpointReached,Z.has("isInDiffEditor"))});Vn.appendMenuItem(be.EditorTitle,{command:{id:new DZ().desc.id,title:m("showMoves","Show Moved Code Blocks"),icon:ne.move,toggled:ev.create("config.diffEditor.experimental.showMoves",!0),precondition:Z.has("isInDiffEditor")},order:10,group:"1_diff",when:Z.has("isInDiffEditor")});hi(PO);for(const o of[{icon:ne.arrowRight,key:I.diffEditorInlineMode.toNegated()},{icon:ne.discard,key:I.diffEditorInlineMode}])Vn.appendMenuItem(be.DiffEditorHunkToolbar,{command:{id:new PO().desc.id,title:m("revertHunk","Revert Block"),icon:o.icon},when:Z.and(I.diffEditorModifiedWritable,o.key),order:5,group:"primary"}),Vn.appendMenuItem(be.DiffEditorSelectionToolbar,{command:{id:new PO().desc.id,title:m("revertSelection","Revert Selection"),icon:o.icon},when:Z.and(I.diffEditorModifiedWritable,o.key),order:5,group:"primary"});hi(f0e);hi(m0e);hi(p0e);hi(_0e);Vn.appendMenuItem(be.EditorTitle,{command:{id:W1.id,title:m("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:Z.has("isInDiffEditor")},order:10,group:"2_diff",when:Z.and(I.accessibleDiffViewerVisible.negate(),Z.has("isInDiffEditor"))});kt.registerCommandAlias("editor.action.diffReview.next",W1.id);hi(W1);kt.registerCommandAlias("editor.action.diffReview.prev",hk.id);hi(hk);var C0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},w0e=function(o,e){return function(t,i){e(t,i,o)}},OO;const uN=new fe("selectionAnchorSet",!1);var Lf;let Wu=(Lf=class{static get(e){return e.getContribution(OO.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=uN.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(ve.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new ms().appendText(m("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),io(m("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(ve.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()}},OO=Lf,Lf.ID="editor.contrib.selectionAnchorController",Lf);Wu=OO=C0e([w0e(1,Be)],Wu);class y0e extends pe{constructor(){super({id:"editor.action.setSelectionAnchor",label:m("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:Cn(2089,2080),weight:100}})}async run(e,t){var i;(i=Wu.get(t))==null||i.setSelectionAnchor()}}class S0e extends pe{constructor(){super({id:"editor.action.goToSelectionAnchor",label:m("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:uN})}async run(e,t){var i;(i=Wu.get(t))==null||i.goToSelectionAnchor()}}class L0e extends pe{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:m("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:uN,kbOpts:{kbExpr:I.editorTextFocus,primary:Cn(2089,2089),weight:100}})}async run(e,t){var i;(i=Wu.get(t))==null||i.selectFromAnchorToCursor()}}class x0e extends pe{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:m("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:uN,kbOpts:{kbExpr:I.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;(i=Wu.get(t))==null||i.cancelSelectionAnchor()}}Nt(Wu.ID,Wu,4);ee(y0e);ee(S0e);ee(L0e);ee(x0e);const k0e=N("editorOverviewRuler.bracketMatchForeground","#A0A0A0",m("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class D0e extends pe{constructor(){super({id:"editor.action.jumpToBracket",label:m("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;(i=Dm.get(t))==null||i.jumpToBracket()}}class I0e extends pe{constructor(){super({id:"editor.action.selectToBracket",label:m("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:He("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var s;let n=!0;i&&i.selectBrackets===!1&&(n=!1),(s=Dm.get(t))==null||s.selectToBracket(n)}}class E0e extends pe{constructor(){super({id:"editor.action.removeBrackets",label:m("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;(i=Dm.get(t))==null||i.removeBrackets(this.id)}}class N0e{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}const Sh=class Sh extends V{static get(e){return e.getContribution(Sh.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new ti(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.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(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new ve(r.lineNumber,r.column,r.lineNumber,r.column):new ve(n.lineNumber,n.column,n.lineNumber,n.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 s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(x.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new ve(a.lineNumber,a.column,l.lineNumber,l.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 s=t.bracketPairs.matchBracket(n);s||(s=t.bracketPairs.findEnclosingBrackets(n)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")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()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h<u;h++){const g=e[h];g.isEmpty()&&(s[r++]=g.getStartPosition())}s.length>1&&s.sort(O.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=s.length;h<u;h++){const g=s[h];for(;c<d&&n[c].position.isBefore(g);)c++;if(c<d&&n[c].position.equals(g))a[l++]=n[c];else{let f=t.bracketPairs.matchBracket(g,20),p=Sh._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!f&&this._matchBrackets==="always"&&(f=t.bracketPairs.findEnclosingBrackets(g,20),p=Sh._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new N0e(g,f,p)}}this._lastBracketsData=a,this._lastVersionId=i}};Sh.ID="editor.contrib.bracketMatchingController",Sh._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=Xe.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:Gi(k0e),position:xr.Center}}),Sh._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Xe.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"});let Dm=Sh;Nt(Dm.ID,Dm,1);ee(I0e);ee(D0e);ee(E0e);Vn.appendMenuItem(be.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:m({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class T0e{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,s=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&s===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new x(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new x(i,s,i,s),a)}else{const r=new x(i,s,i,s+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new x(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new ve(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new ve(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class NZ extends pe{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const s of n)i.push(new T0e(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class R0e extends NZ{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:m("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:I.writable})}}class M0e extends NZ{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:m("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:I.writable})}}ee(R0e);ee(M0e);class A0e extends pe{constructor(){super({id:"editor.action.transposeLetters",label:m("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:I.writable,kbOpts:{kbExpr:I.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],s=t.getSelections();for(const r of s){if(!r.isEmpty())continue;const a=r.startLineNumber,l=r.startColumn,c=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;const d=l===c?r.getPosition():Zt.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),h=Zt.leftPosition(i,d),u=Zt.leftPosition(i,h),g=i.getValueInRange(x.fromPositions(u,h)),f=i.getValueInRange(x.fromPositions(h,d)),p=x.fromPositions(u,d);n.push(new rs(p,f+g))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}ee(A0e);const gN=(function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;n<i.length;n++)i[n]=Math.floor(Math.random()*256);return i};const e=new Uint8Array(16),t=[];for(let i=0;i<256;i++)t.push(i.toString(16).padStart(2,"0"));return function(){o(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let n=0,s="";return s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+="-",s+=t[e[n++]],s+=t[e[n++]],s+="-",s+=t[e[n++]],s+=t[e[n++]],s+="-",s+=t[e[n++]],s+=t[e[n++]],s+="-",s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s}})();function mB(o){return{asString:async()=>o,asFile:()=>{},value:typeof o=="string"?o:void 0}}function P0e(o,e,t){const i={id:gN(),name:o,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class TZ{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 xt.some(this,([i,n])=>n.asFile())&&t.push("files"),MZ(uk(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))==null?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 uk(e)}}function uk(o){return o.toLowerCase()}function RZ(o,e){return MZ(uk(o),e.map(uk))}function MZ(o,e){if(o==="*/*")return e.length>0;if(e.includes(o))return!0;const t=o.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,s]=t;return s==="*"?e.some(r=>r.startsWith(n+"/")):!1}const fN=Object.freeze({create:o=>Od(o.map(e=>e.toString())).join(`\r
706
+ *-----------------------------------------------------------------------------*/var n0e=Object.defineProperty,s0e=Object.getOwnPropertyDescriptor,o0e=Object.getOwnPropertyNames,r0e=Object.prototype.hasOwnProperty,a0e=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of o0e(e))!r0e.call(o,n)&&n!==t&&n0e(o,n,{get:()=>e[n],enumerable:!(i=s0e(e,n))||i.enumerable});return o},l0e=(o,e,t)=>(a0e(o,e,"default"),t),c0e="5.4.5",Ab={};l0e(Ab,Vy);var bZ=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(bZ||{}),vZ=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(vZ||{}),CZ=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(CZ||{}),wZ=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(wZ||{}),yZ=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(yZ||{}),SZ=class{constructor(o,e,t,i,n){this._onDidChange=new Ab.Emitter,this._onDidExtraLibsChange=new Ab.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),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(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(void 0)}},d0e=c0e,LZ={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},xZ=new SZ({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},LZ),kZ=new SZ({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},LZ),h0e=()=>hN().then(o=>o.getTypeScriptWorker()),u0e=()=>hN().then(o=>o.getJavaScriptWorker());Ab.languages.typescript={ModuleKind:bZ,JsxEmit:vZ,NewLineKind:CZ,ScriptTarget:wZ,ModuleResolutionKind:yZ,typescriptVersion:d0e,typescriptDefaults:xZ,javascriptDefaults:kZ,getTypeScriptWorker:h0e,getJavaScriptWorker:u0e};function hN(){return Ee(()=>import("./tsMode-CLwp9V4R.js"),__vite__mapDeps([16,1,2]),import.meta.url)}Ab.languages.onLanguage("typescript",()=>hN().then(o=>o.setupTypeScript(xZ)));Ab.languages.onLanguage("javascript",()=>hN().then(o=>o.setupJavaScript(kZ)));class g0e extends so{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:He("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:ne.map,toggled:Z.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:Z.has("isInDiffEditor"),menu:{when:Z.has("isInDiffEditor"),id:be.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(ht),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class DZ extends so{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:He("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:Z.has("isInDiffEditor")})}run(e,...t){const i=e.get(ht),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class IZ extends so{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:He("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:Z.has("isInDiffEditor")})}run(e,...t){const i=e.get(ht),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const Uy=He("diffEditor","Diff Editor");class f0e extends Nl{constructor(){super({id:"diffEditor.switchSide",title:He("switchSide","Switch Side"),icon:ne.arrowSwap,precondition:Z.has("isInDiffEditor"),f1:!0,category:Uy})}runEditorCommand(e,t,i){const n=bv(e);if(n instanceof $d){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class m0e extends Nl{constructor(){super({id:"diffEditor.exitCompareMove",title:He("exitCompareMove","Exit Compare Move"),icon:ne.close,precondition:I.comparingMovedCode,f1:!1,category:Uy,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=bv(e);n instanceof $d&&n.exitCompareMove()}}class p0e extends Nl{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:He("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:ne.fold,precondition:Z.has("isInDiffEditor"),f1:!0,category:Uy})}runEditorCommand(e,t,...i){const n=bv(e);n instanceof $d&&n.collapseAllUnchangedRegions()}}class _0e extends Nl{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:He("showAllUnchangedRegions","Show All Unchanged Regions"),icon:ne.unfold,precondition:Z.has("isInDiffEditor"),f1:!0,category:Uy})}runEditorCommand(e,t,...i){const n=bv(e);n instanceof $d&&n.showAllUnchangedRegions()}}class PO extends so{constructor(){super({id:"diffEditor.revert",title:He("revert","Revert"),f1:!1,category:Uy})}run(e,t){const i=b0e(e,t.originalUri,t.modifiedUri);i instanceof $d&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const EZ=He("accessibleDiffViewer","Accessible Diff Viewer"),sI=class sI extends so{constructor(){super({id:sI.id,title:He("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:EZ,precondition:Z.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=bv(e);t==null||t.accessibleDiffViewerNext()}};sI.id="editor.action.accessibleDiffViewer.next";let W1=sI;const oI=class oI extends so{constructor(){super({id:oI.id,title:He("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:EZ,precondition:Z.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=bv(e);t==null||t.accessibleDiffViewerPrev()}};oI.id="editor.action.accessibleDiffViewer.prev";let hk=oI;function b0e(o,e,t){return o.get(Ft).listDiffEditors().find(s=>{var l,c;const r=s.getModifiedEditor(),a=s.getOriginalEditor();return r&&((l=r.getModel())==null?void 0:l.uri.toString())===t.toString()&&a&&((c=a.getModel())==null?void 0:c.uri.toString())===e.toString()})||null}function bv(o){const t=o.get(Ft).listDiffEditors(),i=as();if(i)for(const n of t){const s=n.getContainerDomNode();if(v0e(s,i))return n}return null}function v0e(o,e){let t=e;for(;t;){if(t===o)return!0;t=t.parentElement}return!1}hi(g0e);hi(DZ);hi(IZ);Vn.appendMenuItem(be.EditorTitle,{command:{id:new IZ().desc.id,title:m("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:Z.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:Z.has("isInDiffEditor")},order:11,group:"1_diff",when:Z.and(I.diffEditorRenderSideBySideInlineBreakpointReached,Z.has("isInDiffEditor"))});Vn.appendMenuItem(be.EditorTitle,{command:{id:new DZ().desc.id,title:m("showMoves","Show Moved Code Blocks"),icon:ne.move,toggled:ev.create("config.diffEditor.experimental.showMoves",!0),precondition:Z.has("isInDiffEditor")},order:10,group:"1_diff",when:Z.has("isInDiffEditor")});hi(PO);for(const o of[{icon:ne.arrowRight,key:I.diffEditorInlineMode.toNegated()},{icon:ne.discard,key:I.diffEditorInlineMode}])Vn.appendMenuItem(be.DiffEditorHunkToolbar,{command:{id:new PO().desc.id,title:m("revertHunk","Revert Block"),icon:o.icon},when:Z.and(I.diffEditorModifiedWritable,o.key),order:5,group:"primary"}),Vn.appendMenuItem(be.DiffEditorSelectionToolbar,{command:{id:new PO().desc.id,title:m("revertSelection","Revert Selection"),icon:o.icon},when:Z.and(I.diffEditorModifiedWritable,o.key),order:5,group:"primary"});hi(f0e);hi(m0e);hi(p0e);hi(_0e);Vn.appendMenuItem(be.EditorTitle,{command:{id:W1.id,title:m("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:Z.has("isInDiffEditor")},order:10,group:"2_diff",when:Z.and(I.accessibleDiffViewerVisible.negate(),Z.has("isInDiffEditor"))});kt.registerCommandAlias("editor.action.diffReview.next",W1.id);hi(W1);kt.registerCommandAlias("editor.action.diffReview.prev",hk.id);hi(hk);var C0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},w0e=function(o,e){return function(t,i){e(t,i,o)}},OO;const uN=new fe("selectionAnchorSet",!1);var Lf;let Wu=(Lf=class{static get(e){return e.getContribution(OO.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=uN.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(ve.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new ms().appendText(m("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),io(m("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(ve.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()}},OO=Lf,Lf.ID="editor.contrib.selectionAnchorController",Lf);Wu=OO=C0e([w0e(1,Be)],Wu);class y0e extends pe{constructor(){super({id:"editor.action.setSelectionAnchor",label:m("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:Cn(2089,2080),weight:100}})}async run(e,t){var i;(i=Wu.get(t))==null||i.setSelectionAnchor()}}class S0e extends pe{constructor(){super({id:"editor.action.goToSelectionAnchor",label:m("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:uN})}async run(e,t){var i;(i=Wu.get(t))==null||i.goToSelectionAnchor()}}class L0e extends pe{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:m("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:uN,kbOpts:{kbExpr:I.editorTextFocus,primary:Cn(2089,2089),weight:100}})}async run(e,t){var i;(i=Wu.get(t))==null||i.selectFromAnchorToCursor()}}class x0e extends pe{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:m("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:uN,kbOpts:{kbExpr:I.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;(i=Wu.get(t))==null||i.cancelSelectionAnchor()}}Nt(Wu.ID,Wu,4);ee(y0e);ee(S0e);ee(L0e);ee(x0e);const k0e=N("editorOverviewRuler.bracketMatchForeground","#A0A0A0",m("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class D0e extends pe{constructor(){super({id:"editor.action.jumpToBracket",label:m("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;(i=Dm.get(t))==null||i.jumpToBracket()}}class I0e extends pe{constructor(){super({id:"editor.action.selectToBracket",label:m("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:He("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var s;let n=!0;i&&i.selectBrackets===!1&&(n=!1),(s=Dm.get(t))==null||s.selectToBracket(n)}}class E0e extends pe{constructor(){super({id:"editor.action.removeBrackets",label:m("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;(i=Dm.get(t))==null||i.removeBrackets(this.id)}}class N0e{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}const Sh=class Sh extends V{static get(e){return e.getContribution(Sh.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new ti(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.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(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new ve(r.lineNumber,r.column,r.lineNumber,r.column):new ve(n.lineNumber,n.column,n.lineNumber,n.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 s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(x.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new ve(a.lineNumber,a.column,l.lineNumber,l.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 s=t.bracketPairs.matchBracket(n);s||(s=t.bracketPairs.findEnclosingBrackets(n)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")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()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h<u;h++){const g=e[h];g.isEmpty()&&(s[r++]=g.getStartPosition())}s.length>1&&s.sort(O.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=s.length;h<u;h++){const g=s[h];for(;c<d&&n[c].position.isBefore(g);)c++;if(c<d&&n[c].position.equals(g))a[l++]=n[c];else{let f=t.bracketPairs.matchBracket(g,20),p=Sh._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!f&&this._matchBrackets==="always"&&(f=t.bracketPairs.findEnclosingBrackets(g,20),p=Sh._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new N0e(g,f,p)}}this._lastBracketsData=a,this._lastVersionId=i}};Sh.ID="editor.contrib.bracketMatchingController",Sh._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=Xe.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:Gi(k0e),position:xr.Center}}),Sh._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Xe.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"});let Dm=Sh;Nt(Dm.ID,Dm,1);ee(I0e);ee(D0e);ee(E0e);Vn.appendMenuItem(be.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:m({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class T0e{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,s=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&s===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new x(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new x(i,s,i,s),a)}else{const r=new x(i,s,i,s+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new x(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new ve(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new ve(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class NZ extends pe{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const s of n)i.push(new T0e(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class R0e extends NZ{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:m("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:I.writable})}}class M0e extends NZ{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:m("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:I.writable})}}ee(R0e);ee(M0e);class A0e extends pe{constructor(){super({id:"editor.action.transposeLetters",label:m("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:I.writable,kbOpts:{kbExpr:I.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],s=t.getSelections();for(const r of s){if(!r.isEmpty())continue;const a=r.startLineNumber,l=r.startColumn,c=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;const d=l===c?r.getPosition():Zt.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),h=Zt.leftPosition(i,d),u=Zt.leftPosition(i,h),g=i.getValueInRange(x.fromPositions(u,h)),f=i.getValueInRange(x.fromPositions(h,d)),p=x.fromPositions(u,d);n.push(new rs(p,f+g))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}ee(A0e);const gN=(function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;n<i.length;n++)i[n]=Math.floor(Math.random()*256);return i};const e=new Uint8Array(16),t=[];for(let i=0;i<256;i++)t.push(i.toString(16).padStart(2,"0"));return function(){o(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let n=0,s="";return s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+="-",s+=t[e[n++]],s+=t[e[n++]],s+="-",s+=t[e[n++]],s+=t[e[n++]],s+="-",s+=t[e[n++]],s+=t[e[n++]],s+="-",s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s}})();function mB(o){return{asString:async()=>o,asFile:()=>{},value:typeof o=="string"?o:void 0}}function P0e(o,e,t){const i={id:gN(),name:o,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class TZ{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 xt.some(this,([i,n])=>n.asFile())&&t.push("files"),MZ(uk(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))==null?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 uk(e)}}function uk(o){return o.toLowerCase()}function RZ(o,e){return MZ(uk(o),e.map(uk))}function MZ(o,e){if(o==="*/*")return e.length>0;if(e.includes(o))return!0;const t=o.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,s]=t;return s==="*"?e.some(r=>r.startsWith(n+"/")):!1}const fN=Object.freeze({create:o=>Od(o.map(e=>e.toString())).join(`\r
703
707
  `),split:o=>o.split(`\r
704
708
  `),parse:o=>fN.split(o).filter(e=>!e.startsWith("#"))}),Ql=class Ql{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+Ql.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new Ql((this.value?[this.value,...e]:e).join(Ql.sep))}};Ql.sep=".",Ql.None=new Ql("@@none@@"),Ql.Empty=new Ql("");let Ti=Ql;const gV={EDITORS:"CodeEditors",FILES:"CodeFiles"};class O0e{}const F0e={DragAndDropContribution:"workbench.contributions.dragAndDrop"};zi.add(F0e.DragAndDropContribution,new O0e);const Dw=class Dw{constructor(){}static getInstance(){return Dw.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}};Dw.INSTANCE=new Dw;let FO=Dw;function AZ(o){const e=new TZ;for(const t of o.items){const i=t.type;if(t.kind==="string"){const n=new Promise(s=>t.getAsString(s));e.append(i,mB(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,W0e(n))}}return e}function W0e(o){const e=o.path?Ie.parse(o.path):void 0;return P0e(o.name,e,async()=>new Uint8Array(await o.arrayBuffer()))}const B0e=Object.freeze([gV.EDITORS,gV.FILES,d1.RESOURCES,d1.INTERNAL_URI_LIST]);function PZ(o,e=!1){const t=AZ(o),i=t.get(d1.INTERNAL_URI_LIST);if(i)t.replace(Ji.uriList,i);else if(e||!t.has(Ji.uriList)){const n=[];for(const s of o.items){const r=s.getAsFile();if(r){const a=r.path;try{a?n.push(Ie.file(a).toString()):n.push(Ie.parse(r.name,!0).toString())}catch{}}}n.length&&t.replace(Ji.uriList,mB(fN.create(n)))}for(const n of B0e)t.delete(n);return t}var pB=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},B1=function(o,e){return function(t,i){e(t,i,o)}};class _B{async provideDocumentPasteEdits(e,t,i,n,s){const r=await this.getEdit(i,s);if(r)return{edits:[{insertText:r.insertText,title:r.title,kind:r.kind,handledMimeType:r.handledMimeType,yieldTo:r.yieldTo}],dispose(){}}}async provideDocumentDropEdits(e,t,i,n){const s=await this.getEdit(i,n);if(s)return{edits:[{insertText:s.insertText,title:s.title,kind:s.kind,handledMimeType:s.handledMimeType,yieldTo:s.yieldTo}],dispose(){}}}}const Iw=class Iw extends _B{constructor(){super(...arguments),this.kind=Iw.kind,this.dropMimeTypes=[Ji.text],this.pasteMimeTypes=[Ji.text]}async getEdit(e,t){const i=e.get(Ji.text);if(!i||e.has(Ji.uriList))return;const n=await i.asString();return{handledMimeType:Ji.text,title:m("text.label","Insert Plain Text"),insertText:n,kind:this.kind}}};Iw.id="text",Iw.kind=new Ti("text.plain");let Im=Iw;class OZ extends _B{constructor(){super(...arguments),this.kind=new Ti("uri.absolute"),this.dropMimeTypes=[Ji.uriList],this.pasteMimeTypes=[Ji.uriList]}async getEdit(e,t){const i=await FZ(e);if(!i.length||t.isCancellationRequested)return;let n=0;const s=i.map(({uri:a,originalText:l})=>a.scheme===Ge.file?a.fsPath:(n++,l)).join(" ");let r;return n>0?r=i.length>1?m("defaultDropProvider.uriList.uris","Insert Uris"):m("defaultDropProvider.uriList.uri","Insert Uri"):r=i.length>1?m("defaultDropProvider.uriList.paths","Insert Paths"):m("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:Ji.uriList,insertText:s,title:r,kind:this.kind}}}let gk=class extends _B{constructor(e){super(),this._workspaceContextService=e,this.kind=new Ti("uri.relative"),this.dropMimeTypes=[Ji.uriList],this.pasteMimeTypes=[Ji.uriList]}async getEdit(e,t){const i=await FZ(e);if(!i.length||t.isCancellationRequested)return;const n=Na(i.map(({uri:s})=>{const r=this._workspaceContextService.getWorkspaceFolder(s);return r?Kle(r.uri,s):void 0}));if(n.length)return{handledMimeType:Ji.uriList,insertText:n.join(" "),title:i.length>1?m("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):m("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}}};gk=pB([B1(0,wm)],gk);class H0e{constructor(){this.kind=new Ti("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:Ji.text}]}async provideDocumentPasteEdits(e,t,i,n,s){var l;if(n.triggerKind!==Ww.PasteAs&&!((l=n.only)!=null&&l.contains(this.kind)))return;const r=i.get("text/html"),a=await(r==null?void 0:r.asString());if(!(!a||s.isCancellationRequested))return{dispose(){},edits:[{insertText:a,yieldTo:this._yieldTo,title:m("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}}}async function FZ(o){const e=o.get(Ji.uriList);if(!e)return[];const t=await e.asString(),i=[];for(const n of fN.parse(t))try{i.push({uri:Ie.parse(n),originalText:n})}catch{}return i}let WO=class extends V{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new Im)),this._register(e.documentDropEditProvider.register("*",new OZ)),this._register(e.documentDropEditProvider.register("*",new gk(t)))}};WO=pB([B1(0,_e),B1(1,wm)],WO);let BO=class extends V{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new Im)),this._register(e.documentPasteEditProvider.register("*",new OZ)),this._register(e.documentPasteEditProvider.register("*",new gk(t))),this._register(e.documentPasteEditProvider.register("*",new H0e))}};BO=pB([B1(0,_e),B1(1,wm)],BO);const pa=class pa{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||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=0,i=this.value.charCodeAt(e),n;if(n=pa._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(pa.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(pa.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(pa.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(pa.isVariableCharacter(i)||pa.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof pa._table[i]>"u"&&!pa.isDigitCharacter(i)&&!pa.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}};pa._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};let HO=pa;class vv{constructor(){this._children=[]}appendChild(e){return e instanceof $s&&this._children[this._children.length-1]instanceof $s?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),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,(function r(a,l){for(const c of a)c.parent=l,r(c.children,c)})(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 $y)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class $s extends vv{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new $s(this.value)}}class WZ extends vv{}class jr extends WZ{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Cv?this._children[0]:void 0}clone(){const e=new jr(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class Cv extends vv{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof $s&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new Cv;return this.options.forEach(e.appendChild,e),e}}class bB extends vv{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(s=>s instanceof tl&&!!s.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof tl){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new bB;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class tl extends vv{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new tl(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class H1 extends WZ{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new $s(t)],!0):!1}clone(){const e=new H1(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function fV(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class $y extends vv{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof jr&&(e.push(i),t=!t||t.index<i.index?i:t),!0}),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,i=!1;return this.walk(n=>n===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return fV([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof jr&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof H1&&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 $y;return this._children=this.children.map(t=>t.clone()),e}walk(e){fV(this.children,e)}}class Em{constructor(){this._scanner=new HO,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 $y;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i??!1,t??!1),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,s=[];t.walk(l=>(l instanceof jr&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):s.push(l)),!0));const r=(l,c)=>{const d=n.get(l.index);if(!d)return;const h=new jr(l.index);h.transform=l.transform;for(const u of d){const g=u.clone();h.appendChild(g),g instanceof jr&&n.has(g.index)&&!c.has(g.index)&&(c.add(g.index),r(g,c),c.delete(g.index))}t.replace(l,[h])},a=new Set;for(const l of s)r(l,a);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new jr(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}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(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)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 $s(t)),!0):!1}_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 jr(Number(t)):new H1(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 s=new jr(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new $s("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const r=new Cv;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(r),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new $s(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 s=new H1(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new $s("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new bB;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new $s(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{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)if(i){if(this._accept(4))return e.appendChild(new tl(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new tl(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new tl(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new tl(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new tl(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const r=this._until(4);if(r)return e.appendChild(new tl(Number(n),void 0,s,r)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new tl(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new $s(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}function BZ(o,e,t){var i,n;return(typeof t.insertText=="string"?t.insertText==="":t.insertText.snippet==="")?{edits:((i=t.additionalEdit)==null?void 0:i.edits)??[]}:{edits:[...e.map(s=>new Jh(o,{range:s,text:typeof t.insertText=="string"?Em.escape(t.insertText)+"$0":t.insertText.snippet,insertAsSnippet:!0})),...((n=t.additionalEdit)==null?void 0:n.edits)??[]]}}function HZ(o){function e(r,a){return"mimeType"in r?r.mimeType===a.handledMimeType:!!a.kind&&r.kind.contains(a.kind)}const t=new Map;for(const r of o)for(const a of r.yieldTo??[])for(const l of o)if(l!==r&&e(a,l)){let c=t.get(r);c||(c=[],t.set(r,c)),c.push(l)}if(!t.size)return Array.from(o);const i=new Set,n=[];function s(r){if(!r.length)return[];const a=r[0];if(n.includes(a))return console.warn("Yield to cycle detected",a),r;if(i.has(a))return s(r.slice(1));let l=[];const c=t.get(a);return c&&(n.push(a),l=s(c),n.pop()),i.add(a),[...l,a,...s(r.slice(1))]}return s(Array.from(o))}var V0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},z0e=function(o,e){return function(t,i){e(t,i,o)}};const U0e=Xe.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:u$,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}}),rI=class rI extends V{constructor(e,t,i,n,s){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=s,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=oe(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=oe("span.icon");this.domNode.append(t),t.classList.add(...Fe.asClassNameArray(ne.loading),"codicon-modifier-spin");const i=()=>{const n=this.editor.getOption(67);this.domNode.style.height=`${n}px`,this.domNode.style.width=`${Math.ceil(.8*n)}px`};i(),this._register(this.editor.onDidChangeConfiguration(n=>{(n.hasChanged(52)||n.hasChanged(67))&&i()})),this._register(j(this.domNode,se.CLICK,n=>{this.delegate.cancel()}))}getId(){return rI.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)}};rI.baseId="editor.widget.inlineProgressWidget";let VO=rI,fk=class extends V{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new Pn),this._currentWidget=this._register(new Pn),this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(e,t,i,n,s){const r=this._operationIdPool++;this._currentOperation=r,this.clear(),this._showPromise.value=Du(()=>{const a=x.fromPositions(e);this._currentDecorations.set([{range:a,options:U0e}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(VO,this.id,this._editor,a,t,n))},s??this._showDelay);try{return await i}finally{this._currentOperation===r&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};fk=V0e([z0e(2,ke)],fk);var $0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},mV=function(o,e){return function(t,i){e(t,i,o)}},$S,su;let qo=(su=class{static get(e){return e.getContribution($S.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new Pn,this._messageListeners=new q,this._mouseOverMessage=!1,this._editor=e,this._visible=$S.MESSAGE_VISIBLE.bindTo(t)}dispose(){var e;(e=this._message)==null||e.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){io(Cl(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=Cl(e)?AE(e,{actionHandler:{callback:n=>{this.closeMessage(),F3(this._openerService,n,Cl(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new pV(this._editor,t,typeof e=="string"?e:this._message.element),this._messageListeners.add(ae.debounce(this._editor.onDidBlurEditorText,(n,s)=>s,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&Tn(as(),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(j(this._messageWidget.value.getDomNode(),se.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(j(this._messageWidget.value.getDomNode(),se.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new x(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(pV.fadeOut(this._messageWidget.value))}},$S=su,su.ID="editor.contrib.messageController",su.MESSAGE_VISIBLE=new fe("messageVisible",!1,m("messageVisible","Whether the editor is currently showing an inline message")),su);qo=$S=$0e([mV(1,Be),mV(2,Do)],qo);const j0e=xn.bindToContribution(qo.get);he(new j0e({id:"leaveEditorMessage",precondition:qo.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:130,primary:9}}));let pV=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 s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");typeof n=="string"?(r.classList.add("message"),r.textContent=n):(n.classList.add("message"),r.appendChild(n)),this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),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",e===2)}};Nt(qo.ID,qo,4);function mR(o,e){return e&&(o.stack||o.stacktrace)?m("stackTrace.format","{0}: {1}",bV(o),_V(o.stack)||_V(o.stacktrace)):bV(o)}function _V(o){return Array.isArray(o)?o.join(`
705
709
  `):o}function bV(o){return o.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${o.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof o.code=="string"&&typeof o.errno=="number"&&typeof o.syscall=="string"?m("nodeExceptionMessage","A system error occurred ({0})",o.message):o.message||m("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function mk(o=null,e=!1){if(!o)return m("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(o)){const t=Na(o),i=mk(t[0],e);return t.length>1?m("error.moreErrors","{0} ({1} errors in total)",i,t.length):i}if(vo(o))return o;if(o.detail){const t=o.detail;if(t.error)return mR(t.error,e);if(t.exception)return mR(t.exception,e)}return o.stack?mR(o,e):o.message?o.message:m("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var VZ=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},q_=function(o,e){return function(t,i){e(t,i,o)}},zO,xf;let UO=(xf=class extends V{constructor(e,t,i,n,s,r,a,l,c,d){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=s,this.edits=r,this.onSelectNewEdit=a,this._contextMenuService=l,this._keybindingService=d,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(c),this.visibleContext.set(!0),this._register(xe(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(xe((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition(h=>{s.containsPosition(h.position)||this.dispose()})),this._register(ae.runAndSubscribe(d.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){var t;const e=(t=this._keybindingService.lookupKeybinding(this.showCommand.id))==null?void 0:t.getLabel();this.button.element.title=this.showCommand.label+(e?` (${e})`:"")}create(){this.domNode=oe(".post-edit-widget"),this.button=this._register(new wx(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(j(this.domNode,se.CLICK,()=>this.showSelector()))}getId(){return zO.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=en(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>sf({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}},zO=xf,xf.baseId="editor.widget.postEditWidget",xf);UO=zO=VZ([q_(7,Jo),q_(8,Be),q_(9,jt)],UO);let pk=class extends V{constructor(e,t,i,n,s,r,a){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=n,this._instantiationService=s,this._bulkEditService=r,this._notificationService=a,this._currentWidget=this._register(new Pn),this._register(ae.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(e,t,i,n,s){const r=this._editor.getModel();if(!r||!e.length)return;const a=t.allEdits.at(t.activeEditIndex);if(!a)return;const l=async _=>{const b=this._editor.getModel();b&&(await b.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:_,allEdits:t.allEdits},i,n,s))},c=(_,b)=>{aa(_)||(this._notificationService.error(b),i&&this.show(e[0],t,l))};let d;try{d=await n(a,s)}catch(_){return c(_,m("resolveError",`Error resolving edit '{0}':
@@ -1,4 +1,4 @@
1
- import{m as et}from"./TemplatesPane-B5hn_v0Z.js";import"./index-Do1drqEQ.js";/*!-----------------------------------------------------------------------------
1
+ import{m as et}from"./TemplatesPane-DPcXg8ZA.js";import"./index-DAuQQi22.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -1,4 +1,4 @@
1
- import{m as f}from"./TemplatesPane-B5hn_v0Z.js";import"./index-Do1drqEQ.js";/*!-----------------------------------------------------------------------------
1
+ import{m as f}from"./TemplatesPane-DPcXg8ZA.js";import"./index-DAuQQi22.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -1,4 +1,4 @@
1
- import{m as i}from"./TemplatesPane-B5hn_v0Z.js";import"./index-Do1drqEQ.js";/*!-----------------------------------------------------------------------------
1
+ import{m as i}from"./TemplatesPane-DPcXg8ZA.js";import"./index-DAuQQi22.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -1,4 +1,4 @@
1
- import{m as s}from"./TemplatesPane-B5hn_v0Z.js";import"./index-Do1drqEQ.js";/*!-----------------------------------------------------------------------------
1
+ import{m as s}from"./TemplatesPane-DPcXg8ZA.js";import"./index-DAuQQi22.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -1,4 +1,4 @@
1
- import{m as lt}from"./TemplatesPane-B5hn_v0Z.js";import"./index-Do1drqEQ.js";/*!-----------------------------------------------------------------------------
1
+ import{m as lt}from"./TemplatesPane-DPcXg8ZA.js";import"./index-DAuQQi22.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license