@inspectr/app 1.8.1 → 1.8.2

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 (26) hide show
  1. package/dist/_astro/{client.DGHkvVry.js → client.DyG9qce3.js} +1 -1
  2. package/dist/_astro/{cssMode-CCxwJWiv.BSVWKgbU.js → cssMode-CCxwJWiv.DYoQASZ6.js} +1 -1
  3. package/dist/_astro/{editor.main-CP-oXbVe.C8CUdZ-M.js → editor.main-CP-oXbVe.BaJawuSL.js} +17 -17
  4. package/dist/_astro/{freemarker2-BZveqxNO.quQ-86XW.js → freemarker2-BZveqxNO.Dy7ZsiSn.js} +1 -1
  5. package/dist/_astro/{handlebars-DFLvXTZ8.DB-f7b4O.js → handlebars-DFLvXTZ8.DDIKN5Gi.js} +1 -1
  6. package/dist/_astro/{html-DxXqfwFE.CofKQP5b.js → html-DxXqfwFE.BXqtZ7lN.js} +1 -1
  7. package/dist/_astro/{htmlMode-C9gIo-LK.CDuu0yaC.js → htmlMode-C9gIo-LK.CmrXlwLH.js} +1 -1
  8. package/dist/_astro/{index.CDCJvWuM.js → index.46Y7ScJG.js} +6 -6
  9. package/dist/_astro/index.DWiP4IWs.css +1 -0
  10. package/dist/_astro/{javascript-CYYD6pGr.CVqsa-KN.js → javascript-CYYD6pGr.D7jAauD3.js} +1 -1
  11. package/dist/_astro/{jsonMode-jVbIoPc6.CKGMJAeO.js → jsonMode-jVbIoPc6.BLXUoYNj.js} +1 -1
  12. package/dist/_astro/{liquid-PYsubg5u.CuAGbA8a.js → liquid-PYsubg5u.C6CW5d1t.js} +1 -1
  13. package/dist/_astro/{mdx-DRJsmowz.BENoqavv.js → mdx-DRJsmowz.Cwrug6Dd.js} +1 -1
  14. package/dist/_astro/{python-M8MItOfu.Dcvhu76r.js → python-M8MItOfu.Bc7fY0-x.js} +1 -1
  15. package/dist/_astro/{razor-CkROrZip.CiBI64vx.js → razor-CkROrZip.nLGEwVIE.js} +1 -1
  16. package/dist/_astro/{tsMode-D1me_v4f.uToNSLLD.js → tsMode-D1me_v4f.DS1Lo27t.js} +1 -1
  17. package/dist/_astro/{typescript-D8U3Pc3R.D1wK2v_Q.js → typescript-D8U3Pc3R.CaTpGQaM.js} +1 -1
  18. package/dist/_astro/ui.DLFhzLPw.js +188 -0
  19. package/dist/_astro/ui.DTVtizjN.js +1 -0
  20. package/dist/_astro/{xml-CTIvZv70.BRYgK9Je.js → xml-CTIvZv70.6rRcWBeI.js} +1 -1
  21. package/dist/_astro/{yaml-BgbINe9U.DINCyKBx.js → yaml-BgbINe9U.CzB3LZHn.js} +1 -1
  22. package/dist/index.html +1 -1
  23. package/package.json +2 -2
  24. package/dist/_astro/index.BPsz5qBW.css +0 -1
  25. package/dist/_astro/ui.CQA2kPCH.js +0 -1
  26. package/dist/_astro/ui.CY3SSbTp.js +0 -188
@@ -1 +1 @@
1
- import{r as b,a as o}from"./index.CDCJvWuM.js";var s={},m;function g(){if(m)return s;m=1;var t=b();return s.createRoot=t.createRoot,s.hydrateRoot=t.hydrateRoot,s}var p=g();const v=({value:t,name:e,hydrate:r=!0})=>{if(!t)return null;const n=r?"astro-slot":"astro-static-slot";return o.createElement(n,{name:e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}})};v.shouldComponentUpdate=()=>!1;var N=v;function C(t){for(const e in t)if(e.startsWith("__reactContainer"))return e}function R(t){let e={};for(const r of t.attributes)e[r.name]=r.value;return t.firstChild===null?o.createElement(t.localName,e):o.createElement(t.localName,e,Array.from(t.childNodes).map(r=>r.nodeType===Node.TEXT_NODE?r.data:r.nodeType===Node.ELEMENT_NODE?R(r):void 0).filter(r=>!!r))}function O(t,e){if(e&&t){let r=[],n=document.createElement("template");n.innerHTML=t;for(let u of n.content.children)r.push(R(u));return r}else return t?o.createElement(N,{value:t}):void 0}let y=new WeakMap;const h=(t,e)=>{let r=y.get(t);return r||(r=e(),y.set(t,r)),r};var x=t=>(e,r,{default:n,...u},{client:A})=>{if(!t.hasAttribute("ssr"))return;const d=t.getAttribute("data-action-key"),l=t.getAttribute("data-action-name"),f=t.getAttribute("data-action-result"),T=d&&l&&f?[JSON.parse(f),d,l]:void 0,_={identifierPrefix:t.getAttribute("prefix"),formState:T};for(const[i,a]of Object.entries(u))r[i]=o.createElement(N,{value:a,name:i});const c=o.createElement(e,r,O(n,t.hasAttribute("data-react-children"))),E=C(t);if(E&&delete t[E],A==="only")return o.startTransition(()=>{h(t,()=>{const a=p.createRoot(t);return t.addEventListener("astro:unmount",()=>a.unmount(),{once:!0}),a}).render(c)});o.startTransition(()=>{h(t,()=>{const a=p.hydrateRoot(t,c,_);return t.addEventListener("astro:unmount",()=>a.unmount(),{once:!0}),a}).render(c)})};export{x as default};
1
+ import{r as b,a as o}from"./index.46Y7ScJG.js";var s={},m;function g(){if(m)return s;m=1;var t=b();return s.createRoot=t.createRoot,s.hydrateRoot=t.hydrateRoot,s}var p=g();const v=({value:t,name:e,hydrate:r=!0})=>{if(!t)return null;const n=r?"astro-slot":"astro-static-slot";return o.createElement(n,{name:e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}})};v.shouldComponentUpdate=()=>!1;var N=v;function C(t){for(const e in t)if(e.startsWith("__reactContainer"))return e}function R(t){let e={};for(const r of t.attributes)e[r.name]=r.value;return t.firstChild===null?o.createElement(t.localName,e):o.createElement(t.localName,e,Array.from(t.childNodes).map(r=>r.nodeType===Node.TEXT_NODE?r.data:r.nodeType===Node.ELEMENT_NODE?R(r):void 0).filter(r=>!!r))}function O(t,e){if(e&&t){let r=[],n=document.createElement("template");n.innerHTML=t;for(let u of n.content.children)r.push(R(u));return r}else return t?o.createElement(N,{value:t}):void 0}let y=new WeakMap;const h=(t,e)=>{let r=y.get(t);return r||(r=e(),y.set(t,r)),r};var x=t=>(e,r,{default:n,...u},{client:A})=>{if(!t.hasAttribute("ssr"))return;const d=t.getAttribute("data-action-key"),l=t.getAttribute("data-action-name"),f=t.getAttribute("data-action-result"),T=d&&l&&f?[JSON.parse(f),d,l]:void 0,_={identifierPrefix:t.getAttribute("prefix"),formState:T};for(const[i,a]of Object.entries(u))r[i]=o.createElement(N,{value:a,name:i});const c=o.createElement(e,r,O(n,t.hasAttribute("data-react-children"))),E=C(t);if(E&&delete t[E],A==="only")return o.startTransition(()=>{h(t,()=>{const a=p.createRoot(t);return t.addEventListener("astro:unmount",()=>a.unmount(),{once:!0}),a}).render(c)});o.startTransition(()=>{h(t,()=>{const a=p.hydrateRoot(t,c,_);return t.addEventListener("astro:unmount",()=>a.unmount(),{once:!0}),a}).render(c)})};export{x as default};
@@ -1,4 +1,4 @@
1
- import{m as te}from"./editor.main-CP-oXbVe.C8CUdZ-M.js";import"./ui.CY3SSbTp.js";import"./index.CDCJvWuM.js";var ee=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,re=Object.getOwnPropertyNames,ie=Object.prototype.hasOwnProperty,oe=(t,r,i,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of re(r))!ie.call(t,e)&&e!==i&&ee(t,e,{get:()=>r[e],enumerable:!(n=ne(r,e))||n.enumerable});return t},ae=(t,r,i)=>(oe(t,r,"default"),i),d={};ae(d,te);var se=120*1e3,ue=class{constructor(t){this._defaults=t,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>se&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=d.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...t){let r;return this._getClient().then(i=>{r=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(t)}).then(i=>r)}},G;(function(t){function r(i){return typeof i=="string"}t.is=r})(G||(G={}));var j;(function(t){function r(i){return typeof i=="string"}t.is=r})(j||(j={}));var J;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function r(i){return typeof i=="number"&&t.MIN_VALUE<=i&&i<=t.MAX_VALUE}t.is=r})(J||(J={}));var L;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function r(i){return typeof i=="number"&&t.MIN_VALUE<=i&&i<=t.MAX_VALUE}t.is=r})(L||(L={}));var k;(function(t){function r(n,e){return n===Number.MAX_VALUE&&(n=L.MAX_VALUE),e===Number.MAX_VALUE&&(e=L.MAX_VALUE),{line:n,character:e}}t.create=r;function i(n){let e=n;return a.objectLiteral(e)&&a.uinteger(e.line)&&a.uinteger(e.character)}t.is=i})(k||(k={}));var h;(function(t){function r(n,e,o,s){if(a.uinteger(n)&&a.uinteger(e)&&a.uinteger(o)&&a.uinteger(s))return{start:k.create(n,e),end:k.create(o,s)};if(k.is(n)&&k.is(e))return{start:n,end:e};throw new Error(`Range#create called with invalid arguments[${n}, ${e}, ${o}, ${s}]`)}t.create=r;function i(n){let e=n;return a.objectLiteral(e)&&k.is(e.start)&&k.is(e.end)}t.is=i})(h||(h={}));var T;(function(t){function r(n,e){return{uri:n,range:e}}t.create=r;function i(n){let e=n;return a.objectLiteral(e)&&h.is(e.range)&&(a.string(e.uri)||a.undefined(e.uri))}t.is=i})(T||(T={}));var Y;(function(t){function r(n,e,o,s){return{targetUri:n,targetRange:e,targetSelectionRange:o,originSelectionRange:s}}t.create=r;function i(n){let e=n;return a.objectLiteral(e)&&h.is(e.targetRange)&&a.string(e.targetUri)&&h.is(e.targetSelectionRange)&&(h.is(e.originSelectionRange)||a.undefined(e.originSelectionRange))}t.is=i})(Y||(Y={}));var N;(function(t){function r(n,e,o,s){return{red:n,green:e,blue:o,alpha:s}}t.create=r;function i(n){const e=n;return a.objectLiteral(e)&&a.numberRange(e.red,0,1)&&a.numberRange(e.green,0,1)&&a.numberRange(e.blue,0,1)&&a.numberRange(e.alpha,0,1)}t.is=i})(N||(N={}));var Z;(function(t){function r(n,e){return{range:n,color:e}}t.create=r;function i(n){const e=n;return a.objectLiteral(e)&&h.is(e.range)&&N.is(e.color)}t.is=i})(Z||(Z={}));var tt;(function(t){function r(n,e,o){return{label:n,textEdit:e,additionalTextEdits:o}}t.create=r;function i(n){const e=n;return a.objectLiteral(e)&&a.string(e.label)&&(a.undefined(e.textEdit)||I.is(e))&&(a.undefined(e.additionalTextEdits)||a.typedArray(e.additionalTextEdits,I.is))}t.is=i})(tt||(tt={}));var A;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(A||(A={}));var et;(function(t){function r(n,e,o,s,u,g){const c={startLine:n,endLine:e};return a.defined(o)&&(c.startCharacter=o),a.defined(s)&&(c.endCharacter=s),a.defined(u)&&(c.kind=u),a.defined(g)&&(c.collapsedText=g),c}t.create=r;function i(n){const e=n;return a.objectLiteral(e)&&a.uinteger(e.startLine)&&a.uinteger(e.startLine)&&(a.undefined(e.startCharacter)||a.uinteger(e.startCharacter))&&(a.undefined(e.endCharacter)||a.uinteger(e.endCharacter))&&(a.undefined(e.kind)||a.string(e.kind))}t.is=i})(et||(et={}));var U;(function(t){function r(n,e){return{location:n,message:e}}t.create=r;function i(n){let e=n;return a.defined(e)&&T.is(e.location)&&a.string(e.message)}t.is=i})(U||(U={}));var w;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(w||(w={}));var nt;(function(t){t.Unnecessary=1,t.Deprecated=2})(nt||(nt={}));var rt;(function(t){function r(i){const n=i;return a.objectLiteral(n)&&a.string(n.href)}t.is=r})(rt||(rt={}));var M;(function(t){function r(n,e,o,s,u,g){let c={range:n,message:e};return a.defined(o)&&(c.severity=o),a.defined(s)&&(c.code=s),a.defined(u)&&(c.source=u),a.defined(g)&&(c.relatedInformation=g),c}t.create=r;function i(n){var e;let o=n;return a.defined(o)&&h.is(o.range)&&a.string(o.message)&&(a.number(o.severity)||a.undefined(o.severity))&&(a.integer(o.code)||a.string(o.code)||a.undefined(o.code))&&(a.undefined(o.codeDescription)||a.string((e=o.codeDescription)===null||e===void 0?void 0:e.href))&&(a.string(o.source)||a.undefined(o.source))&&(a.undefined(o.relatedInformation)||a.typedArray(o.relatedInformation,U.is))}t.is=i})(M||(M={}));var x;(function(t){function r(n,e,...o){let s={title:n,command:e};return a.defined(o)&&o.length>0&&(s.arguments=o),s}t.create=r;function i(n){let e=n;return a.defined(e)&&a.string(e.title)&&a.string(e.command)}t.is=i})(x||(x={}));var I;(function(t){function r(o,s){return{range:o,newText:s}}t.replace=r;function i(o,s){return{range:{start:o,end:o},newText:s}}t.insert=i;function n(o){return{range:o,newText:""}}t.del=n;function e(o){const s=o;return a.objectLiteral(s)&&a.string(s.newText)&&h.is(s.range)}t.is=e})(I||(I={}));var V;(function(t){function r(n,e,o){const s={label:n};return e!==void 0&&(s.needsConfirmation=e),o!==void 0&&(s.description=o),s}t.create=r;function i(n){const e=n;return a.objectLiteral(e)&&a.string(e.label)&&(a.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(a.string(e.description)||e.description===void 0)}t.is=i})(V||(V={}));var E;(function(t){function r(i){const n=i;return a.string(n)}t.is=r})(E||(E={}));var it;(function(t){function r(o,s,u){return{range:o,newText:s,annotationId:u}}t.replace=r;function i(o,s,u){return{range:{start:o,end:o},newText:s,annotationId:u}}t.insert=i;function n(o,s){return{range:o,newText:"",annotationId:s}}t.del=n;function e(o){const s=o;return I.is(s)&&(V.is(s.annotationId)||E.is(s.annotationId))}t.is=e})(it||(it={}));var O;(function(t){function r(n,e){return{textDocument:n,edits:e}}t.create=r;function i(n){let e=n;return a.defined(e)&&z.is(e.textDocument)&&Array.isArray(e.edits)}t.is=i})(O||(O={}));var W;(function(t){function r(n,e,o){let s={kind:"create",uri:n};return e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0)&&(s.options=e),o!==void 0&&(s.annotationId=o),s}t.create=r;function i(n){let e=n;return e&&e.kind==="create"&&a.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||a.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||a.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||E.is(e.annotationId))}t.is=i})(W||(W={}));var K;(function(t){function r(n,e,o,s){let u={kind:"rename",oldUri:n,newUri:e};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(u.options=o),s!==void 0&&(u.annotationId=s),u}t.create=r;function i(n){let e=n;return e&&e.kind==="rename"&&a.string(e.oldUri)&&a.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||a.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||a.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||E.is(e.annotationId))}t.is=i})(K||(K={}));var H;(function(t){function r(n,e,o){let s={kind:"delete",uri:n};return e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0)&&(s.options=e),o!==void 0&&(s.annotationId=o),s}t.create=r;function i(n){let e=n;return e&&e.kind==="delete"&&a.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||a.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||a.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||E.is(e.annotationId))}t.is=i})(H||(H={}));var X;(function(t){function r(i){let n=i;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(e=>a.string(e.kind)?W.is(e)||K.is(e)||H.is(e):O.is(e)))}t.is=r})(X||(X={}));var ot;(function(t){function r(n){return{uri:n}}t.create=r;function i(n){let e=n;return a.defined(e)&&a.string(e.uri)}t.is=i})(ot||(ot={}));var at;(function(t){function r(n,e){return{uri:n,version:e}}t.create=r;function i(n){let e=n;return a.defined(e)&&a.string(e.uri)&&a.integer(e.version)}t.is=i})(at||(at={}));var z;(function(t){function r(n,e){return{uri:n,version:e}}t.create=r;function i(n){let e=n;return a.defined(e)&&a.string(e.uri)&&(e.version===null||a.integer(e.version))}t.is=i})(z||(z={}));var st;(function(t){function r(n,e,o,s){return{uri:n,languageId:e,version:o,text:s}}t.create=r;function i(n){let e=n;return a.defined(e)&&a.string(e.uri)&&a.string(e.languageId)&&a.integer(e.version)&&a.string(e.text)}t.is=i})(st||(st={}));var $;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function r(i){const n=i;return n===t.PlainText||n===t.Markdown}t.is=r})($||($={}));var S;(function(t){function r(i){const n=i;return a.objectLiteral(i)&&$.is(n.kind)&&a.string(n.value)}t.is=r})(S||(S={}));var p;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(p||(p={}));var B;(function(t){t.PlainText=1,t.Snippet=2})(B||(B={}));var ut;(function(t){t.Deprecated=1})(ut||(ut={}));var ct;(function(t){function r(n,e,o){return{newText:n,insert:e,replace:o}}t.create=r;function i(n){const e=n;return e&&a.string(e.newText)&&h.is(e.insert)&&h.is(e.replace)}t.is=i})(ct||(ct={}));var dt;(function(t){t.asIs=1,t.adjustIndentation=2})(dt||(dt={}));var lt;(function(t){function r(i){const n=i;return n&&(a.string(n.detail)||n.detail===void 0)&&(a.string(n.description)||n.description===void 0)}t.is=r})(lt||(lt={}));var gt;(function(t){function r(i){return{label:i}}t.create=r})(gt||(gt={}));var ft;(function(t){function r(i,n){return{items:i||[],isIncomplete:!!n}}t.create=r})(ft||(ft={}));var D;(function(t){function r(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(n){const e=n;return a.string(e)||a.objectLiteral(e)&&a.string(e.language)&&a.string(e.value)}t.is=i})(D||(D={}));var ht;(function(t){function r(i){let n=i;return!!n&&a.objectLiteral(n)&&(S.is(n.contents)||D.is(n.contents)||a.typedArray(n.contents,D.is))&&(i.range===void 0||h.is(i.range))}t.is=r})(ht||(ht={}));var pt;(function(t){function r(i,n){return n?{label:i,documentation:n}:{label:i}}t.create=r})(pt||(pt={}));var mt;(function(t){function r(i,n,...e){let o={label:i};return a.defined(n)&&(o.documentation=n),a.defined(e)?o.parameters=e:o.parameters=[],o}t.create=r})(mt||(mt={}));var C;(function(t){t.Text=1,t.Read=2,t.Write=3})(C||(C={}));var vt;(function(t){function r(i,n){let e={range:i};return a.number(n)&&(e.kind=n),e}t.create=r})(vt||(vt={}));var m;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(m||(m={}));var bt;(function(t){t.Deprecated=1})(bt||(bt={}));var _t;(function(t){function r(i,n,e,o,s){let u={name:i,kind:n,location:{uri:o,range:e}};return s&&(u.containerName=s),u}t.create=r})(_t||(_t={}));var kt;(function(t){function r(i,n,e,o){return o!==void 0?{name:i,kind:n,location:{uri:e,range:o}}:{name:i,kind:n,location:{uri:e}}}t.create=r})(kt||(kt={}));var yt;(function(t){function r(n,e,o,s,u,g){let c={name:n,detail:e,kind:o,range:s,selectionRange:u};return g!==void 0&&(c.children=g),c}t.create=r;function i(n){let e=n;return e&&a.string(e.name)&&a.number(e.kind)&&h.is(e.range)&&h.is(e.selectionRange)&&(e.detail===void 0||a.string(e.detail))&&(e.deprecated===void 0||a.boolean(e.deprecated))&&(e.children===void 0||Array.isArray(e.children))&&(e.tags===void 0||Array.isArray(e.tags))}t.is=i})(yt||(yt={}));var wt;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(wt||(wt={}));var P;(function(t){t.Invoked=1,t.Automatic=2})(P||(P={}));var xt;(function(t){function r(n,e,o){let s={diagnostics:n};return e!=null&&(s.only=e),o!=null&&(s.triggerKind=o),s}t.create=r;function i(n){let e=n;return a.defined(e)&&a.typedArray(e.diagnostics,M.is)&&(e.only===void 0||a.typedArray(e.only,a.string))&&(e.triggerKind===void 0||e.triggerKind===P.Invoked||e.triggerKind===P.Automatic)}t.is=i})(xt||(xt={}));var It;(function(t){function r(n,e,o){let s={title:n},u=!0;return typeof e=="string"?(u=!1,s.kind=e):x.is(e)?s.command=e:s.edit=e,u&&o!==void 0&&(s.kind=o),s}t.create=r;function i(n){let e=n;return e&&a.string(e.title)&&(e.diagnostics===void 0||a.typedArray(e.diagnostics,M.is))&&(e.kind===void 0||a.string(e.kind))&&(e.edit!==void 0||e.command!==void 0)&&(e.command===void 0||x.is(e.command))&&(e.isPreferred===void 0||a.boolean(e.isPreferred))&&(e.edit===void 0||X.is(e.edit))}t.is=i})(It||(It={}));var Et;(function(t){function r(n,e){let o={range:n};return a.defined(e)&&(o.data=e),o}t.create=r;function i(n){let e=n;return a.defined(e)&&h.is(e.range)&&(a.undefined(e.command)||x.is(e.command))}t.is=i})(Et||(Et={}));var At;(function(t){function r(n,e){return{tabSize:n,insertSpaces:e}}t.create=r;function i(n){let e=n;return a.defined(e)&&a.uinteger(e.tabSize)&&a.boolean(e.insertSpaces)}t.is=i})(At||(At={}));var Ct;(function(t){function r(n,e,o){return{range:n,target:e,data:o}}t.create=r;function i(n){let e=n;return a.defined(e)&&h.is(e.range)&&(a.undefined(e.target)||a.string(e.target))}t.is=i})(Ct||(Ct={}));var St;(function(t){function r(n,e){return{range:n,parent:e}}t.create=r;function i(n){let e=n;return a.objectLiteral(e)&&h.is(e.range)&&(e.parent===void 0||t.is(e.parent))}t.is=i})(St||(St={}));var Rt;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(Rt||(Rt={}));var Lt;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Lt||(Lt={}));var Tt;(function(t){function r(i){const n=i;return a.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}t.is=r})(Tt||(Tt={}));var Mt;(function(t){function r(n,e){return{range:n,text:e}}t.create=r;function i(n){const e=n;return e!=null&&h.is(e.range)&&a.string(e.text)}t.is=i})(Mt||(Mt={}));var Dt;(function(t){function r(n,e,o){return{range:n,variableName:e,caseSensitiveLookup:o}}t.create=r;function i(n){const e=n;return e!=null&&h.is(e.range)&&a.boolean(e.caseSensitiveLookup)&&(a.string(e.variableName)||e.variableName===void 0)}t.is=i})(Dt||(Dt={}));var Pt;(function(t){function r(n,e){return{range:n,expression:e}}t.create=r;function i(n){const e=n;return e!=null&&h.is(e.range)&&(a.string(e.expression)||e.expression===void 0)}t.is=i})(Pt||(Pt={}));var Ft;(function(t){function r(n,e){return{frameId:n,stoppedLocation:e}}t.create=r;function i(n){const e=n;return a.defined(e)&&h.is(n.stoppedLocation)}t.is=i})(Ft||(Ft={}));var q;(function(t){t.Type=1,t.Parameter=2;function r(i){return i===1||i===2}t.is=r})(q||(q={}));var Q;(function(t){function r(n){return{value:n}}t.create=r;function i(n){const e=n;return a.objectLiteral(e)&&(e.tooltip===void 0||a.string(e.tooltip)||S.is(e.tooltip))&&(e.location===void 0||T.is(e.location))&&(e.command===void 0||x.is(e.command))}t.is=i})(Q||(Q={}));var jt;(function(t){function r(n,e,o){const s={position:n,label:e};return o!==void 0&&(s.kind=o),s}t.create=r;function i(n){const e=n;return a.objectLiteral(e)&&k.is(e.position)&&(a.string(e.label)||a.typedArray(e.label,Q.is))&&(e.kind===void 0||q.is(e.kind))&&e.textEdits===void 0||a.typedArray(e.textEdits,I.is)&&(e.tooltip===void 0||a.string(e.tooltip)||S.is(e.tooltip))&&(e.paddingLeft===void 0||a.boolean(e.paddingLeft))&&(e.paddingRight===void 0||a.boolean(e.paddingRight))}t.is=i})(jt||(jt={}));var Nt;(function(t){function r(i){return{kind:"snippet",value:i}}t.createSnippet=r})(Nt||(Nt={}));var Ut;(function(t){function r(i,n,e,o){return{insertText:i,filterText:n,range:e,command:o}}t.create=r})(Ut||(Ut={}));var Vt;(function(t){function r(i){return{items:i}}t.create=r})(Vt||(Vt={}));var Ot;(function(t){t.Invoked=0,t.Automatic=1})(Ot||(Ot={}));var Wt;(function(t){function r(i,n){return{range:i,text:n}}t.create=r})(Wt||(Wt={}));var Kt;(function(t){function r(i,n){return{triggerKind:i,selectedCompletionInfo:n}}t.create=r})(Kt||(Kt={}));var Ht;(function(t){function r(i){const n=i;return a.objectLiteral(n)&&j.is(n.uri)&&a.string(n.name)}t.is=r})(Ht||(Ht={}));var Xt;(function(t){function r(o,s,u,g){return new ce(o,s,u,g)}t.create=r;function i(o){let s=o;return!!(a.defined(s)&&a.string(s.uri)&&(a.undefined(s.languageId)||a.string(s.languageId))&&a.uinteger(s.lineCount)&&a.func(s.getText)&&a.func(s.positionAt)&&a.func(s.offsetAt))}t.is=i;function n(o,s){let u=o.getText(),g=e(s,(f,b)=>{let _=f.range.start.line-b.range.start.line;return _===0?f.range.start.character-b.range.start.character:_}),c=u.length;for(let f=g.length-1;f>=0;f--){let b=g[f],_=o.offsetAt(b.range.start),l=o.offsetAt(b.range.end);if(l<=c)u=u.substring(0,_)+b.newText+u.substring(l,u.length);else throw new Error("Overlapping edit");c=_}return u}t.applyEdits=n;function e(o,s){if(o.length<=1)return o;const u=o.length/2|0,g=o.slice(0,u),c=o.slice(u);e(g,s),e(c,s);let f=0,b=0,_=0;for(;f<g.length&&b<c.length;)s(g[f],c[b])<=0?o[_++]=g[f++]:o[_++]=c[b++];for(;f<g.length;)o[_++]=g[f++];for(;b<c.length;)o[_++]=c[b++];return o}})(Xt||(Xt={}));var ce=class{constructor(t,r,i,n){this._uri=t,this._languageId=r,this._version=i,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),i=this.offsetAt(t.end);return this._content.substring(r,i)}return this._content}update(t,r){this._content=t.text,this._version=r,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],r=this._content,i=!0;for(let n=0;n<r.length;n++){i&&(t.push(n),i=!1);let e=r.charAt(n);i=e==="\r"||e===`
1
+ import{m as te}from"./editor.main-CP-oXbVe.BaJawuSL.js";import"./ui.DLFhzLPw.js";import"./index.46Y7ScJG.js";var ee=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,re=Object.getOwnPropertyNames,ie=Object.prototype.hasOwnProperty,oe=(t,r,i,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of re(r))!ie.call(t,e)&&e!==i&&ee(t,e,{get:()=>r[e],enumerable:!(n=ne(r,e))||n.enumerable});return t},ae=(t,r,i)=>(oe(t,r,"default"),i),d={};ae(d,te);var se=120*1e3,ue=class{constructor(t){this._defaults=t,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>se&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=d.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...t){let r;return this._getClient().then(i=>{r=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(t)}).then(i=>r)}},G;(function(t){function r(i){return typeof i=="string"}t.is=r})(G||(G={}));var j;(function(t){function r(i){return typeof i=="string"}t.is=r})(j||(j={}));var J;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function r(i){return typeof i=="number"&&t.MIN_VALUE<=i&&i<=t.MAX_VALUE}t.is=r})(J||(J={}));var L;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function r(i){return typeof i=="number"&&t.MIN_VALUE<=i&&i<=t.MAX_VALUE}t.is=r})(L||(L={}));var k;(function(t){function r(n,e){return n===Number.MAX_VALUE&&(n=L.MAX_VALUE),e===Number.MAX_VALUE&&(e=L.MAX_VALUE),{line:n,character:e}}t.create=r;function i(n){let e=n;return a.objectLiteral(e)&&a.uinteger(e.line)&&a.uinteger(e.character)}t.is=i})(k||(k={}));var h;(function(t){function r(n,e,o,s){if(a.uinteger(n)&&a.uinteger(e)&&a.uinteger(o)&&a.uinteger(s))return{start:k.create(n,e),end:k.create(o,s)};if(k.is(n)&&k.is(e))return{start:n,end:e};throw new Error(`Range#create called with invalid arguments[${n}, ${e}, ${o}, ${s}]`)}t.create=r;function i(n){let e=n;return a.objectLiteral(e)&&k.is(e.start)&&k.is(e.end)}t.is=i})(h||(h={}));var T;(function(t){function r(n,e){return{uri:n,range:e}}t.create=r;function i(n){let e=n;return a.objectLiteral(e)&&h.is(e.range)&&(a.string(e.uri)||a.undefined(e.uri))}t.is=i})(T||(T={}));var Y;(function(t){function r(n,e,o,s){return{targetUri:n,targetRange:e,targetSelectionRange:o,originSelectionRange:s}}t.create=r;function i(n){let e=n;return a.objectLiteral(e)&&h.is(e.targetRange)&&a.string(e.targetUri)&&h.is(e.targetSelectionRange)&&(h.is(e.originSelectionRange)||a.undefined(e.originSelectionRange))}t.is=i})(Y||(Y={}));var N;(function(t){function r(n,e,o,s){return{red:n,green:e,blue:o,alpha:s}}t.create=r;function i(n){const e=n;return a.objectLiteral(e)&&a.numberRange(e.red,0,1)&&a.numberRange(e.green,0,1)&&a.numberRange(e.blue,0,1)&&a.numberRange(e.alpha,0,1)}t.is=i})(N||(N={}));var Z;(function(t){function r(n,e){return{range:n,color:e}}t.create=r;function i(n){const e=n;return a.objectLiteral(e)&&h.is(e.range)&&N.is(e.color)}t.is=i})(Z||(Z={}));var tt;(function(t){function r(n,e,o){return{label:n,textEdit:e,additionalTextEdits:o}}t.create=r;function i(n){const e=n;return a.objectLiteral(e)&&a.string(e.label)&&(a.undefined(e.textEdit)||I.is(e))&&(a.undefined(e.additionalTextEdits)||a.typedArray(e.additionalTextEdits,I.is))}t.is=i})(tt||(tt={}));var A;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(A||(A={}));var et;(function(t){function r(n,e,o,s,u,g){const c={startLine:n,endLine:e};return a.defined(o)&&(c.startCharacter=o),a.defined(s)&&(c.endCharacter=s),a.defined(u)&&(c.kind=u),a.defined(g)&&(c.collapsedText=g),c}t.create=r;function i(n){const e=n;return a.objectLiteral(e)&&a.uinteger(e.startLine)&&a.uinteger(e.startLine)&&(a.undefined(e.startCharacter)||a.uinteger(e.startCharacter))&&(a.undefined(e.endCharacter)||a.uinteger(e.endCharacter))&&(a.undefined(e.kind)||a.string(e.kind))}t.is=i})(et||(et={}));var U;(function(t){function r(n,e){return{location:n,message:e}}t.create=r;function i(n){let e=n;return a.defined(e)&&T.is(e.location)&&a.string(e.message)}t.is=i})(U||(U={}));var w;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(w||(w={}));var nt;(function(t){t.Unnecessary=1,t.Deprecated=2})(nt||(nt={}));var rt;(function(t){function r(i){const n=i;return a.objectLiteral(n)&&a.string(n.href)}t.is=r})(rt||(rt={}));var M;(function(t){function r(n,e,o,s,u,g){let c={range:n,message:e};return a.defined(o)&&(c.severity=o),a.defined(s)&&(c.code=s),a.defined(u)&&(c.source=u),a.defined(g)&&(c.relatedInformation=g),c}t.create=r;function i(n){var e;let o=n;return a.defined(o)&&h.is(o.range)&&a.string(o.message)&&(a.number(o.severity)||a.undefined(o.severity))&&(a.integer(o.code)||a.string(o.code)||a.undefined(o.code))&&(a.undefined(o.codeDescription)||a.string((e=o.codeDescription)===null||e===void 0?void 0:e.href))&&(a.string(o.source)||a.undefined(o.source))&&(a.undefined(o.relatedInformation)||a.typedArray(o.relatedInformation,U.is))}t.is=i})(M||(M={}));var x;(function(t){function r(n,e,...o){let s={title:n,command:e};return a.defined(o)&&o.length>0&&(s.arguments=o),s}t.create=r;function i(n){let e=n;return a.defined(e)&&a.string(e.title)&&a.string(e.command)}t.is=i})(x||(x={}));var I;(function(t){function r(o,s){return{range:o,newText:s}}t.replace=r;function i(o,s){return{range:{start:o,end:o},newText:s}}t.insert=i;function n(o){return{range:o,newText:""}}t.del=n;function e(o){const s=o;return a.objectLiteral(s)&&a.string(s.newText)&&h.is(s.range)}t.is=e})(I||(I={}));var V;(function(t){function r(n,e,o){const s={label:n};return e!==void 0&&(s.needsConfirmation=e),o!==void 0&&(s.description=o),s}t.create=r;function i(n){const e=n;return a.objectLiteral(e)&&a.string(e.label)&&(a.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(a.string(e.description)||e.description===void 0)}t.is=i})(V||(V={}));var E;(function(t){function r(i){const n=i;return a.string(n)}t.is=r})(E||(E={}));var it;(function(t){function r(o,s,u){return{range:o,newText:s,annotationId:u}}t.replace=r;function i(o,s,u){return{range:{start:o,end:o},newText:s,annotationId:u}}t.insert=i;function n(o,s){return{range:o,newText:"",annotationId:s}}t.del=n;function e(o){const s=o;return I.is(s)&&(V.is(s.annotationId)||E.is(s.annotationId))}t.is=e})(it||(it={}));var O;(function(t){function r(n,e){return{textDocument:n,edits:e}}t.create=r;function i(n){let e=n;return a.defined(e)&&z.is(e.textDocument)&&Array.isArray(e.edits)}t.is=i})(O||(O={}));var W;(function(t){function r(n,e,o){let s={kind:"create",uri:n};return e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0)&&(s.options=e),o!==void 0&&(s.annotationId=o),s}t.create=r;function i(n){let e=n;return e&&e.kind==="create"&&a.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||a.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||a.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||E.is(e.annotationId))}t.is=i})(W||(W={}));var K;(function(t){function r(n,e,o,s){let u={kind:"rename",oldUri:n,newUri:e};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(u.options=o),s!==void 0&&(u.annotationId=s),u}t.create=r;function i(n){let e=n;return e&&e.kind==="rename"&&a.string(e.oldUri)&&a.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||a.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||a.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||E.is(e.annotationId))}t.is=i})(K||(K={}));var H;(function(t){function r(n,e,o){let s={kind:"delete",uri:n};return e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0)&&(s.options=e),o!==void 0&&(s.annotationId=o),s}t.create=r;function i(n){let e=n;return e&&e.kind==="delete"&&a.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||a.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||a.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||E.is(e.annotationId))}t.is=i})(H||(H={}));var X;(function(t){function r(i){let n=i;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(e=>a.string(e.kind)?W.is(e)||K.is(e)||H.is(e):O.is(e)))}t.is=r})(X||(X={}));var ot;(function(t){function r(n){return{uri:n}}t.create=r;function i(n){let e=n;return a.defined(e)&&a.string(e.uri)}t.is=i})(ot||(ot={}));var at;(function(t){function r(n,e){return{uri:n,version:e}}t.create=r;function i(n){let e=n;return a.defined(e)&&a.string(e.uri)&&a.integer(e.version)}t.is=i})(at||(at={}));var z;(function(t){function r(n,e){return{uri:n,version:e}}t.create=r;function i(n){let e=n;return a.defined(e)&&a.string(e.uri)&&(e.version===null||a.integer(e.version))}t.is=i})(z||(z={}));var st;(function(t){function r(n,e,o,s){return{uri:n,languageId:e,version:o,text:s}}t.create=r;function i(n){let e=n;return a.defined(e)&&a.string(e.uri)&&a.string(e.languageId)&&a.integer(e.version)&&a.string(e.text)}t.is=i})(st||(st={}));var $;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function r(i){const n=i;return n===t.PlainText||n===t.Markdown}t.is=r})($||($={}));var S;(function(t){function r(i){const n=i;return a.objectLiteral(i)&&$.is(n.kind)&&a.string(n.value)}t.is=r})(S||(S={}));var p;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(p||(p={}));var B;(function(t){t.PlainText=1,t.Snippet=2})(B||(B={}));var ut;(function(t){t.Deprecated=1})(ut||(ut={}));var ct;(function(t){function r(n,e,o){return{newText:n,insert:e,replace:o}}t.create=r;function i(n){const e=n;return e&&a.string(e.newText)&&h.is(e.insert)&&h.is(e.replace)}t.is=i})(ct||(ct={}));var dt;(function(t){t.asIs=1,t.adjustIndentation=2})(dt||(dt={}));var lt;(function(t){function r(i){const n=i;return n&&(a.string(n.detail)||n.detail===void 0)&&(a.string(n.description)||n.description===void 0)}t.is=r})(lt||(lt={}));var gt;(function(t){function r(i){return{label:i}}t.create=r})(gt||(gt={}));var ft;(function(t){function r(i,n){return{items:i||[],isIncomplete:!!n}}t.create=r})(ft||(ft={}));var D;(function(t){function r(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(n){const e=n;return a.string(e)||a.objectLiteral(e)&&a.string(e.language)&&a.string(e.value)}t.is=i})(D||(D={}));var ht;(function(t){function r(i){let n=i;return!!n&&a.objectLiteral(n)&&(S.is(n.contents)||D.is(n.contents)||a.typedArray(n.contents,D.is))&&(i.range===void 0||h.is(i.range))}t.is=r})(ht||(ht={}));var pt;(function(t){function r(i,n){return n?{label:i,documentation:n}:{label:i}}t.create=r})(pt||(pt={}));var mt;(function(t){function r(i,n,...e){let o={label:i};return a.defined(n)&&(o.documentation=n),a.defined(e)?o.parameters=e:o.parameters=[],o}t.create=r})(mt||(mt={}));var C;(function(t){t.Text=1,t.Read=2,t.Write=3})(C||(C={}));var vt;(function(t){function r(i,n){let e={range:i};return a.number(n)&&(e.kind=n),e}t.create=r})(vt||(vt={}));var m;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(m||(m={}));var bt;(function(t){t.Deprecated=1})(bt||(bt={}));var _t;(function(t){function r(i,n,e,o,s){let u={name:i,kind:n,location:{uri:o,range:e}};return s&&(u.containerName=s),u}t.create=r})(_t||(_t={}));var kt;(function(t){function r(i,n,e,o){return o!==void 0?{name:i,kind:n,location:{uri:e,range:o}}:{name:i,kind:n,location:{uri:e}}}t.create=r})(kt||(kt={}));var yt;(function(t){function r(n,e,o,s,u,g){let c={name:n,detail:e,kind:o,range:s,selectionRange:u};return g!==void 0&&(c.children=g),c}t.create=r;function i(n){let e=n;return e&&a.string(e.name)&&a.number(e.kind)&&h.is(e.range)&&h.is(e.selectionRange)&&(e.detail===void 0||a.string(e.detail))&&(e.deprecated===void 0||a.boolean(e.deprecated))&&(e.children===void 0||Array.isArray(e.children))&&(e.tags===void 0||Array.isArray(e.tags))}t.is=i})(yt||(yt={}));var wt;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(wt||(wt={}));var P;(function(t){t.Invoked=1,t.Automatic=2})(P||(P={}));var xt;(function(t){function r(n,e,o){let s={diagnostics:n};return e!=null&&(s.only=e),o!=null&&(s.triggerKind=o),s}t.create=r;function i(n){let e=n;return a.defined(e)&&a.typedArray(e.diagnostics,M.is)&&(e.only===void 0||a.typedArray(e.only,a.string))&&(e.triggerKind===void 0||e.triggerKind===P.Invoked||e.triggerKind===P.Automatic)}t.is=i})(xt||(xt={}));var It;(function(t){function r(n,e,o){let s={title:n},u=!0;return typeof e=="string"?(u=!1,s.kind=e):x.is(e)?s.command=e:s.edit=e,u&&o!==void 0&&(s.kind=o),s}t.create=r;function i(n){let e=n;return e&&a.string(e.title)&&(e.diagnostics===void 0||a.typedArray(e.diagnostics,M.is))&&(e.kind===void 0||a.string(e.kind))&&(e.edit!==void 0||e.command!==void 0)&&(e.command===void 0||x.is(e.command))&&(e.isPreferred===void 0||a.boolean(e.isPreferred))&&(e.edit===void 0||X.is(e.edit))}t.is=i})(It||(It={}));var Et;(function(t){function r(n,e){let o={range:n};return a.defined(e)&&(o.data=e),o}t.create=r;function i(n){let e=n;return a.defined(e)&&h.is(e.range)&&(a.undefined(e.command)||x.is(e.command))}t.is=i})(Et||(Et={}));var At;(function(t){function r(n,e){return{tabSize:n,insertSpaces:e}}t.create=r;function i(n){let e=n;return a.defined(e)&&a.uinteger(e.tabSize)&&a.boolean(e.insertSpaces)}t.is=i})(At||(At={}));var Ct;(function(t){function r(n,e,o){return{range:n,target:e,data:o}}t.create=r;function i(n){let e=n;return a.defined(e)&&h.is(e.range)&&(a.undefined(e.target)||a.string(e.target))}t.is=i})(Ct||(Ct={}));var St;(function(t){function r(n,e){return{range:n,parent:e}}t.create=r;function i(n){let e=n;return a.objectLiteral(e)&&h.is(e.range)&&(e.parent===void 0||t.is(e.parent))}t.is=i})(St||(St={}));var Rt;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(Rt||(Rt={}));var Lt;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Lt||(Lt={}));var Tt;(function(t){function r(i){const n=i;return a.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}t.is=r})(Tt||(Tt={}));var Mt;(function(t){function r(n,e){return{range:n,text:e}}t.create=r;function i(n){const e=n;return e!=null&&h.is(e.range)&&a.string(e.text)}t.is=i})(Mt||(Mt={}));var Dt;(function(t){function r(n,e,o){return{range:n,variableName:e,caseSensitiveLookup:o}}t.create=r;function i(n){const e=n;return e!=null&&h.is(e.range)&&a.boolean(e.caseSensitiveLookup)&&(a.string(e.variableName)||e.variableName===void 0)}t.is=i})(Dt||(Dt={}));var Pt;(function(t){function r(n,e){return{range:n,expression:e}}t.create=r;function i(n){const e=n;return e!=null&&h.is(e.range)&&(a.string(e.expression)||e.expression===void 0)}t.is=i})(Pt||(Pt={}));var Ft;(function(t){function r(n,e){return{frameId:n,stoppedLocation:e}}t.create=r;function i(n){const e=n;return a.defined(e)&&h.is(n.stoppedLocation)}t.is=i})(Ft||(Ft={}));var q;(function(t){t.Type=1,t.Parameter=2;function r(i){return i===1||i===2}t.is=r})(q||(q={}));var Q;(function(t){function r(n){return{value:n}}t.create=r;function i(n){const e=n;return a.objectLiteral(e)&&(e.tooltip===void 0||a.string(e.tooltip)||S.is(e.tooltip))&&(e.location===void 0||T.is(e.location))&&(e.command===void 0||x.is(e.command))}t.is=i})(Q||(Q={}));var jt;(function(t){function r(n,e,o){const s={position:n,label:e};return o!==void 0&&(s.kind=o),s}t.create=r;function i(n){const e=n;return a.objectLiteral(e)&&k.is(e.position)&&(a.string(e.label)||a.typedArray(e.label,Q.is))&&(e.kind===void 0||q.is(e.kind))&&e.textEdits===void 0||a.typedArray(e.textEdits,I.is)&&(e.tooltip===void 0||a.string(e.tooltip)||S.is(e.tooltip))&&(e.paddingLeft===void 0||a.boolean(e.paddingLeft))&&(e.paddingRight===void 0||a.boolean(e.paddingRight))}t.is=i})(jt||(jt={}));var Nt;(function(t){function r(i){return{kind:"snippet",value:i}}t.createSnippet=r})(Nt||(Nt={}));var Ut;(function(t){function r(i,n,e,o){return{insertText:i,filterText:n,range:e,command:o}}t.create=r})(Ut||(Ut={}));var Vt;(function(t){function r(i){return{items:i}}t.create=r})(Vt||(Vt={}));var Ot;(function(t){t.Invoked=0,t.Automatic=1})(Ot||(Ot={}));var Wt;(function(t){function r(i,n){return{range:i,text:n}}t.create=r})(Wt||(Wt={}));var Kt;(function(t){function r(i,n){return{triggerKind:i,selectedCompletionInfo:n}}t.create=r})(Kt||(Kt={}));var Ht;(function(t){function r(i){const n=i;return a.objectLiteral(n)&&j.is(n.uri)&&a.string(n.name)}t.is=r})(Ht||(Ht={}));var Xt;(function(t){function r(o,s,u,g){return new ce(o,s,u,g)}t.create=r;function i(o){let s=o;return!!(a.defined(s)&&a.string(s.uri)&&(a.undefined(s.languageId)||a.string(s.languageId))&&a.uinteger(s.lineCount)&&a.func(s.getText)&&a.func(s.positionAt)&&a.func(s.offsetAt))}t.is=i;function n(o,s){let u=o.getText(),g=e(s,(f,b)=>{let _=f.range.start.line-b.range.start.line;return _===0?f.range.start.character-b.range.start.character:_}),c=u.length;for(let f=g.length-1;f>=0;f--){let b=g[f],_=o.offsetAt(b.range.start),l=o.offsetAt(b.range.end);if(l<=c)u=u.substring(0,_)+b.newText+u.substring(l,u.length);else throw new Error("Overlapping edit");c=_}return u}t.applyEdits=n;function e(o,s){if(o.length<=1)return o;const u=o.length/2|0,g=o.slice(0,u),c=o.slice(u);e(g,s),e(c,s);let f=0,b=0,_=0;for(;f<g.length&&b<c.length;)s(g[f],c[b])<=0?o[_++]=g[f++]:o[_++]=c[b++];for(;f<g.length;)o[_++]=g[f++];for(;b<c.length;)o[_++]=c[b++];return o}})(Xt||(Xt={}));var ce=class{constructor(t,r,i,n){this._uri=t,this._languageId=r,this._version=i,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),i=this.offsetAt(t.end);return this._content.substring(r,i)}return this._content}update(t,r){this._content=t.text,this._version=r,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],r=this._content,i=!0;for(let n=0;n<r.length;n++){i&&(t.push(n),i=!1);let e=r.charAt(n);i=e==="\r"||e===`
2
2
  `,e==="\r"&&n+1<r.length&&r.charAt(n+1)===`
3
3
  `&&n++}i&&r.length>0&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),i=0,n=r.length;if(n===0)return k.create(0,t);for(;i<n;){let o=Math.floor((i+n)/2);r[o]>t?n=o:i=o+1}let e=i-1;return k.create(e,t-r[e])}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let i=r[t.line],n=t.line+1<r.length?r[t.line+1]:this._content.length;return Math.max(Math.min(i+t.character,n),i)}get lineCount(){return this.getLineOffsets().length}},a;(function(t){const r=Object.prototype.toString;function i(l){return typeof l<"u"}t.defined=i;function n(l){return typeof l>"u"}t.undefined=n;function e(l){return l===!0||l===!1}t.boolean=e;function o(l){return r.call(l)==="[object String]"}t.string=o;function s(l){return r.call(l)==="[object Number]"}t.number=s;function u(l,F,Zt){return r.call(l)==="[object Number]"&&F<=l&&l<=Zt}t.numberRange=u;function g(l){return r.call(l)==="[object Number]"&&-2147483648<=l&&l<=2147483647}t.integer=g;function c(l){return r.call(l)==="[object Number]"&&0<=l&&l<=2147483647}t.uinteger=c;function f(l){return r.call(l)==="[object Function]"}t.func=f;function b(l){return l!==null&&typeof l=="object"}t.objectLiteral=b;function _(l,F){return Array.isArray(l)&&l.every(F)}t.typedArray=_})(a||(a={}));var de=class{constructor(t,r,i){this._languageId=t,this._worker=r,this._disposables=[],this._listener=Object.create(null);const n=o=>{let s=o.getLanguageId();if(s!==this._languageId)return;let u;this._listener[o.uri.toString()]=o.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(o.uri,s),500)}),this._doValidate(o.uri,s)},e=o=>{d.editor.setModelMarkers(o,this._languageId,[]);let s=o.uri.toString(),u=this._listener[s];u&&(u.dispose(),delete this._listener[s])};this._disposables.push(d.editor.onDidCreateModel(n)),this._disposables.push(d.editor.onWillDisposeModel(e)),this._disposables.push(d.editor.onDidChangeModelLanguage(o=>{e(o.model),n(o.model)})),this._disposables.push(i(o=>{d.editor.getModels().forEach(s=>{s.getLanguageId()===this._languageId&&(e(s),n(s))})})),this._disposables.push({dispose:()=>{d.editor.getModels().forEach(e);for(let o in this._listener)this._listener[o].dispose()}}),d.editor.getModels().forEach(n)}dispose(){this._disposables.forEach(t=>t&&t.dispose()),this._disposables.length=0}_doValidate(t,r){this._worker(t).then(i=>i.doValidation(t.toString())).then(i=>{const n=i.map(o=>ge(t,o));let e=d.editor.getModel(t);e&&e.getLanguageId()===r&&d.editor.setModelMarkers(e,r,n)}).then(void 0,i=>{console.error(i)})}};function le(t){switch(t){case w.Error:return d.MarkerSeverity.Error;case w.Warning:return d.MarkerSeverity.Warning;case w.Information:return d.MarkerSeverity.Info;case w.Hint:return d.MarkerSeverity.Hint;default:return d.MarkerSeverity.Info}}function ge(t,r){let i=typeof r.code=="number"?String(r.code):r.code;return{severity:le(r.severity),startLineNumber:r.range.start.line+1,startColumn:r.range.start.character+1,endLineNumber:r.range.end.line+1,endColumn:r.range.end.character+1,message:r.message,code:i,source:r.source}}var fe=class{constructor(t,r){this._worker=t,this._triggerCharacters=r}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(t,r,i,n){const e=t.uri;return this._worker(e).then(o=>o.doComplete(e.toString(),y(r))).then(o=>{if(!o)return;const s=t.getWordUntilPosition(r),u=new d.Range(r.lineNumber,s.startColumn,r.lineNumber,s.endColumn),g=o.items.map(c=>{const f={label:c.label,insertText:c.insertText||c.label,sortText:c.sortText,filterText:c.filterText,documentation:c.documentation,detail:c.detail,command:me(c.command),range:u,kind:pe(c.kind)};return c.textEdit&&(he(c.textEdit)?f.range={insert:v(c.textEdit.insert),replace:v(c.textEdit.replace)}:f.range=v(c.textEdit.range),f.insertText=c.textEdit.newText),c.additionalTextEdits&&(f.additionalTextEdits=c.additionalTextEdits.map(R)),c.insertTextFormat===B.Snippet&&(f.insertTextRules=d.languages.CompletionItemInsertTextRule.InsertAsSnippet),f});return{isIncomplete:o.isIncomplete,suggestions:g}})}};function y(t){if(t)return{character:t.column-1,line:t.lineNumber-1}}function Bt(t){if(t)return{start:{line:t.startLineNumber-1,character:t.startColumn-1},end:{line:t.endLineNumber-1,character:t.endColumn-1}}}function v(t){if(t)return new d.Range(t.start.line+1,t.start.character+1,t.end.line+1,t.end.character+1)}function he(t){return typeof t.insert<"u"&&typeof t.replace<"u"}function pe(t){const r=d.languages.CompletionItemKind;switch(t){case p.Text:return r.Text;case p.Method:return r.Method;case p.Function:return r.Function;case p.Constructor:return r.Constructor;case p.Field:return r.Field;case p.Variable:return r.Variable;case p.Class:return r.Class;case p.Interface:return r.Interface;case p.Module:return r.Module;case p.Property:return r.Property;case p.Unit:return r.Unit;case p.Value:return r.Value;case p.Enum:return r.Enum;case p.Keyword:return r.Keyword;case p.Snippet:return r.Snippet;case p.Color:return r.Color;case p.File:return r.File;case p.Reference:return r.Reference}return r.Property}function R(t){if(t)return{range:v(t.range),text:t.newText}}function me(t){return t&&t.command==="editor.action.triggerSuggest"?{id:t.command,title:t.title,arguments:t.arguments}:void 0}var ve=class{constructor(t){this._worker=t}provideHover(t,r,i){let n=t.uri;return this._worker(n).then(e=>e.doHover(n.toString(),y(r))).then(e=>{if(e)return{range:v(e.range),contents:_e(e.contents)}})}};function be(t){return t&&typeof t=="object"&&typeof t.kind=="string"}function zt(t){return typeof t=="string"?{value:t}:be(t)?t.kind==="plaintext"?{value:t.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:t.value}:{value:"```"+t.language+`
4
4
  `+t.value+"\n```\n"}}function _e(t){if(t)return Array.isArray(t)?t.map(zt):[zt(t)]}var ke=class{constructor(t){this._worker=t}provideDocumentHighlights(t,r,i){const n=t.uri;return this._worker(n).then(e=>e.findDocumentHighlights(n.toString(),y(r))).then(e=>{if(e)return e.map(o=>({range:v(o.range),kind:ye(o.kind)}))})}};function ye(t){switch(t){case C.Read:return d.languages.DocumentHighlightKind.Read;case C.Write:return d.languages.DocumentHighlightKind.Write;case C.Text:return d.languages.DocumentHighlightKind.Text}return d.languages.DocumentHighlightKind.Text}var we=class{constructor(t){this._worker=t}provideDefinition(t,r,i){const n=t.uri;return this._worker(n).then(e=>e.findDefinition(n.toString(),y(r))).then(e=>{if(e)return[qt(e)]})}};function qt(t){return{uri:d.Uri.parse(t.uri),range:v(t.range)}}var xe=class{constructor(t){this._worker=t}provideReferences(t,r,i,n){const e=t.uri;return this._worker(e).then(o=>o.findReferences(e.toString(),y(r))).then(o=>{if(o)return o.map(qt)})}},Ie=class{constructor(t){this._worker=t}provideRenameEdits(t,r,i,n){const e=t.uri;return this._worker(e).then(o=>o.doRename(e.toString(),y(r),i)).then(o=>Ee(o))}};function Ee(t){if(!t||!t.changes)return;let r=[];for(let i in t.changes){const n=d.Uri.parse(i);for(let e of t.changes[i])r.push({resource:n,versionId:void 0,textEdit:{range:v(e.range),text:e.newText}})}return{edits:r}}var Ae=class{constructor(t){this._worker=t}provideDocumentSymbols(t,r){const i=t.uri;return this._worker(i).then(n=>n.findDocumentSymbols(i.toString())).then(n=>{if(n)return n.map(e=>Ce(e)?Qt(e):{name:e.name,detail:"",containerName:e.containerName,kind:Gt(e.kind),range:v(e.location.range),selectionRange:v(e.location.range),tags:[]})})}};function Ce(t){return"children"in t}function Qt(t){return{name:t.name,detail:t.detail??"",kind:Gt(t.kind),range:v(t.range),selectionRange:v(t.selectionRange),tags:t.tags??[],children:(t.children??[]).map(r=>Qt(r))}}function Gt(t){let r=d.languages.SymbolKind;switch(t){case m.File:return r.File;case m.Module:return r.Module;case m.Namespace:return r.Namespace;case m.Package:return r.Package;case m.Class:return r.Class;case m.Method:return r.Method;case m.Property:return r.Property;case m.Field:return r.Field;case m.Constructor:return r.Constructor;case m.Enum:return r.Enum;case m.Interface:return r.Interface;case m.Function:return r.Function;case m.Variable:return r.Variable;case m.Constant:return r.Constant;case m.String:return r.String;case m.Number:return r.Number;case m.Boolean:return r.Boolean;case m.Array:return r.Array}return r.Function}var Ne=class{constructor(t){this._worker=t}provideLinks(t,r){const i=t.uri;return this._worker(i).then(n=>n.findDocumentLinks(i.toString())).then(n=>{if(n)return{links:n.map(e=>({range:v(e.range),url:e.target}))}})}},Se=class{constructor(t){this._worker=t}provideDocumentFormattingEdits(t,r,i){const n=t.uri;return this._worker(n).then(e=>e.format(n.toString(),null,Jt(r)).then(o=>{if(!(!o||o.length===0))return o.map(R)}))}},Re=class{constructor(t){this._worker=t,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(t,r,i,n){const e=t.uri;return this._worker(e).then(o=>o.format(e.toString(),Bt(r),Jt(i)).then(s=>{if(!(!s||s.length===0))return s.map(R)}))}};function Jt(t){return{tabSize:t.tabSize,insertSpaces:t.insertSpaces}}var Le=class{constructor(t){this._worker=t}provideDocumentColors(t,r){const i=t.uri;return this._worker(i).then(n=>n.findDocumentColors(i.toString())).then(n=>{if(n)return n.map(e=>({color:e.color,range:v(e.range)}))})}provideColorPresentations(t,r,i){const n=t.uri;return this._worker(n).then(e=>e.getColorPresentations(n.toString(),r.color,Bt(r.range))).then(e=>{if(e)return e.map(o=>{let s={label:o.label};return o.textEdit&&(s.textEdit=R(o.textEdit)),o.additionalTextEdits&&(s.additionalTextEdits=o.additionalTextEdits.map(R)),s})})}},Te=class{constructor(t){this._worker=t}provideFoldingRanges(t,r,i){const n=t.uri;return this._worker(n).then(e=>e.getFoldingRanges(n.toString(),r)).then(e=>{if(e)return e.map(o=>{const s={start:o.startLine+1,end:o.endLine+1};return typeof o.kind<"u"&&(s.kind=Me(o.kind)),s})})}};function Me(t){switch(t){case A.Comment:return d.languages.FoldingRangeKind.Comment;case A.Imports:return d.languages.FoldingRangeKind.Imports;case A.Region:return d.languages.FoldingRangeKind.Region}}var De=class{constructor(t){this._worker=t}provideSelectionRanges(t,r,i){const n=t.uri;return this._worker(n).then(e=>e.getSelectionRanges(n.toString(),r.map(y))).then(e=>{if(e)return e.map(o=>{const s=[];for(;o;)s.push({range:v(o.range)}),o=o.parent;return s})})}};function Ue(t){const r=[],i=[],n=new ue(t);r.push(n);const e=(...s)=>n.getLanguageServiceWorker(...s);function o(){const{languageId:s,modeConfiguration:u}=t;Yt(i),u.completionItems&&i.push(d.languages.registerCompletionItemProvider(s,new fe(e,["/","-",":"]))),u.hovers&&i.push(d.languages.registerHoverProvider(s,new ve(e))),u.documentHighlights&&i.push(d.languages.registerDocumentHighlightProvider(s,new ke(e))),u.definitions&&i.push(d.languages.registerDefinitionProvider(s,new we(e))),u.references&&i.push(d.languages.registerReferenceProvider(s,new xe(e))),u.documentSymbols&&i.push(d.languages.registerDocumentSymbolProvider(s,new Ae(e))),u.rename&&i.push(d.languages.registerRenameProvider(s,new Ie(e))),u.colors&&i.push(d.languages.registerColorProvider(s,new Le(e))),u.foldingRanges&&i.push(d.languages.registerFoldingRangeProvider(s,new Te(e))),u.diagnostics&&i.push(new de(s,e,t.onDidChange)),u.selectionRanges&&i.push(d.languages.registerSelectionRangeProvider(s,new De(e))),u.documentFormattingEdits&&i.push(d.languages.registerDocumentFormattingEditProvider(s,new Se(e))),u.documentRangeFormattingEdits&&i.push(d.languages.registerDocumentRangeFormattingEditProvider(s,new Re(e)))}return o(),r.push($t(i)),$t(r)}function $t(t){return{dispose:()=>Yt(t)}}function Yt(t){for(;t.length;)t.pop().dispose()}export{fe as CompletionAdapter,we as DefinitionAdapter,de as DiagnosticsAdapter,Le as DocumentColorAdapter,Se as DocumentFormattingEditProvider,ke as DocumentHighlightAdapter,Ne as DocumentLinkAdapter,Re as DocumentRangeFormattingEditProvider,Ae as DocumentSymbolAdapter,Te as FoldingRangeAdapter,ve as HoverAdapter,xe as ReferenceAdapter,Ie as RenameAdapter,De as SelectionRangeAdapter,ue as WorkerManager,y as fromPosition,Bt as fromRange,Ue as setupMode,v as toRange,R as toTextEdit};