@carbon/themes 11.53.0 → 11.54.0

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.
package/umd/index.js CHANGED
@@ -115,47 +115,77 @@
115
115
  }
116
116
  function _regeneratorRuntime() {
117
117
  _regeneratorRuntime = function () {
118
- return e;
118
+ return r;
119
119
  };
120
120
  var t,
121
- e = {},
122
- r = Object.prototype,
123
- n = r.hasOwnProperty,
124
- o = Object.defineProperty || function (t, e, r) {
125
- t[e] = r.value;
126
- },
127
- i = "function" == typeof Symbol ? Symbol : {},
128
- a = i.iterator || "@@iterator",
129
- c = i.asyncIterator || "@@asyncIterator",
130
- u = i.toStringTag || "@@toStringTag";
131
- function define(t, e, r) {
132
- return Object.defineProperty(t, e, {
133
- value: r,
134
- enumerable: !0,
135
- configurable: !0,
136
- writable: !0
137
- }), t[e];
121
+ r = {},
122
+ e = Object.prototype,
123
+ n = e.hasOwnProperty,
124
+ o = "function" == typeof Symbol ? Symbol : {},
125
+ i = o.iterator || "@@iterator",
126
+ a = o.asyncIterator || "@@asyncIterator",
127
+ u = o.toStringTag || "@@toStringTag";
128
+ function c(t, r, e, n) {
129
+ Object.defineProperty(t, r, {
130
+ value: e,
131
+ enumerable: !n,
132
+ configurable: !n,
133
+ writable: !n
134
+ });
138
135
  }
139
136
  try {
140
- define({}, "");
137
+ c({}, "");
141
138
  } catch (t) {
142
- define = function (t, e, r) {
143
- return t[e] = r;
139
+ c = function (t, r, e) {
140
+ return t[r] = e;
144
141
  };
145
142
  }
146
- function wrap(t, e, r, n) {
143
+ function h(r, e, n, o) {
147
144
  var i = e && e.prototype instanceof Generator ? e : Generator,
148
- a = Object.create(i.prototype),
149
- c = new Context(n || []);
150
- return o(a, "_invoke", {
151
- value: makeInvokeMethod(t, r, c)
152
- }), a;
145
+ a = Object.create(i.prototype);
146
+ return c(a, "_invoke", function (r, e, n) {
147
+ var o = 1;
148
+ return function (i, a) {
149
+ if (3 === o) throw Error("Generator is already running");
150
+ if (4 === o) {
151
+ if ("throw" === i) throw a;
152
+ return {
153
+ value: t,
154
+ done: !0
155
+ };
156
+ }
157
+ for (n.method = i, n.arg = a;;) {
158
+ var u = n.delegate;
159
+ if (u) {
160
+ var c = d(u, n);
161
+ if (c) {
162
+ if (c === f) continue;
163
+ return c;
164
+ }
165
+ }
166
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
167
+ if (1 === o) throw o = 4, n.arg;
168
+ n.dispatchException(n.arg);
169
+ } else "return" === n.method && n.abrupt("return", n.arg);
170
+ o = 3;
171
+ var h = s(r, e, n);
172
+ if ("normal" === h.type) {
173
+ if (o = n.done ? 4 : 2, h.arg === f) continue;
174
+ return {
175
+ value: h.arg,
176
+ done: n.done
177
+ };
178
+ }
179
+ "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
180
+ }
181
+ };
182
+ }(r, n, new Context(o || [])), !0), a;
153
183
  }
154
- function tryCatch(t, e, r) {
184
+ function s(t, r, e) {
155
185
  try {
156
186
  return {
157
187
  type: "normal",
158
- arg: t.call(e, r)
188
+ arg: t.call(r, e)
159
189
  };
160
190
  } catch (t) {
161
191
  return {
@@ -164,255 +194,193 @@
164
194
  };
165
195
  }
166
196
  }
167
- e.wrap = wrap;
168
- var h = "suspendedStart",
169
- l = "suspendedYield",
170
- f = "executing",
171
- s = "completed",
172
- y = {};
197
+ r.wrap = h;
198
+ var f = {};
173
199
  function Generator() {}
174
200
  function GeneratorFunction() {}
175
201
  function GeneratorFunctionPrototype() {}
176
- var p = {};
177
- define(p, a, function () {
202
+ var l = {};
203
+ c(l, i, function () {
178
204
  return this;
179
205
  });
180
- var d = Object.getPrototypeOf,
181
- v = d && d(d(values([])));
182
- v && v !== r && n.call(v, a) && (p = v);
183
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
184
- function defineIteratorMethods(t) {
185
- ["next", "throw", "return"].forEach(function (e) {
186
- define(t, e, function (t) {
187
- return this._invoke(e, t);
206
+ var p = Object.getPrototypeOf,
207
+ y = p && p(p(x([])));
208
+ y && y !== e && n.call(y, i) && (l = y);
209
+ var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
210
+ function g(t) {
211
+ ["next", "throw", "return"].forEach(function (r) {
212
+ c(t, r, function (t) {
213
+ return this._invoke(r, t);
188
214
  });
189
215
  });
190
216
  }
191
- function AsyncIterator(t, e) {
192
- function invoke(r, o, i, a) {
193
- var c = tryCatch(t[r], t, o);
217
+ function AsyncIterator(t, r) {
218
+ function e(o, i, a, u) {
219
+ var c = s(t[o], t, i);
194
220
  if ("throw" !== c.type) {
195
- var u = c.arg,
196
- h = u.value;
197
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
198
- invoke("next", t, i, a);
221
+ var h = c.arg,
222
+ f = h.value;
223
+ return f && "object" == typeof f && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
224
+ e("next", t, a, u);
199
225
  }, function (t) {
200
- invoke("throw", t, i, a);
201
- }) : e.resolve(h).then(function (t) {
202
- u.value = t, i(u);
226
+ e("throw", t, a, u);
227
+ }) : r.resolve(f).then(function (t) {
228
+ h.value = t, a(h);
203
229
  }, function (t) {
204
- return invoke("throw", t, i, a);
230
+ return e("throw", t, a, u);
205
231
  });
206
232
  }
207
- a(c.arg);
233
+ u(c.arg);
208
234
  }
209
- var r;
210
- o(this, "_invoke", {
211
- value: function (t, n) {
212
- function callInvokeWithMethodAndArg() {
213
- return new e(function (e, r) {
214
- invoke(t, n, e, r);
215
- });
216
- }
217
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
218
- }
219
- });
220
- }
221
- function makeInvokeMethod(e, r, n) {
222
- var o = h;
223
- return function (i, a) {
224
- if (o === f) throw Error("Generator is already running");
225
- if (o === s) {
226
- if ("throw" === i) throw a;
227
- return {
228
- value: t,
229
- done: !0
230
- };
231
- }
232
- for (n.method = i, n.arg = a;;) {
233
- var c = n.delegate;
234
- if (c) {
235
- var u = maybeInvokeDelegate(c, n);
236
- if (u) {
237
- if (u === y) continue;
238
- return u;
239
- }
240
- }
241
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
242
- if (o === h) throw o = s, n.arg;
243
- n.dispatchException(n.arg);
244
- } else "return" === n.method && n.abrupt("return", n.arg);
245
- o = f;
246
- var p = tryCatch(e, r, n);
247
- if ("normal" === p.type) {
248
- if (o = n.done ? s : l, p.arg === y) continue;
249
- return {
250
- value: p.arg,
251
- done: n.done
252
- };
253
- }
254
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
235
+ var o;
236
+ c(this, "_invoke", function (t, n) {
237
+ function i() {
238
+ return new r(function (r, o) {
239
+ e(t, n, r, o);
240
+ });
255
241
  }
256
- };
242
+ return o = o ? o.then(i, i) : i();
243
+ }, !0);
257
244
  }
258
- function maybeInvokeDelegate(e, r) {
259
- var n = r.method,
260
- o = e.iterator[n];
261
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
262
- var i = tryCatch(o, e.iterator, r.arg);
263
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
245
+ function d(r, e) {
246
+ var n = e.method,
247
+ o = r.i[n];
248
+ if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f;
249
+ var i = s(o, r.i, e.arg);
250
+ if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
264
251
  var a = i.arg;
265
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
252
+ return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f);
266
253
  }
267
- function pushTryEntry(t) {
268
- var e = {
269
- tryLoc: t[0]
270
- };
271
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
254
+ function w(t) {
255
+ this.tryEntries.push(t);
272
256
  }
273
- function resetTryEntry(t) {
274
- var e = t.completion || {};
275
- e.type = "normal", delete e.arg, t.completion = e;
257
+ function m(r) {
258
+ var e = r[4] || {};
259
+ e.type = "normal", e.arg = t, r[4] = e;
276
260
  }
277
261
  function Context(t) {
278
- this.tryEntries = [{
279
- tryLoc: "root"
280
- }], t.forEach(pushTryEntry, this), this.reset(!0);
262
+ this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0);
281
263
  }
282
- function values(e) {
283
- if (e || "" === e) {
284
- var r = e[a];
285
- if (r) return r.call(e);
286
- if ("function" == typeof e.next) return e;
287
- if (!isNaN(e.length)) {
264
+ function x(r) {
265
+ if (null != r) {
266
+ var e = r[i];
267
+ if (e) return e.call(r);
268
+ if ("function" == typeof r.next) return r;
269
+ if (!isNaN(r.length)) {
288
270
  var o = -1,
289
- i = function next() {
290
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
291
- return next.value = t, next.done = !0, next;
271
+ a = function e() {
272
+ for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e;
273
+ return e.value = t, e.done = !0, e;
292
274
  };
293
- return i.next = i;
275
+ return a.next = a;
294
276
  }
295
277
  }
296
- throw new TypeError(typeof e + " is not iterable");
278
+ throw new TypeError(typeof r + " is not iterable");
297
279
  }
298
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
299
- value: GeneratorFunctionPrototype,
300
- configurable: !0
301
- }), o(GeneratorFunctionPrototype, "constructor", {
302
- value: GeneratorFunction,
303
- configurable: !0
304
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
305
- var e = "function" == typeof t && t.constructor;
306
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
307
- }, e.mark = function (t) {
308
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
309
- }, e.awrap = function (t) {
280
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), c(GeneratorFunctionPrototype, u, GeneratorFunction.displayName = "GeneratorFunction"), r.isGeneratorFunction = function (t) {
281
+ var r = "function" == typeof t && t.constructor;
282
+ return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
283
+ }, r.mark = function (t) {
284
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
285
+ }, r.awrap = function (t) {
310
286
  return {
311
287
  __await: t
312
288
  };
313
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
289
+ }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
314
290
  return this;
315
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
291
+ }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
316
292
  void 0 === i && (i = Promise);
317
- var a = new AsyncIterator(wrap(t, r, n, o), i);
318
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
293
+ var a = new AsyncIterator(h(t, e, n, o), i);
294
+ return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
319
295
  return t.done ? t.value : a.next();
320
296
  });
321
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
297
+ }, g(v), c(v, u, "Generator"), c(v, i, function () {
322
298
  return this;
323
- }), define(g, "toString", function () {
299
+ }), c(v, "toString", function () {
324
300
  return "[object Generator]";
325
- }), e.keys = function (t) {
326
- var e = Object(t),
327
- r = [];
328
- for (var n in e) r.push(n);
329
- return r.reverse(), function next() {
330
- for (; r.length;) {
331
- var t = r.pop();
332
- if (t in e) return next.value = t, next.done = !1, next;
333
- }
334
- return next.done = !0, next;
301
+ }), r.keys = function (t) {
302
+ var r = Object(t),
303
+ e = [];
304
+ for (var n in r) e.unshift(n);
305
+ return function t() {
306
+ for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t;
307
+ return t.done = !0, t;
335
308
  };
336
- }, e.values = values, Context.prototype = {
309
+ }, r.values = x, Context.prototype = {
337
310
  constructor: Context,
338
- reset: function (e) {
339
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
311
+ reset: function (r) {
312
+ if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t);
340
313
  },
341
314
  stop: function () {
342
315
  this.done = !0;
343
- var t = this.tryEntries[0].completion;
316
+ var t = this.tryEntries[0][4];
344
317
  if ("throw" === t.type) throw t.arg;
345
318
  return this.rval;
346
319
  },
347
- dispatchException: function (e) {
348
- if (this.done) throw e;
349
- var r = this;
350
- function handle(n, o) {
351
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
320
+ dispatchException: function (r) {
321
+ if (this.done) throw r;
322
+ var e = this;
323
+ function n(t) {
324
+ a.type = "throw", a.arg = r, e.next = t;
352
325
  }
353
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
326
+ for (var o = e.tryEntries.length - 1; o >= 0; --o) {
354
327
  var i = this.tryEntries[o],
355
- a = i.completion;
356
- if ("root" === i.tryLoc) return handle("end");
357
- if (i.tryLoc <= this.prev) {
358
- var c = n.call(i, "catchLoc"),
359
- u = n.call(i, "finallyLoc");
360
- if (c && u) {
361
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
362
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
363
- } else if (c) {
364
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
365
- } else {
366
- if (!u) throw Error("try statement without catch or finally");
367
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
368
- }
328
+ a = i[4],
329
+ u = this.prev,
330
+ c = i[1],
331
+ h = i[2];
332
+ if (-1 === i[0]) return n("end"), !1;
333
+ if (!c && !h) throw Error("try statement without catch or finally");
334
+ if (null != i[0] && i[0] <= u) {
335
+ if (u < c) return this.method = "next", this.arg = t, n(c), !0;
336
+ if (u < h) return n(h), !1;
369
337
  }
370
338
  }
371
339
  },
372
- abrupt: function (t, e) {
373
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
374
- var o = this.tryEntries[r];
375
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
376
- var i = o;
340
+ abrupt: function (t, r) {
341
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
342
+ var n = this.tryEntries[e];
343
+ if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
344
+ var o = n;
377
345
  break;
378
346
  }
379
347
  }
380
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
381
- var a = i ? i.completion : {};
382
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
348
+ o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
349
+ var i = o ? o[4] : {};
350
+ return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
383
351
  },
384
- complete: function (t, e) {
352
+ complete: function (t, r) {
385
353
  if ("throw" === t.type) throw t.arg;
386
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
354
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f;
387
355
  },
388
356
  finish: function (t) {
389
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
390
- var r = this.tryEntries[e];
391
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
357
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
358
+ var e = this.tryEntries[r];
359
+ if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
392
360
  }
393
361
  },
394
362
  catch: function (t) {
395
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
396
- var r = this.tryEntries[e];
397
- if (r.tryLoc === t) {
398
- var n = r.completion;
363
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
364
+ var e = this.tryEntries[r];
365
+ if (e[0] === t) {
366
+ var n = e[4];
399
367
  if ("throw" === n.type) {
400
368
  var o = n.arg;
401
- resetTryEntry(r);
369
+ m(e);
402
370
  }
403
371
  return o;
404
372
  }
405
373
  }
406
374
  throw Error("illegal catch attempt");
407
375
  },
408
- delegateYield: function (e, r, n) {
376
+ delegateYield: function (r, e, n) {
409
377
  return this.delegate = {
410
- iterator: values(e),
411
- resultName: r,
412
- nextLoc: n
413
- }, "next" === this.method && (this.arg = t), y;
378
+ i: x(r),
379
+ r: e,
380
+ n: n
381
+ }, "next" === this.method && (this.arg = t), f;
414
382
  }
415
- }, e;
383
+ }, r;
416
384
  }
417
385
  function _toConsumableArray(r) {
418
386
  return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();