@skaldapp/monaco-sfc 1.2.2 → 1.2.3

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 (2) hide show
  1. package/dist/vue.worker.js +670 -596
  2. package/package.json +6 -6
@@ -2203,176 +2203,14 @@ var require_umd = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2203
2203
  var r = e();
2204
2204
  for (var n in r) ("object" == typeof exports ? exports : t)[n] = r[n];
2205
2205
  }
2206
- })(exports, (() => (() => {
2206
+ })(exports, () => (() => {
2207
2207
  "use strict";
2208
2208
  var t = {
2209
- 975: (t) => {
2210
- function e(t) {
2211
- if ("string" != typeof t) throw new TypeError("Path must be a string. Received " + JSON.stringify(t));
2212
- }
2213
- function r(t, e) {
2214
- for (var r, n = "", i = 0, o = -1, s = 0, a = 0; a <= t.length; ++a) {
2215
- if (a < t.length) r = t.charCodeAt(a);
2216
- else {
2217
- if (47 === r) break;
2218
- r = 47;
2219
- }
2220
- if (47 === r) {
2221
- if (o === a - 1 || 1 === s);
2222
- else if (o !== a - 1 && 2 === s) {
2223
- if (n.length < 2 || 2 !== i || 46 !== n.charCodeAt(n.length - 1) || 46 !== n.charCodeAt(n.length - 2)) {
2224
- if (n.length > 2) {
2225
- var h = n.lastIndexOf("/");
2226
- if (h !== n.length - 1) {
2227
- -1 === h ? (n = "", i = 0) : i = (n = n.slice(0, h)).length - 1 - n.lastIndexOf("/"), o = a, s = 0;
2228
- continue;
2229
- }
2230
- } else if (2 === n.length || 1 === n.length) {
2231
- n = "", i = 0, o = a, s = 0;
2232
- continue;
2233
- }
2234
- }
2235
- e && (n.length > 0 ? n += "/.." : n = "..", i = 2);
2236
- } else n.length > 0 ? n += "/" + t.slice(o + 1, a) : n = t.slice(o + 1, a), i = a - o - 1;
2237
- o = a, s = 0;
2238
- } else 46 === r && -1 !== s ? ++s : s = -1;
2239
- }
2240
- return n;
2241
- }
2242
- var n = {
2243
- resolve: function() {
2244
- for (var t, n = "", i = !1, o = arguments.length - 1; o >= -1 && !i; o--) {
2245
- var s;
2246
- o >= 0 ? s = arguments[o] : (void 0 === t && (t = process.cwd()), s = t), e(s), 0 !== s.length && (n = s + "/" + n, i = 47 === s.charCodeAt(0));
2247
- }
2248
- return n = r(n, !i), i ? n.length > 0 ? "/" + n : "/" : n.length > 0 ? n : ".";
2249
- },
2250
- normalize: function(t) {
2251
- if (e(t), 0 === t.length) return ".";
2252
- var n = 47 === t.charCodeAt(0), i = 47 === t.charCodeAt(t.length - 1);
2253
- return 0 !== (t = r(t, !n)).length || n || (t = "."), t.length > 0 && i && (t += "/"), n ? "/" + t : t;
2254
- },
2255
- isAbsolute: function(t) {
2256
- return e(t), t.length > 0 && 47 === t.charCodeAt(0);
2257
- },
2258
- join: function() {
2259
- if (0 === arguments.length) return ".";
2260
- for (var t, r = 0; r < arguments.length; ++r) {
2261
- var i = arguments[r];
2262
- e(i), i.length > 0 && (void 0 === t ? t = i : t += "/" + i);
2263
- }
2264
- return void 0 === t ? "." : n.normalize(t);
2265
- },
2266
- relative: function(t, r) {
2267
- if (e(t), e(r), t === r) return "";
2268
- if ((t = n.resolve(t)) === (r = n.resolve(r))) return "";
2269
- for (var i = 1; i < t.length && 47 === t.charCodeAt(i); ++i);
2270
- for (var o = t.length, s = o - i, a = 1; a < r.length && 47 === r.charCodeAt(a); ++a);
2271
- for (var h = r.length - a, c = s < h ? s : h, f = -1, u = 0; u <= c; ++u) {
2272
- if (u === c) {
2273
- if (h > c) {
2274
- if (47 === r.charCodeAt(a + u)) return r.slice(a + u + 1);
2275
- if (0 === u) return r.slice(a + u);
2276
- } else s > c && (47 === t.charCodeAt(i + u) ? f = u : 0 === u && (f = 0));
2277
- break;
2278
- }
2279
- var l = t.charCodeAt(i + u);
2280
- if (l !== r.charCodeAt(a + u)) break;
2281
- 47 === l && (f = u);
2282
- }
2283
- var d = "";
2284
- for (u = i + f + 1; u <= o; ++u) u !== o && 47 !== t.charCodeAt(u) || (0 === d.length ? d += ".." : d += "/..");
2285
- return d.length > 0 ? d + r.slice(a + f) : (a += f, 47 === r.charCodeAt(a) && ++a, r.slice(a));
2286
- },
2287
- _makeLong: function(t) {
2288
- return t;
2289
- },
2290
- dirname: function(t) {
2291
- if (e(t), 0 === t.length) return ".";
2292
- for (var r = t.charCodeAt(0), n = 47 === r, i = -1, o = !0, s = t.length - 1; s >= 1; --s) if (47 === (r = t.charCodeAt(s))) {
2293
- if (!o) {
2294
- i = s;
2295
- break;
2296
- }
2297
- } else o = !1;
2298
- return -1 === i ? n ? "/" : "." : n && 1 === i ? "//" : t.slice(0, i);
2299
- },
2300
- basename: function(t, r) {
2301
- if (void 0 !== r && "string" != typeof r) throw new TypeError("\"ext\" argument must be a string");
2302
- e(t);
2303
- var n, i = 0, o = -1, s = !0;
2304
- if (void 0 !== r && r.length > 0 && r.length <= t.length) {
2305
- if (r.length === t.length && r === t) return "";
2306
- var a = r.length - 1, h = -1;
2307
- for (n = t.length - 1; n >= 0; --n) {
2308
- var c = t.charCodeAt(n);
2309
- if (47 === c) {
2310
- if (!s) {
2311
- i = n + 1;
2312
- break;
2313
- }
2314
- } else -1 === h && (s = !1, h = n + 1), a >= 0 && (c === r.charCodeAt(a) ? -1 == --a && (o = n) : (a = -1, o = h));
2315
- }
2316
- return i === o ? o = h : -1 === o && (o = t.length), t.slice(i, o);
2317
- }
2318
- for (n = t.length - 1; n >= 0; --n) if (47 === t.charCodeAt(n)) {
2319
- if (!s) {
2320
- i = n + 1;
2321
- break;
2322
- }
2323
- } else -1 === o && (s = !1, o = n + 1);
2324
- return -1 === o ? "" : t.slice(i, o);
2325
- },
2326
- extname: function(t) {
2327
- e(t);
2328
- for (var r = -1, n = 0, i = -1, o = !0, s = 0, a = t.length - 1; a >= 0; --a) {
2329
- var h = t.charCodeAt(a);
2330
- if (47 !== h) -1 === i && (o = !1, i = a + 1), 46 === h ? -1 === r ? r = a : 1 !== s && (s = 1) : -1 !== r && (s = -1);
2331
- else if (!o) {
2332
- n = a + 1;
2333
- break;
2334
- }
2335
- }
2336
- return -1 === r || -1 === i || 0 === s || 1 === s && r === i - 1 && r === n + 1 ? "" : t.slice(r, i);
2337
- },
2338
- format: function(t) {
2339
- if (null === t || "object" != typeof t) throw new TypeError("The \"pathObject\" argument must be of type Object. Received type " + typeof t);
2340
- return function(t, e) {
2341
- var r = e.dir || e.root, n = e.base || (e.name || "") + (e.ext || "");
2342
- return r ? r === e.root ? r + n : r + "/" + n : n;
2343
- }(0, t);
2344
- },
2345
- parse: function(t) {
2346
- e(t);
2347
- var r = {
2348
- root: "",
2349
- dir: "",
2350
- base: "",
2351
- ext: "",
2352
- name: ""
2353
- };
2354
- if (0 === t.length) return r;
2355
- var n, i = t.charCodeAt(0), o = 47 === i;
2356
- o ? (r.root = "/", n = 1) : n = 0;
2357
- for (var s = -1, a = 0, h = -1, c = !0, f = t.length - 1, u = 0; f >= n; --f) if (47 !== (i = t.charCodeAt(f))) -1 === h && (c = !1, h = f + 1), 46 === i ? -1 === s ? s = f : 1 !== u && (u = 1) : -1 !== s && (u = -1);
2358
- else if (!c) {
2359
- a = f + 1;
2360
- break;
2361
- }
2362
- return -1 === s || -1 === h || 0 === u || 1 === u && s === h - 1 && s === a + 1 ? -1 !== h && (r.base = r.name = 0 === a && o ? t.slice(1, h) : t.slice(a, h)) : (0 === a && o ? (r.name = t.slice(1, s), r.base = t.slice(1, h)) : (r.name = t.slice(a, s), r.base = t.slice(a, h)), r.ext = t.slice(s, h)), a > 0 ? r.dir = t.slice(0, a - 1) : o && (r.dir = "/"), r;
2363
- },
2364
- sep: "/",
2365
- delimiter: ":",
2366
- win32: null,
2367
- posix: null
2368
- };
2369
- n.posix = n, t.exports = n;
2370
- },
2371
- 70: (t, e) => {
2209
+ 70(t, e) {
2372
2210
  if (Object.defineProperty(e, "__esModule", { value: !0 }), e.isWindows = void 0, "object" == typeof process) e.isWindows = "win32" === process.platform;
2373
2211
  else if ("object" == typeof navigator) e.isWindows = navigator.userAgent.indexOf("Windows") >= 0;
2374
2212
  },
2375
- 231: (t, e, r) => {
2213
+ 231(t, e, r) {
2376
2214
  Object.defineProperty(e, "__esModule", { value: !0 }), e.uriToFsPath = e.URI = void 0;
2377
2215
  const n = r(70), i = /^\w[\w\d+.-]*$/, o = /^\//, s = /^\/\//;
2378
2216
  function a(t, e) {
@@ -2542,10 +2380,10 @@ var require_umd = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2542
2380
  e.uriToFsPath = v;
2543
2381
  const C = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
2544
2382
  function w(t) {
2545
- return t.match(C) ? t.replace(C, ((t) => b(t))) : t;
2383
+ return t.match(C) ? t.replace(C, (t) => b(t)) : t;
2546
2384
  }
2547
2385
  },
2548
- 552: function(t, e, r) {
2386
+ 552(t, e, r) {
2549
2387
  var n = this && this.__createBinding || (Object.create ? function(t, e, r, n) {
2550
2388
  void 0 === n && (n = r);
2551
2389
  var i = Object.getOwnPropertyDescriptor(e, r);
@@ -2591,6 +2429,168 @@ var require_umd = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2591
2429
  return a.extname(t.path);
2592
2430
  };
2593
2431
  })(c || (e.Utils = c = {}));
2432
+ },
2433
+ 975(t) {
2434
+ function e(t) {
2435
+ if ("string" != typeof t) throw new TypeError("Path must be a string. Received " + JSON.stringify(t));
2436
+ }
2437
+ function r(t, e) {
2438
+ for (var r, n = "", i = 0, o = -1, s = 0, a = 0; a <= t.length; ++a) {
2439
+ if (a < t.length) r = t.charCodeAt(a);
2440
+ else {
2441
+ if (47 === r) break;
2442
+ r = 47;
2443
+ }
2444
+ if (47 === r) {
2445
+ if (o === a - 1 || 1 === s);
2446
+ else if (o !== a - 1 && 2 === s) {
2447
+ if (n.length < 2 || 2 !== i || 46 !== n.charCodeAt(n.length - 1) || 46 !== n.charCodeAt(n.length - 2)) {
2448
+ if (n.length > 2) {
2449
+ var h = n.lastIndexOf("/");
2450
+ if (h !== n.length - 1) {
2451
+ -1 === h ? (n = "", i = 0) : i = (n = n.slice(0, h)).length - 1 - n.lastIndexOf("/"), o = a, s = 0;
2452
+ continue;
2453
+ }
2454
+ } else if (2 === n.length || 1 === n.length) {
2455
+ n = "", i = 0, o = a, s = 0;
2456
+ continue;
2457
+ }
2458
+ }
2459
+ e && (n.length > 0 ? n += "/.." : n = "..", i = 2);
2460
+ } else n.length > 0 ? n += "/" + t.slice(o + 1, a) : n = t.slice(o + 1, a), i = a - o - 1;
2461
+ o = a, s = 0;
2462
+ } else 46 === r && -1 !== s ? ++s : s = -1;
2463
+ }
2464
+ return n;
2465
+ }
2466
+ var n = {
2467
+ resolve: function() {
2468
+ for (var t, n = "", i = !1, o = arguments.length - 1; o >= -1 && !i; o--) {
2469
+ var s;
2470
+ o >= 0 ? s = arguments[o] : (void 0 === t && (t = process.cwd()), s = t), e(s), 0 !== s.length && (n = s + "/" + n, i = 47 === s.charCodeAt(0));
2471
+ }
2472
+ return n = r(n, !i), i ? n.length > 0 ? "/" + n : "/" : n.length > 0 ? n : ".";
2473
+ },
2474
+ normalize: function(t) {
2475
+ if (e(t), 0 === t.length) return ".";
2476
+ var n = 47 === t.charCodeAt(0), i = 47 === t.charCodeAt(t.length - 1);
2477
+ return 0 !== (t = r(t, !n)).length || n || (t = "."), t.length > 0 && i && (t += "/"), n ? "/" + t : t;
2478
+ },
2479
+ isAbsolute: function(t) {
2480
+ return e(t), t.length > 0 && 47 === t.charCodeAt(0);
2481
+ },
2482
+ join: function() {
2483
+ if (0 === arguments.length) return ".";
2484
+ for (var t, r = 0; r < arguments.length; ++r) {
2485
+ var i = arguments[r];
2486
+ e(i), i.length > 0 && (void 0 === t ? t = i : t += "/" + i);
2487
+ }
2488
+ return void 0 === t ? "." : n.normalize(t);
2489
+ },
2490
+ relative: function(t, r) {
2491
+ if (e(t), e(r), t === r) return "";
2492
+ if ((t = n.resolve(t)) === (r = n.resolve(r))) return "";
2493
+ for (var i = 1; i < t.length && 47 === t.charCodeAt(i); ++i);
2494
+ for (var o = t.length, s = o - i, a = 1; a < r.length && 47 === r.charCodeAt(a); ++a);
2495
+ for (var h = r.length - a, c = s < h ? s : h, f = -1, u = 0; u <= c; ++u) {
2496
+ if (u === c) {
2497
+ if (h > c) {
2498
+ if (47 === r.charCodeAt(a + u)) return r.slice(a + u + 1);
2499
+ if (0 === u) return r.slice(a + u);
2500
+ } else s > c && (47 === t.charCodeAt(i + u) ? f = u : 0 === u && (f = 0));
2501
+ break;
2502
+ }
2503
+ var l = t.charCodeAt(i + u);
2504
+ if (l !== r.charCodeAt(a + u)) break;
2505
+ 47 === l && (f = u);
2506
+ }
2507
+ var d = "";
2508
+ for (u = i + f + 1; u <= o; ++u) u !== o && 47 !== t.charCodeAt(u) || (0 === d.length ? d += ".." : d += "/..");
2509
+ return d.length > 0 ? d + r.slice(a + f) : (a += f, 47 === r.charCodeAt(a) && ++a, r.slice(a));
2510
+ },
2511
+ _makeLong: function(t) {
2512
+ return t;
2513
+ },
2514
+ dirname: function(t) {
2515
+ if (e(t), 0 === t.length) return ".";
2516
+ for (var r = t.charCodeAt(0), n = 47 === r, i = -1, o = !0, s = t.length - 1; s >= 1; --s) if (47 === (r = t.charCodeAt(s))) {
2517
+ if (!o) {
2518
+ i = s;
2519
+ break;
2520
+ }
2521
+ } else o = !1;
2522
+ return -1 === i ? n ? "/" : "." : n && 1 === i ? "//" : t.slice(0, i);
2523
+ },
2524
+ basename: function(t, r) {
2525
+ if (void 0 !== r && "string" != typeof r) throw new TypeError("\"ext\" argument must be a string");
2526
+ e(t);
2527
+ var n, i = 0, o = -1, s = !0;
2528
+ if (void 0 !== r && r.length > 0 && r.length <= t.length) {
2529
+ if (r.length === t.length && r === t) return "";
2530
+ var a = r.length - 1, h = -1;
2531
+ for (n = t.length - 1; n >= 0; --n) {
2532
+ var c = t.charCodeAt(n);
2533
+ if (47 === c) {
2534
+ if (!s) {
2535
+ i = n + 1;
2536
+ break;
2537
+ }
2538
+ } else -1 === h && (s = !1, h = n + 1), a >= 0 && (c === r.charCodeAt(a) ? -1 === --a && (o = n) : (a = -1, o = h));
2539
+ }
2540
+ return i === o ? o = h : -1 === o && (o = t.length), t.slice(i, o);
2541
+ }
2542
+ for (n = t.length - 1; n >= 0; --n) if (47 === t.charCodeAt(n)) {
2543
+ if (!s) {
2544
+ i = n + 1;
2545
+ break;
2546
+ }
2547
+ } else -1 === o && (s = !1, o = n + 1);
2548
+ return -1 === o ? "" : t.slice(i, o);
2549
+ },
2550
+ extname: function(t) {
2551
+ e(t);
2552
+ for (var r = -1, n = 0, i = -1, o = !0, s = 0, a = t.length - 1; a >= 0; --a) {
2553
+ var h = t.charCodeAt(a);
2554
+ if (47 !== h) -1 === i && (o = !1, i = a + 1), 46 === h ? -1 === r ? r = a : 1 !== s && (s = 1) : -1 !== r && (s = -1);
2555
+ else if (!o) {
2556
+ n = a + 1;
2557
+ break;
2558
+ }
2559
+ }
2560
+ return -1 === r || -1 === i || 0 === s || 1 === s && r === i - 1 && r === n + 1 ? "" : t.slice(r, i);
2561
+ },
2562
+ format: function(t) {
2563
+ if (null === t || "object" != typeof t) throw new TypeError("The \"pathObject\" argument must be of type Object. Received type " + typeof t);
2564
+ return function(t, e) {
2565
+ var r = e.dir || e.root, n = e.base || (e.name || "") + (e.ext || "");
2566
+ return r ? r === e.root ? r + n : r + "/" + n : n;
2567
+ }(0, t);
2568
+ },
2569
+ parse: function(t) {
2570
+ e(t);
2571
+ var r = {
2572
+ root: "",
2573
+ dir: "",
2574
+ base: "",
2575
+ ext: "",
2576
+ name: ""
2577
+ };
2578
+ if (0 === t.length) return r;
2579
+ var n, i = t.charCodeAt(0), o = 47 === i;
2580
+ o ? (r.root = "/", n = 1) : n = 0;
2581
+ for (var s = -1, a = 0, h = -1, c = !0, f = t.length - 1, u = 0; f >= n; --f) if (47 !== (i = t.charCodeAt(f))) -1 === h && (c = !1, h = f + 1), 46 === i ? -1 === s ? s = f : 1 !== u && (u = 1) : -1 !== s && (u = -1);
2582
+ else if (!c) {
2583
+ a = f + 1;
2584
+ break;
2585
+ }
2586
+ return -1 === s || -1 === h || 0 === u || 1 === u && s === h - 1 && s === a + 1 ? -1 !== h && (r.base = r.name = 0 === a && o ? t.slice(1, h) : t.slice(a, h)) : (0 === a && o ? (r.name = t.slice(1, s), r.base = t.slice(1, h)) : (r.name = t.slice(a, s), r.base = t.slice(a, h)), r.ext = t.slice(s, h)), a > 0 ? r.dir = t.slice(0, a - 1) : o && (r.dir = "/"), r;
2587
+ },
2588
+ sep: "/",
2589
+ delimiter: ":",
2590
+ win32: null,
2591
+ posix: null
2592
+ };
2593
+ n.posix = n, t.exports = n;
2594
2594
  }
2595
2595
  }, e = {};
2596
2596
  function r(n) {
@@ -2616,9 +2616,12 @@ var require_umd = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2616
2616
  get: function() {
2617
2617
  return i.Utils;
2618
2618
  }
2619
- });
2619
+ }), t.default = {
2620
+ URI: e.URI,
2621
+ Utils: i.Utils
2622
+ };
2620
2623
  })(), n;
2621
- })()));
2624
+ })());
2622
2625
  }));
2623
2626
  //#endregion
2624
2627
  //#region node_modules/@volar/language-service/lib/utils/cancellation.js
@@ -3501,6 +3504,52 @@ var init_main$3 = __esmMin((() => {
3501
3504
  const offset = Math.min(lineOffset + position.character, nextLineOffset);
3502
3505
  return this.ensureBeforeEOL(offset, lineOffset);
3503
3506
  }
3507
+ getLineRange(line) {
3508
+ const lineOffsets = this.getLineOffsets();
3509
+ if (line >= lineOffsets.length) {
3510
+ const lastLine = lineOffsets.length - 1;
3511
+ return {
3512
+ start: {
3513
+ line: lastLine,
3514
+ character: 0
3515
+ },
3516
+ end: {
3517
+ line: lastLine,
3518
+ character: this._content.length - lineOffsets[lastLine]
3519
+ }
3520
+ };
3521
+ } else if (line < 0) return {
3522
+ start: {
3523
+ line: 0,
3524
+ character: 0
3525
+ },
3526
+ end: {
3527
+ line: 0,
3528
+ character: 0
3529
+ }
3530
+ };
3531
+ const startOffset = lineOffsets[line];
3532
+ const nextLineOffset = line + 1 < lineOffsets.length ? lineOffsets[line + 1] : this._content.length;
3533
+ const endOffset = this.ensureBeforeEOL(nextLineOffset, startOffset);
3534
+ return {
3535
+ start: {
3536
+ line,
3537
+ character: 0
3538
+ },
3539
+ end: {
3540
+ line,
3541
+ character: endOffset - startOffset
3542
+ }
3543
+ };
3544
+ }
3545
+ getEOLCharacters(line) {
3546
+ const lineOffsets = this.getLineOffsets();
3547
+ if (line >= lineOffsets.length) return "";
3548
+ else if (line < 0) return "";
3549
+ const nextLineOffset = line + 1 < lineOffsets.length ? lineOffsets[line + 1] : this._content.length;
3550
+ const eolOffset = this.ensureBeforeEOL(nextLineOffset, lineOffsets[line]);
3551
+ return this._content.substring(eolOffset, nextLineOffset);
3552
+ }
3504
3553
  ensureBeforeEOL(offset, lineOffset) {
3505
3554
  while (offset > lineOffset && isEOL$3(this._content.charCodeAt(offset - 1))) offset--;
3506
3555
  return offset;
@@ -8923,384 +8972,377 @@ var require_typescript$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
8923
8972
  }));
8924
8973
  //#endregion
8925
8974
  //#region node_modules/vscode-uri/lib/esm/index.mjs
8926
- var LIB, URI$2, Utils;
8975
+ function r(n) {
8976
+ var i = e[n];
8977
+ if (void 0 !== i) return i.exports;
8978
+ var o = e[n] = { exports: {} };
8979
+ return t$1[n](o, o.exports, r), o.exports;
8980
+ }
8981
+ function s(t, e) {
8982
+ if (!t.scheme && e) throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);
8983
+ if (t.scheme && !i.test(t.scheme)) throw new Error("[UriError]: Scheme contains illegal characters.");
8984
+ if (t.path) {
8985
+ if (t.authority) {
8986
+ if (!o.test(t.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");
8987
+ } else if (h.test(t.path)) throw new Error("[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters (\"//\")");
8988
+ }
8989
+ }
8990
+ function d(t, e, r) {
8991
+ let n, i = -1;
8992
+ for (let o = 0; o < t.length; o++) {
8993
+ const h = t.charCodeAt(o);
8994
+ if (h >= 97 && h <= 122 || h >= 65 && h <= 90 || h >= 48 && h <= 57 || 45 === h || 46 === h || 95 === h || 126 === h || e && 47 === h || r && 91 === h || r && 93 === h || r && 58 === h) -1 !== i && (n += encodeURIComponent(t.substring(i, o)), i = -1), void 0 !== n && (n += t.charAt(o));
8995
+ else {
8996
+ void 0 === n && (n = t.substr(0, o));
8997
+ const e = p[h];
8998
+ void 0 !== e ? (-1 !== i && (n += encodeURIComponent(t.substring(i, o)), i = -1), n += e) : -1 === i && (i = o);
8999
+ }
9000
+ }
9001
+ return -1 !== i && (n += encodeURIComponent(t.substring(i))), void 0 !== n ? n : t;
9002
+ }
9003
+ function m(t) {
9004
+ let e;
9005
+ for (let r = 0; r < t.length; r++) {
9006
+ const n = t.charCodeAt(r);
9007
+ 35 === n || 63 === n ? (void 0 === e && (e = t.substr(0, r)), e += p[n]) : void 0 !== e && (e += t[r]);
9008
+ }
9009
+ return void 0 !== e ? e : t;
9010
+ }
9011
+ function y(t, e) {
9012
+ let r;
9013
+ return r = t.authority && t.path.length > 1 && "file" === t.scheme ? `//${t.authority}${t.path}` : 47 === t.path.charCodeAt(0) && (t.path.charCodeAt(1) >= 65 && t.path.charCodeAt(1) <= 90 || t.path.charCodeAt(1) >= 97 && t.path.charCodeAt(1) <= 122) && 58 === t.path.charCodeAt(2) ? e ? t.path.substr(1) : t.path[1].toLowerCase() + t.path.substr(2) : t.path, n && (r = r.replace(/\//g, "\\")), r;
9014
+ }
9015
+ function v(t, e) {
9016
+ const r = e ? m : d;
9017
+ let n = "", { scheme: i, authority: o, path: h, query: s, fragment: a } = t;
9018
+ if (i && (n += i, n += ":"), (o || "file" === i) && (n += c, n += c), o) {
9019
+ let t = o.indexOf("@");
9020
+ if (-1 !== t) {
9021
+ const e = o.substr(0, t);
9022
+ o = o.substr(t + 1), t = e.lastIndexOf(":"), -1 === t ? n += r(e, !1, !1) : (n += r(e.substr(0, t), !1, !1), n += ":", n += r(e.substr(t + 1), !1, !0)), n += "@";
9023
+ }
9024
+ o = o.toLowerCase(), t = o.lastIndexOf(":"), -1 === t ? n += r(o, !1, !0) : (n += r(o.substr(0, t), !1, !0), n += o.substr(t));
9025
+ }
9026
+ if (h) {
9027
+ if (h.length >= 3 && 47 === h.charCodeAt(0) && 58 === h.charCodeAt(2)) {
9028
+ const t = h.charCodeAt(1);
9029
+ t >= 65 && t <= 90 && (h = `/${String.fromCharCode(t + 32)}:${h.substr(3)}`);
9030
+ } else if (h.length >= 2 && 58 === h.charCodeAt(1)) {
9031
+ const t = h.charCodeAt(0);
9032
+ t >= 65 && t <= 90 && (h = `${String.fromCharCode(t + 32)}:${h.substr(2)}`);
9033
+ }
9034
+ n += r(h, !0, !1);
9035
+ }
9036
+ return s && (n += "?", n += r(s, !1, !1)), a && (n += "#", n += e ? a : d(a, !1, !1)), n;
9037
+ }
9038
+ function b(t) {
9039
+ try {
9040
+ return decodeURIComponent(t);
9041
+ } catch {
9042
+ return t.length > 3 ? t.substr(0, 3) + b(t.substr(3)) : t;
9043
+ }
9044
+ }
9045
+ function A(t) {
9046
+ return t.match(C) ? t.replace(C, (t) => b(t)) : t;
9047
+ }
9048
+ var t$1, e, n, i, o, h, a$2, c, f$2, u, l, g, p, C, w, x, P, _;
8927
9049
  var init_esm = __esmMin((() => {
8928
- (() => {
8929
- "use strict";
8930
- var t = { 975: (t) => {
8931
- function e(t) {
8932
- if ("string" != typeof t) throw new TypeError("Path must be a string. Received " + JSON.stringify(t));
8933
- }
8934
- function r(t, e) {
8935
- for (var r, n = "", i = 0, o = -1, s = 0, h = 0; h <= t.length; ++h) {
8936
- if (h < t.length) r = t.charCodeAt(h);
8937
- else {
8938
- if (47 === r) break;
8939
- r = 47;
8940
- }
8941
- if (47 === r) {
8942
- if (o === h - 1 || 1 === s);
8943
- else if (o !== h - 1 && 2 === s) {
8944
- if (n.length < 2 || 2 !== i || 46 !== n.charCodeAt(n.length - 1) || 46 !== n.charCodeAt(n.length - 2)) {
8945
- if (n.length > 2) {
8946
- var a = n.lastIndexOf("/");
8947
- if (a !== n.length - 1) {
8948
- -1 === a ? (n = "", i = 0) : i = (n = n.slice(0, a)).length - 1 - n.lastIndexOf("/"), o = h, s = 0;
8949
- continue;
8950
- }
8951
- } else if (2 === n.length || 1 === n.length) {
8952
- n = "", i = 0, o = h, s = 0;
9050
+ t$1 = { 975(t) {
9051
+ function e(t) {
9052
+ if ("string" != typeof t) throw new TypeError("Path must be a string. Received " + JSON.stringify(t));
9053
+ }
9054
+ function r(t, e) {
9055
+ for (var r, n = "", i = 0, o = -1, h = 0, s = 0; s <= t.length; ++s) {
9056
+ if (s < t.length) r = t.charCodeAt(s);
9057
+ else {
9058
+ if (47 === r) break;
9059
+ r = 47;
9060
+ }
9061
+ if (47 === r) {
9062
+ if (o === s - 1 || 1 === h);
9063
+ else if (o !== s - 1 && 2 === h) {
9064
+ if (n.length < 2 || 2 !== i || 46 !== n.charCodeAt(n.length - 1) || 46 !== n.charCodeAt(n.length - 2)) {
9065
+ if (n.length > 2) {
9066
+ var a = n.lastIndexOf("/");
9067
+ if (a !== n.length - 1) {
9068
+ -1 === a ? (n = "", i = 0) : i = (n = n.slice(0, a)).length - 1 - n.lastIndexOf("/"), o = s, h = 0;
8953
9069
  continue;
8954
9070
  }
9071
+ } else if (2 === n.length || 1 === n.length) {
9072
+ n = "", i = 0, o = s, h = 0;
9073
+ continue;
8955
9074
  }
8956
- e && (n.length > 0 ? n += "/.." : n = "..", i = 2);
8957
- } else n.length > 0 ? n += "/" + t.slice(o + 1, h) : n = t.slice(o + 1, h), i = h - o - 1;
8958
- o = h, s = 0;
8959
- } else 46 === r && -1 !== s ? ++s : s = -1;
8960
- }
8961
- return n;
8962
- }
8963
- var n = {
8964
- resolve: function() {
8965
- for (var t, n = "", i = !1, o = arguments.length - 1; o >= -1 && !i; o--) {
8966
- var s;
8967
- o >= 0 ? s = arguments[o] : (void 0 === t && (t = process.cwd()), s = t), e(s), 0 !== s.length && (n = s + "/" + n, i = 47 === s.charCodeAt(0));
8968
- }
8969
- return n = r(n, !i), i ? n.length > 0 ? "/" + n : "/" : n.length > 0 ? n : ".";
8970
- },
8971
- normalize: function(t) {
8972
- if (e(t), 0 === t.length) return ".";
8973
- var n = 47 === t.charCodeAt(0), i = 47 === t.charCodeAt(t.length - 1);
8974
- return 0 !== (t = r(t, !n)).length || n || (t = "."), t.length > 0 && i && (t += "/"), n ? "/" + t : t;
8975
- },
8976
- isAbsolute: function(t) {
8977
- return e(t), t.length > 0 && 47 === t.charCodeAt(0);
8978
- },
8979
- join: function() {
8980
- if (0 === arguments.length) return ".";
8981
- for (var t, r = 0; r < arguments.length; ++r) {
8982
- var i = arguments[r];
8983
- e(i), i.length > 0 && (void 0 === t ? t = i : t += "/" + i);
8984
- }
8985
- return void 0 === t ? "." : n.normalize(t);
8986
- },
8987
- relative: function(t, r) {
8988
- if (e(t), e(r), t === r) return "";
8989
- if ((t = n.resolve(t)) === (r = n.resolve(r))) return "";
8990
- for (var i = 1; i < t.length && 47 === t.charCodeAt(i); ++i);
8991
- for (var o = t.length, s = o - i, h = 1; h < r.length && 47 === r.charCodeAt(h); ++h);
8992
- for (var a = r.length - h, c = s < a ? s : a, f = -1, u = 0; u <= c; ++u) {
8993
- if (u === c) {
8994
- if (a > c) {
8995
- if (47 === r.charCodeAt(h + u)) return r.slice(h + u + 1);
8996
- if (0 === u) return r.slice(h + u);
8997
- } else s > c && (47 === t.charCodeAt(i + u) ? f = u : 0 === u && (f = 0));
8998
- break;
8999
9075
  }
9000
- var l = t.charCodeAt(i + u);
9001
- if (l !== r.charCodeAt(h + u)) break;
9002
- 47 === l && (f = u);
9076
+ e && (n.length > 0 ? n += "/.." : n = "..", i = 2);
9077
+ } else n.length > 0 ? n += "/" + t.slice(o + 1, s) : n = t.slice(o + 1, s), i = s - o - 1;
9078
+ o = s, h = 0;
9079
+ } else 46 === r && -1 !== h ? ++h : h = -1;
9080
+ }
9081
+ return n;
9082
+ }
9083
+ var n = {
9084
+ resolve: function() {
9085
+ for (var t, n = "", i = !1, o = arguments.length - 1; o >= -1 && !i; o--) {
9086
+ var h;
9087
+ o >= 0 ? h = arguments[o] : (void 0 === t && (t = process.cwd()), h = t), e(h), 0 !== h.length && (n = h + "/" + n, i = 47 === h.charCodeAt(0));
9088
+ }
9089
+ return n = r(n, !i), i ? n.length > 0 ? "/" + n : "/" : n.length > 0 ? n : ".";
9090
+ },
9091
+ normalize: function(t) {
9092
+ if (e(t), 0 === t.length) return ".";
9093
+ var n = 47 === t.charCodeAt(0), i = 47 === t.charCodeAt(t.length - 1);
9094
+ return 0 !== (t = r(t, !n)).length || n || (t = "."), t.length > 0 && i && (t += "/"), n ? "/" + t : t;
9095
+ },
9096
+ isAbsolute: function(t) {
9097
+ return e(t), t.length > 0 && 47 === t.charCodeAt(0);
9098
+ },
9099
+ join: function() {
9100
+ if (0 === arguments.length) return ".";
9101
+ for (var t, r = 0; r < arguments.length; ++r) {
9102
+ var i = arguments[r];
9103
+ e(i), i.length > 0 && (void 0 === t ? t = i : t += "/" + i);
9104
+ }
9105
+ return void 0 === t ? "." : n.normalize(t);
9106
+ },
9107
+ relative: function(t, r) {
9108
+ if (e(t), e(r), t === r) return "";
9109
+ if ((t = n.resolve(t)) === (r = n.resolve(r))) return "";
9110
+ for (var i = 1; i < t.length && 47 === t.charCodeAt(i); ++i);
9111
+ for (var o = t.length, h = o - i, s = 1; s < r.length && 47 === r.charCodeAt(s); ++s);
9112
+ for (var a = r.length - s, c = h < a ? h : a, f = -1, u = 0; u <= c; ++u) {
9113
+ if (u === c) {
9114
+ if (a > c) {
9115
+ if (47 === r.charCodeAt(s + u)) return r.slice(s + u + 1);
9116
+ if (0 === u) return r.slice(s + u);
9117
+ } else h > c && (47 === t.charCodeAt(i + u) ? f = u : 0 === u && (f = 0));
9118
+ break;
9003
9119
  }
9004
- var g = "";
9005
- for (u = i + f + 1; u <= o; ++u) u !== o && 47 !== t.charCodeAt(u) || (0 === g.length ? g += ".." : g += "/..");
9006
- return g.length > 0 ? g + r.slice(h + f) : (h += f, 47 === r.charCodeAt(h) && ++h, r.slice(h));
9007
- },
9008
- _makeLong: function(t) {
9009
- return t;
9010
- },
9011
- dirname: function(t) {
9012
- if (e(t), 0 === t.length) return ".";
9013
- for (var r = t.charCodeAt(0), n = 47 === r, i = -1, o = !0, s = t.length - 1; s >= 1; --s) if (47 === (r = t.charCodeAt(s))) {
9014
- if (!o) {
9015
- i = s;
9016
- break;
9017
- }
9018
- } else o = !1;
9019
- return -1 === i ? n ? "/" : "." : n && 1 === i ? "//" : t.slice(0, i);
9020
- },
9021
- basename: function(t, r) {
9022
- if (void 0 !== r && "string" != typeof r) throw new TypeError("\"ext\" argument must be a string");
9023
- e(t);
9024
- var n, i = 0, o = -1, s = !0;
9025
- if (void 0 !== r && r.length > 0 && r.length <= t.length) {
9026
- if (r.length === t.length && r === t) return "";
9027
- var h = r.length - 1, a = -1;
9028
- for (n = t.length - 1; n >= 0; --n) {
9029
- var c = t.charCodeAt(n);
9030
- if (47 === c) {
9031
- if (!s) {
9032
- i = n + 1;
9033
- break;
9034
- }
9035
- } else -1 === a && (s = !1, a = n + 1), h >= 0 && (c === r.charCodeAt(h) ? -1 == --h && (o = n) : (h = -1, o = a));
9036
- }
9037
- return i === o ? o = a : -1 === o && (o = t.length), t.slice(i, o);
9120
+ var l = t.charCodeAt(i + u);
9121
+ if (l !== r.charCodeAt(s + u)) break;
9122
+ 47 === l && (f = u);
9123
+ }
9124
+ var g = "";
9125
+ for (u = i + f + 1; u <= o; ++u) u !== o && 47 !== t.charCodeAt(u) || (0 === g.length ? g += ".." : g += "/..");
9126
+ return g.length > 0 ? g + r.slice(s + f) : (s += f, 47 === r.charCodeAt(s) && ++s, r.slice(s));
9127
+ },
9128
+ _makeLong: function(t) {
9129
+ return t;
9130
+ },
9131
+ dirname: function(t) {
9132
+ if (e(t), 0 === t.length) return ".";
9133
+ for (var r = t.charCodeAt(0), n = 47 === r, i = -1, o = !0, h = t.length - 1; h >= 1; --h) if (47 === (r = t.charCodeAt(h))) {
9134
+ if (!o) {
9135
+ i = h;
9136
+ break;
9038
9137
  }
9039
- for (n = t.length - 1; n >= 0; --n) if (47 === t.charCodeAt(n)) {
9040
- if (!s) {
9041
- i = n + 1;
9042
- break;
9043
- }
9044
- } else -1 === o && (s = !1, o = n + 1);
9045
- return -1 === o ? "" : t.slice(i, o);
9046
- },
9047
- extname: function(t) {
9048
- e(t);
9049
- for (var r = -1, n = 0, i = -1, o = !0, s = 0, h = t.length - 1; h >= 0; --h) {
9050
- var a = t.charCodeAt(h);
9051
- if (47 !== a) -1 === i && (o = !1, i = h + 1), 46 === a ? -1 === r ? r = h : 1 !== s && (s = 1) : -1 !== r && (s = -1);
9052
- else if (!o) {
9053
- n = h + 1;
9054
- break;
9055
- }
9138
+ } else o = !1;
9139
+ return -1 === i ? n ? "/" : "." : n && 1 === i ? "//" : t.slice(0, i);
9140
+ },
9141
+ basename: function(t, r) {
9142
+ if (void 0 !== r && "string" != typeof r) throw new TypeError("\"ext\" argument must be a string");
9143
+ e(t);
9144
+ var n, i = 0, o = -1, h = !0;
9145
+ if (void 0 !== r && r.length > 0 && r.length <= t.length) {
9146
+ if (r.length === t.length && r === t) return "";
9147
+ var s = r.length - 1, a = -1;
9148
+ for (n = t.length - 1; n >= 0; --n) {
9149
+ var c = t.charCodeAt(n);
9150
+ if (47 === c) {
9151
+ if (!h) {
9152
+ i = n + 1;
9153
+ break;
9154
+ }
9155
+ } else -1 === a && (h = !1, a = n + 1), s >= 0 && (c === r.charCodeAt(s) ? -1 === --s && (o = n) : (s = -1, o = a));
9056
9156
  }
9057
- return -1 === r || -1 === i || 0 === s || 1 === s && r === i - 1 && r === n + 1 ? "" : t.slice(r, i);
9058
- },
9059
- format: function(t) {
9060
- if (null === t || "object" != typeof t) throw new TypeError("The \"pathObject\" argument must be of type Object. Received type " + typeof t);
9061
- return function(t, e) {
9062
- var r = e.dir || e.root, n = e.base || (e.name || "") + (e.ext || "");
9063
- return r ? r === e.root ? r + n : r + "/" + n : n;
9064
- }(0, t);
9065
- },
9066
- parse: function(t) {
9067
- e(t);
9068
- var r = {
9069
- root: "",
9070
- dir: "",
9071
- base: "",
9072
- ext: "",
9073
- name: ""
9074
- };
9075
- if (0 === t.length) return r;
9076
- var n, i = t.charCodeAt(0), o = 47 === i;
9077
- o ? (r.root = "/", n = 1) : n = 0;
9078
- for (var s = -1, h = 0, a = -1, c = !0, f = t.length - 1, u = 0; f >= n; --f) if (47 !== (i = t.charCodeAt(f))) -1 === a && (c = !1, a = f + 1), 46 === i ? -1 === s ? s = f : 1 !== u && (u = 1) : -1 !== s && (u = -1);
9079
- else if (!c) {
9080
- h = f + 1;
9157
+ return i === o ? o = a : -1 === o && (o = t.length), t.slice(i, o);
9158
+ }
9159
+ for (n = t.length - 1; n >= 0; --n) if (47 === t.charCodeAt(n)) {
9160
+ if (!h) {
9161
+ i = n + 1;
9081
9162
  break;
9082
9163
  }
9083
- return -1 === s || -1 === a || 0 === u || 1 === u && s === a - 1 && s === h + 1 ? -1 !== a && (r.base = r.name = 0 === h && o ? t.slice(1, a) : t.slice(h, a)) : (0 === h && o ? (r.name = t.slice(1, s), r.base = t.slice(1, a)) : (r.name = t.slice(h, s), r.base = t.slice(h, a)), r.ext = t.slice(s, a)), h > 0 ? r.dir = t.slice(0, h - 1) : o && (r.dir = "/"), r;
9084
- },
9085
- sep: "/",
9086
- delimiter: ":",
9087
- win32: null,
9088
- posix: null
9089
- };
9090
- n.posix = n, t.exports = n;
9091
- } }, e = {};
9092
- function r(n) {
9093
- var i = e[n];
9094
- if (void 0 !== i) return i.exports;
9095
- var o = e[n] = { exports: {} };
9096
- return t[n](o, o.exports, r), o.exports;
9097
- }
9098
- r.d = (t, e) => {
9099
- for (var n in e) r.o(e, n) && !r.o(t, n) && Object.defineProperty(t, n, {
9100
- enumerable: !0,
9101
- get: e[n]
9102
- });
9103
- }, r.o = (t, e) => Object.prototype.hasOwnProperty.call(t, e), r.r = (t) => {
9104
- "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 });
9105
- };
9106
- var n = {};
9107
- let i;
9108
- if (r.r(n), r.d(n, {
9109
- URI: () => l,
9110
- Utils: () => I
9111
- }), "object" == typeof process) i = "win32" === process.platform;
9112
- else if ("object" == typeof navigator) i = navigator.userAgent.indexOf("Windows") >= 0;
9113
- const o = /^\w[\w\d+.-]*$/, s = /^\//, h = /^\/\//;
9114
- function a(t, e) {
9115
- if (!t.scheme && e) throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);
9116
- if (t.scheme && !o.test(t.scheme)) throw new Error("[UriError]: Scheme contains illegal characters.");
9117
- if (t.path) {
9118
- if (t.authority) {
9119
- if (!s.test(t.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");
9120
- } else if (h.test(t.path)) throw new Error("[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters (\"//\")");
9121
- }
9122
- }
9123
- const c = "", f = "/", u = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
9124
- class l {
9125
- static isUri(t) {
9126
- return t instanceof l || !!t && "string" == typeof t.authority && "string" == typeof t.fragment && "string" == typeof t.path && "string" == typeof t.query && "string" == typeof t.scheme && "string" == typeof t.fsPath && "function" == typeof t.with && "function" == typeof t.toString;
9127
- }
9128
- scheme;
9129
- authority;
9130
- path;
9131
- query;
9132
- fragment;
9133
- constructor(t, e, r, n, i, o = !1) {
9134
- "object" == typeof t ? (this.scheme = t.scheme || c, this.authority = t.authority || c, this.path = t.path || c, this.query = t.query || c, this.fragment = t.fragment || c) : (this.scheme = function(t, e) {
9135
- return t || e ? t : "file";
9136
- }(t, o), this.authority = e || c, this.path = function(t, e) {
9137
- switch (t) {
9138
- case "https":
9139
- case "http":
9140
- case "file": e ? e[0] !== f && (e = f + e) : e = f;
9141
- }
9142
- return e;
9143
- }(this.scheme, r || c), this.query = n || c, this.fragment = i || c, a(this, o));
9144
- }
9145
- get fsPath() {
9146
- return v(this, !1);
9147
- }
9148
- with(t) {
9149
- if (!t) return this;
9150
- let { scheme: e, authority: r, path: n, query: i, fragment: o } = t;
9151
- return void 0 === e ? e = this.scheme : null === e && (e = c), void 0 === r ? r = this.authority : null === r && (r = c), void 0 === n ? n = this.path : null === n && (n = c), void 0 === i ? i = this.query : null === i && (i = c), void 0 === o ? o = this.fragment : null === o && (o = c), e === this.scheme && r === this.authority && n === this.path && i === this.query && o === this.fragment ? this : new d(e, r, n, i, o);
9152
- }
9153
- static parse(t, e = !1) {
9154
- const r = u.exec(t);
9155
- return r ? new d(r[2] || c, w(r[4] || c), w(r[5] || c), w(r[7] || c), w(r[9] || c), e) : new d(c, c, c, c, c);
9156
- }
9157
- static file(t) {
9158
- let e = c;
9159
- if (i && (t = t.replace(/\\/g, f)), t[0] === f && t[1] === f) {
9160
- const r = t.indexOf(f, 2);
9161
- -1 === r ? (e = t.substring(2), t = f) : (e = t.substring(2, r), t = t.substring(r) || f);
9162
- }
9163
- return new d("file", e, t, c, c);
9164
- }
9165
- static from(t) {
9166
- const e = new d(t.scheme, t.authority, t.path, t.query, t.fragment);
9167
- return a(e, !0), e;
9168
- }
9169
- toString(t = !1) {
9170
- return b(this, t);
9171
- }
9172
- toJSON() {
9173
- return this;
9174
- }
9175
- static revive(t) {
9176
- if (t) {
9177
- if (t instanceof l) return t;
9178
- {
9179
- const e = new d(t);
9180
- return e._formatted = t.external, e._fsPath = t._sep === g ? t.fsPath : null, e;
9164
+ } else -1 === o && (h = !1, o = n + 1);
9165
+ return -1 === o ? "" : t.slice(i, o);
9166
+ },
9167
+ extname: function(t) {
9168
+ e(t);
9169
+ for (var r = -1, n = 0, i = -1, o = !0, h = 0, s = t.length - 1; s >= 0; --s) {
9170
+ var a = t.charCodeAt(s);
9171
+ if (47 !== a) -1 === i && (o = !1, i = s + 1), 46 === a ? -1 === r ? r = s : 1 !== h && (h = 1) : -1 !== r && (h = -1);
9172
+ else if (!o) {
9173
+ n = s + 1;
9174
+ break;
9181
9175
  }
9182
9176
  }
9183
- return t;
9184
- }
9185
- }
9186
- const g = i ? 1 : void 0;
9187
- class d extends l {
9188
- _formatted = null;
9189
- _fsPath = null;
9190
- get fsPath() {
9191
- return this._fsPath || (this._fsPath = v(this, !1)), this._fsPath;
9192
- }
9193
- toString(t = !1) {
9194
- return t ? b(this, !0) : (this._formatted || (this._formatted = b(this, !1)), this._formatted);
9195
- }
9196
- toJSON() {
9197
- const t = { $mid: 1 };
9198
- return this._fsPath && (t.fsPath = this._fsPath, t._sep = g), this._formatted && (t.external = this._formatted), this.path && (t.path = this.path), this.scheme && (t.scheme = this.scheme), this.authority && (t.authority = this.authority), this.query && (t.query = this.query), this.fragment && (t.fragment = this.fragment), t;
9199
- }
9200
- }
9201
- const p = {
9202
- 58: "%3A",
9203
- 47: "%2F",
9204
- 63: "%3F",
9205
- 35: "%23",
9206
- 91: "%5B",
9207
- 93: "%5D",
9208
- 64: "%40",
9209
- 33: "%21",
9210
- 36: "%24",
9211
- 38: "%26",
9212
- 39: "%27",
9213
- 40: "%28",
9214
- 41: "%29",
9215
- 42: "%2A",
9216
- 43: "%2B",
9217
- 44: "%2C",
9218
- 59: "%3B",
9219
- 61: "%3D",
9220
- 32: "%20"
9177
+ return -1 === r || -1 === i || 0 === h || 1 === h && r === i - 1 && r === n + 1 ? "" : t.slice(r, i);
9178
+ },
9179
+ format: function(t) {
9180
+ if (null === t || "object" != typeof t) throw new TypeError("The \"pathObject\" argument must be of type Object. Received type " + typeof t);
9181
+ return function(t, e) {
9182
+ var r = e.dir || e.root, n = e.base || (e.name || "") + (e.ext || "");
9183
+ return r ? r === e.root ? r + n : r + "/" + n : n;
9184
+ }(0, t);
9185
+ },
9186
+ parse: function(t) {
9187
+ e(t);
9188
+ var r = {
9189
+ root: "",
9190
+ dir: "",
9191
+ base: "",
9192
+ ext: "",
9193
+ name: ""
9194
+ };
9195
+ if (0 === t.length) return r;
9196
+ var n, i = t.charCodeAt(0), o = 47 === i;
9197
+ o ? (r.root = "/", n = 1) : n = 0;
9198
+ for (var h = -1, s = 0, a = -1, c = !0, f = t.length - 1, u = 0; f >= n; --f) if (47 !== (i = t.charCodeAt(f))) -1 === a && (c = !1, a = f + 1), 46 === i ? -1 === h ? h = f : 1 !== u && (u = 1) : -1 !== h && (u = -1);
9199
+ else if (!c) {
9200
+ s = f + 1;
9201
+ break;
9202
+ }
9203
+ return -1 === h || -1 === a || 0 === u || 1 === u && h === a - 1 && h === s + 1 ? -1 !== a && (r.base = r.name = 0 === s && o ? t.slice(1, a) : t.slice(s, a)) : (0 === s && o ? (r.name = t.slice(1, h), r.base = t.slice(1, a)) : (r.name = t.slice(s, h), r.base = t.slice(s, a)), r.ext = t.slice(h, a)), s > 0 ? r.dir = t.slice(0, s - 1) : o && (r.dir = "/"), r;
9204
+ },
9205
+ sep: "/",
9206
+ delimiter: ":",
9207
+ win32: null,
9208
+ posix: null
9221
9209
  };
9222
- function m(t, e, r) {
9223
- let n, i = -1;
9224
- for (let o = 0; o < t.length; o++) {
9225
- const s = t.charCodeAt(o);
9226
- if (s >= 97 && s <= 122 || s >= 65 && s <= 90 || s >= 48 && s <= 57 || 45 === s || 46 === s || 95 === s || 126 === s || e && 47 === s || r && 91 === s || r && 93 === s || r && 58 === s) -1 !== i && (n += encodeURIComponent(t.substring(i, o)), i = -1), void 0 !== n && (n += t.charAt(o));
9227
- else {
9228
- void 0 === n && (n = t.substr(0, o));
9229
- const e = p[s];
9230
- void 0 !== e ? (-1 !== i && (n += encodeURIComponent(t.substring(i, o)), i = -1), n += e) : -1 === i && (i = o);
9210
+ n.posix = n, t.exports = n;
9211
+ } };
9212
+ e = {};
9213
+ if (r.d = (t, e) => {
9214
+ for (var n in e) r.o(e, n) && !r.o(t, n) && Object.defineProperty(t, n, {
9215
+ enumerable: !0,
9216
+ get: e[n]
9217
+ });
9218
+ }, r.o = (t, e) => Object.prototype.hasOwnProperty.call(t, e), "object" == typeof process) n = "win32" === process.platform;
9219
+ else if ("object" == typeof navigator) n = navigator.userAgent.indexOf("Windows") >= 0;
9220
+ i = /^\w[\w\d+.-]*$/;
9221
+ o = /^\//;
9222
+ h = /^\/\//;
9223
+ a$2 = "";
9224
+ c = "/";
9225
+ f$2 = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
9226
+ u = class u {
9227
+ static isUri(t) {
9228
+ return t instanceof u || !!t && "string" == typeof t.authority && "string" == typeof t.fragment && "string" == typeof t.path && "string" == typeof t.query && "string" == typeof t.scheme && "string" == typeof t.fsPath && "function" == typeof t.with && "function" == typeof t.toString;
9229
+ }
9230
+ scheme;
9231
+ authority;
9232
+ path;
9233
+ query;
9234
+ fragment;
9235
+ constructor(t, e, r, n, i, o = !1) {
9236
+ "object" == typeof t ? (this.scheme = t.scheme || a$2, this.authority = t.authority || a$2, this.path = t.path || a$2, this.query = t.query || a$2, this.fragment = t.fragment || a$2) : (this.scheme = function(t, e) {
9237
+ return t || e ? t : "file";
9238
+ }(t, o), this.authority = e || a$2, this.path = function(t, e) {
9239
+ switch (t) {
9240
+ case "https":
9241
+ case "http":
9242
+ case "file": e ? e[0] !== c && (e = c + e) : e = c;
9243
+ }
9244
+ return e;
9245
+ }(this.scheme, r || a$2), this.query = n || a$2, this.fragment = i || a$2, s(this, o));
9246
+ }
9247
+ get fsPath() {
9248
+ return y(this, !1);
9249
+ }
9250
+ with(t) {
9251
+ if (!t) return this;
9252
+ let { scheme: e, authority: r, path: n, query: i, fragment: o } = t;
9253
+ return void 0 === e ? e = this.scheme : null === e && (e = a$2), void 0 === r ? r = this.authority : null === r && (r = a$2), void 0 === n ? n = this.path : null === n && (n = a$2), void 0 === i ? i = this.query : null === i && (i = a$2), void 0 === o ? o = this.fragment : null === o && (o = a$2), e === this.scheme && r === this.authority && n === this.path && i === this.query && o === this.fragment ? this : new g(e, r, n, i, o);
9254
+ }
9255
+ static parse(t, e = !1) {
9256
+ const r = f$2.exec(t);
9257
+ return r ? new g(r[2] || a$2, A(r[4] || a$2), A(r[5] || a$2), A(r[7] || a$2), A(r[9] || a$2), e) : new g(a$2, a$2, a$2, a$2, a$2);
9258
+ }
9259
+ static file(t) {
9260
+ let e = a$2;
9261
+ if (n && (t = t.replace(/\\/g, c)), t[0] === c && t[1] === c) {
9262
+ const r = t.indexOf(c, 2);
9263
+ -1 === r ? (e = t.substring(2), t = c) : (e = t.substring(2, r), t = t.substring(r) || c);
9264
+ }
9265
+ return new g("file", e, t, a$2, a$2);
9266
+ }
9267
+ static from(t) {
9268
+ const e = new g(t.scheme, t.authority, t.path, t.query, t.fragment);
9269
+ return s(e, !0), e;
9270
+ }
9271
+ toString(t = !1) {
9272
+ return v(this, t);
9273
+ }
9274
+ toJSON() {
9275
+ return this;
9276
+ }
9277
+ static revive(t) {
9278
+ if (t) {
9279
+ if (t instanceof u) return t;
9280
+ {
9281
+ const e = new g(t);
9282
+ return e._formatted = t.external, e._fsPath = t._sep === l ? t.fsPath : null, e;
9231
9283
  }
9232
9284
  }
9233
- return -1 !== i && (n += encodeURIComponent(t.substring(i))), void 0 !== n ? n : t;
9285
+ return t;
9234
9286
  }
9235
- function y(t) {
9236
- let e;
9237
- for (let r = 0; r < t.length; r++) {
9238
- const n = t.charCodeAt(r);
9239
- 35 === n || 63 === n ? (void 0 === e && (e = t.substr(0, r)), e += p[n]) : void 0 !== e && (e += t[r]);
9240
- }
9241
- return void 0 !== e ? e : t;
9287
+ };
9288
+ l = n ? 1 : void 0;
9289
+ g = class extends u {
9290
+ _formatted = null;
9291
+ _fsPath = null;
9292
+ get fsPath() {
9293
+ return this._fsPath || (this._fsPath = y(this, !1)), this._fsPath;
9242
9294
  }
9243
- function v(t, e) {
9244
- let r;
9245
- return r = t.authority && t.path.length > 1 && "file" === t.scheme ? `//${t.authority}${t.path}` : 47 === t.path.charCodeAt(0) && (t.path.charCodeAt(1) >= 65 && t.path.charCodeAt(1) <= 90 || t.path.charCodeAt(1) >= 97 && t.path.charCodeAt(1) <= 122) && 58 === t.path.charCodeAt(2) ? e ? t.path.substr(1) : t.path[1].toLowerCase() + t.path.substr(2) : t.path, i && (r = r.replace(/\//g, "\\")), r;
9295
+ toString(t = !1) {
9296
+ return t ? v(this, !0) : (this._formatted || (this._formatted = v(this, !1)), this._formatted);
9246
9297
  }
9247
- function b(t, e) {
9248
- const r = e ? y : m;
9249
- let n = "", { scheme: i, authority: o, path: s, query: h, fragment: a } = t;
9250
- if (i && (n += i, n += ":"), (o || "file" === i) && (n += f, n += f), o) {
9251
- let t = o.indexOf("@");
9252
- if (-1 !== t) {
9253
- const e = o.substr(0, t);
9254
- o = o.substr(t + 1), t = e.lastIndexOf(":"), -1 === t ? n += r(e, !1, !1) : (n += r(e.substr(0, t), !1, !1), n += ":", n += r(e.substr(t + 1), !1, !0)), n += "@";
9255
- }
9256
- o = o.toLowerCase(), t = o.lastIndexOf(":"), -1 === t ? n += r(o, !1, !0) : (n += r(o.substr(0, t), !1, !0), n += o.substr(t));
9257
- }
9258
- if (s) {
9259
- if (s.length >= 3 && 47 === s.charCodeAt(0) && 58 === s.charCodeAt(2)) {
9260
- const t = s.charCodeAt(1);
9261
- t >= 65 && t <= 90 && (s = `/${String.fromCharCode(t + 32)}:${s.substr(3)}`);
9262
- } else if (s.length >= 2 && 58 === s.charCodeAt(1)) {
9263
- const t = s.charCodeAt(0);
9264
- t >= 65 && t <= 90 && (s = `${String.fromCharCode(t + 32)}:${s.substr(2)}`);
9265
- }
9266
- n += r(s, !0, !1);
9267
- }
9268
- return h && (n += "?", n += r(h, !1, !1)), a && (n += "#", n += e ? a : m(a, !1, !1)), n;
9298
+ toJSON() {
9299
+ const t = { $mid: 1 };
9300
+ return this._fsPath && (t.fsPath = this._fsPath, t._sep = l), this._formatted && (t.external = this._formatted), this.path && (t.path = this.path), this.scheme && (t.scheme = this.scheme), this.authority && (t.authority = this.authority), this.query && (t.query = this.query), this.fragment && (t.fragment = this.fragment), t;
9269
9301
  }
9270
- function C(t) {
9271
- try {
9272
- return decodeURIComponent(t);
9273
- } catch {
9274
- return t.length > 3 ? t.substr(0, 3) + C(t.substr(3)) : t;
9275
- }
9276
- }
9277
- const A = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
9278
- function w(t) {
9279
- return t.match(A) ? t.replace(A, ((t) => C(t))) : t;
9280
- }
9281
- var x = r(975);
9282
- const P = x.posix || x, _ = "/";
9283
- var I;
9284
- (function(t) {
9285
- t.joinPath = function(t, ...e) {
9286
- return t.with({ path: P.join(t.path, ...e) });
9287
- }, t.resolvePath = function(t, ...e) {
9288
- let r = t.path, n = !1;
9289
- r[0] !== _ && (r = _ + r, n = !0);
9290
- let i = P.resolve(r, ...e);
9291
- return n && i[0] === _ && !t.authority && (i = i.substring(1)), t.with({ path: i });
9292
- }, t.dirname = function(t) {
9293
- if (0 === t.path.length || t.path === _) return t;
9294
- let e = P.dirname(t.path);
9295
- return 1 === e.length && 46 === e.charCodeAt(0) && (e = ""), t.with({ path: e });
9296
- }, t.basename = function(t) {
9297
- return P.basename(t.path);
9298
- }, t.extname = function(t) {
9299
- return P.extname(t.path);
9300
- };
9301
- })(I || (I = {})), LIB = n;
9302
- })();
9303
- ({URI: URI$2, Utils} = LIB);
9302
+ };
9303
+ p = {
9304
+ 58: "%3A",
9305
+ 47: "%2F",
9306
+ 63: "%3F",
9307
+ 35: "%23",
9308
+ 91: "%5B",
9309
+ 93: "%5D",
9310
+ 64: "%40",
9311
+ 33: "%21",
9312
+ 36: "%24",
9313
+ 38: "%26",
9314
+ 39: "%27",
9315
+ 40: "%28",
9316
+ 41: "%29",
9317
+ 42: "%2A",
9318
+ 43: "%2B",
9319
+ 44: "%2C",
9320
+ 59: "%3B",
9321
+ 61: "%3D",
9322
+ 32: "%20"
9323
+ };
9324
+ C = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
9325
+ w = r(975);
9326
+ x = w.posix || w;
9327
+ P = "/";
9328
+ (function(t) {
9329
+ t.joinPath = function(t, ...e) {
9330
+ return t.with({ path: x.join(t.path, ...e) });
9331
+ }, t.resolvePath = function(t, ...e) {
9332
+ let r = t.path, n = !1;
9333
+ r[0] !== P && (r = P + r, n = !0);
9334
+ let i = x.resolve(r, ...e);
9335
+ return n && i[0] === P && !t.authority && (i = i.substring(1)), t.with({ path: i });
9336
+ }, t.dirname = function(t) {
9337
+ if (0 === t.path.length || t.path === P) return t;
9338
+ let e = x.dirname(t.path);
9339
+ return 1 === e.length && 46 === e.charCodeAt(0) && (e = ""), t.with({ path: e });
9340
+ }, t.basename = function(t) {
9341
+ return x.basename(t.path);
9342
+ }, t.extname = function(t) {
9343
+ return x.extname(t.path);
9344
+ };
9345
+ })(_ || (_ = {}));
9304
9346
  }));
9305
9347
  //#endregion
9306
9348
  //#region node_modules/@volar/monaco/worker.js
@@ -9355,7 +9397,7 @@ function createTypeScriptWorkerLanguageService({ typescript: ts, compilerOptions
9355
9397
  return sys.getCurrentDirectory();
9356
9398
  },
9357
9399
  getScriptFileNames() {
9358
- return workerContext.getMirrorModels().map((model) => uriConverter.asFileName(URI$2.from(model.uri)));
9400
+ return workerContext.getMirrorModels().map((model) => uriConverter.asFileName(u.from(model.uri)));
9359
9401
  },
9360
9402
  getProjectVersion() {
9361
9403
  const models = workerContext.getMirrorModels();
@@ -9405,91 +9447,91 @@ var WorkerLanguageService = class {
9405
9447
  return this.withToken(requestId, (token) => this.languageService.executeCommand(...args, token));
9406
9448
  }
9407
9449
  getDocumentFormattingEdits(requestId, uri, ...restArgs) {
9408
- return this.withToken(requestId, (token) => this.languageService.getDocumentFormattingEdits(URI$2.from(uri), ...restArgs, token));
9450
+ return this.withToken(requestId, (token) => this.languageService.getDocumentFormattingEdits(u.from(uri), ...restArgs, token));
9409
9451
  }
9410
9452
  getFoldingRanges(requestId, uri, ...restArgs) {
9411
- return this.withToken(requestId, (token) => this.languageService.getFoldingRanges(URI$2.from(uri), ...restArgs, token));
9453
+ return this.withToken(requestId, (token) => this.languageService.getFoldingRanges(u.from(uri), ...restArgs, token));
9412
9454
  }
9413
9455
  getSelectionRanges(requestId, uri, ...restArgs) {
9414
- return this.withToken(requestId, (token) => this.languageService.getSelectionRanges(URI$2.from(uri), ...restArgs, token));
9456
+ return this.withToken(requestId, (token) => this.languageService.getSelectionRanges(u.from(uri), ...restArgs, token));
9415
9457
  }
9416
9458
  getLinkedEditingRanges(requestId, uri, ...restArgs) {
9417
- return this.withToken(requestId, (token) => this.languageService.getLinkedEditingRanges(URI$2.from(uri), ...restArgs, token));
9459
+ return this.withToken(requestId, (token) => this.languageService.getLinkedEditingRanges(u.from(uri), ...restArgs, token));
9418
9460
  }
9419
9461
  getDocumentSymbols(requestId, uri, ...restArgs) {
9420
- return this.withToken(requestId, (token) => this.languageService.getDocumentSymbols(URI$2.from(uri), ...restArgs, token));
9462
+ return this.withToken(requestId, (token) => this.languageService.getDocumentSymbols(u.from(uri), ...restArgs, token));
9421
9463
  }
9422
9464
  getDocumentColors(requestId, uri, ...restArgs) {
9423
- return this.withToken(requestId, (token) => this.languageService.getDocumentColors(URI$2.from(uri), ...restArgs, token));
9465
+ return this.withToken(requestId, (token) => this.languageService.getDocumentColors(u.from(uri), ...restArgs, token));
9424
9466
  }
9425
9467
  getColorPresentations(requestId, uri, ...restArgs) {
9426
- return this.withToken(requestId, (token) => this.languageService.getColorPresentations(URI$2.from(uri), ...restArgs, token));
9468
+ return this.withToken(requestId, (token) => this.languageService.getColorPresentations(u.from(uri), ...restArgs, token));
9427
9469
  }
9428
9470
  getDiagnostics(requestId, uri) {
9429
- return this.withToken(requestId, (token) => this.languageService.getDiagnostics(URI$2.from(uri), void 0, token));
9471
+ return this.withToken(requestId, (token) => this.languageService.getDiagnostics(u.from(uri), void 0, token));
9430
9472
  }
9431
9473
  getWorkspaceDiagnostics(requestId) {
9432
9474
  return this.withToken(requestId, (token) => this.languageService.getWorkspaceDiagnostics(token));
9433
9475
  }
9434
9476
  getReferences(requestId, uri, ...restArgs) {
9435
- return this.withToken(requestId, (token) => this.languageService.getReferences(URI$2.from(uri), ...restArgs, token));
9477
+ return this.withToken(requestId, (token) => this.languageService.getReferences(u.from(uri), ...restArgs, token));
9436
9478
  }
9437
9479
  getFileReferences(requestId, uri, ...restArgs) {
9438
- return this.withToken(requestId, (token) => this.languageService.getFileReferences(URI$2.from(uri), ...restArgs, token));
9480
+ return this.withToken(requestId, (token) => this.languageService.getFileReferences(u.from(uri), ...restArgs, token));
9439
9481
  }
9440
9482
  getDefinition(requestId, uri, ...restArgs) {
9441
- return this.withToken(requestId, (token) => this.languageService.getDefinition(URI$2.from(uri), ...restArgs, token));
9483
+ return this.withToken(requestId, (token) => this.languageService.getDefinition(u.from(uri), ...restArgs, token));
9442
9484
  }
9443
9485
  getTypeDefinition(requestId, uri, ...restArgs) {
9444
- return this.withToken(requestId, (token) => this.languageService.getTypeDefinition(URI$2.from(uri), ...restArgs, token));
9486
+ return this.withToken(requestId, (token) => this.languageService.getTypeDefinition(u.from(uri), ...restArgs, token));
9445
9487
  }
9446
9488
  getImplementations(requestId, uri, ...restArgs) {
9447
- return this.withToken(requestId, (token) => this.languageService.getImplementations(URI$2.from(uri), ...restArgs, token));
9489
+ return this.withToken(requestId, (token) => this.languageService.getImplementations(u.from(uri), ...restArgs, token));
9448
9490
  }
9449
9491
  getRenameRange(requestId, uri, ...restArgs) {
9450
- return this.withToken(requestId, (token) => this.languageService.getRenameRange(URI$2.from(uri), ...restArgs, token));
9492
+ return this.withToken(requestId, (token) => this.languageService.getRenameRange(u.from(uri), ...restArgs, token));
9451
9493
  }
9452
9494
  getRenameEdits(requestId, uri, ...restArgs) {
9453
- return this.withToken(requestId, (token) => this.languageService.getRenameEdits(URI$2.from(uri), ...restArgs, token));
9495
+ return this.withToken(requestId, (token) => this.languageService.getRenameEdits(u.from(uri), ...restArgs, token));
9454
9496
  }
9455
9497
  getFileRenameEdits(requestId, uri, ...restArgs) {
9456
- return this.withToken(requestId, (token) => this.languageService.getFileRenameEdits(URI$2.from(uri), ...restArgs, token));
9498
+ return this.withToken(requestId, (token) => this.languageService.getFileRenameEdits(u.from(uri), ...restArgs, token));
9457
9499
  }
9458
9500
  getSemanticTokens(requestId, uri, ...restArgs) {
9459
- return this.withToken(requestId, (token) => this.languageService.getSemanticTokens(URI$2.from(uri), ...restArgs, token));
9501
+ return this.withToken(requestId, (token) => this.languageService.getSemanticTokens(u.from(uri), ...restArgs, token));
9460
9502
  }
9461
9503
  getHover(requestId, uri, ...restArgs) {
9462
- return this.withToken(requestId, (token) => this.languageService.getHover(URI$2.from(uri), ...restArgs, token));
9504
+ return this.withToken(requestId, (token) => this.languageService.getHover(u.from(uri), ...restArgs, token));
9463
9505
  }
9464
9506
  getCompletionItems(requestId, uri, ...restArgs) {
9465
- return this.withToken(requestId, (token) => this.languageService.getCompletionItems(URI$2.from(uri), ...restArgs, token));
9507
+ return this.withToken(requestId, (token) => this.languageService.getCompletionItems(u.from(uri), ...restArgs, token));
9466
9508
  }
9467
9509
  getCodeActions(requestId, uri, ...restArgs) {
9468
- return this.withToken(requestId, (token) => this.languageService.getCodeActions(URI$2.from(uri), ...restArgs, token));
9510
+ return this.withToken(requestId, (token) => this.languageService.getCodeActions(u.from(uri), ...restArgs, token));
9469
9511
  }
9470
9512
  getSignatureHelp(requestId, uri, ...restArgs) {
9471
- return this.withToken(requestId, (token) => this.languageService.getSignatureHelp(URI$2.from(uri), ...restArgs, token));
9513
+ return this.withToken(requestId, (token) => this.languageService.getSignatureHelp(u.from(uri), ...restArgs, token));
9472
9514
  }
9473
9515
  getCodeLenses(requestId, uri, ...restArgs) {
9474
- return this.withToken(requestId, (token) => this.languageService.getCodeLenses(URI$2.from(uri), ...restArgs, token));
9516
+ return this.withToken(requestId, (token) => this.languageService.getCodeLenses(u.from(uri), ...restArgs, token));
9475
9517
  }
9476
9518
  getDocumentHighlights(requestId, uri, ...restArgs) {
9477
- return this.withToken(requestId, (token) => this.languageService.getDocumentHighlights(URI$2.from(uri), ...restArgs, token));
9519
+ return this.withToken(requestId, (token) => this.languageService.getDocumentHighlights(u.from(uri), ...restArgs, token));
9478
9520
  }
9479
9521
  getDocumentLinks(requestId, uri, ...restArgs) {
9480
- return this.withToken(requestId, (token) => this.languageService.getDocumentLinks(URI$2.from(uri), ...restArgs, token));
9522
+ return this.withToken(requestId, (token) => this.languageService.getDocumentLinks(u.from(uri), ...restArgs, token));
9481
9523
  }
9482
9524
  getWorkspaceSymbols(requestId, ...args) {
9483
9525
  return this.withToken(requestId, (token) => this.languageService.getWorkspaceSymbols(...args, token));
9484
9526
  }
9485
9527
  getAutoInsertSnippet(requestId, uri, ...restArgs) {
9486
- return this.withToken(requestId, (token) => this.languageService.getAutoInsertSnippet(URI$2.from(uri), ...restArgs, token));
9528
+ return this.withToken(requestId, (token) => this.languageService.getAutoInsertSnippet(u.from(uri), ...restArgs, token));
9487
9529
  }
9488
9530
  getDocumentDropEdits(requestId, uri, ...restArgs) {
9489
- return this.withToken(requestId, (token) => this.languageService.getDocumentDropEdits(URI$2.from(uri), ...restArgs, token));
9531
+ return this.withToken(requestId, (token) => this.languageService.getDocumentDropEdits(u.from(uri), ...restArgs, token));
9490
9532
  }
9491
9533
  getInlayHints(requestId, uri, ...restArgs) {
9492
- return this.withToken(requestId, (token) => this.languageService.getInlayHints(URI$2.from(uri), ...restArgs, token));
9534
+ return this.withToken(requestId, (token) => this.languageService.getInlayHints(u.from(uri), ...restArgs, token));
9493
9535
  }
9494
9536
  resolveCodeAction(requestId, ...args) {
9495
9537
  return this.withToken(requestId, (token) => this.languageService.resolveCodeAction(...args, token));
@@ -9510,7 +9552,7 @@ var WorkerLanguageService = class {
9510
9552
  return this.withToken(requestId, (token) => this.languageService.resolveWorkspaceSymbol(...args, token));
9511
9553
  }
9512
9554
  getCallHierarchyItems(requestId, uri, ...restArgs) {
9513
- return this.withToken(requestId, (token) => this.languageService.getCallHierarchyItems(URI$2.from(uri), ...restArgs, token));
9555
+ return this.withToken(requestId, (token) => this.languageService.getCallHierarchyItems(u.from(uri), ...restArgs, token));
9514
9556
  }
9515
9557
  getCallHierarchyIncomingCalls(requestId, ...args) {
9516
9558
  return this.withToken(requestId, (token) => this.languageService.getCallHierarchyIncomingCalls(...args, token));
@@ -9900,7 +9942,7 @@ var shared_esm_bundler_exports = /* @__PURE__ */ __exportAll({
9900
9942
  toTypeString: () => toTypeString
9901
9943
  });
9902
9944
  /**
9903
- * @vue/shared v3.5.41
9945
+ * @vue/shared v3.5.42
9904
9946
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
9905
9947
  * @license MIT
9906
9948
  **/
@@ -10068,6 +10110,21 @@ function looseCompareArrays(a, b) {
10068
10110
  for (let i = 0; equal && i < a.length; i++) equal = looseEqual(a[i], b[i]);
10069
10111
  return equal;
10070
10112
  }
10113
+ function looseCompareCollections(a, b) {
10114
+ if (a.size !== b.size) return false;
10115
+ const candidates = Array.from(b);
10116
+ const matched = new Uint8Array(candidates.length);
10117
+ for (const item of a) {
10118
+ let index = -1;
10119
+ for (let i = 0; i < candidates.length; i++) if (!matched[i] && looseEqual(item, candidates[i])) {
10120
+ index = i;
10121
+ break;
10122
+ }
10123
+ if (index < 0) return false;
10124
+ matched[index] = 1;
10125
+ }
10126
+ return true;
10127
+ }
10071
10128
  function looseEqual(a, b) {
10072
10129
  if (a === b) return true;
10073
10130
  let aValidType = isDate(a);
@@ -10083,6 +10140,12 @@ function looseEqual(a, b) {
10083
10140
  bValidType = isObject$1(b);
10084
10141
  if (aValidType || bValidType) {
10085
10142
  if (!aValidType || !bValidType) return false;
10143
+ aValidType = isMap(a);
10144
+ bValidType = isMap(b);
10145
+ if (aValidType || bValidType) return aValidType && bValidType ? looseCompareCollections(a, b) : false;
10146
+ aValidType = isSet(a);
10147
+ bValidType = isSet(b);
10148
+ if (aValidType || bValidType) return aValidType && bValidType ? looseCompareCollections(a, b) : false;
10086
10149
  if (Object.keys(a).length !== Object.keys(b).length) return false;
10087
10150
  for (const key in a) {
10088
10151
  const aHasKey = a.hasOwnProperty(key);
@@ -10281,7 +10344,7 @@ var init_shared_esm_bundler = __esmMin((() => {
10281
10344
  specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
10282
10345
  isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
10283
10346
  isBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);
10284
- unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/;
10347
+ unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u000d\u0020]/;
10285
10348
  attrValidationCache = {};
10286
10349
  propsToAttrMap = {
10287
10350
  acceptCharset: "accept-charset",
@@ -10320,7 +10383,7 @@ var init_shared_esm_bundler = __esmMin((() => {
10320
10383
  //#endregion
10321
10384
  //#region node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js
10322
10385
  /**
10323
- * @vue/compiler-core v3.5.41
10386
+ * @vue/compiler-core v3.5.42
10324
10387
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
10325
10388
  * @license MIT
10326
10389
  **/
@@ -14678,7 +14741,7 @@ var compiler_dom_esm_bundler_exports = /* @__PURE__ */ __exportAll({
14678
14741
  warnDeprecation: () => warnDeprecation
14679
14742
  });
14680
14743
  /**
14681
- * @vue/compiler-dom v3.5.41
14744
+ * @vue/compiler-dom v3.5.42
14682
14745
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
14683
14746
  * @license MIT
14684
14747
  **/
@@ -16250,7 +16313,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16250
16313
  var scan = (input, options) => {
16251
16314
  const opts = options || {};
16252
16315
  const length = input.length - 1;
16253
- const scanToEnd = opts.parts === true || opts.scanToEnd === true;
16316
+ const scanToEnd = opts.parts === true || opts.tokens === true || opts.scanToEnd === true;
16254
16317
  const slashes = [];
16255
16318
  const tokens = [];
16256
16319
  const parts = [];
@@ -16353,14 +16416,18 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16353
16416
  finished = true;
16354
16417
  if (code === CHAR_EXCLAMATION_MARK && index === start) negatedExtglob = true;
16355
16418
  if (scanToEnd === true) {
16419
+ let parens = 0;
16356
16420
  while (eos() !== true && (code = advance())) {
16357
16421
  if (code === CHAR_BACKWARD_SLASH) {
16358
16422
  backslashes = token.backslashes = true;
16359
- code = advance();
16423
+ advance();
16424
+ continue;
16425
+ }
16426
+ if (code === CHAR_LEFT_PARENTHESES) {
16427
+ parens++;
16360
16428
  continue;
16361
16429
  }
16362
- if (code === CHAR_RIGHT_PARENTHESES) {
16363
- isGlob = token.isGlob = true;
16430
+ if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
16364
16431
  finished = true;
16365
16432
  break;
16366
16433
  }
@@ -16408,13 +16475,18 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16408
16475
  if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
16409
16476
  isGlob = token.isGlob = true;
16410
16477
  if (scanToEnd === true) {
16478
+ let parens = 1;
16411
16479
  while (eos() !== true && (code = advance())) {
16412
- if (code === CHAR_LEFT_PARENTHESES) {
16480
+ if (code === CHAR_BACKWARD_SLASH) {
16413
16481
  backslashes = token.backslashes = true;
16414
- code = advance();
16482
+ advance();
16483
+ continue;
16484
+ }
16485
+ if (code === CHAR_LEFT_PARENTHESES) {
16486
+ parens++;
16415
16487
  continue;
16416
16488
  }
16417
- if (code === CHAR_RIGHT_PARENTHESES) {
16489
+ if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
16418
16490
  finished = true;
16419
16491
  break;
16420
16492
  }
@@ -16477,7 +16549,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16477
16549
  if (opts.parts === true || opts.tokens === true) {
16478
16550
  let prevIndex;
16479
16551
  for (let idx = 0; idx < slashes.length; idx++) {
16480
- const n = prevIndex ? prevIndex + 1 : start;
16552
+ const n = prevIndex !== void 0 ? prevIndex + 1 : start;
16481
16553
  const i = slashes[idx];
16482
16554
  const value = input.slice(n, i);
16483
16555
  if (opts.tokens) {
@@ -16488,18 +16560,19 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16488
16560
  depth(tokens[idx]);
16489
16561
  state.maxDepth += tokens[idx].depth;
16490
16562
  }
16491
- if (idx !== 0 || value !== "") parts.push(value);
16492
- prevIndex = i;
16493
- }
16494
- if (prevIndex && prevIndex + 1 < input.length) {
16495
- const value = input.slice(prevIndex + 1);
16496
- parts.push(value);
16497
- if (opts.tokens) {
16498
- tokens[tokens.length - 1].value = value;
16499
- depth(tokens[tokens.length - 1]);
16500
- state.maxDepth += tokens[tokens.length - 1].depth;
16563
+ if (i >= start) {
16564
+ parts.push(value);
16565
+ prevIndex = i;
16501
16566
  }
16502
16567
  }
16568
+ const n = prevIndex !== void 0 ? prevIndex + 1 : start;
16569
+ const value = input.slice(n);
16570
+ parts.push(value);
16571
+ if (opts.tokens && prevIndex && prevIndex + 1 < input.length) {
16572
+ tokens[tokens.length - 1].value = value;
16573
+ depth(tokens[tokens.length - 1]);
16574
+ state.maxDepth += tokens[tokens.length - 1].depth;
16575
+ }
16503
16576
  state.slashes = slashes;
16504
16577
  state.parts = parts;
16505
16578
  }
@@ -17408,6 +17481,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17408
17481
  rest = rest.slice(3);
17409
17482
  consume("/**", 3);
17410
17483
  }
17484
+ const isEnd = eos() || state.parens > 0 && rest === ")".repeat(state.parens) && !extglobs.some((extglob) => extglob.type === "negate");
17411
17485
  if (prior.type === "bos" && eos()) {
17412
17486
  prev.type = "globstar";
17413
17487
  prev.value += value;
@@ -17417,7 +17491,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17417
17491
  consume(value);
17418
17492
  continue;
17419
17493
  }
17420
- if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && eos()) {
17494
+ if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && isEnd) {
17421
17495
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
17422
17496
  prior.output = `(?:${prior.output}`;
17423
17497
  prev.type = "globstar";
@@ -27454,7 +27528,7 @@ function asSchema(schema) {
27454
27528
  function normalizeId(id) {
27455
27529
  if (id.startsWith(httpPrefix)) id = httpsPrefix + id.substring(httpPrefix.length);
27456
27530
  try {
27457
- return URI$2.parse(id).toString(true);
27531
+ return u.parse(id).toString(true);
27458
27532
  } catch (e) {
27459
27533
  return id;
27460
27534
  }
@@ -30677,7 +30751,7 @@ function toDiagnostic(message, code, relatedURL) {
30677
30751
  }
30678
30752
  function normalizeResourceForMatching(resource) {
30679
30753
  try {
30680
- return URI$2.parse(resource).with({
30754
+ return u.parse(resource).with({
30681
30755
  fragment: null,
30682
30756
  query: null
30683
30757
  }).toString(true);
@@ -30687,7 +30761,7 @@ function normalizeResourceForMatching(resource) {
30687
30761
  }
30688
30762
  function toDisplayString(url) {
30689
30763
  try {
30690
- const uri = URI$2.parse(url);
30764
+ const uri = u.parse(url);
30691
30765
  if (uri.scheme === "file") return uri.fsPath;
30692
30766
  } catch (e) {}
30693
30767
  return url;
@@ -30818,7 +30892,7 @@ var init_jsonSchemaService = __esmMin((() => {
30818
30892
  }
30819
30893
  getRegisteredSchemaIds(filter) {
30820
30894
  return Object.keys(this.registeredSchemasIds).filter((id) => {
30821
- const scheme = URI$2.parse(id).scheme;
30895
+ const scheme = u.parse(id).scheme;
30822
30896
  return scheme !== "schemaservice" && (!filter || filter(scheme));
30823
30897
  });
30824
30898
  }
@@ -41256,10 +41330,10 @@ var init_cssSymbolScope = __esmMin((() => {
41256
41330
  //#endregion
41257
41331
  //#region node_modules/vscode-css-languageservice/lib/esm/utils/resources.js
41258
41332
  function dirname(uriString) {
41259
- return Utils.dirname(URI$2.parse(uriString)).toString(true);
41333
+ return _.dirname(u.parse(uriString)).toString(true);
41260
41334
  }
41261
41335
  function joinPath(uriString, ...paths) {
41262
- return Utils.joinPath(URI$2.parse(uriString), ...paths).toString(true);
41336
+ return _.joinPath(u.parse(uriString), ...paths).toString(true);
41263
41337
  }
41264
41338
  var init_resources = __esmMin((() => {
41265
41339
  init_esm();
@@ -86211,16 +86285,16 @@ var init_cssSelectionRange = __esmMin((() => {
86211
86285
  function toPathVariations(target) {
86212
86286
  if (target.endsWith(".css")) return [target];
86213
86287
  if (target.endsWith("/")) return [target + "index.scss", target + "_index.scss"];
86214
- const targetUri = URI$2.parse(target.replace(/\.scss$/, ""));
86215
- const basename = Utils.basename(targetUri);
86216
- const dirname = Utils.dirname(targetUri);
86217
- if (basename.startsWith("_")) return [Utils.joinPath(dirname, basename + ".scss").toString(true)];
86288
+ const targetUri = u.parse(target.replace(/\.scss$/, ""));
86289
+ const basename = _.basename(targetUri);
86290
+ const dirname = _.dirname(targetUri);
86291
+ if (basename.startsWith("_")) return [_.joinPath(dirname, basename + ".scss").toString(true)];
86218
86292
  return [
86219
- Utils.joinPath(dirname, basename + ".scss").toString(true),
86220
- Utils.joinPath(dirname, "_" + basename + ".scss").toString(true),
86293
+ _.joinPath(dirname, basename + ".scss").toString(true),
86294
+ _.joinPath(dirname, "_" + basename + ".scss").toString(true),
86221
86295
  target + "/index.scss",
86222
86296
  target + "/_index.scss",
86223
- Utils.joinPath(dirname, basename + ".css").toString(true)
86297
+ _.joinPath(dirname, basename + ".css").toString(true)
86224
86298
  ];
86225
86299
  }
86226
86300
  var SCSSNavigation;
@@ -94898,7 +94972,7 @@ function createLink(document, documentContext, attributeValue, startOffset, endO
94898
94972
  }
94899
94973
  function validateAndCleanURI(uriStr, document) {
94900
94974
  try {
94901
- let uri = URI$2.parse(uriStr);
94975
+ let uri = u.parse(uriStr);
94902
94976
  if (uri.scheme === "file" && uri.query) {
94903
94977
  uri = uri.with({ query: null });
94904
94978
  uriStr = uri.toString(true);
@@ -272466,8 +272540,8 @@ var semanticPlugin = (0, import_semantic.create)(import_typescript.default);
272466
272540
  var size = globalDeclarations.length;
272467
272541
  var type = 1;
272468
272542
  var vueCompilerOptions = (0, import_language_core.getDefaultCompilerOptions)();
272469
- var workspaceFolders = [URI$2.file("/")];
272470
- var asFileName = ({ path }) => path, asUri = (fileName) => URI$2.file(fileName), create = (context) => {
272543
+ var workspaceFolders = [u.file("/")];
272544
+ var asFileName = ({ path }) => path, asUri = (fileName) => u.file(fileName), create = (context) => {
272471
272545
  const pluginInstance = semanticPlugin.create(context), languageService = pluginInstance.provide["typescript/languageService"](), proxy = (0, import_common.postprocessLanguageService)(import_typescript.default, context.language, languageService, vueCompilerOptions, asUri), getCodeFixesAtPosition = proxy.getCodeFixesAtPosition.bind(proxy), getCompletionEntryDetails = proxy.getCompletionEntryDetails.bind(proxy), getCompletionsAtPosition = proxy.getCompletionsAtPosition.bind(proxy), getDefinitionAndBoundSpan = proxy.getDefinitionAndBoundSpan.bind(proxy), getQuickInfoAtPosition = proxy.getQuickInfoAtPosition.bind(proxy);
272472
272546
  pluginInstance.provide["typescript/languageService"] = () => ({
272473
272547
  ...languageService,