@sheetxl/studio-mui 0.4.20 → 0.4.22

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 (98) hide show
  1. package/browser/cjs/2d2J6QkipnGWfI99.cjs +6 -0
  2. package/browser/cjs/BY09bxecVOSMwQA3.cjs +6 -0
  3. package/browser/cjs/BYJI3FMxQ-z5UGsU.cjs +6 -0
  4. package/browser/cjs/B_nvuo0kEXu5G0Gf.cjs +7 -0
  5. package/browser/cjs/BfnxiVEhzO5reOYH.cjs +42 -0
  6. package/browser/cjs/Bil3fXnJ3lk7aGF5.cjs +6 -0
  7. package/browser/cjs/{DItuuqkIamMzp7Im.cjs → BzbKSVugPof6dqQI.cjs} +1 -1
  8. package/browser/cjs/CU0utErelA1oX0n8.cjs +6 -0
  9. package/browser/cjs/CWp8_mrz0htdOXMM.cjs +20 -0
  10. package/browser/cjs/D2Cp7gwb6bRupSZY.cjs +6 -0
  11. package/browser/cjs/DC70SHoaPVkOUEHx.cjs +6 -0
  12. package/browser/cjs/DRUx3PLS_NrkJ6Yw.cjs +18 -0
  13. package/browser/cjs/index.cjs +2 -2
  14. package/browser/esm/-0XEuwqNVFTlDKEX.mjs +25 -0
  15. package/browser/esm/-AR3L_VjwMbtQVbL.mjs +62 -0
  16. package/browser/esm/BLhZj1SgWlsmeviw.mjs +4443 -0
  17. package/browser/esm/{BW3_mz5_8i9VLBYB.mjs → BXNl9EEQzO53Hoh5.mjs} +87 -85
  18. package/browser/esm/BqnVpwK0Q2fKGA2S.mjs +53 -0
  19. package/browser/esm/D4rFOqwrrtVMpgbc.mjs +49 -0
  20. package/browser/esm/DEbllEGmvtLkCug_.mjs +2156 -0
  21. package/browser/esm/{C60ZnLCvtztDLuoT.mjs → DXRFs7VZM4IShMju.mjs} +100 -98
  22. package/browser/esm/{C5xUbwpUPDeNua-i.mjs → DeGATuYv4-5bhQcD.mjs} +1 -1
  23. package/browser/esm/{5u-JEG1IfQBstjq0.mjs → EMqbYi0X_krk5yOL.mjs} +11 -10
  24. package/browser/esm/fWsCG2WBM3kCpC5p.mjs +46 -0
  25. package/browser/esm/index.mjs +29 -29
  26. package/browser/esm/{CxXpPYi4eOFhBNt2.mjs → pARZF2O230qNvxWd.mjs} +27 -26
  27. package/licenses/dependencies.txt +0 -271
  28. package/node/esm/{D6A_o47zvz5ITIJK.mjs → 0JTY0jNrXiIiOqWY.mjs} +79 -78
  29. package/node/esm/{Ds5dinNcyNdC8ta6.mjs → BqQ6JNhQ1K321g9U.mjs} +13 -11
  30. package/node/esm/{CrDbLKJh9omVo_TF.mjs → Bu58psaOsDy_zPOJ.mjs} +29 -28
  31. package/node/esm/BzBHqe1ThbCP-l_d.mjs +88 -0
  32. package/node/esm/CE_I2ijQF8MeexHD.mjs +63 -0
  33. package/node/esm/{Bv12-Yyv0C86Iquy.mjs → CuomeW-4DDc1ywFW.mjs} +7 -6
  34. package/node/esm/DRt8kMDuCJn53CIE.mjs +46 -0
  35. package/node/esm/{CH6p2H0CMCoz4NgJ.mjs → DgHCTCARk1Gv_msN.mjs} +23 -22
  36. package/node/esm/{Bn5TJPQAEMY-lGpF.mjs → Do7y7aKPA48-93AV.mjs} +4 -3
  37. package/node/esm/{rlqvGCJlj4a2UcSM.mjs → X11ONmg6R1Y6hfue.mjs} +11 -10
  38. package/node/esm/index.mjs +2381 -18514
  39. package/package.json +8 -8
  40. package/browser/cjs/-Z37a-mzY5SKXy--.cjs +0 -6
  41. package/browser/cjs/B384kb1_rsiCsdZG.cjs +0 -6
  42. package/browser/cjs/B8nWvy4zDv1CZsr_.cjs +0 -110
  43. package/browser/cjs/BBnMJiXp9lru0Rcq.cjs +0 -6
  44. package/browser/cjs/BFbHTu65n1oE-l0N.cjs +0 -6
  45. package/browser/cjs/BQMSHnQdWtqeakER.cjs +0 -6
  46. package/browser/cjs/BvjA0ybox6653eb5.cjs +0 -6
  47. package/browser/cjs/Cocgl4ghzWE9yVYS.cjs +0 -161
  48. package/browser/cjs/D21Q1NdM1zQ7uFlH.cjs +0 -6
  49. package/browser/cjs/D4LmaKqYiwjxp0Hs.cjs +0 -15
  50. package/browser/cjs/D6egUillMqBwTaEq.cjs +0 -6
  51. package/browser/cjs/D9lY6pd9tRxPeLKs.cjs +0 -18
  52. package/browser/cjs/DNqIYSqRYZkUpFxW.cjs +0 -7
  53. package/browser/cjs/DUImSlPsM-OipgBZ.cjs +0 -6
  54. package/browser/cjs/DUVLcBcwkTsuLb6q.cjs +0 -6
  55. package/browser/cjs/Db7IyKXFzo8IocDa.cjs +0 -145
  56. package/browser/cjs/DsHPj69dMFG09uD_.cjs +0 -16
  57. package/browser/cjs/DypblOPNMRx5Twgx.cjs +0 -12
  58. package/browser/cjs/QK7YNBstmN86K-xL.cjs +0 -6
  59. package/browser/cjs/VNWvn2kP6ZF0Snzw.cjs +0 -11
  60. package/browser/cjs/dc1YAArM3bSHvRcF.cjs +0 -7
  61. package/browser/cjs/mInXvB8P6r6q7pRY.cjs +0 -11
  62. package/browser/cjs/nop6N-Oi_LKy1Bpc.cjs +0 -42
  63. package/browser/cjs/s45oNHeIvJVeRjn5.cjs +0 -6
  64. package/browser/esm/1y10o01h14oGJtKG.mjs +0 -43
  65. package/browser/esm/BFpc8KBa-fb0nLSt.mjs +0 -46
  66. package/browser/esm/Bmjhrc6YMmfx_1Yi.mjs +0 -1703
  67. package/browser/esm/BnlJVFlQeWerd3KW.mjs +0 -3803
  68. package/browser/esm/BpuH_QvBidPOXgAR.mjs +0 -392
  69. package/browser/esm/CAiWSkkPRgUjk8CN.mjs +0 -424
  70. package/browser/esm/CW8taieVozHhyBOC.mjs +0 -1467
  71. package/browser/esm/CzyEerZmfWrW3i3U.mjs +0 -59
  72. package/browser/esm/D0FBHwm0Oz_wf0tR.mjs +0 -12
  73. package/browser/esm/DM9GPrZpbCcKOnyU.mjs +0 -1352
  74. package/browser/esm/DO1doKZhwYiL7vbF.mjs +0 -1672
  75. package/browser/esm/DS3anstzAV3EJBRw.mjs +0 -84
  76. package/browser/esm/DuEmdSQsXlkCWZIB.mjs +0 -1366
  77. package/browser/esm/FvK-pQsicRjtrKoS.mjs +0 -48
  78. package/browser/esm/KCTJzQeDChqf1yBO.mjs +0 -52
  79. package/browser/esm/P-3pIbidOtRCNsw3.mjs +0 -23
  80. package/browser/esm/W3EFMOPLR1aNXWvF.mjs +0 -2250
  81. package/browser/esm/Z_Sh-N3xHHWLCbEw.mjs +0 -23412
  82. package/browser/esm/mOmzoYDWAtgYndCA.mjs +0 -13391
  83. package/browser/esm/tnJECoiQzUzgUQZE.mjs +0 -44
  84. package/node/esm/54SjtcD6mOreKcCy.mjs +0 -1719
  85. package/node/esm/B2BlMiDOVpIp1FDQ.mjs +0 -1706
  86. package/node/esm/BNEvR1srnnwBgnrF.mjs +0 -1479
  87. package/node/esm/BZ20_F64yjZgn-_G.mjs +0 -1246
  88. package/node/esm/BfzRLuswtxg9uDsX.mjs +0 -78
  89. package/node/esm/C0ZBbkFa-24tJTnw.mjs +0 -60
  90. package/node/esm/CEVO60fX3MAPG0Hg.mjs +0 -1378
  91. package/node/esm/CdFmhVFplZFgBvTo.mjs +0 -44
  92. package/node/esm/Cx4mn0YEVkG-M1VL.mjs +0 -553
  93. package/node/esm/DDWek3aquTe_okr_.mjs +0 -392
  94. package/node/esm/DSLWcwr4qgHARs36.mjs +0 -13464
  95. package/node/esm/iXG86MN0JrtJkpqe.mjs +0 -44
  96. package/node/esm/m2teXjBzZLfLDFPx.mjs +0 -46
  97. package/node/esm/oykDy4erHC0NNHHq.mjs +0 -3776
  98. package/node/esm/sVOd1y3oNBREsKJ7.mjs +0 -86
@@ -1,1366 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.20
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- var ce, ue, ne = {}, ee = {}, U = {}, oe = {}, H = {};
8
- function Ne() {
9
- if (ue) return H;
10
- ue = 1;
11
- var g = H && H.__awaiter || function(e, t, o, n) {
12
- return new (o || (o = Promise))(function(r, s) {
13
- function l(O) {
14
- try {
15
- D(n.next(O));
16
- } catch (c) {
17
- s(c);
18
- }
19
- }
20
- function f(O) {
21
- try {
22
- D(n.throw(O));
23
- } catch (c) {
24
- s(c);
25
- }
26
- }
27
- function D(O) {
28
- var c;
29
- O.done ? r(O.value) : (c = O.value, c instanceof o ? c : new o(function(i) {
30
- i(c);
31
- })).then(l, f);
32
- }
33
- D((n = n.apply(e, t || [])).next());
34
- });
35
- }, x = H && H.__generator || function(e, t) {
36
- var o, n, r, s, l = { label: 0, sent: function() {
37
- if (1 & r[0]) throw r[1];
38
- return r[1];
39
- }, trys: [], ops: [] };
40
- return s = { next: f(0), throw: f(1), return: f(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
41
- return this;
42
- }), s;
43
- function f(D) {
44
- return function(O) {
45
- return function(c) {
46
- if (o) throw new TypeError("Generator is already executing.");
47
- for (; l; ) try {
48
- if (o = 1, n && (r = 2 & c[0] ? n.return : c[0] ? n.throw || ((r = n.return) && r.call(n), 0) : n.next) && !(r = r.call(n, c[1])).done) return r;
49
- switch (n = 0, r && (c = [2 & c[0], r.value]), c[0]) {
50
- case 0:
51
- case 1:
52
- r = c;
53
- break;
54
- case 4:
55
- return l.label++, { value: c[1], done: !1 };
56
- case 5:
57
- l.label++, n = c[1], c = [0];
58
- continue;
59
- case 7:
60
- c = l.ops.pop(), l.trys.pop();
61
- continue;
62
- default:
63
- if (!((r = (r = l.trys).length > 0 && r[r.length - 1]) || c[0] !== 6 && c[0] !== 2)) {
64
- l = 0;
65
- continue;
66
- }
67
- if (c[0] === 3 && (!r || c[1] > r[0] && c[1] < r[3])) {
68
- l.label = c[1];
69
- break;
70
- }
71
- if (c[0] === 6 && l.label < r[1]) {
72
- l.label = r[1], r = c;
73
- break;
74
- }
75
- if (r && l.label < r[2]) {
76
- l.label = r[2], l.ops.push(c);
77
- break;
78
- }
79
- r[2] && l.ops.pop(), l.trys.pop();
80
- continue;
81
- }
82
- c = t.call(e, l);
83
- } catch (i) {
84
- c = [6, i], n = 0;
85
- } finally {
86
- o = r = 0;
87
- }
88
- if (5 & c[0]) throw c[1];
89
- return { value: c[0] ? c[1] : void 0, done: !0 };
90
- }([D, O]);
91
- };
92
- }
93
- };
94
- Object.defineProperty(H, "__esModule", { value: !0 }), H.JsDelivrSourceResolver = void 0;
95
- var j = function() {
96
- function e() {
97
- }
98
- return e.prototype.resolvePackageJson = function(t, o, n) {
99
- return g(this, void 0, void 0, function() {
100
- return x(this, function(r) {
101
- switch (r.label) {
102
- case 0:
103
- return [4, this.resolveFile("https://cdn.jsdelivr.net/npm/".concat(t).concat(o ? "@".concat(o) : "").concat(n ? "/".concat(n) : "", "/package.json"))];
104
- case 1:
105
- return [2, r.sent()];
106
- }
107
- });
108
- });
109
- }, e.prototype.resolveSourceFile = function(t, o, n) {
110
- return g(this, void 0, void 0, function() {
111
- return x(this, function(r) {
112
- switch (r.label) {
113
- case 0:
114
- return [4, this.resolveFile("https://cdn.jsdelivr.net/npm/".concat(t).concat(o ? "@".concat(o) : "", "/").concat(n))];
115
- case 1:
116
- return [2, r.sent()];
117
- }
118
- });
119
- });
120
- }, e.prototype.resolveFile = function(t) {
121
- return g(this, void 0, void 0, function() {
122
- var o;
123
- return x(this, function(n) {
124
- switch (n.label) {
125
- case 0:
126
- return [4, fetch(t, { method: "GET" })];
127
- case 1:
128
- return (o = n.sent()).ok ? [4, o.text()] : [3, 3];
129
- case 2:
130
- return [2, n.sent()];
131
- case 3:
132
- if (o.status === 404) return [2, ""];
133
- throw Error("Error other than 404 while fetching from Unpkg at ".concat(t));
134
- case 4:
135
- return [2];
136
- }
137
- });
138
- });
139
- }, e;
140
- }();
141
- return H.JsDelivrSourceResolver = j, H;
142
- }
143
- var le, pe, he, N = {}, V = {};
144
- function se() {
145
- if (pe) return le;
146
- function g(e) {
147
- if (typeof e != "string") throw new TypeError("Path must be a string. Received " + JSON.stringify(e));
148
- }
149
- function x(e, t) {
150
- for (var o, n = "", r = 0, s = -1, l = 0, f = 0; f <= e.length; ++f) {
151
- if (f < e.length) o = e.charCodeAt(f);
152
- else {
153
- if (o === 47) break;
154
- o = 47;
155
- }
156
- if (o === 47) {
157
- if (s !== f - 1 && l !== 1) if (s !== f - 1 && l === 2) {
158
- if (n.length < 2 || r !== 2 || n.charCodeAt(n.length - 1) !== 46 || n.charCodeAt(n.length - 2) !== 46) {
159
- if (n.length > 2) {
160
- var D = n.lastIndexOf("/");
161
- if (D !== n.length - 1) {
162
- D === -1 ? (n = "", r = 0) : r = (n = n.slice(0, D)).length - 1 - n.lastIndexOf("/"), s = f, l = 0;
163
- continue;
164
- }
165
- } else if (n.length === 2 || n.length === 1) {
166
- n = "", r = 0, s = f, l = 0;
167
- continue;
168
- }
169
- }
170
- t && (n.length > 0 ? n += "/.." : n = "..", r = 2);
171
- } else n.length > 0 ? n += "/" + e.slice(s + 1, f) : n = e.slice(s + 1, f), r = f - s - 1;
172
- s = f, l = 0;
173
- } else o === 46 && l !== -1 ? ++l : l = -1;
174
- }
175
- return n;
176
- }
177
- pe = 1;
178
- var j = { resolve: function() {
179
- for (var e, t = "", o = !1, n = arguments.length - 1; n >= -1 && !o; n--) {
180
- var r;
181
- n >= 0 ? r = arguments[n] : (e === void 0 && (e = process.cwd()), r = e), g(r), r.length !== 0 && (t = r + "/" + t, o = r.charCodeAt(0) === 47);
182
- }
183
- return t = x(t, !o), o ? t.length > 0 ? "/" + t : "/" : t.length > 0 ? t : ".";
184
- }, normalize: function(e) {
185
- if (g(e), e.length === 0) return ".";
186
- var t = e.charCodeAt(0) === 47, o = e.charCodeAt(e.length - 1) === 47;
187
- return (e = x(e, !t)).length !== 0 || t || (e = "."), e.length > 0 && o && (e += "/"), t ? "/" + e : e;
188
- }, isAbsolute: function(e) {
189
- return g(e), e.length > 0 && e.charCodeAt(0) === 47;
190
- }, join: function() {
191
- if (arguments.length === 0) return ".";
192
- for (var e, t = 0; t < arguments.length; ++t) {
193
- var o = arguments[t];
194
- g(o), o.length > 0 && (e === void 0 ? e = o : e += "/" + o);
195
- }
196
- return e === void 0 ? "." : j.normalize(e);
197
- }, relative: function(e, t) {
198
- if (g(e), g(t), e === t || (e = j.resolve(e)) === (t = j.resolve(t))) return "";
199
- for (var o = 1; o < e.length && e.charCodeAt(o) === 47; ++o) ;
200
- for (var n = e.length, r = n - o, s = 1; s < t.length && t.charCodeAt(s) === 47; ++s) ;
201
- for (var l = t.length - s, f = r < l ? r : l, D = -1, O = 0; O <= f; ++O) {
202
- if (O === f) {
203
- if (l > f) {
204
- if (t.charCodeAt(s + O) === 47) return t.slice(s + O + 1);
205
- if (O === 0) return t.slice(s + O);
206
- } else r > f && (e.charCodeAt(o + O) === 47 ? D = O : O === 0 && (D = 0));
207
- break;
208
- }
209
- var c = e.charCodeAt(o + O);
210
- if (c !== t.charCodeAt(s + O)) break;
211
- c === 47 && (D = O);
212
- }
213
- var i = "";
214
- for (O = o + D + 1; O <= n; ++O) O !== n && e.charCodeAt(O) !== 47 || (i.length === 0 ? i += ".." : i += "/..");
215
- return i.length > 0 ? i + t.slice(s + D) : (s += D, t.charCodeAt(s) === 47 && ++s, t.slice(s));
216
- }, _makeLong: function(e) {
217
- return e;
218
- }, dirname: function(e) {
219
- if (g(e), e.length === 0) return ".";
220
- for (var t = e.charCodeAt(0), o = t === 47, n = -1, r = !0, s = e.length - 1; s >= 1; --s) if ((t = e.charCodeAt(s)) === 47) {
221
- if (!r) {
222
- n = s;
223
- break;
224
- }
225
- } else r = !1;
226
- return n === -1 ? o ? "/" : "." : o && n === 1 ? "//" : e.slice(0, n);
227
- }, basename: function(e, t) {
228
- if (t !== void 0 && typeof t != "string") throw new TypeError('"ext" argument must be a string');
229
- g(e);
230
- var o, n = 0, r = -1, s = !0;
231
- if (t !== void 0 && t.length > 0 && t.length <= e.length) {
232
- if (t.length === e.length && t === e) return "";
233
- var l = t.length - 1, f = -1;
234
- for (o = e.length - 1; o >= 0; --o) {
235
- var D = e.charCodeAt(o);
236
- if (D === 47) {
237
- if (!s) {
238
- n = o + 1;
239
- break;
240
- }
241
- } else f === -1 && (s = !1, f = o + 1), l >= 0 && (D === t.charCodeAt(l) ? --l === -1 && (r = o) : (l = -1, r = f));
242
- }
243
- return n === r ? r = f : r === -1 && (r = e.length), e.slice(n, r);
244
- }
245
- for (o = e.length - 1; o >= 0; --o) if (e.charCodeAt(o) === 47) {
246
- if (!s) {
247
- n = o + 1;
248
- break;
249
- }
250
- } else r === -1 && (s = !1, r = o + 1);
251
- return r === -1 ? "" : e.slice(n, r);
252
- }, extname: function(e) {
253
- g(e);
254
- for (var t = -1, o = 0, n = -1, r = !0, s = 0, l = e.length - 1; l >= 0; --l) {
255
- var f = e.charCodeAt(l);
256
- if (f !== 47) n === -1 && (r = !1, n = l + 1), f === 46 ? t === -1 ? t = l : s !== 1 && (s = 1) : t !== -1 && (s = -1);
257
- else if (!r) {
258
- o = l + 1;
259
- break;
260
- }
261
- }
262
- return t === -1 || n === -1 || s === 0 || s === 1 && t === n - 1 && t === o + 1 ? "" : e.slice(t, n);
263
- }, format: function(e) {
264
- if (e === null || typeof e != "object") throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof e);
265
- return o = (t = e).dir || t.root, n = t.base || (t.name || "") + (t.ext || ""), o ? o === t.root ? o + n : o + "/" + n : n;
266
- var t, o, n;
267
- }, parse: function(e) {
268
- g(e);
269
- var t = { root: "", dir: "", base: "", ext: "", name: "" };
270
- if (e.length === 0) return t;
271
- var o, n = e.charCodeAt(0), r = n === 47;
272
- r ? (t.root = "/", o = 1) : o = 0;
273
- for (var s = -1, l = 0, f = -1, D = !0, O = e.length - 1, c = 0; O >= o; --O) if ((n = e.charCodeAt(O)) !== 47) f === -1 && (D = !1, f = O + 1), n === 46 ? s === -1 ? s = O : c !== 1 && (c = 1) : s !== -1 && (c = -1);
274
- else if (!D) {
275
- l = O + 1;
276
- break;
277
- }
278
- return s === -1 || f === -1 || c === 0 || c === 1 && s === f - 1 && s === l + 1 ? f !== -1 && (t.base = t.name = l === 0 && r ? e.slice(1, f) : e.slice(l, f)) : (l === 0 && r ? (t.name = e.slice(1, s), t.base = e.slice(1, f)) : (t.name = e.slice(l, s), t.base = e.slice(l, f)), t.ext = e.slice(s, f)), l > 0 ? t.dir = e.slice(0, l - 1) : r && (t.dir = "/"), t;
279
- }, sep: "/", delimiter: ":", win32: null, posix: null };
280
- return j.posix = j, le = j;
281
- }
282
- var fe, te = {};
283
- function Ie() {
284
- if (fe) return te;
285
- fe = 1;
286
- var g = te && te.__importDefault || function(j) {
287
- return j && j.__esModule ? j : { default: j };
288
- };
289
- Object.defineProperty(te, "__esModule", { value: !0 }), te.importResourcePathToString = void 0;
290
- var x = g(se());
291
- return te.importResourcePathToString = function(j) {
292
- var e;
293
- switch (j.kind) {
294
- case "package":
295
- return x.default.join(j.packageName, (e = j.importPath) !== null && e !== void 0 ? e : "", "package.json");
296
- case "relative":
297
- return x.default.join(j.sourcePath, j.importPath);
298
- case "relative-in-package":
299
- return x.default.join(j.packageName, j.sourcePath, j.importPath);
300
- }
301
- }, te;
302
- }
303
- var de, ie = {};
304
- function ve() {
305
- return de || (de = 1, Object.defineProperty(ie, "__esModule", { value: !0 }), ie.invokeUpdate = void 0, ie.invokeUpdate = function(g, x) {
306
- var j, e = "".concat(g.type, ": ");
307
- switch (g.type) {
308
- case "CodeChanged":
309
- case "ResolveNewImports":
310
- e += "";
311
- break;
312
- case "LookedUpTypeFile":
313
- e += '"'.concat(g.path, '" was ').concat(g.success ? "sucessfully" : "not sucessfully", " looked up");
314
- break;
315
- case "AttemptedLookUpFile":
316
- e += '"'.concat(g.path, '" was ').concat(g.success ? "sucessfully" : "not sucessfully", " attempted to looked up");
317
- break;
318
- case "LookedUpPackage":
319
- e += 'package.json for package "'.concat(g.package, '" was ').concat(g.success ? "sucessfully" : "not sucessfully", " looked up").concat(g.definitelyTyped ? " (found in definitely typed repo)" : "");
320
- break;
321
- case "LoadedFromCache":
322
- e += '"'.concat(g.importPath, '" was loaded from cache');
323
- break;
324
- case "StoredToCache":
325
- e += '"'.concat(g.importPath, '" was stored to cache');
326
- }
327
- e.endsWith(": ") && (e = e.slice(void 0, -2)), (j = x.onUpdate) === null || j === void 0 || j.call(x, g, e);
328
- }), ie;
329
- }
330
- var ye, ge, me, be, ae = {};
331
- function ke() {
332
- if (ye) return ae;
333
- ye = 1, Object.defineProperty(ae, "__esModule", { value: !0 }), ae.RecursionDepth = void 0;
334
- var g = function() {
335
- function x(j, e, t) {
336
- e === void 0 && (e = 0), t === void 0 && (t = 0), this.options = j, this.fileRecursionDepth = e, this.packageRecursionDepth = t;
337
- }
338
- return x.prototype.nextPackage = function() {
339
- return new x(this.options, this.fileRecursionDepth, this.packageRecursionDepth + 1);
340
- }, x.prototype.nextFile = function() {
341
- return new x(this.options, this.fileRecursionDepth + 1, this.packageRecursionDepth);
342
- }, x.prototype.same = function() {
343
- return new x(this.options, this.fileRecursionDepth, this.packageRecursionDepth);
344
- }, x.prototype.shouldStop = function() {
345
- return this.options.fileRecursionDepth > 0 && this.fileRecursionDepth >= this.options.fileRecursionDepth || this.options.packageRecursionDepth > 0 && this.packageRecursionDepth >= this.options.packageRecursionDepth;
346
- }, x;
347
- }();
348
- return ae.RecursionDepth = g, ae;
349
- }
350
- function Le() {
351
- if (me) return U;
352
- me = 1;
353
- var g = U && U.__assign || function() {
354
- return g = Object.assign || function(i) {
355
- for (var b, k = 1, A = arguments.length; k < A; k++) for (var y in b = arguments[k]) Object.prototype.hasOwnProperty.call(b, y) && (i[y] = b[y]);
356
- return i;
357
- }, g.apply(this, arguments);
358
- }, x = U && U.__createBinding || (Object.create ? function(i, b, k, A) {
359
- A === void 0 && (A = k);
360
- var y = Object.getOwnPropertyDescriptor(b, k);
361
- y && !("get" in y ? !b.__esModule : y.writable || y.configurable) || (y = { enumerable: !0, get: function() {
362
- return b[k];
363
- } }), Object.defineProperty(i, A, y);
364
- } : function(i, b, k, A) {
365
- A === void 0 && (A = k), i[A] = b[k];
366
- }), j = U && U.__setModuleDefault || (Object.create ? function(i, b) {
367
- Object.defineProperty(i, "default", { enumerable: !0, value: b });
368
- } : function(i, b) {
369
- i.default = b;
370
- }), e = U && U.__importStar || function(i) {
371
- if (i && i.__esModule) return i;
372
- var b = {};
373
- if (i != null) for (var k in i) k !== "default" && Object.prototype.hasOwnProperty.call(i, k) && x(b, i, k);
374
- return j(b, i), b;
375
- }, t = U && U.__awaiter || function(i, b, k, A) {
376
- return new (k || (k = Promise))(function(y, F) {
377
- function E(X) {
378
- try {
379
- Z(A.next(X));
380
- } catch (R) {
381
- F(R);
382
- }
383
- }
384
- function Y(X) {
385
- try {
386
- Z(A.throw(X));
387
- } catch (R) {
388
- F(R);
389
- }
390
- }
391
- function Z(X) {
392
- var R;
393
- X.done ? y(X.value) : (R = X.value, R instanceof k ? R : new k(function(G) {
394
- G(R);
395
- })).then(E, Y);
396
- }
397
- Z((A = A.apply(i, b || [])).next());
398
- });
399
- }, o = U && U.__generator || function(i, b) {
400
- var k, A, y, F, E = { label: 0, sent: function() {
401
- if (1 & y[0]) throw y[1];
402
- return y[1];
403
- }, trys: [], ops: [] };
404
- return F = { next: Y(0), throw: Y(1), return: Y(2) }, typeof Symbol == "function" && (F[Symbol.iterator] = function() {
405
- return this;
406
- }), F;
407
- function Y(Z) {
408
- return function(X) {
409
- return function(R) {
410
- if (k) throw new TypeError("Generator is already executing.");
411
- for (; E; ) try {
412
- if (k = 1, A && (y = 2 & R[0] ? A.return : R[0] ? A.throw || ((y = A.return) && y.call(A), 0) : A.next) && !(y = y.call(A, R[1])).done) return y;
413
- switch (A = 0, y && (R = [2 & R[0], y.value]), R[0]) {
414
- case 0:
415
- case 1:
416
- y = R;
417
- break;
418
- case 4:
419
- return E.label++, { value: R[1], done: !1 };
420
- case 5:
421
- E.label++, A = R[1], R = [0];
422
- continue;
423
- case 7:
424
- R = E.ops.pop(), E.trys.pop();
425
- continue;
426
- default:
427
- if (!((y = (y = E.trys).length > 0 && y[y.length - 1]) || R[0] !== 6 && R[0] !== 2)) {
428
- E = 0;
429
- continue;
430
- }
431
- if (R[0] === 3 && (!y || R[1] > y[0] && R[1] < y[3])) {
432
- E.label = R[1];
433
- break;
434
- }
435
- if (R[0] === 6 && E.label < y[1]) {
436
- E.label = y[1], y = R;
437
- break;
438
- }
439
- if (y && E.label < y[2]) {
440
- E.label = y[2], E.ops.push(R);
441
- break;
442
- }
443
- y[2] && E.ops.pop(), E.trys.pop();
444
- continue;
445
- }
446
- R = b.call(i, E);
447
- } catch (G) {
448
- R = [6, G], A = 0;
449
- } finally {
450
- k = y = 0;
451
- }
452
- if (5 & R[0]) throw R[1];
453
- return { value: R[0] ? R[1] : void 0, done: !0 };
454
- }([Z, X]);
455
- };
456
- }
457
- }, n = U && U.__values || function(i) {
458
- var b = typeof Symbol == "function" && Symbol.iterator, k = b && i[b], A = 0;
459
- if (k) return k.call(i);
460
- if (i && typeof i.length == "number") return { next: function() {
461
- return i && A >= i.length && (i = void 0), { value: i && i[A++], done: !i };
462
- } };
463
- throw new TypeError(b ? "Object is not iterable." : "Symbol.iterator is not defined.");
464
- };
465
- Object.defineProperty(U, "__esModule", { value: !0 }), U.AutoTypingsCore = void 0;
466
- var r = function() {
467
- if (ce) return oe;
468
- ce = 1, Object.defineProperty(oe, "__esModule", { value: !0 }), oe.DummySourceCache = void 0;
469
- var i = function() {
470
- function b() {
471
- }
472
- return b.prototype.getFile = function(k) {
473
- return Promise.resolve(void 0);
474
- }, b.prototype.isFileAvailable = function(k) {
475
- return Promise.resolve(!1);
476
- }, b.prototype.storeFile = function(k, A) {
477
- return Promise.resolve(void 0);
478
- }, b.prototype.clear = function() {
479
- return Promise.resolve(void 0);
480
- }, b;
481
- }();
482
- return oe.DummySourceCache = i, oe;
483
- }(), s = Ne(), l = function() {
484
- if (ge) return N;
485
- ge = 1;
486
- var i = N && N.__assign || function() {
487
- return i = Object.assign || function(_) {
488
- for (var a, h = 1, v = arguments.length; h < v; h++) for (var u in a = arguments[h]) Object.prototype.hasOwnProperty.call(a, u) && (_[u] = a[u]);
489
- return _;
490
- }, i.apply(this, arguments);
491
- }, b = N && N.__createBinding || (Object.create ? function(_, a, h, v) {
492
- v === void 0 && (v = h);
493
- var u = Object.getOwnPropertyDescriptor(a, h);
494
- u && !("get" in u ? !a.__esModule : u.writable || u.configurable) || (u = { enumerable: !0, get: function() {
495
- return a[h];
496
- } }), Object.defineProperty(_, v, u);
497
- } : function(_, a, h, v) {
498
- v === void 0 && (v = h), _[v] = a[h];
499
- }), k = N && N.__setModuleDefault || (Object.create ? function(_, a) {
500
- Object.defineProperty(_, "default", { enumerable: !0, value: a });
501
- } : function(_, a) {
502
- _.default = a;
503
- }), A = N && N.__importStar || function(_) {
504
- if (_ && _.__esModule) return _;
505
- var a = {};
506
- if (_ != null) for (var h in _) h !== "default" && Object.prototype.hasOwnProperty.call(_, h) && b(a, _, h);
507
- return k(a, _), a;
508
- }, y = N && N.__awaiter || function(_, a, h, v) {
509
- return new (h || (h = Promise))(function(u, S) {
510
- function m(C) {
511
- try {
512
- p(v.next(C));
513
- } catch (d) {
514
- S(d);
515
- }
516
- }
517
- function w(C) {
518
- try {
519
- p(v.throw(C));
520
- } catch (d) {
521
- S(d);
522
- }
523
- }
524
- function p(C) {
525
- var d;
526
- C.done ? u(C.value) : (d = C.value, d instanceof h ? d : new h(function(P) {
527
- P(d);
528
- })).then(m, w);
529
- }
530
- p((v = v.apply(_, a || [])).next());
531
- });
532
- }, F = N && N.__generator || function(_, a) {
533
- var h, v, u, S, m = { label: 0, sent: function() {
534
- if (1 & u[0]) throw u[1];
535
- return u[1];
536
- }, trys: [], ops: [] };
537
- return S = { next: w(0), throw: w(1), return: w(2) }, typeof Symbol == "function" && (S[Symbol.iterator] = function() {
538
- return this;
539
- }), S;
540
- function w(p) {
541
- return function(C) {
542
- return function(d) {
543
- if (h) throw new TypeError("Generator is already executing.");
544
- for (; m; ) try {
545
- if (h = 1, v && (u = 2 & d[0] ? v.return : d[0] ? v.throw || ((u = v.return) && u.call(v), 0) : v.next) && !(u = u.call(v, d[1])).done) return u;
546
- switch (v = 0, u && (d = [2 & d[0], u.value]), d[0]) {
547
- case 0:
548
- case 1:
549
- u = d;
550
- break;
551
- case 4:
552
- return m.label++, { value: d[1], done: !1 };
553
- case 5:
554
- m.label++, v = d[1], d = [0];
555
- continue;
556
- case 7:
557
- d = m.ops.pop(), m.trys.pop();
558
- continue;
559
- default:
560
- if (!((u = (u = m.trys).length > 0 && u[u.length - 1]) || d[0] !== 6 && d[0] !== 2)) {
561
- m = 0;
562
- continue;
563
- }
564
- if (d[0] === 3 && (!u || d[1] > u[0] && d[1] < u[3])) {
565
- m.label = d[1];
566
- break;
567
- }
568
- if (d[0] === 6 && m.label < u[1]) {
569
- m.label = u[1], u = d;
570
- break;
571
- }
572
- if (u && m.label < u[2]) {
573
- m.label = u[2], m.ops.push(d);
574
- break;
575
- }
576
- u[2] && m.ops.pop(), m.trys.pop();
577
- continue;
578
- }
579
- d = a.call(_, m);
580
- } catch (P) {
581
- d = [6, P], v = 0;
582
- } finally {
583
- h = u = 0;
584
- }
585
- if (5 & d[0]) throw d[1];
586
- return { value: d[0] ? d[1] : void 0, done: !0 };
587
- }([p, C]);
588
- };
589
- }
590
- }, E = N && N.__values || function(_) {
591
- var a = typeof Symbol == "function" && Symbol.iterator, h = a && _[a], v = 0;
592
- if (h) return h.call(_);
593
- if (_ && typeof _.length == "number") return { next: function() {
594
- return _ && v >= _.length && (_ = void 0), { value: _ && _[v++], done: !_ };
595
- } };
596
- throw new TypeError(a ? "Object is not iterable." : "Symbol.iterator is not defined.");
597
- }, Y = N && N.__read || function(_, a) {
598
- var h = typeof Symbol == "function" && _[Symbol.iterator];
599
- if (!h) return _;
600
- var v, u, S = h.call(_), m = [];
601
- try {
602
- for (; (a === void 0 || a-- > 0) && !(v = S.next()).done; ) m.push(v.value);
603
- } catch (w) {
604
- u = { error: w };
605
- } finally {
606
- try {
607
- v && !v.done && (h = S.return) && h.call(S);
608
- } finally {
609
- if (u) throw u.error;
610
- }
611
- }
612
- return m;
613
- };
614
- Object.defineProperty(N, "__esModule", { value: !0 }), N.ImportResolver = void 0;
615
- var Z = function() {
616
- if (he) return V;
617
- he = 1;
618
- var _ = V && V.__createBinding || (Object.create ? function(w, p, C, d) {
619
- d === void 0 && (d = C);
620
- var P = Object.getOwnPropertyDescriptor(p, C);
621
- P && !("get" in P ? !p.__esModule : P.writable || P.configurable) || (P = { enumerable: !0, get: function() {
622
- return p[C];
623
- } }), Object.defineProperty(w, d, P);
624
- } : function(w, p, C, d) {
625
- d === void 0 && (d = C), w[d] = p[C];
626
- }), a = V && V.__setModuleDefault || (Object.create ? function(w, p) {
627
- Object.defineProperty(w, "default", { enumerable: !0, value: p });
628
- } : function(w, p) {
629
- w.default = p;
630
- }), h = V && V.__importStar || function(w) {
631
- if (w && w.__esModule) return w;
632
- var p = {};
633
- if (w != null) for (var C in w) C !== "default" && Object.prototype.hasOwnProperty.call(w, C) && _(p, w, C);
634
- return a(p, w), p;
635
- }, v = V && V.__read || function(w, p) {
636
- var C = typeof Symbol == "function" && w[Symbol.iterator];
637
- if (!C) return w;
638
- var d, P, I = C.call(w), L = [];
639
- try {
640
- for (; (p === void 0 || p-- > 0) && !(d = I.next()).done; ) L.push(d.value);
641
- } catch (M) {
642
- P = { error: M };
643
- } finally {
644
- try {
645
- d && !d.done && (C = I.return) && C.call(I);
646
- } finally {
647
- if (P) throw P.error;
648
- }
649
- }
650
- return L;
651
- }, u = V && V.__spreadArray || function(w, p, C) {
652
- if (C || arguments.length === 2) for (var d, P = 0, I = p.length; P < I; P++) !d && P in p || (d || (d = Array.prototype.slice.call(p, 0, P)), d[P] = p[P]);
653
- return w.concat(d || Array.prototype.slice.call(p));
654
- };
655
- Object.defineProperty(V, "__esModule", { value: !0 }), V.DependencyParser = void 0;
656
- var S = h(se()), m = function() {
657
- function w() {
658
- this.REGEX_CLEAN = /[\n|\r]/g, this.REGEX_DETECT_IMPORT = /(?:(?:(?:import)|(?:export))(?:.)*?from\s+["']([^"']+)["'])|(?:((?:require|import))(?:\s+)?\(["']([^"']+)["']\))|(?:\/+\s+<reference\s+path=["']([^"']+)["']\s+\/>)/g, this.REGEX_NODE_MODULE = /^node:([\w\W\/]+)$/;
659
- }
660
- return w.prototype.parseDependencies = function(p, C) {
661
- var d = this;
662
- return u([], v(p.matchAll(this.REGEX_DETECT_IMPORT)), !1).map(function(P) {
663
- var I, L;
664
- return (L = (I = P[1]) !== null && I !== void 0 ? I : P[2]) !== null && L !== void 0 ? L : P[3];
665
- }).filter(function(P) {
666
- return !!P;
667
- }).map(function(P) {
668
- return d.resolvePath(P, C);
669
- });
670
- }, w.prototype.resolvePath = function(p, C) {
671
- var d = p.match(this.REGEX_NODE_MODULE);
672
- if (d) return { kind: "relative-in-package", packageName: "@types/node", importPath: "".concat(d[1], ".d.ts"), sourcePath: "" };
673
- if (typeof C == "string") {
674
- if (p.startsWith(".")) return { kind: "relative", importPath: p, sourcePath: C };
675
- if (p.startsWith("@")) {
676
- var P = p.split("/");
677
- return { kind: "package", packageName: "".concat(P[0], "/").concat(P[1]), importPath: P.slice(2).join("/") };
678
- }
679
- return { kind: "package", packageName: (P = p.split("/"))[0], importPath: P.slice(1).join("/") };
680
- }
681
- switch (C.kind) {
682
- case "package":
683
- throw Error("TODO?");
684
- case "relative":
685
- throw Error("TODO2?");
686
- case "relative-in-package":
687
- return p.startsWith(".") ? { kind: "relative-in-package", packageName: C.packageName, sourcePath: S.join(C.sourcePath, C.importPath), importPath: p } : p.startsWith("@") ? (P = p.split("/"), { kind: "package", packageName: "".concat(P[0], "/").concat(P[1]), importPath: P.slice(2).join("/") }) : { kind: "package", packageName: (P = p.split("/"))[0], importPath: P.slice(1).join("/") };
688
- }
689
- }, w;
690
- }();
691
- return V.DependencyParser = m, V;
692
- }(), X = Ie(), R = A(se()), G = ve(), Me = ke(), Ue = function() {
693
- function _(a) {
694
- var h, v;
695
- if (this.options = a, this.loadedFiles = [], this.dependencyParser = new Z.DependencyParser(), this.cache = a.sourceCache, this.sourceResolver = a.sourceResolver, this.newImportsResolved = !1, this.monaco = a.monaco, a.preloadPackages && a.versions) {
696
- this.versions = a.versions;
697
- try {
698
- for (var u = E(Object.entries(a.versions)), S = u.next(); !S.done; S = u.next()) {
699
- var m = Y(S.value, 2), w = m[0];
700
- m[1], this.resolveImport({ kind: "package", packageName: w, importPath: "" }, new Me.RecursionDepth(this.options)).catch(function(p) {
701
- console.error(p);
702
- });
703
- }
704
- } catch (p) {
705
- h = { error: p };
706
- } finally {
707
- try {
708
- S && !S.done && (v = u.return) && v.call(u);
709
- } finally {
710
- if (h) throw h.error;
711
- }
712
- }
713
- }
714
- }
715
- return _.prototype.wereNewImportsResolved = function() {
716
- return this.newImportsResolved;
717
- }, _.prototype.resetNewImportsResolved = function() {
718
- this.newImportsResolved = !1;
719
- }, _.prototype.resolveImportsInFile = function(a, h, v) {
720
- var u, S, m;
721
- return y(this, void 0, void 0, function() {
722
- var w, p, C, d, P, I, L, M;
723
- return F(this, function(T) {
724
- switch (T.label) {
725
- case 0:
726
- if (v.shouldStop()) return [2];
727
- w = this.dependencyParser.parseDependencies(a, h), T.label = 1;
728
- case 1:
729
- T.trys.push([1, 8, 9, 10]), p = E(w), C = p.next(), T.label = 2;
730
- case 2:
731
- if (C.done) return [3, 7];
732
- d = C.value, T.label = 3;
733
- case 3:
734
- return T.trys.push([3, 5, , 6]), [4, this.resolveImport(d, v)];
735
- case 4:
736
- return T.sent(), [3, 6];
737
- case 5:
738
- return P = T.sent(), this.options.onError ? (S = (u = this.options).onError) === null || S === void 0 || S.call(u, (m = P.message) !== null && m !== void 0 ? m : P) : console.error(P), [3, 6];
739
- case 6:
740
- return C = p.next(), [3, 2];
741
- case 7:
742
- return [3, 10];
743
- case 8:
744
- return I = T.sent(), L = { error: I }, [3, 10];
745
- case 9:
746
- try {
747
- C && !C.done && (M = p.return) && M.call(p);
748
- } finally {
749
- if (L) throw L.error;
750
- }
751
- return [7];
752
- case 10:
753
- return [2];
754
- }
755
- });
756
- });
757
- }, _.prototype.resolveImport = function(a, h) {
758
- return y(this, void 0, void 0, function() {
759
- var v, u;
760
- return F(this, function(S) {
761
- switch (S.label) {
762
- case 0:
763
- if (v = this.hashImportResourcePath(a), this.loadedFiles.includes(v)) return [2];
764
- switch (this.loadedFiles.push(v), a.kind) {
765
- case "package":
766
- return [3, 1];
767
- case "relative":
768
- return [3, 5];
769
- case "relative-in-package":
770
- return [3, 6];
771
- }
772
- return [3, 8];
773
- case 1:
774
- return [4, this.resolveImportFromPackageRoot(a)];
775
- case 2:
776
- return (u = S.sent()) ? [4, this.resolveImportInPackage(u, h.nextPackage().nextFile())] : [3, 4];
777
- case 3:
778
- case 7:
779
- return [2, S.sent()];
780
- case 4:
781
- return [3, 8];
782
- case 5:
783
- throw Error("Not implemented yet");
784
- case 6:
785
- return [4, this.resolveImportInPackage(a, h.nextFile())];
786
- case 8:
787
- return [2];
788
- }
789
- });
790
- });
791
- }, _.prototype.resolveImportInPackage = function(a, h) {
792
- return y(this, void 0, void 0, function() {
793
- var v, u, S;
794
- return F(this, function(m) {
795
- switch (m.label) {
796
- case 0:
797
- return [4, this.loadSourceFileContents(a)];
798
- case 1:
799
- return (v = m.sent()) ? (u = v.source, S = v.at, this.createModel(u, this.monaco.Uri.parse(this.options.fileRootPath + R.join("node_modules/".concat(a.packageName), S))), [4, this.resolveImportsInFile(u, { kind: "relative-in-package", packageName: a.packageName, sourcePath: R.dirname(S), importPath: "" }, h)]) : [3, 3];
800
- case 2:
801
- m.sent(), m.label = 3;
802
- case 3:
803
- return [2];
804
- }
805
- });
806
- });
807
- }, _.prototype.resolveImportFromPackageRoot = function(a) {
808
- var h, v, u, S, m, w, p, C, d;
809
- return y(this, void 0, void 0, function() {
810
- var P, I, L, M, T, B, re, J, W;
811
- return F(this, function($) {
812
- switch ($.label) {
813
- case 0:
814
- return P = { type: "LookedUpPackage", package: a.packageName, definitelyTyped: !1, success: !1 }, !this.options.onlySpecifiedPackages || (h = this.versions) !== null && h !== void 0 && h[a.packageName] || (v = this.versions) !== null && v !== void 0 && v["@types/" + a.packageName] ? (I = (S = (u = a.importPath) === null || u === void 0 ? void 0 : u.length) !== null && S !== void 0 && S, L = I ? "/".concat(a.importPath) : "", [4, this.resolvePackageJson(a.packageName, (m = this.versions) === null || m === void 0 ? void 0 : m[a.packageName], I ? a.importPath : void 0)]) : ((0, G.invokeUpdate)(P, this.options), [2]);
815
- case 1:
816
- return (M = $.sent()) || !I ? [3, 3] : [4, this.resolvePackageJson(a.packageName, (w = this.versions) === null || w === void 0 ? void 0 : w[a.packageName])];
817
- case 2:
818
- M = $.sent(), L = "", $.label = 3;
819
- case 3:
820
- return M ? (T = JSON.parse(M)).typings || T.types ? (W = T.typings || T.types, this.createModel(M, this.monaco.Uri.parse("".concat(this.options.fileRootPath, "node_modules/").concat(a.packageName).concat(L, "/package.json"))), (0, G.invokeUpdate)({ type: "LookedUpPackage", package: a.packageName, definitelyTyped: !1, success: !0 }, this.options), this.setVersion(a.packageName, T.version), [2, { kind: "relative-in-package", packageName: a.packageName, sourcePath: "", importPath: R.join((p = a.importPath) !== null && p !== void 0 ? p : "", W.startsWith("./") ? W.slice(2) : W) }]) : [3, 4] : [3, 7];
821
- case 4:
822
- return B = "@types/".concat(a.packageName.startsWith("@") ? a.packageName.slice(1).replace(/\//, "__") : a.packageName), [4, this.resolvePackageJson(B, (C = this.versions) === null || C === void 0 ? void 0 : C[B])];
823
- case 5:
824
- if (re = $.sent()) {
825
- if ((J = JSON.parse(re)).typings || J.types) return W = J.typings || J.types, this.createModel(re, this.monaco.Uri.parse("".concat(this.options.fileRootPath, "node_modules/").concat(B, "/package.json"))), (0, G.invokeUpdate)({ type: "LookedUpPackage", package: B, definitelyTyped: !0, success: !0 }, this.options), this.setVersion(B, J.version), [2, { kind: "relative-in-package", packageName: B, sourcePath: "", importPath: R.join((d = a.importPath) !== null && d !== void 0 ? d : "", W.startsWith("./") ? W.slice(2) : W) }];
826
- (0, G.invokeUpdate)(P, this.options);
827
- } else (0, G.invokeUpdate)(P, this.options);
828
- $.label = 6;
829
- case 6:
830
- return [3, 8];
831
- case 7:
832
- (0, G.invokeUpdate)(P, this.options), $.label = 8;
833
- case 8:
834
- return [2];
835
- }
836
- });
837
- });
838
- }, _.prototype.loadSourceFileContents = function(a) {
839
- return y(this, void 0, void 0, function() {
840
- var h, v, u, S, m, w, p, C, d, P, I, L, M, T, B, re;
841
- return F(this, function(J) {
842
- switch (J.label) {
843
- case 0:
844
- return h = R.join(a.packageName, a.sourcePath, a.importPath), v = { type: "LookedUpTypeFile", path: h, definitelyTyped: !1, success: !1 }, u = a.packageName, S = this.getVersion(a.packageName), (m = [".d.ts", "/index.d.ts", ".ts", ".tsx", "/index.ts", "/index.tsx"]).map(function(W) {
845
- return a.importPath.endsWith(W);
846
- }).reduce(function(W, $) {
847
- return W || $;
848
- }, !1) ? [4, this.resolveSourceFile(u, S, R.join(a.sourcePath, a.importPath))] : [3, 2];
849
- case 1:
850
- return (T = J.sent()) ? [2, { source: T, at: R.join(a.sourcePath, a.importPath) }] : [3, 9];
851
- case 2:
852
- J.trys.push([2, 7, 8, 9]), w = E(m), p = w.next(), J.label = 3;
853
- case 3:
854
- return p.done ? [3, 6] : (C = p.value, d = R.join(a.sourcePath, a.importPath), M = (C === ".d.ts" && d.endsWith(".js") ? d.slice(0, -3) : d) + C, [4, this.resolveSourceFile(u, S, M)]);
855
- case 4:
856
- if (T = J.sent(), (0, G.invokeUpdate)({ type: "AttemptedLookUpFile", path: R.join(u, M), success: !!T }, this.options), T) return (0, G.invokeUpdate)({ type: "LookedUpTypeFile", path: R.join(u, M), success: !0 }, this.options), [2, { source: T, at: M }];
857
- J.label = 5;
858
- case 5:
859
- return p = w.next(), [3, 3];
860
- case 6:
861
- return [3, 9];
862
- case 7:
863
- return P = J.sent(), B = { error: P }, [3, 9];
864
- case 8:
865
- try {
866
- p && !p.done && (re = w.return) && re.call(w);
867
- } finally {
868
- if (B) throw B.error;
869
- }
870
- return [7];
871
- case 9:
872
- return [4, this.resolvePackageJson(u, S, R.join(a.sourcePath, a.importPath))];
873
- case 10:
874
- return (I = J.sent()) && (L = JSON.parse(I).types) ? (M = R.join(a.sourcePath, a.importPath, L), [4, this.resolveSourceFile(u, S, M)]) : [3, 12];
875
- case 11:
876
- if (T = J.sent()) return (0, G.invokeUpdate)({ type: "LookedUpTypeFile", path: R.join(u, M), success: !0 }, this.options), [2, { source: T, at: M }];
877
- J.label = 12;
878
- case 12:
879
- return (0, G.invokeUpdate)(v, this.options), [2, null];
880
- }
881
- });
882
- });
883
- }, _.prototype.getVersion = function(a) {
884
- var h;
885
- return (h = this.versions) === null || h === void 0 ? void 0 : h[a];
886
- }, _.prototype.setVersions = function(a) {
887
- var h, v;
888
- this.versions = a, (v = (h = this.options).onUpdateVersions) === null || v === void 0 || v.call(h, a);
889
- }, _.prototype.setVersion = function(a, h) {
890
- var v;
891
- this.setVersions(i(i({}, this.versions), ((v = {})[a] = h, v)));
892
- }, _.prototype.createModel = function(a, h) {
893
- h = h.with({ path: h.path.replace("@types/", "") }), this.monaco.editor.getModel(h) || (this.monaco.editor.createModel(a, "typescript", h), this.newImportsResolved = !0);
894
- }, _.prototype.hashImportResourcePath = function(a) {
895
- return (0, X.importResourcePathToString)(a);
896
- }, _.prototype.resolvePackageJson = function(a, h, v) {
897
- return y(this, void 0, void 0, function() {
898
- var u, S, m, w;
899
- return F(this, function(p) {
900
- switch (p.label) {
901
- case 0:
902
- return u = R.join(a + (h ? "@".concat(h) : ""), v ?? "", "package.json"), S = !1, m = void 0, this.cache.isFileAvailable ? [4, this.cache.isFileAvailable(u)] : [3, 2];
903
- case 1:
904
- return S = p.sent(), [3, 4];
905
- case 2:
906
- return [4, this.cache.getFile(u)];
907
- case 3:
908
- m = p.sent(), S = m !== void 0, p.label = 4;
909
- case 4:
910
- return S ? m == null ? [3, 5] : (w = m, [3, 7]) : [3, 8];
911
- case 5:
912
- return [4, this.cache.getFile(u)];
913
- case 6:
914
- w = p.sent(), p.label = 7;
915
- case 7:
916
- return [2, w];
917
- case 8:
918
- return [4, this.sourceResolver.resolvePackageJson(a, h, v)];
919
- case 9:
920
- return (m = p.sent()) && this.cache.storeFile(u, m), [2, m];
921
- }
922
- });
923
- });
924
- }, _.prototype.resolveSourceFile = function(a, h, v) {
925
- return y(this, void 0, void 0, function() {
926
- var u, S, m, w;
927
- return F(this, function(p) {
928
- switch (p.label) {
929
- case 0:
930
- return u = R.join(a + (h ? "@".concat(h) : ""), v), S = !1, m = void 0, this.cache.isFileAvailable ? [4, this.cache.isFileAvailable(u)] : [3, 2];
931
- case 1:
932
- return S = p.sent(), [3, 4];
933
- case 2:
934
- return [4, this.cache.getFile(u)];
935
- case 3:
936
- m = p.sent(), S = m !== void 0, p.label = 4;
937
- case 4:
938
- return S ? ((0, G.invokeUpdate)({ type: "LoadedFromCache", importPath: u }, this.options), m == null ? [3, 5] : (w = m, [3, 7])) : [3, 8];
939
- case 5:
940
- return [4, this.cache.getFile(u)];
941
- case 6:
942
- w = p.sent(), p.label = 7;
943
- case 7:
944
- return [2, w];
945
- case 8:
946
- return [4, this.sourceResolver.resolveSourceFile(a, h, v)];
947
- case 9:
948
- return (m = p.sent()) && ((0, G.invokeUpdate)({ type: "StoredToCache", importPath: u }, this.options), this.cache.storeFile(u, m)), [2, m];
949
- }
950
- });
951
- });
952
- }, _;
953
- }();
954
- return N.ImportResolver = Ue, N;
955
- }(), f = e(se()), D = ve(), O = ke(), c = function() {
956
- function i(b, k) {
957
- var A = this;
958
- this.editor = b, this.options = k, this.disposables = [], this.importResolver = new l.ImportResolver(k);
959
- var y = b.onDidChangeModelContent(function(F) {
960
- A.debouncedResolveContents();
961
- });
962
- this.disposables.push(y), this.resolveContents(), k.dontAdaptEditorOptions || k.monaco.languages.typescript.typescriptDefaults.setCompilerOptions(g(g({}, k.monaco.languages.typescript.typescriptDefaults.getCompilerOptions()), { moduleResolution: k.monaco.languages.typescript.ModuleResolutionKind.NodeJs, allowSyntheticDefaultImports: !0, rootDir: k.fileRootPath }));
963
- }
964
- return i.create = function(b, k) {
965
- var A, y;
966
- return t(this, void 0, void 0, function() {
967
- var F;
968
- return o(this, function(E) {
969
- if (k?.shareCache && k.sourceCache && !i.sharedCache && (i.sharedCache = k.sourceCache), !(F = k?.monaco)) throw new Error("monacoInstance not found, you can specify the monaco instance via options.monaco");
970
- return [2, new i(b, g(g({ fileRootPath: "inmemory://model/", onlySpecifiedPackages: !1, preloadPackages: !1, shareCache: !1, dontAdaptEditorOptions: !1, dontRefreshModelValueAfterResolvement: !1, sourceCache: (A = i.sharedCache) !== null && A !== void 0 ? A : new r.DummySourceCache(), sourceResolver: (y = k?.sourceResolver) !== null && y !== void 0 ? y : new s.JsDelivrSourceResolver(), debounceDuration: 4e3, fileRecursionDepth: 10, packageRecursionDepth: 3 }, k), { monaco: F }))];
971
- });
972
- });
973
- }, i.prototype.dispose = function() {
974
- var b, k;
975
- try {
976
- for (var A = n(this.disposables), y = A.next(); !y.done; y = A.next()) y.value.dispose();
977
- } catch (F) {
978
- b = { error: F };
979
- } finally {
980
- try {
981
- y && !y.done && (k = A.return) && k.call(A);
982
- } finally {
983
- if (b) throw b.error;
984
- }
985
- }
986
- }, i.prototype.setVersions = function(b) {
987
- this.importResolver.setVersions(b), this.options.versions = b;
988
- }, i.prototype.clearCache = function() {
989
- return t(this, void 0, void 0, function() {
990
- return o(this, function(b) {
991
- switch (b.label) {
992
- case 0:
993
- return [4, this.options.sourceCache.clear()];
994
- case 1:
995
- return b.sent(), [2];
996
- }
997
- });
998
- });
999
- }, i.prototype.debouncedResolveContents = function() {
1000
- var b = this;
1001
- this.isResolving || ((0, D.invokeUpdate)({ type: "CodeChanged" }, this.options), this.options.debounceDuration <= 0 ? this.resolveContents() : (this.debounceTimer !== void 0 && clearTimeout(this.debounceTimer), this.debounceTimer = setTimeout(function() {
1002
- return t(b, void 0, void 0, function() {
1003
- return o(this, function(k) {
1004
- switch (k.label) {
1005
- case 0:
1006
- return [4, this.resolveContents()];
1007
- case 1:
1008
- return k.sent(), this.debounceTimer = void 0, [2];
1009
- }
1010
- });
1011
- });
1012
- }, this.options.debounceDuration)));
1013
- }, i.prototype.resolveContents = function() {
1014
- var b;
1015
- return t(this, void 0, void 0, function() {
1016
- var k, A, y, F;
1017
- return o(this, function(E) {
1018
- switch (E.label) {
1019
- case 0:
1020
- if (this.isResolving = !0, (0, D.invokeUpdate)({ type: "ResolveNewImports" }, this.options), !(k = this.editor.getModel())) throw Error("No model");
1021
- A = k.getLinesContent(), E.label = 1;
1022
- case 1:
1023
- return E.trys.push([1, 3, , 4]), [4, this.importResolver.resolveImportsInFile(A.join(`
1024
- `), f.dirname(k.uri.toString()), new O.RecursionDepth(this.options))];
1025
- case 2:
1026
- return E.sent(), [3, 4];
1027
- case 3:
1028
- if (y = E.sent(), !this.options.onError) throw y;
1029
- return this.options.onError((b = y.message) !== null && b !== void 0 ? b : y), [3, 4];
1030
- case 4:
1031
- return this.importResolver.wereNewImportsResolved() && (this.options.dontRefreshModelValueAfterResolvement || (F = this.editor.getPosition(), k.setValue(k.getValue()), F && this.editor.setPosition(F)), this.importResolver.resetNewImportsResolved()), this.isResolving = !1, [2];
1032
- }
1033
- });
1034
- });
1035
- }, i;
1036
- }();
1037
- return U.AutoTypingsCore = c, U;
1038
- }
1039
- var we, z = {}, _e, Pe, Oe, je, Re, Ce, Se, xe, Ae = {}, De = {}, Ee = {}, Fe = {}, Q = {};
1040
- const Ge = function(g, x) {
1041
- for (var j = 0; j < x.length; j++) {
1042
- const e = x[j];
1043
- if (typeof e != "string" && !Array.isArray(e)) {
1044
- for (const t in e) if (t !== "default" && !(t in g)) {
1045
- const o = Object.getOwnPropertyDescriptor(e, t);
1046
- o && Object.defineProperty(g, t, o.get ? o : { enumerable: !0, get: () => e[t] });
1047
- }
1048
- }
1049
- }
1050
- return Object.freeze(Object.defineProperty(g, Symbol.toStringTag, { value: "Module" }));
1051
- }({ __proto__: null }, [xe ? Se : (xe = 1, Ce || (Ce = 1, q = ne, Te = ne && ne.__createBinding || (Object.create ? function(g, x, j, e) {
1052
- e === void 0 && (e = j);
1053
- var t = Object.getOwnPropertyDescriptor(x, j);
1054
- t && !("get" in t ? !x.__esModule : t.writable || t.configurable) || (t = { enumerable: !0, get: function() {
1055
- return x[j];
1056
- } }), Object.defineProperty(g, e, t);
1057
- } : function(g, x, j, e) {
1058
- e === void 0 && (e = j), g[e] = x[j];
1059
- }), K = ne && ne.__exportStar || function(g, x) {
1060
- for (var j in g) j === "default" || Object.prototype.hasOwnProperty.call(x, j) || Te(x, g, j);
1061
- }, Object.defineProperty(q, "__esModule", { value: !0 }), K(function() {
1062
- if (be) return ee;
1063
- be = 1;
1064
- var g, x = ee && ee.__extends || (g = function(e, t) {
1065
- return (g = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(o, n) {
1066
- o.__proto__ = n;
1067
- } || function(o, n) {
1068
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (o[r] = n[r]);
1069
- })(e, t);
1070
- }, function(e, t) {
1071
- if (typeof t != "function" && t !== null) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1072
- function o() {
1073
- this.constructor = e;
1074
- }
1075
- g(e, t), e.prototype = t === null ? Object.create(t) : (o.prototype = t.prototype, new o());
1076
- });
1077
- Object.defineProperty(ee, "__esModule", { value: !0 }), ee.AutoTypings = void 0;
1078
- var j = function(e) {
1079
- function t(o, n) {
1080
- return e.call(this, o, n) || this;
1081
- }
1082
- return x(t, e), t;
1083
- }(Le().AutoTypingsCore);
1084
- return ee.AutoTypings = j, ee;
1085
- }(), q), K(Ie(), q), K(function() {
1086
- if (we) return z;
1087
- we = 1;
1088
- var g = z && z.__awaiter || function(t, o, n, r) {
1089
- return new (n || (n = Promise))(function(s, l) {
1090
- function f(c) {
1091
- try {
1092
- O(r.next(c));
1093
- } catch (i) {
1094
- l(i);
1095
- }
1096
- }
1097
- function D(c) {
1098
- try {
1099
- O(r.throw(c));
1100
- } catch (i) {
1101
- l(i);
1102
- }
1103
- }
1104
- function O(c) {
1105
- var i;
1106
- c.done ? s(c.value) : (i = c.value, i instanceof n ? i : new n(function(b) {
1107
- b(i);
1108
- })).then(f, D);
1109
- }
1110
- O((r = r.apply(t, o || [])).next());
1111
- });
1112
- }, x = z && z.__generator || function(t, o) {
1113
- var n, r, s, l, f = { label: 0, sent: function() {
1114
- if (1 & s[0]) throw s[1];
1115
- return s[1];
1116
- }, trys: [], ops: [] };
1117
- return l = { next: D(0), throw: D(1), return: D(2) }, typeof Symbol == "function" && (l[Symbol.iterator] = function() {
1118
- return this;
1119
- }), l;
1120
- function D(O) {
1121
- return function(c) {
1122
- return function(i) {
1123
- if (n) throw new TypeError("Generator is already executing.");
1124
- for (; f; ) try {
1125
- if (n = 1, r && (s = 2 & i[0] ? r.return : i[0] ? r.throw || ((s = r.return) && s.call(r), 0) : r.next) && !(s = s.call(r, i[1])).done) return s;
1126
- switch (r = 0, s && (i = [2 & i[0], s.value]), i[0]) {
1127
- case 0:
1128
- case 1:
1129
- s = i;
1130
- break;
1131
- case 4:
1132
- return f.label++, { value: i[1], done: !1 };
1133
- case 5:
1134
- f.label++, r = i[1], i = [0];
1135
- continue;
1136
- case 7:
1137
- i = f.ops.pop(), f.trys.pop();
1138
- continue;
1139
- default:
1140
- if (!((s = (s = f.trys).length > 0 && s[s.length - 1]) || i[0] !== 6 && i[0] !== 2)) {
1141
- f = 0;
1142
- continue;
1143
- }
1144
- if (i[0] === 3 && (!s || i[1] > s[0] && i[1] < s[3])) {
1145
- f.label = i[1];
1146
- break;
1147
- }
1148
- if (i[0] === 6 && f.label < s[1]) {
1149
- f.label = s[1], s = i;
1150
- break;
1151
- }
1152
- if (s && f.label < s[2]) {
1153
- f.label = s[2], f.ops.push(i);
1154
- break;
1155
- }
1156
- s[2] && f.ops.pop(), f.trys.pop();
1157
- continue;
1158
- }
1159
- i = o.call(t, f);
1160
- } catch (b) {
1161
- i = [6, b], r = 0;
1162
- } finally {
1163
- n = s = 0;
1164
- }
1165
- if (5 & i[0]) throw i[1];
1166
- return { value: i[0] ? i[1] : void 0, done: !0 };
1167
- }([O, c]);
1168
- };
1169
- }
1170
- }, j = z && z.__values || function(t) {
1171
- var o = typeof Symbol == "function" && Symbol.iterator, n = o && t[o], r = 0;
1172
- if (n) return n.call(t);
1173
- if (t && typeof t.length == "number") return { next: function() {
1174
- return t && r >= t.length && (t = void 0), { value: t && t[r++], done: !t };
1175
- } };
1176
- throw new TypeError(o ? "Object is not iterable." : "Symbol.iterator is not defined.");
1177
- };
1178
- Object.defineProperty(z, "__esModule", { value: !0 }), z.LocalStorageCache = void 0;
1179
- var e = function() {
1180
- function t() {
1181
- this.localCache = {};
1182
- }
1183
- return t.prototype.getFile = function(o) {
1184
- var n;
1185
- return g(this, void 0, void 0, function() {
1186
- return x(this, function(r) {
1187
- try {
1188
- return [2, (n = localStorage.getItem(t.LOCALSTORAGE_PREFIX + o)) !== null && n !== void 0 ? n : void 0];
1189
- } catch {
1190
- return [2, this.localCache[o]];
1191
- }
1192
- return [2];
1193
- });
1194
- });
1195
- }, t.prototype.storeFile = function(o, n) {
1196
- return g(this, void 0, void 0, function() {
1197
- return x(this, function(r) {
1198
- this.localCache[o] = n;
1199
- try {
1200
- localStorage.setItem(t.LOCALSTORAGE_PREFIX + o, n);
1201
- } catch {
1202
- }
1203
- return [2];
1204
- });
1205
- });
1206
- }, t.prototype.clear = function() {
1207
- return g(this, void 0, void 0, function() {
1208
- var o, n, r, s, l, f, D;
1209
- return x(this, function(O) {
1210
- for (this.localCache = {}, o = [], n = 0; n < localStorage.length; n++) (l = localStorage.key(n)) != null && l.startsWith(t.LOCALSTORAGE_PREFIX) && o.push(l);
1211
- try {
1212
- for (r = j(o), s = r.next(); !s.done; s = r.next()) l = s.value, localStorage.removeItem(l);
1213
- } catch (c) {
1214
- f = { error: c };
1215
- } finally {
1216
- try {
1217
- s && !s.done && (D = r.return) && D.call(r);
1218
- } finally {
1219
- if (f) throw f.error;
1220
- }
1221
- }
1222
- return [2];
1223
- });
1224
- });
1225
- }, t.LOCALSTORAGE_PREFIX = "__autotyper_cache_", t;
1226
- }();
1227
- return z.LocalStorageCache = e, z;
1228
- }(), q), K((_e || (_e = 1, Object.defineProperty(Ae, "__esModule", { value: !0 })), Ae), q), K((Pe || (Pe = 1, Object.defineProperty(De, "__esModule", { value: !0 })), De), q), K((Oe || (Oe = 1, Object.defineProperty(Ee, "__esModule", { value: !0 })), Ee), q), K((je || (je = 1, Object.defineProperty(Fe, "__esModule", { value: !0 })), Fe), q), K(function() {
1229
- if (Re) return Q;
1230
- Re = 1;
1231
- var g = Q && Q.__awaiter || function(e, t, o, n) {
1232
- return new (o || (o = Promise))(function(r, s) {
1233
- function l(O) {
1234
- try {
1235
- D(n.next(O));
1236
- } catch (c) {
1237
- s(c);
1238
- }
1239
- }
1240
- function f(O) {
1241
- try {
1242
- D(n.throw(O));
1243
- } catch (c) {
1244
- s(c);
1245
- }
1246
- }
1247
- function D(O) {
1248
- var c;
1249
- O.done ? r(O.value) : (c = O.value, c instanceof o ? c : new o(function(i) {
1250
- i(c);
1251
- })).then(l, f);
1252
- }
1253
- D((n = n.apply(e, t || [])).next());
1254
- });
1255
- }, x = Q && Q.__generator || function(e, t) {
1256
- var o, n, r, s, l = { label: 0, sent: function() {
1257
- if (1 & r[0]) throw r[1];
1258
- return r[1];
1259
- }, trys: [], ops: [] };
1260
- return s = { next: f(0), throw: f(1), return: f(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
1261
- return this;
1262
- }), s;
1263
- function f(D) {
1264
- return function(O) {
1265
- return function(c) {
1266
- if (o) throw new TypeError("Generator is already executing.");
1267
- for (; l; ) try {
1268
- if (o = 1, n && (r = 2 & c[0] ? n.return : c[0] ? n.throw || ((r = n.return) && r.call(n), 0) : n.next) && !(r = r.call(n, c[1])).done) return r;
1269
- switch (n = 0, r && (c = [2 & c[0], r.value]), c[0]) {
1270
- case 0:
1271
- case 1:
1272
- r = c;
1273
- break;
1274
- case 4:
1275
- return l.label++, { value: c[1], done: !1 };
1276
- case 5:
1277
- l.label++, n = c[1], c = [0];
1278
- continue;
1279
- case 7:
1280
- c = l.ops.pop(), l.trys.pop();
1281
- continue;
1282
- default:
1283
- if (!((r = (r = l.trys).length > 0 && r[r.length - 1]) || c[0] !== 6 && c[0] !== 2)) {
1284
- l = 0;
1285
- continue;
1286
- }
1287
- if (c[0] === 3 && (!r || c[1] > r[0] && c[1] < r[3])) {
1288
- l.label = c[1];
1289
- break;
1290
- }
1291
- if (c[0] === 6 && l.label < r[1]) {
1292
- l.label = r[1], r = c;
1293
- break;
1294
- }
1295
- if (r && l.label < r[2]) {
1296
- l.label = r[2], l.ops.push(c);
1297
- break;
1298
- }
1299
- r[2] && l.ops.pop(), l.trys.pop();
1300
- continue;
1301
- }
1302
- c = t.call(e, l);
1303
- } catch (i) {
1304
- c = [6, i], n = 0;
1305
- } finally {
1306
- o = r = 0;
1307
- }
1308
- if (5 & c[0]) throw c[1];
1309
- return { value: c[0] ? c[1] : void 0, done: !0 };
1310
- }([D, O]);
1311
- };
1312
- }
1313
- };
1314
- Object.defineProperty(Q, "__esModule", { value: !0 }), Q.UnpkgSourceResolver = void 0;
1315
- var j = function() {
1316
- function e() {
1317
- }
1318
- return e.prototype.resolvePackageJson = function(t, o, n) {
1319
- return g(this, void 0, void 0, function() {
1320
- return x(this, function(r) {
1321
- switch (r.label) {
1322
- case 0:
1323
- return [4, this.resolveFile("https://unpkg.com/".concat(t).concat(o ? "@".concat(o) : "").concat(n ? "/".concat(n) : "", "/package.json"))];
1324
- case 1:
1325
- return [2, r.sent()];
1326
- }
1327
- });
1328
- });
1329
- }, e.prototype.resolveSourceFile = function(t, o, n) {
1330
- return g(this, void 0, void 0, function() {
1331
- return x(this, function(r) {
1332
- switch (r.label) {
1333
- case 0:
1334
- return [4, this.resolveFile("https://unpkg.com/".concat(t).concat(o ? "@".concat(o) : "", "/").concat(n))];
1335
- case 1:
1336
- return [2, r.sent()];
1337
- }
1338
- });
1339
- });
1340
- }, e.prototype.resolveFile = function(t) {
1341
- return g(this, void 0, void 0, function() {
1342
- var o;
1343
- return x(this, function(n) {
1344
- switch (n.label) {
1345
- case 0:
1346
- return [4, fetch(t, { method: "GET" })];
1347
- case 1:
1348
- return (o = n.sent()).ok ? [4, o.text()] : [3, 3];
1349
- case 2:
1350
- return [2, n.sent()];
1351
- case 3:
1352
- if (o.status === 404) return [2, ""];
1353
- throw Error("Error other than 404 while fetching from Unpkg at ".concat(t));
1354
- case 4:
1355
- return [2];
1356
- }
1357
- });
1358
- });
1359
- }, e;
1360
- }();
1361
- return Q.UnpkgSourceResolver = j, Q;
1362
- }(), q), K(Ne(), q)), Se = ne)]);
1363
- var q, Te, K;
1364
- export {
1365
- Ge as c
1366
- };