zen-gitsync 2.16.8 → 2.16.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/package.json +4 -4
  2. package/src/ui/public/assets/{AgentView-DSmUynN-.js → AgentView-CioAzh-a.js} +2 -2
  3. package/src/ui/public/assets/{AppVersionBadge-CcFagCnq.js → AppVersionBadge-Cwg6vOMz.js} +2 -2
  4. package/src/ui/public/assets/BranchSelector-DgxIB9XY.js +1 -0
  5. package/src/ui/public/assets/CommitForm-CTa0pupJ.js +6 -0
  6. package/src/ui/public/assets/{CommonDialog-BFyhw0Qj.js → CommonDialog-Tlk0Fa7g.js} +1 -1
  7. package/src/ui/public/assets/EditorView-BOZPwTxr.js +0 -0
  8. package/src/ui/public/assets/{FlowExecutionViewer-C063Qjmk.js → FlowExecutionViewer-CFpiqZ2C.js} +1 -1
  9. package/src/ui/public/assets/FlowOrchestrationWorkspace-CVYPdN7a.js +21 -0
  10. package/src/ui/public/assets/{LogList-GSeER4cv.js → LogList-B4rrapVn.js} +2 -2
  11. package/src/ui/public/assets/MindmapView-C1pPUu8W.js +2 -0
  12. package/src/ui/public/assets/MonitorView-C2EyggDk.js +1 -0
  13. package/src/ui/public/assets/ProjectStartupButton-D7mgEsmf.js +1 -0
  14. package/src/ui/public/assets/{RemoteRepoCard-CSMFlWDl.js → RemoteRepoCard-B-5MDx8k.js} +1 -1
  15. package/src/ui/public/assets/SourceMapView-C3gZ5s1r.js +3 -0
  16. package/src/ui/public/assets/{SvgIcon-CYZGHQAE.js → SvgIcon-Diox29ks.js} +1 -1
  17. package/src/ui/public/assets/{UserInputNode-3OAXiGVh.js → UserInputNode-CYxFuwuS.js} +1 -1
  18. package/src/ui/public/assets/{WorkbenchView-8xyxdWAg.js → WorkbenchView-BE53JHac.js} +11 -11
  19. package/src/ui/public/assets/{_plugin-vue_export-helper-DgLDQTWK.js → _plugin-vue_export-helper-B9cwfrdH.js} +1 -1
  20. package/src/ui/public/assets/configStore-B8X980y1.js +1 -0
  21. package/src/ui/public/assets/{css.worker-CvXBzhp8.js → css.worker-Wv5dxAWO.js} +1 -1
  22. package/src/ui/public/assets/{dagre-CWIGcX9d.js → dagre-BCXBo6I9.js} +1 -1
  23. package/src/ui/public/assets/element-plus-BId3Dnij.js +25 -0
  24. package/src/ui/public/assets/{flow-mindmap-CUvJaYn2.js → flow-mindmap-DnyDhwJv.js} +38 -38
  25. package/src/ui/public/assets/{html.worker-BO6WuOEO.js → html.worker-CQP8QQsS.js} +1 -1
  26. package/src/ui/public/assets/{index-DDGvh1mp.js → index-Ds_2iFkX.js} +11 -11
  27. package/src/ui/public/assets/{json.worker-BkJRGcCJ.js → json.worker-DzV-CpCQ.js} +1 -1
  28. package/src/ui/public/assets/{monaco-BFLoT2VD.js → monaco-Dje8Rg13.js} +198 -198
  29. package/src/ui/public/assets/socket-io-CGezBd--.js +1 -0
  30. package/src/ui/public/assets/{ts.worker-B0J26iPs.js → ts.worker-Dth06zuC.js} +15 -15
  31. package/src/ui/public/assets/{vendor-jF--I87-.js → vendor-exjCs1jx.js} +38 -38
  32. package/src/ui/public/assets/vue-flow-Dj_X_Vr1.js +39 -0
  33. package/src/ui/public/index.html +11 -11
  34. package/src/ui/server/index.js +26 -10
  35. package/src/ui/server/routes/fs.js +11 -2
  36. package/src/ui/server/utils/perfMark.js +67 -0
  37. package/src/ui/public/assets/BranchSelector-DcYVBQJh.js +0 -1
  38. package/src/ui/public/assets/CommitForm-CkTI8Xyz.js +0 -6
  39. package/src/ui/public/assets/EditorView-DuHkBSc3.js +0 -0
  40. package/src/ui/public/assets/FlowOrchestrationWorkspace-BeJRId5G.js +0 -21
  41. package/src/ui/public/assets/MindmapView-p7szLCtQ.js +0 -2
  42. package/src/ui/public/assets/MonitorView-Be6KEUCe.js +0 -1
  43. package/src/ui/public/assets/ProjectStartupButton-F1k5Km2p.js +0 -1
  44. package/src/ui/public/assets/SourceMapView-Dg5NP_gR.js +0 -3
  45. package/src/ui/public/assets/configStore-D5t05s4G.js +0 -1
  46. package/src/ui/public/assets/element-plus-CyGhXd7X.js +0 -25
  47. package/src/ui/public/assets/socket-io-BSgn8Jx2.js +0 -1
  48. package/src/ui/public/assets/vue-flow-CWmfpfPN.js +0 -39
  49. /package/src/ui/public/assets/{editor.worker-Cn2oRESe.js → editor.worker-Bd9IXS8d.js} +0 -0
  50. /package/src/ui/public/assets/{rolldown-runtime-CMxvf4Kt.js → rolldown-runtime-BM3Ffeng.js} +0 -0
@@ -67,7 +67,7 @@ You passed in: '`+this.raw_options[e]+`'`);return r},t.prototype._is_valid_selec
67
67
  `,indent_scripts:$(n,`indentScripts`,`normal`),templating:Lc(n,`all`),unformatted_content_delimiter:$(n,`unformattedContentDelimiter`,``)},c=Nc(Fc(r),s);if(a>0){let e=n.insertSpaces?sc(` `,o*a):sc(` `,a);c=c.split(`
68
68
  `).join(`
69
69
  `+e),t.start.character===0&&(c=e+c)}return[{range:t,newText:c}]}function Fc(e){return e.replace(/^\s+/,``)}function $(e,t,n){if(e&&e.hasOwnProperty(t)){let n=e[t];if(n!==null)return n}return n}function Ic(e,t,n){let r=$(e,t,null);return typeof r==`string`?r.length>0?r.split(`,`).map(e=>e.trim().toLowerCase()):[]:n}function Lc(e,t){let n=$(e,`templating`,t);return n===!0?[`auto`]:n===!1||n===t||Array.isArray(n)===!1?[`none`]:n}function Rc(e,t,n){let r=t,i=0,a=n.tabSize||4;for(;r<e.length;){let t=e.charAt(r);if(t===` `)i++;else if(t===` `)i+=a;else break;r++}return Math.floor(i/a)}function zc(e,t){return`\r
70
- `.indexOf(e.charAt(t))!==-1}function Bc(e,t){return` `.indexOf(e.charAt(t))!==-1}var Vc;(()=>{var e={470:e=>{function t(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}function n(e,t){for(var n,r=``,i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(n===47)break;n=47}if(n===47){if(!(a===s-1||o===1))if(a!==s-1&&o===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var c=r.lastIndexOf(`/`);if(c!==r.length-1){c===-1?(r=``,i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf(`/`),a=s,o=0;continue}}else if(r.length===2||r.length===1){r=``,i=0,a=s,o=0;continue}}t&&(r.length>0?r+=`/..`:r=`..`,i=2)}else r.length>0?r+=`/`+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1;a=s,o=0}else n===46&&o!==-1?++o:o=-1}return r}var r={resolve:function(){for(var e,r=``,i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(e===void 0&&(e=process.cwd()),o=e),t(o),o.length!==0&&(r=o+`/`+r,i=o.charCodeAt(0)===47)}return r=n(r,!i),i?r.length>0?`/`+r:`/`:r.length>0?r:`.`},normalize:function(e){if(t(e),e.length===0)return`.`;var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return(e=n(e,!r)).length!==0||r||(e=`.`),e.length>0&&i&&(e+=`/`),r?`/`+e:e},isAbsolute:function(e){return t(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return`.`;for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(e===void 0?e=i:e+=`/`+i)}return e===void 0?`.`:r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return``;for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var a=e.length,o=a-i,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var c=n.length-s,l=o<c?o:c,u=-1,d=0;d<=l;++d){if(d===l){if(c>l){if(n.charCodeAt(s+d)===47)return n.slice(s+d+1);if(d===0)return n.slice(s+d)}else o>l&&(e.charCodeAt(i+d)===47?u=d:d===0&&(u=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;f===47&&(u=d)}var p=``;for(d=i+u+1;d<=a;++d)d!==a&&e.charCodeAt(d)!==47||(p.length===0?p+=`..`:p+=`/..`);return p.length>0?p+n.slice(s+u):(s+=u,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),e.length===0)return`.`;for(var n=e.charCodeAt(0),r=n===47,i=-1,a=!0,o=e.length-1;o>=1;--o)if((n=e.charCodeAt(o))===47){if(!a){i=o;break}}else a=!1;return i===-1?r?`/`:`.`:r&&i===1?`//`:e.slice(0,i)},basename:function(e,n){if(n!==void 0&&typeof n!=`string`)throw TypeError(`"ext" argument must be a string`);t(e);var r,i=0,a=-1,o=!0;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return``;var s=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(l===47){if(!o){i=r+1;break}}else c===-1&&(o=!1,c=r+1),s>=0&&(l===n.charCodeAt(s)?--s==-1&&(a=r):(s=-1,a=c))}return i===a?a=c:a===-1&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!o){i=r+1;break}}else a===-1&&(o=!1,a=r+1);return a===-1?``:e.slice(i,a)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c!==47)i===-1&&(a=!1,i=s+1),c===46?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1);else if(!a){r=s+1;break}}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},format:function(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object. Received type `+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||``)+(t.ext||``);return n?n===t.root?n+r:n+`/`+r:r}(0,e)},parse:function(e){t(e);var n={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return n;var r,i=e.charCodeAt(0),a=i===47;a?(n.root=`/`,r=1):r=0;for(var o=-1,s=0,c=-1,l=!0,u=e.length-1,d=0;u>=r;--u)if((i=e.charCodeAt(u))!==47)c===-1&&(l=!1,c=u+1),i===46?o===-1?o=u:d!==1&&(d=1):o!==-1&&(d=-1);else if(!l){s=u+1;break}return o===-1||c===-1||d===0||d===1&&o===c-1&&o===s+1?c!==-1&&(n.base=n.name=s===0&&a?e.slice(1,c):e.slice(s,c)):(s===0&&a?(n.name=e.slice(1,o),n.base=e.slice(1,c)):(n.name=e.slice(s,o),n.base=e.slice(s,c)),n.ext=e.slice(o,c)),s>0?n.dir=e.slice(0,s-1):a&&(n.dir=`/`),n},sep:`/`,delimiter:`:`,win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{let e;n.r(r),n.d(r,{URI:()=>c,Utils:()=>x}),typeof process==`object`?e=process.platform===`win32`:typeof navigator==`object`&&(e=navigator.userAgent.indexOf(`Windows`)>=0);let t=/^\w[\w\d+.-]*$/,i=/^\//,a=/^\/\//;function o(e,n){if(!e.scheme&&n)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!t.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!i.test(e.path))throw 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(a.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}let s=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class c{static isUri(e){return e instanceof c||!!e&&typeof e.authority==`string`&&typeof e.fragment==`string`&&typeof e.path==`string`&&typeof e.query==`string`&&typeof e.scheme==`string`&&typeof e.fsPath==`string`&&typeof e.with==`function`&&typeof e.toString==`function`}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||``,this.authority=e.authority||``,this.path=e.path||``,this.query=e.query||``,this.fragment=e.fragment||``):(this.scheme=function(e,t){return e||t?e:`file`}(e,a),this.authority=t||``,this.path=function(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==`/`&&(t=`/`+t):t=`/`}return t}(this.scheme,n||``),this.query=r||``,this.fragment=i||``,o(this,a))}get fsPath(){return m(this)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=``),n===void 0?n=this.authority:n===null&&(n=``),r===void 0?r=this.path:r===null&&(r=``),i===void 0?i=this.query:i===null&&(i=``),a===void 0?a=this.fragment:a===null&&(a=``),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new u(t,n,r,i,a)}static parse(e,t=!1){let n=s.exec(e);return n?new u(n[2]||``,v(n[4]||``),v(n[5]||``),v(n[7]||``),v(n[9]||``),t):new u(``,``,``,``,``)}static file(t){let n=``;if(e&&(t=t.replace(/\\/g,`/`)),t[0]===`/`&&t[1]===`/`){let e=t.indexOf(`/`,2);e===-1?(n=t.substring(2),t=`/`):(n=t.substring(2,e),t=t.substring(e)||`/`)}return new u(`file`,n,t,``,``)}static from(e){let t=new u(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(e=!1){return h(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof c)return e;{let t=new u(e);return t._formatted=e.external,t._fsPath=e._sep===l?e.fsPath:null,t}}return e}}let l=e?1:void 0;class u extends c{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||=m(this),this._fsPath}toString(e=!1){return e?h(this,!0):(this._formatted||=h(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=l),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let d={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 f(e,t,n){let r,i=-1;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=d[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}function p(e){let t;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=d[r]):t!==void 0&&(t+=e[n])}return t===void 0?e:t}function m(t,n){let r;return r=t.authority&&t.path.length>1&&t.scheme===`file`?`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(r=r.replace(/\//g,`\\`)),r}function h(e,t){let n=t?p:f,r=``,{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=`/`,r+=`/`),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),c&&(r+=`#`,r+=t?c:f(c,!1,!1)),r}function g(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+g(e.substr(3)):e}}let _=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function v(e){return e.match(_)?e.replace(_,(e=>g(e))):e}var y=n(470);let b=y.posix||y;var x;(function(e){e.joinPath=function(e,...t){return e.with({path:b.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==`/`&&(n=`/`+n,r=!0);let i=b.resolve(n,...t);return r&&i[0]===`/`&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(e.path.length===0||e.path===`/`)return e;let t=b.dirname(e.path);return t.length===1&&t.charCodeAt(0)===46&&(t=``),e.with({path:t})},e.basename=function(e){return b.basename(e.path)},e.extname=function(e){return b.extname(e.path)}})(x||={})})(),Vc=r})();let{URI:Hc,Utils:Uc}=Vc;function Wc(e){let t=e[0];return t===e[e.length-1]&&(t===`'`||t===`"`)&&(e=e.substring(1,e.length-1)),e}function Gc(e,t){return!e.length||t===`handlebars`&&/{{|}}/.test(e)?!1:/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(e)}function Kc(e,t,n,r){if(/^\s*javascript\:/i.test(t)||/[\n\r]/.test(t))return;t=t.replace(/^\s*/g,``);let i=t.match(/^(\w[\w\d+.-]*):/);if(i){let e=i[1].toLowerCase();return e===`http`||e===`https`||e===`file`?t:void 0}return/^\#/i.test(t)?e+t:/^\/\//i.test(t)?(ac(e,`https://`)?`https`:`http`)+`:`+t.replace(/^\s*/g,``):n?n.resolveReference(t,r||e):t}function qc(e,t,n,r,i,a){let o=Wc(n);if(!Gc(o,e.languageId))return;o.length<n.length&&(r++,i--);let s=Kc(e.uri,o,t,a);if(!s)return;let c=Jc(s,e);return{range:G.create(e.positionAt(r),e.positionAt(i)),target:c}}function Jc(e,t){try{let n=Hc.parse(e);return n.scheme===`file`&&n.query&&(n=n.with({query:null}),e=n.toString(!0)),n.scheme===`file`&&n.fragment&&!(e.startsWith(t.uri)&&e.charCodeAt(t.uri.length)===35)?n.with({fragment:null}).toString(!0):e}catch{return}}var Yc=class{constructor(e){this.dataManager=e}findDocumentLinks(e,t){let n=[],r=Q(e.getText(),0),i=r.scan(),a,o,s=!1,c,l={};for(;i!==X.EOS;){switch(i){case X.StartTag:o=r.getTokenText().toLowerCase(),c||(s=o===`base`);break;case X.AttributeName:a=r.getTokenText().toLowerCase();break;case X.AttributeValue:if(o&&a&&this.dataManager.isPathAttribute(o,a)){let i=r.getTokenText();if(!s){let a=qc(e,t,i,r.getTokenOffset(),r.getTokenEnd(),c);a&&n.push(a)}s&&c===void 0&&(c=Wc(i),c&&t&&(c=t.resolveReference(c,e.uri))),s=!1,a=void 0}else if(a===`id`){let e=Wc(r.getTokenText());l[e]=r.getTokenOffset()}break}i=r.scan()}for(let t of n){let n=e.uri+`#`;if(t.target&&ac(t.target,n)){let r=l[t.target.substring(n.length)];if(r!==void 0){let i=e.positionAt(r);t.target=`${n}${i.line+1},${i.character+1}`}else t.target=e.uri}}return n}};function Xc(e,t,n){let r=e.offsetAt(t),i=n.findNodeAt(r);if(!i.tag)return[];let a=[],o=$c(X.StartTag,e,i.start),s=typeof i.endTagStart==`number`&&$c(X.EndTag,e,i.endTagStart);return(o&&Qc(o,t)||s&&Qc(s,t))&&(o&&a.push({kind:as.Read,range:o}),s&&a.push({kind:as.Read,range:s})),a}function Zc(e,t){return e.line<t.line||e.line===t.line&&e.character<=t.character}function Qc(e,t){return Zc(e.start,t)&&Zc(t,e.end)}function $c(e,t,n){let r=Q(t.getText(),n),i=r.scan();for(;i!==X.EOS&&i!==e;)i=r.scan();return i===X.EOS?null:{start:t.positionAt(r.getTokenOffset()),end:t.positionAt(r.getTokenEnd())}}function el(e,t){let n=[],r=tl(e,t);for(let e of r)i(e,void 0);return n;function i(t,r){let a=ls.create(t.name,t.kind,t.range,e.uri,r?.name);if(a.containerName??=``,n.push(a),t.children)for(let e of t.children)i(e,t)}}function tl(e,t){let n=[];return t.roots.forEach(t=>{nl(e,t,n)}),n}function nl(e,t,n){let r=rl(t),i=G.create(e.positionAt(t.start),e.positionAt(t.end)),a=ds.create(r,void 0,ss.Field,i,i);n.push(a),t.children.forEach(t=>{a.children??=[],nl(e,t,a.children)})}function rl(e){let t=e.tag;if(e.attributes){let n=e.attributes.id,r=e.attributes.class;n&&(t+=`#${n.replace(/[\"\']/g,``)}`),r&&(t+=r.replace(/[\"\']/g,``).split(/\s+/).map(e=>`.${e}`).join(``))}return t||`?`}function il(e,t,n,r){let i=e.offsetAt(t),a=r.findNodeAt(i);if(!a.tag||!al(a,i,a.tag))return null;let o=[],s={start:e.positionAt(a.start+1),end:e.positionAt(a.start+1+a.tag.length)};if(o.push({range:s,newText:n}),a.endTagStart){let t={start:e.positionAt(a.endTagStart+2),end:e.positionAt(a.endTagStart+2+a.tag.length)};o.push({range:t,newText:n})}return{changes:{[e.uri.toString()]:o}}}function al(e,t,n){return e.endTagStart&&e.endTagStart+2<=t&&t<=e.endTagStart+2+n.length?!0:e.start+1<=t&&t<=e.start+1+n.length}function ol(e,t,n){let r=e.offsetAt(t),i=n.findNodeAt(r);if(!i.tag||!i.endTagStart)return null;if(i.start+1<=r&&r<=i.start+1+i.tag.length){let t=r-1-i.start+i.endTagStart+2;return e.positionAt(t)}if(i.endTagStart+2<=r&&r<=i.endTagStart+2+i.tag.length){let t=r-2-i.endTagStart+i.start+1;return e.positionAt(t)}return null}function sl(e,t,n){let r=e.offsetAt(t),i=n.findNodeAt(r),a=i.tag?i.tag.length:0;return i.endTagStart&&(i.start+1<=r&&r<=i.start+1+a||i.endTagStart+2<=r&&r<=i.endTagStart+2+a)?[G.create(e.positionAt(i.start+1),e.positionAt(i.start+1+a)),G.create(e.positionAt(i.endTagStart+2),e.positionAt(i.endTagStart+2+a))]:null}var cl=class{constructor(e){this.dataManager=e}limitRanges(e,t){e=e.sort((e,t)=>{let n=e.startLine-t.startLine;return n===0&&(n=e.endLine-t.endLine),n});let n,r=[],i=[],a=[],o=(e,t)=>{i[e]=t,t<30&&(a[t]=(a[t]||0)+1)};for(let t=0;t<e.length;t++){let i=e[t];if(!n)n=i,o(t,0);else if(i.startLine>n.startLine){if(i.endLine<=n.endLine)r.push(n),n=i,o(t,r.length);else if(i.startLine>n.endLine){do n=r.pop();while(n&&i.startLine>n.endLine);n&&r.push(n),n=i,o(t,r.length)}}}let s=0,c=0;for(let e=0;e<a.length;e++){let n=a[e];if(n){if(n+s>t){c=e;break}s+=n}}let l=[];for(let n=0;n<e.length;n++){let r=i[n];typeof r==`number`&&(r<c||r===c&&s++<t)&&l.push(e[n])}return l}getFoldingRanges(e,t){let n=this.dataManager.getVoidElements(e.languageId),r=Q(e.getText()),i=r.scan(),a=[],o=[],s=null,c=-1;function l(e){a.push(e),c=e.startLine}for(;i!==X.EOS;){switch(i){case X.StartTag:{let t=r.getTokenText(),n=e.positionAt(r.getTokenOffset()).line;o.push({startLine:n,tagName:t}),s=t;break}case X.EndTag:s=r.getTokenText();break;case X.StartTagClose:if(!s||!this.dataManager.isVoidElement(s,n))break;case X.EndTagClose:case X.StartTagSelfClose:{let t=o.length-1;for(;t>=0&&o[t].tagName!==s;)t--;if(t>=0){let n=o[t];o.length=t;let i=e.positionAt(r.getTokenOffset()).line,a=n.startLine,s=i-1;s>a&&c!==a&&l({startLine:a,endLine:s})}break}case X.Comment:{let t=e.positionAt(r.getTokenOffset()).line,n=r.getTokenText().match(/^\s*#(region\b)|(endregion\b)/);if(n)if(n[1])o.push({startLine:t,tagName:``});else{let e=o.length-1;for(;e>=0&&o[e].tagName.length;)e--;if(e>=0){let n=o[e];o.length=e;let r=t;t=n.startLine,r>t&&c!==t&&l({startLine:t,endLine:r,kind:Do.Region})}}else{let n=e.positionAt(r.getTokenOffset()+r.getTokenLength()).line;t<n&&l({startLine:t,endLine:n,kind:Do.Comment})}break}}i=r.scan()}let u=t&&t.rangeLimit||Number.MAX_VALUE;return a.length>u?this.limitRanges(a,u):a}},ll=class{constructor(e){this.htmlParser=e}getSelectionRanges(e,t){let n=this.htmlParser.parseDocument(e);return t.map(t=>this.getSelectionRange(t,e,n))}getSelectionRange(e,t,n){let r=this.getApplicableRanges(t,e,n),i,a;for(let e=r.length-1;e>=0;e--){let n=r[e];(!i||n[0]!==i[0]||n[1]!==i[1])&&(a=ys.create(G.create(t.positionAt(r[e][0]),t.positionAt(r[e][1])),a)),i=n}return a||=ys.create(G.create(e,e)),a}getApplicableRanges(e,t,n){let r=e.offsetAt(t),i=n.findNodeAt(r),a=this.getAllParentTagRanges(i);if(i.startTagEnd&&!i.endTagStart){if(i.startTagEnd!==i.end)return[[i.start,i.end]];let t=G.create(e.positionAt(i.startTagEnd-2),e.positionAt(i.startTagEnd));return e.getText(t)===`/>`?a.unshift([i.start+1,i.startTagEnd-2]):a.unshift([i.start+1,i.startTagEnd-1]),a=this.getAttributeLevelRanges(e,i,r).concat(a),a}return!i.startTagEnd||!i.endTagStart?a:(a.unshift([i.start,i.end]),i.start<r&&r<i.startTagEnd?(a.unshift([i.start+1,i.startTagEnd-1]),a=this.getAttributeLevelRanges(e,i,r).concat(a),a):i.startTagEnd<=r&&r<=i.endTagStart?(a.unshift([i.startTagEnd,i.endTagStart]),a):(r>=i.endTagStart+2&&a.unshift([i.endTagStart+2,i.end-1]),a))}getAllParentTagRanges(e){let t=e,n=[];for(;t.parent;)t=t.parent,this.getNodeRanges(t).forEach(e=>n.push(e));return n}getNodeRanges(e){return e.startTagEnd&&e.endTagStart&&e.startTagEnd<e.endTagStart?[[e.startTagEnd,e.endTagStart],[e.start,e.end]]:[[e.start,e.end]]}getAttributeLevelRanges(e,t,n){let r=G.create(e.positionAt(t.start),e.positionAt(t.end)),i=e.getText(r),a=n-t.start,o=Q(i),s=o.scan(),c=t.start,l=[],u=!1,d=-1;for(;s!==X.EOS;){switch(s){case X.AttributeName:if(a<o.getTokenOffset()){u=!1;break}a<=o.getTokenEnd()&&l.unshift([o.getTokenOffset(),o.getTokenEnd()]),u=!0,d=o.getTokenOffset();break;case X.AttributeValue:{if(!u)break;let e=o.getTokenText();if(a<o.getTokenOffset()){l.push([d,o.getTokenEnd()]);break}a>=o.getTokenOffset()&&a<=o.getTokenEnd()&&(l.unshift([o.getTokenOffset(),o.getTokenEnd()]),(e[0]===`"`&&e[e.length-1]===`"`||e[0]===`'`&&e[e.length-1]===`'`)&&a>=o.getTokenOffset()+1&&a<=o.getTokenEnd()-1&&l.unshift([o.getTokenOffset()+1,o.getTokenEnd()-1]),l.push([d,o.getTokenEnd()]));break}}s=o.scan()}return l.map(e=>[e[0]+c,e[1]+c])}};let ul={version:1.1,tags:[{name:`html`,description:{kind:`markdown`,value:`The html element represents the root of an HTML document.`},attributes:[{name:`manifest`,description:{kind:`markdown`,value:`Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details.`}},{name:`version`,description:`Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "<!DOCTYPE html>" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called “quirks mode” when rendering a document; that is, the "<!DOCTYPE html>" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.`},{name:`xmlns`,description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/HTML/Element/html`}]},{name:`head`,description:{kind:`markdown`,value:`The head element represents a collection of metadata for the Document.`},attributes:[{name:`profile`,description:`The URIs of one or more metadata profiles, separated by white space.`}],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/HTML/Element/head`}]},{name:`title`,description:{kind:`markdown`,value:`The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context.`},attributes:[],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/HTML/Element/title`}]},{name:`base`,description:{kind:`markdown`,value:`The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information.`},void:!0,attributes:[{name:`href`,description:{kind:`markdown`,value:`The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed.`}},{name:`target`,valueSet:`target`,description:{kind:`markdown`,value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/HTML/Element/base`}]},{name:`link`,description:{kind:`markdown`,value:`The link element allows authors to link their document to other resources.`},void:!0,attributes:[{name:`href`,description:{kind:`markdown`,value:`This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.`}},{name:`crossorigin`,valueSet:`xo`,description:{kind:`markdown`,value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:`rel`,description:{kind:`markdown`,value:`This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).`}},{name:`media`,description:{kind:`markdown`,value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets — it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:`hreflang`,description:{kind:`markdown`,value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:`type`,description:{kind:`markdown`,value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:`sizes`,description:{kind:`markdown`,value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `_<width in pixels>_x_<height in pixels>_` or `_<width in pixels>_X_<height in pixels>_`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:`as`,description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `<link>` element. It specifies the type of content being loaded by the `<link>`, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on\xA0the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image,\xA0video or a script.") request header.'},{name:`importance`,description:`Indicates the relative importance of the resource. Priority hints are delegated using the values:`},{name:`importance`,description:'**`auto`**: Indicates\xA0**no\xA0preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the\xA0browser\xA0that the resource is of\xA0**high** priority.\n\n**`low`**:\xA0Indicates to the\xA0browser\xA0that the resource is of\xA0**low** priority.\n\n**Note:** The `importance` attribute may only be used for the `<link>` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:`integrity`,description:`Contains inline metadata — a base64-encoded cryptographic hash of the resource (file) you’re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity).`},{name:`referrerpolicy`,description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent’s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:`title`,description:'The `title` attribute has special semantics on the `<link>` element. When used on a `<link rel="stylesheet">` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/HTML/Element/link`}]},{name:`meta`,description:{kind:`markdown`,value:`The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements.`},void:!0,attributes:[{name:`name`,description:{kind:`markdown`,value:`This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [\`itemprop\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [\`http-equiv\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [\`charset\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set.
70
+ `.indexOf(e.charAt(t))!==-1}function Bc(e,t){return` `.indexOf(e.charAt(t))!==-1}var Vc;(()=>{var e={470:e=>{function t(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}function n(e,t){for(var n,r=``,i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(n===47)break;n=47}if(n===47){if(!(a===s-1||o===1))if(a!==s-1&&o===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var c=r.lastIndexOf(`/`);if(c!==r.length-1){c===-1?(r=``,i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf(`/`),a=s,o=0;continue}}else if(r.length===2||r.length===1){r=``,i=0,a=s,o=0;continue}}t&&(r.length>0?r+=`/..`:r=`..`,i=2)}else r.length>0?r+=`/`+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1;a=s,o=0}else n===46&&o!==-1?++o:o=-1}return r}var r={resolve:function(){for(var e,r=``,i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(e===void 0&&(e=process.cwd()),o=e),t(o),o.length!==0&&(r=o+`/`+r,i=o.charCodeAt(0)===47)}return r=n(r,!i),i?r.length>0?`/`+r:`/`:r.length>0?r:`.`},normalize:function(e){if(t(e),e.length===0)return`.`;var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return(e=n(e,!r)).length!==0||r||(e=`.`),e.length>0&&i&&(e+=`/`),r?`/`+e:e},isAbsolute:function(e){return t(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return`.`;for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(e===void 0?e=i:e+=`/`+i)}return e===void 0?`.`:r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return``;for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var a=e.length,o=a-i,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var c=n.length-s,l=o<c?o:c,u=-1,d=0;d<=l;++d){if(d===l){if(c>l){if(n.charCodeAt(s+d)===47)return n.slice(s+d+1);if(d===0)return n.slice(s+d)}else o>l&&(e.charCodeAt(i+d)===47?u=d:d===0&&(u=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;f===47&&(u=d)}var p=``;for(d=i+u+1;d<=a;++d)d!==a&&e.charCodeAt(d)!==47||(p.length===0?p+=`..`:p+=`/..`);return p.length>0?p+n.slice(s+u):(s+=u,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),e.length===0)return`.`;for(var n=e.charCodeAt(0),r=n===47,i=-1,a=!0,o=e.length-1;o>=1;--o)if((n=e.charCodeAt(o))===47){if(!a){i=o;break}}else a=!1;return i===-1?r?`/`:`.`:r&&i===1?`//`:e.slice(0,i)},basename:function(e,n){if(n!==void 0&&typeof n!=`string`)throw TypeError(`"ext" argument must be a string`);t(e);var r,i=0,a=-1,o=!0;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return``;var s=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(l===47){if(!o){i=r+1;break}}else c===-1&&(o=!1,c=r+1),s>=0&&(l===n.charCodeAt(s)?--s==-1&&(a=r):(s=-1,a=c))}return i===a?a=c:a===-1&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!o){i=r+1;break}}else a===-1&&(o=!1,a=r+1);return a===-1?``:e.slice(i,a)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c!==47)i===-1&&(a=!1,i=s+1),c===46?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1);else if(!a){r=s+1;break}}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},format:function(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object. Received type `+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||``)+(t.ext||``);return n?n===t.root?n+r:n+`/`+r:r}(0,e)},parse:function(e){t(e);var n={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return n;var r,i=e.charCodeAt(0),a=i===47;a?(n.root=`/`,r=1):r=0;for(var o=-1,s=0,c=-1,l=!0,u=e.length-1,d=0;u>=r;--u)if((i=e.charCodeAt(u))!==47)c===-1&&(l=!1,c=u+1),i===46?o===-1?o=u:d!==1&&(d=1):o!==-1&&(d=-1);else if(!l){s=u+1;break}return o===-1||c===-1||d===0||d===1&&o===c-1&&o===s+1?c!==-1&&(n.base=n.name=s===0&&a?e.slice(1,c):e.slice(s,c)):(s===0&&a?(n.name=e.slice(1,o),n.base=e.slice(1,c)):(n.name=e.slice(s,o),n.base=e.slice(s,c)),n.ext=e.slice(o,c)),s>0?n.dir=e.slice(0,s-1):a&&(n.dir=`/`),n},sep:`/`,delimiter:`:`,win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,`__esModule`,{value:!0})};var r={};(()=>{let e;n.r(r),n.d(r,{URI:()=>c,Utils:()=>x}),typeof process==`object`?e=process.platform===`win32`:typeof navigator==`object`&&(e=navigator.userAgent.indexOf(`Windows`)>=0);let t=/^\w[\w\d+.-]*$/,i=/^\//,a=/^\/\//;function o(e,n){if(!e.scheme&&n)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!t.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!i.test(e.path))throw 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(a.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}let s=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class c{static isUri(e){return e instanceof c||!!e&&typeof e.authority==`string`&&typeof e.fragment==`string`&&typeof e.path==`string`&&typeof e.query==`string`&&typeof e.scheme==`string`&&typeof e.fsPath==`string`&&typeof e.with==`function`&&typeof e.toString==`function`}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||``,this.authority=e.authority||``,this.path=e.path||``,this.query=e.query||``,this.fragment=e.fragment||``):(this.scheme=function(e,t){return e||t?e:`file`}(e,a),this.authority=t||``,this.path=function(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==`/`&&(t=`/`+t):t=`/`}return t}(this.scheme,n||``),this.query=r||``,this.fragment=i||``,o(this,a))}get fsPath(){return m(this)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=``),n===void 0?n=this.authority:n===null&&(n=``),r===void 0?r=this.path:r===null&&(r=``),i===void 0?i=this.query:i===null&&(i=``),a===void 0?a=this.fragment:a===null&&(a=``),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new u(t,n,r,i,a)}static parse(e,t=!1){let n=s.exec(e);return n?new u(n[2]||``,v(n[4]||``),v(n[5]||``),v(n[7]||``),v(n[9]||``),t):new u(``,``,``,``,``)}static file(t){let n=``;if(e&&(t=t.replace(/\\/g,`/`)),t[0]===`/`&&t[1]===`/`){let e=t.indexOf(`/`,2);e===-1?(n=t.substring(2),t=`/`):(n=t.substring(2,e),t=t.substring(e)||`/`)}return new u(`file`,n,t,``,``)}static from(e){let t=new u(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(e=!1){return h(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof c)return e;{let t=new u(e);return t._formatted=e.external,t._fsPath=e._sep===l?e.fsPath:null,t}}return e}}let l=e?1:void 0;class u extends c{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||=m(this),this._fsPath}toString(e=!1){return e?h(this,!0):(this._formatted||=h(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=l),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let d={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 f(e,t,n){let r,i=-1;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=d[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}function p(e){let t;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=d[r]):t!==void 0&&(t+=e[n])}return t===void 0?e:t}function m(t,n){let r;return r=t.authority&&t.path.length>1&&t.scheme===`file`?`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(r=r.replace(/\//g,`\\`)),r}function h(e,t){let n=t?p:f,r=``,{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=`/`,r+=`/`),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),c&&(r+=`#`,r+=t?c:f(c,!1,!1)),r}function g(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+g(e.substr(3)):e}}let _=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function v(e){return e.match(_)?e.replace(_,(e=>g(e))):e}var y=n(470);let b=y.posix||y;var x;(function(e){e.joinPath=function(e,...t){return e.with({path:b.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==`/`&&(n=`/`+n,r=!0);let i=b.resolve(n,...t);return r&&i[0]===`/`&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(e.path.length===0||e.path===`/`)return e;let t=b.dirname(e.path);return t.length===1&&t.charCodeAt(0)===46&&(t=``),e.with({path:t})},e.basename=function(e){return b.basename(e.path)},e.extname=function(e){return b.extname(e.path)}})(x||={})})(),Vc=r})();let{URI:Hc,Utils:Uc}=Vc;function Wc(e){let t=e[0];return t===e[e.length-1]&&(t===`'`||t===`"`)&&(e=e.substring(1,e.length-1)),e}function Gc(e,t){return!e.length||t===`handlebars`&&/{{|}}/.test(e)?!1:/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(e)}function Kc(e,t,n,r){if(/^\s*javascript\:/i.test(t)||/[\n\r]/.test(t))return;t=t.replace(/^\s*/g,``);let i=t.match(/^(\w[\w\d+.-]*):/);if(i){let e=i[1].toLowerCase();return e===`http`||e===`https`||e===`file`?t:void 0}return/^\#/i.test(t)?e+t:/^\/\//i.test(t)?(ac(e,`https://`)?`https`:`http`)+`:`+t.replace(/^\s*/g,``):n?n.resolveReference(t,r||e):t}function qc(e,t,n,r,i,a){let o=Wc(n);if(!Gc(o,e.languageId))return;o.length<n.length&&(r++,i--);let s=Kc(e.uri,o,t,a);if(!s)return;let c=Jc(s,e);return{range:G.create(e.positionAt(r),e.positionAt(i)),target:c}}function Jc(e,t){try{let n=Hc.parse(e);return n.scheme===`file`&&n.query&&(n=n.with({query:null}),e=n.toString(!0)),n.scheme===`file`&&n.fragment&&!(e.startsWith(t.uri)&&e.charCodeAt(t.uri.length)===35)?n.with({fragment:null}).toString(!0):e}catch{return}}var Yc=class{constructor(e){this.dataManager=e}findDocumentLinks(e,t){let n=[],r=Q(e.getText(),0),i=r.scan(),a,o,s=!1,c,l={};for(;i!==X.EOS;){switch(i){case X.StartTag:o=r.getTokenText().toLowerCase(),c||(s=o===`base`);break;case X.AttributeName:a=r.getTokenText().toLowerCase();break;case X.AttributeValue:if(o&&a&&this.dataManager.isPathAttribute(o,a)){let i=r.getTokenText();if(!s){let a=qc(e,t,i,r.getTokenOffset(),r.getTokenEnd(),c);a&&n.push(a)}s&&c===void 0&&(c=Wc(i),c&&t&&(c=t.resolveReference(c,e.uri))),s=!1,a=void 0}else if(a===`id`){let e=Wc(r.getTokenText());l[e]=r.getTokenOffset()}break}i=r.scan()}for(let t of n){let n=e.uri+`#`;if(t.target&&ac(t.target,n)){let r=l[t.target.substring(n.length)];if(r!==void 0){let i=e.positionAt(r);t.target=`${n}${i.line+1},${i.character+1}`}else t.target=e.uri}}return n}};function Xc(e,t,n){let r=e.offsetAt(t),i=n.findNodeAt(r);if(!i.tag)return[];let a=[],o=$c(X.StartTag,e,i.start),s=typeof i.endTagStart==`number`&&$c(X.EndTag,e,i.endTagStart);return(o&&Qc(o,t)||s&&Qc(s,t))&&(o&&a.push({kind:as.Read,range:o}),s&&a.push({kind:as.Read,range:s})),a}function Zc(e,t){return e.line<t.line||e.line===t.line&&e.character<=t.character}function Qc(e,t){return Zc(e.start,t)&&Zc(t,e.end)}function $c(e,t,n){let r=Q(t.getText(),n),i=r.scan();for(;i!==X.EOS&&i!==e;)i=r.scan();return i===X.EOS?null:{start:t.positionAt(r.getTokenOffset()),end:t.positionAt(r.getTokenEnd())}}function el(e,t){let n=[],r=tl(e,t);for(let e of r)i(e,void 0);return n;function i(t,r){let a=ls.create(t.name,t.kind,t.range,e.uri,r?.name);if(a.containerName??=``,n.push(a),t.children)for(let e of t.children)i(e,t)}}function tl(e,t){let n=[];return t.roots.forEach(t=>{nl(e,t,n)}),n}function nl(e,t,n){let r=rl(t),i=G.create(e.positionAt(t.start),e.positionAt(t.end)),a=ds.create(r,void 0,ss.Field,i,i);n.push(a),t.children.forEach(t=>{a.children??=[],nl(e,t,a.children)})}function rl(e){let t=e.tag;if(e.attributes){let n=e.attributes.id,r=e.attributes.class;n&&(t+=`#${n.replace(/[\"\']/g,``)}`),r&&(t+=r.replace(/[\"\']/g,``).split(/\s+/).map(e=>`.${e}`).join(``))}return t||`?`}function il(e,t,n,r){let i=e.offsetAt(t),a=r.findNodeAt(i);if(!a.tag||!al(a,i,a.tag))return null;let o=[],s={start:e.positionAt(a.start+1),end:e.positionAt(a.start+1+a.tag.length)};if(o.push({range:s,newText:n}),a.endTagStart){let t={start:e.positionAt(a.endTagStart+2),end:e.positionAt(a.endTagStart+2+a.tag.length)};o.push({range:t,newText:n})}return{changes:{[e.uri.toString()]:o}}}function al(e,t,n){return e.endTagStart&&e.endTagStart+2<=t&&t<=e.endTagStart+2+n.length?!0:e.start+1<=t&&t<=e.start+1+n.length}function ol(e,t,n){let r=e.offsetAt(t),i=n.findNodeAt(r);if(!i.tag||!i.endTagStart)return null;if(i.start+1<=r&&r<=i.start+1+i.tag.length){let t=r-1-i.start+i.endTagStart+2;return e.positionAt(t)}if(i.endTagStart+2<=r&&r<=i.endTagStart+2+i.tag.length){let t=r-2-i.endTagStart+i.start+1;return e.positionAt(t)}return null}function sl(e,t,n){let r=e.offsetAt(t),i=n.findNodeAt(r),a=i.tag?i.tag.length:0;return i.endTagStart&&(i.start+1<=r&&r<=i.start+1+a||i.endTagStart+2<=r&&r<=i.endTagStart+2+a)?[G.create(e.positionAt(i.start+1),e.positionAt(i.start+1+a)),G.create(e.positionAt(i.endTagStart+2),e.positionAt(i.endTagStart+2+a))]:null}var cl=class{constructor(e){this.dataManager=e}limitRanges(e,t){e=e.sort((e,t)=>{let n=e.startLine-t.startLine;return n===0&&(n=e.endLine-t.endLine),n});let n,r=[],i=[],a=[],o=(e,t)=>{i[e]=t,t<30&&(a[t]=(a[t]||0)+1)};for(let t=0;t<e.length;t++){let i=e[t];if(!n)n=i,o(t,0);else if(i.startLine>n.startLine){if(i.endLine<=n.endLine)r.push(n),n=i,o(t,r.length);else if(i.startLine>n.endLine){do n=r.pop();while(n&&i.startLine>n.endLine);n&&r.push(n),n=i,o(t,r.length)}}}let s=0,c=0;for(let e=0;e<a.length;e++){let n=a[e];if(n){if(n+s>t){c=e;break}s+=n}}let l=[];for(let n=0;n<e.length;n++){let r=i[n];typeof r==`number`&&(r<c||r===c&&s++<t)&&l.push(e[n])}return l}getFoldingRanges(e,t){let n=this.dataManager.getVoidElements(e.languageId),r=Q(e.getText()),i=r.scan(),a=[],o=[],s=null,c=-1;function l(e){a.push(e),c=e.startLine}for(;i!==X.EOS;){switch(i){case X.StartTag:{let t=r.getTokenText(),n=e.positionAt(r.getTokenOffset()).line;o.push({startLine:n,tagName:t}),s=t;break}case X.EndTag:s=r.getTokenText();break;case X.StartTagClose:if(!s||!this.dataManager.isVoidElement(s,n))break;case X.EndTagClose:case X.StartTagSelfClose:{let t=o.length-1;for(;t>=0&&o[t].tagName!==s;)t--;if(t>=0){let n=o[t];o.length=t;let i=e.positionAt(r.getTokenOffset()).line,a=n.startLine,s=i-1;s>a&&c!==a&&l({startLine:a,endLine:s})}break}case X.Comment:{let t=e.positionAt(r.getTokenOffset()).line,n=r.getTokenText().match(/^\s*#(region\b)|(endregion\b)/);if(n)if(n[1])o.push({startLine:t,tagName:``});else{let e=o.length-1;for(;e>=0&&o[e].tagName.length;)e--;if(e>=0){let n=o[e];o.length=e;let r=t;t=n.startLine,r>t&&c!==t&&l({startLine:t,endLine:r,kind:Do.Region})}}else{let n=e.positionAt(r.getTokenOffset()+r.getTokenLength()).line;t<n&&l({startLine:t,endLine:n,kind:Do.Comment})}break}}i=r.scan()}let u=t&&t.rangeLimit||Number.MAX_VALUE;return a.length>u?this.limitRanges(a,u):a}},ll=class{constructor(e){this.htmlParser=e}getSelectionRanges(e,t){let n=this.htmlParser.parseDocument(e);return t.map(t=>this.getSelectionRange(t,e,n))}getSelectionRange(e,t,n){let r=this.getApplicableRanges(t,e,n),i,a;for(let e=r.length-1;e>=0;e--){let n=r[e];(!i||n[0]!==i[0]||n[1]!==i[1])&&(a=ys.create(G.create(t.positionAt(r[e][0]),t.positionAt(r[e][1])),a)),i=n}return a||=ys.create(G.create(e,e)),a}getApplicableRanges(e,t,n){let r=e.offsetAt(t),i=n.findNodeAt(r),a=this.getAllParentTagRanges(i);if(i.startTagEnd&&!i.endTagStart){if(i.startTagEnd!==i.end)return[[i.start,i.end]];let t=G.create(e.positionAt(i.startTagEnd-2),e.positionAt(i.startTagEnd));return e.getText(t)===`/>`?a.unshift([i.start+1,i.startTagEnd-2]):a.unshift([i.start+1,i.startTagEnd-1]),a=this.getAttributeLevelRanges(e,i,r).concat(a),a}return!i.startTagEnd||!i.endTagStart?a:(a.unshift([i.start,i.end]),i.start<r&&r<i.startTagEnd?(a.unshift([i.start+1,i.startTagEnd-1]),a=this.getAttributeLevelRanges(e,i,r).concat(a),a):i.startTagEnd<=r&&r<=i.endTagStart?(a.unshift([i.startTagEnd,i.endTagStart]),a):(r>=i.endTagStart+2&&a.unshift([i.endTagStart+2,i.end-1]),a))}getAllParentTagRanges(e){let t=e,n=[];for(;t.parent;)t=t.parent,this.getNodeRanges(t).forEach(e=>n.push(e));return n}getNodeRanges(e){return e.startTagEnd&&e.endTagStart&&e.startTagEnd<e.endTagStart?[[e.startTagEnd,e.endTagStart],[e.start,e.end]]:[[e.start,e.end]]}getAttributeLevelRanges(e,t,n){let r=G.create(e.positionAt(t.start),e.positionAt(t.end)),i=e.getText(r),a=n-t.start,o=Q(i),s=o.scan(),c=t.start,l=[],u=!1,d=-1;for(;s!==X.EOS;){switch(s){case X.AttributeName:if(a<o.getTokenOffset()){u=!1;break}a<=o.getTokenEnd()&&l.unshift([o.getTokenOffset(),o.getTokenEnd()]),u=!0,d=o.getTokenOffset();break;case X.AttributeValue:{if(!u)break;let e=o.getTokenText();if(a<o.getTokenOffset()){l.push([d,o.getTokenEnd()]);break}a>=o.getTokenOffset()&&a<=o.getTokenEnd()&&(l.unshift([o.getTokenOffset(),o.getTokenEnd()]),(e[0]===`"`&&e[e.length-1]===`"`||e[0]===`'`&&e[e.length-1]===`'`)&&a>=o.getTokenOffset()+1&&a<=o.getTokenEnd()-1&&l.unshift([o.getTokenOffset()+1,o.getTokenEnd()-1]),l.push([d,o.getTokenEnd()]));break}}s=o.scan()}return l.map(e=>[e[0]+c,e[1]+c])}};let ul={version:1.1,tags:[{name:`html`,description:{kind:`markdown`,value:`The html element represents the root of an HTML document.`},attributes:[{name:`manifest`,description:{kind:`markdown`,value:`Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details.`}},{name:`version`,description:`Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "<!DOCTYPE html>" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called “quirks mode” when rendering a document; that is, the "<!DOCTYPE html>" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.`},{name:`xmlns`,description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/HTML/Element/html`}]},{name:`head`,description:{kind:`markdown`,value:`The head element represents a collection of metadata for the Document.`},attributes:[{name:`profile`,description:`The URIs of one or more metadata profiles, separated by white space.`}],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/HTML/Element/head`}]},{name:`title`,description:{kind:`markdown`,value:`The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context.`},attributes:[],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/HTML/Element/title`}]},{name:`base`,description:{kind:`markdown`,value:`The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information.`},void:!0,attributes:[{name:`href`,description:{kind:`markdown`,value:`The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed.`}},{name:`target`,valueSet:`target`,description:{kind:`markdown`,value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/HTML/Element/base`}]},{name:`link`,description:{kind:`markdown`,value:`The link element allows authors to link their document to other resources.`},void:!0,attributes:[{name:`href`,description:{kind:`markdown`,value:`This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.`}},{name:`crossorigin`,valueSet:`xo`,description:{kind:`markdown`,value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:`rel`,description:{kind:`markdown`,value:`This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).`}},{name:`media`,description:{kind:`markdown`,value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets — it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:`hreflang`,description:{kind:`markdown`,value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:`type`,description:{kind:`markdown`,value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:`sizes`,description:{kind:`markdown`,value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `_<width in pixels>_x_<height in pixels>_` or `_<width in pixels>_X_<height in pixels>_`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:`as`,description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `<link>` element. It specifies the type of content being loaded by the `<link>`, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on\xA0the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image,\xA0video or a script.") request header.'},{name:`importance`,description:`Indicates the relative importance of the resource. Priority hints are delegated using the values:`},{name:`importance`,description:'**`auto`**: Indicates\xA0**no\xA0preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the\xA0browser\xA0that the resource is of\xA0**high** priority.\n\n**`low`**:\xA0Indicates to the\xA0browser\xA0that the resource is of\xA0**low** priority.\n\n**Note:** The `importance` attribute may only be used for the `<link>` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:`integrity`,description:`Contains inline metadata — a base64-encoded cryptographic hash of the resource (file) you’re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity).`},{name:`referrerpolicy`,description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent’s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:`title`,description:'The `title` attribute has special semantics on the `<link>` element. When used on a `<link rel="stylesheet">` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:`MDN Reference`,url:`https://developer.mozilla.org/docs/Web/HTML/Element/link`}]},{name:`meta`,description:{kind:`markdown`,value:`The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements.`},void:!0,attributes:[{name:`name`,description:{kind:`markdown`,value:`This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [\`itemprop\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [\`http-equiv\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [\`charset\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set.
71
71
 
72
72
  This metadata name is associated with the value contained by the [\`content\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute. The possible values for the name attribute are:
73
73