Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tslib.js 12KB

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