universal-parcel-scraper 0.55.0-main.708 → 0.56.0-main.720

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.
@@ -83,28 +83,28 @@ var m = class extends t {
83
83
  constructor(e, t, n) {
84
84
  super("transport", e, `${e} is unreachable`, { cause: t }), this.request = n, this.name = "UpstreamNetworkError";
85
85
  }
86
- }, te = 8;
87
- function ne(e) {
86
+ }, h = 8;
87
+ function g(e) {
88
88
  let n = /* @__PURE__ */ new Set(), r = e;
89
- for (let e = 0; e < te && r instanceof Error && !n.has(r); e += 1) {
89
+ for (let e = 0; e < h && r instanceof Error && !n.has(r); e += 1) {
90
90
  if (n.add(r), r instanceof t) return r.kind;
91
91
  r = r.cause;
92
92
  }
93
93
  return null;
94
94
  }
95
- function h(e) {
95
+ function _(e) {
96
96
  let n = /* @__PURE__ */ new Set(), r = e;
97
- for (let e = 0; e < te && r instanceof Error && !n.has(r); e += 1) {
97
+ for (let e = 0; e < h && r instanceof Error && !n.has(r); e += 1) {
98
98
  if (n.add(r), r instanceof t && r.retryAfterMs !== void 0) return r.retryAfterMs;
99
99
  r = r.cause;
100
100
  }
101
101
  }
102
- function re(e) {
102
+ function te(e) {
103
103
  return e instanceof Error && /^(?:Error|[A-Z][A-Za-z0-9_.-]{0,80}(?:Error|Exception))$/.test(e.name.trim()) ? e.name.trim() : e instanceof Error ? "Error" : typeof e;
104
104
  }
105
105
  //#endregion
106
106
  //#region carriers/the-courier-guy/number.ts
107
- function ie(e) {
107
+ function ne(e) {
108
108
  let t = e.replace(/\s/g, "").toUpperCase(), n = /^(DD|LD)-?([A-Z0-9]{6})$/.exec(t);
109
109
  if (n) return `${n[1]}-${n[2]}`;
110
110
  if (!/^[A-Z0-9]{5,40}$/.test(t)) throw new u("The Courier Guy", "The Courier Guy requires a shipment tracking reference");
@@ -112,19 +112,19 @@ function ie(e) {
112
112
  }
113
113
  //#endregion
114
114
  //#region carriers/postlogistics/number.ts
115
- function ae(e) {
115
+ function re(e) {
116
116
  let t = e.trim();
117
117
  return /^\d{11}$/.test(t) ? `${t.slice(0, 8)}-${t.slice(8)}` : t;
118
118
  }
119
119
  //#endregion
120
120
  //#region core/detection/numericChecksums.ts
121
- function oe(e) {
121
+ function ie(e) {
122
122
  return e.length === 10 && /^\d{10}$/.test(e) && Number(e.slice(0, 9)) % 7 === Number(e[9]);
123
123
  }
124
- function se(e) {
124
+ function v(e) {
125
125
  return /^\d{2,15}$/.test(e) && Number(e.slice(0, -1)) % 7 === Number(e.at(-1));
126
126
  }
127
- function ce(e) {
127
+ function ae(e) {
128
128
  if (e.length !== 9 || !/^\d{9}$/.test(e)) return !1;
129
129
  let t = Number(e[8]);
130
130
  if (Number(e.slice(0, 8)) % 7 === t) return !0;
@@ -140,23 +140,23 @@ function ce(e) {
140
140
  ].reduce((t, n, r) => t + Number(e[r]) * n, 0) % 11;
141
141
  return (n === 11 ? 5 : n === 10 ? 0 : n) === t;
142
142
  }
143
- function le(e) {
143
+ function oe(e) {
144
144
  let t = 11 - [...e].reverse().reduce((e, t, n) => e + Number(t) * (2 + n % 6), 0) % 11;
145
145
  return t >= 10 ? 0 : t;
146
146
  }
147
- function ue(e) {
148
- return /^\d{13}$/.test(e) && le(e.slice(0, 12)) === Number(e[12]);
147
+ function se(e) {
148
+ return /^\d{13}$/.test(e) && oe(e.slice(0, 12)) === Number(e[12]);
149
149
  }
150
- function de(e) {
150
+ function ce(e) {
151
151
  return /^\d{2,}$/.test(e) ? (10 - [...e.slice(0, -1)].reverse().reduce((e, t, n) => e + Number(t) * (n % 2 ? 1 : 3), 0) % 10) % 10 === Number(e.at(-1)) : !1;
152
152
  }
153
- function fe(e) {
153
+ function le(e) {
154
154
  return /^\d{2,}$/.test(e) ? [...e].reverse().reduce((e, t, n) => {
155
155
  let r = Number(t) * (n % 2 ? 2 : 1);
156
156
  return e + (r > 9 ? r - 9 : r);
157
157
  }, 0) % 10 == 0 : !1;
158
158
  }
159
- function pe(e) {
159
+ function ue(e) {
160
160
  if (!/^\d{12}$/.test(e)) return !1;
161
161
  let t = [
162
162
  3,
@@ -165,36 +165,36 @@ function pe(e) {
165
165
  ];
166
166
  return [...e.slice(0, 11)].reduce((e, n, r) => e + Number(n) * t[r % 3], 0) % 11 % 10 === Number(e[11]);
167
167
  }
168
- function me(e) {
169
- return e.length === 20 && /^\d{20}$/.test(e) && de(e);
168
+ function de(e) {
169
+ return e.length === 20 && /^\d{20}$/.test(e) && ce(e);
170
170
  }
171
- function he(e) {
172
- return e.length === 20 && /^00\d{18}$/.test(e) && de(e);
171
+ function fe(e) {
172
+ return e.length === 20 && /^00\d{18}$/.test(e) && ce(e);
173
173
  }
174
174
  //#endregion
175
175
  //#region core/detection/mondialRelay.ts
176
- function ge(e) {
176
+ function pe(e) {
177
177
  if (!/^\d{26}$/.test(e)) return !1;
178
- let t = (e) => String(le(e)), n = Number(e.slice(10, 12)), r = Number(e.slice(12, 14));
178
+ let t = (e) => String(oe(e)), n = Number(e.slice(10, 12)), r = Number(e.slice(12, 14));
179
179
  return n > 0 && n <= r && t(e.slice(0, 14)) === e[14] && t(e.slice(15, 25)) === e[25];
180
180
  }
181
181
  //#endregion
182
182
  //#region core/detection/normalize.ts
183
- function g(e) {
183
+ function y(e) {
184
184
  let t = e.toUpperCase().replace(/[\s.-]/g, "");
185
185
  return /^\(00\)\d{18}$/.test(t) ? `00${t.slice(4)}` : t;
186
186
  }
187
- function _e(e) {
188
- return /^99990\d{8}$/.test(g(e));
187
+ function me(e) {
188
+ return /^99990\d{8}$/.test(y(e));
189
189
  }
190
- function ve(e, t) {
191
- if (t === "postlogistics") return ae(e);
192
- let n = g(e);
193
- return _e(n) ? `${n.slice(0, 3)}.${n.slice(3, 5)}.${n.slice(5)}` : /^\d{18}$/.test(n) ? `${n.slice(0, 2)}.${n.slice(2, 4)}.${n.slice(4, 10)}.${n.slice(10)}` : n;
190
+ function he(e, t) {
191
+ if (t === "postlogistics") return re(e);
192
+ let n = y(e);
193
+ return me(n) ? `${n.slice(0, 3)}.${n.slice(3, 5)}.${n.slice(5)}` : /^\d{18}$/.test(n) ? `${n.slice(0, 2)}.${n.slice(2, 4)}.${n.slice(4, 10)}.${n.slice(10)}` : n;
194
194
  }
195
195
  //#endregion
196
196
  //#region generated/catalog.ts
197
- var ye = {
197
+ var ge = {
198
198
  "swiss-post": {
199
199
  displayName: "Swiss Post",
200
200
  color: "#ffcc00",
@@ -3922,7 +3922,7 @@ var ye = {
3922
3922
  trackingSearchUrl: "https://www.dpd.com/de/en/empfangen/sendungsverfolgung-und-live-tracking/",
3923
3923
  linkRules: [{
3924
3924
  domains: ["tracking.dpd.de"],
3925
- path: "^/status/[a-z]{2}_[A-Z]{2}/parcel/(\\d{14})/?$"
3925
+ path: "^/status/[a-z]{2}_[A-Z]{2}/parcel/(\\d{14}[0-9A-Z]?)/?$"
3926
3926
  }, {
3927
3927
  domains: ["my.dpd.de"],
3928
3928
  params: ["parcelno"]
@@ -3956,14 +3956,23 @@ var ye = {
3956
3956
  pathPattern: "^/(?:EN/)?parcelDetails$",
3957
3957
  params: ["p1"]
3958
3958
  }],
3959
- detectionRules: [{
3960
- pattern: "^\\d{13}[A-Z]$",
3961
- confidence: "high"
3962
- }, {
3963
- pattern: "^13\\d{12}$",
3964
- confidence: "low",
3965
- preferred: !0
3966
- }]
3959
+ detectionRules: [
3960
+ {
3961
+ pattern: "^\\d{13}[A-Z]$",
3962
+ confidence: "high"
3963
+ },
3964
+ {
3965
+ pattern: "^13\\d{12}$",
3966
+ confidence: "low",
3967
+ preferred: !0
3968
+ },
3969
+ {
3970
+ pattern: "^13\\d{12}[0-9A-Z]$",
3971
+ confidence: "low",
3972
+ checksum: "dpd",
3973
+ preferred: !0
3974
+ }
3975
+ ]
3967
3976
  },
3968
3977
  "dpd-uk": {
3969
3978
  displayName: "DPD UK",
@@ -4030,6 +4039,29 @@ var ye = {
4030
4039
  confidence: "high"
4031
4040
  }]
4032
4041
  },
4042
+ emile: {
4043
+ displayName: "Emile",
4044
+ color: "#e42920",
4045
+ aliases: ["Emile Express"],
4046
+ countries: ["CA"],
4047
+ selectable: !0,
4048
+ timezone: "UTC",
4049
+ tracking: {
4050
+ mode: "link-only",
4051
+ adapter: null
4052
+ },
4053
+ canaryUrl: "https://www.emileps.com/",
4054
+ trackingUrlTemplate: "https://www.emileps.com/tracking?tracking={trackingNumber}",
4055
+ trackingSearchUrl: "https://www.emileps.com/tracking",
4056
+ linkRules: [{
4057
+ domains: ["emileps.com"],
4058
+ params: ["tracking"]
4059
+ }],
4060
+ detectionRules: [{
4061
+ pattern: "^EM\\d{12}CA$",
4062
+ confidence: "low"
4063
+ }]
4064
+ },
4033
4065
  "evri-uk": {
4034
4066
  displayName: "Evri UK",
4035
4067
  color: "#00014d",
@@ -4322,7 +4354,7 @@ var ye = {
4322
4354
  confidence: "low"
4323
4355
  }]
4324
4356
  }
4325
- }, be = /* @__PURE__ */ "swiss-post.swiss-post-cargo.quickpac.planzer.aliexpress.sunyou.hermes.spring-gds.postlogistics.dachser.dhl.dhl-ecommerce.ups.amazon-logistics.amazon-shipping.fedex.gls-ch.dpd.dpd-fr.mondial-relay.relais-colis.la-poste.chronopost.gls-fr.colis-prive.geodis.colisweb.c-chez-vous.heppner.ciblex.paack.asendia.shipup.india-post.hermes-de.gls-de.delivengo.intl-post.unknown.royal-mail.parcelforce.evri.inpost.an-post.bpost.austrian-post.postnord.posti.correos-express.seur.mrw.nacex.ctt.ctt-express.poste-italiane.brt.ecoscooting.tipsa.ukrposhta.usps.canada-post.purolator.canpar.ontrac.speedx.uniuni.landmark-global.old-dominion.spee-dee.gofo.estafeta.correios-br.correos-chile.yunexpress.four-px.blue-dart.delhivery.nz-post.singapore-post.japan-post.sf-express.sto.yunda.yto.zto.jd-logistics.yamato.korea-post.thailand-post.dtdc.australia-post.hongkong-post.pos-malaysia.ninja-van.china-post.packeta.poczta-polska.bring-posten.aramex.tnt.correos-spain.yanwen.the-courier-guy.j-and-t.ems.cne.dhl-ecommerce-es.dhl-ecommerce-nl.dhl-ecommerce-pl.dhl-ecommerce-uk.dhl-express.dpd-de.dpd-pl.dpd-uk.ekart.evri-uk.intelcom.j-and-t-cargo.lbc-express.nova-poshta.omgo.sagawa.speedpak.spx-ph.xpressbees".split("."), xe = {
4357
+ }, _e = /* @__PURE__ */ "swiss-post.swiss-post-cargo.quickpac.planzer.aliexpress.sunyou.hermes.spring-gds.postlogistics.dachser.dhl.dhl-ecommerce.ups.amazon-logistics.amazon-shipping.fedex.gls-ch.dpd.dpd-fr.mondial-relay.relais-colis.la-poste.chronopost.gls-fr.colis-prive.geodis.colisweb.c-chez-vous.heppner.ciblex.paack.asendia.shipup.india-post.hermes-de.gls-de.delivengo.intl-post.unknown.royal-mail.parcelforce.evri.inpost.an-post.bpost.austrian-post.postnord.posti.correos-express.seur.mrw.nacex.ctt.ctt-express.poste-italiane.brt.ecoscooting.tipsa.ukrposhta.usps.canada-post.purolator.canpar.ontrac.speedx.uniuni.landmark-global.old-dominion.spee-dee.gofo.estafeta.correios-br.correos-chile.yunexpress.four-px.blue-dart.delhivery.nz-post.singapore-post.japan-post.sf-express.sto.yunda.yto.zto.jd-logistics.yamato.korea-post.thailand-post.dtdc.australia-post.hongkong-post.pos-malaysia.ninja-van.china-post.packeta.poczta-polska.bring-posten.aramex.tnt.correos-spain.yanwen.the-courier-guy.j-and-t.ems.cne.dhl-ecommerce-es.dhl-ecommerce-nl.dhl-ecommerce-pl.dhl-ecommerce-uk.dhl-express.dpd-de.dpd-pl.dpd-uk.ekart.emile.evri-uk.intelcom.j-and-t-cargo.lbc-express.nova-poshta.omgo.sagawa.speedpak.spx-ph.xpressbees".split("."), ve = {
4326
4358
  "swiss-post": ["swiss-post-1", "swiss-post-2"],
4327
4359
  "swiss-post-cargo": ["swiss-post-cargo-sscc", "swiss-post-cargo-pl-reference"],
4328
4360
  quickpac: ["quickpac-1"],
@@ -4647,7 +4679,11 @@ var ye = {
4647
4679
  "dhl-ecommerce-uk": ["dhl-ecommerce-uk-2", "dhl-ecommerce-uk-1"],
4648
4680
  "dhl-express": ["dhl-express-waybill"],
4649
4681
  "dpd-de": ["dpd-de-1", "dpd-de-2"],
4650
- "dpd-pl": ["dpd-pl-1", "dpd-pl-2"],
4682
+ "dpd-pl": [
4683
+ "dpd-pl-1",
4684
+ "dpd-pl-2",
4685
+ "dpd-pl-3"
4686
+ ],
4651
4687
  "dpd-uk": [
4652
4688
  "dpd-uk-3",
4653
4689
  "dpd-uk-4",
@@ -4655,6 +4691,7 @@ var ye = {
4655
4691
  "dpd-uk-2"
4656
4692
  ],
4657
4693
  ekart: ["ekart-ecommerce"],
4694
+ emile: ["emile-1"],
4658
4695
  "evri-uk": [
4659
4696
  "evri-uk-1",
4660
4697
  "evri-uk-2",
@@ -4677,7 +4714,7 @@ var ye = {
4677
4714
  "spx-ph-domestic"
4678
4715
  ],
4679
4716
  xpressbees: ["xpressbees-awb"]
4680
- }, Se = [
4717
+ }, ye = [
4681
4718
  "pending",
4682
4719
  "registered",
4683
4720
  "accepted",
@@ -4689,16 +4726,16 @@ var ye = {
4689
4726
  "ready_for_pickup",
4690
4727
  "returned",
4691
4728
  "exception"
4692
- ], Ce = ye["amazon-logistics"].detectionRules[0].pattern;
4693
- function we(e) {
4694
- return new RegExp(Ce).test(e.replace(/[\s.-]/g, "").toUpperCase());
4729
+ ], be = ge["amazon-logistics"].detectionRules[0].pattern;
4730
+ function xe(e) {
4731
+ return new RegExp(be).test(e.replace(/[\s.-]/g, "").toUpperCase());
4695
4732
  }
4696
4733
  //#endregion
4697
4734
  //#region core/catalog/amazon.ts
4698
- function Te(e, t = "") {
4699
- return e !== "amazon-shipping" && (e === "amazon-logistics" || we(t));
4735
+ function Se(e, t = "") {
4736
+ return e !== "amazon-shipping" && (e === "amazon-logistics" || xe(t));
4700
4737
  }
4701
- function Ee(e) {
4738
+ function Ce(e) {
4702
4739
  let t = e.replace(/[\s.-]/g, "").toUpperCase();
4703
4740
  return t.startsWith("TBC") ? "ca" : t.startsWith("TBM") ? "com.mx" : {
4704
4741
  FR: "fr",
@@ -4717,10 +4754,10 @@ function Ee(e) {
4717
4754
  TR: "com.tr"
4718
4755
  }[t.slice(0, 2)] ?? "com";
4719
4756
  }
4720
- function De(e) {
4721
- return `https://www.amazon.${Ee(e)}/gp/your-account/order-history`;
4757
+ function we(e) {
4758
+ return `https://www.amazon.${Ce(e)}/gp/your-account/order-history`;
4722
4759
  }
4723
- function Oe(e) {
4760
+ function Te(e) {
4724
4761
  return `https://track.amazon.${{
4725
4762
  IT: "it",
4726
4763
  ES: "es",
@@ -4729,30 +4766,30 @@ function Oe(e) {
4729
4766
  TB: "com"
4730
4767
  }[e.replace(/[\s.-]/g, "").toUpperCase().slice(0, 2)] ?? "fr"}`;
4731
4768
  }
4732
- function ke(e) {
4733
- return `${Oe(e)}/tracking/${encodeURIComponent(e.replace(/[\s.-]/g, "").toUpperCase())}`;
4769
+ function Ee(e) {
4770
+ return `${Te(e)}/tracking/${encodeURIComponent(e.replace(/[\s.-]/g, "").toUpperCase())}`;
4734
4771
  }
4735
4772
  //#endregion
4736
4773
  //#region core/catalog/definitions.ts
4737
- var _ = ye;
4738
- function v(e) {
4739
- let t = _[e];
4774
+ var b = ge;
4775
+ function x(e) {
4776
+ let t = b[e];
4740
4777
  if (!t) throw RangeError(`Unknown carrier ${e}`);
4741
4778
  return t;
4742
4779
  }
4743
- function Ae(e) {
4744
- return v(e).timezone ?? "UTC";
4780
+ function De(e) {
4781
+ return x(e).timezone ?? "UTC";
4745
4782
  }
4746
- function je(e) {
4747
- return v(e).tracking.adapter;
4783
+ function Oe(e) {
4784
+ return x(e).tracking.adapter;
4748
4785
  }
4749
- function Me(e, t) {
4750
- return (v(e).tracking.requirements ?? []).filter((e) => !e.whenTrackingNumber || RegExp(`^(?:${e.whenTrackingNumber})$`).test(t));
4786
+ function ke(e, t) {
4787
+ return (x(e).tracking.requirements ?? []).filter((e) => !e.whenTrackingNumber || RegExp(`^(?:${e.whenTrackingNumber})$`).test(t));
4751
4788
  }
4752
- function Ne(e, t) {
4753
- return Me(e, t).filter((e) => e.optional !== !0);
4789
+ function Ae(e, t) {
4790
+ return ke(e, t).filter((e) => e.optional !== !0);
4754
4791
  }
4755
- var Pe = new Set(Object.entries(_).filter(([, e]) => e.tracking.mode === "automatic").map(([e]) => e)), Fe = new Map(Object.entries(_).filter(([e]) => Pe.has(e)).map(([e, t]) => [e, t.tracking.upstreamName ?? t.displayName])), Ie = Object.entries(_).flatMap(([e, t]) => t.linkRules.map((t) => ({
4792
+ var je = new Set(Object.entries(b).filter(([, e]) => e.tracking.mode === "automatic").map(([e]) => e)), Me = new Map(Object.entries(b).filter(([e]) => je.has(e)).map(([e, t]) => [e, t.tracking.upstreamName ?? t.displayName])), Ne = Object.entries(b).flatMap(([e, t]) => t.linkRules.map((t) => ({
4756
4793
  carrier: e,
4757
4794
  domains: [...t.domains],
4758
4795
  params: t.params ? [...t.params] : void 0,
@@ -4763,29 +4800,29 @@ var Pe = new Set(Object.entries(_).filter(([, e]) => e.tracking.mode === "automa
4763
4800
  detectFromNumber: t.detectFromNumber,
4764
4801
  keepsCapabilityUrl: t.keepsCapabilityUrl
4765
4802
  })));
4766
- function Le(e) {
4767
- return Ie.filter((t) => t.carrier === e);
4803
+ function Pe(e) {
4804
+ return Ne.filter((t) => t.carrier === e);
4768
4805
  }
4769
- function Re(e, t) {
4806
+ function Fe(e, t) {
4770
4807
  return e === t || e.endsWith(`.${t}`);
4771
4808
  }
4772
4809
  //#endregion
4773
4810
  //#region core/catalog/index.ts
4774
- function ze(e, t) {
4775
- let n = g(t);
4776
- if (e === "mondial-relay" && ge(n)) return n.slice(0, 12);
4811
+ function Ie(e, t) {
4812
+ let n = y(t);
4813
+ if (e === "mondial-relay" && pe(n)) return n.slice(0, 12);
4777
4814
  if (e === "c-chez-vous") {
4778
4815
  let e = /^([A-Z0-9]{11})(\d{5})$/.exec(n);
4779
4816
  if (e) return `${e[1]}--${e[2]}`;
4780
4817
  }
4781
- return e === "the-courier-guy" && /^(DD|LD)([A-Z0-9]{6})$/.exec(n) ? ie(n) : e === "postlogistics" ? ae(t) : t;
4818
+ return e === "the-courier-guy" && /^(DD|LD)([A-Z0-9]{6})$/.exec(n) ? ne(n) : e === "postlogistics" ? re(t) : t;
4782
4819
  }
4783
- function Be(e, t) {
4784
- if (e === "amazon-logistics") return De;
4785
- if (e === "amazon-shipping") return ke;
4786
- if (t) return (n) => t.replace("{trackingNumber}", encodeURIComponent(ze(e, n)));
4820
+ function Le(e, t) {
4821
+ if (e === "amazon-logistics") return we;
4822
+ if (e === "amazon-shipping") return Ee;
4823
+ if (t) return (n) => t.replace("{trackingNumber}", encodeURIComponent(Ie(e, n)));
4787
4824
  }
4788
- function Ve(e, t) {
4825
+ function Re(e, t) {
4789
4826
  return {
4790
4827
  id: e,
4791
4828
  name: t.displayName,
@@ -4793,7 +4830,7 @@ function Ve(e, t) {
4793
4830
  countries: t.countries ?? [],
4794
4831
  trackingSiteName: t.trackingSiteName,
4795
4832
  color: t.color,
4796
- trackingUrl: Be(e, t.trackingUrlTemplate),
4833
+ trackingUrl: Le(e, t.trackingUrlTemplate),
4797
4834
  trackingSearchUrl: t.trackingSearchUrl,
4798
4835
  capabilities: {
4799
4836
  tracking: {
@@ -4806,27 +4843,27 @@ function Ve(e, t) {
4806
4843
  }
4807
4844
  };
4808
4845
  }
4809
- var He = Object.fromEntries(Object.entries(_).map(([e, t]) => [e, Ve(e, t)]));
4810
- function Ue(e, t) {
4811
- let n = He[e] ?? He.unknown, r = t ? _[n.id].displayNames?.[t] : void 0;
4846
+ var ze = Object.fromEntries(Object.entries(b).map(([e, t]) => [e, Re(e, t)]));
4847
+ function Be(e, t) {
4848
+ let n = ze[e] ?? ze.unknown, r = t ? b[n.id].displayNames?.[t] : void 0;
4812
4849
  return r ? {
4813
4850
  ...n,
4814
4851
  name: r
4815
4852
  } : n;
4816
4853
  }
4817
- var We = Object.values(He).filter((e) => e.capabilities.selectable);
4818
- function Ge(e, t) {
4819
- let n = g(t);
4820
- return He[e].capabilities.tracking.requirements.filter((e) => !e.whenTrackingNumber || new RegExp(e.whenTrackingNumber).test(n));
4854
+ var Ve = Object.values(ze).filter((e) => e.capabilities.selectable);
4855
+ function He(e, t) {
4856
+ let n = y(t);
4857
+ return ze[e].capabilities.tracking.requirements.filter((e) => !e.whenTrackingNumber || new RegExp(e.whenTrackingNumber).test(n));
4821
4858
  }
4822
- function Ke(e, t) {
4859
+ function Ue(e, t) {
4823
4860
  let n = t.trim();
4824
4861
  return n ? !e.pattern || new RegExp(e.pattern).test(n) : e.optional === !0;
4825
4862
  }
4826
- function qe(e) {
4827
- return He[e].capabilities.tracking.mode === "automatic";
4863
+ function We(e) {
4864
+ return ze[e].capabilities.tracking.mode === "automatic";
4828
4865
  }
4829
- function Je(e, t, n) {
4866
+ function Ge(e, t, n) {
4830
4867
  if (!n || ![
4831
4868
  "en",
4832
4869
  "de",
@@ -4855,74 +4892,74 @@ function Je(e, t, n) {
4855
4892
  }
4856
4893
  //#endregion
4857
4894
  //#region core/detection/colissimo.ts
4858
- function Ye(e) {
4859
- return /^[0-9A-Z]{2}\d{11}$/.test(e) && de(e.slice(2));
4895
+ function Ke(e) {
4896
+ return /^[0-9A-Z]{2}\d{11}$/.test(e) && ce(e.slice(2));
4860
4897
  }
4861
4898
  //#endregion
4862
4899
  //#region core/detection/correosSpain.ts
4863
- var Xe = "TRWAGMYFPDXBNJZSQVHLCKE";
4864
- function Ze(e) {
4900
+ var qe = "TRWAGMYFPDXBNJZSQVHLCKE";
4901
+ function Je(e) {
4865
4902
  let t = 0;
4866
4903
  for (let n = 0; n < e.length - 1; n++) t += e.charCodeAt(n);
4867
- return e.length > 1 && Xe[t % 23] === e.at(-1);
4904
+ return e.length > 1 && qe[t % 23] === e.at(-1);
4868
4905
  }
4869
4906
  //#endregion
4870
4907
  //#region core/detection/dpd.ts
4871
- var Qe = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
4872
- function $e(e) {
4908
+ var Ye = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
4909
+ function Xe(e) {
4873
4910
  let t = 36;
4874
4911
  for (let n of e) t += Number(n), t > 36 && (t -= 36), t *= 2, t > 36 && (t -= 37);
4875
- return Qe[(37 - t) % 36];
4912
+ return Ye[(37 - t) % 36];
4876
4913
  }
4877
- function et(e) {
4878
- return /^\d{14}[0-9A-Z]$/.test(e) && e[14] === $e(e.slice(0, 14));
4914
+ function Ze(e) {
4915
+ return /^\d{14}[0-9A-Z]$/.test(e) && e[14] === Xe(e.slice(0, 14));
4879
4916
  }
4880
4917
  //#endregion
4881
4918
  //#region core/detection/ups.ts
4882
- function tt(e) {
4919
+ function Qe(e) {
4883
4920
  return /\d/.test(e) ? Number(e) : (e.charCodeAt(0) - 63) % 10;
4884
4921
  }
4885
- function nt(e) {
4886
- return (10 - [...e].reduce((e, t, n) => e + tt(t) * (n % 2 ? 2 : 1), 0) % 10) % 10;
4922
+ function $e(e) {
4923
+ return (10 - [...e].reduce((e, t, n) => e + Qe(t) * (n % 2 ? 2 : 1), 0) % 10) % 10;
4887
4924
  }
4888
- function rt(e) {
4889
- return /^1Z[0-9A-Z]{15}\d$/.test(e) && nt(e.slice(2, 17)) === Number(e[17]);
4925
+ function et(e) {
4926
+ return /^1Z[0-9A-Z]{15}\d$/.test(e) && $e(e.slice(2, 17)) === Number(e[17]);
4890
4927
  }
4891
- function it(e) {
4892
- return /^[CD]\d{14}$/.test(e) && nt(e.slice(0, 14)) === Number(e[14]);
4928
+ function tt(e) {
4929
+ return /^[CD]\d{14}$/.test(e) && $e(e.slice(0, 14)) === Number(e[14]);
4893
4930
  }
4894
4931
  //#endregion
4895
4932
  //#region core/detection/evri.ts
4896
- function at(e) {
4897
- return /^[HT][0-9A-Z]{5}\d{10}$/.test(e) ? [...e.slice(0, 15)].reduce((e, t, n) => e + tt(t) * (n % 2 ? 1 : 2), 0) % 10 === Number(e[15]) : !1;
4933
+ function nt(e) {
4934
+ return /^[HT][0-9A-Z]{5}\d{10}$/.test(e) ? [...e.slice(0, 15)].reduce((e, t, n) => e + Qe(t) * (n % 2 ? 1 : 2), 0) % 10 === Number(e[15]) : !1;
4898
4935
  }
4899
4936
  //#endregion
4900
4937
  //#region core/detection/fedex.ts
4901
- function ot(e) {
4902
- return /^96\d{20}$/.test(e) && de(e.slice(7));
4938
+ function rt(e) {
4939
+ return /^96\d{20}$/.test(e) && ce(e.slice(7));
4903
4940
  }
4904
- function st(e) {
4905
- return /^\d{20}00\d{12}$/.test(e) && pe(e.slice(22));
4941
+ function it(e) {
4942
+ return /^\d{20}00\d{12}$/.test(e) && ue(e.slice(22));
4906
4943
  }
4907
4944
  //#endregion
4908
4945
  //#region core/detection/gls.ts
4909
- function ct(e) {
4946
+ function at(e) {
4910
4947
  return /^\d{12}$/.test(e) ? (10 - [...e.slice(0, 11)].reverse().reduce((e, t, n) => e + Number(t) * (n % 2 == 0 ? 3 : 1), 1) % 10) % 10 === Number(e[11]) : !1;
4911
4948
  }
4912
4949
  //#endregion
4913
4950
  //#region core/detection/hermes.ts
4914
- function lt(e) {
4951
+ function ot(e) {
4915
4952
  return /^\d{14}$/.test(e) ? (10 - [...e.slice(0, 13)].reduce((e, t, n) => e + Number(t) * (n % 2 == 0 ? 3 : 1), 0) % 10) % 10 === Number(e[13]) : !1;
4916
4953
  }
4917
4954
  //#endregion
4918
4955
  //#region core/detection/identcode.ts
4919
- function ut(e) {
4956
+ function st(e) {
4920
4957
  return /^\d{12}$/.test(e) ? (10 - [...e.slice(0, 11)].reduce((e, t, n) => e + Number(t) * (n % 2 ? 9 : 4), 0) % 10) % 10 === Number(e[11]) : !1;
4921
4958
  }
4922
4959
  //#endregion
4923
4960
  //#region core/detection/s10.ts
4924
- function dt(e) {
4925
- let t = g(e);
4961
+ function ct(e) {
4962
+ let t = y(e);
4926
4963
  if (!/^[A-Z]{2}\d{9}[A-Z]{2}$/.test(t)) return !1;
4927
4964
  let n = 11 - [
4928
4965
  8,
@@ -4936,13 +4973,13 @@ function dt(e) {
4936
4973
  ].reduce((e, n, r) => e + Number(t[r + 2]) * n, 0) % 11, r = n === 10 ? 0 : n === 11 ? 5 : n;
4937
4974
  return Number(t[10]) === r;
4938
4975
  }
4939
- function ft(e) {
4940
- let t = g(e);
4941
- return /^L[A-Z]\d{9}CH$/.test(t) && dt(t);
4976
+ function lt(e) {
4977
+ let t = y(e);
4978
+ return /^L[A-Z]\d{9}CH$/.test(t) && ct(t);
4942
4979
  }
4943
4980
  //#endregion
4944
4981
  //#region core/detection/sfExpress.ts
4945
- function pt(e) {
4982
+ function ut(e) {
4946
4983
  let t = /^(?:\d{12}|SF\d{13})$/.test(e) ? e.replace(/^SF/, "") : null;
4947
4984
  return t ? (10 - [...t.slice(3, -1)].reverse().reduce((e, t, n) => {
4948
4985
  let r = Number(t) * (2 * n + 1);
@@ -4951,78 +4988,78 @@ function pt(e) {
4951
4988
  }
4952
4989
  //#endregion
4953
4990
  //#region core/detection/usps.ts
4954
- function mt(e) {
4991
+ function dt(e) {
4955
4992
  if (!/^(?:9[1-5]\d{20}|9[2-4]\d{24})$/.test(e)) return !1;
4956
4993
  let t = 0;
4957
4994
  for (let n = e.length - 1; n >= 0; n--) t += Number(e[n]) * ((e.length - 1 - n) % 2 == 0 ? 1 : 3);
4958
4995
  return t % 10 == 0;
4959
4996
  }
4960
- var ht = /^420(?:\d{5}|\d{9})(?:\d{22}|\d{26})$/, gt = /^(?:91\d{2}9|92\d{3}9|93\d{3}[0-8]|9[45])/;
4961
- function _t(e) {
4962
- let t = g(e);
4963
- if (mt(t)) return t;
4964
- if (!ht.test(t)) return null;
4965
- let n = [t.slice(8), t.slice(12)].filter(mt);
4997
+ var ft = /^420(?:\d{5}|\d{9})(?:\d{22}|\d{26})$/, pt = /^(?:91\d{2}9|92\d{3}9|93\d{3}[0-8]|9[45])/;
4998
+ function mt(e) {
4999
+ let t = y(e);
5000
+ if (dt(t)) return t;
5001
+ if (!ft.test(t)) return null;
5002
+ let n = [t.slice(8), t.slice(12)].filter(dt);
4966
5003
  if (n.length < 2) return n[0] ?? null;
4967
- let r = n.filter((e) => gt.test(e));
5004
+ let r = n.filter((e) => pt.test(e));
4968
5005
  return r.length === 1 ? r[0] : null;
4969
5006
  }
4970
- function vt(e) {
4971
- return _t(e) !== null;
5007
+ function ht(e) {
5008
+ return mt(e) !== null;
4972
5009
  }
4973
5010
  //#endregion
4974
5011
  //#region core/detection/checksums.ts
4975
- var yt = {
4976
- "mondial-relay": ge,
4977
- s10: dt,
4978
- hermes: lt,
4979
- gls: ct,
4980
- "dhl-express": oe,
4981
- tnt: ce,
4982
- "poczta-polska": me,
4983
- "correos-spain": Ze,
4984
- dpd: et,
4985
- usps: vt,
4986
- sscc: he,
4987
- ups: rt,
4988
- colissimo: Ye,
4989
- ukrposhta: ue,
4990
- evri: at,
4991
- mod7: se,
4992
- gs1: de,
4993
- ontrac: it,
4994
- luhn: fe,
4995
- fedex: pe,
4996
- "sf-express": pt,
4997
- "fedex-ground-96": ot,
4998
- "fedex-1d": st,
4999
- identcode: ut
5012
+ var gt = {
5013
+ "mondial-relay": pe,
5014
+ s10: ct,
5015
+ hermes: ot,
5016
+ gls: at,
5017
+ "dhl-express": ie,
5018
+ tnt: ae,
5019
+ "poczta-polska": de,
5020
+ "correos-spain": Je,
5021
+ dpd: Ze,
5022
+ usps: ht,
5023
+ sscc: fe,
5024
+ ups: et,
5025
+ colissimo: Ke,
5026
+ ukrposhta: se,
5027
+ evri: nt,
5028
+ mod7: v,
5029
+ gs1: ce,
5030
+ ontrac: tt,
5031
+ luhn: le,
5032
+ fedex: ue,
5033
+ "sf-express": ut,
5034
+ "fedex-ground-96": rt,
5035
+ "fedex-1d": it,
5036
+ identcode: st
5000
5037
  };
5001
5038
  //#endregion
5002
5039
  //#region core/detection/cttExpress.ts
5003
- function bt(e) {
5040
+ function _t(e) {
5004
5041
  return /^00\d{4}00\d{14}(?:001)?$/.test(e);
5005
5042
  }
5006
5043
  //#endregion
5007
5044
  //#region core/detection/detect.ts
5008
- function xt(e, t) {
5009
- return e.checksum === void 0 || yt[e.checksum](t);
5045
+ function vt(e, t) {
5046
+ return e.checksum === void 0 || gt[e.checksum](t);
5010
5047
  }
5011
- function St(e, t, n) {
5048
+ function yt(e, t, n) {
5012
5049
  return new RegExp(e.pattern).test(t) && (!e.rawPattern || new RegExp(e.rawPattern).test(n));
5013
5050
  }
5014
- function Ct(e, t, n, r) {
5015
- for (let [i, a] of _[e].detectionRules.entries()) if (St(a, t, n)) {
5016
- if (xt(a, t)) return a;
5051
+ function bt(e, t, n, r) {
5052
+ for (let [i, a] of b[e].detectionRules.entries()) if (yt(a, t, n)) {
5053
+ if (vt(a, t)) return a;
5017
5054
  r.push({
5018
5055
  carrier: e,
5019
- id: xe[e][i],
5056
+ id: ve[e][i],
5020
5057
  rule: a
5021
5058
  });
5022
5059
  }
5023
5060
  }
5024
- function wt(e) {
5025
- let t = e.trim().toUpperCase(), n = g(e);
5061
+ function xt(e) {
5062
+ let t = e.trim().toUpperCase(), n = y(e);
5026
5063
  if (!n) return {
5027
5064
  detection: {
5028
5065
  carrier: "unknown",
@@ -5033,9 +5070,9 @@ function wt(e) {
5033
5070
  rejections: []
5034
5071
  };
5035
5072
  let r = [], i = [];
5036
- for (let e of Object.keys(_)) {
5037
- if (e === "ctt-express" && !bt(n)) continue;
5038
- let a = Ct(e, n, t, i);
5073
+ for (let e of Object.keys(b)) {
5074
+ if (e === "ctt-express" && !_t(n)) continue;
5075
+ let a = bt(e, n, t, i);
5039
5076
  a && r.push({
5040
5077
  carrier: e,
5041
5078
  confidence: a.confidence,
@@ -5065,32 +5102,32 @@ function wt(e) {
5065
5102
  rejections: l
5066
5103
  };
5067
5104
  }
5068
- function y(e) {
5069
- return wt(e).detection;
5105
+ function S(e) {
5106
+ return xt(e).detection;
5070
5107
  }
5071
- function Tt(e) {
5072
- return wt(e).rejections;
5108
+ function St(e) {
5109
+ return xt(e).rejections;
5073
5110
  }
5074
- function Et(e) {
5075
- return y(e).carrier;
5111
+ function Ct(e) {
5112
+ return S(e).carrier;
5076
5113
  }
5077
5114
  //#endregion
5078
5115
  //#region core/detection/valid.ts
5079
- function Dt(e) {
5116
+ function wt(e) {
5080
5117
  return e.length >= 4 && e.length <= 40 && (/^[A-Z0-9]+$/.test(e) || /^\d{4}\/\d{8}$/.test(e));
5081
5118
  }
5082
- function Ot(e) {
5083
- let t = g(e);
5084
- return Dt(t) ? /\d/.test(t) || /^[A-Za-z]{6,10}$/.test(e.trim()) && y(t).confidence !== "none" : !1;
5119
+ function Tt(e) {
5120
+ let t = y(e);
5121
+ return wt(t) ? /\d/.test(t) || /^[A-Za-z]{6,10}$/.test(e.trim()) && S(t).confidence !== "none" : !1;
5085
5122
  }
5086
- function kt(e) {
5087
- let t = g(e);
5088
- return Dt(t) && /\d/.test(t);
5123
+ function Et(e) {
5124
+ let t = y(e);
5125
+ return wt(t) && /\d/.test(t);
5089
5126
  }
5090
5127
  //#endregion
5091
5128
  //#region core/detection/candidates.ts
5092
- var At = [
5093
- RegExp(`\\b${Ce.slice(1, -1).replaceAll("[0-9]", "(?:[\\s.-]*[0-9])")}\\b`, "gi"),
5129
+ var Dt = [
5130
+ RegExp(`\\b${be.slice(1, -1).replaceAll("[0-9]", "(?:[\\s.-]*[0-9])")}\\b`, "gi"),
5094
5131
  /\b\d{4}\/\d{8}\b/g,
5095
5132
  /\b\d{26}\b/g,
5096
5133
  /\bH\d{15,19}\b/gi,
@@ -5101,44 +5138,44 @@ var At = [
5101
5138
  /\b\d(?:[\s.-]?\d){9,19}\b/g,
5102
5139
  /\b[A-Z0-9]{4,40}\b/gi
5103
5140
  ];
5104
- function jt(e) {
5105
- for (let t of At) {
5141
+ function Ot(e) {
5142
+ for (let t of Dt) {
5106
5143
  t.lastIndex = 0;
5107
5144
  for (let n of e.matchAll(t)) {
5108
5145
  let e = n[0].trim();
5109
- if (y(e).confidence === "high") return e;
5146
+ if (S(e).confidence === "high") return e;
5110
5147
  }
5111
5148
  }
5112
5149
  }
5113
- var Mt = String.raw`(?:numbers?(?![A-Z])|no\.|(?:no|id)(?![A-Z0-9.]))`, Nt = new RegExp(String.raw`(?:track(?:ing)?(?:\s*${Mt}|(?![A-Z]))` + String.raw`|(?:parcel|shipment)(?:\s+(?:tracking(?![A-Z])|${Mt})|(?![A-Z])))` + String.raw`(?:\s+is(?![A-Z0-9]))?\s*[:#-]?\s*` + String.raw`((?=[A-Z0-9.-]{0,39}\d)[A-Z0-9][A-Z0-9.-]{3,39})`, "i");
5114
- function Pt(e) {
5115
- let t = Nt.exec(e)?.[1]?.replace(/[.-]+$/, "");
5116
- return t && kt(t) ? t : void 0;
5150
+ var kt = String.raw`(?:numbers?(?![A-Z])|no\.|(?:no|id)(?![A-Z0-9.]))`, At = new RegExp(String.raw`(?:track(?:ing)?(?:\s*${kt}|(?![A-Z]))` + String.raw`|(?:parcel|shipment)(?:\s+(?:tracking(?![A-Z])|${kt})|(?![A-Z])))` + String.raw`(?:\s+is(?![A-Z0-9]))?\s*[:#-]?\s*` + String.raw`((?=[A-Z0-9.-]{0,39}\d)[A-Z0-9][A-Z0-9.-]{3,39})`, "i");
5151
+ function jt(e) {
5152
+ let t = At.exec(e)?.[1]?.replace(/[.-]+$/, "");
5153
+ return t && Et(t) ? t : void 0;
5117
5154
  }
5118
5155
  //#endregion
5119
5156
  //#region core/detection/parse.ts
5120
- function Ft(e) {
5157
+ function Mt(e) {
5121
5158
  return e.replace(/^[\s<'"(\x5b]+/, "").replace(/[\s>'")\],;.!?]+$/, "");
5122
5159
  }
5123
- function It(e) {
5160
+ function Nt(e) {
5124
5161
  return e.split(/[,|]/, 1)[0].trim();
5125
5162
  }
5126
- function Lt(e, t) {
5163
+ function Pt(e, t) {
5127
5164
  let n = new Set(t.map((e) => e.toLowerCase()));
5128
5165
  for (let [t, r] of e.searchParams) if (n.has(t.toLowerCase()) && r.trim()) return r;
5129
5166
  }
5130
- function Rt(e, t) {
5131
- let n = t.params ? Lt(e, t.params) : void 0, r = t.query?.exec(decodeURIComponent(e.search.slice(1)))?.[1], i = t.path?.exec(e.pathname)?.[1], a = t.fragment?.exec(decodeURIComponent(e.hash.slice(1)))?.[1], o = It(n ?? r ?? i ?? a ?? "");
5132
- return Ot(o) ? o : void 0;
5167
+ function Ft(e, t) {
5168
+ let n = t.params ? Pt(e, t.params) : void 0, r = t.query?.exec(decodeURIComponent(e.search.slice(1)))?.[1], i = t.path?.exec(e.pathname)?.[1], a = t.fragment?.exec(decodeURIComponent(e.hash.slice(1)))?.[1], o = Nt(n ?? r ?? i ?? a ?? "");
5169
+ return Tt(o) ? o : void 0;
5133
5170
  }
5134
- function zt(e, t) {
5171
+ function It(e, t) {
5135
5172
  return {
5136
5173
  trackingNumber: e,
5137
5174
  source: t,
5138
- ...y(e)
5175
+ ...S(e)
5139
5176
  };
5140
5177
  }
5141
- function Bt(e) {
5178
+ function Lt(e) {
5142
5179
  let t = e.trim();
5143
5180
  if (!t) return {
5144
5181
  trackingNumber: "",
@@ -5150,14 +5187,14 @@ function Bt(e) {
5150
5187
  };
5151
5188
  let n = t.match(/https?:\/\/[^\s<>"']+/gi) ?? [];
5152
5189
  for (let e of n) {
5153
- let t = Ft(e);
5190
+ let t = Mt(e);
5154
5191
  try {
5155
- let e = new URL(t), n = Ie.filter((t) => t.domains.some((t) => Re(e.hostname.toLowerCase(), t)) && (!t.pathPattern || t.pathPattern.test(e.pathname))), r = (t) => Math.max(...t.domains.filter((t) => Re(e.hostname.toLowerCase(), t)).map((e) => e.length));
5192
+ let e = new URL(t), n = Ne.filter((t) => t.domains.some((t) => Fe(e.hostname.toLowerCase(), t)) && (!t.pathPattern || t.pathPattern.test(e.pathname))), r = (t) => Math.max(...t.domains.filter((t) => Fe(e.hostname.toLowerCase(), t)).map((e) => e.length));
5156
5193
  n.sort((e, t) => r(t) - r(e));
5157
5194
  for (let r of n) {
5158
- let i = Rt(e, r);
5195
+ let i = Ft(e, r);
5159
5196
  if (i) {
5160
- let e = y(i), a = n.filter((t) => e.candidates.includes(t.carrier)), o = new Set(a.map((e) => e.carrier));
5197
+ let e = S(i), a = n.filter((t) => e.candidates.includes(t.carrier)), o = new Set(a.map((e) => e.carrier));
5161
5198
  if (r.detectFromNumber && (e.confidence === "high" || e.confidence === "low" && o.size > 1)) return {
5162
5199
  trackingNumber: i,
5163
5200
  ...e,
@@ -5175,14 +5212,14 @@ function Bt(e) {
5175
5212
  };
5176
5213
  }
5177
5214
  }
5178
- let i = jt(decodeURIComponent(e.href));
5179
- if (i) return zt(i, "link");
5215
+ let i = Ot(decodeURIComponent(e.href));
5216
+ if (i) return It(i, "link");
5180
5217
  } catch {}
5181
5218
  }
5182
- let r = jt(t);
5183
- if (r) return zt(r, t === r ? "number" : "text");
5184
- let i = Pt(t);
5185
- return i ? zt(i, "text") : !t.includes("://") && Ot(t) ? zt(t, "number") : {
5219
+ let r = Ot(t);
5220
+ if (r) return It(r, t === r ? "number" : "text");
5221
+ let i = jt(t);
5222
+ return i ? It(i, "text") : !t.includes("://") && Tt(t) ? It(t, "number") : {
5186
5223
  trackingNumber: "",
5187
5224
  carrier: "unknown",
5188
5225
  confidence: "none",
@@ -5193,187 +5230,187 @@ function Bt(e) {
5193
5230
  }
5194
5231
  //#endregion
5195
5232
  //#region core/types.ts
5196
- function Vt(e) {
5233
+ function Rt(e) {
5197
5234
  return typeof e == "object" && !!e && !Array.isArray(e);
5198
5235
  }
5199
5236
  //#endregion
5200
5237
  //#region node_modules/luxon/build/es6/luxon.mjs
5201
- var b = class extends Error {}, Ht = class extends b {
5238
+ var C = class extends Error {}, zt = class extends C {
5202
5239
  constructor(e) {
5203
5240
  super(`Invalid DateTime: ${e.toMessage()}`);
5204
5241
  }
5205
- }, Ut = class extends b {
5242
+ }, Bt = class extends C {
5206
5243
  constructor(e) {
5207
5244
  super(`Invalid Interval: ${e.toMessage()}`);
5208
5245
  }
5209
- }, Wt = class extends b {
5246
+ }, Vt = class extends C {
5210
5247
  constructor(e) {
5211
5248
  super(`Invalid Duration: ${e.toMessage()}`);
5212
5249
  }
5213
- }, x = class extends b {}, Gt = class extends b {
5250
+ }, Ht = class extends C {}, Ut = class extends C {
5214
5251
  constructor(e) {
5215
5252
  super(`Invalid unit ${e}`);
5216
5253
  }
5217
- }, S = class extends b {}, C = class extends b {
5254
+ }, w = class extends C {}, T = class extends C {
5218
5255
  constructor() {
5219
5256
  super("Zone is an abstract class");
5220
5257
  }
5221
- }, w = "numeric", T = "short", E = "long", Kt = {
5222
- year: w,
5223
- month: w,
5224
- day: w
5258
+ }, E = "numeric", D = "short", O = "long", Wt = {
5259
+ year: E,
5260
+ month: E,
5261
+ day: E
5262
+ }, Gt = {
5263
+ year: E,
5264
+ month: D,
5265
+ day: E
5266
+ }, Kt = {
5267
+ year: E,
5268
+ month: D,
5269
+ day: E,
5270
+ weekday: D
5225
5271
  }, qt = {
5226
- year: w,
5227
- month: T,
5228
- day: w
5272
+ year: E,
5273
+ month: O,
5274
+ day: E
5229
5275
  }, Jt = {
5230
- year: w,
5231
- month: T,
5232
- day: w,
5233
- weekday: T
5276
+ year: E,
5277
+ month: O,
5278
+ day: E,
5279
+ weekday: O
5234
5280
  }, Yt = {
5235
- year: w,
5236
- month: E,
5237
- day: w
5281
+ hour: E,
5282
+ minute: E
5238
5283
  }, Xt = {
5239
- year: w,
5240
- month: E,
5241
- day: w,
5242
- weekday: E
5284
+ hour: E,
5285
+ minute: E,
5286
+ second: E
5243
5287
  }, Zt = {
5244
- hour: w,
5245
- minute: w
5288
+ hour: E,
5289
+ minute: E,
5290
+ second: E,
5291
+ timeZoneName: D
5246
5292
  }, Qt = {
5247
- hour: w,
5248
- minute: w,
5249
- second: w
5293
+ hour: E,
5294
+ minute: E,
5295
+ second: E,
5296
+ timeZoneName: O
5250
5297
  }, $t = {
5251
- hour: w,
5252
- minute: w,
5253
- second: w,
5254
- timeZoneName: T
5298
+ hour: E,
5299
+ minute: E,
5300
+ hourCycle: "h23"
5255
5301
  }, en = {
5256
- hour: w,
5257
- minute: w,
5258
- second: w,
5259
- timeZoneName: E
5260
- }, tn = {
5261
- hour: w,
5262
- minute: w,
5302
+ hour: E,
5303
+ minute: E,
5304
+ second: E,
5263
5305
  hourCycle: "h23"
5306
+ }, tn = {
5307
+ hour: E,
5308
+ minute: E,
5309
+ second: E,
5310
+ hourCycle: "h23",
5311
+ timeZoneName: D
5264
5312
  }, nn = {
5265
- hour: w,
5266
- minute: w,
5267
- second: w,
5268
- hourCycle: "h23"
5269
- }, rn = {
5270
- hour: w,
5271
- minute: w,
5272
- second: w,
5313
+ hour: E,
5314
+ minute: E,
5315
+ second: E,
5273
5316
  hourCycle: "h23",
5274
- timeZoneName: T
5317
+ timeZoneName: O
5318
+ }, rn = {
5319
+ year: E,
5320
+ month: E,
5321
+ day: E,
5322
+ hour: E,
5323
+ minute: E
5275
5324
  }, an = {
5276
- hour: w,
5277
- minute: w,
5278
- second: w,
5279
- hourCycle: "h23",
5280
- timeZoneName: E
5325
+ year: E,
5326
+ month: E,
5327
+ day: E,
5328
+ hour: E,
5329
+ minute: E,
5330
+ second: E
5281
5331
  }, on = {
5282
- year: w,
5283
- month: w,
5284
- day: w,
5285
- hour: w,
5286
- minute: w
5332
+ year: E,
5333
+ month: D,
5334
+ day: E,
5335
+ hour: E,
5336
+ minute: E
5287
5337
  }, sn = {
5288
- year: w,
5289
- month: w,
5290
- day: w,
5291
- hour: w,
5292
- minute: w,
5293
- second: w
5338
+ year: E,
5339
+ month: D,
5340
+ day: E,
5341
+ hour: E,
5342
+ minute: E,
5343
+ second: E
5294
5344
  }, cn = {
5295
- year: w,
5296
- month: T,
5297
- day: w,
5298
- hour: w,
5299
- minute: w
5345
+ year: E,
5346
+ month: D,
5347
+ day: E,
5348
+ weekday: D,
5349
+ hour: E,
5350
+ minute: E
5300
5351
  }, ln = {
5301
- year: w,
5302
- month: T,
5303
- day: w,
5304
- hour: w,
5305
- minute: w,
5306
- second: w
5352
+ year: E,
5353
+ month: O,
5354
+ day: E,
5355
+ hour: E,
5356
+ minute: E,
5357
+ timeZoneName: D
5307
5358
  }, un = {
5308
- year: w,
5309
- month: T,
5310
- day: w,
5311
- weekday: T,
5312
- hour: w,
5313
- minute: w
5359
+ year: E,
5360
+ month: O,
5361
+ day: E,
5362
+ hour: E,
5363
+ minute: E,
5364
+ second: E,
5365
+ timeZoneName: D
5314
5366
  }, dn = {
5315
- year: w,
5316
- month: E,
5317
- day: w,
5318
- hour: w,
5319
- minute: w,
5320
- timeZoneName: T
5367
+ year: E,
5368
+ month: O,
5369
+ day: E,
5370
+ weekday: O,
5371
+ hour: E,
5372
+ minute: E,
5373
+ timeZoneName: O
5321
5374
  }, fn = {
5322
- year: w,
5323
- month: E,
5324
- day: w,
5325
- hour: w,
5326
- minute: w,
5327
- second: w,
5328
- timeZoneName: T
5329
- }, pn = {
5330
- year: w,
5331
- month: E,
5332
- day: w,
5333
- weekday: E,
5334
- hour: w,
5335
- minute: w,
5336
- timeZoneName: E
5337
- }, mn = {
5338
- year: w,
5339
- month: E,
5340
- day: w,
5341
- weekday: E,
5342
- hour: w,
5343
- minute: w,
5344
- second: w,
5345
- timeZoneName: E
5346
- }, hn = class {
5375
+ year: E,
5376
+ month: O,
5377
+ day: E,
5378
+ weekday: O,
5379
+ hour: E,
5380
+ minute: E,
5381
+ second: E,
5382
+ timeZoneName: O
5383
+ }, pn = class {
5347
5384
  get type() {
5348
- throw new C();
5385
+ throw new T();
5349
5386
  }
5350
5387
  get name() {
5351
- throw new C();
5388
+ throw new T();
5352
5389
  }
5353
5390
  get ianaName() {
5354
5391
  return this.name;
5355
5392
  }
5356
5393
  get isUniversal() {
5357
- throw new C();
5394
+ throw new T();
5358
5395
  }
5359
5396
  offsetName(e, t) {
5360
- throw new C();
5397
+ throw new T();
5361
5398
  }
5362
5399
  formatOffset(e, t) {
5363
- throw new C();
5400
+ throw new T();
5364
5401
  }
5365
5402
  offset(e) {
5366
- throw new C();
5403
+ throw new T();
5367
5404
  }
5368
5405
  equals(e) {
5369
- throw new C();
5406
+ throw new T();
5370
5407
  }
5371
5408
  get isValid() {
5372
- throw new C();
5409
+ throw new T();
5373
5410
  }
5374
- }, gn = null, _n = class e extends hn {
5411
+ }, mn = null, hn = class e extends pn {
5375
5412
  static get instance() {
5376
- return gn === null && (gn = new e()), gn;
5413
+ return mn === null && (mn = new e()), mn;
5377
5414
  }
5378
5415
  get type() {
5379
5416
  return "system";
@@ -5385,10 +5422,10 @@ var b = class extends Error {}, Ht = class extends b {
5385
5422
  return !1;
5386
5423
  }
5387
5424
  offsetName(e, { format: t, locale: n }) {
5388
- return Gr(e, t, n);
5425
+ return Ur(e, t, n);
5389
5426
  }
5390
5427
  formatOffset(e, t) {
5391
- return Yr(this.offset(e), t);
5428
+ return qr(this.offset(e), t);
5392
5429
  }
5393
5430
  offset(e) {
5394
5431
  return -new Date(e).getTimezoneOffset();
@@ -5399,9 +5436,9 @@ var b = class extends Error {}, Ht = class extends b {
5399
5436
  get isValid() {
5400
5437
  return !0;
5401
5438
  }
5402
- }, vn = /* @__PURE__ */ new Map();
5403
- function yn(e) {
5404
- let t = vn.get(e);
5439
+ }, gn = /* @__PURE__ */ new Map();
5440
+ function _n(e) {
5441
+ let t = gn.get(e);
5405
5442
  return t === void 0 && (t = new Intl.DateTimeFormat("en-US", {
5406
5443
  hour12: !1,
5407
5444
  timeZone: e,
@@ -5412,9 +5449,9 @@ function yn(e) {
5412
5449
  minute: "2-digit",
5413
5450
  second: "2-digit",
5414
5451
  era: "short"
5415
- }), vn.set(e, t)), t;
5452
+ }), gn.set(e, t)), t;
5416
5453
  }
5417
- var bn = {
5454
+ var vn = {
5418
5455
  year: 0,
5419
5456
  month: 1,
5420
5457
  day: 2,
@@ -5423,7 +5460,7 @@ var bn = {
5423
5460
  minute: 5,
5424
5461
  second: 6
5425
5462
  };
5426
- function xn(e, t) {
5463
+ function yn(e, t) {
5427
5464
  let n = e.format(t).replace(/\u200E/g, ""), [, r, i, a, o, s, c, l] = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n);
5428
5465
  return [
5429
5466
  a,
@@ -5435,21 +5472,21 @@ function xn(e, t) {
5435
5472
  l
5436
5473
  ];
5437
5474
  }
5438
- function Sn(e, t) {
5475
+ function bn(e, t) {
5439
5476
  let n = e.formatToParts(t), r = [];
5440
5477
  for (let e = 0; e < n.length; e++) {
5441
- let { type: t, value: i } = n[e], a = bn[t];
5442
- t === "era" ? r[a] = i : F(a) || (r[a] = parseInt(i, 10));
5478
+ let { type: t, value: i } = n[e], a = vn[t];
5479
+ t === "era" ? r[a] = i : I(a) || (r[a] = parseInt(i, 10));
5443
5480
  }
5444
5481
  return r;
5445
5482
  }
5446
- var Cn = /* @__PURE__ */ new Map(), D = class e extends hn {
5483
+ var xn = /* @__PURE__ */ new Map(), Sn = class e extends pn {
5447
5484
  static create(t) {
5448
- let n = Cn.get(t);
5449
- return n === void 0 && Cn.set(t, n = new e(t)), n;
5485
+ let n = xn.get(t);
5486
+ return n === void 0 && xn.set(t, n = new e(t)), n;
5450
5487
  }
5451
5488
  static resetCache() {
5452
- Cn.clear(), vn.clear();
5489
+ xn.clear(), gn.clear();
5453
5490
  }
5454
5491
  static isValidSpecifier(e) {
5455
5492
  return this.isValidZone(e);
@@ -5475,18 +5512,18 @@ var Cn = /* @__PURE__ */ new Map(), D = class e extends hn {
5475
5512
  return !1;
5476
5513
  }
5477
5514
  offsetName(e, { format: t, locale: n }) {
5478
- return Gr(e, t, n, this.name);
5515
+ return Ur(e, t, n, this.name);
5479
5516
  }
5480
5517
  formatOffset(e, t) {
5481
- return Yr(this.offset(e), t);
5518
+ return qr(this.offset(e), t);
5482
5519
  }
5483
5520
  offset(e) {
5484
5521
  if (!this.valid) return NaN;
5485
5522
  let t = new Date(e);
5486
5523
  if (isNaN(t)) return NaN;
5487
- let n = yn(this.name), [r, i, a, o, s, c, l] = n.formatToParts ? Sn(n, t) : xn(n, t);
5524
+ let n = _n(this.name), [r, i, a, o, s, c, l] = n.formatToParts ? bn(n, t) : yn(n, t);
5488
5525
  o === "BC" && (r = -Math.abs(r) + 1);
5489
- let u = Vr({
5526
+ let u = zr({
5490
5527
  year: r,
5491
5528
  month: i,
5492
5529
  day: a,
@@ -5503,48 +5540,48 @@ var Cn = /* @__PURE__ */ new Map(), D = class e extends hn {
5503
5540
  get isValid() {
5504
5541
  return this.valid;
5505
5542
  }
5506
- }, wn = {};
5507
- function Tn(e, t = {}) {
5508
- let n = JSON.stringify([e, t]), r = wn[n];
5509
- return r || (r = new Intl.ListFormat(e, t), wn[n] = r), r;
5510
- }
5511
- var En = /* @__PURE__ */ new Map();
5512
- function Dn(e, t = {}) {
5513
- let n = JSON.stringify([e, t]), r = En.get(n);
5514
- return r === void 0 && (r = new Intl.DateTimeFormat(e, t), En.set(n, r)), r;
5515
- }
5516
- var On = /* @__PURE__ */ new Map();
5517
- function kn(e, t = {}) {
5518
- let n = JSON.stringify([e, t]), r = On.get(n);
5519
- return r === void 0 && (r = new Intl.NumberFormat(e, t), On.set(n, r)), r;
5520
- }
5521
- var An = /* @__PURE__ */ new Map();
5522
- function jn(e, t = {}) {
5523
- let { base: n, ...r } = t, i = JSON.stringify([e, r]), a = An.get(i);
5524
- return a === void 0 && (a = new Intl.RelativeTimeFormat(e, t), An.set(i, a)), a;
5525
- }
5526
- var Mn = null;
5527
- function Nn() {
5528
- return Mn || (Mn = new Intl.DateTimeFormat().resolvedOptions().locale, Mn);
5529
- }
5530
- var Pn = /* @__PURE__ */ new Map();
5531
- function Fn(e) {
5532
- let t = Pn.get(e);
5533
- return t === void 0 && (t = new Intl.DateTimeFormat(e).resolvedOptions(), Pn.set(e, t)), t;
5534
- }
5535
- var In = /* @__PURE__ */ new Map();
5536
- function Ln(e) {
5537
- let t = In.get(e);
5543
+ }, Cn = {};
5544
+ function wn(e, t = {}) {
5545
+ let n = JSON.stringify([e, t]), r = Cn[n];
5546
+ return r || (r = new Intl.ListFormat(e, t), Cn[n] = r), r;
5547
+ }
5548
+ var Tn = /* @__PURE__ */ new Map();
5549
+ function En(e, t = {}) {
5550
+ let n = JSON.stringify([e, t]), r = Tn.get(n);
5551
+ return r === void 0 && (r = new Intl.DateTimeFormat(e, t), Tn.set(n, r)), r;
5552
+ }
5553
+ var Dn = /* @__PURE__ */ new Map();
5554
+ function On(e, t = {}) {
5555
+ let n = JSON.stringify([e, t]), r = Dn.get(n);
5556
+ return r === void 0 && (r = new Intl.NumberFormat(e, t), Dn.set(n, r)), r;
5557
+ }
5558
+ var kn = /* @__PURE__ */ new Map();
5559
+ function An(e, t = {}) {
5560
+ let { base: n, ...r } = t, i = JSON.stringify([e, r]), a = kn.get(i);
5561
+ return a === void 0 && (a = new Intl.RelativeTimeFormat(e, t), kn.set(i, a)), a;
5562
+ }
5563
+ var jn = null;
5564
+ function Mn() {
5565
+ return jn || (jn = new Intl.DateTimeFormat().resolvedOptions().locale, jn);
5566
+ }
5567
+ var Nn = /* @__PURE__ */ new Map();
5568
+ function Pn(e) {
5569
+ let t = Nn.get(e);
5570
+ return t === void 0 && (t = new Intl.DateTimeFormat(e).resolvedOptions(), Nn.set(e, t)), t;
5571
+ }
5572
+ var Fn = /* @__PURE__ */ new Map();
5573
+ function In(e) {
5574
+ let t = Fn.get(e);
5538
5575
  if (!t) {
5539
5576
  let n = new Intl.Locale(e);
5540
5577
  t = "getWeekInfo" in n ? n.getWeekInfo() : n.weekInfo, "minimalDays" in t || (t = {
5541
- ...qn,
5578
+ ...Kn,
5542
5579
  ...t
5543
- }), In.set(e, t);
5580
+ }), Fn.set(e, t);
5544
5581
  }
5545
5582
  return t;
5546
5583
  }
5547
- function Rn(e) {
5584
+ function Ln(e) {
5548
5585
  let t = e.indexOf("-x-");
5549
5586
  t !== -1 && (e = e.substring(0, t));
5550
5587
  let n = e.indexOf("-u-");
@@ -5552,10 +5589,10 @@ function Rn(e) {
5552
5589
  {
5553
5590
  let t, r;
5554
5591
  try {
5555
- t = Dn(e).resolvedOptions(), r = e;
5592
+ t = En(e).resolvedOptions(), r = e;
5556
5593
  } catch {
5557
5594
  let i = e.substring(0, n);
5558
- t = Dn(i).resolvedOptions(), r = i;
5595
+ t = En(i).resolvedOptions(), r = i;
5559
5596
  }
5560
5597
  let { numberingSystem: i, calendar: a } = t;
5561
5598
  return [
@@ -5565,10 +5602,10 @@ function Rn(e) {
5565
5602
  ];
5566
5603
  }
5567
5604
  }
5568
- function zn(e, t, n) {
5605
+ function Rn(e, t, n) {
5569
5606
  return n || t ? (e.includes("-u-") || (e += "-u"), n && (e += `-ca-${n}`), t && (e += `-nu-${t}`), e) : e;
5570
5607
  }
5571
- function Bn(e) {
5608
+ function zn(e) {
5572
5609
  let t = [];
5573
5610
  for (let n = 1; n <= 12; n++) {
5574
5611
  let r = Q.utc(2009, n, 1);
@@ -5576,7 +5613,7 @@ function Bn(e) {
5576
5613
  }
5577
5614
  return t;
5578
5615
  }
5579
- function Vn(e) {
5616
+ function Bn(e) {
5580
5617
  let t = [];
5581
5618
  for (let n = 1; n <= 7; n++) {
5582
5619
  let r = Q.utc(2016, 11, 13 + n);
@@ -5584,14 +5621,14 @@ function Vn(e) {
5584
5621
  }
5585
5622
  return t;
5586
5623
  }
5587
- function Hn(e, t, n, r) {
5624
+ function Vn(e, t, n, r) {
5588
5625
  let i = e.listingMode();
5589
5626
  return i === "error" ? null : i === "en" ? n(t) : r(t);
5590
5627
  }
5591
- function Un(e) {
5592
- return e.numberingSystem && e.numberingSystem !== "latn" ? !1 : e.numberingSystem === "latn" || !e.locale || e.locale.startsWith("en") || Fn(e.locale).numberingSystem === "latn";
5628
+ function Hn(e) {
5629
+ return e.numberingSystem && e.numberingSystem !== "latn" ? !1 : e.numberingSystem === "latn" || !e.locale || e.locale.startsWith("en") || Pn(e.locale).numberingSystem === "latn";
5593
5630
  }
5594
- var Wn = class {
5631
+ var Un = class {
5595
5632
  constructor(e, t, n) {
5596
5633
  this.padTo = n.padTo || 0, this.floor = n.floor || !1;
5597
5634
  let { padTo: r, floor: i, ...a } = n;
@@ -5600,7 +5637,7 @@ var Wn = class {
5600
5637
  useGrouping: !1,
5601
5638
  ...n
5602
5639
  };
5603
- n.padTo > 0 && (t.minimumIntegerDigits = n.padTo), this.inf = kn(e, t);
5640
+ n.padTo > 0 && (t.minimumIntegerDigits = n.padTo), this.inf = On(e, t);
5604
5641
  }
5605
5642
  }
5606
5643
  format(e) {
@@ -5608,19 +5645,19 @@ var Wn = class {
5608
5645
  let t = this.floor ? Math.floor(e) : e;
5609
5646
  return this.inf.format(t);
5610
5647
  }
5611
- return R(this.floor ? Math.floor(e) : Lr(e, 3), this.padTo);
5648
+ return B(this.floor ? Math.floor(e) : Fr(e, 3), this.padTo);
5612
5649
  }
5613
- }, Gn = class {
5650
+ }, Wn = class {
5614
5651
  constructor(e, t, n) {
5615
5652
  this.opts = n, this.originalZone = void 0;
5616
5653
  let r;
5617
5654
  if (this.opts.timeZone) this.dt = e;
5618
5655
  else if (e.zone.type === "fixed") {
5619
5656
  let t = -1 * (e.offset / 60), n = t >= 0 ? `Etc/GMT+${t}` : `Etc/GMT${t}`;
5620
- e.offset !== 0 && D.create(n).valid ? (r = n, this.dt = e) : (r = "UTC", this.dt = e.offset === 0 ? e : e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
5657
+ e.offset !== 0 && Sn.create(n).valid ? (r = n, this.dt = e) : (r = "UTC", this.dt = e.offset === 0 ? e : e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
5621
5658
  } else e.zone.type === "system" ? this.dt = e : e.zone.type === "iana" ? (this.dt = e, r = e.zone.name) : (r = "UTC", this.dt = e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
5622
5659
  let i = { ...this.opts };
5623
- i.timeZone = i.timeZone || r, this.dtf = Dn(t, i);
5660
+ i.timeZone = i.timeZone || r, this.dtf = En(t, i);
5624
5661
  }
5625
5662
  format() {
5626
5663
  return this.originalZone ? this.formatToParts().map(({ value: e }) => e).join("") : this.dtf.format(this.dt.toJSDate());
@@ -5644,40 +5681,40 @@ var Wn = class {
5644
5681
  resolvedOptions() {
5645
5682
  return this.dtf.resolvedOptions();
5646
5683
  }
5647
- }, Kn = class {
5684
+ }, Gn = class {
5648
5685
  constructor(e, t, n) {
5649
5686
  this.opts = {
5650
5687
  style: "long",
5651
5688
  ...n
5652
- }, !t && Or() && (this.rtf = jn(e, n));
5689
+ }, !t && Dr() && (this.rtf = An(e, n));
5653
5690
  }
5654
5691
  format(e, t) {
5655
- return this.rtf ? this.rtf.format(e, t) : mi(t, e, this.opts.numeric, this.opts.style !== "long");
5692
+ return this.rtf ? this.rtf.format(e, t) : fi(t, e, this.opts.numeric, this.opts.style !== "long");
5656
5693
  }
5657
5694
  formatToParts(e, t) {
5658
5695
  return this.rtf ? this.rtf.formatToParts(e, t) : [];
5659
5696
  }
5660
- }, qn = {
5697
+ }, Kn = {
5661
5698
  firstDay: 1,
5662
5699
  minimalDays: 4,
5663
5700
  weekend: [6, 7]
5664
- }, O = class e {
5701
+ }, k = class e {
5665
5702
  static fromOpts(t) {
5666
5703
  return e.create(t.locale, t.numberingSystem, t.outputCalendar, t.weekSettings, t.defaultToEN);
5667
5704
  }
5668
5705
  static create(t, n, r, i, a = !1) {
5669
- let o = t || M.defaultLocale, s = o || (a ? "en-US" : Nn()), c = n || M.defaultNumberingSystem, l = r || M.defaultOutputCalendar, u = Pr(i) || M.defaultWeekSettings;
5706
+ let o = t || N.defaultLocale, s = o || (a ? "en-US" : Mn()), c = n || N.defaultNumberingSystem, l = r || N.defaultOutputCalendar, u = Mr(i) || N.defaultWeekSettings;
5670
5707
  return new e(s, c, l, u, o);
5671
5708
  }
5672
5709
  static resetCache() {
5673
- Mn = null, En.clear(), On.clear(), An.clear(), Pn.clear(), In.clear();
5710
+ jn = null, Tn.clear(), Dn.clear(), kn.clear(), Nn.clear(), Fn.clear();
5674
5711
  }
5675
5712
  static fromObject({ locale: t, numberingSystem: n, outputCalendar: r, weekSettings: i } = {}) {
5676
5713
  return e.create(t, n, r, i);
5677
5714
  }
5678
5715
  constructor(e, t, n, r, i) {
5679
- let [a, o, s] = Rn(e);
5680
- this.locale = a, this.numberingSystem = t || o || null, this.outputCalendar = n || s || null, this.weekSettings = r, this.intl = zn(this.locale, this.numberingSystem, this.outputCalendar), this.weekdaysCache = {
5716
+ let [a, o, s] = Ln(e);
5717
+ this.locale = a, this.numberingSystem = t || o || null, this.outputCalendar = n || s || null, this.weekSettings = r, this.intl = Rn(this.locale, this.numberingSystem, this.outputCalendar), this.weekdaysCache = {
5681
5718
  format: {},
5682
5719
  standalone: {}
5683
5720
  }, this.monthsCache = {
@@ -5686,14 +5723,14 @@ var Wn = class {
5686
5723
  }, this.meridiemCache = null, this.eraCache = {}, this.specifiedLocale = i, this.fastNumbersCached = null;
5687
5724
  }
5688
5725
  get fastNumbers() {
5689
- return this.fastNumbersCached ??= Un(this), this.fastNumbersCached;
5726
+ return this.fastNumbersCached ??= Hn(this), this.fastNumbersCached;
5690
5727
  }
5691
5728
  listingMode() {
5692
5729
  let e = this.isEnglish(), t = (this.numberingSystem === null || this.numberingSystem === "latn") && (this.outputCalendar === null || this.outputCalendar === "gregory");
5693
5730
  return e && t ? "en" : "intl";
5694
5731
  }
5695
5732
  clone(t) {
5696
- return !t || Object.getOwnPropertyNames(t).length === 0 ? this : e.create(t.locale || this.specifiedLocale, t.numberingSystem || this.numberingSystem, t.outputCalendar || this.outputCalendar, Pr(t.weekSettings) || this.weekSettings, t.defaultToEN || !1);
5733
+ return !t || Object.getOwnPropertyNames(t).length === 0 ? this : e.create(t.locale || this.specifiedLocale, t.numberingSystem || this.numberingSystem, t.outputCalendar || this.outputCalendar, Mr(t.weekSettings) || this.weekSettings, t.defaultToEN || !1);
5697
5734
  }
5698
5735
  redefaultToEN(e = {}) {
5699
5736
  return this.clone({
@@ -5708,7 +5745,7 @@ var Wn = class {
5708
5745
  });
5709
5746
  }
5710
5747
  months(e, t = !1) {
5711
- return Hn(this, e, ei, () => {
5748
+ return Vn(this, e, Qr, () => {
5712
5749
  let n = this.intl === "ja" || this.intl.startsWith("ja-");
5713
5750
  t &= !n;
5714
5751
  let r = t ? {
@@ -5717,24 +5754,24 @@ var Wn = class {
5717
5754
  } : { month: e }, i = t ? "format" : "standalone";
5718
5755
  if (!this.monthsCache[i][e]) {
5719
5756
  let t = n ? (e) => this.dtFormatter(e, r).format() : (e) => this.extract(e, r, "month");
5720
- this.monthsCache[i][e] = Bn(t);
5757
+ this.monthsCache[i][e] = zn(t);
5721
5758
  }
5722
5759
  return this.monthsCache[i][e];
5723
5760
  });
5724
5761
  }
5725
5762
  weekdays(e, t = !1) {
5726
- return Hn(this, e, ii, () => {
5763
+ return Vn(this, e, ni, () => {
5727
5764
  let n = t ? {
5728
5765
  weekday: e,
5729
5766
  year: "numeric",
5730
5767
  month: "long",
5731
5768
  day: "numeric"
5732
5769
  } : { weekday: e }, r = t ? "format" : "standalone";
5733
- return this.weekdaysCache[r][e] || (this.weekdaysCache[r][e] = Vn((e) => this.extract(e, n, "weekday"))), this.weekdaysCache[r][e];
5770
+ return this.weekdaysCache[r][e] || (this.weekdaysCache[r][e] = Bn((e) => this.extract(e, n, "weekday"))), this.weekdaysCache[r][e];
5734
5771
  });
5735
5772
  }
5736
5773
  meridiems() {
5737
- return Hn(this, void 0, () => ai, () => {
5774
+ return Vn(this, void 0, () => ri, () => {
5738
5775
  if (!this.meridiemCache) {
5739
5776
  let e = {
5740
5777
  hour: "numeric",
@@ -5746,7 +5783,7 @@ var Wn = class {
5746
5783
  });
5747
5784
  }
5748
5785
  eras(e) {
5749
- return Hn(this, e, li, () => {
5786
+ return Vn(this, e, si, () => {
5750
5787
  let t = { era: e };
5751
5788
  return this.eraCache[e] || (this.eraCache[e] = [Q.utc(-40, 1, 1), Q.utc(2017, 1, 1)].map((e) => this.extract(e, t, "era"))), this.eraCache[e];
5752
5789
  });
@@ -5756,22 +5793,22 @@ var Wn = class {
5756
5793
  return r ? r.value : null;
5757
5794
  }
5758
5795
  numberFormatter(e = {}) {
5759
- return new Wn(this.intl, e.forceSimple || this.fastNumbers, e);
5796
+ return new Un(this.intl, e.forceSimple || this.fastNumbers, e);
5760
5797
  }
5761
5798
  dtFormatter(e, t = {}) {
5762
- return new Gn(e, this.intl, t);
5799
+ return new Wn(e, this.intl, t);
5763
5800
  }
5764
5801
  relFormatter(e = {}) {
5765
- return new Kn(this.intl, this.isEnglish(), e);
5802
+ return new Gn(this.intl, this.isEnglish(), e);
5766
5803
  }
5767
5804
  listFormatter(e = {}) {
5768
- return Tn(this.intl, e);
5805
+ return wn(this.intl, e);
5769
5806
  }
5770
5807
  isEnglish() {
5771
- return this.locale === "en" || this.locale.toLowerCase() === "en-us" || Fn(this.intl).locale.startsWith("en-us");
5808
+ return this.locale === "en" || this.locale.toLowerCase() === "en-us" || Pn(this.intl).locale.startsWith("en-us");
5772
5809
  }
5773
5810
  getWeekSettings() {
5774
- return this.weekSettings ? this.weekSettings : kr() ? Ln(this.locale) : qn;
5811
+ return this.weekSettings ? this.weekSettings : Or() ? In(this.locale) : Kn;
5775
5812
  }
5776
5813
  getStartOfWeek() {
5777
5814
  return this.getWeekSettings().firstDay;
@@ -5788,9 +5825,9 @@ var Wn = class {
5788
5825
  toString() {
5789
5826
  return `Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`;
5790
5827
  }
5791
- }, Jn = null, k = class e extends hn {
5828
+ }, qn = null, A = class e extends pn {
5792
5829
  static get utcInstance() {
5793
- return Jn === null && (Jn = new e(0)), Jn;
5830
+ return qn === null && (qn = new e(0)), qn;
5794
5831
  }
5795
5832
  static instance(t) {
5796
5833
  return t === 0 ? e.utcInstance : new e(t);
@@ -5798,7 +5835,7 @@ var Wn = class {
5798
5835
  static parseSpecifier(t) {
5799
5836
  if (t) {
5800
5837
  let n = t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);
5801
- if (n) return new e(Kr(n[1], n[2]));
5838
+ if (n) return new e(Wr(n[1], n[2]));
5802
5839
  }
5803
5840
  return null;
5804
5841
  }
@@ -5809,16 +5846,16 @@ var Wn = class {
5809
5846
  return "fixed";
5810
5847
  }
5811
5848
  get name() {
5812
- return this.fixed === 0 ? "UTC" : `UTC${Yr(this.fixed, "narrow")}`;
5849
+ return this.fixed === 0 ? "UTC" : `UTC${qr(this.fixed, "narrow")}`;
5813
5850
  }
5814
5851
  get ianaName() {
5815
- return this.fixed === 0 ? "Etc/UTC" : `Etc/GMT${Yr(-this.fixed, "narrow")}`;
5852
+ return this.fixed === 0 ? "Etc/UTC" : `Etc/GMT${qr(-this.fixed, "narrow")}`;
5816
5853
  }
5817
5854
  offsetName() {
5818
5855
  return this.name;
5819
5856
  }
5820
5857
  formatOffset(e, t) {
5821
- return Yr(this.fixed, t);
5858
+ return qr(this.fixed, t);
5822
5859
  }
5823
5860
  get isUniversal() {
5824
5861
  return !0;
@@ -5832,7 +5869,7 @@ var Wn = class {
5832
5869
  get isValid() {
5833
5870
  return !0;
5834
5871
  }
5835
- }, Yn = class extends hn {
5872
+ }, Jn = class extends pn {
5836
5873
  constructor(e) {
5837
5874
  super(), this.zoneName = e;
5838
5875
  }
@@ -5861,16 +5898,16 @@ var Wn = class {
5861
5898
  return !1;
5862
5899
  }
5863
5900
  };
5864
- function A(e, t) {
5865
- if (F(e) || e === null) return t;
5866
- if (e instanceof hn) return e;
5867
- if (Er(e)) {
5901
+ function j(e, t) {
5902
+ if (I(e) || e === null) return t;
5903
+ if (e instanceof pn) return e;
5904
+ if (Tr(e)) {
5868
5905
  let n = e.toLowerCase();
5869
- return n === "default" ? t : n === "local" || n === "system" ? _n.instance : n === "utc" || n === "gmt" ? k.utcInstance : k.parseSpecifier(n) || D.create(e);
5906
+ return n === "default" ? t : n === "local" || n === "system" ? hn.instance : n === "utc" || n === "gmt" ? A.utcInstance : A.parseSpecifier(n) || Sn.create(e);
5870
5907
  }
5871
- return I(e) ? k.instance(e) : typeof e == "object" && "offset" in e && typeof e.offset == "function" ? e : new Yn(e);
5908
+ return L(e) ? A.instance(e) : typeof e == "object" && "offset" in e && typeof e.offset == "function" ? e : new Jn(e);
5872
5909
  }
5873
- var Xn = {
5910
+ var Yn = {
5874
5911
  arab: "[٠-٩]",
5875
5912
  arabext: "[۰-۹]",
5876
5913
  bali: "[᭐-᭙]",
@@ -5892,7 +5929,7 @@ var Xn = {
5892
5929
  thai: "[๐-๙]",
5893
5930
  tibt: "[༠-༩]",
5894
5931
  latn: "\\d"
5895
- }, Zn = {
5932
+ }, Xn = {
5896
5933
  arab: [1632, 1641],
5897
5934
  arabext: [1776, 1785],
5898
5935
  bali: [6992, 7001],
@@ -5912,16 +5949,16 @@ var Xn = {
5912
5949
  telu: [3174, 3183],
5913
5950
  thai: [3664, 3673],
5914
5951
  tibt: [3872, 3881]
5915
- }, Qn = Xn.hanidec.replace(/[\[|\]]/g, "").split("");
5916
- function $n(e) {
5952
+ }, Zn = Yn.hanidec.replace(/[\[|\]]/g, "").split("");
5953
+ function Qn(e) {
5917
5954
  let t = parseInt(e, 10);
5918
5955
  if (isNaN(t)) {
5919
5956
  t = "";
5920
5957
  for (let n = 0; n < e.length; n++) {
5921
5958
  let r = e.charCodeAt(n);
5922
- if (e[n].search(Xn.hanidec) !== -1) t += Qn.indexOf(e[n]);
5923
- else for (let e in Zn) {
5924
- let [n, i] = Zn[e];
5959
+ if (e[n].search(Yn.hanidec) !== -1) t += Zn.indexOf(e[n]);
5960
+ else for (let e in Xn) {
5961
+ let [n, i] = Xn[e];
5925
5962
  r >= n && r <= i && (t += r - n);
5926
5963
  }
5927
5964
  }
@@ -5929,76 +5966,76 @@ function $n(e) {
5929
5966
  }
5930
5967
  return t;
5931
5968
  }
5932
- var er = /* @__PURE__ */ new Map();
5933
- function tr() {
5934
- er.clear();
5969
+ var $n = /* @__PURE__ */ new Map();
5970
+ function er() {
5971
+ $n.clear();
5935
5972
  }
5936
- function j({ numberingSystem: e }, t = "") {
5937
- let n = e || "latn", r = er.get(n);
5938
- r === void 0 && (r = /* @__PURE__ */ new Map(), er.set(n, r));
5973
+ function M({ numberingSystem: e }, t = "") {
5974
+ let n = e || "latn", r = $n.get(n);
5975
+ r === void 0 && (r = /* @__PURE__ */ new Map(), $n.set(n, r));
5939
5976
  let i = r.get(t);
5940
- return i === void 0 && (i = RegExp(`${Xn[n]}${t}`), r.set(t, i)), i;
5977
+ return i === void 0 && (i = RegExp(`${Yn[n]}${t}`), r.set(t, i)), i;
5941
5978
  }
5942
- var nr = () => Date.now(), rr = "system", ir = null, ar = null, or = null, sr = 60, cr, lr = null, M = class {
5979
+ var tr = () => Date.now(), nr = "system", rr = null, ir = null, ar = null, or = 60, sr, cr = null, N = class {
5943
5980
  static get now() {
5944
- return nr;
5981
+ return tr;
5945
5982
  }
5946
5983
  static set now(e) {
5947
- nr = e;
5984
+ tr = e;
5948
5985
  }
5949
5986
  static set defaultZone(e) {
5950
- rr = e;
5987
+ nr = e;
5951
5988
  }
5952
5989
  static get defaultZone() {
5953
- return A(rr, _n.instance);
5990
+ return j(nr, hn.instance);
5954
5991
  }
5955
5992
  static get defaultLocale() {
5956
- return ir;
5993
+ return rr;
5957
5994
  }
5958
5995
  static set defaultLocale(e) {
5959
- ir = e;
5996
+ rr = e;
5960
5997
  }
5961
5998
  static get defaultNumberingSystem() {
5962
- return ar;
5999
+ return ir;
5963
6000
  }
5964
6001
  static set defaultNumberingSystem(e) {
5965
- ar = e;
6002
+ ir = e;
5966
6003
  }
5967
6004
  static get defaultOutputCalendar() {
5968
- return or;
6005
+ return ar;
5969
6006
  }
5970
6007
  static set defaultOutputCalendar(e) {
5971
- or = e;
6008
+ ar = e;
5972
6009
  }
5973
6010
  static get defaultWeekSettings() {
5974
- return lr;
6011
+ return cr;
5975
6012
  }
5976
6013
  static set defaultWeekSettings(e) {
5977
- lr = Pr(e);
6014
+ cr = Mr(e);
5978
6015
  }
5979
6016
  static get twoDigitCutoffYear() {
5980
- return sr;
6017
+ return or;
5981
6018
  }
5982
6019
  static set twoDigitCutoffYear(e) {
5983
- sr = e % 100;
6020
+ or = e % 100;
5984
6021
  }
5985
6022
  static get throwOnInvalid() {
5986
- return cr;
6023
+ return sr;
5987
6024
  }
5988
6025
  static set throwOnInvalid(e) {
5989
- cr = e;
6026
+ sr = e;
5990
6027
  }
5991
6028
  static resetCaches() {
5992
- O.resetCache(), D.resetCache(), Q.resetCache(), tr();
6029
+ k.resetCache(), Sn.resetCache(), Q.resetCache(), er();
5993
6030
  }
5994
- }, N = class {
6031
+ }, P = class {
5995
6032
  constructor(e, t) {
5996
6033
  this.reason = e, this.explanation = t;
5997
6034
  }
5998
6035
  toMessage() {
5999
6036
  return this.explanation ? `${this.reason}: ${this.explanation}` : this.reason;
6000
6037
  }
6001
- }, ur = [
6038
+ }, lr = [
6002
6039
  0,
6003
6040
  31,
6004
6041
  59,
@@ -6011,7 +6048,7 @@ var nr = () => Date.now(), rr = "system", ir = null, ar = null, or = null, sr =
6011
6048
  273,
6012
6049
  304,
6013
6050
  334
6014
- ], dr = [
6051
+ ], ur = [
6015
6052
  0,
6016
6053
  31,
6017
6054
  60,
@@ -6025,69 +6062,69 @@ var nr = () => Date.now(), rr = "system", ir = null, ar = null, or = null, sr =
6025
6062
  305,
6026
6063
  335
6027
6064
  ];
6028
- function P(e, t) {
6029
- return new N("unit out of range", `you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`);
6065
+ function F(e, t) {
6066
+ return new P("unit out of range", `you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`);
6030
6067
  }
6031
- function fr(e, t, n) {
6068
+ function dr(e, t, n) {
6032
6069
  let r = new Date(Date.UTC(e, t - 1, n));
6033
6070
  e < 100 && e >= 0 && r.setUTCFullYear(r.getUTCFullYear() - 1900);
6034
6071
  let i = r.getUTCDay();
6035
6072
  return i === 0 ? 7 : i;
6036
6073
  }
6037
- function pr(e, t, n) {
6038
- return n + (Rr(e) ? dr : ur)[t - 1];
6074
+ function fr(e, t, n) {
6075
+ return n + (Ir(e) ? ur : lr)[t - 1];
6039
6076
  }
6040
- function mr(e, t) {
6041
- let n = Rr(e) ? dr : ur, r = n.findIndex((e) => e < t), i = t - n[r];
6077
+ function pr(e, t) {
6078
+ let n = Ir(e) ? ur : lr, r = n.findIndex((e) => e < t), i = t - n[r];
6042
6079
  return {
6043
6080
  month: r + 1,
6044
6081
  day: i
6045
6082
  };
6046
6083
  }
6047
- function hr(e, t) {
6084
+ function mr(e, t) {
6048
6085
  return (e - t + 7) % 7 + 1;
6049
6086
  }
6050
- function gr(e, t = 4, n = 1) {
6051
- let { year: r, month: i, day: a } = e, o = pr(r, i, a), s = hr(fr(r, i, a), n), c = Math.floor((o - s + 14 - t) / 7), l;
6052
- return c < 1 ? (l = r - 1, c = Ur(l, t, n)) : c > Ur(r, t, n) ? (l = r + 1, c = 1) : l = r, {
6087
+ function hr(e, t = 4, n = 1) {
6088
+ let { year: r, month: i, day: a } = e, o = fr(r, i, a), s = mr(dr(r, i, a), n), c = Math.floor((o - s + 14 - t) / 7), l;
6089
+ return c < 1 ? (l = r - 1, c = Vr(l, t, n)) : c > Vr(r, t, n) ? (l = r + 1, c = 1) : l = r, {
6053
6090
  weekYear: l,
6054
6091
  weekNumber: c,
6055
6092
  weekday: s,
6056
- ...Xr(e)
6093
+ ...Jr(e)
6057
6094
  };
6058
6095
  }
6059
- function _r(e, t = 4, n = 1) {
6060
- let { weekYear: r, weekNumber: i, weekday: a } = e, o = hr(fr(r, 1, t), n), s = zr(r), c = i * 7 + a - o - 7 + t, l;
6061
- c < 1 ? (l = r - 1, c += zr(l)) : c > s ? (l = r + 1, c -= zr(r)) : l = r;
6062
- let { month: u, day: d } = mr(l, c);
6096
+ function gr(e, t = 4, n = 1) {
6097
+ let { weekYear: r, weekNumber: i, weekday: a } = e, o = mr(dr(r, 1, t), n), s = Lr(r), c = i * 7 + a - o - 7 + t, l;
6098
+ c < 1 ? (l = r - 1, c += Lr(l)) : c > s ? (l = r + 1, c -= Lr(r)) : l = r;
6099
+ let { month: u, day: d } = pr(l, c);
6063
6100
  return {
6064
6101
  year: l,
6065
6102
  month: u,
6066
6103
  day: d,
6067
- ...Xr(e)
6104
+ ...Jr(e)
6068
6105
  };
6069
6106
  }
6070
- function vr(e) {
6107
+ function _r(e) {
6071
6108
  let { year: t, month: n, day: r } = e;
6072
6109
  return {
6073
6110
  year: t,
6074
- ordinal: pr(t, n, r),
6075
- ...Xr(e)
6111
+ ordinal: fr(t, n, r),
6112
+ ...Jr(e)
6076
6113
  };
6077
6114
  }
6078
- function yr(e) {
6079
- let { year: t, ordinal: n } = e, { month: r, day: i } = mr(t, n);
6115
+ function vr(e) {
6116
+ let { year: t, ordinal: n } = e, { month: r, day: i } = pr(t, n);
6080
6117
  return {
6081
6118
  year: t,
6082
6119
  month: r,
6083
6120
  day: i,
6084
- ...Xr(e)
6121
+ ...Jr(e)
6085
6122
  };
6086
6123
  }
6087
- function br(e, t) {
6088
- if (!F(e.localWeekday) || !F(e.localWeekNumber) || !F(e.localWeekYear)) {
6089
- if (!F(e.weekday) || !F(e.weekNumber) || !F(e.weekYear)) throw new x("Cannot mix locale-based week fields with ISO-based week fields");
6090
- return F(e.localWeekday) || (e.weekday = e.localWeekday), F(e.localWeekNumber) || (e.weekNumber = e.localWeekNumber), F(e.localWeekYear) || (e.weekYear = e.localWeekYear), delete e.localWeekday, delete e.localWeekNumber, delete e.localWeekYear, {
6124
+ function yr(e, t) {
6125
+ if (!I(e.localWeekday) || !I(e.localWeekNumber) || !I(e.localWeekYear)) {
6126
+ if (!I(e.weekday) || !I(e.weekNumber) || !I(e.weekYear)) throw new Ht("Cannot mix locale-based week fields with ISO-based week fields");
6127
+ return I(e.localWeekday) || (e.weekday = e.localWeekday), I(e.localWeekNumber) || (e.weekNumber = e.localWeekNumber), I(e.localWeekYear) || (e.weekYear = e.localWeekYear), delete e.localWeekday, delete e.localWeekNumber, delete e.localWeekYear, {
6091
6128
  minDaysInFirstWeek: t.getMinDaysInFirstWeek(),
6092
6129
  startOfWeek: t.getStartOfWeek()
6093
6130
  };
@@ -6097,99 +6134,99 @@ function br(e, t) {
6097
6134
  startOfWeek: 1
6098
6135
  };
6099
6136
  }
6100
- function xr(e, t = 4, n = 1) {
6101
- let r = Tr(e.weekYear), i = L(e.weekNumber, 1, Ur(e.weekYear, t, n)), a = L(e.weekday, 1, 7);
6102
- return r ? i ? !a && P("weekday", e.weekday) : P("week", e.weekNumber) : P("weekYear", e.weekYear);
6137
+ function br(e, t = 4, n = 1) {
6138
+ let r = wr(e.weekYear), i = z(e.weekNumber, 1, Vr(e.weekYear, t, n)), a = z(e.weekday, 1, 7);
6139
+ return r ? i ? !a && F("weekday", e.weekday) : F("week", e.weekNumber) : F("weekYear", e.weekYear);
6140
+ }
6141
+ function xr(e) {
6142
+ let t = wr(e.year), n = z(e.ordinal, 1, Lr(e.year));
6143
+ return t ? !n && F("ordinal", e.ordinal) : F("year", e.year);
6103
6144
  }
6104
6145
  function Sr(e) {
6105
- let t = Tr(e.year), n = L(e.ordinal, 1, zr(e.year));
6106
- return t ? !n && P("ordinal", e.ordinal) : P("year", e.year);
6146
+ let t = wr(e.year), n = z(e.month, 1, 12), r = z(e.day, 1, Rr(e.year, e.month));
6147
+ return t ? n ? !r && F("day", e.day) : F("month", e.month) : F("year", e.year);
6107
6148
  }
6108
6149
  function Cr(e) {
6109
- let t = Tr(e.year), n = L(e.month, 1, 12), r = L(e.day, 1, Br(e.year, e.month));
6110
- return t ? n ? !r && P("day", e.day) : P("month", e.month) : P("year", e.year);
6111
- }
6112
- function wr(e) {
6113
- let { hour: t, minute: n, second: r, millisecond: i } = e, a = L(t, 0, 23) || t === 24 && n === 0 && r === 0 && i === 0, o = L(n, 0, 59), s = L(r, 0, 59), c = L(i, 0, 999);
6114
- return a ? o ? s ? !c && P("millisecond", i) : P("second", r) : P("minute", n) : P("hour", t);
6150
+ let { hour: t, minute: n, second: r, millisecond: i } = e, a = z(t, 0, 23) || t === 24 && n === 0 && r === 0 && i === 0, o = z(n, 0, 59), s = z(r, 0, 59), c = z(i, 0, 999);
6151
+ return a ? o ? s ? !c && F("millisecond", i) : F("second", r) : F("minute", n) : F("hour", t);
6115
6152
  }
6116
- function F(e) {
6153
+ function I(e) {
6117
6154
  return e === void 0;
6118
6155
  }
6119
- function I(e) {
6156
+ function L(e) {
6120
6157
  return typeof e == "number";
6121
6158
  }
6122
- function Tr(e) {
6159
+ function wr(e) {
6123
6160
  return typeof e == "number" && e % 1 == 0;
6124
6161
  }
6125
- function Er(e) {
6162
+ function Tr(e) {
6126
6163
  return typeof e == "string";
6127
6164
  }
6128
- function Dr(e) {
6165
+ function Er(e) {
6129
6166
  return Object.prototype.toString.call(e) === "[object Date]";
6130
6167
  }
6131
- function Or() {
6168
+ function Dr() {
6132
6169
  try {
6133
6170
  return typeof Intl < "u" && !!Intl.RelativeTimeFormat;
6134
6171
  } catch {
6135
6172
  return !1;
6136
6173
  }
6137
6174
  }
6138
- function kr() {
6175
+ function Or() {
6139
6176
  try {
6140
6177
  return typeof Intl < "u" && !!Intl.Locale && ("weekInfo" in Intl.Locale.prototype || "getWeekInfo" in Intl.Locale.prototype);
6141
6178
  } catch {
6142
6179
  return !1;
6143
6180
  }
6144
6181
  }
6145
- function Ar(e) {
6182
+ function kr(e) {
6146
6183
  return Array.isArray(e) ? e : [e];
6147
6184
  }
6148
- function jr(e, t, n) {
6185
+ function Ar(e, t, n) {
6149
6186
  if (e.length !== 0) return e.reduce((e, r) => {
6150
6187
  let i = [t(r), r];
6151
6188
  return e && n(e[0], i[0]) === e[0] ? e : i;
6152
6189
  }, null)[1];
6153
6190
  }
6154
- function Mr(e, t) {
6191
+ function jr(e, t) {
6155
6192
  return t.reduce((t, n) => (t[n] = e[n], t), {});
6156
6193
  }
6157
- function Nr(e, t) {
6194
+ function R(e, t) {
6158
6195
  return Object.prototype.hasOwnProperty.call(e, t);
6159
6196
  }
6160
- function Pr(e) {
6197
+ function Mr(e) {
6161
6198
  if (e == null) return null;
6162
- if (typeof e != "object") throw new S("Week settings must be an object");
6163
- if (!L(e.firstDay, 1, 7) || !L(e.minimalDays, 1, 7) || !Array.isArray(e.weekend) || e.weekend.some((e) => !L(e, 1, 7))) throw new S("Invalid week settings");
6199
+ if (typeof e != "object") throw new w("Week settings must be an object");
6200
+ if (!z(e.firstDay, 1, 7) || !z(e.minimalDays, 1, 7) || !Array.isArray(e.weekend) || e.weekend.some((e) => !z(e, 1, 7))) throw new w("Invalid week settings");
6164
6201
  return {
6165
6202
  firstDay: e.firstDay,
6166
6203
  minimalDays: e.minimalDays,
6167
6204
  weekend: Array.from(e.weekend)
6168
6205
  };
6169
6206
  }
6170
- function L(e, t, n) {
6171
- return Tr(e) && e >= t && e <= n;
6207
+ function z(e, t, n) {
6208
+ return wr(e) && e >= t && e <= n;
6172
6209
  }
6173
- function Fr(e, t) {
6210
+ function Nr(e, t) {
6174
6211
  return e - t * Math.floor(e / t);
6175
6212
  }
6176
- function R(e, t = 2) {
6213
+ function B(e, t = 2) {
6177
6214
  let n = e < 0, r;
6178
6215
  return r = n ? "-" + ("" + -e).padStart(t, "0") : ("" + e).padStart(t, "0"), r;
6179
6216
  }
6180
- function z(e) {
6181
- if (!(F(e) || e === null || e === "")) return parseInt(e, 10);
6217
+ function V(e) {
6218
+ if (!(I(e) || e === null || e === "")) return parseInt(e, 10);
6182
6219
  }
6183
- function B(e) {
6184
- if (!(F(e) || e === null || e === "")) return parseFloat(e);
6220
+ function H(e) {
6221
+ if (!(I(e) || e === null || e === "")) return parseFloat(e);
6185
6222
  }
6186
- function Ir(e) {
6187
- if (!(F(e) || e === null || e === "")) {
6223
+ function Pr(e) {
6224
+ if (!(I(e) || e === null || e === "")) {
6188
6225
  let t = parseFloat("0." + e) * 1e3;
6189
6226
  return Math.floor(t);
6190
6227
  }
6191
6228
  }
6192
- function Lr(e, t, n = "round") {
6229
+ function Fr(e, t, n = "round") {
6193
6230
  let r = 10 ** t;
6194
6231
  switch (n) {
6195
6232
  case "expand": return e > 0 ? Math.ceil(e * r) / r : Math.floor(e * r) / r;
@@ -6200,15 +6237,15 @@ function Lr(e, t, n = "round") {
6200
6237
  default: throw RangeError(`Value rounding ${n} is out of range`);
6201
6238
  }
6202
6239
  }
6203
- function Rr(e) {
6240
+ function Ir(e) {
6204
6241
  return e % 4 == 0 && (e % 100 != 0 || e % 400 == 0);
6205
6242
  }
6206
- function zr(e) {
6207
- return Rr(e) ? 366 : 365;
6243
+ function Lr(e) {
6244
+ return Ir(e) ? 366 : 365;
6208
6245
  }
6209
- function Br(e, t) {
6210
- let n = Fr(t - 1, 12) + 1, r = e + (t - n) / 12;
6211
- return n === 2 ? Rr(r) ? 29 : 28 : [
6246
+ function Rr(e, t) {
6247
+ let n = Nr(t - 1, 12) + 1, r = e + (t - n) / 12;
6248
+ return n === 2 ? Ir(r) ? 29 : 28 : [
6212
6249
  31,
6213
6250
  null,
6214
6251
  31,
@@ -6223,21 +6260,21 @@ function Br(e, t) {
6223
6260
  31
6224
6261
  ][n - 1];
6225
6262
  }
6226
- function Vr(e) {
6263
+ function zr(e) {
6227
6264
  let t = Date.UTC(e.year, e.month - 1, e.day, e.hour, e.minute, e.second, e.millisecond);
6228
6265
  return e.year < 100 && e.year >= 0 && (t = new Date(t), t.setUTCFullYear(e.year, e.month - 1, e.day)), +t;
6229
6266
  }
6230
- function Hr(e, t, n) {
6231
- return -hr(fr(e, 1, t), n) + t - 1;
6267
+ function Br(e, t, n) {
6268
+ return -mr(dr(e, 1, t), n) + t - 1;
6232
6269
  }
6233
- function Ur(e, t = 4, n = 1) {
6234
- let r = Hr(e, t, n), i = Hr(e + 1, t, n);
6235
- return (zr(e) - r + i) / 7;
6270
+ function Vr(e, t = 4, n = 1) {
6271
+ let r = Br(e, t, n), i = Br(e + 1, t, n);
6272
+ return (Lr(e) - r + i) / 7;
6236
6273
  }
6237
- function Wr(e) {
6238
- return e > 99 ? e : e > M.twoDigitCutoffYear ? 1900 + e : 2e3 + e;
6274
+ function Hr(e) {
6275
+ return e > 99 ? e : e > N.twoDigitCutoffYear ? 1900 + e : 2e3 + e;
6239
6276
  }
6240
- function Gr(e, t, n, r = null) {
6277
+ function Ur(e, t, n, r = null) {
6241
6278
  let i = new Date(e), a = {
6242
6279
  hourCycle: "h23",
6243
6280
  year: "numeric",
@@ -6253,44 +6290,44 @@ function Gr(e, t, n, r = null) {
6253
6290
  }, s = new Intl.DateTimeFormat(n, o).formatToParts(i).find((e) => e.type.toLowerCase() === "timezonename");
6254
6291
  return s ? s.value : null;
6255
6292
  }
6256
- function Kr(e, t) {
6293
+ function Wr(e, t) {
6257
6294
  let n = parseInt(e, 10);
6258
6295
  Number.isNaN(n) && (n = 0);
6259
6296
  let r = parseInt(t, 10) || 0, i = n < 0 || Object.is(n, -0) ? -r : r;
6260
6297
  return n * 60 + i;
6261
6298
  }
6262
- function qr(e) {
6299
+ function Gr(e) {
6263
6300
  let t = Number(e);
6264
- if (typeof e == "boolean" || e === "" || !Number.isFinite(t)) throw new S(`Invalid unit value ${e}`);
6301
+ if (typeof e == "boolean" || e === "" || !Number.isFinite(t)) throw new w(`Invalid unit value ${e}`);
6265
6302
  return t;
6266
6303
  }
6267
- function Jr(e, t) {
6304
+ function Kr(e, t) {
6268
6305
  let n = {};
6269
- for (let r in e) if (Nr(e, r)) {
6306
+ for (let r in e) if (R(e, r)) {
6270
6307
  let i = e[r];
6271
6308
  if (i == null) continue;
6272
- n[t(r)] = qr(i);
6309
+ n[t(r)] = Gr(i);
6273
6310
  }
6274
6311
  return n;
6275
6312
  }
6276
- function Yr(e, t) {
6313
+ function qr(e, t) {
6277
6314
  let n = Math.trunc(Math.abs(e / 60)), r = Math.trunc(Math.abs(e % 60)), i = e >= 0 ? "+" : "-";
6278
6315
  switch (t) {
6279
- case "short": return `${i}${R(n, 2)}:${R(r, 2)}`;
6316
+ case "short": return `${i}${B(n, 2)}:${B(r, 2)}`;
6280
6317
  case "narrow": return `${i}${n}${r > 0 ? `:${r}` : ""}`;
6281
- case "techie": return `${i}${R(n, 2)}${R(r, 2)}`;
6318
+ case "techie": return `${i}${B(n, 2)}${B(r, 2)}`;
6282
6319
  default: throw RangeError(`Value format ${t} is out of range for property format`);
6283
6320
  }
6284
6321
  }
6285
- function Xr(e) {
6286
- return Mr(e, [
6322
+ function Jr(e) {
6323
+ return jr(e, [
6287
6324
  "hour",
6288
6325
  "minute",
6289
6326
  "second",
6290
6327
  "millisecond"
6291
6328
  ]);
6292
6329
  }
6293
- var Zr = [
6330
+ var Yr = [
6294
6331
  "January",
6295
6332
  "February",
6296
6333
  "March",
@@ -6303,7 +6340,7 @@ var Zr = [
6303
6340
  "October",
6304
6341
  "November",
6305
6342
  "December"
6306
- ], Qr = [
6343
+ ], Xr = [
6307
6344
  "Jan",
6308
6345
  "Feb",
6309
6346
  "Mar",
@@ -6316,7 +6353,7 @@ var Zr = [
6316
6353
  "Oct",
6317
6354
  "Nov",
6318
6355
  "Dec"
6319
- ], $r = [
6356
+ ], Zr = [
6320
6357
  "J",
6321
6358
  "F",
6322
6359
  "M",
@@ -6330,11 +6367,11 @@ var Zr = [
6330
6367
  "N",
6331
6368
  "D"
6332
6369
  ];
6333
- function ei(e) {
6370
+ function Qr(e) {
6334
6371
  switch (e) {
6335
- case "narrow": return [...$r];
6336
- case "short": return [...Qr];
6337
- case "long": return [...Zr];
6372
+ case "narrow": return [...Zr];
6373
+ case "short": return [...Xr];
6374
+ case "long": return [...Yr];
6338
6375
  case "numeric": return [
6339
6376
  "1",
6340
6377
  "2",
@@ -6366,7 +6403,7 @@ function ei(e) {
6366
6403
  default: return null;
6367
6404
  }
6368
6405
  }
6369
- var ti = [
6406
+ var $r = [
6370
6407
  "Monday",
6371
6408
  "Tuesday",
6372
6409
  "Wednesday",
@@ -6374,7 +6411,7 @@ var ti = [
6374
6411
  "Friday",
6375
6412
  "Saturday",
6376
6413
  "Sunday"
6377
- ], ni = [
6414
+ ], ei = [
6378
6415
  "Mon",
6379
6416
  "Tue",
6380
6417
  "Wed",
@@ -6382,7 +6419,7 @@ var ti = [
6382
6419
  "Fri",
6383
6420
  "Sat",
6384
6421
  "Sun"
6385
- ], ri = [
6422
+ ], ti = [
6386
6423
  "M",
6387
6424
  "T",
6388
6425
  "W",
@@ -6391,11 +6428,11 @@ var ti = [
6391
6428
  "S",
6392
6429
  "S"
6393
6430
  ];
6394
- function ii(e) {
6431
+ function ni(e) {
6395
6432
  switch (e) {
6396
- case "narrow": return [...ri];
6397
- case "short": return [...ni];
6398
- case "long": return [...ti];
6433
+ case "narrow": return [...ti];
6434
+ case "short": return [...ei];
6435
+ case "long": return [...$r];
6399
6436
  case "numeric": return [
6400
6437
  "1",
6401
6438
  "2",
@@ -6408,28 +6445,28 @@ function ii(e) {
6408
6445
  default: return null;
6409
6446
  }
6410
6447
  }
6411
- var ai = ["AM", "PM"], oi = ["Before Christ", "Anno Domini"], si = ["BC", "AD"], ci = ["B", "A"];
6412
- function li(e) {
6448
+ var ri = ["AM", "PM"], ii = ["Before Christ", "Anno Domini"], ai = ["BC", "AD"], oi = ["B", "A"];
6449
+ function si(e) {
6413
6450
  switch (e) {
6414
- case "narrow": return [...ci];
6415
- case "short": return [...si];
6416
- case "long": return [...oi];
6451
+ case "narrow": return [...oi];
6452
+ case "short": return [...ai];
6453
+ case "long": return [...ii];
6417
6454
  default: return null;
6418
6455
  }
6419
6456
  }
6420
- function ui(e) {
6421
- return ai[e.hour < 12 ? 0 : 1];
6457
+ function ci(e) {
6458
+ return ri[e.hour < 12 ? 0 : 1];
6422
6459
  }
6423
- function di(e, t) {
6424
- return ii(t)[e.weekday - 1];
6460
+ function li(e, t) {
6461
+ return ni(t)[e.weekday - 1];
6425
6462
  }
6426
- function fi(e, t) {
6427
- return ei(t)[e.month - 1];
6463
+ function ui(e, t) {
6464
+ return Qr(t)[e.month - 1];
6428
6465
  }
6429
- function pi(e, t) {
6430
- return li(t)[e.year < 0 ? 0 : 1];
6466
+ function di(e, t) {
6467
+ return si(t)[e.year < 0 ? 0 : 1];
6431
6468
  }
6432
- function mi(e, t, n = "always", r = !1) {
6469
+ function fi(e, t, n = "always", r = !1) {
6433
6470
  let i = {
6434
6471
  years: ["year", "yr."],
6435
6472
  quarters: ["quarter", "qtr."],
@@ -6459,33 +6496,33 @@ function mi(e, t, n = "always", r = !1) {
6459
6496
  let o = Object.is(t, -0) || t < 0, s = Math.abs(t), c = s === 1, l = i[e], u = r ? c ? l[1] : l[2] || l[1] : c ? i[e][0] : e;
6460
6497
  return o ? `${s} ${u} ago` : `in ${s} ${u}`;
6461
6498
  }
6462
- function hi(e, t) {
6499
+ function pi(e, t) {
6463
6500
  let n = "";
6464
6501
  for (let r of e) r.literal ? n += r.val : n += t(r.val);
6465
6502
  return n;
6466
6503
  }
6467
- var gi = {
6468
- D: Kt,
6469
- DD: qt,
6470
- DDD: Yt,
6471
- DDDD: Xt,
6472
- t: Zt,
6473
- tt: Qt,
6474
- ttt: $t,
6475
- tttt: en,
6476
- T: tn,
6477
- TT: nn,
6478
- TTT: rn,
6479
- TTTT: an,
6480
- f: on,
6481
- ff: cn,
6482
- fff: dn,
6483
- ffff: pn,
6484
- F: sn,
6485
- FF: ln,
6486
- FFF: fn,
6487
- FFFF: mn
6488
- }, V = class e {
6504
+ var mi = {
6505
+ D: Wt,
6506
+ DD: Gt,
6507
+ DDD: qt,
6508
+ DDDD: Jt,
6509
+ t: Yt,
6510
+ tt: Xt,
6511
+ ttt: Zt,
6512
+ tttt: Qt,
6513
+ T: $t,
6514
+ TT: en,
6515
+ TTT: tn,
6516
+ TTTT: nn,
6517
+ f: rn,
6518
+ ff: on,
6519
+ fff: ln,
6520
+ ffff: dn,
6521
+ F: an,
6522
+ FF: sn,
6523
+ FFF: un,
6524
+ FFFF: fn
6525
+ }, U = class e {
6489
6526
  static create(t, n = {}) {
6490
6527
  return new e(t, n);
6491
6528
  }
@@ -6507,7 +6544,7 @@ var gi = {
6507
6544
  }), i;
6508
6545
  }
6509
6546
  static macroTokenToFormatOpts(e) {
6510
- return gi[e];
6547
+ return mi[e];
6511
6548
  }
6512
6549
  constructor(e, t) {
6513
6550
  this.opts = t, this.loc = e, this.systemLoc = null;
@@ -6537,26 +6574,26 @@ var gi = {
6537
6574
  return this.dtFormatter(e, t).resolvedOptions();
6538
6575
  }
6539
6576
  num(e, t = 0, n = void 0) {
6540
- if (this.opts.forceSimple) return R(e, t);
6577
+ if (this.opts.forceSimple) return B(e, t);
6541
6578
  let r = { ...this.opts };
6542
6579
  return t > 0 && (r.padTo = t), n && (r.signDisplay = n), this.loc.numberFormatter(r).format(e);
6543
6580
  }
6544
6581
  formatDateTimeFromString(t, n) {
6545
- let r = this.loc.listingMode() === "en", i = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", a = (e, n) => this.loc.extract(t, e, n), o = (e) => t.isOffsetFixed && t.offset === 0 && e.allowZ ? "Z" : t.isValid ? t.zone.formatOffset(t.ts, e.format) : "", s = () => r ? ui(t) : a({
6582
+ let r = this.loc.listingMode() === "en", i = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", a = (e, n) => this.loc.extract(t, e, n), o = (e) => t.isOffsetFixed && t.offset === 0 && e.allowZ ? "Z" : t.isValid ? t.zone.formatOffset(t.ts, e.format) : "", s = () => r ? ci(t) : a({
6546
6583
  hour: "numeric",
6547
6584
  hourCycle: "h12"
6548
- }, "dayperiod"), c = (e, n) => r ? fi(t, e) : a(n ? { month: e } : {
6585
+ }, "dayperiod"), c = (e, n) => r ? ui(t, e) : a(n ? { month: e } : {
6549
6586
  month: e,
6550
6587
  day: "numeric"
6551
- }, "month"), l = (e, n) => r ? di(t, e) : a(n ? { weekday: e } : {
6588
+ }, "month"), l = (e, n) => r ? li(t, e) : a(n ? { weekday: e } : {
6552
6589
  weekday: e,
6553
6590
  month: "long",
6554
6591
  day: "numeric"
6555
6592
  }, "weekday"), u = (n) => {
6556
6593
  let r = e.macroTokenToFormatOpts(n);
6557
6594
  return r ? this.formatWithSystemDefault(t, r) : n;
6558
- }, d = (e) => r ? pi(t, e) : a({ era: e }, "era");
6559
- return hi(e.parseFormat(n), (e) => {
6595
+ }, d = (e) => r ? di(t, e) : a({ era: e }, "era");
6596
+ return pi(e.parseFormat(n), (e) => {
6560
6597
  switch (e) {
6561
6598
  case "S": return this.num(t.millisecond);
6562
6599
  case "u":
@@ -6665,17 +6702,17 @@ var gi = {
6665
6702
  }
6666
6703
  return n;
6667
6704
  }, o = e.parseFormat(n), s = o.reduce((e, { literal: t, val: n }) => t ? e : e.concat(n), []), c = t.shiftTo(...s.map(i).filter((e) => e));
6668
- return hi(o, a(c, {
6705
+ return pi(o, a(c, {
6669
6706
  isNegativeDuration: c < 0,
6670
6707
  largestUnit: Object.keys(c.values)[0]
6671
6708
  }));
6672
6709
  }
6673
- }, _i = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;
6674
- function H(...e) {
6710
+ }, hi = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;
6711
+ function gi(...e) {
6675
6712
  let t = e.reduce((e, t) => e + t.source, "");
6676
6713
  return RegExp(`^${t}$`);
6677
6714
  }
6678
- function U(...e) {
6715
+ function _i(...e) {
6679
6716
  return (t) => e.reduce(([e, n, r], i) => {
6680
6717
  let [a, o, s] = i(t, r);
6681
6718
  return [
@@ -6692,7 +6729,7 @@ function U(...e) {
6692
6729
  1
6693
6730
  ]).slice(0, 2);
6694
6731
  }
6695
- function W(e, ...t) {
6732
+ function vi(e, ...t) {
6696
6733
  if (e == null) return [null, null];
6697
6734
  for (let [n, r] of t) {
6698
6735
  let t = n.exec(e);
@@ -6700,10 +6737,10 @@ function W(e, ...t) {
6700
6737
  }
6701
6738
  return [null, null];
6702
6739
  }
6703
- function vi(...e) {
6740
+ function yi(...e) {
6704
6741
  return (t, n) => {
6705
6742
  let r = {}, i = 0;
6706
- for (; i < e.length; i++) r[e[i]] = z(t[n + i]);
6743
+ for (; i < e.length; i++) r[e[i]] = V(t[n + i]);
6707
6744
  return [
6708
6745
  r,
6709
6746
  null,
@@ -6711,17 +6748,17 @@ function vi(...e) {
6711
6748
  ];
6712
6749
  };
6713
6750
  }
6714
- var yi = /(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/, bi = `(?:${yi.source}?(?:\\[(${_i.source})\\])?)?`, xi = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, Si = RegExp(`${xi.source}${bi}`), Ci = RegExp(`(?:[Tt]${Si.source})?`), wi = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, Ti = /(\d{4})-?W(\d\d)(?:-?(\d))?/, Ei = /(\d{4})-?(\d{3})/, Di = vi("weekYear", "weekNumber", "weekDay"), Oi = vi("year", "ordinal"), ki = /(\d{4})-(\d\d)-(\d\d)/, Ai = RegExp(`${xi.source} ?(?:${yi.source}|(${_i.source}))?`), ji = RegExp(`(?: ${Ai.source})?`);
6715
- function Mi(e, t, n) {
6751
+ var bi = /(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/, xi = `(?:${bi.source}?(?:\\[(${hi.source})\\])?)?`, Si = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, Ci = RegExp(`${Si.source}${xi}`), wi = RegExp(`(?:[Tt]${Ci.source})?`), Ti = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, Ei = /(\d{4})-?W(\d\d)(?:-?(\d))?/, Di = /(\d{4})-?(\d{3})/, Oi = yi("weekYear", "weekNumber", "weekDay"), ki = yi("year", "ordinal"), Ai = /(\d{4})-(\d\d)-(\d\d)/, ji = RegExp(`${Si.source} ?(?:${bi.source}|(${hi.source}))?`), Mi = RegExp(`(?: ${ji.source})?`);
6752
+ function W(e, t, n) {
6716
6753
  let r = e[t];
6717
- return F(r) ? n : z(r);
6754
+ return I(r) ? n : V(r);
6718
6755
  }
6719
6756
  function Ni(e, t) {
6720
6757
  return [
6721
6758
  {
6722
- year: Mi(e, t),
6723
- month: Mi(e, t + 1, 1),
6724
- day: Mi(e, t + 2, 1)
6759
+ year: W(e, t),
6760
+ month: W(e, t + 1, 1),
6761
+ day: W(e, t + 2, 1)
6725
6762
  },
6726
6763
  null,
6727
6764
  t + 3
@@ -6730,42 +6767,42 @@ function Ni(e, t) {
6730
6767
  function Pi(e, t) {
6731
6768
  return [
6732
6769
  {
6733
- hours: Mi(e, t, 0),
6734
- minutes: Mi(e, t + 1, 0),
6735
- seconds: Mi(e, t + 2, 0),
6736
- milliseconds: Ir(e[t + 3])
6770
+ hours: W(e, t, 0),
6771
+ minutes: W(e, t + 1, 0),
6772
+ seconds: W(e, t + 2, 0),
6773
+ milliseconds: Pr(e[t + 3])
6737
6774
  },
6738
6775
  null,
6739
6776
  t + 4
6740
6777
  ];
6741
6778
  }
6742
6779
  function Fi(e, t) {
6743
- let n = !e[t] && !e[t + 1], r = Kr(e[t + 1], e[t + 2]);
6780
+ let n = !e[t] && !e[t + 1], r = Wr(e[t + 1], e[t + 2]);
6744
6781
  return [
6745
6782
  {},
6746
- n ? null : k.instance(r),
6783
+ n ? null : A.instance(r),
6747
6784
  t + 3
6748
6785
  ];
6749
6786
  }
6750
6787
  function Ii(e, t) {
6751
6788
  return [
6752
6789
  {},
6753
- e[t] ? D.create(e[t]) : null,
6790
+ e[t] ? Sn.create(e[t]) : null,
6754
6791
  t + 1
6755
6792
  ];
6756
6793
  }
6757
- var Li = RegExp(`^T?${xi.source}$`), Ri = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
6794
+ var Li = RegExp(`^T?${Si.source}$`), Ri = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
6758
6795
  function zi(e) {
6759
6796
  let [t, n, r, i, a, o, s, c, l] = e, u = t[0] === "-", d = c && c[0] === "-", f = (e, t = !1) => e !== void 0 && (t || e && u) ? -e : e;
6760
6797
  return [{
6761
- years: f(B(n)),
6762
- months: f(B(r)),
6763
- weeks: f(B(i)),
6764
- days: f(B(a)),
6765
- hours: f(B(o)),
6766
- minutes: f(B(s)),
6767
- seconds: f(B(c), c === "-0"),
6768
- milliseconds: f(Ir(l), d)
6798
+ years: f(H(n)),
6799
+ months: f(H(r)),
6800
+ weeks: f(H(i)),
6801
+ days: f(H(a)),
6802
+ hours: f(H(o)),
6803
+ minutes: f(H(s)),
6804
+ seconds: f(H(c), c === "-0"),
6805
+ milliseconds: f(Pr(l), d)
6769
6806
  }];
6770
6807
  }
6771
6808
  var Bi = {
@@ -6781,18 +6818,18 @@ var Bi = {
6781
6818
  };
6782
6819
  function Vi(e, t, n, r, i, a, o) {
6783
6820
  let s = {
6784
- year: t.length === 2 ? Wr(z(t)) : z(t),
6785
- month: Qr.indexOf(n) + 1,
6786
- day: z(r),
6787
- hour: z(i),
6788
- minute: z(a)
6821
+ year: t.length === 2 ? Hr(V(t)) : V(t),
6822
+ month: Xr.indexOf(n) + 1,
6823
+ day: V(r),
6824
+ hour: V(i),
6825
+ minute: V(a)
6789
6826
  };
6790
- return o && (s.second = z(o)), e && (s.weekday = e.length > 3 ? ti.indexOf(e) + 1 : ni.indexOf(e) + 1), s;
6827
+ return o && (s.second = V(o)), e && (s.weekday = e.length > 3 ? $r.indexOf(e) + 1 : ei.indexOf(e) + 1), s;
6791
6828
  }
6792
6829
  var Hi = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;
6793
6830
  function Ui(e) {
6794
6831
  let [, t, n, r, i, a, o, s, c, l, u, d] = e, f = Vi(t, i, r, n, a, o, s), p;
6795
- return p = c ? Bi[c] : l ? 0 : Kr(u, d), [f, new k(p)];
6832
+ return p = c ? Bi[c] : l ? 0 : Wr(u, d), [f, new A(p)];
6796
6833
  }
6797
6834
  function Wi(e) {
6798
6835
  return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
@@ -6800,32 +6837,32 @@ function Wi(e) {
6800
6837
  var Gi = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/, Ki = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/, qi = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
6801
6838
  function Ji(e) {
6802
6839
  let [, t, n, r, i, a, o, s] = e;
6803
- return [Vi(t, i, r, n, a, o, s), k.utcInstance];
6840
+ return [Vi(t, i, r, n, a, o, s), A.utcInstance];
6804
6841
  }
6805
6842
  function Yi(e) {
6806
6843
  let [, t, n, r, i, a, o, s] = e;
6807
- return [Vi(t, s, n, r, i, a, o), k.utcInstance];
6844
+ return [Vi(t, s, n, r, i, a, o), A.utcInstance];
6808
6845
  }
6809
- var Xi = H(wi, Ci), Zi = H(Ti, Ci), Qi = H(Ei, Ci), $i = H(Si), ea = U(Ni, Pi, Fi, Ii), ta = U(Di, Pi, Fi, Ii), na = U(Oi, Pi, Fi, Ii), ra = U(Pi, Fi, Ii);
6846
+ var Xi = gi(Ti, wi), Zi = gi(Ei, wi), Qi = gi(Di, wi), $i = gi(Ci), ea = _i(Ni, Pi, Fi, Ii), ta = _i(Oi, Pi, Fi, Ii), na = _i(ki, Pi, Fi, Ii), ra = _i(Pi, Fi, Ii);
6810
6847
  function ia(e) {
6811
- return W(e, [Xi, ea], [Zi, ta], [Qi, na], [$i, ra]);
6848
+ return vi(e, [Xi, ea], [Zi, ta], [Qi, na], [$i, ra]);
6812
6849
  }
6813
6850
  function aa(e) {
6814
- return W(Wi(e), [Hi, Ui]);
6851
+ return vi(Wi(e), [Hi, Ui]);
6815
6852
  }
6816
6853
  function oa(e) {
6817
- return W(e, [Gi, Ji], [Ki, Ji], [qi, Yi]);
6854
+ return vi(e, [Gi, Ji], [Ki, Ji], [qi, Yi]);
6818
6855
  }
6819
6856
  function sa(e) {
6820
- return W(e, [Ri, zi]);
6857
+ return vi(e, [Ri, zi]);
6821
6858
  }
6822
- var ca = U(Pi);
6859
+ var ca = _i(Pi);
6823
6860
  function la(e) {
6824
- return W(e, [Li, ca]);
6861
+ return vi(e, [Li, ca]);
6825
6862
  }
6826
- var ua = H(ki, ji), da = H(Ai), fa = U(Pi, Fi, Ii);
6863
+ var ua = gi(Ai, Mi), da = gi(ji), fa = _i(Pi, Fi, Ii);
6827
6864
  function pa(e) {
6828
- return W(e, [ua, ea], [da, fa]);
6865
+ return vi(e, [ua, ea], [da, fa]);
6829
6866
  }
6830
6867
  var ma = "Invalid Duration", ha = {
6831
6868
  weeks: {
@@ -6939,14 +6976,14 @@ function ba(e, t) {
6939
6976
  function xa(e, t) {
6940
6977
  let n = ba(e, t) < 0 ? -1 : 1;
6941
6978
  K.reduceRight((r, i) => {
6942
- if (F(t[i])) return r;
6979
+ if (I(t[i])) return r;
6943
6980
  if (r) {
6944
6981
  let a = t[r] * n, o = e[i][r], s = Math.floor(a / o);
6945
6982
  t[i] += s * n, t[r] -= s * o * n;
6946
6983
  }
6947
6984
  return i;
6948
6985
  }, null), K.reduce((n, r) => {
6949
- if (F(t[r])) return n;
6986
+ if (I(t[r])) return n;
6950
6987
  if (n) {
6951
6988
  let i = t[n] % 1;
6952
6989
  t[n] -= i, t[r] += i * e[n][r];
@@ -6962,25 +6999,25 @@ function Sa(e) {
6962
6999
  var J = class e {
6963
7000
  constructor(e) {
6964
7001
  let t = e.conversionAccuracy === "longterm" || !1, n = t ? va : ga;
6965
- e.matrix && (n = e.matrix), this.values = e.values, this.loc = e.loc || O.create(), this.conversionAccuracy = t ? "longterm" : "casual", this.invalid = e.invalid || null, this.matrix = n, this.isLuxonDuration = !0;
7002
+ e.matrix && (n = e.matrix), this.values = e.values, this.loc = e.loc || k.create(), this.conversionAccuracy = t ? "longterm" : "casual", this.invalid = e.invalid || null, this.matrix = n, this.isLuxonDuration = !0;
6966
7003
  }
6967
7004
  static fromMillis(t, n) {
6968
7005
  return e.fromObject({ milliseconds: t }, n);
6969
7006
  }
6970
7007
  static fromObject(t, n = {}) {
6971
- if (typeof t != "object" || !t) throw new S(`Duration.fromObject: argument expected to be an object, got ${t === null ? "null" : typeof t}`);
7008
+ if (typeof t != "object" || !t) throw new w(`Duration.fromObject: argument expected to be an object, got ${t === null ? "null" : typeof t}`);
6972
7009
  return new e({
6973
- values: Jr(t, e.normalizeUnit),
6974
- loc: O.fromObject(n),
7010
+ values: Kr(t, e.normalizeUnit),
7011
+ loc: k.fromObject(n),
6975
7012
  conversionAccuracy: n.conversionAccuracy,
6976
7013
  matrix: n.matrix
6977
7014
  });
6978
7015
  }
6979
7016
  static fromDurationLike(t) {
6980
- if (I(t)) return e.fromMillis(t);
7017
+ if (L(t)) return e.fromMillis(t);
6981
7018
  if (e.isDuration(t)) return t;
6982
7019
  if (typeof t == "object") return e.fromObject(t);
6983
- throw new S(`Unknown duration argument ${t} of type ${typeof t}`);
7020
+ throw new w(`Unknown duration argument ${t} of type ${typeof t}`);
6984
7021
  }
6985
7022
  static fromISO(t, n) {
6986
7023
  let [r] = sa(t);
@@ -6991,9 +7028,9 @@ var J = class e {
6991
7028
  return r ? e.fromObject(r, n) : e.invalid("unparsable", `the input "${t}" can't be parsed as ISO 8601`);
6992
7029
  }
6993
7030
  static invalid(t, n = null) {
6994
- if (!t) throw new S("need to specify a reason the Duration is invalid");
6995
- let r = t instanceof N ? t : new N(t, n);
6996
- if (M.throwOnInvalid) throw new Wt(r);
7031
+ if (!t) throw new w("need to specify a reason the Duration is invalid");
7032
+ let r = t instanceof P ? t : new P(t, n);
7033
+ if (N.throwOnInvalid) throw new Vt(r);
6997
7034
  return new e({ invalid: r });
6998
7035
  }
6999
7036
  static normalizeUnit(e) {
@@ -7017,7 +7054,7 @@ var J = class e {
7017
7054
  millisecond: "milliseconds",
7018
7055
  milliseconds: "milliseconds"
7019
7056
  }[e && e.toLowerCase()];
7020
- if (!t) throw new Gt(e);
7057
+ if (!t) throw new Ut(e);
7021
7058
  return t;
7022
7059
  }
7023
7060
  static isDuration(e) {
@@ -7034,13 +7071,13 @@ var J = class e {
7034
7071
  ...t,
7035
7072
  floor: t.round !== !1 && t.floor !== !1
7036
7073
  };
7037
- return this.isValid ? V.create(this.loc, n).formatDurationFromString(this, e) : ma;
7074
+ return this.isValid ? U.create(this.loc, n).formatDurationFromString(this, e) : ma;
7038
7075
  }
7039
7076
  toHuman(e = {}) {
7040
7077
  if (!this.isValid) return ma;
7041
7078
  let t = e.showZeros !== !1, n = K.map((n) => {
7042
7079
  let r = this.values[n];
7043
- return F(r) || r === 0 && !t ? null : this.loc.numberFormatter({
7080
+ return I(r) || r === 0 && !t ? null : this.loc.numberFormatter({
7044
7081
  style: "unit",
7045
7082
  unitDisplay: "long",
7046
7083
  ...e,
@@ -7059,7 +7096,7 @@ var J = class e {
7059
7096
  toISO() {
7060
7097
  if (!this.isValid) return null;
7061
7098
  let e = "P";
7062
- return this.years !== 0 && (e += this.years + "Y"), (this.months !== 0 || this.quarters !== 0) && (e += this.months + this.quarters * 3 + "M"), this.weeks !== 0 && (e += this.weeks + "W"), this.days !== 0 && (e += this.days + "D"), (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) && (e += "T"), this.hours !== 0 && (e += this.hours + "H"), this.minutes !== 0 && (e += this.minutes + "M"), (this.seconds !== 0 || this.milliseconds !== 0) && (e += Lr(this.seconds + this.milliseconds / 1e3, 3) + "S"), e === "P" && (e += "T0S"), e;
7099
+ return this.years !== 0 && (e += this.years + "Y"), (this.months !== 0 || this.quarters !== 0) && (e += this.months + this.quarters * 3 + "M"), this.weeks !== 0 && (e += this.weeks + "W"), this.days !== 0 && (e += this.days + "D"), (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) && (e += "T"), this.hours !== 0 && (e += this.hours + "H"), this.minutes !== 0 && (e += this.minutes + "M"), (this.seconds !== 0 || this.milliseconds !== 0) && (e += Fr(this.seconds + this.milliseconds / 1e3, 3) + "S"), e === "P" && (e += "T0S"), e;
7063
7100
  }
7064
7101
  toISOTime(e = {}) {
7065
7102
  if (!this.isValid) return null;
@@ -7091,7 +7128,7 @@ var J = class e {
7091
7128
  plus(t) {
7092
7129
  if (!this.isValid) return this;
7093
7130
  let n = e.fromDurationLike(t), r = {};
7094
- for (let e of K) (Nr(n.values, e) || Nr(this.values, e)) && (r[e] = n.get(e) + this.get(e));
7131
+ for (let e of K) (R(n.values, e) || R(this.values, e)) && (r[e] = n.get(e) + this.get(e));
7095
7132
  return q(this, { values: r }, !0);
7096
7133
  }
7097
7134
  minus(t) {
@@ -7102,7 +7139,7 @@ var J = class e {
7102
7139
  mapUnits(e) {
7103
7140
  if (!this.isValid) return this;
7104
7141
  let t = {};
7105
- for (let n of Object.keys(this.values)) t[n] = qr(e(this.values[n], n));
7142
+ for (let n of Object.keys(this.values)) t[n] = Gr(e(this.values[n], n));
7106
7143
  return q(this, { values: t }, !0);
7107
7144
  }
7108
7145
  get(t) {
@@ -7112,7 +7149,7 @@ var J = class e {
7112
7149
  if (!this.isValid) return this;
7113
7150
  let n = {
7114
7151
  ...this.values,
7115
- ...Jr(t, e.normalizeUnit)
7152
+ ...Kr(t, e.normalizeUnit)
7116
7153
  };
7117
7154
  return q(this, { values: n });
7118
7155
  }
@@ -7148,10 +7185,10 @@ var J = class e {
7148
7185
  a = e;
7149
7186
  let t = 0;
7150
7187
  for (let n in r) t += this.matrix[n][e] * r[n], r[n] = 0;
7151
- I(i[e]) && (t += i[e]);
7188
+ L(i[e]) && (t += i[e]);
7152
7189
  let o = Math.trunc(t);
7153
7190
  n[e] = o, r[e] = (t * 1e3 - o * 1e3) / 1e3;
7154
- } else I(i[e]) && (r[e] = i[e]);
7191
+ } else L(i[e]) && (r[e] = i[e]);
7155
7192
  for (let e in r) r[e] !== 0 && (n[a] += e === a ? r[e] : r[e] / this.matrix[a][e]);
7156
7193
  return xa(this.matrix, n), q(this, { values: n }, !0);
7157
7194
  }
@@ -7222,9 +7259,9 @@ var Ta = class e {
7222
7259
  this.s = e.start, this.e = e.end, this.invalid = e.invalid || null, this.isLuxonInterval = !0;
7223
7260
  }
7224
7261
  static invalid(t, n = null) {
7225
- if (!t) throw new S("need to specify a reason the Interval is invalid");
7226
- let r = t instanceof N ? t : new N(t, n);
7227
- if (M.throwOnInvalid) throw new Ut(r);
7262
+ if (!t) throw new w("need to specify a reason the Interval is invalid");
7263
+ let r = t instanceof P ? t : new P(t, n);
7264
+ if (N.throwOnInvalid) throw new Bt(r);
7228
7265
  return new e({ invalid: r });
7229
7266
  }
7230
7267
  static fromDateTimes(t, n) {
@@ -7386,8 +7423,8 @@ var Ta = class e {
7386
7423
  [Symbol.for("nodejs.util.inspect.custom")]() {
7387
7424
  return this.isValid ? `Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }` : `Interval { Invalid, reason: ${this.invalidReason} }`;
7388
7425
  }
7389
- toLocaleString(e = Kt, t = {}) {
7390
- return this.isValid ? V.create(this.s.loc.clone(t), e).formatInterval(this) : Ca;
7426
+ toLocaleString(e = Wt, t = {}) {
7427
+ return this.isValid ? U.create(this.s.loc.clone(t), e).formatInterval(this) : Ca;
7391
7428
  }
7392
7429
  toISO(e) {
7393
7430
  return this.isValid ? `${this.s.toISO(e)}/${this.e.toISO(e)}` : Ca;
@@ -7408,47 +7445,47 @@ var Ta = class e {
7408
7445
  return e.fromDateTimes(t(this.s), t(this.e));
7409
7446
  }
7410
7447
  }, Ea = class {
7411
- static hasDST(e = M.defaultZone) {
7448
+ static hasDST(e = N.defaultZone) {
7412
7449
  let t = Q.now().setZone(e).set({ month: 12 });
7413
7450
  return !e.isUniversal && t.offset !== t.set({ month: 6 }).offset;
7414
7451
  }
7415
7452
  static isValidIANAZone(e) {
7416
- return D.isValidZone(e);
7453
+ return Sn.isValidZone(e);
7417
7454
  }
7418
7455
  static normalizeZone(e) {
7419
- return A(e, M.defaultZone);
7456
+ return j(e, N.defaultZone);
7420
7457
  }
7421
7458
  static getStartOfWeek({ locale: e = null, locObj: t = null } = {}) {
7422
- return (t || O.create(e)).getStartOfWeek();
7459
+ return (t || k.create(e)).getStartOfWeek();
7423
7460
  }
7424
7461
  static getMinimumDaysInFirstWeek({ locale: e = null, locObj: t = null } = {}) {
7425
- return (t || O.create(e)).getMinDaysInFirstWeek();
7462
+ return (t || k.create(e)).getMinDaysInFirstWeek();
7426
7463
  }
7427
7464
  static getWeekendWeekdays({ locale: e = null, locObj: t = null } = {}) {
7428
- return (t || O.create(e)).getWeekendDays().slice();
7465
+ return (t || k.create(e)).getWeekendDays().slice();
7429
7466
  }
7430
7467
  static months(e = "long", { locale: t = null, numberingSystem: n = null, locObj: r = null, outputCalendar: i = "gregory" } = {}) {
7431
- return (r || O.create(t, n, i)).months(e);
7468
+ return (r || k.create(t, n, i)).months(e);
7432
7469
  }
7433
7470
  static monthsFormat(e = "long", { locale: t = null, numberingSystem: n = null, locObj: r = null, outputCalendar: i = "gregory" } = {}) {
7434
- return (r || O.create(t, n, i)).months(e, !0);
7471
+ return (r || k.create(t, n, i)).months(e, !0);
7435
7472
  }
7436
7473
  static weekdays(e = "long", { locale: t = null, numberingSystem: n = null, locObj: r = null } = {}) {
7437
- return (r || O.create(t, n, null)).weekdays(e);
7474
+ return (r || k.create(t, n, null)).weekdays(e);
7438
7475
  }
7439
7476
  static weekdaysFormat(e = "long", { locale: t = null, numberingSystem: n = null, locObj: r = null } = {}) {
7440
- return (r || O.create(t, n, null)).weekdays(e, !0);
7477
+ return (r || k.create(t, n, null)).weekdays(e, !0);
7441
7478
  }
7442
7479
  static meridiems({ locale: e = null } = {}) {
7443
- return O.create(e).meridiems();
7480
+ return k.create(e).meridiems();
7444
7481
  }
7445
7482
  static eras(e = "short", { locale: t = null } = {}) {
7446
- return O.create(t, null, "gregory").eras(e);
7483
+ return k.create(t, null, "gregory").eras(e);
7447
7484
  }
7448
7485
  static features() {
7449
7486
  return {
7450
- relative: Or(),
7451
- localeWeek: kr()
7487
+ relative: Dr(),
7488
+ localeWeek: Or()
7452
7489
  };
7453
7490
  }
7454
7491
  };
@@ -7490,7 +7527,7 @@ var Aa = "missing Intl.DateTimeFormat.formatToParts support";
7490
7527
  function Y(e, t = (e) => e) {
7491
7528
  return {
7492
7529
  regex: e,
7493
- deser: ([e]) => t($n(e))
7530
+ deser: ([e]) => t(Qn(e))
7494
7531
  };
7495
7532
  }
7496
7533
  var ja = "[ \xA0]", Ma = new RegExp(ja, "g");
@@ -7509,7 +7546,7 @@ function X(e, t) {
7509
7546
  function Fa(e, t) {
7510
7547
  return {
7511
7548
  regex: e,
7512
- deser: ([, e, t]) => Kr(e, t),
7549
+ deser: ([, e, t]) => Wr(e, t),
7513
7550
  groups: t
7514
7551
  };
7515
7552
  }
@@ -7523,7 +7560,7 @@ function La(e) {
7523
7560
  return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
7524
7561
  }
7525
7562
  function Ra(e, t) {
7526
- let n = j(t), r = j(t, "{2}"), i = j(t, "{3}"), a = j(t, "{4}"), o = j(t, "{6}"), s = j(t, "{1,2}"), c = j(t, "{1,3}"), l = j(t, "{1,6}"), u = j(t, "{1,9}"), d = j(t, "{2,4}"), f = j(t, "{4,6}"), p = (e) => ({
7563
+ let n = M(t), r = M(t, "{2}"), i = M(t, "{3}"), a = M(t, "{4}"), o = M(t, "{6}"), s = M(t, "{1,2}"), c = M(t, "{1,3}"), l = M(t, "{1,6}"), u = M(t, "{1,9}"), d = M(t, "{2,4}"), f = M(t, "{4,6}"), p = (e) => ({
7527
7564
  regex: RegExp(La(e.val)),
7528
7565
  deser: ([e]) => e,
7529
7566
  literal: !0
@@ -7533,7 +7570,7 @@ function Ra(e, t) {
7533
7570
  case "G": return X(t.eras("short"), 0);
7534
7571
  case "GG": return X(t.eras("long"), 0);
7535
7572
  case "y": return Y(l);
7536
- case "yy": return Y(d, Wr);
7573
+ case "yy": return Y(d, Hr);
7537
7574
  case "yyyy": return Y(a);
7538
7575
  case "yyyyy": return Y(f);
7539
7576
  case "yyyyyy": return Y(o);
@@ -7566,7 +7603,7 @@ function Ra(e, t) {
7566
7603
  case "uuu": return Y(n);
7567
7604
  case "a": return X(t.meridiems(), 0);
7568
7605
  case "kkkk": return Y(a);
7569
- case "kk": return Y(d, Wr);
7606
+ case "kk": return Y(d, Hr);
7570
7607
  case "W": return Y(s);
7571
7608
  case "WW": return Y(r);
7572
7609
  case "E":
@@ -7651,7 +7688,7 @@ function Ha(e, t, n) {
7651
7688
  let r = e.match(t);
7652
7689
  if (r) {
7653
7690
  let e = {}, t = 1;
7654
- for (let i in n) if (Nr(n, i)) {
7691
+ for (let i in n) if (R(n, i)) {
7655
7692
  let a = n[i], o = a.groups ? a.groups + 1 : 1;
7656
7693
  !a.literal && a.token && (e[a.token.val[0]] = a.deser(r.slice(t, t + o))), t += o;
7657
7694
  }
@@ -7680,7 +7717,7 @@ function Ua(e) {
7680
7717
  default: return null;
7681
7718
  }
7682
7719
  }, n = null, r;
7683
- return F(e.z) || (n = D.create(e.z)), F(e.Z) || (n ||= new k(e.Z), r = e.Z), F(e.q) || (e.M = (e.q - 1) * 3 + 1), F(e.h) || (e.h < 12 && e.a === 1 ? e.h += 12 : e.h === 12 && e.a === 0 && (e.h = 0)), e.G === 0 && e.y && (e.y = -e.y), F(e.u) || (e.S = Ir(e.u)), [
7720
+ return I(e.z) || (n = Sn.create(e.z)), I(e.Z) || (n ||= new A(e.Z), r = e.Z), I(e.q) || (e.M = (e.q - 1) * 3 + 1), I(e.h) || (e.h < 12 && e.a === 1 ? e.h += 12 : e.h === 12 && e.a === 0 && (e.h = 0)), e.G === 0 && e.y && (e.y = -e.y), I(e.u) || (e.S = Pr(e.u)), [
7684
7721
  Object.keys(e).reduce((n, r) => {
7685
7722
  let i = t(r);
7686
7723
  return i && (n[i] = e[r]), n;
@@ -7695,7 +7732,7 @@ function Ga() {
7695
7732
  }
7696
7733
  function Ka(e, t) {
7697
7734
  if (e.literal) return e;
7698
- let n = Za(V.macroTokenToFormatOpts(e.val), t);
7735
+ let n = Za(U.macroTokenToFormatOpts(e.val), t);
7699
7736
  return n == null || n.includes(void 0) ? e : n;
7700
7737
  }
7701
7738
  function qa(e, t) {
@@ -7703,7 +7740,7 @@ function qa(e, t) {
7703
7740
  }
7704
7741
  var Ja = class {
7705
7742
  constructor(e, t) {
7706
- if (this.locale = e, this.format = t, this.tokens = qa(V.parseFormat(t), e), this.units = this.tokens.map((t) => Ra(t, e)), this.disqualifyingUnit = this.units.find((e) => e.invalidReason), !this.disqualifyingUnit) {
7743
+ if (this.locale = e, this.format = t, this.tokens = qa(U.parseFormat(t), e), this.units = this.tokens.map((t) => Ra(t, e)), this.disqualifyingUnit = this.units.find((e) => e.invalidReason), !this.disqualifyingUnit) {
7707
7744
  let [e, t] = Va(this.units);
7708
7745
  this.regex = RegExp(e, "i"), this.handlers = t;
7709
7746
  }
@@ -7715,7 +7752,7 @@ var Ja = class {
7715
7752
  null,
7716
7753
  void 0
7717
7754
  ];
7718
- if (Nr(n, "a") && Nr(n, "H")) throw new x("Can't include meridiem when specifying 24-hour format");
7755
+ if (R(n, "a") && R(n, "H")) throw new Ht("Can't include meridiem when specifying 24-hour format");
7719
7756
  return {
7720
7757
  input: e,
7721
7758
  tokens: this.tokens,
@@ -7754,18 +7791,18 @@ function Xa(e, t, n) {
7754
7791
  }
7755
7792
  function Za(e, t) {
7756
7793
  if (!e) return null;
7757
- let n = V.create(t, e).dtFormatter(Ga()), r = n.formatToParts(), i = n.resolvedOptions();
7794
+ let n = U.create(t, e).dtFormatter(Ga()), r = n.formatToParts(), i = n.resolvedOptions();
7758
7795
  return r.map((t) => Ba(t, e, i));
7759
7796
  }
7760
7797
  var Qa = "Invalid DateTime", $a = 864e13;
7761
7798
  function eo(e) {
7762
- return new N("unsupported zone", `the zone "${e.name}" is not supported`);
7799
+ return new P("unsupported zone", `the zone "${e.name}" is not supported`);
7763
7800
  }
7764
7801
  function to(e) {
7765
- return e.weekData === null && (e.weekData = gr(e.c)), e.weekData;
7802
+ return e.weekData === null && (e.weekData = hr(e.c)), e.weekData;
7766
7803
  }
7767
7804
  function no(e) {
7768
- return e.localWeekData === null && (e.localWeekData = gr(e.c, e.loc.getMinDaysInFirstWeek(), e.loc.getStartOfWeek())), e.localWeekData;
7805
+ return e.localWeekData === null && (e.localWeekData = hr(e.c, e.loc.getMinDaysInFirstWeek(), e.loc.getStartOfWeek())), e.localWeekData;
7769
7806
  }
7770
7807
  function Z(e, t) {
7771
7808
  let n = {
@@ -7803,14 +7840,14 @@ function io(e, t) {
7803
7840
  };
7804
7841
  }
7805
7842
  function ao(e, t, n) {
7806
- return ro(Vr(e), t, n);
7843
+ return ro(zr(e), t, n);
7807
7844
  }
7808
7845
  function oo(e, t) {
7809
7846
  let n = e.o, r = e.c.year + Math.trunc(t.years), i = e.c.month + Math.trunc(t.months) + Math.trunc(t.quarters) * 3, a = {
7810
7847
  ...e.c,
7811
7848
  year: r,
7812
7849
  month: i,
7813
- day: Math.min(e.c.day, Br(r, i)) + Math.trunc(t.days) + Math.trunc(t.weeks) * 7
7850
+ day: Math.min(e.c.day, Rr(r, i)) + Math.trunc(t.days) + Math.trunc(t.weeks) * 7
7814
7851
  }, o = J.fromObject({
7815
7852
  years: t.years - Math.trunc(t.years),
7816
7853
  quarters: t.quarters - Math.trunc(t.quarters),
@@ -7821,7 +7858,7 @@ function oo(e, t) {
7821
7858
  minutes: t.minutes,
7822
7859
  seconds: t.seconds,
7823
7860
  milliseconds: t.milliseconds
7824
- }).as("milliseconds"), [s, c] = ro(Vr(a), n, e.zone);
7861
+ }).as("milliseconds"), [s, c] = ro(zr(a), n, e.zone);
7825
7862
  return o !== 0 && (s += o, c = e.zone.offset(s)), {
7826
7863
  ts: s,
7827
7864
  o: c
@@ -7837,22 +7874,22 @@ function so(e, t, n, r, i, a) {
7837
7874
  });
7838
7875
  return o ? i : i.setZone(s);
7839
7876
  }
7840
- return Q.invalid(new N("unparsable", `the input "${i}" can't be parsed as ${r}`));
7877
+ return Q.invalid(new P("unparsable", `the input "${i}" can't be parsed as ${r}`));
7841
7878
  }
7842
7879
  function co(e, t, n = !0) {
7843
- return e.isValid ? V.create(O.create("en-US"), {
7880
+ return e.isValid ? U.create(k.create("en-US"), {
7844
7881
  allowZ: n,
7845
7882
  forceSimple: !0
7846
7883
  }).formatDateTimeFromString(e, t) : null;
7847
7884
  }
7848
7885
  function lo(e, t, n) {
7849
7886
  let r = e.c.year > 9999 || e.c.year < 0, i = "";
7850
- if (r && e.c.year >= 0 && (i += "+"), i += R(e.c.year, r ? 6 : 4), n === "year") return i;
7887
+ if (r && e.c.year >= 0 && (i += "+"), i += B(e.c.year, r ? 6 : 4), n === "year") return i;
7851
7888
  if (t) {
7852
- if (i += "-", i += R(e.c.month), n === "month") return i;
7889
+ if (i += "-", i += B(e.c.month), n === "month") return i;
7853
7890
  i += "-";
7854
- } else if (i += R(e.c.month), n === "month") return i;
7855
- return i += R(e.c.day), i;
7891
+ } else if (i += B(e.c.month), n === "month") return i;
7892
+ return i += B(e.c.day), i;
7856
7893
  }
7857
7894
  function uo(e, t, n, r, i, a, o) {
7858
7895
  let s = !n || e.c.millisecond !== 0 || e.c.second !== 0, c = "";
@@ -7861,18 +7898,18 @@ function uo(e, t, n, r, i, a, o) {
7861
7898
  case "month":
7862
7899
  case "year": break;
7863
7900
  default:
7864
- if (c += R(e.c.hour), o === "hour") break;
7901
+ if (c += B(e.c.hour), o === "hour") break;
7865
7902
  if (t) {
7866
- if (c += ":", c += R(e.c.minute), o === "minute") break;
7867
- s && (c += ":", c += R(e.c.second));
7903
+ if (c += ":", c += B(e.c.minute), o === "minute") break;
7904
+ s && (c += ":", c += B(e.c.second));
7868
7905
  } else {
7869
- if (c += R(e.c.minute), o === "minute") break;
7870
- s && (c += R(e.c.second));
7906
+ if (c += B(e.c.minute), o === "minute") break;
7907
+ s && (c += B(e.c.second));
7871
7908
  }
7872
7909
  if (o === "second") break;
7873
- s && (!r || e.c.millisecond !== 0) && (c += ".", c += R(e.c.millisecond, 3));
7910
+ s && (!r || e.c.millisecond !== 0) && (c += ".", c += B(e.c.millisecond, 3));
7874
7911
  }
7875
- return i && (e.isOffsetFixed && e.offset === 0 && !a ? c += "Z" : e.o < 0 ? (c += "-", c += R(Math.trunc(-e.o / 60)), c += ":", c += R(Math.trunc(-e.o % 60))) : (c += "+", c += R(Math.trunc(e.o / 60)), c += ":", c += R(Math.trunc(e.o % 60)))), a && (c += "[" + e.zone.ianaName + "]"), c;
7912
+ return i && (e.isOffsetFixed && e.offset === 0 && !a ? c += "Z" : e.o < 0 ? (c += "-", c += B(Math.trunc(-e.o / 60)), c += ":", c += B(Math.trunc(-e.o % 60))) : (c += "+", c += B(Math.trunc(e.o / 60)), c += ":", c += B(Math.trunc(e.o % 60)))), a && (c += "[" + e.zone.ianaName + "]"), c;
7876
7913
  }
7877
7914
  var fo = {
7878
7915
  month: 1,
@@ -7945,7 +7982,7 @@ function vo(e) {
7945
7982
  weekyears: "weekYear",
7946
7983
  ordinal: "ordinal"
7947
7984
  }[e.toLowerCase()];
7948
- if (!t) throw new Gt(e);
7985
+ if (!t) throw new Ut(e);
7949
7986
  return t;
7950
7987
  }
7951
7988
  function yo(e) {
@@ -7960,18 +7997,18 @@ function yo(e) {
7960
7997
  }
7961
7998
  }
7962
7999
  function bo(e) {
7963
- if (wo === void 0 && (wo = M.now()), e.type !== "iana") return e.offset(wo);
8000
+ if (wo === void 0 && (wo = N.now()), e.type !== "iana") return e.offset(wo);
7964
8001
  let t = e.name, n = To.get(t);
7965
8002
  return n === void 0 && (n = e.offset(wo), To.set(t, n)), n;
7966
8003
  }
7967
8004
  function xo(e, t) {
7968
- let n = A(t.zone, M.defaultZone);
8005
+ let n = j(t.zone, N.defaultZone);
7969
8006
  if (!n.isValid) return Q.invalid(eo(n));
7970
- let r = O.fromObject(t), i, a;
7971
- if (F(e.year)) i = M.now();
8007
+ let r = k.fromObject(t), i, a;
8008
+ if (I(e.year)) i = N.now();
7972
8009
  else {
7973
- for (let t of ho) F(e[t]) && (e[t] = fo[t]);
7974
- let t = Cr(e) || wr(e);
8010
+ for (let t of ho) I(e[t]) && (e[t] = fo[t]);
8011
+ let t = Sr(e) || Cr(e);
7975
8012
  if (t) return Q.invalid(t);
7976
8013
  let r = bo(n);
7977
8014
  [i, a] = ao(e, r, n);
@@ -7984,7 +8021,7 @@ function xo(e, t) {
7984
8021
  });
7985
8022
  }
7986
8023
  function So(e, t, n) {
7987
- let r = F(n.round) ? !0 : n.round, i = F(n.rounding) ? "trunc" : n.rounding, a = (e, a) => (e = Lr(e, r || n.calendary ? 0 : 2, n.calendary ? "round" : i), t.loc.clone(n).relFormatter(n).format(e, a)), o = (r) => n.calendary ? t.hasSame(e, r) ? 0 : t.startOf(r).diff(e.startOf(r), r).get(r) : t.diff(e, r).get(r);
8024
+ let r = I(n.round) ? !0 : n.round, i = I(n.rounding) ? "trunc" : n.rounding, a = (e, a) => (e = Fr(e, r || n.calendary ? 0 : 2, n.calendary ? "round" : i), t.loc.clone(n).relFormatter(n).format(e, a)), o = (r) => n.calendary ? t.hasSame(e, r) ? 0 : t.startOf(r).diff(e.startOf(r), r).get(r) : t.diff(e, r).get(r);
7988
8025
  if (n.unit) return a(o(n.unit), n.unit);
7989
8026
  for (let e of n.units) {
7990
8027
  let t = o(e);
@@ -7998,17 +8035,17 @@ function Co(e) {
7998
8035
  }
7999
8036
  var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8000
8037
  constructor(e) {
8001
- let t = e.zone || M.defaultZone, n = e.invalid || (Number.isNaN(e.ts) ? new N("invalid input") : null) || (t.isValid ? null : eo(t));
8002
- this.ts = F(e.ts) ? M.now() : e.ts;
8038
+ let t = e.zone || N.defaultZone, n = e.invalid || (Number.isNaN(e.ts) ? new P("invalid input") : null) || (t.isValid ? null : eo(t));
8039
+ this.ts = I(e.ts) ? N.now() : e.ts;
8003
8040
  let r = null, i = null;
8004
8041
  if (!n) {
8005
8042
  if (e.old && e.old.ts === this.ts && e.old.zone.equals(t)) [r, i] = [e.old.c, e.old.o];
8006
8043
  else {
8007
- let a = I(e.o) && !e.old ? e.o : t.offset(this.ts);
8008
- r = io(this.ts, a), n = Number.isNaN(r.year) ? new N("invalid input") : null, r = n ? null : r, i = n ? null : a;
8044
+ let a = L(e.o) && !e.old ? e.o : t.offset(this.ts);
8045
+ r = io(this.ts, a), n = Number.isNaN(r.year) ? new P("invalid input") : null, r = n ? null : r, i = n ? null : a;
8009
8046
  }
8010
8047
  }
8011
- this._zone = t, this.loc = e.loc || O.create(), this.invalid = n, this.weekData = null, this.localWeekData = null, this.c = r, this.o = i, this.isLuxonDateTime = !0;
8048
+ this._zone = t, this.loc = e.loc || k.create(), this.invalid = n, this.weekData = null, this.localWeekData = null, this.c = r, this.o = i, this.isLuxonDateTime = !0;
8012
8049
  }
8013
8050
  static now() {
8014
8051
  return new e({});
@@ -8027,7 +8064,7 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8027
8064
  }
8028
8065
  static utc() {
8029
8066
  let [e, t] = Co(arguments), [n, r, i, a, o, s, c] = t;
8030
- return e.zone = k.utcInstance, xo({
8067
+ return e.zone = A.utcInstance, xo({
8031
8068
  year: n,
8032
8069
  month: r,
8033
8070
  day: i,
@@ -8038,54 +8075,54 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8038
8075
  }, e);
8039
8076
  }
8040
8077
  static fromJSDate(t, n = {}) {
8041
- let r = Dr(t) ? t.valueOf() : NaN;
8078
+ let r = Er(t) ? t.valueOf() : NaN;
8042
8079
  if (Number.isNaN(r)) return e.invalid("invalid input");
8043
- let i = A(n.zone, M.defaultZone);
8080
+ let i = j(n.zone, N.defaultZone);
8044
8081
  return i.isValid ? new e({
8045
8082
  ts: r,
8046
8083
  zone: i,
8047
- loc: O.fromObject(n)
8084
+ loc: k.fromObject(n)
8048
8085
  }) : e.invalid(eo(i));
8049
8086
  }
8050
8087
  static fromMillis(t, n = {}) {
8051
- if (!I(t)) throw new S(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`);
8088
+ if (!L(t)) throw new w(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`);
8052
8089
  return t < -864e13 || t > $a ? e.invalid("Timestamp out of range") : new e({
8053
8090
  ts: t,
8054
- zone: A(n.zone, M.defaultZone),
8055
- loc: O.fromObject(n)
8091
+ zone: j(n.zone, N.defaultZone),
8092
+ loc: k.fromObject(n)
8056
8093
  });
8057
8094
  }
8058
8095
  static fromSeconds(t, n = {}) {
8059
- if (I(t)) return new e({
8096
+ if (L(t)) return new e({
8060
8097
  ts: t * 1e3,
8061
- zone: A(n.zone, M.defaultZone),
8062
- loc: O.fromObject(n)
8098
+ zone: j(n.zone, N.defaultZone),
8099
+ loc: k.fromObject(n)
8063
8100
  });
8064
- throw new S("fromSeconds requires a numerical input");
8101
+ throw new w("fromSeconds requires a numerical input");
8065
8102
  }
8066
8103
  static fromObject(t, n = {}) {
8067
8104
  t ||= {};
8068
- let r = A(n.zone, M.defaultZone);
8105
+ let r = j(n.zone, N.defaultZone);
8069
8106
  if (!r.isValid) return e.invalid(eo(r));
8070
- let i = O.fromObject(n), a = Jr(t, yo), { minDaysInFirstWeek: o, startOfWeek: s } = br(a, i), c = M.now(), l = F(n.specificOffset) ? r.offset(c) : n.specificOffset, u = !F(a.ordinal), d = !F(a.year), f = !F(a.month) || !F(a.day), p = d || f, m = a.weekYear || a.weekNumber;
8071
- if ((p || u) && m) throw new x("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
8072
- if (f && u) throw new x("Can't mix ordinal dates with month/day");
8073
- let ee = m || a.weekday && !p, te, ne, h = io(c, l);
8074
- ee ? (te = go, ne = po, h = gr(h, o, s)) : u ? (te = _o, ne = mo, h = vr(h)) : (te = ho, ne = fo);
8075
- let re = !1;
8076
- for (let e of te) {
8107
+ let i = k.fromObject(n), a = Kr(t, yo), { minDaysInFirstWeek: o, startOfWeek: s } = yr(a, i), c = N.now(), l = I(n.specificOffset) ? r.offset(c) : n.specificOffset, u = !I(a.ordinal), d = !I(a.year), f = !I(a.month) || !I(a.day), p = d || f, m = a.weekYear || a.weekNumber;
8108
+ if ((p || u) && m) throw new Ht("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
8109
+ if (f && u) throw new Ht("Can't mix ordinal dates with month/day");
8110
+ let ee = m || a.weekday && !p, h, g, _ = io(c, l);
8111
+ ee ? (h = go, g = po, _ = hr(_, o, s)) : u ? (h = _o, g = mo, _ = _r(_)) : (h = ho, g = fo);
8112
+ let te = !1;
8113
+ for (let e of h) {
8077
8114
  let t = a[e];
8078
- F(t) ? a[e] = re ? ne[e] : h[e] : re = !0;
8115
+ I(t) ? a[e] = te ? g[e] : _[e] : te = !0;
8079
8116
  }
8080
- let ie = (ee ? xr(a, o, s) : u ? Sr(a) : Cr(a)) || wr(a);
8081
- if (ie) return e.invalid(ie);
8082
- let [ae, oe] = ao(ee ? _r(a, o, s) : u ? yr(a) : a, l, r), se = new e({
8083
- ts: ae,
8117
+ let ne = (ee ? br(a, o, s) : u ? xr(a) : Sr(a)) || Cr(a);
8118
+ if (ne) return e.invalid(ne);
8119
+ let [re, ie] = ao(ee ? gr(a, o, s) : u ? vr(a) : a, l, r), v = new e({
8120
+ ts: re,
8084
8121
  zone: r,
8085
- o: oe,
8122
+ o: ie,
8086
8123
  loc: i
8087
8124
  });
8088
- return a.weekday && p && t.weekday !== se.weekday ? e.invalid("mismatched weekday", `you can't specify both a weekday of ${a.weekday} and a date of ${se.toISO()}`) : se.isValid ? se : e.invalid(se.invalid);
8125
+ return a.weekday && p && t.weekday !== v.weekday ? e.invalid("mismatched weekday", `you can't specify both a weekday of ${a.weekday} and a date of ${v.toISO()}`) : v.isValid ? v : e.invalid(v.invalid);
8089
8126
  }
8090
8127
  static fromISO(e, t = {}) {
8091
8128
  let [n, r] = ia(e);
@@ -8100,8 +8137,8 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8100
8137
  return so(n, r, t, "HTTP", t);
8101
8138
  }
8102
8139
  static fromFormat(t, n, r = {}) {
8103
- if (F(t) || F(n)) throw new S("fromFormat requires an input string and a format");
8104
- let { locale: i = null, numberingSystem: a = null } = r, [o, s, c, l] = Xa(O.fromOpts({
8140
+ if (I(t) || I(n)) throw new w("fromFormat requires an input string and a format");
8141
+ let { locale: i = null, numberingSystem: a = null } = r, [o, s, c, l] = Xa(k.fromOpts({
8105
8142
  locale: i,
8106
8143
  numberingSystem: a,
8107
8144
  defaultToEN: !0
@@ -8116,20 +8153,20 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8116
8153
  return so(n, r, t, "SQL", e);
8117
8154
  }
8118
8155
  static invalid(t, n = null) {
8119
- if (!t) throw new S("need to specify a reason the DateTime is invalid");
8120
- let r = t instanceof N ? t : new N(t, n);
8121
- if (M.throwOnInvalid) throw new Ht(r);
8156
+ if (!t) throw new w("need to specify a reason the DateTime is invalid");
8157
+ let r = t instanceof P ? t : new P(t, n);
8158
+ if (N.throwOnInvalid) throw new zt(r);
8122
8159
  return new e({ invalid: r });
8123
8160
  }
8124
8161
  static isDateTime(e) {
8125
8162
  return e && e.isLuxonDateTime || !1;
8126
8163
  }
8127
8164
  static parseFormatForOpts(e, t = {}) {
8128
- let n = Za(e, O.fromObject(t));
8165
+ let n = Za(e, k.fromObject(t));
8129
8166
  return n ? n.map((e) => e ? e.val : null).join("") : null;
8130
8167
  }
8131
8168
  static expandFormat(e, t = {}) {
8132
- return qa(V.parseFormat(e), O.fromObject(t)).map((e) => e.val).join("");
8169
+ return qa(U.parseFormat(e), k.fromObject(t)).map((e) => e.val).join("");
8133
8170
  }
8134
8171
  static resetCache() {
8135
8172
  wo = void 0, To.clear();
@@ -8207,7 +8244,7 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8207
8244
  return this.isValid ? no(this).weekYear : NaN;
8208
8245
  }
8209
8246
  get ordinal() {
8210
- return this.isValid ? vr(this.c).ordinal : NaN;
8247
+ return this.isValid ? _r(this.c).ordinal : NaN;
8211
8248
  }
8212
8249
  get monthShort() {
8213
8250
  return this.isValid ? Ea.months("short", { locObj: this.loc })[this.month - 1] : null;
@@ -8247,28 +8284,28 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8247
8284
  }
8248
8285
  getPossibleOffsets() {
8249
8286
  if (!this.isValid || this.isOffsetFixed) return [this];
8250
- let e = 864e5, t = 6e4, n = Vr(this.c), r = this.zone.offset(n - e), i = this.zone.offset(n + e), a = this.zone.offset(n - r * t), o = this.zone.offset(n - i * t);
8287
+ let e = 864e5, t = 6e4, n = zr(this.c), r = this.zone.offset(n - e), i = this.zone.offset(n + e), a = this.zone.offset(n - r * t), o = this.zone.offset(n - i * t);
8251
8288
  if (a === o) return [this];
8252
8289
  let s = n - a * t, c = n - o * t, l = io(s, a), u = io(c, o);
8253
8290
  return l.hour === u.hour && l.minute === u.minute && l.second === u.second && l.millisecond === u.millisecond ? [Z(this, { ts: s }), Z(this, { ts: c })] : [this];
8254
8291
  }
8255
8292
  get isInLeapYear() {
8256
- return Rr(this.year);
8293
+ return Ir(this.year);
8257
8294
  }
8258
8295
  get daysInMonth() {
8259
- return Br(this.year, this.month);
8296
+ return Rr(this.year, this.month);
8260
8297
  }
8261
8298
  get daysInYear() {
8262
- return this.isValid ? zr(this.year) : NaN;
8299
+ return this.isValid ? Lr(this.year) : NaN;
8263
8300
  }
8264
8301
  get weeksInWeekYear() {
8265
- return this.isValid ? Ur(this.weekYear) : NaN;
8302
+ return this.isValid ? Vr(this.weekYear) : NaN;
8266
8303
  }
8267
8304
  get weeksInLocalWeekYear() {
8268
- return this.isValid ? Ur(this.localWeekYear, this.loc.getMinDaysInFirstWeek(), this.loc.getStartOfWeek()) : NaN;
8305
+ return this.isValid ? Vr(this.localWeekYear, this.loc.getMinDaysInFirstWeek(), this.loc.getStartOfWeek()) : NaN;
8269
8306
  }
8270
8307
  resolvedLocaleOptions(e = {}) {
8271
- let { locale: t, numberingSystem: n, calendar: r } = V.create(this.loc.clone(e), e).resolvedOptions(this);
8308
+ let { locale: t, numberingSystem: n, calendar: r } = U.create(this.loc.clone(e), e).resolvedOptions(this);
8272
8309
  return {
8273
8310
  locale: t,
8274
8311
  numberingSystem: n,
@@ -8276,13 +8313,13 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8276
8313
  };
8277
8314
  }
8278
8315
  toUTC(e = 0, t = {}) {
8279
- return this.setZone(k.instance(e), t);
8316
+ return this.setZone(A.instance(e), t);
8280
8317
  }
8281
8318
  toLocal() {
8282
- return this.setZone(M.defaultZone);
8319
+ return this.setZone(N.defaultZone);
8283
8320
  }
8284
8321
  setZone(t, { keepLocalTime: n = !1, keepCalendarTime: r = !1 } = {}) {
8285
- if (t = A(t, M.defaultZone), t.equals(this.zone)) return this;
8322
+ if (t = j(t, N.defaultZone), t.equals(this.zone)) return this;
8286
8323
  if (t.isValid) {
8287
8324
  let e = this.ts;
8288
8325
  if (n || r) {
@@ -8309,18 +8346,18 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8309
8346
  }
8310
8347
  set(e) {
8311
8348
  if (!this.isValid) return this;
8312
- let t = Jr(e, yo), { minDaysInFirstWeek: n, startOfWeek: r } = br(t, this.loc), i = !F(t.weekYear) || !F(t.weekNumber) || !F(t.weekday), a = !F(t.ordinal), o = !F(t.year), s = !F(t.month) || !F(t.day), c = o || s, l = t.weekYear || t.weekNumber;
8313
- if ((c || a) && l) throw new x("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
8314
- if (s && a) throw new x("Can't mix ordinal dates with month/day");
8349
+ let t = Kr(e, yo), { minDaysInFirstWeek: n, startOfWeek: r } = yr(t, this.loc), i = !I(t.weekYear) || !I(t.weekNumber) || !I(t.weekday), a = !I(t.ordinal), o = !I(t.year), s = !I(t.month) || !I(t.day), c = o || s, l = t.weekYear || t.weekNumber;
8350
+ if ((c || a) && l) throw new Ht("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
8351
+ if (s && a) throw new Ht("Can't mix ordinal dates with month/day");
8315
8352
  let u;
8316
- i ? u = _r({
8317
- ...gr(this.c, n, r),
8353
+ i ? u = gr({
8354
+ ...hr(this.c, n, r),
8318
8355
  ...t
8319
- }, n, r) : F(t.ordinal) ? (u = {
8356
+ }, n, r) : I(t.ordinal) ? (u = {
8320
8357
  ...this.toObject(),
8321
8358
  ...t
8322
- }, F(t.day) && (u.day = Math.min(Br(u.year, u.month), u.day))) : u = yr({
8323
- ...vr(this.c),
8359
+ }, I(t.day) && (u.day = Math.min(Rr(u.year, u.month), u.day))) : u = vr({
8360
+ ..._r(this.c),
8324
8361
  ...t
8325
8362
  });
8326
8363
  let [d, f] = ao(u, this.o, this.zone);
@@ -8364,13 +8401,13 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8364
8401
  return this.isValid ? this.plus({ [e]: 1 }).startOf(e, t).minus(1) : this;
8365
8402
  }
8366
8403
  toFormat(e, t = {}) {
8367
- return this.isValid ? V.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this, e) : Qa;
8404
+ return this.isValid ? U.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this, e) : Qa;
8368
8405
  }
8369
- toLocaleString(e = Kt, t = {}) {
8370
- return this.isValid ? V.create(this.loc.clone(t), e).formatDateTime(this) : Qa;
8406
+ toLocaleString(e = Wt, t = {}) {
8407
+ return this.isValid ? U.create(this.loc.clone(t), e).formatDateTime(this) : Qa;
8371
8408
  }
8372
8409
  toLocaleParts(e = {}) {
8373
- return this.isValid ? V.create(this.loc.clone(e), e).formatDateTimeParts(this) : [];
8410
+ return this.isValid ? U.create(this.loc.clone(e), e).formatDateTimeParts(this) : [];
8374
8411
  }
8375
8412
  toISO({ format: e = "extended", suppressSeconds: t = !1, suppressMilliseconds: n = !1, includeOffset: r = !0, extendedZone: i = !1, precision: a = "milliseconds" } = {}) {
8376
8413
  if (!this.isValid) return null;
@@ -8441,7 +8478,7 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8441
8478
  locale: this.locale,
8442
8479
  numberingSystem: this.numberingSystem,
8443
8480
  ...n
8444
- }, i = Ar(t).map(J.normalizeUnit), a = e.valueOf() > this.valueOf(), o = ka(a ? this : e, a ? e : this, i, r);
8481
+ }, i = kr(t).map(J.normalizeUnit), a = e.valueOf() > this.valueOf(), o = ka(a ? this : e, a ? e : this, i, r);
8445
8482
  return a ? o.negate() : o;
8446
8483
  }
8447
8484
  diffNow(t = "milliseconds", n = {}) {
@@ -8488,16 +8525,16 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8488
8525
  }) : null;
8489
8526
  }
8490
8527
  static min(...t) {
8491
- if (!t.every(e.isDateTime)) throw new S("min requires all arguments be DateTimes");
8492
- return jr(t, (e) => e.valueOf(), Math.min);
8528
+ if (!t.every(e.isDateTime)) throw new w("min requires all arguments be DateTimes");
8529
+ return Ar(t, (e) => e.valueOf(), Math.min);
8493
8530
  }
8494
8531
  static max(...t) {
8495
- if (!t.every(e.isDateTime)) throw new S("max requires all arguments be DateTimes");
8496
- return jr(t, (e) => e.valueOf(), Math.max);
8532
+ if (!t.every(e.isDateTime)) throw new w("max requires all arguments be DateTimes");
8533
+ return Ar(t, (e) => e.valueOf(), Math.max);
8497
8534
  }
8498
8535
  static fromFormatExplain(e, t, n = {}) {
8499
8536
  let { locale: r = null, numberingSystem: i = null } = n;
8500
- return Ya(O.fromOpts({
8537
+ return Ya(k.fromOpts({
8501
8538
  locale: r,
8502
8539
  numberingSystem: i,
8503
8540
  defaultToEN: !0
@@ -8508,95 +8545,95 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8508
8545
  }
8509
8546
  static buildFormatParser(e, t = {}) {
8510
8547
  let { locale: n = null, numberingSystem: r = null } = t;
8511
- return new Ja(O.fromOpts({
8548
+ return new Ja(k.fromOpts({
8512
8549
  locale: n,
8513
8550
  numberingSystem: r,
8514
8551
  defaultToEN: !0
8515
8552
  }), e);
8516
8553
  }
8517
8554
  static fromFormatParser(t, n, r = {}) {
8518
- if (F(t) || F(n)) throw new S("fromFormatParser requires an input string and a format parser");
8519
- let { locale: i = null, numberingSystem: a = null } = r, o = O.fromOpts({
8555
+ if (I(t) || I(n)) throw new w("fromFormatParser requires an input string and a format parser");
8556
+ let { locale: i = null, numberingSystem: a = null } = r, o = k.fromOpts({
8520
8557
  locale: i,
8521
8558
  numberingSystem: a,
8522
8559
  defaultToEN: !0
8523
8560
  });
8524
- if (!o.equals(n.locale)) throw new S(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`);
8561
+ if (!o.equals(n.locale)) throw new w(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`);
8525
8562
  let { result: s, zone: c, specificOffset: l, invalidReason: u } = n.explainFromTokens(t);
8526
8563
  return u ? e.invalid(u) : so(s, c, r, `format ${n.format}`, t, l);
8527
8564
  }
8528
8565
  static get DATE_SHORT() {
8529
- return Kt;
8566
+ return Wt;
8530
8567
  }
8531
8568
  static get DATE_MED() {
8532
- return qt;
8569
+ return Gt;
8533
8570
  }
8534
8571
  static get DATE_MED_WITH_WEEKDAY() {
8535
- return Jt;
8572
+ return Kt;
8536
8573
  }
8537
8574
  static get DATE_FULL() {
8538
- return Yt;
8575
+ return qt;
8539
8576
  }
8540
8577
  static get DATE_HUGE() {
8541
- return Xt;
8578
+ return Jt;
8542
8579
  }
8543
8580
  static get TIME_SIMPLE() {
8544
- return Zt;
8581
+ return Yt;
8545
8582
  }
8546
8583
  static get TIME_WITH_SECONDS() {
8547
- return Qt;
8584
+ return Xt;
8548
8585
  }
8549
8586
  static get TIME_WITH_SHORT_OFFSET() {
8550
- return $t;
8587
+ return Zt;
8551
8588
  }
8552
8589
  static get TIME_WITH_LONG_OFFSET() {
8553
- return en;
8590
+ return Qt;
8554
8591
  }
8555
8592
  static get TIME_24_SIMPLE() {
8556
- return tn;
8593
+ return $t;
8557
8594
  }
8558
8595
  static get TIME_24_WITH_SECONDS() {
8559
- return nn;
8596
+ return en;
8560
8597
  }
8561
8598
  static get TIME_24_WITH_SHORT_OFFSET() {
8562
- return rn;
8599
+ return tn;
8563
8600
  }
8564
8601
  static get TIME_24_WITH_LONG_OFFSET() {
8565
- return an;
8602
+ return nn;
8566
8603
  }
8567
8604
  static get DATETIME_SHORT() {
8568
- return on;
8605
+ return rn;
8569
8606
  }
8570
8607
  static get DATETIME_SHORT_WITH_SECONDS() {
8571
- return sn;
8608
+ return an;
8572
8609
  }
8573
8610
  static get DATETIME_MED() {
8574
- return cn;
8611
+ return on;
8575
8612
  }
8576
8613
  static get DATETIME_MED_WITH_SECONDS() {
8577
- return ln;
8614
+ return sn;
8578
8615
  }
8579
8616
  static get DATETIME_MED_WITH_WEEKDAY() {
8580
- return un;
8617
+ return cn;
8581
8618
  }
8582
8619
  static get DATETIME_FULL() {
8583
- return dn;
8620
+ return ln;
8584
8621
  }
8585
8622
  static get DATETIME_FULL_WITH_SECONDS() {
8586
- return fn;
8623
+ return un;
8587
8624
  }
8588
8625
  static get DATETIME_HUGE() {
8589
- return pn;
8626
+ return dn;
8590
8627
  }
8591
8628
  static get DATETIME_HUGE_WITH_SECONDS() {
8592
- return mn;
8629
+ return fn;
8593
8630
  }
8594
8631
  };
8595
8632
  function Eo(e) {
8596
8633
  if (Q.isDateTime(e)) return e;
8597
- if (e && e.valueOf && I(e.valueOf())) return Q.fromJSDate(e);
8634
+ if (e && e.valueOf && L(e.valueOf())) return Q.fromJSDate(e);
8598
8635
  if (e && typeof e == "object") return Q.fromObject(e);
8599
- throw new S(`Unknown datetime argument: ${e}, of type ${typeof e}`);
8636
+ throw new w(`Unknown datetime argument: ${e}, of type ${typeof e}`);
8600
8637
  }
8601
8638
  //#endregion
8602
8639
  //#region generated/regionTowns.ts
@@ -8926,7 +8963,7 @@ var us = /* @__PURE__ */ new Set([
8926
8963
  "delivered",
8927
8964
  "exception",
8928
8965
  "unknown"
8929
- ]), ds = new Set(Se), fs = [
8966
+ ]), ds = new Set(ye), fs = [
8930
8967
  "current_stage_source",
8931
8968
  "last_status_text",
8932
8969
  "provider_code",
@@ -8960,7 +8997,7 @@ function hs(e, t) {
8960
8997
  };
8961
8998
  }
8962
8999
  function gs(e) {
8963
- if (!Vt(e)) throw TypeError("The carrier adapter returned an invalid response");
9000
+ if (!Rt(e)) throw TypeError("The carrier adapter returned an invalid response");
8964
9001
  let t = { ...e };
8965
9002
  if (t.status = typeof e.status == "string" && us.has(e.status) ? e.status : "unknown", e.current_stage !== void 0) {
8966
9003
  if (typeof e.current_stage != "string" || !ds.has(e.current_stage)) throw TypeError("The carrier adapter returned an invalid current stage");
@@ -8975,23 +9012,23 @@ function gs(e) {
8975
9012
  (typeof t.service_name != "string" || !t.service_name.trim() || t.service_name.length > 80) && delete t.service_name;
8976
9013
  for (let e of ms) {
8977
9014
  let n = t[e];
8978
- if (typeof n != "string" || !ht.test(g(n))) continue;
8979
- let r = _t(n);
9015
+ if (typeof n != "string" || !ft.test(y(n))) continue;
9016
+ let r = mt(n);
8980
9017
  r ? t[e] = r : delete t[e];
8981
9018
  }
8982
- (t.delivery_carrier != null && (typeof t.delivery_carrier != "string" || !Object.hasOwn(ye, t.delivery_carrier)) || t.delivery_tracking_number != null && (typeof t.delivery_tracking_number != "string" || !/^[A-Z0-9]{4,40}$/.test(t.delivery_tracking_number))) && (delete t.delivery_carrier, delete t.delivery_tracking_number), (typeof t.destination_country != "string" || !/^[A-Z]{2}$/.test(t.destination_country)) && delete t.destination_country, (typeof t.destination_country_name != "string" || t.destination_country_name.length > 80) && delete t.destination_country_name;
9019
+ (t.delivery_carrier != null && (typeof t.delivery_carrier != "string" || !Object.hasOwn(ge, t.delivery_carrier)) || t.delivery_tracking_number != null && (typeof t.delivery_tracking_number != "string" || !/^[A-Z0-9]{4,40}$/.test(t.delivery_tracking_number))) && (delete t.delivery_carrier, delete t.delivery_tracking_number), (typeof t.destination_country != "string" || !/^[A-Z]{2}$/.test(t.destination_country)) && delete t.destination_country, (typeof t.destination_country_name != "string" || t.destination_country_name.length > 80) && delete t.destination_country_name;
8983
9020
  for (let e of ["summary_only", "history_truncated"]) typeof t[e] != "boolean" && delete t[e];
8984
9021
  let r = t.events ?? [];
8985
9022
  if (!Array.isArray(r)) throw TypeError("The carrier adapter returned invalid tracking events");
8986
9023
  return t.events = r.map((e) => {
8987
- if (!Vt(e)) throw TypeError("The carrier adapter returned an invalid tracking event");
9024
+ if (!Rt(e)) throw TypeError("The carrier adapter returned an invalid tracking event");
8988
9025
  for (let t of ps) {
8989
9026
  let n = e[t];
8990
9027
  if (n != null && typeof n != "string") throw TypeError("The carrier adapter returned an invalid tracking event");
8991
9028
  }
8992
9029
  let t = { ...e };
8993
9030
  if (t.point !== void 0) {
8994
- let e = Vt(t.point) ? hs(t.point.latitude, t.point.longitude) : null;
9031
+ let e = Rt(t.point) ? hs(t.point.latitude, t.point.longitude) : null;
8995
9032
  e ? t.point = e : delete t.point;
8996
9033
  }
8997
9034
  return t;
@@ -9018,58 +9055,62 @@ function bs(e) {
9018
9055
  let t = vs(e), n = t.replace(ys, " ");
9019
9056
  return n === t ? void 0 : vs(n.replace(/^[\s,;:.!?]+|[\s,;:]+$/g, ""));
9020
9057
  }
9021
- var xs = String.raw`(?:dispatched|despatched|shipped|sent|received|processed|handed (?:over|in)|posted)\b`, Ss = String.raw`handed (?:over )?to (?!(?:the |a |an |your )?(?:recipient|addressee|consignee|customer|receiver|neighbou?r|customs|you|person)\b)`, Cs = new RegExp(String.raw`(?:\bnot (?:yet (?:been )?${xs}|(?:been )?${xs}(?: \w+){0,3}? yet\b)|(?:\bnot|n't)(?: been)? ${Ss})${$}*`, "g"), ws = String.raw`(?<!\b(?:(?:pick ?up|collection) (?:order|request)|sender|shipper|seller|merchant|consignor)(?: has| have)?(?: been)? )\bhanded (?:over )?to `, Ts = String.raw`(?:(?:the|a|an|our|your) )?(?:delivery )?couriers?\b(?! (?:compan|service|partner|network|guy\b))`, Es = RegExp(`${ws}${Ts}`), Ds = new RegExp(String.raw`${ws}(?!${Ts})(?:the |a |an |our |your )?(?:[\w-]+ ){0,2}?(?:courier|carrier)s?\b`), Os = String.raw`(?:(?:import|export)(?:\/(?:import|export))? |local |destination |origin )?`, ks = new RegExp([
9058
+ var xs = String.raw`(?:dispatched|despatched|shipped|sent|received|processed|handed (?:over|in)|posted)\b`, Ss = String.raw`handed (?:over )?to (?!(?:the |a |an |your )?(?:recipient|addressee|consignee|customer|receiver|neighbou?r|customs|you|person)\b)`, Cs = String.raw`(?:gls|dpd|dhl|ups|fedex|tnt|hermes|colissimo|chronopost|brt|sda|inpost)\b`, ws = String.raw`(?:packstation|paketstation|paketshop|parcelshop|shop|filiale|access point|pick ?up|locker|consigne|relais|restante|fermopoint|point|punto|box|station)\b`, Ts = String.raw`(?! ${ws})`, Es = [
9059
+ String.raw`(?:\bn'(?:a|ont)(?: toujours)? (?:pas|jamais)(?: encore)? ete|\bpas encore) (?:remis|confie)e?s? (?:a|au|aux) (?:(?:la|le|les) |l')?(?:(?:transporteur|livreur|coursier|messagerie|operateur|prestataire)s?|poste|${Cs})\b${Ts}`,
9060
+ String.raw`(?:\b(?:wurde|wurden|ist|sind|war|waren)\b(?: [\w'-]+){0,4}? |(?:^|[.;:] )(?:(?:das|die|der|ihr|ihre) )?(?:[\w-]+ )?(?:noch )?)nicht an (?:(?:den|die|das|dem|der|unseren|unsere|unserem) )?(?:[\w-]+ )?(?:zusteller|paketzusteller|paketdienst|kurier|kurierdienst|versanddienst|spediteur|post|${Cs}) ubergeben\b(?! werden)`,
9061
+ String.raw`\bnon (?:(?:e|sono|ancora|stat[oaie]|mai) )*affidat[oaie] (?:(?:a|ad|al|allo|alla|ai|agli|alle) |all')(?:corrier[ei]|vettor[ei]|trasportator[ei]|spedizionier[ei]|operatore|posta|poste|${Cs})\b${Ts}`
9062
+ ].join("|"), Ds = new RegExp(String.raw`(?:\bnot (?:yet (?:been )?${xs}|(?:been )?${xs}(?: \w+){0,3}? yet\b)|(?:\bnot|n't)(?: been)? ${Ss}|(?:\bnot|n't) yet(?: been)? ${Ss}(?!(?:the |a |an |your )?(?:[\w-]+ )?${ws})|${Es})${$}*`, "g"), Os = String.raw`(?<!\b(?:(?:pick ?up|collection) (?:order|request)|sender|shipper|seller|merchant|consignor)(?: has| have)?(?: been)? )\bhanded (?:over )?to `, ks = String.raw`(?:(?:the|a|an|our|your) )?(?:delivery )?couriers?\b(?! (?:compan|service|partner|network|guy\b))`, As = RegExp(`${Os}${ks}`), js = new RegExp(String.raw`${Os}(?!${ks})(?:the |a |an |our |your )?(?:[\w-]+ ){0,2}?(?:courier|carrier)s?\b`), Ms = /customs|clearance|douan|formalites (?:d')?(?:import|export)|zoll|dogan|\b(?:des)?aduan[ae]|alfandeg|\bceln|government agency|autorite gouvernementale|staatliche behorde|autorita governativa/, Ns = String.raw`(?:(?:import|export)(?:\/(?:import|export))? |local |destination |origin )?`, Ps = new RegExp([
9022
9063
  String.raw`attend d'etre libere|attente de liberation|wartet auf.*freigabe|attesa di svincolo`,
9023
9064
  String.raw`(?:customs|clearance).*\bnot\b.*(?:clear|complet|releas)|customs (?:not cleared|clearance not completed)|not.*released by customs`,
9024
9065
  String.raw`(?:\bnot|n't|\bnever|\byet to)\b(?: (?:yet|been|be|being|have|has|had|fully|still))* (?:released|cleared|left|exited|out of|passed)\b${$}*?\bcustoms\b`,
9025
9066
  String.raw`\b(?:will|would|shall|should|may|might|must|can|could|once|when|until|till|before|unless|as soon as|needs? to|has to|have to|yet to|waiting to|expected to|about to)\b(?: \w+){0,3}? (?:be |been |get |gets |is |are |has been |have been )?(?:released|cleared)\b${$}*?\bcustoms\b`,
9026
9067
  String.raw`\b(?:customs|clearance)\b${$}*?\b(?:will|would|shall|should|may|might|must|can|could|once|when|until|till|before|unless|as soon as|needs? to|has to|have to|yet to|waiting to|expected to|about to|to)\b(?: \w+){0,2}? (?:be |been |get |gets |is |are |has been |have been )?(?:released|cleared|completed?|finished|done)\b`,
9027
- String.raw`\b(?:be|being) (?:released|cleared) (?:from |by |through |out of )?(?:the )?${Os}customs\b|\bclearance (?:is )?(?:in progress|ongoing|under way|underway)\b|\b(?:be|being) customs cleared\b`,
9068
+ String.raw`\b(?:be|being) (?:released|cleared) (?:from |by |through |out of )?(?:the )?${Ns}customs\b|\bclearance (?:is )?(?:in progress|ongoing|under way|underway)\b|\b(?:be|being) customs cleared\b`,
9028
9069
  String.raw`dedouanement.*(?:non termine|pas termine)|\b(?:pas|non|jamais)\b(?: (?:encore|ete|etre|completement|totalement))* (?:dedouane|(?:sorti|libere)e?s? (?:de |par )?(?:la )?douane)|\b(?:sera|seront|serait|va etre|vont etre|doit etre|doivent etre|devra etre|devrait etre|pourra etre|en attente d'etre)(?: \w+){0,2}? (?:dedouane|libere)`,
9029
9070
  String.raw`zollabfertigung.*nicht abgeschlossen|nicht.*zoll.*freigegeben|\bnicht (?:\w+ )?verzollt\b|\b(?:wird|werden|muss|mussen|soll|sollen|kann|konnen)\b${$}*?\bverzollt\b|\b(?:verzollung|zollabfertigung|zollfreigabe|zollkontrolle)\b${$}*?\b(?:nicht|steht aus|ausstehend)\b`,
9030
9071
  String.raw`sdoganamento.*non completato|\bnon\b(?: \w+){0,3}? (?:sdoganat|uscit[oaie] dalla dogana|svincolat)|\b(?:sara|saranno|verra|verranno|deve essere|devono essere|dovra essere|in attesa di essere|attende di essere)(?: \w+){0,2}? sdoganat`,
9031
9072
  String.raw`\b(?:no|sin)\b(?: \w+){0,3}? (?:(?:liberad|despachad)[oa]s?|salido|salio|sale|salir) (?:por|de|en|desde) (?:la )?aduana|\b(?:sera|seran|va a ser|van a ser|debe ser|deben ser|pendiente de|en espera de|a la espera de|esperando)\b(?: \w+){0,2}? (?:(?:liberad|despachad)[oa]s?|liberacion|despacho|salida)\b${$}*?\baduan[ae]`,
9032
9073
  String.raw`\bnao\b(?: \w+){0,3}? (?:desalfandegad[oa]s?|desembaracad[oa]s?|(?:liberad[oa]s?|saiu) (?:pela|na|da|de) (?:alfandega|aduana|fiscalizacao))\b|\b(?:aguardando|a aguardar|aguarda|em espera de|pendente de|sera|serao|vai ser|deve ser)\b(?: \w+){0,2}? (?:desalfandeg|(?:liberad|liberacao|desembarac)\w*${$}*?\b(?:alfandeg|aduan[ae]|fiscalizacao))`,
9033
9074
  String.raw`\b(?:nie|oczekuje na|czeka na|w trakcie|przed)\b(?: \w+){0,2}? (?:odpraw|zwolnion)\w*${$}*?\b(?:celn|urzad)`
9034
- ].join("|")), As = new RegExp([
9075
+ ].join("|")), Fs = new RegExp([
9035
9076
  String.raw`\bclearance\b${$}*?\b(?:complete|completed|finished|done|success|successful|successfully|concluded|granted|approved|obtained)\b`,
9036
- String.raw`(?:leaving|departed from|left|exited|exiting|out of|passed(?: through)?) (?:the )?${Os}customs\b(?! (?:to|for) (?:the )?(?:sender|shipper)\b)`,
9037
- String.raw`completion of customs|released by (?:customs|a government agency)|\breleased (?:from|out of|at) (?:the )?${Os}customs\b|\breturned from (?:the )?${Os}customs\b(?! to\b)`,
9038
- String.raw`customs (?:cleared|(?:has |have )?released)|\bcustoms (?:release|inspection|examination|check|control) (?:has been |was |is )?(?:granted|completed?|finished|done|passed)\b|\bcleared (?:through |by |the )?${Os}customs\b`,
9077
+ String.raw`(?:leaving|departed from|left|exited|exiting|out of|passed(?: through)?) (?:the )?${Ns}customs\b(?! (?:to|for) (?:the )?(?:sender|shipper)\b)`,
9078
+ String.raw`completion of customs|released by (?:customs|a government agency)|\breleased (?:from|out of|at) (?:the )?${Ns}customs\b|\breturned from (?:the )?${Ns}customs\b(?! to\b)`,
9079
+ String.raw`customs (?:cleared|(?:has |have )?released)|\bcustoms (?:release|inspection|examination|check|control) (?:has been |was |is )?(?:granted|completed?|finished|done|passed)\b|\bcleared (?:through |by |the )?${Ns}customs\b`,
9039
9080
  String.raw`formalites.*(?:terminee|achevee)|dedouanement.*(?:termine|acheve)|fin du dedouanement|\bdedouanement (?:(?:du colis|de (?:votre |l'|ce )?(?:colis|envoi)) )?(?:(?:a ete|est) )?(?:effectue|realise|reussi|valide|finalise)e?s?\b|\bdedouane(?:e|s|es)?\b|libere.*(?:douane|autorite)|douane.*libere|\bsorti(?:e|s|es)? de (?:la )?douane\b`,
9040
9081
  String.raw`zollabfertigung.*abgeschlossen|(?:zoll|behorde).*freigegeben|\bverzollt\b|\b(?:verzollung|zollabfertigung|zollkontrolle|zollprufung|zollformalitaten)\b${$}*?\b(?:abgeschlossen|erledigt|beendet)\b|\b(?:verzollung|zollfreigabe) (?:ist |wurde )?(?:erfolgt|erteilt)\b(?! durch)|\b(?:den zoll|das zolllager|die zollstelle|das zollamt) verlassen\b`,
9041
9082
  String.raw`sdoganamento.*completato|completamento.*sdoganamento|svincolat.*(?:dogana|autorita)|\bsdoganat[oaie]\b|\bsdoganamento\b${$}*?\b(?:effettuato|concluso|avvenuto|terminato|ultimato)\b|\bsvincolo (?:doganale )?(?:e )?(?:avvenuto|effettuato|concesso|completato|ottenuto)\b|\busci(?:to|ta|ti|te) dalla dogana\b|\bcontrollo doganale (?:e )?(?:superato|completato|concluso|terminato)\b`,
9042
9083
  String.raw`\b(?:liberad|despachad)[oa]s? (?:por|de|en|desde) (?:la |las )?aduanas?\b|\b(?:salida|salio|ha salido|sale) (?:de|desde) (?:la )?aduana\b|\b(?:tramites|despacho|gestion(?:es)?|proceso)(?: (?:de|del|en))?(?: (?:la |las |los )?aduanas?| aduaner[oa]s?)+ (?:(?:ha sido|han sido|fue|fueron) )?(?:finalizad|completad|terminad|concluid|realizad)[oa]s?\b`,
9043
9084
  String.raw`\b(?:liberad|desembaracad)[oa]s? (?:pela|na|da) (?:alfandega|aduana|fiscalizacao(?: aduaneira)?|receita federal)\b|\bdesalfandegad[oa]s?\b|\b(?:desalfandegamento|desembaraco(?: aduaneiro)?|fiscalizacao aduaneira|tramites aduaneiros|processo aduaneiro) (?:(?:foi|esta|foram) )?(?:concluid|finalizad|terminad|realizad|efetuad|efectuad)[oa]s?\b|\b(?:saiu|saida) (?:da|de) (?:alfandega|aduana)\b`,
9044
9085
  String.raw`\bodprawa celna (?:\w+ )?(?:zakonczona|zakonczyla sie|ukonczona)\b|\bodprawion[aey] celnie\b|\bzwolnion[aey] (?:przez urzad celny|z urzedu celnego)\b|\bopuscil[aoy]? urzad celny\b`
9045
- ].join("|")), js = new RegExp(String.raw`\bcustoms (?:hold|detention)\b|\b(?:held|on hold|detained|retained) (?:by|in|at) (?:the )?${Os}customs?\b|retenu en douane|vom zoll zuruckgehalten|fermo in dogana|retenido en aduana|retido na alfandega|zatrzyman[ay] przez (?:urzad celny|cel)`), Ms = new RegExp([
9086
+ ].join("|")), Is = new RegExp(String.raw`\bcustoms (?:hold|detention)\b|\b(?:held|on hold|detained|retained) (?:by|in|at) (?:the )?${Ns}customs?\b|retenu en douane|vom zoll zuruckgehalten|fermo in dogana|retenido en aduana|retido na alfandega|zatrzyman[ay] przez (?:urzad celny|cel)`), Ls = new RegExp([
9046
9087
  String.raw`\b(?:released|freed|cleared) (?:from|of) (?:the )?customs (?:hold|detention|inspection|examination)\b`,
9047
9088
  String.raw`\bcustoms (?:issue|problem|hold|detention)s? (?:(?:has|have) been |was |were |is |are )?(?:now )?(?:resolved|solved|lifted|released|cleared|removed|fixed)\b`,
9048
9089
  String.raw`\bprobleme (?:douanier|de douane) (?:a ete |est )?(?:resolu|regle|leve)e?\b|\bzollproblem (?:wurde |ist )?(?:behoben|gelost|geklart)\b|\bproblema doganale (?:e stato )?risolto\b|\bproblema (?:de|en la) aduana (?:ha sido |fue )?(?:resuelto|solucionado)\b|\bproblema (?:alfandegario|na alfandega) (?:foi )?resolvido\b`
9049
- ].join("|")), Ns = String.raw`(?:(?:at|per|by|upon|on|following|as per) (?:the )?(?:recipient|addressee|consignee|customer|receiver)(?:'s|s')? request|(?:at|per|by|upon|on|following) (?:the )?request of (?:the )?(?:recipient|addressee|consignee|customer|receiver)|requested by (?:the )?(?:recipient|addressee|consignee|customer|receiver)|(?:recipient|addressee|consignee|customer|receiver)(?: has)? requested\b|a la demande (?:du|de la) (?:destinataire|cliente?)|(?:auf|nach) (?:wunsch|anweisung|verlangen) (?:des|der) (?:empfangers|empfangerin|kunden|kundin)|auf (?:empfanger|kunden)wunsch|su richiesta del (?:destinatario|cliente)|(?:a|por) (?:peticion|solicitud|pedido) del (?:destinatario|cliente)|a pedido do (?:destinatario|cliente)|na (?:prosbe|zyczenie) (?:odbiorcy|adresata|klienta))`, Ps = String.raw`\b(?:on hold|held|hold|holding|retenu(?:e|s|es)?|en attente|mise? en instance|zuruckgehalten|zuruckbehalten|angehalten|gelagert|trattenut[oaie]|fermo|in sosta|retenid[oa]s?|en espera|retid[oa]s?|zatrzyman[aey]|wstrzyman[aey])\b`, Fs = RegExp(`${Ps}${$}*?${Ns}|${Ns}${$}*?${Ps}`), Is = /post office|postal outlet|pick ?up|collection|counter|retail (?:location|outlet)|bureau de poste|point (?:de )?retrait|point relais|filiale|abholung|ufficio postale|ritiro|oficina|recogida|levantamento|agencia/, Ls = String.raw`(?:recipient|addressee|consignee|customer|receiver)s?\b(?!'| (?:service|care|support)\b)`, Rs = String.raw`(?:pick ?up (?:point|station|parcel ?shop|locker)|collection point|(?:parcel )?lockers?|packstation|(?:post office |postal )?counter)\b`, zs = String.raw`(?:picked up|collected)`, Bs = new RegExp([
9050
- String.raw`\b${zs}(?: [\w'-]+){0,6}? by (?:the |a |an |its |your )?${Ls}|\b${Ls} (?:has |have )?(?:already )?${zs}\b|\b${zs} (?:from|at|in) (?:the |a |an |its |your |our )?(?:[\w-]+ ){0,2}?${Rs}`,
9090
+ ].join("|")), Rs = String.raw`(?:(?:at|per|by|upon|on|following|as per) (?:the )?(?:recipient|addressee|consignee|customer|receiver)(?:'s|s')? request|(?:at|per|by|upon|on|following) (?:the )?request of (?:the )?(?:recipient|addressee|consignee|customer|receiver)|requested by (?:the )?(?:recipient|addressee|consignee|customer|receiver)|(?:recipient|addressee|consignee|customer|receiver)(?: has)? requested\b|a la demande (?:du|de la) (?:destinataire|cliente?)|(?:auf|nach) (?:wunsch|anweisung|verlangen) (?:des|der) (?:empfangers|empfangerin|kunden|kundin)|auf (?:empfanger|kunden)wunsch|su richiesta del (?:destinatario|cliente)|(?:a|por) (?:peticion|solicitud|pedido) del (?:destinatario|cliente)|a pedido do (?:destinatario|cliente)|na (?:prosbe|zyczenie) (?:odbiorcy|adresata|klienta))`, zs = String.raw`\b(?:on hold|held|hold|holding|retenu(?:e|s|es)?|en attente|mise? en instance|zuruckgehalten|zuruckbehalten|angehalten|gelagert|trattenut[oaie]|fermo|in sosta|retenid[oa]s?|en espera|retid[oa]s?|zatrzyman[aey]|wstrzyman[aey])\b`, Bs = RegExp(`${zs}${$}*?${Rs}|${Rs}${$}*?${zs}`), Vs = /post office|postal outlet|pick ?up|collection|counter|retail (?:location|outlet)|bureau de poste|point (?:de )?retrait|point relais|filiale|abholung|ufficio postale|ritiro|oficina|recogida|levantamento|agencia/, Hs = String.raw`(?:recipient|addressee|consignee|customer|receiver)s?\b(?!'| (?:service|care|support)\b)`, Us = String.raw`(?:pick ?up (?:point|station|parcel ?shop|locker)|collection point|(?:parcel )?lockers?|packstation|(?:post office |postal )?counter)\b`, Ws = String.raw`(?:picked up|collected)`, Gs = new RegExp([
9091
+ String.raw`\b${Ws}(?: [\w'-]+){0,6}? by (?:the |a |an |its |your )?${Hs}|\b${Hs} (?:has |have )?(?:already )?${Ws}\b|\b${Ws} (?:from|at|in) (?:the |a |an |its |your |our )?(?:[\w-]+ ){0,2}?${Us}`,
9051
9092
  String.raw`\bretire(?:e|s|es)?\b${$}*? par (?:le |la |l'|son |sa )?(?:destinataire|cliente?)\b|\b(?:destinataire|cliente?) a retire\b|\bretire(?:e|s|es)? (?:au |en |dans (?:le |la |l'|un |une |votre |son )|a la |a l')(?:point (?:de )?retrait|point relais|relais|consigne|locker|bureau de poste)\b`,
9052
9093
  String.raw`\b(?:vom|von (?:der|dem)|durch (?:den|die)) (?:empfanger(?:in)?|kunden|kundin|adressaten|adressatin)\b${$}*?\babgeholt\b|\b(?:empfanger(?:in)?|kunde|kundin) hat\b${$}*?\babgeholt\b|\b(?:in|aus) (?:der|dem|einer|einem|ihrer|ihrem) (?:[\w-]+ )?(?:filiale|postfiliale|packstation|paketstation|abholstation|postamt)\b${$}*?\babgeholt\b`,
9053
9094
  String.raw`\britirat[oaie]\b${$}*? dal(?:la)? (?:destinatari[oa]|cliente)\b|\b(?:destinatari[oa]|cliente) ha ritirato\b|\britirat[oaie] (?:presso|in|al|nel|nella) (?:il |la |lo |l')?(?:punto (?:di )?ritiro|locker|ufficio postale)\b`,
9054
9095
  String.raw`\b(?:recogid|retirad)[oa]s? por (?:el |la )?destinatari[oa]\b|\bdestinatari[oa] (?:ya )?ha (?:recogido|retirado)\b|\b(?:levantad|retirad)[oa]s? pel[oa] destinatari[oa]\b|\bodebran[aeoy] przez (?:odbiorce|adresata)\b`
9055
- ].join("|")), Vs = String.raw`(?:picked up|collected|retire|abgeholt|ritirat|recogid|retirad|levantad|odebran)`, Hs = new RegExp(String.raw`(?:\b(?:not|never|nothing|non|pas|jamais|nicht|nao|nie)\b|n't)${$}*?${Vs}|\bno (?:(?:ha|han|fue|sido|se) )*(?:recogid|retirad)|\b(?:be|being|once|when|until|till|if|unless|before|etre|sera|seront|serait|essere|sara|saranno|verra|verranno)(?: [\w']+){0,3}? ${Vs}|\babgeholt (?:werden|wird)\b|\b(?:wird|werden|kann|konnen|muss|soll)\b${$}*?\babgeholt\b`), Us = new RegExp(String.raw`\b(?:by|from|par|de|du|vom|von|beim|dal|dalla|dallo|por|del|pelo|przez) (?:the |a |an |our |your |le |la |l'|den |der |dem |il |lo |el |o )?(?:[\w-]+ )?(?:couriers?|drivers?|carriers?|senders?|shippers?|sellers?|merchants?|consignors?|chauffeur|livreur|transporteur|coursier|expediteur|\w*(?:fahrer|kurier|zusteller|boten?)|absender|corriere|autista|vettore|mittente|repartidor|mensajero|transportista|remitente|motorista|estafeta|remetente|kuriera|nadawcy)\b(?!')`), Ws = new RegExp(String.raw`^(?:(?:the |your |this )?(?:shipment|parcel|package|order|consignment|item|delivery|(?:shipping )?label|envoi|colis|commande|livraison|sendung|paket|auftrag|bestellung|lieferung|spedizione|pacco|ordine|consegna|envio|paquete|pedido|entrega|encomenda|objeto|przesylka|paczka|zamowienie|gonderi|kargo|siparis) )?(?:(?:has been|was|is|a ete|est|wurde|ist|e stat[oa]|e|ha sido|fue|foi|zostal[ao]?) )?(?:cancell?ed|annulee?s?|storniert|annulliert|annullat[oa]|cancelad[oa]|anulad[oa]|anulowan[aeoy]|iptal edildi)$`);
9056
- function Gs(e) {
9096
+ ].join("|")), Ks = String.raw`(?:picked up|collected|retire|abgeholt|ritirat|recogid|retirad|levantad|odebran)`, qs = new RegExp(String.raw`(?:\b(?:not|never|nothing|non|pas|jamais|nicht|nao|nie)\b|n't)${$}*?${Ks}|\bno (?:(?:ha|han|fue|sido|se) )*(?:recogid|retirad)|\b(?:be|being|once|when|until|till|if|unless|before|etre|sera|seront|serait|essere|sara|saranno|verra|verranno)(?: [\w']+){0,3}? ${Ks}|\babgeholt (?:werden|wird)\b|\b(?:wird|werden|kann|konnen|muss|soll)\b${$}*?\babgeholt\b`), Js = new RegExp(String.raw`\b(?:by|from|par|de|du|vom|von|beim|dal|dalla|dallo|por|del|pelo|przez) (?:the |a |an |our |your |le |la |l'|den |der |dem |il |lo |el |o )?(?:[\w-]+ )?(?:couriers?|drivers?|carriers?|senders?|shippers?|sellers?|merchants?|consignors?|chauffeur|livreur|transporteur|coursier|expediteur|\w*(?:fahrer|kurier|zusteller|boten?)|absender|corriere|autista|vettore|mittente|repartidor|mensajero|transportista|remitente|motorista|estafeta|remetente|kuriera|nadawcy)\b(?!')`), Ys = new RegExp(String.raw`^(?:(?:the |your |this )?(?:shipment|parcel|package|order|consignment|item|delivery|(?:shipping )?label|envoi|colis|commande|livraison|sendung|paket|auftrag|bestellung|lieferung|spedizione|pacco|ordine|consegna|envio|paquete|pedido|entrega|encomenda|objeto|przesylka|paczka|zamowienie|gonderi|kargo|siparis) )?(?:(?:has been|was|is|a ete|est|wurde|ist|e stat[oa]|e|ha sido|fue|foi|zostal[ao]?) )?(?:cancell?ed|annulee?s?|storniert|annulliert|annullat[oa]|cancelad[oa]|anulad[oa]|anulowan[aeoy]|iptal edildi)$`);
9097
+ function Xs(e) {
9057
9098
  let t = vs(e);
9058
9099
  if (/^wird zugestellt$/.test(t)) return "out_for_delivery";
9059
9100
  let n = bs(t);
9060
- if (n !== void 0) return n ? Gs(n) : void 0;
9101
+ if (n !== void 0) return n ? Xs(n) : void 0;
9061
9102
  if (_s(t) || /\b(?:en|em) (?:proceso de |processo de )?devolu(?:cion|cao)\b|^devolu(?:cion|cao)$|\bdevolu(?:cion|cao) (?:en curso|em curso|iniciada|solicitada|en transito|em transito)\b|\bdevolu(?:cion|cao) (?:al|ao|a la|a) (?:remitente|remetente|origen|origem)\b(?! (?:completad|finalizad|concluid|entregad|entregue|realizad|efectuad|efetuad))|\ben camino (?:de vuelta |de regreso )?(?:al|hacia el) remitente\b|\b(?:a caminho (?:de volta )?(?:do|ao)|em transito para o) remetente\b|\b(?:siendo|sendo|a ser) (?:(?:devuelt|devolvid)[oa]s?|entregad[oa]s? al remitente|entregues? ao remetente)\b|\b(?:no|nao) (?:(?:ha|han|se|fue|foi|foram|sido|ser|sera|puede|pode|pudo|podido|todavia|aun|ainda|ya|ja) )*(?:(?:devuelt|devolvid)[oa]s?|entregad[oa]s? al remitente|entregues? ao remetente)\b|\b(?:sera|seran|serao|va a ser|vai ser|puede ser|pode ser|debe ser|deve ser|devera ser) (?:(?:pronto|proximamente|en breve|em breve|brevemente) )?(?:(?:devuelt|devolvid)[oa]s?|entregad[oa]s? al remitente|entregues? ao remetente)\b|\bse (?:le )?devolvera\b/.test(t)) return "exception";
9062
9103
  if (/returned to (?:the )?sender|retour(?:ne)? a l'expediteur|zuruck an (?:den )?absender|an (?:den )?absender zuruck|retour a l'expediteur|reso al mittente|restituit[oa] al mittente|delivered (?:back )?to (?:the )?(?:sender|shipper)/.test(t) || /^(?:(?:envio|paquete|pedido|objeto|encomenda|pacote|remessa) )?(?:devuelt|devolvid)[oa]$|\b(?:devuelt|devolvid|retornad)[oa]s? (?:al|ao|a la|a) (?:remitente|remetente|origen|origem)\b|\bentregad[oa]s? al remitente\b|\bentregues? ao remetente\b|\bdevolu(?:cion|cao) (?:(?:al|ao|a la|a) (?:remitente|remetente|origen|origem) )?(?:completad|finalizad|concluid|entregad|entregue|realizad|efectuad|efetuad)/.test(t)) return "returned";
9063
9104
  if (/^(?:a )?(?:new|next|another|further) (?:delivery )?attempt\b/.test(t) && !/\b(?:not|unable|fail(?:ed|ure)?|unsuccessful|missed|absent|closed|refused|nobody|no one)\b|n't\b/.test(t)) return "in_transit";
9064
- if (/not (?:yet )?delivered|\bundelivered\b|could not.*deliver|\bcan(?: ?not|'t) be delivered\b|unable to deliver|delivery (?:attempt|failed)|non livre|n'(?:a|avons) (?:pas )?pu.*(?:remis|remettre)|n'a pas pu etre (?:distribue|livre)|\bne (?:peut|pourra|pourrait|pouvait) (?:pas )?etre (?:distribue|livre)|livraison (?:impossible|echouee)|\bechec (?:de (?:la )?)?livraison|tentative de livraison|nicht zugestellt|nicht zugestellt werden|zustellung.*(?:fehlgeschlagen|nicht moglich)|zustellversuch|non consegnat[oa]|non e stato possibile consegnare|consegna (?:fallita|non riuscita)|tentativo di consegna/.test(t) || /\bno (?:(?:ha|han|hemos|se|le|lo|la|fue|sido|ser|es|era|pudo|puede|podido|posible|todavia|aun) )*(?:entregad[oa]s?|entregar(?:lo|la|le|se)?|repartid[oa]s?|realizar la entrega|efectuar la entrega)\b|\bsin entregar\b|\b(?:entrega|reparto) (?:fallid[oa]|imposible|no (?:(?:ha|han|se|fue|sido|ser|pudo|puede|podido) )*(?:realizad[oa]|efectuad[oa]|completad[oa]|posible|conseguid[oa]))\b|\bimposible (?:entregar|realizar la entrega|efectuar la entrega)\b|\bfallo (?:en la|de) entrega\b|\bintento fallido\b|\bintento de (?:entrega|reparto)\b(?! (?:programad|previst|para (?:hoy|manana|el)|manana|hoy))|\bnao (?:(?:foi|foram|ser|sera|pode|podemos|conseguimos|conseguiu|se|possivel|e|ainda|tem sido|esta|estava) )*(?:entregues?|entregar|efetuar a entrega|efectuar a entrega|realizar a entrega)\b|\bentrega (?:falhada|sem sucesso|impossivel|nao (?:(?:foi|pode|ser|sera|tem sido) )*(?:efetuada|efectuada|realizada|conseguida|concretizada|possivel))\b|\bfalha (?:na|de) entrega\b|\btentativa (?:de entrega|sem sucesso)\b(?! (?:agendada|prevista|programada|para (?:hoje|amanha)|amanha|hoje))|\bcarteiro nao atendido\b/.test(t) || !/\bpick ?up (?:attempt|was attempted|unsuccessful|failed)|attempted (?:to )?pick ?up/.test(t) && /(?:attempted|tried) to deliver|\bwe(?: have|'ve)? missed (?:you|each other)\b(?![^.;!?]*\bready for (?:pickup|collection)\b)|\battempted delivery\b(?! (?:is )?(?:scheduled|planned|expected|tomorrow|will)\b)|unsuccessful delivery|delivery (?:was )?unsuccessful|unable to complete (?:the |your |this )?delivery|(?<!\bif (?:the |your )?)\b(?:recipient|addressee|consignee|customer|receiver|user)(?: was| is)? (?:not (?:at home|home|available|present)|unavailable|absent)\b|absence of (?:the )?(?:recipient|addressee|consignee)|\bbusiness (?:was |is )?closed\b|destinataire absent|(?<!\ben cas d')\babsence du destinataire|(?:entreprise|societe) (?:etait |est )?fermee?\b|nicht angetroffen|(?:firma|betrieb|geschaft) (?:war |ist )?geschlossen|destinatario assente|(?:attivita|azienda|ditta) (?:era |e )?chiusa/.test(t) || !/\bintento de recogida\b|\brecogida (?:fallida|no realizada|no efectuada)\b|\btentativa de (?:recolha|coleta)\b|\b(?:recolha|coleta) (?:falhada|sem sucesso|nao (?:realizada|efetuada|efectuada))\b/.test(t) && !/\b(?:si|caso)\b[^.;:]*\b(?:ausen|nadie|ninguem|cerrad|fechad|no (?:esta|se encuentra)|nao (?:esta|se encontra))|\bse (?:o |a )?(?:destinatari[oa] |cliente )?(?:estiver|for|nao estiver)\b/.test(t) && /\bausen(?:te|tes|cia)\b|\b(?:destinatari[oa]|cliente|consignatari[oa]) (?:no (?:esta|estaba|se encuentra|se encontraba|disponible|presente)|nao (?:esta|estava|se encontra|se encontrava|disponivel|presente))\b|\bnadie en (?:casa|el domicilio)\b|\bninguem em casa\b|\b(?:establecimiento|negocio|empresa|comercio|tienda) (?:esta |estaba |se encontraba )?cerrad[oa]\b|\b(?:estabelecimento|empresa|loja|comercio|negocio) (?:esta |estava |se encontrava )?fechad[oa]\b/.test(t)) return "failed_attempt";
9065
- if (Fs.test(t)) return Is.test(t) ? "ready_for_pickup" : "in_transit";
9105
+ if (/not (?:yet )?delivered|\bundelivered\b|could not.*deliver|\bcan(?: ?not|'t) be delivered\b|unable to deliver|delivery (?:attempt|failed)|non livre|n'(?:a|avons) (?:pas )?pu.*(?:remis|remettre)|n'a pas pu etre (?:distribue|livre)|\bne (?:peut|pourra|pourrait|pouvait) (?:pas )?etre (?:distribue|livre)|livraison (?:impossible|echouee)|\bechec (?:de (?:la )?)?livraison|tentative de livraison|nicht zugestellt|nicht zugestellt werden|zustellung.*(?:fehlgeschlagen|nicht moglich)|zustellversuch|non consegnat[oa]|\bmancata consegna\b|non e stato possibile consegnare|consegna (?:fallita|non riuscita)|tentativo di consegna/.test(t) || /\bno (?:(?:ha|han|hemos|se|le|lo|la|fue|sido|ser|es|era|pudo|puede|podido|posible|todavia|aun) )*(?:entregad[oa]s?|entregar(?:lo|la|le|se)?|repartid[oa]s?|realizar la entrega|efectuar la entrega)\b|\bsin entregar\b|\b(?:entrega|reparto) (?:fallid[oa]|imposible|no (?:(?:ha|han|se|fue|sido|ser|pudo|puede|podido) )*(?:realizad[oa]|efectuad[oa]|completad[oa]|posible|conseguid[oa]))\b|\bimposible (?:entregar|realizar la entrega|efectuar la entrega)\b|\bfallo (?:en la|de) entrega\b|\bintento fallido\b|\bintento de (?:entrega|reparto)\b(?! (?:programad|previst|para (?:hoy|manana|el)|manana|hoy))|\bnao (?:(?:foi|foram|ser|sera|pode|podemos|conseguimos|conseguiu|se|possivel|e|ainda|tem sido|esta|estava) )*(?:entregues?|entregar|efetuar a entrega|efectuar a entrega|realizar a entrega)\b|\bentrega (?:falhada|sem sucesso|impossivel|nao (?:(?:foi|pode|ser|sera|tem sido) )*(?:efetuada|efectuada|realizada|conseguida|concretizada|possivel))\b|\bfalha (?:na|de) entrega\b|\btentativa (?:de entrega|sem sucesso)\b(?! (?:agendada|prevista|programada|para (?:hoje|amanha)|amanha|hoje))|\bcarteiro nao atendido\b/.test(t) || !/\bpick ?up (?:attempt|was attempted|unsuccessful|failed)|attempted (?:to )?pick ?up/.test(t) && /(?:attempted|tried) to deliver|\bwe(?: have|'ve)? missed (?:you|each other)\b(?![^.;!?]*\bready for (?:pickup|collection)\b)|\battempted delivery\b(?! (?:is )?(?:scheduled|planned|expected|tomorrow|will)\b)|unsuccessful delivery|delivery (?:was )?unsuccessful|unable to complete (?:the |your |this )?delivery|(?<!\bif (?:the |your )?)\b(?:recipient|addressee|consignee|customer|receiver|user)(?: was| is)? (?:not (?:at home|home|available|present)|unavailable|absent)\b|absence of (?:the )?(?:recipient|addressee|consignee)|\bbusiness (?:was |is )?closed\b|destinataire absent|(?<!\ben cas d')\babsence du destinataire|(?:entreprise|societe) (?:etait |est )?fermee?\b|nicht angetroffen|(?:firma|betrieb|geschaft) (?:war |ist )?geschlossen|destinatario assente|(?:attivita|azienda|ditta) (?:era |e )?chiusa/.test(t) || !/\bintento de recogida\b|\brecogida (?:fallida|no realizada|no efectuada)\b|\btentativa de (?:recolha|coleta)\b|\b(?:recolha|coleta) (?:falhada|sem sucesso|nao (?:realizada|efetuada|efectuada))\b/.test(t) && !/\b(?:si|caso)\b[^.;:]*\b(?:ausen|nadie|ninguem|cerrad|fechad|no (?:esta|se encuentra)|nao (?:esta|se encontra))|\bse (?:o |a )?(?:destinatari[oa] |cliente )?(?:estiver|for|nao estiver)\b/.test(t) && /\bausen(?:te|tes|cia)\b|\b(?:destinatari[oa]|cliente|consignatari[oa]) (?:no (?:esta|estaba|se encuentra|se encontraba|disponible|presente)|nao (?:esta|estava|se encontra|se encontrava|disponivel|presente))\b|\bnadie en (?:casa|el domicilio)\b|\bninguem em casa\b|\b(?:establecimiento|negocio|empresa|comercio|tienda) (?:esta |estaba |se encontraba )?cerrad[oa]\b|\b(?:estabelecimento|empresa|loja|comercio|negocio) (?:esta |estava |se encontrava )?fechad[oa]\b/.test(t)) return "failed_attempt";
9106
+ if (Bs.test(t)) return Vs.test(t) ? "ready_for_pickup" : "in_transit";
9066
9107
  if (/\b(?:damaged|broken in transit)\b|endommag|avarie|deterior|beschadigt|danneggiat|danad[oa]|danificad|uszkodzon/.test(t) || /\blost (?:in transit|package|parcel|shipment)?\b|colis perdu|envoi perdu|egare|verloren|verlust der sendung|smarrit|(?:paquete|envio) perdid|extraviad|zagubion|zaginion/.test(t) || /refused by (?:the )?(?:recipient|consignee)|\brefused\b|rejected by (?:the )?recipient|refus(?:e|ee)? par le destinataire|refus du destinataire|(?:colis|envoi|pli) refuse|annahme verweigert|verweigert|rifiutat|rechazad|recusad|odmowa przyjecia|odmowiono przyjecia/.test(t) || /address (?:incomplete|incorrect|invalid|insufficient|unknown)|(?:incorrect|incomplete|insufficient|wrong|invalid) address|(?:updated|correct(?:ed)?|complete) (?:delivery )?address (?:is )?(?:required|needed)|address(?:ee)? (?:unknown|cannot be located)|recipient unknown|adresse (?:incorrecte|incomplete|erronee|invalide|inconnue)|destinataire inconnu|(?:adresse|anschrift) (?:unvollstandig|falsch|unbekannt)|empfanger unbekannt|indirizzo (?:errato|incompleto|insufficiente|sconosciuto)|destinatario sconosciuto|direccion (?:incorrecta|incompleta|erronea|desconocida)|destinatario desconocido|endereco (?:incorreto|incompleto|errado|desconhecido)|destinatario desconhecido|adres (?:niepelny|nieprawidlowy|bledny)|nieznany adresat/.test(t)) return "exception";
9067
- if (Ms.test(t)) return "in_transit";
9108
+ if (Ls.test(t)) return "in_transit";
9068
9109
  if (/customs (?:issue|problem)|probleme de douane|zollproblem|problema doganale|problema de aduana|problema (?:alfandegario|na alfandega)|problem celny/.test(t)) return "exception";
9069
- if (js.test(t)) return "customs";
9070
- if (/(?:shipment|parcel|package) (?:is )?(?:held|blocked|on hold)|held pending|awaiting (?:your )?instructions|action required|(?:colis|envoi|pli) (?:bloque|retenu)|en attente d'instructions|action requise|sendung (?:blockiert|zuruckgehalten|angehalten)|wartet auf anweisungen|handlung erforderlich|spedizione (?:bloccata|trattenuta)|in attesa di istruzioni|envio (?:bloqueado|retenido)|en espera de instrucciones|accion requerida|encomenda (?:bloqueada|retida)|aguarda instrucoes|acao necessaria|przesylka (?:zatrzymana|wstrzymana)|oczekuje na instrukcje/.test(t) || /\bincident\b|\banomal(?:y|ie|ia)\b|delivery exception|shipment exception|irregularit|unregelmassigkeit|storung|vorfall|inconveniente|incidencia|nieprawidlowosc/.test(t) || Ws.test(t)) return "exception";
9110
+ if (Is.test(t)) return "customs";
9111
+ if (/(?:shipment|parcel|package) (?:is )?(?:held|blocked|on hold)|held pending|awaiting (?:your )?instructions|action required|(?:colis|envoi|pli) (?:bloque|retenu)|en attente d'instructions|action requise|sendung (?:blockiert|zuruckgehalten|angehalten)|wartet auf anweisungen|handlung erforderlich|spedizione (?:bloccata|trattenuta)|in attesa di istruzioni|envio (?:bloqueado|retenido)|en espera de instrucciones|accion requerida|encomenda (?:bloqueada|retida)|aguarda instrucoes|acao necessaria|przesylka (?:zatrzymana|wstrzymana)|oczekuje na instrukcje/.test(t) || /\bincident\b|\banomal(?:y|ie|ia)\b|delivery exception|shipment exception|irregularit|unregelmassigkeit|storung|vorfall|inconveniente|incidencia|nieprawidlowosc/.test(t) || Ys.test(t)) return "exception";
9071
9112
  if (/\b(?:data|information|details) delivered\b|\bdaten (?:ubermittelt|erhalten)|donnees (?:transmises|recues)/.test(t) || /\b(?:datos|informacion|dados|informacao|informacoes) (?:del envio |do envio |da encomenda )?(?:entregad[oa]s?|entregues?)\b/.test(t) || /\bpara (?:su )?(?:admision|admissao)\b|\b(?:deposited|dropped off)\b(?: [\w']+){0,8}? for (?:admission|acceptance)\b/.test(t)) return "registered";
9072
- if (Bs.test(t) && !Hs.test(t) && !Us.test(t)) return "delivered";
9113
+ if (Gs.test(t) && !qs.test(t) && !Js.test(t)) return "delivered";
9073
9114
  if (/delivered (?:to|at|in(?:to)?) [^.;,]*?(?:pick ?up (?:point|location)|parcel ?shop|access point|packstation|parcel locker|relay point|service point|collection point)|livre (?:au|en|dans (?:le|un|votre)) (?:point (?:de )?retrait|point relais|relais|consigne|locker)|(?:est|colis|envoi) disponible (?:dans|au|en) (?:votre |le |un )?(?:point (?:de )?retrait|point relais|relais|consigne|bureau de poste)/.test(t) || /(?<!\b(?:sera|seran|serao|ser|sea|seja|for|siendo|sendo) )\bentregad[oa]s? (?:en|a|al) (?:el |la |un |una |su |tu )?(?:punto (?:de )?(?:recogida|conveniencia)|punto (?:pack|celeritas|collectt|nacex|inpost|dpd|gls|seur|mrw|ups|correos)|locker|taquilla|consigna|citypaq|parcel ?shop|buzon inteligente)\b|(?<!\b(?:sera|serao|ser|seja|for|sendo) )\bentregues? (?:no|num|na|numa|em|ao|a) (?:ponto (?:de )?(?:recolha|levantamento|pickup|entrega)|ponto (?:ctt|dpd|gls|inpost|ups|payshop)|cacifo|locker|loja ctt|payshop)\b/.test(t)) return "ready_for_pickup";
9074
9115
  if (/delivered to (?:the |a |an |our )?(?:local |destination |final |next |onward |last mile )?(?:carrier|courier|airline|air carrier|hub|depot|terminal|forwarder|(?:handling )?agent|(?:logistics|transport(?:ation)?|shipping|delivery|courier) (?:company|provider|partner|agent|service)|sorting (?:center|centre|facility)|(?:processing |distribution |transit |delivery |logistics )?(?:center|centre|facility)|post office(?! box)|postal (?:operator|service|office)|destination country)\b|delivered to (?:the )?(?:\w+ )?(?:post|poste|posta)\b(?! box| office box)|delivered to (?:dhl|dpd|gls|ups|fedex|usps|tnt|hermes|evri|colissimo|chronopost|quickpac|planzer)\b|handed (?:over )?to (?:the |a |an |our )?(?:local |last mile )?delivery partner|en cours de livraison (?:au|en|vers (?:le|un|votre)) (?:point (?:de )?retrait|point relais|relais|consigne)|livre au transporteur|remis au transporteur local|an den lokalen zusteller ubergeben|consegnat[oa] al (?:corriere|vettore|trasportatore)/.test(t) || /(?<!\b(?:sera|seran|ser|sea|for) )\bentregad[oa]s? (?:(?:el|su|tu) (?:paquete|envio|pedido|bulto) )?(?:a|al|en) (?:el |la |un |una |nuestr[oa] )?(?:transportista|agencia (?:de )?(?:transporte|colaboradora|destino|origen)|operador(?: postal| logistico)?|mensajer(?:o|ia)|courier|empresa de (?:transporte|mensajeria|paqueteria)|compania (?:aerea|de transporte)|aerolinea|centro (?:de )?(?:clasificacion|distribucion|tratamiento|logistico|operaciones)|almacen|delegacion|plataforma|hub|correos|seur|mrw|nacex|tipsa|ctt|gls|dhl|dpd|ups|fedex|tnt|envialia|zeleris|paack|celeritas|inpost)\b|\bentregad[oa] por el remitente\b|(?<!\b(?:sera|serao|ser|seja|for) )\bentregues? (?:(?:a|o) (?:encomenda|envio|objeto) )?(?:a|ao|aos|as|na|no|nos|em) (?:transportadora|transportador|operador(?: postal| logistico)?|parceiro|companhia aerea|centro (?:de )?(?:distribuicao|tratamento|triagem|operacional|logistico)|armazem|plataforma|hub|ctt|correios|dpd|gls|dhl|ups|fedex|tnt|seur|mrw|nacex|tipsa|inpost)\b|\bentregue pelo remetente\b/.test(t)) return "in_transit";
9075
9116
  if (/will (?:shortly |soon )?be handed|bientot.*(?:confie|remis)|prochainement.*remis|wird.*(?:kurze|bald).*ubergeben|sara.*(?:breve|presto).*affidat/.test(t) || /\bpendiente de (?:entregar|entrega|recepcion|admision|recibir) (?:a|al|en|por) (?:la |el )?(?:agencia|transportista|operador|correos|seur|mrw|nacex|tipsa|ctt|gls|dhl|dpd|ups|fedex|envialia|zeleris|paack|inpost|celeritas)\b|\bpendiente de (?:recepcion|admision)\b|\baguarda entrada\b|\bpendente de (?:rececao|recepcao|entrada)\b/.test(t) || /or awaiting processing|ou en attente de traitement|oder wartet auf.*bearbeitung|o in attesa di elaborazione/.test(t)) return "registered";
@@ -9077,31 +9118,31 @@ function Gs(e) {
9077
9118
  if (/ready for (?:pickup|collection)|ready to collect|ready to be (?:picked up|collected)\b(?! (?:by|from) (?:the |a |an |our |your )?(?:courier|carrier|driver|sender|shipper|seller|merchant|warehouse)\b)|available for (?:pickup|collection)|awaiting (?:customer |recipient |your )?(?:pickup|collection)|pret.*(?:retrait|retire)|disponible.*(?:retrait|collecte)|vous attend (?:au|en|dans|chez|a)\b|mise? a disposition (?:au|en|dans|a)\b.*(?:point (?:de )?retrait|relais|consigne|locker|bureau de poste|agence)|jours? restants? pour (?:le )?retirer|abholbereit|zur abholung bereit|pront[oa] per il ritiro|disponibile per il ritiro|(?:deposited|depose|hinterlegt|depositat[oa]).*mypost24/.test(t) || /(?<!\b(?:no|nao|ya no|ja nao) (?:(?:esta|estara|se encuentra|se encontra|e|era|foi) )?)\bdisponi(?:ble|vel) (?:para (?:su |ser )?(?:recoger|recogida|recogid[oa]|retirar|retiro|retirada|retirad[oa]|levantamento|levantar|levantad[oa]|recolha|recolher)|(?:en|no|na|num|numa|em) (?:el |la |un |una |su |tu |nuestr[oa] )?(?:punto|oficina|tienda|locker|taquilla|consigna|citypaq|parcel ?shop|buzon inteligente|agencia|delegacion|sucursal|ponto|loja|cacifo|estacao|balcao|payshop|posto|unidade))\b|\blist[oa] para (?:su |ser )?(?:recoger|recogida|recogid[oa]|retirar|retiro)\b|\bpront[oa] (?:para|a) (?:ser )?(?:levantamento|levantar|levantad[oa]|recolha|recolher|retirada|retirar)\b|\b(?:ya )?(?:puede|puedes|podra|podras) (?:pasar a )?recoger(?:lo|la)?\b|\b(?:aguarda|aguardando|a aguardar) (?:o |a )?(?:levantamento|retirada)\b|\besperando (?:su|tu) recogida\b|\b(?:pendiente de|esperando|a la espera de) (?:ser )?recogid[oa] por (?:el |la )?destinatari[oa]\b/.test(t)) return "ready_for_pickup";
9078
9119
  if (/label (?:created|printed)|(?:created|generated) a (?:new )?(?:shipment |shipping )?label|etiquette.*(?:cree|imprime)|cree une etiquette|versandetikett.*(?:erstellt|gedruckt)|etikett erstellt|etichetta.*(?:creata|stampata)|creato un'etichetta|elektronisch|electroni(?:c|que|sch)|elettronic|pre.?advi[cs]|preannunciat|vorangemeldet|preannonce|data.*entered|donnees.*saisies|daten.*erfasst|dati.*inseriti|\bpre ?(?:registered|registration|registr?ad[oa]s?|registrat[oa]|enregistree?s?)\b|\bprerregistr(?:ad[oa]s?|o)\b|\bvorregistriert\b|\bwstepnie zarejestrowan[aey]\b/.test(t) || /\border (?:details|information|info|data) (?:(?:has|have) been |was |were )?(?:received|submitted|transmitted)\b|\breceived (?:your |the )?order (?:details|information|data)\b|\b(?:details|informations|donnees) de (?:la |votre )?commande (?:ont ete )?(?:recu|transmis)e?s?\b|\b(?:auftrags|bestell)daten (?:wurden |sind )?(?:erhalten|ubermittelt|eingegangen)\b|\b(?:dati|dettagli) (?:dell'ordine|ordine) (?:sono stati )?ricevuti\b|\b(?:datos|detalles|informacion) del pedido (?:han sido |fueron )?recibid[oa]s?\b|\b(?:dados|detalhes|informacoes?) d[oa] (?:pedido|encomenda) (?:foram )?recebid[oa]s?\b|\bdane zamowienia (?:zostaly )?(?:otrzymane|przyjete)\b|\botrzymano dane zamowienia\b/.test(t) || /shipment information (?:received|sent to)|\bdata received\b|(?:package|parcel|shipment) data (?:was |has been )?sent to|\bpre ?notification\b|informations d'expedition recues|sendungsinformationen erhalten|informazioni.*spedizione ricevute|(?:consignment|shipment|parcel|package) recorded by|envoi enregistre par|sendung.*absender.*erfasst|spedizione registrata dal/.test(t) || /preparation chez.*expediteur|preparation.*expediteur|preparazione.*mittente|being prepared.*sender|(?:shipper|sender)(?: that)? (?:they are|is|are) preparing|beim absender.*vorbereitet|warehouse of the sender|shippers warehouse|entrepot de l'expediteur|lager des absenders|magazzino del mittente|demande d'envoi.*prise en compte|collection request.*(?:received|recorded)|abholauftrag.*erfasst|richiesta.*ritiro.*registrata/.test(t)) return "registered";
9079
9120
  if (!/\b(?:at|in|by) (?:the )?(?:destination|delivery|recipient|consignee|addressee|customer|customs|office of exchange)\b/.test(t)) {
9080
- let e = t.replace(Cs, " ");
9081
- if (e !== t) return Gs(e.replace(/^[\s,;:.!?]+|[\s,;:]+$/g, "")) ?? "registered";
9121
+ let e = t.replace(Ds, " ");
9122
+ if (e !== t) return Xs(e.replace(/^[\s,;:.!?]+|[\s,;:]+$/g, "")) ?? (Ms.test(t) ? !Ps.test(t) && Fs.test(t) ? "in_transit" : "customs" : "registered");
9082
9123
  }
9083
9124
  if (/^(?:reported|recorded|announced|item created|enregistre|annonce|erfasst|angekundigt|registrato|annunciato)$/.test(t) || /^(?:(?:the |your |a |new )?(?:shipment|parcel|package|consignment|order|envoi|colis|expedition|commande|sendung|paket|auftrag|spedizione|pacco|ordine|envio|paquete|pedido|encomenda|przesylka|paczka|zamowienie|gonderi|kargo|siparis) )(?:(?:has been|was|a ete|wurde|e stat[oa]|ha sido|fue|foi|zostal[ao]?) )?(?:created|creee?s?|erstellt|angelegt|creat[oa]|cread[oa]|criad[oa]|utworzon[aey]|olusturuldu)$/.test(t)) return "registered";
9084
- if (ks.test(t)) return "customs";
9085
- if (As.test(t)) return "in_transit";
9086
- if (/customs|clearance|douan|formalites (?:d')?(?:import|export)|zoll|dogan|\b(?:des)?aduan[ae]|alfandeg|\bceln|government agency|autorite gouvernementale|staatliche behorde|autorita governativa/.test(t)) return "customs";
9087
- if (/out for (?:physical )?delivery|\bout with (?:the |a |our |your )?(?:delivery )?(?:courier|driver)s?\b(?! for (?:pick ?up|collection|return))|being delivered|in delivery|(?:loading|loaded).*delivery vehicle|on (?:\w+ )?vehicle for delivery|(?:courier|driver|delivery champion) has (?:the|your) (?:shipment|parcel|package|item)|en cours de livraison|en livraison|de la livraison de (?:son|votre) colis ce jour|charg(?:e|ement).*vehicule de livraison|in zustellung|zustellfahrzeug.*(?:geladen|verladen)|(?:beladen|verladung).*zustellfahrzeug|in consegna|caric(?:at|amento).*veicolo.*consegna/.test(t) || /^(?:en )?reparto$|\ben reparto\b|\b(?:siendo|sendo|a ser) (?:entregad[oa]s?|entregues?|repartid[oa]s?|distribuid[oa]s?)\b|\b(?:salida|salio|sale|ha salido) (?:a|para) (?:el )?reparto\b|\bruta de (?:reparto|entrega)\b|\ben proceso de entrega\b|\bvehiculo de reparto\b|\b(?:repartidor|mensajero|cartero|conductor) (?:ya )?(?:tiene|lleva) (?:tu|su|el|la) (?:paquete|envio|pedido|encomienda)\b|\bem distribuicao\b|\bsaiu para (?:a )?(?:entrega|distribuicao)\b|\bem (?:rota|processo|curso) de entrega\b|\bem entrega\b|\bveiculo de (?:entrega|distribuicao)\b|\b(?:carteiro|estafeta|motorista|entregador) (?:ja )?(?:tem|leva) (?:a|o) (?:sua |tua )?(?:encomenda|envio|objeto|pacote|volume)\b/.test(t) || Es.test(t) && !/\b(?:pick ?up|collection|return|sender|shipper|seller|merchant|consignor)/.test(t)) return "out_for_delivery";
9125
+ if (Ps.test(t)) return "customs";
9126
+ if (Fs.test(t)) return "in_transit";
9127
+ if (Ms.test(t)) return "customs";
9128
+ if (/out for (?:physical )?delivery|\bout with (?:the |a |our |your )?(?:delivery )?(?:courier|driver)s?\b(?! for (?:pick ?up|collection|return))|being delivered|in delivery|(?:loading|loaded).*delivery vehicle|on (?:\w+ )?vehicle for delivery|(?:courier|driver|delivery champion) has (?:the|your) (?:shipment|parcel|package|item)|en cours de livraison|en livraison|de la livraison de (?:son|votre) colis ce jour|charg(?:e|ement).*vehicule de livraison|in zustellung|zustellfahrzeug.*(?:geladen|verladen)|(?:beladen|verladung).*zustellfahrzeug|in consegna|caric(?:at|amento).*veicolo.*consegna/.test(t) || /^(?:en )?reparto$|\ben reparto\b|\b(?:siendo|sendo|a ser) (?:entregad[oa]s?|entregues?|repartid[oa]s?|distribuid[oa]s?)\b|\b(?:salida|salio|sale|ha salido) (?:a|para) (?:el )?reparto\b|\bruta de (?:reparto|entrega)\b|\ben proceso de entrega\b|\bvehiculo de reparto\b|\b(?:repartidor|mensajero|cartero|conductor) (?:ya )?(?:tiene|lleva) (?:tu|su|el|la) (?:paquete|envio|pedido|encomienda)\b|\bem distribuicao\b|\bsaiu para (?:a )?(?:entrega|distribuicao)\b|\bem (?:rota|processo|curso) de entrega\b|\bem entrega\b|\bveiculo de (?:entrega|distribuicao)\b|\b(?:carteiro|estafeta|motorista|entregador) (?:ja )?(?:tem|leva) (?:a|o) (?:sua |tua )?(?:encomenda|envio|objeto|pacote|volume)\b/.test(t) || As.test(t) && !/\b(?:pick ?up|collection|return|sender|shipper|seller|merchant|consignor)/.test(t)) return "out_for_delivery";
9088
9129
  if (/\bdelivered\b|^final delivery$|delivery complete(?:d)?\b|delivery (?:was )?successful|(?:a ete|est) distribue|^(?:livre|livree)(?:$|[ ,])|(?:colis|envoi|est|a ete) livre|zugestellt|\bconsegnat[oa]\b|livraison effectuee|consegna completata/.test(t) || !/\b(?:una vez|cuando|hasta que|antes de que|para que|en cuanto|tan pronto como|uma vez|quando|assim que|ate que|logo que)\b[^.;:]*\bentreg/.test(t) && /(?<!\b(?:sea|sean|fuera|fuese|ser|seja|sejam|fosse|for|forem|que|se) )\b(?:entregad[oa]s?|entregues?)\b|\bentrega (?:realizada|efectuada|efetuada|completada|concluida|finalizada)\b/.test(t)) return "delivered";
9089
- if (Ds.test(t)) return "in_transit";
9130
+ if (js.test(t)) return "in_transit";
9090
9131
  if (/^(?:the |your )?(?:item|package|parcel|shipment) (?:has been |was |is )?(?:received for transport|dropped off by (?:the )?sender at (?:our |the )?postal partner)\b/.test(t)) return "accepted";
9091
9132
  if (/^(?:load vehicle|scan ok gateway)$/.test(t) || /^(?:the )?item in process in office of exchange\b/.test(t)) return "in_transit";
9092
9133
  if (/^(?:posting\/collection|posted|origin scan)$|received at (?:our |the )?(?:[a-z]+ )?origin (?:office|facility|hub)|dropped off (?:after|before) (?:the )?latest drop ?off time/.test(t) || /accepted|picked up|pick up was successful|^drop off$|pick ?up scan|prepared the package for return to ups or pickup by ups|handed (?:over )?to (?:dpd|gls)|package received at dhl|item booked|consignment was mailed|posted at a postal point|pris en charge|prise en charge|collecte.*(?:reussi|effectue)|recupere.*boite aux lettres|depose.*point postal|remis a (?:dpd|gls)|envoi.*depose|abholung.*erfolgreich|eingeliefert|an (?:dpd|gls) ubergeben|paket.*(?:angenommen|ubernommen)|ritiro.*(?:riuscito|effettuato)|pres[oa] in carico|affidat[oa] a (?:dpd|gls)|depositat.*punto postale|spedizione.*impostata/.test(t) || /(?<!\b(?:no|nao) )\badmitid[oa]s?\b|\badmision en origen\b/.test(t)) return "accepted";
9093
9134
  if (/transit|\bline ?haul\b|en route|on (?:its|the) way|\bfacility\b|airport|\bleaving\b|\bdispatched\b|^delay(?:ed)?$|received by (?:the )?(?:local )?(?:delivery|logistics) company|received by postnl|notification.*sent to the recipient|delivery option requested|instruction de livraison recue|expedie (?:depuis|du|de)\b|acheminement|unterwegs|transport|trasport|arriv|depart|processed|processing completed|sorted|sorting|\btri\b|trie|traitement|traite|sortier|bearbeitet|bearbeitung|elaborat|elaborazion|smistat|parcel cent(?:er|re)|delivery cent(?:er|re)|centre.*(?:colis|distribution)|paketzentrum|verteilzentrum|centro.*(?:pacchi|distribuzione)|depot|import scan|scan.*import|importscan|scansione.*import|delivery.*delayed|livraison.*(?:retard|report)|zustellung.*verzogert|consegna.*ritard|transferred|transfere|weitergeleitet|inoltrato|left.*(?:point|center)|quitte|verlassen|raggiunto|close bag|fermeture du sac|sack.*geschlossen|chiusura.*sacco|scanned into|scanne dans|eingescannt|scansionat|\bloaded\b|^(?:item|parcel|shipment) distributed$|charg.*vehicule de transport|transportfahrzeug.*geladen|caric.*veicolo.*trasporto/.test(t) || /^enviad[oa]$|\bclasificad[oa]s?\b|\bclasificacion\b|\ben ruta\b|\ben camino\b|\bllegad[oa]s? (?:a|al|en)\b|\bllegada (?:a|al|en|de)\b|\bha llegado\b|\bllego (?:a|al)\b|\bsalida (?:de|del|desde)\b|\b(?:ha )?salido (?:de|del)\b|\bsalio (?:de|del)\b|\ben destino\b|\b(?:agencia|delegacion|plataforma|oficina|franquicia) (?:de )?destino\b|\b(?:unidad|centro|oficina|delegacion|base|agencia|plataforma) de reparto\b|\bcentro (?:de )?(?:clasificacion|distribucion|tratamiento|logistico|operaciones|operativo)\b|\blectura\b|\bleid[oa]s?\b|\brecepcionad[oa]s?\b|\bprocesad[oa]s?\b|\bexpedid[oa]s?\b|\btriagem\b|\btriad[oa]s?\b|\bem tratamento\b|\btratad[oa]s?\b|\bcentro (?:de )?(?:distribuicao|tratamento|triagem|operacional)\b|\bchegad[ao] (?:a|ao|no|na|em)\b|\bchegou (?:a|ao|no|na|em)\b|\bsaida (?:do|da|de|dos|das)\b|\bsaiu (?:do|da|de|dos|das)\b|\bem rota\b|\ba caminho\b|\bencaminhad[oa]s?\b|\b(?:em )?transferencia\b|\btransferid[oa]s?\b|\bprocessad[oa]s?\b|\brecebid[oa] (?:no|na|em) (?:centro|armazem|unidade|plataforma)\b|\brecibid[oa] en (?:el |la |nuestr[oa] )?(?:almacen|centro|delegacion|plataforma|hub|agencia)\b/.test(t)) return "in_transit";
9094
9135
  }
9095
- function Ks(e) {
9136
+ function Zs(e) {
9096
9137
  return e === "registered" || e === "pending" ? "pending" : e === "delivered" ? "delivered" : e === "out_for_delivery" || e === "ready_for_pickup" ? "out_for_delivery" : e === "returned" || e === "failed_attempt" || e === "exception" ? "exception" : "in_transit";
9097
9138
  }
9098
9139
  //#endregion
9099
9140
  //#region core/status/wording.ts
9100
- function qs(e, t = "in_transit") {
9141
+ function Qs(e, t = "in_transit") {
9101
9142
  let n = (e, t) => ({
9102
9143
  stage: e,
9103
9144
  source: `wording:${t}`
9104
- }), r = Gs(e);
9145
+ }), r = Xs(e);
9105
9146
  if (r) return n(r, "language");
9106
9147
  let i = (bs(e) ?? e).toLocaleLowerCase("en-US").replaceAll("_", " ").trim().split(/\s+/).join(" ");
9107
9148
  return i.includes("to be delivered") ? n("in_transit", "to_be_delivered") : i === "reported" ? n("registered", "reported") : [
@@ -9256,14 +9297,14 @@ function qs(e, t = "in_transit") {
9256
9297
  source: "none"
9257
9298
  };
9258
9299
  }
9259
- function Js(e, t = "in_transit") {
9260
- return qs(e, t).stage;
9300
+ function $s(e, t = "in_transit") {
9301
+ return Qs(e, t).stage;
9261
9302
  }
9262
9303
  //#endregion
9263
9304
  //#region core/result/resolve.ts
9264
- var Ys = new Set(Se);
9265
- function Xs(e) {
9266
- if (Ys.has(e.current_stage ?? "")) return e.current_stage;
9305
+ var ec = new Set(ye);
9306
+ function tc(e) {
9307
+ if (ec.has(e.current_stage ?? "")) return e.current_stage;
9267
9308
  let t = {
9268
9309
  pending: "pending",
9269
9310
  in_transit: "in_transit",
@@ -9272,32 +9313,32 @@ function Xs(e) {
9272
9313
  exception: "failed_attempt"
9273
9314
  }[e.status ?? "unknown"];
9274
9315
  if (!t) return null;
9275
- let n = qs(e.last_status_text ?? "", t).stage, r = e.events?.[0]?.stage;
9276
- return n === "pending" && Ys.has(r ?? "") ? r : n;
9316
+ let n = Qs(e.last_status_text ?? "", t).stage, r = e.events?.[0]?.stage;
9317
+ return n === "pending" && ec.has(r ?? "") ? r : n;
9277
9318
  }
9278
- function Zs(e) {
9279
- let t = Xs(e);
9319
+ function nc(e) {
9320
+ let t = tc(e);
9280
9321
  return !!(t && t !== "pending") || (e.events ?? []).some((e) => {
9281
- let t = Ys.has(e.stage ?? "") ? e.stage : void 0;
9282
- return !!(t && t !== "pending") || !!(e.description && qs(e.description, "pending").stage !== "pending");
9322
+ let t = ec.has(e.stage ?? "") ? e.stage : void 0;
9323
+ return !!(t && t !== "pending") || !!(e.description && Qs(e.description, "pending").stage !== "pending");
9283
9324
  });
9284
9325
  }
9285
- function Qs(e, t = "in_transit") {
9286
- return qs(e, t);
9326
+ function rc(e, t = "in_transit") {
9327
+ return Qs(e, t);
9287
9328
  }
9288
- function $s(e, t = "in_transit") {
9289
- return Qs(e, t).stage;
9329
+ function ic(e, t = "in_transit") {
9330
+ return rc(e, t).stage;
9290
9331
  }
9291
- function ec(e, t, n) {
9292
- return Ys.has(e) ? typeof n == "string" && n.length <= 100 && (n === "none" || n === "carrier_map" || /^wording:[a-z0-9_]+$/.test(n)) ? n : "carrier_map" : Qs(t).source;
9332
+ function ac(e, t, n) {
9333
+ return ec.has(e) ? typeof n == "string" && n.length <= 100 && (n === "none" || n === "carrier_map" || /^wording:[a-z0-9_]+$/.test(n)) ? n : "carrier_map" : rc(t).source;
9293
9334
  }
9294
- function tc(e) {
9295
- let t = gs(e), n = Xs(t), r = (t.events ?? []).map((e) => {
9296
- let t = Ys.has(e.stage ?? "") ? e.stage : void 0, n = qs(e.description ?? "", "in_transit");
9335
+ function oc(e) {
9336
+ let t = gs(e), n = tc(t), r = (t.events ?? []).map((e) => {
9337
+ let t = ec.has(e.stage ?? "") ? e.stage : void 0, n = Qs(e.description ?? "", "in_transit");
9297
9338
  return {
9298
9339
  ...e,
9299
9340
  stage: t ?? n.stage,
9300
- stage_source: t ? ec(t, e.description ?? "", e.stage_source) : n.source,
9341
+ stage_source: t ? ac(t, e.description ?? "", e.stage_source) : n.source,
9301
9342
  instant: No(e.time)?.iso ?? null
9302
9343
  };
9303
9344
  });
@@ -9309,11 +9350,11 @@ function tc(e) {
9309
9350
  }
9310
9351
  //#endregion
9311
9352
  //#region core/errors/hint.ts
9312
- function nc(e) {
9313
- return ne(e) ?? (e instanceof TypeError || e instanceof RangeError || e instanceof SyntaxError ? "schema" : "transport");
9353
+ function sc(e) {
9354
+ return g(e) ?? (e instanceof TypeError || e instanceof RangeError || e instanceof SyntaxError ? "schema" : "transport");
9314
9355
  }
9315
- function rc(e) {
9316
- let t = nc(e), n = h(e);
9356
+ function cc(e) {
9357
+ let t = sc(e), n = _(e);
9317
9358
  return {
9318
9359
  kind: t,
9319
9360
  ...n === void 0 ? {} : { retryAfterMs: n }
@@ -9321,19 +9362,19 @@ function rc(e) {
9321
9362
  }
9322
9363
  //#endregion
9323
9364
  //#region core/catalog/networks.ts
9324
- var ic = [
9365
+ var lc = [
9325
9366
  "dhl",
9326
9367
  "dpd",
9327
9368
  "gls",
9328
9369
  "hermes",
9329
9370
  "evri"
9330
9371
  ];
9331
- function ac(e) {
9332
- return ic.find((t) => e === t || e.startsWith(`${t}-`));
9372
+ function uc(e) {
9373
+ return lc.find((t) => e === t || e.startsWith(`${t}-`));
9333
9374
  }
9334
9375
  //#endregion
9335
9376
  //#region generated/recognition.ts
9336
- var oc = {
9377
+ var dc = {
9337
9378
  aliexpress: 14,
9338
9379
  "australia-post": 6,
9339
9380
  "austrian-post": 39,
@@ -9383,26 +9424,26 @@ var oc = {
9383
9424
  tnt: 44,
9384
9425
  ukrposhta: 5,
9385
9426
  uniuni: 33
9386
- }, sc = 5;
9387
- function cc(e) {
9388
- let t = g(e);
9427
+ }, fc = 5;
9428
+ function pc(e) {
9429
+ let t = y(e);
9389
9430
  if (/^[A-Z0-9]{4,40}$/.test(t)) return t.match(/[A-Z]+|[0-9]+/g).map((e) => `${/^[0-9]/.test(e) ? "D" : "A"}${e.length}`).join("");
9390
9431
  }
9391
- function lc(e, t, n) {
9392
- return _[e]?.detectionRules.find((e) => new RegExp(e.pattern).test(t) && (!e.rawPattern || new RegExp(e.rawPattern).test(n)) && (!e.checksum || yt[e.checksum](t)))?.checksum !== void 0;
9432
+ function mc(e, t, n) {
9433
+ return b[e]?.detectionRules.find((e) => new RegExp(e.pattern).test(t) && (!e.rawPattern || new RegExp(e.rawPattern).test(n)) && (!e.checksum || gt[e.checksum](t)))?.checksum !== void 0;
9393
9434
  }
9394
- function uc(e, t = {}) {
9395
- let n = y(e), r = n.carrier === "intl-post";
9435
+ function hc(e, t = {}) {
9436
+ let n = S(e), r = n.carrier === "intl-post";
9396
9437
  if (n.confidence !== "low" && !r) return [];
9397
- let i = g(e), a = r ? Object.entries(_).flatMap(([t, n]) => {
9438
+ let i = y(e), a = r ? Object.entries(b).flatMap(([t, n]) => {
9398
9439
  let r = n.detectionRules.find((t) => t.confidence === "low" && (!t.checksum || t.checksum === "s10") && new RegExp(t.pattern).test(i) && (!t.rawPattern || new RegExp(t.rawPattern).test(e.trim().toUpperCase())));
9399
9440
  return r ? [{
9400
9441
  carrier: t,
9401
9442
  preferred: r.preferred === !0
9402
9443
  }] : [];
9403
- }) : [], o = r ? a.map(({ carrier: e }) => e) : n.candidates, s = r ? a.filter((e) => e.preferred).map(({ carrier: e }) => e) : n.preferred, c = t.phase === "browser" ? Object.fromEntries(Object.entries(_).map(([e, t]) => [e, t.tracking.browserRecognitionRank])) : oc, l = new Set(s.filter((e) => c[e] === void 0).map((e) => ac(e)).filter(Boolean)), u = t.countryHint?.trim().toUpperCase(), d = (e) => {
9444
+ }) : [], o = r ? a.map(({ carrier: e }) => e) : n.candidates, s = r ? a.filter((e) => e.preferred).map(({ carrier: e }) => e) : n.preferred, c = t.phase === "browser" ? Object.fromEntries(Object.entries(b).map(([e, t]) => [e, t.tracking.browserRecognitionRank])) : dc, l = new Set(s.filter((e) => c[e] === void 0).map((e) => uc(e)).filter(Boolean)), u = t.countryHint?.trim().toUpperCase(), d = (e) => {
9404
9445
  if (!u || !/^[A-Z]{2}$/.test(u)) return 0;
9405
- let t = _[e]?.countries ?? [];
9446
+ let t = b[e]?.countries ?? [];
9406
9447
  return t[0] === u ? 2 : +!!t.includes(u);
9407
9448
  }, f = (e) => {
9408
9449
  let n = t.priorities?.[e];
@@ -9412,10 +9453,10 @@ function uc(e, t = {}) {
9412
9453
  +!!s.includes(e),
9413
9454
  d(e),
9414
9455
  f(e),
9415
- +!!lc(e, i, p),
9456
+ +!!mc(e, i, p),
9416
9457
  c[e] ?? 0
9417
9458
  ];
9418
- return o.filter((e) => c[e] !== void 0 && Pe.has(e) && je(e) !== "universal" && !l.has(ac(e)) && !t.skip?.(e)).map((e) => ({
9459
+ return o.filter((e) => c[e] !== void 0 && je.has(e) && Oe(e) !== "universal" && !l.has(uc(e)) && !t.skip?.(e)).map((e) => ({
9419
9460
  carrier: e,
9420
9461
  score: m(e)
9421
9462
  })).sort((e, t) => {
@@ -9426,14 +9467,14 @@ function uc(e, t = {}) {
9426
9467
  return 0;
9427
9468
  }).map(({ carrier: t }) => ({
9428
9469
  carrier: t,
9429
- needsInput: Ne(t, e)[0]?.field ?? null,
9470
+ needsInput: Ae(t, e)[0]?.field ?? null,
9430
9471
  preferred: s.includes(t)
9431
9472
  })).filter((e) => t.phase !== "browser" || !e.needsInput);
9432
9473
  }
9433
9474
  //#endregion
9434
9475
  //#region core/recognition/index.ts
9435
- var dc = 5184e6;
9436
- async function fc(e, t, n, r) {
9476
+ var gc = 5184e6;
9477
+ async function _c(e, t, n, r) {
9437
9478
  let i = e.map((e) => ({
9438
9479
  ...e,
9439
9480
  status: "failed",
@@ -9465,12 +9506,12 @@ async function fc(e, t, n, r) {
9465
9506
  }
9466
9507
  return r?.throwIfAborted(), i.map((e) => ({ ...e }));
9467
9508
  }
9468
- function pc(e, t) {
9509
+ function vc(e, t) {
9469
9510
  let n = Date.parse(e.lastActivityAt ?? "");
9470
- return !Number.isFinite(n) || t.getTime() - n < dc;
9511
+ return !Number.isFinite(n) || t.getTime() - n < gc;
9471
9512
  }
9472
- function mc(e, t = /* @__PURE__ */ new Date()) {
9473
- let n = e.filter((e) => e.status === "known" && pc(e, t));
9513
+ function yc(e, t = /* @__PURE__ */ new Date()) {
9514
+ let n = e.filter((e) => e.status === "known" && vc(e, t));
9474
9515
  if (n.length === 0) return { choices: [] };
9475
9516
  if (n.length === 1) return {
9476
9517
  carrier: n[0].carrier,
@@ -9481,8 +9522,8 @@ function mc(e, t = /* @__PURE__ */ new Date()) {
9481
9522
  carrier: r[0].carrier,
9482
9523
  choices: []
9483
9524
  };
9484
- if (new Set(n.map((e) => ac(e.carrier) ?? e.carrier)).size === 1) {
9485
- let [e] = [...n].sort((e, t) => (oc[t.carrier] ?? 0) - (oc[e.carrier] ?? 0));
9525
+ if (new Set(n.map((e) => uc(e.carrier) ?? e.carrier)).size === 1) {
9526
+ let [e] = [...n].sort((e, t) => (dc[t.carrier] ?? 0) - (dc[e.carrier] ?? 0));
9486
9527
  return {
9487
9528
  carrier: e.carrier,
9488
9529
  choices: []
@@ -9492,14 +9533,14 @@ function mc(e, t = /* @__PURE__ */ new Date()) {
9492
9533
  }
9493
9534
  //#endregion
9494
9535
  //#region core/catalog/hints.ts
9495
- var hc = (e) => e.toLowerCase().replace(/[^a-z0-9]/g, ""), gc = [
9536
+ var bc = (e) => e.toLowerCase().replace(/[^a-z0-9]/g, ""), xc = [
9496
9537
  "dhl",
9497
9538
  "dpd",
9498
9539
  "gls",
9499
9540
  "hermes",
9500
9541
  "evri",
9501
9542
  "post"
9502
- ], _c = {
9543
+ ], Sc = {
9503
9544
  ups: "ups",
9504
9545
  swisspost: "swiss-post",
9505
9546
  laposte: "la-poste",
@@ -9512,11 +9553,11 @@ var hc = (e) => e.toLowerCase().replace(/[^a-z0-9]/g, ""), gc = [
9512
9553
  spainpost: "correos-spain"
9513
9554
  };
9514
9555
  [
9515
- ...Object.entries(_).filter(([e]) => e !== "unknown").flatMap(([, e]) => [e.displayName, ...e.aliases ?? []].map(hc)),
9516
- ...Object.keys(_c),
9517
- ...gc
9556
+ ...Object.entries(b).filter(([e]) => e !== "unknown").flatMap(([, e]) => [e.displayName, ...e.aliases ?? []].map(bc)),
9557
+ ...Object.keys(Sc),
9558
+ ...xc
9518
9559
  ];
9519
- var vc = /* @__PURE__ */ new Map([
9560
+ var Cc = /* @__PURE__ */ new Map([
9520
9561
  ["AU", "australia-post"],
9521
9562
  ["CA", "canada-post"],
9522
9563
  ["CH", "swiss-post"],
@@ -9527,46 +9568,47 @@ var vc = /* @__PURE__ */ new Map([
9527
9568
  ["GB", "royal-mail"],
9528
9569
  ["JP", "japan-post"],
9529
9570
  ["NL", "spring-gds"],
9571
+ ["PL", "poczta-polska"],
9530
9572
  ["SE", "postnord"],
9531
9573
  ["US", "usps"]
9532
- ]), yc = new Intl.DisplayNames(["en"], { type: "region" }), bc = (e) => new Intl.Locale(`und-${e}`).region ?? e;
9574
+ ]), wc = new Intl.DisplayNames(["en"], { type: "region" }), Tc = (e) => new Intl.Locale(`und-${e}`).region ?? e;
9533
9575
  new Map([
9534
- ...Array.from({ length: 676 }, (e, t) => String.fromCharCode(65 + Math.floor(t / 26), 65 + t % 26)).map((e) => [hc(yc.of(e) ?? ""), bc(e)]).filter(([e, t]) => e !== "" && e !== t.toLowerCase()),
9576
+ ...Array.from({ length: 676 }, (e, t) => String.fromCharCode(65 + Math.floor(t / 26), 65 + t % 26)).map((e) => [bc(wc.of(e) ?? ""), Tc(e)]).filter(([e, t]) => e !== "" && e !== t.toLowerCase()),
9535
9577
  ["uk", "GB"],
9536
9578
  ["usa", "US"]
9537
9579
  ]);
9538
- function xc(e) {
9580
+ function Ec(e) {
9539
9581
  if (typeof e != "string") return;
9540
9582
  let t = e.trim().toUpperCase();
9541
- return vc.get(t) || [...vc].find(([e]) => yc.of(e)?.toUpperCase() === t)?.[1];
9583
+ return Cc.get(t) || [...Cc].find(([e]) => wc.of(e)?.toUpperCase() === t)?.[1];
9542
9584
  }
9543
- function Sc(e, t) {
9585
+ function Dc(e, t) {
9544
9586
  let n;
9545
9587
  try {
9546
9588
  n = new URL(e);
9547
9589
  } catch {
9548
9590
  return [];
9549
9591
  }
9550
- return !["https:", "http:"].includes(n.protocol) || n.username || n.password ? [] : ["post.ch", "www.post.ch"].includes(n.hostname) ? ["swiss-post"] : [...new Set(Ie.filter((e) => e.domains.some((e) => Re(n.hostname, e)) && (!t || !e.pathPattern || e.pathPattern.test(n.pathname))).map((e) => e.carrier))];
9592
+ return !["https:", "http:"].includes(n.protocol) || n.username || n.password ? [] : ["post.ch", "www.post.ch"].includes(n.hostname) ? ["swiss-post"] : [...new Set(Ne.filter((e) => e.domains.some((e) => Fe(n.hostname, e)) && (!t || !e.pathPattern || e.pathPattern.test(n.pathname))).map((e) => e.carrier))];
9551
9593
  }
9552
- function Cc(e, t) {
9553
- return [...new Set(e.flatMap((e) => [...String(e ?? "").matchAll(/https?:\/\/[^\s<>"')]+/gi)].flatMap(([e]) => Sc(e, !0)).filter((e) => e !== t)))];
9594
+ function Oc(e, t) {
9595
+ return [...new Set(e.flatMap((e) => [...String(e ?? "").matchAll(/https?:\/\/[^\s<>"')]+/gi)].flatMap(([e]) => Dc(e, !0)).filter((e) => e !== t)))];
9554
9596
  }
9555
9597
  //#endregion
9556
9598
  //#region core/catalog/handoff.ts
9557
- function wc(e, t) {
9558
- return !Pe.has(e) || je(e) === "universal" || Ne(e, t).length > 0 ? !1 : Me(e, t).length === 0 || y(t).candidates.includes(e);
9599
+ function kc(e, t) {
9600
+ return !je.has(e) || Oe(e) === "universal" || Ae(e, t).length > 0 ? !1 : ke(e, t).length === 0 || S(t).candidates.includes(e);
9559
9601
  }
9560
- function Tc(e, t, n) {
9602
+ function Ac(e, t, n) {
9561
9603
  if (n.delivery_tracking_number != null && (typeof n.delivery_tracking_number != "string" || !/^[A-Z0-9]{4,40}$/.test(n.delivery_tracking_number))) return null;
9562
- let r = Cc([n.last_status_text, ...(n.events ?? []).map((e) => e.description)], e);
9604
+ let r = Oc([n.last_status_text, ...(n.events ?? []).map((e) => e.description)], e);
9563
9605
  if (!n.delivery_carrier && r.length > 1) return null;
9564
9606
  let i = n.delivery_carrier ?? r[0], a = "partner", o = n.delivery_tracking_number || t, s = typeof n.destination_country == "string" ? n.destination_country : typeof n.destination_country_name == "string" ? n.destination_country_name : void 0;
9565
- if (!i && dt(o) && (i = xc(s), i === "japan-post" && o.startsWith("U") && (i = void 0), i && (a = "destination")), !i && n.delivery_tracking_number) {
9566
- let e = y(o);
9607
+ if (!i && ct(o) && (i = Ec(s), i === "japan-post" && o.startsWith("U") && (i = void 0), i && (a = "destination")), !i && n.delivery_tracking_number) {
9608
+ let e = S(o);
9567
9609
  e.confidence === "high" && (i = e.carrier, a = "reference");
9568
9610
  }
9569
- return !i && !n.delivery_tracking_number && ["aliexpress", "intl-post"].includes(e) && ft(t) && (!s || ["ch", "switzerland"].includes(s.trim().toLowerCase())) && (i = "swiss-post", a = "reference"), !i || i === e || !/^[A-Z0-9]{4,40}$/.test(o) || !wc(i, o) ? null : {
9611
+ return !i && !n.delivery_tracking_number && ["aliexpress", "intl-post"].includes(e) && lt(t) && (!s || ["ch", "switzerland"].includes(s.trim().toLowerCase())) && (i = "swiss-post", a = "reference"), !i || i === e || !/^[A-Z0-9]{4,40}$/.test(o) || !kc(i, o) ? null : {
9570
9612
  carrier: i,
9571
9613
  number: o,
9572
9614
  basis: a
@@ -9574,7 +9616,7 @@ function Tc(e, t, n) {
9574
9616
  }
9575
9617
  //#endregion
9576
9618
  //#region core/catalog/urls.ts
9577
- var Ec = "trackandtrace.planzergroup.com", Dc = /^\/shared\/sendungen\/([^/]+)\/?$/, Oc = /^[A-Za-z0-9_-]{32,256}$/, kc = "customeriberia.dachser.com", Ac = "/customerarea/utilidades/seguimiento-publico/detalle", jc = /^[A-Za-z0-9_-]{4,256}$/, Mc = /[\x00-\x1f\x7f]/, Nc = /* @__PURE__ */ new Set([
9619
+ var jc = "trackandtrace.planzergroup.com", Mc = /^\/shared\/sendungen\/([^/]+)\/?$/, Nc = /^[A-Za-z0-9_-]{32,256}$/, Pc = "customeriberia.dachser.com", Fc = "/customerarea/utilidades/seguimiento-publico/detalle", Ic = /^[A-Za-z0-9_-]{4,256}$/, Lc = /[\x00-\x1f\x7f]/, Rc = /* @__PURE__ */ new Set([
9578
9620
  "hash",
9579
9621
  "cliente",
9580
9622
  "numeroUnico",
@@ -9589,7 +9631,7 @@ var Ec = "trackandtrace.planzergroup.com", Dc = /^\/shared\/sendungen\/([^/]+)\/
9589
9631
  "origen",
9590
9632
  "usuario"
9591
9633
  ]);
9592
- function Pc(e, t) {
9634
+ function zc(e, t) {
9593
9635
  let n = e.trim();
9594
9636
  if (n.length < 1 || n.length > 4096) throw TypeError("Paste the complete Planzer tracking URL");
9595
9637
  let r;
@@ -9598,21 +9640,21 @@ function Pc(e, t) {
9598
9640
  } catch (e) {
9599
9641
  throw TypeError("Paste a valid Planzer tracking URL", { cause: e });
9600
9642
  }
9601
- if (r.protocol !== "https:" || r.hostname.toLowerCase() !== Ec || r.username || r.password || r.port && r.port !== "443" || r.hash) throw TypeError(`Planzer shared links must use https://${Ec}`);
9643
+ if (r.protocol !== "https:" || r.hostname.toLowerCase() !== jc || r.username || r.password || r.port && r.port !== "443" || r.hash) throw TypeError(`Planzer shared links must use https://${jc}`);
9602
9644
  let i;
9603
9645
  try {
9604
9646
  i = decodeURIComponent(r.pathname);
9605
9647
  } catch (e) {
9606
9648
  throw TypeError("Paste a valid Planzer tracking URL", { cause: e });
9607
9649
  }
9608
- let a = Dc.exec(i);
9650
+ let a = Mc.exec(i);
9609
9651
  if (!a) throw TypeError("Paste a Planzer shared shipment URL");
9610
- if (g(a[1]) !== g(t)) throw TypeError("The Planzer URL belongs to a different tracking number");
9652
+ if (y(a[1]) !== y(t)) throw TypeError("The Planzer URL belongs to a different tracking number");
9611
9653
  let o = r.searchParams.getAll("accessKey");
9612
- if (o.length !== 1 || !Oc.test(o[0])) throw TypeError("The Planzer URL must include its accessKey");
9654
+ if (o.length !== 1 || !Nc.test(o[0])) throw TypeError("The Planzer URL must include its accessKey");
9613
9655
  return r.toString();
9614
9656
  }
9615
- function Fc(e, t) {
9657
+ function Bc(e, t) {
9616
9658
  let n = e.trim();
9617
9659
  if (n.length < 1 || n.length > 4096) throw TypeError("Paste the complete Dachser tracking URL");
9618
9660
  let r;
@@ -9621,43 +9663,43 @@ function Fc(e, t) {
9621
9663
  } catch (e) {
9622
9664
  throw TypeError("Paste a valid Dachser tracking URL", { cause: e });
9623
9665
  }
9624
- if (r.protocol !== "https:" || r.hostname.toLowerCase() !== kc || r.username || r.password || r.port && r.port !== "443" || r.hash) throw TypeError(`Dachser links must use https://${kc}`);
9666
+ if (r.protocol !== "https:" || r.hostname.toLowerCase() !== Pc || r.username || r.password || r.port && r.port !== "443" || r.hash) throw TypeError(`Dachser links must use https://${Pc}`);
9625
9667
  let i;
9626
9668
  try {
9627
9669
  i = decodeURIComponent(r.pathname);
9628
9670
  } catch (e) {
9629
9671
  throw TypeError("Paste a valid Dachser tracking URL", { cause: e });
9630
9672
  }
9631
- if (i !== Ac && i !== `${Ac}/`) throw TypeError("Paste a Dachser public shipment detail URL");
9673
+ if (i !== Fc && i !== `${Fc}/`) throw TypeError("Paste a Dachser public shipment detail URL");
9632
9674
  let a = /* @__PURE__ */ new Map();
9633
9675
  for (let [e, t] of r.searchParams) {
9634
- if (!Nc.has(e)) throw TypeError("The Dachser URL contains an unsupported parameter");
9676
+ if (!Rc.has(e)) throw TypeError("The Dachser URL contains an unsupported parameter");
9635
9677
  if (a.has(e)) throw TypeError("The Dachser URL contains a duplicate parameter");
9636
- if (!t || t.length > 256 || Mc.test(t)) throw TypeError("The Dachser URL contains an invalid parameter");
9678
+ if (!t || t.length > 256 || Lc.test(t)) throw TypeError("The Dachser URL contains an invalid parameter");
9637
9679
  a.set(e, t);
9638
9680
  }
9639
9681
  let o = a.get("numeroUnico");
9640
9682
  if (!o) throw TypeError("The Dachser URL must include its shipment number");
9641
- if (g(o) !== g(t)) throw TypeError("The Dachser URL belongs to a different tracking number");
9642
- let s = a.get("hash"), c = a.get("clave"), l = a.get("fecha"), u = !!(s && jc.test(s)), d = !!(c && l && jc.test(c) && /^\d{8}$/.test(l));
9683
+ if (y(o) !== y(t)) throw TypeError("The Dachser URL belongs to a different tracking number");
9684
+ let s = a.get("hash"), c = a.get("clave"), l = a.get("fecha"), u = !!(s && Ic.test(s)), d = !!(c && l && Ic.test(c) && /^\d{8}$/.test(l));
9643
9685
  if (!u && !d) throw TypeError("The Dachser URL must include its access parameters");
9644
- return r.protocol = "https:", r.hostname = kc, r.port = "", r.toString();
9686
+ return r.protocol = "https:", r.hostname = Pc, r.port = "", r.toString();
9645
9687
  }
9646
9688
  //#endregion
9647
9689
  //#region core/catalog/postcode.ts
9648
- var Ic = /^(?=.{3,12}$)(?=.*\d)[A-Z0-9]+(?:[ -][A-Z0-9]+)*$/;
9649
- function Lc(e) {
9690
+ var Vc = /^(?=.{3,12}$)(?=.*\d)[A-Z0-9]+(?:[ -][A-Z0-9]+)*$/;
9691
+ function Hc(e) {
9650
9692
  return e.trim().toUpperCase().replace(/\s+/g, " ");
9651
9693
  }
9652
9694
  //#endregion
9653
9695
  //#region core/catalog/inputs.ts
9654
- function Rc(e, t, n, r) {
9696
+ function Uc(e, t, n, r) {
9655
9697
  let i = {
9656
9698
  trackingUrl: n.trim() || null,
9657
9699
  postcode: r.trim() || null
9658
9700
  }, a = e === "mondial-relay" && /^\d{26}$/.test(t);
9659
- if (a && !ge(t)) throw TypeError("Invalid Mondial Relay barcode");
9660
- let o = new Map(Me(e, t).map((e) => [e.field, e]));
9701
+ if (a && !pe(t)) throw TypeError("Invalid Mondial Relay barcode");
9702
+ let o = new Map(ke(e, t).map((e) => [e.field, e]));
9661
9703
  (a || e === "mondial-relay" && /^(?:\d{10}|\d{12})$/.test(t)) && i.postcode && o.set("postcode", {
9662
9704
  field: "postcode",
9663
9705
  validator: "internationalPostcode"
@@ -9667,28 +9709,28 @@ function Rc(e, t, n, r) {
9667
9709
  let a = i[n];
9668
9710
  if (!a) {
9669
9711
  if (r.optional) continue;
9670
- throw n === "trackingUrl" ? TypeError(`${v(e).displayName} requires its complete tracking URL`) : r.validator === "swissPostcode" ? TypeError(`${v(e).displayName} requires the four-digit delivery postcode`) : r.validator === "francePostcode" || r.validator === "germanyPostcode" ? TypeError(`${v(e).displayName} requires the five-digit delivery postcode`) : r.validator === "swissOrFrancePostcode" ? TypeError(`${v(e).displayName} requires a four- or five-digit delivery postcode`) : r.validator === "paackPostcode" ? TypeError("Paack requires the delivery postcode") : TypeError(`${v(e).displayName} requires the delivery postcode`);
9712
+ throw n === "trackingUrl" ? TypeError(`${x(e).displayName} requires its complete tracking URL`) : r.validator === "swissPostcode" ? TypeError(`${x(e).displayName} requires the four-digit delivery postcode`) : r.validator === "francePostcode" || r.validator === "germanyPostcode" ? TypeError(`${x(e).displayName} requires the five-digit delivery postcode`) : r.validator === "swissOrFrancePostcode" ? TypeError(`${x(e).displayName} requires a four- or five-digit delivery postcode`) : r.validator === "paackPostcode" ? TypeError("Paack requires the delivery postcode") : TypeError(`${x(e).displayName} requires the delivery postcode`);
9671
9713
  }
9672
9714
  switch (r.validator) {
9673
9715
  case "planzerSharedUrl":
9674
- i[n] = Pc(a, t);
9716
+ i[n] = zc(a, t);
9675
9717
  break;
9676
9718
  case "dachserCapabilityUrl":
9677
- i[n] = Fc(a, t);
9719
+ i[n] = Bc(a, t);
9678
9720
  break;
9679
9721
  case "swissPostcode":
9680
- if (!/^\d{4}$/.test(a)) throw TypeError(`${v(e).displayName} requires the four-digit delivery postcode`);
9722
+ if (!/^\d{4}$/.test(a)) throw TypeError(`${x(e).displayName} requires the four-digit delivery postcode`);
9681
9723
  break;
9682
9724
  case "francePostcode":
9683
9725
  case "germanyPostcode":
9684
- if (!/^\d{5}$/.test(a)) throw TypeError(`${v(e).displayName} requires the five-digit delivery postcode`);
9726
+ if (!/^\d{5}$/.test(a)) throw TypeError(`${x(e).displayName} requires the five-digit delivery postcode`);
9685
9727
  break;
9686
9728
  case "swissOrFrancePostcode":
9687
- if (!/^\d{4,5}$/.test(a)) throw TypeError(`${v(e).displayName} requires a four- or five-digit delivery postcode`);
9729
+ if (!/^\d{4,5}$/.test(a)) throw TypeError(`${x(e).displayName} requires a four- or five-digit delivery postcode`);
9688
9730
  break;
9689
9731
  case "internationalPostcode":
9690
- if (!Ic.test(Lc(a))) throw TypeError(`${v(e).displayName} requires a valid delivery postcode`);
9691
- i[n] = Lc(a);
9732
+ if (!Vc.test(Hc(a))) throw TypeError(`${x(e).displayName} requires a valid delivery postcode`);
9733
+ i[n] = Hc(a);
9692
9734
  break;
9693
9735
  case "paackPostcode": {
9694
9736
  let e = a.toLocaleUpperCase("en-US");
@@ -9701,12 +9743,12 @@ function Rc(e, t, n, r) {
9701
9743
  }
9702
9744
  return i;
9703
9745
  }
9704
- function zc(e) {
9705
- let t = Lc(e);
9706
- if (!Ic.test(t)) throw TypeError("A valid delivery postcode is required");
9746
+ function Wc(e) {
9747
+ let t = Hc(e);
9748
+ if (!Vc.test(t)) throw TypeError("A valid delivery postcode is required");
9707
9749
  return t;
9708
9750
  }
9709
- var Bc = { carriers: [
9751
+ var Gc = { carriers: [
9710
9752
  {
9711
9753
  carrier: "dhl",
9712
9754
  direct: "Yes",
@@ -11451,79 +11493,79 @@ var Bc = { carriers: [
11451
11493
  }
11452
11494
  }]
11453
11495
  }
11454
- ] }, Vc = [
11496
+ ] }, Kc = [
11455
11497
  "Ship24",
11456
11498
  "ParcelsApp",
11457
11499
  "17TRACK",
11458
11500
  "Postal Ninja",
11459
11501
  "UPU"
11460
- ], Hc = /* @__PURE__ */ new Set([
11502
+ ], qc = /* @__PURE__ */ new Set([
11461
11503
  "no_history",
11462
11504
  "summary_only",
11463
11505
  "sign_in",
11464
11506
  "postcode_prompt"
11465
- ]), Uc = Bc.carriers, Wc = new Map(Uc.map((e) => [e.carrier, e]));
11466
- function Gc(e) {
11507
+ ]), Jc = Gc.carriers, Yc = new Map(Jc.map((e) => [e.carrier, e]));
11508
+ function Xc(e) {
11467
11509
  return typeof e == "number" || e === "history" || typeof e == "object" && !!e;
11468
11510
  }
11469
- function Kc(e, t) {
11470
- let n = t.filter((t) => t.results[e] !== void 0), r = n.some((t) => !t.stale && (Hc.has(t.results[e]) || t.results[e] === "wrong_carrier") && Object.entries(t.results).some(([t, n]) => t !== e && t !== "UPU" && Gc(n)));
11471
- return n.some((t) => Gc(t.results[e])) ? n.some((t) => typeof t.results[e] == "object") || r ? "partial" : "full" : n.some((t) => ["wrong_carrier", "refused"].includes(t.results[e])) ? "excluded" : n.some((t) => !t.stale && Hc.has(t.results[e])) ? "empty" : "unknown";
11511
+ function Zc(e, t) {
11512
+ let n = t.filter((t) => t.results[e] !== void 0), r = n.some((t) => !t.stale && (qc.has(t.results[e]) || t.results[e] === "wrong_carrier") && Object.entries(t.results).some(([t, n]) => t !== e && t !== "UPU" && Xc(n)));
11513
+ return n.some((t) => Xc(t.results[e])) ? n.some((t) => typeof t.results[e] == "object") || r ? "partial" : "full" : n.some((t) => ["wrong_carrier", "refused"].includes(t.results[e])) ? "excluded" : n.some((t) => !t.stale && qc.has(t.results[e])) ? "empty" : "unknown";
11472
11514
  }
11473
- function qc(e) {
11474
- let t = e ? Wc.get(e) : void 0;
11475
- return t ? Object.fromEntries(Vc.map((e) => [e, Kc(e, t.references)])) : null;
11515
+ function Qc(e) {
11516
+ let t = e ? Yc.get(e) : void 0;
11517
+ return t ? Object.fromEntries(Kc.map((e) => [e, Zc(e, t.references)])) : null;
11476
11518
  }
11477
11519
  //#endregion
11478
11520
  //#region providers/plan.ts
11479
- var Jc = [
11521
+ var $c = [
11480
11522
  "ParcelsApp",
11481
11523
  "Ship24",
11482
11524
  "17TRACK",
11483
11525
  "UPU"
11484
- ], Yc = /* @__PURE__ */ new Set(["17TRACK", "Postal Ninja"]);
11485
- function Xc(e) {
11526
+ ], el = /* @__PURE__ */ new Set(["17TRACK", "Postal Ninja"]);
11527
+ function tl(e) {
11486
11528
  return e === "ParcelsApp" ? 45e3 : e === "UPU" ? 8e3 : 3e4;
11487
11529
  }
11488
- function Zc(e) {
11489
- return e && /^\d{10}$/.test(g(e)) ? "Ship24" : e && /^[CL][A-Z]\d{9}CN$/.test(g(e)) && dt(e) ? "17TRACK" : void 0;
11530
+ function nl(e) {
11531
+ return e && /^\d{10}$/.test(y(e)) ? "Ship24" : e && /^[CL][A-Z]\d{9}CN$/.test(y(e)) && ct(e) ? "17TRACK" : void 0;
11490
11532
  }
11491
- var Qc = {
11533
+ var rl = {
11492
11534
  full: 0,
11493
11535
  partial: 1,
11494
11536
  unknown: 2,
11495
11537
  empty: 3,
11496
11538
  excluded: 4
11497
11539
  };
11498
- function $c(e, t) {
11499
- let n = Qc[e?.[t] ?? "unknown"];
11500
- return t === "UPU" ? Qc.unknown : t === "Postal Ninja" ? Math.max(n, Qc.empty) : n;
11540
+ function il(e, t) {
11541
+ let n = rl[e?.[t] ?? "unknown"];
11542
+ return t === "UPU" ? rl.unknown : t === "Postal Ninja" ? Math.max(n, rl.empty) : n;
11501
11543
  }
11502
- var el = (e) => e === "UPU" ? 2 : +(e === "Postal Ninja");
11503
- function tl(e, t) {
11544
+ var al = (e) => e === "UPU" ? 2 : +(e === "Postal Ninja");
11545
+ function ol(e, t) {
11504
11546
  let n = (e) => e !== "UPU" && t?.[e] === "excluded";
11505
- return (e.some((e) => e !== "UPU" && !n(e)) ? e.filter((e) => !n(e)) : [...e]).sort((n, r) => el(n) - el(r) || $c(t, n) - $c(t, r) || Number(Yc.has(n)) - Number(Yc.has(r)) || e.indexOf(n) - e.indexOf(r));
11547
+ return (e.some((e) => e !== "UPU" && !n(e)) ? e.filter((e) => !n(e)) : [...e]).sort((n, r) => al(n) - al(r) || il(t, n) - il(t, r) || Number(el.has(n)) - Number(el.has(r)) || e.indexOf(n) - e.indexOf(r));
11506
11548
  }
11507
- function nl(e = {}) {
11549
+ function sl(e = {}) {
11508
11550
  let { trackingNumber: t, enablePostalNinja: n = !1 } = e, r = (n ? [
11509
11551
  "ParcelsApp",
11510
11552
  "Ship24",
11511
11553
  "17TRACK",
11512
11554
  "Postal Ninja",
11513
11555
  "UPU"
11514
- ] : [...Jc]).filter((e) => e !== "UPU" || t === void 0 || dt(t)), i = (e.carriers ?? []).find((e) => qc(e)) ?? null, a = qc(i), o = tl(r, a), s = Zc(t);
11556
+ ] : [...$c]).filter((e) => e !== "UPU" || t === void 0 || ct(t)), i = (e.carriers ?? []).find((e) => Qc(e)) ?? null, a = Qc(i), o = ol(r, a), s = nl(t);
11515
11557
  return {
11516
11558
  sources: s ? [s, ...o.filter((e) => e !== s)] : o,
11517
11559
  carrier: i,
11518
11560
  tier: (e) => a?.[e] ?? "unknown",
11519
- rank: (e) => $c(a, e)
11561
+ rank: (e) => il(a, e)
11520
11562
  };
11521
11563
  }
11522
- function rl(e = !1, t) {
11523
- return nl({
11564
+ function cl(e = !1, t) {
11565
+ return sl({
11524
11566
  trackingNumber: t,
11525
11567
  enablePostalNinja: e
11526
11568
  }).sources;
11527
11569
  }
11528
11570
  //#endregion
11529
- export { Ce as AMAZON_NUMBER_PATTERN, Pe as AUTOMATIC_CARRIER_IDS, Yc as BROWSER_SOURCES, f as BudgetExceededError, He as CARRIERS, ye as CARRIER_CATALOG, _ as CARRIER_DEFINITIONS, be as CARRIER_IDS, Fe as CARRIER_NAMES, t as CarrierError, a as ChallengeError, jo as EXPLICIT_OFFSET_PATTERN, r as IndeterminateError, l as InputRequiredError, u as InvalidInputError, sc as MAX_RECOGNITIONS, s as MaintenanceError, i as NoHistoryError, n as NotFoundError, o as RateLimitedError, We as SELECTABLE_CARRIERS, Se as STAGES, c as SchemaError, At as TRACKING_CANDIDATE_PATTERNS, Ie as TRACKING_LINK_RULES, d as TransportError, Jc as UNIVERSAL_SOURCES, m as UpstreamHttpError, ee as UpstreamNetworkError, Me as activeRequirements, Ee as amazonMarketplace, De as amazonOrdersUrl, Oe as amazonShippingOrigin, ke as amazonShippingUrl, as as calendarDay, $o as canadaProvinceTimeZone, je as carrierAdapter, v as carrierDefinition, ne as carrierErrorKind, Ue as carrierInfo, Le as carrierLinkRules, Ge as carrierRequirements, Ae as carrierTimezone, Tt as checksumRejections, Qs as classifyStage, qs as classifyWording, qo as countryCode, Jo as countryTimeZone, Tc as deliveryHandoff, Et as detectCarrier, y as detectCarrierMatch, rs as epochMillisTime, is as epochSecondsTime, re as errorTypeOf, hs as eventPoint, No as explicitOffsetTime, rc as failureHint, nc as failureKind, ve as formatTrackingNumber, wc as hasDirectHandoffAdapter, $s as inferStage, we as isAmazonTrackingNumber, _e as isPlanzerSharedTrackingNumber, Ze as isValidCorreosSpainCheckLetter, oe as isValidDhlExpressWaybill, et as isValidDpdParcelNumber, ct as isValidGlsParcelNumber, lt as isValidHermesParcelNumber, ge as isValidMondialRelayBarcode, me as isValidPocztaPolskaBarcode, dt as isValidS10TrackingNumber, he as isValidSscc, ce as isValidTntConsignmentNumber, vt as isValidUspsPackageBarcode, Fo as isoTime, Pt as keywordNumberInText, Ks as languageStageStatus, Je as localizedCarrierUrl, Re as matchesDomain, Lo as mislabeledLocalTime, Ro as mislabeledWallTime, Rc as normalizeCarrierInputs, gs as normalizeCarrierResult, zc as normalizeDeliveryPostcode, g as normalizeTrackingNumber, tl as orderUniversalSources, Bt as parseTrackingInput, Zc as priorityUniversalSource, uc as recognitionCandidates, cc as recognitionNumberShape, fc as recognizeAll, jt as recognizedNumberInText, ns as regionHasTown, Ne as requiredRequirements, Ke as requirementSatisfied, Te as requiresAmazonAccount, tc as resolveResult, Zs as resultHasUpdate, Xs as resultStage, h as retryAfterMsOf, Vo as settleGuessedClocks, mc as settleRecognition, zo as sharedClockZone, ec as stageSource, ft as supportsSwissPostHandoff, Yo as timeZoneCountry, es as townKey, Gs as trackingLanguageStage, Be as trackingLink, ze as trackingNumberForLink, qe as tracksAutomatically, nl as universalPlan, Xc as universalSourceBudget, rl as universalSources, Zo as usStateTimeZone, _t as uspsPackageIdentifier, Ot as validTrackingNumber, Fc as validateDachserTrackingUrl, Pc as validatePlanzerSharedUrl, Js as wordingStage, Po as zonedTime };
11571
+ export { be as AMAZON_NUMBER_PATTERN, je as AUTOMATIC_CARRIER_IDS, el as BROWSER_SOURCES, f as BudgetExceededError, ze as CARRIERS, ge as CARRIER_CATALOG, b as CARRIER_DEFINITIONS, _e as CARRIER_IDS, Me as CARRIER_NAMES, t as CarrierError, a as ChallengeError, jo as EXPLICIT_OFFSET_PATTERN, r as IndeterminateError, l as InputRequiredError, u as InvalidInputError, fc as MAX_RECOGNITIONS, s as MaintenanceError, i as NoHistoryError, n as NotFoundError, o as RateLimitedError, Ve as SELECTABLE_CARRIERS, ye as STAGES, c as SchemaError, Dt as TRACKING_CANDIDATE_PATTERNS, Ne as TRACKING_LINK_RULES, d as TransportError, $c as UNIVERSAL_SOURCES, m as UpstreamHttpError, ee as UpstreamNetworkError, ke as activeRequirements, Ce as amazonMarketplace, we as amazonOrdersUrl, Te as amazonShippingOrigin, Ee as amazonShippingUrl, as as calendarDay, $o as canadaProvinceTimeZone, Oe as carrierAdapter, x as carrierDefinition, g as carrierErrorKind, Be as carrierInfo, Pe as carrierLinkRules, He as carrierRequirements, De as carrierTimezone, St as checksumRejections, rc as classifyStage, Qs as classifyWording, qo as countryCode, Jo as countryTimeZone, Ac as deliveryHandoff, Ct as detectCarrier, S as detectCarrierMatch, rs as epochMillisTime, is as epochSecondsTime, te as errorTypeOf, hs as eventPoint, No as explicitOffsetTime, cc as failureHint, sc as failureKind, he as formatTrackingNumber, kc as hasDirectHandoffAdapter, ic as inferStage, xe as isAmazonTrackingNumber, me as isPlanzerSharedTrackingNumber, Je as isValidCorreosSpainCheckLetter, ie as isValidDhlExpressWaybill, Ze as isValidDpdParcelNumber, at as isValidGlsParcelNumber, ot as isValidHermesParcelNumber, pe as isValidMondialRelayBarcode, de as isValidPocztaPolskaBarcode, ct as isValidS10TrackingNumber, fe as isValidSscc, ae as isValidTntConsignmentNumber, ht as isValidUspsPackageBarcode, Fo as isoTime, jt as keywordNumberInText, Zs as languageStageStatus, Ge as localizedCarrierUrl, Fe as matchesDomain, Lo as mislabeledLocalTime, Ro as mislabeledWallTime, Uc as normalizeCarrierInputs, gs as normalizeCarrierResult, Wc as normalizeDeliveryPostcode, y as normalizeTrackingNumber, ol as orderUniversalSources, Lt as parseTrackingInput, nl as priorityUniversalSource, hc as recognitionCandidates, pc as recognitionNumberShape, _c as recognizeAll, Ot as recognizedNumberInText, ns as regionHasTown, Ae as requiredRequirements, Ue as requirementSatisfied, Se as requiresAmazonAccount, oc as resolveResult, nc as resultHasUpdate, tc as resultStage, _ as retryAfterMsOf, Vo as settleGuessedClocks, yc as settleRecognition, zo as sharedClockZone, ac as stageSource, lt as supportsSwissPostHandoff, Yo as timeZoneCountry, es as townKey, Xs as trackingLanguageStage, Le as trackingLink, Ie as trackingNumberForLink, We as tracksAutomatically, sl as universalPlan, tl as universalSourceBudget, cl as universalSources, Zo as usStateTimeZone, mt as uspsPackageIdentifier, Tt as validTrackingNumber, Bc as validateDachserTrackingUrl, zc as validatePlanzerSharedUrl, $s as wordingStage, Po as zonedTime };