1 |
3a515b92
|
cagy
|
/*! *****************************************************************************
|
2 |
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
3 |
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
4 |
|
|
this file except in compliance with the License. You may obtain a copy of the
|
5 |
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
6 |
|
|
|
7 |
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
8 |
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
9 |
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
10 |
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
11 |
|
|
|
12 |
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
13 |
|
|
and limitations under the License.
|
14 |
|
|
***************************************************************************** */
|
15 |
|
|
/* global global, define, System, Reflect, Promise */
|
16 |
|
|
var __extends;
|
17 |
|
|
var __assign;
|
18 |
|
|
var __rest;
|
19 |
|
|
var __decorate;
|
20 |
|
|
var __param;
|
21 |
|
|
var __metadata;
|
22 |
|
|
var __awaiter;
|
23 |
|
|
var __generator;
|
24 |
|
|
var __exportStar;
|
25 |
|
|
var __values;
|
26 |
|
|
var __read;
|
27 |
|
|
var __spread;
|
28 |
|
|
var __spreadArrays;
|
29 |
|
|
var __await;
|
30 |
|
|
var __asyncGenerator;
|
31 |
|
|
var __asyncDelegator;
|
32 |
|
|
var __asyncValues;
|
33 |
|
|
var __makeTemplateObject;
|
34 |
|
|
var __importStar;
|
35 |
|
|
var __importDefault;
|
36 |
|
|
var __classPrivateFieldGet;
|
37 |
|
|
var __classPrivateFieldSet;
|
38 |
|
|
(function (factory) {
|
39 |
|
|
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
|
40 |
|
|
if (typeof define === "function" && define.amd) {
|
41 |
|
|
define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); });
|
42 |
|
|
}
|
43 |
|
|
else if (typeof module === "object" && typeof module.exports === "object") {
|
44 |
|
|
factory(createExporter(root, createExporter(module.exports)));
|
45 |
|
|
}
|
46 |
|
|
else {
|
47 |
|
|
factory(createExporter(root));
|
48 |
|
|
}
|
49 |
|
|
function createExporter(exports, previous) {
|
50 |
|
|
if (exports !== root) {
|
51 |
|
|
if (typeof Object.create === "function") {
|
52 |
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
53 |
|
|
}
|
54 |
|
|
else {
|
55 |
|
|
exports.__esModule = true;
|
56 |
|
|
}
|
57 |
|
|
}
|
58 |
|
|
return function (id, v) { return exports[id] = previous ? previous(id, v) : v; };
|
59 |
|
|
}
|
60 |
|
|
})
|
61 |
|
|
(function (exporter) {
|
62 |
|
|
var extendStatics = Object.setPrototypeOf ||
|
63 |
|
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
64 |
|
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
65 |
|
|
|
66 |
|
|
__extends = function (d, b) {
|
67 |
|
|
extendStatics(d, b);
|
68 |
|
|
function __() { this.constructor = d; }
|
69 |
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
70 |
|
|
};
|
71 |
|
|
|
72 |
|
|
__assign = Object.assign || function (t) {
|
73 |
|
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
74 |
|
|
s = arguments[i];
|
75 |
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
76 |
|
|
}
|
77 |
|
|
return t;
|
78 |
|
|
};
|
79 |
|
|
|
80 |
|
|
__rest = function (s, e) {
|
81 |
|
|
var t = {};
|
82 |
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
83 |
|
|
t[p] = s[p];
|
84 |
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
85 |
|
|
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
86 |
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
87 |
|
|
t[p[i]] = s[p[i]];
|
88 |
|
|
}
|
89 |
|
|
return t;
|
90 |
|
|
};
|
91 |
|
|
|
92 |
|
|
__decorate = function (decorators, target, key, desc) {
|
93 |
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
94 |
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
95 |
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
96 |
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
97 |
|
|
};
|
98 |
|
|
|
99 |
|
|
__param = function (paramIndex, decorator) {
|
100 |
|
|
return function (target, key) { decorator(target, key, paramIndex); }
|
101 |
|
|
};
|
102 |
|
|
|
103 |
|
|
__metadata = function (metadataKey, metadataValue) {
|
104 |
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
105 |
|
|
};
|
106 |
|
|
|
107 |
|
|
__awaiter = function (thisArg, _arguments, P, generator) {
|
108 |
|
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
109 |
|
|
return new (P || (P = Promise))(function (resolve, reject) {
|
110 |
|
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
111 |
|
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
112 |
|
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
113 |
|
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
114 |
|
|
});
|
115 |
|
|
};
|
116 |
|
|
|
117 |
|
|
__generator = function (thisArg, body) {
|
118 |
|
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
119 |
|
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
120 |
|
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
121 |
|
|
function step(op) {
|
122 |
|
|
if (f) throw new TypeError("Generator is already executing.");
|
123 |
|
|
while (_) try {
|
124 |
|
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
125 |
|
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
126 |
|
|
switch (op[0]) {
|
127 |
|
|
case 0: case 1: t = op; break;
|
128 |
|
|
case 4: _.label++; return { value: op[1], done: false };
|
129 |
|
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
130 |
|
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
131 |
|
|
default:
|
132 |
|
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
133 |
|
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
134 |
|
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
135 |
|
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
136 |
|
|
if (t[2]) _.ops.pop();
|
137 |
|
|
_.trys.pop(); continue;
|
138 |
|
|
}
|
139 |
|
|
op = body.call(thisArg, _);
|
140 |
|
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
141 |
|
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
142 |
|
|
}
|
143 |
|
|
};
|
144 |
|
|
|
145 |
|
|
__exportStar = function (m, exports) {
|
146 |
|
|
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
147 |
|
|
};
|
148 |
|
|
|
149 |
|
|
__values = function (o) {
|
150 |
|
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
151 |
|
|
if (m) return m.call(o);
|
152 |
|
|
if (o && typeof o.length === "number") return {
|
153 |
|
|
next: function () {
|
154 |
|
|
if (o && i >= o.length) o = void 0;
|
155 |
|
|
return { value: o && o[i++], done: !o };
|
156 |
|
|
}
|
157 |
|
|
};
|
158 |
|
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
159 |
|
|
};
|
160 |
|
|
|
161 |
|
|
__read = function (o, n) {
|
162 |
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
163 |
|
|
if (!m) return o;
|
164 |
|
|
var i = m.call(o), r, ar = [], e;
|
165 |
|
|
try {
|
166 |
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
167 |
|
|
}
|
168 |
|
|
catch (error) { e = { error: error }; }
|
169 |
|
|
finally {
|
170 |
|
|
try {
|
171 |
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
172 |
|
|
}
|
173 |
|
|
finally { if (e) throw e.error; }
|
174 |
|
|
}
|
175 |
|
|
return ar;
|
176 |
|
|
};
|
177 |
|
|
|
178 |
|
|
__spread = function () {
|
179 |
|
|
for (var ar = [], i = 0; i < arguments.length; i++)
|
180 |
|
|
ar = ar.concat(__read(arguments[i]));
|
181 |
|
|
return ar;
|
182 |
|
|
};
|
183 |
|
|
|
184 |
|
|
__spreadArrays = function () {
|
185 |
|
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
186 |
|
|
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
187 |
|
|
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
188 |
|
|
r[k] = a[j];
|
189 |
|
|
return r;
|
190 |
|
|
};
|
191 |
|
|
|
192 |
|
|
__await = function (v) {
|
193 |
|
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
194 |
|
|
};
|
195 |
|
|
|
196 |
|
|
__asyncGenerator = function (thisArg, _arguments, generator) {
|
197 |
|
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
198 |
|
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
199 |
|
|
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
200 |
|
|
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
201 |
|
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
202 |
|
|
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
203 |
|
|
function fulfill(value) { resume("next", value); }
|
204 |
|
|
function reject(value) { resume("throw", value); }
|
205 |
|
|
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
206 |
|
|
};
|
207 |
|
|
|
208 |
|
|
__asyncDelegator = function (o) {
|
209 |
|
|
var i, p;
|
210 |
|
|
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
211 |
|
|
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
212 |
|
|
};
|
213 |
|
|
|
214 |
|
|
__asyncValues = function (o) {
|
215 |
|
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
216 |
|
|
var m = o[Symbol.asyncIterator], i;
|
217 |
|
|
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
218 |
|
|
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
219 |
|
|
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
220 |
|
|
};
|
221 |
|
|
|
222 |
|
|
__makeTemplateObject = function (cooked, raw) {
|
223 |
|
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
224 |
|
|
return cooked;
|
225 |
|
|
};
|
226 |
|
|
|
227 |
|
|
__importStar = function (mod) {
|
228 |
|
|
if (mod && mod.__esModule) return mod;
|
229 |
|
|
var result = {};
|
230 |
|
|
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
231 |
|
|
result["default"] = mod;
|
232 |
|
|
return result;
|
233 |
|
|
};
|
234 |
|
|
|
235 |
|
|
__importDefault = function (mod) {
|
236 |
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
237 |
|
|
};
|
238 |
|
|
|
239 |
|
|
__classPrivateFieldGet = function (receiver, privateMap) {
|
240 |
|
|
if (!privateMap.has(receiver)) {
|
241 |
|
|
throw new TypeError("attempted to get private field on non-instance");
|
242 |
|
|
}
|
243 |
|
|
return privateMap.get(receiver);
|
244 |
|
|
};
|
245 |
|
|
|
246 |
|
|
__classPrivateFieldSet = function (receiver, privateMap, value) {
|
247 |
|
|
if (!privateMap.has(receiver)) {
|
248 |
|
|
throw new TypeError("attempted to set private field on non-instance");
|
249 |
|
|
}
|
250 |
|
|
privateMap.set(receiver, value);
|
251 |
|
|
return value;
|
252 |
|
|
}
|
253 |
|
|
|
254 |
|
|
exporter("__extends", __extends);
|
255 |
|
|
exporter("__assign", __assign);
|
256 |
|
|
exporter("__rest", __rest);
|
257 |
|
|
exporter("__decorate", __decorate);
|
258 |
|
|
exporter("__param", __param);
|
259 |
|
|
exporter("__metadata", __metadata);
|
260 |
|
|
exporter("__awaiter", __awaiter);
|
261 |
|
|
exporter("__generator", __generator);
|
262 |
|
|
exporter("__exportStar", __exportStar);
|
263 |
|
|
exporter("__values", __values);
|
264 |
|
|
exporter("__read", __read);
|
265 |
|
|
exporter("__spread", __spread);
|
266 |
|
|
exporter("__spreadArrays", __spreadArrays);
|
267 |
|
|
exporter("__await", __await);
|
268 |
|
|
exporter("__asyncGenerator", __asyncGenerator);
|
269 |
|
|
exporter("__asyncDelegator", __asyncDelegator);
|
270 |
|
|
exporter("__asyncValues", __asyncValues);
|
271 |
|
|
exporter("__makeTemplateObject", __makeTemplateObject);
|
272 |
|
|
exporter("__importStar", __importStar);
|
273 |
|
|
exporter("__importDefault", __importDefault);
|
274 |
|
|
exporter("__classPrivateFieldGet", __classPrivateFieldGet);
|
275 |
|
|
exporter("__classPrivateFieldSet", __classPrivateFieldSet);
|
276 |
|
|
});
|