Front end of the Slack clone application.

tslib.es6.js 8.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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 Reflect, Promise */
  14. var extendStatics = function(d, b) {
  15. extendStatics = Object.setPrototypeOf ||
  16. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  17. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  18. return extendStatics(d, b);
  19. };
  20. export function __extends(d, b) {
  21. extendStatics(d, b);
  22. function __() { this.constructor = d; }
  23. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  24. }
  25. export var __assign = function() {
  26. __assign = Object.assign || function __assign(t) {
  27. for (var s, i = 1, n = arguments.length; i < n; i++) {
  28. s = arguments[i];
  29. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
  30. }
  31. return t;
  32. }
  33. return __assign.apply(this, arguments);
  34. }
  35. export function __rest(s, e) {
  36. var t = {};
  37. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
  38. t[p] = s[p];
  39. if (s != null && typeof Object.getOwnPropertySymbols === "function")
  40. for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
  41. t[p[i]] = s[p[i]];
  42. return t;
  43. }
  44. export function __decorate(decorators, target, key, desc) {
  45. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  46. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  47. 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;
  48. return c > 3 && r && Object.defineProperty(target, key, r), r;
  49. }
  50. export function __param(paramIndex, decorator) {
  51. return function (target, key) { decorator(target, key, paramIndex); }
  52. }
  53. export function __metadata(metadataKey, metadataValue) {
  54. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
  55. }
  56. export function __awaiter(thisArg, _arguments, P, generator) {
  57. return new (P || (P = Promise))(function (resolve, reject) {
  58. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  59. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  60. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  61. step((generator = generator.apply(thisArg, _arguments || [])).next());
  62. });
  63. }
  64. export function __generator(thisArg, body) {
  65. var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
  66. return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
  67. function verb(n) { return function (v) { return step([n, v]); }; }
  68. function step(op) {
  69. if (f) throw new TypeError("Generator is already executing.");
  70. while (_) try {
  71. 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;
  72. if (y = 0, t) op = [op[0] & 2, t.value];
  73. switch (op[0]) {
  74. case 0: case 1: t = op; break;
  75. case 4: _.label++; return { value: op[1], done: false };
  76. case 5: _.label++; y = op[1]; op = [0]; continue;
  77. case 7: op = _.ops.pop(); _.trys.pop(); continue;
  78. default:
  79. if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
  80. if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
  81. if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
  82. if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
  83. if (t[2]) _.ops.pop();
  84. _.trys.pop(); continue;
  85. }
  86. op = body.call(thisArg, _);
  87. } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
  88. if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
  89. }
  90. }
  91. export function __exportStar(m, exports) {
  92. for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
  93. }
  94. export function __values(o) {
  95. var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
  96. if (m) return m.call(o);
  97. return {
  98. next: function () {
  99. if (o && i >= o.length) o = void 0;
  100. return { value: o && o[i++], done: !o };
  101. }
  102. };
  103. }
  104. export function __read(o, n) {
  105. var m = typeof Symbol === "function" && o[Symbol.iterator];
  106. if (!m) return o;
  107. var i = m.call(o), r, ar = [], e;
  108. try {
  109. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  110. }
  111. catch (error) { e = { error: error }; }
  112. finally {
  113. try {
  114. if (r && !r.done && (m = i["return"])) m.call(i);
  115. }
  116. finally { if (e) throw e.error; }
  117. }
  118. return ar;
  119. }
  120. export function __spread() {
  121. for (var ar = [], i = 0; i < arguments.length; i++)
  122. ar = ar.concat(__read(arguments[i]));
  123. return ar;
  124. }
  125. export function __await(v) {
  126. return this instanceof __await ? (this.v = v, this) : new __await(v);
  127. }
  128. export function __asyncGenerator(thisArg, _arguments, generator) {
  129. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  130. var g = generator.apply(thisArg, _arguments || []), i, q = [];
  131. return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
  132. 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); }); }; }
  133. function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
  134. function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
  135. function fulfill(value) { resume("next", value); }
  136. function reject(value) { resume("throw", value); }
  137. function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
  138. }
  139. export function __asyncDelegator(o) {
  140. var i, p;
  141. return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
  142. 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; }
  143. }
  144. export function __asyncValues(o) {
  145. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  146. var m = o[Symbol.asyncIterator], i;
  147. 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);
  148. 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); }); }; }
  149. function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
  150. }
  151. export function __makeTemplateObject(cooked, raw) {
  152. if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
  153. return cooked;
  154. };
  155. export function __importStar(mod) {
  156. if (mod && mod.__esModule) return mod;
  157. var result = {};
  158. if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
  159. result.default = mod;
  160. return result;
  161. }
  162. export function __importDefault(mod) {
  163. return (mod && mod.__esModule) ? mod : { default: mod };
  164. }