@shipengine/react-api 0.2.5 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/index.d.ts +1 -0
  2. package/index.js +12 -12
  3. package/index.mjs +778 -745
  4. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1,20 +1,31 @@
1
- import { QueryClient as Sn, QueryClientProvider as bn, useMutation as I, useQuery as $, useQueryClient as On } from "react-query";
2
- import { jsx as De } from "react/jsx-runtime";
3
- import { createContext as An, useState as En, useContext as Pn } from "react";
4
- class H {
1
+ import { QueryClient as Rn, QueryClientProvider as xn, useMutation as I, useQuery as N, useQueryClient as Cn } from "react-query";
2
+ import { jsx as Ue } from "react/jsx-runtime";
3
+ import { createContext as Fn, useState as Nn, useContext as $n } from "react";
4
+ class W {
5
5
  constructor(e, t) {
6
6
  this.errorCode = t?.errorCode ?? "unknown", this.errorSource = t?.errorSource ?? "client", this.errorType = t?.errorType ?? "unknown", this.message = e;
7
7
  }
8
8
  static fromObject({ message: e, ...t }) {
9
- return new H(e, t);
9
+ return new W(e, t);
10
10
  }
11
11
  }
12
- class In {
12
+ var Bt = /* @__PURE__ */ ((r) => (r.AMERICAN_EXPRESS = "americanexpress", r.DISCOVER = "discover", r.MASTERCARD = "mastercard", r.VISA = "visa", r))(Bt || {}), Lt = /* @__PURE__ */ ((r) => (r.USD = "usd", r.CAD = "cad", r.AUD = "aud", r.GBP = "gbp", r.EUR = "eur", r.NZD = "nzd", r))(Lt || {}), Ut = /* @__PURE__ */ ((r) => (r.DELIVERY = "delivery", r.SIGNATURE = "signature", r.ADULT_SIGNATURE = "adult_signature", r.DIRECT_SIGNATURE = "direct_signature", r.VERBAL_CONFIRMATION = "verbal_confirmation", r.DELIVERY_MAILED = "delivery_mailed", r.NONE = "none", r))(Ut || {}), qt = /* @__PURE__ */ ((r) => (r.DOCUMENTS = "documents", r.GIFT = "gift", r.MERCHANDISE = "merchandise", r.RETURNED_GOODS = "returned_goods", r.SAMPLE = "sample", r))(qt || {}), Mt = /* @__PURE__ */ ((r) => (r.RETURN_TO_SENDER = "return_to_sender", r.TREAT_AS_ABANDONED = "treat_as_abandoned", r))(Mt || {}), zt = /* @__PURE__ */ ((r) => (r.SHIPSURANCE = "shipsurance", r.CARRIER = "carrier", r.THIRD_PARTY = "third_party", r.NONE = "none", r))(zt || {});
13
+ const Yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14
+ __proto__: null,
15
+ CodedError: W,
16
+ ConfirmationType: Ut,
17
+ CreditCardVendor: Bt,
18
+ Currency: Lt,
19
+ CustomsContentsType: qt,
20
+ CustomsNonDeliveryType: Mt,
21
+ InsuranceProviderType: zt
22
+ }, Symbol.toStringTag, { value: "Module" }));
23
+ class _n {
13
24
  constructor(e) {
14
25
  this.client = e, this.get = () => this.client.get("/v1/account/settings"), this.update = (t) => this.client.put("/v1/account/settings", t), this.client = e;
15
26
  }
16
27
  }
17
- class xn {
28
+ class Dn {
18
29
  constructor(e) {
19
30
  this.client = e, this.validate = (t) => this.client.post("/v1/addresses/validate", t), this.parse = (t, n) => this.client.put("/v1/addresses/recognize", {
20
31
  address: n,
@@ -22,11 +33,11 @@ class xn {
22
33
  }), this.client = e;
23
34
  }
24
35
  }
25
- var qt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
26
- function Rn(r) {
36
+ var jt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
37
+ function kn(r) {
27
38
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
28
39
  }
29
- function Cn(r) {
40
+ function Tn(r) {
30
41
  if (r.__esModule)
31
42
  return r;
32
43
  var e = r.default;
@@ -53,53 +64,53 @@ function Cn(r) {
53
64
  });
54
65
  }), t;
55
66
  }
56
- var hr = {}, Fn = {
67
+ var hr = {}, Bn = {
57
68
  get exports() {
58
69
  return hr;
59
70
  },
60
71
  set exports(r) {
61
72
  hr = r;
62
73
  }
63
- }, Re = {}, $n = {
74
+ }, xe = {}, Ln = {
64
75
  get exports() {
65
- return Re;
76
+ return xe;
66
77
  },
67
78
  set exports(r) {
68
- Re = r;
79
+ xe = r;
69
80
  }
70
- }, Lt = function(e, t) {
81
+ }, Wt = function(e, t) {
71
82
  return function() {
72
83
  for (var a = new Array(arguments.length), i = 0; i < a.length; i++)
73
84
  a[i] = arguments[i];
74
85
  return e.apply(t, a);
75
86
  };
76
- }, Nn = Lt, X = Object.prototype.toString;
77
- function Nr(r) {
87
+ }, Un = Wt, X = Object.prototype.toString;
88
+ function $r(r) {
78
89
  return Array.isArray(r);
79
90
  }
80
91
  function yr(r) {
81
92
  return typeof r > "u";
82
93
  }
83
- function kn(r) {
94
+ function qn(r) {
84
95
  return r !== null && !yr(r) && r.constructor !== null && !yr(r.constructor) && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
85
96
  }
86
- function Dt(r) {
97
+ function Gt(r) {
87
98
  return X.call(r) === "[object ArrayBuffer]";
88
99
  }
89
- function Tn(r) {
100
+ function Mn(r) {
90
101
  return X.call(r) === "[object FormData]";
91
102
  }
92
- function _n(r) {
103
+ function zn(r) {
93
104
  var e;
94
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(r) : e = r && r.buffer && Dt(r.buffer), e;
105
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(r) : e = r && r.buffer && Gt(r.buffer), e;
95
106
  }
96
- function Bn(r) {
107
+ function jn(r) {
97
108
  return typeof r == "string";
98
109
  }
99
- function qn(r) {
110
+ function Wn(r) {
100
111
  return typeof r == "number";
101
112
  }
102
- function Ut(r) {
113
+ function Kt(r) {
103
114
  return r !== null && typeof r == "object";
104
115
  }
105
116
  function Ie(r) {
@@ -108,33 +119,33 @@ function Ie(r) {
108
119
  var e = Object.getPrototypeOf(r);
109
120
  return e === null || e === Object.prototype;
110
121
  }
111
- function Ln(r) {
122
+ function Gn(r) {
112
123
  return X.call(r) === "[object Date]";
113
124
  }
114
- function Dn(r) {
125
+ function Kn(r) {
115
126
  return X.call(r) === "[object File]";
116
127
  }
117
- function Un(r) {
128
+ function Hn(r) {
118
129
  return X.call(r) === "[object Blob]";
119
130
  }
120
- function zt(r) {
131
+ function Ht(r) {
121
132
  return X.call(r) === "[object Function]";
122
133
  }
123
- function zn(r) {
124
- return Ut(r) && zt(r.pipe);
134
+ function Vn(r) {
135
+ return Kt(r) && Ht(r.pipe);
125
136
  }
126
- function jn(r) {
137
+ function Jn(r) {
127
138
  return X.call(r) === "[object URLSearchParams]";
128
139
  }
129
- function Mn(r) {
140
+ function Qn(r) {
130
141
  return r.trim ? r.trim() : r.replace(/^\s+|\s+$/g, "");
131
142
  }
132
- function Wn() {
143
+ function Xn() {
133
144
  return typeof navigator < "u" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS") ? !1 : typeof window < "u" && typeof document < "u";
134
145
  }
135
- function kr(r, e) {
146
+ function _r(r, e) {
136
147
  if (!(r === null || typeof r > "u"))
137
- if (typeof r != "object" && (r = [r]), Nr(r))
148
+ if (typeof r != "object" && (r = [r]), $r(r))
138
149
  for (var t = 0, n = r.length; t < n; t++)
139
150
  e.call(null, r[t], t, r);
140
151
  else
@@ -144,48 +155,48 @@ function kr(r, e) {
144
155
  function vr() {
145
156
  var r = {};
146
157
  function e(a, i) {
147
- Ie(r[i]) && Ie(a) ? r[i] = vr(r[i], a) : Ie(a) ? r[i] = vr({}, a) : Nr(a) ? r[i] = a.slice() : r[i] = a;
158
+ Ie(r[i]) && Ie(a) ? r[i] = vr(r[i], a) : Ie(a) ? r[i] = vr({}, a) : $r(a) ? r[i] = a.slice() : r[i] = a;
148
159
  }
149
160
  for (var t = 0, n = arguments.length; t < n; t++)
150
- kr(arguments[t], e);
161
+ _r(arguments[t], e);
151
162
  return r;
152
163
  }
153
- function Gn(r, e, t) {
154
- return kr(e, function(a, i) {
155
- t && typeof a == "function" ? r[i] = Nn(a, t) : r[i] = a;
164
+ function Yn(r, e, t) {
165
+ return _r(e, function(a, i) {
166
+ t && typeof a == "function" ? r[i] = Un(a, t) : r[i] = a;
156
167
  }), r;
157
168
  }
158
- function Kn(r) {
169
+ function Zn(r) {
159
170
  return r.charCodeAt(0) === 65279 && (r = r.slice(1)), r;
160
171
  }
161
- var _ = {
162
- isArray: Nr,
163
- isArrayBuffer: Dt,
164
- isBuffer: kn,
165
- isFormData: Tn,
166
- isArrayBufferView: _n,
167
- isString: Bn,
168
- isNumber: qn,
169
- isObject: Ut,
172
+ var k = {
173
+ isArray: $r,
174
+ isArrayBuffer: Gt,
175
+ isBuffer: qn,
176
+ isFormData: Mn,
177
+ isArrayBufferView: zn,
178
+ isString: jn,
179
+ isNumber: Wn,
180
+ isObject: Kt,
170
181
  isPlainObject: Ie,
171
182
  isUndefined: yr,
172
- isDate: Ln,
173
- isFile: Dn,
174
- isBlob: Un,
175
- isFunction: zt,
176
- isStream: zn,
177
- isURLSearchParams: jn,
178
- isStandardBrowserEnv: Wn,
179
- forEach: kr,
183
+ isDate: Gn,
184
+ isFile: Kn,
185
+ isBlob: Hn,
186
+ isFunction: Ht,
187
+ isStream: Vn,
188
+ isURLSearchParams: Jn,
189
+ isStandardBrowserEnv: Xn,
190
+ forEach: _r,
180
191
  merge: vr,
181
- extend: Gn,
182
- trim: Mn,
183
- stripBOM: Kn
184
- }, ie = _;
192
+ extend: Yn,
193
+ trim: Qn,
194
+ stripBOM: Zn
195
+ }, ie = k;
185
196
  function Hr(r) {
186
197
  return encodeURIComponent(r).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
187
198
  }
188
- var jt = function(e, t, n) {
199
+ var Vt = function(e, t, n) {
189
200
  if (!t)
190
201
  return e;
191
202
  var a;
@@ -206,11 +217,11 @@ var jt = function(e, t, n) {
206
217
  s !== -1 && (e = e.slice(0, s)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
207
218
  }
208
219
  return e;
209
- }, Hn = _;
210
- function Te() {
220
+ }, ea = k;
221
+ function De() {
211
222
  this.handlers = [];
212
223
  }
213
- Te.prototype.use = function(e, t, n) {
224
+ De.prototype.use = function(e, t, n) {
214
225
  return this.handlers.push({
215
226
  fulfilled: e,
216
227
  rejected: t,
@@ -218,19 +229,19 @@ Te.prototype.use = function(e, t, n) {
218
229
  runWhen: n ? n.runWhen : null
219
230
  }), this.handlers.length - 1;
220
231
  };
221
- Te.prototype.eject = function(e) {
232
+ De.prototype.eject = function(e) {
222
233
  this.handlers[e] && (this.handlers[e] = null);
223
234
  };
224
- Te.prototype.forEach = function(e) {
225
- Hn.forEach(this.handlers, function(n) {
235
+ De.prototype.forEach = function(e) {
236
+ ea.forEach(this.handlers, function(n) {
226
237
  n !== null && e(n);
227
238
  });
228
239
  };
229
- var Vn = Te, Jn = _, Qn = function(e, t) {
230
- Jn.forEach(e, function(a, i) {
240
+ var ra = De, ta = k, na = function(e, t) {
241
+ ta.forEach(e, function(a, i) {
231
242
  i !== t && i.toUpperCase() === t.toUpperCase() && (e[t] = a, delete e[i]);
232
243
  });
233
- }, Mt = function(e, t, n, a, i) {
244
+ }, Jt = function(e, t, n, a, i) {
234
245
  return e.config = t, n && (e.code = n), e.request = a, e.response = i, e.isAxiosError = !0, e.toJSON = function() {
235
246
  return {
236
247
  // Standard
@@ -250,28 +261,28 @@ var Vn = Te, Jn = _, Qn = function(e, t) {
250
261
  status: this.response && this.response.status ? this.response.status : null
251
262
  };
252
263
  }, e;
253
- }, Wt = {
264
+ }, Qt = {
254
265
  silentJSONParsing: !0,
255
266
  forcedJSONParsing: !0,
256
267
  clarifyTimeoutError: !1
257
- }, Ue, Vr;
258
- function Gt() {
268
+ }, qe, Vr;
269
+ function Xt() {
259
270
  if (Vr)
260
- return Ue;
271
+ return qe;
261
272
  Vr = 1;
262
- var r = Mt;
263
- return Ue = function(t, n, a, i, s) {
273
+ var r = Jt;
274
+ return qe = function(t, n, a, i, s) {
264
275
  var l = new Error(t);
265
276
  return r(l, n, a, i, s);
266
- }, Ue;
277
+ }, qe;
267
278
  }
268
- var ze, Jr;
269
- function Xn() {
279
+ var Me, Jr;
280
+ function aa() {
270
281
  if (Jr)
271
- return ze;
282
+ return Me;
272
283
  Jr = 1;
273
- var r = Gt();
274
- return ze = function(t, n, a) {
284
+ var r = Xt();
285
+ return Me = function(t, n, a) {
275
286
  var i = a.config.validateStatus;
276
287
  !a.status || !i || i(a.status) ? t(a) : n(r(
277
288
  "Request failed with status code " + a.status,
@@ -280,15 +291,15 @@ function Xn() {
280
291
  a.request,
281
292
  a
282
293
  ));
283
- }, ze;
294
+ }, Me;
284
295
  }
285
- var je, Qr;
286
- function Yn() {
296
+ var ze, Qr;
297
+ function ia() {
287
298
  if (Qr)
288
- return je;
299
+ return ze;
289
300
  Qr = 1;
290
- var r = _;
291
- return je = r.isStandardBrowserEnv() ? (
301
+ var r = k;
302
+ return ze = r.isStandardBrowserEnv() ? (
292
303
  // Standard browser envs support document.cookie
293
304
  function() {
294
305
  return {
@@ -318,36 +329,36 @@ function Yn() {
318
329
  }
319
330
  };
320
331
  }()
321
- ), je;
332
+ ), ze;
322
333
  }
323
- var Me, Xr;
324
- function Zn() {
325
- return Xr || (Xr = 1, Me = function(e) {
334
+ var je, Xr;
335
+ function oa() {
336
+ return Xr || (Xr = 1, je = function(e) {
326
337
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
327
- }), Me;
338
+ }), je;
328
339
  }
329
340
  var We, Yr;
330
- function ea() {
341
+ function sa() {
331
342
  return Yr || (Yr = 1, We = function(e, t) {
332
343
  return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
333
344
  }), We;
334
345
  }
335
346
  var Ge, Zr;
336
- function ra() {
347
+ function ua() {
337
348
  if (Zr)
338
349
  return Ge;
339
350
  Zr = 1;
340
- var r = Zn(), e = ea();
351
+ var r = oa(), e = sa();
341
352
  return Ge = function(n, a) {
342
353
  return n && !r(a) ? e(n, a) : a;
343
354
  }, Ge;
344
355
  }
345
356
  var Ke, et;
346
- function ta() {
357
+ function la() {
347
358
  if (et)
348
359
  return Ke;
349
360
  et = 1;
350
- var r = _, e = [
361
+ var r = k, e = [
351
362
  "age",
352
363
  "authorization",
353
364
  "content-length",
@@ -379,11 +390,11 @@ function ta() {
379
390
  }, Ke;
380
391
  }
381
392
  var He, rt;
382
- function na() {
393
+ function ca() {
383
394
  if (rt)
384
395
  return He;
385
396
  rt = 1;
386
- var r = _;
397
+ var r = k;
387
398
  return He = r.isStandardBrowserEnv() ? (
388
399
  // Standard browser envs have full support of the APIs needed to test
389
400
  // whether the request URL is of the same origin as current location.
@@ -417,7 +428,7 @@ function na() {
417
428
  ), He;
418
429
  }
419
430
  var Ve, tt;
420
- function _e() {
431
+ function ke() {
421
432
  if (tt)
422
433
  return Ve;
423
434
  tt = 1;
@@ -433,7 +444,7 @@ function at() {
433
444
  if (nt)
434
445
  return Je;
435
446
  nt = 1;
436
- var r = _, e = Xn(), t = Yn(), n = jt, a = ra(), i = ta(), s = na(), l = Gt(), c = Wt, d = _e();
447
+ var r = k, e = aa(), t = ia(), n = Vt, a = ua(), i = la(), s = ca(), l = Xt(), c = Qt, d = ke();
437
448
  return Je = function(o) {
438
449
  return new Promise(function(p, y) {
439
450
  var v = o.data, m = o.headers, h = o.responseType, g;
@@ -441,67 +452,67 @@ function at() {
441
452
  o.cancelToken && o.cancelToken.unsubscribe(g), o.signal && o.signal.removeEventListener("abort", g);
442
453
  }
443
454
  r.isFormData(v) && delete m["Content-Type"];
444
- var w = new XMLHttpRequest();
455
+ var S = new XMLHttpRequest();
445
456
  if (o.auth) {
446
- var x = o.auth.username || "", U = o.auth.password ? unescape(encodeURIComponent(o.auth.password)) : "";
447
- m.Authorization = "Basic " + btoa(x + ":" + U);
457
+ var R = o.auth.username || "", q = o.auth.password ? unescape(encodeURIComponent(o.auth.password)) : "";
458
+ m.Authorization = "Basic " + btoa(R + ":" + q);
448
459
  }
449
- var N = a(o.baseURL, o.url);
450
- w.open(o.method.toUpperCase(), n(N, o.params, o.paramsSerializer), !0), w.timeout = o.timeout;
460
+ var $ = a(o.baseURL, o.url);
461
+ S.open(o.method.toUpperCase(), n($, o.params, o.paramsSerializer), !0), S.timeout = o.timeout;
451
462
  function V() {
452
- if (w) {
453
- var E = "getAllResponseHeaders" in w ? i(w.getAllResponseHeaders()) : null, k = !h || h === "text" || h === "json" ? w.responseText : w.response, T = {
454
- data: k,
455
- status: w.status,
456
- statusText: w.statusText,
457
- headers: E,
463
+ if (S) {
464
+ var O = "getAllResponseHeaders" in S ? i(S.getAllResponseHeaders()) : null, _ = !h || h === "text" || h === "json" ? S.responseText : S.response, D = {
465
+ data: _,
466
+ status: S.status,
467
+ statusText: S.statusText,
468
+ headers: O,
458
469
  config: o,
459
- request: w
470
+ request: S
460
471
  };
461
472
  e(function(L) {
462
473
  p(L), A();
463
474
  }, function(L) {
464
475
  y(L), A();
465
- }, T), w = null;
476
+ }, D), S = null;
466
477
  }
467
478
  }
468
- if ("onloadend" in w ? w.onloadend = V : w.onreadystatechange = function() {
469
- !w || w.readyState !== 4 || w.status === 0 && !(w.responseURL && w.responseURL.indexOf("file:") === 0) || setTimeout(V);
470
- }, w.onabort = function() {
471
- w && (y(l("Request aborted", o, "ECONNABORTED", w)), w = null);
472
- }, w.onerror = function() {
473
- y(l("Network Error", o, null, w)), w = null;
474
- }, w.ontimeout = function() {
475
- var k = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded", T = o.transitional || c;
476
- o.timeoutErrorMessage && (k = o.timeoutErrorMessage), y(l(
477
- k,
479
+ if ("onloadend" in S ? S.onloadend = V : S.onreadystatechange = function() {
480
+ !S || S.readyState !== 4 || S.status === 0 && !(S.responseURL && S.responseURL.indexOf("file:") === 0) || setTimeout(V);
481
+ }, S.onabort = function() {
482
+ S && (y(l("Request aborted", o, "ECONNABORTED", S)), S = null);
483
+ }, S.onerror = function() {
484
+ y(l("Network Error", o, null, S)), S = null;
485
+ }, S.ontimeout = function() {
486
+ var _ = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded", D = o.transitional || c;
487
+ o.timeoutErrorMessage && (_ = o.timeoutErrorMessage), y(l(
488
+ _,
478
489
  o,
479
- T.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
480
- w
481
- )), w = null;
490
+ D.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
491
+ S
492
+ )), S = null;
482
493
  }, r.isStandardBrowserEnv()) {
483
- var D = (o.withCredentials || s(N)) && o.xsrfCookieName ? t.read(o.xsrfCookieName) : void 0;
484
- D && (m[o.xsrfHeaderName] = D);
494
+ var U = (o.withCredentials || s($)) && o.xsrfCookieName ? t.read(o.xsrfCookieName) : void 0;
495
+ U && (m[o.xsrfHeaderName] = U);
485
496
  }
486
- "setRequestHeader" in w && r.forEach(m, function(k, T) {
487
- typeof v > "u" && T.toLowerCase() === "content-type" ? delete m[T] : w.setRequestHeader(T, k);
488
- }), r.isUndefined(o.withCredentials) || (w.withCredentials = !!o.withCredentials), h && h !== "json" && (w.responseType = o.responseType), typeof o.onDownloadProgress == "function" && w.addEventListener("progress", o.onDownloadProgress), typeof o.onUploadProgress == "function" && w.upload && w.upload.addEventListener("progress", o.onUploadProgress), (o.cancelToken || o.signal) && (g = function(E) {
489
- w && (y(!E || E && E.type ? new d("canceled") : E), w.abort(), w = null);
490
- }, o.cancelToken && o.cancelToken.subscribe(g), o.signal && (o.signal.aborted ? g() : o.signal.addEventListener("abort", g))), v || (v = null), w.send(v);
497
+ "setRequestHeader" in S && r.forEach(m, function(_, D) {
498
+ typeof v > "u" && D.toLowerCase() === "content-type" ? delete m[D] : S.setRequestHeader(D, _);
499
+ }), r.isUndefined(o.withCredentials) || (S.withCredentials = !!o.withCredentials), h && h !== "json" && (S.responseType = o.responseType), typeof o.onDownloadProgress == "function" && S.addEventListener("progress", o.onDownloadProgress), typeof o.onUploadProgress == "function" && S.upload && S.upload.addEventListener("progress", o.onUploadProgress), (o.cancelToken || o.signal) && (g = function(O) {
500
+ S && (y(!O || O && O.type ? new d("canceled") : O), S.abort(), S = null);
501
+ }, o.cancelToken && o.cancelToken.subscribe(g), o.signal && (o.signal.aborted ? g() : o.signal.addEventListener("abort", g))), v || (v = null), S.send(v);
491
502
  });
492
503
  }, Je;
493
504
  }
494
- var C = _, it = Qn, aa = Mt, ia = Wt, oa = {
505
+ var C = k, it = na, fa = Jt, pa = Qt, da = {
495
506
  "Content-Type": "application/x-www-form-urlencoded"
496
507
  };
497
508
  function ot(r, e) {
498
509
  !C.isUndefined(r) && C.isUndefined(r["Content-Type"]) && (r["Content-Type"] = e);
499
510
  }
500
- function sa() {
511
+ function ha() {
501
512
  var r;
502
513
  return (typeof XMLHttpRequest < "u" || typeof process < "u" && Object.prototype.toString.call(process) === "[object process]") && (r = at()), r;
503
514
  }
504
- function ua(r, e, t) {
515
+ function ya(r, e, t) {
505
516
  if (C.isString(r))
506
517
  try {
507
518
  return (e || JSON.parse)(r), C.trim(r);
@@ -511,20 +522,20 @@ function ua(r, e, t) {
511
522
  }
512
523
  return (t || JSON.stringify)(r);
513
524
  }
514
- var Be = {
515
- transitional: ia,
516
- adapter: sa(),
525
+ var Te = {
526
+ transitional: pa,
527
+ adapter: ha(),
517
528
  transformRequest: [function(e, t) {
518
- return it(t, "Accept"), it(t, "Content-Type"), C.isFormData(e) || C.isArrayBuffer(e) || C.isBuffer(e) || C.isStream(e) || C.isFile(e) || C.isBlob(e) ? e : C.isArrayBufferView(e) ? e.buffer : C.isURLSearchParams(e) ? (ot(t, "application/x-www-form-urlencoded;charset=utf-8"), e.toString()) : C.isObject(e) || t && t["Content-Type"] === "application/json" ? (ot(t, "application/json"), ua(e)) : e;
529
+ return it(t, "Accept"), it(t, "Content-Type"), C.isFormData(e) || C.isArrayBuffer(e) || C.isBuffer(e) || C.isStream(e) || C.isFile(e) || C.isBlob(e) ? e : C.isArrayBufferView(e) ? e.buffer : C.isURLSearchParams(e) ? (ot(t, "application/x-www-form-urlencoded;charset=utf-8"), e.toString()) : C.isObject(e) || t && t["Content-Type"] === "application/json" ? (ot(t, "application/json"), ya(e)) : e;
519
530
  }],
520
531
  transformResponse: [function(e) {
521
- var t = this.transitional || Be.transitional, n = t && t.silentJSONParsing, a = t && t.forcedJSONParsing, i = !n && this.responseType === "json";
532
+ var t = this.transitional || Te.transitional, n = t && t.silentJSONParsing, a = t && t.forcedJSONParsing, i = !n && this.responseType === "json";
522
533
  if (i || a && C.isString(e) && e.length)
523
534
  try {
524
535
  return JSON.parse(e);
525
536
  } catch (s) {
526
537
  if (i)
527
- throw s.name === "SyntaxError" ? aa(s, this, "E_JSON_PARSE") : s;
538
+ throw s.name === "SyntaxError" ? fa(s, this, "E_JSON_PARSE") : s;
528
539
  }
529
540
  return e;
530
541
  }],
@@ -547,28 +558,28 @@ var Be = {
547
558
  }
548
559
  };
549
560
  C.forEach(["delete", "get", "head"], function(e) {
550
- Be.headers[e] = {};
561
+ Te.headers[e] = {};
551
562
  });
552
563
  C.forEach(["post", "put", "patch"], function(e) {
553
- Be.headers[e] = C.merge(oa);
564
+ Te.headers[e] = C.merge(da);
554
565
  });
555
- var Tr = Be, la = _, ca = Tr, fa = function(e, t, n) {
556
- var a = this || ca;
557
- return la.forEach(n, function(s) {
566
+ var Dr = Te, va = k, ma = Dr, ga = function(e, t, n) {
567
+ var a = this || ma;
568
+ return va.forEach(n, function(s) {
558
569
  e = s.call(a, e, t);
559
570
  }), e;
560
571
  }, Qe, st;
561
- function Kt() {
572
+ function Yt() {
562
573
  return st || (st = 1, Qe = function(e) {
563
574
  return !!(e && e.__CANCEL__);
564
575
  }), Qe;
565
576
  }
566
- var ut = _, Xe = fa, pa = Kt(), da = Tr, ha = _e();
577
+ var ut = k, Xe = ga, Sa = Yt(), wa = Dr, ba = ke();
567
578
  function Ye(r) {
568
579
  if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted)
569
- throw new ha("canceled");
580
+ throw new ba("canceled");
570
581
  }
571
- var ya = function(e) {
582
+ var Ea = function(e) {
572
583
  Ye(e), e.headers = e.headers || {}, e.data = Xe.call(
573
584
  e,
574
585
  e.data,
@@ -584,7 +595,7 @@ var ya = function(e) {
584
595
  delete e.headers[a];
585
596
  }
586
597
  );
587
- var t = e.adapter || da.adapter;
598
+ var t = e.adapter || wa.adapter;
588
599
  return t(e).then(function(a) {
589
600
  return Ye(e), a.data = Xe.call(
590
601
  e,
@@ -593,33 +604,33 @@ var ya = function(e) {
593
604
  e.transformResponse
594
605
  ), a;
595
606
  }, function(a) {
596
- return pa(a) || (Ye(e), a && a.response && (a.response.data = Xe.call(
607
+ return Sa(a) || (Ye(e), a && a.response && (a.response.data = Xe.call(
597
608
  e,
598
609
  a.response.data,
599
610
  a.response.headers,
600
611
  e.transformResponse
601
612
  ))), Promise.reject(a);
602
613
  });
603
- }, B = _, Ht = function(e, t) {
614
+ }, T = k, Zt = function(e, t) {
604
615
  t = t || {};
605
616
  var n = {};
606
617
  function a(u, o) {
607
- return B.isPlainObject(u) && B.isPlainObject(o) ? B.merge(u, o) : B.isPlainObject(o) ? B.merge({}, o) : B.isArray(o) ? o.slice() : o;
618
+ return T.isPlainObject(u) && T.isPlainObject(o) ? T.merge(u, o) : T.isPlainObject(o) ? T.merge({}, o) : T.isArray(o) ? o.slice() : o;
608
619
  }
609
620
  function i(u) {
610
- if (B.isUndefined(t[u])) {
611
- if (!B.isUndefined(e[u]))
621
+ if (T.isUndefined(t[u])) {
622
+ if (!T.isUndefined(e[u]))
612
623
  return a(void 0, e[u]);
613
624
  } else
614
625
  return a(e[u], t[u]);
615
626
  }
616
627
  function s(u) {
617
- if (!B.isUndefined(t[u]))
628
+ if (!T.isUndefined(t[u]))
618
629
  return a(void 0, t[u]);
619
630
  }
620
631
  function l(u) {
621
- if (B.isUndefined(t[u])) {
622
- if (!B.isUndefined(e[u]))
632
+ if (T.isUndefined(t[u])) {
633
+ if (!T.isUndefined(e[u]))
623
634
  return a(void 0, e[u]);
624
635
  } else
625
636
  return a(void 0, t[u]);
@@ -658,26 +669,26 @@ var ya = function(e) {
658
669
  responseEncoding: l,
659
670
  validateStatus: c
660
671
  };
661
- return B.forEach(Object.keys(e).concat(Object.keys(t)), function(o) {
672
+ return T.forEach(Object.keys(e).concat(Object.keys(t)), function(o) {
662
673
  var f = d[o] || i, p = f(o);
663
- B.isUndefined(p) && f !== c || (n[o] = p);
674
+ T.isUndefined(p) && f !== c || (n[o] = p);
664
675
  }), n;
665
676
  }, Ze, lt;
666
- function Vt() {
677
+ function en() {
667
678
  return lt || (lt = 1, Ze = {
668
679
  version: "0.26.1"
669
680
  }), Ze;
670
681
  }
671
- var va = Vt().version, _r = {};
682
+ var Aa = en().version, kr = {};
672
683
  ["object", "boolean", "number", "function", "string", "symbol"].forEach(function(r, e) {
673
- _r[r] = function(n) {
684
+ kr[r] = function(n) {
674
685
  return typeof n === r || "a" + (e < 1 ? "n " : " ") + r;
675
686
  };
676
687
  });
677
688
  var ct = {};
678
- _r.transitional = function(e, t, n) {
689
+ kr.transitional = function(e, t, n) {
679
690
  function a(i, s) {
680
- return "[Axios v" + va + "] Transitional option '" + i + "'" + s + (n ? ". " + n : "");
691
+ return "[Axios v" + Aa + "] Transitional option '" + i + "'" + s + (n ? ". " + n : "");
681
692
  }
682
693
  return function(i, s, l) {
683
694
  if (e === !1)
@@ -690,7 +701,7 @@ _r.transitional = function(e, t, n) {
690
701
  )), e ? e(i, s, l) : !0;
691
702
  };
692
703
  };
693
- function ma(r, e, t) {
704
+ function Oa(r, e, t) {
694
705
  if (typeof r != "object")
695
706
  throw new TypeError("options must be an object");
696
707
  for (var n = Object.keys(r), a = n.length; a-- > 0; ) {
@@ -705,10 +716,10 @@ function ma(r, e, t) {
705
716
  throw Error("Unknown option " + i);
706
717
  }
707
718
  }
708
- var ga = {
709
- assertOptions: ma,
710
- validators: _r
711
- }, Jt = _, wa = jt, ft = Vn, pt = ya, qe = Ht, Qt = ga, oe = Qt.validators;
719
+ var Pa = {
720
+ assertOptions: Oa,
721
+ validators: kr
722
+ }, rn = k, Ia = Vt, ft = ra, pt = Ea, Be = Zt, tn = Pa, oe = tn.validators;
712
723
  function be(r) {
713
724
  this.defaults = r, this.interceptors = {
714
725
  request: new ft(),
@@ -716,9 +727,9 @@ function be(r) {
716
727
  };
717
728
  }
718
729
  be.prototype.request = function(e, t) {
719
- typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = qe(this.defaults, t), t.method ? t.method = t.method.toLowerCase() : this.defaults.method ? t.method = this.defaults.method.toLowerCase() : t.method = "get";
730
+ typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Be(this.defaults, t), t.method ? t.method = t.method.toLowerCase() : this.defaults.method ? t.method = this.defaults.method.toLowerCase() : t.method = "get";
720
731
  var n = t.transitional;
721
- n !== void 0 && Qt.assertOptions(n, {
732
+ n !== void 0 && tn.assertOptions(n, {
722
733
  silentJSONParsing: oe.transitional(oe.boolean),
723
734
  forcedJSONParsing: oe.transitional(oe.boolean),
724
735
  clarifyTimeoutError: oe.transitional(oe.boolean)
@@ -757,32 +768,32 @@ be.prototype.request = function(e, t) {
757
768
  return l;
758
769
  };
759
770
  be.prototype.getUri = function(e) {
760
- return e = qe(this.defaults, e), wa(e.url, e.params, e.paramsSerializer).replace(/^\?/, "");
771
+ return e = Be(this.defaults, e), Ia(e.url, e.params, e.paramsSerializer).replace(/^\?/, "");
761
772
  };
762
- Jt.forEach(["delete", "get", "head", "options"], function(e) {
773
+ rn.forEach(["delete", "get", "head", "options"], function(e) {
763
774
  be.prototype[e] = function(t, n) {
764
- return this.request(qe(n || {}, {
775
+ return this.request(Be(n || {}, {
765
776
  method: e,
766
777
  url: t,
767
778
  data: (n || {}).data
768
779
  }));
769
780
  };
770
781
  });
771
- Jt.forEach(["post", "put", "patch"], function(e) {
782
+ rn.forEach(["post", "put", "patch"], function(e) {
772
783
  be.prototype[e] = function(t, n, a) {
773
- return this.request(qe(a || {}, {
784
+ return this.request(Be(a || {}, {
774
785
  method: e,
775
786
  url: t,
776
787
  data: n
777
788
  }));
778
789
  };
779
790
  });
780
- var Sa = be, er, dt;
781
- function ba() {
791
+ var Ra = be, er, dt;
792
+ function xa() {
782
793
  if (dt)
783
794
  return er;
784
795
  dt = 1;
785
- var r = _e();
796
+ var r = ke();
786
797
  function e(t) {
787
798
  if (typeof t != "function")
788
799
  throw new TypeError("executor must be a function.");
@@ -834,7 +845,7 @@ function ba() {
834
845
  }, er = e, er;
835
846
  }
836
847
  var rr, ht;
837
- function Oa() {
848
+ function Ca() {
838
849
  return ht || (ht = 1, rr = function(e) {
839
850
  return function(n) {
840
851
  return e.apply(null, n);
@@ -842,40 +853,40 @@ function Oa() {
842
853
  }), rr;
843
854
  }
844
855
  var tr, yt;
845
- function Aa() {
856
+ function Fa() {
846
857
  if (yt)
847
858
  return tr;
848
859
  yt = 1;
849
- var r = _;
860
+ var r = k;
850
861
  return tr = function(t) {
851
862
  return r.isObject(t) && t.isAxiosError === !0;
852
863
  }, tr;
853
864
  }
854
- var vt = _, Ea = Lt, xe = Sa, Pa = Ht, Ia = Tr;
855
- function Xt(r) {
856
- var e = new xe(r), t = Ea(xe.prototype.request, e);
857
- return vt.extend(t, xe.prototype, e), vt.extend(t, e), t.create = function(a) {
858
- return Xt(Pa(r, a));
865
+ var vt = k, Na = Wt, Re = Ra, $a = Zt, _a = Dr;
866
+ function nn(r) {
867
+ var e = new Re(r), t = Na(Re.prototype.request, e);
868
+ return vt.extend(t, Re.prototype, e), vt.extend(t, e), t.create = function(a) {
869
+ return nn($a(r, a));
859
870
  }, t;
860
871
  }
861
- var W = Xt(Ia);
862
- W.Axios = xe;
863
- W.Cancel = _e();
864
- W.CancelToken = ba();
865
- W.isCancel = Kt();
866
- W.VERSION = Vt().version;
867
- W.all = function(e) {
872
+ var G = nn(_a);
873
+ G.Axios = Re;
874
+ G.Cancel = ke();
875
+ G.CancelToken = xa();
876
+ G.isCancel = Yt();
877
+ G.VERSION = en().version;
878
+ G.all = function(e) {
868
879
  return Promise.all(e);
869
880
  };
870
- W.spread = Oa();
871
- W.isAxiosError = Aa();
872
- $n.exports = W;
873
- Re.default = W;
881
+ G.spread = Ca();
882
+ G.isAxiosError = Fa();
883
+ Ln.exports = G;
884
+ xe.default = G;
874
885
  (function(r) {
875
- r.exports = Re;
876
- })(Fn);
877
- const mr = /* @__PURE__ */ Rn(hr);
878
- var Ce = {}, xa = {
886
+ r.exports = xe;
887
+ })(Bn);
888
+ const mr = /* @__PURE__ */ kn(hr);
889
+ var Ce = {}, Da = {
879
890
  get exports() {
880
891
  return Ce;
881
892
  },
@@ -1101,10 +1112,10 @@ var Ce = {}, xa = {
1101
1112
  for (m = o - f, v = ":"; m--; )
1102
1113
  v += "0:";
1103
1114
  return u = u.replace("::", v), u[0] === ":" && (u = u.slice(1)), u[u.length - 1] === ":" && (u = u.slice(0, -1)), o = function() {
1104
- var g, A, w, x;
1105
- for (w = u.split(":"), x = [], g = 0, A = w.length; g < A; g++)
1106
- y = w[g], x.push(parseInt(y, 16));
1107
- return x;
1115
+ var g, A, S, R;
1116
+ for (S = u.split(":"), R = [], g = 0, A = S.length; g < A; g++)
1117
+ y = S[g], R.push(parseInt(y, 16));
1118
+ return R;
1108
1119
  }(), {
1109
1120
  parts: o,
1110
1121
  zoneId: h
@@ -1224,9 +1235,9 @@ var Ce = {}, xa = {
1224
1235
  var o;
1225
1236
  return o = this.parse(u), o.kind() === "ipv6" && o.isIPv4MappedAddress() ? o.toIPv4Address() : o;
1226
1237
  };
1227
- }).call(qt);
1228
- })(xa);
1229
- const Yt = (r) => Array.isArray(r) && r.every((e) => Zt(e)), Zt = (r) => !!r.errorCode, Ra = async () => {
1238
+ }).call(jt);
1239
+ })(Da);
1240
+ const an = (r) => Array.isArray(r) && r.every((e) => on(e)), on = (r) => !!r.errorCode, ka = async () => {
1230
1241
  try {
1231
1242
  const r = await mr.get("https://api.ipify.org/?format=json");
1232
1243
  return r.data.ip && Ce.isValid(r.data.ip) ? Ce.parse(r.data.ip).toString() : void 0;
@@ -1234,14 +1245,14 @@ const Yt = (r) => Array.isArray(r) && r.every((e) => Zt(e)), Zt = (r) => !!r.err
1234
1245
  return;
1235
1246
  }
1236
1247
  };
1237
- class Ca {
1248
+ class Ta {
1238
1249
  constructor(e) {
1239
1250
  this.client = e, this.list = () => this.client.get("/v1/carriers"), this.get = (t) => this.client.get(`/v1/carriers/${t}`), this.connect = async ({ carrierCode: t, ...n }) => {
1240
- const a = await Ra();
1251
+ const a = await ka();
1241
1252
  return a ? await this.client.post(`/v1/registration/${t}`, {
1242
1253
  ...n,
1243
1254
  endUserIpAddress: a
1244
- }) : Promise.reject([new H("Unable to get IP address")]);
1255
+ }) : Promise.reject([new W("Unable to get IP address")]);
1245
1256
  }, this.addFunds = (t, n) => this.client.put(`/v1/carriers/${t}/add_funds`, n), this.updateAutoFunding = (t, n) => this.client.post(
1246
1257
  `/v1/carriers/${t}/auto_funding`,
1247
1258
  n
@@ -1250,16 +1261,16 @@ class Ca {
1250
1261
  ), this.client = e;
1251
1262
  }
1252
1263
  }
1253
- var gr = { trace: 10, debug: 20, info: 30, warn: 40, error: 50, fatal: 60 }, Br = {};
1264
+ var gr = { trace: 10, debug: 20, info: 30, warn: 40, error: 50, fatal: 60 }, Tr = {};
1254
1265
  function nr(r) {
1255
1266
  return typeof r == "string" ? gr[r.toLowerCase()] : r;
1256
1267
  }
1257
- function wr(r, e) {
1258
- return wr = Object.setPrototypeOf || function(t, n) {
1268
+ function Sr(r, e) {
1269
+ return Sr = Object.setPrototypeOf || function(t, n) {
1259
1270
  return t.__proto__ = n, t;
1260
- }, wr(r, e);
1271
+ }, Sr(r, e);
1261
1272
  }
1262
- function Fa() {
1273
+ function Ba() {
1263
1274
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
1264
1275
  return !1;
1265
1276
  if (typeof Proxy == "function")
@@ -1271,13 +1282,13 @@ function Fa() {
1271
1282
  return !1;
1272
1283
  }
1273
1284
  }
1274
- function Sr(r, e, t) {
1275
- return Sr = Fa() ? Reflect.construct : function(n, a, i) {
1285
+ function wr(r, e, t) {
1286
+ return wr = Ba() ? Reflect.construct : function(n, a, i) {
1276
1287
  var s = [null];
1277
1288
  s.push.apply(s, a);
1278
1289
  var l = new (Function.bind.apply(n, s))();
1279
- return i && wr(l, i.prototype), l;
1280
- }, Sr.apply(null, arguments);
1290
+ return i && Sr(l, i.prototype), l;
1291
+ }, wr.apply(null, arguments);
1281
1292
  }
1282
1293
  function re(r) {
1283
1294
  if (r == null)
@@ -1326,7 +1337,7 @@ function Z(r) {
1326
1337
  l += c === null || typeof c != "object" ? " " + c : " " + br(c);
1327
1338
  return l;
1328
1339
  }
1329
- function $a(r, e) {
1340
+ function La(r, e) {
1330
1341
  var t = r.split(`
1331
1342
  `);
1332
1343
  t[0] && t[0].indexOf("call-stack-error") >= 0 && t.shift();
@@ -1338,28 +1349,28 @@ function $a(r, e) {
1338
1349
  return a;
1339
1350
  }
1340
1351
  Object.keys(gr).forEach(function(r) {
1341
- Br[gr[r]] = r;
1352
+ Tr[gr[r]] = r;
1342
1353
  });
1343
- var Or = {};
1354
+ var Er = {};
1344
1355
  function Ar(r, e) {
1345
1356
  if (e) {
1346
- if (Or[e])
1357
+ if (Er[e])
1347
1358
  return;
1348
- Or[e] = !0;
1359
+ Er[e] = !0;
1349
1360
  }
1350
1361
  console.error(r + `
1351
1362
  `);
1352
1363
  }
1353
- function Na(r) {
1354
- return Or[r];
1364
+ function Ua(r) {
1365
+ return Er[r];
1355
1366
  }
1356
- function ka() {
1367
+ function qa() {
1357
1368
  var r = [];
1358
1369
  return function(e, t) {
1359
1370
  return t && typeof t == "object" ? r.indexOf(t) !== -1 ? "[Circular]" : (r.push(t), t) : t;
1360
1371
  };
1361
1372
  }
1362
- var Ta = /* @__PURE__ */ function() {
1373
+ var Ma = /* @__PURE__ */ function() {
1363
1374
  function r() {
1364
1375
  }
1365
1376
  return r.prototype.write = function(e) {
@@ -1404,7 +1415,7 @@ var Ta = /* @__PURE__ */ function() {
1404
1415
  this._level = Number.POSITIVE_INFINITY, this.streams = [], this.serializers = null, this.src = !1, this.fields = {};
1405
1416
  t.stream ? this.addStream({ type: "stream", stream: t.stream, level: t.level }) : t.streams ? t.streams.forEach(function(p) {
1406
1417
  d.addStream(p, t.level);
1407
- }) : i && t.level ? this.level(t.level) : i || this.addStream({ type: "raw", stream: new Ta(), level: t.level }), t.serializers && this.addSerializers(t.serializers), t.src && (this.src = !0), delete (s = re(t)).stream, delete s.level, delete s.streams, delete s.serializers, delete s.src, this.serializers && this._applySerializers(s), Object.keys(s).forEach(function(p) {
1418
+ }) : i && t.level ? this.level(t.level) : i || this.addStream({ type: "raw", stream: new Ma(), level: t.level }), t.serializers && this.addSerializers(t.serializers), t.src && (this.src = !0), delete (s = re(t)).stream, delete s.level, delete s.streams, delete s.serializers, delete s.src, this.serializers && this._applySerializers(s), Object.keys(s).forEach(function(p) {
1408
1419
  d.fields[p] = s[p];
1409
1420
  });
1410
1421
  }
@@ -1474,7 +1485,7 @@ var Ta = /* @__PURE__ */ function() {
1474
1485
  }
1475
1486
  if (n || this.haveNonRawStreams)
1476
1487
  try {
1477
- i = JSON.stringify(t, ka()) + `
1488
+ i = JSON.stringify(t, qa()) + `
1478
1489
  `;
1479
1490
  } catch (d) {
1480
1491
  var s = d.stack.split(/\n/g, 2).join(`
@@ -1501,18 +1512,18 @@ function se(r) {
1501
1512
  var e = this;
1502
1513
  function t(s) {
1503
1514
  var l;
1504
- s[0] instanceof Error ? (n = { err: e.serializers && e.serializers.err ? e.serializers.err(s[0]) : qr.err(s[0]) }, l = { err: !0 }, a = s.length === 1 ? [n.err.message] : Array.prototype.slice.call(s, 1)) : typeof s[0] != "object" && s[0] !== null || Array.isArray(s[0]) ? (n = null, a = Array.prototype.slice.call(s)) : (n = s[0], a = s.length === 1 && n.err && n.err instanceof Error ? [n.err.message] : Array.prototype.slice.call(s, 1));
1515
+ s[0] instanceof Error ? (n = { err: e.serializers && e.serializers.err ? e.serializers.err(s[0]) : Br.err(s[0]) }, l = { err: !0 }, a = s.length === 1 ? [n.err.message] : Array.prototype.slice.call(s, 1)) : typeof s[0] != "object" && s[0] !== null || Array.isArray(s[0]) ? (n = null, a = Array.prototype.slice.call(s)) : (n = s[0], a = s.length === 1 && n.err && n.err instanceof Error ? [n.err.message] : Array.prototype.slice.call(s, 1));
1505
1516
  var c = re(e.fields);
1506
1517
  c.level = r;
1507
1518
  var d = n ? re(n) : null;
1508
1519
  if (d && (e.serializers && e._applySerializers(d, l), Object.keys(d).forEach(function(o) {
1509
1520
  c[o] = d[o];
1510
- })), c.levelName = Br[r], c.msg = a.length ? Z.apply(e, a) : "", c.time || (c.time = new Date()), e.src && !c.src)
1521
+ })), c.levelName = Tr[r], c.msg = a.length ? Z.apply(e, a) : "", c.time || (c.time = new Date()), e.src && !c.src)
1511
1522
  try {
1512
1523
  throw new Error("call-stack-error");
1513
1524
  } catch (o) {
1514
- var u = o.stack ? $a(o.stack, 2) : "";
1515
- u || Na("src") || Ar("Unable to determine src line info", "src"), c.src = u || "";
1525
+ var u = o.stack ? La(o.stack, 2) : "";
1526
+ u || Ua("src") || Ar("Unable to determine src line info", "src"), c.src = u || "";
1516
1527
  }
1517
1528
  return c.v = 1, c;
1518
1529
  }
@@ -1522,29 +1533,29 @@ function se(r) {
1522
1533
  this._level > r || (i = t(a), this._emit(i));
1523
1534
  };
1524
1535
  }
1525
- function en(r) {
1536
+ function sn(r) {
1526
1537
  var e = r.stack || r.toString();
1527
1538
  if (r.cause && typeof r.cause == "function") {
1528
1539
  var t = r.cause();
1529
1540
  t && (e += `
1530
- Caused by: ` + en(t));
1541
+ Caused by: ` + sn(t));
1531
1542
  }
1532
1543
  return e;
1533
1544
  }
1534
1545
  ee.prototype.trace = se(10), ee.prototype.debug = se(20), ee.prototype.info = se(30), ee.prototype.warn = se(40), ee.prototype.error = se(50), ee.prototype.fatal = se(60);
1535
- var qr = { err: function(r) {
1536
- return r && r.stack ? { message: r.message, name: r.name, stack: en(r), code: r.code, signal: r.signal } : r;
1546
+ var Br = { err: function(r) {
1547
+ return r && r.stack ? { message: r.message, name: r.name, stack: sn(r), code: r.code, signal: r.signal } : r;
1537
1548
  } };
1538
- function rn() {
1539
- return Sr(ee, [].slice.call(arguments));
1549
+ function un() {
1550
+ return wr(ee, [].slice.call(arguments));
1540
1551
  }
1541
- var mt = { levels: { trace: "color: DeepPink", debug: "color: GoldenRod", info: "color: DarkTurquoise", warn: "color: Purple", error: "color: Crimson", fatal: "color: Black" }, def: "color: DimGray", msg: "color: SteelBlue", src: "color: DimGray; font-style: italic; font-size: 0.9em" }, tn = /* @__PURE__ */ function() {
1552
+ var mt = { levels: { trace: "color: DeepPink", debug: "color: GoldenRod", info: "color: DarkTurquoise", warn: "color: Purple", error: "color: Crimson", fatal: "color: Black" }, def: "color: DimGray", msg: "color: SteelBlue", src: "color: DimGray; font-style: italic; font-size: 0.9em" }, ln = /* @__PURE__ */ function() {
1542
1553
  function r(e) {
1543
1554
  var t = e === void 0 ? {} : e, n = t.logByLevel, a = t.css, i = a === void 0 ? mt : a;
1544
1555
  this.logByLevel = n !== void 0 && n, this.css = i;
1545
1556
  }
1546
1557
  return r.prototype.write = function(e) {
1547
- var t, n, a = this.css.def, i = this.css.msg, s = this.css.src, l = e.childName ? e.name + "/" + e.childName : e.name, c = Br[e.level], d = (Array(6 - c.length).join(" ") + c).toUpperCase();
1558
+ var t, n, a = this.css.def, i = this.css.msg, s = this.css.src, l = e.childName ? e.name + "/" + e.childName : e.name, c = Tr[e.level], d = (Array(6 - c.length).join(" ") + c).toUpperCase();
1548
1559
  this.logByLevel ? (e.level === 10 ? c = "debug" : e.level === 60 && (c = "error"), n = typeof console[c] == "function" ? console[c] : console.log) : n = console.log, t = e.level < 20 ? this.css.levels.trace : e.level < 30 ? this.css.levels.debug : e.level < 40 ? this.css.levels.info : e.level < 50 ? this.css.levels.warn : e.level < 60 ? this.css.levels.error : this.css.levels.fatal;
1549
1560
  var u = function(f, p) {
1550
1561
  return Array(p + 1 - (f + "").length).join("0") + f;
@@ -1555,7 +1566,7 @@ var mt = { levels: { trace: "color: DeepPink", debug: "color: GoldenRod", info:
1555
1566
  }, r.getDefaultCss = function() {
1556
1567
  return mt;
1557
1568
  }, r;
1558
- }(), me = {}, _a = {
1569
+ }(), me = {}, za = {
1559
1570
  get exports() {
1560
1571
  return me;
1561
1572
  },
@@ -1568,20 +1579,20 @@ var mt = { levels: { trace: "color: DeepPink", debug: "color: GoldenRod", info:
1568
1579
  var t = function(h, g, A) {
1569
1580
  if (!d(g) || o(g) || f(g) || p(g) || c(g))
1570
1581
  return g;
1571
- var w, x = 0, U = 0;
1582
+ var S, R = 0, q = 0;
1572
1583
  if (u(g))
1573
- for (w = [], U = g.length; x < U; x++)
1574
- w.push(t(h, g[x], A));
1584
+ for (S = [], q = g.length; R < q; R++)
1585
+ S.push(t(h, g[R], A));
1575
1586
  else {
1576
- w = {};
1577
- for (var N in g)
1578
- Object.prototype.hasOwnProperty.call(g, N) && (w[h(N, A)] = t(h, g[N], A));
1587
+ S = {};
1588
+ for (var $ in g)
1589
+ Object.prototype.hasOwnProperty.call(g, $) && (S[h($, A)] = t(h, g[$], A));
1579
1590
  }
1580
- return w;
1591
+ return S;
1581
1592
  }, n = function(h, g) {
1582
1593
  g = g || {};
1583
- var A = g.separator || "_", w = g.split || /(?=[A-Z])/;
1584
- return h.split(w).join(A);
1594
+ var A = g.separator || "_", S = g.split || /(?=[A-Z])/;
1595
+ return h.split(S).join(A);
1585
1596
  }, a = function(h) {
1586
1597
  return y(h) ? h : (h = h.replace(/[\-_\s]+(.)?/g, function(g, A) {
1587
1598
  return A ? A.toUpperCase() : "";
@@ -1607,8 +1618,8 @@ var mt = { levels: { trace: "color: DeepPink", debug: "color: GoldenRod", info:
1607
1618
  return h = h - 0, h === h;
1608
1619
  }, v = function(h, g) {
1609
1620
  var A = g && "process" in g ? g.process : g;
1610
- return typeof A != "function" ? h : function(w, x) {
1611
- return A(w, h, x);
1621
+ return typeof A != "function" ? h : function(S, R) {
1622
+ return A(S, h, R);
1612
1623
  };
1613
1624
  }, m = {
1614
1625
  camelize: a,
@@ -1629,9 +1640,9 @@ var mt = { levels: { trace: "color: DeepPink", debug: "color: GoldenRod", info:
1629
1640
  }
1630
1641
  };
1631
1642
  r.exports ? r.exports = m : e.humps = m;
1632
- })(qt);
1633
- })(_a);
1634
- var Ba = function() {
1643
+ })(jt);
1644
+ })(za);
1645
+ var ja = function() {
1635
1646
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
1636
1647
  return !1;
1637
1648
  if (typeof Symbol.iterator == "symbol")
@@ -1654,12 +1665,12 @@ var Ba = function() {
1654
1665
  return !1;
1655
1666
  }
1656
1667
  return !0;
1657
- }, gt = typeof Symbol < "u" && Symbol, qa = Ba, La = function() {
1658
- return typeof gt != "function" || typeof Symbol != "function" || typeof gt("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : qa();
1659
- }, Da = "Function.prototype.bind called on incompatible ", ar = Array.prototype.slice, Ua = Object.prototype.toString, za = "[object Function]", ja = function(e) {
1668
+ }, gt = typeof Symbol < "u" && Symbol, Wa = ja, Ga = function() {
1669
+ return typeof gt != "function" || typeof Symbol != "function" || typeof gt("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Wa();
1670
+ }, Ka = "Function.prototype.bind called on incompatible ", ar = Array.prototype.slice, Ha = Object.prototype.toString, Va = "[object Function]", Ja = function(e) {
1660
1671
  var t = this;
1661
- if (typeof t != "function" || Ua.call(t) !== za)
1662
- throw new TypeError(Da + t);
1672
+ if (typeof t != "function" || Ha.call(t) !== Va)
1673
+ throw new TypeError(Ka + t);
1663
1674
  for (var n = ar.call(arguments, 1), a, i = function() {
1664
1675
  if (this instanceof a) {
1665
1676
  var u = t.apply(
@@ -1680,9 +1691,9 @@ var Ba = function() {
1680
1691
  d.prototype = t.prototype, a.prototype = new d(), d.prototype = null;
1681
1692
  }
1682
1693
  return a;
1683
- }, Ma = ja, Lr = Function.prototype.bind || Ma, Wa = Lr, Ga = Wa.call(Function.call, Object.prototype.hasOwnProperty), S, fe = SyntaxError, nn = Function, ce = TypeError, ir = function(r) {
1694
+ }, Qa = Ja, Lr = Function.prototype.bind || Qa, Xa = Lr, Ya = Xa.call(Function.call, Object.prototype.hasOwnProperty), w, fe = SyntaxError, cn = Function, ce = TypeError, ir = function(r) {
1684
1695
  try {
1685
- return nn('"use strict"; return (' + r + ").constructor;")();
1696
+ return cn('"use strict"; return (' + r + ").constructor;")();
1686
1697
  } catch {
1687
1698
  }
1688
1699
  }, ne = Object.getOwnPropertyDescriptor;
@@ -1694,7 +1705,7 @@ if (ne)
1694
1705
  }
1695
1706
  var or = function() {
1696
1707
  throw new ce();
1697
- }, Ka = ne ? function() {
1708
+ }, Za = ne ? function() {
1698
1709
  try {
1699
1710
  return arguments.callee, or;
1700
1711
  } catch {
@@ -1704,24 +1715,24 @@ var or = function() {
1704
1715
  return or;
1705
1716
  }
1706
1717
  }
1707
- }() : or, ue = La(), j = Object.getPrototypeOf || function(r) {
1718
+ }() : or, ue = Ga(), z = Object.getPrototypeOf || function(r) {
1708
1719
  return r.__proto__;
1709
- }, le = {}, Ha = typeof Uint8Array > "u" ? S : j(Uint8Array), ae = {
1710
- "%AggregateError%": typeof AggregateError > "u" ? S : AggregateError,
1720
+ }, le = {}, ei = typeof Uint8Array > "u" ? w : z(Uint8Array), ae = {
1721
+ "%AggregateError%": typeof AggregateError > "u" ? w : AggregateError,
1711
1722
  "%Array%": Array,
1712
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? S : ArrayBuffer,
1713
- "%ArrayIteratorPrototype%": ue ? j([][Symbol.iterator]()) : S,
1714
- "%AsyncFromSyncIteratorPrototype%": S,
1723
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? w : ArrayBuffer,
1724
+ "%ArrayIteratorPrototype%": ue ? z([][Symbol.iterator]()) : w,
1725
+ "%AsyncFromSyncIteratorPrototype%": w,
1715
1726
  "%AsyncFunction%": le,
1716
1727
  "%AsyncGenerator%": le,
1717
1728
  "%AsyncGeneratorFunction%": le,
1718
1729
  "%AsyncIteratorPrototype%": le,
1719
- "%Atomics%": typeof Atomics > "u" ? S : Atomics,
1720
- "%BigInt%": typeof BigInt > "u" ? S : BigInt,
1721
- "%BigInt64Array%": typeof BigInt64Array > "u" ? S : BigInt64Array,
1722
- "%BigUint64Array%": typeof BigUint64Array > "u" ? S : BigUint64Array,
1730
+ "%Atomics%": typeof Atomics > "u" ? w : Atomics,
1731
+ "%BigInt%": typeof BigInt > "u" ? w : BigInt,
1732
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? w : BigInt64Array,
1733
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? w : BigUint64Array,
1723
1734
  "%Boolean%": Boolean,
1724
- "%DataView%": typeof DataView > "u" ? S : DataView,
1735
+ "%DataView%": typeof DataView > "u" ? w : DataView,
1725
1736
  "%Date%": Date,
1726
1737
  "%decodeURI%": decodeURI,
1727
1738
  "%decodeURIComponent%": decodeURIComponent,
@@ -1731,57 +1742,57 @@ var or = function() {
1731
1742
  "%eval%": eval,
1732
1743
  // eslint-disable-line no-eval
1733
1744
  "%EvalError%": EvalError,
1734
- "%Float32Array%": typeof Float32Array > "u" ? S : Float32Array,
1735
- "%Float64Array%": typeof Float64Array > "u" ? S : Float64Array,
1736
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? S : FinalizationRegistry,
1737
- "%Function%": nn,
1745
+ "%Float32Array%": typeof Float32Array > "u" ? w : Float32Array,
1746
+ "%Float64Array%": typeof Float64Array > "u" ? w : Float64Array,
1747
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? w : FinalizationRegistry,
1748
+ "%Function%": cn,
1738
1749
  "%GeneratorFunction%": le,
1739
- "%Int8Array%": typeof Int8Array > "u" ? S : Int8Array,
1740
- "%Int16Array%": typeof Int16Array > "u" ? S : Int16Array,
1741
- "%Int32Array%": typeof Int32Array > "u" ? S : Int32Array,
1750
+ "%Int8Array%": typeof Int8Array > "u" ? w : Int8Array,
1751
+ "%Int16Array%": typeof Int16Array > "u" ? w : Int16Array,
1752
+ "%Int32Array%": typeof Int32Array > "u" ? w : Int32Array,
1742
1753
  "%isFinite%": isFinite,
1743
1754
  "%isNaN%": isNaN,
1744
- "%IteratorPrototype%": ue ? j(j([][Symbol.iterator]())) : S,
1745
- "%JSON%": typeof JSON == "object" ? JSON : S,
1746
- "%Map%": typeof Map > "u" ? S : Map,
1747
- "%MapIteratorPrototype%": typeof Map > "u" || !ue ? S : j((/* @__PURE__ */ new Map())[Symbol.iterator]()),
1755
+ "%IteratorPrototype%": ue ? z(z([][Symbol.iterator]())) : w,
1756
+ "%JSON%": typeof JSON == "object" ? JSON : w,
1757
+ "%Map%": typeof Map > "u" ? w : Map,
1758
+ "%MapIteratorPrototype%": typeof Map > "u" || !ue ? w : z((/* @__PURE__ */ new Map())[Symbol.iterator]()),
1748
1759
  "%Math%": Math,
1749
1760
  "%Number%": Number,
1750
1761
  "%Object%": Object,
1751
1762
  "%parseFloat%": parseFloat,
1752
1763
  "%parseInt%": parseInt,
1753
- "%Promise%": typeof Promise > "u" ? S : Promise,
1754
- "%Proxy%": typeof Proxy > "u" ? S : Proxy,
1764
+ "%Promise%": typeof Promise > "u" ? w : Promise,
1765
+ "%Proxy%": typeof Proxy > "u" ? w : Proxy,
1755
1766
  "%RangeError%": RangeError,
1756
1767
  "%ReferenceError%": ReferenceError,
1757
- "%Reflect%": typeof Reflect > "u" ? S : Reflect,
1768
+ "%Reflect%": typeof Reflect > "u" ? w : Reflect,
1758
1769
  "%RegExp%": RegExp,
1759
- "%Set%": typeof Set > "u" ? S : Set,
1760
- "%SetIteratorPrototype%": typeof Set > "u" || !ue ? S : j((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1761
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? S : SharedArrayBuffer,
1770
+ "%Set%": typeof Set > "u" ? w : Set,
1771
+ "%SetIteratorPrototype%": typeof Set > "u" || !ue ? w : z((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1772
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? w : SharedArrayBuffer,
1762
1773
  "%String%": String,
1763
- "%StringIteratorPrototype%": ue ? j(""[Symbol.iterator]()) : S,
1764
- "%Symbol%": ue ? Symbol : S,
1774
+ "%StringIteratorPrototype%": ue ? z(""[Symbol.iterator]()) : w,
1775
+ "%Symbol%": ue ? Symbol : w,
1765
1776
  "%SyntaxError%": fe,
1766
- "%ThrowTypeError%": Ka,
1767
- "%TypedArray%": Ha,
1777
+ "%ThrowTypeError%": Za,
1778
+ "%TypedArray%": ei,
1768
1779
  "%TypeError%": ce,
1769
- "%Uint8Array%": typeof Uint8Array > "u" ? S : Uint8Array,
1770
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? S : Uint8ClampedArray,
1771
- "%Uint16Array%": typeof Uint16Array > "u" ? S : Uint16Array,
1772
- "%Uint32Array%": typeof Uint32Array > "u" ? S : Uint32Array,
1780
+ "%Uint8Array%": typeof Uint8Array > "u" ? w : Uint8Array,
1781
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? w : Uint8ClampedArray,
1782
+ "%Uint16Array%": typeof Uint16Array > "u" ? w : Uint16Array,
1783
+ "%Uint32Array%": typeof Uint32Array > "u" ? w : Uint32Array,
1773
1784
  "%URIError%": URIError,
1774
- "%WeakMap%": typeof WeakMap > "u" ? S : WeakMap,
1775
- "%WeakRef%": typeof WeakRef > "u" ? S : WeakRef,
1776
- "%WeakSet%": typeof WeakSet > "u" ? S : WeakSet
1785
+ "%WeakMap%": typeof WeakMap > "u" ? w : WeakMap,
1786
+ "%WeakRef%": typeof WeakRef > "u" ? w : WeakRef,
1787
+ "%WeakSet%": typeof WeakSet > "u" ? w : WeakSet
1777
1788
  };
1778
1789
  try {
1779
1790
  null.error;
1780
1791
  } catch (r) {
1781
- var Va = j(j(r));
1782
- ae["%Error.prototype%"] = Va;
1792
+ var ri = z(z(r));
1793
+ ae["%Error.prototype%"] = ri;
1783
1794
  }
1784
- var Ja = function r(e) {
1795
+ var ti = function r(e) {
1785
1796
  var t;
1786
1797
  if (e === "%AsyncFunction%")
1787
1798
  t = ir("async function () {}");
@@ -1794,10 +1805,10 @@ var Ja = function r(e) {
1794
1805
  n && (t = n.prototype);
1795
1806
  } else if (e === "%AsyncIteratorPrototype%") {
1796
1807
  var a = r("%AsyncGenerator%");
1797
- a && (t = j(a.prototype));
1808
+ a && (t = z(a.prototype));
1798
1809
  }
1799
1810
  return ae[e] = t, t;
1800
- }, wt = {
1811
+ }, St = {
1801
1812
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1802
1813
  "%ArrayPrototype%": ["Array", "prototype"],
1803
1814
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -1849,21 +1860,21 @@ var Ja = function r(e) {
1849
1860
  "%URIErrorPrototype%": ["URIError", "prototype"],
1850
1861
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
1851
1862
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
1852
- }, Oe = Lr, Fe = Ga, Qa = Oe.call(Function.call, Array.prototype.concat), Xa = Oe.call(Function.apply, Array.prototype.splice), St = Oe.call(Function.call, String.prototype.replace), $e = Oe.call(Function.call, String.prototype.slice), Ya = Oe.call(Function.call, RegExp.prototype.exec), Za = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ei = /\\(\\)?/g, ri = function(e) {
1853
- var t = $e(e, 0, 1), n = $e(e, -1);
1863
+ }, Ee = Lr, Fe = Ya, ni = Ee.call(Function.call, Array.prototype.concat), ai = Ee.call(Function.apply, Array.prototype.splice), wt = Ee.call(Function.call, String.prototype.replace), Ne = Ee.call(Function.call, String.prototype.slice), ii = Ee.call(Function.call, RegExp.prototype.exec), oi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, si = /\\(\\)?/g, ui = function(e) {
1864
+ var t = Ne(e, 0, 1), n = Ne(e, -1);
1854
1865
  if (t === "%" && n !== "%")
1855
1866
  throw new fe("invalid intrinsic syntax, expected closing `%`");
1856
1867
  if (n === "%" && t !== "%")
1857
1868
  throw new fe("invalid intrinsic syntax, expected opening `%`");
1858
1869
  var a = [];
1859
- return St(e, Za, function(i, s, l, c) {
1860
- a[a.length] = l ? St(c, ei, "$1") : s || i;
1870
+ return wt(e, oi, function(i, s, l, c) {
1871
+ a[a.length] = l ? wt(c, si, "$1") : s || i;
1861
1872
  }), a;
1862
- }, ti = function(e, t) {
1873
+ }, li = function(e, t) {
1863
1874
  var n = e, a;
1864
- if (Fe(wt, n) && (a = wt[n], n = "%" + a[0] + "%"), Fe(ae, n)) {
1875
+ if (Fe(St, n) && (a = St[n], n = "%" + a[0] + "%"), Fe(ae, n)) {
1865
1876
  var i = ae[n];
1866
- if (i === le && (i = Ja(n)), typeof i > "u" && !t)
1877
+ if (i === le && (i = ti(n)), typeof i > "u" && !t)
1867
1878
  throw new ce("intrinsic " + e + " exists, but is not available. Please file an issue!");
1868
1879
  return {
1869
1880
  alias: a,
@@ -1872,17 +1883,17 @@ var Ja = function r(e) {
1872
1883
  };
1873
1884
  }
1874
1885
  throw new fe("intrinsic " + e + " does not exist!");
1875
- }, Dr = function(e, t) {
1886
+ }, Ur = function(e, t) {
1876
1887
  if (typeof e != "string" || e.length === 0)
1877
1888
  throw new ce("intrinsic name must be a non-empty string");
1878
1889
  if (arguments.length > 1 && typeof t != "boolean")
1879
1890
  throw new ce('"allowMissing" argument must be a boolean');
1880
- if (Ya(/^%?[^%]*%?$/, e) === null)
1891
+ if (ii(/^%?[^%]*%?$/, e) === null)
1881
1892
  throw new fe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1882
- var n = ri(e), a = n.length > 0 ? n[0] : "", i = ti("%" + a + "%", t), s = i.name, l = i.value, c = !1, d = i.alias;
1883
- d && (a = d[0], Xa(n, Qa([0, 1], d)));
1893
+ var n = ui(e), a = n.length > 0 ? n[0] : "", i = li("%" + a + "%", t), s = i.name, l = i.value, c = !1, d = i.alias;
1894
+ d && (a = d[0], ai(n, ni([0, 1], d)));
1884
1895
  for (var u = 1, o = !0; u < n.length; u += 1) {
1885
- var f = n[u], p = $e(f, 0, 1), y = $e(f, -1);
1896
+ var f = n[u], p = Ne(f, 0, 1), y = Ne(f, -1);
1886
1897
  if ((p === '"' || p === "'" || p === "`" || y === '"' || y === "'" || y === "`") && p !== y)
1887
1898
  throw new fe("property names with quotes must have matching quotes");
1888
1899
  if ((f === "constructor" || !o) && (c = !0), a += "." + f, s = "%" + a + "%", Fe(ae, s))
@@ -1902,16 +1913,16 @@ var Ja = function r(e) {
1902
1913
  }
1903
1914
  }
1904
1915
  return l;
1905
- }, Er = {}, ni = {
1916
+ }, Or = {}, ci = {
1906
1917
  get exports() {
1907
- return Er;
1918
+ return Or;
1908
1919
  },
1909
1920
  set exports(r) {
1910
- Er = r;
1921
+ Or = r;
1911
1922
  }
1912
1923
  };
1913
1924
  (function(r) {
1914
- var e = Lr, t = Dr, n = t("%Function.prototype.apply%"), a = t("%Function.prototype.call%"), i = t("%Reflect.apply%", !0) || e.call(a, n), s = t("%Object.getOwnPropertyDescriptor%", !0), l = t("%Object.defineProperty%", !0), c = t("%Math.max%");
1925
+ var e = Lr, t = Ur, n = t("%Function.prototype.apply%"), a = t("%Function.prototype.call%"), i = t("%Reflect.apply%", !0) || e.call(a, n), s = t("%Object.getOwnPropertyDescriptor%", !0), l = t("%Object.defineProperty%", !0), c = t("%Math.max%");
1915
1926
  if (l)
1916
1927
  try {
1917
1928
  l({}, "a", { value: 1 });
@@ -1934,32 +1945,32 @@ var Ja = function r(e) {
1934
1945
  return i(e, n, arguments);
1935
1946
  };
1936
1947
  l ? l(r.exports, "apply", { value: d }) : r.exports.apply = d;
1937
- })(ni);
1938
- var an = Dr, on = Er, ai = on(an("String.prototype.indexOf")), ii = function(e, t) {
1939
- var n = an(e, !!t);
1940
- return typeof n == "function" && ai(e, ".prototype.") > -1 ? on(n) : n;
1948
+ })(ci);
1949
+ var fn = Ur, pn = Or, fi = pn(fn("String.prototype.indexOf")), pi = function(e, t) {
1950
+ var n = fn(e, !!t);
1951
+ return typeof n == "function" && fi(e, ".prototype.") > -1 ? pn(n) : n;
1941
1952
  };
1942
- const oi = {}, si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1953
+ const di = {}, hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1943
1954
  __proto__: null,
1944
- default: oi
1945
- }, Symbol.toStringTag, { value: "Module" })), ui = /* @__PURE__ */ Cn(si);
1946
- var Ur = typeof Map == "function" && Map.prototype, sr = Object.getOwnPropertyDescriptor && Ur ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ne = Ur && sr && typeof sr.get == "function" ? sr.get : null, bt = Ur && Map.prototype.forEach, zr = typeof Set == "function" && Set.prototype, ur = Object.getOwnPropertyDescriptor && zr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ke = zr && ur && typeof ur.get == "function" ? ur.get : null, Ot = zr && Set.prototype.forEach, li = typeof WeakMap == "function" && WeakMap.prototype, ge = li ? WeakMap.prototype.has : null, ci = typeof WeakSet == "function" && WeakSet.prototype, we = ci ? WeakSet.prototype.has : null, fi = typeof WeakRef == "function" && WeakRef.prototype, At = fi ? WeakRef.prototype.deref : null, pi = Boolean.prototype.valueOf, di = Object.prototype.toString, hi = Function.prototype.toString, yi = String.prototype.match, jr = String.prototype.slice, Q = String.prototype.replace, vi = String.prototype.toUpperCase, Et = String.prototype.toLowerCase, sn = RegExp.prototype.test, Pt = Array.prototype.concat, M = Array.prototype.join, mi = Array.prototype.slice, It = Math.floor, Pr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, lr = Object.getOwnPropertySymbols, Ir = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, pe = typeof Symbol == "function" && typeof Symbol.iterator == "object", F = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === pe || "symbol") ? Symbol.toStringTag : null, un = Object.prototype.propertyIsEnumerable, xt = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
1955
+ default: di
1956
+ }, Symbol.toStringTag, { value: "Module" })), yi = /* @__PURE__ */ Tn(hi);
1957
+ var qr = typeof Map == "function" && Map.prototype, sr = Object.getOwnPropertyDescriptor && qr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, $e = qr && sr && typeof sr.get == "function" ? sr.get : null, bt = qr && Map.prototype.forEach, Mr = typeof Set == "function" && Set.prototype, ur = Object.getOwnPropertyDescriptor && Mr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, _e = Mr && ur && typeof ur.get == "function" ? ur.get : null, Et = Mr && Set.prototype.forEach, vi = typeof WeakMap == "function" && WeakMap.prototype, ge = vi ? WeakMap.prototype.has : null, mi = typeof WeakSet == "function" && WeakSet.prototype, Se = mi ? WeakSet.prototype.has : null, gi = typeof WeakRef == "function" && WeakRef.prototype, At = gi ? WeakRef.prototype.deref : null, Si = Boolean.prototype.valueOf, wi = Object.prototype.toString, bi = Function.prototype.toString, Ei = String.prototype.match, zr = String.prototype.slice, Q = String.prototype.replace, Ai = String.prototype.toUpperCase, Ot = String.prototype.toLowerCase, dn = RegExp.prototype.test, Pt = Array.prototype.concat, j = Array.prototype.join, Oi = Array.prototype.slice, It = Math.floor, Pr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, lr = Object.getOwnPropertySymbols, Ir = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, pe = typeof Symbol == "function" && typeof Symbol.iterator == "object", F = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === pe || "symbol") ? Symbol.toStringTag : null, hn = Object.prototype.propertyIsEnumerable, Rt = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
1947
1958
  return r.__proto__;
1948
1959
  } : null);
1949
- function Rt(r, e) {
1950
- if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || sn.call(/e/, e))
1960
+ function xt(r, e) {
1961
+ if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || dn.call(/e/, e))
1951
1962
  return e;
1952
1963
  var t = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1953
1964
  if (typeof r == "number") {
1954
1965
  var n = r < 0 ? -It(-r) : It(r);
1955
1966
  if (n !== r) {
1956
- var a = String(n), i = jr.call(e, a.length + 1);
1967
+ var a = String(n), i = zr.call(e, a.length + 1);
1957
1968
  return Q.call(a, t, "$&_") + "." + Q.call(Q.call(i, /([0-9]{3})/g, "$&_"), /_$/, "");
1958
1969
  }
1959
1970
  }
1960
1971
  return Q.call(e, t, "$&_");
1961
1972
  }
1962
- var xr = ui, Ct = xr.custom, Ft = cn(Ct) ? Ct : null, gi = function r(e, t, n, a) {
1973
+ var Rr = yi, Ct = Rr.custom, Ft = vn(Ct) ? Ct : null, Pi = function r(e, t, n, a) {
1963
1974
  var i = t || {};
1964
1975
  if (J(i, "quoteStyle") && i.quoteStyle !== "single" && i.quoteStyle !== "double")
1965
1976
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
@@ -1980,124 +1991,124 @@ var xr = ui, Ct = xr.custom, Ft = cn(Ct) ? Ct : null, gi = function r(e, t, n, a
1980
1991
  if (typeof e == "boolean")
1981
1992
  return e ? "true" : "false";
1982
1993
  if (typeof e == "string")
1983
- return pn(e, i);
1994
+ return gn(e, i);
1984
1995
  if (typeof e == "number") {
1985
1996
  if (e === 0)
1986
1997
  return 1 / 0 / e > 0 ? "0" : "-0";
1987
1998
  var c = String(e);
1988
- return l ? Rt(e, c) : c;
1999
+ return l ? xt(e, c) : c;
1989
2000
  }
1990
2001
  if (typeof e == "bigint") {
1991
2002
  var d = String(e) + "n";
1992
- return l ? Rt(e, d) : d;
2003
+ return l ? xt(e, d) : d;
1993
2004
  }
1994
2005
  var u = typeof i.depth > "u" ? 5 : i.depth;
1995
2006
  if (typeof n > "u" && (n = 0), n >= u && u > 0 && typeof e == "object")
1996
- return Rr(e) ? "[Array]" : "[Object]";
1997
- var o = Bi(i, n);
2007
+ return xr(e) ? "[Array]" : "[Object]";
2008
+ var o = ji(i, n);
1998
2009
  if (typeof a > "u")
1999
2010
  a = [];
2000
- else if (fn(a, e) >= 0)
2011
+ else if (mn(a, e) >= 0)
2001
2012
  return "[Circular]";
2002
- function f(q, L, G) {
2003
- if (L && (a = mi.call(a), a.push(L)), G) {
2013
+ function f(B, L, K) {
2014
+ if (L && (a = Oi.call(a), a.push(L)), K) {
2004
2015
  var ye = {
2005
2016
  depth: i.depth
2006
2017
  };
2007
- return J(i, "quoteStyle") && (ye.quoteStyle = i.quoteStyle), r(q, ye, n + 1, a);
2018
+ return J(i, "quoteStyle") && (ye.quoteStyle = i.quoteStyle), r(B, ye, n + 1, a);
2008
2019
  }
2009
- return r(q, i, n + 1, a);
2020
+ return r(B, i, n + 1, a);
2010
2021
  }
2011
- if (typeof e == "function" && !$t(e)) {
2012
- var p = xi(e), y = Ae(e, f);
2013
- return "[Function" + (p ? ": " + p : " (anonymous)") + "]" + (y.length > 0 ? " { " + M.call(y, ", ") + " }" : "");
2022
+ if (typeof e == "function" && !Nt(e)) {
2023
+ var p = Di(e), y = Ae(e, f);
2024
+ return "[Function" + (p ? ": " + p : " (anonymous)") + "]" + (y.length > 0 ? " { " + j.call(y, ", ") + " }" : "");
2014
2025
  }
2015
- if (cn(e)) {
2026
+ if (vn(e)) {
2016
2027
  var v = pe ? Q.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Ir.call(e);
2017
2028
  return typeof e == "object" && !pe ? ve(v) : v;
2018
2029
  }
2019
- if (ki(e)) {
2020
- for (var m = "<" + Et.call(String(e.nodeName)), h = e.attributes || [], g = 0; g < h.length; g++)
2021
- m += " " + h[g].name + "=" + ln(wi(h[g].value), "double", i);
2022
- return m += ">", e.childNodes && e.childNodes.length && (m += "..."), m += "</" + Et.call(String(e.nodeName)) + ">", m;
2030
+ if (qi(e)) {
2031
+ for (var m = "<" + Ot.call(String(e.nodeName)), h = e.attributes || [], g = 0; g < h.length; g++)
2032
+ m += " " + h[g].name + "=" + yn(Ii(h[g].value), "double", i);
2033
+ return m += ">", e.childNodes && e.childNodes.length && (m += "..."), m += "</" + Ot.call(String(e.nodeName)) + ">", m;
2023
2034
  }
2024
- if (Rr(e)) {
2035
+ if (xr(e)) {
2025
2036
  if (e.length === 0)
2026
2037
  return "[]";
2027
2038
  var A = Ae(e, f);
2028
- return o && !_i(A) ? "[" + Cr(A, o) + "]" : "[ " + M.call(A, ", ") + " ]";
2039
+ return o && !zi(A) ? "[" + Cr(A, o) + "]" : "[ " + j.call(A, ", ") + " ]";
2029
2040
  }
2030
- if (bi(e)) {
2031
- var w = Ae(e, f);
2032
- return !("cause" in Error.prototype) && "cause" in e && !un.call(e, "cause") ? "{ [" + String(e) + "] " + M.call(Pt.call("[cause]: " + f(e.cause), w), ", ") + " }" : w.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + M.call(w, ", ") + " }";
2041
+ if (xi(e)) {
2042
+ var S = Ae(e, f);
2043
+ return !("cause" in Error.prototype) && "cause" in e && !hn.call(e, "cause") ? "{ [" + String(e) + "] " + j.call(Pt.call("[cause]: " + f(e.cause), S), ", ") + " }" : S.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + j.call(S, ", ") + " }";
2033
2044
  }
2034
2045
  if (typeof e == "object" && s) {
2035
- if (Ft && typeof e[Ft] == "function" && xr)
2036
- return xr(e, { depth: u - n });
2046
+ if (Ft && typeof e[Ft] == "function" && Rr)
2047
+ return Rr(e, { depth: u - n });
2037
2048
  if (s !== "symbol" && typeof e.inspect == "function")
2038
2049
  return e.inspect();
2039
2050
  }
2040
- if (Ri(e)) {
2041
- var x = [];
2042
- return bt && bt.call(e, function(q, L) {
2043
- x.push(f(L, e, !0) + " => " + f(q, e));
2044
- }), Nt("Map", Ne.call(e), x, o);
2045
- }
2046
- if ($i(e)) {
2047
- var U = [];
2048
- return Ot && Ot.call(e, function(q) {
2049
- U.push(f(q, e));
2050
- }), Nt("Set", ke.call(e), U, o);
2051
- }
2052
- if (Ci(e))
2051
+ if (ki(e)) {
2052
+ var R = [];
2053
+ return bt && bt.call(e, function(B, L) {
2054
+ R.push(f(L, e, !0) + " => " + f(B, e));
2055
+ }), $t("Map", $e.call(e), R, o);
2056
+ }
2057
+ if (Li(e)) {
2058
+ var q = [];
2059
+ return Et && Et.call(e, function(B) {
2060
+ q.push(f(B, e));
2061
+ }), $t("Set", _e.call(e), q, o);
2062
+ }
2063
+ if (Ti(e))
2053
2064
  return cr("WeakMap");
2054
- if (Ni(e))
2065
+ if (Ui(e))
2055
2066
  return cr("WeakSet");
2056
- if (Fi(e))
2067
+ if (Bi(e))
2057
2068
  return cr("WeakRef");
2058
- if (Ai(e))
2069
+ if (Fi(e))
2059
2070
  return ve(f(Number(e)));
2060
- if (Pi(e))
2071
+ if ($i(e))
2061
2072
  return ve(f(Pr.call(e)));
2062
- if (Ei(e))
2063
- return ve(pi.call(e));
2064
- if (Oi(e))
2073
+ if (Ni(e))
2074
+ return ve(Si.call(e));
2075
+ if (Ci(e))
2065
2076
  return ve(f(String(e)));
2066
- if (!Si(e) && !$t(e)) {
2067
- var N = Ae(e, f), V = xt ? xt(e) === Object.prototype : e instanceof Object || e.constructor === Object, D = e instanceof Object ? "" : "null prototype", E = !V && F && Object(e) === e && F in e ? jr.call(Y(e), 8, -1) : D ? "Object" : "", k = V || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", T = k + (E || D ? "[" + M.call(Pt.call([], E || [], D || []), ": ") + "] " : "");
2068
- return N.length === 0 ? T + "{}" : o ? T + "{" + Cr(N, o) + "}" : T + "{ " + M.call(N, ", ") + " }";
2077
+ if (!Ri(e) && !Nt(e)) {
2078
+ var $ = Ae(e, f), V = Rt ? Rt(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", O = !V && F && Object(e) === e && F in e ? zr.call(Y(e), 8, -1) : U ? "Object" : "", _ = V || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", D = _ + (O || U ? "[" + j.call(Pt.call([], O || [], U || []), ": ") + "] " : "");
2079
+ return $.length === 0 ? D + "{}" : o ? D + "{" + Cr($, o) + "}" : D + "{ " + j.call($, ", ") + " }";
2069
2080
  }
2070
2081
  return String(e);
2071
2082
  };
2072
- function ln(r, e, t) {
2083
+ function yn(r, e, t) {
2073
2084
  var n = (t.quoteStyle || e) === "double" ? '"' : "'";
2074
2085
  return n + r + n;
2075
2086
  }
2076
- function wi(r) {
2087
+ function Ii(r) {
2077
2088
  return Q.call(String(r), /"/g, "&quot;");
2078
2089
  }
2079
- function Rr(r) {
2090
+ function xr(r) {
2080
2091
  return Y(r) === "[object Array]" && (!F || !(typeof r == "object" && F in r));
2081
2092
  }
2082
- function Si(r) {
2093
+ function Ri(r) {
2083
2094
  return Y(r) === "[object Date]" && (!F || !(typeof r == "object" && F in r));
2084
2095
  }
2085
- function $t(r) {
2096
+ function Nt(r) {
2086
2097
  return Y(r) === "[object RegExp]" && (!F || !(typeof r == "object" && F in r));
2087
2098
  }
2088
- function bi(r) {
2099
+ function xi(r) {
2089
2100
  return Y(r) === "[object Error]" && (!F || !(typeof r == "object" && F in r));
2090
2101
  }
2091
- function Oi(r) {
2102
+ function Ci(r) {
2092
2103
  return Y(r) === "[object String]" && (!F || !(typeof r == "object" && F in r));
2093
2104
  }
2094
- function Ai(r) {
2105
+ function Fi(r) {
2095
2106
  return Y(r) === "[object Number]" && (!F || !(typeof r == "object" && F in r));
2096
2107
  }
2097
- function Ei(r) {
2108
+ function Ni(r) {
2098
2109
  return Y(r) === "[object Boolean]" && (!F || !(typeof r == "object" && F in r));
2099
2110
  }
2100
- function cn(r) {
2111
+ function vn(r) {
2101
2112
  if (pe)
2102
2113
  return r && typeof r == "object" && r instanceof Symbol;
2103
2114
  if (typeof r == "symbol")
@@ -2110,7 +2121,7 @@ function cn(r) {
2110
2121
  }
2111
2122
  return !1;
2112
2123
  }
2113
- function Pi(r) {
2124
+ function $i(r) {
2114
2125
  if (!r || typeof r != "object" || !Pr)
2115
2126
  return !1;
2116
2127
  try {
@@ -2119,22 +2130,22 @@ function Pi(r) {
2119
2130
  }
2120
2131
  return !1;
2121
2132
  }
2122
- var Ii = Object.prototype.hasOwnProperty || function(r) {
2133
+ var _i = Object.prototype.hasOwnProperty || function(r) {
2123
2134
  return r in this;
2124
2135
  };
2125
2136
  function J(r, e) {
2126
- return Ii.call(r, e);
2137
+ return _i.call(r, e);
2127
2138
  }
2128
2139
  function Y(r) {
2129
- return di.call(r);
2140
+ return wi.call(r);
2130
2141
  }
2131
- function xi(r) {
2142
+ function Di(r) {
2132
2143
  if (r.name)
2133
2144
  return r.name;
2134
- var e = yi.call(hi.call(r), /^function\s*([\w$]+)/);
2145
+ var e = Ei.call(bi.call(r), /^function\s*([\w$]+)/);
2135
2146
  return e ? e[1] : null;
2136
2147
  }
2137
- function fn(r, e) {
2148
+ function mn(r, e) {
2138
2149
  if (r.indexOf)
2139
2150
  return r.indexOf(e);
2140
2151
  for (var t = 0, n = r.length; t < n; t++)
@@ -2142,13 +2153,13 @@ function fn(r, e) {
2142
2153
  return t;
2143
2154
  return -1;
2144
2155
  }
2145
- function Ri(r) {
2146
- if (!Ne || !r || typeof r != "object")
2156
+ function ki(r) {
2157
+ if (!$e || !r || typeof r != "object")
2147
2158
  return !1;
2148
2159
  try {
2149
- Ne.call(r);
2160
+ $e.call(r);
2150
2161
  try {
2151
- ke.call(r);
2162
+ _e.call(r);
2152
2163
  } catch {
2153
2164
  return !0;
2154
2165
  }
@@ -2157,13 +2168,13 @@ function Ri(r) {
2157
2168
  }
2158
2169
  return !1;
2159
2170
  }
2160
- function Ci(r) {
2171
+ function Ti(r) {
2161
2172
  if (!ge || !r || typeof r != "object")
2162
2173
  return !1;
2163
2174
  try {
2164
2175
  ge.call(r, ge);
2165
2176
  try {
2166
- we.call(r, we);
2177
+ Se.call(r, Se);
2167
2178
  } catch {
2168
2179
  return !0;
2169
2180
  }
@@ -2172,7 +2183,7 @@ function Ci(r) {
2172
2183
  }
2173
2184
  return !1;
2174
2185
  }
2175
- function Fi(r) {
2186
+ function Bi(r) {
2176
2187
  if (!At || !r || typeof r != "object")
2177
2188
  return !1;
2178
2189
  try {
@@ -2181,13 +2192,13 @@ function Fi(r) {
2181
2192
  }
2182
2193
  return !1;
2183
2194
  }
2184
- function $i(r) {
2185
- if (!ke || !r || typeof r != "object")
2195
+ function Li(r) {
2196
+ if (!_e || !r || typeof r != "object")
2186
2197
  return !1;
2187
2198
  try {
2188
- ke.call(r);
2199
+ _e.call(r);
2189
2200
  try {
2190
- Ne.call(r);
2201
+ $e.call(r);
2191
2202
  } catch {
2192
2203
  return !0;
2193
2204
  }
@@ -2196,11 +2207,11 @@ function $i(r) {
2196
2207
  }
2197
2208
  return !1;
2198
2209
  }
2199
- function Ni(r) {
2200
- if (!we || !r || typeof r != "object")
2210
+ function Ui(r) {
2211
+ if (!Se || !r || typeof r != "object")
2201
2212
  return !1;
2202
2213
  try {
2203
- we.call(r, we);
2214
+ Se.call(r, Se);
2204
2215
  try {
2205
2216
  ge.call(r, ge);
2206
2217
  } catch {
@@ -2211,18 +2222,18 @@ function Ni(r) {
2211
2222
  }
2212
2223
  return !1;
2213
2224
  }
2214
- function ki(r) {
2225
+ function qi(r) {
2215
2226
  return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
2216
2227
  }
2217
- function pn(r, e) {
2228
+ function gn(r, e) {
2218
2229
  if (r.length > e.maxStringLength) {
2219
2230
  var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
2220
- return pn(jr.call(r, 0, e.maxStringLength), e) + n;
2231
+ return gn(zr.call(r, 0, e.maxStringLength), e) + n;
2221
2232
  }
2222
- var a = Q.call(Q.call(r, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ti);
2223
- return ln(a, "single", e);
2233
+ var a = Q.call(Q.call(r, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Mi);
2234
+ return yn(a, "single", e);
2224
2235
  }
2225
- function Ti(r) {
2236
+ function Mi(r) {
2226
2237
  var e = r.charCodeAt(0), t = {
2227
2238
  8: "b",
2228
2239
  9: "t",
@@ -2230,7 +2241,7 @@ function Ti(r) {
2230
2241
  12: "f",
2231
2242
  13: "r"
2232
2243
  }[e];
2233
- return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + vi.call(e.toString(16));
2244
+ return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + Ai.call(e.toString(16));
2234
2245
  }
2235
2246
  function ve(r) {
2236
2247
  return "Object(" + r + ")";
@@ -2238,28 +2249,28 @@ function ve(r) {
2238
2249
  function cr(r) {
2239
2250
  return r + " { ? }";
2240
2251
  }
2241
- function Nt(r, e, t, n) {
2242
- var a = n ? Cr(t, n) : M.call(t, ", ");
2252
+ function $t(r, e, t, n) {
2253
+ var a = n ? Cr(t, n) : j.call(t, ", ");
2243
2254
  return r + " (" + e + ") {" + a + "}";
2244
2255
  }
2245
- function _i(r) {
2256
+ function zi(r) {
2246
2257
  for (var e = 0; e < r.length; e++)
2247
- if (fn(r[e], `
2258
+ if (mn(r[e], `
2248
2259
  `) >= 0)
2249
2260
  return !1;
2250
2261
  return !0;
2251
2262
  }
2252
- function Bi(r, e) {
2263
+ function ji(r, e) {
2253
2264
  var t;
2254
2265
  if (r.indent === " ")
2255
2266
  t = " ";
2256
2267
  else if (typeof r.indent == "number" && r.indent > 0)
2257
- t = M.call(Array(r.indent + 1), " ");
2268
+ t = j.call(Array(r.indent + 1), " ");
2258
2269
  else
2259
2270
  return null;
2260
2271
  return {
2261
2272
  base: t,
2262
- prev: M.call(Array(e + 1), t)
2273
+ prev: j.call(Array(e + 1), t)
2263
2274
  };
2264
2275
  }
2265
2276
  function Cr(r, e) {
@@ -2267,11 +2278,11 @@ function Cr(r, e) {
2267
2278
  return "";
2268
2279
  var t = `
2269
2280
  ` + e.prev + e.base;
2270
- return t + M.call(r, "," + t) + `
2281
+ return t + j.call(r, "," + t) + `
2271
2282
  ` + e.prev;
2272
2283
  }
2273
2284
  function Ae(r, e) {
2274
- var t = Rr(r), n = [];
2285
+ var t = xr(r), n = [];
2275
2286
  if (t) {
2276
2287
  n.length = r.length;
2277
2288
  for (var a = 0; a < r.length; a++)
@@ -2284,20 +2295,20 @@ function Ae(r, e) {
2284
2295
  s["$" + i[l]] = i[l];
2285
2296
  }
2286
2297
  for (var c in r)
2287
- J(r, c) && (t && String(Number(c)) === c && c < r.length || pe && s["$" + c] instanceof Symbol || (sn.call(/[^\w$]/, c) ? n.push(e(c, r) + ": " + e(r[c], r)) : n.push(c + ": " + e(r[c], r))));
2298
+ J(r, c) && (t && String(Number(c)) === c && c < r.length || pe && s["$" + c] instanceof Symbol || (dn.call(/[^\w$]/, c) ? n.push(e(c, r) + ": " + e(r[c], r)) : n.push(c + ": " + e(r[c], r))));
2288
2299
  if (typeof lr == "function")
2289
2300
  for (var d = 0; d < i.length; d++)
2290
- un.call(r, i[d]) && n.push("[" + e(i[d]) + "]: " + e(r[i[d]], r));
2301
+ hn.call(r, i[d]) && n.push("[" + e(i[d]) + "]: " + e(r[i[d]], r));
2291
2302
  return n;
2292
2303
  }
2293
- var Mr = Dr, he = ii, qi = gi, Li = Mr("%TypeError%"), Ee = Mr("%WeakMap%", !0), Pe = Mr("%Map%", !0), Di = he("WeakMap.prototype.get", !0), Ui = he("WeakMap.prototype.set", !0), zi = he("WeakMap.prototype.has", !0), ji = he("Map.prototype.get", !0), Mi = he("Map.prototype.set", !0), Wi = he("Map.prototype.has", !0), Wr = function(r, e) {
2304
+ var jr = Ur, he = pi, Wi = Pi, Gi = jr("%TypeError%"), Oe = jr("%WeakMap%", !0), Pe = jr("%Map%", !0), Ki = he("WeakMap.prototype.get", !0), Hi = he("WeakMap.prototype.set", !0), Vi = he("WeakMap.prototype.has", !0), Ji = he("Map.prototype.get", !0), Qi = he("Map.prototype.set", !0), Xi = he("Map.prototype.has", !0), Wr = function(r, e) {
2294
2305
  for (var t = r, n; (n = t.next) !== null; t = n)
2295
2306
  if (n.key === e)
2296
2307
  return t.next = n.next, n.next = r.next, r.next = n, n;
2297
- }, Gi = function(r, e) {
2308
+ }, Yi = function(r, e) {
2298
2309
  var t = Wr(r, e);
2299
2310
  return t && t.value;
2300
- }, Ki = function(r, e, t) {
2311
+ }, Zi = function(r, e, t) {
2301
2312
  var n = Wr(r, e);
2302
2313
  n ? n.value = t : r.next = {
2303
2314
  // eslint-disable-line no-param-reassign
@@ -2305,48 +2316,48 @@ var Mr = Dr, he = ii, qi = gi, Li = Mr("%TypeError%"), Ee = Mr("%WeakMap%", !0),
2305
2316
  next: r.next,
2306
2317
  value: t
2307
2318
  };
2308
- }, Hi = function(r, e) {
2319
+ }, eo = function(r, e) {
2309
2320
  return !!Wr(r, e);
2310
- }, Vi = function() {
2321
+ }, ro = function() {
2311
2322
  var e, t, n, a = {
2312
2323
  assert: function(i) {
2313
2324
  if (!a.has(i))
2314
- throw new Li("Side channel does not contain " + qi(i));
2325
+ throw new Gi("Side channel does not contain " + Wi(i));
2315
2326
  },
2316
2327
  get: function(i) {
2317
- if (Ee && i && (typeof i == "object" || typeof i == "function")) {
2328
+ if (Oe && i && (typeof i == "object" || typeof i == "function")) {
2318
2329
  if (e)
2319
- return Di(e, i);
2330
+ return Ki(e, i);
2320
2331
  } else if (Pe) {
2321
2332
  if (t)
2322
- return ji(t, i);
2333
+ return Ji(t, i);
2323
2334
  } else if (n)
2324
- return Gi(n, i);
2335
+ return Yi(n, i);
2325
2336
  },
2326
2337
  has: function(i) {
2327
- if (Ee && i && (typeof i == "object" || typeof i == "function")) {
2338
+ if (Oe && i && (typeof i == "object" || typeof i == "function")) {
2328
2339
  if (e)
2329
- return zi(e, i);
2340
+ return Vi(e, i);
2330
2341
  } else if (Pe) {
2331
2342
  if (t)
2332
- return Wi(t, i);
2343
+ return Xi(t, i);
2333
2344
  } else if (n)
2334
- return Hi(n, i);
2345
+ return eo(n, i);
2335
2346
  return !1;
2336
2347
  },
2337
2348
  set: function(i, s) {
2338
- Ee && i && (typeof i == "object" || typeof i == "function") ? (e || (e = new Ee()), Ui(e, i, s)) : Pe ? (t || (t = new Pe()), Mi(t, i, s)) : (n || (n = { key: {}, next: null }), Ki(n, i, s));
2349
+ Oe && i && (typeof i == "object" || typeof i == "function") ? (e || (e = new Oe()), Hi(e, i, s)) : Pe ? (t || (t = new Pe()), Qi(t, i, s)) : (n || (n = { key: {}, next: null }), Zi(n, i, s));
2339
2350
  }
2340
2351
  };
2341
2352
  return a;
2342
- }, Ji = String.prototype.replace, Qi = /%20/g, fr = {
2353
+ }, to = String.prototype.replace, no = /%20/g, fr = {
2343
2354
  RFC1738: "RFC1738",
2344
2355
  RFC3986: "RFC3986"
2345
2356
  }, Gr = {
2346
2357
  default: fr.RFC3986,
2347
2358
  formatters: {
2348
2359
  RFC1738: function(r) {
2349
- return Ji.call(r, Qi, "+");
2360
+ return to.call(r, no, "+");
2350
2361
  },
2351
2362
  RFC3986: function(r) {
2352
2363
  return String(r);
@@ -2354,11 +2365,11 @@ var Mr = Dr, he = ii, qi = gi, Li = Mr("%TypeError%"), Ee = Mr("%WeakMap%", !0),
2354
2365
  },
2355
2366
  RFC1738: fr.RFC1738,
2356
2367
  RFC3986: fr.RFC3986
2357
- }, Xi = Gr, pr = Object.prototype.hasOwnProperty, te = Array.isArray, z = function() {
2368
+ }, ao = Gr, pr = Object.prototype.hasOwnProperty, te = Array.isArray, M = function() {
2358
2369
  for (var r = [], e = 0; e < 256; ++e)
2359
2370
  r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
2360
2371
  return r;
2361
- }(), Yi = function(e) {
2372
+ }(), io = function(e) {
2362
2373
  for (; e.length > 1; ) {
2363
2374
  var t = e.pop(), n = t.obj[t.prop];
2364
2375
  if (te(n)) {
@@ -2367,11 +2378,11 @@ var Mr = Dr, he = ii, qi = gi, Li = Mr("%TypeError%"), Ee = Mr("%WeakMap%", !0),
2367
2378
  t.obj[t.prop] = a;
2368
2379
  }
2369
2380
  }
2370
- }, dn = function(e, t) {
2381
+ }, Sn = function(e, t) {
2371
2382
  for (var n = t && t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = 0; a < e.length; ++a)
2372
2383
  typeof e[a] < "u" && (n[a] = e[a]);
2373
2384
  return n;
2374
- }, Zi = function r(e, t, n) {
2385
+ }, oo = function r(e, t, n) {
2375
2386
  if (!t)
2376
2387
  return e;
2377
2388
  if (typeof t != "object") {
@@ -2386,7 +2397,7 @@ var Mr = Dr, he = ii, qi = gi, Li = Mr("%TypeError%"), Ee = Mr("%WeakMap%", !0),
2386
2397
  if (!e || typeof e != "object")
2387
2398
  return [e].concat(t);
2388
2399
  var a = e;
2389
- return te(e) && !te(t) && (a = dn(e, n)), te(e) && te(t) ? (t.forEach(function(i, s) {
2400
+ return te(e) && !te(t) && (a = Sn(e, n)), te(e) && te(t) ? (t.forEach(function(i, s) {
2390
2401
  if (pr.call(e, s)) {
2391
2402
  var l = e[s];
2392
2403
  l && typeof l == "object" && i && typeof i == "object" ? e[s] = r(l, i, n) : e.push(i);
@@ -2396,11 +2407,11 @@ var Mr = Dr, he = ii, qi = gi, Li = Mr("%TypeError%"), Ee = Mr("%WeakMap%", !0),
2396
2407
  var l = t[s];
2397
2408
  return pr.call(i, s) ? i[s] = r(i[s], l, n) : i[s] = l, i;
2398
2409
  }, a);
2399
- }, eo = function(e, t) {
2410
+ }, so = function(e, t) {
2400
2411
  return Object.keys(t).reduce(function(n, a) {
2401
2412
  return n[a] = t[a], n;
2402
2413
  }, e);
2403
- }, ro = function(r, e, t) {
2414
+ }, uo = function(r, e, t) {
2404
2415
  var n = r.replace(/\+/g, " ");
2405
2416
  if (t === "iso-8859-1")
2406
2417
  return n.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -2409,7 +2420,7 @@ var Mr = Dr, he = ii, qi = gi, Li = Mr("%TypeError%"), Ee = Mr("%WeakMap%", !0),
2409
2420
  } catch {
2410
2421
  return n;
2411
2422
  }
2412
- }, to = function(e, t, n, a, i) {
2423
+ }, lo = function(e, t, n, a, i) {
2413
2424
  if (e.length === 0)
2414
2425
  return e;
2415
2426
  var s = e;
@@ -2419,57 +2430,57 @@ var Mr = Dr, he = ii, qi = gi, Li = Mr("%TypeError%"), Ee = Mr("%WeakMap%", !0),
2419
2430
  });
2420
2431
  for (var l = "", c = 0; c < s.length; ++c) {
2421
2432
  var d = s.charCodeAt(c);
2422
- if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || i === Xi.RFC1738 && (d === 40 || d === 41)) {
2433
+ if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || i === ao.RFC1738 && (d === 40 || d === 41)) {
2423
2434
  l += s.charAt(c);
2424
2435
  continue;
2425
2436
  }
2426
2437
  if (d < 128) {
2427
- l = l + z[d];
2438
+ l = l + M[d];
2428
2439
  continue;
2429
2440
  }
2430
2441
  if (d < 2048) {
2431
- l = l + (z[192 | d >> 6] + z[128 | d & 63]);
2442
+ l = l + (M[192 | d >> 6] + M[128 | d & 63]);
2432
2443
  continue;
2433
2444
  }
2434
2445
  if (d < 55296 || d >= 57344) {
2435
- l = l + (z[224 | d >> 12] + z[128 | d >> 6 & 63] + z[128 | d & 63]);
2446
+ l = l + (M[224 | d >> 12] + M[128 | d >> 6 & 63] + M[128 | d & 63]);
2436
2447
  continue;
2437
2448
  }
2438
- c += 1, d = 65536 + ((d & 1023) << 10 | s.charCodeAt(c) & 1023), l += z[240 | d >> 18] + z[128 | d >> 12 & 63] + z[128 | d >> 6 & 63] + z[128 | d & 63];
2449
+ c += 1, d = 65536 + ((d & 1023) << 10 | s.charCodeAt(c) & 1023), l += M[240 | d >> 18] + M[128 | d >> 12 & 63] + M[128 | d >> 6 & 63] + M[128 | d & 63];
2439
2450
  }
2440
2451
  return l;
2441
- }, no = function(e) {
2452
+ }, co = function(e) {
2442
2453
  for (var t = [{ obj: { o: e }, prop: "o" }], n = [], a = 0; a < t.length; ++a)
2443
2454
  for (var i = t[a], s = i.obj[i.prop], l = Object.keys(s), c = 0; c < l.length; ++c) {
2444
2455
  var d = l[c], u = s[d];
2445
2456
  typeof u == "object" && u !== null && n.indexOf(u) === -1 && (t.push({ obj: s, prop: d }), n.push(u));
2446
2457
  }
2447
- return Yi(t), e;
2448
- }, ao = function(e) {
2458
+ return io(t), e;
2459
+ }, fo = function(e) {
2449
2460
  return Object.prototype.toString.call(e) === "[object RegExp]";
2450
- }, io = function(e) {
2461
+ }, po = function(e) {
2451
2462
  return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
2452
- }, oo = function(e, t) {
2463
+ }, ho = function(e, t) {
2453
2464
  return [].concat(e, t);
2454
- }, so = function(e, t) {
2465
+ }, yo = function(e, t) {
2455
2466
  if (te(e)) {
2456
2467
  for (var n = [], a = 0; a < e.length; a += 1)
2457
2468
  n.push(t(e[a]));
2458
2469
  return n;
2459
2470
  }
2460
2471
  return t(e);
2461
- }, hn = {
2462
- arrayToObject: dn,
2463
- assign: eo,
2464
- combine: oo,
2465
- compact: no,
2466
- decode: ro,
2467
- encode: to,
2468
- isBuffer: io,
2469
- isRegExp: ao,
2470
- maybeMap: so,
2471
- merge: Zi
2472
- }, yn = Vi, Fr = hn, Se = Gr, uo = Object.prototype.hasOwnProperty, kt = {
2472
+ }, wn = {
2473
+ arrayToObject: Sn,
2474
+ assign: so,
2475
+ combine: ho,
2476
+ compact: co,
2477
+ decode: uo,
2478
+ encode: lo,
2479
+ isBuffer: po,
2480
+ isRegExp: fo,
2481
+ maybeMap: yo,
2482
+ merge: oo
2483
+ }, bn = ro, Fr = wn, we = Gr, vo = Object.prototype.hasOwnProperty, _t = {
2473
2484
  brackets: function(e) {
2474
2485
  return e + "[]";
2475
2486
  },
@@ -2480,9 +2491,9 @@ var Mr = Dr, he = ii, qi = gi, Li = Mr("%TypeError%"), Ee = Mr("%WeakMap%", !0),
2480
2491
  repeat: function(e) {
2481
2492
  return e;
2482
2493
  }
2483
- }, K = Array.isArray, lo = String.prototype.split, co = Array.prototype.push, vn = function(r, e) {
2484
- co.apply(r, K(e) ? e : [e]);
2485
- }, fo = Date.prototype.toISOString, Tt = Se.default, R = {
2494
+ }, H = Array.isArray, mo = String.prototype.split, go = Array.prototype.push, En = function(r, e) {
2495
+ go.apply(r, H(e) ? e : [e]);
2496
+ }, So = Date.prototype.toISOString, Dt = we.default, x = {
2486
2497
  addQueryPrefix: !1,
2487
2498
  allowDots: !1,
2488
2499
  charset: "utf-8",
@@ -2491,67 +2502,67 @@ var Mr = Dr, he = ii, qi = gi, Li = Mr("%TypeError%"), Ee = Mr("%WeakMap%", !0),
2491
2502
  encode: !0,
2492
2503
  encoder: Fr.encode,
2493
2504
  encodeValuesOnly: !1,
2494
- format: Tt,
2495
- formatter: Se.formatters[Tt],
2505
+ format: Dt,
2506
+ formatter: we.formatters[Dt],
2496
2507
  // deprecated
2497
2508
  indices: !1,
2498
2509
  serializeDate: function(e) {
2499
- return fo.call(e);
2510
+ return So.call(e);
2500
2511
  },
2501
2512
  skipNulls: !1,
2502
2513
  strictNullHandling: !1
2503
- }, po = function(e) {
2514
+ }, wo = function(e) {
2504
2515
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
2505
- }, dr = {}, ho = function r(e, t, n, a, i, s, l, c, d, u, o, f, p, y, v, m) {
2506
- for (var h = e, g = m, A = 0, w = !1; (g = g.get(dr)) !== void 0 && !w; ) {
2507
- var x = g.get(e);
2508
- if (A += 1, typeof x < "u") {
2509
- if (x === A)
2516
+ }, dr = {}, bo = function r(e, t, n, a, i, s, l, c, d, u, o, f, p, y, v, m) {
2517
+ for (var h = e, g = m, A = 0, S = !1; (g = g.get(dr)) !== void 0 && !S; ) {
2518
+ var R = g.get(e);
2519
+ if (A += 1, typeof R < "u") {
2520
+ if (R === A)
2510
2521
  throw new RangeError("Cyclic object value");
2511
- w = !0;
2522
+ S = !0;
2512
2523
  }
2513
2524
  typeof g.get(dr) > "u" && (A = 0);
2514
2525
  }
2515
- if (typeof c == "function" ? h = c(t, h) : h instanceof Date ? h = o(h) : n === "comma" && K(h) && (h = Fr.maybeMap(h, function(Le) {
2526
+ if (typeof c == "function" ? h = c(t, h) : h instanceof Date ? h = o(h) : n === "comma" && H(h) && (h = Fr.maybeMap(h, function(Le) {
2516
2527
  return Le instanceof Date ? o(Le) : Le;
2517
2528
  })), h === null) {
2518
2529
  if (i)
2519
- return l && !y ? l(t, R.encoder, v, "key", f) : t;
2530
+ return l && !y ? l(t, x.encoder, v, "key", f) : t;
2520
2531
  h = "";
2521
2532
  }
2522
- if (po(h) || Fr.isBuffer(h)) {
2533
+ if (wo(h) || Fr.isBuffer(h)) {
2523
2534
  if (l) {
2524
- var U = y ? t : l(t, R.encoder, v, "key", f);
2535
+ var q = y ? t : l(t, x.encoder, v, "key", f);
2525
2536
  if (n === "comma" && y) {
2526
- for (var N = lo.call(String(h), ","), V = "", D = 0; D < N.length; ++D)
2527
- V += (D === 0 ? "" : ",") + p(l(N[D], R.encoder, v, "value", f));
2528
- return [p(U) + (a && K(h) && N.length === 1 ? "[]" : "") + "=" + V];
2537
+ for (var $ = mo.call(String(h), ","), V = "", U = 0; U < $.length; ++U)
2538
+ V += (U === 0 ? "" : ",") + p(l($[U], x.encoder, v, "value", f));
2539
+ return [p(q) + (a && H(h) && $.length === 1 ? "[]" : "") + "=" + V];
2529
2540
  }
2530
- return [p(U) + "=" + p(l(h, R.encoder, v, "value", f))];
2541
+ return [p(q) + "=" + p(l(h, x.encoder, v, "value", f))];
2531
2542
  }
2532
2543
  return [p(t) + "=" + p(String(h))];
2533
2544
  }
2534
- var E = [];
2545
+ var O = [];
2535
2546
  if (typeof h > "u")
2536
- return E;
2537
- var k;
2538
- if (n === "comma" && K(h))
2539
- k = [{ value: h.length > 0 ? h.join(",") || null : void 0 }];
2540
- else if (K(c))
2541
- k = c;
2547
+ return O;
2548
+ var _;
2549
+ if (n === "comma" && H(h))
2550
+ _ = [{ value: h.length > 0 ? h.join(",") || null : void 0 }];
2551
+ else if (H(c))
2552
+ _ = c;
2542
2553
  else {
2543
- var T = Object.keys(h);
2544
- k = d ? T.sort(d) : T;
2554
+ var D = Object.keys(h);
2555
+ _ = d ? D.sort(d) : D;
2545
2556
  }
2546
- for (var q = a && K(h) && h.length === 1 ? t + "[]" : t, L = 0; L < k.length; ++L) {
2547
- var G = k[L], ye = typeof G == "object" && typeof G.value < "u" ? G.value : h[G];
2557
+ for (var B = a && H(h) && h.length === 1 ? t + "[]" : t, L = 0; L < _.length; ++L) {
2558
+ var K = _[L], ye = typeof K == "object" && typeof K.value < "u" ? K.value : h[K];
2548
2559
  if (!(s && ye === null)) {
2549
- var wn = K(h) ? typeof n == "function" ? n(q, G) : q : q + (u ? "." + G : "[" + G + "]");
2560
+ var In = H(h) ? typeof n == "function" ? n(B, K) : B : B + (u ? "." + K : "[" + K + "]");
2550
2561
  m.set(e, A);
2551
- var Kr = yn();
2552
- Kr.set(dr, m), vn(E, r(
2562
+ var Kr = bn();
2563
+ Kr.set(dr, m), En(O, r(
2553
2564
  ye,
2554
- wn,
2565
+ In,
2555
2566
  n,
2556
2567
  a,
2557
2568
  i,
@@ -2569,55 +2580,55 @@ var Mr = Dr, he = ii, qi = gi, Li = Mr("%TypeError%"), Ee = Mr("%WeakMap%", !0),
2569
2580
  ));
2570
2581
  }
2571
2582
  }
2572
- return E;
2573
- }, yo = function(e) {
2583
+ return O;
2584
+ }, Eo = function(e) {
2574
2585
  if (!e)
2575
- return R;
2586
+ return x;
2576
2587
  if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
2577
2588
  throw new TypeError("Encoder has to be a function.");
2578
- var t = e.charset || R.charset;
2589
+ var t = e.charset || x.charset;
2579
2590
  if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
2580
2591
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
2581
- var n = Se.default;
2592
+ var n = we.default;
2582
2593
  if (typeof e.format < "u") {
2583
- if (!uo.call(Se.formatters, e.format))
2594
+ if (!vo.call(we.formatters, e.format))
2584
2595
  throw new TypeError("Unknown format option provided.");
2585
2596
  n = e.format;
2586
2597
  }
2587
- var a = Se.formatters[n], i = R.filter;
2588
- return (typeof e.filter == "function" || K(e.filter)) && (i = e.filter), {
2589
- addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : R.addQueryPrefix,
2590
- allowDots: typeof e.allowDots > "u" ? R.allowDots : !!e.allowDots,
2598
+ var a = we.formatters[n], i = x.filter;
2599
+ return (typeof e.filter == "function" || H(e.filter)) && (i = e.filter), {
2600
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : x.addQueryPrefix,
2601
+ allowDots: typeof e.allowDots > "u" ? x.allowDots : !!e.allowDots,
2591
2602
  charset: t,
2592
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : R.charsetSentinel,
2593
- delimiter: typeof e.delimiter > "u" ? R.delimiter : e.delimiter,
2594
- encode: typeof e.encode == "boolean" ? e.encode : R.encode,
2595
- encoder: typeof e.encoder == "function" ? e.encoder : R.encoder,
2596
- encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : R.encodeValuesOnly,
2603
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : x.charsetSentinel,
2604
+ delimiter: typeof e.delimiter > "u" ? x.delimiter : e.delimiter,
2605
+ encode: typeof e.encode == "boolean" ? e.encode : x.encode,
2606
+ encoder: typeof e.encoder == "function" ? e.encoder : x.encoder,
2607
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : x.encodeValuesOnly,
2597
2608
  filter: i,
2598
2609
  format: n,
2599
2610
  formatter: a,
2600
- serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : R.serializeDate,
2601
- skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : R.skipNulls,
2611
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : x.serializeDate,
2612
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : x.skipNulls,
2602
2613
  sort: typeof e.sort == "function" ? e.sort : null,
2603
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : R.strictNullHandling
2614
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : x.strictNullHandling
2604
2615
  };
2605
- }, vo = function(r, e) {
2606
- var t = r, n = yo(e), a, i;
2607
- typeof n.filter == "function" ? (i = n.filter, t = i("", t)) : K(n.filter) && (i = n.filter, a = i);
2616
+ }, Ao = function(r, e) {
2617
+ var t = r, n = Eo(e), a, i;
2618
+ typeof n.filter == "function" ? (i = n.filter, t = i("", t)) : H(n.filter) && (i = n.filter, a = i);
2608
2619
  var s = [];
2609
2620
  if (typeof t != "object" || t === null)
2610
2621
  return "";
2611
2622
  var l;
2612
- e && e.arrayFormat in kt ? l = e.arrayFormat : e && "indices" in e ? l = e.indices ? "indices" : "repeat" : l = "indices";
2613
- var c = kt[l];
2623
+ e && e.arrayFormat in _t ? l = e.arrayFormat : e && "indices" in e ? l = e.indices ? "indices" : "repeat" : l = "indices";
2624
+ var c = _t[l];
2614
2625
  if (e && "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
2615
2626
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
2616
2627
  var d = c === "comma" && e && e.commaRoundTrip;
2617
2628
  a || (a = Object.keys(t)), n.sort && a.sort(n.sort);
2618
- for (var u = yn(), o = 0; o < a.length; ++o) {
2629
+ for (var u = bn(), o = 0; o < a.length; ++o) {
2619
2630
  var f = a[o];
2620
- n.skipNulls && t[f] === null || vn(s, ho(
2631
+ n.skipNulls && t[f] === null || En(s, bo(
2621
2632
  t[f],
2622
2633
  f,
2623
2634
  c,
@@ -2638,7 +2649,7 @@ var Mr = Dr, he = ii, qi = gi, Li = Mr("%TypeError%"), Ee = Mr("%WeakMap%", !0),
2638
2649
  }
2639
2650
  var p = s.join(n.delimiter), y = n.addQueryPrefix === !0 ? "?" : "";
2640
2651
  return n.charsetSentinel && (n.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), p.length > 0 ? y + p : "";
2641
- }, de = hn, $r = Object.prototype.hasOwnProperty, mo = Array.isArray, P = {
2652
+ }, de = wn, Nr = Object.prototype.hasOwnProperty, Oo = Array.isArray, P = {
2642
2653
  allowDots: !1,
2643
2654
  allowPrototypes: !1,
2644
2655
  allowSparse: !1,
@@ -2655,30 +2666,30 @@ var Mr = Dr, he = ii, qi = gi, Li = Mr("%TypeError%"), Ee = Mr("%WeakMap%", !0),
2655
2666
  parseArrays: !0,
2656
2667
  plainObjects: !1,
2657
2668
  strictNullHandling: !1
2658
- }, go = function(r) {
2669
+ }, Po = function(r) {
2659
2670
  return r.replace(/&#(\d+);/g, function(e, t) {
2660
2671
  return String.fromCharCode(parseInt(t, 10));
2661
2672
  });
2662
- }, mn = function(r, e) {
2673
+ }, An = function(r, e) {
2663
2674
  return r && typeof r == "string" && e.comma && r.indexOf(",") > -1 ? r.split(",") : r;
2664
- }, wo = "utf8=%26%2310003%3B", So = "utf8=%E2%9C%93", bo = function(e, t) {
2675
+ }, Io = "utf8=%26%2310003%3B", Ro = "utf8=%E2%9C%93", xo = function(e, t) {
2665
2676
  var n = {}, a = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, i = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, s = a.split(t.delimiter, i), l = -1, c, d = t.charset;
2666
2677
  if (t.charsetSentinel)
2667
2678
  for (c = 0; c < s.length; ++c)
2668
- s[c].indexOf("utf8=") === 0 && (s[c] === So ? d = "utf-8" : s[c] === wo && (d = "iso-8859-1"), l = c, c = s.length);
2679
+ s[c].indexOf("utf8=") === 0 && (s[c] === Ro ? d = "utf-8" : s[c] === Io && (d = "iso-8859-1"), l = c, c = s.length);
2669
2680
  for (c = 0; c < s.length; ++c)
2670
2681
  if (c !== l) {
2671
2682
  var u = s[c], o = u.indexOf("]="), f = o === -1 ? u.indexOf("=") : o + 1, p, y;
2672
2683
  f === -1 ? (p = t.decoder(u, P.decoder, d, "key"), y = t.strictNullHandling ? null : "") : (p = t.decoder(u.slice(0, f), P.decoder, d, "key"), y = de.maybeMap(
2673
- mn(u.slice(f + 1), t),
2684
+ An(u.slice(f + 1), t),
2674
2685
  function(v) {
2675
2686
  return t.decoder(v, P.decoder, d, "value");
2676
2687
  }
2677
- )), y && t.interpretNumericEntities && d === "iso-8859-1" && (y = go(y)), u.indexOf("[]=") > -1 && (y = mo(y) ? [y] : y), $r.call(n, p) ? n[p] = de.combine(n[p], y) : n[p] = y;
2688
+ )), y && t.interpretNumericEntities && d === "iso-8859-1" && (y = Po(y)), u.indexOf("[]=") > -1 && (y = Oo(y) ? [y] : y), Nr.call(n, p) ? n[p] = de.combine(n[p], y) : n[p] = y;
2678
2689
  }
2679
2690
  return n;
2680
- }, Oo = function(r, e, t, n) {
2681
- for (var a = n ? e : mn(e, t), i = r.length - 1; i >= 0; --i) {
2691
+ }, Co = function(r, e, t, n) {
2692
+ for (var a = n ? e : An(e, t), i = r.length - 1; i >= 0; --i) {
2682
2693
  var s, l = r[i];
2683
2694
  if (l === "[]" && t.parseArrays)
2684
2695
  s = [].concat(a);
@@ -2690,22 +2701,22 @@ var Mr = Dr, he = ii, qi = gi, Li = Mr("%TypeError%"), Ee = Mr("%WeakMap%", !0),
2690
2701
  a = s;
2691
2702
  }
2692
2703
  return a;
2693
- }, Ao = function(e, t, n, a) {
2704
+ }, Fo = function(e, t, n, a) {
2694
2705
  if (e) {
2695
2706
  var i = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, s = /(\[[^[\]]*])/, l = /(\[[^[\]]*])/g, c = n.depth > 0 && s.exec(i), d = c ? i.slice(0, c.index) : i, u = [];
2696
2707
  if (d) {
2697
- if (!n.plainObjects && $r.call(Object.prototype, d) && !n.allowPrototypes)
2708
+ if (!n.plainObjects && Nr.call(Object.prototype, d) && !n.allowPrototypes)
2698
2709
  return;
2699
2710
  u.push(d);
2700
2711
  }
2701
2712
  for (var o = 0; n.depth > 0 && (c = l.exec(i)) !== null && o < n.depth; ) {
2702
- if (o += 1, !n.plainObjects && $r.call(Object.prototype, c[1].slice(1, -1)) && !n.allowPrototypes)
2713
+ if (o += 1, !n.plainObjects && Nr.call(Object.prototype, c[1].slice(1, -1)) && !n.allowPrototypes)
2703
2714
  return;
2704
2715
  u.push(c[1]);
2705
2716
  }
2706
- return c && u.push("[" + i.slice(c.index) + "]"), Oo(u, t, n, a);
2717
+ return c && u.push("[" + i.slice(c.index) + "]"), Co(u, t, n, a);
2707
2718
  }
2708
- }, Eo = function(e) {
2719
+ }, No = function(e) {
2709
2720
  if (!e)
2710
2721
  return P;
2711
2722
  if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function")
@@ -2732,41 +2743,41 @@ var Mr = Dr, he = ii, qi = gi, Li = Mr("%TypeError%"), Ee = Mr("%WeakMap%", !0),
2732
2743
  plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : P.plainObjects,
2733
2744
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : P.strictNullHandling
2734
2745
  };
2735
- }, Po = function(r, e) {
2736
- var t = Eo(e);
2746
+ }, $o = function(r, e) {
2747
+ var t = No(e);
2737
2748
  if (r === "" || r === null || typeof r > "u")
2738
2749
  return t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2739
- for (var n = typeof r == "string" ? bo(r, t) : r, a = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = Object.keys(n), s = 0; s < i.length; ++s) {
2740
- var l = i[s], c = Ao(l, n[l], t, typeof r == "string");
2750
+ for (var n = typeof r == "string" ? xo(r, t) : r, a = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = Object.keys(n), s = 0; s < i.length; ++s) {
2751
+ var l = i[s], c = Fo(l, n[l], t, typeof r == "string");
2741
2752
  a = de.merge(a, c, t);
2742
2753
  }
2743
2754
  return t.allowSparse === !0 ? a : de.compact(a);
2744
- }, Io = vo, xo = Po, Ro = Gr, Co = {
2745
- formats: Ro,
2746
- parse: xo,
2747
- stringify: Io
2755
+ }, _o = Ao, Do = $o, ko = Gr, To = {
2756
+ formats: ko,
2757
+ parse: Do,
2758
+ stringify: _o
2748
2759
  };
2749
- class Fo {
2760
+ class Bo {
2750
2761
  constructor(e) {
2751
2762
  this.client = e, this.list = () => this.client.get("/v1/packages"), this.client = e;
2752
2763
  }
2753
2764
  }
2754
- class $o {
2765
+ class Lo {
2755
2766
  constructor(e) {
2756
2767
  this.client = e, this.get = (t) => this.client.get(`/v1/insurance/${t}/balance`), this.client = e;
2757
2768
  }
2758
2769
  }
2759
- class No {
2770
+ class Uo {
2760
2771
  constructor(e) {
2761
2772
  this.client = e, this.get = (t) => this.client.get(`/v1/labels/${t}`), this.list = (t = {}) => this.client.get("/v1/labels", { params: t }), this.createByRateId = (t, n) => this.client.post(`/v1/labels/rates/${t}`, n), this.void = (t) => this.client.put(`/v1/labels/${t}/void`), this.client = e;
2762
2773
  }
2763
2774
  }
2764
- class ko {
2775
+ class qo {
2765
2776
  constructor(e) {
2766
2777
  this.client = e, this.list = () => this.client.get("/v-beta/order_sources"), this.get = (t) => this.client.get(`/v-beta/order_sources/${t}`), this.refresh = (t) => this.client.put(`/v-beta/order_sources/${t}/refresh`), this.client = e;
2767
2778
  }
2768
2779
  }
2769
- class To {
2780
+ class Mo {
2770
2781
  constructor(e) {
2771
2782
  this.client = e, this.calculateByShipmentId = (t, n) => this.client.post("/v1/rates", {
2772
2783
  rateOptions: n,
@@ -2774,7 +2785,7 @@ class To {
2774
2785
  }), this.client = e;
2775
2786
  }
2776
2787
  }
2777
- class _o {
2788
+ class zo {
2778
2789
  constructor(e) {
2779
2790
  this.client = e, this.list = (t = {}) => this.client.post("/v-beta/shipments/list", t), this.get = (t) => this.client.get(`/v-beta/shipments/${t}`), this.create = (t, n) => this.client.post(
2780
2791
  `/v-beta/shipments/sales_order/${t}`,
@@ -2782,20 +2793,20 @@ class _o {
2782
2793
  ), this.update = (t, n) => this.client.put(`/v-beta/shipments/${t}`, n), this.client = e;
2783
2794
  }
2784
2795
  }
2785
- class Bo {
2796
+ class jo {
2786
2797
  constructor(e) {
2787
2798
  this.client = e, this.list = (t = {}) => this.client.get("/v-beta/sales_orders", { params: t }), this.get = (t) => this.client.get(`/v-beta/sales_orders/${t}`), this.notifyShipped = (t, n) => this.client.post(`/v-beta/sales_orders/${t}/notify`, n), this.client = e;
2788
2799
  }
2789
2800
  }
2790
- class qo {
2801
+ class Wo {
2791
2802
  constructor(e) {
2792
2803
  this.client = e, this.list = () => this.client.get("/v1/warehouses"), this.create = (t) => this.client.post("/v1/warehouses", t), this.update = (t, n) => this.client.put(`/v1/warehouses/${t}`, n), this.delete = (t) => this.client.delete(`/v1/warehouses/${t}`), this.client = e;
2793
2804
  }
2794
2805
  }
2795
- const _t = rn({
2806
+ const kt = un({
2796
2807
  name: "shipengine-api",
2797
2808
  serializers: {
2798
- ...qr,
2809
+ ...Br,
2799
2810
  req: (r) => ({
2800
2811
  headers: r.headers,
2801
2812
  method: r.method,
@@ -2811,11 +2822,11 @@ const _t = rn({
2811
2822
  },
2812
2823
  streams: [
2813
2824
  {
2814
- stream: new tn()
2825
+ stream: new ln()
2815
2826
  }
2816
2827
  ]
2817
- }), Lo = (r) => !!r.errors && Yt(r.errors);
2818
- class Bt {
2828
+ }), Go = (r) => !!r.errors && an(r.errors);
2829
+ class Tt {
2819
2830
  constructor(e, { baseURL: t, headers: n, getToken: a }) {
2820
2831
  const i = mr.create({
2821
2832
  baseURL: t,
@@ -2824,7 +2835,7 @@ class Bt {
2824
2835
  Authorization: `Bearer ${e}`,
2825
2836
  "Content-Type": "application/json"
2826
2837
  },
2827
- paramsSerializer: (s) => Co.stringify(me.decamelizeKeys(s), { arrayFormat: "brackets" }),
2838
+ paramsSerializer: (s) => To.stringify(me.decamelizeKeys(s), { arrayFormat: "brackets" }),
2828
2839
  transformRequest: [(s) => me.decamelizeKeys(s), (s) => JSON.stringify(s)],
2829
2840
  transformResponse: [
2830
2841
  (s) => {
@@ -2835,7 +2846,7 @@ class Bt {
2835
2846
  ]
2836
2847
  });
2837
2848
  i.interceptors.response.use(
2838
- (s) => (_t.info(
2849
+ (s) => (kt.info(
2839
2850
  { req: s.config, res: s },
2840
2851
  "%s %s: %s %s",
2841
2852
  s.config.method?.toUpperCase(),
@@ -2844,7 +2855,7 @@ class Bt {
2844
2855
  s.statusText
2845
2856
  ), s),
2846
2857
  async (s) => {
2847
- if (_t.error(
2858
+ if (kt.error(
2848
2859
  { err: s, req: s.config, res: s.response },
2849
2860
  "%s %s: %s %s - %s",
2850
2861
  s.config?.method?.toUpperCase(),
@@ -2856,9 +2867,9 @@ class Bt {
2856
2867
  const l = await a(), c = s.config;
2857
2868
  return c && (c.headers ||= {}, c.headers.Authorization = `Bearer ${l}`), mr(c);
2858
2869
  }
2859
- return s.response?.data ? Lo(s.response.data) ? Promise.reject(
2860
- s.response.data.errors.map((l) => H.fromObject(l))
2861
- ) : Yt(s.response.data) ? Promise.reject(s.response.data.map((l) => H.fromObject(l))) : Zt(s.response.data) ? Promise.reject([H.fromObject(s.response.data)]) : Promise.reject([new H(s.response.data)]) : Promise.reject([new H(s.message)]);
2870
+ return s.response?.data ? Go(s.response.data) ? Promise.reject(
2871
+ s.response.data.errors.map((l) => W.fromObject(l))
2872
+ ) : an(s.response.data) ? Promise.reject(s.response.data.map((l) => W.fromObject(l))) : on(s.response.data) ? Promise.reject([W.fromObject(s.response.data)]) : Promise.reject([new W(s.response.data)]) : Promise.reject([new W(s.message)]);
2862
2873
  }
2863
2874
  ), this.client = i;
2864
2875
  }
@@ -2866,59 +2877,59 @@ class Bt {
2866
2877
  this.client.defaults.headers.common.Authorization = `Bearer ${e}`;
2867
2878
  }
2868
2879
  get accountSettings() {
2869
- return new In(this.client);
2880
+ return new _n(this.client);
2870
2881
  }
2871
2882
  get addresses() {
2872
- return new xn(this.client);
2883
+ return new Dn(this.client);
2873
2884
  }
2874
2885
  get carriers() {
2875
- return new Ca(this.client);
2886
+ return new Ta(this.client);
2876
2887
  }
2877
2888
  get customPackages() {
2878
- return new Fo(this.client);
2889
+ return new Bo(this.client);
2879
2890
  }
2880
2891
  get insurance() {
2881
- return new $o(this.client);
2892
+ return new Lo(this.client);
2882
2893
  }
2883
2894
  get labels() {
2884
- return new No(this.client);
2895
+ return new Uo(this.client);
2885
2896
  }
2886
2897
  get orderSources() {
2887
- return new ko(this.client);
2898
+ return new qo(this.client);
2888
2899
  }
2889
2900
  get rates() {
2890
- return new To(this.client);
2901
+ return new Mo(this.client);
2891
2902
  }
2892
2903
  get salesOrderShipments() {
2893
- return new _o(this.client);
2904
+ return new zo(this.client);
2894
2905
  }
2895
2906
  get salesOrders() {
2896
- return new Bo(this.client);
2907
+ return new jo(this.client);
2897
2908
  }
2898
2909
  get warehouses() {
2899
- return new qo(this.client);
2910
+ return new Wo(this.client);
2900
2911
  }
2901
2912
  }
2902
- const gn = An(void 0), Go = ({ baseURL: r, children: e, headers: t, getToken: n }) => {
2903
- const [a, i] = En(() => {
2913
+ const On = Fn(void 0), Zo = ({ baseURL: r, children: e, headers: t, getToken: n }) => {
2914
+ const [a, i] = Nn(() => {
2904
2915
  const l = n();
2905
2916
  if (typeof l == "string")
2906
- return new Bt(l, {
2917
+ return new Tt(l, {
2907
2918
  baseURL: r,
2908
2919
  getToken: n,
2909
2920
  headers: t ?? {}
2910
2921
  });
2911
2922
  l.then(
2912
2923
  (c) => i(
2913
- new Bt(c, {
2924
+ new Tt(c, {
2914
2925
  baseURL: r,
2915
2926
  getToken: n,
2916
2927
  headers: t ?? {}
2917
2928
  })
2918
2929
  )
2919
2930
  );
2920
- }), s = new Sn();
2921
- return a ? /* @__PURE__ */ De(gn.Provider, { value: { client: a }, children: /* @__PURE__ */ De(bn, { client: s, children: e }) }) : /* @__PURE__ */ De(
2931
+ }), s = new Rn();
2932
+ return a ? /* @__PURE__ */ Ue(On.Provider, { value: { client: a }, children: /* @__PURE__ */ Ue(xn, { client: s, children: e }) }) : /* @__PURE__ */ Ue(
2922
2933
  "div",
2923
2934
  {
2924
2935
  style: {
@@ -2931,17 +2942,21 @@ const gn = An(void 0), Go = ({ baseURL: r, children: e, headers: t, getToken: n
2931
2942
  children: "Loading..."
2932
2943
  }
2933
2944
  );
2934
- }, O = () => {
2935
- const r = Pn(gn);
2945
+ }, E = () => {
2946
+ const r = $n(On);
2936
2947
  if (!r)
2937
2948
  throw new Error("useShipEngine must be called within a ShipEngineProvider");
2938
2949
  return r;
2939
- }, Do = (r) => new Promise((e) => {
2950
+ }, Ko = (r) => new Promise((e) => {
2940
2951
  setTimeout(() => e(!0), r);
2941
- }), b = (r) => r.forEach(console.log), Ko = rn({
2952
+ }), b = (r) => r.forEach(console.log), Pn = [];
2953
+ process.env.NODE_ENV === "production" && Pn.push({
2954
+ stream: new ln()
2955
+ });
2956
+ const es = un({
2942
2957
  name: "shipengine",
2943
2958
  serializers: {
2944
- ...qr,
2959
+ ...Br,
2945
2960
  req: (r) => ({
2946
2961
  headers: r.headers,
2947
2962
  method: r.method,
@@ -2955,84 +2970,80 @@ const gn = An(void 0), Go = ({ baseURL: r, children: e, headers: t, getToken: n
2955
2970
  url: r.config.url
2956
2971
  })
2957
2972
  },
2958
- streams: [
2959
- {
2960
- stream: new tn()
2961
- }
2962
- ]
2963
- }), Uo = (r, e = 10, t = 1e3) => Promise.resolve().then(r).catch(function n(a) {
2973
+ streams: Pn
2974
+ }), Ho = (r, e = 10, t = 1e3) => Promise.resolve().then(r).catch(function n(a) {
2964
2975
  if (e -= 1, e > 0)
2965
- return Do(t).then(r).catch(n);
2976
+ return Ko(t).then(r).catch(n);
2966
2977
  throw a;
2967
- }), Ho = (r) => {
2968
- const { client: e } = O();
2978
+ }), rs = (r) => {
2979
+ const { client: e } = E();
2969
2980
  return I({
2970
2981
  mutationFn: async (t) => (await e.carriers.addFunds(r, t)).data,
2971
2982
  mutationKey: ["useAddFunds"],
2972
2983
  onError: b
2973
2984
  });
2974
- }, Vo = () => {
2975
- const { client: r } = O();
2985
+ }, ts = () => {
2986
+ const { client: r } = E();
2976
2987
  return I({
2977
2988
  mutationFn: async ({ rateOptions: e, shipmentId: t }) => (await r.rates.calculateByShipmentId(t, e)).data,
2978
2989
  mutationKey: ["useCalculateRates"],
2979
2990
  onError: b
2980
2991
  });
2981
- }, Jo = () => {
2982
- const { client: r } = O();
2992
+ }, ns = () => {
2993
+ const { client: r } = E();
2983
2994
  return I({
2984
2995
  mutationFn: async (e) => (await r.carriers.connect(e)).data,
2985
2996
  mutationKey: ["useConnectCarrier"],
2986
2997
  onError: b
2987
2998
  });
2988
- }, Qo = () => {
2989
- const { client: r } = O();
2999
+ }, as = () => {
3000
+ const { client: r } = E();
2990
3001
  return I({
2991
3002
  mutationFn: async ({ rateId: e, ...t }) => (await r.labels.createByRateId(e, t)).data,
2992
3003
  mutationKey: ["useCreateLabel"],
2993
3004
  onError: b
2994
3005
  });
2995
- }, Xo = () => {
2996
- const { client: r } = O();
3006
+ }, is = () => {
3007
+ const { client: r } = E();
2997
3008
  return I({
2998
3009
  mutationFn: async ({ salesOrderId: e, ...t }) => (await r.salesOrderShipments.create(e, t)).data,
2999
3010
  mutationKey: ["useCreateSalesOrderShipment"],
3000
3011
  onError: b
3001
3012
  });
3002
- }, Yo = () => {
3003
- const { client: r } = O();
3013
+ }, os = () => {
3014
+ const { client: r } = E();
3004
3015
  return I({
3005
3016
  mutationFn: async (e) => (await r.warehouses.create(e)).data,
3006
3017
  mutationKey: ["useCreateWarehouse"],
3007
3018
  onError: b
3008
3019
  });
3009
- }, Zo = () => {
3010
- const { client: r } = O();
3020
+ }, ss = () => {
3021
+ const { client: r } = E();
3011
3022
  return I({
3012
3023
  mutationFn: async ({ warehouseId: e }) => (await r.warehouses.delete(e)).data,
3013
3024
  mutationKey: ["useDeleteWarehouse"],
3014
3025
  onError: b
3015
3026
  });
3016
- }, es = () => {
3017
- const { client: r } = O();
3018
- return $({
3027
+ }, us = () => {
3028
+ const { client: r } = E();
3029
+ return N({
3019
3030
  onError: b,
3020
3031
  queryFn: () => r.accountSettings.get(),
3021
3032
  queryKey: ["getAccountSettings"],
3022
3033
  select: (e) => e.data
3023
3034
  });
3024
- }, rs = (r) => {
3025
- const { client: e } = O();
3026
- return $({
3035
+ }, ls = (r) => {
3036
+ const { client: e } = E();
3037
+ return N({
3027
3038
  enabled: r !== void 0,
3028
3039
  onError: b,
3029
3040
  queryFn: () => r ? e.carriers.getAutoFunding(r) : Promise.reject(new Error("carrierId is required.")),
3030
3041
  queryKey: ["useGetAutoFundingConfiguration", r],
3031
3042
  select: (t) => t.data
3032
3043
  });
3033
- }, ts = (r) => {
3034
- const { client: e } = O();
3035
- return $({
3044
+ }, cs = (r) => {
3045
+ const { client: e } = E();
3046
+ return N({
3036
3047
  enabled: !!r,
3037
3048
  onError: b,
3038
3049
  queryFn: () => r ? e.carriers.get(r) : Promise.reject(new Error("carrierId is require")),
@@ -3041,52 +3052,52 @@ const gn = An(void 0), Go = ({ baseURL: r, children: e, headers: t, getToken: n
3041
3052
  // Fresh for 5 minutes
3042
3053
  staleTime: 5 * 60 * 1e3
3043
3054
  });
3044
- }, ns = (r) => {
3045
- const { client: e } = O();
3046
- return $({
3055
+ }, fs = (r) => {
3056
+ const { client: e } = E();
3057
+ return N({
3047
3058
  enabled: r !== void 0,
3048
3059
  onError: b,
3049
3060
  queryFn: () => r ? e.insurance.get(r) : Promise.reject(new Error("insuranceProvider is required")),
3050
3061
  queryKey: ["useGetInsuranceAccount", r],
3051
3062
  select: (t) => t.data
3052
3063
  });
3053
- }, as = (r) => {
3054
- const { client: e } = O();
3055
- return $({
3064
+ }, ps = (r) => {
3065
+ const { client: e } = E();
3066
+ return N({
3056
3067
  enabled: r !== void 0,
3057
3068
  onError: b,
3058
3069
  queryFn: () => r ? e.labels.get(r) : Promise.reject(new Error("labelId is require")),
3059
3070
  queryKey: ["useGetLabel", r],
3060
3071
  select: (t) => t.data
3061
3072
  });
3062
- }, is = (r) => {
3063
- const { client: e } = O();
3064
- return $({
3073
+ }, ds = (r) => {
3074
+ const { client: e } = E();
3075
+ return N({
3065
3076
  enabled: r !== void 0,
3066
3077
  onError: b,
3067
3078
  queryFn: () => r ? e.salesOrders.get(r) : Promise.reject(new Error("salesOrderId is required")),
3068
3079
  queryKey: ["useGetSalesOrder", r],
3069
3080
  select: (t) => t.data
3070
3081
  });
3071
- }, os = (r) => {
3072
- const { client: e } = O();
3073
- return $({
3082
+ }, hs = (r) => {
3083
+ const { client: e } = E();
3084
+ return N({
3074
3085
  enabled: r !== void 0,
3075
3086
  onError: b,
3076
3087
  queryFn: () => r ? e.salesOrderShipments.get(r) : Promise.reject(new Error("shipmentId is required")),
3077
3088
  queryKey: ["useGetSalesOrderShipment", r],
3078
3089
  select: (t) => t.data
3079
3090
  });
3080
- }, ss = (r) => {
3081
- const { client: e } = O();
3082
- return $({
3091
+ }, ys = (r) => {
3092
+ const { client: e } = E();
3093
+ return N({
3083
3094
  enabled: r !== void 0,
3084
3095
  onError: b,
3085
3096
  queryFn: () => r ? e.salesOrderShipments.get(r) : Promise.reject(new Error("shipmentId is required")),
3086
3097
  queryKey: ["useGetShipment", r],
3087
3098
  select: (t) => t.data
3088
3099
  });
3089
- }, us = () => ({
3100
+ }, vs = () => ({
3090
3101
  links: {
3091
3102
  transactionHistoryReport: "http://link.to.entire.dataset.as.csv"
3092
3103
  },
@@ -3115,98 +3126,98 @@ const gn = An(void 0), Go = ({ baseURL: r, children: e, headers: t, getToken: n
3115
3126
  transactionType: "purchase"
3116
3127
  }
3117
3128
  ]
3118
- }), ls = () => {
3119
- const { client: r } = O();
3120
- return $({
3129
+ }), ms = () => {
3130
+ const { client: r } = E();
3131
+ return N({
3121
3132
  onError: b,
3122
3133
  queryFn: () => r.carriers.list(),
3123
3134
  queryKey: ["useListCarriers"],
3124
3135
  select: (e) => e.data.carriers
3125
3136
  });
3126
- }, cs = () => {
3127
- const { client: r } = O();
3128
- return $({
3137
+ }, gs = () => {
3138
+ const { client: r } = E();
3139
+ return N({
3129
3140
  onError: b,
3130
3141
  queryFn: () => r.customPackages.list(),
3131
3142
  queryKey: ["useListCustomPackageTypes"],
3132
3143
  select: (e) => e.data.packages
3133
3144
  });
3134
- }, fs = (r) => {
3135
- const { client: e } = O();
3136
- return $({
3145
+ }, Ss = (r) => {
3146
+ const { client: e } = E();
3147
+ return N({
3137
3148
  enabled: r && Object.values(r).some((t) => t !== void 0),
3138
3149
  onError: b,
3139
3150
  queryFn: () => e.labels.list(r),
3140
3151
  queryKey: ["useListLabels", r],
3141
3152
  select: (t) => t.data.labels
3142
3153
  });
3143
- }, ps = () => {
3144
- const { client: r } = O();
3145
- return $({
3154
+ }, ws = () => {
3155
+ const { client: r } = E();
3156
+ return N({
3146
3157
  onError: b,
3147
3158
  queryFn: () => r.orderSources.list(),
3148
3159
  queryKey: ["useListOrderSources"],
3149
3160
  select: (e) => e.data.orderSources
3150
3161
  });
3151
- }, ds = (r) => {
3152
- const { client: e } = O();
3153
- return $({
3162
+ }, bs = (r) => {
3163
+ const { client: e } = E();
3164
+ return N({
3154
3165
  enabled: r && Object.values(r).some((t) => t !== void 0),
3155
3166
  onError: b,
3156
3167
  queryFn: () => e.salesOrderShipments.list(r),
3157
3168
  queryKey: ["useListSalesOrderShipments", r],
3158
3169
  select: (t) => t.data.shipments
3159
3170
  });
3160
- }, hs = (r = {}) => {
3161
- const { client: e } = O();
3162
- return $({
3171
+ }, Es = (r = {}) => {
3172
+ const { client: e } = E();
3173
+ return N({
3163
3174
  enabled: r && Object.values(r).some((t) => t !== void 0),
3164
3175
  onError: b,
3165
3176
  queryFn: () => e.salesOrders.list(r),
3166
3177
  queryKey: ["useListSalesOrders", r],
3167
3178
  select: (t) => t.data.salesOrders
3168
3179
  });
3169
- }, ys = () => {
3170
- const { client: r } = O();
3171
- return $({
3180
+ }, As = () => {
3181
+ const { client: r } = E();
3182
+ return N({
3172
3183
  onError: b,
3173
3184
  queryFn: () => r.warehouses.list(),
3174
3185
  queryKey: ["useListWarehouses"],
3175
3186
  select: (e) => e.data.warehouses
3176
3187
  });
3177
- }, vs = () => {
3178
- const { client: r } = O();
3188
+ }, Os = () => {
3189
+ const { client: r } = E();
3179
3190
  return I({
3180
3191
  mutationFn: async ({ salesOrderId: e, ...t }) => (await r.salesOrders.notifyShipped(e, t)).data,
3181
3192
  mutationKey: ["useNotifySalesOrder"],
3182
3193
  onError: b
3183
3194
  });
3184
- }, ms = () => {
3185
- const { client: r } = O();
3195
+ }, Ps = () => {
3196
+ const { client: r } = E();
3186
3197
  return I({
3187
3198
  mutationFn: async ({ address: e, text: t }) => (await r.addresses.parse(t, e)).data,
3188
3199
  mutationKey: ["useParseAddress"],
3189
3200
  onError: b
3190
3201
  });
3191
- }, zo = () => {
3192
- const { client: r } = O();
3202
+ }, Vo = () => {
3203
+ const { client: r } = E();
3193
3204
  return I({
3194
3205
  mutationFn: async (e) => (await r.orderSources.refresh(e)).data,
3195
3206
  mutationKey: ["useRefreshOrderSourceAsync"]
3196
3207
  });
3197
- }, gs = () => {
3198
- const { client: r } = O(), { mutateAsync: e } = zo();
3208
+ }, Is = () => {
3209
+ const { client: r } = E(), { mutateAsync: e } = Vo();
3199
3210
  return I({
3200
- mutationFn: async (t) => (await e(t), await Uo(async () => {
3211
+ mutationFn: async (t) => (await e(t), await Ho(async () => {
3201
3212
  const { data: a } = await r.orderSources.get(t);
3202
3213
  if (["preparing_update", "updating"].includes(a.refreshInfo.status))
3203
- throw new H("Order source is still refreshing");
3214
+ throw new W("Order source is still refreshing");
3204
3215
  return a;
3205
3216
  }, 20)),
3206
3217
  mutationKey: ["useRefreshOrderSource"],
3207
3218
  onError: b
3208
3219
  });
3209
- }, ws = () => I({
3220
+ }, Rs = () => I({
3210
3221
  mutationFn: async (r) => (await Promise.resolve({
3211
3222
  data: { defaultLabelLayout: "4x6", dimension: "inch", weight: "ounce" },
3212
3223
  errors: [],
@@ -3215,8 +3226,8 @@ const gn = An(void 0), Go = ({ baseURL: r, children: e, headers: t, getToken: n
3215
3226
  })).data,
3216
3227
  mutationKey: ["useUpdateAccountSettings"],
3217
3228
  onError: b
3218
- }), Ss = (r) => {
3219
- const { client: e } = O(), t = On();
3229
+ }), xs = (r) => {
3230
+ const { client: e } = E(), t = Cn();
3220
3231
  return I({
3221
3232
  mutationFn: async (n) => (await e.carriers.updateAutoFunding(r, n)).data,
3222
3233
  mutationKey: ["useUpdateAutoFunding"],
@@ -3225,7 +3236,7 @@ const gn = An(void 0), Go = ({ baseURL: r, children: e, headers: t, getToken: n
3225
3236
  t.invalidateQueries(["useGetAutoFunding", r], { exact: !0 });
3226
3237
  }
3227
3238
  });
3228
- }, bs = () => I({
3239
+ }, Cs = () => I({
3229
3240
  mutationFn: async (r) => (await Promise.resolve({
3230
3241
  data: {},
3231
3242
  errors: [],
@@ -3234,29 +3245,29 @@ const gn = An(void 0), Go = ({ baseURL: r, children: e, headers: t, getToken: n
3234
3245
  })).data,
3235
3246
  mutationKey: ["useUpdateBilling"],
3236
3247
  onError: b
3237
- }), Os = () => {
3238
- const { client: r } = O();
3248
+ }), Fs = () => {
3249
+ const { client: r } = E();
3239
3250
  return I({
3240
3251
  mutationFn: async ({ shipmentId: e, ...t }) => (await r.salesOrderShipments.update(e, t)).data,
3241
3252
  mutationKey: ["useUpdateSalesOrderShipment"],
3242
3253
  onError: b
3243
3254
  });
3244
- }, As = () => {
3245
- const { client: r } = O();
3255
+ }, Ns = () => {
3256
+ const { client: r } = E();
3246
3257
  return I({
3247
3258
  mutationFn: async ({ warehouseId: e, ...t }) => (await r.warehouses.update(e, t)).data,
3248
3259
  mutationKey: ["useUpdateWarehouse"],
3249
3260
  onError: b
3250
3261
  });
3251
- }, Es = () => {
3252
- const { client: r } = O();
3262
+ }, $s = () => {
3263
+ const { client: r } = E();
3253
3264
  return I({
3254
3265
  mutationFn: async (e) => (await r.addresses.validate(e)).data,
3255
3266
  mutationKey: ["useValidateAddresses"],
3256
3267
  onError: b
3257
3268
  });
3258
- }, Ps = () => {
3259
- const { client: r } = O();
3269
+ }, _s = () => {
3270
+ const { client: r } = E();
3260
3271
  return I({
3261
3272
  mutationFn: async (e) => (await r.labels.void(e)).data,
3262
3273
  mutationKey: ["useVoidLabel"],
@@ -3264,45 +3275,67 @@ const gn = An(void 0), Go = ({ baseURL: r, children: e, headers: t, getToken: n
3264
3275
  });
3265
3276
  };
3266
3277
  export {
3267
- Go as ShipEngine,
3268
- gn as ShipEngineContext,
3269
- Do as delay,
3270
- Ko as logger,
3278
+ _n as AccountSettingsAPI,
3279
+ Dn as AddressesAPI,
3280
+ Ta as CarriersAPI,
3281
+ W as CodedError,
3282
+ Ut as ConfirmationType,
3283
+ Bt as CreditCardVendor,
3284
+ Lt as Currency,
3285
+ Bo as CustomPackagesAPI,
3286
+ qt as CustomsContentsType,
3287
+ Mt as CustomsNonDeliveryType,
3288
+ Lo as InsuranceAPI,
3289
+ zt as InsuranceProviderType,
3290
+ Uo as LabelsAPI,
3291
+ qo as OrderSourcesAPI,
3292
+ Mo as RatesAPI,
3293
+ Yo as SE,
3294
+ zo as SalesOrderShipmentsAPI,
3295
+ jo as SalesOrdersAPI,
3296
+ Zo as ShipEngine,
3297
+ Tt as ShipEngineAPI,
3298
+ On as ShipEngineContext,
3299
+ Wo as WarehousesAPI,
3300
+ Ko as delay,
3301
+ on as isCodedError,
3302
+ an as isCodedErrors,
3303
+ es as logger,
3271
3304
  b as onError,
3272
- Uo as retryUntil,
3273
- Ho as useAddFunds,
3274
- Vo as useCalculateRates,
3275
- Jo as useConnectCarrier,
3276
- Qo as useCreateLabel,
3277
- Xo as useCreateSalesOrderShipment,
3278
- Yo as useCreateWarehouse,
3279
- Zo as useDeleteWarehouse,
3280
- es as useGetAccountSettings,
3281
- rs as useGetAutoFundingConfiguration,
3282
- ts as useGetCarrierById,
3283
- ns as useGetInsuranceAccount,
3284
- as as useGetLabel,
3285
- is as useGetSalesOrder,
3286
- os as useGetSalesOrderShipment,
3287
- ss as useGetShipment,
3288
- us as useGetWalletTransactionHistory,
3289
- ls as useListCarriers,
3290
- cs as useListCustomPackageTypes,
3291
- fs as useListLabels,
3292
- ps as useListOrderSources,
3293
- ds as useListSalesOrderShipments,
3294
- hs as useListSalesOrders,
3295
- ys as useListWarehouses,
3296
- vs as useNotifySalesOrderShipped,
3297
- ms as useParseAddress,
3298
- gs as useRefreshOrderSource,
3299
- zo as useRefreshOrderSourceAsync,
3300
- O as useShipEngine,
3301
- ws as useUpdateAccountSettings,
3302
- Ss as useUpdateAutoFunding,
3303
- bs as useUpdateBilling,
3304
- Os as useUpdateSalesOrderShipment,
3305
- As as useUpdateWarehouse,
3306
- Es as useValidateAddresses,
3307
- Ps as useVoidLabel
3305
+ Ho as retryUntil,
3306
+ rs as useAddFunds,
3307
+ ts as useCalculateRates,
3308
+ ns as useConnectCarrier,
3309
+ as as useCreateLabel,
3310
+ is as useCreateSalesOrderShipment,
3311
+ os as useCreateWarehouse,
3312
+ ss as useDeleteWarehouse,
3313
+ us as useGetAccountSettings,
3314
+ ls as useGetAutoFundingConfiguration,
3315
+ cs as useGetCarrierById,
3316
+ fs as useGetInsuranceAccount,
3317
+ ps as useGetLabel,
3318
+ ds as useGetSalesOrder,
3319
+ hs as useGetSalesOrderShipment,
3320
+ ys as useGetShipment,
3321
+ vs as useGetWalletTransactionHistory,
3322
+ ms as useListCarriers,
3323
+ gs as useListCustomPackageTypes,
3324
+ Ss as useListLabels,
3325
+ ws as useListOrderSources,
3326
+ bs as useListSalesOrderShipments,
3327
+ Es as useListSalesOrders,
3328
+ As as useListWarehouses,
3329
+ Os as useNotifySalesOrderShipped,
3330
+ Ps as useParseAddress,
3331
+ Is as useRefreshOrderSource,
3332
+ Vo as useRefreshOrderSourceAsync,
3333
+ E as useShipEngine,
3334
+ Rs as useUpdateAccountSettings,
3335
+ xs as useUpdateAutoFunding,
3336
+ Cs as useUpdateBilling,
3337
+ Fs as useUpdateSalesOrderShipment,
3338
+ Ns as useUpdateWarehouse,
3339
+ $s as useValidateAddresses,
3340
+ _s as useVoidLabel
3308
3341
  };