@ms-atlas/datastudio 0.1.20

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.

Potentially problematic release.


This version of @ms-atlas/datastudio might be problematic. Click here for more details.

Files changed (39) hide show
  1. package/ExternalLibraries/Monaco/vs/loader.js +2166 -0
  2. package/ExternalLibraries/URI.min.js +1901 -0
  3. package/ExternalLibraries/crossroads.min.js +453 -0
  4. package/ExternalLibraries/css.js +165 -0
  5. package/ExternalLibraries/d3.min.js +10857 -0
  6. package/ExternalLibraries/es6-promise.min.js +363 -0
  7. package/ExternalLibraries/hammer.js +2224 -0
  8. package/ExternalLibraries/hull.js +444 -0
  9. package/ExternalLibraries/i18n.min.js +115 -0
  10. package/ExternalLibraries/jquery-ui-timepicker-addon.min.css +76 -0
  11. package/ExternalLibraries/jquery-ui-timepicker-addon.min.js +1918 -0
  12. package/ExternalLibraries/jquery-ui.js +17201 -0
  13. package/ExternalLibraries/jquery-ui.min.css +1454 -0
  14. package/ExternalLibraries/jquery.history.js +2173 -0
  15. package/ExternalLibraries/jquery.min.js +5168 -0
  16. package/ExternalLibraries/jquery.mockjax.min.js +445 -0
  17. package/ExternalLibraries/jquery.modal.js +173 -0
  18. package/ExternalLibraries/jstree.js +10086 -0
  19. package/ExternalLibraries/jstree.style.css +1048 -0
  20. package/ExternalLibraries/jwt-decode.min.js +142 -0
  21. package/ExternalLibraries/knockout-latest.debug.js +7375 -0
  22. package/ExternalLibraries/knockout.mapping.min.js +534 -0
  23. package/ExternalLibraries/moment.js +3389 -0
  24. package/ExternalLibraries/q.js +1974 -0
  25. package/ExternalLibraries/require.js +2230 -0
  26. package/ExternalLibraries/signals.min.js +179 -0
  27. package/ExternalLibraries/text.js +445 -0
  28. package/ExternalLibraries/uuid.js +274 -0
  29. package/app-main.js +1 -0
  30. package/datastudio.application.mainpage.js +1502 -0
  31. package/datastudio.application.shared.js +626 -0
  32. package/datastudio.bootstrapper.js +517 -0
  33. package/fonts.css +14 -0
  34. package/nls/resx.js +1 -0
  35. package/nls/root/resx.js +22 -0
  36. package/package.json +22 -0
  37. package/scripts/application/sourceMapper.js +15 -0
  38. package/scripts/libs/adal/adal.js +720 -0
  39. package/stylesheets/main.css +8879 -0
@@ -0,0 +1,2166 @@
1
+ /*!-----------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.1.0(6c0fe2014e7a7d596ac1af21f25bf2fc17da8a75)
4
+ * Released under the MIT license
5
+ * https://github.com/Microsoft/vscode/blob/master/LICENSE.txt
6
+ *-----------------------------------------------------------*/
7
+ var _amdLoaderGlobal = this,
8
+ define,
9
+ AMDLoader;
10
+ !(function (e) {
11
+ function t() {
12
+ return "undefined" != typeof navigator &&
13
+ navigator.userAgent &&
14
+ navigator.userAgent.indexOf("Windows") >= 0
15
+ ? !0
16
+ : "undefined" != typeof process
17
+ ? "win32" === process.platform
18
+ : !1;
19
+ }
20
+ function n() {
21
+ return x ? I.performance.now() : Date.now();
22
+ }
23
+ function o() {
24
+ (v = "function" == typeof I.importScripts),
25
+ (m =
26
+ "undefined" != typeof process &&
27
+ "undefined" != typeof process.versions &&
28
+ "undefined" != typeof process.versions.electron &&
29
+ "renderer" === process.type),
30
+ (M =
31
+ "undefined" != typeof process &&
32
+ "undefined" != typeof process.versions &&
33
+ "undefined" != typeof process.versions.electron &&
34
+ "browser" === process.type),
35
+ (P = "undefined" != typeof module && !!module.exports),
36
+ (E = new S(v ? new k() : P ? new w() : new L())),
37
+ (b = new _(E)),
38
+ E.setModuleManager(b);
39
+ }
40
+ function r() {
41
+ P ||
42
+ (I.console || (I.console = {}),
43
+ I.console.log || (I.console.log = function () {}),
44
+ I.console.warn || (I.console.warn = I.console.log),
45
+ I.console.error || (I.console.error = I.console.log));
46
+ }
47
+ function i() {
48
+ v ||
49
+ P ||
50
+ (window.onload = function () {
51
+ var e,
52
+ t,
53
+ n,
54
+ o = document.getElementsByTagName("script");
55
+ for (
56
+ e = 0, t = o.length;
57
+ t > e && !(n = o[e].getAttribute("data-main"));
58
+ e++
59
+ );
60
+ n &&
61
+ b.defineModule(
62
+ a.generateAnonymousModule(),
63
+ [n],
64
+ null,
65
+ null,
66
+ null,
67
+ new c(new d(), "")
68
+ );
69
+ });
70
+ }
71
+ function s() {
72
+ if ((o(), r(), i(), P)) {
73
+ var e = I.require || require,
74
+ t = function (t) {
75
+ b.getRecorder().record(p.NodeBeginNativeRequire, t);
76
+ var n = e(t);
77
+ return b.getRecorder().record(p.NodeEndNativeRequire, t), n;
78
+ };
79
+ (I.nodeRequire = t), (A.nodeRequire = t);
80
+ }
81
+ P && !m
82
+ ? ((module.exports = A),
83
+ (define = function () {
84
+ C.apply(null, arguments);
85
+ }),
86
+ (require = A))
87
+ : ("undefined" != typeof I.require &&
88
+ "function" != typeof I.require &&
89
+ A.config(I.require),
90
+ m
91
+ ? (define = function () {
92
+ C.apply(null, arguments);
93
+ })
94
+ : (I.define = C),
95
+ (I.require = A),
96
+ (I.require.__$__nodeRequire = t));
97
+ }
98
+ var u = t(),
99
+ a = (function () {
100
+ function e() {}
101
+ return (
102
+ (e.fileUriToFilePath = function (e) {
103
+ if (((e = decodeURI(e)), u)) {
104
+ if (/^file:\/\/\//.test(e)) return e.substr(8);
105
+ if (/^file:\/\//.test(e)) return e.substr(5);
106
+ } else if (/^file:\/\//.test(e)) return e.substr(7);
107
+ return e;
108
+ }),
109
+ (e.startsWith = function (e, t) {
110
+ return e.length >= t.length && e.substr(0, t.length) === t;
111
+ }),
112
+ (e.endsWith = function (e, t) {
113
+ return e.length >= t.length && e.substr(e.length - t.length) === t;
114
+ }),
115
+ (e.containsQueryString = function (e) {
116
+ return /^[^\#]*\?/gi.test(e);
117
+ }),
118
+ (e.isAbsolutePath = function (t) {
119
+ return (
120
+ e.startsWith(t, "http://") ||
121
+ e.startsWith(t, "https://") ||
122
+ e.startsWith(t, "file://") ||
123
+ e.startsWith(t, "/")
124
+ );
125
+ }),
126
+ (e.forEachProperty = function (e, t) {
127
+ if (e) {
128
+ var n;
129
+ for (n in e) e.hasOwnProperty(n) && t(n, e[n]);
130
+ }
131
+ }),
132
+ (e.isEmpty = function (t) {
133
+ var n = !0;
134
+ return (
135
+ e.forEachProperty(t, function () {
136
+ n = !1;
137
+ }),
138
+ n
139
+ );
140
+ }),
141
+ (e.isArray = function (e) {
142
+ return Array.isArray
143
+ ? Array.isArray(e)
144
+ : "[object Array]" === Object.prototype.toString.call(e);
145
+ }),
146
+ (e.recursiveClone = function (t) {
147
+ if (!t || "object" != typeof t) return t;
148
+ var n = e.isArray(t) ? [] : {};
149
+ return (
150
+ e.forEachProperty(t, function (t, o) {
151
+ o && "object" == typeof o
152
+ ? (n[t] = e.recursiveClone(o))
153
+ : (n[t] = o);
154
+ }),
155
+ n
156
+ );
157
+ }),
158
+ (e.generateAnonymousModule = function () {
159
+ return "===anonymous" + e.NEXT_ANONYMOUS_ID++ + "===";
160
+ }),
161
+ (e.isAnonymousModule = function (e) {
162
+ return 0 === e.indexOf("===anonymous");
163
+ }),
164
+ (e.NEXT_ANONYMOUS_ID = 1),
165
+ e
166
+ );
167
+ })();
168
+ e.Utilities = a;
169
+ var l = (function () {
170
+ function e() {}
171
+ return (
172
+ (e.validateConfigurationOptions = function (e) {
173
+ function t(e) {
174
+ return "load" === e.errorCode
175
+ ? (console.error('Loading "' + e.moduleId + '" failed'),
176
+ console.error("Detail: ", e.detail),
177
+ e.detail && e.detail.stack && console.error(e.detail.stack),
178
+ console.error("Here are the modules that depend on it:"),
179
+ void console.error(e.neededBy))
180
+ : "factory" === e.errorCode
181
+ ? (console.error(
182
+ 'The factory method of "' +
183
+ e.moduleId +
184
+ '" has thrown an exception'
185
+ ),
186
+ console.error(e.detail),
187
+ void (
188
+ e.detail &&
189
+ e.detail.stack &&
190
+ console.error(e.detail.stack)
191
+ ))
192
+ : void 0;
193
+ }
194
+ return (
195
+ (e = e || {}),
196
+ "string" != typeof e.baseUrl && (e.baseUrl = ""),
197
+ "boolean" != typeof e.isBuild && (e.isBuild = !1),
198
+ "object" != typeof e.paths && (e.paths = {}),
199
+ "object" != typeof e.bundles && (e.bundles = []),
200
+ "object" != typeof e.shim && (e.shim = {}),
201
+ "object" != typeof e.config && (e.config = {}),
202
+ "undefined" == typeof e.catchError && (e.catchError = v),
203
+ "string" != typeof e.urlArgs && (e.urlArgs = ""),
204
+ "function" != typeof e.onError && (e.onError = t),
205
+ ("object" == typeof e.ignoreDuplicateModules &&
206
+ a.isArray(e.ignoreDuplicateModules)) ||
207
+ (e.ignoreDuplicateModules = []),
208
+ e.baseUrl.length > 0 &&
209
+ (a.endsWith(e.baseUrl, "/") || (e.baseUrl += "/")),
210
+ e
211
+ );
212
+ }),
213
+ (e.mergeConfigurationOptions = function (t, n) {
214
+ void 0 === t && (t = null), void 0 === n && (n = null);
215
+ var o = a.recursiveClone(n || {});
216
+ return (
217
+ a.forEachProperty(t, function (e, t) {
218
+ "bundles" === e && "undefined" != typeof o.bundles
219
+ ? a.isArray(t)
220
+ ? (o.bundles = o.bundles.concat(t))
221
+ : a.forEachProperty(t, function (e, t) {
222
+ var n = { location: e, modules: t };
223
+ o.bundles.push(n);
224
+ })
225
+ : "ignoreDuplicateModules" === e &&
226
+ "undefined" != typeof o.ignoreDuplicateModules
227
+ ? (o.ignoreDuplicateModules = o.ignoreDuplicateModules.concat(t))
228
+ : "paths" === e && "undefined" != typeof o.paths
229
+ ? a.forEachProperty(t, function (e, t) {
230
+ return (o.paths[e] = t);
231
+ })
232
+ : "shim" === e && "undefined" != typeof o.shim
233
+ ? a.forEachProperty(t, function (e, t) {
234
+ return (o.shim[e] = t);
235
+ })
236
+ : "config" === e && "undefined" != typeof o.config
237
+ ? a.forEachProperty(t, function (e, t) {
238
+ return (o.config[e] = t);
239
+ })
240
+ : (o[e] = a.recursiveClone(t));
241
+ }),
242
+ e.validateConfigurationOptions(o)
243
+ );
244
+ }),
245
+ e
246
+ );
247
+ })();
248
+ e.ConfigurationOptionsUtil = l;
249
+ var d = (function () {
250
+ function e(e) {
251
+ if (
252
+ ((this.options = l.mergeConfigurationOptions(e)),
253
+ this._createIgnoreDuplicateModulesMap(),
254
+ this._createSortedPathsRules(),
255
+ this._createShimModules(),
256
+ this._createOverwriteModuleIdToPath(),
257
+ "" === this.options.baseUrl)
258
+ ) {
259
+ if (
260
+ P &&
261
+ this.options.nodeRequire &&
262
+ this.options.nodeRequire.main &&
263
+ this.options.nodeRequire.main.filename
264
+ ) {
265
+ var t = this.options.nodeRequire.main.filename,
266
+ n = Math.max(t.lastIndexOf("/"), t.lastIndexOf("\\"));
267
+ this.options.baseUrl = t.substring(0, n + 1);
268
+ }
269
+ if (P && this.options.nodeMain) {
270
+ var t = this.options.nodeMain,
271
+ n = Math.max(t.lastIndexOf("/"), t.lastIndexOf("\\"));
272
+ this.options.baseUrl = t.substring(0, n + 1);
273
+ }
274
+ }
275
+ }
276
+ return (
277
+ (e.prototype._createOverwriteModuleIdToPath = function () {
278
+ this.overwriteModuleIdToPath = {};
279
+ for (var e = 0; e < this.options.bundles.length; e++) {
280
+ var t = this.options.bundles[e],
281
+ n = t.location;
282
+ if (t.modules)
283
+ for (var o = 0; o < t.modules.length; o++)
284
+ this.overwriteModuleIdToPath[t.modules[o]] = n;
285
+ }
286
+ }),
287
+ (e.prototype._createIgnoreDuplicateModulesMap = function () {
288
+ this.ignoreDuplicateModulesMap = {};
289
+ for (var e = 0; e < this.options.ignoreDuplicateModules.length; e++)
290
+ this.ignoreDuplicateModulesMap[
291
+ this.options.ignoreDuplicateModules[e]
292
+ ] = !0;
293
+ }),
294
+ (e.prototype._createSortedPathsRules = function () {
295
+ var e = this;
296
+ (this.sortedPathsRules = []),
297
+ a.forEachProperty(this.options.paths, function (t, n) {
298
+ a.isArray(n)
299
+ ? e.sortedPathsRules.push({ from: t, to: n })
300
+ : e.sortedPathsRules.push({ from: t, to: [n] });
301
+ }),
302
+ this.sortedPathsRules.sort(function (e, t) {
303
+ return t.from.length - e.from.length;
304
+ });
305
+ }),
306
+ (e.prototype._ensureShimModule1 = function (e, t) {
307
+ for (var n = 0; n < t.length; n++) {
308
+ var o = t[n];
309
+ this.shimModules.hasOwnProperty(o) || this._ensureShimModule1(o, []);
310
+ }
311
+ (this.shimModules[e] = {
312
+ stack: null,
313
+ dependencies: t,
314
+ callback: null,
315
+ }),
316
+ this.options.isBuild && (this.shimModulesStr[e] = "null");
317
+ }),
318
+ (e.prototype._ensureShimModule2 = function (e, t) {
319
+ (this.shimModules[e] = {
320
+ stack: null,
321
+ dependencies: t.deps || [],
322
+ callback: function () {
323
+ for (var e = [], n = 0; n < arguments.length; n++)
324
+ e[n - 0] = arguments[n];
325
+ if ("function" == typeof t.init) {
326
+ var o = t.init.apply(I, e);
327
+ if ("undefined" != typeof o) return o;
328
+ }
329
+ if ("function" == typeof t.exports) return t.exports.apply(I, e);
330
+ if ("string" == typeof t.exports) {
331
+ for (
332
+ var r = t.exports.split("."), i = I, s = 0;
333
+ s < r.length;
334
+ s++
335
+ )
336
+ i && (i = i[r[s]]);
337
+ return i;
338
+ }
339
+ return t.exports || {};
340
+ },
341
+ }),
342
+ this.options.isBuild &&
343
+ ("function" == typeof t.init
344
+ ? (this.shimModulesStr[e] = t.init.toString())
345
+ : "function" == typeof t.exports
346
+ ? (this.shimModulesStr[e] = t.exports.toString())
347
+ : "string" == typeof t.exports
348
+ ? (this.shimModulesStr[e] =
349
+ "function() { return this." + t.exports + "; }")
350
+ : (this.shimModulesStr[e] = JSON.stringify(t.exports)));
351
+ }),
352
+ (e.prototype._createShimModules = function () {
353
+ var e = this;
354
+ (this.shimModules = {}),
355
+ (this.shimModulesStr = {}),
356
+ a.forEachProperty(this.options.shim, function (t, n) {
357
+ return n
358
+ ? a.isArray(n)
359
+ ? void e._ensureShimModule1(t, n)
360
+ : void e._ensureShimModule2(t, n)
361
+ : void 0;
362
+ });
363
+ }),
364
+ (e.prototype.cloneAndMerge = function (t) {
365
+ return new e(l.mergeConfigurationOptions(t, this.options));
366
+ }),
367
+ (e.prototype.getOptionsLiteral = function () {
368
+ return this.options;
369
+ }),
370
+ (e.prototype._applyPaths = function (e) {
371
+ for (var t, n = 0, o = this.sortedPathsRules.length; o > n; n++)
372
+ if (((t = this.sortedPathsRules[n]), a.startsWith(e, t.from))) {
373
+ for (var r = [], i = 0, s = t.to.length; s > i; i++)
374
+ r.push(t.to[i] + e.substr(t.from.length));
375
+ return r;
376
+ }
377
+ return [e];
378
+ }),
379
+ (e.prototype._addUrlArgsToUrl = function (e) {
380
+ return a.containsQueryString(e)
381
+ ? e + "&" + this.options.urlArgs
382
+ : e + "?" + this.options.urlArgs;
383
+ }),
384
+ (e.prototype._addUrlArgsIfNecessaryToUrl = function (e) {
385
+ return this.options.urlArgs ? this._addUrlArgsToUrl(e) : e;
386
+ }),
387
+ (e.prototype._addUrlArgsIfNecessaryToUrls = function (e) {
388
+ if (this.options.urlArgs)
389
+ for (var t = 0, n = e.length; n > t; t++)
390
+ e[t] = this._addUrlArgsToUrl(e[t]);
391
+ return e;
392
+ }),
393
+ (e.prototype.moduleIdToPaths = function (e) {
394
+ var t = e;
395
+ this.overwriteModuleIdToPath.hasOwnProperty(t) &&
396
+ (t = this.overwriteModuleIdToPath[t]);
397
+ var n;
398
+ if (a.endsWith(t, ".js") || a.isAbsolutePath(t))
399
+ a.endsWith(t, ".js") || a.containsQueryString(t) || (t += ".js"),
400
+ (n = [t]);
401
+ else {
402
+ n = this._applyPaths(t);
403
+ for (var o = 0, r = n.length; r > o; o++)
404
+ (this.isBuild() && "empty:" === n[o]) ||
405
+ (a.isAbsolutePath(n[o]) || (n[o] = this.options.baseUrl + n[o]),
406
+ a.endsWith(n[o], ".js") ||
407
+ a.containsQueryString(n[o]) ||
408
+ (n[o] = n[o] + ".js"));
409
+ }
410
+ return this._addUrlArgsIfNecessaryToUrls(n);
411
+ }),
412
+ (e.prototype.requireToUrl = function (e) {
413
+ var t = e;
414
+ return (
415
+ a.isAbsolutePath(t) ||
416
+ ((t = this._applyPaths(t)[0]),
417
+ a.isAbsolutePath(t) || (t = this.options.baseUrl + t)),
418
+ this._addUrlArgsIfNecessaryToUrl(t)
419
+ );
420
+ }),
421
+ (e.prototype.isShimmed = function (e) {
422
+ return this.shimModules.hasOwnProperty(e);
423
+ }),
424
+ (e.prototype.isBuild = function () {
425
+ return this.options.isBuild;
426
+ }),
427
+ (e.prototype.getShimmedModuleDefine = function (e) {
428
+ return this.shimModules[e];
429
+ }),
430
+ (e.prototype.getShimmedModulesStr = function (e) {
431
+ return this.shimModulesStr[e];
432
+ }),
433
+ (e.prototype.isDuplicateMessageIgnoredFor = function (e) {
434
+ return this.ignoreDuplicateModulesMap.hasOwnProperty(e);
435
+ }),
436
+ (e.prototype.getConfigForModule = function (e) {
437
+ return this.options.config ? this.options.config[e] : void 0;
438
+ }),
439
+ (e.prototype.shouldCatchError = function () {
440
+ return this.options.catchError;
441
+ }),
442
+ (e.prototype.shouldRecordStats = function () {
443
+ return this.options.recordStats;
444
+ }),
445
+ (e.prototype.onError = function (e) {
446
+ this.options.onError(e);
447
+ }),
448
+ e
449
+ );
450
+ })();
451
+ e.Configuration = d;
452
+ var c = (function () {
453
+ function e(e, t) {
454
+ this._config = e;
455
+ var n = t.lastIndexOf("/");
456
+ -1 !== n
457
+ ? (this.fromModulePath = t.substr(0, n + 1))
458
+ : (this.fromModulePath = "");
459
+ }
460
+ return (
461
+ (e.prototype.isBuild = function () {
462
+ return this._config.isBuild();
463
+ }),
464
+ (e._normalizeModuleId = function (e) {
465
+ var t,
466
+ n = e;
467
+ for (t = /\/\.\//; t.test(n); ) n = n.replace(t, "/");
468
+ for (
469
+ n = n.replace(/^\.\//g, ""),
470
+ t =
471
+ /\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;
472
+ t.test(n);
473
+
474
+ )
475
+ n = n.replace(t, "/");
476
+ return (n = n.replace(
477
+ /^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,
478
+ ""
479
+ ));
480
+ }),
481
+ (e.prototype.resolveModule = function (t) {
482
+ var n = t;
483
+ return (
484
+ a.isAbsolutePath(n) ||
485
+ ((a.startsWith(n, "./") || a.startsWith(n, "../")) &&
486
+ (n = e._normalizeModuleId(this.fromModulePath + n))),
487
+ n
488
+ );
489
+ }),
490
+ (e.prototype.moduleIdToPaths = function (e) {
491
+ var t = this._config.moduleIdToPaths(e);
492
+ return (
493
+ P &&
494
+ -1 === e.indexOf("/") &&
495
+ t.push("node|" + this.fromModulePath + "|" + e),
496
+ t
497
+ );
498
+ }),
499
+ (e.prototype.requireToUrl = function (e) {
500
+ return this._config.requireToUrl(e);
501
+ }),
502
+ (e.prototype.shouldCatchError = function () {
503
+ return this._config.shouldCatchError();
504
+ }),
505
+ (e.prototype.onError = function (e) {
506
+ this._config.onError(e);
507
+ }),
508
+ e
509
+ );
510
+ })();
511
+ e.ModuleIdResolver = c;
512
+ var h = (function () {
513
+ function e(e, t, n, o, r, i, s, u) {
514
+ void 0 === u && (u = null),
515
+ (this._id = e),
516
+ (this._dependencies = t),
517
+ (this._dependenciesValues = []),
518
+ (this._callback = n),
519
+ (this._errorback = o),
520
+ (this._recorder = r),
521
+ (this._moduleIdResolver = i),
522
+ (this._exports = {}),
523
+ (this._exportsPassedIn = !1),
524
+ (this._config = s),
525
+ (this._defineCallStack = u),
526
+ this._digestDependencies(),
527
+ 0 === this._unresolvedDependenciesCount && this._complete();
528
+ }
529
+ return (
530
+ (e.prototype._digestDependencies = function () {
531
+ var e = this;
532
+ (this._unresolvedDependenciesCount = this._dependencies.length),
533
+ (this._normalizedDependencies = []),
534
+ (this._managerDependencies = []),
535
+ (this._managerDependenciesMap = {});
536
+ var t, n, o;
537
+ for (t = 0, n = this._dependencies.length; n > t; t++)
538
+ if ((o = this._dependencies[t]))
539
+ if ("exports" === o)
540
+ (this._exportsPassedIn = !0),
541
+ (this._normalizedDependencies[t] = o),
542
+ (this._dependenciesValues[t] = this._exports),
543
+ this._unresolvedDependenciesCount--;
544
+ else if ("module" === o)
545
+ (this._normalizedDependencies[t] = o),
546
+ (this._dependenciesValues[t] = {
547
+ id: this._id,
548
+ config: function () {
549
+ return e._config;
550
+ },
551
+ }),
552
+ this._unresolvedDependenciesCount--;
553
+ else if ("require" === o)
554
+ (this._normalizedDependencies[t] = o),
555
+ this.addManagerDependency(o, t);
556
+ else {
557
+ var r = o.indexOf("!");
558
+ if (r >= 0) {
559
+ var i = o.substring(0, r),
560
+ s = o.substring(r + 1, o.length);
561
+ o = this._moduleIdResolver.resolveModule(i) + "!" + s;
562
+ } else o = this._moduleIdResolver.resolveModule(o);
563
+ (this._normalizedDependencies[t] = o),
564
+ this.addManagerDependency(o, t);
565
+ }
566
+ else
567
+ console.warn(
568
+ "Please check module " +
569
+ this._id +
570
+ ", the dependency list looks broken"
571
+ ),
572
+ (this._normalizedDependencies[t] = o),
573
+ (this._dependenciesValues[t] = null),
574
+ this._unresolvedDependenciesCount--;
575
+ }),
576
+ (e.prototype.addManagerDependency = function (e, t) {
577
+ if (this._managerDependenciesMap.hasOwnProperty(e))
578
+ throw new Error(
579
+ "Module " +
580
+ this._id +
581
+ " contains multiple times a dependency to " +
582
+ e
583
+ );
584
+ this._managerDependencies.push(e),
585
+ (this._managerDependenciesMap[e] = t);
586
+ }),
587
+ (e.prototype.renameDependency = function (e, t) {
588
+ if (!this._managerDependenciesMap.hasOwnProperty(e))
589
+ throw new Error("Loader: Cannot rename an unknown dependency!");
590
+ var n = this._managerDependenciesMap[e];
591
+ delete this._managerDependenciesMap[e],
592
+ (this._managerDependenciesMap[t] = n),
593
+ (this._normalizedDependencies[n] = t);
594
+ }),
595
+ (e.prototype.getId = function () {
596
+ return this._id;
597
+ }),
598
+ (e.prototype.getModuleIdResolver = function () {
599
+ return this._moduleIdResolver;
600
+ }),
601
+ (e.prototype.isExportsPassedIn = function () {
602
+ return this._exportsPassedIn;
603
+ }),
604
+ (e.prototype.getExports = function () {
605
+ return this._exports;
606
+ }),
607
+ (e.prototype.getDependencies = function () {
608
+ return this._managerDependencies;
609
+ }),
610
+ (e.prototype.getNormalizedDependencies = function () {
611
+ return this._normalizedDependencies;
612
+ }),
613
+ (e.prototype.getDefineCallStack = function () {
614
+ return this._defineCallStack;
615
+ }),
616
+ (e.prototype._invokeFactory = function () {
617
+ if (this._moduleIdResolver.isBuild() && !a.isAnonymousModule(this._id))
618
+ return { returnedValue: null, producedError: null };
619
+ var e = null,
620
+ t = null;
621
+ if (this._moduleIdResolver.shouldCatchError())
622
+ try {
623
+ t = this._callback.apply(I, this._dependenciesValues);
624
+ } catch (n) {
625
+ e = n;
626
+ } finally {
627
+ }
628
+ else t = this._callback.apply(I, this._dependenciesValues);
629
+ return { returnedValue: t, producedError: e };
630
+ }),
631
+ (e.prototype._complete = function () {
632
+ var e = null;
633
+ if (this._callback)
634
+ if ("function" == typeof this._callback) {
635
+ this._recorder.record(p.BeginInvokeFactory, this._id);
636
+ var t = this._invokeFactory();
637
+ (e = t.producedError),
638
+ this._recorder.record(p.EndInvokeFactory, this._id),
639
+ e ||
640
+ "undefined" == typeof t.returnedValue ||
641
+ (this._exportsPassedIn && !a.isEmpty(this._exports)) ||
642
+ (this._exports = t.returnedValue);
643
+ } else this._exports = this._callback;
644
+ e &&
645
+ this.getModuleIdResolver().onError({
646
+ errorCode: "factory",
647
+ moduleId: this._id,
648
+ detail: e,
649
+ });
650
+ }),
651
+ (e.prototype.cleanUp = function () {
652
+ this._moduleIdResolver &&
653
+ !this._moduleIdResolver.isBuild() &&
654
+ ((this._normalizedDependencies = null),
655
+ (this._moduleIdResolver = null)),
656
+ (this._dependencies = null),
657
+ (this._dependenciesValues = null),
658
+ (this._callback = null),
659
+ (this._managerDependencies = null),
660
+ (this._managerDependenciesMap = null);
661
+ }),
662
+ (e.prototype.onDependencyError = function (e) {
663
+ return this._errorback ? (this._errorback(e), !0) : !1;
664
+ }),
665
+ (e.prototype.resolveDependency = function (e, t) {
666
+ if (!this._managerDependenciesMap.hasOwnProperty(e))
667
+ throw new Error("Cannot resolve a dependency I do not have!");
668
+ (this._dependenciesValues[this._managerDependenciesMap[e]] = t),
669
+ delete this._managerDependenciesMap[e],
670
+ this._unresolvedDependenciesCount--,
671
+ 0 === this._unresolvedDependenciesCount && this._complete();
672
+ }),
673
+ (e.prototype.isComplete = function () {
674
+ return 0 === this._unresolvedDependenciesCount;
675
+ }),
676
+ e
677
+ );
678
+ })();
679
+ (e.Module = h),
680
+ (function (e) {
681
+ (e[(e.LoaderAvailable = 1)] = "LoaderAvailable"),
682
+ (e[(e.BeginLoadingScript = 10)] = "BeginLoadingScript"),
683
+ (e[(e.EndLoadingScriptOK = 11)] = "EndLoadingScriptOK"),
684
+ (e[(e.EndLoadingScriptError = 12)] = "EndLoadingScriptError"),
685
+ (e[(e.BeginInvokeFactory = 21)] = "BeginInvokeFactory"),
686
+ (e[(e.EndInvokeFactory = 22)] = "EndInvokeFactory"),
687
+ (e[(e.NodeBeginEvaluatingScript = 31)] = "NodeBeginEvaluatingScript"),
688
+ (e[(e.NodeEndEvaluatingScript = 32)] = "NodeEndEvaluatingScript"),
689
+ (e[(e.NodeBeginNativeRequire = 33)] = "NodeBeginNativeRequire"),
690
+ (e[(e.NodeEndNativeRequire = 34)] = "NodeEndNativeRequire");
691
+ })(e.LoaderEventType || (e.LoaderEventType = {}));
692
+ var p = e.LoaderEventType,
693
+ f = (function () {
694
+ function e(e, t, n) {
695
+ (this.type = e), (this.detail = t), (this.timestamp = n);
696
+ }
697
+ return e;
698
+ })();
699
+ e.LoaderEvent = f;
700
+ var g = (function () {
701
+ function e(e) {
702
+ this._events = [new f(p.LoaderAvailable, "", e)];
703
+ }
704
+ return (
705
+ (e.prototype.record = function (e, t) {
706
+ this._events.push(new f(e, t, n()));
707
+ }),
708
+ (e.prototype.getEvents = function () {
709
+ return this._events;
710
+ }),
711
+ e
712
+ );
713
+ })();
714
+ e.LoaderEventRecorder = g;
715
+ var y = (function () {
716
+ function e() {}
717
+ return (
718
+ (e.prototype.record = function (e, t) {}),
719
+ (e.prototype.getEvents = function () {
720
+ return [];
721
+ }),
722
+ (e.INSTANCE = new e()),
723
+ e
724
+ );
725
+ })();
726
+ e.NullLoaderEventRecorder = y;
727
+ var _ = (function () {
728
+ function e(e) {
729
+ (this._recorder = null),
730
+ (this._config = new d()),
731
+ (this._scriptLoader = e),
732
+ (this._modules = {}),
733
+ (this._knownModules = {}),
734
+ (this._inverseDependencies = {}),
735
+ (this._dependencies = {}),
736
+ (this._inversePluginDependencies = {}),
737
+ (this._queuedDefineCalls = []),
738
+ (this._loadingScriptsCount = 0),
739
+ (this._resolvedScriptPaths = {});
740
+ }
741
+ return (
742
+ (e._findRelevantLocationInStack = function (e, t) {
743
+ for (
744
+ var n = function (e) {
745
+ return e.replace(/\\/g, "/");
746
+ },
747
+ o = n(e),
748
+ r = t.split(/\n/),
749
+ i = 0;
750
+ i < r.length;
751
+ i++
752
+ ) {
753
+ var s = r[i].match(/(.*):(\d+):(\d+)\)?$/);
754
+ if (s) {
755
+ var u = s[1],
756
+ a = s[2],
757
+ l = s[3],
758
+ d = Math.max(u.lastIndexOf(" ") + 1, u.lastIndexOf("(") + 1);
759
+ if (((u = u.substr(d)), (u = n(u)), u === o)) {
760
+ var c = { line: parseInt(a, 10), col: parseInt(l, 10) };
761
+ return (
762
+ 1 === c.line &&
763
+ (c.col -=
764
+ "(function (require, define, __filename, __dirname) { ".length),
765
+ c
766
+ );
767
+ }
768
+ }
769
+ }
770
+ throw new Error("Could not correlate define call site for needle " + e);
771
+ }),
772
+ (e.prototype.getBuildInfo = function () {
773
+ var t = this;
774
+ return this._config.isBuild()
775
+ ? Object.keys(this._modules).map(function (n) {
776
+ var o = t._modules[n],
777
+ r = t._resolvedScriptPaths[n] || null,
778
+ i = o.getDefineCallStack();
779
+ return {
780
+ id: n,
781
+ path: r,
782
+ defineLocation:
783
+ r && i ? e._findRelevantLocationInStack(r, i) : null,
784
+ dependencies: o.getNormalizedDependencies(),
785
+ shim: t._config.isShimmed(n)
786
+ ? t._config.getShimmedModulesStr(n)
787
+ : null,
788
+ exports: o.getExports(),
789
+ };
790
+ })
791
+ : null;
792
+ }),
793
+ (e.prototype.getRecorder = function () {
794
+ return (
795
+ this._recorder ||
796
+ (this._config.shouldRecordStats()
797
+ ? (this._recorder = new g(D))
798
+ : (this._recorder = y.INSTANCE)),
799
+ this._recorder
800
+ );
801
+ }),
802
+ (e.prototype.getLoaderEvents = function () {
803
+ return this.getRecorder().getEvents();
804
+ }),
805
+ (e.prototype.enqueueDefineModule = function (e, t, n) {
806
+ 0 === this._loadingScriptsCount
807
+ ? this.defineModule(e, t, n, null, null)
808
+ : this._queuedDefineCalls.push({
809
+ id: e,
810
+ stack: null,
811
+ dependencies: t,
812
+ callback: n,
813
+ });
814
+ }),
815
+ (e.prototype.enqueueDefineAnonymousModule = function (e, t) {
816
+ var n = null;
817
+ this._config.isBuild() && (n = new Error("StackLocation").stack),
818
+ this._queuedDefineCalls.push({
819
+ id: null,
820
+ stack: n,
821
+ dependencies: e,
822
+ callback: t,
823
+ });
824
+ }),
825
+ (e.prototype.defineModule = function (e, t, n, o, r, i) {
826
+ if (
827
+ (void 0 === i && (i = new c(this._config, e)),
828
+ this._modules.hasOwnProperty(e))
829
+ )
830
+ return void (
831
+ this._config.isDuplicateMessageIgnoredFor(e) ||
832
+ console.warn("Duplicate definition of module '" + e + "'")
833
+ );
834
+ var s = this._config.getConfigForModule(e),
835
+ u = new h(e, t, n, o, this.getRecorder(), i, s, r);
836
+ (this._modules[e] = u), this._resolve(u);
837
+ }),
838
+ (e.prototype._relativeRequire = function (e, t, n, o) {
839
+ return "string" == typeof t
840
+ ? this.synchronousRequire(t, e)
841
+ : void this.defineModule(
842
+ a.generateAnonymousModule(),
843
+ t,
844
+ n,
845
+ o,
846
+ null,
847
+ e
848
+ );
849
+ }),
850
+ (e.prototype.synchronousRequire = function (e, t) {
851
+ void 0 === t && (t = new c(this._config, e));
852
+ var n = t.resolveModule(e),
853
+ o = n.indexOf("!");
854
+ if (o >= 0) {
855
+ var r = n.substring(0, o),
856
+ i = n.substring(o + 1, n.length),
857
+ s = {};
858
+ this._modules.hasOwnProperty(r) && (s = this._modules[r]);
859
+ var u = function (e) {
860
+ return t.resolveModule(e);
861
+ };
862
+ (i = "function" == typeof s.normalize ? s.normalize(i, u) : u(i)),
863
+ (n = r + "!" + i);
864
+ }
865
+ if (!this._modules.hasOwnProperty(n))
866
+ throw new Error(
867
+ "Check dependency list! Synchronous require cannot resolve module '" +
868
+ n +
869
+ "'. This is the first mention of this module!"
870
+ );
871
+ var a = this._modules[n];
872
+ if (!a.isComplete())
873
+ throw new Error(
874
+ "Check dependency list! Synchronous require cannot resolve module '" +
875
+ n +
876
+ "'. This module has not been resolved completely yet."
877
+ );
878
+ return a.getExports();
879
+ }),
880
+ (e.prototype.configure = function (e, t) {
881
+ var n = this._config.shouldRecordStats();
882
+ t
883
+ ? (this._config = new d(e))
884
+ : (this._config = this._config.cloneAndMerge(e)),
885
+ this._config.shouldRecordStats() && !n && (this._recorder = null);
886
+ }),
887
+ (e.prototype.getConfigurationOptions = function () {
888
+ return this._config.getOptionsLiteral();
889
+ }),
890
+ (e.prototype._onLoad = function (e) {
891
+ var t;
892
+ if ((this._loadingScriptsCount--, this._config.isShimmed(e)))
893
+ (t = this._config.getShimmedModuleDefine(e)),
894
+ this.defineModule(e, t.dependencies, t.callback, null, t.stack);
895
+ else if (0 === this._queuedDefineCalls.length)
896
+ this._loadingScriptsCount++,
897
+ this._onLoadError(
898
+ e,
899
+ new Error("No define call received from module " + e + ".")
900
+ );
901
+ else
902
+ for (; this._queuedDefineCalls.length > 0; ) {
903
+ if (
904
+ ((t = this._queuedDefineCalls.shift()),
905
+ t.id === e || null === t.id)
906
+ ) {
907
+ (t.id = e),
908
+ this.defineModule(
909
+ t.id,
910
+ t.dependencies,
911
+ t.callback,
912
+ null,
913
+ t.stack
914
+ );
915
+ break;
916
+ }
917
+ this.defineModule(t.id, t.dependencies, t.callback, null, t.stack);
918
+ }
919
+ if (0 === this._loadingScriptsCount)
920
+ for (; this._queuedDefineCalls.length > 0; )
921
+ (t = this._queuedDefineCalls.shift()),
922
+ null === t.id
923
+ ? (console.warn(
924
+ "Found an unmatched anonymous define call in the define queue. Ignoring it!"
925
+ ),
926
+ console.warn(t.callback))
927
+ : this.defineModule(
928
+ t.id,
929
+ t.dependencies,
930
+ t.callback,
931
+ null,
932
+ t.stack
933
+ );
934
+ }),
935
+ (e.prototype._onLoadError = function (e, t) {
936
+ this._loadingScriptsCount--;
937
+ var n,
938
+ o = {
939
+ errorCode: "load",
940
+ moduleId: e,
941
+ neededBy: this._inverseDependencies[e]
942
+ ? this._inverseDependencies[e].slice(0)
943
+ : [],
944
+ detail: t,
945
+ },
946
+ r = {},
947
+ i = !1,
948
+ s = [];
949
+ for (s.push(e), r[e] = !0; s.length > 0; )
950
+ if (
951
+ ((n = s.shift()),
952
+ this._modules[n] &&
953
+ (i = this._modules[n].onDependencyError(o) || i),
954
+ this._inverseDependencies[n])
955
+ )
956
+ for (var u = 0, a = this._inverseDependencies[n].length; a > u; u++)
957
+ r.hasOwnProperty(this._inverseDependencies[n][u]) ||
958
+ (s.push(this._inverseDependencies[n][u]),
959
+ (r[this._inverseDependencies[n][u]] = !0));
960
+ i || this._config.onError(o);
961
+ }),
962
+ (e.prototype._onModuleComplete = function (e, t) {
963
+ var n, o, r, i;
964
+ if (
965
+ (delete this._dependencies[e],
966
+ this._inverseDependencies.hasOwnProperty(e))
967
+ ) {
968
+ var s = this._inverseDependencies[e];
969
+ for (
970
+ delete this._inverseDependencies[e], n = 0, o = s.length;
971
+ o > n;
972
+ n++
973
+ )
974
+ (r = s[n]),
975
+ (i = this._modules[r]),
976
+ i.resolveDependency(e, t),
977
+ i.isComplete() && this._onModuleComplete(r, i.getExports());
978
+ }
979
+ if (this._inversePluginDependencies.hasOwnProperty(e)) {
980
+ var u = this._inversePluginDependencies[e];
981
+ for (
982
+ delete this._inversePluginDependencies[e], n = 0, o = u.length;
983
+ o > n;
984
+ n++
985
+ ) {
986
+ var l = u[n].moduleId,
987
+ d = this._modules[l];
988
+ this._resolvePluginDependencySync(l, u[n].dependencyId, t),
989
+ d.isComplete() && this._onModuleComplete(l, d.getExports());
990
+ }
991
+ }
992
+ a.isAnonymousModule(e)
993
+ ? (delete this._modules[e], delete this._dependencies[e])
994
+ : this._modules[e].cleanUp();
995
+ }),
996
+ (e.prototype._hasDependencyPath = function (e, t) {
997
+ var n,
998
+ o,
999
+ r,
1000
+ i,
1001
+ s,
1002
+ u = {},
1003
+ a = [];
1004
+ for (a.push(e), u[e] = !0; a.length > 0; )
1005
+ if (((r = a.shift()), this._dependencies.hasOwnProperty(r)))
1006
+ for (i = this._dependencies[r], n = 0, o = i.length; o > n; n++) {
1007
+ if (((s = i[n]), s === t)) return !0;
1008
+ u.hasOwnProperty(s) || ((u[s] = !0), a.push(s));
1009
+ }
1010
+ return !1;
1011
+ }),
1012
+ (e.prototype._findCyclePath = function (e, t, n) {
1013
+ if (e === t || 50 === n) return [e];
1014
+ if (!this._dependencies.hasOwnProperty(e)) return null;
1015
+ for (var o, r = this._dependencies[e], i = 0, s = r.length; s > i; i++)
1016
+ if (((o = this._findCyclePath(r[i], t, n + 1)), null !== o))
1017
+ return o.push(e), o;
1018
+ return null;
1019
+ }),
1020
+ (e.prototype._createRequire = function (e) {
1021
+ var t = this,
1022
+ n = function (n, o, r) {
1023
+ return t._relativeRequire(e, n, o, r);
1024
+ };
1025
+ return (
1026
+ (n.toUrl = function (t) {
1027
+ return e.requireToUrl(e.resolveModule(t));
1028
+ }),
1029
+ (n.getStats = function () {
1030
+ return t.getLoaderEvents();
1031
+ }),
1032
+ (n.__$__nodeRequire = I.nodeRequire),
1033
+ n
1034
+ );
1035
+ }),
1036
+ (e.prototype._resolvePluginDependencySync = function (e, t, n) {
1037
+ var o = this,
1038
+ r = this._modules[e],
1039
+ i = r.getModuleIdResolver(),
1040
+ s = t.indexOf("!"),
1041
+ u = t.substring(0, s),
1042
+ a = t.substring(s + 1, t.length),
1043
+ l = function (e) {
1044
+ return i.resolveModule(e);
1045
+ };
1046
+ if (
1047
+ ((a = "function" == typeof n.normalize ? n.normalize(a, l) : l(a)),
1048
+ n.dynamic)
1049
+ ) {
1050
+ var d = function (n) {
1051
+ r.resolveDependency(t, n),
1052
+ r.isComplete() && o._onModuleComplete(e, r.getExports());
1053
+ };
1054
+ (d.error = function (n) {
1055
+ o._config.onError({
1056
+ errorCode: "load",
1057
+ moduleId: t,
1058
+ neededBy: [e],
1059
+ detail: n,
1060
+ });
1061
+ }),
1062
+ n.load(
1063
+ a,
1064
+ this._createRequire(i),
1065
+ d,
1066
+ this._config.getOptionsLiteral()
1067
+ );
1068
+ } else {
1069
+ var c = t;
1070
+ (t = u + "!" + a),
1071
+ r.renameDependency(c, t),
1072
+ this._resolveDependency(e, t, function (e) {
1073
+ var r = function (e) {
1074
+ o.defineModule(t, [], e, null, null);
1075
+ };
1076
+ (r.error = function (e) {
1077
+ o._config.onError({
1078
+ errorCode: "load",
1079
+ moduleId: t,
1080
+ neededBy: o._inverseDependencies[t]
1081
+ ? o._inverseDependencies[t].slice(0)
1082
+ : [],
1083
+ detail: e,
1084
+ });
1085
+ }),
1086
+ n.load(
1087
+ a,
1088
+ o._createRequire(i),
1089
+ r,
1090
+ o._config.getOptionsLiteral()
1091
+ );
1092
+ });
1093
+ }
1094
+ }),
1095
+ (e.prototype._resolvePluginDependencyAsync = function (e, t) {
1096
+ var n = this._modules[e],
1097
+ o = t.indexOf("!"),
1098
+ r = t.substring(0, o);
1099
+ (this._inversePluginDependencies[r] =
1100
+ this._inversePluginDependencies[r] || []),
1101
+ this._inversePluginDependencies[r].push({
1102
+ moduleId: e,
1103
+ dependencyId: t,
1104
+ }),
1105
+ this._modules.hasOwnProperty(r) ||
1106
+ this._knownModules.hasOwnProperty(r) ||
1107
+ ((this._knownModules[r] = !0),
1108
+ this._loadModule(n.getModuleIdResolver(), r));
1109
+ }),
1110
+ (e.prototype._resolvePluginDependency = function (e, t) {
1111
+ var n = t.indexOf("!"),
1112
+ o = t.substring(0, n);
1113
+ this._modules.hasOwnProperty(o) && this._modules[o].isComplete()
1114
+ ? this._resolvePluginDependencySync(
1115
+ e,
1116
+ t,
1117
+ this._modules[o].getExports()
1118
+ )
1119
+ : this._resolvePluginDependencyAsync(e, t);
1120
+ }),
1121
+ (e.prototype._resolveShimmedDependency = function (e, t, n) {
1122
+ var o = this._config.getShimmedModuleDefine(t);
1123
+ o.dependencies.length > 0
1124
+ ? this.defineModule(
1125
+ a.generateAnonymousModule(),
1126
+ o.dependencies,
1127
+ function () {
1128
+ return n(t);
1129
+ },
1130
+ null,
1131
+ null,
1132
+ new c(this._config, t)
1133
+ )
1134
+ : n(t);
1135
+ }),
1136
+ (e.prototype._resolveDependency = function (e, t, n) {
1137
+ var o = this._modules[e];
1138
+ if (this._modules.hasOwnProperty(t) && this._modules[t].isComplete())
1139
+ o.resolveDependency(t, this._modules[t].getExports());
1140
+ else if (
1141
+ (this._dependencies[e].push(t), this._hasDependencyPath(t, e))
1142
+ ) {
1143
+ console.warn(
1144
+ "There is a dependency cycle between '" +
1145
+ t +
1146
+ "' and '" +
1147
+ e +
1148
+ "'. The cyclic path follows:"
1149
+ );
1150
+ var r = this._findCyclePath(t, e, 0);
1151
+ r.reverse(), r.push(t), console.warn(r.join(" => \n"));
1152
+ var i,
1153
+ s = this._modules.hasOwnProperty(t) ? this._modules[t] : null;
1154
+ s && s.isExportsPassedIn() && (i = s.getExports()),
1155
+ o.resolveDependency(t, i);
1156
+ } else
1157
+ (this._inverseDependencies[t] = this._inverseDependencies[t] || []),
1158
+ this._inverseDependencies[t].push(e),
1159
+ this._modules.hasOwnProperty(t) ||
1160
+ this._knownModules.hasOwnProperty(t) ||
1161
+ ((this._knownModules[t] = !0),
1162
+ this._config.isShimmed(t)
1163
+ ? this._resolveShimmedDependency(e, t, n)
1164
+ : n(t));
1165
+ }),
1166
+ (e.prototype._loadModule = function (e, t) {
1167
+ var n = this;
1168
+ this._loadingScriptsCount++;
1169
+ var o = e.moduleIdToPaths(t),
1170
+ r = -1,
1171
+ i = function (e) {
1172
+ if ((r++, r >= o.length)) n._onLoadError(t, e);
1173
+ else {
1174
+ var s = o[r],
1175
+ u = n.getRecorder();
1176
+ if (n._config.isBuild() && "empty:" === s)
1177
+ return (
1178
+ (n._resolvedScriptPaths[t] = s),
1179
+ n.enqueueDefineModule(t, [], null),
1180
+ void n._onLoad(t)
1181
+ );
1182
+ u.record(p.BeginLoadingScript, s),
1183
+ n._scriptLoader.load(
1184
+ s,
1185
+ function () {
1186
+ n._config.isBuild() && (n._resolvedScriptPaths[t] = s),
1187
+ u.record(p.EndLoadingScriptOK, s),
1188
+ n._onLoad(t);
1189
+ },
1190
+ function (e) {
1191
+ u.record(p.EndLoadingScriptError, s), i(e);
1192
+ },
1193
+ u
1194
+ );
1195
+ }
1196
+ };
1197
+ i(null);
1198
+ }),
1199
+ (e.prototype._resolve = function (e) {
1200
+ var t,
1201
+ n,
1202
+ o,
1203
+ r,
1204
+ i,
1205
+ s,
1206
+ u = this;
1207
+ (o = e.getId()),
1208
+ (r = e.getDependencies()),
1209
+ (s = e.getModuleIdResolver()),
1210
+ (this._dependencies[o] = []);
1211
+ var a = function (e) {
1212
+ return u._loadModule(s, e);
1213
+ };
1214
+ for (t = 0, n = r.length; n > t; t++)
1215
+ (i = r[t]),
1216
+ "require" !== i
1217
+ ? i.indexOf("!") >= 0
1218
+ ? this._resolvePluginDependency(o, i)
1219
+ : this._resolveDependency(o, i, a)
1220
+ : e.resolveDependency(i, this._createRequire(s));
1221
+ e.isComplete() && this._onModuleComplete(o, e.getExports());
1222
+ }),
1223
+ e
1224
+ );
1225
+ })();
1226
+ e.ModuleManager = _;
1227
+ var v,
1228
+ m,
1229
+ M,
1230
+ P,
1231
+ E,
1232
+ b,
1233
+ D,
1234
+ S = (function () {
1235
+ function e(e) {
1236
+ (this.actualScriptLoader = e), (this.callbackMap = {});
1237
+ }
1238
+ return (
1239
+ (e.prototype.setModuleManager = function (e) {
1240
+ this.actualScriptLoader.setModuleManager(e);
1241
+ }),
1242
+ (e.prototype.load = function (e, t, n, o) {
1243
+ var r = this,
1244
+ i = { callback: t, errorback: n };
1245
+ return this.callbackMap.hasOwnProperty(e)
1246
+ ? void this.callbackMap[e].push(i)
1247
+ : ((this.callbackMap[e] = [i]),
1248
+ void this.actualScriptLoader.load(
1249
+ e,
1250
+ function () {
1251
+ return r.triggerCallback(e);
1252
+ },
1253
+ function (t) {
1254
+ return r.triggerErrorback(e, t);
1255
+ },
1256
+ o
1257
+ ));
1258
+ }),
1259
+ (e.prototype.triggerCallback = function (e) {
1260
+ var t = this.callbackMap[e];
1261
+ delete this.callbackMap[e];
1262
+ for (var n = 0; n < t.length; n++) t[n].callback();
1263
+ }),
1264
+ (e.prototype.triggerErrorback = function (e, t) {
1265
+ var n = this.callbackMap[e];
1266
+ delete this.callbackMap[e];
1267
+ for (var o = 0; o < n.length; o++) n[o].errorback(t);
1268
+ }),
1269
+ e
1270
+ );
1271
+ })(),
1272
+ L = (function () {
1273
+ function e() {}
1274
+ return (
1275
+ (e.prototype.attachListenersV1 = function (e, t, n) {
1276
+ var o = function () {
1277
+ e.detachEvent("onreadystatechange", r),
1278
+ e.addEventListener && e.removeEventListener("error", i);
1279
+ },
1280
+ r = function (n) {
1281
+ ("loaded" === e.readyState || "complete" === e.readyState) &&
1282
+ (o(), t());
1283
+ },
1284
+ i = function (e) {
1285
+ o(), n(e);
1286
+ };
1287
+ e.attachEvent("onreadystatechange", r),
1288
+ e.addEventListener && e.addEventListener("error", i);
1289
+ }),
1290
+ (e.prototype.attachListenersV2 = function (e, t, n) {
1291
+ var o = function () {
1292
+ e.removeEventListener("load", r),
1293
+ e.removeEventListener("error", i);
1294
+ },
1295
+ r = function (e) {
1296
+ o(), t();
1297
+ },
1298
+ i = function (e) {
1299
+ o(), n(e);
1300
+ };
1301
+ e.addEventListener("load", r), e.addEventListener("error", i);
1302
+ }),
1303
+ (e.prototype.setModuleManager = function (e) {}),
1304
+ (e.prototype.load = function (e, t, n) {
1305
+ var o = document.createElement("script");
1306
+ o.setAttribute("async", "async"),
1307
+ o.setAttribute("type", "text/javascript"),
1308
+ I.attachEvent
1309
+ ? this.attachListenersV1(o, t, n)
1310
+ : this.attachListenersV2(o, t, n),
1311
+ o.setAttribute("src", e),
1312
+ document.getElementsByTagName("head")[0].appendChild(o);
1313
+ }),
1314
+ e
1315
+ );
1316
+ })(),
1317
+ k = (function () {
1318
+ function e() {
1319
+ (this.loadCalls = []), (this.loadTimeout = -1);
1320
+ }
1321
+ return (
1322
+ (e.prototype.setModuleManager = function (e) {}),
1323
+ (e.prototype.load = function (e, t, n) {
1324
+ var o = this;
1325
+ this.loadCalls.push({ scriptSrc: e, callback: t, errorback: n }),
1326
+ navigator.userAgent.indexOf("Firefox") >= 0
1327
+ ? this._load()
1328
+ : -1 === this.loadTimeout &&
1329
+ (this.loadTimeout = setTimeout(function () {
1330
+ (o.loadTimeout = -1), o._load();
1331
+ }, 0));
1332
+ }),
1333
+ (e.prototype._load = function () {
1334
+ var e = this.loadCalls;
1335
+ this.loadCalls = [];
1336
+ var t,
1337
+ n = e.length,
1338
+ o = [];
1339
+ for (t = 0; n > t; t++) o.push(e[t].scriptSrc);
1340
+ var r = !1;
1341
+ try {
1342
+ importScripts.apply(null, o);
1343
+ } catch (i) {
1344
+ for (r = !0, t = 0; n > t; t++) e[t].errorback(i);
1345
+ }
1346
+ if (!r) for (t = 0; n > t; t++) e[t].callback();
1347
+ }),
1348
+ e
1349
+ );
1350
+ })(),
1351
+ w = (function () {
1352
+ function e() {
1353
+ this._initialized = !1;
1354
+ }
1355
+ return (
1356
+ (e.prototype.setModuleManager = function (e) {
1357
+ this._moduleManager = e;
1358
+ }),
1359
+ (e.prototype._init = function (e) {
1360
+ this._initialized ||
1361
+ ((this._initialized = !0),
1362
+ (this._fs = e("fs")),
1363
+ (this._vm = e("vm")),
1364
+ (this._path = e("path")));
1365
+ }),
1366
+ (e.prototype.load = function (t, n, o, r) {
1367
+ var i = this,
1368
+ s = this._moduleManager.getConfigurationOptions(),
1369
+ u = s.nodeRequire || I.nodeRequire,
1370
+ l =
1371
+ s.nodeInstrumenter ||
1372
+ function (e) {
1373
+ return e;
1374
+ };
1375
+ if ((this._init(u), /^node\|/.test(t))) {
1376
+ var d = t.split("|"),
1377
+ c = null;
1378
+ try {
1379
+ r.record(p.NodeBeginNativeRequire, d[2]), (c = u(d[2]));
1380
+ } catch (h) {
1381
+ return r.record(p.NodeEndNativeRequire, d[2]), void o(h);
1382
+ }
1383
+ r.record(p.NodeEndNativeRequire, d[2]),
1384
+ this._moduleManager.enqueueDefineAnonymousModule([], function () {
1385
+ return c;
1386
+ }),
1387
+ n();
1388
+ } else
1389
+ (t = a.fileUriToFilePath(t)),
1390
+ this._fs.readFile(t, { encoding: "utf8" }, function (s, u) {
1391
+ if (s) return void o(s);
1392
+ r.record(p.NodeBeginEvaluatingScript, t);
1393
+ var a = i._path.normalize(t);
1394
+ if (m) {
1395
+ var d = a.match(/^([a-z])\:(.*)/);
1396
+ d && (a = d[1].toUpperCase() + ":" + d[2]),
1397
+ (a = "file:///" + a.replace(/\\/g, "/"));
1398
+ }
1399
+ var c,
1400
+ h = "(function (require, define, __filename, __dirname) { ",
1401
+ f = "\n});";
1402
+ (c =
1403
+ u.charCodeAt(0) === e._BOM
1404
+ ? h + u.substring(1) + f
1405
+ : h + u + f),
1406
+ (c = l(c, a));
1407
+ var g;
1408
+ (g = /^v0\.12/.test(process.version)
1409
+ ? i._vm.runInThisContext(c, { filename: a })
1410
+ : i._vm.runInThisContext(c, a)),
1411
+ g.call(I, A, C, a, i._path.dirname(t)),
1412
+ r.record(p.NodeEndEvaluatingScript, t),
1413
+ n();
1414
+ });
1415
+ }),
1416
+ (e._BOM = 65279),
1417
+ e
1418
+ );
1419
+ })(),
1420
+ C = (function () {
1421
+ function e(e, t, n) {
1422
+ "string" != typeof e && ((n = t), (t = e), (e = null)),
1423
+ ("object" == typeof t && a.isArray(t)) || ((n = t), (t = null)),
1424
+ t || (t = ["require", "exports", "module"]),
1425
+ e
1426
+ ? b.enqueueDefineModule(e, t, n)
1427
+ : b.enqueueDefineAnonymousModule(t, n);
1428
+ }
1429
+ return (e.amd = { jQuery: !0 }), e;
1430
+ })(),
1431
+ A = (function () {
1432
+ function e() {
1433
+ if (1 === arguments.length) {
1434
+ if (arguments[0] instanceof Object && !a.isArray(arguments[0]))
1435
+ return void e.config(arguments[0]);
1436
+ if ("string" == typeof arguments[0])
1437
+ return b.synchronousRequire(arguments[0]);
1438
+ }
1439
+ if (
1440
+ (2 === arguments.length || 3 === arguments.length) &&
1441
+ a.isArray(arguments[0])
1442
+ )
1443
+ return void b.defineModule(
1444
+ a.generateAnonymousModule(),
1445
+ arguments[0],
1446
+ arguments[1],
1447
+ arguments[2],
1448
+ null
1449
+ );
1450
+ throw new Error("Unrecognized require call");
1451
+ }
1452
+ return (
1453
+ (e.config = function (e, t) {
1454
+ void 0 === t && (t = !1), b.configure(e, t);
1455
+ }),
1456
+ (e.getConfig = function () {
1457
+ return b.getConfigurationOptions();
1458
+ }),
1459
+ (e.reset = function () {
1460
+ (b = new _(E)), E.setModuleManager(b);
1461
+ }),
1462
+ (e.getBuildInfo = function () {
1463
+ return b.getBuildInfo();
1464
+ }),
1465
+ (e.getStats = function () {
1466
+ return b.getLoaderEvents();
1467
+ }),
1468
+ e
1469
+ );
1470
+ })(),
1471
+ I = _amdLoaderGlobal,
1472
+ x = I.performance && "function" == typeof I.performance.now;
1473
+ ("function" == typeof I.define && I.define.amd) || (s(), (D = n()));
1474
+ })(AMDLoader || (AMDLoader = {}));
1475
+ var __extends =
1476
+ (this && this.__extends) ||
1477
+ function (e, t) {
1478
+ function n() {
1479
+ this.constructor = e;
1480
+ }
1481
+ for (var o in t) t.hasOwnProperty(o) && (e[o] = t[o]);
1482
+ e.prototype =
1483
+ null === t ? Object.create(t) : ((n.prototype = t.prototype), new n());
1484
+ },
1485
+ _cssPluginGlobal = this,
1486
+ CSSLoaderPlugin;
1487
+ !(function (e) {
1488
+ var t = _cssPluginGlobal,
1489
+ n = (function () {
1490
+ function e() {
1491
+ this._pendingLoads = 0;
1492
+ }
1493
+ return (
1494
+ (e.prototype.attachListeners = function (e, t, n, o) {
1495
+ var r = function () {
1496
+ t.removeEventListener("load", i),
1497
+ t.removeEventListener("error", s);
1498
+ },
1499
+ i = function (e) {
1500
+ r(), n();
1501
+ },
1502
+ s = function (e) {
1503
+ r(), o(e);
1504
+ };
1505
+ t.addEventListener("load", i), t.addEventListener("error", s);
1506
+ }),
1507
+ (e.prototype._onLoad = function (e, t) {
1508
+ this._pendingLoads--, t();
1509
+ }),
1510
+ (e.prototype._onLoadError = function (e, t, n) {
1511
+ this._pendingLoads--, t(n);
1512
+ }),
1513
+ (e.prototype._insertLinkNode = function (e) {
1514
+ this._pendingLoads++;
1515
+ var t = document.head || document.getElementsByTagName("head")[0],
1516
+ n =
1517
+ t.getElementsByTagName("link") ||
1518
+ document.head.getElementsByTagName("script");
1519
+ n.length > 0 ? t.insertBefore(e, n[n.length - 1]) : t.appendChild(e);
1520
+ }),
1521
+ (e.prototype.createLinkTag = function (e, t, n, o) {
1522
+ var r = this,
1523
+ i = document.createElement("link");
1524
+ i.setAttribute("rel", "stylesheet"),
1525
+ i.setAttribute("type", "text/css"),
1526
+ i.setAttribute("data-name", e);
1527
+ var s = function () {
1528
+ return r._onLoad(e, n);
1529
+ },
1530
+ u = function (t) {
1531
+ return r._onLoadError(e, o, t);
1532
+ };
1533
+ return this.attachListeners(e, i, s, u), i.setAttribute("href", t), i;
1534
+ }),
1535
+ (e.prototype._linkTagExists = function (e, t) {
1536
+ var n,
1537
+ o,
1538
+ r,
1539
+ i,
1540
+ s = document.getElementsByTagName("link");
1541
+ for (n = 0, o = s.length; o > n; n++)
1542
+ if (
1543
+ ((r = s[n].getAttribute("data-name")),
1544
+ (i = s[n].getAttribute("href")),
1545
+ r === e || i === t)
1546
+ )
1547
+ return !0;
1548
+ return !1;
1549
+ }),
1550
+ (e.prototype.load = function (e, t, n, o) {
1551
+ if (this._linkTagExists(e, t)) return void n();
1552
+ var r = this.createLinkTag(e, t, n, o);
1553
+ this._insertLinkNode(r);
1554
+ }),
1555
+ e
1556
+ );
1557
+ })(),
1558
+ o = (function (e) {
1559
+ function t() {
1560
+ e.call(this),
1561
+ (this._blockedLoads = []),
1562
+ (this._mergeStyleSheetsTimeout = -1);
1563
+ }
1564
+ return (
1565
+ __extends(t, e),
1566
+ (t.prototype.load = function (e, t, n, o) {
1567
+ if (this._linkTagExists(e, t)) return void n();
1568
+ var r = this.createLinkTag(e, t, n, o);
1569
+ this._styleSheetCount() < 31
1570
+ ? this._insertLinkNode(r)
1571
+ : (this._blockedLoads.push(r), this._handleBlocked());
1572
+ }),
1573
+ (t.prototype._styleSheetCount = function () {
1574
+ var e = document.getElementsByTagName("link").length,
1575
+ t = document.getElementsByTagName("style").length;
1576
+ return e + t;
1577
+ }),
1578
+ (t.prototype._onLoad = function (t, n) {
1579
+ e.prototype._onLoad.call(this, t, n), this._handleBlocked();
1580
+ }),
1581
+ (t.prototype._onLoadError = function (t, n, o) {
1582
+ e.prototype._onLoadError.call(this, t, n, o), this._handleBlocked();
1583
+ }),
1584
+ (t.prototype._handleBlocked = function () {
1585
+ var e = this,
1586
+ t = this._blockedLoads.length;
1587
+ t > 0 &&
1588
+ -1 === this._mergeStyleSheetsTimeout &&
1589
+ (this._mergeStyleSheetsTimeout = window.setTimeout(function () {
1590
+ return e._mergeStyleSheets();
1591
+ }, 0));
1592
+ }),
1593
+ (t.prototype._mergeStyleSheet = function (e, t, n, o) {
1594
+ for (var r = o.rules.length - 1; r >= 0; r--)
1595
+ t.insertRule(u.rewriteUrls(n, e, o.rules[r].cssText), 0);
1596
+ }),
1597
+ (t.prototype._asIE9HTMLLinkElement = function (e) {
1598
+ return e;
1599
+ }),
1600
+ (t.prototype._mergeStyleSheets = function () {
1601
+ this._mergeStyleSheetsTimeout = -1;
1602
+ var e,
1603
+ t = this._blockedLoads.length,
1604
+ n = document.getElementsByTagName("link"),
1605
+ o = n.length,
1606
+ r = [];
1607
+ for (e = 0; o > e; e++)
1608
+ ("loaded" === n[e].readyState || "complete" === n[e].readyState) &&
1609
+ r.push({
1610
+ linkNode: n[e],
1611
+ rulesLength: this._asIE9HTMLLinkElement(n[e]).styleSheet.rules
1612
+ .length,
1613
+ });
1614
+ var i = r.length,
1615
+ s = Math.min(Math.floor(i / 2), t);
1616
+ r.sort(function (e, t) {
1617
+ return t.rulesLength - e.rulesLength;
1618
+ });
1619
+ var u, a;
1620
+ for (e = 0; s > e; e++)
1621
+ (u = r.length - 1 - e),
1622
+ (a = e % (r.length - s)),
1623
+ this._mergeStyleSheet(
1624
+ r[a].linkNode.href,
1625
+ this._asIE9HTMLLinkElement(r[a].linkNode).styleSheet,
1626
+ r[u].linkNode.href,
1627
+ this._asIE9HTMLLinkElement(r[u].linkNode).styleSheet
1628
+ ),
1629
+ r[u].linkNode.parentNode.removeChild(r[u].linkNode),
1630
+ o--;
1631
+ for (
1632
+ var l = this._styleSheetCount();
1633
+ 31 > l && this._blockedLoads.length > 0;
1634
+
1635
+ )
1636
+ this._insertLinkNode(this._blockedLoads.shift()), l++;
1637
+ }),
1638
+ t
1639
+ );
1640
+ })(n),
1641
+ r = (function (e) {
1642
+ function t() {
1643
+ e.call(this);
1644
+ }
1645
+ return (
1646
+ __extends(t, e),
1647
+ (t.prototype.attachListeners = function (e, t, n, o) {
1648
+ t.onload = function () {
1649
+ (t.onload = null), n();
1650
+ };
1651
+ }),
1652
+ t
1653
+ );
1654
+ })(o),
1655
+ i = (function () {
1656
+ function e() {
1657
+ this.fs = require.nodeRequire("fs");
1658
+ }
1659
+ return (
1660
+ (e.prototype.load = function (t, n, o, r) {
1661
+ var i = this.fs.readFileSync(n, "utf8");
1662
+ i.charCodeAt(0) === e.BOM_CHAR_CODE && (i = i.substring(1)), o(i);
1663
+ }),
1664
+ (e.BOM_CHAR_CODE = 65279),
1665
+ e
1666
+ );
1667
+ })(),
1668
+ s = (function () {
1669
+ function e(e) {
1670
+ this.cssLoader = e;
1671
+ }
1672
+ return (
1673
+ (e.prototype.load = function (t, n, o, r) {
1674
+ r = r || {};
1675
+ var i = n.toUrl(t + ".css");
1676
+ this.cssLoader.load(
1677
+ t,
1678
+ i,
1679
+ function (n) {
1680
+ r.isBuild && (e.BUILD_MAP[t] = n), o({});
1681
+ },
1682
+ function (e) {
1683
+ "function" == typeof o.error &&
1684
+ o.error("Could not find " + i + " or it was empty");
1685
+ }
1686
+ );
1687
+ }),
1688
+ (e.prototype.write = function (n, o, r) {
1689
+ var i = r.getEntryPoint();
1690
+ (t.cssPluginEntryPoints = t.cssPluginEntryPoints || {}),
1691
+ (t.cssPluginEntryPoints[i] = t.cssPluginEntryPoints[i] || []),
1692
+ t.cssPluginEntryPoints[i].push({
1693
+ moduleName: o,
1694
+ contents: e.BUILD_MAP[o],
1695
+ }),
1696
+ r.asModule(n + "!" + o, "define(['vs/css!" + i + "'], {});");
1697
+ }),
1698
+ (e.prototype.writeFile = function (e, n, o, r, i) {
1699
+ if (
1700
+ t.cssPluginEntryPoints &&
1701
+ t.cssPluginEntryPoints.hasOwnProperty(n)
1702
+ ) {
1703
+ for (
1704
+ var s = o.toUrl(n + ".css"),
1705
+ a = [
1706
+ "/*---------------------------------------------------------",
1707
+ " * Copyright (c) Microsoft Corporation. All rights reserved.",
1708
+ " *--------------------------------------------------------*/",
1709
+ ],
1710
+ l = t.cssPluginEntryPoints[n],
1711
+ d = 0;
1712
+ d < l.length;
1713
+ d++
1714
+ )
1715
+ a.push(u.rewriteUrls(l[d].moduleName, n, l[d].contents));
1716
+ r(s, a.join("\r\n"));
1717
+ }
1718
+ }),
1719
+ (e.BUILD_MAP = {}),
1720
+ e
1721
+ );
1722
+ })();
1723
+ e.CSSPlugin = s;
1724
+ var u = (function () {
1725
+ function e() {}
1726
+ return (
1727
+ (e.startsWith = function (e, t) {
1728
+ return e.length >= t.length && e.substr(0, t.length) === t;
1729
+ }),
1730
+ (e.pathOf = function (e) {
1731
+ var t = e.lastIndexOf("/");
1732
+ return -1 !== t ? e.substr(0, t + 1) : "";
1733
+ }),
1734
+ (e.joinPaths = function (t, n) {
1735
+ function o(t, n) {
1736
+ return e.startsWith(t, n)
1737
+ ? Math.max(n.length, t.indexOf("/", n.length))
1738
+ : 0;
1739
+ }
1740
+ function r(e, t) {
1741
+ if ("./" !== t) {
1742
+ if ("../" === t) {
1743
+ var n = e.length > 0 ? e[e.length - 1] : null;
1744
+ if (n && "/" === n) return;
1745
+ if (n && "../" !== n) return void e.pop();
1746
+ }
1747
+ e.push(t);
1748
+ }
1749
+ }
1750
+ function i(e, t) {
1751
+ for (; t.length > 0; ) {
1752
+ var n = t.indexOf("/"),
1753
+ o = n >= 0 ? t.substring(0, n + 1) : t;
1754
+ (t = n >= 0 ? t.substring(n + 1) : ""), r(e, o);
1755
+ }
1756
+ }
1757
+ var s = 0;
1758
+ (s = s || o(t, "//")),
1759
+ (s = s || o(t, "http://")),
1760
+ (s = s || o(t, "https://"));
1761
+ var u = [];
1762
+ return (
1763
+ i(u, t.substr(s)),
1764
+ n.length > 0 && "/" === n.charAt(0) && (u = []),
1765
+ i(u, n),
1766
+ t.substring(0, s) + u.join("")
1767
+ );
1768
+ }),
1769
+ (e.commonPrefix = function (e, t) {
1770
+ for (
1771
+ var n = Math.min(e.length, t.length), o = 0;
1772
+ n > o && e.charCodeAt(o) === t.charCodeAt(o);
1773
+ o++
1774
+ );
1775
+ return e.substring(0, o);
1776
+ }),
1777
+ (e.commonFolderPrefix = function (t, n) {
1778
+ var o = e.commonPrefix(t, n),
1779
+ r = o.lastIndexOf("/");
1780
+ return -1 === r ? "" : o.substring(0, r + 1);
1781
+ }),
1782
+ (e.relativePath = function (t, n) {
1783
+ if (
1784
+ e.startsWith(n, "/") ||
1785
+ e.startsWith(n, "http://") ||
1786
+ e.startsWith(n, "https://")
1787
+ )
1788
+ return n;
1789
+ var o = e.commonFolderPrefix(t, n);
1790
+ (t = t.substr(o.length)), (n = n.substr(o.length));
1791
+ for (var r = t.split("/").length, i = "", s = 1; r > s; s++) i += "../";
1792
+ return i + n;
1793
+ }),
1794
+ (e.rewriteUrls = function (t, n, o) {
1795
+ return o.replace(/url\(\s*([^\)]+)\s*\)?/g, function (o) {
1796
+ for (var r = [], i = 1; i < arguments.length; i++)
1797
+ r[i - 1] = arguments[i];
1798
+ var s = r[0];
1799
+ for (
1800
+ ('"' === s.charAt(0) || "'" === s.charAt(0)) &&
1801
+ (s = s.substring(1));
1802
+ s.length > 0 &&
1803
+ (" " === s.charAt(s.length - 1) || " " === s.charAt(s.length - 1));
1804
+
1805
+ )
1806
+ s = s.substring(0, s.length - 1);
1807
+ if (
1808
+ (('"' === s.charAt(s.length - 1) ||
1809
+ "'" === s.charAt(s.length - 1)) &&
1810
+ (s = s.substring(0, s.length - 1)),
1811
+ !e.startsWith(s, "data:") &&
1812
+ !e.startsWith(s, "http://") &&
1813
+ !e.startsWith(s, "https://"))
1814
+ ) {
1815
+ var u = e.joinPaths(e.pathOf(t), s);
1816
+ s = e.relativePath(n, u);
1817
+ }
1818
+ return "url(" + s + ")";
1819
+ });
1820
+ }),
1821
+ e
1822
+ );
1823
+ })();
1824
+ (e.Utilities = u),
1825
+ (function () {
1826
+ var e = null,
1827
+ t =
1828
+ "undefined" != typeof process &&
1829
+ "undefined" != typeof process.versions &&
1830
+ "undefined" != typeof process.versions.electron;
1831
+ (e =
1832
+ "undefined" != typeof process &&
1833
+ process.versions &&
1834
+ process.versions.node &&
1835
+ !t
1836
+ ? new i()
1837
+ : "undefined" != typeof navigator &&
1838
+ navigator.userAgent.indexOf("MSIE 9") >= 0
1839
+ ? new o()
1840
+ : "undefined" != typeof navigator &&
1841
+ navigator.userAgent.indexOf("MSIE 8") >= 0
1842
+ ? new r()
1843
+ : new n()),
1844
+ define("vs/css", new s(e));
1845
+ })();
1846
+ })(CSSLoaderPlugin || (CSSLoaderPlugin = {}));
1847
+ var _nlsPluginGlobal = this,
1848
+ NLSLoaderPlugin;
1849
+ !(function (e) {
1850
+ function t(e, t) {
1851
+ var n;
1852
+ return (
1853
+ (n =
1854
+ 0 === t.length
1855
+ ? e
1856
+ : e.replace(/\{(\d+)\}/g, function (e, n) {
1857
+ var o = n[0];
1858
+ return "undefined" != typeof t[o] ? t[o] : e;
1859
+ })),
1860
+ a && (n = "[" + n.replace(/[aouei]/g, "$&$&") + "]"),
1861
+ n
1862
+ );
1863
+ }
1864
+ function n(e, t) {
1865
+ var n = e[t];
1866
+ return n ? n : ((n = e["*"]), n ? n : null);
1867
+ }
1868
+ function o(e, n) {
1869
+ for (var o = [], r = 0; r < arguments.length - 2; r++)
1870
+ o[r] = arguments[r + 2];
1871
+ return t(n, o);
1872
+ }
1873
+ function r(e) {
1874
+ return function (n, o) {
1875
+ var r = l.call(arguments, 2);
1876
+ return t(e[n], r);
1877
+ };
1878
+ }
1879
+ var i = _nlsPluginGlobal,
1880
+ s = i.Plugin && i.Plugin.Resources ? i.Plugin.Resources : void 0,
1881
+ u = "i-default",
1882
+ a =
1883
+ i &&
1884
+ i.document &&
1885
+ i.document.location &&
1886
+ i.document.location.hash.indexOf("pseudo=true") >= 0,
1887
+ l = Array.prototype.slice,
1888
+ d = (function () {
1889
+ function e() {
1890
+ this.localize = o;
1891
+ }
1892
+ return (
1893
+ (e.prototype.setPseudoTranslation = function (e) {
1894
+ a = e;
1895
+ }),
1896
+ (e.prototype.create = function (e, t) {
1897
+ return { localize: r(t[e]) };
1898
+ }),
1899
+ (e.prototype.load = function (t, i, a, l) {
1900
+ if (((l = l || {}), t && 0 !== t.length)) {
1901
+ var d;
1902
+ if (s && s.getString)
1903
+ (d = ".nls.keys"),
1904
+ i([t + d], function (e) {
1905
+ a({
1906
+ localize: function (t, n) {
1907
+ if (!e[t]) return "NLS error: unknown key " + t;
1908
+ var o = e[t].keys;
1909
+ if (n >= o.length) return "NLS error unknow index " + n;
1910
+ var r = o[n],
1911
+ i = [];
1912
+ i[0] = t + "_" + r;
1913
+ for (var u = 0; u < arguments.length - 2; u++)
1914
+ i[u + 1] = arguments[u + 2];
1915
+ return s.getString.apply(s, i);
1916
+ },
1917
+ });
1918
+ });
1919
+ else if (l.isBuild)
1920
+ i([t + ".nls", t + ".nls.keys"], function (n, o) {
1921
+ (e.BUILD_MAP[t] = n), (e.BUILD_MAP_KEYS[t] = o), a(n);
1922
+ });
1923
+ else {
1924
+ var c = l["vs/nls"] || {},
1925
+ h = c.availableLanguages ? n(c.availableLanguages, t) : null;
1926
+ (d = ".nls"),
1927
+ null !== h && h !== u && (d = d + "." + h),
1928
+ i([t + d], function (e) {
1929
+ Array.isArray(e)
1930
+ ? (e.localize = r(e))
1931
+ : (e.localize = r(e[t])),
1932
+ a(e);
1933
+ });
1934
+ }
1935
+ } else a({ localize: o });
1936
+ }),
1937
+ (e.prototype._getEntryPointsMap = function () {
1938
+ return (
1939
+ (i.nlsPluginEntryPoints = i.nlsPluginEntryPoints || {}),
1940
+ i.nlsPluginEntryPoints
1941
+ );
1942
+ }),
1943
+ (e.prototype.write = function (e, t, n) {
1944
+ var o = n.getEntryPoint(),
1945
+ r = this._getEntryPointsMap();
1946
+ (r[o] = r[o] || []),
1947
+ r[o].push(t),
1948
+ t !== o &&
1949
+ n.asModule(
1950
+ e + "!" + t,
1951
+ "define(['vs/nls', 'vs/nls!" +
1952
+ o +
1953
+ "'], function(nls, data) { return nls.create(\"" +
1954
+ t +
1955
+ '", data); });'
1956
+ );
1957
+ }),
1958
+ (e.prototype.writeFile = function (t, n, o, r, i) {
1959
+ var s = this._getEntryPointsMap();
1960
+ if (s.hasOwnProperty(n)) {
1961
+ for (
1962
+ var u = o.toUrl(n + ".nls.js"),
1963
+ a = [
1964
+ "/*---------------------------------------------------------",
1965
+ " * Copyright (c) Microsoft Corporation. All rights reserved.",
1966
+ " *--------------------------------------------------------*/",
1967
+ ],
1968
+ l = s[n],
1969
+ d = {},
1970
+ c = 0;
1971
+ c < l.length;
1972
+ c++
1973
+ )
1974
+ d[l[c]] = e.BUILD_MAP[l[c]];
1975
+ a.push(
1976
+ 'define("' + n + '.nls", ' + JSON.stringify(d, null, " ") + ");"
1977
+ ),
1978
+ r(u, a.join("\r\n"));
1979
+ }
1980
+ }),
1981
+ (e.prototype.finishBuild = function (t) {
1982
+ t(
1983
+ "nls.metadata.json",
1984
+ JSON.stringify(
1985
+ {
1986
+ keys: e.BUILD_MAP_KEYS,
1987
+ messages: e.BUILD_MAP,
1988
+ bundles: this._getEntryPointsMap(),
1989
+ },
1990
+ null,
1991
+ " "
1992
+ )
1993
+ );
1994
+ }),
1995
+ (e.BUILD_MAP = {}),
1996
+ (e.BUILD_MAP_KEYS = {}),
1997
+ e
1998
+ );
1999
+ })();
2000
+ (e.NLSPlugin = d),
2001
+ (function () {
2002
+ define("vs/nls", new d());
2003
+ })();
2004
+ })(NLSLoaderPlugin || (NLSLoaderPlugin = {}));
2005
+ var TextLoaderPlugin;
2006
+ !(function (e) {
2007
+ function t(e, t) {
2008
+ var n = 65279,
2009
+ o = e.readFileSync(t, "utf8");
2010
+ return o.charCodeAt(0) === n && (o = o.substring(1)), o;
2011
+ }
2012
+ var n = (function () {
2013
+ function e() {}
2014
+ return (
2015
+ (e.prototype.load = function (e, t, n, o) {
2016
+ var r = new XMLHttpRequest();
2017
+ (r.onreadystatechange = function () {
2018
+ 4 === r.readyState &&
2019
+ ((r.status >= 200 && r.status < 300) ||
2020
+ 1223 === r.status ||
2021
+ (0 === r.status && r.responseText && r.responseText.length > 0)
2022
+ ? n(r.responseText)
2023
+ : o(r),
2024
+ (r.onreadystatechange = null));
2025
+ }),
2026
+ r.open("GET", t, !0),
2027
+ (r.responseType = ""),
2028
+ r.setRequestHeader("X-Requested-With", "XMLHttpRequest"),
2029
+ r.send(null);
2030
+ }),
2031
+ e
2032
+ );
2033
+ })(),
2034
+ o = (function () {
2035
+ function e() {
2036
+ this.fs = require.nodeRequire("fs");
2037
+ }
2038
+ return (
2039
+ (e.prototype.load = function (e, n, o, r) {
2040
+ o(t(this.fs, n));
2041
+ }),
2042
+ e
2043
+ );
2044
+ })(),
2045
+ r = (function () {
2046
+ function e(e) {
2047
+ this.textLoader = e;
2048
+ }
2049
+ return (
2050
+ (e.prototype.load = function (t, n, o, r) {
2051
+ r = r || {};
2052
+ var i = r["vs/text"] || {},
2053
+ s = i.paths || {},
2054
+ u = t;
2055
+ for (var a in s)
2056
+ s.hasOwnProperty(a) &&
2057
+ 0 === t.indexOf(a) &&
2058
+ (u = s[a] + t.substr(a.length));
2059
+ var l = n.toUrl(u);
2060
+ this.textLoader.load(
2061
+ t,
2062
+ l,
2063
+ function (n) {
2064
+ r.isBuild && (e.BUILD_MAP[t] = n), o(n);
2065
+ },
2066
+ function (e) {
2067
+ "function" == typeof o.error && o.error("Could not find " + l);
2068
+ }
2069
+ );
2070
+ }),
2071
+ (e.prototype.write = function (t, n, o) {
2072
+ if (e.BUILD_MAP.hasOwnProperty(n)) {
2073
+ var r = i.escapeText(e.BUILD_MAP[n]);
2074
+ o(
2075
+ 'define("' +
2076
+ t +
2077
+ "!" +
2078
+ n +
2079
+ '", function () { return "' +
2080
+ r +
2081
+ '"; });'
2082
+ );
2083
+ }
2084
+ }),
2085
+ (e.BUILD_MAP = {}),
2086
+ e
2087
+ );
2088
+ })();
2089
+ e.TextPlugin = r;
2090
+ var i = (function () {
2091
+ function e() {}
2092
+ return (
2093
+ (e.escapeText = function (e) {
2094
+ for (
2095
+ var t,
2096
+ n = "\b".charCodeAt(0),
2097
+ o = "\f".charCodeAt(0),
2098
+ r = "\n".charCodeAt(0),
2099
+ i = 0,
2100
+ s = "\r".charCodeAt(0),
2101
+ u = " ".charCodeAt(0),
2102
+ a = "\x0B".charCodeAt(0),
2103
+ l = "\\".charCodeAt(0),
2104
+ d = '"'.charCodeAt(0),
2105
+ c = 0,
2106
+ h = null,
2107
+ p = [],
2108
+ f = 0,
2109
+ g = e.length;
2110
+ g > f;
2111
+ f++
2112
+ ) {
2113
+ switch ((t = e.charCodeAt(f))) {
2114
+ case n:
2115
+ h = "\\b";
2116
+ break;
2117
+ case o:
2118
+ h = "\\f";
2119
+ break;
2120
+ case r:
2121
+ h = "\\n";
2122
+ break;
2123
+ case i:
2124
+ h = "\\0";
2125
+ break;
2126
+ case s:
2127
+ h = "\\r";
2128
+ break;
2129
+ case u:
2130
+ h = "\\t";
2131
+ break;
2132
+ case a:
2133
+ h = "\\v";
2134
+ break;
2135
+ case l:
2136
+ h = "\\\\";
2137
+ break;
2138
+ case d:
2139
+ h = '\\"';
2140
+ }
2141
+ null !== h &&
2142
+ (p.push(e.substring(c, f)), p.push(h), (c = f + 1), (h = null));
2143
+ }
2144
+ return p.push(e.substring(c, g)), p.join("");
2145
+ }),
2146
+ e
2147
+ );
2148
+ })();
2149
+ (e.Utilities = i),
2150
+ (function () {
2151
+ var e = null,
2152
+ t =
2153
+ "undefined" != typeof process &&
2154
+ "undefined" != typeof process.versions &&
2155
+ "undefined" != typeof process.versions.electron;
2156
+ (e =
2157
+ "undefined" != typeof process &&
2158
+ process.versions &&
2159
+ process.versions.node &&
2160
+ !t
2161
+ ? new o()
2162
+ : new n()),
2163
+ define("vs/text", new r(e));
2164
+ })();
2165
+ })(TextLoaderPlugin || (TextLoaderPlugin = {}));
2166
+ //# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/6c0fe2014e7a7d596ac1af21f25bf2fc17da8a75/vs\loader.js.map