@uniformdev/next-app-router 20.70.0 → 20.70.1-alpha.10
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/cache.js +570 -494
- package/dist/cache.mjs +570 -494
- package/dist/component.js +6 -372
- package/dist/component.mjs +6 -372
- package/dist/handler.js +668 -592
- package/dist/handler.mjs +668 -592
- package/dist/index.esm.js +666 -590
- package/dist/index.js +669 -593
- package/dist/index.mjs +666 -590
- package/dist/middleware.js +608 -539
- package/dist/middleware.mjs +608 -539
- package/package.json +19 -19
package/dist/middleware.js
CHANGED
|
@@ -8,6 +8,7 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
8
8
|
var __typeError = (msg) => {
|
|
9
9
|
throw TypeError(msg);
|
|
10
10
|
};
|
|
11
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
12
|
var __commonJS = (cb, mod) => function __require() {
|
|
12
13
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
13
14
|
};
|
|
@@ -32,16 +33,25 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
33
|
mod
|
|
33
34
|
));
|
|
34
35
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
36
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
35
37
|
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
36
38
|
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
37
39
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
38
40
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
41
|
+
var __privateWrapper = (obj, member, setter, getter) => ({
|
|
42
|
+
set _(value) {
|
|
43
|
+
__privateSet(obj, member, value, setter);
|
|
44
|
+
},
|
|
45
|
+
get _() {
|
|
46
|
+
return __privateGet(obj, member, getter);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
39
49
|
|
|
40
50
|
// ../../node_modules/.pnpm/yocto-queue@0.1.0/node_modules/yocto-queue/index.js
|
|
41
51
|
var require_yocto_queue = __commonJS({
|
|
42
52
|
"../../node_modules/.pnpm/yocto-queue@0.1.0/node_modules/yocto-queue/index.js"(exports2, module2) {
|
|
43
53
|
"use strict";
|
|
44
|
-
var
|
|
54
|
+
var Node2 = class {
|
|
45
55
|
/// value;
|
|
46
56
|
/// next;
|
|
47
57
|
constructor(value) {
|
|
@@ -49,7 +59,7 @@ var require_yocto_queue = __commonJS({
|
|
|
49
59
|
this.next = void 0;
|
|
50
60
|
}
|
|
51
61
|
};
|
|
52
|
-
var
|
|
62
|
+
var Queue2 = class {
|
|
53
63
|
// TODO: Use private class fields when targeting Node.js 12.
|
|
54
64
|
// #_head;
|
|
55
65
|
// #_tail;
|
|
@@ -58,7 +68,7 @@ var require_yocto_queue = __commonJS({
|
|
|
58
68
|
this.clear();
|
|
59
69
|
}
|
|
60
70
|
enqueue(value) {
|
|
61
|
-
const node = new
|
|
71
|
+
const node = new Node2(value);
|
|
62
72
|
if (this._head) {
|
|
63
73
|
this._tail.next = node;
|
|
64
74
|
this._tail = node;
|
|
@@ -93,7 +103,7 @@ var require_yocto_queue = __commonJS({
|
|
|
93
103
|
}
|
|
94
104
|
}
|
|
95
105
|
};
|
|
96
|
-
module2.exports =
|
|
106
|
+
module2.exports = Queue2;
|
|
97
107
|
}
|
|
98
108
|
});
|
|
99
109
|
|
|
@@ -101,12 +111,12 @@ var require_yocto_queue = __commonJS({
|
|
|
101
111
|
var require_p_limit = __commonJS({
|
|
102
112
|
"../../node_modules/.pnpm/p-limit@3.1.0/node_modules/p-limit/index.js"(exports2, module2) {
|
|
103
113
|
"use strict";
|
|
104
|
-
var
|
|
105
|
-
var
|
|
114
|
+
var Queue2 = require_yocto_queue();
|
|
115
|
+
var pLimit3 = (concurrency) => {
|
|
106
116
|
if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) {
|
|
107
117
|
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
|
108
118
|
}
|
|
109
|
-
const queue = new
|
|
119
|
+
const queue = new Queue2();
|
|
110
120
|
let activeCount = 0;
|
|
111
121
|
const next = () => {
|
|
112
122
|
activeCount--;
|
|
@@ -151,7 +161,238 @@ var require_p_limit = __commonJS({
|
|
|
151
161
|
});
|
|
152
162
|
return generator;
|
|
153
163
|
};
|
|
154
|
-
module2.exports =
|
|
164
|
+
module2.exports = pLimit3;
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
// ../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js
|
|
169
|
+
var require_retry_operation = __commonJS({
|
|
170
|
+
"../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js"(exports2, module2) {
|
|
171
|
+
"use strict";
|
|
172
|
+
function RetryOperation(timeouts, options) {
|
|
173
|
+
if (typeof options === "boolean") {
|
|
174
|
+
options = { forever: options };
|
|
175
|
+
}
|
|
176
|
+
this._originalTimeouts = JSON.parse(JSON.stringify(timeouts));
|
|
177
|
+
this._timeouts = timeouts;
|
|
178
|
+
this._options = options || {};
|
|
179
|
+
this._maxRetryTime = options && options.maxRetryTime || Infinity;
|
|
180
|
+
this._fn = null;
|
|
181
|
+
this._errors = [];
|
|
182
|
+
this._attempts = 1;
|
|
183
|
+
this._operationTimeout = null;
|
|
184
|
+
this._operationTimeoutCb = null;
|
|
185
|
+
this._timeout = null;
|
|
186
|
+
this._operationStart = null;
|
|
187
|
+
this._timer = null;
|
|
188
|
+
if (this._options.forever) {
|
|
189
|
+
this._cachedTimeouts = this._timeouts.slice(0);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
module2.exports = RetryOperation;
|
|
193
|
+
RetryOperation.prototype.reset = function() {
|
|
194
|
+
this._attempts = 1;
|
|
195
|
+
this._timeouts = this._originalTimeouts.slice(0);
|
|
196
|
+
};
|
|
197
|
+
RetryOperation.prototype.stop = function() {
|
|
198
|
+
if (this._timeout) {
|
|
199
|
+
clearTimeout(this._timeout);
|
|
200
|
+
}
|
|
201
|
+
if (this._timer) {
|
|
202
|
+
clearTimeout(this._timer);
|
|
203
|
+
}
|
|
204
|
+
this._timeouts = [];
|
|
205
|
+
this._cachedTimeouts = null;
|
|
206
|
+
};
|
|
207
|
+
RetryOperation.prototype.retry = function(err) {
|
|
208
|
+
if (this._timeout) {
|
|
209
|
+
clearTimeout(this._timeout);
|
|
210
|
+
}
|
|
211
|
+
if (!err) {
|
|
212
|
+
return false;
|
|
213
|
+
}
|
|
214
|
+
var currentTime = (/* @__PURE__ */ new Date()).getTime();
|
|
215
|
+
if (err && currentTime - this._operationStart >= this._maxRetryTime) {
|
|
216
|
+
this._errors.push(err);
|
|
217
|
+
this._errors.unshift(new Error("RetryOperation timeout occurred"));
|
|
218
|
+
return false;
|
|
219
|
+
}
|
|
220
|
+
this._errors.push(err);
|
|
221
|
+
var timeout = this._timeouts.shift();
|
|
222
|
+
if (timeout === void 0) {
|
|
223
|
+
if (this._cachedTimeouts) {
|
|
224
|
+
this._errors.splice(0, this._errors.length - 1);
|
|
225
|
+
timeout = this._cachedTimeouts.slice(-1);
|
|
226
|
+
} else {
|
|
227
|
+
return false;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
var self = this;
|
|
231
|
+
this._timer = setTimeout(function() {
|
|
232
|
+
self._attempts++;
|
|
233
|
+
if (self._operationTimeoutCb) {
|
|
234
|
+
self._timeout = setTimeout(function() {
|
|
235
|
+
self._operationTimeoutCb(self._attempts);
|
|
236
|
+
}, self._operationTimeout);
|
|
237
|
+
if (self._options.unref) {
|
|
238
|
+
self._timeout.unref();
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
self._fn(self._attempts);
|
|
242
|
+
}, timeout);
|
|
243
|
+
if (this._options.unref) {
|
|
244
|
+
this._timer.unref();
|
|
245
|
+
}
|
|
246
|
+
return true;
|
|
247
|
+
};
|
|
248
|
+
RetryOperation.prototype.attempt = function(fn, timeoutOps) {
|
|
249
|
+
this._fn = fn;
|
|
250
|
+
if (timeoutOps) {
|
|
251
|
+
if (timeoutOps.timeout) {
|
|
252
|
+
this._operationTimeout = timeoutOps.timeout;
|
|
253
|
+
}
|
|
254
|
+
if (timeoutOps.cb) {
|
|
255
|
+
this._operationTimeoutCb = timeoutOps.cb;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
var self = this;
|
|
259
|
+
if (this._operationTimeoutCb) {
|
|
260
|
+
this._timeout = setTimeout(function() {
|
|
261
|
+
self._operationTimeoutCb();
|
|
262
|
+
}, self._operationTimeout);
|
|
263
|
+
}
|
|
264
|
+
this._operationStart = (/* @__PURE__ */ new Date()).getTime();
|
|
265
|
+
this._fn(this._attempts);
|
|
266
|
+
};
|
|
267
|
+
RetryOperation.prototype.try = function(fn) {
|
|
268
|
+
console.log("Using RetryOperation.try() is deprecated");
|
|
269
|
+
this.attempt(fn);
|
|
270
|
+
};
|
|
271
|
+
RetryOperation.prototype.start = function(fn) {
|
|
272
|
+
console.log("Using RetryOperation.start() is deprecated");
|
|
273
|
+
this.attempt(fn);
|
|
274
|
+
};
|
|
275
|
+
RetryOperation.prototype.start = RetryOperation.prototype.try;
|
|
276
|
+
RetryOperation.prototype.errors = function() {
|
|
277
|
+
return this._errors;
|
|
278
|
+
};
|
|
279
|
+
RetryOperation.prototype.attempts = function() {
|
|
280
|
+
return this._attempts;
|
|
281
|
+
};
|
|
282
|
+
RetryOperation.prototype.mainError = function() {
|
|
283
|
+
if (this._errors.length === 0) {
|
|
284
|
+
return null;
|
|
285
|
+
}
|
|
286
|
+
var counts = {};
|
|
287
|
+
var mainError = null;
|
|
288
|
+
var mainErrorCount = 0;
|
|
289
|
+
for (var i = 0; i < this._errors.length; i++) {
|
|
290
|
+
var error = this._errors[i];
|
|
291
|
+
var message = error.message;
|
|
292
|
+
var count = (counts[message] || 0) + 1;
|
|
293
|
+
counts[message] = count;
|
|
294
|
+
if (count >= mainErrorCount) {
|
|
295
|
+
mainError = error;
|
|
296
|
+
mainErrorCount = count;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
return mainError;
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
|
|
304
|
+
// ../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry.js
|
|
305
|
+
var require_retry = __commonJS({
|
|
306
|
+
"../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry.js"(exports2) {
|
|
307
|
+
"use strict";
|
|
308
|
+
var RetryOperation = require_retry_operation();
|
|
309
|
+
exports2.operation = function(options) {
|
|
310
|
+
var timeouts = exports2.timeouts(options);
|
|
311
|
+
return new RetryOperation(timeouts, {
|
|
312
|
+
forever: options && (options.forever || options.retries === Infinity),
|
|
313
|
+
unref: options && options.unref,
|
|
314
|
+
maxRetryTime: options && options.maxRetryTime
|
|
315
|
+
});
|
|
316
|
+
};
|
|
317
|
+
exports2.timeouts = function(options) {
|
|
318
|
+
if (options instanceof Array) {
|
|
319
|
+
return [].concat(options);
|
|
320
|
+
}
|
|
321
|
+
var opts = {
|
|
322
|
+
retries: 10,
|
|
323
|
+
factor: 2,
|
|
324
|
+
minTimeout: 1 * 1e3,
|
|
325
|
+
maxTimeout: Infinity,
|
|
326
|
+
randomize: false
|
|
327
|
+
};
|
|
328
|
+
for (var key in options) {
|
|
329
|
+
opts[key] = options[key];
|
|
330
|
+
}
|
|
331
|
+
if (opts.minTimeout > opts.maxTimeout) {
|
|
332
|
+
throw new Error("minTimeout is greater than maxTimeout");
|
|
333
|
+
}
|
|
334
|
+
var timeouts = [];
|
|
335
|
+
for (var i = 0; i < opts.retries; i++) {
|
|
336
|
+
timeouts.push(this.createTimeout(i, opts));
|
|
337
|
+
}
|
|
338
|
+
if (options && options.forever && !timeouts.length) {
|
|
339
|
+
timeouts.push(this.createTimeout(i, opts));
|
|
340
|
+
}
|
|
341
|
+
timeouts.sort(function(a, b) {
|
|
342
|
+
return a - b;
|
|
343
|
+
});
|
|
344
|
+
return timeouts;
|
|
345
|
+
};
|
|
346
|
+
exports2.createTimeout = function(attempt, opts) {
|
|
347
|
+
var random = opts.randomize ? Math.random() + 1 : 1;
|
|
348
|
+
var timeout = Math.round(random * Math.max(opts.minTimeout, 1) * Math.pow(opts.factor, attempt));
|
|
349
|
+
timeout = Math.min(timeout, opts.maxTimeout);
|
|
350
|
+
return timeout;
|
|
351
|
+
};
|
|
352
|
+
exports2.wrap = function(obj, options, methods) {
|
|
353
|
+
if (options instanceof Array) {
|
|
354
|
+
methods = options;
|
|
355
|
+
options = null;
|
|
356
|
+
}
|
|
357
|
+
if (!methods) {
|
|
358
|
+
methods = [];
|
|
359
|
+
for (var key in obj) {
|
|
360
|
+
if (typeof obj[key] === "function") {
|
|
361
|
+
methods.push(key);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
for (var i = 0; i < methods.length; i++) {
|
|
366
|
+
var method = methods[i];
|
|
367
|
+
var original = obj[method];
|
|
368
|
+
obj[method] = function retryWrapper(original2) {
|
|
369
|
+
var op = exports2.operation(options);
|
|
370
|
+
var args = Array.prototype.slice.call(arguments, 1);
|
|
371
|
+
var callback = args.pop();
|
|
372
|
+
args.push(function(err) {
|
|
373
|
+
if (op.retry(err)) {
|
|
374
|
+
return;
|
|
375
|
+
}
|
|
376
|
+
if (err) {
|
|
377
|
+
arguments[0] = op.mainError();
|
|
378
|
+
}
|
|
379
|
+
callback.apply(this, arguments);
|
|
380
|
+
});
|
|
381
|
+
op.attempt(function() {
|
|
382
|
+
original2.apply(obj, args);
|
|
383
|
+
});
|
|
384
|
+
}.bind(obj, original);
|
|
385
|
+
obj[method].options = options;
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
});
|
|
390
|
+
|
|
391
|
+
// ../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/index.js
|
|
392
|
+
var require_retry2 = __commonJS({
|
|
393
|
+
"../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/index.js"(exports2, module2) {
|
|
394
|
+
"use strict";
|
|
395
|
+
module2.exports = require_retry();
|
|
155
396
|
}
|
|
156
397
|
});
|
|
157
398
|
|
|
@@ -359,8 +600,8 @@ var __defProp2 = Object.defineProperty;
|
|
|
359
600
|
var __typeError2 = (msg) => {
|
|
360
601
|
throw TypeError(msg);
|
|
361
602
|
};
|
|
362
|
-
var
|
|
363
|
-
var
|
|
603
|
+
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
604
|
+
var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
364
605
|
var __accessCheck2 = (obj, member, msg) => member.has(obj) || __typeError2("Cannot " + msg);
|
|
365
606
|
var __privateGet2 = (obj, member, getter) => (__accessCheck2(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
366
607
|
var __privateAdd2 = (obj, member, value) => member.has(obj) ? __typeError2("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
@@ -371,18 +612,18 @@ var ApiClientError = class _ApiClientError extends Error {
|
|
|
371
612
|
`${errorMessage}
|
|
372
613
|
${statusCode}${statusText ? " " + statusText : ""} (${fetchMethod} ${fetchUri}${requestId ? ` Request ID: ${requestId}` : ""})`
|
|
373
614
|
);
|
|
374
|
-
this
|
|
375
|
-
this
|
|
376
|
-
this
|
|
377
|
-
this
|
|
378
|
-
this
|
|
379
|
-
this
|
|
615
|
+
__publicField2(this, "errorMessage", errorMessage);
|
|
616
|
+
__publicField2(this, "fetchMethod", fetchMethod);
|
|
617
|
+
__publicField2(this, "fetchUri", fetchUri);
|
|
618
|
+
__publicField2(this, "statusCode", statusCode);
|
|
619
|
+
__publicField2(this, "statusText", statusText);
|
|
620
|
+
__publicField2(this, "requestId", requestId);
|
|
380
621
|
Object.setPrototypeOf(this, _ApiClientError.prototype);
|
|
381
622
|
}
|
|
382
623
|
};
|
|
383
624
|
var ApiClient = class _ApiClient {
|
|
384
625
|
constructor(options) {
|
|
385
|
-
|
|
626
|
+
__publicField2(this, "options");
|
|
386
627
|
var _a, _b, _c, _d, _e;
|
|
387
628
|
if (!options.apiKey && !options.bearerToken) {
|
|
388
629
|
throw new Error("You must provide an API key or a bearer token");
|
|
@@ -687,468 +928,269 @@ var _QuirkClient = class _QuirkClient2 extends ApiClient {
|
|
|
687
928
|
expectNoContent: true
|
|
688
929
|
});
|
|
689
930
|
}
|
|
690
|
-
/** Deletes a Quirk */
|
|
691
|
-
async remove(body) {
|
|
692
|
-
const fetchUri = this.createUrl(__privateGet2(_QuirkClient2, _url5));
|
|
693
|
-
await this.apiClient(fetchUri, {
|
|
694
|
-
method: "DELETE",
|
|
695
|
-
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
|
696
|
-
expectNoContent: true
|
|
697
|
-
});
|
|
698
|
-
}
|
|
699
|
-
};
|
|
700
|
-
_url5 = /* @__PURE__ */ new WeakMap();
|
|
701
|
-
__privateAdd2(_QuirkClient, _url5, "/api/v2/quirk");
|
|
702
|
-
var _url6;
|
|
703
|
-
var _SignalClient = class _SignalClient2 extends ApiClient {
|
|
704
|
-
constructor(options) {
|
|
705
|
-
super(options);
|
|
706
|
-
}
|
|
707
|
-
/** Fetches all Signals for a project */
|
|
708
|
-
async get(options) {
|
|
709
|
-
const { projectId } = this.options;
|
|
710
|
-
const fetchUri = this.createUrl(__privateGet2(_SignalClient2, _url6), { ...options, projectId });
|
|
711
|
-
return await this.apiClient(fetchUri);
|
|
712
|
-
}
|
|
713
|
-
/** Updates or creates (based on id) a Signal */
|
|
714
|
-
async upsert(body) {
|
|
715
|
-
const fetchUri = this.createUrl(__privateGet2(_SignalClient2, _url6));
|
|
716
|
-
await this.apiClient(fetchUri, {
|
|
717
|
-
method: "PUT",
|
|
718
|
-
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
|
719
|
-
expectNoContent: true
|
|
720
|
-
});
|
|
721
|
-
}
|
|
722
|
-
/** Deletes a Signal */
|
|
723
|
-
async remove(body) {
|
|
724
|
-
const fetchUri = this.createUrl(__privateGet2(_SignalClient2, _url6));
|
|
725
|
-
await this.apiClient(fetchUri, {
|
|
726
|
-
method: "DELETE",
|
|
727
|
-
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
|
728
|
-
expectNoContent: true
|
|
729
|
-
});
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
_url6 = /* @__PURE__ */ new WeakMap();
|
|
733
|
-
__privateAdd2(_SignalClient, _url6, "/api/v2/signal");
|
|
734
|
-
var _url7;
|
|
735
|
-
var _TestClient = class _TestClient2 extends ApiClient {
|
|
736
|
-
constructor(options) {
|
|
737
|
-
super(options);
|
|
738
|
-
}
|
|
739
|
-
/** Fetches all Tests for a project */
|
|
740
|
-
async get(options) {
|
|
741
|
-
const { projectId } = this.options;
|
|
742
|
-
const fetchUri = this.createUrl(__privateGet2(_TestClient2, _url7), { ...options, projectId });
|
|
743
|
-
return await this.apiClient(fetchUri);
|
|
744
|
-
}
|
|
745
|
-
/** Updates or creates (based on id) a Test */
|
|
746
|
-
async upsert(body) {
|
|
747
|
-
const fetchUri = this.createUrl(__privateGet2(_TestClient2, _url7));
|
|
748
|
-
await this.apiClient(fetchUri, {
|
|
749
|
-
method: "PUT",
|
|
750
|
-
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
|
751
|
-
expectNoContent: true
|
|
752
|
-
});
|
|
753
|
-
}
|
|
754
|
-
/** Deletes a Test */
|
|
755
|
-
async remove(body) {
|
|
756
|
-
const fetchUri = this.createUrl(__privateGet2(_TestClient2, _url7));
|
|
757
|
-
await this.apiClient(fetchUri, {
|
|
758
|
-
method: "DELETE",
|
|
759
|
-
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
|
760
|
-
expectNoContent: true
|
|
761
|
-
});
|
|
762
|
-
}
|
|
763
|
-
};
|
|
764
|
-
_url7 = /* @__PURE__ */ new WeakMap();
|
|
765
|
-
__privateAdd2(_TestClient, _url7, "/api/v2/test");
|
|
766
|
-
|
|
767
|
-
//
|
|
768
|
-
var
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
)
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
dequeue()
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
}
|
|
872
|
-
};
|
|
873
|
-
const run = async (fn, resolve, ...args) => {
|
|
874
|
-
activeCount++;
|
|
875
|
-
const result = (async () => fn(...args))();
|
|
876
|
-
resolve(result);
|
|
877
|
-
try {
|
|
878
|
-
await result;
|
|
879
|
-
} catch (e) {
|
|
880
|
-
}
|
|
881
|
-
next();
|
|
882
|
-
};
|
|
883
|
-
const enqueue = (fn, resolve, ...args) => {
|
|
884
|
-
queue.enqueue(run.bind(null, fn, resolve, ...args));
|
|
885
|
-
(async () => {
|
|
886
|
-
await Promise.resolve();
|
|
887
|
-
if (activeCount < concurrency && queue.size > 0) {
|
|
888
|
-
queue.dequeue()();
|
|
889
|
-
}
|
|
890
|
-
})();
|
|
891
|
-
};
|
|
892
|
-
const generator = (fn, ...args) => new Promise((resolve) => {
|
|
893
|
-
enqueue(fn, resolve, ...args);
|
|
894
|
-
});
|
|
895
|
-
Object.defineProperties(generator, {
|
|
896
|
-
activeCount: {
|
|
897
|
-
get: () => activeCount
|
|
898
|
-
},
|
|
899
|
-
pendingCount: {
|
|
900
|
-
get: () => queue.size
|
|
901
|
-
},
|
|
902
|
-
clearQueue: {
|
|
903
|
-
value: () => {
|
|
904
|
-
queue.clear();
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
});
|
|
908
|
-
return generator;
|
|
909
|
-
};
|
|
910
|
-
module2.exports = pLimit2;
|
|
911
|
-
}
|
|
912
|
-
});
|
|
913
|
-
var require_retry_operation = __commonJS2({
|
|
914
|
-
"../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js"(exports2, module2) {
|
|
915
|
-
"use strict";
|
|
916
|
-
function RetryOperation(timeouts, options) {
|
|
917
|
-
if (typeof options === "boolean") {
|
|
918
|
-
options = { forever: options };
|
|
919
|
-
}
|
|
920
|
-
this._originalTimeouts = JSON.parse(JSON.stringify(timeouts));
|
|
921
|
-
this._timeouts = timeouts;
|
|
922
|
-
this._options = options || {};
|
|
923
|
-
this._maxRetryTime = options && options.maxRetryTime || Infinity;
|
|
924
|
-
this._fn = null;
|
|
925
|
-
this._errors = [];
|
|
926
|
-
this._attempts = 1;
|
|
927
|
-
this._operationTimeout = null;
|
|
928
|
-
this._operationTimeoutCb = null;
|
|
929
|
-
this._timeout = null;
|
|
930
|
-
this._operationStart = null;
|
|
931
|
-
this._timer = null;
|
|
932
|
-
if (this._options.forever) {
|
|
933
|
-
this._cachedTimeouts = this._timeouts.slice(0);
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
module2.exports = RetryOperation;
|
|
937
|
-
RetryOperation.prototype.reset = function() {
|
|
938
|
-
this._attempts = 1;
|
|
939
|
-
this._timeouts = this._originalTimeouts.slice(0);
|
|
940
|
-
};
|
|
941
|
-
RetryOperation.prototype.stop = function() {
|
|
942
|
-
if (this._timeout) {
|
|
943
|
-
clearTimeout(this._timeout);
|
|
944
|
-
}
|
|
945
|
-
if (this._timer) {
|
|
946
|
-
clearTimeout(this._timer);
|
|
947
|
-
}
|
|
948
|
-
this._timeouts = [];
|
|
949
|
-
this._cachedTimeouts = null;
|
|
950
|
-
};
|
|
951
|
-
RetryOperation.prototype.retry = function(err) {
|
|
952
|
-
if (this._timeout) {
|
|
953
|
-
clearTimeout(this._timeout);
|
|
954
|
-
}
|
|
955
|
-
if (!err) {
|
|
956
|
-
return false;
|
|
957
|
-
}
|
|
958
|
-
var currentTime = (/* @__PURE__ */ new Date()).getTime();
|
|
959
|
-
if (err && currentTime - this._operationStart >= this._maxRetryTime) {
|
|
960
|
-
this._errors.push(err);
|
|
961
|
-
this._errors.unshift(new Error("RetryOperation timeout occurred"));
|
|
962
|
-
return false;
|
|
963
|
-
}
|
|
964
|
-
this._errors.push(err);
|
|
965
|
-
var timeout = this._timeouts.shift();
|
|
966
|
-
if (timeout === void 0) {
|
|
967
|
-
if (this._cachedTimeouts) {
|
|
968
|
-
this._errors.splice(0, this._errors.length - 1);
|
|
969
|
-
timeout = this._cachedTimeouts.slice(-1);
|
|
970
|
-
} else {
|
|
971
|
-
return false;
|
|
972
|
-
}
|
|
973
|
-
}
|
|
974
|
-
var self = this;
|
|
975
|
-
this._timer = setTimeout(function() {
|
|
976
|
-
self._attempts++;
|
|
977
|
-
if (self._operationTimeoutCb) {
|
|
978
|
-
self._timeout = setTimeout(function() {
|
|
979
|
-
self._operationTimeoutCb(self._attempts);
|
|
980
|
-
}, self._operationTimeout);
|
|
981
|
-
if (self._options.unref) {
|
|
982
|
-
self._timeout.unref();
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
self._fn(self._attempts);
|
|
986
|
-
}, timeout);
|
|
987
|
-
if (this._options.unref) {
|
|
988
|
-
this._timer.unref();
|
|
989
|
-
}
|
|
990
|
-
return true;
|
|
991
|
-
};
|
|
992
|
-
RetryOperation.prototype.attempt = function(fn, timeoutOps) {
|
|
993
|
-
this._fn = fn;
|
|
994
|
-
if (timeoutOps) {
|
|
995
|
-
if (timeoutOps.timeout) {
|
|
996
|
-
this._operationTimeout = timeoutOps.timeout;
|
|
997
|
-
}
|
|
998
|
-
if (timeoutOps.cb) {
|
|
999
|
-
this._operationTimeoutCb = timeoutOps.cb;
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
var self = this;
|
|
1003
|
-
if (this._operationTimeoutCb) {
|
|
1004
|
-
this._timeout = setTimeout(function() {
|
|
1005
|
-
self._operationTimeoutCb();
|
|
1006
|
-
}, self._operationTimeout);
|
|
1007
|
-
}
|
|
1008
|
-
this._operationStart = (/* @__PURE__ */ new Date()).getTime();
|
|
1009
|
-
this._fn(this._attempts);
|
|
1010
|
-
};
|
|
1011
|
-
RetryOperation.prototype.try = function(fn) {
|
|
1012
|
-
console.log("Using RetryOperation.try() is deprecated");
|
|
1013
|
-
this.attempt(fn);
|
|
1014
|
-
};
|
|
1015
|
-
RetryOperation.prototype.start = function(fn) {
|
|
1016
|
-
console.log("Using RetryOperation.start() is deprecated");
|
|
1017
|
-
this.attempt(fn);
|
|
1018
|
-
};
|
|
1019
|
-
RetryOperation.prototype.start = RetryOperation.prototype.try;
|
|
1020
|
-
RetryOperation.prototype.errors = function() {
|
|
1021
|
-
return this._errors;
|
|
1022
|
-
};
|
|
1023
|
-
RetryOperation.prototype.attempts = function() {
|
|
1024
|
-
return this._attempts;
|
|
1025
|
-
};
|
|
1026
|
-
RetryOperation.prototype.mainError = function() {
|
|
1027
|
-
if (this._errors.length === 0) {
|
|
1028
|
-
return null;
|
|
1029
|
-
}
|
|
1030
|
-
var counts = {};
|
|
1031
|
-
var mainError = null;
|
|
1032
|
-
var mainErrorCount = 0;
|
|
1033
|
-
for (var i = 0; i < this._errors.length; i++) {
|
|
1034
|
-
var error = this._errors[i];
|
|
1035
|
-
var message = error.message;
|
|
1036
|
-
var count = (counts[message] || 0) + 1;
|
|
1037
|
-
counts[message] = count;
|
|
1038
|
-
if (count >= mainErrorCount) {
|
|
1039
|
-
mainError = error;
|
|
1040
|
-
mainErrorCount = count;
|
|
1041
|
-
}
|
|
1042
|
-
}
|
|
1043
|
-
return mainError;
|
|
1044
|
-
};
|
|
1045
|
-
}
|
|
1046
|
-
});
|
|
1047
|
-
var require_retry = __commonJS2({
|
|
1048
|
-
"../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry.js"(exports2) {
|
|
1049
|
-
"use strict";
|
|
1050
|
-
var RetryOperation = require_retry_operation();
|
|
1051
|
-
exports2.operation = function(options) {
|
|
1052
|
-
var timeouts = exports2.timeouts(options);
|
|
1053
|
-
return new RetryOperation(timeouts, {
|
|
1054
|
-
forever: options && (options.forever || options.retries === Infinity),
|
|
1055
|
-
unref: options && options.unref,
|
|
1056
|
-
maxRetryTime: options && options.maxRetryTime
|
|
1057
|
-
});
|
|
1058
|
-
};
|
|
1059
|
-
exports2.timeouts = function(options) {
|
|
1060
|
-
if (options instanceof Array) {
|
|
1061
|
-
return [].concat(options);
|
|
1062
|
-
}
|
|
1063
|
-
var opts = {
|
|
1064
|
-
retries: 10,
|
|
1065
|
-
factor: 2,
|
|
1066
|
-
minTimeout: 1 * 1e3,
|
|
1067
|
-
maxTimeout: Infinity,
|
|
1068
|
-
randomize: false
|
|
1069
|
-
};
|
|
1070
|
-
for (var key in options) {
|
|
1071
|
-
opts[key] = options[key];
|
|
1072
|
-
}
|
|
1073
|
-
if (opts.minTimeout > opts.maxTimeout) {
|
|
1074
|
-
throw new Error("minTimeout is greater than maxTimeout");
|
|
1075
|
-
}
|
|
1076
|
-
var timeouts = [];
|
|
1077
|
-
for (var i = 0; i < opts.retries; i++) {
|
|
1078
|
-
timeouts.push(this.createTimeout(i, opts));
|
|
1079
|
-
}
|
|
1080
|
-
if (options && options.forever && !timeouts.length) {
|
|
1081
|
-
timeouts.push(this.createTimeout(i, opts));
|
|
931
|
+
/** Deletes a Quirk */
|
|
932
|
+
async remove(body) {
|
|
933
|
+
const fetchUri = this.createUrl(__privateGet2(_QuirkClient2, _url5));
|
|
934
|
+
await this.apiClient(fetchUri, {
|
|
935
|
+
method: "DELETE",
|
|
936
|
+
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
|
937
|
+
expectNoContent: true
|
|
938
|
+
});
|
|
939
|
+
}
|
|
940
|
+
};
|
|
941
|
+
_url5 = /* @__PURE__ */ new WeakMap();
|
|
942
|
+
__privateAdd2(_QuirkClient, _url5, "/api/v2/quirk");
|
|
943
|
+
var _url6;
|
|
944
|
+
var _SignalClient = class _SignalClient2 extends ApiClient {
|
|
945
|
+
constructor(options) {
|
|
946
|
+
super(options);
|
|
947
|
+
}
|
|
948
|
+
/** Fetches all Signals for a project */
|
|
949
|
+
async get(options) {
|
|
950
|
+
const { projectId } = this.options;
|
|
951
|
+
const fetchUri = this.createUrl(__privateGet2(_SignalClient2, _url6), { ...options, projectId });
|
|
952
|
+
return await this.apiClient(fetchUri);
|
|
953
|
+
}
|
|
954
|
+
/** Updates or creates (based on id) a Signal */
|
|
955
|
+
async upsert(body) {
|
|
956
|
+
const fetchUri = this.createUrl(__privateGet2(_SignalClient2, _url6));
|
|
957
|
+
await this.apiClient(fetchUri, {
|
|
958
|
+
method: "PUT",
|
|
959
|
+
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
|
960
|
+
expectNoContent: true
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
/** Deletes a Signal */
|
|
964
|
+
async remove(body) {
|
|
965
|
+
const fetchUri = this.createUrl(__privateGet2(_SignalClient2, _url6));
|
|
966
|
+
await this.apiClient(fetchUri, {
|
|
967
|
+
method: "DELETE",
|
|
968
|
+
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
|
969
|
+
expectNoContent: true
|
|
970
|
+
});
|
|
971
|
+
}
|
|
972
|
+
};
|
|
973
|
+
_url6 = /* @__PURE__ */ new WeakMap();
|
|
974
|
+
__privateAdd2(_SignalClient, _url6, "/api/v2/signal");
|
|
975
|
+
var _url7;
|
|
976
|
+
var _TestClient = class _TestClient2 extends ApiClient {
|
|
977
|
+
constructor(options) {
|
|
978
|
+
super(options);
|
|
979
|
+
}
|
|
980
|
+
/** Fetches all Tests for a project */
|
|
981
|
+
async get(options) {
|
|
982
|
+
const { projectId } = this.options;
|
|
983
|
+
const fetchUri = this.createUrl(__privateGet2(_TestClient2, _url7), { ...options, projectId });
|
|
984
|
+
return await this.apiClient(fetchUri);
|
|
985
|
+
}
|
|
986
|
+
/** Updates or creates (based on id) a Test */
|
|
987
|
+
async upsert(body) {
|
|
988
|
+
const fetchUri = this.createUrl(__privateGet2(_TestClient2, _url7));
|
|
989
|
+
await this.apiClient(fetchUri, {
|
|
990
|
+
method: "PUT",
|
|
991
|
+
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
|
992
|
+
expectNoContent: true
|
|
993
|
+
});
|
|
994
|
+
}
|
|
995
|
+
/** Deletes a Test */
|
|
996
|
+
async remove(body) {
|
|
997
|
+
const fetchUri = this.createUrl(__privateGet2(_TestClient2, _url7));
|
|
998
|
+
await this.apiClient(fetchUri, {
|
|
999
|
+
method: "DELETE",
|
|
1000
|
+
body: JSON.stringify({ ...body, projectId: this.options.projectId }),
|
|
1001
|
+
expectNoContent: true
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
};
|
|
1005
|
+
_url7 = /* @__PURE__ */ new WeakMap();
|
|
1006
|
+
__privateAdd2(_TestClient, _url7, "/api/v2/test");
|
|
1007
|
+
|
|
1008
|
+
// ../../node_modules/.pnpm/yocto-queue@1.2.2/node_modules/yocto-queue/index.js
|
|
1009
|
+
var Node = class {
|
|
1010
|
+
constructor(value) {
|
|
1011
|
+
__publicField(this, "value");
|
|
1012
|
+
__publicField(this, "next");
|
|
1013
|
+
this.value = value;
|
|
1014
|
+
}
|
|
1015
|
+
};
|
|
1016
|
+
var _head, _tail, _size;
|
|
1017
|
+
var Queue = class {
|
|
1018
|
+
constructor() {
|
|
1019
|
+
__privateAdd(this, _head);
|
|
1020
|
+
__privateAdd(this, _tail);
|
|
1021
|
+
__privateAdd(this, _size);
|
|
1022
|
+
this.clear();
|
|
1023
|
+
}
|
|
1024
|
+
enqueue(value) {
|
|
1025
|
+
const node = new Node(value);
|
|
1026
|
+
if (__privateGet(this, _head)) {
|
|
1027
|
+
__privateGet(this, _tail).next = node;
|
|
1028
|
+
__privateSet(this, _tail, node);
|
|
1029
|
+
} else {
|
|
1030
|
+
__privateSet(this, _head, node);
|
|
1031
|
+
__privateSet(this, _tail, node);
|
|
1032
|
+
}
|
|
1033
|
+
__privateWrapper(this, _size)._++;
|
|
1034
|
+
}
|
|
1035
|
+
dequeue() {
|
|
1036
|
+
const current = __privateGet(this, _head);
|
|
1037
|
+
if (!current) {
|
|
1038
|
+
return;
|
|
1039
|
+
}
|
|
1040
|
+
__privateSet(this, _head, __privateGet(this, _head).next);
|
|
1041
|
+
__privateWrapper(this, _size)._--;
|
|
1042
|
+
if (!__privateGet(this, _head)) {
|
|
1043
|
+
__privateSet(this, _tail, void 0);
|
|
1044
|
+
}
|
|
1045
|
+
return current.value;
|
|
1046
|
+
}
|
|
1047
|
+
peek() {
|
|
1048
|
+
if (!__privateGet(this, _head)) {
|
|
1049
|
+
return;
|
|
1050
|
+
}
|
|
1051
|
+
return __privateGet(this, _head).value;
|
|
1052
|
+
}
|
|
1053
|
+
clear() {
|
|
1054
|
+
__privateSet(this, _head, void 0);
|
|
1055
|
+
__privateSet(this, _tail, void 0);
|
|
1056
|
+
__privateSet(this, _size, 0);
|
|
1057
|
+
}
|
|
1058
|
+
get size() {
|
|
1059
|
+
return __privateGet(this, _size);
|
|
1060
|
+
}
|
|
1061
|
+
*[Symbol.iterator]() {
|
|
1062
|
+
let current = __privateGet(this, _head);
|
|
1063
|
+
while (current) {
|
|
1064
|
+
yield current.value;
|
|
1065
|
+
current = current.next;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
*drain() {
|
|
1069
|
+
while (__privateGet(this, _head)) {
|
|
1070
|
+
yield this.dequeue();
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
};
|
|
1074
|
+
_head = new WeakMap();
|
|
1075
|
+
_tail = new WeakMap();
|
|
1076
|
+
_size = new WeakMap();
|
|
1077
|
+
|
|
1078
|
+
// ../../node_modules/.pnpm/p-limit@6.2.0/node_modules/p-limit/index.js
|
|
1079
|
+
function pLimit2(concurrency) {
|
|
1080
|
+
validateConcurrency(concurrency);
|
|
1081
|
+
const queue = new Queue();
|
|
1082
|
+
let activeCount = 0;
|
|
1083
|
+
const resumeNext = () => {
|
|
1084
|
+
if (activeCount < concurrency && queue.size > 0) {
|
|
1085
|
+
queue.dequeue()();
|
|
1086
|
+
activeCount++;
|
|
1087
|
+
}
|
|
1088
|
+
};
|
|
1089
|
+
const next = () => {
|
|
1090
|
+
activeCount--;
|
|
1091
|
+
resumeNext();
|
|
1092
|
+
};
|
|
1093
|
+
const run = async (function_, resolve, arguments_) => {
|
|
1094
|
+
const result = (async () => function_(...arguments_))();
|
|
1095
|
+
resolve(result);
|
|
1096
|
+
try {
|
|
1097
|
+
await result;
|
|
1098
|
+
} catch (e) {
|
|
1099
|
+
}
|
|
1100
|
+
next();
|
|
1101
|
+
};
|
|
1102
|
+
const enqueue = (function_, resolve, arguments_) => {
|
|
1103
|
+
new Promise((internalResolve) => {
|
|
1104
|
+
queue.enqueue(internalResolve);
|
|
1105
|
+
}).then(
|
|
1106
|
+
run.bind(void 0, function_, resolve, arguments_)
|
|
1107
|
+
);
|
|
1108
|
+
(async () => {
|
|
1109
|
+
await Promise.resolve();
|
|
1110
|
+
if (activeCount < concurrency) {
|
|
1111
|
+
resumeNext();
|
|
1082
1112
|
}
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1113
|
+
})();
|
|
1114
|
+
};
|
|
1115
|
+
const generator = (function_, ...arguments_) => new Promise((resolve) => {
|
|
1116
|
+
enqueue(function_, resolve, arguments_);
|
|
1117
|
+
});
|
|
1118
|
+
Object.defineProperties(generator, {
|
|
1119
|
+
activeCount: {
|
|
1120
|
+
get: () => activeCount
|
|
1121
|
+
},
|
|
1122
|
+
pendingCount: {
|
|
1123
|
+
get: () => queue.size
|
|
1124
|
+
},
|
|
1125
|
+
clearQueue: {
|
|
1126
|
+
value() {
|
|
1127
|
+
queue.clear();
|
|
1098
1128
|
}
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1129
|
+
},
|
|
1130
|
+
concurrency: {
|
|
1131
|
+
get: () => concurrency,
|
|
1132
|
+
set(newConcurrency) {
|
|
1133
|
+
validateConcurrency(newConcurrency);
|
|
1134
|
+
concurrency = newConcurrency;
|
|
1135
|
+
queueMicrotask(() => {
|
|
1136
|
+
while (activeCount < concurrency && queue.size > 0) {
|
|
1137
|
+
resumeNext();
|
|
1104
1138
|
}
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
for (var i = 0; i < methods.length; i++) {
|
|
1108
|
-
var method = methods[i];
|
|
1109
|
-
var original = obj[method];
|
|
1110
|
-
obj[method] = function retryWrapper(original2) {
|
|
1111
|
-
var op = exports2.operation(options);
|
|
1112
|
-
var args = Array.prototype.slice.call(arguments, 1);
|
|
1113
|
-
var callback = args.pop();
|
|
1114
|
-
args.push(function(err) {
|
|
1115
|
-
if (op.retry(err)) {
|
|
1116
|
-
return;
|
|
1117
|
-
}
|
|
1118
|
-
if (err) {
|
|
1119
|
-
arguments[0] = op.mainError();
|
|
1120
|
-
}
|
|
1121
|
-
callback.apply(this, arguments);
|
|
1122
|
-
});
|
|
1123
|
-
op.attempt(function() {
|
|
1124
|
-
original2.apply(obj, args);
|
|
1125
|
-
});
|
|
1126
|
-
}.bind(obj, original);
|
|
1127
|
-
obj[method].options = options;
|
|
1139
|
+
});
|
|
1128
1140
|
}
|
|
1129
|
-
}
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1141
|
+
}
|
|
1142
|
+
});
|
|
1143
|
+
return generator;
|
|
1144
|
+
}
|
|
1145
|
+
function validateConcurrency(concurrency) {
|
|
1146
|
+
if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
|
|
1147
|
+
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
|
1136
1148
|
}
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
var
|
|
1141
|
-
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
// ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
|
|
1152
|
+
var import_retry = __toESM(require_retry2(), 1);
|
|
1153
|
+
|
|
1154
|
+
// ../../node_modules/.pnpm/is-network-error@1.3.2/node_modules/is-network-error/index.js
|
|
1155
|
+
var objectToString = Object.prototype.toString;
|
|
1156
|
+
var isError = (value) => objectToString.call(value) === "[object Error]";
|
|
1157
|
+
var errorMessages = /* @__PURE__ */ new Set([
|
|
1158
|
+
"network error",
|
|
1142
1159
|
// Chrome
|
|
1143
1160
|
"NetworkError when attempting to fetch resource.",
|
|
1144
1161
|
// Firefox
|
|
1145
1162
|
"The Internet connection appears to be offline.",
|
|
1146
|
-
// Safari
|
|
1163
|
+
// Safari 16
|
|
1147
1164
|
"Network request failed",
|
|
1148
1165
|
// `cross-fetch`
|
|
1149
|
-
"fetch failed"
|
|
1166
|
+
"fetch failed",
|
|
1167
|
+
// Undici (Node.js)
|
|
1168
|
+
"terminated",
|
|
1150
1169
|
// Undici (Node.js)
|
|
1170
|
+
" A network error occurred.",
|
|
1171
|
+
// Bun (WebKit)
|
|
1172
|
+
"Network connection lost"
|
|
1173
|
+
// Cloudflare Workers (fetch)
|
|
1151
1174
|
]);
|
|
1175
|
+
function isNetworkError(error) {
|
|
1176
|
+
const isValid = error && isError(error) && error.name === "TypeError" && typeof error.message === "string";
|
|
1177
|
+
if (!isValid) {
|
|
1178
|
+
return false;
|
|
1179
|
+
}
|
|
1180
|
+
const { message, stack } = error;
|
|
1181
|
+
if (message === "Load failed" || message.startsWith("Load failed (") && message.endsWith(")")) {
|
|
1182
|
+
return stack === void 0 || "__sentry_captured__" in error;
|
|
1183
|
+
}
|
|
1184
|
+
if (message.startsWith("error sending request for url")) {
|
|
1185
|
+
return true;
|
|
1186
|
+
}
|
|
1187
|
+
if (message === "Failed to fetch" || message.startsWith("Failed to fetch (") && message.endsWith(")")) {
|
|
1188
|
+
return true;
|
|
1189
|
+
}
|
|
1190
|
+
return errorMessages.has(message);
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
// ../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
|
|
1152
1194
|
var AbortError = class extends Error {
|
|
1153
1195
|
constructor(message) {
|
|
1154
1196
|
super();
|
|
@@ -1169,63 +1211,71 @@ var decorateErrorWithCounts = (error, attemptNumber, options) => {
|
|
|
1169
1211
|
error.retriesLeft = retriesLeft;
|
|
1170
1212
|
return error;
|
|
1171
1213
|
};
|
|
1172
|
-
var isNetworkError = (errorMessage) => networkErrorMsgs.has(errorMessage);
|
|
1173
|
-
var getDOMException = (errorMessage) => globalThis.DOMException === void 0 ? new Error(errorMessage) : new DOMException(errorMessage);
|
|
1174
1214
|
async function pRetry(input, options) {
|
|
1175
1215
|
return new Promise((resolve, reject) => {
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
retries: 10,
|
|
1180
|
-
...options
|
|
1216
|
+
var _a, _b, _c;
|
|
1217
|
+
options = { ...options };
|
|
1218
|
+
(_a = options.onFailedAttempt) != null ? _a : options.onFailedAttempt = () => {
|
|
1181
1219
|
};
|
|
1220
|
+
(_b = options.shouldRetry) != null ? _b : options.shouldRetry = () => true;
|
|
1221
|
+
(_c = options.retries) != null ? _c : options.retries = 10;
|
|
1182
1222
|
const operation = import_retry.default.operation(options);
|
|
1223
|
+
const abortHandler = () => {
|
|
1224
|
+
var _a2;
|
|
1225
|
+
operation.stop();
|
|
1226
|
+
reject((_a2 = options.signal) == null ? void 0 : _a2.reason);
|
|
1227
|
+
};
|
|
1228
|
+
if (options.signal && !options.signal.aborted) {
|
|
1229
|
+
options.signal.addEventListener("abort", abortHandler, { once: true });
|
|
1230
|
+
}
|
|
1231
|
+
const cleanUp = () => {
|
|
1232
|
+
var _a2;
|
|
1233
|
+
(_a2 = options.signal) == null ? void 0 : _a2.removeEventListener("abort", abortHandler);
|
|
1234
|
+
operation.stop();
|
|
1235
|
+
};
|
|
1183
1236
|
operation.attempt(async (attemptNumber) => {
|
|
1184
1237
|
try {
|
|
1185
|
-
|
|
1238
|
+
const result = await input(attemptNumber);
|
|
1239
|
+
cleanUp();
|
|
1240
|
+
resolve(result);
|
|
1186
1241
|
} catch (error) {
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
} else {
|
|
1242
|
+
try {
|
|
1243
|
+
if (!(error instanceof Error)) {
|
|
1244
|
+
throw new TypeError(`Non-error was thrown: "${error}". You should only throw errors.`);
|
|
1245
|
+
}
|
|
1246
|
+
if (error instanceof AbortError) {
|
|
1247
|
+
throw error.originalError;
|
|
1248
|
+
}
|
|
1249
|
+
if (error instanceof TypeError && !isNetworkError(error)) {
|
|
1250
|
+
throw error;
|
|
1251
|
+
}
|
|
1198
1252
|
decorateErrorWithCounts(error, attemptNumber, options);
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
reject(error2);
|
|
1203
|
-
return;
|
|
1253
|
+
if (!await options.shouldRetry(error)) {
|
|
1254
|
+
operation.stop();
|
|
1255
|
+
reject(error);
|
|
1204
1256
|
}
|
|
1257
|
+
await options.onFailedAttempt(error);
|
|
1205
1258
|
if (!operation.retry(error)) {
|
|
1206
|
-
|
|
1259
|
+
throw operation.mainError();
|
|
1207
1260
|
}
|
|
1261
|
+
} catch (finalError) {
|
|
1262
|
+
decorateErrorWithCounts(finalError, attemptNumber, options);
|
|
1263
|
+
cleanUp();
|
|
1264
|
+
reject(finalError);
|
|
1208
1265
|
}
|
|
1209
1266
|
}
|
|
1210
1267
|
});
|
|
1211
|
-
if (options.signal && !options.signal.aborted) {
|
|
1212
|
-
options.signal.addEventListener("abort", () => {
|
|
1213
|
-
operation.stop();
|
|
1214
|
-
const reason = options.signal.reason === void 0 ? getDOMException("The operation was aborted.") : options.signal.reason;
|
|
1215
|
-
reject(reason instanceof Error ? reason : getDOMException(reason));
|
|
1216
|
-
}, {
|
|
1217
|
-
once: true
|
|
1218
|
-
});
|
|
1219
|
-
}
|
|
1220
1268
|
});
|
|
1221
1269
|
}
|
|
1270
|
+
|
|
1271
|
+
// ../../node_modules/.pnpm/p-throttle@6.2.0/node_modules/p-throttle/index.js
|
|
1222
1272
|
var AbortError2 = class extends Error {
|
|
1223
1273
|
constructor() {
|
|
1224
1274
|
super("Throttled function aborted");
|
|
1225
1275
|
this.name = "AbortError";
|
|
1226
1276
|
}
|
|
1227
1277
|
};
|
|
1228
|
-
function pThrottle({ limit, interval, strict }) {
|
|
1278
|
+
function pThrottle({ limit, interval, strict, onDelay }) {
|
|
1229
1279
|
if (!Number.isFinite(limit)) {
|
|
1230
1280
|
throw new TypeError("Expected `limit` to be a finite number");
|
|
1231
1281
|
}
|
|
@@ -1253,32 +1303,38 @@ function pThrottle({ limit, interval, strict }) {
|
|
|
1253
1303
|
const strictTicks = [];
|
|
1254
1304
|
function strictDelay() {
|
|
1255
1305
|
const now = Date.now();
|
|
1256
|
-
if (strictTicks.length
|
|
1257
|
-
strictTicks.
|
|
1258
|
-
return 0;
|
|
1306
|
+
if (strictTicks.length > 0 && now - strictTicks.at(-1) > interval) {
|
|
1307
|
+
strictTicks.length = 0;
|
|
1259
1308
|
}
|
|
1260
|
-
|
|
1261
|
-
if (now >= earliestTime) {
|
|
1309
|
+
if (strictTicks.length < limit) {
|
|
1262
1310
|
strictTicks.push(now);
|
|
1263
1311
|
return 0;
|
|
1264
1312
|
}
|
|
1265
|
-
strictTicks
|
|
1266
|
-
|
|
1313
|
+
const nextExecutionTime = strictTicks[0] + interval;
|
|
1314
|
+
strictTicks.shift();
|
|
1315
|
+
strictTicks.push(nextExecutionTime);
|
|
1316
|
+
return Math.max(0, nextExecutionTime - now);
|
|
1267
1317
|
}
|
|
1268
1318
|
const getDelay = strict ? strictDelay : windowedDelay;
|
|
1269
1319
|
return (function_) => {
|
|
1270
|
-
const throttled = function(...
|
|
1320
|
+
const throttled = function(...arguments_) {
|
|
1271
1321
|
if (!throttled.isEnabled) {
|
|
1272
|
-
return (async () => function_.apply(this,
|
|
1322
|
+
return (async () => function_.apply(this, arguments_))();
|
|
1273
1323
|
}
|
|
1274
|
-
let
|
|
1324
|
+
let timeoutId;
|
|
1275
1325
|
return new Promise((resolve, reject) => {
|
|
1276
1326
|
const execute = () => {
|
|
1277
|
-
resolve(function_.apply(this,
|
|
1278
|
-
queue.delete(
|
|
1327
|
+
resolve(function_.apply(this, arguments_));
|
|
1328
|
+
queue.delete(timeoutId);
|
|
1279
1329
|
};
|
|
1280
|
-
|
|
1281
|
-
|
|
1330
|
+
const delay = getDelay();
|
|
1331
|
+
if (delay > 0) {
|
|
1332
|
+
timeoutId = setTimeout(execute, delay);
|
|
1333
|
+
queue.set(timeoutId, reject);
|
|
1334
|
+
onDelay == null ? void 0 : onDelay(...arguments_);
|
|
1335
|
+
} else {
|
|
1336
|
+
execute();
|
|
1337
|
+
}
|
|
1282
1338
|
});
|
|
1283
1339
|
};
|
|
1284
1340
|
throttled.abort = () => {
|
|
@@ -1290,16 +1346,29 @@ function pThrottle({ limit, interval, strict }) {
|
|
|
1290
1346
|
strictTicks.splice(0, strictTicks.length);
|
|
1291
1347
|
};
|
|
1292
1348
|
throttled.isEnabled = true;
|
|
1349
|
+
Object.defineProperty(throttled, "queueSize", {
|
|
1350
|
+
get() {
|
|
1351
|
+
return queue.size;
|
|
1352
|
+
}
|
|
1353
|
+
});
|
|
1293
1354
|
return throttled;
|
|
1294
1355
|
};
|
|
1295
1356
|
}
|
|
1357
|
+
|
|
1358
|
+
// ../canvas/dist/index.mjs
|
|
1359
|
+
var __typeError3 = (msg) => {
|
|
1360
|
+
throw TypeError(msg);
|
|
1361
|
+
};
|
|
1362
|
+
var __accessCheck3 = (obj, member, msg) => member.has(obj) || __typeError3("Cannot " + msg);
|
|
1363
|
+
var __privateGet3 = (obj, member, getter) => (__accessCheck3(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
1364
|
+
var __privateAdd3 = (obj, member, value) => member.has(obj) ? __typeError3("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
1296
1365
|
function createLimitPolicy({
|
|
1297
1366
|
throttle = { interval: 1e3, limit: 10 },
|
|
1298
|
-
retry:
|
|
1367
|
+
retry: retry3 = { retries: 1, factor: 1.66 },
|
|
1299
1368
|
limit = 10
|
|
1300
1369
|
}) {
|
|
1301
1370
|
const throttler = throttle ? pThrottle(throttle) : null;
|
|
1302
|
-
const limiter = limit ? (
|
|
1371
|
+
const limiter = limit ? pLimit2(limit) : null;
|
|
1303
1372
|
return function limitPolicy(func) {
|
|
1304
1373
|
let currentFunc = async () => await func();
|
|
1305
1374
|
if (throttler) {
|
|
@@ -1310,13 +1379,13 @@ function createLimitPolicy({
|
|
|
1310
1379
|
const limitFunc = currentFunc;
|
|
1311
1380
|
currentFunc = () => limiter(limitFunc);
|
|
1312
1381
|
}
|
|
1313
|
-
if (
|
|
1382
|
+
if (retry3) {
|
|
1314
1383
|
const retryFunc = currentFunc;
|
|
1315
1384
|
currentFunc = () => pRetry(retryFunc, {
|
|
1316
|
-
...
|
|
1385
|
+
...retry3,
|
|
1317
1386
|
onFailedAttempt: async (error) => {
|
|
1318
|
-
if (
|
|
1319
|
-
await
|
|
1387
|
+
if (retry3.onFailedAttempt) {
|
|
1388
|
+
await retry3.onFailedAttempt(error);
|
|
1320
1389
|
}
|
|
1321
1390
|
if (error instanceof ApiClientError && typeof error.statusCode === "number" && error.statusCode >= 400 && error.statusCode < 500 && error.statusCode !== 429 && error.statusCode !== 408) {
|
|
1322
1391
|
throw error;
|
|
@@ -2505,7 +2574,7 @@ function createLimiter(concurrency) {
|
|
|
2505
2574
|
});
|
|
2506
2575
|
};
|
|
2507
2576
|
}
|
|
2508
|
-
async function
|
|
2577
|
+
async function retry2(fn, options) {
|
|
2509
2578
|
let lastError;
|
|
2510
2579
|
let delay = 1e3;
|
|
2511
2580
|
for (let attempt = 1; attempt <= options.retries + 1; attempt++) {
|
|
@@ -2545,7 +2614,7 @@ function createLimitPolicy2({
|
|
|
2545
2614
|
}
|
|
2546
2615
|
if (retryOptions) {
|
|
2547
2616
|
const retryFunc = currentFunc;
|
|
2548
|
-
currentFunc = () =>
|
|
2617
|
+
currentFunc = () => retry2(retryFunc, {
|
|
2549
2618
|
...retryOptions,
|
|
2550
2619
|
onFailedAttempt: async (error) => {
|
|
2551
2620
|
if (retryOptions.onFailedAttempt) {
|
|
@@ -3163,7 +3232,7 @@ function dequal(foo, bar) {
|
|
|
3163
3232
|
return foo !== foo && bar !== bar;
|
|
3164
3233
|
}
|
|
3165
3234
|
|
|
3166
|
-
// ../../node_modules/.pnpm/js-cookie@3.0.
|
|
3235
|
+
// ../../node_modules/.pnpm/js-cookie@3.0.8/node_modules/js-cookie/dist/js.cookie.mjs
|
|
3167
3236
|
function assign(target) {
|
|
3168
3237
|
for (var i = 1; i < arguments.length; i++) {
|
|
3169
3238
|
var source = arguments[i];
|
|
@@ -3229,7 +3298,7 @@ function init(converter, defaultAttributes) {
|
|
|
3229
3298
|
if (name === found) {
|
|
3230
3299
|
break;
|
|
3231
3300
|
}
|
|
3232
|
-
} catch (
|
|
3301
|
+
} catch (_e) {
|
|
3233
3302
|
}
|
|
3234
3303
|
}
|
|
3235
3304
|
return name ? jar[name] : jar;
|
|
@@ -3284,12 +3353,12 @@ function mitt_default(n) {
|
|
|
3284
3353
|
var import_rfdc = __toESM(require_rfdc(), 1);
|
|
3285
3354
|
var import_rfdc2 = __toESM(require_rfdc(), 1);
|
|
3286
3355
|
var import_rfdc3 = __toESM(require_rfdc(), 1);
|
|
3287
|
-
var
|
|
3356
|
+
var __defProp3 = Object.defineProperty;
|
|
3288
3357
|
var __typeError4 = (msg) => {
|
|
3289
3358
|
throw TypeError(msg);
|
|
3290
3359
|
};
|
|
3291
|
-
var
|
|
3292
|
-
var
|
|
3360
|
+
var __defNormalProp3 = (obj, key, value) => key in obj ? __defProp3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3361
|
+
var __publicField3 = (obj, key, value) => __defNormalProp3(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3293
3362
|
var __accessCheck4 = (obj, member, msg) => member.has(obj) || __typeError4("Cannot " + msg);
|
|
3294
3363
|
var __privateGet4 = (obj, member, getter) => (__accessCheck4(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
3295
3364
|
var __privateAdd4 = (obj, member, value) => member.has(obj) ? __typeError4("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
@@ -3366,7 +3435,7 @@ var SignalInstance = class {
|
|
|
3366
3435
|
constructor(data, evaluator, onLogMessage) {
|
|
3367
3436
|
__privateAdd4(this, _evaluator);
|
|
3368
3437
|
__privateAdd4(this, _onLogMessage);
|
|
3369
|
-
|
|
3438
|
+
__publicField3(this, "signal");
|
|
3370
3439
|
this.signal = data;
|
|
3371
3440
|
__privateSet2(this, _evaluator, evaluator);
|
|
3372
3441
|
__privateSet2(this, _onLogMessage, onLogMessage);
|
|
@@ -3424,7 +3493,7 @@ var ManifestInstance = class {
|
|
|
3424
3493
|
onLogMessage = () => {
|
|
3425
3494
|
}
|
|
3426
3495
|
}) {
|
|
3427
|
-
|
|
3496
|
+
__publicField3(this, "data");
|
|
3428
3497
|
__privateAdd4(this, _mf);
|
|
3429
3498
|
__privateAdd4(this, _signalInstances);
|
|
3430
3499
|
__privateAdd4(this, _goalEvaluators, []);
|
|
@@ -4211,7 +4280,7 @@ var TransitionDataStore = class {
|
|
|
4211
4280
|
__privateAdd4(this, _data);
|
|
4212
4281
|
__privateAdd4(this, _initialData);
|
|
4213
4282
|
__privateAdd4(this, _mitt, mitt_default());
|
|
4214
|
-
|
|
4283
|
+
__publicField3(this, "events", {
|
|
4215
4284
|
on: __privateGet4(this, _mitt).on,
|
|
4216
4285
|
off: __privateGet4(this, _mitt).off
|
|
4217
4286
|
});
|
|
@@ -4574,10 +4643,10 @@ var _LocalStorage_instances;
|
|
|
4574
4643
|
var key_fn;
|
|
4575
4644
|
var LocalStorage = class {
|
|
4576
4645
|
constructor(partitionKey) {
|
|
4577
|
-
this
|
|
4646
|
+
__publicField3(this, "partitionKey", partitionKey);
|
|
4578
4647
|
__privateAdd4(this, _LocalStorage_instances);
|
|
4579
|
-
|
|
4580
|
-
|
|
4648
|
+
__publicField3(this, "inMemoryFallback", {});
|
|
4649
|
+
__publicField3(this, "hasLocalStorageObject", typeof document !== "undefined" && typeof localStorage !== "undefined");
|
|
4581
4650
|
}
|
|
4582
4651
|
get(key) {
|
|
4583
4652
|
const keyValue = __privateMethod(this, _LocalStorage_instances, key_fn).call(this, key);
|
|
@@ -4638,7 +4707,7 @@ var VisitorDataStore = class {
|
|
|
4638
4707
|
__privateAdd4(this, _persist);
|
|
4639
4708
|
__privateAdd4(this, _visitTimeout);
|
|
4640
4709
|
__privateAdd4(this, _options);
|
|
4641
|
-
|
|
4710
|
+
__publicField3(this, "events", {
|
|
4642
4711
|
on: __privateGet4(this, _mitt2).on,
|
|
4643
4712
|
off: __privateGet4(this, _mitt2).off
|
|
4644
4713
|
});
|
|
@@ -4839,7 +4908,7 @@ var calculateScores_fn;
|
|
|
4839
4908
|
var Context = class {
|
|
4840
4909
|
constructor(options) {
|
|
4841
4910
|
__privateAdd4(this, _Context_instances);
|
|
4842
|
-
|
|
4911
|
+
__publicField3(this, "manifest");
|
|
4843
4912
|
__privateAdd4(this, _personalizationSelectionAlgorithms);
|
|
4844
4913
|
__privateAdd4(this, _serverTransitionState);
|
|
4845
4914
|
__privateAdd4(this, _scores, {});
|
|
@@ -4849,11 +4918,11 @@ var Context = class {
|
|
|
4849
4918
|
__privateAdd4(this, _commands);
|
|
4850
4919
|
__privateAdd4(this, _requireConsentForPersonalization);
|
|
4851
4920
|
__privateAdd4(this, _mitt3, mitt_default());
|
|
4852
|
-
|
|
4921
|
+
__publicField3(this, "events", {
|
|
4853
4922
|
on: __privateGet4(this, _mitt3).on,
|
|
4854
4923
|
off: __privateGet4(this, _mitt3).off
|
|
4855
4924
|
});
|
|
4856
|
-
|
|
4925
|
+
__publicField3(this, "storage");
|
|
4857
4926
|
var _a, _b, _c;
|
|
4858
4927
|
const { manifest, ...storageOptions } = options;
|
|
4859
4928
|
__privateSet2(this, _state, {});
|
|
@@ -5900,5 +5969,5 @@ var determinePreviewMode = ({
|
|
|
5900
5969
|
/*! Bundled license information:
|
|
5901
5970
|
|
|
5902
5971
|
js-cookie/dist/js.cookie.mjs:
|
|
5903
|
-
(*! js-cookie v3.0.
|
|
5972
|
+
(*! js-cookie v3.0.8 | MIT *)
|
|
5904
5973
|
*/
|