oro-sdk 8.0.0 → 8.1.1

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.
@@ -7,350 +7,350 @@ import { getMany } from 'idb-keyval';
7
7
 
8
8
  function _regeneratorRuntime() {
9
9
  _regeneratorRuntime = function () {
10
- return exports;
10
+ return e;
11
11
  };
12
- var exports = {},
13
- Op = Object.prototype,
14
- hasOwn = Op.hasOwnProperty,
15
- defineProperty = Object.defineProperty || function (obj, key, desc) {
16
- obj[key] = desc.value;
12
+ var t,
13
+ e = {},
14
+ r = Object.prototype,
15
+ n = r.hasOwnProperty,
16
+ o = Object.defineProperty || function (t, e, r) {
17
+ t[e] = r.value;
17
18
  },
18
- $Symbol = "function" == typeof Symbol ? Symbol : {},
19
- iteratorSymbol = $Symbol.iterator || "@@iterator",
20
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
21
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
22
- function define(obj, key, value) {
23
- return Object.defineProperty(obj, key, {
24
- value: value,
19
+ i = "function" == typeof Symbol ? Symbol : {},
20
+ a = i.iterator || "@@iterator",
21
+ c = i.asyncIterator || "@@asyncIterator",
22
+ u = i.toStringTag || "@@toStringTag";
23
+ function define(t, e, r) {
24
+ return Object.defineProperty(t, e, {
25
+ value: r,
25
26
  enumerable: !0,
26
27
  configurable: !0,
27
28
  writable: !0
28
- }), obj[key];
29
+ }), t[e];
29
30
  }
30
31
  try {
31
32
  define({}, "");
32
- } catch (err) {
33
- define = function (obj, key, value) {
34
- return obj[key] = value;
33
+ } catch (t) {
34
+ define = function (t, e, r) {
35
+ return t[e] = r;
35
36
  };
36
37
  }
37
- function wrap(innerFn, outerFn, self, tryLocsList) {
38
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
39
- generator = Object.create(protoGenerator.prototype),
40
- context = new Context(tryLocsList || []);
41
- return defineProperty(generator, "_invoke", {
42
- value: makeInvokeMethod(innerFn, self, context)
43
- }), generator;
38
+ function wrap(t, e, r, n) {
39
+ var i = e && e.prototype instanceof Generator ? e : Generator,
40
+ a = Object.create(i.prototype),
41
+ c = new Context(n || []);
42
+ return o(a, "_invoke", {
43
+ value: makeInvokeMethod(t, r, c)
44
+ }), a;
44
45
  }
45
- function tryCatch(fn, obj, arg) {
46
+ function tryCatch(t, e, r) {
46
47
  try {
47
48
  return {
48
49
  type: "normal",
49
- arg: fn.call(obj, arg)
50
+ arg: t.call(e, r)
50
51
  };
51
- } catch (err) {
52
+ } catch (t) {
52
53
  return {
53
54
  type: "throw",
54
- arg: err
55
+ arg: t
55
56
  };
56
57
  }
57
58
  }
58
- exports.wrap = wrap;
59
- var ContinueSentinel = {};
59
+ e.wrap = wrap;
60
+ var h = "suspendedStart",
61
+ l = "suspendedYield",
62
+ f = "executing",
63
+ s = "completed",
64
+ y = {};
60
65
  function Generator() {}
61
66
  function GeneratorFunction() {}
62
67
  function GeneratorFunctionPrototype() {}
63
- var IteratorPrototype = {};
64
- define(IteratorPrototype, iteratorSymbol, function () {
68
+ var p = {};
69
+ define(p, a, function () {
65
70
  return this;
66
71
  });
67
- var getProto = Object.getPrototypeOf,
68
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
69
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
70
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
71
- function defineIteratorMethods(prototype) {
72
- ["next", "throw", "return"].forEach(function (method) {
73
- define(prototype, method, function (arg) {
74
- return this._invoke(method, arg);
72
+ var d = Object.getPrototypeOf,
73
+ v = d && d(d(values([])));
74
+ v && v !== r && n.call(v, a) && (p = v);
75
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
76
+ function defineIteratorMethods(t) {
77
+ ["next", "throw", "return"].forEach(function (e) {
78
+ define(t, e, function (t) {
79
+ return this._invoke(e, t);
75
80
  });
76
81
  });
77
82
  }
78
- function AsyncIterator(generator, PromiseImpl) {
79
- function invoke(method, arg, resolve, reject) {
80
- var record = tryCatch(generator[method], generator, arg);
81
- if ("throw" !== record.type) {
82
- var result = record.arg,
83
- value = result.value;
84
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
85
- invoke("next", value, resolve, reject);
86
- }, function (err) {
87
- invoke("throw", err, resolve, reject);
88
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
89
- result.value = unwrapped, resolve(result);
90
- }, function (error) {
91
- return invoke("throw", error, resolve, reject);
83
+ function AsyncIterator(t, e) {
84
+ function invoke(r, o, i, a) {
85
+ var c = tryCatch(t[r], t, o);
86
+ if ("throw" !== c.type) {
87
+ var u = c.arg,
88
+ h = u.value;
89
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
90
+ invoke("next", t, i, a);
91
+ }, function (t) {
92
+ invoke("throw", t, i, a);
93
+ }) : e.resolve(h).then(function (t) {
94
+ u.value = t, i(u);
95
+ }, function (t) {
96
+ return invoke("throw", t, i, a);
92
97
  });
93
98
  }
94
- reject(record.arg);
99
+ a(c.arg);
95
100
  }
96
- var previousPromise;
97
- defineProperty(this, "_invoke", {
98
- value: function (method, arg) {
101
+ var r;
102
+ o(this, "_invoke", {
103
+ value: function (t, n) {
99
104
  function callInvokeWithMethodAndArg() {
100
- return new PromiseImpl(function (resolve, reject) {
101
- invoke(method, arg, resolve, reject);
105
+ return new e(function (e, r) {
106
+ invoke(t, n, e, r);
102
107
  });
103
108
  }
104
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
109
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
105
110
  }
106
111
  });
107
112
  }
108
- function makeInvokeMethod(innerFn, self, context) {
109
- var state = "suspendedStart";
110
- return function (method, arg) {
111
- if ("executing" === state) throw new Error("Generator is already running");
112
- if ("completed" === state) {
113
- if ("throw" === method) throw arg;
114
- return doneResult();
113
+ function makeInvokeMethod(e, r, n) {
114
+ var o = h;
115
+ return function (i, a) {
116
+ if (o === f) throw new Error("Generator is already running");
117
+ if (o === s) {
118
+ if ("throw" === i) throw a;
119
+ return {
120
+ value: t,
121
+ done: !0
122
+ };
115
123
  }
116
- for (context.method = method, context.arg = arg;;) {
117
- var delegate = context.delegate;
118
- if (delegate) {
119
- var delegateResult = maybeInvokeDelegate(delegate, context);
120
- if (delegateResult) {
121
- if (delegateResult === ContinueSentinel) continue;
122
- return delegateResult;
124
+ for (n.method = i, n.arg = a;;) {
125
+ var c = n.delegate;
126
+ if (c) {
127
+ var u = maybeInvokeDelegate(c, n);
128
+ if (u) {
129
+ if (u === y) continue;
130
+ return u;
123
131
  }
124
132
  }
125
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
126
- if ("suspendedStart" === state) throw state = "completed", context.arg;
127
- context.dispatchException(context.arg);
128
- } else "return" === context.method && context.abrupt("return", context.arg);
129
- state = "executing";
130
- var record = tryCatch(innerFn, self, context);
131
- if ("normal" === record.type) {
132
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
133
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
134
+ if (o === h) throw o = s, n.arg;
135
+ n.dispatchException(n.arg);
136
+ } else "return" === n.method && n.abrupt("return", n.arg);
137
+ o = f;
138
+ var p = tryCatch(e, r, n);
139
+ if ("normal" === p.type) {
140
+ if (o = n.done ? s : l, p.arg === y) continue;
133
141
  return {
134
- value: record.arg,
135
- done: context.done
142
+ value: p.arg,
143
+ done: n.done
136
144
  };
137
145
  }
138
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
146
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
139
147
  }
140
148
  };
141
149
  }
142
- function maybeInvokeDelegate(delegate, context) {
143
- var methodName = context.method,
144
- method = delegate.iterator[methodName];
145
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
146
- var record = tryCatch(method, delegate.iterator, context.arg);
147
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
148
- var info = record.arg;
149
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
150
+ function maybeInvokeDelegate(e, r) {
151
+ var n = r.method,
152
+ o = e.iterator[n];
153
+ 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;
154
+ var i = tryCatch(o, e.iterator, r.arg);
155
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
156
+ var a = i.arg;
157
+ 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);
150
158
  }
151
- function pushTryEntry(locs) {
152
- var entry = {
153
- tryLoc: locs[0]
159
+ function pushTryEntry(t) {
160
+ var e = {
161
+ tryLoc: t[0]
154
162
  };
155
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
163
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
156
164
  }
157
- function resetTryEntry(entry) {
158
- var record = entry.completion || {};
159
- record.type = "normal", delete record.arg, entry.completion = record;
165
+ function resetTryEntry(t) {
166
+ var e = t.completion || {};
167
+ e.type = "normal", delete e.arg, t.completion = e;
160
168
  }
161
- function Context(tryLocsList) {
169
+ function Context(t) {
162
170
  this.tryEntries = [{
163
171
  tryLoc: "root"
164
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
172
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
165
173
  }
166
- function values(iterable) {
167
- if (iterable) {
168
- var iteratorMethod = iterable[iteratorSymbol];
169
- if (iteratorMethod) return iteratorMethod.call(iterable);
170
- if ("function" == typeof iterable.next) return iterable;
171
- if (!isNaN(iterable.length)) {
172
- var i = -1,
173
- next = function next() {
174
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
175
- return next.value = undefined, next.done = !0, next;
174
+ function values(e) {
175
+ if (e || "" === e) {
176
+ var r = e[a];
177
+ if (r) return r.call(e);
178
+ if ("function" == typeof e.next) return e;
179
+ if (!isNaN(e.length)) {
180
+ var o = -1,
181
+ i = function next() {
182
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
183
+ return next.value = t, next.done = !0, next;
176
184
  };
177
- return next.next = next;
185
+ return i.next = i;
178
186
  }
179
187
  }
180
- return {
181
- next: doneResult
182
- };
183
- }
184
- function doneResult() {
185
- return {
186
- value: undefined,
187
- done: !0
188
- };
188
+ throw new TypeError(typeof e + " is not iterable");
189
189
  }
190
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
190
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
191
191
  value: GeneratorFunctionPrototype,
192
192
  configurable: !0
193
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
193
+ }), o(GeneratorFunctionPrototype, "constructor", {
194
194
  value: GeneratorFunction,
195
195
  configurable: !0
196
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
197
- var ctor = "function" == typeof genFun && genFun.constructor;
198
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
199
- }, exports.mark = function (genFun) {
200
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
201
- }, exports.awrap = function (arg) {
196
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
197
+ var e = "function" == typeof t && t.constructor;
198
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
199
+ }, e.mark = function (t) {
200
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
201
+ }, e.awrap = function (t) {
202
202
  return {
203
- __await: arg
203
+ __await: t
204
204
  };
205
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
205
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
206
206
  return this;
207
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
208
- void 0 === PromiseImpl && (PromiseImpl = Promise);
209
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
210
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
211
- return result.done ? result.value : iter.next();
207
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
208
+ void 0 === i && (i = Promise);
209
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
210
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
211
+ return t.done ? t.value : a.next();
212
212
  });
213
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
213
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
214
214
  return this;
215
- }), define(Gp, "toString", function () {
215
+ }), define(g, "toString", function () {
216
216
  return "[object Generator]";
217
- }), exports.keys = function (val) {
218
- var object = Object(val),
219
- keys = [];
220
- for (var key in object) keys.push(key);
221
- return keys.reverse(), function next() {
222
- for (; keys.length;) {
223
- var key = keys.pop();
224
- if (key in object) return next.value = key, next.done = !1, next;
217
+ }), e.keys = function (t) {
218
+ var e = Object(t),
219
+ r = [];
220
+ for (var n in e) r.push(n);
221
+ return r.reverse(), function next() {
222
+ for (; r.length;) {
223
+ var t = r.pop();
224
+ if (t in e) return next.value = t, next.done = !1, next;
225
225
  }
226
226
  return next.done = !0, next;
227
227
  };
228
- }, exports.values = values, Context.prototype = {
228
+ }, e.values = values, Context.prototype = {
229
229
  constructor: Context,
230
- reset: function (skipTempReset) {
231
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
230
+ reset: function (e) {
231
+ 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);
232
232
  },
233
233
  stop: function () {
234
234
  this.done = !0;
235
- var rootRecord = this.tryEntries[0].completion;
236
- if ("throw" === rootRecord.type) throw rootRecord.arg;
235
+ var t = this.tryEntries[0].completion;
236
+ if ("throw" === t.type) throw t.arg;
237
237
  return this.rval;
238
238
  },
239
- dispatchException: function (exception) {
240
- if (this.done) throw exception;
241
- var context = this;
242
- function handle(loc, caught) {
243
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
239
+ dispatchException: function (e) {
240
+ if (this.done) throw e;
241
+ var r = this;
242
+ function handle(n, o) {
243
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
244
244
  }
245
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
246
- var entry = this.tryEntries[i],
247
- record = entry.completion;
248
- if ("root" === entry.tryLoc) return handle("end");
249
- if (entry.tryLoc <= this.prev) {
250
- var hasCatch = hasOwn.call(entry, "catchLoc"),
251
- hasFinally = hasOwn.call(entry, "finallyLoc");
252
- if (hasCatch && hasFinally) {
253
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
254
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
255
- } else if (hasCatch) {
256
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
245
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
246
+ var i = this.tryEntries[o],
247
+ a = i.completion;
248
+ if ("root" === i.tryLoc) return handle("end");
249
+ if (i.tryLoc <= this.prev) {
250
+ var c = n.call(i, "catchLoc"),
251
+ u = n.call(i, "finallyLoc");
252
+ if (c && u) {
253
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
254
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
255
+ } else if (c) {
256
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
257
257
  } else {
258
- if (!hasFinally) throw new Error("try statement without catch or finally");
259
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
258
+ if (!u) throw new Error("try statement without catch or finally");
259
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
260
260
  }
261
261
  }
262
262
  }
263
263
  },
264
- abrupt: function (type, arg) {
265
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
266
- var entry = this.tryEntries[i];
267
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
268
- var finallyEntry = entry;
264
+ abrupt: function (t, e) {
265
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
266
+ var o = this.tryEntries[r];
267
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
268
+ var i = o;
269
269
  break;
270
270
  }
271
271
  }
272
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
273
- var record = finallyEntry ? finallyEntry.completion : {};
274
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
272
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
273
+ var a = i ? i.completion : {};
274
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
275
275
  },
276
- complete: function (record, afterLoc) {
277
- if ("throw" === record.type) throw record.arg;
278
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
276
+ complete: function (t, e) {
277
+ if ("throw" === t.type) throw t.arg;
278
+ 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;
279
279
  },
280
- finish: function (finallyLoc) {
281
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
282
- var entry = this.tryEntries[i];
283
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
280
+ finish: function (t) {
281
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
282
+ var r = this.tryEntries[e];
283
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
284
284
  }
285
285
  },
286
- catch: function (tryLoc) {
287
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
288
- var entry = this.tryEntries[i];
289
- if (entry.tryLoc === tryLoc) {
290
- var record = entry.completion;
291
- if ("throw" === record.type) {
292
- var thrown = record.arg;
293
- resetTryEntry(entry);
286
+ catch: function (t) {
287
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
288
+ var r = this.tryEntries[e];
289
+ if (r.tryLoc === t) {
290
+ var n = r.completion;
291
+ if ("throw" === n.type) {
292
+ var o = n.arg;
293
+ resetTryEntry(r);
294
294
  }
295
- return thrown;
295
+ return o;
296
296
  }
297
297
  }
298
298
  throw new Error("illegal catch attempt");
299
299
  },
300
- delegateYield: function (iterable, resultName, nextLoc) {
300
+ delegateYield: function (e, r, n) {
301
301
  return this.delegate = {
302
- iterator: values(iterable),
303
- resultName: resultName,
304
- nextLoc: nextLoc
305
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
302
+ iterator: values(e),
303
+ resultName: r,
304
+ nextLoc: n
305
+ }, "next" === this.method && (this.arg = t), y;
306
306
  }
307
- }, exports;
307
+ }, e;
308
308
  }
309
309
  function _wrapRegExp() {
310
- _wrapRegExp = function (re, groups) {
311
- return new BabelRegExp(re, void 0, groups);
310
+ _wrapRegExp = function (e, r) {
311
+ return new BabelRegExp(e, void 0, r);
312
312
  };
313
- var _super = RegExp.prototype,
314
- _groups = new WeakMap();
315
- function BabelRegExp(re, flags, groups) {
316
- var _this = new RegExp(re, flags);
317
- return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
313
+ var e = RegExp.prototype,
314
+ r = new WeakMap();
315
+ function BabelRegExp(e, t, p) {
316
+ var o = new RegExp(e, t);
317
+ return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype);
318
318
  }
319
- function buildGroups(result, re) {
320
- var g = _groups.get(re);
321
- return Object.keys(g).reduce(function (groups, name) {
322
- var i = g[name];
323
- if ("number" == typeof i) groups[name] = result[i];else {
324
- for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) k++;
325
- groups[name] = result[i[k]];
319
+ function buildGroups(e, t) {
320
+ var p = r.get(t);
321
+ return Object.keys(p).reduce(function (r, t) {
322
+ var o = p[t];
323
+ if ("number" == typeof o) r[t] = e[o];else {
324
+ for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++;
325
+ r[t] = e[o[i]];
326
326
  }
327
- return groups;
327
+ return r;
328
328
  }, Object.create(null));
329
329
  }
330
- return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
331
- var result = _super.exec.call(this, str);
332
- if (result) {
333
- result.groups = buildGroups(result, this);
334
- var indices = result.indices;
335
- indices && (indices.groups = buildGroups(indices, this));
330
+ return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) {
331
+ var t = e.exec.call(this, r);
332
+ if (t) {
333
+ t.groups = buildGroups(t, this);
334
+ var p = t.indices;
335
+ p && (p.groups = buildGroups(p, this));
336
336
  }
337
- return result;
338
- }, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
339
- if ("string" == typeof substitution) {
340
- var groups = _groups.get(this);
341
- return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
342
- var group = groups[name];
343
- return "$" + (Array.isArray(group) ? group.join("$") : group);
337
+ return t;
338
+ }, BabelRegExp.prototype[Symbol.replace] = function (t, p) {
339
+ if ("string" == typeof p) {
340
+ var o = r.get(this);
341
+ return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) {
342
+ var t = o[r];
343
+ return "$" + (Array.isArray(t) ? t.join("$") : t);
344
344
  }));
345
345
  }
346
- if ("function" == typeof substitution) {
347
- var _this = this;
348
- return _super[Symbol.replace].call(this, str, function () {
349
- var args = arguments;
350
- return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
346
+ if ("function" == typeof p) {
347
+ var i = this;
348
+ return e[Symbol.replace].call(this, t, function () {
349
+ var e = arguments;
350
+ return "object" != typeof e[e.length - 1] && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e);
351
351
  });
352
352
  }
353
- return _super[Symbol.replace].call(this, str, substitution);
353
+ return e[Symbol.replace].call(this, t, p);
354
354
  }, _wrapRegExp.apply(this, arguments);
355
355
  }
356
356
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
@@ -458,7 +458,11 @@ function _construct(Parent, args, Class) {
458
458
  return _construct.apply(null, arguments);
459
459
  }
460
460
  function _isNativeFunction(fn) {
461
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
461
+ try {
462
+ return Function.toString.call(fn).indexOf("[native code]") !== -1;
463
+ } catch (e) {
464
+ return typeof fn === "function";
465
+ }
462
466
  }
463
467
  function _wrapNativeSuper(Class) {
464
468
  var _cache = typeof Map === "function" ? new Map() : undefined;
@@ -1182,7 +1186,7 @@ function _registerPatient() {
1182
1186
  identity = undefined;
1183
1187
  errorsThrown = [];
1184
1188
  stepsTotalNum = 9;
1185
- // toggle all changed statuses if this workflow has previous/revision data
1189
+ // toggle all changed statuses if this workflow has previous/revision data
1186
1190
  workflow = detectChangesInWorkflowAnswers(workflow);
1187
1191
  _loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop() {
1188
1192
  var _consultIndex, _identity, _identity2, practitioners, grantPromises, consultIndex, consultIndexPromises;
@@ -1393,13 +1397,13 @@ function _registerPatient() {
1393
1397
  case 62:
1394
1398
  // if we got through the complete flow, the registration succeeded
1395
1399
  if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'success');
1396
- return _context3.abrupt("return", "break");
1400
+ return _context3.abrupt("return", 0);
1397
1401
  case 66:
1398
1402
  _context3.prev = 66;
1399
1403
  _context3.t0 = _context3["catch"](0);
1400
1404
  console.error("[SDK] Error occured during registration: " + _context3.t0 + ", retrying... Retries remaining: " + retry);
1401
1405
  errorsThrown = [];
1402
- return _context3.abrupt("return", "continue");
1406
+ return _context3.abrupt("return", 1);
1403
1407
  case 71:
1404
1408
  case "end":
1405
1409
  return _context3.stop();
@@ -1414,13 +1418,13 @@ function _registerPatient() {
1414
1418
  return _context4.delegateYield(_loop(), "t0", 12);
1415
1419
  case 12:
1416
1420
  _ret = _context4.t0;
1417
- if (!(_ret === "break")) {
1421
+ if (!(_ret === 0)) {
1418
1422
  _context4.next = 15;
1419
1423
  break;
1420
1424
  }
1421
1425
  return _context4.abrupt("break", 20);
1422
1426
  case 15:
1423
- if (!(_ret === "continue")) {
1427
+ if (!(_ret === 1)) {
1424
1428
  _context4.next = 17;
1425
1429
  break;
1426
1430
  }
@@ -1484,7 +1488,7 @@ function _getOrCreatePatientLockbox() {
1484
1488
  return _context5.abrupt("return", grants[0].lockboxUuid);
1485
1489
  case 8:
1486
1490
  _context5.next = 10;
1487
- return oroClient.vaultClient.lockboxCreate()["catch"](function (err) {
1491
+ return oroClient.lockboxCreate()["catch"](function (err) {
1488
1492
  console.error('Error while creating lockbox', err);
1489
1493
  throw err;
1490
1494
  });