oro-sdk 3.26.0 → 4.0.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.
@@ -9,6 +9,351 @@ var initApis__default = _interopDefault(initApis);
9
9
  var oroToolbox = require('oro-toolbox');
10
10
  var idbKeyval = require('idb-keyval');
11
11
 
12
+ function _regeneratorRuntime() {
13
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
14
+
15
+ _regeneratorRuntime = function () {
16
+ return exports;
17
+ };
18
+
19
+ var exports = {},
20
+ Op = Object.prototype,
21
+ hasOwn = Op.hasOwnProperty,
22
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
23
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
24
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
25
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
26
+
27
+ function define(obj, key, value) {
28
+ return Object.defineProperty(obj, key, {
29
+ value: value,
30
+ enumerable: !0,
31
+ configurable: !0,
32
+ writable: !0
33
+ }), obj[key];
34
+ }
35
+
36
+ try {
37
+ define({}, "");
38
+ } catch (err) {
39
+ define = function (obj, key, value) {
40
+ return obj[key] = value;
41
+ };
42
+ }
43
+
44
+ function wrap(innerFn, outerFn, self, tryLocsList) {
45
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
46
+ generator = Object.create(protoGenerator.prototype),
47
+ context = new Context(tryLocsList || []);
48
+ return generator._invoke = function (innerFn, self, context) {
49
+ var state = "suspendedStart";
50
+ return function (method, arg) {
51
+ if ("executing" === state) throw new Error("Generator is already running");
52
+
53
+ if ("completed" === state) {
54
+ if ("throw" === method) throw arg;
55
+ return doneResult();
56
+ }
57
+
58
+ for (context.method = method, context.arg = arg;;) {
59
+ var delegate = context.delegate;
60
+
61
+ if (delegate) {
62
+ var delegateResult = maybeInvokeDelegate(delegate, context);
63
+
64
+ if (delegateResult) {
65
+ if (delegateResult === ContinueSentinel) continue;
66
+ return delegateResult;
67
+ }
68
+ }
69
+
70
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
71
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
72
+ context.dispatchException(context.arg);
73
+ } else "return" === context.method && context.abrupt("return", context.arg);
74
+ state = "executing";
75
+ var record = tryCatch(innerFn, self, context);
76
+
77
+ if ("normal" === record.type) {
78
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
79
+ return {
80
+ value: record.arg,
81
+ done: context.done
82
+ };
83
+ }
84
+
85
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
86
+ }
87
+ };
88
+ }(innerFn, self, context), generator;
89
+ }
90
+
91
+ function tryCatch(fn, obj, arg) {
92
+ try {
93
+ return {
94
+ type: "normal",
95
+ arg: fn.call(obj, arg)
96
+ };
97
+ } catch (err) {
98
+ return {
99
+ type: "throw",
100
+ arg: err
101
+ };
102
+ }
103
+ }
104
+
105
+ exports.wrap = wrap;
106
+ var ContinueSentinel = {};
107
+
108
+ function Generator() {}
109
+
110
+ function GeneratorFunction() {}
111
+
112
+ function GeneratorFunctionPrototype() {}
113
+
114
+ var IteratorPrototype = {};
115
+ define(IteratorPrototype, iteratorSymbol, function () {
116
+ return this;
117
+ });
118
+ var getProto = Object.getPrototypeOf,
119
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
120
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
121
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
122
+
123
+ function defineIteratorMethods(prototype) {
124
+ ["next", "throw", "return"].forEach(function (method) {
125
+ define(prototype, method, function (arg) {
126
+ return this._invoke(method, arg);
127
+ });
128
+ });
129
+ }
130
+
131
+ function AsyncIterator(generator, PromiseImpl) {
132
+ function invoke(method, arg, resolve, reject) {
133
+ var record = tryCatch(generator[method], generator, arg);
134
+
135
+ if ("throw" !== record.type) {
136
+ var result = record.arg,
137
+ value = result.value;
138
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
139
+ invoke("next", value, resolve, reject);
140
+ }, function (err) {
141
+ invoke("throw", err, resolve, reject);
142
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
143
+ result.value = unwrapped, resolve(result);
144
+ }, function (error) {
145
+ return invoke("throw", error, resolve, reject);
146
+ });
147
+ }
148
+
149
+ reject(record.arg);
150
+ }
151
+
152
+ var previousPromise;
153
+
154
+ this._invoke = function (method, arg) {
155
+ function callInvokeWithMethodAndArg() {
156
+ return new PromiseImpl(function (resolve, reject) {
157
+ invoke(method, arg, resolve, reject);
158
+ });
159
+ }
160
+
161
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
162
+ };
163
+ }
164
+
165
+ function maybeInvokeDelegate(delegate, context) {
166
+ var method = delegate.iterator[context.method];
167
+
168
+ if (undefined === method) {
169
+ if (context.delegate = null, "throw" === context.method) {
170
+ if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
171
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
172
+ }
173
+
174
+ return ContinueSentinel;
175
+ }
176
+
177
+ var record = tryCatch(method, delegate.iterator, context.arg);
178
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
179
+ var info = record.arg;
180
+ 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);
181
+ }
182
+
183
+ function pushTryEntry(locs) {
184
+ var entry = {
185
+ tryLoc: locs[0]
186
+ };
187
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
188
+ }
189
+
190
+ function resetTryEntry(entry) {
191
+ var record = entry.completion || {};
192
+ record.type = "normal", delete record.arg, entry.completion = record;
193
+ }
194
+
195
+ function Context(tryLocsList) {
196
+ this.tryEntries = [{
197
+ tryLoc: "root"
198
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
199
+ }
200
+
201
+ function values(iterable) {
202
+ if (iterable) {
203
+ var iteratorMethod = iterable[iteratorSymbol];
204
+ if (iteratorMethod) return iteratorMethod.call(iterable);
205
+ if ("function" == typeof iterable.next) return iterable;
206
+
207
+ if (!isNaN(iterable.length)) {
208
+ var i = -1,
209
+ next = function next() {
210
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
211
+
212
+ return next.value = undefined, next.done = !0, next;
213
+ };
214
+
215
+ return next.next = next;
216
+ }
217
+ }
218
+
219
+ return {
220
+ next: doneResult
221
+ };
222
+ }
223
+
224
+ function doneResult() {
225
+ return {
226
+ value: undefined,
227
+ done: !0
228
+ };
229
+ }
230
+
231
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
232
+ var ctor = "function" == typeof genFun && genFun.constructor;
233
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
234
+ }, exports.mark = function (genFun) {
235
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
236
+ }, exports.awrap = function (arg) {
237
+ return {
238
+ __await: arg
239
+ };
240
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
241
+ return this;
242
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
243
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
244
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
245
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
246
+ return result.done ? result.value : iter.next();
247
+ });
248
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
249
+ return this;
250
+ }), define(Gp, "toString", function () {
251
+ return "[object Generator]";
252
+ }), exports.keys = function (object) {
253
+ var keys = [];
254
+
255
+ for (var key in object) keys.push(key);
256
+
257
+ return keys.reverse(), function next() {
258
+ for (; keys.length;) {
259
+ var key = keys.pop();
260
+ if (key in object) return next.value = key, next.done = !1, next;
261
+ }
262
+
263
+ return next.done = !0, next;
264
+ };
265
+ }, exports.values = values, Context.prototype = {
266
+ constructor: Context,
267
+ reset: function (skipTempReset) {
268
+ 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);
269
+ },
270
+ stop: function () {
271
+ this.done = !0;
272
+ var rootRecord = this.tryEntries[0].completion;
273
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
274
+ return this.rval;
275
+ },
276
+ dispatchException: function (exception) {
277
+ if (this.done) throw exception;
278
+ var context = this;
279
+
280
+ function handle(loc, caught) {
281
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
282
+ }
283
+
284
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
285
+ var entry = this.tryEntries[i],
286
+ record = entry.completion;
287
+ if ("root" === entry.tryLoc) return handle("end");
288
+
289
+ if (entry.tryLoc <= this.prev) {
290
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
291
+ hasFinally = hasOwn.call(entry, "finallyLoc");
292
+
293
+ if (hasCatch && hasFinally) {
294
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
295
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
296
+ } else if (hasCatch) {
297
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
298
+ } else {
299
+ if (!hasFinally) throw new Error("try statement without catch or finally");
300
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
301
+ }
302
+ }
303
+ }
304
+ },
305
+ abrupt: function (type, arg) {
306
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
307
+ var entry = this.tryEntries[i];
308
+
309
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
310
+ var finallyEntry = entry;
311
+ break;
312
+ }
313
+ }
314
+
315
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
316
+ var record = finallyEntry ? finallyEntry.completion : {};
317
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
318
+ },
319
+ complete: function (record, afterLoc) {
320
+ if ("throw" === record.type) throw record.arg;
321
+ 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;
322
+ },
323
+ finish: function (finallyLoc) {
324
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
325
+ var entry = this.tryEntries[i];
326
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
327
+ }
328
+ },
329
+ catch: function (tryLoc) {
330
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
331
+ var entry = this.tryEntries[i];
332
+
333
+ if (entry.tryLoc === tryLoc) {
334
+ var record = entry.completion;
335
+
336
+ if ("throw" === record.type) {
337
+ var thrown = record.arg;
338
+ resetTryEntry(entry);
339
+ }
340
+
341
+ return thrown;
342
+ }
343
+ }
344
+
345
+ throw new Error("illegal catch attempt");
346
+ },
347
+ delegateYield: function (iterable, resultName, nextLoc) {
348
+ return this.delegate = {
349
+ iterator: values(iterable),
350
+ resultName: resultName,
351
+ nextLoc: nextLoc
352
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
353
+ }
354
+ }, exports;
355
+ }
356
+
12
357
  function _wrapRegExp() {
13
358
  _wrapRegExp = function (re, groups) {
14
359
  return new BabelRegExp(re, void 0, groups);
@@ -27,7 +372,13 @@ function _wrapRegExp() {
27
372
  var g = _groups.get(re);
28
373
 
29
374
  return Object.keys(g).reduce(function (groups, name) {
30
- return groups[name] = result[g[name]], groups;
375
+ var i = g[name];
376
+ if ("number" == typeof i) groups[name] = result[i];else {
377
+ for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) k++;
378
+
379
+ groups[name] = result[i[k]];
380
+ }
381
+ return groups;
31
382
  }, Object.create(null));
32
383
  }
33
384
 
@@ -94,7 +445,7 @@ function _asyncToGenerator(fn) {
94
445
  }
95
446
 
96
447
  function _extends() {
97
- _extends = Object.assign || function (target) {
448
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
98
449
  for (var i = 1; i < arguments.length; i++) {
99
450
  var source = arguments[i];
100
451
 
@@ -107,7 +458,6 @@ function _extends() {
107
458
 
108
459
  return target;
109
460
  };
110
-
111
461
  return _extends.apply(this, arguments);
112
462
  }
113
463
 
@@ -137,18 +487,17 @@ function _inheritsLoose(subClass, superClass) {
137
487
  }
138
488
 
139
489
  function _getPrototypeOf(o) {
140
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
490
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
141
491
  return o.__proto__ || Object.getPrototypeOf(o);
142
492
  };
143
493
  return _getPrototypeOf(o);
144
494
  }
145
495
 
146
496
  function _setPrototypeOf(o, p) {
147
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
497
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
148
498
  o.__proto__ = p;
149
499
  return o;
150
500
  };
151
-
152
501
  return _setPrototypeOf(o, p);
153
502
  }
154
503
 
@@ -167,7 +516,7 @@ function _isNativeReflectConstruct() {
167
516
 
168
517
  function _construct(Parent, args, Class) {
169
518
  if (_isNativeReflectConstruct()) {
170
- _construct = Reflect.construct;
519
+ _construct = Reflect.construct.bind();
171
520
  } else {
172
521
  _construct = function _construct(Parent, args, Class) {
173
522
  var a = [null];
@@ -273,766 +622,6 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
273
622
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
274
623
  }
275
624
 
276
- function createCommonjsModule(fn, module) {
277
- return module = { exports: {} }, fn(module, module.exports), module.exports;
278
- }
279
-
280
- var runtime_1 = createCommonjsModule(function (module) {
281
- /**
282
- * Copyright (c) 2014-present, Facebook, Inc.
283
- *
284
- * This source code is licensed under the MIT license found in the
285
- * LICENSE file in the root directory of this source tree.
286
- */
287
-
288
- var runtime = (function (exports) {
289
-
290
- var Op = Object.prototype;
291
- var hasOwn = Op.hasOwnProperty;
292
- var undefined$1; // More compressible than void 0.
293
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
294
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
295
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
296
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
297
-
298
- function define(obj, key, value) {
299
- Object.defineProperty(obj, key, {
300
- value: value,
301
- enumerable: true,
302
- configurable: true,
303
- writable: true
304
- });
305
- return obj[key];
306
- }
307
- try {
308
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
309
- define({}, "");
310
- } catch (err) {
311
- define = function(obj, key, value) {
312
- return obj[key] = value;
313
- };
314
- }
315
-
316
- function wrap(innerFn, outerFn, self, tryLocsList) {
317
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
318
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
319
- var generator = Object.create(protoGenerator.prototype);
320
- var context = new Context(tryLocsList || []);
321
-
322
- // The ._invoke method unifies the implementations of the .next,
323
- // .throw, and .return methods.
324
- generator._invoke = makeInvokeMethod(innerFn, self, context);
325
-
326
- return generator;
327
- }
328
- exports.wrap = wrap;
329
-
330
- // Try/catch helper to minimize deoptimizations. Returns a completion
331
- // record like context.tryEntries[i].completion. This interface could
332
- // have been (and was previously) designed to take a closure to be
333
- // invoked without arguments, but in all the cases we care about we
334
- // already have an existing method we want to call, so there's no need
335
- // to create a new function object. We can even get away with assuming
336
- // the method takes exactly one argument, since that happens to be true
337
- // in every case, so we don't have to touch the arguments object. The
338
- // only additional allocation required is the completion record, which
339
- // has a stable shape and so hopefully should be cheap to allocate.
340
- function tryCatch(fn, obj, arg) {
341
- try {
342
- return { type: "normal", arg: fn.call(obj, arg) };
343
- } catch (err) {
344
- return { type: "throw", arg: err };
345
- }
346
- }
347
-
348
- var GenStateSuspendedStart = "suspendedStart";
349
- var GenStateSuspendedYield = "suspendedYield";
350
- var GenStateExecuting = "executing";
351
- var GenStateCompleted = "completed";
352
-
353
- // Returning this object from the innerFn has the same effect as
354
- // breaking out of the dispatch switch statement.
355
- var ContinueSentinel = {};
356
-
357
- // Dummy constructor functions that we use as the .constructor and
358
- // .constructor.prototype properties for functions that return Generator
359
- // objects. For full spec compliance, you may wish to configure your
360
- // minifier not to mangle the names of these two functions.
361
- function Generator() {}
362
- function GeneratorFunction() {}
363
- function GeneratorFunctionPrototype() {}
364
-
365
- // This is a polyfill for %IteratorPrototype% for environments that
366
- // don't natively support it.
367
- var IteratorPrototype = {};
368
- define(IteratorPrototype, iteratorSymbol, function () {
369
- return this;
370
- });
371
-
372
- var getProto = Object.getPrototypeOf;
373
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
374
- if (NativeIteratorPrototype &&
375
- NativeIteratorPrototype !== Op &&
376
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
377
- // This environment has a native %IteratorPrototype%; use it instead
378
- // of the polyfill.
379
- IteratorPrototype = NativeIteratorPrototype;
380
- }
381
-
382
- var Gp = GeneratorFunctionPrototype.prototype =
383
- Generator.prototype = Object.create(IteratorPrototype);
384
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
385
- define(Gp, "constructor", GeneratorFunctionPrototype);
386
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
387
- GeneratorFunction.displayName = define(
388
- GeneratorFunctionPrototype,
389
- toStringTagSymbol,
390
- "GeneratorFunction"
391
- );
392
-
393
- // Helper for defining the .next, .throw, and .return methods of the
394
- // Iterator interface in terms of a single ._invoke method.
395
- function defineIteratorMethods(prototype) {
396
- ["next", "throw", "return"].forEach(function(method) {
397
- define(prototype, method, function(arg) {
398
- return this._invoke(method, arg);
399
- });
400
- });
401
- }
402
-
403
- exports.isGeneratorFunction = function(genFun) {
404
- var ctor = typeof genFun === "function" && genFun.constructor;
405
- return ctor
406
- ? ctor === GeneratorFunction ||
407
- // For the native GeneratorFunction constructor, the best we can
408
- // do is to check its .name property.
409
- (ctor.displayName || ctor.name) === "GeneratorFunction"
410
- : false;
411
- };
412
-
413
- exports.mark = function(genFun) {
414
- if (Object.setPrototypeOf) {
415
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
416
- } else {
417
- genFun.__proto__ = GeneratorFunctionPrototype;
418
- define(genFun, toStringTagSymbol, "GeneratorFunction");
419
- }
420
- genFun.prototype = Object.create(Gp);
421
- return genFun;
422
- };
423
-
424
- // Within the body of any async function, `await x` is transformed to
425
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
426
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
427
- // meant to be awaited.
428
- exports.awrap = function(arg) {
429
- return { __await: arg };
430
- };
431
-
432
- function AsyncIterator(generator, PromiseImpl) {
433
- function invoke(method, arg, resolve, reject) {
434
- var record = tryCatch(generator[method], generator, arg);
435
- if (record.type === "throw") {
436
- reject(record.arg);
437
- } else {
438
- var result = record.arg;
439
- var value = result.value;
440
- if (value &&
441
- typeof value === "object" &&
442
- hasOwn.call(value, "__await")) {
443
- return PromiseImpl.resolve(value.__await).then(function(value) {
444
- invoke("next", value, resolve, reject);
445
- }, function(err) {
446
- invoke("throw", err, resolve, reject);
447
- });
448
- }
449
-
450
- return PromiseImpl.resolve(value).then(function(unwrapped) {
451
- // When a yielded Promise is resolved, its final value becomes
452
- // the .value of the Promise<{value,done}> result for the
453
- // current iteration.
454
- result.value = unwrapped;
455
- resolve(result);
456
- }, function(error) {
457
- // If a rejected Promise was yielded, throw the rejection back
458
- // into the async generator function so it can be handled there.
459
- return invoke("throw", error, resolve, reject);
460
- });
461
- }
462
- }
463
-
464
- var previousPromise;
465
-
466
- function enqueue(method, arg) {
467
- function callInvokeWithMethodAndArg() {
468
- return new PromiseImpl(function(resolve, reject) {
469
- invoke(method, arg, resolve, reject);
470
- });
471
- }
472
-
473
- return previousPromise =
474
- // If enqueue has been called before, then we want to wait until
475
- // all previous Promises have been resolved before calling invoke,
476
- // so that results are always delivered in the correct order. If
477
- // enqueue has not been called before, then it is important to
478
- // call invoke immediately, without waiting on a callback to fire,
479
- // so that the async generator function has the opportunity to do
480
- // any necessary setup in a predictable way. This predictability
481
- // is why the Promise constructor synchronously invokes its
482
- // executor callback, and why async functions synchronously
483
- // execute code before the first await. Since we implement simple
484
- // async functions in terms of async generators, it is especially
485
- // important to get this right, even though it requires care.
486
- previousPromise ? previousPromise.then(
487
- callInvokeWithMethodAndArg,
488
- // Avoid propagating failures to Promises returned by later
489
- // invocations of the iterator.
490
- callInvokeWithMethodAndArg
491
- ) : callInvokeWithMethodAndArg();
492
- }
493
-
494
- // Define the unified helper method that is used to implement .next,
495
- // .throw, and .return (see defineIteratorMethods).
496
- this._invoke = enqueue;
497
- }
498
-
499
- defineIteratorMethods(AsyncIterator.prototype);
500
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
501
- return this;
502
- });
503
- exports.AsyncIterator = AsyncIterator;
504
-
505
- // Note that simple async functions are implemented on top of
506
- // AsyncIterator objects; they just return a Promise for the value of
507
- // the final result produced by the iterator.
508
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
509
- if (PromiseImpl === void 0) PromiseImpl = Promise;
510
-
511
- var iter = new AsyncIterator(
512
- wrap(innerFn, outerFn, self, tryLocsList),
513
- PromiseImpl
514
- );
515
-
516
- return exports.isGeneratorFunction(outerFn)
517
- ? iter // If outerFn is a generator, return the full iterator.
518
- : iter.next().then(function(result) {
519
- return result.done ? result.value : iter.next();
520
- });
521
- };
522
-
523
- function makeInvokeMethod(innerFn, self, context) {
524
- var state = GenStateSuspendedStart;
525
-
526
- return function invoke(method, arg) {
527
- if (state === GenStateExecuting) {
528
- throw new Error("Generator is already running");
529
- }
530
-
531
- if (state === GenStateCompleted) {
532
- if (method === "throw") {
533
- throw arg;
534
- }
535
-
536
- // Be forgiving, per 25.3.3.3.3 of the spec:
537
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
538
- return doneResult();
539
- }
540
-
541
- context.method = method;
542
- context.arg = arg;
543
-
544
- while (true) {
545
- var delegate = context.delegate;
546
- if (delegate) {
547
- var delegateResult = maybeInvokeDelegate(delegate, context);
548
- if (delegateResult) {
549
- if (delegateResult === ContinueSentinel) continue;
550
- return delegateResult;
551
- }
552
- }
553
-
554
- if (context.method === "next") {
555
- // Setting context._sent for legacy support of Babel's
556
- // function.sent implementation.
557
- context.sent = context._sent = context.arg;
558
-
559
- } else if (context.method === "throw") {
560
- if (state === GenStateSuspendedStart) {
561
- state = GenStateCompleted;
562
- throw context.arg;
563
- }
564
-
565
- context.dispatchException(context.arg);
566
-
567
- } else if (context.method === "return") {
568
- context.abrupt("return", context.arg);
569
- }
570
-
571
- state = GenStateExecuting;
572
-
573
- var record = tryCatch(innerFn, self, context);
574
- if (record.type === "normal") {
575
- // If an exception is thrown from innerFn, we leave state ===
576
- // GenStateExecuting and loop back for another invocation.
577
- state = context.done
578
- ? GenStateCompleted
579
- : GenStateSuspendedYield;
580
-
581
- if (record.arg === ContinueSentinel) {
582
- continue;
583
- }
584
-
585
- return {
586
- value: record.arg,
587
- done: context.done
588
- };
589
-
590
- } else if (record.type === "throw") {
591
- state = GenStateCompleted;
592
- // Dispatch the exception by looping back around to the
593
- // context.dispatchException(context.arg) call above.
594
- context.method = "throw";
595
- context.arg = record.arg;
596
- }
597
- }
598
- };
599
- }
600
-
601
- // Call delegate.iterator[context.method](context.arg) and handle the
602
- // result, either by returning a { value, done } result from the
603
- // delegate iterator, or by modifying context.method and context.arg,
604
- // setting context.delegate to null, and returning the ContinueSentinel.
605
- function maybeInvokeDelegate(delegate, context) {
606
- var method = delegate.iterator[context.method];
607
- if (method === undefined$1) {
608
- // A .throw or .return when the delegate iterator has no .throw
609
- // method always terminates the yield* loop.
610
- context.delegate = null;
611
-
612
- if (context.method === "throw") {
613
- // Note: ["return"] must be used for ES3 parsing compatibility.
614
- if (delegate.iterator["return"]) {
615
- // If the delegate iterator has a return method, give it a
616
- // chance to clean up.
617
- context.method = "return";
618
- context.arg = undefined$1;
619
- maybeInvokeDelegate(delegate, context);
620
-
621
- if (context.method === "throw") {
622
- // If maybeInvokeDelegate(context) changed context.method from
623
- // "return" to "throw", let that override the TypeError below.
624
- return ContinueSentinel;
625
- }
626
- }
627
-
628
- context.method = "throw";
629
- context.arg = new TypeError(
630
- "The iterator does not provide a 'throw' method");
631
- }
632
-
633
- return ContinueSentinel;
634
- }
635
-
636
- var record = tryCatch(method, delegate.iterator, context.arg);
637
-
638
- if (record.type === "throw") {
639
- context.method = "throw";
640
- context.arg = record.arg;
641
- context.delegate = null;
642
- return ContinueSentinel;
643
- }
644
-
645
- var info = record.arg;
646
-
647
- if (! info) {
648
- context.method = "throw";
649
- context.arg = new TypeError("iterator result is not an object");
650
- context.delegate = null;
651
- return ContinueSentinel;
652
- }
653
-
654
- if (info.done) {
655
- // Assign the result of the finished delegate to the temporary
656
- // variable specified by delegate.resultName (see delegateYield).
657
- context[delegate.resultName] = info.value;
658
-
659
- // Resume execution at the desired location (see delegateYield).
660
- context.next = delegate.nextLoc;
661
-
662
- // If context.method was "throw" but the delegate handled the
663
- // exception, let the outer generator proceed normally. If
664
- // context.method was "next", forget context.arg since it has been
665
- // "consumed" by the delegate iterator. If context.method was
666
- // "return", allow the original .return call to continue in the
667
- // outer generator.
668
- if (context.method !== "return") {
669
- context.method = "next";
670
- context.arg = undefined$1;
671
- }
672
-
673
- } else {
674
- // Re-yield the result returned by the delegate method.
675
- return info;
676
- }
677
-
678
- // The delegate iterator is finished, so forget it and continue with
679
- // the outer generator.
680
- context.delegate = null;
681
- return ContinueSentinel;
682
- }
683
-
684
- // Define Generator.prototype.{next,throw,return} in terms of the
685
- // unified ._invoke helper method.
686
- defineIteratorMethods(Gp);
687
-
688
- define(Gp, toStringTagSymbol, "Generator");
689
-
690
- // A Generator should always return itself as the iterator object when the
691
- // @@iterator function is called on it. Some browsers' implementations of the
692
- // iterator prototype chain incorrectly implement this, causing the Generator
693
- // object to not be returned from this call. This ensures that doesn't happen.
694
- // See https://github.com/facebook/regenerator/issues/274 for more details.
695
- define(Gp, iteratorSymbol, function() {
696
- return this;
697
- });
698
-
699
- define(Gp, "toString", function() {
700
- return "[object Generator]";
701
- });
702
-
703
- function pushTryEntry(locs) {
704
- var entry = { tryLoc: locs[0] };
705
-
706
- if (1 in locs) {
707
- entry.catchLoc = locs[1];
708
- }
709
-
710
- if (2 in locs) {
711
- entry.finallyLoc = locs[2];
712
- entry.afterLoc = locs[3];
713
- }
714
-
715
- this.tryEntries.push(entry);
716
- }
717
-
718
- function resetTryEntry(entry) {
719
- var record = entry.completion || {};
720
- record.type = "normal";
721
- delete record.arg;
722
- entry.completion = record;
723
- }
724
-
725
- function Context(tryLocsList) {
726
- // The root entry object (effectively a try statement without a catch
727
- // or a finally block) gives us a place to store values thrown from
728
- // locations where there is no enclosing try statement.
729
- this.tryEntries = [{ tryLoc: "root" }];
730
- tryLocsList.forEach(pushTryEntry, this);
731
- this.reset(true);
732
- }
733
-
734
- exports.keys = function(object) {
735
- var keys = [];
736
- for (var key in object) {
737
- keys.push(key);
738
- }
739
- keys.reverse();
740
-
741
- // Rather than returning an object with a next method, we keep
742
- // things simple and return the next function itself.
743
- return function next() {
744
- while (keys.length) {
745
- var key = keys.pop();
746
- if (key in object) {
747
- next.value = key;
748
- next.done = false;
749
- return next;
750
- }
751
- }
752
-
753
- // To avoid creating an additional object, we just hang the .value
754
- // and .done properties off the next function object itself. This
755
- // also ensures that the minifier will not anonymize the function.
756
- next.done = true;
757
- return next;
758
- };
759
- };
760
-
761
- function values(iterable) {
762
- if (iterable) {
763
- var iteratorMethod = iterable[iteratorSymbol];
764
- if (iteratorMethod) {
765
- return iteratorMethod.call(iterable);
766
- }
767
-
768
- if (typeof iterable.next === "function") {
769
- return iterable;
770
- }
771
-
772
- if (!isNaN(iterable.length)) {
773
- var i = -1, next = function next() {
774
- while (++i < iterable.length) {
775
- if (hasOwn.call(iterable, i)) {
776
- next.value = iterable[i];
777
- next.done = false;
778
- return next;
779
- }
780
- }
781
-
782
- next.value = undefined$1;
783
- next.done = true;
784
-
785
- return next;
786
- };
787
-
788
- return next.next = next;
789
- }
790
- }
791
-
792
- // Return an iterator with no values.
793
- return { next: doneResult };
794
- }
795
- exports.values = values;
796
-
797
- function doneResult() {
798
- return { value: undefined$1, done: true };
799
- }
800
-
801
- Context.prototype = {
802
- constructor: Context,
803
-
804
- reset: function(skipTempReset) {
805
- this.prev = 0;
806
- this.next = 0;
807
- // Resetting context._sent for legacy support of Babel's
808
- // function.sent implementation.
809
- this.sent = this._sent = undefined$1;
810
- this.done = false;
811
- this.delegate = null;
812
-
813
- this.method = "next";
814
- this.arg = undefined$1;
815
-
816
- this.tryEntries.forEach(resetTryEntry);
817
-
818
- if (!skipTempReset) {
819
- for (var name in this) {
820
- // Not sure about the optimal order of these conditions:
821
- if (name.charAt(0) === "t" &&
822
- hasOwn.call(this, name) &&
823
- !isNaN(+name.slice(1))) {
824
- this[name] = undefined$1;
825
- }
826
- }
827
- }
828
- },
829
-
830
- stop: function() {
831
- this.done = true;
832
-
833
- var rootEntry = this.tryEntries[0];
834
- var rootRecord = rootEntry.completion;
835
- if (rootRecord.type === "throw") {
836
- throw rootRecord.arg;
837
- }
838
-
839
- return this.rval;
840
- },
841
-
842
- dispatchException: function(exception) {
843
- if (this.done) {
844
- throw exception;
845
- }
846
-
847
- var context = this;
848
- function handle(loc, caught) {
849
- record.type = "throw";
850
- record.arg = exception;
851
- context.next = loc;
852
-
853
- if (caught) {
854
- // If the dispatched exception was caught by a catch block,
855
- // then let that catch block handle the exception normally.
856
- context.method = "next";
857
- context.arg = undefined$1;
858
- }
859
-
860
- return !! caught;
861
- }
862
-
863
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
864
- var entry = this.tryEntries[i];
865
- var record = entry.completion;
866
-
867
- if (entry.tryLoc === "root") {
868
- // Exception thrown outside of any try block that could handle
869
- // it, so set the completion value of the entire function to
870
- // throw the exception.
871
- return handle("end");
872
- }
873
-
874
- if (entry.tryLoc <= this.prev) {
875
- var hasCatch = hasOwn.call(entry, "catchLoc");
876
- var hasFinally = hasOwn.call(entry, "finallyLoc");
877
-
878
- if (hasCatch && hasFinally) {
879
- if (this.prev < entry.catchLoc) {
880
- return handle(entry.catchLoc, true);
881
- } else if (this.prev < entry.finallyLoc) {
882
- return handle(entry.finallyLoc);
883
- }
884
-
885
- } else if (hasCatch) {
886
- if (this.prev < entry.catchLoc) {
887
- return handle(entry.catchLoc, true);
888
- }
889
-
890
- } else if (hasFinally) {
891
- if (this.prev < entry.finallyLoc) {
892
- return handle(entry.finallyLoc);
893
- }
894
-
895
- } else {
896
- throw new Error("try statement without catch or finally");
897
- }
898
- }
899
- }
900
- },
901
-
902
- abrupt: function(type, arg) {
903
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
904
- var entry = this.tryEntries[i];
905
- if (entry.tryLoc <= this.prev &&
906
- hasOwn.call(entry, "finallyLoc") &&
907
- this.prev < entry.finallyLoc) {
908
- var finallyEntry = entry;
909
- break;
910
- }
911
- }
912
-
913
- if (finallyEntry &&
914
- (type === "break" ||
915
- type === "continue") &&
916
- finallyEntry.tryLoc <= arg &&
917
- arg <= finallyEntry.finallyLoc) {
918
- // Ignore the finally entry if control is not jumping to a
919
- // location outside the try/catch block.
920
- finallyEntry = null;
921
- }
922
-
923
- var record = finallyEntry ? finallyEntry.completion : {};
924
- record.type = type;
925
- record.arg = arg;
926
-
927
- if (finallyEntry) {
928
- this.method = "next";
929
- this.next = finallyEntry.finallyLoc;
930
- return ContinueSentinel;
931
- }
932
-
933
- return this.complete(record);
934
- },
935
-
936
- complete: function(record, afterLoc) {
937
- if (record.type === "throw") {
938
- throw record.arg;
939
- }
940
-
941
- if (record.type === "break" ||
942
- record.type === "continue") {
943
- this.next = record.arg;
944
- } else if (record.type === "return") {
945
- this.rval = this.arg = record.arg;
946
- this.method = "return";
947
- this.next = "end";
948
- } else if (record.type === "normal" && afterLoc) {
949
- this.next = afterLoc;
950
- }
951
-
952
- return ContinueSentinel;
953
- },
954
-
955
- finish: function(finallyLoc) {
956
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
957
- var entry = this.tryEntries[i];
958
- if (entry.finallyLoc === finallyLoc) {
959
- this.complete(entry.completion, entry.afterLoc);
960
- resetTryEntry(entry);
961
- return ContinueSentinel;
962
- }
963
- }
964
- },
965
-
966
- "catch": function(tryLoc) {
967
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
968
- var entry = this.tryEntries[i];
969
- if (entry.tryLoc === tryLoc) {
970
- var record = entry.completion;
971
- if (record.type === "throw") {
972
- var thrown = record.arg;
973
- resetTryEntry(entry);
974
- }
975
- return thrown;
976
- }
977
- }
978
-
979
- // The context.catch method must only be called with a location
980
- // argument that corresponds to a known catch block.
981
- throw new Error("illegal catch attempt");
982
- },
983
-
984
- delegateYield: function(iterable, resultName, nextLoc) {
985
- this.delegate = {
986
- iterator: values(iterable),
987
- resultName: resultName,
988
- nextLoc: nextLoc
989
- };
990
-
991
- if (this.method === "next") {
992
- // Deliberately forget the last sent value so that we don't
993
- // accidentally pass it on to the delegate.
994
- this.arg = undefined$1;
995
- }
996
-
997
- return ContinueSentinel;
998
- }
999
- };
1000
-
1001
- // Regardless of whether this script is executing as a CommonJS module
1002
- // or not, return the runtime object so that we can declare the variable
1003
- // regeneratorRuntime in the outer scope, which allows this module to be
1004
- // injected easily by `bin/regenerator --include-runtime script.js`.
1005
- return exports;
1006
-
1007
- }(
1008
- // If this script is executing as a CommonJS module, use module.exports
1009
- // as the regeneratorRuntime namespace. Otherwise create a new empty
1010
- // object. Either way, the resulting object will be used to initialize
1011
- // the regeneratorRuntime variable at the top of this file.
1012
- module.exports
1013
- ));
1014
-
1015
- try {
1016
- regeneratorRuntime = runtime;
1017
- } catch (accidentalStrictMode) {
1018
- // This module should not be running in strict mode, so the above
1019
- // assignment should always work unless something is misconfigured. Just
1020
- // in case runtime.js accidentally runs in strict mode, in modern engines
1021
- // we can explicitly access globalThis. In older engines we can escape
1022
- // strict mode using a global Function call. This could conceivably fail
1023
- // if a Content Security Policy forbids using Function, but in that case
1024
- // the proper solution is to fix the accidental strict mode problem. If
1025
- // you've misconfigured your bundler to force strict mode and applied a
1026
- // CSP to forbid Function, and you're not willing to fix either of those
1027
- // problems, please detail your unique predicament in a GitHub issue.
1028
- if (typeof globalThis === "object") {
1029
- globalThis.regeneratorRuntime = runtime;
1030
- } else {
1031
- Function("r", "regeneratorRuntime = r")(runtime);
1032
- }
1033
- }
1034
- });
1035
-
1036
625
  var _personalMetaToPrefix;
1037
626
  var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[initApis.MetadataCategory.Personal] = 'you', _personalMetaToPrefix[initApis.MetadataCategory.ChildPersonal] = 'child', _personalMetaToPrefix[initApis.MetadataCategory.OtherPersonal] = 'other', _personalMetaToPrefix);
1038
627
  /**
@@ -1042,7 +631,7 @@ var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[in
1042
631
  */
1043
632
 
1044
633
  function identificationToPersonalInformations(data, category) {
1045
- var _data$;
634
+ var _data;
1046
635
 
1047
636
  var prefix = personalMetaToPrefix[category];
1048
637
  return {
@@ -1052,7 +641,7 @@ function identificationToPersonalInformations(data, category) {
1052
641
  name: data[prefix + "Name"],
1053
642
  phone: data[prefix + "Phone"],
1054
643
  zip: data[prefix + "Zip"],
1055
- hid: (_data$ = data[prefix + "HID"]) != null ? _data$ : data[prefix + "ID"],
644
+ hid: (_data = data[prefix + "HID"]) != null ? _data : data[prefix + "ID"],
1056
645
  pharmacy: data[prefix + "Pharmacy"],
1057
646
  address: data[prefix + "Address"]
1058
647
  };
@@ -1261,9 +850,9 @@ function filterTriggeredAnsweredWithKind(_x, _x2) {
1261
850
  */
1262
851
 
1263
852
  function _filterTriggeredAnsweredWithKind() {
1264
- _filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(workflowData, kind) {
853
+ _filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(workflowData, kind) {
1265
854
  var flattenedAnswers, triggeredQuestionsWithKind, samePageAnswers, res;
1266
- return runtime_1.wrap(function _callee$(_context) {
855
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
1267
856
  while (1) {
1268
857
  switch (_context.prev = _context.next) {
1269
858
  case 0:
@@ -1307,9 +896,9 @@ function getWorkflowDataByCategory(_x3, _x4) {
1307
896
  }
1308
897
 
1309
898
  function _getWorkflowDataByCategory() {
1310
- _getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(workflowData, category) {
899
+ _getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(workflowData, category) {
1311
900
  var flattenedAnswers, triggeredQuestions, fields;
1312
- return runtime_1.wrap(function _callee2$(_context2) {
901
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1313
902
  while (1) {
1314
903
  switch (_context2.prev = _context2.next) {
1315
904
  case 0:
@@ -1380,8 +969,8 @@ function getImagesFromIndexDb(_x5) {
1380
969
  */
1381
970
 
1382
971
  function _getImagesFromIndexDb() {
1383
- _getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(answer) {
1384
- return runtime_1.wrap(function _callee3$(_context3) {
972
+ _getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(answer) {
973
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
1385
974
  while (1) {
1386
975
  switch (_context3.prev = _context3.next) {
1387
976
  case 0:
@@ -1457,9 +1046,9 @@ function populateWorkflowField(_x6, _x7) {
1457
1046
 
1458
1047
 
1459
1048
  function _populateWorkflowField() {
1460
- _populateWorkflowField = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(question, answerValue) {
1049
+ _populateWorkflowField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(question, answerValue) {
1461
1050
  var answer, displayedAnswer;
1462
- return runtime_1.wrap(function _callee4$(_context4) {
1051
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
1463
1052
  while (1) {
1464
1053
  switch (_context4.prev = _context4.next) {
1465
1054
  case 0:
@@ -1652,10 +1241,10 @@ function registerPatient(_x, _x2, _x3, _x4, _x5, _x6, _x7, _x8) {
1652
1241
  */
1653
1242
 
1654
1243
  function _registerPatient() {
1655
- _registerPatient = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(patientUuid, consultRequest, workflow, oroClient, masterKey, recoveryQA, indexSearch, onProgress) {
1244
+ _registerPatient = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(patientUuid, consultRequest, workflow, oroClient, masterKey, recoveryQA, indexSearch, onProgress) {
1656
1245
  var consult, lockboxUuid, practitionerAdmin, retry, identity, errorsThrown, stepsTotalNum, currentStep, _ret;
1657
1246
 
1658
- return runtime_1.wrap(function _callee4$(_context4) {
1247
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
1659
1248
  while (1) {
1660
1249
  switch (_context4.prev = _context4.next) {
1661
1250
  case 0:
@@ -1678,11 +1267,11 @@ function _registerPatient() {
1678
1267
  }
1679
1268
 
1680
1269
  _context4.prev = 9;
1681
- return _context4.delegateYield( /*#__PURE__*/runtime_1.mark(function _callee3() {
1270
+ return _context4.delegateYield( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
1682
1271
  var _consultIndex, _identity, _identity2;
1683
1272
 
1684
1273
  var practitioners, grantPromises, consultIndex, consultIndexPromises;
1685
- return runtime_1.wrap(function _callee3$(_context3) {
1274
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
1686
1275
  while (1) {
1687
1276
  switch (_context3.prev = _context3.next) {
1688
1277
  case 0:
@@ -1761,7 +1350,6 @@ function _registerPatient() {
1761
1350
  return oroClient.grantLockbox(practitionerAdmin, lockboxUuid)["catch"](function (err) {
1762
1351
  console.error("Error while granting lockbox to practitioner admin " + practitionerAdmin, err); // if we cannot grant to the admin, then the registration will fail
1763
1352
 
1764
- // if we cannot grant to the admin, then the registration will fail
1765
1353
  errorsThrown.push(err);
1766
1354
  });
1767
1355
 
@@ -1771,15 +1359,14 @@ function _registerPatient() {
1771
1359
  grantPromises = practitioners.filter(function (practitioner) {
1772
1360
  return practitioner.uuid !== practitionerAdmin;
1773
1361
  }).map( /*#__PURE__*/function () {
1774
- var _ref = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(practitioner) {
1775
- return runtime_1.wrap(function _callee$(_context) {
1362
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(practitioner) {
1363
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
1776
1364
  while (1) {
1777
1365
  switch (_context.prev = _context.next) {
1778
1366
  case 0:
1779
1367
  return _context.abrupt("return", oroClient.grantLockbox(practitioner.uuid, lockboxUuid)["catch"](function (err) {
1780
1368
  console.error("Error while granting lockbox to practitioner", err); // Acceptable to continue as admin has already been granted, but we should still retry until the last retry remains
1781
1369
 
1782
- // Acceptable to continue as admin has already been granted, but we should still retry until the last retry remains
1783
1370
  if (retry <= 1) return;
1784
1371
  errorsThrown.push(err);
1785
1372
  }));
@@ -1805,15 +1392,14 @@ function _registerPatient() {
1805
1392
  }], _consultIndex); // the index will identify in which lockbox a consultation resides
1806
1393
 
1807
1394
  consultIndexPromises = practitioners.map( /*#__PURE__*/function () {
1808
- var _ref2 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(practitioner) {
1809
- return runtime_1.wrap(function _callee2$(_context2) {
1395
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(practitioner) {
1396
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1810
1397
  while (1) {
1811
1398
  switch (_context2.prev = _context2.next) {
1812
1399
  case 0:
1813
1400
  return _context2.abrupt("return", oroClient.vaultIndexAdd(consultIndex, practitioner.uuid)["catch"](function (err) {
1814
1401
  console.error("[SDK: registration] Error while adding to the practitioner's index " + practitioner.uuid, err); // Acceptable to continue as the index can be rebuilt, but we should still retry until the last retry remains
1815
1402
 
1816
- // Acceptable to continue as the index can be rebuilt, but we should still retry until the last retry remains
1817
1403
  if (retry <= 1) return;else errorsThrown.push(err);
1818
1404
  }));
1819
1405
 
@@ -1837,7 +1423,6 @@ function _registerPatient() {
1837
1423
  } : undefined)["catch"](function (err) {
1838
1424
  console.error('[SDK: registration] Some errors happened during image upload', err); // Acceptable to continue as images can be requested during the consultation, but we should still retry until the last retry remains
1839
1425
 
1840
- // Acceptable to continue as images can be requested during the consultation, but we should still retry until the last retry remains
1841
1426
  if (retry <= 1) return;else errorsThrown.push(err);
1842
1427
  });
1843
1428
 
@@ -1862,7 +1447,6 @@ function _registerPatient() {
1862
1447
  return oroClient.updateMasterKey(patientUuid, masterKey, lockboxUuid)["catch"](function (err) {
1863
1448
  console.error("[SDK: registration] Error while updating master key", err); /// it's acceptable to continue registration (return old identity)
1864
1449
 
1865
- /// it's acceptable to continue registration (return old identity)
1866
1450
  if (retry <= 1) return;
1867
1451
  errorsThrown.push(err);
1868
1452
  return identity;
@@ -1889,7 +1473,6 @@ function _registerPatient() {
1889
1473
  return oroClient.updateSecurityQuestions(patientUuid, recoveryQA.recoverySecurityQuestions, recoveryQA.recoverySecurityAnswers, 2)["catch"](function (err) {
1890
1474
  console.error("[SDK: registration] Error while updating security questions", err); /// it's acceptable to continue registration (return old identity)
1891
1475
 
1892
- /// it's acceptable to continue registration (return old identity)
1893
1476
  if (retry <= 1) return;
1894
1477
  errorsThrown.push(err);
1895
1478
  return identity;
@@ -1915,7 +1498,6 @@ function _registerPatient() {
1915
1498
  console.error('[SDK: registration] personal information not found or another error occured during search indexing', err);
1916
1499
  if (retry <= 1) return; // this statement is to avoid failing the registration due to the failure in search indexing the consult, this practically implements a soft retry
1917
1500
 
1918
- // this statement is to avoid failing the registration due to the failure in search indexing the consult, this practically implements a soft retry
1919
1501
  errorsThrown.push(err);
1920
1502
  });
1921
1503
 
@@ -2014,9 +1596,9 @@ function getOrCreatePatientConsultationUuid(_x9, _x10) {
2014
1596
 
2015
1597
 
2016
1598
  function _getOrCreatePatientConsultationUuid() {
2017
- _getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(consult, oroClient) {
1599
+ _getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(consult, oroClient) {
2018
1600
  var payment;
2019
- return runtime_1.wrap(function _callee5$(_context5) {
1601
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
2020
1602
  while (1) {
2021
1603
  switch (_context5.prev = _context5.next) {
2022
1604
  case 0:
@@ -2071,9 +1653,9 @@ function getOrCreatePatientLockbox(_x11) {
2071
1653
 
2072
1654
 
2073
1655
  function _getOrCreatePatientLockbox() {
2074
- _getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(oroClient) {
1656
+ _getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(oroClient) {
2075
1657
  var grants, lockboxResponse, tokens;
2076
- return runtime_1.wrap(function _callee6$(_context6) {
1658
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
2077
1659
  while (1) {
2078
1660
  switch (_context6.prev = _context6.next) {
2079
1661
  case 0:
@@ -2133,8 +1715,8 @@ function storePatientData(_x12, _x13, _x14, _x15, _x16) {
2133
1715
  }
2134
1716
 
2135
1717
  function _storePatientData() {
2136
- _storePatientData = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(consultationId, isoLanguage, lockboxUuid, workflow, oroClient) {
2137
- return runtime_1.wrap(function _callee7$(_context7) {
1718
+ _storePatientData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(consultationId, isoLanguage, lockboxUuid, workflow, oroClient) {
1719
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
2138
1720
  while (1) {
2139
1721
  switch (_context7.prev = _context7.next) {
2140
1722
  case 0:
@@ -2191,9 +1773,9 @@ function storeImageAliases(_x17, _x18, _x19, _x20, _x21) {
2191
1773
 
2192
1774
 
2193
1775
  function _storeImageAliases() {
2194
- _storeImageAliases = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(consultationId, lockboxUuid, workflow, oroClient, progress) {
1776
+ _storeImageAliases = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(consultationId, lockboxUuid, workflow, oroClient, progress) {
2195
1777
  var images, nonNullImages, storedImagesNum, totalImagesNum, promises;
2196
- return runtime_1.wrap(function _callee8$(_context8) {
1778
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
2197
1779
  while (1) {
2198
1780
  switch (_context8.prev = _context8.next) {
2199
1781
  case 0:
@@ -2260,8 +1842,8 @@ function extractAndStorePersonalWorkflowData(_x22, _x23, _x24, _x25, _x26) {
2260
1842
  */
2261
1843
 
2262
1844
  function _extractAndStorePersonalWorkflowData() {
2263
- _extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(workflow, lockboxUuid, consultationId, category, oroClient) {
2264
- return runtime_1.wrap(function _callee9$(_context9) {
1845
+ _extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(workflow, lockboxUuid, consultationId, category, oroClient) {
1846
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
2265
1847
  while (1) {
2266
1848
  switch (_context9.prev = _context9.next) {
2267
1849
  case 0:
@@ -2295,8 +1877,8 @@ function extractPersonalInfoFromWorkflowData(_x27) {
2295
1877
  */
2296
1878
 
2297
1879
  function _extractPersonalInfoFromWorkflowData() {
2298
- _extractPersonalInfoFromWorkflowData = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(workflow) {
2299
- return runtime_1.wrap(function _callee10$(_context10) {
1880
+ _extractPersonalInfoFromWorkflowData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(workflow) {
1881
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
2300
1882
  while (1) {
2301
1883
  switch (_context10.prev = _context10.next) {
2302
1884
  case 0:
@@ -2326,10 +1908,10 @@ function buildConsultSearchIndex(_x28, _x29, _x30) {
2326
1908
  }
2327
1909
 
2328
1910
  function _buildConsultSearchIndex() {
2329
- _buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(consult, workflow, oroClient) {
1911
+ _buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(consult, workflow, oroClient) {
2330
1912
  var terms, _yield$extractPersona, personalInfoPopulatedWfData, childPersonalInfoPopulatedWfData, otherPersonalInfoPopulatedWfData, personalInfo, childPersonalInfo, otherPersonalInfo;
2331
1913
 
2332
- return runtime_1.wrap(function _callee11$(_context11) {
1914
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
2333
1915
  while (1) {
2334
1916
  switch (_context11.prev = _context11.next) {
2335
1917
  case 0:
@@ -2450,10 +2032,10 @@ function filterGrantsWithLockboxMetadata(_x, _x2) {
2450
2032
  }
2451
2033
 
2452
2034
  function _filterGrantsWithLockboxMetadata() {
2453
- _filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(oroClient, filter) {
2035
+ _filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(oroClient, filter) {
2454
2036
  var grants, filteredGrants, _iterator, _step, grant, consultationIdExistsInMetadata;
2455
2037
 
2456
- return runtime_1.wrap(function _callee$(_context) {
2038
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
2457
2039
  while (1) {
2458
2040
  switch (_context.prev = _context.next) {
2459
2041
  case 0:
@@ -2526,8 +2108,8 @@ var OroClient = /*#__PURE__*/function () {
2526
2108
  _proto.cleanIndex =
2527
2109
  /*#__PURE__*/
2528
2110
  function () {
2529
- var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee() {
2530
- return runtime_1.wrap(function _callee$(_context) {
2111
+ var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
2112
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
2531
2113
  while (1) {
2532
2114
  switch (_context.prev = _context.next) {
2533
2115
  case 0:
@@ -2564,9 +2146,9 @@ var OroClient = /*#__PURE__*/function () {
2564
2146
  _proto.signUp =
2565
2147
  /*#__PURE__*/
2566
2148
  function () {
2567
- var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(email, password, practice, tosAndCpAcceptance, tokenData, subscription, skipEmailValidation) {
2149
+ var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(email, password, practice, tosAndCpAcceptance, tokenData, subscription, skipEmailValidation) {
2568
2150
  var privateKey, symmetricEncryptor, recoveryPassword, hashedPassword, emailConfirmed, signupRequest, identity, symetricEncryptor;
2569
- return runtime_1.wrap(function _callee2$(_context2) {
2151
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2570
2152
  while (1) {
2571
2153
  switch (_context2.prev = _context2.next) {
2572
2154
  case 0:
@@ -2625,9 +2207,9 @@ var OroClient = /*#__PURE__*/function () {
2625
2207
  _proto.confirmEmail =
2626
2208
  /*#__PURE__*/
2627
2209
  function () {
2628
- var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(accessToken) {
2210
+ var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(accessToken) {
2629
2211
  var claims;
2630
- return runtime_1.wrap(function _callee3$(_context3) {
2212
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
2631
2213
  while (1) {
2632
2214
  switch (_context3.prev = _context3.next) {
2633
2215
  case 0:
@@ -2672,9 +2254,9 @@ var OroClient = /*#__PURE__*/function () {
2672
2254
  _proto.signIn =
2673
2255
  /*#__PURE__*/
2674
2256
  function () {
2675
- var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(practiceUuid, email, password, otp) {
2257
+ var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(practiceUuid, email, password, otp) {
2676
2258
  var hashedPassword, tokenRequest, userUuid;
2677
- return runtime_1.wrap(function _callee4$(_context4) {
2259
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
2678
2260
  while (1) {
2679
2261
  switch (_context4.prev = _context4.next) {
2680
2262
  case 0:
@@ -2727,9 +2309,9 @@ var OroClient = /*#__PURE__*/function () {
2727
2309
  _proto.resumeSession =
2728
2310
  /*#__PURE__*/
2729
2311
  function () {
2730
- var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5() {
2312
+ var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
2731
2313
  var id, recoveryPayload, recoveryKey, symmetricDecryptor, privateKey;
2732
- return runtime_1.wrap(function _callee5$(_context5) {
2314
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
2733
2315
  while (1) {
2734
2316
  switch (_context5.prev = _context5.next) {
2735
2317
  case 0:
@@ -2830,8 +2412,8 @@ var OroClient = /*#__PURE__*/function () {
2830
2412
  _proto.signOut =
2831
2413
  /*#__PURE__*/
2832
2414
  function () {
2833
- var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6() {
2834
- return runtime_1.wrap(function _callee6$(_context6) {
2415
+ var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
2416
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
2835
2417
  while (1) {
2836
2418
  switch (_context6.prev = _context6.next) {
2837
2419
  case 0:
@@ -2882,8 +2464,8 @@ var OroClient = /*#__PURE__*/function () {
2882
2464
  _proto.registerPatient =
2883
2465
  /*#__PURE__*/
2884
2466
  function () {
2885
- var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(patientUuid, consult, workflow, recoveryQA, indexSearch, onProgress) {
2886
- return runtime_1.wrap(function _callee7$(_context7) {
2467
+ var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(patientUuid, consult, workflow, recoveryQA, indexSearch, onProgress) {
2468
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
2887
2469
  while (1) {
2888
2470
  switch (_context7.prev = _context7.next) {
2889
2471
  case 0:
@@ -2924,12 +2506,12 @@ var OroClient = /*#__PURE__*/function () {
2924
2506
  _proto.forceUpdateIndexEntries =
2925
2507
  /*#__PURE__*/
2926
2508
  function () {
2927
- var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9() {
2509
+ var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
2928
2510
  var _this = this,
2929
2511
  _this$vaultIndexAdd;
2930
2512
 
2931
2513
  var grants, indexConsultLockbox;
2932
- return runtime_1.wrap(function _callee9$(_context9) {
2514
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
2933
2515
  while (1) {
2934
2516
  switch (_context9.prev = _context9.next) {
2935
2517
  case 0:
@@ -2940,8 +2522,8 @@ var OroClient = /*#__PURE__*/function () {
2940
2522
  grants = _context9.sent;
2941
2523
  _context9.next = 5;
2942
2524
  return Promise.all(grants.map( /*#__PURE__*/function () {
2943
- var _ref2 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(grant) {
2944
- return runtime_1.wrap(function _callee8$(_context8) {
2525
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(grant) {
2526
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
2945
2527
  while (1) {
2946
2528
  switch (_context8.prev = _context8.next) {
2947
2529
  case 0:
@@ -3017,10 +2599,10 @@ var OroClient = /*#__PURE__*/function () {
3017
2599
  _proto.vaultIndexAdd =
3018
2600
  /*#__PURE__*/
3019
2601
  function () {
3020
- var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(entries, indexOwnerUuid) {
2602
+ var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(entries, indexOwnerUuid) {
3021
2603
  var rsaPub, base64IndexOwnerPubKey, encryptedIndex, _i, _Object$keys, keyString, key;
3022
2604
 
3023
- return runtime_1.wrap(function _callee10$(_context10) {
2605
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
3024
2606
  while (1) {
3025
2607
  switch (_context10.prev = _context10.next) {
3026
2608
  case 0:
@@ -3118,9 +2700,9 @@ var OroClient = /*#__PURE__*/function () {
3118
2700
  _proto.grantLockbox =
3119
2701
  /*#__PURE__*/
3120
2702
  function () {
3121
- var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(granteeUuid, lockboxUuid, lockboxOwnerUuid) {
2703
+ var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(granteeUuid, lockboxUuid, lockboxOwnerUuid) {
3122
2704
  var secret, base64GranteePublicKey, granteePublicKey, granteeEncryptedSecret, request;
3123
- return runtime_1.wrap(function _callee11$(_context11) {
2705
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
3124
2706
  while (1) {
3125
2707
  switch (_context11.prev = _context11.next) {
3126
2708
  case 0:
@@ -3180,9 +2762,9 @@ var OroClient = /*#__PURE__*/function () {
3180
2762
  _proto.createMessageData =
3181
2763
  /*#__PURE__*/
3182
2764
  function () {
3183
- var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee12(lockboxUuid, message, consultationId, lockboxOwnerUuid, previousDataUuid) {
2765
+ var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(lockboxUuid, message, consultationId, lockboxOwnerUuid, previousDataUuid) {
3184
2766
  var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
3185
- return runtime_1.wrap(function _callee12$(_context12) {
2767
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
3186
2768
  while (1) {
3187
2769
  switch (_context12.prev = _context12.next) {
3188
2770
  case 0:
@@ -3252,9 +2834,9 @@ var OroClient = /*#__PURE__*/function () {
3252
2834
  _proto.createMessageAttachmentData =
3253
2835
  /*#__PURE__*/
3254
2836
  function () {
3255
- var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee13(lockboxUuid, data, consultationId, lockboxOwnerUuid, previousDataUuid) {
2837
+ var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(lockboxUuid, data, consultationId, lockboxOwnerUuid, previousDataUuid) {
3256
2838
  var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
3257
- return runtime_1.wrap(function _callee13$(_context13) {
2839
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
3258
2840
  while (1) {
3259
2841
  switch (_context13.prev = _context13.next) {
3260
2842
  case 0:
@@ -3339,8 +2921,8 @@ var OroClient = /*#__PURE__*/function () {
3339
2921
  _proto.createConsultationAttachmentData =
3340
2922
  /*#__PURE__*/
3341
2923
  function () {
3342
- var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee14(lockboxUuid, data, consultationId, documentType, lockboxOwnerUuid, previousDataUuid) {
3343
- return runtime_1.wrap(function _callee14$(_context14) {
2924
+ var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(lockboxUuid, data, consultationId, documentType, lockboxOwnerUuid, previousDataUuid) {
2925
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
3344
2926
  while (1) {
3345
2927
  switch (_context14.prev = _context14.next) {
3346
2928
  case 0:
@@ -3411,9 +2993,9 @@ var OroClient = /*#__PURE__*/function () {
3411
2993
  _proto.createJsonData =
3412
2994
  /*#__PURE__*/
3413
2995
  function () {
3414
- var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee15(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
2996
+ var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
3415
2997
  var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
3416
- return runtime_1.wrap(function _callee15$(_context15) {
2998
+ return _regeneratorRuntime().wrap(function _callee15$(_context15) {
3417
2999
  while (1) {
3418
3000
  switch (_context15.prev = _context15.next) {
3419
3001
  case 0:
@@ -3467,9 +3049,9 @@ var OroClient = /*#__PURE__*/function () {
3467
3049
  _proto.getOrInsertJsonData =
3468
3050
  /*#__PURE__*/
3469
3051
  function () {
3470
- var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee16(lockboxUuid, data, publicMetadata, privateMetadata, forceReplace) {
3052
+ var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(lockboxUuid, data, publicMetadata, privateMetadata, forceReplace) {
3471
3053
  var manifest;
3472
- return runtime_1.wrap(function _callee16$(_context16) {
3054
+ return _regeneratorRuntime().wrap(function _callee16$(_context16) {
3473
3055
  while (1) {
3474
3056
  switch (_context16.prev = _context16.next) {
3475
3057
  case 0:
@@ -3532,9 +3114,9 @@ var OroClient = /*#__PURE__*/function () {
3532
3114
  _proto.createBytesData =
3533
3115
  /*#__PURE__*/
3534
3116
  function () {
3535
- var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee17(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
3117
+ var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
3536
3118
  var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
3537
- return runtime_1.wrap(function _callee17$(_context17) {
3119
+ return _regeneratorRuntime().wrap(function _callee17$(_context17) {
3538
3120
  while (1) {
3539
3121
  switch (_context17.prev = _context17.next) {
3540
3122
  case 0:
@@ -3590,10 +3172,10 @@ var OroClient = /*#__PURE__*/function () {
3590
3172
  _proto.getJsonData =
3591
3173
  /*#__PURE__*/
3592
3174
  function () {
3593
- var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee18(lockboxUuid, dataUuid, lockboxOwnerUuid) {
3175
+ var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(lockboxUuid, dataUuid, lockboxOwnerUuid) {
3594
3176
  var _yield$Promise$all, encryptedPayload, symmetricDecryptor;
3595
3177
 
3596
- return runtime_1.wrap(function _callee18$(_context18) {
3178
+ return _regeneratorRuntime().wrap(function _callee18$(_context18) {
3597
3179
  while (1) {
3598
3180
  switch (_context18.prev = _context18.next) {
3599
3181
  case 0:
@@ -3640,10 +3222,10 @@ var OroClient = /*#__PURE__*/function () {
3640
3222
  _proto.getBytesData =
3641
3223
  /*#__PURE__*/
3642
3224
  function () {
3643
- var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee19(lockboxUuid, dataUuid, lockboxOwnerUuid) {
3225
+ var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(lockboxUuid, dataUuid, lockboxOwnerUuid) {
3644
3226
  var _yield$Promise$all2, encryptedPayload, symmetricDecryptor;
3645
3227
 
3646
- return runtime_1.wrap(function _callee19$(_context19) {
3228
+ return _regeneratorRuntime().wrap(function _callee19$(_context19) {
3647
3229
  while (1) {
3648
3230
  switch (_context19.prev = _context19.next) {
3649
3231
  case 0:
@@ -3693,9 +3275,9 @@ var OroClient = /*#__PURE__*/function () {
3693
3275
  _proto.getGrants =
3694
3276
  /*#__PURE__*/
3695
3277
  function () {
3696
- var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee20(filter) {
3278
+ var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(filter) {
3697
3279
  var filterString, currentAccountRole, encryptedGrants, decryptedGrants, grantsByConsultLockbox, decryptedConsults;
3698
- return runtime_1.wrap(function _callee20$(_context20) {
3280
+ return _regeneratorRuntime().wrap(function _callee20$(_context20) {
3699
3281
  while (1) {
3700
3282
  switch (_context20.prev = _context20.next) {
3701
3283
  case 0:
@@ -3826,8 +3408,8 @@ var OroClient = /*#__PURE__*/function () {
3826
3408
  _proto.getAccountRole =
3827
3409
  /*#__PURE__*/
3828
3410
  function () {
3829
- var _getAccountRole = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee21() {
3830
- return runtime_1.wrap(function _callee21$(_context21) {
3411
+ var _getAccountRole = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
3412
+ return _regeneratorRuntime().wrap(function _callee21$(_context21) {
3831
3413
  while (1) {
3832
3414
  switch (_context21.prev = _context21.next) {
3833
3415
  case 0:
@@ -3863,9 +3445,9 @@ var OroClient = /*#__PURE__*/function () {
3863
3445
  _proto.getCachedSecretCryptor =
3864
3446
  /*#__PURE__*/
3865
3447
  function () {
3866
- var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee22(lockboxUuid, lockboxOwnerUuid) {
3448
+ var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(lockboxUuid, lockboxOwnerUuid) {
3867
3449
  var index, encryptedSecret, secret, cryptor;
3868
- return runtime_1.wrap(function _callee22$(_context22) {
3450
+ return _regeneratorRuntime().wrap(function _callee22$(_context22) {
3869
3451
  while (1) {
3870
3452
  switch (_context22.prev = _context22.next) {
3871
3453
  case 0:
@@ -3930,8 +3512,8 @@ var OroClient = /*#__PURE__*/function () {
3930
3512
  _proto.getPersonalInformationsFromConsultId =
3931
3513
  /*#__PURE__*/
3932
3514
  function () {
3933
- var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee23(consultationId, category, forceRefresh) {
3934
- return runtime_1.wrap(function _callee23$(_context23) {
3515
+ var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(consultationId, category, forceRefresh) {
3516
+ return _regeneratorRuntime().wrap(function _callee23$(_context23) {
3935
3517
  while (1) {
3936
3518
  switch (_context23.prev = _context23.next) {
3937
3519
  case 0:
@@ -3968,8 +3550,8 @@ var OroClient = /*#__PURE__*/function () {
3968
3550
  _proto.getMedicalDataFromConsultId =
3969
3551
  /*#__PURE__*/
3970
3552
  function () {
3971
- var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee24(consultationId, forceRefresh) {
3972
- return runtime_1.wrap(function _callee24$(_context24) {
3553
+ var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(consultationId, forceRefresh) {
3554
+ return _regeneratorRuntime().wrap(function _callee24$(_context24) {
3973
3555
  while (1) {
3974
3556
  switch (_context24.prev = _context24.next) {
3975
3557
  case 0:
@@ -3995,12 +3577,12 @@ var OroClient = /*#__PURE__*/function () {
3995
3577
  }();
3996
3578
 
3997
3579
  _proto.getMetaCategoryFromConsultId = /*#__PURE__*/function () {
3998
- var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee26(consultationId, category, forceRefresh) {
3580
+ var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(consultationId, category, forceRefresh) {
3999
3581
  var _this2 = this;
4000
3582
 
4001
3583
  var grants, workflowData, _loop, _iterator, _step;
4002
3584
 
4003
- return runtime_1.wrap(function _callee26$(_context27) {
3585
+ return _regeneratorRuntime().wrap(function _callee26$(_context27) {
4004
3586
  while (1) {
4005
3587
  switch (_context27.prev = _context27.next) {
4006
3588
  case 0:
@@ -4016,9 +3598,9 @@ var OroClient = /*#__PURE__*/function () {
4016
3598
  case 3:
4017
3599
  grants = _context27.sent;
4018
3600
  workflowData = [];
4019
- _loop = /*#__PURE__*/runtime_1.mark(function _loop() {
3601
+ _loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop() {
4020
3602
  var grant, manifest, data;
4021
- return runtime_1.wrap(function _loop$(_context26) {
3603
+ return _regeneratorRuntime().wrap(function _loop$(_context26) {
4022
3604
  while (1) {
4023
3605
  switch (_context26.prev = _context26.next) {
4024
3606
  case 0:
@@ -4052,8 +3634,8 @@ var OroClient = /*#__PURE__*/function () {
4052
3634
  case 8:
4053
3635
  _context26.next = 10;
4054
3636
  return Promise.all(manifest.map( /*#__PURE__*/function () {
4055
- var _ref3 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee25(entry) {
4056
- return runtime_1.wrap(function _callee25$(_context25) {
3637
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(entry) {
3638
+ return _regeneratorRuntime().wrap(function _callee25$(_context25) {
4057
3639
  while (1) {
4058
3640
  switch (_context25.prev = _context25.next) {
4059
3641
  case 0:
@@ -4137,9 +3719,9 @@ var OroClient = /*#__PURE__*/function () {
4137
3719
  _proto.getPersonalInformations =
4138
3720
  /*#__PURE__*/
4139
3721
  function () {
4140
- var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee27(userId) {
3722
+ var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27(userId) {
4141
3723
  var grant, lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
4142
- return runtime_1.wrap(function _callee27$(_context28) {
3724
+ return _regeneratorRuntime().wrap(function _callee27$(_context28) {
4143
3725
  while (1) {
4144
3726
  switch (_context28.prev = _context28.next) {
4145
3727
  case 0:
@@ -4225,9 +3807,9 @@ var OroClient = /*#__PURE__*/function () {
4225
3807
  _proto.getGrantFromConsultId =
4226
3808
  /*#__PURE__*/
4227
3809
  function () {
4228
- var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee28(consultationId) {
3810
+ var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28(consultationId) {
4229
3811
  var grants;
4230
- return runtime_1.wrap(function _callee28$(_context29) {
3812
+ return _regeneratorRuntime().wrap(function _callee28$(_context29) {
4231
3813
  while (1) {
4232
3814
  switch (_context29.prev = _context29.next) {
4233
3815
  case 0:
@@ -4273,9 +3855,9 @@ var OroClient = /*#__PURE__*/function () {
4273
3855
  _proto.getIdentityFromConsultId =
4274
3856
  /*#__PURE__*/
4275
3857
  function () {
4276
- var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee29(consultationId) {
3858
+ var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29(consultationId) {
4277
3859
  var grant;
4278
- return runtime_1.wrap(function _callee29$(_context30) {
3860
+ return _regeneratorRuntime().wrap(function _callee29$(_context30) {
4279
3861
  while (1) {
4280
3862
  switch (_context30.prev = _context30.next) {
4281
3863
  case 0:
@@ -4328,11 +3910,11 @@ var OroClient = /*#__PURE__*/function () {
4328
3910
  _proto.getLockboxManifest =
4329
3911
  /*#__PURE__*/
4330
3912
  function () {
4331
- var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee31(lockboxUuid, filter, expandPrivateMetadata, lockboxOwnerUuid, forceRefresh) {
3913
+ var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(lockboxUuid, filter, expandPrivateMetadata, lockboxOwnerUuid, forceRefresh) {
4332
3914
  var _this3 = this;
4333
3915
 
4334
3916
  var manifestKey;
4335
- return runtime_1.wrap(function _callee31$(_context32) {
3917
+ return _regeneratorRuntime().wrap(function _callee31$(_context32) {
4336
3918
  while (1) {
4337
3919
  switch (_context32.prev = _context32.next) {
4338
3920
  case 0:
@@ -4357,9 +3939,9 @@ var OroClient = /*#__PURE__*/function () {
4357
3939
  case 4:
4358
3940
  return _context32.abrupt("return", this.vaultClient.lockboxManifestGet(lockboxUuid, filter, lockboxOwnerUuid).then(function (manifest) {
4359
3941
  return Promise.all(manifest.map( /*#__PURE__*/function () {
4360
- var _ref4 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee30(entry) {
3942
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30(entry) {
4361
3943
  var privateMeta;
4362
- return runtime_1.wrap(function _callee30$(_context31) {
3944
+ return _regeneratorRuntime().wrap(function _callee30$(_context31) {
4363
3945
  while (1) {
4364
3946
  switch (_context31.prev = _context31.next) {
4365
3947
  case 0:
@@ -4420,11 +4002,11 @@ var OroClient = /*#__PURE__*/function () {
4420
4002
  _proto.createPersonalInformations =
4421
4003
  /*#__PURE__*/
4422
4004
  function () {
4423
- var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee32(identity, data, dataUuid) {
4005
+ var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32(identity, data, dataUuid) {
4424
4006
  var _yield$this$getGrants;
4425
4007
 
4426
4008
  var lockboxUuid;
4427
- return runtime_1.wrap(function _callee32$(_context33) {
4009
+ return _regeneratorRuntime().wrap(function _callee32$(_context33) {
4428
4010
  while (1) {
4429
4011
  switch (_context33.prev = _context33.next) {
4430
4012
  case 0:
@@ -4490,11 +4072,11 @@ var OroClient = /*#__PURE__*/function () {
4490
4072
  _proto.createUserPreference =
4491
4073
  /*#__PURE__*/
4492
4074
  function () {
4493
- var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee33(identity, preference, dataUuid) {
4075
+ var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee33(identity, preference, dataUuid) {
4494
4076
  var _yield$this$getGrants2;
4495
4077
 
4496
4078
  var lockboxUuid;
4497
- return runtime_1.wrap(function _callee33$(_context34) {
4079
+ return _regeneratorRuntime().wrap(function _callee33$(_context34) {
4498
4080
  while (1) {
4499
4081
  switch (_context34.prev = _context34.next) {
4500
4082
  case 0:
@@ -4558,9 +4140,9 @@ var OroClient = /*#__PURE__*/function () {
4558
4140
  _proto.getDataFromGrant =
4559
4141
  /*#__PURE__*/
4560
4142
  function () {
4561
- var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee34(grant, filter) {
4143
+ var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee34(grant, filter) {
4562
4144
  var lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
4563
- return runtime_1.wrap(function _callee34$(_context35) {
4145
+ return _regeneratorRuntime().wrap(function _callee34$(_context35) {
4564
4146
  while (1) {
4565
4147
  switch (_context35.prev = _context35.next) {
4566
4148
  case 0:
@@ -4626,9 +4208,9 @@ var OroClient = /*#__PURE__*/function () {
4626
4208
  _proto.getUserPreferenceFromConsultId =
4627
4209
  /*#__PURE__*/
4628
4210
  function () {
4629
- var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee35(consultationId) {
4211
+ var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee35(consultationId) {
4630
4212
  var grant;
4631
- return runtime_1.wrap(function _callee35$(_context36) {
4213
+ return _regeneratorRuntime().wrap(function _callee35$(_context36) {
4632
4214
  while (1) {
4633
4215
  switch (_context36.prev = _context36.next) {
4634
4216
  case 0:
@@ -4675,9 +4257,9 @@ var OroClient = /*#__PURE__*/function () {
4675
4257
  _proto.getUserPreference =
4676
4258
  /*#__PURE__*/
4677
4259
  function () {
4678
- var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee36(identity) {
4260
+ var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee36(identity) {
4679
4261
  var grant;
4680
- return runtime_1.wrap(function _callee36$(_context37) {
4262
+ return _regeneratorRuntime().wrap(function _callee36$(_context37) {
4681
4263
  while (1) {
4682
4264
  switch (_context37.prev = _context37.next) {
4683
4265
  case 0:
@@ -4726,9 +4308,9 @@ var OroClient = /*#__PURE__*/function () {
4726
4308
  _proto.getRecoveryDataFromConsultId =
4727
4309
  /*#__PURE__*/
4728
4310
  function () {
4729
- var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee37(consultationId) {
4311
+ var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee37(consultationId) {
4730
4312
  var grant;
4731
- return runtime_1.wrap(function _callee37$(_context38) {
4313
+ return _regeneratorRuntime().wrap(function _callee37$(_context38) {
4732
4314
  while (1) {
4733
4315
  switch (_context38.prev = _context38.next) {
4734
4316
  case 0:
@@ -4775,9 +4357,9 @@ var OroClient = /*#__PURE__*/function () {
4775
4357
  _proto.getRecoveryData =
4776
4358
  /*#__PURE__*/
4777
4359
  function () {
4778
- var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee38(identity) {
4360
+ var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee38(identity) {
4779
4361
  var grant;
4780
- return runtime_1.wrap(function _callee38$(_context39) {
4362
+ return _regeneratorRuntime().wrap(function _callee38$(_context39) {
4781
4363
  while (1) {
4782
4364
  switch (_context39.prev = _context39.next) {
4783
4365
  case 0:
@@ -4831,10 +4413,10 @@ var OroClient = /*#__PURE__*/function () {
4831
4413
  _proto.getAssignedConsultations =
4832
4414
  /*#__PURE__*/
4833
4415
  function () {
4834
- var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee40(practiceUuid) {
4416
+ var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee40(practiceUuid) {
4835
4417
  var _this4 = this;
4836
4418
 
4837
- return runtime_1.wrap(function _callee40$(_context41) {
4419
+ return _regeneratorRuntime().wrap(function _callee40$(_context41) {
4838
4420
  while (1) {
4839
4421
  switch (_context41.prev = _context41.next) {
4840
4422
  case 0:
@@ -4849,8 +4431,8 @@ var OroClient = /*#__PURE__*/function () {
4849
4431
  documentType: initApis.DocumentType.PopulatedWorkflowData
4850
4432
  }, true, undefined).then(function (manifest) {
4851
4433
  return Promise.all(manifest.map( /*#__PURE__*/function () {
4852
- var _ref5 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee39(entry) {
4853
- return runtime_1.wrap(function _callee39$(_context40) {
4434
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee39(entry) {
4435
+ return _regeneratorRuntime().wrap(function _callee39$(_context40) {
4854
4436
  while (1) {
4855
4437
  switch (_context40.prev = _context40.next) {
4856
4438
  case 0:
@@ -4904,11 +4486,11 @@ var OroClient = /*#__PURE__*/function () {
4904
4486
  _proto.getPastConsultationsFromConsultId =
4905
4487
  /*#__PURE__*/
4906
4488
  function () {
4907
- var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee42(consultationId, practiceUuid) {
4489
+ var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee42(consultationId, practiceUuid) {
4908
4490
  var _this5 = this;
4909
4491
 
4910
4492
  var grant, consultationsInLockbox;
4911
- return runtime_1.wrap(function _callee42$(_context43) {
4493
+ return _regeneratorRuntime().wrap(function _callee42$(_context43) {
4912
4494
  while (1) {
4913
4495
  switch (_context43.prev = _context43.next) {
4914
4496
  case 0:
@@ -4947,8 +4529,8 @@ var OroClient = /*#__PURE__*/function () {
4947
4529
  case 10:
4948
4530
  _context43.next = 12;
4949
4531
  return Promise.all(consultationsInLockbox.map( /*#__PURE__*/function () {
4950
- var _ref6 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee41(consultId) {
4951
- return runtime_1.wrap(function _callee41$(_context42) {
4532
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee41(consultId) {
4533
+ return _regeneratorRuntime().wrap(function _callee41$(_context42) {
4952
4534
  while (1) {
4953
4535
  switch (_context42.prev = _context42.next) {
4954
4536
  case 0:
@@ -4999,10 +4581,10 @@ var OroClient = /*#__PURE__*/function () {
4999
4581
  _proto.getPatientConsultationData =
5000
4582
  /*#__PURE__*/
5001
4583
  function () {
5002
- var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee43(consultationId, forceRefresh) {
4584
+ var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee43(consultationId, forceRefresh) {
5003
4585
  var _this6 = this;
5004
4586
 
5005
- return runtime_1.wrap(function _callee43$(_context44) {
4587
+ return _regeneratorRuntime().wrap(function _callee43$(_context44) {
5006
4588
  while (1) {
5007
4589
  switch (_context44.prev = _context44.next) {
5008
4590
  case 0:
@@ -5056,8 +4638,8 @@ var OroClient = /*#__PURE__*/function () {
5056
4638
  _proto.getPatientPrescriptionsList =
5057
4639
  /*#__PURE__*/
5058
4640
  function () {
5059
- var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee44(consultationId) {
5060
- return runtime_1.wrap(function _callee44$(_context45) {
4641
+ var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee44(consultationId) {
4642
+ return _regeneratorRuntime().wrap(function _callee44$(_context45) {
5061
4643
  while (1) {
5062
4644
  switch (_context45.prev = _context45.next) {
5063
4645
  case 0:
@@ -5090,8 +4672,8 @@ var OroClient = /*#__PURE__*/function () {
5090
4672
  _proto.getPatientResultsList =
5091
4673
  /*#__PURE__*/
5092
4674
  function () {
5093
- var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee45(consultationId) {
5094
- return runtime_1.wrap(function _callee45$(_context46) {
4675
+ var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee45(consultationId) {
4676
+ return _regeneratorRuntime().wrap(function _callee45$(_context46) {
5095
4677
  while (1) {
5096
4678
  switch (_context46.prev = _context46.next) {
5097
4679
  case 0:
@@ -5124,8 +4706,8 @@ var OroClient = /*#__PURE__*/function () {
5124
4706
  _proto.getPatientTreatmentPlans =
5125
4707
  /*#__PURE__*/
5126
4708
  function () {
5127
- var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee46(consultationId) {
5128
- return runtime_1.wrap(function _callee46$(_context47) {
4709
+ var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee46(consultationId) {
4710
+ return _regeneratorRuntime().wrap(function _callee46$(_context47) {
5129
4711
  while (1) {
5130
4712
  switch (_context47.prev = _context47.next) {
5131
4713
  case 0:
@@ -5159,8 +4741,8 @@ var OroClient = /*#__PURE__*/function () {
5159
4741
  _proto.getPatientTreatmentPlanByUuid =
5160
4742
  /*#__PURE__*/
5161
4743
  function () {
5162
- var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee47(consultationId, treatmentPlanId) {
5163
- return runtime_1.wrap(function _callee47$(_context48) {
4744
+ var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee47(consultationId, treatmentPlanId) {
4745
+ return _regeneratorRuntime().wrap(function _callee47$(_context48) {
5164
4746
  while (1) {
5165
4747
  switch (_context48.prev = _context48.next) {
5166
4748
  case 0:
@@ -5198,10 +4780,10 @@ var OroClient = /*#__PURE__*/function () {
5198
4780
  _proto.getPatientDocumentsList =
5199
4781
  /*#__PURE__*/
5200
4782
  function () {
5201
- var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee49(filters, expandPrivateMetadata, consultationId) {
4783
+ var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee49(filters, expandPrivateMetadata, consultationId) {
5202
4784
  var _this7 = this;
5203
4785
 
5204
- return runtime_1.wrap(function _callee49$(_context50) {
4786
+ return _regeneratorRuntime().wrap(function _callee49$(_context50) {
5205
4787
  while (1) {
5206
4788
  switch (_context50.prev = _context50.next) {
5207
4789
  case 0:
@@ -5217,8 +4799,8 @@ var OroClient = /*#__PURE__*/function () {
5217
4799
  consultationId: consultationId
5218
4800
  }), expandPrivateMetadata, grant.lockboxOwnerUuid, true).then(function (manifest) {
5219
4801
  return Promise.all(manifest.map( /*#__PURE__*/function () {
5220
- var _ref7 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee48(entry) {
5221
- return runtime_1.wrap(function _callee48$(_context49) {
4802
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee48(entry) {
4803
+ return _regeneratorRuntime().wrap(function _callee48$(_context49) {
5222
4804
  while (1) {
5223
4805
  switch (_context49.prev = _context49.next) {
5224
4806
  case 0:
@@ -5276,9 +4858,9 @@ var OroClient = /*#__PURE__*/function () {
5276
4858
  _proto.recoverPrivateKeyFromSecurityQuestions =
5277
4859
  /*#__PURE__*/
5278
4860
  function () {
5279
- var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee50(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
4861
+ var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee50(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
5280
4862
  var shards, answeredShards, privateKey;
5281
- return runtime_1.wrap(function _callee50$(_context51) {
4863
+ return _regeneratorRuntime().wrap(function _callee50$(_context51) {
5282
4864
  while (1) {
5283
4865
  switch (_context51.prev = _context51.next) {
5284
4866
  case 0:
@@ -5332,9 +4914,9 @@ var OroClient = /*#__PURE__*/function () {
5332
4914
  _proto.recoverPrivateKeyFromPassword =
5333
4915
  /*#__PURE__*/
5334
4916
  function () {
5335
- var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee51(id, password) {
4917
+ var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee51(id, password) {
5336
4918
  var identity, recoveryPayload, symmetricDecryptor, privateKey, symetricEncryptor;
5337
- return runtime_1.wrap(function _callee51$(_context52) {
4919
+ return _regeneratorRuntime().wrap(function _callee51$(_context52) {
5338
4920
  while (1) {
5339
4921
  switch (_context52.prev = _context52.next) {
5340
4922
  case 0:
@@ -5380,9 +4962,9 @@ var OroClient = /*#__PURE__*/function () {
5380
4962
  _proto.recoverPrivateKeyFromMasterKey =
5381
4963
  /*#__PURE__*/
5382
4964
  function () {
5383
- var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee52(id, masterKey) {
4965
+ var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee52(id, masterKey) {
5384
4966
  var recoveryPayload, symmetricDecryptor, privateKey;
5385
- return runtime_1.wrap(function _callee52$(_context53) {
4967
+ return _regeneratorRuntime().wrap(function _callee52$(_context53) {
5386
4968
  while (1) {
5387
4969
  switch (_context53.prev = _context53.next) {
5388
4970
  case 0:
@@ -5422,9 +5004,9 @@ var OroClient = /*#__PURE__*/function () {
5422
5004
  _proto.updateSecurityQuestions =
5423
5005
  /*#__PURE__*/
5424
5006
  function () {
5425
- var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee53(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
5007
+ var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee53(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
5426
5008
  var securityQuestionPayload, updateRequest;
5427
- return runtime_1.wrap(function _callee53$(_context54) {
5009
+ return _regeneratorRuntime().wrap(function _callee53$(_context54) {
5428
5010
  while (1) {
5429
5011
  switch (_context54.prev = _context54.next) {
5430
5012
  case 0:
@@ -5476,9 +5058,9 @@ var OroClient = /*#__PURE__*/function () {
5476
5058
  _proto.updatePassword =
5477
5059
  /*#__PURE__*/
5478
5060
  function () {
5479
- var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee54(id, newPassword, oldPassword) {
5061
+ var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee54(id, newPassword, oldPassword) {
5480
5062
  var symmetricEncryptor, passwordPayload, updateRequest;
5481
- return runtime_1.wrap(function _callee54$(_context55) {
5063
+ return _regeneratorRuntime().wrap(function _callee54$(_context55) {
5482
5064
  while (1) {
5483
5065
  switch (_context55.prev = _context55.next) {
5484
5066
  case 0:
@@ -5538,9 +5120,9 @@ var OroClient = /*#__PURE__*/function () {
5538
5120
  _proto.updateMasterKey =
5539
5121
  /*#__PURE__*/
5540
5122
  function () {
5541
- var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee55(id, masterKey, lockboxUuid) {
5123
+ var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee55(id, masterKey, lockboxUuid) {
5542
5124
  var symmetricEncryptor, masterKeyPayload, updateRequest, updatedIdentity;
5543
- return runtime_1.wrap(function _callee55$(_context56) {
5125
+ return _regeneratorRuntime().wrap(function _callee55$(_context56) {
5544
5126
  while (1) {
5545
5127
  switch (_context56.prev = _context56.next) {
5546
5128
  case 0: