monaco-editor11 1.1.8 → 1.2.0

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 (131) hide show
  1. package/dist/abap-BmV14C8H.js +1 -0
  2. package/dist/apex-vQDebnNk.js +1 -0
  3. package/dist/azcli-C4hxwus7.js +1 -0
  4. package/dist/bat-DYHIOgJW.js +1 -0
  5. package/dist/bicep-BJDZ3U7c.js +2 -0
  6. package/dist/cameligo-l0J6eaPU.js +1 -0
  7. package/dist/clojure-BUv_1vEn.js +1 -0
  8. package/dist/coffee-Cw3141X6.js +1 -0
  9. package/dist/cpp-CHPWmTTa.js +1 -0
  10. package/dist/csharp-0ISFInBU.js +1 -0
  11. package/dist/csp-Dcy9EUAZ.js +1 -0
  12. package/dist/css-UDjyEDNM.js +3 -0
  13. package/dist/css.worker-wrapper.d.ts +0 -0
  14. package/dist/css.worker.js +66 -0
  15. package/dist/cssMode-CZvh5Cxi.js +1 -0
  16. package/dist/{cssMode-BQ5BKBAY.mjs → cssMode-D5wFpBcJ.mjs} +3 -3
  17. package/dist/cypher-BoSKj8sy.js +1 -0
  18. package/dist/dart-75fOVMIC.js +1 -0
  19. package/dist/dockerfile-CeTDdZJB.js +1 -0
  20. package/dist/ecl-BZ8GfbIS.js +1 -0
  21. package/dist/editor.worker-wrapper.d.ts +0 -0
  22. package/dist/editor.worker.js +1 -0
  23. package/dist/editorWorkerHost-CXSl__Sw.mjs +11917 -0
  24. package/dist/editorWorkerHost-J3OLr02l.js +33 -0
  25. package/dist/elixir-HwUoMs-6.js +1 -0
  26. package/dist/flow9-Co-egZvn.js +1 -0
  27. package/dist/{freemarker2-6GYcye2r.mjs → freemarker2-0KWO0y3D.mjs} +1 -1
  28. package/dist/freemarker2-CWgJ4a-p.js +3 -0
  29. package/dist/fsharp-By4FMj_K.js +1 -0
  30. package/dist/go-D0-3Iavh.js +1 -0
  31. package/dist/graphql-arXy5b1U.js +1 -0
  32. package/dist/handlebars-B3DRUYqI.js +1 -0
  33. package/dist/{handlebars-5_7gZ3QS.mjs → handlebars-CtTh3MzK.mjs} +1 -1
  34. package/dist/hcl-DQpT3BXv.js +1 -0
  35. package/dist/{html-2thNXsIu.mjs → html-Bfagd5f8.mjs} +1 -1
  36. package/dist/html-Cq6ODg2A.js +1 -0
  37. package/dist/htmlMode-BCWHN8H1.js +1 -0
  38. package/dist/{htmlMode-Dmqis0oY.mjs → htmlMode-Ca4o_48E.mjs} +3 -3
  39. package/dist/index-BnVmN2qp.js +875 -0
  40. package/dist/index-CcXLAo11.js +1 -0
  41. package/dist/index-D7fx9aNv.mjs +498 -0
  42. package/dist/{index-CiIcpngo.mjs → index-DnKFAZ-F.mjs} +24450 -35934
  43. package/dist/index.d.ts +3 -1
  44. package/dist/index.js +1 -0
  45. package/dist/ini-CHrdBSR6.js +1 -0
  46. package/dist/initialize-7Tsg9DJ6.mjs +44 -0
  47. package/dist/initialize-8Cpp42Fp.js +1 -0
  48. package/dist/java-DkNlCtA8.js +1 -0
  49. package/dist/javascript-C_YSapv9.js +1 -0
  50. package/dist/{javascript-DGu9heQ1.mjs → javascript-D2KmymLa.mjs} +1 -1
  51. package/dist/json.worker-wrapper.d.ts +0 -0
  52. package/dist/json.worker.js +17 -0
  53. package/dist/jsonMode-DaXUMuRa.js +1 -0
  54. package/dist/jsonMode-Dnqj4FWW.mjs +306 -0
  55. package/dist/julia-D2YHJdZy.js +1 -0
  56. package/dist/kotlin-BSyr2f_w.js +1 -0
  57. package/dist/less-C8csD237.js +2 -0
  58. package/dist/lexon-Dg5XMXM-.js +1 -0
  59. package/dist/{liquid-B6d5eZ0w.mjs → liquid-CQtA4TA-.mjs} +1 -1
  60. package/dist/liquid-Dc6vO2KK.js +1 -0
  61. package/dist/lspLanguageFeatures-CeustN1U.js +2 -0
  62. package/dist/lspLanguageFeatures-DUzyYYsS.mjs +534 -0
  63. package/dist/lua-BOoO7Ej7.js +1 -0
  64. package/dist/m3-Bny7JARg.js +1 -0
  65. package/dist/main-B2xgQ6G2.mjs +687 -0
  66. package/dist/main-C27EQSK2.mjs +947 -0
  67. package/dist/main-DXJICgQq.js +3 -0
  68. package/dist/main-Dt1Bdcpc.js +15 -0
  69. package/dist/markdown-cseWCS9n.js +1 -0
  70. package/dist/mdx-C2nK3qTe.js +1 -0
  71. package/dist/{mdx-Dc2EzqW9.mjs → mdx-cjfOdSKt.mjs} +1 -1
  72. package/dist/mips-7JuqcyJ4.js +1 -0
  73. package/dist/msdax-BmYA5eV5.js +1 -0
  74. package/dist/mysql-CHTrPhJ_.js +1 -0
  75. package/dist/objective-c-CUdbM2R7.js +1 -0
  76. package/dist/pascal-CNC6uGuD.js +1 -0
  77. package/dist/pascaligo-BEZzSZnI.js +1 -0
  78. package/dist/perl-JOl0jAD9.js +1 -0
  79. package/dist/pgsql-BlC3cJBr.js +1 -0
  80. package/dist/php-6ijfJ2jK.js +1 -0
  81. package/dist/pla-DB8tU9Tm.js +1 -0
  82. package/dist/postiats-BMJJQsUH.js +1 -0
  83. package/dist/powerquery-CoLfQ6__.js +1 -0
  84. package/dist/powershell-BA5owzqH.js +1 -0
  85. package/dist/protobuf-DUMRTG9C.js +2 -0
  86. package/dist/pug-D3HDBCR9.js +1 -0
  87. package/dist/python-BaSW5leI.js +1 -0
  88. package/dist/{python-BN7PRYMW.mjs → python-DA6ByLCZ.mjs} +1 -1
  89. package/dist/qsharp-DN7Y6XhL.js +1 -0
  90. package/dist/r-Bc6rlFXl.js +1 -0
  91. package/dist/{razor-amsYwW3e.mjs → razor-3z9XYGZf.mjs} +1 -1
  92. package/dist/razor-nQE2Djhf.js +1 -0
  93. package/dist/redis-BVBmvApp.js +1 -0
  94. package/dist/redshift-BdEMv0YI.js +1 -0
  95. package/dist/restructuredtext-Cwgkbiv3.js +1 -0
  96. package/dist/ruby-BPqQ0TOE.js +1 -0
  97. package/dist/rust-DGojqpAN.js +1 -0
  98. package/dist/sb-B572kJZe.js +1 -0
  99. package/dist/scala-CDQ1h1Nd.js +1 -0
  100. package/dist/scheme-CgaAfqMQ.js +1 -0
  101. package/dist/scss-DZHIl239.js +3 -0
  102. package/dist/shell-D5kOdfAA.js +1 -0
  103. package/dist/solidity-D6vCwnFo.js +1 -0
  104. package/dist/sophia-BJdevZpo.js +1 -0
  105. package/dist/sparql-v4dsLpAQ.js +1 -0
  106. package/dist/sql-RAt0uxGh.js +1 -0
  107. package/dist/st-CjwpLApO.js +1 -0
  108. package/dist/swift-BcIVfYEa.js +3 -0
  109. package/dist/systemverilog-CX2A8v2w.js +1 -0
  110. package/dist/tcl-CCvdS1Ng.js +1 -0
  111. package/dist/ts.worker-wrapper.d.ts +0 -0
  112. package/dist/ts.worker.js +67706 -0
  113. package/dist/tsMode-CieVaThB.js +11 -0
  114. package/dist/{tsMode-CfGJAg8A.mjs → tsMode-pbVGEqHg.mjs} +1 -1
  115. package/dist/twig-KWJe-gee.js +1 -0
  116. package/dist/{typescript-BkqvjzTg.mjs → typescript-CL7lZGgL.mjs} +1 -1
  117. package/dist/typescript-D-fgoGBJ.js +1 -0
  118. package/dist/typespec-gb5rMy4D.js +1 -0
  119. package/dist/vb-D2rfixXK.js +1 -0
  120. package/dist/wgsl-Dpy8Oyoq.js +298 -0
  121. package/dist/worker-wrapper.d.ts +0 -0
  122. package/dist/{xml-BE08lKLg.mjs → xml-Dm8zU0Zq.mjs} +1 -1
  123. package/dist/xml-luJ1w-__.js +1 -0
  124. package/dist/{yaml-DaPfb7D4.mjs → yaml-DDKFPb37.mjs} +1 -1
  125. package/dist/yaml-DZkx0RTO.js +1 -0
  126. package/package.json +2 -2
  127. package/dist/assets/editor.worker-iXcRX1Tq.js +0 -26
  128. package/dist/jsonMode-BHf-60PU.mjs +0 -577
  129. package/dist/lspLanguageFeatures-CQ-4g5T6.mjs +0 -1458
  130. package/dist/monaco-editor11.es.js +0 -23
  131. package/dist/monaco-editor11.umd.js +0 -1234
@@ -0,0 +1 @@
1
+ "use strict";var W=Object.defineProperty;var Z=(g,i,l)=>i in g?W(g,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):g[i]=l;var E=(g,i,l)=>Z(g,typeof i!="symbol"?i+"":i,l);class S{constructor(i,l,p,h){this._uri=i,this._languageId=l,this._version=p,this._content=h,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(i){if(i){const l=this.offsetAt(i.start),p=this.offsetAt(i.end);return this._content.substring(l,p)}return this._content}update(i,l){for(let p of i)if(S.isIncremental(p)){const h=F(p.range),d=this.offsetAt(h.start),b=this.offsetAt(h.end);this._content=this._content.substring(0,d)+p.text+this._content.substring(b,this._content.length);const w=Math.max(h.start.line,0),t=Math.max(h.end.line,0);let e=this._lineOffsets;const n=D(p.text,!1,d);if(t-w===n.length)for(let a=0,u=n.length;a<u;a++)e[a+w+1]=n[a];else n.length<1e4?e.splice(w+1,t-w,...n):this._lineOffsets=e=e.slice(0,w+1).concat(n,e.slice(t+1));const s=p.text.length-(b-d);if(s!==0)for(let a=w+1+n.length,u=e.length;a<u;a++)e[a]=e[a]+s}else if(S.isFull(p))this._content=p.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=l}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=D(this._content,!0)),this._lineOffsets}positionAt(i){i=Math.max(Math.min(i,this._content.length),0);let l=this.getLineOffsets(),p=0,h=l.length;if(h===0)return{line:0,character:i};for(;p<h;){let b=Math.floor((p+h)/2);l[b]>i?h=b:p=b+1}let d=p-1;return{line:d,character:i-l[d]}}offsetAt(i){let l=this.getLineOffsets();if(i.line>=l.length)return this._content.length;if(i.line<0)return 0;let p=l[i.line],h=i.line+1<l.length?l[i.line+1]:this._content.length;return Math.max(Math.min(p+i.character,h),p)}get lineCount(){return this.getLineOffsets().length}static isIncremental(i){let l=i;return l!=null&&typeof l.text=="string"&&l.range!==void 0&&(l.rangeLength===void 0||typeof l.rangeLength=="number")}static isFull(i){let l=i;return l!=null&&typeof l.text=="string"&&l.range===void 0&&l.rangeLength===void 0}}exports.TextDocument=void 0;(function(g){function i(h,d,b,w){return new S(h,d,b,w)}g.create=i;function l(h,d,b){if(h instanceof S)return h.update(d,b),h;throw new Error("TextDocument.update: document must be created by TextDocument.create")}g.update=l;function p(h,d){let b=h.getText(),w=k(d.map(G),(n,s)=>{let a=n.range.start.line-s.range.start.line;return a===0?n.range.start.character-s.range.start.character:a}),t=0;const e=[];for(const n of w){let s=h.offsetAt(n.range.start);if(s<t)throw new Error("Overlapping edit");s>t&&e.push(b.substring(t,s)),n.newText.length&&e.push(n.newText),t=h.offsetAt(n.range.end)}return e.push(b.substr(t)),e.join("")}g.applyEdits=p})(exports.TextDocument||(exports.TextDocument={}));function k(g,i){if(g.length<=1)return g;const l=g.length/2|0,p=g.slice(0,l),h=g.slice(l);k(p,i),k(h,i);let d=0,b=0,w=0;for(;d<p.length&&b<h.length;)i(p[d],h[b])<=0?g[w++]=p[d++]:g[w++]=h[b++];for(;d<p.length;)g[w++]=p[d++];for(;b<h.length;)g[w++]=h[b++];return g}function D(g,i,l=0){const p=i?[l]:[];for(let h=0;h<g.length;h++){let d=g.charCodeAt(h);(d===13||d===10)&&(d===13&&h+1<g.length&&g.charCodeAt(h+1)===10&&h++,p.push(l+h+1))}return p}function F(g){const i=g.start,l=g.end;return i.line>l.line||i.line===l.line&&i.character>l.character?{start:l,end:i}:g}function G(g){const i=F(g.range);return i!==g.range?{newText:g.newText,range:i}:g}function J(...g){const i=g[0];let l,p,h;if(typeof i=="string")l=i,p=i,g.splice(0,1),h=!g||typeof g[0]!="object"?g:g[0];else if(i instanceof Array){const d=g.slice(1);if(i.length!==d.length+1)throw new Error("expected a string as the first argument to l10n.t");let b=i[0];for(let w=1;w<i.length;w++)b+=`{${w-1}}`+i[w];return J(b,...d)}else p=i.message,l=p,i.comment&&i.comment.length>0&&(l+=`/${Array.isArray(i.comment)?i.comment.join(""):i.comment}`),h=i.args??{};return K(p,h)}var H=/{([^}]+)}/g;function K(g,i){return Object.keys(i).length===0?g:g.replace(H,(l,p)=>i[p]??l)}var N;(()=>{var g={470:h=>{function d(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function b(t,e){for(var n,s="",a=0,u=-1,m=0,y=0;y<=t.length;++y){if(y<t.length)n=t.charCodeAt(y);else{if(n===47)break;n=47}if(n===47){if(!(u===y-1||m===1))if(u!==y-1&&m===2){if(s.length<2||a!==2||s.charCodeAt(s.length-1)!==46||s.charCodeAt(s.length-2)!==46){if(s.length>2){var _=s.lastIndexOf("/");if(_!==s.length-1){_===-1?(s="",a=0):a=(s=s.slice(0,_)).length-1-s.lastIndexOf("/"),u=y,m=0;continue}}else if(s.length===2||s.length===1){s="",a=0,u=y,m=0;continue}}e&&(s.length>0?s+="/..":s="..",a=2)}else s.length>0?s+="/"+t.slice(u+1,y):s=t.slice(u+1,y),a=y-u-1;u=y,m=0}else n===46&&m!==-1?++m:m=-1}return s}var w={resolve:function(){for(var t,e="",n=!1,s=arguments.length-1;s>=-1&&!n;s--){var a;s>=0?a=arguments[s]:(t===void 0&&(t=process.cwd()),a=t),d(a),a.length!==0&&(e=a+"/"+e,n=a.charCodeAt(0)===47)}return e=b(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(t){if(d(t),t.length===0)return".";var e=t.charCodeAt(0)===47,n=t.charCodeAt(t.length-1)===47;return(t=b(t,!e)).length!==0||e||(t="."),t.length>0&&n&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return d(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,e=0;e<arguments.length;++e){var n=arguments[e];d(n),n.length>0&&(t===void 0?t=n:t+="/"+n)}return t===void 0?".":w.normalize(t)},relative:function(t,e){if(d(t),d(e),t===e||(t=w.resolve(t))===(e=w.resolve(e)))return"";for(var n=1;n<t.length&&t.charCodeAt(n)===47;++n);for(var s=t.length,a=s-n,u=1;u<e.length&&e.charCodeAt(u)===47;++u);for(var m=e.length-u,y=a<m?a:m,_=-1,C=0;C<=y;++C){if(C===y){if(m>y){if(e.charCodeAt(u+C)===47)return e.slice(u+C+1);if(C===0)return e.slice(u+C)}else a>y&&(t.charCodeAt(n+C)===47?_=C:C===0&&(_=0));break}var P=t.charCodeAt(n+C);if(P!==e.charCodeAt(u+C))break;P===47&&(_=C)}var j="";for(C=n+_+1;C<=s;++C)C!==s&&t.charCodeAt(C)!==47||(j.length===0?j+="..":j+="/..");return j.length>0?j+e.slice(u+_):(u+=_,e.charCodeAt(u)===47&&++u,e.slice(u))},_makeLong:function(t){return t},dirname:function(t){if(d(t),t.length===0)return".";for(var e=t.charCodeAt(0),n=e===47,s=-1,a=!0,u=t.length-1;u>=1;--u)if((e=t.charCodeAt(u))===47){if(!a){s=u;break}}else a=!1;return s===-1?n?"/":".":n&&s===1?"//":t.slice(0,s)},basename:function(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');d(t);var n,s=0,a=-1,u=!0;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var m=e.length-1,y=-1;for(n=t.length-1;n>=0;--n){var _=t.charCodeAt(n);if(_===47){if(!u){s=n+1;break}}else y===-1&&(u=!1,y=n+1),m>=0&&(_===e.charCodeAt(m)?--m==-1&&(a=n):(m=-1,a=y))}return s===a?a=y:a===-1&&(a=t.length),t.slice(s,a)}for(n=t.length-1;n>=0;--n)if(t.charCodeAt(n)===47){if(!u){s=n+1;break}}else a===-1&&(u=!1,a=n+1);return a===-1?"":t.slice(s,a)},extname:function(t){d(t);for(var e=-1,n=0,s=-1,a=!0,u=0,m=t.length-1;m>=0;--m){var y=t.charCodeAt(m);if(y!==47)s===-1&&(a=!1,s=m+1),y===46?e===-1?e=m:u!==1&&(u=1):e!==-1&&(u=-1);else if(!a){n=m+1;break}}return e===-1||s===-1||u===0||u===1&&e===s-1&&e===n+1?"":t.slice(e,s)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return(function(e,n){var s=n.dir||n.root,a=n.base||(n.name||"")+(n.ext||"");return s?s===n.root?s+a:s+"/"+a:a})(0,t)},parse:function(t){d(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;var n,s=t.charCodeAt(0),a=s===47;a?(e.root="/",n=1):n=0;for(var u=-1,m=0,y=-1,_=!0,C=t.length-1,P=0;C>=n;--C)if((s=t.charCodeAt(C))!==47)y===-1&&(_=!1,y=C+1),s===46?u===-1?u=C:P!==1&&(P=1):u!==-1&&(P=-1);else if(!_){m=C+1;break}return u===-1||y===-1||P===0||P===1&&u===y-1&&u===m+1?y!==-1&&(e.base=e.name=m===0&&a?t.slice(1,y):t.slice(m,y)):(m===0&&a?(e.name=t.slice(1,u),e.base=t.slice(1,y)):(e.name=t.slice(m,u),e.base=t.slice(m,y)),e.ext=t.slice(u,y)),m>0?e.dir=t.slice(0,m-1):a&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};w.posix=w,h.exports=w}},i={};function l(h){var d=i[h];if(d!==void 0)return d.exports;var b=i[h]={exports:{}};return g[h](b,b.exports,l),b.exports}l.d=(h,d)=>{for(var b in d)l.o(d,b)&&!l.o(h,b)&&Object.defineProperty(h,b,{enumerable:!0,get:d[b]})},l.o=(h,d)=>Object.prototype.hasOwnProperty.call(h,d),l.r=h=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})};var p={};(()=>{let h;l.r(p),l.d(p,{URI:()=>a,Utils:()=>R}),typeof process=="object"?h=process.platform==="win32":typeof navigator=="object"&&(h=navigator.userAgent.indexOf("Windows")>=0);const d=/^\w[\w\d+.-]*$/,b=/^\//,w=/^\/\//;function t(f,r){if(!f.scheme&&r)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${f.authority}", path: "${f.path}", query: "${f.query}", fragment: "${f.fragment}"}`);if(f.scheme&&!d.test(f.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(f.path){if(f.authority){if(!b.test(f.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(w.test(f.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const e="",n="/",s=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class a{constructor(r,o,c,x,A,v=!1){E(this,"scheme");E(this,"authority");E(this,"path");E(this,"query");E(this,"fragment");typeof r=="object"?(this.scheme=r.scheme||e,this.authority=r.authority||e,this.path=r.path||e,this.query=r.query||e,this.fragment=r.fragment||e):(this.scheme=(function(U,I){return U||I?U:"file"})(r,v),this.authority=o||e,this.path=(function(U,I){switch(U){case"https":case"http":case"file":I?I[0]!==n&&(I=n+I):I=n}return I})(this.scheme,c||e),this.query=x||e,this.fragment=A||e,t(this,v))}static isUri(r){return r instanceof a||!!r&&typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="string"&&typeof r.with=="function"&&typeof r.toString=="function"}get fsPath(){return P(this)}with(r){if(!r)return this;let{scheme:o,authority:c,path:x,query:A,fragment:v}=r;return o===void 0?o=this.scheme:o===null&&(o=e),c===void 0?c=this.authority:c===null&&(c=e),x===void 0?x=this.path:x===null&&(x=e),A===void 0?A=this.query:A===null&&(A=e),v===void 0?v=this.fragment:v===null&&(v=e),o===this.scheme&&c===this.authority&&x===this.path&&A===this.query&&v===this.fragment?this:new m(o,c,x,A,v)}static parse(r,o=!1){const c=s.exec(r);return c?new m(c[2]||e,q(c[4]||e),q(c[5]||e),q(c[7]||e),q(c[9]||e),o):new m(e,e,e,e,e)}static file(r){let o=e;if(h&&(r=r.replace(/\\/g,n)),r[0]===n&&r[1]===n){const c=r.indexOf(n,2);c===-1?(o=r.substring(2),r=n):(o=r.substring(2,c),r=r.substring(c)||n)}return new m("file",o,r,e,e)}static from(r){const o=new m(r.scheme,r.authority,r.path,r.query,r.fragment);return t(o,!0),o}toString(r=!1){return j(this,r)}toJSON(){return this}static revive(r){if(r){if(r instanceof a)return r;{const o=new m(r);return o._formatted=r.external,o._fsPath=r._sep===u?r.fsPath:null,o}}return r}}const u=h?1:void 0;class m extends a{constructor(){super(...arguments);E(this,"_formatted",null);E(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=P(this)),this._fsPath}toString(o=!1){return o?j(this,!0):(this._formatted||(this._formatted=j(this,!1)),this._formatted)}toJSON(){const o={$mid:1};return this._fsPath&&(o.fsPath=this._fsPath,o._sep=u),this._formatted&&(o.external=this._formatted),this.path&&(o.path=this.path),this.scheme&&(o.scheme=this.scheme),this.authority&&(o.authority=this.authority),this.query&&(o.query=this.query),this.fragment&&(o.fragment=this.fragment),o}}const y={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,r,o){let c,x=-1;for(let A=0;A<f.length;A++){const v=f.charCodeAt(A);if(v>=97&&v<=122||v>=65&&v<=90||v>=48&&v<=57||v===45||v===46||v===95||v===126||r&&v===47||o&&v===91||o&&v===93||o&&v===58)x!==-1&&(c+=encodeURIComponent(f.substring(x,A)),x=-1),c!==void 0&&(c+=f.charAt(A));else{c===void 0&&(c=f.substr(0,A));const U=y[v];U!==void 0?(x!==-1&&(c+=encodeURIComponent(f.substring(x,A)),x=-1),c+=U):x===-1&&(x=A)}}return x!==-1&&(c+=encodeURIComponent(f.substring(x))),c!==void 0?c:f}function C(f){let r;for(let o=0;o<f.length;o++){const c=f.charCodeAt(o);c===35||c===63?(r===void 0&&(r=f.substr(0,o)),r+=y[c]):r!==void 0&&(r+=f[o])}return r!==void 0?r:f}function P(f,r){let o;return o=f.authority&&f.path.length>1&&f.scheme==="file"?`//${f.authority}${f.path}`:f.path.charCodeAt(0)===47&&(f.path.charCodeAt(1)>=65&&f.path.charCodeAt(1)<=90||f.path.charCodeAt(1)>=97&&f.path.charCodeAt(1)<=122)&&f.path.charCodeAt(2)===58?f.path[1].toLowerCase()+f.path.substr(2):f.path,h&&(o=o.replace(/\//g,"\\")),o}function j(f,r){const o=r?C:_;let c="",{scheme:x,authority:A,path:v,query:U,fragment:I}=f;if(x&&(c+=x,c+=":"),(A||x==="file")&&(c+=n,c+=n),A){let O=A.indexOf("@");if(O!==-1){const $=A.substr(0,O);A=A.substr(O+1),O=$.lastIndexOf(":"),O===-1?c+=o($,!1,!1):(c+=o($.substr(0,O),!1,!1),c+=":",c+=o($.substr(O+1),!1,!0)),c+="@"}A=A.toLowerCase(),O=A.lastIndexOf(":"),O===-1?c+=o(A,!1,!0):(c+=o(A.substr(0,O),!1,!0),c+=A.substr(O))}if(v){if(v.length>=3&&v.charCodeAt(0)===47&&v.charCodeAt(2)===58){const O=v.charCodeAt(1);O>=65&&O<=90&&(v=`/${String.fromCharCode(O+32)}:${v.substr(3)}`)}else if(v.length>=2&&v.charCodeAt(1)===58){const O=v.charCodeAt(0);O>=65&&O<=90&&(v=`${String.fromCharCode(O+32)}:${v.substr(2)}`)}c+=o(v,!0,!1)}return U&&(c+="?",c+=o(U,!1,!1)),I&&(c+="#",c+=r?I:_(I,!1,!1)),c}function M(f){try{return decodeURIComponent(f)}catch{return f.length>3?f.substr(0,3)+M(f.substr(3)):f}}const z=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function q(f){return f.match(z)?f.replace(z,(r=>M(r))):f}var B=l(470);const L=B.posix||B,T="/";var R;(function(f){f.joinPath=function(r,...o){return r.with({path:L.join(r.path,...o)})},f.resolvePath=function(r,...o){let c=r.path,x=!1;c[0]!==T&&(c=T+c,x=!0);let A=L.resolve(c,...o);return x&&A[0]===T&&!r.authority&&(A=A.substring(1)),r.with({path:A})},f.dirname=function(r){if(r.path.length===0||r.path===T)return r;let o=L.dirname(r.path);return o.length===1&&o.charCodeAt(0)===46&&(o=""),r.with({path:o})},f.basename=function(r){return L.basename(r.path)},f.extname=function(r){return L.extname(r.path)}})(R||(R={}))})(),N=p})();const{URI:Q,Utils:V}=N;exports.URI=Q;exports.Utils=V;exports.t=J;
@@ -0,0 +1,498 @@
1
+ var D = Object.defineProperty;
2
+ var Z = (g, i, l) => i in g ? D(g, i, { enumerable: !0, configurable: !0, writable: !0, value: l }) : g[i] = l;
3
+ var E = (g, i, l) => Z(g, typeof i != "symbol" ? i + "" : i, l);
4
+ class S {
5
+ constructor(i, l, p, h) {
6
+ this._uri = i, this._languageId = l, this._version = p, this._content = h, this._lineOffsets = void 0;
7
+ }
8
+ get uri() {
9
+ return this._uri;
10
+ }
11
+ get languageId() {
12
+ return this._languageId;
13
+ }
14
+ get version() {
15
+ return this._version;
16
+ }
17
+ getText(i) {
18
+ if (i) {
19
+ const l = this.offsetAt(i.start), p = this.offsetAt(i.end);
20
+ return this._content.substring(l, p);
21
+ }
22
+ return this._content;
23
+ }
24
+ update(i, l) {
25
+ for (let p of i)
26
+ if (S.isIncremental(p)) {
27
+ const h = N(p.range), d = this.offsetAt(h.start), b = this.offsetAt(h.end);
28
+ this._content = this._content.substring(0, d) + p.text + this._content.substring(b, this._content.length);
29
+ const w = Math.max(h.start.line, 0), t = Math.max(h.end.line, 0);
30
+ let e = this._lineOffsets;
31
+ const n = J(p.text, !1, d);
32
+ if (t - w === n.length)
33
+ for (let a = 0, u = n.length; a < u; a++)
34
+ e[a + w + 1] = n[a];
35
+ else
36
+ n.length < 1e4 ? e.splice(w + 1, t - w, ...n) : this._lineOffsets = e = e.slice(0, w + 1).concat(n, e.slice(t + 1));
37
+ const s = p.text.length - (b - d);
38
+ if (s !== 0)
39
+ for (let a = w + 1 + n.length, u = e.length; a < u; a++)
40
+ e[a] = e[a] + s;
41
+ } else if (S.isFull(p))
42
+ this._content = p.text, this._lineOffsets = void 0;
43
+ else
44
+ throw new Error("Unknown change event received");
45
+ this._version = l;
46
+ }
47
+ getLineOffsets() {
48
+ return this._lineOffsets === void 0 && (this._lineOffsets = J(this._content, !0)), this._lineOffsets;
49
+ }
50
+ positionAt(i) {
51
+ i = Math.max(Math.min(i, this._content.length), 0);
52
+ let l = this.getLineOffsets(), p = 0, h = l.length;
53
+ if (h === 0)
54
+ return { line: 0, character: i };
55
+ for (; p < h; ) {
56
+ let b = Math.floor((p + h) / 2);
57
+ l[b] > i ? h = b : p = b + 1;
58
+ }
59
+ let d = p - 1;
60
+ return { line: d, character: i - l[d] };
61
+ }
62
+ offsetAt(i) {
63
+ let l = this.getLineOffsets();
64
+ if (i.line >= l.length)
65
+ return this._content.length;
66
+ if (i.line < 0)
67
+ return 0;
68
+ let p = l[i.line], h = i.line + 1 < l.length ? l[i.line + 1] : this._content.length;
69
+ return Math.max(Math.min(p + i.character, h), p);
70
+ }
71
+ get lineCount() {
72
+ return this.getLineOffsets().length;
73
+ }
74
+ static isIncremental(i) {
75
+ let l = i;
76
+ return l != null && typeof l.text == "string" && l.range !== void 0 && (l.rangeLength === void 0 || typeof l.rangeLength == "number");
77
+ }
78
+ static isFull(i) {
79
+ let l = i;
80
+ return l != null && typeof l.text == "string" && l.range === void 0 && l.rangeLength === void 0;
81
+ }
82
+ }
83
+ var F;
84
+ (function(g) {
85
+ function i(h, d, b, w) {
86
+ return new S(h, d, b, w);
87
+ }
88
+ g.create = i;
89
+ function l(h, d, b) {
90
+ if (h instanceof S)
91
+ return h.update(d, b), h;
92
+ throw new Error("TextDocument.update: document must be created by TextDocument.create");
93
+ }
94
+ g.update = l;
95
+ function p(h, d) {
96
+ let b = h.getText(), w = R(d.map(G), (n, s) => {
97
+ let a = n.range.start.line - s.range.start.line;
98
+ return a === 0 ? n.range.start.character - s.range.start.character : a;
99
+ }), t = 0;
100
+ const e = [];
101
+ for (const n of w) {
102
+ let s = h.offsetAt(n.range.start);
103
+ if (s < t)
104
+ throw new Error("Overlapping edit");
105
+ s > t && e.push(b.substring(t, s)), n.newText.length && e.push(n.newText), t = h.offsetAt(n.range.end);
106
+ }
107
+ return e.push(b.substr(t)), e.join("");
108
+ }
109
+ g.applyEdits = p;
110
+ })(F || (F = {}));
111
+ function R(g, i) {
112
+ if (g.length <= 1)
113
+ return g;
114
+ const l = g.length / 2 | 0, p = g.slice(0, l), h = g.slice(l);
115
+ R(p, i), R(h, i);
116
+ let d = 0, b = 0, w = 0;
117
+ for (; d < p.length && b < h.length; )
118
+ i(p[d], h[b]) <= 0 ? g[w++] = p[d++] : g[w++] = h[b++];
119
+ for (; d < p.length; )
120
+ g[w++] = p[d++];
121
+ for (; b < h.length; )
122
+ g[w++] = h[b++];
123
+ return g;
124
+ }
125
+ function J(g, i, l = 0) {
126
+ const p = i ? [l] : [];
127
+ for (let h = 0; h < g.length; h++) {
128
+ let d = g.charCodeAt(h);
129
+ (d === 13 || d === 10) && (d === 13 && h + 1 < g.length && g.charCodeAt(h + 1) === 10 && h++, p.push(l + h + 1));
130
+ }
131
+ return p;
132
+ }
133
+ function N(g) {
134
+ const i = g.start, l = g.end;
135
+ return i.line > l.line || i.line === l.line && i.character > l.character ? { start: l, end: i } : g;
136
+ }
137
+ function G(g) {
138
+ const i = N(g.range);
139
+ return i !== g.range ? { newText: g.newText, range: i } : g;
140
+ }
141
+ function H(...g) {
142
+ const i = g[0];
143
+ let l, p, h;
144
+ if (typeof i == "string")
145
+ l = i, p = i, g.splice(0, 1), h = !g || typeof g[0] != "object" ? g : g[0];
146
+ else if (i instanceof Array) {
147
+ const d = g.slice(1);
148
+ if (i.length !== d.length + 1)
149
+ throw new Error("expected a string as the first argument to l10n.t");
150
+ let b = i[0];
151
+ for (let w = 1; w < i.length; w++)
152
+ b += `{${w - 1}}` + i[w];
153
+ return H(b, ...d);
154
+ } else
155
+ p = i.message, l = p, i.comment && i.comment.length > 0 && (l += `/${Array.isArray(i.comment) ? i.comment.join("") : i.comment}`), h = i.args ?? {};
156
+ return Q(p, h);
157
+ }
158
+ var K = /{([^}]+)}/g;
159
+ function Q(g, i) {
160
+ return Object.keys(i).length === 0 ? g : g.replace(K, (l, p) => i[p] ?? l);
161
+ }
162
+ var W;
163
+ (() => {
164
+ var g = { 470: (h) => {
165
+ function d(t) {
166
+ if (typeof t != "string") throw new TypeError("Path must be a string. Received " + JSON.stringify(t));
167
+ }
168
+ function b(t, e) {
169
+ for (var n, s = "", a = 0, u = -1, m = 0, y = 0; y <= t.length; ++y) {
170
+ if (y < t.length) n = t.charCodeAt(y);
171
+ else {
172
+ if (n === 47) break;
173
+ n = 47;
174
+ }
175
+ if (n === 47) {
176
+ if (!(u === y - 1 || m === 1)) if (u !== y - 1 && m === 2) {
177
+ if (s.length < 2 || a !== 2 || s.charCodeAt(s.length - 1) !== 46 || s.charCodeAt(s.length - 2) !== 46) {
178
+ if (s.length > 2) {
179
+ var _ = s.lastIndexOf("/");
180
+ if (_ !== s.length - 1) {
181
+ _ === -1 ? (s = "", a = 0) : a = (s = s.slice(0, _)).length - 1 - s.lastIndexOf("/"), u = y, m = 0;
182
+ continue;
183
+ }
184
+ } else if (s.length === 2 || s.length === 1) {
185
+ s = "", a = 0, u = y, m = 0;
186
+ continue;
187
+ }
188
+ }
189
+ e && (s.length > 0 ? s += "/.." : s = "..", a = 2);
190
+ } else s.length > 0 ? s += "/" + t.slice(u + 1, y) : s = t.slice(u + 1, y), a = y - u - 1;
191
+ u = y, m = 0;
192
+ } else n === 46 && m !== -1 ? ++m : m = -1;
193
+ }
194
+ return s;
195
+ }
196
+ var w = { resolve: function() {
197
+ for (var t, e = "", n = !1, s = arguments.length - 1; s >= -1 && !n; s--) {
198
+ var a;
199
+ s >= 0 ? a = arguments[s] : (t === void 0 && (t = process.cwd()), a = t), d(a), a.length !== 0 && (e = a + "/" + e, n = a.charCodeAt(0) === 47);
200
+ }
201
+ return e = b(e, !n), n ? e.length > 0 ? "/" + e : "/" : e.length > 0 ? e : ".";
202
+ }, normalize: function(t) {
203
+ if (d(t), t.length === 0) return ".";
204
+ var e = t.charCodeAt(0) === 47, n = t.charCodeAt(t.length - 1) === 47;
205
+ return (t = b(t, !e)).length !== 0 || e || (t = "."), t.length > 0 && n && (t += "/"), e ? "/" + t : t;
206
+ }, isAbsolute: function(t) {
207
+ return d(t), t.length > 0 && t.charCodeAt(0) === 47;
208
+ }, join: function() {
209
+ if (arguments.length === 0) return ".";
210
+ for (var t, e = 0; e < arguments.length; ++e) {
211
+ var n = arguments[e];
212
+ d(n), n.length > 0 && (t === void 0 ? t = n : t += "/" + n);
213
+ }
214
+ return t === void 0 ? "." : w.normalize(t);
215
+ }, relative: function(t, e) {
216
+ if (d(t), d(e), t === e || (t = w.resolve(t)) === (e = w.resolve(e))) return "";
217
+ for (var n = 1; n < t.length && t.charCodeAt(n) === 47; ++n) ;
218
+ for (var s = t.length, a = s - n, u = 1; u < e.length && e.charCodeAt(u) === 47; ++u) ;
219
+ for (var m = e.length - u, y = a < m ? a : m, _ = -1, C = 0; C <= y; ++C) {
220
+ if (C === y) {
221
+ if (m > y) {
222
+ if (e.charCodeAt(u + C) === 47) return e.slice(u + C + 1);
223
+ if (C === 0) return e.slice(u + C);
224
+ } else a > y && (t.charCodeAt(n + C) === 47 ? _ = C : C === 0 && (_ = 0));
225
+ break;
226
+ }
227
+ var P = t.charCodeAt(n + C);
228
+ if (P !== e.charCodeAt(u + C)) break;
229
+ P === 47 && (_ = C);
230
+ }
231
+ var U = "";
232
+ for (C = n + _ + 1; C <= s; ++C) C !== s && t.charCodeAt(C) !== 47 || (U.length === 0 ? U += ".." : U += "/..");
233
+ return U.length > 0 ? U + e.slice(u + _) : (u += _, e.charCodeAt(u) === 47 && ++u, e.slice(u));
234
+ }, _makeLong: function(t) {
235
+ return t;
236
+ }, dirname: function(t) {
237
+ if (d(t), t.length === 0) return ".";
238
+ for (var e = t.charCodeAt(0), n = e === 47, s = -1, a = !0, u = t.length - 1; u >= 1; --u) if ((e = t.charCodeAt(u)) === 47) {
239
+ if (!a) {
240
+ s = u;
241
+ break;
242
+ }
243
+ } else a = !1;
244
+ return s === -1 ? n ? "/" : "." : n && s === 1 ? "//" : t.slice(0, s);
245
+ }, basename: function(t, e) {
246
+ if (e !== void 0 && typeof e != "string") throw new TypeError('"ext" argument must be a string');
247
+ d(t);
248
+ var n, s = 0, a = -1, u = !0;
249
+ if (e !== void 0 && e.length > 0 && e.length <= t.length) {
250
+ if (e.length === t.length && e === t) return "";
251
+ var m = e.length - 1, y = -1;
252
+ for (n = t.length - 1; n >= 0; --n) {
253
+ var _ = t.charCodeAt(n);
254
+ if (_ === 47) {
255
+ if (!u) {
256
+ s = n + 1;
257
+ break;
258
+ }
259
+ } else y === -1 && (u = !1, y = n + 1), m >= 0 && (_ === e.charCodeAt(m) ? --m == -1 && (a = n) : (m = -1, a = y));
260
+ }
261
+ return s === a ? a = y : a === -1 && (a = t.length), t.slice(s, a);
262
+ }
263
+ for (n = t.length - 1; n >= 0; --n) if (t.charCodeAt(n) === 47) {
264
+ if (!u) {
265
+ s = n + 1;
266
+ break;
267
+ }
268
+ } else a === -1 && (u = !1, a = n + 1);
269
+ return a === -1 ? "" : t.slice(s, a);
270
+ }, extname: function(t) {
271
+ d(t);
272
+ for (var e = -1, n = 0, s = -1, a = !0, u = 0, m = t.length - 1; m >= 0; --m) {
273
+ var y = t.charCodeAt(m);
274
+ if (y !== 47) s === -1 && (a = !1, s = m + 1), y === 46 ? e === -1 ? e = m : u !== 1 && (u = 1) : e !== -1 && (u = -1);
275
+ else if (!a) {
276
+ n = m + 1;
277
+ break;
278
+ }
279
+ }
280
+ return e === -1 || s === -1 || u === 0 || u === 1 && e === s - 1 && e === n + 1 ? "" : t.slice(e, s);
281
+ }, format: function(t) {
282
+ if (t === null || typeof t != "object") throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t);
283
+ return (function(e, n) {
284
+ var s = n.dir || n.root, a = n.base || (n.name || "") + (n.ext || "");
285
+ return s ? s === n.root ? s + a : s + "/" + a : a;
286
+ })(0, t);
287
+ }, parse: function(t) {
288
+ d(t);
289
+ var e = { root: "", dir: "", base: "", ext: "", name: "" };
290
+ if (t.length === 0) return e;
291
+ var n, s = t.charCodeAt(0), a = s === 47;
292
+ a ? (e.root = "/", n = 1) : n = 0;
293
+ for (var u = -1, m = 0, y = -1, _ = !0, C = t.length - 1, P = 0; C >= n; --C) if ((s = t.charCodeAt(C)) !== 47) y === -1 && (_ = !1, y = C + 1), s === 46 ? u === -1 ? u = C : P !== 1 && (P = 1) : u !== -1 && (P = -1);
294
+ else if (!_) {
295
+ m = C + 1;
296
+ break;
297
+ }
298
+ return u === -1 || y === -1 || P === 0 || P === 1 && u === y - 1 && u === m + 1 ? y !== -1 && (e.base = e.name = m === 0 && a ? t.slice(1, y) : t.slice(m, y)) : (m === 0 && a ? (e.name = t.slice(1, u), e.base = t.slice(1, y)) : (e.name = t.slice(m, u), e.base = t.slice(m, y)), e.ext = t.slice(u, y)), m > 0 ? e.dir = t.slice(0, m - 1) : a && (e.dir = "/"), e;
299
+ }, sep: "/", delimiter: ":", win32: null, posix: null };
300
+ w.posix = w, h.exports = w;
301
+ } }, i = {};
302
+ function l(h) {
303
+ var d = i[h];
304
+ if (d !== void 0) return d.exports;
305
+ var b = i[h] = { exports: {} };
306
+ return g[h](b, b.exports, l), b.exports;
307
+ }
308
+ l.d = (h, d) => {
309
+ for (var b in d) l.o(d, b) && !l.o(h, b) && Object.defineProperty(h, b, { enumerable: !0, get: d[b] });
310
+ }, l.o = (h, d) => Object.prototype.hasOwnProperty.call(h, d), l.r = (h) => {
311
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(h, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(h, "__esModule", { value: !0 });
312
+ };
313
+ var p = {};
314
+ (() => {
315
+ let h;
316
+ l.r(p), l.d(p, { URI: () => a, Utils: () => k }), typeof process == "object" ? h = process.platform === "win32" : typeof navigator == "object" && (h = navigator.userAgent.indexOf("Windows") >= 0);
317
+ const d = /^\w[\w\d+.-]*$/, b = /^\//, w = /^\/\//;
318
+ function t(f, r) {
319
+ if (!f.scheme && r) throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${f.authority}", path: "${f.path}", query: "${f.query}", fragment: "${f.fragment}"}`);
320
+ if (f.scheme && !d.test(f.scheme)) throw new Error("[UriError]: Scheme contains illegal characters.");
321
+ if (f.path) {
322
+ if (f.authority) {
323
+ if (!b.test(f.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');
324
+ } else if (w.test(f.path)) throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")');
325
+ }
326
+ }
327
+ const e = "", n = "/", s = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
328
+ class a {
329
+ constructor(r, o, c, x, A, v = !1) {
330
+ E(this, "scheme");
331
+ E(this, "authority");
332
+ E(this, "path");
333
+ E(this, "query");
334
+ E(this, "fragment");
335
+ typeof r == "object" ? (this.scheme = r.scheme || e, this.authority = r.authority || e, this.path = r.path || e, this.query = r.query || e, this.fragment = r.fragment || e) : (this.scheme = /* @__PURE__ */ (function(j, I) {
336
+ return j || I ? j : "file";
337
+ })(r, v), this.authority = o || e, this.path = (function(j, I) {
338
+ switch (j) {
339
+ case "https":
340
+ case "http":
341
+ case "file":
342
+ I ? I[0] !== n && (I = n + I) : I = n;
343
+ }
344
+ return I;
345
+ })(this.scheme, c || e), this.query = x || e, this.fragment = A || e, t(this, v));
346
+ }
347
+ static isUri(r) {
348
+ return r instanceof a || !!r && typeof r.authority == "string" && typeof r.fragment == "string" && typeof r.path == "string" && typeof r.query == "string" && typeof r.scheme == "string" && typeof r.fsPath == "string" && typeof r.with == "function" && typeof r.toString == "function";
349
+ }
350
+ get fsPath() {
351
+ return P(this);
352
+ }
353
+ with(r) {
354
+ if (!r) return this;
355
+ let { scheme: o, authority: c, path: x, query: A, fragment: v } = r;
356
+ return o === void 0 ? o = this.scheme : o === null && (o = e), c === void 0 ? c = this.authority : c === null && (c = e), x === void 0 ? x = this.path : x === null && (x = e), A === void 0 ? A = this.query : A === null && (A = e), v === void 0 ? v = this.fragment : v === null && (v = e), o === this.scheme && c === this.authority && x === this.path && A === this.query && v === this.fragment ? this : new m(o, c, x, A, v);
357
+ }
358
+ static parse(r, o = !1) {
359
+ const c = s.exec(r);
360
+ return c ? new m(c[2] || e, q(c[4] || e), q(c[5] || e), q(c[7] || e), q(c[9] || e), o) : new m(e, e, e, e, e);
361
+ }
362
+ static file(r) {
363
+ let o = e;
364
+ if (h && (r = r.replace(/\\/g, n)), r[0] === n && r[1] === n) {
365
+ const c = r.indexOf(n, 2);
366
+ c === -1 ? (o = r.substring(2), r = n) : (o = r.substring(2, c), r = r.substring(c) || n);
367
+ }
368
+ return new m("file", o, r, e, e);
369
+ }
370
+ static from(r) {
371
+ const o = new m(r.scheme, r.authority, r.path, r.query, r.fragment);
372
+ return t(o, !0), o;
373
+ }
374
+ toString(r = !1) {
375
+ return U(this, r);
376
+ }
377
+ toJSON() {
378
+ return this;
379
+ }
380
+ static revive(r) {
381
+ if (r) {
382
+ if (r instanceof a) return r;
383
+ {
384
+ const o = new m(r);
385
+ return o._formatted = r.external, o._fsPath = r._sep === u ? r.fsPath : null, o;
386
+ }
387
+ }
388
+ return r;
389
+ }
390
+ }
391
+ const u = h ? 1 : void 0;
392
+ class m extends a {
393
+ constructor() {
394
+ super(...arguments);
395
+ E(this, "_formatted", null);
396
+ E(this, "_fsPath", null);
397
+ }
398
+ get fsPath() {
399
+ return this._fsPath || (this._fsPath = P(this)), this._fsPath;
400
+ }
401
+ toString(o = !1) {
402
+ return o ? U(this, !0) : (this._formatted || (this._formatted = U(this, !1)), this._formatted);
403
+ }
404
+ toJSON() {
405
+ const o = { $mid: 1 };
406
+ return this._fsPath && (o.fsPath = this._fsPath, o._sep = u), this._formatted && (o.external = this._formatted), this.path && (o.path = this.path), this.scheme && (o.scheme = this.scheme), this.authority && (o.authority = this.authority), this.query && (o.query = this.query), this.fragment && (o.fragment = this.fragment), o;
407
+ }
408
+ }
409
+ const y = { 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" };
410
+ function _(f, r, o) {
411
+ let c, x = -1;
412
+ for (let A = 0; A < f.length; A++) {
413
+ const v = f.charCodeAt(A);
414
+ if (v >= 97 && v <= 122 || v >= 65 && v <= 90 || v >= 48 && v <= 57 || v === 45 || v === 46 || v === 95 || v === 126 || r && v === 47 || o && v === 91 || o && v === 93 || o && v === 58) x !== -1 && (c += encodeURIComponent(f.substring(x, A)), x = -1), c !== void 0 && (c += f.charAt(A));
415
+ else {
416
+ c === void 0 && (c = f.substr(0, A));
417
+ const j = y[v];
418
+ j !== void 0 ? (x !== -1 && (c += encodeURIComponent(f.substring(x, A)), x = -1), c += j) : x === -1 && (x = A);
419
+ }
420
+ }
421
+ return x !== -1 && (c += encodeURIComponent(f.substring(x))), c !== void 0 ? c : f;
422
+ }
423
+ function C(f) {
424
+ let r;
425
+ for (let o = 0; o < f.length; o++) {
426
+ const c = f.charCodeAt(o);
427
+ c === 35 || c === 63 ? (r === void 0 && (r = f.substr(0, o)), r += y[c]) : r !== void 0 && (r += f[o]);
428
+ }
429
+ return r !== void 0 ? r : f;
430
+ }
431
+ function P(f, r) {
432
+ let o;
433
+ return o = f.authority && f.path.length > 1 && f.scheme === "file" ? `//${f.authority}${f.path}` : f.path.charCodeAt(0) === 47 && (f.path.charCodeAt(1) >= 65 && f.path.charCodeAt(1) <= 90 || f.path.charCodeAt(1) >= 97 && f.path.charCodeAt(1) <= 122) && f.path.charCodeAt(2) === 58 ? f.path[1].toLowerCase() + f.path.substr(2) : f.path, h && (o = o.replace(/\//g, "\\")), o;
434
+ }
435
+ function U(f, r) {
436
+ const o = r ? C : _;
437
+ let c = "", { scheme: x, authority: A, path: v, query: j, fragment: I } = f;
438
+ if (x && (c += x, c += ":"), (A || x === "file") && (c += n, c += n), A) {
439
+ let O = A.indexOf("@");
440
+ if (O !== -1) {
441
+ const T = A.substr(0, O);
442
+ A = A.substr(O + 1), O = T.lastIndexOf(":"), O === -1 ? c += o(T, !1, !1) : (c += o(T.substr(0, O), !1, !1), c += ":", c += o(T.substr(O + 1), !1, !0)), c += "@";
443
+ }
444
+ A = A.toLowerCase(), O = A.lastIndexOf(":"), O === -1 ? c += o(A, !1, !0) : (c += o(A.substr(0, O), !1, !0), c += A.substr(O));
445
+ }
446
+ if (v) {
447
+ if (v.length >= 3 && v.charCodeAt(0) === 47 && v.charCodeAt(2) === 58) {
448
+ const O = v.charCodeAt(1);
449
+ O >= 65 && O <= 90 && (v = `/${String.fromCharCode(O + 32)}:${v.substr(3)}`);
450
+ } else if (v.length >= 2 && v.charCodeAt(1) === 58) {
451
+ const O = v.charCodeAt(0);
452
+ O >= 65 && O <= 90 && (v = `${String.fromCharCode(O + 32)}:${v.substr(2)}`);
453
+ }
454
+ c += o(v, !0, !1);
455
+ }
456
+ return j && (c += "?", c += o(j, !1, !1)), I && (c += "#", c += r ? I : _(I, !1, !1)), c;
457
+ }
458
+ function M(f) {
459
+ try {
460
+ return decodeURIComponent(f);
461
+ } catch {
462
+ return f.length > 3 ? f.substr(0, 3) + M(f.substr(3)) : f;
463
+ }
464
+ }
465
+ const z = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
466
+ function q(f) {
467
+ return f.match(z) ? f.replace(z, ((r) => M(r))) : f;
468
+ }
469
+ var B = l(470);
470
+ const L = B.posix || B, $ = "/";
471
+ var k;
472
+ (function(f) {
473
+ f.joinPath = function(r, ...o) {
474
+ return r.with({ path: L.join(r.path, ...o) });
475
+ }, f.resolvePath = function(r, ...o) {
476
+ let c = r.path, x = !1;
477
+ c[0] !== $ && (c = $ + c, x = !0);
478
+ let A = L.resolve(c, ...o);
479
+ return x && A[0] === $ && !r.authority && (A = A.substring(1)), r.with({ path: A });
480
+ }, f.dirname = function(r) {
481
+ if (r.path.length === 0 || r.path === $) return r;
482
+ let o = L.dirname(r.path);
483
+ return o.length === 1 && o.charCodeAt(0) === 46 && (o = ""), r.with({ path: o });
484
+ }, f.basename = function(r) {
485
+ return L.basename(r.path);
486
+ }, f.extname = function(r) {
487
+ return L.extname(r.path);
488
+ };
489
+ })(k || (k = {}));
490
+ })(), W = p;
491
+ })();
492
+ const { URI: X, Utils: Y } = W;
493
+ export {
494
+ F as T,
495
+ X as U,
496
+ Y as a,
497
+ H as t
498
+ };