astro-vscode 2.9.0 → 2.9.1
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.
- package/dist/node/server.js +3 -3
- package/package.json +2 -2
package/dist/node/server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var OH=Object.create;var rh=Object.defineProperty;var NH=Object.getOwnPropertyDescriptor;var zH=Object.getOwnPropertyNames;var qH=Object.getPrototypeOf,WH=Object.prototype.hasOwnProperty;var de=(t,e)=>()=>(t&&(e=t(t=0)),e);var L=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ih=(t,e)=>{for(var n in e)rh(t,n,{get:e[n],enumerable:!0})},lC=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of zH(e))!WH.call(t,i)&&i!==n&&rh(t,i,{get:()=>e[i],enumerable:!(r=NH(e,i))||r.enumerable});return t};var yn=(t,e,n)=>(n=t!=null?OH(qH(t)):{},lC(e||!t||!t.__esModule?rh(n,"default",{value:t,enumerable:!0}):n,t)),ao=t=>lC(rh({},"__esModule",{value:!0}),t);var cC=L((Yhe,UH)=>{UH.exports={name:"@astrojs/language-server",version:"2.9.
|
|
2
|
+
var OH=Object.create;var rh=Object.defineProperty;var NH=Object.getOwnPropertyDescriptor;var zH=Object.getOwnPropertyNames;var qH=Object.getPrototypeOf,WH=Object.prototype.hasOwnProperty;var de=(t,e)=>()=>(t&&(e=t(t=0)),e);var L=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ih=(t,e)=>{for(var n in e)rh(t,n,{get:e[n],enumerable:!0})},lC=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of zH(e))!WH.call(t,i)&&i!==n&&rh(t,i,{get:()=>e[i],enumerable:!(r=NH(e,i))||r.enumerable});return t};var yn=(t,e,n)=>(n=t!=null?OH(qH(t)):{},lC(e||!t||!t.__esModule?rh(n,"default",{value:t,enumerable:!0}):n,t)),ao=t=>lC(rh({},"__esModule",{value:!0}),t);var cC=L((Yhe,UH)=>{UH.exports={name:"@astrojs/language-server",version:"2.9.1",author:"withastro",license:"MIT",repository:{type:"git",url:"https://github.com/withastro/language-tools",directory:"packages/language-server"},type:"commonjs",main:"dist/index.js",files:["bin","dist/**/*.js","dist/**/*.d.ts","types/**/*.d.ts"],bin:{"astro-ls":"./bin/nodeServer.js"},scripts:{build:"tsc",dev:"tsc --watch",test:"mocha --timeout 10000 --require tsx --require test/takedown.ts test/misc/init.test.ts test/**/*.test.ts","test:match":"pnpm run test -g"},dependencies:{"@astrojs/compiler":"^2.7.0","@jridgewell/sourcemap-codec":"^1.4.15","@volar/kit":"~2.2.1","@volar/language-core":"~2.2.1","@volar/language-server":"~2.2.1","@volar/language-service":"~2.2.1","@volar/typescript":"~2.2.1","fast-glob":"^3.2.12","volar-service-css":"0.0.43","volar-service-emmet":"0.0.43","volar-service-html":"0.0.43","volar-service-prettier":"0.0.43","volar-service-typescript":"0.0.43","volar-service-typescript-twoslash-queries":"0.0.43","vscode-html-languageservice":"^5.2.0","vscode-uri":"^3.0.8"},devDependencies:{svelte:"^4.2.10","@astrojs/svelte":"^5.0.3","@astrojs/vue":"^4.0.8","@types/chai":"^4.3.5","@types/mocha":"^10.0.1","@types/node":"^18.17.8","@volar/test-utils":"~2.2.1",astro:"^4.3.5",chai:"^4.3.7",mocha:"^10.2.0",tsx:"^3.12.7",typescript:"^5.2.2","vscode-languageserver-protocol":"^3.17.5","vscode-languageserver-textdocument":"^1.0.11"},peerDependencies:{prettier:"^3.0.0","prettier-plugin-astro":">=0.11.0"},peerDependenciesMeta:{prettier:{optional:!0},"prettier-plugin-astro":{optional:!0}}}});var uC=L(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.binarySearch=void 0;function HH(t,e){let n=0,r=t.length-1;for(;n<=r;){let i=Math.floor((n+r)/2),o=t[i];if(o<e)n=i+1;else if(o>e)r=i-1;else{n=i,r=i;break}}return Math.max(Math.min(n,r,t.length-1),0)}oh.binarySearch=HH});var Qv=L(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.track=xi.resetOffsetStack=xi.offsetStack=xi.setTracking=void 0;var dC=!0,Xv=0;function jH(t){dC=t}xi.setTracking=jH;function BH(){Xv++}xi.offsetStack=BH;function $H(){Xv--}xi.resetOffsetStack=$H;function VH(t,e=[]){return[new Proxy(t,{get(u,d,h){if(dC){if(d==="push")return n;if(d==="pop")return r;if(d==="shift")return i;if(d==="unshift")return o;if(d==="splice")return a;if(d==="sort")return l;if(d==="reverse")return s}return Reflect.get(u,d,h)}}),e];function n(...u){return e.push({stack:c(),length:u.length}),t.push(...u)}function r(){if(e.length){let u=e[e.length-1];u.length>1?u.length--:e.pop()}return t.pop()}function i(){if(e.length){let u=e[0];u.length>1?u.length--:e.shift()}return t.shift()}function o(...u){return e.unshift({stack:c(),length:u.length}),t.unshift(...u)}function a(u,d,...h){d===void 0&&(d=t.length-u);let f=0,_;for(let k=0;k<e.length;k++){let y=e[k],w=f;if(f=w+y.length,u>=w){_=k+1;let C=y.length;y.length=u-w,e.splice(_,0,{stack:y.stack,length:C-y.length});break}}if(_===void 0)throw new Error("Invalid splice operation");let g=d;for(let k=_;k<e.length;k++){let y=e[k];for(;g>0&&y.length>0;)y.length--,g--;if(g===0)break}return e.splice(_,0,{stack:c(),length:h.length}),t.splice(u,d,...h)}function l(u){return e.splice(0,e.length,{stack:c(),length:t.length}),t.sort(u)}function s(){return e.splice(0,e.length,{stack:c(),length:t.length}),t.reverse()}function c(){let d=new Error().stack.split(`
|
|
3
3
|
`)[3+Xv].trim();return d.endsWith(")")?d=d.slice(d.lastIndexOf("(")+1,-1):d=d.slice(d.lastIndexOf(" ")+1),d}}xi.track=VH});var pC=L(hC=>{"use strict";Object.defineProperty(hC,"__esModule",{value:!0})});var yC=L(jt=>{"use strict";var GH=jt&&jt.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),mC=jt&&jt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&GH(e,t,n)};Object.defineProperty(jt,"__esModule",{value:!0});jt.replaceRange=jt.replaceSourceRange=jt.replaceAll=jt.replace=jt.create=jt.toString=jt.getLength=void 0;var fC=uC(),ki=Qv();mC(pC(),jt);mC(Qv(),jt);function gC(t){let e=0;for(let n of t)e+=typeof n=="string"?n.length:n[0].length;return e}jt.getLength=gC;function Yv(t){return t.map(e=>typeof e=="string"?e:e[0]).join("")}jt.toString=Yv;function KH(t){return[[t,void 0,0]]}jt.create=KH;function JH(t,e,...n){let i=Yv(t).match(e);if(i&&i.index!==void 0){let o=i.index,a=o+i[0].length;(0,ki.offsetStack)(),Zv(t,o,a,...n.map(l=>typeof l=="function"?l(i[0]):l)),(0,ki.resetOffsetStack)()}}jt.replace=JH;function XH(t,e,...n){let r=Yv(t),i=r.matchAll(e),o=r.length,a=0;for(let l of i)if(l.index!==void 0){let s=l.index+a,c=s+l[0].length;(0,ki.offsetStack)(),Zv(t,s,c,...n.map(d=>typeof d=="function"?d(l[0]):d)),(0,ki.resetOffsetStack)();let u=gC(t);a+=u-o,o=u}}jt.replaceAll=XH;function QH(t,e,n,r,...i){for(let o of t)if(typeof o!="string"&&o[1]===e){let a=o[2],l=o[2]+o[0].length;if(a<=n&&l>=r){let s=[];n>a&&s.push(vC(o,n-a));for(let c of i)s.push(c);return r<l&&s.push(wC(o,r-l)),bC(s),(0,ki.offsetStack)(),t.splice(t.indexOf(o),1,...s),(0,ki.resetOffsetStack)(),!0}}return!1}jt.replaceSourceRange=QH;function Zv(t,e,n,...r){let i=YH(t),o=(0,fC.binarySearch)(i,e),a=(0,fC.binarySearch)(i,n),l=t[o],s=t[a],c=i[o],u=i[a],d=i[a]+(typeof s=="string"?s.length:s[0].length),h=[];e>c&&h.push(vC(l,e-c));for(let f of r)h.push(f);n<d&&h.push(wC(s,n-u)),bC(h),(0,ki.offsetStack)(),t.splice(o,a-o+1,...h),(0,ki.resetOffsetStack)()}jt.replaceRange=Zv;function bC(t){for(let e=t.length-1;e>=1;e--)typeof t[e]=="string"&&typeof t[e-1]=="string"&&(t[e-1]=t[e-1]+t[e],(0,ki.offsetStack)(),t.splice(e,1),(0,ki.resetOffsetStack)())}function vC(t,e){return typeof t=="string"?t.slice(0,e):[t[0].slice(0,e),...t.slice(1)]}function wC(t,e){return typeof t=="string"?t.slice(e):(e<0&&(e+=t[0].length),[t[0].slice(e),t[1],t[2]+e,...t.slice(3)])}function YH(t){let e=[],n=0;for(let r of t)e.push(n),n+=typeof r=="string"?r.length:r[0].length;return e}});var _C=L(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.binarySearch=void 0;function ZH(t,e){let n=0,r=t.length-1,i;for(;n<=r;){let l=Math.floor((n+r)/2),s=t[l];if(s<e)n=l+1;else if(s>e)r=l-1;else{n=l,r=l,i=l;break}}let o=Math.max(Math.min(n,r,t.length-1),0),a=Math.min(Math.max(n,r,0),t.length-1);return{low:o,high:a,match:i}}sh.binarySearch=ZH});var ew=L(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});ah.translateOffset=void 0;function ej(t,e,n,r){for(let i=0;i<e.length;i++){let o=e[i],a=n[i],l=r[i];if(t>=o&&t<=o+l)return a+t-o}}ah.translateOffset=ej});var SC=L(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.SourceMap=void 0;var tw=_C(),tj=ew(),nw=class{constructor(e){this.mappings=e}getSourceOffset(e){for(let n of this.findMatching(e,"generatedOffsets","sourceOffsets"))return n}getGeneratedOffset(e){for(let n of this.findMatching(e,"sourceOffsets","generatedOffsets"))return n}getSourceOffsets(e){return this.findMatching(e,"generatedOffsets","sourceOffsets")}getGeneratedOffsets(e){return this.findMatching(e,"sourceOffsets","generatedOffsets")}*findMatching(e,n,r){let i=this.getMemoBasedOnRange(n);if(i.offsets.length===0)return;let{low:o,high:a}=(0,tw.binarySearch)(i.offsets,e),l=new Set;for(let s=o;s<=a;s++)for(let c of i.mappings[s]){if(l.has(c))continue;l.add(c);let u=(0,tj.translateOffset)(e,c[n],c[r],c.lengths);u!==void 0&&(yield[u,c])}}getMemoBasedOnRange(e){return e==="sourceOffsets"?this.sourceCodeOffsetsMemo??=this.createMemo("sourceOffsets"):this.generatedCodeOffsetsMemo??=this.createMemo("generatedOffsets")}createMemo(e){let n=new Set;for(let o of this.mappings)for(let a=0;a<o[e].length;a++)n.add(o[e][a]),n.add(o[e][a]+o.lengths[a]);let r=[...n].sort((o,a)=>o-a),i=r.map(()=>new Set);for(let o of this.mappings)for(let a=0;a<o[e].length;a++){let l=(0,tw.binarySearch)(r,o[e][a]).match,s=(0,tw.binarySearch)(r,o[e][a]+o.lengths[a]).match;for(let c=l;c<=s;c++)i[c].add(o)}return{offsets:r,mappings:i}}};lh.SourceMap=nw});var xC=L(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.buildMappings=void 0;function nj(t){let e=0,n=[];for(let r of t)typeof r=="string"?e+=r.length:(n.push({source:r[1],sourceOffsets:[r[2]],generatedOffsets:[e],lengths:[r[0].length],data:r[3]}),e+=r[0].length);return n}ch.buildMappings=nj});var kC=L(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});uh.buildStacks=void 0;function rj(t,e){let n=0,r=0,i=[];for(let o of e){let a=n;for(let l=0;l<o.length;l++){let s=t[r+l];typeof s=="string"?n+=s.length:n+=s[0].length}r+=o.length,i.push({source:o.stack,range:[a,n]})}return i}uh.buildStacks=rj});var dh=L(ti=>{"use strict";var ij=ti&&ti.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),pu=ti&&ti.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&ij(e,t,n)};Object.defineProperty(ti,"__esModule",{value:!0});pu(yC(),ti);pu(SC(),ti);pu(ew(),ti);pu(xC(),ti);pu(kC(),ti)});var CC=L(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.resolveRenameEditText=Re.resolveRenameNewName=Re.shouldReportDiagnostics=Re.isSignatureHelpEnabled=Re.isAutoInsertEnabled=Re.isCompletionEnabled=Re.isFormattingEnabled=Re.isCodeActionsEnabled=Re.isDiagnosticsEnabled=Re.isDocumentLinkEnabled=Re.isColorEnabled=Re.isLinkedEditingEnabled=Re.isSelectionRangesEnabled=Re.isFoldingRangesEnabled=Re.isSymbolsEnabled=Re.isHighlightEnabled=Re.isImplementationEnabled=Re.isReferencesEnabled=Re.isTypeDefinitionEnabled=Re.isDefinitionEnabled=Re.isRenameEnabled=Re.isCallHierarchyEnabled=Re.isSemanticTokensEnabled=Re.isCodeLensEnabled=Re.isInlayHintsEnabled=Re.isHoverEnabled=void 0;function oj(t){return!!t.semantic}Re.isHoverEnabled=oj;function sj(t){return!!t.semantic}Re.isInlayHintsEnabled=sj;function aj(t){return!!t.semantic}Re.isCodeLensEnabled=aj;function lj(t){return typeof t.semantic=="object"?t.semantic.shouldHighlight?.()??!0:!!t.semantic}Re.isSemanticTokensEnabled=lj;function cj(t){return!!t.navigation}Re.isCallHierarchyEnabled=cj;function uj(t){return!!t.navigation}Re.isRenameEnabled=uj;function dj(t){return!!t.navigation}Re.isDefinitionEnabled=dj;function hj(t){return!!t.navigation}Re.isTypeDefinitionEnabled=hj;function pj(t){return!!t.navigation}Re.isReferencesEnabled=pj;function fj(t){return!!t.navigation}Re.isImplementationEnabled=fj;function mj(t){return!!t.navigation}Re.isHighlightEnabled=mj;function gj(t){return!!t.structure}Re.isSymbolsEnabled=gj;function bj(t){return!!t.structure}Re.isFoldingRangesEnabled=bj;function vj(t){return!!t.structure}Re.isSelectionRangesEnabled=vj;function wj(t){return!!t.structure}Re.isLinkedEditingEnabled=wj;function yj(t){return!!t.structure}Re.isColorEnabled=yj;function _j(t){return!!t.structure}Re.isDocumentLinkEnabled=_j;function Sj(t){return!!t.verification}Re.isDiagnosticsEnabled=Sj;function xj(t){return!!t.verification}Re.isCodeActionsEnabled=xj;function kj(t){return!!t.format}Re.isFormattingEnabled=kj;function Cj(t){return!!t.completion}Re.isCompletionEnabled=Cj;function Tj(t){return!!t.completion}Re.isAutoInsertEnabled=Tj;function Ej(t){return!!t.completion}Re.isSignatureHelpEnabled=Ej;function Dj(t){return typeof t.verification=="object"?t.verification.shouldReport?.()??!0:!!t.verification}Re.shouldReportDiagnostics=Dj;function Aj(t,e){return typeof e.navigation=="object"?e.navigation.resolveRenameNewName?.(t)??t:t}Re.resolveRenameNewName=Aj;function Rj(t,e){return typeof e.navigation=="object"?e.navigation.resolveRenameEditText?.(t)??t:t}Re.resolveRenameEditText=Rj});var iw=L(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.LinkedCodeMap=void 0;var Fj=dh(),rw=class extends Fj.SourceMap{*getLinkedOffsets(e){for(let n of this.getGeneratedOffsets(e))yield n[0];for(let n of this.getSourceOffsets(e))yield n[0]}};hh.LinkedCodeMap=rw});var ow=L(TC=>{"use strict";Object.defineProperty(TC,"__esModule",{value:!0})});var aw=L(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.FileMap=void 0;var sw=class extends Map{constructor(e){super(),this.caseSensitive=e,this.originalFileNames=new Map}keys(){return this.originalFileNames.values()}get(e){return super.get(this.normalizeId(e))}has(e){return super.has(this.normalizeId(e))}set(e,n){return this.originalFileNames.set(this.normalizeId(e),e),super.set(this.normalizeId(e),n)}delete(e){return this.originalFileNames.delete(this.normalizeId(e)),super.delete(this.normalizeId(e))}clear(){return this.originalFileNames.clear(),super.clear()}normalizeId(e){return this.caseSensitive?e:e.toLowerCase()}};ph.FileMap=sw});var Je=L(_n=>{"use strict";var Ij=_n&&_n.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),fu=_n&&_n.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Ij(e,t,n)};Object.defineProperty(_n,"__esModule",{value:!0});_n.forEachEmbeddedCode=_n.updateVirtualCodeMapOfMap=_n.createLanguage=void 0;fu(dh(),_n);fu(CC(),_n);fu(iw(),_n);fu(ow(),_n);fu(aw(),_n);var EC=dh(),Mj=iw(),Pj=aw();function Lj(t,e,n){let r=new Pj.FileMap(e),i=new WeakMap,o=new WeakMap,a=new WeakMap;return{plugins:t,scripts:{get(l){return n(l),r.get(l)},set(l,s,c,u=t){if(!c){for(let d of t)if(c=d.getLanguageId?.(l),c)break}if(!c){console.warn(`languageId not found for ${l}`);return}if(r.has(l)){let d=r.get(l);if(d.languageId!==c)return this.delete(l),this.set(l,s,c);if(d.snapshot!==s){if(d.snapshot=s,d.generated){let h=d.generated.languagePlugin.updateVirtualCode?.(l,d.generated.root,s);if(h){d.generated.root=h,d.generated.embeddedCodes.clear();for(let f of fh(d.generated.root))i.set(f,d),d.generated.embeddedCodes.set(f.id,f);return d}else{this.delete(l);return}}}else return d}else{let d={id:l,languageId:c,snapshot:s};r.set(l,d);for(let h of u){let f=h.createVirtualCode?.(l,c,s);if(f){d.generated={root:f,languagePlugin:h,embeddedCodes:new Map};for(let _ of fh(f))i.set(_,d),d.generated.embeddedCodes.set(_.id,_);break}}return d}},delete(l){let s=r.get(l);s&&(s.generated&&s.generated.languagePlugin.disposeVirtualCode?.(l,s.generated.root),r.delete(l))}},maps:{get(l,s){if(!s){let c=i.get(l);if(!c)return;s=c.id}for(let[c,[u,d]]of this.forEach(l))if(c===s)return d},forEach(l){let s=o.get(l.snapshot);return s||(s=new Map,o.set(l.snapshot,s)),DC(l,s,c=>{if(c){let u=r.get(c);return[c,u.snapshot]}else{let u=i.get(l);return[u.id,u.snapshot]}}),s}},linkedCodeMaps:{get(l){return a.has(l.snapshot)||a.set(l.snapshot,l.linkedCodeMappings?new Mj.LinkedCodeMap(l.linkedCodeMappings):void 0),a.get(l.snapshot)}}}}_n.createLanguage=Lj;function DC(t,e,n){let r=new Set;if(!t.mappings.length){let i=n(void 0);i&&e.set(i[0],[i[1],new EC.SourceMap([])])}for(let i of t.mappings){if(r.has(i.source))continue;r.add(i.source);let o=n(i.source);o&&(!e.has(o[0])||e.get(o[0])[0]!==o[1])&&e.set(o[0],[o[1],new EC.SourceMap(t.mappings.filter(a=>a.source===i.source))])}}_n.updateVirtualCodeMapOfMap=DC;function*fh(t){if(yield t,t.embeddedCodes)for(let e of t.embeddedCodes)yield*fh(e)}_n.forEachEmbeddedCode=fh});var gh=L($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.LinkedCodeMapWithDocument=$a.SourceMapWithDocuments=void 0;var AC=Je(),mh=class{constructor(e,n,r){this.sourceDocument=e,this.embeddedDocument=n,this.map=r}getSourceRange(e,n=()=>!0){for(let r of this.getSourceRanges(e,n))return r}getGeneratedRange(e,n=()=>!0){for(let r of this.getGeneratedRanges(e,n))return r}*getSourceRanges(e,n=()=>!0){for(let r of this.findRanges(e,n,"getSourcePositionsBase","matchSourcePosition"))yield r}*getGeneratedRanges(e,n=()=>!0){for(let r of this.findRanges(e,n,"getGeneratedPositionsBase","matchGeneratedPosition"))yield r}*findRanges(e,n,r,i){let o=[];for(let a of this[r](e.start,n)){let l=this[i](e.end,a[1]);l?yield{start:a[0],end:l}:o.push(a)}for(let a of o)for(let l of this[r](e.end,n))yield{start:a[0],end:l[0]}}getSourcePosition(e,n=()=>!0){for(let r of this.getSourcePositions(e,n))return r}getGeneratedPosition(e,n=()=>!0){for(let r of this.getGeneratedPositions(e,n))return r}*getSourcePositions(e,n=()=>!0){for(let r of this.getSourcePositionsBase(e,n))yield r[0]}*getGeneratedPositions(e,n=()=>!0){for(let r of this.getGeneratedPositionsBase(e,n))yield r[0]}*getSourcePositionsBase(e,n=()=>!0){for(let r of this.findPositions(e,n,this.embeddedDocument,this.sourceDocument,"generatedOffsets","sourceOffsets"))yield r}*getGeneratedPositionsBase(e,n=()=>!0){for(let r of this.findPositions(e,n,this.sourceDocument,this.embeddedDocument,"sourceOffsets","generatedOffsets"))yield r}*findPositions(e,n,r,i,o,a){for(let l of this.map.findMatching(r.offsetAt(e),o,a))n(l[1].data)&&(yield[i.positionAt(l[0]),l[1]])}matchSourcePosition(e,n){let r=(0,AC.translateOffset)(this.embeddedDocument.offsetAt(e),n.generatedOffsets,n.sourceOffsets,n.lengths);if(r!==void 0)return this.sourceDocument.positionAt(r)}matchGeneratedPosition(e,n){let r=(0,AC.translateOffset)(this.sourceDocument.offsetAt(e),n.sourceOffsets,n.generatedOffsets,n.lengths);if(r!==void 0)return this.embeddedDocument.positionAt(r)}};$a.SourceMapWithDocuments=mh;var lw=class extends mh{constructor(e,n){super(e,e,n),this.document=e,this.linkedMap=n}*getLinkedCodePositions(e){for(let n of this.linkedMap.getLinkedOffsets(this.document.offsetAt(e)))yield this.document.positionAt(n)}};$a.LinkedCodeMapWithDocument=lw});var Et=L(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.getEmbeddedFilesByLevel=kr.forEachEmbeddedDocument=kr.safeCall=kr.languageFeatureWorker=kr.documentFeatureWorker=void 0;async function Oj(t,e,n,r,i,o){return RC(t,e,()=>{},function*(a){n(a)&&(yield)},r,i,o)}kr.documentFeatureWorker=Oj;async function RC(t,e,n,r,i,o,a){let l=t.language.scripts.get(e);if(!l)return;let s=[];if(l.generated)for(let c of uw(t,l.id,l.generated.root))for(let u of r(c))for(let[d,h]of Object.entries(t.services)){if(t.disabledServicePlugins.has(h[1]))continue;let f=await cw(()=>i(h,c.embeddedDocument,u,c),"service "+d+" crashed on "+c.embeddedDocument.uri);if(!f)continue;let _=o(f,c);if(_&&(s.push(_),!a))break}else{let c=t.documents.get(e,l.languageId,l.snapshot),u=n();for(let[d,h]of Object.entries(t.services)){if(t.disabledServicePlugins.has(h[1]))continue;let f=await cw(()=>i(h,c,u,void 0),"service "+d+" crashed on "+e);if(!f)continue;let _=o(f,void 0);if(_&&(s.push(_),!a))break}}if(a&&s.length>0)return a(s);if(s.length>0)return s[0]}kr.languageFeatureWorker=RC;async function cw(t,e){try{return await t()}catch(n){console.warn(e,n)}}kr.safeCall=cw;function*uw(t,e,n){if(n.embeddedCodes)for(let r of n.embeddedCodes)yield*uw(t,e,r);for(let r of t.documents.getMaps(n))e===r.sourceDocument.uri&&!t.disabledEmbeddedDocumentUris.has(t.encodeEmbeddedDocumentUri(e,n.id))&&(yield r)}kr.forEachEmbeddedDocument=uw;function Nj(t,e,n,r){let i=[[n]];for(;;){if(i.length>r)return i[r];let o=[];for(let a of i[i.length-1])if(a.embeddedCodes)for(let l of a.embeddedCodes)t.disabledEmbeddedDocumentUris.has(t.encodeEmbeddedDocumentUri(e,l.id))||o.push(l);i.push(o)}}kr.getEmbeddedFilesByLevel=Nj});var ot=L(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});bh.NoneCancellationToken=void 0;bh.NoneCancellationToken={isCancellationRequested:!1,onCancellationRequested:()=>({dispose:()=>{}})}});var IC=L(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});vh.register=void 0;var zj=Et(),qj=ot(),FC=Je();function Wj(t){return(e,n,r,i=qj.NoneCancellationToken)=>(0,zj.languageFeatureWorker)(t,e,()=>({selection:n,change:r}),function*(o){for(let a of o.getGeneratedPositions(n,FC.isAutoInsertEnabled)){let l=o.map.getGeneratedOffset(r.rangeOffset);l&&(yield{selection:a,change:{text:r.text,rangeOffset:l[0],rangeLength:r.rangeLength}})}},(o,a,l)=>{if(!i.isCancellationRequested)return o[1].provideAutoInsertionEdit?.(a,l.selection,l.change,i)},(o,a)=>{if(!a||typeof o=="string")return o;let l=a.getSourceRange(o.range,FC.isAutoInsertEnabled);if(l)return o.range=l,o})}vh.register=Wj});var on=L(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.notEmpty=Kn.sleep=Kn.stringToSnapshot=Kn.isEqualRange=Kn.isInsideRange=Kn.findOverlapCodeRange=void 0;function Uj(t,e,n,r){let i,o;for(let[a,l]of n.getGeneratedOffsets(t))if(r(l.data)){i=a;break}for(let[a,l]of n.getGeneratedOffsets(e))if(r(l.data)){o=a;break}if(i===void 0||o===void 0){for(let a of n.mappings)if(r(a.data)){let l=a.sourceOffsets[0],s=a.sourceOffsets[a.sourceOffsets.length-1]+a.lengths[a.lengths.length-1],c=Hj(t,e,l,s);c&&(i===void 0?i=c.start+a.generatedOffsets[0]-l:i=Math.min(i,c.start+a.generatedOffsets[0]-l),o===void 0?o=c.end+a.generatedOffsets[0]-l:o=Math.max(o,c.end+a.generatedOffsets[0]-l))}}if(i!==void 0&&o!==void 0)return{start:i,end:o}}Kn.findOverlapCodeRange=Uj;function Hj(t,e,n,r){let i=Math.max(t,n),o=Math.min(e,r);if(!(i>o))return{start:i,end:o}}function jj(t,e){return!(e.start.line<t.start.line||e.end.line>t.end.line||e.start.line===t.start.line&&e.start.character<t.start.character||e.end.line===t.end.line&&e.end.character>t.end.character)}Kn.isInsideRange=jj;function Bj(t,e){return t.start.line===e.start.line&&t.start.character===e.start.character&&t.end.line===e.end.line&&t.end.character===e.end.character}Kn.isEqualRange=Bj;function $j(t){return{getText:(e,n)=>t.substring(e,n),getLength:()=>t.length,getChangeRange:()=>{}}}Kn.stringToSnapshot=$j;function Vj(t){return new Promise(e=>setTimeout(e,t))}Kn.sleep=Vj;function Gj(t){return t!=null}Kn.notEmpty=Gj});var Ci=L(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.withRanges=Bt.withCallHierarchyOutgoingCalls=Bt.withCallHierarchyIncomingCalls=Bt.withLocationLinks=Bt.withLocations=Bt.withDiagnostics=Bt.withDocumentChanges=Bt.withTextEdits=Bt.withCodeAction=Bt.createLocationSet=void 0;function Kj(){let t=new Set;return{add:e,has:n};function e(i){return n(i)?!1:(t.add(r(i)),!0)}function n(i){return t.has(r(i))}function r(i){return[i.uri,i.range.start.line,i.range.start.character,i.range.end.line,i.range.end.character].join(":")}}Bt.createLocationSet=Kj;function Jj(t){return lo(t,e=>[e.title].join(":"))}Bt.withCodeAction=Jj;function Xj(t){return lo(t,e=>[e.range.start.line,e.range.start.character,e.range.end.line,e.range.end.character,e.newText].join(":"))}Bt.withTextEdits=Xj;function Qj(t){return lo(t,e=>JSON.stringify(e))}Bt.withDocumentChanges=Qj;function Yj(t){return lo(t,e=>[e.range.start.line,e.range.start.character,e.range.end.line,e.range.end.character,e.source,e.code,e.severity,e.message].join(":"))}Bt.withDiagnostics=Yj;function Zj(t){return lo(t,e=>[e.uri,e.range.start.line,e.range.start.character,e.range.end.line,e.range.end.character].join(":"))}Bt.withLocations=Zj;function e4(t){return lo(t,e=>[e.targetUri,e.targetSelectionRange.start.line,e.targetSelectionRange.start.character,e.targetSelectionRange.end.line,e.targetSelectionRange.end.character].join(":"))}Bt.withLocationLinks=e4;function t4(t){return lo(t,e=>[e.from.uri,e.from.range.start.line,e.from.range.start.character,e.from.range.end.line,e.from.range.end.character].join(":"))}Bt.withCallHierarchyIncomingCalls=t4;function n4(t){return lo(t,e=>[e.to.uri,e.to.range.start.line,e.to.range.start.character,e.to.range.end.line,e.to.range.end.character].join(":"))}Bt.withCallHierarchyOutgoingCalls=n4;function r4(t){return lo(t,e=>[e.start.line,e.start.character,e.end.line,e.end.character].join(":"))}Bt.withRanges=r4;function lo(t,e){let n=new Map;for(let r of t.reverse())n.set(e(r),r);return[...n.values()]}});var PC=L(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});wh.register=void 0;var MC=on(),dw=Ci(),i4=Et(),o4=ot(),s4=Je();function a4(t){return{doPrepare(n,r,i=o4.NoneCancellationToken){return(0,i4.languageFeatureWorker)(t,n,()=>r,o=>o.getGeneratedPositions(r,a=>(0,s4.isCallHierarchyEnabled)(a)),async(o,a,l,s)=>{if(i.isCancellationRequested)return;let c=await o[1].provideCallHierarchyItems?.(a,l,i);return c?.forEach(u=>{u.data={uri:n,original:{data:u.data},serviceIndex:t.services.indexOf(o),embeddedDocumentUri:s?.embeddedDocument.uri}}),c},(o,a)=>a?o.map(l=>e(l,[])?.[0]).filter(MC.notEmpty):o,o=>dw.withLocations(o.flat()))},async getIncomingCalls(n,r){let i=n.data,o=[];if(i){let a=t.services[i.serviceIndex];if(!a[1].provideCallHierarchyIncomingCalls)return o;if(Object.assign(n,i.original),i.embeddedDocumentUri){if(!!t.decodeEmbeddedDocumentUri(i.embeddedDocumentUri)){let s=await a[1].provideCallHierarchyIncomingCalls(n,r);for(let c of s){let u=e(c.from,c.fromRanges);u&&o.push({from:u[0],fromRanges:u[1]})}}}else{let l=await a[1].provideCallHierarchyIncomingCalls(n,r);for(let s of l){let c=e(s.from,s.fromRanges);c&&o.push({from:c[0],fromRanges:c[1]})}}}return dw.withCallHierarchyIncomingCalls(o)},async getOutgoingCalls(n,r){let i=n.data,o=[];if(i){let a=t.services[i.serviceIndex];if(!a[1].provideCallHierarchyOutgoingCalls)return o;if(Object.assign(n,i.original),i.embeddedDocumentUri){if(!!t.decodeEmbeddedDocumentUri(i.embeddedDocumentUri)){let s=await a[1].provideCallHierarchyOutgoingCalls(n,r);for(let c of s){let u=e(c.to,c.fromRanges);u&&o.push({to:u[0],fromRanges:u[1]})}}}else{let l=await a[1].provideCallHierarchyOutgoingCalls(n,r);for(let s of l){let c=e(s.to,s.fromRanges);c&&o.push({to:c[0],fromRanges:c[1]})}}}return dw.withCallHierarchyOutgoingCalls(o)}};function e(n,r){let i=t.decodeEmbeddedDocumentUri(n.uri),o=i&&t.language.scripts.get(i[0]),a=i&&o?.generated?.embeddedCodes.get(i[1]);if(!a)return[n,r];for(let l of t.documents.getMaps(a)){let s=l.getSourceRange(n.range);s||(s={start:l.sourceDocument.positionAt(0),end:l.sourceDocument.positionAt(l.sourceDocument.getText().length)});let c=l.getSourceRange(n.selectionRange);if(!c)continue;let u=r.map(h=>l.getSourceRange(h)).filter(MC.notEmpty);return[{...n,name:n.name===l.embeddedDocument.uri.substring(l.embeddedDocument.uri.lastIndexOf("/")+1)?l.sourceDocument.uri.substring(l.sourceDocument.uri.lastIndexOf("/")+1):n.name,uri:l.sourceDocument.uri,range:{start:s.start,end:s.end},selectionRange:{start:c.start,end:c.end}},u]}}}wh.register=a4});var Sn=L((mu,hw)=>{(function(t,e){if(typeof mu=="object"&&typeof hw=="object")hw.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var n=e();for(var r in n)(typeof mu=="object"?mu:t)[r]=n[r]}})(mu,()=>(()=>{"use strict";var t={470:i=>{function o(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function a(s,c){for(var u,d="",h=0,f=-1,_=0,g=0;g<=s.length;++g){if(g<s.length)u=s.charCodeAt(g);else{if(u===47)break;u=47}if(u===47){if(!(f===g-1||_===1))if(f!==g-1&&_===2){if(d.length<2||h!==2||d.charCodeAt(d.length-1)!==46||d.charCodeAt(d.length-2)!==46){if(d.length>2){var k=d.lastIndexOf("/");if(k!==d.length-1){k===-1?(d="",h=0):h=(d=d.slice(0,k)).length-1-d.lastIndexOf("/"),f=g,_=0;continue}}else if(d.length===2||d.length===1){d="",h=0,f=g,_=0;continue}}c&&(d.length>0?d+="/..":d="..",h=2)}else d.length>0?d+="/"+s.slice(f+1,g):d=s.slice(f+1,g),h=g-f-1;f=g,_=0}else u===46&&_!==-1?++_:_=-1}return d}var l={resolve:function(){for(var s,c="",u=!1,d=arguments.length-1;d>=-1&&!u;d--){var h;d>=0?h=arguments[d]:(s===void 0&&(s=process.cwd()),h=s),o(h),h.length!==0&&(c=h+"/"+c,u=h.charCodeAt(0)===47)}return c=a(c,!u),u?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(s){if(o(s),s.length===0)return".";var c=s.charCodeAt(0)===47,u=s.charCodeAt(s.length-1)===47;return(s=a(s,!c)).length!==0||c||(s="."),s.length>0&&u&&(s+="/"),c?"/"+s:s},isAbsolute:function(s){return o(s),s.length>0&&s.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var s,c=0;c<arguments.length;++c){var u=arguments[c];o(u),u.length>0&&(s===void 0?s=u:s+="/"+u)}return s===void 0?".":l.normalize(s)},relative:function(s,c){if(o(s),o(c),s===c||(s=l.resolve(s))===(c=l.resolve(c)))return"";for(var u=1;u<s.length&&s.charCodeAt(u)===47;++u);for(var d=s.length,h=d-u,f=1;f<c.length&&c.charCodeAt(f)===47;++f);for(var _=c.length-f,g=h<_?h:_,k=-1,y=0;y<=g;++y){if(y===g){if(_>g){if(c.charCodeAt(f+y)===47)return c.slice(f+y+1);if(y===0)return c.slice(f+y)}else h>g&&(s.charCodeAt(u+y)===47?k=y:y===0&&(k=0));break}var w=s.charCodeAt(u+y);if(w!==c.charCodeAt(f+y))break;w===47&&(k=y)}var m="";for(y=u+k+1;y<=d;++y)y!==d&&s.charCodeAt(y)!==47||(m.length===0?m+="..":m+="/..");return m.length>0?m+c.slice(f+k):(f+=k,c.charCodeAt(f)===47&&++f,c.slice(f))},_makeLong:function(s){return s},dirname:function(s){if(o(s),s.length===0)return".";for(var c=s.charCodeAt(0),u=c===47,d=-1,h=!0,f=s.length-1;f>=1;--f)if((c=s.charCodeAt(f))===47){if(!h){d=f;break}}else h=!1;return d===-1?u?"/":".":u&&d===1?"//":s.slice(0,d)},basename:function(s,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');o(s);var u,d=0,h=-1,f=!0;if(c!==void 0&&c.length>0&&c.length<=s.length){if(c.length===s.length&&c===s)return"";var _=c.length-1,g=-1;for(u=s.length-1;u>=0;--u){var k=s.charCodeAt(u);if(k===47){if(!f){d=u+1;break}}else g===-1&&(f=!1,g=u+1),_>=0&&(k===c.charCodeAt(_)?--_==-1&&(h=u):(_=-1,h=g))}return d===h?h=g:h===-1&&(h=s.length),s.slice(d,h)}for(u=s.length-1;u>=0;--u)if(s.charCodeAt(u)===47){if(!f){d=u+1;break}}else h===-1&&(f=!1,h=u+1);return h===-1?"":s.slice(d,h)},extname:function(s){o(s);for(var c=-1,u=0,d=-1,h=!0,f=0,_=s.length-1;_>=0;--_){var g=s.charCodeAt(_);if(g!==47)d===-1&&(h=!1,d=_+1),g===46?c===-1?c=_:f!==1&&(f=1):c!==-1&&(f=-1);else if(!h){u=_+1;break}}return c===-1||d===-1||f===0||f===1&&c===d-1&&c===u+1?"":s.slice(c,d)},format:function(s){if(s===null||typeof s!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof s);return function(c,u){var d=u.dir||u.root,h=u.base||(u.name||"")+(u.ext||"");return d?d===u.root?d+h:d+"/"+h:h}(0,s)},parse:function(s){o(s);var c={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return c;var u,d=s.charCodeAt(0),h=d===47;h?(c.root="/",u=1):u=0;for(var f=-1,_=0,g=-1,k=!0,y=s.length-1,w=0;y>=u;--y)if((d=s.charCodeAt(y))!==47)g===-1&&(k=!1,g=y+1),d===46?f===-1?f=y:w!==1&&(w=1):f!==-1&&(w=-1);else if(!k){_=y+1;break}return f===-1||g===-1||w===0||w===1&&f===g-1&&f===_+1?g!==-1&&(c.base=c.name=_===0&&h?s.slice(1,g):s.slice(_,g)):(_===0&&h?(c.name=s.slice(1,f),c.base=s.slice(1,g)):(c.name=s.slice(_,f),c.base=s.slice(_,g)),c.ext=s.slice(f,g)),_>0?c.dir=s.slice(0,_-1):h&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,i.exports=l},674:(i,o)=>{if(Object.defineProperty(o,"__esModule",{value:!0}),o.isWindows=void 0,typeof process=="object")o.isWindows=process.platform==="win32";else if(typeof navigator=="object"){let a=navigator.userAgent;o.isWindows=a.indexOf("Windows")>=0}},796:(i,o,a)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.uriToFsPath=o.URI=void 0;let l=a(674),s=/^\w[\w\d+.-]*$/,c=/^\//,u=/^\/\//;function d(E,S){if(!E.scheme&&S)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${E.authority}", path: "${E.path}", query: "${E.query}", fragment: "${E.fragment}"}`);if(E.scheme&&!s.test(E.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(E.path){if(E.authority){if(!c.test(E.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(u.test(E.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let h="",f="/",_=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class g{static isUri(S){return S instanceof g||!!S&&typeof S.authority=="string"&&typeof S.fragment=="string"&&typeof S.path=="string"&&typeof S.query=="string"&&typeof S.scheme=="string"&&typeof S.fsPath=="string"&&typeof S.with=="function"&&typeof S.toString=="function"}scheme;authority;path;query;fragment;constructor(S,D,F,P,T,A=!1){typeof S=="object"?(this.scheme=S.scheme||h,this.authority=S.authority||h,this.path=S.path||h,this.query=S.query||h,this.fragment=S.fragment||h):(this.scheme=function(z,j){return z||j?z:"file"}(S,A),this.authority=D||h,this.path=function(z,j){switch(z){case"https":case"http":case"file":j?j[0]!==f&&(j=f+j):j=f}return j}(this.scheme,F||h),this.query=P||h,this.fragment=T||h,d(this,A))}get fsPath(){return x(this,!1)}with(S){if(!S)return this;let{scheme:D,authority:F,path:P,query:T,fragment:A}=S;return D===void 0?D=this.scheme:D===null&&(D=h),F===void 0?F=this.authority:F===null&&(F=h),P===void 0?P=this.path:P===null&&(P=h),T===void 0?T=this.query:T===null&&(T=h),A===void 0?A=this.fragment:A===null&&(A=h),D===this.scheme&&F===this.authority&&P===this.path&&T===this.query&&A===this.fragment?this:new y(D,F,P,T,A)}static parse(S,D=!1){let F=_.exec(S);return F?new y(F[2]||h,v(F[4]||h),v(F[5]||h),v(F[7]||h),v(F[9]||h),D):new y(h,h,h,h,h)}static file(S){let D=h;if(l.isWindows&&(S=S.replace(/\\/g,f)),S[0]===f&&S[1]===f){let F=S.indexOf(f,2);F===-1?(D=S.substring(2),S=f):(D=S.substring(2,F),S=S.substring(F)||f)}return new y("file",D,S,h,h)}static from(S){let D=new y(S.scheme,S.authority,S.path,S.query,S.fragment);return d(D,!0),D}toString(S=!1){return R(this,S)}toJSON(){return this}static revive(S){if(S){if(S instanceof g)return S;{let D=new y(S);return D._formatted=S.external,D._fsPath=S._sep===k?S.fsPath:null,D}}return S}}o.URI=g;let k=l.isWindows?1:void 0;class y extends g{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=x(this,!1)),this._fsPath}toString(S=!1){return S?R(this,!0):(this._formatted||(this._formatted=R(this,!1)),this._formatted)}toJSON(){let S={$mid:1};return this._fsPath&&(S.fsPath=this._fsPath,S._sep=k),this._formatted&&(S.external=this._formatted),this.path&&(S.path=this.path),this.scheme&&(S.scheme=this.scheme),this.authority&&(S.authority=this.authority),this.query&&(S.query=this.query),this.fragment&&(S.fragment=this.fragment),S}}let w={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(E,S,D){let F,P=-1;for(let T=0;T<E.length;T++){let A=E.charCodeAt(T);if(A>=97&&A<=122||A>=65&&A<=90||A>=48&&A<=57||A===45||A===46||A===95||A===126||S&&A===47||D&&A===91||D&&A===93||D&&A===58)P!==-1&&(F+=encodeURIComponent(E.substring(P,T)),P=-1),F!==void 0&&(F+=E.charAt(T));else{F===void 0&&(F=E.substr(0,T));let z=w[A];z!==void 0?(P!==-1&&(F+=encodeURIComponent(E.substring(P,T)),P=-1),F+=z):P===-1&&(P=T)}}return P!==-1&&(F+=encodeURIComponent(E.substring(P))),F!==void 0?F:E}function C(E){let S;for(let D=0;D<E.length;D++){let F=E.charCodeAt(D);F===35||F===63?(S===void 0&&(S=E.substr(0,D)),S+=w[F]):S!==void 0&&(S+=E[D])}return S!==void 0?S:E}function x(E,S){let D;return D=E.authority&&E.path.length>1&&E.scheme==="file"?`//${E.authority}${E.path}`:E.path.charCodeAt(0)===47&&(E.path.charCodeAt(1)>=65&&E.path.charCodeAt(1)<=90||E.path.charCodeAt(1)>=97&&E.path.charCodeAt(1)<=122)&&E.path.charCodeAt(2)===58?S?E.path.substr(1):E.path[1].toLowerCase()+E.path.substr(2):E.path,l.isWindows&&(D=D.replace(/\//g,"\\")),D}function R(E,S){let D=S?C:m,F="",{scheme:P,authority:T,path:A,query:z,fragment:j}=E;if(P&&(F+=P,F+=":"),(T||P==="file")&&(F+=f,F+=f),T){let $=T.indexOf("@");if($!==-1){let N=T.substr(0,$);T=T.substr($+1),$=N.lastIndexOf(":"),$===-1?F+=D(N,!1,!1):(F+=D(N.substr(0,$),!1,!1),F+=":",F+=D(N.substr($+1),!1,!0)),F+="@"}T=T.toLowerCase(),$=T.lastIndexOf(":"),$===-1?F+=D(T,!1,!0):(F+=D(T.substr(0,$),!1,!0),F+=T.substr($))}if(A){if(A.length>=3&&A.charCodeAt(0)===47&&A.charCodeAt(2)===58){let $=A.charCodeAt(1);$>=65&&$<=90&&(A=`/${String.fromCharCode($+32)}:${A.substr(3)}`)}else if(A.length>=2&&A.charCodeAt(1)===58){let $=A.charCodeAt(0);$>=65&&$<=90&&(A=`${String.fromCharCode($+32)}:${A.substr(2)}`)}F+=D(A,!0,!1)}return z&&(F+="?",F+=D(z,!1,!1)),j&&(F+="#",F+=S?j:m(j,!1,!1)),F}function b(E){try{return decodeURIComponent(E)}catch{return E.length>3?E.substr(0,3)+b(E.substr(3)):E}}o.uriToFsPath=x;let p=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function v(E){return E.match(p)?E.replace(p,S=>b(S)):E}},679:function(i,o,a){var l=this&&this.__createBinding||(Object.create?function(_,g,k,y){y===void 0&&(y=k);var w=Object.getOwnPropertyDescriptor(g,k);w&&!("get"in w?!g.__esModule:w.writable||w.configurable)||(w={enumerable:!0,get:function(){return g[k]}}),Object.defineProperty(_,y,w)}:function(_,g,k,y){y===void 0&&(y=k),_[y]=g[k]}),s=this&&this.__setModuleDefault||(Object.create?function(_,g){Object.defineProperty(_,"default",{enumerable:!0,value:g})}:function(_,g){_.default=g}),c=this&&this.__importStar||function(_){if(_&&_.__esModule)return _;var g={};if(_!=null)for(var k in _)k!=="default"&&Object.prototype.hasOwnProperty.call(_,k)&&l(g,_,k);return s(g,_),g};Object.defineProperty(o,"__esModule",{value:!0}),o.Utils=void 0;let u=c(a(470)),d=u.posix||u,h="/";var f;(function(_){_.joinPath=function(g,...k){return g.with({path:d.join(g.path,...k)})},_.resolvePath=function(g,...k){let y=g.path,w=!1;y[0]!==h&&(y=h+y,w=!0);let m=d.resolve(y,...k);return w&&m[0]===h&&!g.authority&&(m=m.substring(1)),g.with({path:m})},_.dirname=function(g){if(g.path.length===0||g.path===h)return g;let k=d.dirname(g.path);return k.length===1&&k.charCodeAt(0)===46&&(k=""),g.with({path:k})},_.basename=function(g){return d.basename(g.path)},_.extname=function(g){return d.extname(g.path)}})(f||(o.Utils=f={}))}},e={};function n(i){var o=e[i];if(o!==void 0)return o.exports;var a=e[i]={exports:{}};return t[i].call(a.exports,a,a.exports,n),a.exports}var r={};return(()=>{var i=r;Object.defineProperty(i,"__esModule",{value:!0}),i.Utils=i.URI=void 0;let o=n(796);Object.defineProperty(i,"URI",{enumerable:!0,get:function(){return o.URI}});let a=n(679);Object.defineProperty(i,"Utils",{enumerable:!0,get:function(){return a.Utils}})})(),r})())});var xn=L(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.pushEditToDocumentChanges=ct.transformWorkspaceEdit=ct.transformWorkspaceSymbol=ct.transformTextEdit=ct.transformSelectionRanges=ct.transformSelectionRange=ct.transformLocations=ct.transformLocation=ct.transformHover=ct.transformFoldingRanges=ct.transformDocumentSymbol=ct.transformCompletionList=ct.transformCompletionItem=ct.transformMarkdown=ct.transformDocumentLinkTarget=void 0;var gu=Je(),l4=Sn(),yh=on();function LC(t,e){let n=l4.URI.parse(t),r=n.with({fragment:""}).toString(!0),i=e.decodeEmbeddedDocumentUri(r),o=i&&e.language.scripts.get(i[0]),a=i&&o?.generated?.embeddedCodes.get(i[1]);if(a)for(let l of e.documents.getMaps(a)){if(!l.map.mappings.some(u=>(0,gu.isDocumentLinkEnabled)(u.data)))continue;t=l.sourceDocument.uri;let c=n.fragment.match(/^L(\d+)(,(\d+))?(-L(\d+)(,(\d+))?)?$/);if(c){let u=Number(c[1])-1,d=Number(c[3]??1)-1;if(c[5]!==void 0){let h=Number(c[5])-1,f=Number(c[7]??1)-1,_=l.getSourceRange({start:{line:u,character:d},end:{line:h,character:f}});if(_){t+="#L"+(_.start.line+1)+","+(_.start.character+1),t+="-L"+(_.end.line+1)+","+(_.end.character+1);break}}else{let h=l.getSourcePosition({line:u,character:d});if(h){t+="#L"+(h.line+1)+","+(h.character+1);break}}}}return t}ct.transformDocumentLinkTarget=LC;function fw(t,e){return t.replace(/(\[[^\]]+\])(\([^)]+\))/g,n=>{let r=n.match(/(\[[^\]]+\])(\([^)]+\))/);return`${r[1]}(${LC(r[2].slice(1,-1),e)})`})}ct.transformMarkdown=fw;function OC(t,e,n,r){return{...t,additionalTextEdits:t.additionalTextEdits?.map(i=>mw(i,e,n)).filter(yh.notEmpty),textEdit:t.textEdit?mw(t.textEdit,e,n):void 0,documentation:t.documentation?typeof t.documentation=="string"?fw(t.documentation,r):t.documentation.kind==="markdown"?{kind:"markdown",value:fw(t.documentation.value,r)}:t.documentation:void 0}}ct.transformCompletionItem=OC;function c4(t,e,n,r){return{isIncomplete:t.isIncomplete,itemDefaults:t.itemDefaults?{...t.itemDefaults,editRange:t.itemDefaults.editRange?"replace"in t.itemDefaults.editRange?{insert:e(t.itemDefaults.editRange.insert),replace:e(t.itemDefaults.editRange.replace)}:e(t.itemDefaults.editRange):void 0}:void 0,items:t.items.map(i=>OC(i,e,n,r))}}ct.transformCompletionList=c4;function NC(t,e){let n=e(t.range);if(!n)return;let r=e(t.selectionRange);if(r)return{...t,range:n,selectionRange:r,children:t.children?.map(i=>NC(i,e)).filter(yh.notEmpty)}}ct.transformDocumentSymbol=NC;function u4(t,e){let n=[];for(let r of t){let i=e({start:{line:r.startLine,character:r.startCharacter??0},end:{line:r.endLine,character:r.endCharacter??0}});i&&(r.startLine=i.start.line,r.endLine=i.end.line,r.startCharacter!==void 0&&(r.startCharacter=i.start.character),r.endCharacter!==void 0&&(r.endCharacter=i.end.character),n.push(r))}return n}ct.transformFoldingRanges=u4;function d4(t,e){if(!t?.range)return t;let n=e(t.range);if(n)return{...t,range:n}}ct.transformHover=d4;function zC(t,e){let n=e(t.range);if(n)return{...t,range:n}}ct.transformLocation=zC;function h4(t,e){return t.map(n=>zC(n,e)).filter(yh.notEmpty)}ct.transformLocations=h4;function gw(t,e){let n=e(t.range);if(!n)return;let r=t.parent?gw(t.parent,e):void 0;return{range:n,parent:r}}ct.transformSelectionRange=gw;function p4(t,e){return t.map(n=>gw(n,e)).filter(yh.notEmpty)}ct.transformSelectionRanges=p4;function mw(t,e,n){if("range"in t){let r=e(t.range);if(r)return{...t,range:r};let i=pw(e,t.range,t.newText,n);if(i)return{...t,range:i.range,newText:i.newText}}else if("replace"in t&&"insert"in t){let r=e(t.insert),i=r?e(t.replace):void 0;if(r&&i)return{...t,insert:r,replace:i};let o=pw(e,t.insert,t.newText,n),a=o?pw(e,t.replace,t.newText,n):void 0;if(o&&a&&o.newText===a.newText)return{...t,insert:o.range,replace:a.range,newText:o.newText}}}ct.transformTextEdit=mw;function pw(t,e,n,r){if(e.start.line===e.end.line&&e.end.character>e.start.character){let i=e.start.character;for(;n.length&&e.end.character>i;){let o={line:e.start.line,character:e.start.character+1};if(r.getText({start:e.start,end:o})===n[0]){n=n.slice(1),i++;let a=t({start:o,end:e.end});if(a)return{newText:n,range:a}}else break}}}function f4(t,e){if(!("range"in t.location))return t;let n=e(t.location);if(n)return{...t,location:n}}ct.transformWorkspaceSymbol=f4;function m4(t,e,n,r={}){let i={},o=!1;for(let a in t.changeAnnotations){i.changeAnnotations??={};let l=t.changeAnnotations[a],s=e.decodeEmbeddedDocumentUri(a),c=s&&e.language.scripts.get(s[0]),u=s&&c?.generated?.embeddedCodes.get(s[1]);if(u)for(let d of e.documents.getMaps(u)){let h=d.sourceDocument.uri;i.changeAnnotations[h]=l}else i.changeAnnotations[a]=l}for(let a in t.changes){i.changes??={};let l=e.decodeEmbeddedDocumentUri(a),s=l&&e.language.scripts.get(l[0]),c=l&&s?.generated?.embeddedCodes.get(l[1]);if(c)for(let u of e.documents.getMaps(c)){let d=t.changes[a];for(let h of d)if(n==="rename"||n==="fileName"||n==="codeAction"){let f,_=u.getSourceRange(h.range,g=>(f=g,(0,gu.isRenameEnabled)(g)));_&&(i.changes[u.sourceDocument.uri]??=[],i.changes[u.sourceDocument.uri].push({newText:(0,gu.resolveRenameEditText)(h.newText,f),range:_}),o=!0)}else{let f=u.getSourceRange(h.range);f&&(i.changes[u.sourceDocument.uri]??=[],i.changes[u.sourceDocument.uri].push({newText:h.newText,range:f}),o=!0)}}else i.changes[a]=t.changes[a],o=!0}if(t.documentChanges)for(let a of t.documentChanges){i.documentChanges??=[];let l;if("textDocument"in a){let s=e.decodeEmbeddedDocumentUri(a.textDocument.uri),c=s&&e.language.scripts.get(s[0]),u=s&&c?.generated?.embeddedCodes.get(s[1]);if(u)for(let d of e.documents.getMaps(u)){l={textDocument:{uri:d.sourceDocument.uri,version:r[d.sourceDocument.uri]??null},edits:[]};for(let h of a.edits)if(n==="rename"||n==="fileName"||n==="codeAction"){let f,_=d.getSourceRange(h.range,g=>(f=g,(0,gu.isRenameEnabled)(g)));_&&l.edits.push({annotationId:"annotationId"in h?h.annotationId:void 0,newText:(0,gu.resolveRenameEditText)(h.newText,f),range:_})}else{let f=d.getSourceRange(h.range);f&&l.edits.push({annotationId:"annotationId"in h?h.annotationId:void 0,newText:h.newText,range:f})}l.edits.length||(l=void 0)}else l=a}else if(a.kind==="create")l=a;else if(a.kind==="rename"){let s=e.decodeEmbeddedDocumentUri(a.oldUri),c=s&&e.language.scripts.get(s[0]),u=s&&c?.generated?.embeddedCodes.get(s[1]);if(u)for(let d of e.documents.getMaps(u))l={kind:"rename",oldUri:d.sourceDocument.uri,newUri:a.newUri,options:a.options,annotationId:a.annotationId};else l=a}else if(a.kind==="delete"){let s=e.decodeEmbeddedDocumentUri(a.uri),c=s&&e.language.scripts.get(s[0]),u=s&&c?.generated?.embeddedCodes.get(s[1]);if(u)for(let d of e.documents.getMaps(u))l={kind:"delete",uri:d.sourceDocument.uri,options:a.options,annotationId:a.annotationId};else l=a}l&&(qC(i.documentChanges,l),o=!0)}if(o)return i}ct.transformWorkspaceEdit=m4;function qC(t,e){let n=t.find(r=>"textDocument"in r&&"textDocument"in e&&r.textDocument.uri===e.textDocument.uri);n?n.edits.push(...e.edits):t.push(e)}ct.pushEditToDocumentChanges=qC});var HC=L(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.register=void 0;var g4=ot(),WC=on(),b4=Ci(),v4=Et(),UC=xn(),w4=Je();function y4(t){return async(e,n,r,i=g4.NoneCancellationToken)=>{if(!t.language.scripts.get(e))return;let a=new WeakSet;return await(0,v4.languageFeatureWorker)(t,e,()=>({range:n,codeActionContext:r}),function*(l){let s={diagnostics:(0,UC.transformLocations)(r.diagnostics,u=>l.getGeneratedRange(u)),only:r.only},c=(0,WC.findOverlapCodeRange)(l.sourceDocument.offsetAt(n.start),l.sourceDocument.offsetAt(n.end),l.map,w4.isCodeActionsEnabled);c&&(yield{range:{start:l.embeddedDocument.positionAt(c.start),end:l.embeddedDocument.positionAt(c.end)},codeActionContext:s})},async(l,s,{range:c,codeActionContext:u})=>{if(i.isCancellationRequested)return;let d=t.services.indexOf(l),h=u.diagnostics.filter(_=>{let g=_.data;return g&&g.version!==s.version?!1:g?.serviceIndex===d}).map(_=>{let g=_.data;return{..._,...g.original}}),f=await l[1].provideCodeActions?.(s,c,{...u,diagnostics:h},i);if(f?.forEach(_=>{_.data={uri:e,version:s.version,original:{data:_.data,edit:_.edit},serviceIndex:t.services.indexOf(l)}}),f&&l[1].transformCodeAction)for(let _=0;_<f.length;_++){let g=l[1].transformCodeAction(f[_]);g&&(f[_]=g,a.add(g))}return f},l=>l.map(s=>{if(a.has(s))return s;if(s.edit){let c=(0,UC.transformWorkspaceEdit)(s.edit,t,"codeAction");if(!c)return;s.edit=c}return s}).filter(WC.notEmpty),l=>b4.withCodeAction(l.flat()))}}_h.register=y4});var BC=L(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});Sh.register=void 0;var _4=ot(),S4=on(),x4=Et(),jC=Je();function k4(t){return async(e,n=_4.NoneCancellationToken)=>await(0,x4.documentFeatureWorker)(t,e,r=>r.map.mappings.some(i=>(0,jC.isCodeLensEnabled)(i.data)),async(r,i)=>{if(n.isCancellationRequested)return;let o=await r[1].provideCodeLenses?.(i,n),a=t.services.indexOf(r);o?.forEach(c=>{c.data={kind:"normal",uri:e,original:{data:c.data},serviceIndex:a}});let s=(await r[1].provideReferencesCodeLensRanges?.(i,n))?.map(c=>({range:c,data:{kind:"references",sourceFileUri:e,workerFileUri:i.uri,workerFileRange:c,serviceIndex:a}}));return o=[...o??[],...s??[]],o},(r,i)=>i?r.map(o=>{let a=i.getSourceRange(o.range,jC.isCodeLensEnabled);if(a)return{...o,range:a}}).filter(S4.notEmpty):r,r=>r.flat())??[]}Sh.register=k4});var $C=L(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});xh.register=void 0;var C4=Et(),T4=on(),E4=ot(),D4=Je();function A4(t){return(e,n,r,i=E4.NoneCancellationToken)=>(0,C4.languageFeatureWorker)(t,e,()=>r,function*(o){for(let a of o.getGeneratedRanges(r,D4.isColorEnabled))yield a},(o,a,l)=>{if(!i.isCancellationRequested)return o[1].provideColorPresentations?.(a,n,l,i)},(o,a)=>a?o.map(l=>{if(l.textEdit){let s=a.getSourceRange(l.textEdit.range);if(!s)return;l.textEdit.range=s}if(l.additionalTextEdits)for(let s of l.additionalTextEdits){let c=a.getSourceRange(s.range);if(!c)return;s.range=c}return l}).filter(T4.notEmpty):o)}xh.register=A4});var GC=L(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});kh.register=void 0;var bw=Je(),R4=ot(),VC=xn(),F4=Et();function I4(t){let e;return async(n,r,i={triggerKind:1},o=R4.NoneCancellationToken)=>{let a=t.language.scripts.get(n);if(!a)return{isIncomplete:!1,items:[]};if(i?.triggerKind===3&&e?.uri===n)for(let c of e.results){if(!c.list?.isIncomplete)continue;let u=t.services.findIndex(d=>d[1]===c.service);if(c.embeddedDocumentUri){let d=t.decodeEmbeddedDocumentUri(c.embeddedDocumentUri),h=d&&t.language.scripts.get(d[0]),f=d&&h?.generated?.embeddedCodes.get(d[1]);if(!f)continue;for(let _ of t.documents.getMaps(f))for(let g of _.getGeneratedPositions(r,k=>(0,bw.isCompletionEnabled)(k)))if(c.service.provideCompletionItems&&(c.list=await c.service.provideCompletionItems(_.embeddedDocument,g,i,o),!!c.list)){for(let k of c.list.items)k.data={uri:n,original:{additionalTextEdits:k.additionalTextEdits,textEdit:k.textEdit,data:k.data},serviceIndex:u,embeddedDocumentUri:_.embeddedDocument.uri};c.list=(0,VC.transformCompletionList)(c.list,k=>_.getSourceRange(k),_.embeddedDocument,t)}}else{if(!c.service.provideCompletionItems)continue;let d=t.documents.get(n,a.languageId,a.snapshot);if(c.list=await c.service.provideCompletionItems(d,r,i,o),!c.list)continue;for(let h of c.list.items)h.data={uri:n,original:{additionalTextEdits:h.additionalTextEdits,textEdit:h.textEdit,data:h.data},serviceIndex:u,embeddedDocumentUri:void 0}}}else{e={uri:n,results:[]};let c=!0,u,d=[...t.services].filter(f=>!t.disabledServicePlugins.has(f[1])).sort((f,_)=>l(f[1],_[1])),h=async(f,_,g,k)=>{for(let y of d){if(o.isCancellationRequested)break;if(!y[1].provideCompletionItems||y[1].isAdditionalCompletion&&!c||i?.triggerCharacter&&!y[0].triggerCharacters?.includes(i.triggerCharacter))continue;let w=k&&typeof k.completion=="object"&&k.completion.isAdditional||y[1].isAdditionalCompletion;if(u&&(!w||u!==f.uri)||y[1].isAdditionalCompletion&&e?.results.some(x=>x.service===y[1]))continue;let m=await y[1].provideCompletionItems(f,_,i,o);if(!m||!m.items.length)continue;typeof k?.completion=="object"&&k.completion.onlyImport&&(m.items=m.items.filter(x=>!!x.labelDetails)),w||(u=f.uri);let C=t.services.indexOf(y);for(let x of m.items)x.data={uri:n,original:{additionalTextEdits:x.additionalTextEdits,textEdit:x.textEdit,data:x.data},serviceIndex:C,embeddedDocumentUri:g?f.uri:void 0};g&&(m=(0,VC.transformCompletionList)(m,x=>g.getSourceRange(x,bw.isCompletionEnabled),f,t)),e?.results.push({embeddedDocumentUri:g?f.uri:void 0,service:y[1],list:m})}c=!1};if(a.generated)for(let f of(0,F4.forEachEmbeddedDocument)(t,a.id,a.generated.root)){let _;for(let g of f.getGeneratedPositions(r,k=>(_=k,(0,bw.isCompletionEnabled)(k))))await h(f.embeddedDocument,g,f,_)}else{let f=t.documents.get(n,a.languageId,a.snapshot);await h(f,r)}}return s(e.results.map(c=>c.list));function l(c,u){return(u.isAdditionalCompletion?-1:1)-(c.isAdditionalCompletion?-1:1)}function s(c){return{isIncomplete:c.some(u=>u?.isIncomplete),itemDefaults:c.find(u=>u?.itemDefaults)?.itemDefaults,items:c.map(u=>u?.items??[]).flat()}}}}kh.register=I4});var JC=L(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.register=void 0;var M4=ot(),P4=on(),KC=Ci(),L4=Et();function O4(t,e,n){return(r,i,o=M4.NoneCancellationToken)=>(0,L4.languageFeatureWorker)(t,r,()=>i,a=>a.getGeneratedPositions(i,n),async(a,l,s)=>{if(o.isCancellationRequested)return;let c=KC.createLocationSet(),u=[];return await d(l,s,void 0),u;async function d(h,f,_){let g=a[1][e];if(!g||c.has({uri:h.uri,range:{start:f,end:f}}))return;c.add({uri:h.uri,range:{start:f,end:f}});let k=await g?.(h,f,o)??[];for(let y of k){let w=!1;c.add({uri:y.targetUri,range:{start:y.targetRange.start,end:y.targetRange.start}});let m=t.decodeEmbeddedDocumentUri(y.targetUri),C=m&&t.language.scripts.get(m[0]),x=m&&C?.generated?.embeddedCodes.get(m[1]),R=x&&C?t.documents.getLinkedCodeMap(x,C.id):void 0;if(R)for(let b of R.getLinkedCodePositions(y.targetSelectionRange.start))c.has({uri:R.document.uri,range:{start:b,end:b}})||(w=!0,await d(R.document,b,_??y));w||(_?u.push({...y,originSelectionRange:_.originSelectionRange}):u.push(y))}}},(a,l)=>a.map(s=>{if(s.originSelectionRange&&l){let f=N4(l,s.originSelectionRange,i);if(!f)return;s.originSelectionRange=f}let c=!1,u=t.decodeEmbeddedDocumentUri(s.targetUri),d=u&&t.language.scripts.get(u[0]),h=u&&d?.generated?.embeddedCodes.get(u[1]);if(h){for(let f of t.documents.getMaps(h)){let _=f.getSourceRange(s.targetSelectionRange);if(!_)continue;c=!0;let g=f.getSourceRange(s.targetRange);s.targetUri=f.sourceDocument.uri,s.targetRange=g??_,s.targetSelectionRange=_}if(e==="provideDefinition"&&!c){for(let f of t.documents.getMaps(h))if(f&&f.sourceDocument.uri!==r)return{...s,targetUri:f.sourceDocument.uri,targetRange:{start:{line:0,character:0},end:{line:0,character:0}},targetSelectionRange:{start:{line:0,character:0},end:{line:0,character:0}}};return}}return s}).filter(P4.notEmpty),a=>KC.withLocationLinks(a.flat()))}Ch.register=O4;function N4(t,e,n){let r;for(let i of t.getSourceRanges(e))if(r||(r=i),(i.start.line<n.line||i.start.line===n.line&&i.start.character<=n.character)&&(i.end.line>n.line||i.end.line===n.line&&i.end.character>=n.character))return i;return r}});var vw=L(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.register=Jo.errorMarkups=Jo.updateRange=void 0;var XC=Je(),z4=ot(),q4=on(),W4=Ci(),U4=Et();function YC(t,e){if(QC(t.start,e,!1)&&QC(t.end,e,!0))return t.end.line===t.start.line&&t.end.character<=t.start.character&&t.end.character++,t}Jo.updateRange=YC;function QC(t,e,n){if(e.range.end.line>t.line){if(e.newEnd.line>t.line)return!0;if(e.newEnd.line===t.line)return t.character=Math.min(t.character,e.newEnd.character),!0;if(e.newEnd.line<t.line)return t.line=e.newEnd.line,t.character=e.newEnd.character,!0}else if(e.range.end.line===t.line){let r=e.newEnd.character-e.range.end.character;if(t.character>=e.range.end.character){if(e.newEnd.line!==e.range.end.line)t.line=e.newEnd.line,t.character=e.newEnd.character+t.character-e.range.end.character;else if(n?e.range.end.character<t.character:e.range.end.character<=t.character)t.character+=r;else{let i=e.range.end.character-t.character;-r>i&&(t.character+=r+i)}return!0}else{if(e.newEnd.line===e.range.end.line){let i=e.range.end.character-t.character;-r>i&&(t.character+=r+i)}else e.newEnd.line<e.range.end.line&&(t.line=e.newEnd.line,t.character=e.newEnd.character);return!0}}else if(e.range.end.line<t.line)return t.line+=e.newEnd.line-e.range.end.line,!0;return!1}Jo.errorMarkups={};function H4(t){let e=new Map,n={semantic:new Map,syntactic:new Map};return t.env.onDidChangeConfiguration?.(()=>{e.clear(),n.semantic.clear(),n.syntactic.clear()}),async(i,o=z4.NoneCancellationToken,a)=>{let l=t.language.scripts.get(i);if(!l)return[];let s=t.documents.get(i,l.languageId,l.snapshot),c=e.get(i)??e.set(i,{semantic:{errors:[]},syntactic:{errors:[]}}).get(i),u=!1,d=!1,h=0;for(let k of Object.values(c)){let y=k.snapshot,w=k.document,m=y?l.snapshot.getChangeRange(y):void 0;if(k.snapshot=l.snapshot,k.document=s,!u&&w&&m){let C={range:{start:w.positionAt(m.span.start),end:w.positionAt(m.span.start+m.span.length)},newEnd:s.positionAt(m.span.start+m.newLength)};for(let x of k.errors)if(!YC(x.range,C)){u=!0;break}}}return await g("provideDiagnostics",n.syntactic,c.syntactic),await f(),await g("provideSemanticDiagnostics",n.semantic,c.semantic),await _();async function f(){d&&!u&&(a?.(await _()),d=!1)}async function _(){return Object.values(c).flatMap(({errors:k})=>k)}async function g(k,y,w){let m=await(0,U4.documentFeatureWorker)(t,i,C=>C.map.mappings.some(x=>(0,XC.isDiagnosticsEnabled)(x.data)),async(C,x)=>{if(o&&(Date.now()-h>=5&&(await(0,q4.sleep)(5),h=Date.now()),o.isCancellationRequested))return;let R=t.services.indexOf(C),b=y.get(R)??y.set(R,new Map).get(R),p=b.get(x.uri);if(k!=="provideSemanticDiagnostics"&&p&&p.documentVersion===x.version)return p.errors;let v=await C[1][k]?.(x,o)||[];return v.forEach(E=>{E.data={uri:i,version:x.version,serviceIndex:R,isFormat:!1,original:{data:E.data},documentUri:x.uri}}),d=!0,b.set(x.uri,{documentVersion:x.version,errors:v}),v},(C,x)=>r(C,x,XC.shouldReportDiagnostics),C=>W4.withDiagnostics(C.flat()));m&&(w.errors=m,w.snapshot=l?.snapshot)}};function r(i,o,a){let l=[];for(let s of i){let c={...s};if(o){let u=o.getSourceRange(s.range,a);if(!u)continue;c.range=u}if(c.relatedInformation){let u=[];for(let d of c.relatedInformation){let h=t.decodeEmbeddedDocumentUri(d.location.uri),f=h&&t.language.scripts.get(h[0]),_=h&&f?.generated?.embeddedCodes.get(h[1]);if(_)for(let g of t.documents.getMaps(_)){let k=g.getSourceRange(d.location.range,a);k&&u.push({location:{uri:g.sourceDocument.uri,range:k},message:d.message})}else u.push(d)}c.relatedInformation=u}l.push(c)}return l}}Jo.register=H4});var eT=L(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});Th.register=void 0;var ZC=Je(),j4=ot(),B4=on(),$4=Et();function V4(t){return(e,n=j4.NoneCancellationToken)=>(0,$4.documentFeatureWorker)(t,e,r=>r.map.mappings.some(i=>(0,ZC.isColorEnabled)(i.data)),(r,i)=>{if(!n.isCancellationRequested)return r[1].provideDocumentColors?.(i,n)},(r,i)=>i?r.map(o=>{let a=i.getSourceRange(o.range,ZC.isColorEnabled);if(a)return{range:a,color:o.color}}).filter(B4.notEmpty):r,r=>r.flat())}Th.register=V4});var tT=L(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});Eh.register=void 0;var G4=Et(),K4=ot(),J4=xn();function X4(t){return(e,n,r,i=K4.NoneCancellationToken)=>(0,G4.languageFeatureWorker)(t,e,()=>n,function*(o){for(let a of o.getGeneratedPositions(n))yield a},(o,a,l)=>{if(!i.isCancellationRequested)return o[1].provideDocumentDropEdits?.(a,l,r,i)},o=>(o.additionalEdit&&(o.additionalEdit=(0,J4.transformWorkspaceEdit)(o.additionalEdit,t,void 0)),o))}Eh.register=X4});var Va=L((Ah,Dh)=>{var Q4=Ah&&Ah.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))};(function(t){if(typeof Dh=="object"&&typeof Dh.exports=="object"){var e=t(require,Ah);e!==void 0&&(Dh.exports=e)}else typeof define=="function"&&define.amd&&define(["require","exports"],t)})(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextDocument=void 0;var n=function(){function s(c,u,d,h){this._uri=c,this._languageId=u,this._version=d,this._content=h,this._lineOffsets=void 0}return Object.defineProperty(s.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),s.prototype.getText=function(c){if(c){var u=this.offsetAt(c.start),d=this.offsetAt(c.end);return this._content.substring(u,d)}return this._content},s.prototype.update=function(c,u){for(var d=0,h=c;d<h.length;d++){var f=h[d];if(s.isIncremental(f)){var _=a(f.range),g=this.offsetAt(_.start),k=this.offsetAt(_.end);this._content=this._content.substring(0,g)+f.text+this._content.substring(k,this._content.length);var y=Math.max(_.start.line,0),w=Math.max(_.end.line,0),m=this._lineOffsets,C=o(f.text,!1,g);if(w-y===C.length)for(var x=0,R=C.length;x<R;x++)m[x+y+1]=C[x];else C.length<1e4?m.splice.apply(m,Q4([y+1,w-y],C,!1)):this._lineOffsets=m=m.slice(0,y+1).concat(C,m.slice(w+1));var b=f.text.length-(k-g);if(b!==0)for(var x=y+1+C.length,R=m.length;x<R;x++)m[x]=m[x]+b}else if(s.isFull(f))this._content=f.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=u},s.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=o(this._content,!0)),this._lineOffsets},s.prototype.positionAt=function(c){c=Math.max(Math.min(c,this._content.length),0);var u=this.getLineOffsets(),d=0,h=u.length;if(h===0)return{line:0,character:c};for(;d<h;){var f=Math.floor((d+h)/2);u[f]>c?h=f:d=f+1}var _=d-1;return{line:_,character:c-u[_]}},s.prototype.offsetAt=function(c){var u=this.getLineOffsets();if(c.line>=u.length)return this._content.length;if(c.line<0)return 0;var d=u[c.line],h=c.line+1<u.length?u[c.line+1]:this._content.length;return Math.max(Math.min(d+c.character,h),d)},Object.defineProperty(s.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),s.isIncremental=function(c){var u=c;return u!=null&&typeof u.text=="string"&&u.range!==void 0&&(u.rangeLength===void 0||typeof u.rangeLength=="number")},s.isFull=function(c){var u=c;return u!=null&&typeof u.text=="string"&&u.range===void 0&&u.rangeLength===void 0},s}(),r;(function(s){function c(h,f,_,g){return new n(h,f,_,g)}s.create=c;function u(h,f,_){if(h instanceof n)return h.update(f,_),h;throw new Error("TextDocument.update: document must be created by TextDocument.create")}s.update=u;function d(h,f){for(var _=h.getText(),g=i(f.map(l),function(R,b){var p=R.range.start.line-b.range.start.line;return p===0?R.range.start.character-b.range.start.character:p}),k=0,y=[],w=0,m=g;w<m.length;w++){var C=m[w],x=h.offsetAt(C.range.start);if(x<k)throw new Error("Overlapping edit");x>k&&y.push(_.substring(k,x)),C.newText.length&&y.push(C.newText),k=h.offsetAt(C.range.end)}return y.push(_.substr(k)),y.join("")}s.applyEdits=d})(r||(e.TextDocument=r={}));function i(s,c){if(s.length<=1)return s;var u=s.length/2|0,d=s.slice(0,u),h=s.slice(u);i(d,c),i(h,c);for(var f=0,_=0,g=0;f<d.length&&_<h.length;){var k=c(d[f],h[_]);k<=0?s[g++]=d[f++]:s[g++]=h[_++]}for(;f<d.length;)s[g++]=d[f++];for(;_<h.length;)s[g++]=h[_++];return s}function o(s,c,u){u===void 0&&(u=0);for(var d=c?[u]:[],h=0;h<s.length;h++){var f=s.charCodeAt(h);(f===13||f===10)&&(f===13&&h+1<s.length&&s.charCodeAt(h+1)===10&&h++,d.push(u+h+1))}return d}function a(s){var c=s.start,u=s.end;return c.line>u.line||c.line===u.line&&c.character>u.character?{start:u,end:c}:s}function l(s){var c=a(s.range);return c!==s.range?{newText:s.newText,range:c}:s}})});var rT=L(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});Ih.register=void 0;var Rh=Je(),Fh=Va(),Y4=gh(),Z4=ot(),nT=on(),e9=Et();function t9(t){let e=0;return async(r,i,o,a,l=Z4.NoneCancellationToken)=>{let s=t.language.scripts.get(r);if(!s)return;let c=t.documents.get(r,s.languageId,s.snapshot);if(o??={start:c.positionAt(0),end:c.positionAt(c.getText().length)},!s.generated)return a?(await f(c,c,s,void 0,0,a.position,a.ch))?.edits:(await f(c,c,s,void 0,0,o,void 0))?.edits;let u=new Map,d=c.offsetAt(o.start),h=c.offsetAt(o.end);for(let _ of(0,Rh.forEachEmbeddedCode)(s.generated.root)){let g=t.language.maps.get(_);if(g){let k=(0,nT.findOverlapCodeRange)(d,h,g,Rh.isFormattingEnabled);if(k){k.start===g.mappings[0].generatedOffsets[0]&&(k.start=0);let y=g.mappings[g.mappings.length-1];k.end===y.generatedOffsets[y.generatedOffsets.length-1]+y.lengths[y.lengths.length-1]&&(k.end=_.snapshot.getLength()),u.set(_.id,k)}}}try{let _=c,g=s.snapshot,k=t.language.scripts.set(s.id+".tmp",s.snapshot,s.languageId,[s.generated.languagePlugin])?.generated?.root;if(!k)return;let y=0;for(;;){let C=(0,e9.getEmbeddedFilesByLevel)(t,s.id,k,y++);if(C.length===0)break;let x=[];for(let R of C){if(!R.mappings.some(E=>(0,Rh.isFormattingEnabled)(E.data)))continue;let b=n(R,r,s.languageId,g);if(!b)continue;let p,v=u.get(R.id);if(a){let E=b.getGeneratedPosition(a.position);E&&(p=await f(b.sourceDocument,b.embeddedDocument,s,R,y,E,a.ch))}else v&&(p=await f(b.sourceDocument,b.embeddedDocument,s,R,y,{start:b.embeddedDocument.positionAt(v.start),end:b.embeddedDocument.positionAt(v.end)}));if(p)for(let E of p.edits){let S=b.getSourceRange(E.range);S&&x.push({newText:E.newText,range:S})}}if(x.length>0){let R=Fh.TextDocument.applyEdits(c,x);if(c=Fh.TextDocument.create(c.uri,c.languageId,c.version+1,R),g=(0,nT.stringToSnapshot)(R),k=t.language.scripts.set(s.id+".tmp",g,s.languageId,[s.generated.languagePlugin])?.generated?.root,!k)break}}return c.getText()===_.getText()?void 0:[{range:{start:_.positionAt(0),end:_.positionAt(_.getText().length)},newText:c.getText()}]}finally{t.language.scripts.delete(s.id+".tmp")}async function f(_,g,k,y,w,m,C){if(t.disabledEmbeddedDocumentUris.has(g.uri))return;let x;if(m??={start:g.positionAt(0),end:g.positionAt(g.getText().length)},y){if(x={level:w-1,initialIndentLevel:0},y.mappings.length){let b=y.mappings[0].sourceOffsets[0],p=_.positionAt(b);x.initialIndentLevel=n9(_.getText(),_.offsetAt({line:p.line,character:0}),i)}for(let R of t.services)t.disabledServicePlugins.has(R[1])||(x=await R[1].resolveEmbeddedCodeFormattingOptions?.(k,y,x,l)??x)}for(let R of t.services){if(t.disabledServicePlugins.has(R[1]))continue;if(l.isCancellationRequested)break;let b;try{C!==void 0&&m&&"line"in m&&"character"in m?R[0].autoFormatTriggerCharacters?.includes(C)&&(b=await R[1].provideOnTypeFormattingEdits?.(g,m,C,i,x,l)):C===void 0&&m&&"start"in m&&"end"in m&&(b=await R[1].provideDocumentFormattingEdits?.(g,m,i,x,l))}catch(p){console.warn(p)}if(b)return{service:R,edits:b}}}};function n(r,i,o,a){let l=new Map;if((0,Rh.updateVirtualCodeMapOfMap)(r,l,s=>{if(!s)return[i,a]}),l.has(i)&&l.get(i)[0]===a){let s=l.get(i),c=e++;return new Y4.SourceMapWithDocuments(Fh.TextDocument.create(i,o,c,a.getText(0,a.getLength())),Fh.TextDocument.create(t.encodeEmbeddedDocumentUri(i,r.id),r.languageId,c,r.snapshot.getText(0,r.snapshot.getLength())),s[1])}}}Ih.register=t9;function n9(t,e,n){let r=0,i=n.tabSize||4;for(;e<t.length;){let o=t.charAt(e);if(o===" ")r++;else if(o===" ")r+=i;else break;e++}return Math.floor(r/i)}});var oT=L(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.register=void 0;var r9=Et(),i9=Ci(),o9=on(),s9=ot(),iT=Je();function a9(t){return(e,n,r=s9.NoneCancellationToken)=>(0,r9.languageFeatureWorker)(t,e,()=>n,i=>i.getGeneratedPositions(n,iT.isHighlightEnabled),async(i,o,a)=>{if(r.isCancellationRequested)return;let l=i9.createLocationSet(),s=[];return await c(o,a),s;async function c(u,d){if(!i[1].provideDocumentHighlights||l.has({uri:u.uri,range:{start:d,end:d}}))return;l.add({uri:u.uri,range:{start:d,end:d}});let h=await i[1].provideDocumentHighlights(u,d,r)??[];for(let f of h){let _=!1;l.add({uri:u.uri,range:{start:f.range.start,end:f.range.start}});let g=t.decodeEmbeddedDocumentUri(u.uri),k=g&&t.language.scripts.get(g[0]),y=g&&k?.generated?.embeddedCodes.get(g[1]),w=y&&k?t.documents.getLinkedCodeMap(y,k.id):void 0;if(w)for(let m of w.getLinkedCodePositions(f.range.start))l.has({uri:w.document.uri,range:{start:m,end:m}})||(_=!0,await c(w.document,m));_||s.push(f)}}},(i,o)=>i.map(a=>{if(!o)return a;let l=o.getSourceRange(a.range,iT.isHighlightEnabled);if(l)return{...a,range:l}}).filter(o9.notEmpty),i=>i.flat())}Mh.register=a9});var aT=L(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});Ph.register=void 0;var l9=ot(),c9=on(),u9=Et(),d9=xn(),sT=Je();function h9(t){return async(e,n=l9.NoneCancellationToken)=>await(0,u9.documentFeatureWorker)(t,e,r=>r.map.mappings.some(i=>(0,sT.isDocumentLinkEnabled)(i.data)),async(r,i)=>{if(n.isCancellationRequested)return;let o=await r[1].provideDocumentLinks?.(i,n);for(let a of o??[])a.data={uri:e,original:{data:a.data},serviceIndex:t.services.indexOf(r)};return o},(r,i)=>i?r.map(o=>{let a=i.getSourceRange(o.range,sT.isDocumentLinkEnabled);if(a)return o={...o,range:a},o.target&&(o.target=(0,d9.transformDocumentLinkTarget)(o.target,t)),o}).filter(c9.notEmpty):r,r=>r.flat())??[]}Ph.register=h9});var lT=L(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});Lh.SemanticTokensBuilder=void 0;var ww=class{constructor(){this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(e,n,r,i,o){let a=e,l=n;this._dataLen>0&&(a-=this._prevLine,a===0&&(l-=this._prevChar)),this._data[this._dataLen++]=a,this._data[this._dataLen++]=l,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=o,this._prevLine=e,this._prevChar=n}get id(){return this._id.toString()}build(){return{resultId:this.id,data:this._data}}};Lh.SemanticTokensBuilder=ww});var dT=L(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});Oh.register=void 0;var p9=lT(),f9=ot(),cT=on(),m9=Et(),uT=Je();function g9(t){return async(e,n,r,i=f9.NoneCancellationToken,o)=>{let a=t.language.scripts.get(e);if(!a)return;let l=t.documents.get(e,a.languageId,a.snapshot);n||(n={start:{line:0,character:0},end:{line:l.lineCount-1,character:l.getText().length}});let s=await(0,m9.languageFeatureWorker)(t,e,()=>n,function*(c){let u=(0,cT.findOverlapCodeRange)(c.sourceDocument.offsetAt(n.start),c.sourceDocument.offsetAt(n.end),c.map,uT.isSemanticTokensEnabled);u&&(yield{start:c.embeddedDocument.positionAt(u.start),end:c.embeddedDocument.positionAt(u.end)})},(c,u,d)=>{if(!i?.isCancellationRequested)return c[1].provideDocumentSemanticTokens?.(u,d,r,i)},(c,u)=>u?c.map(d=>{let h=u.getSourceRange({start:{line:d[0],character:d[1]},end:{line:d[0],character:d[1]+d[2]}},uT.isSemanticTokensEnabled);if(h)return[h.start.line,h.start.character,h.end.character-h.start.character,d[3],d[4]]}).filter(cT.notEmpty):c,c=>c.flat());if(s)return b9(s)}}Oh.register=g9;function b9(t){let e=new p9.SemanticTokensBuilder,n=t.sort((r,i)=>r[0]-i[0]===0?r[1]-i[1]:r[0]-i[0]);for(let r of n)e.push(...r);return e.build()}});var fT=L(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});Nh.register=void 0;var v9=Et(),hT=on(),w9=ot(),y9=xn(),pT=Je();function _9(t){return(e,n=w9.NoneCancellationToken)=>(0,v9.documentFeatureWorker)(t,e,r=>r.map.mappings.some(i=>(0,pT.isSymbolsEnabled)(i.data)),async(r,i)=>{if(!n.isCancellationRequested)return r[1].provideDocumentSymbols?.(i,n)},(r,i)=>i?r.map(o=>(0,y9.transformDocumentSymbol)(o,a=>i.getSourceRange(a,pT.isSymbolsEnabled))).filter(hT.notEmpty):r,r=>{for(let i=0;i<r.length;i++)for(let o=0;o<r.length;o++)i!==o&&(r[i]=r[i].filter(a=>{for(let l of r[o])if((0,hT.isInsideRange)(l.range,a.range))return l.children??=[],l.children.push(a),!1;return!0}));return r.flat()})}Nh.register=_9});var mT=L(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});zh.register=void 0;var S9=Et(),x9=Ci(),k9=on(),C9=ot(),T9=Je();function E9(t){return(e,n=C9.NoneCancellationToken)=>(0,S9.documentFeatureWorker)(t,e,()=>!0,async(r,i)=>{if(!n.isCancellationRequested)return await r[1].provideFileReferences?.(i,n)??[]},r=>r.map(i=>{let o=t.decodeEmbeddedDocumentUri(i.uri),a=o&&t.language.scripts.get(o[0]),l=o&&a?.generated?.embeddedCodes.get(o[1]);if(!l)return i;for(let s of t.documents.getMaps(l)){let c=s.getSourceRange(i.range,T9.isReferencesEnabled);if(c)return i.uri=s.sourceDocument.uri,i.range=c,i}}).filter(k9.notEmpty),r=>x9.withLocations(r.flat()))}zh.register=E9});var gT=L(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});qh.register=void 0;var D9=xn(),A9=Ci(),R9=ot();function F9(t){return async(e,n,r=R9.NoneCancellationToken)=>{for(let i of t.services){if(t.disabledServicePlugins.has(i[1]))continue;if(r.isCancellationRequested)break;if(!i[1].provideFileRenameEdits)continue;let o=await i[1].provideFileRenameEdits(e,n,r);if(o){let a=(0,D9.transformWorkspaceEdit)(o,t,"fileName");return a?.documentChanges&&(a.documentChanges=A9.withDocumentChanges(a.documentChanges)),a}}}}qh.register=F9});var vT=L(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});Wh.register=void 0;var I9=Et(),M9=ot(),P9=xn(),bT=Je();function L9(t){return(e,n=M9.NoneCancellationToken)=>(0,I9.documentFeatureWorker)(t,e,r=>r.map.mappings.some(i=>(0,bT.isFoldingRangesEnabled)(i.data)),(r,i)=>{if(!n.isCancellationRequested)return r[1].provideFoldingRanges?.(i,n)},(r,i)=>i?(0,P9.transformFoldingRanges)(r,o=>i.getSourceRange(o,bT.isFoldingRangesEnabled)):r,r=>r.flat())}Wh.register=L9});var _T=L(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});Uh.register=void 0;var O9=Et(),wT=on(),N9=vw(),z9=ot(),bu=xn(),yT=Je();function q9(t){return async(n,r,i=z9.NoneCancellationToken)=>{let o=await(0,O9.languageFeatureWorker)(t,n,()=>r,l=>l.getGeneratedPositions(r,yT.isHoverEnabled),(l,s,c)=>{if(!i.isCancellationRequested)return l[1].provideHover?.(s,c,i)},(l,s)=>(!s||!l.range||(l.range=s.getSourceRange(l.range,yT.isHoverEnabled)),l),l=>({contents:{kind:"markdown",value:l.map(e).flat().join(`
|
|
4
4
|
|
|
5
5
|
---
|
|
@@ -527,10 +527,10 @@ See [Browser compatibility](#Browser_compatibility) for notes on browser support
|
|
|
527
527
|
|
|
528
528
|
* a _negative value_ means that the element should be focusable, but should not be reachable via sequential keyboard navigation;
|
|
529
529
|
* \`0\` means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;
|
|
530
|
-
* a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document.`},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]},{name:"title",description:{kind:"markdown",value:"Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]},{name:"translate",description:{kind:"markdown",value:"An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](https://developer.mozilla.org/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."},valueSet:"y",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]},{name:"onabort",description:{kind:"markdown",value:"The loading of a resource has been aborted."}},{name:"onblur",description:{kind:"markdown",value:"An element has lost focus (does not bubble)."}},{name:"oncanplay",description:{kind:"markdown",value:"The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}},{name:"oncanplaythrough",description:{kind:"markdown",value:"The user agent can play the media up to its end without having to stop for further buffering of content."}},{name:"onchange",description:{kind:"markdown",value:"The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user."}},{name:"onclick",description:{kind:"markdown",value:"A pointing device button has been pressed and released on an element."}},{name:"oncontextmenu",description:{kind:"markdown",value:"The right button of the mouse is clicked (before the context menu is displayed)."}},{name:"ondblclick",description:{kind:"markdown",value:"A pointing device button is clicked twice on an element."}},{name:"ondrag",description:{kind:"markdown",value:"An element or text selection is being dragged (every 350ms)."}},{name:"ondragend",description:{kind:"markdown",value:"A drag operation is being ended (by releasing a mouse button or hitting the escape key)."}},{name:"ondragenter",description:{kind:"markdown",value:"A dragged element or text selection enters a valid drop target."}},{name:"ondragleave",description:{kind:"markdown",value:"A dragged element or text selection leaves a valid drop target."}},{name:"ondragover",description:{kind:"markdown",value:"An element or text selection is being dragged over a valid drop target (every 350ms)."}},{name:"ondragstart",description:{kind:"markdown",value:"The user starts dragging an element or text selection."}},{name:"ondrop",description:{kind:"markdown",value:"An element is dropped on a valid drop target."}},{name:"ondurationchange",description:{kind:"markdown",value:"The duration attribute has been updated."}},{name:"onemptied",description:{kind:"markdown",value:"The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it."}},{name:"onended",description:{kind:"markdown",value:"Playback has stopped because the end of the media was reached."}},{name:"onerror",description:{kind:"markdown",value:"A resource failed to load."}},{name:"onfocus",description:{kind:"markdown",value:"An element has received focus (does not bubble)."}},{name:"onformchange"},{name:"onforminput"},{name:"oninput",description:{kind:"markdown",value:"The value of an element changes or the content of an element with the attribute contenteditable is modified."}},{name:"oninvalid",description:{kind:"markdown",value:"A submittable element has been checked and doesn't satisfy its constraints."}},{name:"onkeydown",description:{kind:"markdown",value:"A key is pressed down."}},{name:"onkeypress",description:{kind:"markdown",value:"A key is pressed down and that key normally produces a character value (use input instead)."}},{name:"onkeyup",description:{kind:"markdown",value:"A key is released."}},{name:"onload",description:{kind:"markdown",value:"A resource and its dependent resources have finished loading."}},{name:"onloadeddata",description:{kind:"markdown",value:"The first frame of the media has finished loading."}},{name:"onloadedmetadata",description:{kind:"markdown",value:"The metadata has been loaded."}},{name:"onloadstart",description:{kind:"markdown",value:"Progress has begun."}},{name:"onmousedown",description:{kind:"markdown",value:"A pointing device button (usually a mouse) is pressed on an element."}},{name:"onmousemove",description:{kind:"markdown",value:"A pointing device is moved over an element."}},{name:"onmouseout",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached or off one of its children."}},{name:"onmouseover",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached or onto one of its children."}},{name:"onmouseup",description:{kind:"markdown",value:"A pointing device button is released over an element."}},{name:"onmousewheel"},{name:"onmouseenter",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached."}},{name:"onmouseleave",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached."}},{name:"onpause",description:{kind:"markdown",value:"Playback has been paused."}},{name:"onplay",description:{kind:"markdown",value:"Playback has begun."}},{name:"onplaying",description:{kind:"markdown",value:"Playback is ready to start after having been paused or delayed due to lack of data."}},{name:"onprogress",description:{kind:"markdown",value:"In progress."}},{name:"onratechange",description:{kind:"markdown",value:"The playback rate has changed."}},{name:"onreset",description:{kind:"markdown",value:"A form is reset."}},{name:"onresize",description:{kind:"markdown",value:"The document view has been resized."}},{name:"onreadystatechange",description:{kind:"markdown",value:"The readyState attribute of a document has changed."}},{name:"onscroll",description:{kind:"markdown",value:"The document view or an element has been scrolled."}},{name:"onseeked",description:{kind:"markdown",value:"A seek operation completed."}},{name:"onseeking",description:{kind:"markdown",value:"A seek operation began."}},{name:"onselect",description:{kind:"markdown",value:"Some text is being selected."}},{name:"onshow",description:{kind:"markdown",value:"A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute"}},{name:"onstalled",description:{kind:"markdown",value:"The user agent is trying to fetch media data, but data is unexpectedly not forthcoming."}},{name:"onsubmit",description:{kind:"markdown",value:"A form is submitted."}},{name:"onsuspend",description:{kind:"markdown",value:"Media data loading has been suspended."}},{name:"ontimeupdate",description:{kind:"markdown",value:"The time indicated by the currentTime attribute has been updated."}},{name:"onvolumechange",description:{kind:"markdown",value:"The volume has changed."}},{name:"onwaiting",description:{kind:"markdown",value:"Playback has stopped because of a temporary lack of data."}},{name:"onpointercancel",description:{kind:"markdown",value:"The pointer is unlikely to produce any more events."}},{name:"onpointerdown",description:{kind:"markdown",value:"The pointer enters the active buttons state."}},{name:"onpointerenter",description:{kind:"markdown",value:"Pointing device is moved inside the hit-testing boundary."}},{name:"onpointerleave",description:{kind:"markdown",value:"Pointing device is moved out of the hit-testing boundary."}},{name:"onpointerlockchange",description:{kind:"markdown",value:"The pointer was locked or released."}},{name:"onpointerlockerror",description:{kind:"markdown",value:"It was impossible to lock the pointer for technical reasons or because the permission was denied."}},{name:"onpointermove",description:{kind:"markdown",value:"The pointer changed coordinates."}},{name:"onpointerout",description:{kind:"markdown",value:"The pointing device moved out of hit-testing boundary or leaves detectable hover range."}},{name:"onpointerover",description:{kind:"markdown",value:"The pointing device is moved into the hit-testing boundary."}},{name:"onpointerup",description:{kind:"markdown",value:"The pointer leaves the active buttons state."}},{name:"aria-activedescendant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant"}],description:{kind:"markdown",value:"Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application)."}},{name:"aria-atomic",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-atomic"}],description:{kind:"markdown",value:"Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute."}},{name:"aria-autocomplete",valueSet:"autocomplete",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete"}],description:{kind:"markdown",value:"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made."}},{name:"aria-busy",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-busy"}],description:{kind:"markdown",value:"Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user."}},{name:"aria-checked",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-checked"}],description:{kind:"markdown",value:'Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-colcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colcount"}],description:{kind:"markdown",value:"Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex)."}},{name:"aria-colindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-colspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colspan"}],description:{kind:"markdown",value:"Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-controls",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-controls"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns)."}},{name:"aria-current",valueSet:"current",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-current"}],description:{kind:"markdown",value:"Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements."}},{name:"aria-describedby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-disabled",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-disabled"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly)."}},{name:"aria-dropeffect",valueSet:"dropeffect",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect"}],description:{kind:"markdown",value:"\\[Deprecated in ARIA 1.1\\] Indicates what functions can be performed when a dragged object is released on the drop target."}},{name:"aria-errormessage",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-expanded",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-expanded"}],description:{kind:"markdown",value:"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed."}},{name:"aria-flowto",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-flowto"}],description:{kind:"markdown",value:"Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order."}},{name:"aria-grabbed",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed"}],description:{kind:"markdown",value:`\\[Deprecated in ARIA 1.1\\] Indicates an element's "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation.`}},{name:"aria-haspopup",valueSet:"haspopup",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup"}],description:{kind:"markdown",value:"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-hidden",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-hidden"}],description:{kind:"markdown",value:"Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-invalid",valueSet:"invalid",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-invalid"}],description:{kind:"markdown",value:"Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage)."}},{name:"aria-label",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-label"}],description:{kind:"markdown",value:"Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-labelledby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-level",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-level"}],description:{kind:"markdown",value:"Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure."}},{name:"aria-live",valueSet:"live",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-live"}],description:{kind:"markdown",value:"Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region)."}},{name:"aria-modal",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-modal"}],description:{kind:"markdown",value:"Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed."}},{name:"aria-multiline",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiline"}],description:{kind:"markdown",value:"Indicates whether a text box accepts multiple lines of input or only a single line."}},{name:"aria-multiselectable",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable"}],description:{kind:"markdown",value:"Indicates that the user may select more than one item from the current selectable descendants."}},{name:"aria-orientation",valueSet:"orientation",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-orientation"}],description:{kind:"markdown",value:"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous."}},{name:"aria-owns",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-owns"}],description:{kind:"markdown",value:"Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls)."}},{name:"aria-placeholder",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder"}],description:{kind:"markdown",value:"Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format."}},{name:"aria-posinset",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-posinset"}],description:{kind:"markdown",value:"Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize)."}},{name:"aria-pressed",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-pressed"}],description:{kind:"markdown",value:'Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-readonly",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-readonly"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-relevant",valueSet:"relevant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-relevant"}],description:{kind:"markdown",value:"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic)."}},{name:"aria-required",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-required"}],description:{kind:"markdown",value:"Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted."}},{name:"aria-roledescription",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription"}],description:{kind:"markdown",value:"Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-rowcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount"}],description:{kind:"markdown",value:"Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex)."}},{name:"aria-rowindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-rowspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan"}],description:{kind:"markdown",value:"Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-selected",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-selected"}],description:{kind:"markdown",value:'Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed).'}},{name:"aria-setsize",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-setsize"}],description:{kind:"markdown",value:"Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset)."}},{name:"aria-sort",valueSet:"sort",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-sort"}],description:{kind:"markdown",value:"Indicates if items in a table or grid are sorted in ascending or descending order."}},{name:"aria-valuemax",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax"}],description:{kind:"markdown",value:"Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuemin",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin"}],description:{kind:"markdown",value:"Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuenow",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow"}],description:{kind:"markdown",value:"Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext)."}},{name:"aria-valuetext",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext"}],description:{kind:"markdown",value:"Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-details",description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-keyshortcuts",description:{kind:"markdown",value:"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element."}}],valueSets:[{name:"b",values:[{name:"true"},{name:"false"}]},{name:"u",values:[{name:"true"},{name:"false"},{name:"undefined"}]},{name:"o",values:[{name:"on"},{name:"off"}]},{name:"y",values:[{name:"yes"},{name:"no"}]},{name:"w",values:[{name:"soft"},{name:"hard"}]},{name:"d",values:[{name:"ltr"},{name:"rtl"},{name:"auto"}]},{name:"m",values:[{name:"get",description:{kind:"markdown",value:"Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a '?' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters."}},{name:"post",description:{kind:"markdown",value:"Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5); form data are included in the body of the form and sent to the server."}},{name:"dialog",description:{kind:"markdown",value:"Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element to close the dialog when submitted."}}]},{name:"fm",values:[{name:"get"},{name:"post"}]},{name:"s",values:[{name:"row"},{name:"col"},{name:"rowgroup"},{name:"colgroup"}]},{name:"t",values:[{name:"hidden"},{name:"text"},{name:"search"},{name:"tel"},{name:"url"},{name:"email"},{name:"password"},{name:"datetime"},{name:"date"},{name:"month"},{name:"week"},{name:"time"},{name:"datetime-local"},{name:"number"},{name:"range"},{name:"color"},{name:"checkbox"},{name:"radio"},{name:"file"},{name:"submit"},{name:"image"},{name:"reset"},{name:"button"}]},{name:"im",values:[{name:"verbatim"},{name:"latin"},{name:"latin-name"},{name:"latin-prose"},{name:"full-width-latin"},{name:"kana"},{name:"kana-name"},{name:"katakana"},{name:"numeric"},{name:"tel"},{name:"email"},{name:"url"}]},{name:"bt",values:[{name:"button"},{name:"submit"},{name:"reset"},{name:"menu"}]},{name:"lt",values:[{name:"1"},{name:"a"},{name:"A"},{name:"i"},{name:"I"}]},{name:"mt",values:[{name:"context"},{name:"toolbar"}]},{name:"mit",values:[{name:"command"},{name:"checkbox"},{name:"radio"}]},{name:"et",values:[{name:"application/x-www-form-urlencoded"},{name:"multipart/form-data"},{name:"text/plain"}]},{name:"tk",values:[{name:"subtitles"},{name:"captions"},{name:"descriptions"},{name:"chapters"},{name:"metadata"}]},{name:"pl",values:[{name:"none"},{name:"metadata"},{name:"auto"}]},{name:"sh",values:[{name:"circle"},{name:"default"},{name:"poly"},{name:"rect"}]},{name:"xo",values:[{name:"anonymous"},{name:"use-credentials"}]},{name:"target",values:[{name:"_self"},{name:"_blank"},{name:"_parent"},{name:"_top"}]},{name:"sb",values:[{name:"allow-forms"},{name:"allow-modals"},{name:"allow-pointer-lock"},{name:"allow-popups"},{name:"allow-popups-to-escape-sandbox"},{name:"allow-same-origin"},{name:"allow-scripts"},{name:"allow-top-navigation"}]},{name:"tristate",values:[{name:"true"},{name:"false"},{name:"mixed"},{name:"undefined"}]},{name:"inputautocomplete",values:[{name:"additional-name"},{name:"address-level1"},{name:"address-level2"},{name:"address-level3"},{name:"address-level4"},{name:"address-line1"},{name:"address-line2"},{name:"address-line3"},{name:"bday"},{name:"bday-year"},{name:"bday-day"},{name:"bday-month"},{name:"billing"},{name:"cc-additional-name"},{name:"cc-csc"},{name:"cc-exp"},{name:"cc-exp-month"},{name:"cc-exp-year"},{name:"cc-family-name"},{name:"cc-given-name"},{name:"cc-name"},{name:"cc-number"},{name:"cc-type"},{name:"country"},{name:"country-name"},{name:"current-password"},{name:"email"},{name:"family-name"},{name:"fax"},{name:"given-name"},{name:"home"},{name:"honorific-prefix"},{name:"honorific-suffix"},{name:"impp"},{name:"language"},{name:"mobile"},{name:"name"},{name:"new-password"},{name:"nickname"},{name:"off"},{name:"on"},{name:"organization"},{name:"organization-title"},{name:"pager"},{name:"photo"},{name:"postal-code"},{name:"sex"},{name:"shipping"},{name:"street-address"},{name:"tel-area-code"},{name:"tel"},{name:"tel-country-code"},{name:"tel-extension"},{name:"tel-local"},{name:"tel-local-prefix"},{name:"tel-local-suffix"},{name:"tel-national"},{name:"transaction-amount"},{name:"transaction-currency"},{name:"url"},{name:"username"},{name:"work"}]},{name:"autocomplete",values:[{name:"inline"},{name:"list"},{name:"both"},{name:"none"}]},{name:"current",values:[{name:"page"},{name:"step"},{name:"location"},{name:"date"},{name:"time"},{name:"true"},{name:"false"}]},{name:"dropeffect",values:[{name:"copy"},{name:"move"},{name:"link"},{name:"execute"},{name:"popup"},{name:"none"}]},{name:"invalid",values:[{name:"grammar"},{name:"false"},{name:"spelling"},{name:"true"}]},{name:"live",values:[{name:"off"},{name:"polite"},{name:"assertive"}]},{name:"orientation",values:[{name:"vertical"},{name:"horizontal"},{name:"undefined"}]},{name:"relevant",values:[{name:"additions"},{name:"removals"},{name:"text"},{name:"all"},{name:"additions text"}]},{name:"sort",values:[{name:"ascending"},{name:"descending"},{name:"none"},{name:"other"}]},{name:"roles",values:[{name:"alert"},{name:"alertdialog"},{name:"button"},{name:"checkbox"},{name:"dialog"},{name:"gridcell"},{name:"link"},{name:"log"},{name:"marquee"},{name:"menuitem"},{name:"menuitemcheckbox"},{name:"menuitemradio"},{name:"option"},{name:"progressbar"},{name:"radio"},{name:"scrollbar"},{name:"searchbox"},{name:"slider"},{name:"spinbutton"},{name:"status"},{name:"switch"},{name:"tab"},{name:"tabpanel"},{name:"textbox"},{name:"timer"},{name:"tooltip"},{name:"treeitem"},{name:"combobox"},{name:"grid"},{name:"listbox"},{name:"menu"},{name:"menubar"},{name:"radiogroup"},{name:"tablist"},{name:"tree"},{name:"treegrid"},{name:"application"},{name:"article"},{name:"cell"},{name:"columnheader"},{name:"definition"},{name:"directory"},{name:"document"},{name:"feed"},{name:"figure"},{name:"group"},{name:"heading"},{name:"img"},{name:"list"},{name:"listitem"},{name:"math"},{name:"none"},{name:"note"},{name:"presentation"},{name:"region"},{name:"row"},{name:"rowgroup"},{name:"rowheader"},{name:"separator"},{name:"table"},{name:"term"},{name:"text"},{name:"toolbar"},{name:"banner"},{name:"complementary"},{name:"contentinfo"},{name:"form"},{name:"main"},{name:"navigation"},{name:"region"},{name:"search"},{name:"doc-abstract"},{name:"doc-acknowledgments"},{name:"doc-afterword"},{name:"doc-appendix"},{name:"doc-backlink"},{name:"doc-biblioentry"},{name:"doc-bibliography"},{name:"doc-biblioref"},{name:"doc-chapter"},{name:"doc-colophon"},{name:"doc-conclusion"},{name:"doc-cover"},{name:"doc-credit"},{name:"doc-credits"},{name:"doc-dedication"},{name:"doc-endnote"},{name:"doc-endnotes"},{name:"doc-epigraph"},{name:"doc-epilogue"},{name:"doc-errata"},{name:"doc-example"},{name:"doc-footnote"},{name:"doc-foreword"},{name:"doc-glossary"},{name:"doc-glossref"},{name:"doc-index"},{name:"doc-introduction"},{name:"doc-noteref"},{name:"doc-notice"},{name:"doc-pagebreak"},{name:"doc-pagelist"},{name:"doc-part"},{name:"doc-preface"},{name:"doc-prologue"},{name:"doc-pullquote"},{name:"doc-qna"},{name:"doc-subtitle"},{name:"doc-tip"},{name:"doc-toc"}]},{name:"metanames",values:[{name:"application-name"},{name:"author"},{name:"description"},{name:"format-detection"},{name:"generator"},{name:"keywords"},{name:"publisher"},{name:"referrer"},{name:"robots"},{name:"theme-color"},{name:"viewport"}]},{name:"haspopup",values:[{name:"false",description:{kind:"markdown",value:"(default) Indicates the element does not have a popup."}},{name:"true",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"menu",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"listbox",description:{kind:"markdown",value:"Indicates the popup is a listbox."}},{name:"tree",description:{kind:"markdown",value:"Indicates the popup is a tree."}},{name:"grid",description:{kind:"markdown",value:"Indicates the popup is a grid."}},{name:"dialog",description:{kind:"markdown",value:"Indicates the popup is a dialog."}}]},{name:"decoding",values:[{name:"sync"},{name:"async"},{name:"auto"}]},{name:"loading",values:[{name:"eager",description:{kind:"markdown",value:"Loads the image immediately, regardless of whether or not the image is currently within the visible viewport (this is the default value)."}},{name:"lazy",description:{kind:"markdown",value:"Defers loading the image until it reaches a calculated distance from the viewport, as defined by the browser. The intent is to avoid the network and storage bandwidth needed to handle the image until it's reasonably certain that it will be needed. This generally improves the performance of the content in most typical use cases."}}]},{name:"referrerpolicy",values:[{name:"no-referrer"},{name:"no-referrer-when-downgrade"},{name:"origin"},{name:"origin-when-cross-origin"},{name:"same-origin"},{name:"strict-origin"},{name:"strict-origin-when-cross-origin"},{name:"unsafe-url"}]}]}});var fm,fK,bM=de(()=>{$u();kS();gS();fm=class{constructor(e){this.dataProviders=[],this.setDataProviders(e.useDefaultDataProvider!==!1,e.customDataProviders||[])}setDataProviders(e,n){this.dataProviders=[],e&&this.dataProviders.push(new ql("html5",pm)),this.dataProviders.push(...n)}getDataProviders(){return this.dataProviders}isVoidElement(e,n){return!!e&&FI(n,e.toLowerCase(),(r,i)=>r.localeCompare(i))>=0}getVoidElements(e){let n=Array.isArray(e)?e:this.getDataProviders().filter(i=>i.isApplicable(e)),r=[];return n.forEach(i=>{i.provideTags().filter(o=>o.void).forEach(o=>r.push(o.name))}),r.sort()}isPathAttribute(e,n){if(n==="src"||n==="href")return!0;let r=fK[e];return r?typeof r=="string"?r===n:r.indexOf(n)!==-1:!1}},fK={a:"href",area:"href",body:"background",blockquote:"cite",del:"cite",form:"action",frame:["src","longdesc"],img:["src","longdesc"],ins:"cite",link:"href",object:"data",q:"cite",script:"src",audio:"src",button:"formaction",command:"icon",embed:"src",html:"manifest",input:["src","formaction"],source:"src",track:"src",video:["src","poster"]}});var Wl={};ih(Wl,{ClientCapabilities:()=>hS,Color:()=>fo,ColorInformation:()=>bs,ColorPresentation:()=>vs,Command:()=>er,CompletionItem:()=>ys,CompletionItemKind:()=>fe,CompletionItemTag:()=>tr,CompletionList:()=>_s,Diagnostic:()=>Pi,DocumentHighlight:()=>xs,DocumentHighlightKind:()=>pn,DocumentLink:()=>ks,DocumentSymbol:()=>Lr,DocumentUri:()=>gs,FileType:()=>Bu,FoldingRange:()=>ws,FoldingRangeKind:()=>Zn,FormattingOptions:()=>Ll,Hover:()=>Ss,InsertReplaceEdit:()=>Fl,InsertTextFormat:()=>Be,InsertTextMode:()=>Il,Location:()=>Mr,MarkedString:()=>Li,MarkupContent:()=>ci,MarkupKind:()=>nt,Position:()=>Oe,Range:()=>pe,ScannerState:()=>Ie,SelectionRange:()=>Tn,SymbolInformation:()=>Pr,SymbolKind:()=>ln,TextDocument:()=>Cs,TextEdit:()=>ge,TokenType:()=>ce,WorkspaceEdit:()=>mo,getDefaultHTMLDataProvider:()=>bK,getLanguageService:()=>gK,newHTMLDataProvider:()=>vM});function gK(t=mK){let e=new fm(t),n=new cm(t,e),r=new am(t,e),i=new om(e),o=new hm(i),a=new dm(e),l=new um(e);return{setDataProviders:e.setDataProviders.bind(e),createScanner:Xt,parseHTMLDocument:i.parseDocument.bind(i),doComplete:r.doComplete.bind(r),doComplete2:r.doComplete2.bind(r),setCompletionParticipants:r.setCompletionParticipants.bind(r),doHover:n.doHover.bind(n),format:YI,findDocumentHighlights:oM,findDocumentLinks:l.findDocumentLinks.bind(l),findDocumentSymbols:aM,findDocumentSymbols2:SS,getFoldingRanges:a.getFoldingRanges.bind(a),getSelectionRanges:o.getSelectionRanges.bind(o),doQuoteComplete:r.doQuoteComplete.bind(r),doTagComplete:r.doTagComplete.bind(r),doRename:uM,findMatchingTagPosition:hM,findOnTypeRenameRanges:xS,findLinkedEditingRanges:xS}}function vM(t,e){return new ql(t,e)}function bK(){return vM("default",pm)}var mK,Ul=de(()=>{bo();II();qI();UI();ZI();tM();sM();cM();dM();pM();fM();mM();gM();$u();bM();kS();nr();mK={}});var mm=L(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.patchTSX=Ts.classNameFromFilename=Ts.framework2tsx=void 0;var CS=Sn(),wM=Jf();function vK(t,e,n){let r=n==="vue"?(0,wM.importVueIntegration)(t):(0,wM.importSvelteIntegration)(t);if(!r)return a("");let i=yM(t),o=_M(r.toTSX(e,i),t);return a(o);function a(l){return{id:"tsx",languageId:"typescript",snapshot:{getText:(s,c)=>l.substring(s,c),getLength:()=>l.length,getChangeRange:()=>{}},mappings:[{sourceOffsets:[0],generatedOffsets:[0],lengths:[l.length],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!0}}],embeddedCodes:[]}}}Ts.framework2tsx=vK;function wK(t){return`${t}`.replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(e,n,r)=>`${n.toUpperCase()+r.toLowerCase()}`).replace(new RegExp(/\w/),e=>e.toUpperCase())}function yM(t){let e=CS.URI.parse(t),r=CS.Utils.basename(e).slice(0,-CS.Utils.extname(e).length).split("").filter(s=>/[A-Za-z$_\d-]/.test(s)).join(""),i=r.split("").findIndex(s=>/[A-Za-z]/.test(s)),o=r.substring(i),a=wK(o);return i===-1?`A${a}`:a}Ts.classNameFromFilename=yM;function _M(t,e){let n=e.split("/").pop(),r=n.startsWith("[")&&n.endsWith("]");return t.replace(/\b(\S*)__AstroComponent_/gm,(i,o)=>o?r?`_${o}_`:o[0].toUpperCase()+o.slice(1):n==="404"?"FourOhFour":i)}Ts.patchTSX=_M});var CM=L(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.astro2tsx=Es.getTSXRangesAsLSPRanges=Es.safeConvertToTSX=void 0;var yK=require("@astrojs/compiler/sync"),_K=KF(),SM=hs(),TS=(Ul(),ao(Wl)),SK=mm();function xM(t,e){try{return(0,yK.convertToTSX)(t,{filename:e.filename})}catch(n){return console.error(`There was an error transforming ${e.filename} to TSX. An empty file will be returned instead. Please create an issue: https://github.com/withastro/language-tools/issues
|
|
530
|
+
* a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document.`},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]},{name:"title",description:{kind:"markdown",value:"Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]},{name:"translate",description:{kind:"markdown",value:"An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](https://developer.mozilla.org/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."},valueSet:"y",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]},{name:"onabort",description:{kind:"markdown",value:"The loading of a resource has been aborted."}},{name:"onblur",description:{kind:"markdown",value:"An element has lost focus (does not bubble)."}},{name:"oncanplay",description:{kind:"markdown",value:"The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}},{name:"oncanplaythrough",description:{kind:"markdown",value:"The user agent can play the media up to its end without having to stop for further buffering of content."}},{name:"onchange",description:{kind:"markdown",value:"The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user."}},{name:"onclick",description:{kind:"markdown",value:"A pointing device button has been pressed and released on an element."}},{name:"oncontextmenu",description:{kind:"markdown",value:"The right button of the mouse is clicked (before the context menu is displayed)."}},{name:"ondblclick",description:{kind:"markdown",value:"A pointing device button is clicked twice on an element."}},{name:"ondrag",description:{kind:"markdown",value:"An element or text selection is being dragged (every 350ms)."}},{name:"ondragend",description:{kind:"markdown",value:"A drag operation is being ended (by releasing a mouse button or hitting the escape key)."}},{name:"ondragenter",description:{kind:"markdown",value:"A dragged element or text selection enters a valid drop target."}},{name:"ondragleave",description:{kind:"markdown",value:"A dragged element or text selection leaves a valid drop target."}},{name:"ondragover",description:{kind:"markdown",value:"An element or text selection is being dragged over a valid drop target (every 350ms)."}},{name:"ondragstart",description:{kind:"markdown",value:"The user starts dragging an element or text selection."}},{name:"ondrop",description:{kind:"markdown",value:"An element is dropped on a valid drop target."}},{name:"ondurationchange",description:{kind:"markdown",value:"The duration attribute has been updated."}},{name:"onemptied",description:{kind:"markdown",value:"The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it."}},{name:"onended",description:{kind:"markdown",value:"Playback has stopped because the end of the media was reached."}},{name:"onerror",description:{kind:"markdown",value:"A resource failed to load."}},{name:"onfocus",description:{kind:"markdown",value:"An element has received focus (does not bubble)."}},{name:"onformchange"},{name:"onforminput"},{name:"oninput",description:{kind:"markdown",value:"The value of an element changes or the content of an element with the attribute contenteditable is modified."}},{name:"oninvalid",description:{kind:"markdown",value:"A submittable element has been checked and doesn't satisfy its constraints."}},{name:"onkeydown",description:{kind:"markdown",value:"A key is pressed down."}},{name:"onkeypress",description:{kind:"markdown",value:"A key is pressed down and that key normally produces a character value (use input instead)."}},{name:"onkeyup",description:{kind:"markdown",value:"A key is released."}},{name:"onload",description:{kind:"markdown",value:"A resource and its dependent resources have finished loading."}},{name:"onloadeddata",description:{kind:"markdown",value:"The first frame of the media has finished loading."}},{name:"onloadedmetadata",description:{kind:"markdown",value:"The metadata has been loaded."}},{name:"onloadstart",description:{kind:"markdown",value:"Progress has begun."}},{name:"onmousedown",description:{kind:"markdown",value:"A pointing device button (usually a mouse) is pressed on an element."}},{name:"onmousemove",description:{kind:"markdown",value:"A pointing device is moved over an element."}},{name:"onmouseout",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached or off one of its children."}},{name:"onmouseover",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached or onto one of its children."}},{name:"onmouseup",description:{kind:"markdown",value:"A pointing device button is released over an element."}},{name:"onmousewheel"},{name:"onmouseenter",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached."}},{name:"onmouseleave",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached."}},{name:"onpause",description:{kind:"markdown",value:"Playback has been paused."}},{name:"onplay",description:{kind:"markdown",value:"Playback has begun."}},{name:"onplaying",description:{kind:"markdown",value:"Playback is ready to start after having been paused or delayed due to lack of data."}},{name:"onprogress",description:{kind:"markdown",value:"In progress."}},{name:"onratechange",description:{kind:"markdown",value:"The playback rate has changed."}},{name:"onreset",description:{kind:"markdown",value:"A form is reset."}},{name:"onresize",description:{kind:"markdown",value:"The document view has been resized."}},{name:"onreadystatechange",description:{kind:"markdown",value:"The readyState attribute of a document has changed."}},{name:"onscroll",description:{kind:"markdown",value:"The document view or an element has been scrolled."}},{name:"onseeked",description:{kind:"markdown",value:"A seek operation completed."}},{name:"onseeking",description:{kind:"markdown",value:"A seek operation began."}},{name:"onselect",description:{kind:"markdown",value:"Some text is being selected."}},{name:"onshow",description:{kind:"markdown",value:"A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute"}},{name:"onstalled",description:{kind:"markdown",value:"The user agent is trying to fetch media data, but data is unexpectedly not forthcoming."}},{name:"onsubmit",description:{kind:"markdown",value:"A form is submitted."}},{name:"onsuspend",description:{kind:"markdown",value:"Media data loading has been suspended."}},{name:"ontimeupdate",description:{kind:"markdown",value:"The time indicated by the currentTime attribute has been updated."}},{name:"onvolumechange",description:{kind:"markdown",value:"The volume has changed."}},{name:"onwaiting",description:{kind:"markdown",value:"Playback has stopped because of a temporary lack of data."}},{name:"onpointercancel",description:{kind:"markdown",value:"The pointer is unlikely to produce any more events."}},{name:"onpointerdown",description:{kind:"markdown",value:"The pointer enters the active buttons state."}},{name:"onpointerenter",description:{kind:"markdown",value:"Pointing device is moved inside the hit-testing boundary."}},{name:"onpointerleave",description:{kind:"markdown",value:"Pointing device is moved out of the hit-testing boundary."}},{name:"onpointerlockchange",description:{kind:"markdown",value:"The pointer was locked or released."}},{name:"onpointerlockerror",description:{kind:"markdown",value:"It was impossible to lock the pointer for technical reasons or because the permission was denied."}},{name:"onpointermove",description:{kind:"markdown",value:"The pointer changed coordinates."}},{name:"onpointerout",description:{kind:"markdown",value:"The pointing device moved out of hit-testing boundary or leaves detectable hover range."}},{name:"onpointerover",description:{kind:"markdown",value:"The pointing device is moved into the hit-testing boundary."}},{name:"onpointerup",description:{kind:"markdown",value:"The pointer leaves the active buttons state."}},{name:"aria-activedescendant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant"}],description:{kind:"markdown",value:"Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application)."}},{name:"aria-atomic",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-atomic"}],description:{kind:"markdown",value:"Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute."}},{name:"aria-autocomplete",valueSet:"autocomplete",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete"}],description:{kind:"markdown",value:"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made."}},{name:"aria-busy",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-busy"}],description:{kind:"markdown",value:"Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user."}},{name:"aria-checked",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-checked"}],description:{kind:"markdown",value:'Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-colcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colcount"}],description:{kind:"markdown",value:"Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex)."}},{name:"aria-colindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-colspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colspan"}],description:{kind:"markdown",value:"Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-controls",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-controls"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns)."}},{name:"aria-current",valueSet:"current",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-current"}],description:{kind:"markdown",value:"Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements."}},{name:"aria-describedby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-disabled",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-disabled"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly)."}},{name:"aria-dropeffect",valueSet:"dropeffect",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect"}],description:{kind:"markdown",value:"\\[Deprecated in ARIA 1.1\\] Indicates what functions can be performed when a dragged object is released on the drop target."}},{name:"aria-errormessage",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-expanded",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-expanded"}],description:{kind:"markdown",value:"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed."}},{name:"aria-flowto",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-flowto"}],description:{kind:"markdown",value:"Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order."}},{name:"aria-grabbed",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed"}],description:{kind:"markdown",value:`\\[Deprecated in ARIA 1.1\\] Indicates an element's "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation.`}},{name:"aria-haspopup",valueSet:"haspopup",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup"}],description:{kind:"markdown",value:"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-hidden",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-hidden"}],description:{kind:"markdown",value:"Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-invalid",valueSet:"invalid",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-invalid"}],description:{kind:"markdown",value:"Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage)."}},{name:"aria-label",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-label"}],description:{kind:"markdown",value:"Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-labelledby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-level",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-level"}],description:{kind:"markdown",value:"Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure."}},{name:"aria-live",valueSet:"live",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-live"}],description:{kind:"markdown",value:"Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region)."}},{name:"aria-modal",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-modal"}],description:{kind:"markdown",value:"Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed."}},{name:"aria-multiline",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiline"}],description:{kind:"markdown",value:"Indicates whether a text box accepts multiple lines of input or only a single line."}},{name:"aria-multiselectable",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable"}],description:{kind:"markdown",value:"Indicates that the user may select more than one item from the current selectable descendants."}},{name:"aria-orientation",valueSet:"orientation",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-orientation"}],description:{kind:"markdown",value:"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous."}},{name:"aria-owns",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-owns"}],description:{kind:"markdown",value:"Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls)."}},{name:"aria-placeholder",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder"}],description:{kind:"markdown",value:"Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format."}},{name:"aria-posinset",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-posinset"}],description:{kind:"markdown",value:"Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize)."}},{name:"aria-pressed",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-pressed"}],description:{kind:"markdown",value:'Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-readonly",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-readonly"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-relevant",valueSet:"relevant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-relevant"}],description:{kind:"markdown",value:"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic)."}},{name:"aria-required",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-required"}],description:{kind:"markdown",value:"Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted."}},{name:"aria-roledescription",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription"}],description:{kind:"markdown",value:"Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-rowcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount"}],description:{kind:"markdown",value:"Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex)."}},{name:"aria-rowindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-rowspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan"}],description:{kind:"markdown",value:"Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-selected",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-selected"}],description:{kind:"markdown",value:'Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed).'}},{name:"aria-setsize",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-setsize"}],description:{kind:"markdown",value:"Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset)."}},{name:"aria-sort",valueSet:"sort",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-sort"}],description:{kind:"markdown",value:"Indicates if items in a table or grid are sorted in ascending or descending order."}},{name:"aria-valuemax",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax"}],description:{kind:"markdown",value:"Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuemin",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin"}],description:{kind:"markdown",value:"Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuenow",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow"}],description:{kind:"markdown",value:"Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext)."}},{name:"aria-valuetext",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext"}],description:{kind:"markdown",value:"Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-details",description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-keyshortcuts",description:{kind:"markdown",value:"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element."}}],valueSets:[{name:"b",values:[{name:"true"},{name:"false"}]},{name:"u",values:[{name:"true"},{name:"false"},{name:"undefined"}]},{name:"o",values:[{name:"on"},{name:"off"}]},{name:"y",values:[{name:"yes"},{name:"no"}]},{name:"w",values:[{name:"soft"},{name:"hard"}]},{name:"d",values:[{name:"ltr"},{name:"rtl"},{name:"auto"}]},{name:"m",values:[{name:"get",description:{kind:"markdown",value:"Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a '?' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters."}},{name:"post",description:{kind:"markdown",value:"Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5); form data are included in the body of the form and sent to the server."}},{name:"dialog",description:{kind:"markdown",value:"Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element to close the dialog when submitted."}}]},{name:"fm",values:[{name:"get"},{name:"post"}]},{name:"s",values:[{name:"row"},{name:"col"},{name:"rowgroup"},{name:"colgroup"}]},{name:"t",values:[{name:"hidden"},{name:"text"},{name:"search"},{name:"tel"},{name:"url"},{name:"email"},{name:"password"},{name:"datetime"},{name:"date"},{name:"month"},{name:"week"},{name:"time"},{name:"datetime-local"},{name:"number"},{name:"range"},{name:"color"},{name:"checkbox"},{name:"radio"},{name:"file"},{name:"submit"},{name:"image"},{name:"reset"},{name:"button"}]},{name:"im",values:[{name:"verbatim"},{name:"latin"},{name:"latin-name"},{name:"latin-prose"},{name:"full-width-latin"},{name:"kana"},{name:"kana-name"},{name:"katakana"},{name:"numeric"},{name:"tel"},{name:"email"},{name:"url"}]},{name:"bt",values:[{name:"button"},{name:"submit"},{name:"reset"},{name:"menu"}]},{name:"lt",values:[{name:"1"},{name:"a"},{name:"A"},{name:"i"},{name:"I"}]},{name:"mt",values:[{name:"context"},{name:"toolbar"}]},{name:"mit",values:[{name:"command"},{name:"checkbox"},{name:"radio"}]},{name:"et",values:[{name:"application/x-www-form-urlencoded"},{name:"multipart/form-data"},{name:"text/plain"}]},{name:"tk",values:[{name:"subtitles"},{name:"captions"},{name:"descriptions"},{name:"chapters"},{name:"metadata"}]},{name:"pl",values:[{name:"none"},{name:"metadata"},{name:"auto"}]},{name:"sh",values:[{name:"circle"},{name:"default"},{name:"poly"},{name:"rect"}]},{name:"xo",values:[{name:"anonymous"},{name:"use-credentials"}]},{name:"target",values:[{name:"_self"},{name:"_blank"},{name:"_parent"},{name:"_top"}]},{name:"sb",values:[{name:"allow-forms"},{name:"allow-modals"},{name:"allow-pointer-lock"},{name:"allow-popups"},{name:"allow-popups-to-escape-sandbox"},{name:"allow-same-origin"},{name:"allow-scripts"},{name:"allow-top-navigation"}]},{name:"tristate",values:[{name:"true"},{name:"false"},{name:"mixed"},{name:"undefined"}]},{name:"inputautocomplete",values:[{name:"additional-name"},{name:"address-level1"},{name:"address-level2"},{name:"address-level3"},{name:"address-level4"},{name:"address-line1"},{name:"address-line2"},{name:"address-line3"},{name:"bday"},{name:"bday-year"},{name:"bday-day"},{name:"bday-month"},{name:"billing"},{name:"cc-additional-name"},{name:"cc-csc"},{name:"cc-exp"},{name:"cc-exp-month"},{name:"cc-exp-year"},{name:"cc-family-name"},{name:"cc-given-name"},{name:"cc-name"},{name:"cc-number"},{name:"cc-type"},{name:"country"},{name:"country-name"},{name:"current-password"},{name:"email"},{name:"family-name"},{name:"fax"},{name:"given-name"},{name:"home"},{name:"honorific-prefix"},{name:"honorific-suffix"},{name:"impp"},{name:"language"},{name:"mobile"},{name:"name"},{name:"new-password"},{name:"nickname"},{name:"off"},{name:"on"},{name:"organization"},{name:"organization-title"},{name:"pager"},{name:"photo"},{name:"postal-code"},{name:"sex"},{name:"shipping"},{name:"street-address"},{name:"tel-area-code"},{name:"tel"},{name:"tel-country-code"},{name:"tel-extension"},{name:"tel-local"},{name:"tel-local-prefix"},{name:"tel-local-suffix"},{name:"tel-national"},{name:"transaction-amount"},{name:"transaction-currency"},{name:"url"},{name:"username"},{name:"work"}]},{name:"autocomplete",values:[{name:"inline"},{name:"list"},{name:"both"},{name:"none"}]},{name:"current",values:[{name:"page"},{name:"step"},{name:"location"},{name:"date"},{name:"time"},{name:"true"},{name:"false"}]},{name:"dropeffect",values:[{name:"copy"},{name:"move"},{name:"link"},{name:"execute"},{name:"popup"},{name:"none"}]},{name:"invalid",values:[{name:"grammar"},{name:"false"},{name:"spelling"},{name:"true"}]},{name:"live",values:[{name:"off"},{name:"polite"},{name:"assertive"}]},{name:"orientation",values:[{name:"vertical"},{name:"horizontal"},{name:"undefined"}]},{name:"relevant",values:[{name:"additions"},{name:"removals"},{name:"text"},{name:"all"},{name:"additions text"}]},{name:"sort",values:[{name:"ascending"},{name:"descending"},{name:"none"},{name:"other"}]},{name:"roles",values:[{name:"alert"},{name:"alertdialog"},{name:"button"},{name:"checkbox"},{name:"dialog"},{name:"gridcell"},{name:"link"},{name:"log"},{name:"marquee"},{name:"menuitem"},{name:"menuitemcheckbox"},{name:"menuitemradio"},{name:"option"},{name:"progressbar"},{name:"radio"},{name:"scrollbar"},{name:"searchbox"},{name:"slider"},{name:"spinbutton"},{name:"status"},{name:"switch"},{name:"tab"},{name:"tabpanel"},{name:"textbox"},{name:"timer"},{name:"tooltip"},{name:"treeitem"},{name:"combobox"},{name:"grid"},{name:"listbox"},{name:"menu"},{name:"menubar"},{name:"radiogroup"},{name:"tablist"},{name:"tree"},{name:"treegrid"},{name:"application"},{name:"article"},{name:"cell"},{name:"columnheader"},{name:"definition"},{name:"directory"},{name:"document"},{name:"feed"},{name:"figure"},{name:"group"},{name:"heading"},{name:"img"},{name:"list"},{name:"listitem"},{name:"math"},{name:"none"},{name:"note"},{name:"presentation"},{name:"region"},{name:"row"},{name:"rowgroup"},{name:"rowheader"},{name:"separator"},{name:"table"},{name:"term"},{name:"text"},{name:"toolbar"},{name:"banner"},{name:"complementary"},{name:"contentinfo"},{name:"form"},{name:"main"},{name:"navigation"},{name:"region"},{name:"search"},{name:"doc-abstract"},{name:"doc-acknowledgments"},{name:"doc-afterword"},{name:"doc-appendix"},{name:"doc-backlink"},{name:"doc-biblioentry"},{name:"doc-bibliography"},{name:"doc-biblioref"},{name:"doc-chapter"},{name:"doc-colophon"},{name:"doc-conclusion"},{name:"doc-cover"},{name:"doc-credit"},{name:"doc-credits"},{name:"doc-dedication"},{name:"doc-endnote"},{name:"doc-endnotes"},{name:"doc-epigraph"},{name:"doc-epilogue"},{name:"doc-errata"},{name:"doc-example"},{name:"doc-footnote"},{name:"doc-foreword"},{name:"doc-glossary"},{name:"doc-glossref"},{name:"doc-index"},{name:"doc-introduction"},{name:"doc-noteref"},{name:"doc-notice"},{name:"doc-pagebreak"},{name:"doc-pagelist"},{name:"doc-part"},{name:"doc-preface"},{name:"doc-prologue"},{name:"doc-pullquote"},{name:"doc-qna"},{name:"doc-subtitle"},{name:"doc-tip"},{name:"doc-toc"}]},{name:"metanames",values:[{name:"application-name"},{name:"author"},{name:"description"},{name:"format-detection"},{name:"generator"},{name:"keywords"},{name:"publisher"},{name:"referrer"},{name:"robots"},{name:"theme-color"},{name:"viewport"}]},{name:"haspopup",values:[{name:"false",description:{kind:"markdown",value:"(default) Indicates the element does not have a popup."}},{name:"true",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"menu",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"listbox",description:{kind:"markdown",value:"Indicates the popup is a listbox."}},{name:"tree",description:{kind:"markdown",value:"Indicates the popup is a tree."}},{name:"grid",description:{kind:"markdown",value:"Indicates the popup is a grid."}},{name:"dialog",description:{kind:"markdown",value:"Indicates the popup is a dialog."}}]},{name:"decoding",values:[{name:"sync"},{name:"async"},{name:"auto"}]},{name:"loading",values:[{name:"eager",description:{kind:"markdown",value:"Loads the image immediately, regardless of whether or not the image is currently within the visible viewport (this is the default value)."}},{name:"lazy",description:{kind:"markdown",value:"Defers loading the image until it reaches a calculated distance from the viewport, as defined by the browser. The intent is to avoid the network and storage bandwidth needed to handle the image until it's reasonably certain that it will be needed. This generally improves the performance of the content in most typical use cases."}}]},{name:"referrerpolicy",values:[{name:"no-referrer"},{name:"no-referrer-when-downgrade"},{name:"origin"},{name:"origin-when-cross-origin"},{name:"same-origin"},{name:"strict-origin"},{name:"strict-origin-when-cross-origin"},{name:"unsafe-url"}]}]}});var fm,fK,bM=de(()=>{$u();kS();gS();fm=class{constructor(e){this.dataProviders=[],this.setDataProviders(e.useDefaultDataProvider!==!1,e.customDataProviders||[])}setDataProviders(e,n){this.dataProviders=[],e&&this.dataProviders.push(new ql("html5",pm)),this.dataProviders.push(...n)}getDataProviders(){return this.dataProviders}isVoidElement(e,n){return!!e&&FI(n,e.toLowerCase(),(r,i)=>r.localeCompare(i))>=0}getVoidElements(e){let n=Array.isArray(e)?e:this.getDataProviders().filter(i=>i.isApplicable(e)),r=[];return n.forEach(i=>{i.provideTags().filter(o=>o.void).forEach(o=>r.push(o.name))}),r.sort()}isPathAttribute(e,n){if(n==="src"||n==="href")return!0;let r=fK[e];return r?typeof r=="string"?r===n:r.indexOf(n)!==-1:!1}},fK={a:"href",area:"href",body:"background",blockquote:"cite",del:"cite",form:"action",frame:["src","longdesc"],img:["src","longdesc"],ins:"cite",link:"href",object:"data",q:"cite",script:"src",audio:"src",button:"formaction",command:"icon",embed:"src",html:"manifest",input:["src","formaction"],source:"src",track:"src",video:["src","poster"]}});var Wl={};ih(Wl,{ClientCapabilities:()=>hS,Color:()=>fo,ColorInformation:()=>bs,ColorPresentation:()=>vs,Command:()=>er,CompletionItem:()=>ys,CompletionItemKind:()=>fe,CompletionItemTag:()=>tr,CompletionList:()=>_s,Diagnostic:()=>Pi,DocumentHighlight:()=>xs,DocumentHighlightKind:()=>pn,DocumentLink:()=>ks,DocumentSymbol:()=>Lr,DocumentUri:()=>gs,FileType:()=>Bu,FoldingRange:()=>ws,FoldingRangeKind:()=>Zn,FormattingOptions:()=>Ll,Hover:()=>Ss,InsertReplaceEdit:()=>Fl,InsertTextFormat:()=>Be,InsertTextMode:()=>Il,Location:()=>Mr,MarkedString:()=>Li,MarkupContent:()=>ci,MarkupKind:()=>nt,Position:()=>Oe,Range:()=>pe,ScannerState:()=>Ie,SelectionRange:()=>Tn,SymbolInformation:()=>Pr,SymbolKind:()=>ln,TextDocument:()=>Cs,TextEdit:()=>ge,TokenType:()=>ce,WorkspaceEdit:()=>mo,getDefaultHTMLDataProvider:()=>bK,getLanguageService:()=>gK,newHTMLDataProvider:()=>vM});function gK(t=mK){let e=new fm(t),n=new cm(t,e),r=new am(t,e),i=new om(e),o=new hm(i),a=new dm(e),l=new um(e);return{setDataProviders:e.setDataProviders.bind(e),createScanner:Xt,parseHTMLDocument:i.parseDocument.bind(i),doComplete:r.doComplete.bind(r),doComplete2:r.doComplete2.bind(r),setCompletionParticipants:r.setCompletionParticipants.bind(r),doHover:n.doHover.bind(n),format:YI,findDocumentHighlights:oM,findDocumentLinks:l.findDocumentLinks.bind(l),findDocumentSymbols:aM,findDocumentSymbols2:SS,getFoldingRanges:a.getFoldingRanges.bind(a),getSelectionRanges:o.getSelectionRanges.bind(o),doQuoteComplete:r.doQuoteComplete.bind(r),doTagComplete:r.doTagComplete.bind(r),doRename:uM,findMatchingTagPosition:hM,findOnTypeRenameRanges:xS,findLinkedEditingRanges:xS}}function vM(t,e){return new ql(t,e)}function bK(){return vM("default",pm)}var mK,Ul=de(()=>{bo();II();qI();UI();ZI();tM();sM();cM();dM();pM();fM();mM();gM();$u();bM();kS();nr();mK={}});var mm=L(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.patchTSX=Ts.classNameFromFilename=Ts.framework2tsx=void 0;var CS=Sn(),wM=Jf();function vK(t,e,n){let r=n==="vue"?(0,wM.importVueIntegration)(t):(0,wM.importSvelteIntegration)(t);if(!r)return a("");let i=yM(t),o=_M(r.toTSX(e,i),t);return a(o);function a(l){return{id:"tsx",languageId:"typescript",snapshot:{getText:(s,c)=>l.substring(s,c),getLength:()=>l.length,getChangeRange:()=>{}},mappings:[],embeddedCodes:[]}}}Ts.framework2tsx=vK;function wK(t){return`${t}`.replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(e,n,r)=>`${n.toUpperCase()+r.toLowerCase()}`).replace(new RegExp(/\w/),e=>e.toUpperCase())}function yM(t){let e=CS.URI.parse(t),r=CS.Utils.basename(e).slice(0,-CS.Utils.extname(e).length).split("").filter(s=>/[A-Za-z$_\d-]/.test(s)).join(""),i=r.split("").findIndex(s=>/[A-Za-z]/.test(s)),o=r.substring(i),a=wK(o);return i===-1?`A${a}`:a}Ts.classNameFromFilename=yM;function _M(t,e){let n=e.split("/").pop(),r=n.startsWith("[")&&n.endsWith("]");return t.replace(/\b(\S*)__AstroComponent_/gm,(i,o)=>o?r?`_${o}_`:o[0].toUpperCase()+o.slice(1):n==="404"?"FourOhFour":i)}Ts.patchTSX=_M});var CM=L(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.astro2tsx=Es.getTSXRangesAsLSPRanges=Es.safeConvertToTSX=void 0;var yK=require("@astrojs/compiler/sync"),_K=KF(),SM=hs(),TS=(Ul(),ao(Wl)),SK=mm();function xM(t,e){try{return(0,yK.convertToTSX)(t,{filename:e.filename})}catch(n){return console.error(`There was an error transforming ${e.filename} to TSX. An empty file will be returned instead. Please create an issue: https://github.com/withastro/language-tools/issues
|
|
531
531
|
Error: ${n}.`),{code:"",map:{file:e.filename??"",sources:[],sourcesContent:[],names:[],mappings:"",version:0},diagnostics:[{code:1e3,location:{file:e.filename,line:1,column:1,length:t.length},severity:1,text:"The Astro compiler encountered an unknown error while transform this file to TSX. Please create an issue with your code and the error shown in the server's logs: https://github.com/withastro/language-tools/issues"}],metaRanges:{frontmatter:{start:0,end:0},body:{start:0,end:0}}}}}Es.safeConvertToTSX=xM;function kM(t){let e=TS.TextDocument.create("","typescriptreact",0,t.code);return{frontmatter:SM.Range.create(e.positionAt(t.metaRanges.frontmatter.start),e.positionAt(t.metaRanges.frontmatter.end)),body:SM.Range.create(e.positionAt(t.metaRanges.body.start),e.positionAt(t.metaRanges.body.end))}}Es.getTSXRangesAsLSPRanges=kM;function xK(t,e,n){let r=xM(t,{filename:e});return{virtualCode:kK(t,r,e,n),diagnostics:r.diagnostics,ranges:kM(r)}}Es.astro2tsx=xK;function kK(t,e,n,r){e.code=(0,SK.patchTSX)(e.code,n);let i=(0,_K.decode)(e.map.mappings),o=TS.TextDocument.create("","astro",0,t),a=TS.TextDocument.create("","typescriptreact",0,e.code),l=[],s;for(let c=0;c<i.length;c++)for(let u of i[c]){let d=u[0],h=a.offsetAt({line:c,character:d});if(s){let f=h-s.genOffset,_=t.substring(s.sourceOffset,s.sourceOffset+f),g=e.code.substring(s.genOffset,s.genOffset+f);if(_!==g){f=0;for(let k=0;k<h-s.genOffset&&_[k]===g[k];k++)f=k+1}if(f>0){let k=l.length?l[l.length-1]:void 0;if(k&&k.generatedOffsets[0]+k.lengths[0]===s.genOffset&&k.sourceOffsets[0]+k.lengths[0]===s.sourceOffset)k.lengths[0]+=f;else{let w=r.findNodeAt(s.sourceOffset).tag!=="script"?{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}:{verification:!1,completion:!1,semantic:!1,navigation:!1,structure:!1,format:!1};l.push({sourceOffsets:[s.sourceOffset],generatedOffsets:[s.genOffset],lengths:[f],data:w})}}s=void 0}if(u[2]!==void 0&&u[3]!==void 0){let f=o.offsetAt({line:u[2],character:u[3]});s={genOffset:h,sourceOffset:f}}}return{id:"tsx",languageId:"typescriptreact",snapshot:{getText:(c,u)=>e.code.substring(c,u),getLength:()=>e.code.length,getChangeRange:()=>{}},mappings:l,embeddedCodes:[]}}});var TM=L(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});gm.getAstroMetadata=void 0;var CK=require("@astrojs/compiler/sync");function TK(t,e,n={position:!0}){let r=EK(t,e,n);return{...r,frontmatter:DK(r.ast,e)}}gm.getAstroMetadata=TK;function EK(t,e,n){try{return(0,CK.parse)(e,n)}catch(r){return console.error(`There was an error parsing ${t}'s AST. An empty AST will be returned instead to avoid breaking the server. Please create an issue: https://github.com/withastro/language-tools/issues
|
|
532
532
|
Error: ${r}.`),{ast:{type:"root",children:[]},diagnostics:[{code:1e3,location:{file:t,line:1,column:1,length:e.length},severity:1,text:"The Astro compiler encountered an unknown error while parsing this file's AST. Please create an issue with your code and the error shown in the server's logs: https://github.com/withastro/language-tools/issues"}]}}}function DK(t,e){if(!t.children||t.children&&t.children.length===0)return{status:"doesnt-exist",position:void 0};if(t.children[0].type==="frontmatter"){let n=t.children[0];if(n.position)return n.position.end?n.position.end.offset===e.length&&!e.endsWith("---")?{status:"open",position:{start:n.position.start,end:void 0}}:{status:"closed",position:{start:n.position.start,end:n.position.end}}:{status:"open",position:{start:n.position.start,end:void 0}}}return{status:"doesnt-exist",position:void 0}}});var DM=L(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.collectClassesAndIdsFromDocument=Hl.extractStylesheets=void 0;var bm=require("@astrojs/compiler/utils"),EM=Je();function AK(t,e,n){let r=RK(t,e.roots),i=FK(n);if(i.length>0){let o=[];for(let s of i)o.push("x { "),o.push([s.value,void 0,s.position.start.offset+7,{completion:!0,verification:!1,semantic:!0,navigation:!0,structure:!0,format:!1}]),o.push(` }
|
|
533
|
-
`);let a=(0,EM.buildMappings)(o),l=(0,EM.toString)(o);r.push({id:"inline.css",languageId:"css",snapshot:{getText:(s,c)=>l.substring(s,c),getLength:()=>l.length,getChangeRange:()=>{}},embeddedCodes:[],mappings:a})}return r}Hl.extractStylesheets=AK;function RK(t,e){let n=[],r=0;i(e);function i(o){for(let[a,l]of o.entries()){if(l.tag==="style"&&l.startTagEnd!==void 0&&l.endTagStart!==void 0){let s=t.getText(l.startTagEnd,l.endTagStart);n.push({id:`${r}.css`,languageId:"css",snapshot:{getText:(c,u)=>s.substring(c,u),getLength:()=>s.length,getChangeRange:()=>{}},mappings:[{sourceOffsets:[l.startTagEnd],generatedOffsets:[0],lengths:[s.length],data:{verification:!1,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}}],embeddedCodes:[]}),r++}l.children&&i(l.children)}}return n}function FK(t){let e=[];function n(r){r.children&&r.children.forEach(i=>{if(bm.is.element(i)){let o=i.attributes.find(a=>a.name==="style"&&a.kind==="quoted");o&&o.position&&e.push(o)}bm.is.parent(i)&&n(i)})}return n(t),e}function IK(t){let e=[];function n(r){r.children&&r.children.forEach(i=>{if(bm.is.element(i)){let o=i.attributes.filter(a=>a.kind==="quoted"&&(a.name==="class"||a.name==="id")).flatMap(a=>a.value.split(" "));e.push(...o)}bm.is.parent(i)&&n(i)})}return n(t),e}Hl.collectClassesAndIdsFromDocument=IK});var jl=L(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.editShouldBeInFrontmatter=Kt.getOpenFrontmatterEdit=Kt.getNewFrontmatterEdit=Kt.ensureRangeIsInFrontmatter=Kt.ensureProperEditForFrontmatter=Kt.isInsideFrontmatter=Kt.isInsideExpression=Kt.isInComponentStartTag=Kt.isPossibleComponent=Kt.isJSDocument=void 0;var vm=(Ul(),ao(Wl));function MK(t){return t==="javascript"||t==="typescript"||t==="javascriptreact"||t==="typescriptreact"}Kt.isJSDocument=MK;function AM(t){return!!t.tag?.[0].match(/[A-Z]/)||!!t.tag?.match(/.+[.][A-Z]?/)}Kt.isPossibleComponent=AM;function PK(t,e){let n=t.findNodeAt(e);return AM(n)&&(!n.startTagEnd||e<n.startTagEnd)}Kt.isInComponentStartTag=PK;function LK(t,e,n){let r=t.substring(e,n);return r.lastIndexOf("{")>r.lastIndexOf("}")}Kt.isInsideExpression=LK;function OK(t,e){switch(e.status){case"closed":return t>e.position.start.offset&&t<e.position.end.offset;case"open":return t>e.position.start.offset;case"doesnt-exist":return!1}}Kt.isInsideFrontmatter=OK;function NK(t,e,n,r="top"){switch(e.frontmatter.status){case"open":return IM(t,e,n);case"closed":let i=RM(t.range,e,r);return{newText:i.start.line===e.frontmatter.position.start.line&&t.newText.startsWith(n)?t.newText.trimStart():t.newText,range:i};case"doesnt-exist":return FM(t,e,n)}}Kt.ensureProperEditForFrontmatter=NK;function RM(t,e,n="top"){if(e.frontmatter.status==="open"||e.frontmatter.status==="closed"){let r=e.frontmatter.position.end?e.tsxRanges.frontmatter.end:void 0;return t.start.line<e.tsxRanges.frontmatter.start.line||r&&t.start.line>r.line?r&&n==="bottom"?vm.Range.create(r,r):vm.Range.create(e.tsxRanges.frontmatter.start,e.tsxRanges.frontmatter.start):t}return t}Kt.ensureRangeIsInFrontmatter=RM;function FM(t,e,n){return t.newText=`---${t.newText.startsWith(n)?"":n}${t.newText}---${n}${n}`,t.range=vm.Range.create(e.tsxRanges.frontmatter.start,e.tsxRanges.frontmatter.start),t}Kt.getNewFrontmatterEdit=FM;function IM(t,e,n){return t.newText=t.newText.startsWith(n)?`${t.newText}---`:`${n}${t.newText}---`,t.range=vm.Range.create(e.tsxRanges.frontmatter.start,e.tsxRanges.frontmatter.start),t}Kt.getOpenFrontmatterEdit=IM;function zK(t,e){let n=t.start.line<e.tsxRanges.frontmatter.start.line,r=t.start.line>e.tsxRanges.body.end.line;return n||r?{itShould:!0,position:r?"bottom":"top"}:{itShould:!1,position:void 0}}Kt.editShouldBeInFrontmatter=zK});var OM=L(Or=>{"use strict";var qK=Or&&Or.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),WK=Or&&Or.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),UK=Or&&Or.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&qK(e,t,n);return WK(e,t),e};Object.defineProperty(Or,"__esModule",{value:!0});Or.preprocessHTML=Or.parseHTML=void 0;var Ds=UK((Ul(),ao(Wl))),HK=jl(),PM=Ds.getLanguageService();function jK(t,e){let n=LM(t.getText(0,t.getLength()),e);return{virtualCode:BK(n),htmlDocument:$K(n)}}Or.parseHTML=jK;var MM=PM.createScanner;function LM(t,e){let n=t.split("").fill(" ",0,e).join(""),r=MM(n),i=r.scan(),o=null;for(;i!==Ds.TokenType.EOS;){let s=r.getTokenOffset();i===Ds.TokenType.StartTagOpen&&(o=s),i===Ds.TokenType.StartTagClose&&(a(s)?l(s):o=null),i===Ds.TokenType.StartTagSelfClose&&(o=null),i===Ds.TokenType.Unknown&&r.getScannerState()===Ds.ScannerState.WithinTag&&r.getTokenText()==="<"&&a(s)&&l(s),i=r.scan()}return n;function a(s){return o!==null&&(0,HK.isInsideExpression)(n,o,s)}function l(s,c){n=n.substring(0,s)+" "+n.substring(s+1),r=MM(n,s,c??Ds.ScannerState.WithinTag)}}Or.preprocessHTML=LM;function BK(t){return{id:"html",languageId:"html",snapshot:{getText:(e,n)=>t.substring(e,n),getLength:()=>t.length,getChangeRange:()=>{}},mappings:[{sourceOffsets:[0],generatedOffsets:[0],lengths:[t.length],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}}],embeddedCodes:[]}}function $K(t){return PM.parseHTMLDocument({getText:()=>t})}});var qM=L(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.extractScriptTags=void 0;var NM=require("@astrojs/compiler/utils"),zM=Je();function VK(t,e,n){let r=GK(t,e.roots),i=[...KK(e,t),...QK(n)].sort((o,a)=>o.startOffset-a.startOffset);return i.length>0&&r.push(YK(i)),r}ym.extractScriptTags=VK;function wm(t){return!t.attributes||Object.entries(t.attributes).length===0?"processed module":t.attributes.type?.includes("module")===!0?"module":"classic"}function GK(t,e){let n=[],r=0;i(e);function i(o){for(let[a,l]of o.entries()){if(l.tag==="script"&&l.startTagEnd!==void 0&&l.endTagStart!==void 0&&wm(l)!=="classic"){let s=t.getText(l.startTagEnd,l.endTagStart),c=wm(l)==="processed module"?"mts":"mjs",u=wm(l)==="processed module"?"typescript":"javascript";n.push({id:`${r}.${c}`,languageId:u,snapshot:{getText:(d,h)=>s.substring(d,h),getLength:()=>s.length,getChangeRange:()=>{}},mappings:[{sourceOffsets:[l.startTagEnd],generatedOffsets:[0],lengths:[s.length],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}}],embeddedCodes:[]}),r++}l.children&&i(l.children)}}return n}function KK(t,e){let n=[];r(t.roots);function r(i){for(let[o,a]of i.entries()){if(a.tag==="script"&&a.startTagEnd!==void 0&&a.endTagStart!==void 0&&!XK(a.attributes?.type)&&wm(a)==="classic"){let l=e.getText(a.startTagEnd,a.endTagStart);n.push({startOffset:a.startTagEnd,content:l})}a.children&&r(a.children)}}return n}var JK=["application/json","application/ld+json","importmap","speculationrules"];function XK(t){return t?JK.includes(t.slice(1,-1)):!1}function QK(t){let e=[];function n(r){r.children&&r.children.forEach(i=>{if(NM.is.element(i)){let o=i.attributes.find(a=>ZK.includes(a.name)&&a.kind==="quoted");o&&o.position&&e.push({content:o.value+";",startOffset:o.position.start.offset+`${o.name}="`.length})}NM.is.parent(i)&&n(i)})}return n(t),e}function YK(t){let e=[];for(let i of t)e.push([i.content,void 0,i.startOffset,{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}]);let n=(0,zM.buildMappings)(e),r=(0,zM.toString)(e);return{id:"inline.mjs",languageId:"javascript",snapshot:{getText:(i,o)=>r.substring(i,o),getLength:()=>r.length,getChangeRange:()=>{}},embeddedCodes:[],mappings:n}}var ZK=["onabort","onafterprint","onauxclick","onbeforematch","onbeforeprint","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"]});var As=L(Nr=>{"use strict";var eJ=Nr&&Nr.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),tJ=Nr&&Nr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),nJ=Nr&&Nr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&eJ(e,t,n);return tJ(e,t),e};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.AstroVirtualCode=Nr.getLanguageModule=void 0;var ES=nJ(require("node:path")),WM=Je(),rJ=Sn(),iJ=Z_(),oJ=CM(),sJ=TM(),aJ=DM(),lJ=OM(),cJ=qM();function uJ(t,e){return{getLanguageId(n){if(n.endsWith(".astro"))return"astro"},createVirtualCode(n,r,i){if(r==="astro"){let o=n.includes("://")?rJ.URI.parse(n).fsPath.replace(/\\/g,"/"):n;return new _m(o,i)}},updateVirtualCode(n,r,i){return r.update(i),r},typescript:{extraFileExtensions:[{extension:"astro",isMixedContent:!0,scriptKind:7}],getServiceScript(n){for(let r of(0,WM.forEachEmbeddedCode)(n))if(r.id==="tsx")return{code:r,extension:".tsx",scriptKind:4}},getExtraServiceScripts(n,r){let i=[];for(let o of(0,WM.forEachEmbeddedCode)(r))if(o.id.endsWith(".mjs")||o.id.endsWith(".mts")){let a=o.id.endsWith(".mjs")?".mjs":".mts";i.push({fileName:n+"."+o.id,code:o,extension:a,scriptKind:a===".mjs"?1:3})}return i},resolveLanguageServiceHost(n){return{...n,getScriptFileNames(){let r=(0,iJ.getLanguageServerTypesDir)(e),i=n.getScriptFileNames(),o=[];return t?(o.push(...["./env.d.ts","./astro-jsx.d.ts"].map(a=>e.sys.resolvePath(ES.resolve(t.path,a)))),(t.version.major<4||t.version.major===4&&t.version.minor===0&&t.version.patch<8)&&o.push(...["./jsx-runtime-augment.d.ts"].map(a=>e.sys.resolvePath(ES.resolve(r,a))))):o.push(...["./env.d.ts","./astro-jsx.d.ts","./jsx-runtime-fallback.d.ts"].map(a=>e.sys.resolvePath(ES.resolve(r,a)))),[...i,...o]},getCompilationSettings(){let r=n.getCompilationSettings();return{...r,module:e.ModuleKind.ESNext??99,target:e.ScriptTarget.ESNext??99,jsx:e.JsxEmit.Preserve??1,resolveJsonModule:!0,allowJs:!0,isolatedModules:!0,moduleResolution:r.moduleResolution===e.ModuleResolutionKind.Classic||!r.moduleResolution?e.ModuleResolutionKind.Node10:r.moduleResolution}}}}}}}Nr.getLanguageModule=uJ;var _m=class{constructor(e,n){this.fileName=e,this.snapshot=n,this.id="root",this.languageId="astro",this.codegenStacks=[],this.onSnapshotUpdated()}get hasCompilationErrors(){return this.compilerDiagnostics.filter(e=>e.severity===1).length>0}update(e){this.snapshot=e,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceOffsets:[0],generatedOffsets:[0],lengths:[this.snapshot.getLength()],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!0}}],this.compilerDiagnostics=[];let e=(0,sJ.getAstroMetadata)(this.fileName,this.snapshot.getText(0,this.snapshot.getLength()));e.diagnostics.length>0&&this.compilerDiagnostics.push(...e.diagnostics);let{htmlDocument:n,virtualCode:r}=(0,lJ.parseHTML)(this.snapshot,e.frontmatter.status==="closed"?e.frontmatter.position.end.offset:0);this.htmlDocument=n;let i=(0,cJ.extractScriptTags)(this.snapshot,n,e.ast);this.scriptCodeIds=i.map(a=>a.id),r.embeddedCodes=[],r.embeddedCodes.push(...(0,aJ.extractStylesheets)(this.snapshot,n,e.ast),...i),this.embeddedCodes=[],this.embeddedCodes.push(r);let o=(0,oJ.astro2tsx)(this.snapshot.getText(0,this.snapshot.getLength()),this.fileName,n);this.astroMeta={...e,tsxRanges:o.ranges},this.compilerDiagnostics.push(...o.diagnostics),this.embeddedCodes.push(o.virtualCode)}};Nr.AstroVirtualCode=_m});var UM=L(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.getSvelteLanguageModule=void 0;var dJ=Je(),hJ=Sn(),pJ=mm();function fJ(){return{getLanguageId(t){if(t.endsWith(".svelte"))return"svelte"},createVirtualCode(t,e,n){if(e==="svelte"){let r=t.includes("://")?hJ.URI.parse(t).fsPath.replace(/\\/g,"/"):t;return new DS(r,n)}},updateVirtualCode(t,e,n){return e.update(n),e},typescript:{extraFileExtensions:[{extension:"svelte",isMixedContent:!0,scriptKind:7}],getServiceScript(t){for(let e of(0,dJ.forEachEmbeddedCode)(t))if(e.id==="tsx")return{code:e,extension:".tsx",scriptKind:4}}}}}Sm.getSvelteLanguageModule=fJ;var DS=class{constructor(e,n){this.fileName=e,this.snapshot=n,this.id="root",this.languageId="svelte",this.codegenStacks=[],this.onSnapshotUpdated()}update(e){this.snapshot=e,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceOffsets:[0],generatedOffsets:[0],lengths:[this.snapshot.getLength()],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!0}}],this.embeddedCodes=[],this.embeddedCodes.push((0,pJ.framework2tsx)(this.fileName,this.snapshot.getText(0,this.snapshot.getLength()),"svelte"))}}});var HM=L(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.getVueLanguageModule=void 0;var mJ=Je(),gJ=Sn(),bJ=mm();function vJ(){return{getLanguageId(t){if(t.endsWith(".vue"))return"vue"},createVirtualCode(t,e,n){if(e==="vue"){let r=t.includes("://")?gJ.URI.parse(t).fsPath.replace(/\\/g,"/"):t;return new AS(r,n)}},updateVirtualCode(t,e,n){return e.update(n),e},typescript:{extraFileExtensions:[{extension:"vue",isMixedContent:!0,scriptKind:7}],getServiceScript(t){for(let e of(0,mJ.forEachEmbeddedCode)(t))if(e.id==="tsx")return{code:e,extension:".tsx",scriptKind:4}}}}}xm.getVueLanguageModule=vJ;var AS=class{constructor(e,n){this.fileName=e,this.snapshot=n,this.id="root",this.languageId="vue",this.codegenStacks=[],this.onSnapshotUpdated()}update(e){this.snapshot=e,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceOffsets:[0],generatedOffsets:[0],lengths:[this.snapshot.getLength()],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!0}}],this.embeddedCodes=[],this.embeddedCodes.push((0,bJ.framework2tsx)(this.fileName,this.snapshot.getText(0,this.snapshot.getLength()),"vue"))}}});var I,Tm,km,jM,BM,ave,Cm,$M,VM,Ku,Ju,wJ,yJ,Xu,_J,ha,GM,SJ,RS,ZM,eP,xJ,kJ,CJ,TJ,EJ,FS,KM,Bl,$l,Qu,JM,XM,IS,MS,DJ,AJ,RJ,FJ,IJ,MJ,PJ,QM,YM,LJ,OJ,zi,At,zr,Rs=de(()=>{"use strict";(function(t){t[t.Ident=0]="Ident",t[t.AtKeyword=1]="AtKeyword",t[t.String=2]="String",t[t.BadString=3]="BadString",t[t.UnquotedString=4]="UnquotedString",t[t.Hash=5]="Hash",t[t.Num=6]="Num",t[t.Percentage=7]="Percentage",t[t.Dimension=8]="Dimension",t[t.UnicodeRange=9]="UnicodeRange",t[t.CDO=10]="CDO",t[t.CDC=11]="CDC",t[t.Colon=12]="Colon",t[t.SemiColon=13]="SemiColon",t[t.CurlyL=14]="CurlyL",t[t.CurlyR=15]="CurlyR",t[t.ParenthesisL=16]="ParenthesisL",t[t.ParenthesisR=17]="ParenthesisR",t[t.BracketL=18]="BracketL",t[t.BracketR=19]="BracketR",t[t.Whitespace=20]="Whitespace",t[t.Includes=21]="Includes",t[t.Dashmatch=22]="Dashmatch",t[t.SubstringOperator=23]="SubstringOperator",t[t.PrefixOperator=24]="PrefixOperator",t[t.SuffixOperator=25]="SuffixOperator",t[t.Delim=26]="Delim",t[t.EMS=27]="EMS",t[t.EXS=28]="EXS",t[t.Length=29]="Length",t[t.Angle=30]="Angle",t[t.Time=31]="Time",t[t.Freq=32]="Freq",t[t.Exclamation=33]="Exclamation",t[t.Resolution=34]="Resolution",t[t.Comma=35]="Comma",t[t.Charset=36]="Charset",t[t.EscapedJavaScript=37]="EscapedJavaScript",t[t.BadEscapedJavaScript=38]="BadEscapedJavaScript",t[t.Comment=39]="Comment",t[t.SingleLineComment=40]="SingleLineComment",t[t.EOF=41]="EOF",t[t.CustomToken=42]="CustomToken",t[t.ContainerQueryLength=43]="ContainerQueryLength"})(I||(I={}));Tm=class{constructor(e){this.source=e,this.len=e.length,this.position=0}substring(e,n=this.position){return this.source.substring(e,n)}eos(){return this.len<=this.position}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}lookbackChar(e=0){return this.source.charCodeAt(this.position-e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(e){if(this.position+e.length>this.source.length)return!1;let n=0;for(;n<e.length;n++)if(this.source.charCodeAt(this.position+n)!==e[n])return!1;return this.advance(n),!0}advanceWhileChar(e){let n=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-n}},km="a".charCodeAt(0),jM="f".charCodeAt(0),BM="z".charCodeAt(0),ave="u".charCodeAt(0),Cm="A".charCodeAt(0),$M="F".charCodeAt(0),VM="Z".charCodeAt(0),Ku="0".charCodeAt(0),Ju="9".charCodeAt(0),wJ="~".charCodeAt(0),yJ="^".charCodeAt(0),Xu="=".charCodeAt(0),_J="|".charCodeAt(0),ha="-".charCodeAt(0),GM="_".charCodeAt(0),SJ="%".charCodeAt(0),RS="*".charCodeAt(0),ZM="(".charCodeAt(0),eP=")".charCodeAt(0),xJ="<".charCodeAt(0),kJ=">".charCodeAt(0),CJ="@".charCodeAt(0),TJ="#".charCodeAt(0),EJ="$".charCodeAt(0),FS="\\".charCodeAt(0),KM="/".charCodeAt(0),Bl=`
|
|
533
|
+
`);let a=(0,EM.buildMappings)(o),l=(0,EM.toString)(o);r.push({id:"inline.css",languageId:"css",snapshot:{getText:(s,c)=>l.substring(s,c),getLength:()=>l.length,getChangeRange:()=>{}},embeddedCodes:[],mappings:a})}return r}Hl.extractStylesheets=AK;function RK(t,e){let n=[],r=0;i(e);function i(o){for(let[a,l]of o.entries()){if(l.tag==="style"&&l.startTagEnd!==void 0&&l.endTagStart!==void 0){let s=t.getText(l.startTagEnd,l.endTagStart);n.push({id:`${r}.css`,languageId:"css",snapshot:{getText:(c,u)=>s.substring(c,u),getLength:()=>s.length,getChangeRange:()=>{}},mappings:[{sourceOffsets:[l.startTagEnd],generatedOffsets:[0],lengths:[s.length],data:{verification:!1,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}}],embeddedCodes:[]}),r++}l.children&&i(l.children)}}return n}function FK(t){let e=[];function n(r){r.children&&r.children.forEach(i=>{if(bm.is.element(i)){let o=i.attributes.find(a=>a.name==="style"&&a.kind==="quoted");o&&o.position&&e.push(o)}bm.is.parent(i)&&n(i)})}return n(t),e}function IK(t){let e=[];function n(r){r.children&&r.children.forEach(i=>{if(bm.is.element(i)){let o=i.attributes.filter(a=>a.kind==="quoted"&&(a.name==="class"||a.name==="id")).flatMap(a=>a.value.split(" "));e.push(...o)}bm.is.parent(i)&&n(i)})}return n(t),e}Hl.collectClassesAndIdsFromDocument=IK});var jl=L(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.editShouldBeInFrontmatter=Kt.getOpenFrontmatterEdit=Kt.getNewFrontmatterEdit=Kt.ensureRangeIsInFrontmatter=Kt.ensureProperEditForFrontmatter=Kt.isInsideFrontmatter=Kt.isInsideExpression=Kt.isInComponentStartTag=Kt.isPossibleComponent=Kt.isJSDocument=void 0;var vm=(Ul(),ao(Wl));function MK(t){return t==="javascript"||t==="typescript"||t==="javascriptreact"||t==="typescriptreact"}Kt.isJSDocument=MK;function AM(t){return!!t.tag?.[0].match(/[A-Z]/)||!!t.tag?.match(/.+[.][A-Z]?/)}Kt.isPossibleComponent=AM;function PK(t,e){let n=t.findNodeAt(e);return AM(n)&&(!n.startTagEnd||e<n.startTagEnd)}Kt.isInComponentStartTag=PK;function LK(t,e,n){let r=t.substring(e,n);return r.lastIndexOf("{")>r.lastIndexOf("}")}Kt.isInsideExpression=LK;function OK(t,e){switch(e.status){case"closed":return t>e.position.start.offset&&t<e.position.end.offset;case"open":return t>e.position.start.offset;case"doesnt-exist":return!1}}Kt.isInsideFrontmatter=OK;function NK(t,e,n,r="top"){switch(e.frontmatter.status){case"open":return IM(t,e,n);case"closed":let i=RM(t.range,e,r);return{newText:i.start.line===e.frontmatter.position.start.line&&t.newText.startsWith(n)?t.newText.trimStart():t.newText,range:i};case"doesnt-exist":return FM(t,e,n)}}Kt.ensureProperEditForFrontmatter=NK;function RM(t,e,n="top"){if(e.frontmatter.status==="open"||e.frontmatter.status==="closed"){let r=e.frontmatter.position.end?e.tsxRanges.frontmatter.end:void 0;return t.start.line<e.tsxRanges.frontmatter.start.line||r&&t.start.line>r.line?r&&n==="bottom"?vm.Range.create(r,r):vm.Range.create(e.tsxRanges.frontmatter.start,e.tsxRanges.frontmatter.start):t}return t}Kt.ensureRangeIsInFrontmatter=RM;function FM(t,e,n){return t.newText=`---${t.newText.startsWith(n)?"":n}${t.newText}---${n}${n}`,t.range=vm.Range.create(e.tsxRanges.frontmatter.start,e.tsxRanges.frontmatter.start),t}Kt.getNewFrontmatterEdit=FM;function IM(t,e,n){return t.newText=t.newText.startsWith(n)?`${t.newText}---`:`${n}${t.newText}---`,t.range=vm.Range.create(e.tsxRanges.frontmatter.start,e.tsxRanges.frontmatter.start),t}Kt.getOpenFrontmatterEdit=IM;function zK(t,e){let n=t.start.line<e.tsxRanges.frontmatter.start.line,r=t.start.line>e.tsxRanges.body.end.line;return n||r?{itShould:!0,position:r?"bottom":"top"}:{itShould:!1,position:void 0}}Kt.editShouldBeInFrontmatter=zK});var OM=L(Or=>{"use strict";var qK=Or&&Or.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),WK=Or&&Or.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),UK=Or&&Or.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&qK(e,t,n);return WK(e,t),e};Object.defineProperty(Or,"__esModule",{value:!0});Or.preprocessHTML=Or.parseHTML=void 0;var Ds=UK((Ul(),ao(Wl))),HK=jl(),PM=Ds.getLanguageService();function jK(t,e){let n=LM(t.getText(0,t.getLength()),e);return{virtualCode:BK(n),htmlDocument:$K(n)}}Or.parseHTML=jK;var MM=PM.createScanner;function LM(t,e){let n=t.split("").fill(" ",0,e).join(""),r=MM(n),i=r.scan(),o=null;for(;i!==Ds.TokenType.EOS;){let s=r.getTokenOffset();i===Ds.TokenType.StartTagOpen&&(o=s),i===Ds.TokenType.StartTagClose&&(a(s)?l(s):o=null),i===Ds.TokenType.StartTagSelfClose&&(o=null),i===Ds.TokenType.Unknown&&r.getScannerState()===Ds.ScannerState.WithinTag&&r.getTokenText()==="<"&&a(s)&&l(s),i=r.scan()}return n;function a(s){return o!==null&&(0,HK.isInsideExpression)(n,o,s)}function l(s,c){n=n.substring(0,s)+" "+n.substring(s+1),r=MM(n,s,c??Ds.ScannerState.WithinTag)}}Or.preprocessHTML=LM;function BK(t){return{id:"html",languageId:"html",snapshot:{getText:(e,n)=>t.substring(e,n),getLength:()=>t.length,getChangeRange:()=>{}},mappings:[{sourceOffsets:[0],generatedOffsets:[0],lengths:[t.length],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}}],embeddedCodes:[]}}function $K(t){return PM.parseHTMLDocument({getText:()=>t})}});var qM=L(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.extractScriptTags=void 0;var NM=require("@astrojs/compiler/utils"),zM=Je();function VK(t,e,n){let r=GK(t,e.roots),i=[...KK(e,t),...QK(n)].sort((o,a)=>o.startOffset-a.startOffset);return i.length>0&&r.push(YK(i)),r}ym.extractScriptTags=VK;function wm(t){return!t.attributes||Object.entries(t.attributes).length===0?"processed module":t.attributes.type?.includes("module")===!0?"module":"classic"}function GK(t,e){let n=[],r=0;i(e);function i(o){for(let[a,l]of o.entries()){if(l.tag==="script"&&l.startTagEnd!==void 0&&l.endTagStart!==void 0&&wm(l)!=="classic"){let s=t.getText(l.startTagEnd,l.endTagStart),c=wm(l)==="processed module"?"mts":"mjs",u=wm(l)==="processed module"?"typescript":"javascript";n.push({id:`${r}.${c}`,languageId:u,snapshot:{getText:(d,h)=>s.substring(d,h),getLength:()=>s.length,getChangeRange:()=>{}},mappings:[{sourceOffsets:[l.startTagEnd],generatedOffsets:[0],lengths:[s.length],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}}],embeddedCodes:[]}),r++}l.children&&i(l.children)}}return n}function KK(t,e){let n=[];r(t.roots);function r(i){for(let[o,a]of i.entries()){if(a.tag==="script"&&a.startTagEnd!==void 0&&a.endTagStart!==void 0&&!XK(a.attributes?.type)&&wm(a)==="classic"){let l=e.getText(a.startTagEnd,a.endTagStart);n.push({startOffset:a.startTagEnd,content:l})}a.children&&r(a.children)}}return n}var JK=["application/json","application/ld+json","importmap","speculationrules"];function XK(t){return t?JK.includes(t.slice(1,-1)):!1}function QK(t){let e=[];function n(r){r.children&&r.children.forEach(i=>{if(NM.is.element(i)){let o=i.attributes.find(a=>ZK.includes(a.name)&&a.kind==="quoted");o&&o.position&&e.push({content:o.value+";",startOffset:o.position.start.offset+`${o.name}="`.length})}NM.is.parent(i)&&n(i)})}return n(t),e}function YK(t){let e=[];for(let i of t)e.push([i.content,void 0,i.startOffset,{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}]);let n=(0,zM.buildMappings)(e),r=(0,zM.toString)(e);return{id:"inline.mjs",languageId:"javascript",snapshot:{getText:(i,o)=>r.substring(i,o),getLength:()=>r.length,getChangeRange:()=>{}},embeddedCodes:[],mappings:n}}var ZK=["onabort","onafterprint","onauxclick","onbeforematch","onbeforeprint","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"]});var As=L(Nr=>{"use strict";var eJ=Nr&&Nr.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),tJ=Nr&&Nr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),nJ=Nr&&Nr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&eJ(e,t,n);return tJ(e,t),e};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.AstroVirtualCode=Nr.getLanguageModule=void 0;var ES=nJ(require("node:path")),WM=Je(),rJ=Sn(),iJ=Z_(),oJ=CM(),sJ=TM(),aJ=DM(),lJ=OM(),cJ=qM();function uJ(t,e){return{getLanguageId(n){if(n.endsWith(".astro"))return"astro"},createVirtualCode(n,r,i){if(r==="astro"){let o=n.includes("://")?rJ.URI.parse(n).fsPath.replace(/\\/g,"/"):n;return new _m(o,i)}},updateVirtualCode(n,r,i){return r.update(i),r},typescript:{extraFileExtensions:[{extension:"astro",isMixedContent:!0,scriptKind:7}],getServiceScript(n){for(let r of(0,WM.forEachEmbeddedCode)(n))if(r.id==="tsx")return{code:r,extension:".tsx",scriptKind:4}},getExtraServiceScripts(n,r){let i=[];for(let o of(0,WM.forEachEmbeddedCode)(r))if(o.id.endsWith(".mjs")||o.id.endsWith(".mts")){let a=o.id.endsWith(".mjs")?".mjs":".mts";i.push({fileName:n+"."+o.id,code:o,extension:a,scriptKind:a===".mjs"?1:3})}return i},resolveLanguageServiceHost(n){return{...n,getScriptFileNames(){let r=(0,iJ.getLanguageServerTypesDir)(e),i=n.getScriptFileNames(),o=[];return t?(o.push(...["./env.d.ts","./astro-jsx.d.ts"].map(a=>e.sys.resolvePath(ES.resolve(t.path,a)))),(t.version.major<4||t.version.major===4&&t.version.minor===0&&t.version.patch<8)&&o.push(...["./jsx-runtime-augment.d.ts"].map(a=>e.sys.resolvePath(ES.resolve(r,a))))):o.push(...["./env.d.ts","./astro-jsx.d.ts","./jsx-runtime-fallback.d.ts"].map(a=>e.sys.resolvePath(ES.resolve(r,a)))),[...i,...o]},getCompilationSettings(){let r=n.getCompilationSettings();return{...r,module:e.ModuleKind.ESNext??99,target:e.ScriptTarget.ESNext??99,jsx:e.JsxEmit.Preserve??1,resolveJsonModule:!0,allowJs:!0,isolatedModules:!0,moduleResolution:r.moduleResolution===e.ModuleResolutionKind.Classic||!r.moduleResolution?e.ModuleResolutionKind.Node10:r.moduleResolution}}}}}}}Nr.getLanguageModule=uJ;var _m=class{constructor(e,n){this.fileName=e,this.snapshot=n,this.id="root",this.languageId="astro",this.codegenStacks=[],this.onSnapshotUpdated()}get hasCompilationErrors(){return this.compilerDiagnostics.filter(e=>e.severity===1).length>0}update(e){this.snapshot=e,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceOffsets:[0],generatedOffsets:[0],lengths:[this.snapshot.getLength()],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!0}}],this.compilerDiagnostics=[];let e=(0,sJ.getAstroMetadata)(this.fileName,this.snapshot.getText(0,this.snapshot.getLength()));e.diagnostics.length>0&&this.compilerDiagnostics.push(...e.diagnostics);let{htmlDocument:n,virtualCode:r}=(0,lJ.parseHTML)(this.snapshot,e.frontmatter.status==="closed"?e.frontmatter.position.end.offset:0);this.htmlDocument=n;let i=(0,cJ.extractScriptTags)(this.snapshot,n,e.ast);this.scriptCodeIds=i.map(a=>a.id),r.embeddedCodes=[],r.embeddedCodes.push(...(0,aJ.extractStylesheets)(this.snapshot,n,e.ast),...i),this.embeddedCodes=[],this.embeddedCodes.push(r);let o=(0,oJ.astro2tsx)(this.snapshot.getText(0,this.snapshot.getLength()),this.fileName,n);this.astroMeta={...e,tsxRanges:o.ranges},this.compilerDiagnostics.push(...o.diagnostics),this.embeddedCodes.push(o.virtualCode)}};Nr.AstroVirtualCode=_m});var UM=L(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.getSvelteLanguageModule=void 0;var dJ=Je(),hJ=Sn(),pJ=mm();function fJ(){return{getLanguageId(t){if(t.endsWith(".svelte"))return"svelte"},createVirtualCode(t,e,n){if(e==="svelte"){let r=t.includes("://")?hJ.URI.parse(t).fsPath.replace(/\\/g,"/"):t;return new DS(r,n)}},updateVirtualCode(t,e,n){return e.update(n),e},typescript:{extraFileExtensions:[{extension:"svelte",isMixedContent:!0,scriptKind:7}],getServiceScript(t){for(let e of(0,dJ.forEachEmbeddedCode)(t))if(e.id==="tsx")return{code:e,extension:".tsx",scriptKind:4}}}}}Sm.getSvelteLanguageModule=fJ;var DS=class{constructor(e,n){this.fileName=e,this.snapshot=n,this.id="root",this.languageId="svelte",this.codegenStacks=[],this.onSnapshotUpdated()}update(e){this.snapshot=e,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[],this.embeddedCodes=[],this.embeddedCodes.push((0,pJ.framework2tsx)(this.fileName,this.snapshot.getText(0,this.snapshot.getLength()),"svelte"))}}});var HM=L(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.getVueLanguageModule=void 0;var mJ=Je(),gJ=Sn(),bJ=mm();function vJ(){return{getLanguageId(t){if(t.endsWith(".vue"))return"vue"},createVirtualCode(t,e,n){if(e==="vue"){let r=t.includes("://")?gJ.URI.parse(t).fsPath.replace(/\\/g,"/"):t;return new AS(r,n)}},updateVirtualCode(t,e,n){return e.update(n),e},typescript:{extraFileExtensions:[{extension:"vue",isMixedContent:!0,scriptKind:7}],getServiceScript(t){for(let e of(0,mJ.forEachEmbeddedCode)(t))if(e.id==="tsx")return{code:e,extension:".tsx",scriptKind:4}}}}}xm.getVueLanguageModule=vJ;var AS=class{constructor(e,n){this.fileName=e,this.snapshot=n,this.id="root",this.languageId="vue",this.codegenStacks=[],this.onSnapshotUpdated()}update(e){this.snapshot=e,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[],this.embeddedCodes=[],this.embeddedCodes.push((0,bJ.framework2tsx)(this.fileName,this.snapshot.getText(0,this.snapshot.getLength()),"vue"))}}});var I,Tm,km,jM,BM,ave,Cm,$M,VM,Ku,Ju,wJ,yJ,Xu,_J,ha,GM,SJ,RS,ZM,eP,xJ,kJ,CJ,TJ,EJ,FS,KM,Bl,$l,Qu,JM,XM,IS,MS,DJ,AJ,RJ,FJ,IJ,MJ,PJ,QM,YM,LJ,OJ,zi,At,zr,Rs=de(()=>{"use strict";(function(t){t[t.Ident=0]="Ident",t[t.AtKeyword=1]="AtKeyword",t[t.String=2]="String",t[t.BadString=3]="BadString",t[t.UnquotedString=4]="UnquotedString",t[t.Hash=5]="Hash",t[t.Num=6]="Num",t[t.Percentage=7]="Percentage",t[t.Dimension=8]="Dimension",t[t.UnicodeRange=9]="UnicodeRange",t[t.CDO=10]="CDO",t[t.CDC=11]="CDC",t[t.Colon=12]="Colon",t[t.SemiColon=13]="SemiColon",t[t.CurlyL=14]="CurlyL",t[t.CurlyR=15]="CurlyR",t[t.ParenthesisL=16]="ParenthesisL",t[t.ParenthesisR=17]="ParenthesisR",t[t.BracketL=18]="BracketL",t[t.BracketR=19]="BracketR",t[t.Whitespace=20]="Whitespace",t[t.Includes=21]="Includes",t[t.Dashmatch=22]="Dashmatch",t[t.SubstringOperator=23]="SubstringOperator",t[t.PrefixOperator=24]="PrefixOperator",t[t.SuffixOperator=25]="SuffixOperator",t[t.Delim=26]="Delim",t[t.EMS=27]="EMS",t[t.EXS=28]="EXS",t[t.Length=29]="Length",t[t.Angle=30]="Angle",t[t.Time=31]="Time",t[t.Freq=32]="Freq",t[t.Exclamation=33]="Exclamation",t[t.Resolution=34]="Resolution",t[t.Comma=35]="Comma",t[t.Charset=36]="Charset",t[t.EscapedJavaScript=37]="EscapedJavaScript",t[t.BadEscapedJavaScript=38]="BadEscapedJavaScript",t[t.Comment=39]="Comment",t[t.SingleLineComment=40]="SingleLineComment",t[t.EOF=41]="EOF",t[t.CustomToken=42]="CustomToken",t[t.ContainerQueryLength=43]="ContainerQueryLength"})(I||(I={}));Tm=class{constructor(e){this.source=e,this.len=e.length,this.position=0}substring(e,n=this.position){return this.source.substring(e,n)}eos(){return this.len<=this.position}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}lookbackChar(e=0){return this.source.charCodeAt(this.position-e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(e){if(this.position+e.length>this.source.length)return!1;let n=0;for(;n<e.length;n++)if(this.source.charCodeAt(this.position+n)!==e[n])return!1;return this.advance(n),!0}advanceWhileChar(e){let n=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-n}},km="a".charCodeAt(0),jM="f".charCodeAt(0),BM="z".charCodeAt(0),ave="u".charCodeAt(0),Cm="A".charCodeAt(0),$M="F".charCodeAt(0),VM="Z".charCodeAt(0),Ku="0".charCodeAt(0),Ju="9".charCodeAt(0),wJ="~".charCodeAt(0),yJ="^".charCodeAt(0),Xu="=".charCodeAt(0),_J="|".charCodeAt(0),ha="-".charCodeAt(0),GM="_".charCodeAt(0),SJ="%".charCodeAt(0),RS="*".charCodeAt(0),ZM="(".charCodeAt(0),eP=")".charCodeAt(0),xJ="<".charCodeAt(0),kJ=">".charCodeAt(0),CJ="@".charCodeAt(0),TJ="#".charCodeAt(0),EJ="$".charCodeAt(0),FS="\\".charCodeAt(0),KM="/".charCodeAt(0),Bl=`
|
|
534
534
|
`.charCodeAt(0),$l="\r".charCodeAt(0),Qu="\f".charCodeAt(0),JM='"'.charCodeAt(0),XM="'".charCodeAt(0),IS=" ".charCodeAt(0),MS=" ".charCodeAt(0),DJ=";".charCodeAt(0),AJ=":".charCodeAt(0),RJ="{".charCodeAt(0),FJ="}".charCodeAt(0),IJ="[".charCodeAt(0),MJ="]".charCodeAt(0),PJ=",".charCodeAt(0),QM=".".charCodeAt(0),YM="!".charCodeAt(0),LJ="?".charCodeAt(0),OJ="+".charCodeAt(0),zi={};zi[DJ]=I.SemiColon;zi[AJ]=I.Colon;zi[RJ]=I.CurlyL;zi[FJ]=I.CurlyR;zi[MJ]=I.BracketR;zi[IJ]=I.BracketL;zi[ZM]=I.ParenthesisL;zi[eP]=I.ParenthesisR;zi[PJ]=I.Comma;At={};At.em=I.EMS;At.ex=I.EXS;At.px=I.Length;At.cm=I.Length;At.mm=I.Length;At.in=I.Length;At.pt=I.Length;At.pc=I.Length;At.deg=I.Angle;At.rad=I.Angle;At.grad=I.Angle;At.ms=I.Time;At.s=I.Time;At.hz=I.Freq;At.khz=I.Freq;At["%"]=I.Percentage;At.fr=I.Percentage;At.dpi=I.Resolution;At.dpcm=I.Resolution;At.cqw=I.ContainerQueryLength;At.cqh=I.ContainerQueryLength;At.cqi=I.ContainerQueryLength;At.cqb=I.ContainerQueryLength;At.cqmin=I.ContainerQueryLength;At.cqmax=I.ContainerQueryLength;zr=class{constructor(){this.stream=new Tm(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}setSource(e){this.stream=new Tm(e)}finishToken(e,n,r){return{offset:e,len:this.stream.pos()-e,type:n,text:r||this.stream.substring(e)}}substring(e,n){return this.stream.substring(e,e+n)}pos(){return this.stream.pos()}goBackTo(e){this.stream.goBackTo(e)}scanUnquotedString(){let e=this.stream.pos(),n=[];return this._unquotedString(n)?this.finishToken(e,I.UnquotedString,n.join("")):null}scan(){let e=this.trivia();if(e!==null)return e;let n=this.stream.pos();return this.stream.eos()?this.finishToken(n,I.EOF):this.scanNext(n)}tryScanUnicode(){let e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,I.UnicodeRange);this.stream.goBackTo(e)}scanNext(e){if(this.stream.advanceIfChars([xJ,YM,ha,ha]))return this.finishToken(e,I.CDO);if(this.stream.advanceIfChars([ha,ha,kJ]))return this.finishToken(e,I.CDC);let n=[];if(this.ident(n))return this.finishToken(e,I.Ident,n.join(""));if(this.stream.advanceIfChar(CJ))if(n=["@"],this._name(n)){let i=n.join("");return i==="@charset"?this.finishToken(e,I.Charset,i):this.finishToken(e,I.AtKeyword,i)}else return this.finishToken(e,I.Delim);if(this.stream.advanceIfChar(TJ))return n=["#"],this._name(n)?this.finishToken(e,I.Hash,n.join("")):this.finishToken(e,I.Delim);if(this.stream.advanceIfChar(YM))return this.finishToken(e,I.Exclamation);if(this._number()){let i=this.stream.pos();if(n=[this.stream.substring(e,i)],this.stream.advanceIfChar(SJ))return this.finishToken(e,I.Percentage);if(this.ident(n)){let o=this.stream.substring(i).toLowerCase(),a=At[o];return typeof a<"u"?this.finishToken(e,a,n.join("")):this.finishToken(e,I.Dimension,n.join(""))}return this.finishToken(e,I.Num)}n=[];let r=this._string(n);return r!==null?this.finishToken(e,r,n.join("")):(r=zi[this.stream.peekChar()],typeof r<"u"?(this.stream.advance(1),this.finishToken(e,r)):this.stream.peekChar(0)===wJ&&this.stream.peekChar(1)===Xu?(this.stream.advance(2),this.finishToken(e,I.Includes)):this.stream.peekChar(0)===_J&&this.stream.peekChar(1)===Xu?(this.stream.advance(2),this.finishToken(e,I.Dashmatch)):this.stream.peekChar(0)===RS&&this.stream.peekChar(1)===Xu?(this.stream.advance(2),this.finishToken(e,I.SubstringOperator)):this.stream.peekChar(0)===yJ&&this.stream.peekChar(1)===Xu?(this.stream.advance(2),this.finishToken(e,I.PrefixOperator)):this.stream.peekChar(0)===EJ&&this.stream.peekChar(1)===Xu?(this.stream.advance(2),this.finishToken(e,I.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,I.Delim)))}trivia(){for(;;){let e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,I.Whitespace)}else if(this.comment()){if(!this.ignoreComment)return this.finishToken(e,I.Comment)}else return null}}comment(){if(this.stream.advanceIfChars([KM,RS])){let e=!1,n=!1;return this.stream.advanceWhileChar(r=>n&&r===KM?(e=!0,!1):(n=r===RS,!0)),e&&this.stream.advance(1),!0}return!1}_number(){let e=0,n;return this.stream.peekChar()===QM&&(e=1),n=this.stream.peekChar(e),n>=Ku&&n<=Ju?(this.stream.advance(e+1),this.stream.advanceWhileChar(r=>r>=Ku&&r<=Ju||e===0&&r===QM),!0):!1}_newline(e){let n=this.stream.peekChar();switch(n){case $l:case Qu:case Bl:return this.stream.advance(1),e.push(String.fromCharCode(n)),n===$l&&this.stream.advanceIfChar(Bl)&&e.push(`
|
|
535
535
|
`),!0}return!1}_escape(e,n){let r=this.stream.peekChar();if(r===FS){this.stream.advance(1),r=this.stream.peekChar();let i=0;for(;i<6&&(r>=Ku&&r<=Ju||r>=km&&r<=jM||r>=Cm&&r<=$M);)this.stream.advance(1),r=this.stream.peekChar(),i++;if(i>0){try{let o=parseInt(this.stream.substring(this.stream.pos()-i),16);o&&e.push(String.fromCharCode(o))}catch{}return r===IS||r===MS?this.stream.advance(1):this._newline([]),!0}if(r!==$l&&r!==Qu&&r!==Bl)return this.stream.advance(1),e.push(String.fromCharCode(r)),!0;if(n)return this._newline(e)}return!1}_stringChar(e,n){let r=this.stream.peekChar();return r!==0&&r!==e&&r!==FS&&r!==$l&&r!==Qu&&r!==Bl?(this.stream.advance(1),n.push(String.fromCharCode(r)),!0):!1}_string(e){if(this.stream.peekChar()===XM||this.stream.peekChar()===JM){let n=this.stream.nextChar();for(e.push(String.fromCharCode(n));this._stringChar(n,e)||this._escape(e,!0););return this.stream.peekChar()===n?(this.stream.nextChar(),e.push(String.fromCharCode(n)),I.String):I.BadString}return null}_unquotedChar(e){let n=this.stream.peekChar();return n!==0&&n!==FS&&n!==XM&&n!==JM&&n!==ZM&&n!==eP&&n!==IS&&n!==MS&&n!==Bl&&n!==Qu&&n!==$l?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_unquotedString(e){let n=!1;for(;this._unquotedChar(e)||this._escape(e);)n=!0;return n}_whitespace(){return this.stream.advanceWhileChar(n=>n===IS||n===MS||n===Bl||n===Qu||n===$l)>0}_name(e){let n=!1;for(;this._identChar(e)||this._escape(e);)n=!0;return n}ident(e){let n=this.stream.pos();if(this._minus(e)){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(n),!1}_identFirstChar(e){let n=this.stream.peekChar();return n===GM||n>=km&&n<=BM||n>=Cm&&n<=VM||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_minus(e){let n=this.stream.peekChar();return n===ha?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_identChar(e){let n=this.stream.peekChar();return n===GM||n===ha||n>=km&&n<=BM||n>=Cm&&n<=VM||n>=Ku&&n<=Ju||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_unicodeRange(){if(this.stream.advanceIfChar(OJ)){let e=r=>r>=Ku&&r<=Ju||r>=km&&r<=jM||r>=Cm&&r<=$M,n=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar(r=>r===LJ);if(n>=1&&n<=6)if(this.stream.advanceIfChar(ha)){let r=this.stream.advanceWhileChar(e);if(r>=1&&r<=6)return!0}else return!0}return!1}}});function It(t,e){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function Em(t,e){let n=t.length-e.length;return n>0?t.lastIndexOf(e)===n:n===0?t===e:!1}function tP(t,e,n=4){let r=Math.abs(t.length-e.length);if(r>n)return 0;let i=[],o=[],a,l;for(a=0;a<e.length+1;++a)o.push(0);for(a=0;a<t.length+1;++a)i.push(o);for(a=1;a<t.length+1;++a)for(l=1;l<e.length+1;++l)t[a-1]===e[l-1]?i[a][l]=i[a-1][l-1]+1:i[a][l]=Math.max(i[a-1][l],i[a][l-1]);return i[t.length][e.length]-Math.sqrt(r)}function PS(t,e=!0){return t?t.length<140?t:t.slice(0,140)+(e?"\u2026":""):""}function nP(t,e){let n=e.exec(t);return n&&n[0].length?t.substr(0,t.length-n[0].length):t}function LS(t,e){let n="";for(;e>0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}var yo=de(()=>{"use strict"});function og(t,e){let n=null;return!t||e<t.offset||e>t.end?null:(t.accept(r=>r.offset===-1&&r.length===-1?!0:r.offset<=e&&r.end>=e?(n?r.length<=n.length&&(n=r):n=r,!0):!1),n)}function nc(t,e){let n=og(t,e),r=[];for(;n;)r.unshift(n),n=n.parent;return r}function rP(t){let e=t.findParent(B.Declaration),n=e&&e.getValue();return n&&n.encloses(t)?e:null}var B,We,Se,fn,Dm,cn,Am,pa,yt,pr,qr,Wr,Vl,Rm,un,Fm,Fs,OS,di,qi,fr,Im,Mm,Pm,Lm,Om,_o,Nm,Gl,Yu,Kl,Zu,Is,zm,qm,Wm,Um,Hm,Jl,fa,jm,Bm,$m,Vm,Xl,Ql,Gm,Km,So,Jm,Xm,Yl,Ms,Qm,Ym,ma,Zm,qJ,WJ,UJ,ga,Wi,ba,Ps,Ui,eg,tg,xo,hi,Zl,ng,rg,ig,ed,En,ec,tc,Dn=de(()=>{"use strict";yo();(function(t){t[t.Undefined=0]="Undefined",t[t.Identifier=1]="Identifier",t[t.Stylesheet=2]="Stylesheet",t[t.Ruleset=3]="Ruleset",t[t.Selector=4]="Selector",t[t.SimpleSelector=5]="SimpleSelector",t[t.SelectorInterpolation=6]="SelectorInterpolation",t[t.SelectorCombinator=7]="SelectorCombinator",t[t.SelectorCombinatorParent=8]="SelectorCombinatorParent",t[t.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",t[t.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",t[t.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",t[t.Page=12]="Page",t[t.PageBoxMarginBox=13]="PageBoxMarginBox",t[t.ClassSelector=14]="ClassSelector",t[t.IdentifierSelector=15]="IdentifierSelector",t[t.ElementNameSelector=16]="ElementNameSelector",t[t.PseudoSelector=17]="PseudoSelector",t[t.AttributeSelector=18]="AttributeSelector",t[t.Declaration=19]="Declaration",t[t.Declarations=20]="Declarations",t[t.Property=21]="Property",t[t.Expression=22]="Expression",t[t.BinaryExpression=23]="BinaryExpression",t[t.Term=24]="Term",t[t.Operator=25]="Operator",t[t.Value=26]="Value",t[t.StringLiteral=27]="StringLiteral",t[t.URILiteral=28]="URILiteral",t[t.EscapedValue=29]="EscapedValue",t[t.Function=30]="Function",t[t.NumericValue=31]="NumericValue",t[t.HexColorValue=32]="HexColorValue",t[t.RatioValue=33]="RatioValue",t[t.MixinDeclaration=34]="MixinDeclaration",t[t.MixinReference=35]="MixinReference",t[t.VariableName=36]="VariableName",t[t.VariableDeclaration=37]="VariableDeclaration",t[t.Prio=38]="Prio",t[t.Interpolation=39]="Interpolation",t[t.NestedProperties=40]="NestedProperties",t[t.ExtendsReference=41]="ExtendsReference",t[t.SelectorPlaceholder=42]="SelectorPlaceholder",t[t.Debug=43]="Debug",t[t.If=44]="If",t[t.Else=45]="Else",t[t.For=46]="For",t[t.Each=47]="Each",t[t.While=48]="While",t[t.MixinContentReference=49]="MixinContentReference",t[t.MixinContentDeclaration=50]="MixinContentDeclaration",t[t.Media=51]="Media",t[t.Keyframe=52]="Keyframe",t[t.FontFace=53]="FontFace",t[t.Import=54]="Import",t[t.Namespace=55]="Namespace",t[t.Invocation=56]="Invocation",t[t.FunctionDeclaration=57]="FunctionDeclaration",t[t.ReturnStatement=58]="ReturnStatement",t[t.MediaQuery=59]="MediaQuery",t[t.MediaCondition=60]="MediaCondition",t[t.MediaFeature=61]="MediaFeature",t[t.FunctionParameter=62]="FunctionParameter",t[t.FunctionArgument=63]="FunctionArgument",t[t.KeyframeSelector=64]="KeyframeSelector",t[t.ViewPort=65]="ViewPort",t[t.Document=66]="Document",t[t.AtApplyRule=67]="AtApplyRule",t[t.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",t[t.CustomPropertySet=69]="CustomPropertySet",t[t.ListEntry=70]="ListEntry",t[t.Supports=71]="Supports",t[t.SupportsCondition=72]="SupportsCondition",t[t.NamespacePrefix=73]="NamespacePrefix",t[t.GridLine=74]="GridLine",t[t.Plugin=75]="Plugin",t[t.UnknownAtRule=76]="UnknownAtRule",t[t.Use=77]="Use",t[t.ModuleConfiguration=78]="ModuleConfiguration",t[t.Forward=79]="Forward",t[t.ForwardVisibility=80]="ForwardVisibility",t[t.Module=81]="Module",t[t.UnicodeRange=82]="UnicodeRange",t[t.Layer=83]="Layer",t[t.LayerNameList=84]="LayerNameList",t[t.LayerName=85]="LayerName",t[t.PropertyAtRule=86]="PropertyAtRule",t[t.Container=87]="Container"})(B||(B={}));(function(t){t[t.Mixin=0]="Mixin",t[t.Rule=1]="Rule",t[t.Variable=2]="Variable",t[t.Function=3]="Function",t[t.Keyframe=4]="Keyframe",t[t.Unknown=5]="Unknown",t[t.Module=6]="Module",t[t.Forward=7]="Forward",t[t.ForwardVisibility=8]="ForwardVisibility",t[t.Property=9]="Property"})(We||(We={}));Se=class{get end(){return this.offset+this.length}constructor(e=-1,n=-1,r){this.parent=null,this.offset=e,this.length=n,r&&(this.nodeType=r)}set type(e){this.nodeType=e}get type(){return this.nodeType||B.Undefined}getTextProvider(){let e=this;for(;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:()=>"unknown"}getText(){return this.getTextProvider()(this.offset,this.length)}matches(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e}startsWith(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e}endsWith(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e}accept(e){if(e(this)&&this.children)for(let n of this.children)n.accept(e)}acceptVisitor(e){this.accept(e.visitNode.bind(e))}adoptChild(e,n=-1){if(e.parent&&e.parent.children){let i=e.parent.children.indexOf(e);i>=0&&e.parent.children.splice(i,1)}e.parent=this;let r=this.children;return r||(r=this.children=[]),n!==-1?r.splice(n,0,e):r.push(e),e}attachTo(e,n=-1){return e&&e.adoptChild(this,n),this}collectIssues(e){this.issues&&e.push.apply(e,this.issues)}addIssue(e){this.issues||(this.issues=[]),this.issues.push(e)}hasIssue(e){return Array.isArray(this.issues)&&this.issues.some(n=>n.getRule()===e)}isErroneous(e=!1){return this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(n=>n.isErroneous(!0))}setNode(e,n,r=-1){return n?(n.attachTo(this,r),this[e]=n,!0):!1}addChild(e){return e?(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0):!1}updateOffsetAndLength(e){(e.offset<this.offset||this.offset===-1)&&(this.offset=e.offset);let n=e.end;(n>this.end||this.length===-1)&&(this.length=n-this.offset)}hasChildren(){return!!this.children&&this.children.length>0}getChildren(){return this.children?this.children.slice(0):[]}getChild(e){return this.children&&e<this.children.length?this.children[e]:null}addChildren(e){for(let n of e)this.addChild(n)}findFirstChildBeforeOffset(e){if(this.children){let n=null;for(let r=this.children.length-1;r>=0;r--)if(n=this.children[r],n.offset<=e)return n}return null}findChildAtOffset(e,n){let r=this.findFirstChildBeforeOffset(e);return r&&r.end>=e?n&&r.findChildAtOffset(e,!0)||r:null}encloses(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length}getParent(){let e=this.parent;for(;e instanceof fn;)e=e.parent;return e}findParent(e){let n=this;for(;n&&n.type!==e;)n=n.parent;return n}findAParent(...e){let n=this;for(;n&&!e.some(r=>n.type===r);)n=n.parent;return n}setData(e,n){this.options||(this.options={}),this.options[e]=n}getData(e){return!this.options||!this.options.hasOwnProperty(e)?null:this.options[e]}},fn=class extends Se{constructor(e,n=-1){super(-1,-1),this.attachTo(e,n),this.offset=-1,this.length=-1}},Dm=class extends Se{constructor(e,n){super(e,n)}get type(){return B.UnicodeRange}setRangeStart(e){return this.setNode("rangeStart",e)}getRangeStart(){return this.rangeStart}setRangeEnd(e){return this.setNode("rangeEnd",e)}getRangeEnd(){return this.rangeEnd}},cn=class extends Se{constructor(e,n){super(e,n),this.isCustomProperty=!1}get type(){return B.Identifier}containsInterpolation(){return this.hasChildren()}},Am=class extends Se{constructor(e,n){super(e,n)}get type(){return B.Stylesheet}},pa=class extends Se{constructor(e,n){super(e,n)}get type(){return B.Declarations}},yt=class extends Se{constructor(e,n){super(e,n)}getDeclarations(){return this.declarations}setDeclarations(e){return this.setNode("declarations",e)}},pr=class extends yt{constructor(e,n){super(e,n)}get type(){return B.Ruleset}getSelectors(){return this.selectors||(this.selectors=new fn(this)),this.selectors}isNested(){return!!this.parent&&this.parent.findParent(B.Declarations)!==null}},qr=class extends Se{constructor(e,n){super(e,n)}get type(){return B.Selector}},Wr=class extends Se{constructor(e,n){super(e,n)}get type(){return B.SimpleSelector}},Vl=class extends Se{constructor(e,n){super(e,n)}},Rm=class extends yt{constructor(e,n){super(e,n)}get type(){return B.CustomPropertySet}},un=class extends Vl{constructor(e,n){super(e,n),this.property=null}get type(){return B.Declaration}setProperty(e){return this.setNode("property",e)}getProperty(){return this.property}getFullPropertyName(){let e=this.property?this.property.getName():"unknown";if(this.parent instanceof pa&&this.parent.getParent()instanceof Yu){let n=this.parent.getParent().getParent();if(n instanceof un)return n.getFullPropertyName()+e}return e}getNonPrefixedPropertyName(){let e=this.getFullPropertyName();if(e&&e.charAt(0)==="-"){let n=e.indexOf("-",1);if(n!==-1)return e.substring(n+1)}return e}setValue(e){return this.setNode("value",e)}getValue(){return this.value}setNestedProperties(e){return this.setNode("nestedProperties",e)}getNestedProperties(){return this.nestedProperties}},Fm=class extends un{constructor(e,n){super(e,n)}get type(){return B.CustomPropertyDeclaration}setPropertySet(e){return this.setNode("propertySet",e)}getPropertySet(){return this.propertySet}},Fs=class extends Se{constructor(e,n){super(e,n)}get type(){return B.Property}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}getName(){return nP(this.getText(),/[_\+]+$/)}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty}},OS=class extends Se{constructor(e,n){super(e,n)}get type(){return B.Invocation}getArguments(){return this.arguments||(this.arguments=new fn(this)),this.arguments}},di=class extends OS{constructor(e,n){super(e,n)}get type(){return B.Function}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},qi=class extends Se{constructor(e,n){super(e,n)}get type(){return B.FunctionParameter}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setDefaultValue(e){return this.setNode("defaultValue",e,0)}getDefaultValue(){return this.defaultValue}},fr=class extends Se{constructor(e,n){super(e,n)}get type(){return B.FunctionArgument}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(e){return this.setNode("value",e,0)}getValue(){return this.value}},Im=class extends yt{constructor(e,n){super(e,n)}get type(){return B.If}setExpression(e){return this.setNode("expression",e,0)}setElseClause(e){return this.setNode("elseClause",e)}},Mm=class extends yt{constructor(e,n){super(e,n)}get type(){return B.For}setVariable(e){return this.setNode("variable",e,0)}},Pm=class extends yt{constructor(e,n){super(e,n)}get type(){return B.Each}getVariables(){return this.variables||(this.variables=new fn(this)),this.variables}},Lm=class extends yt{constructor(e,n){super(e,n)}get type(){return B.While}},Om=class extends yt{constructor(e,n){super(e,n)}get type(){return B.Else}},_o=class extends yt{constructor(e,n){super(e,n)}get type(){return B.FunctionDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new fn(this)),this.parameters}},Nm=class extends yt{constructor(e,n){super(e,n)}get type(){return B.ViewPort}},Gl=class extends yt{constructor(e,n){super(e,n)}get type(){return B.FontFace}},Yu=class extends yt{constructor(e,n){super(e,n)}get type(){return B.NestedProperties}},Kl=class extends yt{constructor(e,n){super(e,n)}get type(){return B.Keyframe}setKeyword(e){return this.setNode("keyword",e,0)}getKeyword(){return this.keyword}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},Zu=class extends yt{constructor(e,n){super(e,n)}get type(){return B.KeyframeSelector}},Is=class extends Se{constructor(e,n){super(e,n)}get type(){return B.Import}setMedialist(e){return e?(e.attachTo(this),!0):!1}},zm=class extends Se{get type(){return B.Use}getParameters(){return this.parameters||(this.parameters=new fn(this)),this.parameters}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},qm=class extends Se{get type(){return B.ModuleConfiguration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(e){return this.setNode("value",e,0)}getValue(){return this.value}},Wm=class extends Se{get type(){return B.Forward}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getMembers(){return this.members||(this.members=new fn(this)),this.members}getParameters(){return this.parameters||(this.parameters=new fn(this)),this.parameters}},Um=class extends Se{get type(){return B.ForwardVisibility}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},Hm=class extends Se{constructor(e,n){super(e,n)}get type(){return B.Namespace}},Jl=class extends yt{constructor(e,n){super(e,n)}get type(){return B.Media}},fa=class extends yt{constructor(e,n){super(e,n)}get type(){return B.Supports}},jm=class extends yt{constructor(e,n){super(e,n)}get type(){return B.Layer}setNames(e){return this.setNode("names",e)}getNames(){return this.names}},Bm=class extends yt{constructor(e,n){super(e,n)}get type(){return B.PropertyAtRule}setName(e){return e?(e.attachTo(this),this.name=e,!0):!1}getName(){return this.name}},$m=class extends yt{constructor(e,n){super(e,n)}get type(){return B.Document}},Vm=class extends yt{constructor(e,n){super(e,n)}get type(){return B.Container}},Xl=class extends Se{constructor(e,n){super(e,n)}},Ql=class extends Se{constructor(e,n){super(e,n)}get type(){return B.MediaQuery}},Gm=class extends Se{constructor(e,n){super(e,n)}get type(){return B.MediaCondition}},Km=class extends Se{constructor(e,n){super(e,n)}get type(){return B.MediaFeature}},So=class extends Se{constructor(e,n){super(e,n)}get type(){return B.SupportsCondition}},Jm=class extends yt{constructor(e,n){super(e,n)}get type(){return B.Page}},Xm=class extends yt{constructor(e,n){super(e,n)}get type(){return B.PageBoxMarginBox}},Yl=class extends Se{constructor(e,n){super(e,n)}get type(){return B.Expression}},Ms=class extends Se{constructor(e,n){super(e,n)}get type(){return B.BinaryExpression}setLeft(e){return this.setNode("left",e)}getLeft(){return this.left}setRight(e){return this.setNode("right",e)}getRight(){return this.right}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}},Qm=class extends Se{constructor(e,n){super(e,n)}get type(){return B.Term}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setExpression(e){return this.setNode("expression",e)}getExpression(){return this.expression}},Ym=class extends Se{constructor(e,n){super(e,n)}get type(){return B.AttributeSelector}setNamespacePrefix(e){return this.setNode("namespacePrefix",e)}getNamespacePrefix(){return this.namespacePrefix}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setValue(e){return this.setNode("value",e)}getValue(){return this.value}},ma=class extends Se{constructor(e,n){super(e,n)}get type(){return B.HexColorValue}},Zm=class extends Se{constructor(e,n){super(e,n)}get type(){return B.RatioValue}},qJ=".".charCodeAt(0),WJ="0".charCodeAt(0),UJ="9".charCodeAt(0),ga=class extends Se{constructor(e,n){super(e,n)}get type(){return B.NumericValue}getValue(){let e=this.getText(),n=0,r;for(let i=0,o=e.length;i<o&&(r=e.charCodeAt(i),WJ<=r&&r<=UJ||r===qJ);i++)n+=1;return{value:e.substring(0,n),unit:n<e.length?e.substring(n):void 0}}},Wi=class extends Vl{constructor(e,n){super(e,n),this.needsSemicolon=!0}get type(){return B.VariableDeclaration}setVariable(e){return e?(e.attachTo(this),this.variable=e,!0):!1}getVariable(){return this.variable}getName(){return this.variable?this.variable.getName():""}setValue(e){return e?(e.attachTo(this),this.value=e,!0):!1}getValue(){return this.value}},ba=class extends Se{constructor(e,n){super(e,n)}get type(){return B.Interpolation}},Ps=class extends Se{constructor(e,n){super(e,n)}get type(){return B.VariableName}getName(){return this.getText()}},Ui=class extends Se{constructor(e,n){super(e,n)}get type(){return B.ExtendsReference}getSelectors(){return this.selectors||(this.selectors=new fn(this)),this.selectors}},eg=class extends Se{constructor(e,n){super(e,n)}get type(){return B.MixinContentReference}getArguments(){return this.arguments||(this.arguments=new fn(this)),this.arguments}},tg=class extends yt{constructor(e,n){super(e,n)}get type(){return B.MixinContentDeclaration}getParameters(){return this.parameters||(this.parameters=new fn(this)),this.parameters}},xo=class extends Se{constructor(e,n){super(e,n)}get type(){return B.MixinReference}getNamespaces(){return this.namespaces||(this.namespaces=new fn(this)),this.namespaces}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getArguments(){return this.arguments||(this.arguments=new fn(this)),this.arguments}setContent(e){return this.setNode("content",e)}getContent(){return this.content}},hi=class extends yt{constructor(e,n){super(e,n)}get type(){return B.MixinDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new fn(this)),this.parameters}setGuard(e){return e&&(e.attachTo(this),this.guard=e),!1}},Zl=class extends yt{constructor(e,n){super(e,n)}get type(){return B.UnknownAtRule}setAtRuleName(e){this.atRuleName=e}getAtRuleName(){return this.atRuleName}},ng=class extends Se{get type(){return B.ListEntry}setKey(e){return this.setNode("key",e,0)}setValue(e){return this.setNode("value",e,1)}},rg=class extends Se{getConditions(){return this.conditions||(this.conditions=new fn(this)),this.conditions}},ig=class extends Se{setVariable(e){return this.setNode("variable",e)}},ed=class extends Se{get type(){return B.Module}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}};(function(t){t[t.Ignore=1]="Ignore",t[t.Warning=2]="Warning",t[t.Error=4]="Error"})(En||(En={}));ec=class{constructor(e,n,r,i,o=e.offset,a=e.length){this.node=e,this.rule=n,this.level=r,this.message=i||n.message,this.offset=o,this.length=a}getRule(){return this.rule}getLevel(){return this.level}getOffset(){return this.offset}getLength(){return this.length}getNode(){return this.node}getMessage(){return this.message}},tc=class{static entries(e){let n=new tc;return e.acceptVisitor(n),n.entries}constructor(){this.entries=[]}visitNode(e){return e.isErroneous()&&e.collectIssues(this.entries),!0}}});var it,rt,X,sg=de(()=>{"use strict";it=yn(ur()),rt=class{constructor(e,n){this.id=e,this.message=n}},X={NumberExpected:new rt("css-numberexpected",it.t("number expected")),ConditionExpected:new rt("css-conditionexpected",it.t("condition expected")),RuleOrSelectorExpected:new rt("css-ruleorselectorexpected",it.t("at-rule or selector expected")),DotExpected:new rt("css-dotexpected",it.t("dot expected")),ColonExpected:new rt("css-colonexpected",it.t("colon expected")),SemiColonExpected:new rt("css-semicolonexpected",it.t("semi-colon expected")),TermExpected:new rt("css-termexpected",it.t("term expected")),ExpressionExpected:new rt("css-expressionexpected",it.t("expression expected")),OperatorExpected:new rt("css-operatorexpected",it.t("operator expected")),IdentifierExpected:new rt("css-identifierexpected",it.t("identifier expected")),PercentageExpected:new rt("css-percentageexpected",it.t("percentage expected")),URIOrStringExpected:new rt("css-uriorstringexpected",it.t("uri or string expected")),URIExpected:new rt("css-uriexpected",it.t("URI expected")),VariableNameExpected:new rt("css-varnameexpected",it.t("variable name expected")),VariableValueExpected:new rt("css-varvalueexpected",it.t("variable value expected")),PropertyValueExpected:new rt("css-propertyvalueexpected",it.t("property value expected")),LeftCurlyExpected:new rt("css-lcurlyexpected",it.t("{ expected")),RightCurlyExpected:new rt("css-rcurlyexpected",it.t("} expected")),LeftSquareBracketExpected:new rt("css-rbracketexpected",it.t("[ expected")),RightSquareBracketExpected:new rt("css-lbracketexpected",it.t("] expected")),LeftParenthesisExpected:new rt("css-lparentexpected",it.t("( expected")),RightParenthesisExpected:new rt("css-rparentexpected",it.t(") expected")),CommaExpected:new rt("css-commaexpected",it.t("comma expected")),PageDirectiveOrDeclarationExpected:new rt("css-pagedirordeclexpected",it.t("page directive or declaraton expected")),UnknownAtRule:new rt("css-unknownatrule",it.t("at-rule unknown")),UnknownKeyword:new rt("css-unknownkeyword",it.t("unknown keyword")),SelectorExpected:new rt("css-selectorexpected",it.t("selector expected")),StringLiteralExpected:new rt("css-stringliteralexpected",it.t("string literal expected")),WhitespaceExpected:new rt("css-whitespaceexpected",it.t("whitespace expected")),MediaQueryExpected:new rt("css-mediaqueryexpected",it.t("media query expected")),IdentifierOrWildcardExpected:new rt("css-idorwildcardexpected",it.t("identifier or wildcard expected")),WildcardExpected:new rt("css-wildcardexpected",it.t("wildcard expected")),IdentifierOrVariableExpected:new rt("css-idorvarexpected",it.t("identifier or variable expected"))}});var NS,Ls,mr=de(()=>{"use strict";tm();nm();(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[nt.Markdown,nt.PlainText]}},hover:{contentFormat:[nt.Markdown,nt.PlainText]}}}})(NS||(NS={}));(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(Ls||(Ls={}))});function oP(t){switch(t){case"experimental":return`\u26A0\uFE0F Property is experimental. Be cautious when using it.\uFE0F
|
|
536
536
|
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"color": "#17191E",
|
|
25
25
|
"theme": "dark"
|
|
26
26
|
},
|
|
27
|
-
"version": "2.9.
|
|
27
|
+
"version": "2.9.1",
|
|
28
28
|
"author": "withastro",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"publisher": "astro-build",
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
]
|
|
214
214
|
},
|
|
215
215
|
"devDependencies": {
|
|
216
|
-
"@astrojs/language-server": "^2.9.
|
|
216
|
+
"@astrojs/language-server": "^2.9.1",
|
|
217
217
|
"@astrojs/ts-plugin": "^1.7.0",
|
|
218
218
|
"@types/glob": "^8.1.0",
|
|
219
219
|
"@types/mocha": "^10.0.1",
|