modern-monaco 0.0.0-beta.0 → 0.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1157,7 +1157,7 @@ function format2(documentText, range, options) {
1157
1157
  return format(documentText, range, options);
1158
1158
  }
1159
1159
 
1160
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/utils/objects.js
1160
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/utils/objects.js
1161
1161
  function equals(one, other) {
1162
1162
  if (one === other) {
1163
1163
  return true;
@@ -1222,7 +1222,7 @@ function isObject(val) {
1222
1222
  return typeof val === "object" && val !== null && !Array.isArray(val);
1223
1223
  }
1224
1224
 
1225
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/utils/strings.js
1225
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/utils/strings.js
1226
1226
  function startsWith(haystack, needle) {
1227
1227
  if (haystack.length < needle.length) {
1228
1228
  return false;
@@ -2679,7 +2679,7 @@ function getWellformedEdit(textEdit) {
2679
2679
  return textEdit;
2680
2680
  }
2681
2681
 
2682
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageTypes.js
2682
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageTypes.js
2683
2683
  var ErrorCode;
2684
2684
  (function(ErrorCode2) {
2685
2685
  ErrorCode2[ErrorCode2["Undefined"] = 0] = "Undefined";
@@ -2728,6 +2728,341 @@ var ClientCapabilities;
2728
2728
  };
2729
2729
  })(ClientCapabilities || (ClientCapabilities = {}));
2730
2730
 
2731
+ // node_modules/.pnpm/vscode-uri@3.1.0/node_modules/vscode-uri/lib/esm/index.mjs
2732
+ var LIB;
2733
+ (() => {
2734
+ "use strict";
2735
+ var t2 = { 975: (t3) => {
2736
+ function e2(t4) {
2737
+ if ("string" != typeof t4) throw new TypeError("Path must be a string. Received " + JSON.stringify(t4));
2738
+ }
2739
+ function r2(t4, e3) {
2740
+ for (var r3, n3 = "", i2 = 0, o2 = -1, s2 = 0, h2 = 0; h2 <= t4.length; ++h2) {
2741
+ if (h2 < t4.length) r3 = t4.charCodeAt(h2);
2742
+ else {
2743
+ if (47 === r3) break;
2744
+ r3 = 47;
2745
+ }
2746
+ if (47 === r3) {
2747
+ if (o2 === h2 - 1 || 1 === s2) ;
2748
+ else if (o2 !== h2 - 1 && 2 === s2) {
2749
+ if (n3.length < 2 || 2 !== i2 || 46 !== n3.charCodeAt(n3.length - 1) || 46 !== n3.charCodeAt(n3.length - 2)) {
2750
+ if (n3.length > 2) {
2751
+ var a3 = n3.lastIndexOf("/");
2752
+ if (a3 !== n3.length - 1) {
2753
+ -1 === a3 ? (n3 = "", i2 = 0) : i2 = (n3 = n3.slice(0, a3)).length - 1 - n3.lastIndexOf("/"), o2 = h2, s2 = 0;
2754
+ continue;
2755
+ }
2756
+ } else if (2 === n3.length || 1 === n3.length) {
2757
+ n3 = "", i2 = 0, o2 = h2, s2 = 0;
2758
+ continue;
2759
+ }
2760
+ }
2761
+ e3 && (n3.length > 0 ? n3 += "/.." : n3 = "..", i2 = 2);
2762
+ } else n3.length > 0 ? n3 += "/" + t4.slice(o2 + 1, h2) : n3 = t4.slice(o2 + 1, h2), i2 = h2 - o2 - 1;
2763
+ o2 = h2, s2 = 0;
2764
+ } else 46 === r3 && -1 !== s2 ? ++s2 : s2 = -1;
2765
+ }
2766
+ return n3;
2767
+ }
2768
+ var n2 = { resolve: function() {
2769
+ for (var t4, n3 = "", i2 = false, o2 = arguments.length - 1; o2 >= -1 && !i2; o2--) {
2770
+ var s2;
2771
+ o2 >= 0 ? s2 = arguments[o2] : (void 0 === t4 && (t4 = process.cwd()), s2 = t4), e2(s2), 0 !== s2.length && (n3 = s2 + "/" + n3, i2 = 47 === s2.charCodeAt(0));
2772
+ }
2773
+ return n3 = r2(n3, !i2), i2 ? n3.length > 0 ? "/" + n3 : "/" : n3.length > 0 ? n3 : ".";
2774
+ }, normalize: function(t4) {
2775
+ if (e2(t4), 0 === t4.length) return ".";
2776
+ var n3 = 47 === t4.charCodeAt(0), i2 = 47 === t4.charCodeAt(t4.length - 1);
2777
+ return 0 !== (t4 = r2(t4, !n3)).length || n3 || (t4 = "."), t4.length > 0 && i2 && (t4 += "/"), n3 ? "/" + t4 : t4;
2778
+ }, isAbsolute: function(t4) {
2779
+ return e2(t4), t4.length > 0 && 47 === t4.charCodeAt(0);
2780
+ }, join: function() {
2781
+ if (0 === arguments.length) return ".";
2782
+ for (var t4, r3 = 0; r3 < arguments.length; ++r3) {
2783
+ var i2 = arguments[r3];
2784
+ e2(i2), i2.length > 0 && (void 0 === t4 ? t4 = i2 : t4 += "/" + i2);
2785
+ }
2786
+ return void 0 === t4 ? "." : n2.normalize(t4);
2787
+ }, relative: function(t4, r3) {
2788
+ if (e2(t4), e2(r3), t4 === r3) return "";
2789
+ if ((t4 = n2.resolve(t4)) === (r3 = n2.resolve(r3))) return "";
2790
+ for (var i2 = 1; i2 < t4.length && 47 === t4.charCodeAt(i2); ++i2) ;
2791
+ for (var o2 = t4.length, s2 = o2 - i2, h2 = 1; h2 < r3.length && 47 === r3.charCodeAt(h2); ++h2) ;
2792
+ for (var a3 = r3.length - h2, c2 = s2 < a3 ? s2 : a3, f3 = -1, u2 = 0; u2 <= c2; ++u2) {
2793
+ if (u2 === c2) {
2794
+ if (a3 > c2) {
2795
+ if (47 === r3.charCodeAt(h2 + u2)) return r3.slice(h2 + u2 + 1);
2796
+ if (0 === u2) return r3.slice(h2 + u2);
2797
+ } else s2 > c2 && (47 === t4.charCodeAt(i2 + u2) ? f3 = u2 : 0 === u2 && (f3 = 0));
2798
+ break;
2799
+ }
2800
+ var l2 = t4.charCodeAt(i2 + u2);
2801
+ if (l2 !== r3.charCodeAt(h2 + u2)) break;
2802
+ 47 === l2 && (f3 = u2);
2803
+ }
2804
+ var g2 = "";
2805
+ for (u2 = i2 + f3 + 1; u2 <= o2; ++u2) u2 !== o2 && 47 !== t4.charCodeAt(u2) || (0 === g2.length ? g2 += ".." : g2 += "/..");
2806
+ return g2.length > 0 ? g2 + r3.slice(h2 + f3) : (h2 += f3, 47 === r3.charCodeAt(h2) && ++h2, r3.slice(h2));
2807
+ }, _makeLong: function(t4) {
2808
+ return t4;
2809
+ }, dirname: function(t4) {
2810
+ if (e2(t4), 0 === t4.length) return ".";
2811
+ for (var r3 = t4.charCodeAt(0), n3 = 47 === r3, i2 = -1, o2 = true, s2 = t4.length - 1; s2 >= 1; --s2) if (47 === (r3 = t4.charCodeAt(s2))) {
2812
+ if (!o2) {
2813
+ i2 = s2;
2814
+ break;
2815
+ }
2816
+ } else o2 = false;
2817
+ return -1 === i2 ? n3 ? "/" : "." : n3 && 1 === i2 ? "//" : t4.slice(0, i2);
2818
+ }, basename: function(t4, r3) {
2819
+ if (void 0 !== r3 && "string" != typeof r3) throw new TypeError('"ext" argument must be a string');
2820
+ e2(t4);
2821
+ var n3, i2 = 0, o2 = -1, s2 = true;
2822
+ if (void 0 !== r3 && r3.length > 0 && r3.length <= t4.length) {
2823
+ if (r3.length === t4.length && r3 === t4) return "";
2824
+ var h2 = r3.length - 1, a3 = -1;
2825
+ for (n3 = t4.length - 1; n3 >= 0; --n3) {
2826
+ var c2 = t4.charCodeAt(n3);
2827
+ if (47 === c2) {
2828
+ if (!s2) {
2829
+ i2 = n3 + 1;
2830
+ break;
2831
+ }
2832
+ } else -1 === a3 && (s2 = false, a3 = n3 + 1), h2 >= 0 && (c2 === r3.charCodeAt(h2) ? -1 == --h2 && (o2 = n3) : (h2 = -1, o2 = a3));
2833
+ }
2834
+ return i2 === o2 ? o2 = a3 : -1 === o2 && (o2 = t4.length), t4.slice(i2, o2);
2835
+ }
2836
+ for (n3 = t4.length - 1; n3 >= 0; --n3) if (47 === t4.charCodeAt(n3)) {
2837
+ if (!s2) {
2838
+ i2 = n3 + 1;
2839
+ break;
2840
+ }
2841
+ } else -1 === o2 && (s2 = false, o2 = n3 + 1);
2842
+ return -1 === o2 ? "" : t4.slice(i2, o2);
2843
+ }, extname: function(t4) {
2844
+ e2(t4);
2845
+ for (var r3 = -1, n3 = 0, i2 = -1, o2 = true, s2 = 0, h2 = t4.length - 1; h2 >= 0; --h2) {
2846
+ var a3 = t4.charCodeAt(h2);
2847
+ if (47 !== a3) -1 === i2 && (o2 = false, i2 = h2 + 1), 46 === a3 ? -1 === r3 ? r3 = h2 : 1 !== s2 && (s2 = 1) : -1 !== r3 && (s2 = -1);
2848
+ else if (!o2) {
2849
+ n3 = h2 + 1;
2850
+ break;
2851
+ }
2852
+ }
2853
+ return -1 === r3 || -1 === i2 || 0 === s2 || 1 === s2 && r3 === i2 - 1 && r3 === n3 + 1 ? "" : t4.slice(r3, i2);
2854
+ }, format: function(t4) {
2855
+ if (null === t4 || "object" != typeof t4) throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t4);
2856
+ return function(t5, e3) {
2857
+ var r3 = e3.dir || e3.root, n3 = e3.base || (e3.name || "") + (e3.ext || "");
2858
+ return r3 ? r3 === e3.root ? r3 + n3 : r3 + "/" + n3 : n3;
2859
+ }(0, t4);
2860
+ }, parse: function(t4) {
2861
+ e2(t4);
2862
+ var r3 = { root: "", dir: "", base: "", ext: "", name: "" };
2863
+ if (0 === t4.length) return r3;
2864
+ var n3, i2 = t4.charCodeAt(0), o2 = 47 === i2;
2865
+ o2 ? (r3.root = "/", n3 = 1) : n3 = 0;
2866
+ for (var s2 = -1, h2 = 0, a3 = -1, c2 = true, f3 = t4.length - 1, u2 = 0; f3 >= n3; --f3) if (47 !== (i2 = t4.charCodeAt(f3))) -1 === a3 && (c2 = false, a3 = f3 + 1), 46 === i2 ? -1 === s2 ? s2 = f3 : 1 !== u2 && (u2 = 1) : -1 !== s2 && (u2 = -1);
2867
+ else if (!c2) {
2868
+ h2 = f3 + 1;
2869
+ break;
2870
+ }
2871
+ return -1 === s2 || -1 === a3 || 0 === u2 || 1 === u2 && s2 === a3 - 1 && s2 === h2 + 1 ? -1 !== a3 && (r3.base = r3.name = 0 === h2 && o2 ? t4.slice(1, a3) : t4.slice(h2, a3)) : (0 === h2 && o2 ? (r3.name = t4.slice(1, s2), r3.base = t4.slice(1, a3)) : (r3.name = t4.slice(h2, s2), r3.base = t4.slice(h2, a3)), r3.ext = t4.slice(s2, a3)), h2 > 0 ? r3.dir = t4.slice(0, h2 - 1) : o2 && (r3.dir = "/"), r3;
2872
+ }, sep: "/", delimiter: ":", win32: null, posix: null };
2873
+ n2.posix = n2, t3.exports = n2;
2874
+ } }, e = {};
2875
+ function r(n2) {
2876
+ var i2 = e[n2];
2877
+ if (void 0 !== i2) return i2.exports;
2878
+ var o2 = e[n2] = { exports: {} };
2879
+ return t2[n2](o2, o2.exports, r), o2.exports;
2880
+ }
2881
+ r.d = (t3, e2) => {
2882
+ for (var n2 in e2) r.o(e2, n2) && !r.o(t3, n2) && Object.defineProperty(t3, n2, { enumerable: true, get: e2[n2] });
2883
+ }, r.o = (t3, e2) => Object.prototype.hasOwnProperty.call(t3, e2), r.r = (t3) => {
2884
+ "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t3, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t3, "__esModule", { value: true });
2885
+ };
2886
+ var n = {};
2887
+ let i;
2888
+ if (r.r(n), r.d(n, { URI: () => l, Utils: () => I }), "object" == typeof process) i = "win32" === process.platform;
2889
+ else if ("object" == typeof navigator) {
2890
+ let t3 = navigator.userAgent;
2891
+ i = t3.indexOf("Windows") >= 0;
2892
+ }
2893
+ const o = /^\w[\w\d+.-]*$/, s = /^\//, h = /^\/\//;
2894
+ function a2(t3, e2) {
2895
+ if (!t3.scheme && e2) throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t3.authority}", path: "${t3.path}", query: "${t3.query}", fragment: "${t3.fragment}"}`);
2896
+ if (t3.scheme && !o.test(t3.scheme)) throw new Error("[UriError]: Scheme contains illegal characters.");
2897
+ if (t3.path) {
2898
+ if (t3.authority) {
2899
+ if (!s.test(t3.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');
2900
+ } else if (h.test(t3.path)) throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")');
2901
+ }
2902
+ }
2903
+ const c = "", f2 = "/", u = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
2904
+ class l {
2905
+ static isUri(t3) {
2906
+ return t3 instanceof l || !!t3 && "string" == typeof t3.authority && "string" == typeof t3.fragment && "string" == typeof t3.path && "string" == typeof t3.query && "string" == typeof t3.scheme && "string" == typeof t3.fsPath && "function" == typeof t3.with && "function" == typeof t3.toString;
2907
+ }
2908
+ scheme;
2909
+ authority;
2910
+ path;
2911
+ query;
2912
+ fragment;
2913
+ constructor(t3, e2, r2, n2, i2, o2 = false) {
2914
+ "object" == typeof t3 ? (this.scheme = t3.scheme || c, this.authority = t3.authority || c, this.path = t3.path || c, this.query = t3.query || c, this.fragment = t3.fragment || c) : (this.scheme = /* @__PURE__ */ function(t4, e3) {
2915
+ return t4 || e3 ? t4 : "file";
2916
+ }(t3, o2), this.authority = e2 || c, this.path = function(t4, e3) {
2917
+ switch (t4) {
2918
+ case "https":
2919
+ case "http":
2920
+ case "file":
2921
+ e3 ? e3[0] !== f2 && (e3 = f2 + e3) : e3 = f2;
2922
+ }
2923
+ return e3;
2924
+ }(this.scheme, r2 || c), this.query = n2 || c, this.fragment = i2 || c, a2(this, o2));
2925
+ }
2926
+ get fsPath() {
2927
+ return v(this, false);
2928
+ }
2929
+ with(t3) {
2930
+ if (!t3) return this;
2931
+ let { scheme: e2, authority: r2, path: n2, query: i2, fragment: o2 } = t3;
2932
+ return void 0 === e2 ? e2 = this.scheme : null === e2 && (e2 = c), void 0 === r2 ? r2 = this.authority : null === r2 && (r2 = c), void 0 === n2 ? n2 = this.path : null === n2 && (n2 = c), void 0 === i2 ? i2 = this.query : null === i2 && (i2 = c), void 0 === o2 ? o2 = this.fragment : null === o2 && (o2 = c), e2 === this.scheme && r2 === this.authority && n2 === this.path && i2 === this.query && o2 === this.fragment ? this : new d(e2, r2, n2, i2, o2);
2933
+ }
2934
+ static parse(t3, e2 = false) {
2935
+ const r2 = u.exec(t3);
2936
+ return r2 ? new d(r2[2] || c, w(r2[4] || c), w(r2[5] || c), w(r2[7] || c), w(r2[9] || c), e2) : new d(c, c, c, c, c);
2937
+ }
2938
+ static file(t3) {
2939
+ let e2 = c;
2940
+ if (i && (t3 = t3.replace(/\\/g, f2)), t3[0] === f2 && t3[1] === f2) {
2941
+ const r2 = t3.indexOf(f2, 2);
2942
+ -1 === r2 ? (e2 = t3.substring(2), t3 = f2) : (e2 = t3.substring(2, r2), t3 = t3.substring(r2) || f2);
2943
+ }
2944
+ return new d("file", e2, t3, c, c);
2945
+ }
2946
+ static from(t3) {
2947
+ const e2 = new d(t3.scheme, t3.authority, t3.path, t3.query, t3.fragment);
2948
+ return a2(e2, true), e2;
2949
+ }
2950
+ toString(t3 = false) {
2951
+ return b(this, t3);
2952
+ }
2953
+ toJSON() {
2954
+ return this;
2955
+ }
2956
+ static revive(t3) {
2957
+ if (t3) {
2958
+ if (t3 instanceof l) return t3;
2959
+ {
2960
+ const e2 = new d(t3);
2961
+ return e2._formatted = t3.external, e2._fsPath = t3._sep === g ? t3.fsPath : null, e2;
2962
+ }
2963
+ }
2964
+ return t3;
2965
+ }
2966
+ }
2967
+ const g = i ? 1 : void 0;
2968
+ class d extends l {
2969
+ _formatted = null;
2970
+ _fsPath = null;
2971
+ get fsPath() {
2972
+ return this._fsPath || (this._fsPath = v(this, false)), this._fsPath;
2973
+ }
2974
+ toString(t3 = false) {
2975
+ return t3 ? b(this, true) : (this._formatted || (this._formatted = b(this, false)), this._formatted);
2976
+ }
2977
+ toJSON() {
2978
+ const t3 = { $mid: 1 };
2979
+ return this._fsPath && (t3.fsPath = this._fsPath, t3._sep = g), this._formatted && (t3.external = this._formatted), this.path && (t3.path = this.path), this.scheme && (t3.scheme = this.scheme), this.authority && (t3.authority = this.authority), this.query && (t3.query = this.query), this.fragment && (t3.fragment = this.fragment), t3;
2980
+ }
2981
+ }
2982
+ const p = { 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" };
2983
+ function m(t3, e2, r2) {
2984
+ let n2, i2 = -1;
2985
+ for (let o2 = 0; o2 < t3.length; o2++) {
2986
+ const s2 = t3.charCodeAt(o2);
2987
+ if (s2 >= 97 && s2 <= 122 || s2 >= 65 && s2 <= 90 || s2 >= 48 && s2 <= 57 || 45 === s2 || 46 === s2 || 95 === s2 || 126 === s2 || e2 && 47 === s2 || r2 && 91 === s2 || r2 && 93 === s2 || r2 && 58 === s2) -1 !== i2 && (n2 += encodeURIComponent(t3.substring(i2, o2)), i2 = -1), void 0 !== n2 && (n2 += t3.charAt(o2));
2988
+ else {
2989
+ void 0 === n2 && (n2 = t3.substr(0, o2));
2990
+ const e3 = p[s2];
2991
+ void 0 !== e3 ? (-1 !== i2 && (n2 += encodeURIComponent(t3.substring(i2, o2)), i2 = -1), n2 += e3) : -1 === i2 && (i2 = o2);
2992
+ }
2993
+ }
2994
+ return -1 !== i2 && (n2 += encodeURIComponent(t3.substring(i2))), void 0 !== n2 ? n2 : t3;
2995
+ }
2996
+ function y(t3) {
2997
+ let e2;
2998
+ for (let r2 = 0; r2 < t3.length; r2++) {
2999
+ const n2 = t3.charCodeAt(r2);
3000
+ 35 === n2 || 63 === n2 ? (void 0 === e2 && (e2 = t3.substr(0, r2)), e2 += p[n2]) : void 0 !== e2 && (e2 += t3[r2]);
3001
+ }
3002
+ return void 0 !== e2 ? e2 : t3;
3003
+ }
3004
+ function v(t3, e2) {
3005
+ let r2;
3006
+ return r2 = t3.authority && t3.path.length > 1 && "file" === t3.scheme ? `//${t3.authority}${t3.path}` : 47 === t3.path.charCodeAt(0) && (t3.path.charCodeAt(1) >= 65 && t3.path.charCodeAt(1) <= 90 || t3.path.charCodeAt(1) >= 97 && t3.path.charCodeAt(1) <= 122) && 58 === t3.path.charCodeAt(2) ? e2 ? t3.path.substr(1) : t3.path[1].toLowerCase() + t3.path.substr(2) : t3.path, i && (r2 = r2.replace(/\//g, "\\")), r2;
3007
+ }
3008
+ function b(t3, e2) {
3009
+ const r2 = e2 ? y : m;
3010
+ let n2 = "", { scheme: i2, authority: o2, path: s2, query: h2, fragment: a3 } = t3;
3011
+ if (i2 && (n2 += i2, n2 += ":"), (o2 || "file" === i2) && (n2 += f2, n2 += f2), o2) {
3012
+ let t4 = o2.indexOf("@");
3013
+ if (-1 !== t4) {
3014
+ const e3 = o2.substr(0, t4);
3015
+ o2 = o2.substr(t4 + 1), t4 = e3.lastIndexOf(":"), -1 === t4 ? n2 += r2(e3, false, false) : (n2 += r2(e3.substr(0, t4), false, false), n2 += ":", n2 += r2(e3.substr(t4 + 1), false, true)), n2 += "@";
3016
+ }
3017
+ o2 = o2.toLowerCase(), t4 = o2.lastIndexOf(":"), -1 === t4 ? n2 += r2(o2, false, true) : (n2 += r2(o2.substr(0, t4), false, true), n2 += o2.substr(t4));
3018
+ }
3019
+ if (s2) {
3020
+ if (s2.length >= 3 && 47 === s2.charCodeAt(0) && 58 === s2.charCodeAt(2)) {
3021
+ const t4 = s2.charCodeAt(1);
3022
+ t4 >= 65 && t4 <= 90 && (s2 = `/${String.fromCharCode(t4 + 32)}:${s2.substr(3)}`);
3023
+ } else if (s2.length >= 2 && 58 === s2.charCodeAt(1)) {
3024
+ const t4 = s2.charCodeAt(0);
3025
+ t4 >= 65 && t4 <= 90 && (s2 = `${String.fromCharCode(t4 + 32)}:${s2.substr(2)}`);
3026
+ }
3027
+ n2 += r2(s2, true, false);
3028
+ }
3029
+ return h2 && (n2 += "?", n2 += r2(h2, false, false)), a3 && (n2 += "#", n2 += e2 ? a3 : m(a3, false, false)), n2;
3030
+ }
3031
+ function C(t3) {
3032
+ try {
3033
+ return decodeURIComponent(t3);
3034
+ } catch {
3035
+ return t3.length > 3 ? t3.substr(0, 3) + C(t3.substr(3)) : t3;
3036
+ }
3037
+ }
3038
+ const A2 = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
3039
+ function w(t3) {
3040
+ return t3.match(A2) ? t3.replace(A2, (t4) => C(t4)) : t3;
3041
+ }
3042
+ var x = r(975);
3043
+ const P = x.posix || x, _ = "/";
3044
+ var I;
3045
+ !function(t3) {
3046
+ t3.joinPath = function(t4, ...e2) {
3047
+ return t4.with({ path: P.join(t4.path, ...e2) });
3048
+ }, t3.resolvePath = function(t4, ...e2) {
3049
+ let r2 = t4.path, n2 = false;
3050
+ r2[0] !== _ && (r2 = _ + r2, n2 = true);
3051
+ let i2 = P.resolve(r2, ...e2);
3052
+ return n2 && i2[0] === _ && !t4.authority && (i2 = i2.substring(1)), t4.with({ path: i2 });
3053
+ }, t3.dirname = function(t4) {
3054
+ if (0 === t4.path.length || t4.path === _) return t4;
3055
+ let e2 = P.dirname(t4.path);
3056
+ return 1 === e2.length && 46 === e2.charCodeAt(0) && (e2 = ""), t4.with({ path: e2 });
3057
+ }, t3.basename = function(t4) {
3058
+ return P.basename(t4.path);
3059
+ }, t3.extname = function(t4) {
3060
+ return P.extname(t4.path);
3061
+ };
3062
+ }(I || (I = {})), LIB = n;
3063
+ })();
3064
+ var { URI: URI2, Utils } = LIB;
3065
+
2731
3066
  // node_modules/.pnpm/@vscode+l10n@0.0.18/node_modules/@vscode/l10n/dist/browser.js
2732
3067
  var bundle;
2733
3068
  function t(...args) {
@@ -2778,7 +3113,7 @@ function format3(template, values) {
2778
3113
  return template.replace(_format2Regexp, (match, group) => values[group] ?? match);
2779
3114
  }
2780
3115
 
2781
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/parser/jsonParser.js
3116
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/parser/jsonParser.js
2782
3117
  var formats = {
2783
3118
  "color-hex": { errorMessage: t("Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."), pattern: /^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/ },
2784
3119
  "date-time": { errorMessage: t("String is not a RFC3339 date-time."), pattern: /^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i },
@@ -2873,11 +3208,26 @@ var EnumMatch;
2873
3208
  EnumMatch2[EnumMatch2["Key"] = 0] = "Key";
2874
3209
  EnumMatch2[EnumMatch2["Enum"] = 1] = "Enum";
2875
3210
  })(EnumMatch || (EnumMatch = {}));
3211
+ var httpPrefix = `http://json-schema.org/`;
3212
+ var httpsPrefix = `https://json-schema.org/`;
3213
+ function normalizeId(id) {
3214
+ if (id.startsWith(httpPrefix)) {
3215
+ id = httpsPrefix + id.substring(httpPrefix.length);
3216
+ }
3217
+ try {
3218
+ return URI2.parse(id).toString(true);
3219
+ } catch (e) {
3220
+ return id;
3221
+ }
3222
+ }
3223
+ function getSchemaDraftFromId(schemaId) {
3224
+ return schemaDraftFromId[normalizeId(schemaId)] ?? void 0;
3225
+ }
2876
3226
  var schemaDraftFromId = {
2877
- "http://json-schema.org/draft-03/schema#": SchemaDraft.v3,
2878
- "http://json-schema.org/draft-04/schema#": SchemaDraft.v4,
2879
- "http://json-schema.org/draft-06/schema#": SchemaDraft.v6,
2880
- "http://json-schema.org/draft-07/schema#": SchemaDraft.v7,
3227
+ "https://json-schema.org/draft-03/schema": SchemaDraft.v3,
3228
+ "https://json-schema.org/draft-04/schema": SchemaDraft.v4,
3229
+ "https://json-schema.org/draft-06/schema": SchemaDraft.v6,
3230
+ "https://json-schema.org/draft-07/schema": SchemaDraft.v7,
2881
3231
  "https://json-schema.org/draft/2019-09/schema": SchemaDraft.v2019_09,
2882
3232
  "https://json-schema.org/draft/2020-12/schema": SchemaDraft.v2020_12
2883
3233
  };
@@ -2986,8 +3336,8 @@ var ValidationResult = class {
2986
3336
  return this.propertiesMatches - other.propertiesMatches;
2987
3337
  }
2988
3338
  };
2989
- function newJSONDocument(root, diagnostics = []) {
2990
- return new JSONDocument(root, diagnostics, []);
3339
+ function newJSONDocument(root, diagnostics = [], comments = []) {
3340
+ return new JSONDocument(root, diagnostics, comments);
2991
3341
  }
2992
3342
  function getNodeValue3(node) {
2993
3343
  return getNodeValue2(node);
@@ -3050,7 +3400,7 @@ var JSONDocument = class {
3050
3400
  function getSchemaDraft(schema, fallBack = SchemaDraft.v2020_12) {
3051
3401
  let schemaId = schema.$schema;
3052
3402
  if (schemaId) {
3053
- return schemaDraftFromId[schemaId] ?? fallBack;
3403
+ return getSchemaDraftFromId(schemaId) ?? fallBack;
3054
3404
  }
3055
3405
  return fallBack;
3056
3406
  }
@@ -3335,7 +3685,7 @@ function validate(n, schema, validationResult, matchingSchemas, context) {
3335
3685
  }
3336
3686
  if (isString(schema.pattern)) {
3337
3687
  const regex = extendedRegExp(schema.pattern);
3338
- if (!regex?.test(node2.value)) {
3688
+ if (regex && !regex.test(node2.value)) {
3339
3689
  validationResult.problems.push({
3340
3690
  location: { offset: node2.offset, length: node2.length },
3341
3691
  message: schema.patternErrorMessage || schema.errorMessage || t('String does not match the pattern of "{0}".', schema.pattern)
@@ -4003,7 +4353,7 @@ function parse3(textDocument, config) {
4003
4353
  return new JSONDocument(_root, problems, commentRanges);
4004
4354
  }
4005
4355
 
4006
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/utils/json.js
4356
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/utils/json.js
4007
4357
  function stringifyObject(obj, indent, stringifyLiteral) {
4008
4358
  if (obj !== null && typeof obj === "object") {
4009
4359
  const newIndent = indent + " ";
@@ -4042,7 +4392,7 @@ function stringifyObject(obj, indent, stringifyLiteral) {
4042
4392
  return stringifyLiteral(obj);
4043
4393
  }
4044
4394
 
4045
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/services/jsonCompletion.js
4395
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/services/jsonCompletion.js
4046
4396
  var valueCommitCharacters = [",", "}", "]"];
4047
4397
  var propertyCommitCharacters = [":"];
4048
4398
  var JSONCompletion = class {
@@ -4247,21 +4597,17 @@ var JSONCompletion = class {
4247
4597
  }
4248
4598
  const schemaPropertyNames = s.schema.propertyNames;
4249
4599
  if (typeof schemaPropertyNames === "object" && !schemaPropertyNames.deprecationMessage && !schemaPropertyNames.doNotSuggest) {
4250
- const propertyNameCompletionItem = (name, enumDescription = void 0) => {
4600
+ const propertyNameCompletionItem = (name, documentation, detail, sortText) => {
4251
4601
  const proposal = {
4252
4602
  kind: CompletionItemKind.Property,
4253
4603
  label: name,
4254
4604
  insertText: this.getInsertTextForProperty(name, void 0, addValue, separatorAfter),
4255
4605
  insertTextFormat: InsertTextFormat.Snippet,
4256
4606
  filterText: this.getFilterTextForValue(name),
4257
- documentation: enumDescription || this.fromMarkup(schemaPropertyNames.markdownDescription) || schemaPropertyNames.description || ""
4607
+ documentation: documentation || this.fromMarkup(schemaPropertyNames.markdownDescription) || schemaPropertyNames.description || "",
4608
+ sortText,
4609
+ detail
4258
4610
  };
4259
- if (schemaPropertyNames.completionDetail !== void 0) {
4260
- proposal.detail = schemaPropertyNames.completionDetail;
4261
- }
4262
- if (schemaPropertyNames.suggestSortText !== void 0) {
4263
- proposal.sortText = schemaPropertyNames.suggestSortText;
4264
- }
4265
4611
  if (proposal.insertText && endsWith(proposal.insertText, `$1${separatorAfter}`)) {
4266
4612
  proposal.command = {
4267
4613
  title: "Suggest",
@@ -4278,11 +4624,13 @@ var JSONCompletion = class {
4278
4624
  } else if (schemaPropertyNames.enumDescriptions && i < schemaPropertyNames.enumDescriptions.length) {
4279
4625
  enumDescription = schemaPropertyNames.enumDescriptions[i];
4280
4626
  }
4281
- propertyNameCompletionItem(schemaPropertyNames.enum[i], enumDescription);
4627
+ const enumSortText = schemaPropertyNames.enumSortTexts?.[i];
4628
+ const enumDetails = schemaPropertyNames.enumDetails?.[i];
4629
+ propertyNameCompletionItem(schemaPropertyNames.enum[i], enumDescription, enumDetails, enumSortText);
4282
4630
  }
4283
4631
  }
4284
4632
  if (schemaPropertyNames.const) {
4285
- propertyNameCompletionItem(schemaPropertyNames.const);
4633
+ propertyNameCompletionItem(schemaPropertyNames.const, void 0, schemaPropertyNames.completionDetail, schemaPropertyNames.suggestSortText);
4286
4634
  }
4287
4635
  }
4288
4636
  }
@@ -4641,6 +4989,8 @@ var JSONCompletion = class {
4641
4989
  label: this.getLabelForValue(enm),
4642
4990
  insertText: this.getInsertTextForValue(enm, separatorAfter),
4643
4991
  insertTextFormat: InsertTextFormat.Snippet,
4992
+ sortText: schema.enumSortTexts?.[i],
4993
+ detail: schema.enumDetails?.[i],
4644
4994
  documentation
4645
4995
  });
4646
4996
  }
@@ -4700,7 +5050,7 @@ var JSONCompletion = class {
4700
5050
  addDollarSchemaCompletions(separatorAfter, collector) {
4701
5051
  const schemaIds = this.schemaService.getRegisteredSchemaIds((schema) => schema === "http" || schema === "https");
4702
5052
  schemaIds.forEach((schemaId) => {
4703
- if (schemaId.startsWith("http://json-schema.org/draft-")) {
5053
+ if (schemaId.startsWith("https://json-schema.org/draft-")) {
4704
5054
  schemaId = schemaId + "#";
4705
5055
  }
4706
5056
  collector.add({
@@ -4971,7 +5321,7 @@ var JSONCompletion = class {
4971
5321
  }
4972
5322
  };
4973
5323
 
4974
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/services/jsonHover.js
5324
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/services/jsonHover.js
4975
5325
  var JSONHover = class {
4976
5326
  constructor(schemaService, contributions = [], promiseConstructor) {
4977
5327
  this.schemaService = schemaService;
@@ -5073,7 +5423,7 @@ function toMarkdownCodeBlock(content) {
5073
5423
  return content;
5074
5424
  }
5075
5425
 
5076
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/services/jsonValidation.js
5426
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/services/jsonValidation.js
5077
5427
  var JSONValidation = class {
5078
5428
  constructor(jsonSchemaService, promiseConstructor) {
5079
5429
  this.jsonSchemaService = jsonSchemaService;
@@ -5218,7 +5568,7 @@ function toDiagnosticSeverity(severityLevel) {
5218
5568
  return void 0;
5219
5569
  }
5220
5570
 
5221
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/utils/colors.js
5571
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/utils/colors.js
5222
5572
  var Digit0 = 48;
5223
5573
  var Digit9 = 57;
5224
5574
  var A = 65;
@@ -5276,7 +5626,7 @@ function colorFromHex(text) {
5276
5626
  return void 0;
5277
5627
  }
5278
5628
 
5279
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/services/jsonDocumentSymbols.js
5629
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/services/jsonDocumentSymbols.js
5280
5630
  var JSONDocumentSymbols = class {
5281
5631
  constructor(schemaService) {
5282
5632
  this.schemaService = schemaService;
@@ -5528,13 +5878,12 @@ function getName(node) {
5528
5878
  return getNodeValue3(node) || t("<empty>");
5529
5879
  }
5530
5880
 
5531
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/services/configuration.js
5881
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/services/configuration.js
5532
5882
  var schemaContributions = {
5533
5883
  schemaAssociations: [],
5534
5884
  schemas: {
5535
5885
  // bundle the schema-schema to include (localized) descriptions
5536
- "http://json-schema.org/draft-04/schema#": {
5537
- "$schema": "http://json-schema.org/draft-04/schema#",
5886
+ "https://json-schema.org/draft-04/schema": {
5538
5887
  "definitions": {
5539
5888
  "schemaArray": {
5540
5889
  "type": "array",
@@ -5816,7 +6165,7 @@ var schemaContributions = {
5816
6165
  },
5817
6166
  "default": {}
5818
6167
  },
5819
- "http://json-schema.org/draft-07/schema#": {
6168
+ "https://json-schema.org/draft-07/schema": {
5820
6169
  "definitions": {
5821
6170
  "schemaArray": {
5822
6171
  "type": "array",
@@ -6045,344 +6394,7 @@ for (const schemaName in schemaContributions.schemas) {
6045
6394
  }
6046
6395
  }
6047
6396
 
6048
- // node_modules/.pnpm/vscode-uri@3.0.8/node_modules/vscode-uri/lib/esm/index.mjs
6049
- var LIB;
6050
- (() => {
6051
- "use strict";
6052
- var t2 = { 470: (t3) => {
6053
- function e2(t4) {
6054
- if ("string" != typeof t4) throw new TypeError("Path must be a string. Received " + JSON.stringify(t4));
6055
- }
6056
- function r2(t4, e3) {
6057
- for (var r3, n3 = "", i = 0, o = -1, s = 0, h = 0; h <= t4.length; ++h) {
6058
- if (h < t4.length) r3 = t4.charCodeAt(h);
6059
- else {
6060
- if (47 === r3) break;
6061
- r3 = 47;
6062
- }
6063
- if (47 === r3) {
6064
- if (o === h - 1 || 1 === s) ;
6065
- else if (o !== h - 1 && 2 === s) {
6066
- if (n3.length < 2 || 2 !== i || 46 !== n3.charCodeAt(n3.length - 1) || 46 !== n3.charCodeAt(n3.length - 2)) {
6067
- if (n3.length > 2) {
6068
- var a2 = n3.lastIndexOf("/");
6069
- if (a2 !== n3.length - 1) {
6070
- -1 === a2 ? (n3 = "", i = 0) : i = (n3 = n3.slice(0, a2)).length - 1 - n3.lastIndexOf("/"), o = h, s = 0;
6071
- continue;
6072
- }
6073
- } else if (2 === n3.length || 1 === n3.length) {
6074
- n3 = "", i = 0, o = h, s = 0;
6075
- continue;
6076
- }
6077
- }
6078
- e3 && (n3.length > 0 ? n3 += "/.." : n3 = "..", i = 2);
6079
- } else n3.length > 0 ? n3 += "/" + t4.slice(o + 1, h) : n3 = t4.slice(o + 1, h), i = h - o - 1;
6080
- o = h, s = 0;
6081
- } else 46 === r3 && -1 !== s ? ++s : s = -1;
6082
- }
6083
- return n3;
6084
- }
6085
- var n2 = { resolve: function() {
6086
- for (var t4, n3 = "", i = false, o = arguments.length - 1; o >= -1 && !i; o--) {
6087
- var s;
6088
- o >= 0 ? s = arguments[o] : (void 0 === t4 && (t4 = process.cwd()), s = t4), e2(s), 0 !== s.length && (n3 = s + "/" + n3, i = 47 === s.charCodeAt(0));
6089
- }
6090
- return n3 = r2(n3, !i), i ? n3.length > 0 ? "/" + n3 : "/" : n3.length > 0 ? n3 : ".";
6091
- }, normalize: function(t4) {
6092
- if (e2(t4), 0 === t4.length) return ".";
6093
- var n3 = 47 === t4.charCodeAt(0), i = 47 === t4.charCodeAt(t4.length - 1);
6094
- return 0 !== (t4 = r2(t4, !n3)).length || n3 || (t4 = "."), t4.length > 0 && i && (t4 += "/"), n3 ? "/" + t4 : t4;
6095
- }, isAbsolute: function(t4) {
6096
- return e2(t4), t4.length > 0 && 47 === t4.charCodeAt(0);
6097
- }, join: function() {
6098
- if (0 === arguments.length) return ".";
6099
- for (var t4, r3 = 0; r3 < arguments.length; ++r3) {
6100
- var i = arguments[r3];
6101
- e2(i), i.length > 0 && (void 0 === t4 ? t4 = i : t4 += "/" + i);
6102
- }
6103
- return void 0 === t4 ? "." : n2.normalize(t4);
6104
- }, relative: function(t4, r3) {
6105
- if (e2(t4), e2(r3), t4 === r3) return "";
6106
- if ((t4 = n2.resolve(t4)) === (r3 = n2.resolve(r3))) return "";
6107
- for (var i = 1; i < t4.length && 47 === t4.charCodeAt(i); ++i) ;
6108
- for (var o = t4.length, s = o - i, h = 1; h < r3.length && 47 === r3.charCodeAt(h); ++h) ;
6109
- for (var a2 = r3.length - h, c = s < a2 ? s : a2, f2 = -1, u = 0; u <= c; ++u) {
6110
- if (u === c) {
6111
- if (a2 > c) {
6112
- if (47 === r3.charCodeAt(h + u)) return r3.slice(h + u + 1);
6113
- if (0 === u) return r3.slice(h + u);
6114
- } else s > c && (47 === t4.charCodeAt(i + u) ? f2 = u : 0 === u && (f2 = 0));
6115
- break;
6116
- }
6117
- var l = t4.charCodeAt(i + u);
6118
- if (l !== r3.charCodeAt(h + u)) break;
6119
- 47 === l && (f2 = u);
6120
- }
6121
- var g = "";
6122
- for (u = i + f2 + 1; u <= o; ++u) u !== o && 47 !== t4.charCodeAt(u) || (0 === g.length ? g += ".." : g += "/..");
6123
- return g.length > 0 ? g + r3.slice(h + f2) : (h += f2, 47 === r3.charCodeAt(h) && ++h, r3.slice(h));
6124
- }, _makeLong: function(t4) {
6125
- return t4;
6126
- }, dirname: function(t4) {
6127
- if (e2(t4), 0 === t4.length) return ".";
6128
- for (var r3 = t4.charCodeAt(0), n3 = 47 === r3, i = -1, o = true, s = t4.length - 1; s >= 1; --s) if (47 === (r3 = t4.charCodeAt(s))) {
6129
- if (!o) {
6130
- i = s;
6131
- break;
6132
- }
6133
- } else o = false;
6134
- return -1 === i ? n3 ? "/" : "." : n3 && 1 === i ? "//" : t4.slice(0, i);
6135
- }, basename: function(t4, r3) {
6136
- if (void 0 !== r3 && "string" != typeof r3) throw new TypeError('"ext" argument must be a string');
6137
- e2(t4);
6138
- var n3, i = 0, o = -1, s = true;
6139
- if (void 0 !== r3 && r3.length > 0 && r3.length <= t4.length) {
6140
- if (r3.length === t4.length && r3 === t4) return "";
6141
- var h = r3.length - 1, a2 = -1;
6142
- for (n3 = t4.length - 1; n3 >= 0; --n3) {
6143
- var c = t4.charCodeAt(n3);
6144
- if (47 === c) {
6145
- if (!s) {
6146
- i = n3 + 1;
6147
- break;
6148
- }
6149
- } else -1 === a2 && (s = false, a2 = n3 + 1), h >= 0 && (c === r3.charCodeAt(h) ? -1 == --h && (o = n3) : (h = -1, o = a2));
6150
- }
6151
- return i === o ? o = a2 : -1 === o && (o = t4.length), t4.slice(i, o);
6152
- }
6153
- for (n3 = t4.length - 1; n3 >= 0; --n3) if (47 === t4.charCodeAt(n3)) {
6154
- if (!s) {
6155
- i = n3 + 1;
6156
- break;
6157
- }
6158
- } else -1 === o && (s = false, o = n3 + 1);
6159
- return -1 === o ? "" : t4.slice(i, o);
6160
- }, extname: function(t4) {
6161
- e2(t4);
6162
- for (var r3 = -1, n3 = 0, i = -1, o = true, s = 0, h = t4.length - 1; h >= 0; --h) {
6163
- var a2 = t4.charCodeAt(h);
6164
- if (47 !== a2) -1 === i && (o = false, i = h + 1), 46 === a2 ? -1 === r3 ? r3 = h : 1 !== s && (s = 1) : -1 !== r3 && (s = -1);
6165
- else if (!o) {
6166
- n3 = h + 1;
6167
- break;
6168
- }
6169
- }
6170
- return -1 === r3 || -1 === i || 0 === s || 1 === s && r3 === i - 1 && r3 === n3 + 1 ? "" : t4.slice(r3, i);
6171
- }, format: function(t4) {
6172
- if (null === t4 || "object" != typeof t4) throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t4);
6173
- return function(t5, e3) {
6174
- var r3 = e3.dir || e3.root, n3 = e3.base || (e3.name || "") + (e3.ext || "");
6175
- return r3 ? r3 === e3.root ? r3 + n3 : r3 + "/" + n3 : n3;
6176
- }(0, t4);
6177
- }, parse: function(t4) {
6178
- e2(t4);
6179
- var r3 = { root: "", dir: "", base: "", ext: "", name: "" };
6180
- if (0 === t4.length) return r3;
6181
- var n3, i = t4.charCodeAt(0), o = 47 === i;
6182
- o ? (r3.root = "/", n3 = 1) : n3 = 0;
6183
- for (var s = -1, h = 0, a2 = -1, c = true, f2 = t4.length - 1, u = 0; f2 >= n3; --f2) if (47 !== (i = t4.charCodeAt(f2))) -1 === a2 && (c = false, a2 = f2 + 1), 46 === i ? -1 === s ? s = f2 : 1 !== u && (u = 1) : -1 !== s && (u = -1);
6184
- else if (!c) {
6185
- h = f2 + 1;
6186
- break;
6187
- }
6188
- return -1 === s || -1 === a2 || 0 === u || 1 === u && s === a2 - 1 && s === h + 1 ? -1 !== a2 && (r3.base = r3.name = 0 === h && o ? t4.slice(1, a2) : t4.slice(h, a2)) : (0 === h && o ? (r3.name = t4.slice(1, s), r3.base = t4.slice(1, a2)) : (r3.name = t4.slice(h, s), r3.base = t4.slice(h, a2)), r3.ext = t4.slice(s, a2)), h > 0 ? r3.dir = t4.slice(0, h - 1) : o && (r3.dir = "/"), r3;
6189
- }, sep: "/", delimiter: ":", win32: null, posix: null };
6190
- n2.posix = n2, t3.exports = n2;
6191
- } }, e = {};
6192
- function r(n2) {
6193
- var i = e[n2];
6194
- if (void 0 !== i) return i.exports;
6195
- var o = e[n2] = { exports: {} };
6196
- return t2[n2](o, o.exports, r), o.exports;
6197
- }
6198
- r.d = (t3, e2) => {
6199
- for (var n2 in e2) r.o(e2, n2) && !r.o(t3, n2) && Object.defineProperty(t3, n2, { enumerable: true, get: e2[n2] });
6200
- }, r.o = (t3, e2) => Object.prototype.hasOwnProperty.call(t3, e2), r.r = (t3) => {
6201
- "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t3, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t3, "__esModule", { value: true });
6202
- };
6203
- var n = {};
6204
- (() => {
6205
- let t3;
6206
- if (r.r(n), r.d(n, { URI: () => f2, Utils: () => P }), "object" == typeof process) t3 = "win32" === process.platform;
6207
- else if ("object" == typeof navigator) {
6208
- let e3 = navigator.userAgent;
6209
- t3 = e3.indexOf("Windows") >= 0;
6210
- }
6211
- const e2 = /^\w[\w\d+.-]*$/, i = /^\//, o = /^\/\//;
6212
- function s(t4, r2) {
6213
- if (!t4.scheme && r2) throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t4.authority}", path: "${t4.path}", query: "${t4.query}", fragment: "${t4.fragment}"}`);
6214
- if (t4.scheme && !e2.test(t4.scheme)) throw new Error("[UriError]: Scheme contains illegal characters.");
6215
- if (t4.path) {
6216
- if (t4.authority) {
6217
- if (!i.test(t4.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');
6218
- } else if (o.test(t4.path)) throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")');
6219
- }
6220
- }
6221
- const h = "", a2 = "/", c = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
6222
- class f2 {
6223
- static isUri(t4) {
6224
- return t4 instanceof f2 || !!t4 && "string" == typeof t4.authority && "string" == typeof t4.fragment && "string" == typeof t4.path && "string" == typeof t4.query && "string" == typeof t4.scheme && "string" == typeof t4.fsPath && "function" == typeof t4.with && "function" == typeof t4.toString;
6225
- }
6226
- scheme;
6227
- authority;
6228
- path;
6229
- query;
6230
- fragment;
6231
- constructor(t4, e3, r2, n2, i2, o2 = false) {
6232
- "object" == typeof t4 ? (this.scheme = t4.scheme || h, this.authority = t4.authority || h, this.path = t4.path || h, this.query = t4.query || h, this.fragment = t4.fragment || h) : (this.scheme = /* @__PURE__ */ function(t5, e4) {
6233
- return t5 || e4 ? t5 : "file";
6234
- }(t4, o2), this.authority = e3 || h, this.path = function(t5, e4) {
6235
- switch (t5) {
6236
- case "https":
6237
- case "http":
6238
- case "file":
6239
- e4 ? e4[0] !== a2 && (e4 = a2 + e4) : e4 = a2;
6240
- }
6241
- return e4;
6242
- }(this.scheme, r2 || h), this.query = n2 || h, this.fragment = i2 || h, s(this, o2));
6243
- }
6244
- get fsPath() {
6245
- return m(this, false);
6246
- }
6247
- with(t4) {
6248
- if (!t4) return this;
6249
- let { scheme: e3, authority: r2, path: n2, query: i2, fragment: o2 } = t4;
6250
- return void 0 === e3 ? e3 = this.scheme : null === e3 && (e3 = h), void 0 === r2 ? r2 = this.authority : null === r2 && (r2 = h), void 0 === n2 ? n2 = this.path : null === n2 && (n2 = h), void 0 === i2 ? i2 = this.query : null === i2 && (i2 = h), void 0 === o2 ? o2 = this.fragment : null === o2 && (o2 = h), e3 === this.scheme && r2 === this.authority && n2 === this.path && i2 === this.query && o2 === this.fragment ? this : new l(e3, r2, n2, i2, o2);
6251
- }
6252
- static parse(t4, e3 = false) {
6253
- const r2 = c.exec(t4);
6254
- return r2 ? new l(r2[2] || h, C(r2[4] || h), C(r2[5] || h), C(r2[7] || h), C(r2[9] || h), e3) : new l(h, h, h, h, h);
6255
- }
6256
- static file(e3) {
6257
- let r2 = h;
6258
- if (t3 && (e3 = e3.replace(/\\/g, a2)), e3[0] === a2 && e3[1] === a2) {
6259
- const t4 = e3.indexOf(a2, 2);
6260
- -1 === t4 ? (r2 = e3.substring(2), e3 = a2) : (r2 = e3.substring(2, t4), e3 = e3.substring(t4) || a2);
6261
- }
6262
- return new l("file", r2, e3, h, h);
6263
- }
6264
- static from(t4) {
6265
- const e3 = new l(t4.scheme, t4.authority, t4.path, t4.query, t4.fragment);
6266
- return s(e3, true), e3;
6267
- }
6268
- toString(t4 = false) {
6269
- return y(this, t4);
6270
- }
6271
- toJSON() {
6272
- return this;
6273
- }
6274
- static revive(t4) {
6275
- if (t4) {
6276
- if (t4 instanceof f2) return t4;
6277
- {
6278
- const e3 = new l(t4);
6279
- return e3._formatted = t4.external, e3._fsPath = t4._sep === u ? t4.fsPath : null, e3;
6280
- }
6281
- }
6282
- return t4;
6283
- }
6284
- }
6285
- const u = t3 ? 1 : void 0;
6286
- class l extends f2 {
6287
- _formatted = null;
6288
- _fsPath = null;
6289
- get fsPath() {
6290
- return this._fsPath || (this._fsPath = m(this, false)), this._fsPath;
6291
- }
6292
- toString(t4 = false) {
6293
- return t4 ? y(this, true) : (this._formatted || (this._formatted = y(this, false)), this._formatted);
6294
- }
6295
- toJSON() {
6296
- const t4 = { $mid: 1 };
6297
- return this._fsPath && (t4.fsPath = this._fsPath, t4._sep = u), this._formatted && (t4.external = this._formatted), this.path && (t4.path = this.path), this.scheme && (t4.scheme = this.scheme), this.authority && (t4.authority = this.authority), this.query && (t4.query = this.query), this.fragment && (t4.fragment = this.fragment), t4;
6298
- }
6299
- }
6300
- const g = { 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" };
6301
- function d(t4, e3, r2) {
6302
- let n2, i2 = -1;
6303
- for (let o2 = 0; o2 < t4.length; o2++) {
6304
- const s2 = t4.charCodeAt(o2);
6305
- if (s2 >= 97 && s2 <= 122 || s2 >= 65 && s2 <= 90 || s2 >= 48 && s2 <= 57 || 45 === s2 || 46 === s2 || 95 === s2 || 126 === s2 || e3 && 47 === s2 || r2 && 91 === s2 || r2 && 93 === s2 || r2 && 58 === s2) -1 !== i2 && (n2 += encodeURIComponent(t4.substring(i2, o2)), i2 = -1), void 0 !== n2 && (n2 += t4.charAt(o2));
6306
- else {
6307
- void 0 === n2 && (n2 = t4.substr(0, o2));
6308
- const e4 = g[s2];
6309
- void 0 !== e4 ? (-1 !== i2 && (n2 += encodeURIComponent(t4.substring(i2, o2)), i2 = -1), n2 += e4) : -1 === i2 && (i2 = o2);
6310
- }
6311
- }
6312
- return -1 !== i2 && (n2 += encodeURIComponent(t4.substring(i2))), void 0 !== n2 ? n2 : t4;
6313
- }
6314
- function p(t4) {
6315
- let e3;
6316
- for (let r2 = 0; r2 < t4.length; r2++) {
6317
- const n2 = t4.charCodeAt(r2);
6318
- 35 === n2 || 63 === n2 ? (void 0 === e3 && (e3 = t4.substr(0, r2)), e3 += g[n2]) : void 0 !== e3 && (e3 += t4[r2]);
6319
- }
6320
- return void 0 !== e3 ? e3 : t4;
6321
- }
6322
- function m(e3, r2) {
6323
- let n2;
6324
- return n2 = e3.authority && e3.path.length > 1 && "file" === e3.scheme ? `//${e3.authority}${e3.path}` : 47 === e3.path.charCodeAt(0) && (e3.path.charCodeAt(1) >= 65 && e3.path.charCodeAt(1) <= 90 || e3.path.charCodeAt(1) >= 97 && e3.path.charCodeAt(1) <= 122) && 58 === e3.path.charCodeAt(2) ? r2 ? e3.path.substr(1) : e3.path[1].toLowerCase() + e3.path.substr(2) : e3.path, t3 && (n2 = n2.replace(/\//g, "\\")), n2;
6325
- }
6326
- function y(t4, e3) {
6327
- const r2 = e3 ? p : d;
6328
- let n2 = "", { scheme: i2, authority: o2, path: s2, query: h2, fragment: c2 } = t4;
6329
- if (i2 && (n2 += i2, n2 += ":"), (o2 || "file" === i2) && (n2 += a2, n2 += a2), o2) {
6330
- let t5 = o2.indexOf("@");
6331
- if (-1 !== t5) {
6332
- const e4 = o2.substr(0, t5);
6333
- o2 = o2.substr(t5 + 1), t5 = e4.lastIndexOf(":"), -1 === t5 ? n2 += r2(e4, false, false) : (n2 += r2(e4.substr(0, t5), false, false), n2 += ":", n2 += r2(e4.substr(t5 + 1), false, true)), n2 += "@";
6334
- }
6335
- o2 = o2.toLowerCase(), t5 = o2.lastIndexOf(":"), -1 === t5 ? n2 += r2(o2, false, true) : (n2 += r2(o2.substr(0, t5), false, true), n2 += o2.substr(t5));
6336
- }
6337
- if (s2) {
6338
- if (s2.length >= 3 && 47 === s2.charCodeAt(0) && 58 === s2.charCodeAt(2)) {
6339
- const t5 = s2.charCodeAt(1);
6340
- t5 >= 65 && t5 <= 90 && (s2 = `/${String.fromCharCode(t5 + 32)}:${s2.substr(3)}`);
6341
- } else if (s2.length >= 2 && 58 === s2.charCodeAt(1)) {
6342
- const t5 = s2.charCodeAt(0);
6343
- t5 >= 65 && t5 <= 90 && (s2 = `${String.fromCharCode(t5 + 32)}:${s2.substr(2)}`);
6344
- }
6345
- n2 += r2(s2, true, false);
6346
- }
6347
- return h2 && (n2 += "?", n2 += r2(h2, false, false)), c2 && (n2 += "#", n2 += e3 ? c2 : d(c2, false, false)), n2;
6348
- }
6349
- function v(t4) {
6350
- try {
6351
- return decodeURIComponent(t4);
6352
- } catch {
6353
- return t4.length > 3 ? t4.substr(0, 3) + v(t4.substr(3)) : t4;
6354
- }
6355
- }
6356
- const b = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
6357
- function C(t4) {
6358
- return t4.match(b) ? t4.replace(b, (t5) => v(t5)) : t4;
6359
- }
6360
- var A2 = r(470);
6361
- const w = A2.posix || A2, x = "/";
6362
- var P;
6363
- !function(t4) {
6364
- t4.joinPath = function(t5, ...e3) {
6365
- return t5.with({ path: w.join(t5.path, ...e3) });
6366
- }, t4.resolvePath = function(t5, ...e3) {
6367
- let r2 = t5.path, n2 = false;
6368
- r2[0] !== x && (r2 = x + r2, n2 = true);
6369
- let i2 = w.resolve(r2, ...e3);
6370
- return n2 && i2[0] === x && !t5.authority && (i2 = i2.substring(1)), t5.with({ path: i2 });
6371
- }, t4.dirname = function(t5) {
6372
- if (0 === t5.path.length || t5.path === x) return t5;
6373
- let e3 = w.dirname(t5.path);
6374
- return 1 === e3.length && 46 === e3.charCodeAt(0) && (e3 = ""), t5.with({ path: e3 });
6375
- }, t4.basename = function(t5) {
6376
- return w.basename(t5.path);
6377
- }, t4.extname = function(t5) {
6378
- return w.extname(t5.path);
6379
- };
6380
- }(P || (P = {}));
6381
- })(), LIB = n;
6382
- })();
6383
- var { URI: URI2, Utils } = LIB;
6384
-
6385
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/utils/glob.js
6397
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/utils/glob.js
6386
6398
  function createRegex(glob, opts) {
6387
6399
  if (typeof glob !== "string") {
6388
6400
  throw new TypeError("Expected a string");
@@ -6473,7 +6485,7 @@ function createRegex(glob, opts) {
6473
6485
  return new RegExp(reStr, flags);
6474
6486
  }
6475
6487
 
6476
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/services/jsonSchemaService.js
6488
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/services/jsonSchemaService.js
6477
6489
  var BANG = "!";
6478
6490
  var PATH_SEP = "/";
6479
6491
  var FilePatternAssociation = class {
@@ -6722,9 +6734,6 @@ var JSONSchemaService = class {
6722
6734
  const errorMessage = t("Unable to load schema from '{0}'. No schema request service available", toDisplayString(url));
6723
6735
  return this.promise.resolve(new UnresolvedSchema({}, [errorMessage]));
6724
6736
  }
6725
- if (url.startsWith("http://json-schema.org/")) {
6726
- url = "https" + url.substring(4);
6727
- }
6728
6737
  return this.requestService(url).then((content) => {
6729
6738
  if (!content) {
6730
6739
  const errorMessage = t("Unable to load schema from '{0}': No content.", toDisplayString(url));
@@ -6757,8 +6766,8 @@ var JSONSchemaService = class {
6757
6766
  resolveSchemaContent(schemaToResolve, handle) {
6758
6767
  const resolveErrors = schemaToResolve.errors.slice(0);
6759
6768
  const schema = schemaToResolve.schema;
6760
- let schemaDraft = schema.$schema ? normalizeId(schema.$schema) : void 0;
6761
- if (schemaDraft === "http://json-schema.org/draft-03/schema") {
6769
+ const schemaDraft = schema.$schema ? getSchemaDraftFromId(schema.$schema) : void 0;
6770
+ if (schemaDraft === SchemaDraft.v3) {
6762
6771
  return this.promise.resolve(new ResolvedSchema({}, [t("Draft-03 schemas are not supported.")], [], schemaDraft));
6763
6772
  }
6764
6773
  let usesUnsupportedFeatures = /* @__PURE__ */ new Set();
@@ -7019,13 +7028,6 @@ var JSONSchemaService = class {
7019
7028
  }
7020
7029
  };
7021
7030
  var idCounter2 = 0;
7022
- function normalizeId(id) {
7023
- try {
7024
- return URI2.parse(id).toString(true);
7025
- } catch (e) {
7026
- return id;
7027
- }
7028
- }
7029
7031
  function normalizeResourceForMatching(resource) {
7030
7032
  try {
7031
7033
  return URI2.parse(resource).with({ fragment: null, query: null }).toString(true);
@@ -7044,7 +7046,7 @@ function toDisplayString(url) {
7044
7046
  return url;
7045
7047
  }
7046
7048
 
7047
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/services/jsonFolding.js
7049
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/services/jsonFolding.js
7048
7050
  function getFoldingRanges(document, context) {
7049
7051
  const ranges = [];
7050
7052
  const nestingLevels = [];
@@ -7158,7 +7160,7 @@ function getFoldingRanges(document, context) {
7158
7160
  return result;
7159
7161
  }
7160
7162
 
7161
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/services/jsonSelectionRanges.js
7163
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/services/jsonSelectionRanges.js
7162
7164
  function getSelectionRanges(document, positions, doc) {
7163
7165
  function getSelectionRange(position) {
7164
7166
  let offset = document.offsetAt(position);
@@ -7218,7 +7220,7 @@ function getSelectionRanges(document, positions, doc) {
7218
7220
  return positions.map(getSelectionRange);
7219
7221
  }
7220
7222
 
7221
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/utils/format.js
7223
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/utils/format.js
7222
7224
  function format4(documentToFormat, formattingOptions, formattingRange) {
7223
7225
  let range = void 0;
7224
7226
  if (formattingRange) {
@@ -7238,7 +7240,7 @@ function format4(documentToFormat, formattingOptions, formattingRange) {
7238
7240
  });
7239
7241
  }
7240
7242
 
7241
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/utils/propertyTree.js
7243
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/utils/propertyTree.js
7242
7244
  var Container;
7243
7245
  (function(Container2) {
7244
7246
  Container2[Container2["Object"] = 0] = "Object";
@@ -7307,7 +7309,7 @@ function binarySearchOnPropertyArray(propertyTreeArray, propertyTree, compare_fn
7307
7309
  return -m - 1;
7308
7310
  }
7309
7311
 
7310
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/utils/sort.js
7312
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/utils/sort.js
7311
7313
  function sort(documentToSort, formattingOptions) {
7312
7314
  const options = {
7313
7315
  ...formattingOptions,
@@ -7573,7 +7575,7 @@ var SortingRange = class {
7573
7575
  }
7574
7576
  };
7575
7577
 
7576
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/services/jsonLinks.js
7578
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/services/jsonLinks.js
7577
7579
  function findLinks(document, doc) {
7578
7580
  const links = [];
7579
7581
  doc.visit((node) => {
@@ -7641,7 +7643,7 @@ function unescape(str) {
7641
7643
  return str.replace(/~1/g, "/").replace(/~0/g, "~");
7642
7644
  }
7643
7645
 
7644
- // node_modules/.pnpm/vscode-json-languageservice@5.4.3/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageService.js
7646
+ // node_modules/.pnpm/vscode-json-languageservice@5.6.1/node_modules/vscode-json-languageservice/lib/esm/jsonLanguageService.js
7645
7647
  function getLanguageService(params) {
7646
7648
  const promise = params.promiseConstructor || Promise;
7647
7649
  const jsonSchemaService = new JSONSchemaService(params.schemaRequestService, params.workspaceContext, promise);
@@ -7660,7 +7662,7 @@ function getLanguageService(params) {
7660
7662
  doValidation: jsonValidation.doValidation.bind(jsonValidation),
7661
7663
  getLanguageStatus: jsonValidation.getLanguageStatus.bind(jsonValidation),
7662
7664
  parseJSONDocument: (document) => parse3(document, { collectComments: true }),
7663
- newJSONDocument: (root, diagnostics) => newJSONDocument(root, diagnostics),
7665
+ newJSONDocument: (root, diagnostics, comments) => newJSONDocument(root, diagnostics, comments),
7664
7666
  getMatchingSchemas: jsonSchemaService.getMatchingSchemas.bind(jsonSchemaService),
7665
7667
  doResolve: jsonCompletion.doResolve.bind(jsonCompletion),
7666
7668
  doComplete: jsonCompletion.doComplete.bind(jsonCompletion),
@@ -7829,7 +7831,7 @@ var JSONWorker = class extends WorkerBase {
7829
7831
  },
7830
7832
  schemaRequestService: (uri) => {
7831
7833
  const url = new URL(uri);
7832
- if (url.protocol === "http:") {
7834
+ if (url.protocol === "https:" || url.protocol === "http:") {
7833
7835
  return cache.fetch(url).then((res) => res.text());
7834
7836
  } else if (url.protocol === "file:") {
7835
7837
  const fs = this.getFileSystemProvider();