oro-sdk-apis 1.28.0 → 1.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/models/practice.d.ts +139 -32
- package/dist/oro-sdk-apis.cjs.development.js +404 -820
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +416 -820
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/models/practice.ts +169 -55
|
@@ -19,918 +19,501 @@ function hashToBase64String(value) {
|
|
|
19
19
|
return _.Buffer.from(hash_js.sha256().update(value).digest('hex'), 'hex').toString('base64');
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
var info = gen[key](arg);
|
|
25
|
-
var value = info.value;
|
|
26
|
-
} catch (error) {
|
|
27
|
-
reject(error);
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
if (info.done) {
|
|
32
|
-
resolve(value);
|
|
33
|
-
} else {
|
|
34
|
-
Promise.resolve(value).then(_next, _throw);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function _asyncToGenerator(fn) {
|
|
39
|
-
return function () {
|
|
40
|
-
var self = this,
|
|
41
|
-
args = arguments;
|
|
42
|
-
return new Promise(function (resolve, reject) {
|
|
43
|
-
var gen = fn.apply(self, args);
|
|
44
|
-
|
|
45
|
-
function _next(value) {
|
|
46
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
function _throw(err) {
|
|
50
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
_next(undefined);
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function _extends() {
|
|
59
|
-
_extends = Object.assign || function (target) {
|
|
60
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
61
|
-
var source = arguments[i];
|
|
62
|
-
|
|
63
|
-
for (var key in source) {
|
|
64
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
65
|
-
target[key] = source[key];
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return target;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
return _extends.apply(this, arguments);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function _inheritsLoose(subClass, superClass) {
|
|
77
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
78
|
-
subClass.prototype.constructor = subClass;
|
|
79
|
-
|
|
80
|
-
_setPrototypeOf(subClass, superClass);
|
|
81
|
-
}
|
|
22
|
+
function _regeneratorRuntime() {
|
|
23
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
82
24
|
|
|
83
|
-
function
|
|
84
|
-
|
|
85
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
25
|
+
_regeneratorRuntime = function () {
|
|
26
|
+
return exports;
|
|
86
27
|
};
|
|
87
|
-
return _getPrototypeOf(o);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
function _setPrototypeOf(o, p) {
|
|
91
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
92
|
-
o.__proto__ = p;
|
|
93
|
-
return o;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
return _setPrototypeOf(o, p);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
function _isNativeReflectConstruct() {
|
|
100
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
101
|
-
if (Reflect.construct.sham) return false;
|
|
102
|
-
if (typeof Proxy === "function") return true;
|
|
103
|
-
|
|
104
|
-
try {
|
|
105
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
106
|
-
return true;
|
|
107
|
-
} catch (e) {
|
|
108
|
-
return false;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function _construct(Parent, args, Class) {
|
|
113
|
-
if (_isNativeReflectConstruct()) {
|
|
114
|
-
_construct = Reflect.construct;
|
|
115
|
-
} else {
|
|
116
|
-
_construct = function _construct(Parent, args, Class) {
|
|
117
|
-
var a = [null];
|
|
118
|
-
a.push.apply(a, args);
|
|
119
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
120
|
-
var instance = new Constructor();
|
|
121
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
122
|
-
return instance;
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
28
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
function
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
function _wrapNativeSuper(Class) {
|
|
134
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
135
|
-
|
|
136
|
-
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
137
|
-
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
138
|
-
|
|
139
|
-
if (typeof Class !== "function") {
|
|
140
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
if (typeof _cache !== "undefined") {
|
|
144
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
145
|
-
|
|
146
|
-
_cache.set(Class, Wrapper);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
function Wrapper() {
|
|
150
|
-
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
154
|
-
constructor: {
|
|
155
|
-
value: Wrapper,
|
|
156
|
-
enumerable: false,
|
|
157
|
-
writable: true,
|
|
158
|
-
configurable: true
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
return _setPrototypeOf(Wrapper, Class);
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
return _wrapNativeSuper(Class);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
function _assertThisInitialized(self) {
|
|
168
|
-
if (self === void 0) {
|
|
169
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
return self;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
function createCommonjsModule(fn, module) {
|
|
176
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
var runtime_1 = createCommonjsModule(function (module) {
|
|
180
|
-
/**
|
|
181
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
182
|
-
*
|
|
183
|
-
* This source code is licensed under the MIT license found in the
|
|
184
|
-
* LICENSE file in the root directory of this source tree.
|
|
185
|
-
*/
|
|
186
|
-
|
|
187
|
-
var runtime = (function (exports) {
|
|
188
|
-
|
|
189
|
-
var Op = Object.prototype;
|
|
190
|
-
var hasOwn = Op.hasOwnProperty;
|
|
191
|
-
var undefined$1; // More compressible than void 0.
|
|
192
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
193
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
194
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
195
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
29
|
+
var exports = {},
|
|
30
|
+
Op = Object.prototype,
|
|
31
|
+
hasOwn = Op.hasOwnProperty,
|
|
32
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
33
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
34
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
35
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
196
36
|
|
|
197
37
|
function define(obj, key, value) {
|
|
198
|
-
Object.defineProperty(obj, key, {
|
|
38
|
+
return Object.defineProperty(obj, key, {
|
|
199
39
|
value: value,
|
|
200
|
-
enumerable:
|
|
201
|
-
configurable:
|
|
202
|
-
writable:
|
|
203
|
-
});
|
|
204
|
-
return obj[key];
|
|
40
|
+
enumerable: !0,
|
|
41
|
+
configurable: !0,
|
|
42
|
+
writable: !0
|
|
43
|
+
}), obj[key];
|
|
205
44
|
}
|
|
45
|
+
|
|
206
46
|
try {
|
|
207
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
208
47
|
define({}, "");
|
|
209
48
|
} catch (err) {
|
|
210
|
-
define = function(obj, key, value) {
|
|
49
|
+
define = function (obj, key, value) {
|
|
211
50
|
return obj[key] = value;
|
|
212
51
|
};
|
|
213
52
|
}
|
|
214
53
|
|
|
215
54
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
55
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
56
|
+
generator = Object.create(protoGenerator.prototype),
|
|
57
|
+
context = new Context(tryLocsList || []);
|
|
58
|
+
return generator._invoke = function (innerFn, self, context) {
|
|
59
|
+
var state = "suspendedStart";
|
|
60
|
+
return function (method, arg) {
|
|
61
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
62
|
+
|
|
63
|
+
if ("completed" === state) {
|
|
64
|
+
if ("throw" === method) throw arg;
|
|
65
|
+
return doneResult();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
for (context.method = method, context.arg = arg;;) {
|
|
69
|
+
var delegate = context.delegate;
|
|
220
70
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
71
|
+
if (delegate) {
|
|
72
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
73
|
+
|
|
74
|
+
if (delegateResult) {
|
|
75
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
76
|
+
return delegateResult;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
81
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
82
|
+
context.dispatchException(context.arg);
|
|
83
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
84
|
+
state = "executing";
|
|
85
|
+
var record = tryCatch(innerFn, self, context);
|
|
86
|
+
|
|
87
|
+
if ("normal" === record.type) {
|
|
88
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
89
|
+
return {
|
|
90
|
+
value: record.arg,
|
|
91
|
+
done: context.done
|
|
92
|
+
};
|
|
93
|
+
}
|
|
224
94
|
|
|
225
|
-
|
|
95
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
}(innerFn, self, context), generator;
|
|
226
99
|
}
|
|
227
|
-
exports.wrap = wrap;
|
|
228
100
|
|
|
229
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
230
|
-
// record like context.tryEntries[i].completion. This interface could
|
|
231
|
-
// have been (and was previously) designed to take a closure to be
|
|
232
|
-
// invoked without arguments, but in all the cases we care about we
|
|
233
|
-
// already have an existing method we want to call, so there's no need
|
|
234
|
-
// to create a new function object. We can even get away with assuming
|
|
235
|
-
// the method takes exactly one argument, since that happens to be true
|
|
236
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
237
|
-
// only additional allocation required is the completion record, which
|
|
238
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
239
101
|
function tryCatch(fn, obj, arg) {
|
|
240
102
|
try {
|
|
241
|
-
return {
|
|
103
|
+
return {
|
|
104
|
+
type: "normal",
|
|
105
|
+
arg: fn.call(obj, arg)
|
|
106
|
+
};
|
|
242
107
|
} catch (err) {
|
|
243
|
-
return {
|
|
108
|
+
return {
|
|
109
|
+
type: "throw",
|
|
110
|
+
arg: err
|
|
111
|
+
};
|
|
244
112
|
}
|
|
245
113
|
}
|
|
246
114
|
|
|
247
|
-
|
|
248
|
-
var GenStateSuspendedYield = "suspendedYield";
|
|
249
|
-
var GenStateExecuting = "executing";
|
|
250
|
-
var GenStateCompleted = "completed";
|
|
251
|
-
|
|
252
|
-
// Returning this object from the innerFn has the same effect as
|
|
253
|
-
// breaking out of the dispatch switch statement.
|
|
115
|
+
exports.wrap = wrap;
|
|
254
116
|
var ContinueSentinel = {};
|
|
255
117
|
|
|
256
|
-
// Dummy constructor functions that we use as the .constructor and
|
|
257
|
-
// .constructor.prototype properties for functions that return Generator
|
|
258
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
259
|
-
// minifier not to mangle the names of these two functions.
|
|
260
118
|
function Generator() {}
|
|
119
|
+
|
|
261
120
|
function GeneratorFunction() {}
|
|
121
|
+
|
|
262
122
|
function GeneratorFunctionPrototype() {}
|
|
263
123
|
|
|
264
|
-
// This is a polyfill for %IteratorPrototype% for environments that
|
|
265
|
-
// don't natively support it.
|
|
266
124
|
var IteratorPrototype = {};
|
|
267
125
|
define(IteratorPrototype, iteratorSymbol, function () {
|
|
268
126
|
return this;
|
|
269
127
|
});
|
|
128
|
+
var getProto = Object.getPrototypeOf,
|
|
129
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
130
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
131
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
270
132
|
|
|
271
|
-
var getProto = Object.getPrototypeOf;
|
|
272
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
273
|
-
if (NativeIteratorPrototype &&
|
|
274
|
-
NativeIteratorPrototype !== Op &&
|
|
275
|
-
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
276
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
|
277
|
-
// of the polyfill.
|
|
278
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
|
282
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
|
283
|
-
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
284
|
-
define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
285
|
-
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
286
|
-
GeneratorFunction.displayName = define(
|
|
287
|
-
GeneratorFunctionPrototype,
|
|
288
|
-
toStringTagSymbol,
|
|
289
|
-
"GeneratorFunction"
|
|
290
|
-
);
|
|
291
|
-
|
|
292
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
|
293
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
294
133
|
function defineIteratorMethods(prototype) {
|
|
295
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
296
|
-
define(prototype, method, function(arg) {
|
|
134
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
135
|
+
define(prototype, method, function (arg) {
|
|
297
136
|
return this._invoke(method, arg);
|
|
298
137
|
});
|
|
299
138
|
});
|
|
300
139
|
}
|
|
301
140
|
|
|
302
|
-
exports.isGeneratorFunction = function(genFun) {
|
|
303
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
304
|
-
return ctor
|
|
305
|
-
? ctor === GeneratorFunction ||
|
|
306
|
-
// For the native GeneratorFunction constructor, the best we can
|
|
307
|
-
// do is to check its .name property.
|
|
308
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
309
|
-
: false;
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
exports.mark = function(genFun) {
|
|
313
|
-
if (Object.setPrototypeOf) {
|
|
314
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
315
|
-
} else {
|
|
316
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
317
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
318
|
-
}
|
|
319
|
-
genFun.prototype = Object.create(Gp);
|
|
320
|
-
return genFun;
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
// Within the body of any async function, `await x` is transformed to
|
|
324
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
325
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
326
|
-
// meant to be awaited.
|
|
327
|
-
exports.awrap = function(arg) {
|
|
328
|
-
return { __await: arg };
|
|
329
|
-
};
|
|
330
|
-
|
|
331
141
|
function AsyncIterator(generator, PromiseImpl) {
|
|
332
142
|
function invoke(method, arg, resolve, reject) {
|
|
333
143
|
var record = tryCatch(generator[method], generator, arg);
|
|
334
|
-
if (record.type === "throw") {
|
|
335
|
-
reject(record.arg);
|
|
336
|
-
} else {
|
|
337
|
-
var result = record.arg;
|
|
338
|
-
var value = result.value;
|
|
339
|
-
if (value &&
|
|
340
|
-
typeof value === "object" &&
|
|
341
|
-
hasOwn.call(value, "__await")) {
|
|
342
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
343
|
-
invoke("next", value, resolve, reject);
|
|
344
|
-
}, function(err) {
|
|
345
|
-
invoke("throw", err, resolve, reject);
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
144
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
145
|
+
if ("throw" !== record.type) {
|
|
146
|
+
var result = record.arg,
|
|
147
|
+
value = result.value;
|
|
148
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
149
|
+
invoke("next", value, resolve, reject);
|
|
150
|
+
}, function (err) {
|
|
151
|
+
invoke("throw", err, resolve, reject);
|
|
152
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
153
|
+
result.value = unwrapped, resolve(result);
|
|
154
|
+
}, function (error) {
|
|
358
155
|
return invoke("throw", error, resolve, reject);
|
|
359
156
|
});
|
|
360
157
|
}
|
|
158
|
+
|
|
159
|
+
reject(record.arg);
|
|
361
160
|
}
|
|
362
161
|
|
|
363
162
|
var previousPromise;
|
|
364
163
|
|
|
365
|
-
function
|
|
164
|
+
this._invoke = function (method, arg) {
|
|
366
165
|
function callInvokeWithMethodAndArg() {
|
|
367
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
166
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
368
167
|
invoke(method, arg, resolve, reject);
|
|
369
168
|
});
|
|
370
169
|
}
|
|
371
170
|
|
|
372
|
-
return previousPromise =
|
|
373
|
-
// If enqueue has been called before, then we want to wait until
|
|
374
|
-
// all previous Promises have been resolved before calling invoke,
|
|
375
|
-
// so that results are always delivered in the correct order. If
|
|
376
|
-
// enqueue has not been called before, then it is important to
|
|
377
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
378
|
-
// so that the async generator function has the opportunity to do
|
|
379
|
-
// any necessary setup in a predictable way. This predictability
|
|
380
|
-
// is why the Promise constructor synchronously invokes its
|
|
381
|
-
// executor callback, and why async functions synchronously
|
|
382
|
-
// execute code before the first await. Since we implement simple
|
|
383
|
-
// async functions in terms of async generators, it is especially
|
|
384
|
-
// important to get this right, even though it requires care.
|
|
385
|
-
previousPromise ? previousPromise.then(
|
|
386
|
-
callInvokeWithMethodAndArg,
|
|
387
|
-
// Avoid propagating failures to Promises returned by later
|
|
388
|
-
// invocations of the iterator.
|
|
389
|
-
callInvokeWithMethodAndArg
|
|
390
|
-
) : callInvokeWithMethodAndArg();
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
// Define the unified helper method that is used to implement .next,
|
|
394
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
395
|
-
this._invoke = enqueue;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
399
|
-
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
400
|
-
return this;
|
|
401
|
-
});
|
|
402
|
-
exports.AsyncIterator = AsyncIterator;
|
|
403
|
-
|
|
404
|
-
// Note that simple async functions are implemented on top of
|
|
405
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
|
406
|
-
// the final result produced by the iterator.
|
|
407
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
408
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
409
|
-
|
|
410
|
-
var iter = new AsyncIterator(
|
|
411
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
|
412
|
-
PromiseImpl
|
|
413
|
-
);
|
|
414
|
-
|
|
415
|
-
return exports.isGeneratorFunction(outerFn)
|
|
416
|
-
? iter // If outerFn is a generator, return the full iterator.
|
|
417
|
-
: iter.next().then(function(result) {
|
|
418
|
-
return result.done ? result.value : iter.next();
|
|
419
|
-
});
|
|
420
|
-
};
|
|
421
|
-
|
|
422
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
423
|
-
var state = GenStateSuspendedStart;
|
|
424
|
-
|
|
425
|
-
return function invoke(method, arg) {
|
|
426
|
-
if (state === GenStateExecuting) {
|
|
427
|
-
throw new Error("Generator is already running");
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
if (state === GenStateCompleted) {
|
|
431
|
-
if (method === "throw") {
|
|
432
|
-
throw arg;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
436
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
437
|
-
return doneResult();
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
context.method = method;
|
|
441
|
-
context.arg = arg;
|
|
442
|
-
|
|
443
|
-
while (true) {
|
|
444
|
-
var delegate = context.delegate;
|
|
445
|
-
if (delegate) {
|
|
446
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
447
|
-
if (delegateResult) {
|
|
448
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
449
|
-
return delegateResult;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
if (context.method === "next") {
|
|
454
|
-
// Setting context._sent for legacy support of Babel's
|
|
455
|
-
// function.sent implementation.
|
|
456
|
-
context.sent = context._sent = context.arg;
|
|
457
|
-
|
|
458
|
-
} else if (context.method === "throw") {
|
|
459
|
-
if (state === GenStateSuspendedStart) {
|
|
460
|
-
state = GenStateCompleted;
|
|
461
|
-
throw context.arg;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
context.dispatchException(context.arg);
|
|
465
|
-
|
|
466
|
-
} else if (context.method === "return") {
|
|
467
|
-
context.abrupt("return", context.arg);
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
state = GenStateExecuting;
|
|
471
|
-
|
|
472
|
-
var record = tryCatch(innerFn, self, context);
|
|
473
|
-
if (record.type === "normal") {
|
|
474
|
-
// If an exception is thrown from innerFn, we leave state ===
|
|
475
|
-
// GenStateExecuting and loop back for another invocation.
|
|
476
|
-
state = context.done
|
|
477
|
-
? GenStateCompleted
|
|
478
|
-
: GenStateSuspendedYield;
|
|
479
|
-
|
|
480
|
-
if (record.arg === ContinueSentinel) {
|
|
481
|
-
continue;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
return {
|
|
485
|
-
value: record.arg,
|
|
486
|
-
done: context.done
|
|
487
|
-
};
|
|
488
|
-
|
|
489
|
-
} else if (record.type === "throw") {
|
|
490
|
-
state = GenStateCompleted;
|
|
491
|
-
// Dispatch the exception by looping back around to the
|
|
492
|
-
// context.dispatchException(context.arg) call above.
|
|
493
|
-
context.method = "throw";
|
|
494
|
-
context.arg = record.arg;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
171
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
497
172
|
};
|
|
498
173
|
}
|
|
499
174
|
|
|
500
|
-
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
501
|
-
// result, either by returning a { value, done } result from the
|
|
502
|
-
// delegate iterator, or by modifying context.method and context.arg,
|
|
503
|
-
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
504
175
|
function maybeInvokeDelegate(delegate, context) {
|
|
505
176
|
var method = delegate.iterator[context.method];
|
|
506
|
-
if (method === undefined$1) {
|
|
507
|
-
// A .throw or .return when the delegate iterator has no .throw
|
|
508
|
-
// method always terminates the yield* loop.
|
|
509
|
-
context.delegate = null;
|
|
510
|
-
|
|
511
|
-
if (context.method === "throw") {
|
|
512
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
513
|
-
if (delegate.iterator["return"]) {
|
|
514
|
-
// If the delegate iterator has a return method, give it a
|
|
515
|
-
// chance to clean up.
|
|
516
|
-
context.method = "return";
|
|
517
|
-
context.arg = undefined$1;
|
|
518
|
-
maybeInvokeDelegate(delegate, context);
|
|
519
|
-
|
|
520
|
-
if (context.method === "throw") {
|
|
521
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
|
522
|
-
// "return" to "throw", let that override the TypeError below.
|
|
523
|
-
return ContinueSentinel;
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
177
|
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
178
|
+
if (undefined === method) {
|
|
179
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
180
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
181
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
530
182
|
}
|
|
531
183
|
|
|
532
184
|
return ContinueSentinel;
|
|
533
185
|
}
|
|
534
186
|
|
|
535
187
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
536
|
-
|
|
537
|
-
if (record.type === "throw") {
|
|
538
|
-
context.method = "throw";
|
|
539
|
-
context.arg = record.arg;
|
|
540
|
-
context.delegate = null;
|
|
541
|
-
return ContinueSentinel;
|
|
542
|
-
}
|
|
543
|
-
|
|
188
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
544
189
|
var info = record.arg;
|
|
545
|
-
|
|
546
|
-
if (! info) {
|
|
547
|
-
context.method = "throw";
|
|
548
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
549
|
-
context.delegate = null;
|
|
550
|
-
return ContinueSentinel;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
if (info.done) {
|
|
554
|
-
// Assign the result of the finished delegate to the temporary
|
|
555
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
556
|
-
context[delegate.resultName] = info.value;
|
|
557
|
-
|
|
558
|
-
// Resume execution at the desired location (see delegateYield).
|
|
559
|
-
context.next = delegate.nextLoc;
|
|
560
|
-
|
|
561
|
-
// If context.method was "throw" but the delegate handled the
|
|
562
|
-
// exception, let the outer generator proceed normally. If
|
|
563
|
-
// context.method was "next", forget context.arg since it has been
|
|
564
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
565
|
-
// "return", allow the original .return call to continue in the
|
|
566
|
-
// outer generator.
|
|
567
|
-
if (context.method !== "return") {
|
|
568
|
-
context.method = "next";
|
|
569
|
-
context.arg = undefined$1;
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
} else {
|
|
573
|
-
// Re-yield the result returned by the delegate method.
|
|
574
|
-
return info;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
// The delegate iterator is finished, so forget it and continue with
|
|
578
|
-
// the outer generator.
|
|
579
|
-
context.delegate = null;
|
|
580
|
-
return ContinueSentinel;
|
|
190
|
+
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);
|
|
581
191
|
}
|
|
582
192
|
|
|
583
|
-
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
584
|
-
// unified ._invoke helper method.
|
|
585
|
-
defineIteratorMethods(Gp);
|
|
586
|
-
|
|
587
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
588
|
-
|
|
589
|
-
// A Generator should always return itself as the iterator object when the
|
|
590
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
591
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
592
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
593
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
594
|
-
define(Gp, iteratorSymbol, function() {
|
|
595
|
-
return this;
|
|
596
|
-
});
|
|
597
|
-
|
|
598
|
-
define(Gp, "toString", function() {
|
|
599
|
-
return "[object Generator]";
|
|
600
|
-
});
|
|
601
|
-
|
|
602
193
|
function pushTryEntry(locs) {
|
|
603
|
-
var entry = {
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
if (2 in locs) {
|
|
610
|
-
entry.finallyLoc = locs[2];
|
|
611
|
-
entry.afterLoc = locs[3];
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
this.tryEntries.push(entry);
|
|
194
|
+
var entry = {
|
|
195
|
+
tryLoc: locs[0]
|
|
196
|
+
};
|
|
197
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
615
198
|
}
|
|
616
199
|
|
|
617
200
|
function resetTryEntry(entry) {
|
|
618
201
|
var record = entry.completion || {};
|
|
619
|
-
record.type = "normal";
|
|
620
|
-
delete record.arg;
|
|
621
|
-
entry.completion = record;
|
|
202
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
622
203
|
}
|
|
623
204
|
|
|
624
205
|
function Context(tryLocsList) {
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
|
629
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
630
|
-
this.reset(true);
|
|
206
|
+
this.tryEntries = [{
|
|
207
|
+
tryLoc: "root"
|
|
208
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
631
209
|
}
|
|
632
210
|
|
|
633
|
-
exports.keys = function(object) {
|
|
634
|
-
var keys = [];
|
|
635
|
-
for (var key in object) {
|
|
636
|
-
keys.push(key);
|
|
637
|
-
}
|
|
638
|
-
keys.reverse();
|
|
639
|
-
|
|
640
|
-
// Rather than returning an object with a next method, we keep
|
|
641
|
-
// things simple and return the next function itself.
|
|
642
|
-
return function next() {
|
|
643
|
-
while (keys.length) {
|
|
644
|
-
var key = keys.pop();
|
|
645
|
-
if (key in object) {
|
|
646
|
-
next.value = key;
|
|
647
|
-
next.done = false;
|
|
648
|
-
return next;
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
// To avoid creating an additional object, we just hang the .value
|
|
653
|
-
// and .done properties off the next function object itself. This
|
|
654
|
-
// also ensures that the minifier will not anonymize the function.
|
|
655
|
-
next.done = true;
|
|
656
|
-
return next;
|
|
657
|
-
};
|
|
658
|
-
};
|
|
659
|
-
|
|
660
211
|
function values(iterable) {
|
|
661
212
|
if (iterable) {
|
|
662
213
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
663
|
-
if (iteratorMethod)
|
|
664
|
-
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
if (typeof iterable.next === "function") {
|
|
668
|
-
return iterable;
|
|
669
|
-
}
|
|
214
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
215
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
670
216
|
|
|
671
217
|
if (!isNaN(iterable.length)) {
|
|
672
|
-
var i = -1,
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
next.value = iterable[i];
|
|
676
|
-
next.done = false;
|
|
677
|
-
return next;
|
|
678
|
-
}
|
|
679
|
-
}
|
|
218
|
+
var i = -1,
|
|
219
|
+
next = function next() {
|
|
220
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
680
221
|
|
|
681
|
-
next.value = undefined
|
|
682
|
-
next.done = true;
|
|
683
|
-
|
|
684
|
-
return next;
|
|
222
|
+
return next.value = undefined, next.done = !0, next;
|
|
685
223
|
};
|
|
686
224
|
|
|
687
225
|
return next.next = next;
|
|
688
226
|
}
|
|
689
227
|
}
|
|
690
228
|
|
|
691
|
-
|
|
692
|
-
|
|
229
|
+
return {
|
|
230
|
+
next: doneResult
|
|
231
|
+
};
|
|
693
232
|
}
|
|
694
|
-
exports.values = values;
|
|
695
233
|
|
|
696
234
|
function doneResult() {
|
|
697
|
-
return {
|
|
235
|
+
return {
|
|
236
|
+
value: undefined,
|
|
237
|
+
done: !0
|
|
238
|
+
};
|
|
698
239
|
}
|
|
699
240
|
|
|
700
|
-
|
|
701
|
-
constructor
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
this[name] = undefined$1;
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
},
|
|
241
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
242
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
243
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
244
|
+
}, exports.mark = function (genFun) {
|
|
245
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
246
|
+
}, exports.awrap = function (arg) {
|
|
247
|
+
return {
|
|
248
|
+
__await: arg
|
|
249
|
+
};
|
|
250
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
251
|
+
return this;
|
|
252
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
253
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
254
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
255
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
256
|
+
return result.done ? result.value : iter.next();
|
|
257
|
+
});
|
|
258
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
259
|
+
return this;
|
|
260
|
+
}), define(Gp, "toString", function () {
|
|
261
|
+
return "[object Generator]";
|
|
262
|
+
}), exports.keys = function (object) {
|
|
263
|
+
var keys = [];
|
|
728
264
|
|
|
729
|
-
|
|
730
|
-
this.done = true;
|
|
265
|
+
for (var key in object) keys.push(key);
|
|
731
266
|
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
267
|
+
return keys.reverse(), function next() {
|
|
268
|
+
for (; keys.length;) {
|
|
269
|
+
var key = keys.pop();
|
|
270
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
736
271
|
}
|
|
737
272
|
|
|
273
|
+
return next.done = !0, next;
|
|
274
|
+
};
|
|
275
|
+
}, exports.values = values, Context.prototype = {
|
|
276
|
+
constructor: Context,
|
|
277
|
+
reset: function (skipTempReset) {
|
|
278
|
+
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);
|
|
279
|
+
},
|
|
280
|
+
stop: function () {
|
|
281
|
+
this.done = !0;
|
|
282
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
283
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
738
284
|
return this.rval;
|
|
739
285
|
},
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
if (this.done) {
|
|
743
|
-
throw exception;
|
|
744
|
-
}
|
|
745
|
-
|
|
286
|
+
dispatchException: function (exception) {
|
|
287
|
+
if (this.done) throw exception;
|
|
746
288
|
var context = this;
|
|
747
|
-
function handle(loc, caught) {
|
|
748
|
-
record.type = "throw";
|
|
749
|
-
record.arg = exception;
|
|
750
|
-
context.next = loc;
|
|
751
|
-
|
|
752
|
-
if (caught) {
|
|
753
|
-
// If the dispatched exception was caught by a catch block,
|
|
754
|
-
// then let that catch block handle the exception normally.
|
|
755
|
-
context.method = "next";
|
|
756
|
-
context.arg = undefined$1;
|
|
757
|
-
}
|
|
758
289
|
|
|
759
|
-
|
|
290
|
+
function handle(loc, caught) {
|
|
291
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
760
292
|
}
|
|
761
293
|
|
|
762
294
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
763
|
-
var entry = this.tryEntries[i]
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
if (entry.tryLoc === "root") {
|
|
767
|
-
// Exception thrown outside of any try block that could handle
|
|
768
|
-
// it, so set the completion value of the entire function to
|
|
769
|
-
// throw the exception.
|
|
770
|
-
return handle("end");
|
|
771
|
-
}
|
|
295
|
+
var entry = this.tryEntries[i],
|
|
296
|
+
record = entry.completion;
|
|
297
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
772
298
|
|
|
773
299
|
if (entry.tryLoc <= this.prev) {
|
|
774
|
-
var hasCatch = hasOwn.call(entry, "catchLoc")
|
|
775
|
-
|
|
300
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
301
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
776
302
|
|
|
777
303
|
if (hasCatch && hasFinally) {
|
|
778
|
-
if (this.prev < entry.catchLoc)
|
|
779
|
-
|
|
780
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
781
|
-
return handle(entry.finallyLoc);
|
|
782
|
-
}
|
|
783
|
-
|
|
304
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
305
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
784
306
|
} else if (hasCatch) {
|
|
785
|
-
if (this.prev < entry.catchLoc)
|
|
786
|
-
return handle(entry.catchLoc, true);
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
} else if (hasFinally) {
|
|
790
|
-
if (this.prev < entry.finallyLoc) {
|
|
791
|
-
return handle(entry.finallyLoc);
|
|
792
|
-
}
|
|
793
|
-
|
|
307
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
794
308
|
} else {
|
|
795
|
-
throw new Error("try statement without catch or finally");
|
|
309
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
310
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
796
311
|
}
|
|
797
312
|
}
|
|
798
313
|
}
|
|
799
314
|
},
|
|
800
|
-
|
|
801
|
-
abrupt: function(type, arg) {
|
|
315
|
+
abrupt: function (type, arg) {
|
|
802
316
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
803
317
|
var entry = this.tryEntries[i];
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
this.prev < entry.finallyLoc) {
|
|
318
|
+
|
|
319
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
807
320
|
var finallyEntry = entry;
|
|
808
321
|
break;
|
|
809
322
|
}
|
|
810
323
|
}
|
|
811
324
|
|
|
812
|
-
|
|
813
|
-
(type === "break" ||
|
|
814
|
-
type === "continue") &&
|
|
815
|
-
finallyEntry.tryLoc <= arg &&
|
|
816
|
-
arg <= finallyEntry.finallyLoc) {
|
|
817
|
-
// Ignore the finally entry if control is not jumping to a
|
|
818
|
-
// location outside the try/catch block.
|
|
819
|
-
finallyEntry = null;
|
|
820
|
-
}
|
|
821
|
-
|
|
325
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
822
326
|
var record = finallyEntry ? finallyEntry.completion : {};
|
|
823
|
-
record.type = type;
|
|
824
|
-
record.arg = arg;
|
|
825
|
-
|
|
826
|
-
if (finallyEntry) {
|
|
827
|
-
this.method = "next";
|
|
828
|
-
this.next = finallyEntry.finallyLoc;
|
|
829
|
-
return ContinueSentinel;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
return this.complete(record);
|
|
327
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
833
328
|
},
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
throw record.arg;
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
if (record.type === "break" ||
|
|
841
|
-
record.type === "continue") {
|
|
842
|
-
this.next = record.arg;
|
|
843
|
-
} else if (record.type === "return") {
|
|
844
|
-
this.rval = this.arg = record.arg;
|
|
845
|
-
this.method = "return";
|
|
846
|
-
this.next = "end";
|
|
847
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
848
|
-
this.next = afterLoc;
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
return ContinueSentinel;
|
|
329
|
+
complete: function (record, afterLoc) {
|
|
330
|
+
if ("throw" === record.type) throw record.arg;
|
|
331
|
+
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;
|
|
852
332
|
},
|
|
853
|
-
|
|
854
|
-
finish: function(finallyLoc) {
|
|
333
|
+
finish: function (finallyLoc) {
|
|
855
334
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
856
335
|
var entry = this.tryEntries[i];
|
|
857
|
-
if (entry.finallyLoc === finallyLoc)
|
|
858
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
859
|
-
resetTryEntry(entry);
|
|
860
|
-
return ContinueSentinel;
|
|
861
|
-
}
|
|
336
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
862
337
|
}
|
|
863
338
|
},
|
|
864
|
-
|
|
865
|
-
"catch": function(tryLoc) {
|
|
339
|
+
catch: function (tryLoc) {
|
|
866
340
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
867
341
|
var entry = this.tryEntries[i];
|
|
342
|
+
|
|
868
343
|
if (entry.tryLoc === tryLoc) {
|
|
869
344
|
var record = entry.completion;
|
|
870
|
-
|
|
345
|
+
|
|
346
|
+
if ("throw" === record.type) {
|
|
871
347
|
var thrown = record.arg;
|
|
872
348
|
resetTryEntry(entry);
|
|
873
349
|
}
|
|
350
|
+
|
|
874
351
|
return thrown;
|
|
875
352
|
}
|
|
876
353
|
}
|
|
877
354
|
|
|
878
|
-
// The context.catch method must only be called with a location
|
|
879
|
-
// argument that corresponds to a known catch block.
|
|
880
355
|
throw new Error("illegal catch attempt");
|
|
881
356
|
},
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
this.delegate = {
|
|
357
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
358
|
+
return this.delegate = {
|
|
885
359
|
iterator: values(iterable),
|
|
886
360
|
resultName: resultName,
|
|
887
361
|
nextLoc: nextLoc
|
|
888
|
-
};
|
|
362
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
363
|
+
}
|
|
364
|
+
}, exports;
|
|
365
|
+
}
|
|
889
366
|
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
367
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
368
|
+
try {
|
|
369
|
+
var info = gen[key](arg);
|
|
370
|
+
var value = info.value;
|
|
371
|
+
} catch (error) {
|
|
372
|
+
reject(error);
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
if (info.done) {
|
|
377
|
+
resolve(value);
|
|
378
|
+
} else {
|
|
379
|
+
Promise.resolve(value).then(_next, _throw);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
function _asyncToGenerator(fn) {
|
|
384
|
+
return function () {
|
|
385
|
+
var self = this,
|
|
386
|
+
args = arguments;
|
|
387
|
+
return new Promise(function (resolve, reject) {
|
|
388
|
+
var gen = fn.apply(self, args);
|
|
389
|
+
|
|
390
|
+
function _next(value) {
|
|
391
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
894
392
|
}
|
|
895
393
|
|
|
896
|
-
|
|
394
|
+
function _throw(err) {
|
|
395
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
_next(undefined);
|
|
399
|
+
});
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
function _extends() {
|
|
404
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
405
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
406
|
+
var source = arguments[i];
|
|
407
|
+
|
|
408
|
+
for (var key in source) {
|
|
409
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
410
|
+
target[key] = source[key];
|
|
411
|
+
}
|
|
412
|
+
}
|
|
897
413
|
}
|
|
414
|
+
|
|
415
|
+
return target;
|
|
416
|
+
};
|
|
417
|
+
return _extends.apply(this, arguments);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
function _inheritsLoose(subClass, superClass) {
|
|
421
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
422
|
+
subClass.prototype.constructor = subClass;
|
|
423
|
+
|
|
424
|
+
_setPrototypeOf(subClass, superClass);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
function _getPrototypeOf(o) {
|
|
428
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
429
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
430
|
+
};
|
|
431
|
+
return _getPrototypeOf(o);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
function _setPrototypeOf(o, p) {
|
|
435
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
436
|
+
o.__proto__ = p;
|
|
437
|
+
return o;
|
|
898
438
|
};
|
|
439
|
+
return _setPrototypeOf(o, p);
|
|
440
|
+
}
|
|
899
441
|
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
} catch (accidentalStrictMode) {
|
|
917
|
-
// This module should not be running in strict mode, so the above
|
|
918
|
-
// assignment should always work unless something is misconfigured. Just
|
|
919
|
-
// in case runtime.js accidentally runs in strict mode, in modern engines
|
|
920
|
-
// we can explicitly access globalThis. In older engines we can escape
|
|
921
|
-
// strict mode using a global Function call. This could conceivably fail
|
|
922
|
-
// if a Content Security Policy forbids using Function, but in that case
|
|
923
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
|
924
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
|
925
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
926
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
927
|
-
if (typeof globalThis === "object") {
|
|
928
|
-
globalThis.regeneratorRuntime = runtime;
|
|
442
|
+
function _isNativeReflectConstruct() {
|
|
443
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
444
|
+
if (Reflect.construct.sham) return false;
|
|
445
|
+
if (typeof Proxy === "function") return true;
|
|
446
|
+
|
|
447
|
+
try {
|
|
448
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
449
|
+
return true;
|
|
450
|
+
} catch (e) {
|
|
451
|
+
return false;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
function _construct(Parent, args, Class) {
|
|
456
|
+
if (_isNativeReflectConstruct()) {
|
|
457
|
+
_construct = Reflect.construct.bind();
|
|
929
458
|
} else {
|
|
930
|
-
|
|
459
|
+
_construct = function _construct(Parent, args, Class) {
|
|
460
|
+
var a = [null];
|
|
461
|
+
a.push.apply(a, args);
|
|
462
|
+
var Constructor = Function.bind.apply(Parent, a);
|
|
463
|
+
var instance = new Constructor();
|
|
464
|
+
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
465
|
+
return instance;
|
|
466
|
+
};
|
|
931
467
|
}
|
|
468
|
+
|
|
469
|
+
return _construct.apply(null, arguments);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
function _isNativeFunction(fn) {
|
|
473
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
function _wrapNativeSuper(Class) {
|
|
477
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
478
|
+
|
|
479
|
+
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
480
|
+
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
481
|
+
|
|
482
|
+
if (typeof Class !== "function") {
|
|
483
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
if (typeof _cache !== "undefined") {
|
|
487
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
|
488
|
+
|
|
489
|
+
_cache.set(Class, Wrapper);
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
function Wrapper() {
|
|
493
|
+
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
|
497
|
+
constructor: {
|
|
498
|
+
value: Wrapper,
|
|
499
|
+
enumerable: false,
|
|
500
|
+
writable: true,
|
|
501
|
+
configurable: true
|
|
502
|
+
}
|
|
503
|
+
});
|
|
504
|
+
return _setPrototypeOf(Wrapper, Class);
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
return _wrapNativeSuper(Class);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
function _assertThisInitialized(self) {
|
|
511
|
+
if (self === void 0) {
|
|
512
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
return self;
|
|
932
516
|
}
|
|
933
|
-
});
|
|
934
517
|
|
|
935
518
|
var AxiosService = /*#__PURE__*/function () {
|
|
936
519
|
function AxiosService(config) {
|
|
@@ -941,8 +524,8 @@ var AxiosService = /*#__PURE__*/function () {
|
|
|
941
524
|
var _proto = AxiosService.prototype;
|
|
942
525
|
|
|
943
526
|
_proto.apiRequest = /*#__PURE__*/function () {
|
|
944
|
-
var _apiRequest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
945
|
-
return
|
|
527
|
+
var _apiRequest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(config, url, data) {
|
|
528
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
946
529
|
while (1) {
|
|
947
530
|
switch (_context.prev = _context.next) {
|
|
948
531
|
case 0:
|
|
@@ -971,8 +554,8 @@ var AxiosService = /*#__PURE__*/function () {
|
|
|
971
554
|
}();
|
|
972
555
|
|
|
973
556
|
_proto.apiRequestHeader = /*#__PURE__*/function () {
|
|
974
|
-
var _apiRequestHeader = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
975
|
-
return
|
|
557
|
+
var _apiRequestHeader = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(config, url, headerToRetrieve, data) {
|
|
558
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
976
559
|
while (1) {
|
|
977
560
|
switch (_context2.prev = _context2.next) {
|
|
978
561
|
case 0:
|
|
@@ -1075,9 +658,9 @@ var APIService = /*#__PURE__*/function (_AxiosService) {
|
|
|
1075
658
|
});
|
|
1076
659
|
|
|
1077
660
|
createAuthRefreshInterceptor(_this.axios, /*#__PURE__*/function () {
|
|
1078
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
661
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(failedRequest) {
|
|
1079
662
|
var tokenResp;
|
|
1080
|
-
return
|
|
663
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1081
664
|
while (1) {
|
|
1082
665
|
switch (_context.prev = _context.next) {
|
|
1083
666
|
case 0:
|
|
@@ -1193,11 +776,11 @@ var ApisPracticeManager = /*#__PURE__*/function () {
|
|
|
1193
776
|
_proto.get =
|
|
1194
777
|
/*#__PURE__*/
|
|
1195
778
|
function () {
|
|
1196
|
-
var _get = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
779
|
+
var _get = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(practiceUuid) {
|
|
1197
780
|
var _this = this;
|
|
1198
781
|
|
|
1199
782
|
var practiceInstance, newPracticeInstance, authTokenFunc;
|
|
1200
|
-
return
|
|
783
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1201
784
|
while (1) {
|
|
1202
785
|
switch (_context2.prev = _context2.next) {
|
|
1203
786
|
case 0:
|
|
@@ -1214,8 +797,8 @@ var ApisPracticeManager = /*#__PURE__*/function () {
|
|
|
1214
797
|
newPracticeInstance = init(this.serviceCollReq, undefined, this.useLocalStorage); // Create one auth token callback per practice since the practice uuid needs to change
|
|
1215
798
|
|
|
1216
799
|
authTokenFunc = /*#__PURE__*/function () {
|
|
1217
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
1218
|
-
return
|
|
800
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
801
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1219
802
|
while (1) {
|
|
1220
803
|
switch (_context.prev = _context.next) {
|
|
1221
804
|
case 0:
|
|
@@ -1526,14 +1109,15 @@ var IdentityCreationConflict = /*#__PURE__*/function (_Error7) {
|
|
|
1526
1109
|
})(exports.PracticeEmailKind || (exports.PracticeEmailKind = {}));
|
|
1527
1110
|
|
|
1528
1111
|
(function (PracticeConfigKind) {
|
|
1529
|
-
PracticeConfigKind["
|
|
1530
|
-
PracticeConfigKind["PractitionerChatbox"] = "PractitionerChatbox";
|
|
1112
|
+
PracticeConfigKind["PracticeCloseConsultationTypes"] = "PracticeCloseConsultationTypes";
|
|
1531
1113
|
PracticeConfigKind["PracticeConfigExample"] = "PracticeConfigExample";
|
|
1532
|
-
PracticeConfigKind["PracticeLocaleSwitcher"] = "PracticeLocaleSwitcher";
|
|
1533
1114
|
PracticeConfigKind["PracticeCookieBanner"] = "PracticeCookieBanner";
|
|
1534
|
-
PracticeConfigKind["PracticePharmacyPicker"] = "PracticePharmacyPicker";
|
|
1535
1115
|
PracticeConfigKind["PracticeCssVariables"] = "PracticeCssVariables";
|
|
1536
1116
|
PracticeConfigKind["PracticeFontsLinks"] = "PracticeFontsLinks";
|
|
1117
|
+
PracticeConfigKind["PracticeLocaleSwitcher"] = "PracticeLocaleSwitcher";
|
|
1118
|
+
PracticeConfigKind["PracticePharmacyPicker"] = "PracticePharmacyPicker";
|
|
1119
|
+
PracticeConfigKind["PractitionerChatbox"] = "PractitionerChatbox";
|
|
1120
|
+
PracticeConfigKind["PractitionerConsultList"] = "PractitionerConsultList";
|
|
1537
1121
|
})(exports.PracticeConfigKind || (exports.PracticeConfigKind = {}));
|
|
1538
1122
|
|
|
1539
1123
|
(function (StripePriceType) {
|
|
@@ -1859,9 +1443,9 @@ var DiagnosisService = /*#__PURE__*/function () {
|
|
|
1859
1443
|
_proto.getAllDrugs =
|
|
1860
1444
|
/*#__PURE__*/
|
|
1861
1445
|
function () {
|
|
1862
|
-
var _getAllDrugs = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
1446
|
+
var _getAllDrugs = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(uuidPractice) {
|
|
1863
1447
|
var res;
|
|
1864
|
-
return
|
|
1448
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1865
1449
|
while (1) {
|
|
1866
1450
|
switch (_context.prev = _context.next) {
|
|
1867
1451
|
case 0:
|
|
@@ -1937,10 +1521,10 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
1937
1521
|
_proto.m2mToken =
|
|
1938
1522
|
/*#__PURE__*/
|
|
1939
1523
|
function () {
|
|
1940
|
-
var _m2mToken = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
1524
|
+
var _m2mToken = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(req) {
|
|
1941
1525
|
var resp, config, _e$response, code;
|
|
1942
1526
|
|
|
1943
|
-
return
|
|
1527
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1944
1528
|
while (1) {
|
|
1945
1529
|
switch (_context.prev = _context.next) {
|
|
1946
1530
|
case 0:
|
|
@@ -2015,10 +1599,10 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
2015
1599
|
_proto.authToken =
|
|
2016
1600
|
/*#__PURE__*/
|
|
2017
1601
|
function () {
|
|
2018
|
-
var _authToken = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
1602
|
+
var _authToken = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(req) {
|
|
2019
1603
|
var resp, config, _e$response2, code;
|
|
2020
1604
|
|
|
2021
|
-
return
|
|
1605
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2022
1606
|
while (1) {
|
|
2023
1607
|
switch (_context2.prev = _context2.next) {
|
|
2024
1608
|
case 0:
|
|
@@ -2095,9 +1679,9 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
2095
1679
|
_proto.authRefresh =
|
|
2096
1680
|
/*#__PURE__*/
|
|
2097
1681
|
function () {
|
|
2098
|
-
var _authRefresh = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
1682
|
+
var _authRefresh = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(refreshToken) {
|
|
2099
1683
|
var config;
|
|
2100
|
-
return
|
|
1684
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
2101
1685
|
while (1) {
|
|
2102
1686
|
switch (_context3.prev = _context3.next) {
|
|
2103
1687
|
case 0:
|
|
@@ -2131,8 +1715,8 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
2131
1715
|
_proto.authLogout =
|
|
2132
1716
|
/*#__PURE__*/
|
|
2133
1717
|
function () {
|
|
2134
|
-
var _authLogout = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2135
|
-
return
|
|
1718
|
+
var _authLogout = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
1719
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
2136
1720
|
while (1) {
|
|
2137
1721
|
switch (_context4.prev = _context4.next) {
|
|
2138
1722
|
case 0:
|
|
@@ -2163,8 +1747,8 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
2163
1747
|
_proto.authRecover =
|
|
2164
1748
|
/*#__PURE__*/
|
|
2165
1749
|
function () {
|
|
2166
|
-
var _authRecover = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2167
|
-
return
|
|
1750
|
+
var _authRecover = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(req) {
|
|
1751
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
2168
1752
|
while (1) {
|
|
2169
1753
|
switch (_context5.prev = _context5.next) {
|
|
2170
1754
|
case 0:
|
|
@@ -2196,10 +1780,10 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
2196
1780
|
_proto.identityCreate =
|
|
2197
1781
|
/*#__PURE__*/
|
|
2198
1782
|
function () {
|
|
2199
|
-
var _identityCreate = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
1783
|
+
var _identityCreate = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(req) {
|
|
2200
1784
|
var resp, _e$response3, code;
|
|
2201
1785
|
|
|
2202
|
-
return
|
|
1786
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
2203
1787
|
while (1) {
|
|
2204
1788
|
switch (_context6.prev = _context6.next) {
|
|
2205
1789
|
case 0:
|
|
@@ -2271,11 +1855,11 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
2271
1855
|
_proto.identityGet =
|
|
2272
1856
|
/*#__PURE__*/
|
|
2273
1857
|
function () {
|
|
2274
|
-
var _identityGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
1858
|
+
var _identityGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(identityID, skipCache) {
|
|
2275
1859
|
var _tokens$accessToken, _tokens$refreshToken;
|
|
2276
1860
|
|
|
2277
1861
|
var tokens, cacheKey, identity;
|
|
2278
|
-
return
|
|
1862
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
2279
1863
|
while (1) {
|
|
2280
1864
|
switch (_context7.prev = _context7.next) {
|
|
2281
1865
|
case 0:
|
|
@@ -2335,11 +1919,11 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
2335
1919
|
_proto.whoAmI =
|
|
2336
1920
|
/*#__PURE__*/
|
|
2337
1921
|
function () {
|
|
2338
|
-
var _whoAmI = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
1922
|
+
var _whoAmI = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(refreshCache) {
|
|
2339
1923
|
var _this$api$getTokens$a;
|
|
2340
1924
|
|
|
2341
1925
|
var cacheKey;
|
|
2342
|
-
return
|
|
1926
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
2343
1927
|
while (1) {
|
|
2344
1928
|
switch (_context8.prev = _context8.next) {
|
|
2345
1929
|
case 0:
|
|
@@ -2389,8 +1973,8 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
2389
1973
|
_proto.identityUpdate =
|
|
2390
1974
|
/*#__PURE__*/
|
|
2391
1975
|
function () {
|
|
2392
|
-
var _identityUpdate = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2393
|
-
return
|
|
1976
|
+
var _identityUpdate = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(identityID, req) {
|
|
1977
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
2394
1978
|
while (1) {
|
|
2395
1979
|
switch (_context9.prev = _context9.next) {
|
|
2396
1980
|
case 0:
|
|
@@ -2423,9 +2007,9 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
2423
2007
|
_proto.identityMFAQRCode =
|
|
2424
2008
|
/*#__PURE__*/
|
|
2425
2009
|
function () {
|
|
2426
|
-
var _identityMFAQRCode = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2010
|
+
var _identityMFAQRCode = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(identityID, password) {
|
|
2427
2011
|
var req;
|
|
2428
|
-
return
|
|
2012
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
2429
2013
|
while (1) {
|
|
2430
2014
|
switch (_context10.prev = _context10.next) {
|
|
2431
2015
|
case 0:
|
|
@@ -2463,8 +2047,8 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
2463
2047
|
_proto.identitySendConfirmEmail =
|
|
2464
2048
|
/*#__PURE__*/
|
|
2465
2049
|
function () {
|
|
2466
|
-
var _identitySendConfirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2467
|
-
return
|
|
2050
|
+
var _identitySendConfirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(req) {
|
|
2051
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
2468
2052
|
while (1) {
|
|
2469
2053
|
switch (_context11.prev = _context11.next) {
|
|
2470
2054
|
case 0:
|
|
@@ -2495,8 +2079,8 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
2495
2079
|
_proto.identityGetByCustomerEmail =
|
|
2496
2080
|
/*#__PURE__*/
|
|
2497
2081
|
function () {
|
|
2498
|
-
var _identityGetByCustomerEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2499
|
-
return
|
|
2082
|
+
var _identityGetByCustomerEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(email) {
|
|
2083
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
2500
2084
|
while (1) {
|
|
2501
2085
|
switch (_context12.prev = _context12.next) {
|
|
2502
2086
|
case 0:
|
|
@@ -2527,8 +2111,8 @@ var GuardService = /*#__PURE__*/function () {
|
|
|
2527
2111
|
_proto.identityGetByHash =
|
|
2528
2112
|
/*#__PURE__*/
|
|
2529
2113
|
function () {
|
|
2530
|
-
var _identityGetByHash = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2531
|
-
return
|
|
2114
|
+
var _identityGetByHash = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(b64Hash) {
|
|
2115
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
2532
2116
|
while (1) {
|
|
2533
2117
|
switch (_context13.prev = _context13.next) {
|
|
2534
2118
|
case 0:
|
|
@@ -2874,8 +2458,8 @@ var TellerService = /*#__PURE__*/function () {
|
|
|
2874
2458
|
var _proto = TellerService.prototype;
|
|
2875
2459
|
|
|
2876
2460
|
_proto.lockboxDataStore = /*#__PURE__*/function () {
|
|
2877
|
-
var _lockboxDataStore = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2878
|
-
return
|
|
2461
|
+
var _lockboxDataStore = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(lockboxUuid, req, lockboxOwnerUuid, previousDataUuid) {
|
|
2462
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2879
2463
|
while (1) {
|
|
2880
2464
|
switch (_context.prev = _context.next) {
|
|
2881
2465
|
case 0:
|
|
@@ -2981,8 +2565,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
2981
2565
|
var _proto = VaultService.prototype;
|
|
2982
2566
|
|
|
2983
2567
|
_proto.lockboxCreate = /*#__PURE__*/function () {
|
|
2984
|
-
var _lockboxCreate = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2985
|
-
return
|
|
2568
|
+
var _lockboxCreate = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(lockboxMetadata) {
|
|
2569
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2986
2570
|
while (1) {
|
|
2987
2571
|
switch (_context.prev = _context.next) {
|
|
2988
2572
|
case 0:
|
|
@@ -3004,8 +2588,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
3004
2588
|
}();
|
|
3005
2589
|
|
|
3006
2590
|
_proto.lockboxMetadataAdd = /*#__PURE__*/function () {
|
|
3007
|
-
var _lockboxMetadataAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
3008
|
-
return
|
|
2591
|
+
var _lockboxMetadataAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(lockboxUuid, lockboxMetadata, lockboxOwnerUuid) {
|
|
2592
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
3009
2593
|
while (1) {
|
|
3010
2594
|
switch (_context2.prev = _context2.next) {
|
|
3011
2595
|
case 0:
|
|
@@ -3031,8 +2615,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
3031
2615
|
}();
|
|
3032
2616
|
|
|
3033
2617
|
_proto.lockboxSecretGet = /*#__PURE__*/function () {
|
|
3034
|
-
var _lockboxSecretGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
3035
|
-
return
|
|
2618
|
+
var _lockboxSecretGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(lockboxUuid, lockboxOwnerUuid) {
|
|
2619
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
3036
2620
|
while (1) {
|
|
3037
2621
|
switch (_context3.prev = _context3.next) {
|
|
3038
2622
|
case 0:
|
|
@@ -3058,8 +2642,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
3058
2642
|
}();
|
|
3059
2643
|
|
|
3060
2644
|
_proto.lockboxGrant = /*#__PURE__*/function () {
|
|
3061
|
-
var _lockboxGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
3062
|
-
return
|
|
2645
|
+
var _lockboxGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(lockboxUuid, req, lockboxOwnerUuid) {
|
|
2646
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
3063
2647
|
while (1) {
|
|
3064
2648
|
switch (_context4.prev = _context4.next) {
|
|
3065
2649
|
case 0:
|
|
@@ -3093,8 +2677,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
3093
2677
|
_proto.grantsGet =
|
|
3094
2678
|
/*#__PURE__*/
|
|
3095
2679
|
function () {
|
|
3096
|
-
var _grantsGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
3097
|
-
return
|
|
2680
|
+
var _grantsGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
2681
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
3098
2682
|
while (1) {
|
|
3099
2683
|
switch (_context5.prev = _context5.next) {
|
|
3100
2684
|
case 0:
|
|
@@ -3129,8 +2713,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
3129
2713
|
_proto.lockboxDataStore =
|
|
3130
2714
|
/*#__PURE__*/
|
|
3131
2715
|
function () {
|
|
3132
|
-
var _lockboxDataStore = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
3133
|
-
return
|
|
2716
|
+
var _lockboxDataStore = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(lockboxUuid, req, lockboxOwnerUuid, previousDataUuid) {
|
|
2717
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
3134
2718
|
while (1) {
|
|
3135
2719
|
switch (_context6.prev = _context6.next) {
|
|
3136
2720
|
case 0:
|
|
@@ -3157,9 +2741,9 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
3157
2741
|
}();
|
|
3158
2742
|
|
|
3159
2743
|
_proto.lockboxDataGet = /*#__PURE__*/function () {
|
|
3160
|
-
var _lockboxDataGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
2744
|
+
var _lockboxDataGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(lockboxUuid, dataUuid, lockboxOwnerUuid, stream) {
|
|
3161
2745
|
var data;
|
|
3162
|
-
return
|
|
2746
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
3163
2747
|
while (1) {
|
|
3164
2748
|
switch (_context7.prev = _context7.next) {
|
|
3165
2749
|
case 0:
|
|
@@ -3206,8 +2790,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
3206
2790
|
}();
|
|
3207
2791
|
|
|
3208
2792
|
_proto.lockboxManifestGet = /*#__PURE__*/function () {
|
|
3209
|
-
var _lockboxManifestGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
3210
|
-
return
|
|
2793
|
+
var _lockboxManifestGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(lockboxUuid, filter, lockboxOwnerUuid) {
|
|
2794
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
3211
2795
|
while (1) {
|
|
3212
2796
|
switch (_context8.prev = _context8.next) {
|
|
3213
2797
|
case 0:
|
|
@@ -3234,8 +2818,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
3234
2818
|
}();
|
|
3235
2819
|
|
|
3236
2820
|
_proto.lockboxMetadataGet = /*#__PURE__*/function () {
|
|
3237
|
-
var _lockboxMetadataGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
3238
|
-
return
|
|
2821
|
+
var _lockboxMetadataGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(lockboxUuid, fields, groupby, filter, lockboxOwnerUuid) {
|
|
2822
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
3239
2823
|
while (1) {
|
|
3240
2824
|
switch (_context9.prev = _context9.next) {
|
|
3241
2825
|
case 0:
|
|
@@ -3274,8 +2858,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
3274
2858
|
_proto.vaultIndexPut =
|
|
3275
2859
|
/*#__PURE__*/
|
|
3276
2860
|
function () {
|
|
3277
|
-
var _vaultIndexPut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
3278
|
-
return
|
|
2861
|
+
var _vaultIndexPut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(entries, indexOwnerUuid) {
|
|
2862
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
3279
2863
|
while (1) {
|
|
3280
2864
|
switch (_context10.prev = _context10.next) {
|
|
3281
2865
|
case 0:
|
|
@@ -3309,8 +2893,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
3309
2893
|
_proto.vaultIndexSnapshotPut =
|
|
3310
2894
|
/*#__PURE__*/
|
|
3311
2895
|
function () {
|
|
3312
|
-
var _vaultIndexSnapshotPut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
3313
|
-
return
|
|
2896
|
+
var _vaultIndexSnapshotPut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(entry) {
|
|
2897
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
3314
2898
|
while (1) {
|
|
3315
2899
|
switch (_context11.prev = _context11.next) {
|
|
3316
2900
|
case 0:
|
|
@@ -3343,8 +2927,8 @@ var VaultService = /*#__PURE__*/function () {
|
|
|
3343
2927
|
_proto.vaultIndexGet =
|
|
3344
2928
|
/*#__PURE__*/
|
|
3345
2929
|
function () {
|
|
3346
|
-
var _vaultIndexGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
|
3347
|
-
return
|
|
2930
|
+
var _vaultIndexGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(indexKeys, identifiers, timestamp) {
|
|
2931
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
3348
2932
|
while (1) {
|
|
3349
2933
|
switch (_context12.prev = _context12.next) {
|
|
3350
2934
|
case 0:
|