@wix/bookings 1.0.1790 → 1.0.1792

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/cjs/context-booking-checkout.js +1 -1
  2. package/build/cjs/context-booking-checkout.js.map +1 -1
  3. package/build/cjs/context-service-addons.js +123 -134
  4. package/build/cjs/context-service-addons.js.map +1 -1
  5. package/build/cjs/context-service.d.ts +16 -6
  6. package/build/cjs/context-service.js +728 -724
  7. package/build/cjs/context-service.js.map +1 -1
  8. package/build/cjs/context-services.js +801 -812
  9. package/build/cjs/context-services.js.map +1 -1
  10. package/build/cjs/context-time-slots.js +1300 -1267
  11. package/build/cjs/context-time-slots.js.map +1 -1
  12. package/build/es/context-booking-checkout.mjs +1 -1
  13. package/build/es/context-booking-checkout.mjs.map +1 -1
  14. package/build/es/context-service-addons.mjs +123 -134
  15. package/build/es/context-service-addons.mjs.map +1 -1
  16. package/build/es/context-service.d.mts +16 -6
  17. package/build/es/context-service.mjs +728 -724
  18. package/build/es/context-service.mjs.map +1 -1
  19. package/build/es/context-services.mjs +801 -812
  20. package/build/es/context-services.mjs.map +1 -1
  21. package/build/es/context-time-slots.mjs +1300 -1267
  22. package/build/es/context-time-slots.mjs.map +1 -1
  23. package/build/internal/cjs/context-service.d.ts +16 -6
  24. package/build/internal/es/context-service.d.mts +16 -6
  25. package/context-runtime/context-booking-checkout/runtime.js +2 -2
  26. package/context-runtime/context-service/runtime.d.ts +16 -6
  27. package/context-runtime/context-service/runtime.js +2 -2
  28. package/context-runtime/context-service-addons/runtime.js +2 -2
  29. package/context-runtime/context-services/runtime.js +3 -3
  30. package/context-runtime/context-time-slots/runtime.js +3 -3
  31. package/package.json +3 -3
@@ -88,67 +88,67 @@ function ne(e5) {
88
88
  }
89
89
  }
90
90
  var re = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
91
- function A(e5) {
92
- return ce(e5).map((e6) => e6.toLocaleUpperCase()).join(`_`);
93
- }
94
- var ie = /([\p{Ll}\d])(\p{Lu})/gu;
95
- var ae = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
96
- var oe = `$1\0$2`;
97
- var se = /[^\p{L}\d]+/giu;
98
- function ce(e5) {
91
+ function ie(e5) {
92
+ return le(e5).map((e6) => e6.toLocaleUpperCase()).join(`_`);
93
+ }
94
+ var ae = /([\p{Ll}\d])(\p{Lu})/gu;
95
+ var oe = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
96
+ var se = `$1\0$2`;
97
+ var ce = /[^\p{L}\d]+/giu;
98
+ function le(e5) {
99
99
  let t2 = e5.trim();
100
- t2 = t2.replace(ie, oe).replace(ae, oe), t2 = t2.replace(se, `\0`);
100
+ t2 = t2.replace(ae, se).replace(oe, se), t2 = t2.replace(ce, `\0`);
101
101
  let n2 = 0, r2 = t2.length;
102
102
  for (; t2.charAt(n2) === `\0`; ) n2++;
103
103
  if (n2 === r2) return [];
104
104
  for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
105
105
  return t2.slice(n2, r2).split(/\0/g);
106
106
  }
107
- var le = (e5) => `validationError` in (e5.response?.data?.details ?? {});
108
- var ue = (e5) => `applicationError` in (e5.response?.data?.details ?? {});
109
- var de = (e5) => (e5.response?.status ?? -1) >= 400 && (e5.response?.status ?? -1) < 500;
110
- function fe(e5, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
107
+ var ue = (e5) => `validationError` in (e5.response?.data?.details ?? {});
108
+ var de = (e5) => `applicationError` in (e5.response?.data?.details ?? {});
109
+ var fe = (e5) => (e5.response?.status ?? -1) >= 400 && (e5.response?.status ?? -1) < 500;
110
+ function pe(e5, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
111
111
  if (typeof e5 != `object` || !e5) throw e5;
112
- if (le(e5)) return pe(e5, t2, n2);
113
- if (ue(e5)) return he(e5);
114
- if (de(e5)) {
115
- let t3 = e5.response?.status, n3 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: A(n3), data: {} }, requestId: e5.requestId };
116
- return me(e5, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
112
+ if (ue(e5)) return me(e5, t2, n2);
113
+ if (de(e5)) return ge(e5);
114
+ if (fe(e5)) {
115
+ let t3 = e5.response?.status, n3 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: ie(n3), data: {} }, requestId: e5.requestId };
116
+ return he(e5, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
117
117
  }
118
- return ge(e5);
118
+ return _e(e5);
119
119
  }
120
- var pe = (e5, t2, n2) => {
121
- let r2 = e5.response?.data, i2 = e5.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = _e(t2, a2, n2)?.sort((e6, t3) => e6.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e6, description: t3 }) => `"${e6}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
122
- return me(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e5.response?.status, requestId: i2 } });
120
+ var me = (e5, t2, n2) => {
121
+ let r2 = e5.response?.data, i2 = e5.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = ve(t2, a2, n2)?.sort((e6, t3) => e6.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e6, description: t3 }) => `"${e6}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
122
+ return he(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e5.response?.status, requestId: i2 } });
123
123
  };
124
- var me = (e5, { message: t2, extraProperties: n2 }) => Object.assign(e5, { ...n2, message: t2 });
125
- var he = (e5) => {
126
- let t2 = e5.response?.status, n2 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n2, i2 = e5.response?.data?.details?.applicationError?.description ?? n2, a2 = e5.response?.data?.details?.applicationError?.code ?? A(n2), o2 = e5.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e5.requestId };
127
- return me(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e5.requestId } });
124
+ var he = (e5, { message: t2, extraProperties: n2 }) => Object.assign(e5, { ...n2, message: t2 });
125
+ var ge = (e5) => {
126
+ let t2 = e5.response?.status, n2 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n2, i2 = e5.response?.data?.details?.applicationError?.description ?? n2, a2 = e5.response?.data?.details?.applicationError?.code ?? ie(n2), o2 = e5.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e5.requestId };
127
+ return he(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e5.requestId } });
128
128
  };
129
- var ge = (e5) => me(e5, { message: e5.requestId ? `System error occurred, request-id: ${e5.requestId}` : `System error occurred: ${JSON.stringify(e5)}`, extraProperties: { requestId: e5.requestId, status: e5.response?.status, code: A(e5.response?.statusText ?? `UNKNOWN`), ...!e5.response && { runtimeError: e5 } } });
130
- var _e = ({ spreadPathsToArguments: e5, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
129
+ var _e = (e5) => he(e5, { message: e5.requestId ? `System error occurred, request-id: ${e5.requestId}` : `System error occurred: ${JSON.stringify(e5)}`, extraProperties: { requestId: e5.requestId, status: e5.response?.status, code: ie(e5.response?.statusText ?? `UNKNOWN`), ...!e5.response && { runtimeError: e5 } } });
130
+ var ve = ({ spreadPathsToArguments: e5, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
131
131
  let a2 = { ...e5, ...t2 }, o2 = Object.keys(a2);
132
132
  return r2?.filter((e6) => !r2.some((t3) => t3.field.length > e6.field.length && t3.field.startsWith(e6.field) && o2.includes(t3.field))).map((e6) => {
133
133
  let r3 = t2[e6.field];
134
- if (r3) return { ...e6, field: ve(r3, i2) };
134
+ if (r3) return { ...e6, field: ye(r3, i2) };
135
135
  let s2 = o2?.sort((e7, t3) => t3.length - e7.length)?.find((t3) => e6.field.startsWith(t3));
136
136
  if (s2) {
137
137
  let t3 = a2[s2];
138
- if (t3) return { ...e6, field: e6.field.replace(s2, ve(t3, i2)) };
138
+ if (t3) return { ...e6, field: e6.field.replace(s2, ye(t3, i2)) };
139
139
  }
140
140
  return n2 ? { ...e6, field: `${i2[0]}.${e6.field}` } : e6;
141
141
  });
142
142
  };
143
- var ve = (e5, t2) => {
144
- let n2 = ye(e5);
143
+ var ye = (e5, t2) => {
144
+ let n2 = be(e5);
145
145
  return n2 == null ? e5 : e5.replace(`$[${n2}]`, t2[n2]);
146
146
  };
147
- var ye = (e5) => {
147
+ var be = (e5) => {
148
148
  let t2 = e5.match(/\$\[(?<argIndex>\d+)\]/);
149
149
  return t2 && t2.groups && Number(t2.groups.argIndex);
150
150
  };
151
- function be(e5, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
151
+ function xe(e5, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
152
152
  return ne(() => e5({ request: async (e6) => {
153
153
  let i3 = e6({ host: s2?.HTTPHost || `www.wixapis.com` }), a3 = i3;
154
154
  a3.method === `GET` && a3.fallback?.length && (a3.params?.toString().length ?? 0) > 4e3 && (a3 = i3.fallback[0]);
@@ -162,7 +162,7 @@ function be(e5, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
162
162
  e8 = await s3.json();
163
163
  } catch {
164
164
  }
165
- let t3 = Se(s3.status, e8?.message ?? s3.statusText, e8?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e8 }), n3 = fe(t3);
165
+ let t3 = Ce(s3.status, e8?.message ?? s3.statusText, e8?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e8 }), n3 = pe(t3);
166
166
  throw r2?.handleError(n3, { requestOptions: { url: a3.url, method: a3.method, entityFqdn: i3.entityFqdn, methodFqn: i3.methodFqn } }), t3;
167
167
  }
168
168
  let l3 = await s3.json();
@@ -172,18 +172,18 @@ function be(e5, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
172
172
  }
173
173
  }, fetchWithAuth: n2, wixAPIFetch: i2, getActiveToken: a2, getAuthHeaders: o2 }, { validateRequestSchema: u2 }));
174
174
  }
175
- var xe = class extends Error {
175
+ var Se = class extends Error {
176
176
  response;
177
177
  requestId;
178
178
  constructor(e5) {
179
179
  super(), this.response = e5.response, this.requestId = e5.requestId;
180
180
  }
181
181
  };
182
- var Se = (e5, t2, n2, r2) => new xe({ response: { data: { details: { ...!n2?.validationError && { applicationError: { description: t2, code: e5, data: r2 } }, ...n2 }, message: t2 }, status: e5 }, requestId: r2?.requestId });
183
- var Ce = `.`;
184
- function we(e5, t2, n2) {
182
+ var Ce = (e5, t2, n2, r2) => new Se({ response: { data: { details: { ...!n2?.validationError && { applicationError: { description: t2, code: e5, data: r2 } }, ...n2 }, message: t2 }, status: e5 }, requestId: r2?.requestId });
183
+ var we = `.`;
184
+ function Te(e5, t2, n2) {
185
185
  if (e5 == null) throw Error(`Cannot set value on null or undefined`);
186
- let r2 = Te(t2), i2 = e5;
186
+ let r2 = Ee(t2), i2 = e5;
187
187
  for (let e6 = 0; e6 < r2.length; e6++) {
188
188
  let t3 = r2[e6];
189
189
  if (e6 === r2.length - 1) {
@@ -195,21 +195,21 @@ function we(e5, t2, n2) {
195
195
  }
196
196
  return e5;
197
197
  }
198
- function Te(e5) {
199
- return Array.isArray(e5) ? e5 : e5.split(Ce).map((e6) => Ee(e6) ? Number(e6) : e6);
200
- }
201
198
  function Ee(e5) {
202
- return /^\d+$/.test(e5);
199
+ return Array.isArray(e5) ? e5 : e5.split(we).map((e6) => De(e6) ? Number(e6) : e6);
203
200
  }
204
201
  function De(e5) {
202
+ return /^\d+$/.test(e5);
203
+ }
204
+ function Oe(e5) {
205
205
  let t2 = {};
206
- for (let [n2, r2] of Object.entries(e5)) Oe(n2) || we(t2, Te(n2), r2);
206
+ for (let [n2, r2] of Object.entries(e5)) ke(n2) || Te(t2, Ee(n2), r2);
207
207
  return t2;
208
208
  }
209
- function Oe(e5) {
209
+ function ke(e5) {
210
210
  return e5 === `__proto__` || e5 === `constructor` || e5 === `prototype`;
211
211
  }
212
- var ke = class {
212
+ var Ae = class {
213
213
  BRACKET_PATTERN = /\[(\d+)\]/g;
214
214
  NUMERIC_PATTERN = /^\d+$/;
215
215
  ESCAPED_DOT_PATTERN = /\\\./g;
@@ -232,7 +232,7 @@ var ke = class {
232
232
  return e5.replace(this.ESCAPED_DOT_PLACEHOLDER, `\\.`).replace(this.ESCAPED_RIGHT_BRACKET_PLACEHOLDER, `\\]`).replace(this.ESCAPED_LEFT_BRACKET_PLACEHOLDER, `\\[`);
233
233
  }
234
234
  unflatten() {
235
- return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e5, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e5)), t2])), De(this.cleanedModifiedFields);
235
+ return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e5, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e5)), t2])), Oe(this.cleanedModifiedFields);
236
236
  }
237
237
  flatten(e5) {
238
238
  let t2 = {};
@@ -257,7 +257,7 @@ var ke = class {
257
257
  r2.push(i3), n2 = t3[i3];
258
258
  return;
259
259
  }
260
- let a3 = Ne(e6);
260
+ let a3 = Pe(e6);
261
261
  if (a3 && a3 in t3) {
262
262
  r2.push(a3), n2 = t3[a3];
263
263
  return;
@@ -288,28 +288,28 @@ var ke = class {
288
288
  return e5.replace(this.BRACKET_PATTERN, (t2, n2, r2) => r2 > 0 && e5[r2 - 1] === `\\` ? t2 : `.` + n2);
289
289
  }
290
290
  };
291
- function Ae(e5, t2) {
291
+ function je(e5, t2) {
292
292
  let n2 = e5?.modifiedFields;
293
293
  if (!n2) return null;
294
- let r2 = je(n2);
294
+ let r2 = Me(n2);
295
295
  if (!r2) return null;
296
296
  let { unflattenedModifiedFields: i2, modifiedFieldsManipulator: a2 } = r2;
297
297
  e5 = { ...e5, modifiedFields: i2 };
298
298
  let o2 = t2(e5), s2 = o2?.modifiedFields;
299
299
  if (!s2) return null;
300
- let c2 = Me(s2, a2);
300
+ let c2 = Ne(s2, a2);
301
301
  return c2 === null ? null : (o2.modifiedFields = c2, o2);
302
302
  }
303
- function je(e5) {
303
+ function Me(e5) {
304
304
  if (typeof e5 == `object` && e5 && !Array.isArray(e5)) try {
305
- let t2 = new ke(e5);
305
+ let t2 = new Ae(e5);
306
306
  return { unflattenedModifiedFields: t2.unflatten(), modifiedFieldsManipulator: t2 };
307
307
  } catch {
308
308
  return null;
309
309
  }
310
310
  return null;
311
311
  }
312
- function Me(e5, t2) {
312
+ function Ne(e5, t2) {
313
313
  if (typeof e5 == `object` && e5 && !Array.isArray(e5)) try {
314
314
  return t2.flatten(e5);
315
315
  } catch {
@@ -317,10 +317,10 @@ function Me(e5, t2) {
317
317
  }
318
318
  return null;
319
319
  }
320
- function Ne(e5) {
320
+ function Pe(e5) {
321
321
  return e5.replace(/[-_\s]+(.)?/g, (e6, t2) => t2 ? t2.toUpperCase() : ``).replace(/^./, (e6) => e6.toLowerCase());
322
322
  }
323
- function Pe() {
323
+ function Fe() {
324
324
  return { emit(e5, ...t2) {
325
325
  for (let n2 = 0, r2 = this.events[e5] || [], i2 = r2.length; n2 < i2; n2++) r2[n2](...t2);
326
326
  }, events: {}, on(e5, t2) {
@@ -329,8 +329,8 @@ function Pe() {
329
329
  };
330
330
  } };
331
331
  }
332
- var Fe = (e5) => e5.__type === `event-definition`;
333
- function Ie(e5, t2, n2, r2) {
332
+ var Ie = (e5) => e5.__type === `event-definition`;
333
+ function Le(e5, t2, n2, r2) {
334
334
  let i2;
335
335
  if (e5.isDomainEvent) {
336
336
  let { deletedEvent: e6, actionEvent: t3, createdEvent: a3, updatedEvent: o3, ...s3 } = n2, c2 = { ...r2, ...s3 };
@@ -341,14 +341,14 @@ function Ie(e5, t2, n2, r2) {
341
341
  let e6 = s2.modifiedFields;
342
342
  if (typeof e6 == `object` && e6 && !Array.isArray(e6)) {
343
343
  o2 = structuredClone(i2);
344
- let e7 = Ae(s2, a2);
344
+ let e7 = je(s2, a2);
345
345
  if (e7) return t2(e7);
346
346
  }
347
347
  }
348
348
  return t2(a2(o2));
349
349
  }
350
- function Le(e5) {
351
- let t2 = /* @__PURE__ */ new Map(), n2 = Pe();
350
+ function Re(e5) {
351
+ let t2 = /* @__PURE__ */ new Map(), n2 = Fe();
352
352
  return { initModule(e6) {
353
353
  return (r2) => {
354
354
  let i2 = t2.get(e6.type) ?? [];
@@ -358,7 +358,7 @@ function Le(e5) {
358
358
  let { eventType: r2, identity: i2, instanceId: a2, payload: o2, accountInfo: s2 } = await this.parseJWT(e6), c2 = [...n3.expectedEvents, ...Array.from(t2.keys()).map((e7) => ({ type: e7 }))];
359
359
  if (c2.length > 0 && !c2.some(({ type: e7 }) => e7 === r2)) throw Error(`Unexpected event type: ${r2}. Expected one of: ${c2.map((e7) => e7.type).join(`, `)}`);
360
360
  let l2 = t2.get(r2) ?? [];
361
- return await Promise.all(l2.map(({ eventDefinition: e7, handler: t3 }) => Ie(e7, t3, o2, { instanceId: a2, identity: i2, accountInfo: s2 }))), { instanceId: a2, eventType: r2, payload: o2, identity: i2, accountInfo: s2 };
361
+ return await Promise.all(l2.map(({ eventDefinition: e7, handler: t3 }) => Le(e7, t3, o2, { instanceId: a2, identity: i2, accountInfo: s2 }))), { instanceId: a2, eventType: r2, payload: o2, identity: i2, accountInfo: s2 };
362
362
  }, async processRequest(e6, t3) {
363
363
  let n3 = await e6.text();
364
364
  return this.process(n3, t3);
@@ -377,12 +377,12 @@ function Le(e5) {
377
377
  let n3 = Array.from(t2.keys()).map((e7) => ({ type: e7 }));
378
378
  if (n3.length > 0 && !n3.some(({ type: t3 }) => t3 === e6.eventType)) throw Error(`Unexpected event type: ${e6.eventType}. Expected one of: ${n3.map((e7) => e7.type).join(`, `)}`);
379
379
  let r2 = t2.get(e6.eventType) ?? [];
380
- await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => Ie(t3, n4, e6.payload, { instanceId: e6.instanceId, identity: e6.identity })));
380
+ await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => Le(t3, n4, e6.payload, { instanceId: e6.instanceId, identity: e6.identity })));
381
381
  }, apps: { AppInstalled: _(`AppInstalled`)(), AppRemoved: _(`AppRemoved`)() } } };
382
382
  }
383
- var Re = (e5) => e5.__type === `service-plugin-definition`;
384
- function ze(e5) {
385
- let t2 = /* @__PURE__ */ new Map(), n2 = Pe();
383
+ var ze = (e5) => e5.__type === `service-plugin-definition`;
384
+ function Be(e5) {
385
+ let t2 = /* @__PURE__ */ new Map(), n2 = Fe();
386
386
  return { initModule(e6) {
387
387
  return (r2) => {
388
388
  let i2 = t2.get(e6.componentType.toLowerCase()) ?? [];
@@ -423,38 +423,38 @@ function ze(e5) {
423
423
  return s2.transformations.toREST(await c2(s2.transformations.fromREST(e6)));
424
424
  } } };
425
425
  }
426
- var j = `X-Wix-Consistent`;
427
- function Be(e5) {
426
+ var A = `X-Wix-Consistent`;
427
+ function Ve(e5) {
428
428
  let t2 = e5.headers || { Authorization: `` }, n2 = { getAuthHeaders: (e6) => Promise.resolve({ headers: {} }) }, r2 = e5.auth, i2 = typeof r2 == `function` ? r2 : () => r2 ?? n2, a2 = () => i2().getAuthHeaders(e5.host), o2 = () => e5.fetch ?? fetch, s2 = async (n3, r3) => {
429
- let i3 = o2(), s3 = await a2(), c3 = { ...r3?.headers ?? {}, ...s3.headers, ...e5.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [j]: t2[j] } : {} }, l3 = e5.host?.getErrorHandler?.();
429
+ let i3 = o2(), s3 = await a2(), c3 = { ...r3?.headers ?? {}, ...s3.headers, ...e5.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [A]: t2[A] } : {} }, l3 = e5.host?.getErrorHandler?.();
430
430
  try {
431
431
  if (typeof n3 == `string` || n3 instanceof URL) {
432
432
  let e6 = await i3(n3, { ...r3, headers: c3 });
433
433
  l3?.handleError(e6, { requestOptions: { url: n3.toString(), method: r3?.method } });
434
- let a3 = Ve(e6);
435
- return a3 && (t2[j] = a3), e6;
434
+ let a3 = He(e6);
435
+ return a3 && (t2[A] = a3), e6;
436
436
  }
437
437
  {
438
438
  for (let [e7, t3] of Object.entries(c3)) typeof t3 == `string` && n3.headers.set(e7, t3);
439
439
  let e6 = await i3(n3, r3);
440
440
  l3?.handleError(e6, { requestOptions: { url: n3.url, method: r3?.method } });
441
- let a3 = Ve(e6);
442
- return a3 && (t2[j] = a3), e6;
441
+ let a3 = He(e6);
442
+ return a3 && (t2[A] = a3), e6;
443
443
  }
444
444
  } catch (e6) {
445
445
  throw l3?.handleError(e6, { requestOptions: { url: typeof n3 == `string` || n3 instanceof URL ? n3.toString() : n3.url, method: r3?.method } }), e6;
446
446
  }
447
- }, { client: c2, initModule: l2 } = ze(i2), { client: u2, initModule: d2 } = Le(i2), f2 = async (n3, r3) => {
448
- let i3 = o2(), s3 = await a2(), c3 = T(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e5.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [j]: t2[j] } : {} } }), u3 = Ve(l3);
449
- return u3 && (t2[j] = u3), l3;
447
+ }, { client: c2, initModule: l2 } = Be(i2), { client: u2, initModule: d2 } = Re(i2), f2 = async (n3, r3) => {
448
+ let i3 = o2(), s3 = await a2(), c3 = T(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e5.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [A]: t2[A] } : {} } }), u3 = He(l3);
449
+ return u3 && (t2[A] = u3), l3;
450
450
  }, p2 = (t3, n3) => {
451
- if (Fe(t3)) return d2(t3);
452
- if (Re(t3)) return l2(t3);
451
+ if (Ie(t3)) return d2(t3);
452
+ if (ze(t3)) return l2(t3);
453
453
  if (D(t3) && e5.host) return O(t3, e5.host);
454
454
  if (typeof t3 == `function`) {
455
455
  if (`__type` in t3 && t3.__type === `wix_spi_error`) return t3;
456
456
  let r3 = e5.host?.apiBaseUrl ?? `www.wixapis.com`, o3 = e5.useCDN === void 0 ? i2().shouldUseCDN : e5.useCDN;
457
- return be(ne(() => b(t3)) ? y(t3) : t3, n3 ?? {}, f2, e5.host?.getErrorHandler?.(), (e6, t4) => {
457
+ return xe(ne(() => b(t3)) ? y(t3) : t3, n3 ?? {}, f2, e5.host?.getErrorHandler?.(), (e6, t4) => {
458
458
  let n4 = new URL(e6, `https://${r3}`);
459
459
  return n4.host = r3, n4.protocol = `https`, f2(n4.toString(), t4);
460
460
  }, i2().getActiveToken, async () => a2(), { HTTPHost: r3 }, e5.host?.name, o3, e5.validateRequestSchema);
@@ -478,25 +478,25 @@ function Be(e5) {
478
478
  return { data: o3 ?? {}, errors: s3 };
479
479
  }, webhooks: u2, servicePlugins: c2 };
480
480
  }
481
- function Ve(e5) {
481
+ function He(e5) {
482
482
  return e5.headers?.get(`X-Wix-Consistent`) ?? e5.headers?.get(`x-wix-consistent`);
483
483
  }
484
- var He = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
485
- var Ue = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
486
- var We = `items`;
487
- var Ge = `pagingMetadata`;
488
- var Ke = He;
489
- function qe(e5, t2) {
484
+ var Ue = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
485
+ var We = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
486
+ var Ge = `items`;
487
+ var Ke = `pagingMetadata`;
488
+ var qe = Ue;
489
+ function Je(e5, t2) {
490
490
  return e5?.split(`.`).map((e6) => t2?.[e6] ?? e6).join(`.`);
491
491
  }
492
- function Je(e5, { transformSystemFields: t2 = true } = {}) {
493
- return t2 ? qe(e5, Ke) : e5;
494
- }
495
- var Ye = `sort.fieldName`;
496
- function Xe(e5, t2, n2) {
497
- return (e5 === Ye || e5.endsWith(`.${Ye}`)) && typeof t2 == `string` ? qe(t2, n2) : t2;
492
+ function Ye(e5, { transformSystemFields: t2 = true } = {}) {
493
+ return t2 ? Je(e5, qe) : e5;
498
494
  }
495
+ var Xe = `sort.fieldName`;
499
496
  function Ze(e5, t2, n2) {
497
+ return (e5 === Xe || e5.endsWith(`.${Xe}`)) && typeof t2 == `string` ? Je(t2, n2) : t2;
498
+ }
499
+ function Qe(e5, t2, n2) {
500
500
  let r2 = (e6) => n2.includes(e6), i2 = (e6, n3) => {
501
501
  if (Array.isArray(e6)) e6.forEach((e7) => {
502
502
  i2(e7, n3);
@@ -506,147 +506,147 @@ function Ze(e5, t2, n2) {
506
506
  Object.keys(a2).forEach((e7) => {
507
507
  let o2 = n3 === `` ? e7 : `${n3}.${e7}`;
508
508
  if (r2(o2)) return;
509
- let s2 = Qe(e7, t2);
510
- s2 !== e7 && !(s2 in a2) && (a2[s2] = a2[e7], delete a2[e7]), a2[s2] = Xe(o2, a2[s2], t2), i2(a2[s2], o2);
509
+ let s2 = $e(e7, t2);
510
+ s2 !== e7 && !(s2 in a2) && (a2[s2] = a2[e7], delete a2[e7]), a2[s2] = Ze(o2, a2[s2], t2), i2(a2[s2], o2);
511
511
  });
512
512
  }
513
513
  };
514
514
  return i2(e5, ``), e5;
515
515
  }
516
- function Qe(e5, t2) {
516
+ function $e(e5, t2) {
517
517
  let n2;
518
518
  return n2 = e5.includes(`.`) ? e5.split(`.`).map((e6) => t2[e6] ?? e6).join(`.`) : t2[e5] ?? e5, n2;
519
519
  }
520
- function M(e5, t2 = []) {
521
- return Ze(e5, He, t2);
520
+ function j(e5, t2 = []) {
521
+ return Qe(e5, Ue, t2);
522
522
  }
523
- function N(e5, t2 = []) {
524
- return Ze(e5, Ue, t2);
523
+ function M(e5, t2 = []) {
524
+ return Qe(e5, We, t2);
525
525
  }
526
- function P(e5) {
526
+ function N(e5) {
527
527
  return e5 ? new Date(e5) : void 0;
528
528
  }
529
- var $e = /* @__PURE__ */ new WeakMap();
530
- function et() {
529
+ var et = /* @__PURE__ */ new WeakMap();
530
+ function tt() {
531
531
  return { leaves: void 0, fields: void 0, mapFields: void 0, anyField: void 0 };
532
532
  }
533
- function tt(e5, t2) {
533
+ function nt(e5, t2) {
534
534
  let n2 = e5.get(t2);
535
- return n2 || (n2 = et(), e5.set(t2, n2)), n2;
535
+ return n2 || (n2 = tt(), e5.set(t2, n2)), n2;
536
536
  }
537
- function nt(e5, t2) {
538
- return t2 === `*` ? (e5.anyField ??= et(), e5.anyField) : t2.endsWith(`{}`) ? (e5.mapFields ??= /* @__PURE__ */ new Map(), tt(e5.mapFields, t2.slice(0, -2))) : (e5.fields ??= /* @__PURE__ */ new Map(), tt(e5.fields, t2));
537
+ function rt(e5, t2) {
538
+ return t2 === `*` ? (e5.anyField ??= tt(), e5.anyField) : t2.endsWith(`{}`) ? (e5.mapFields ??= /* @__PURE__ */ new Map(), nt(e5.mapFields, t2.slice(0, -2))) : (e5.fields ??= /* @__PURE__ */ new Map(), nt(e5.fields, t2));
539
539
  }
540
- function rt(e5) {
541
- let t2 = et();
540
+ function it(e5) {
541
+ let t2 = tt();
542
542
  for (let n2 of e5) {
543
- let e6 = n2.path.split(`.`).reduce(nt, t2);
543
+ let e6 = n2.path.split(`.`).reduce(rt, t2);
544
544
  e6.leaves ??= [], e6.leaves.push(n2);
545
545
  }
546
546
  return t2;
547
547
  }
548
- function it(e5) {
549
- let t2 = $e.get(e5);
550
- return t2 || (t2 = rt(e5), $e.set(e5, t2)), t2;
551
- }
552
548
  function at(e5) {
553
- return typeof e5 == `object` && !!e5;
549
+ let t2 = et.get(e5);
550
+ return t2 || (t2 = it(e5), et.set(e5, t2)), t2;
554
551
  }
555
- function ot(e5, { isRepeated: t2, isMap: n2 }, r2) {
556
- return t2 ? Array.isArray(e5) ? e5.map(r2) : e5 : n2 ? at(e5) ? Object.fromEntries(Object.entries(e5).map(([e6, t3]) => [e6, r2(t3)])) : e5 : r2(e5);
552
+ function ot(e5) {
553
+ return typeof e5 == `object` && !!e5;
557
554
  }
558
- function st(e5, t2, n2) {
559
- at(e5) && ut(e5, t2, n2);
555
+ function st(e5, { isRepeated: t2, isMap: n2 }, r2) {
556
+ return t2 ? Array.isArray(e5) ? e5.map(r2) : e5 : n2 ? ot(e5) ? Object.fromEntries(Object.entries(e5).map(([e6, t3]) => [e6, r2(t3)])) : e5 : r2(e5);
560
557
  }
561
558
  function ct(e5, t2, n2) {
559
+ ot(e5) && dt(e5, t2, n2);
560
+ }
561
+ function lt(e5, t2, n2) {
562
562
  for (let [r2, i2] of t2) {
563
563
  if (!(r2 in e5)) continue;
564
- if (i2.leaves) for (let t4 of i2.leaves) e5[r2] = ot(e5[r2], t4, n2);
564
+ if (i2.leaves) for (let t4 of i2.leaves) e5[r2] = st(e5[r2], t4, n2);
565
565
  let t3 = e5[r2];
566
- Array.isArray(t3) ? t3.forEach((e6) => st(e6, i2, n2)) : st(t3, i2, n2);
566
+ Array.isArray(t3) ? t3.forEach((e6) => ct(e6, i2, n2)) : ct(t3, i2, n2);
567
567
  }
568
568
  }
569
- function lt(e5, t2, n2) {
569
+ function ut(e5, t2, n2) {
570
570
  for (let [r2, i2] of t2) {
571
571
  let t3 = e5[r2];
572
- at(t3) && Object.values(t3).forEach((e6) => st(e6, i2, n2));
572
+ ot(t3) && Object.values(t3).forEach((e6) => ct(e6, i2, n2));
573
573
  }
574
574
  }
575
- function ut(e5, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
576
- t2 && ct(e5, t2, i2), n2 && lt(e5, n2, i2), r2 && Object.values(e5).forEach((e6) => st(e6, r2, i2));
575
+ function dt(e5, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
576
+ t2 && lt(e5, t2, i2), n2 && ut(e5, n2, i2), r2 && Object.values(e5).forEach((e6) => ct(e6, r2, i2));
577
577
  }
578
- function F(e5, t2) {
579
- if (!at(e5)) return e5;
580
- for (let { paths: n2, transformFn: r2 } of t2) ut(e5, it(n2), r2);
578
+ function P(e5, t2) {
579
+ if (!ot(e5)) return e5;
580
+ for (let { paths: n2, transformFn: r2 } of t2) dt(e5, at(n2), r2);
581
581
  return e5;
582
582
  }
583
- function dt(e5) {
583
+ function ft(e5) {
584
584
  return Object.fromEntries(Object.entries(e5).filter(([, e6]) => e6 !== void 0));
585
585
  }
586
- function ft(e5) {
587
- return _t(e5).map((e6) => e6.toLocaleUpperCase()).join(`_`);
586
+ function pt(e5) {
587
+ return vt(e5).map((e6) => e6.toLocaleUpperCase()).join(`_`);
588
588
  }
589
- var pt = /([\p{Ll}\d])(\p{Lu})/gu;
590
- var mt = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
591
- var ht = `$1\0$2`;
592
- var gt = /[^\p{L}\d]+/giu;
593
- function _t(e5) {
589
+ var mt = /([\p{Ll}\d])(\p{Lu})/gu;
590
+ var ht = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
591
+ var gt = `$1\0$2`;
592
+ var _t = /[^\p{L}\d]+/giu;
593
+ function vt(e5) {
594
594
  let t2 = e5.trim();
595
- t2 = t2.replace(pt, ht).replace(mt, ht), t2 = t2.replace(gt, `\0`);
595
+ t2 = t2.replace(mt, gt).replace(ht, gt), t2 = t2.replace(_t, `\0`);
596
596
  let n2 = 0, r2 = t2.length;
597
597
  for (; t2.charAt(n2) === `\0`; ) n2++;
598
598
  if (n2 === r2) return [];
599
599
  for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
600
600
  return t2.slice(n2, r2).split(/\0/g);
601
601
  }
602
- var vt = (e5) => `validationError` in (e5.response?.data?.details ?? {});
603
- var yt = (e5) => `applicationError` in (e5.response?.data?.details ?? {});
604
- var bt = (e5) => (e5.response?.status ?? -1) >= 400 && (e5.response?.status ?? -1) < 500;
605
- function I(e5, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
602
+ var yt = (e5) => `validationError` in (e5.response?.data?.details ?? {});
603
+ var bt = (e5) => `applicationError` in (e5.response?.data?.details ?? {});
604
+ var xt = (e5) => (e5.response?.status ?? -1) >= 400 && (e5.response?.status ?? -1) < 500;
605
+ function F(e5, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
606
606
  if (typeof e5 != `object` || !e5) throw e5;
607
- if (vt(e5)) return xt(e5, t2, n2);
608
- if (yt(e5)) return Ct(e5);
609
- if (bt(e5)) {
610
- let t3 = e5.response?.status, n3 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: ft(n3), data: {} }, requestId: e5.requestId };
611
- return St(e5, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
607
+ if (yt(e5)) return St(e5, t2, n2);
608
+ if (bt(e5)) return wt(e5);
609
+ if (xt(e5)) {
610
+ let t3 = e5.response?.status, n3 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: pt(n3), data: {} }, requestId: e5.requestId };
611
+ return Ct(e5, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
612
612
  }
613
- return wt(e5);
613
+ return Tt(e5);
614
614
  }
615
- var xt = (e5, t2, n2) => {
616
- let r2 = e5.response?.data, i2 = e5.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Tt(t2, a2, n2)?.sort((e6, t3) => e6.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e6, description: t3 }) => `"${e6}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
617
- return St(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e5.response?.status, requestId: i2 } });
615
+ var St = (e5, t2, n2) => {
616
+ let r2 = e5.response?.data, i2 = e5.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Et(t2, a2, n2)?.sort((e6, t3) => e6.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e6, description: t3 }) => `"${e6}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
617
+ return Ct(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e5.response?.status, requestId: i2 } });
618
618
  };
619
- var St = (e5, { message: t2, extraProperties: n2 }) => Object.assign(e5, { ...n2, message: t2 });
620
- var Ct = (e5) => {
621
- let t2 = e5.response?.status, n2 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n2, i2 = e5.response?.data?.details?.applicationError?.description ?? n2, a2 = e5.response?.data?.details?.applicationError?.code ?? ft(n2), o2 = e5.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e5.requestId };
622
- return St(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e5.requestId } });
619
+ var Ct = (e5, { message: t2, extraProperties: n2 }) => Object.assign(e5, { ...n2, message: t2 });
620
+ var wt = (e5) => {
621
+ let t2 = e5.response?.status, n2 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n2, i2 = e5.response?.data?.details?.applicationError?.description ?? n2, a2 = e5.response?.data?.details?.applicationError?.code ?? pt(n2), o2 = e5.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e5.requestId };
622
+ return Ct(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e5.requestId } });
623
623
  };
624
- var wt = (e5) => St(e5, { message: e5.requestId ? `System error occurred, request-id: ${e5.requestId}` : `System error occurred: ${JSON.stringify(e5)}`, extraProperties: { requestId: e5.requestId, status: e5.response?.status, code: ft(e5.response?.statusText ?? `UNKNOWN`), ...!e5.response && { runtimeError: e5 } } });
625
- var Tt = ({ spreadPathsToArguments: e5, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
624
+ var Tt = (e5) => Ct(e5, { message: e5.requestId ? `System error occurred, request-id: ${e5.requestId}` : `System error occurred: ${JSON.stringify(e5)}`, extraProperties: { requestId: e5.requestId, status: e5.response?.status, code: pt(e5.response?.statusText ?? `UNKNOWN`), ...!e5.response && { runtimeError: e5 } } });
625
+ var Et = ({ spreadPathsToArguments: e5, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
626
626
  let a2 = { ...e5, ...t2 }, o2 = Object.keys(a2);
627
627
  return r2?.filter((e6) => !r2.some((t3) => t3.field.length > e6.field.length && t3.field.startsWith(e6.field) && o2.includes(t3.field))).map((e6) => {
628
628
  let r3 = t2[e6.field];
629
- if (r3) return { ...e6, field: Et(r3, i2) };
629
+ if (r3) return { ...e6, field: Dt(r3, i2) };
630
630
  let s2 = o2?.sort((e7, t3) => t3.length - e7.length)?.find((t3) => e6.field.startsWith(t3));
631
631
  if (s2) {
632
632
  let t3 = a2[s2];
633
- if (t3) return { ...e6, field: e6.field.replace(s2, Et(t3, i2)) };
633
+ if (t3) return { ...e6, field: e6.field.replace(s2, Dt(t3, i2)) };
634
634
  }
635
635
  return n2 ? { ...e6, field: `${i2[0]}.${e6.field}` } : e6;
636
636
  });
637
637
  };
638
- var Et = (e5, t2) => {
639
- let n2 = Dt(e5);
638
+ var Dt = (e5, t2) => {
639
+ let n2 = Ot(e5);
640
640
  return n2 == null ? e5 : e5.replace(`$[${n2}]`, t2[n2]);
641
641
  };
642
- var Dt = (e5) => {
642
+ var Ot = (e5) => {
643
643
  let t2 = e5.match(/\$\[(?<argIndex>\d+)\]/);
644
644
  return t2 && t2.groups && Number(t2.groups.argIndex);
645
645
  };
646
- function Ot() {
646
+ function kt() {
647
647
  let e5 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
648
648
  if (e5) return { initWixModules(t3, n3) {
649
- return kt(() => e5(t3, n3));
649
+ return At(() => e5(t3, n3));
650
650
  }, fetchWithAuth() {
651
651
  throw Error(`fetchWithAuth is not available in this context`);
652
652
  }, graphql() {
@@ -656,10 +656,10 @@ function Ot() {
656
656
  if (t2 || n2) return { initWixModules(e6, r2) {
657
657
  if (r2) {
658
658
  if (!n2) throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);
659
- return kt(() => n2.use(e6));
659
+ return At(() => n2.use(e6));
660
660
  }
661
661
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
662
- return kt(() => t2.use(e6));
662
+ return At(() => t2.use(e6));
663
663
  }, fetchWithAuth: (e6, n3) => {
664
664
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
665
665
  return t2.fetchWithAuth(e6, n3);
@@ -671,7 +671,7 @@ function Ot() {
671
671
  return t2.graphql(e6, n3, r2);
672
672
  } };
673
673
  }
674
- function kt(e5) {
674
+ function At(e5) {
675
675
  let t2 = globalThis.__wix_context__, n2 = { client: g.client, elevatedClient: g.elevatedClient }, r2;
676
676
  globalThis.__wix_context__ = void 0, g.client = void 0, g.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
677
677
  try {
@@ -680,108 +680,108 @@ function kt(e5) {
680
680
  globalThis.__wix_context__ = t2, g.client = n2.client, g.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
681
681
  }
682
682
  }
683
- function At(e5, t2) {
683
+ function jt(e5, t2) {
684
684
  return (...n2) => {
685
- let r2 = Ot();
685
+ let r2 = kt();
686
686
  return r2 ? r2.initWixModules(e5, t2).apply(void 0, n2) : e5.apply(void 0, n2);
687
687
  };
688
688
  }
689
- function jt(e5) {
689
+ function Mt(e5) {
690
690
  let t2 = (...t3) => {
691
- let n2 = Ot();
691
+ let n2 = kt();
692
692
  return n2 ? n2.initWixModules(e5).apply(void 0, t3) : () => ({ slug: e5.type });
693
693
  };
694
694
  return t2.__type = e5.__type, t2.type = e5.type, t2.isDomainEvent = e5.isDomainEvent, t2.transformations = e5.transformations, t2;
695
695
  }
696
- function Mt(e5, t2 = false) {
697
- return At(e5, t2);
696
+ function Nt(e5, t2 = false) {
697
+ return jt(e5, t2);
698
698
  }
699
- function Nt(e5, t2) {
700
- let n2 = Ft(e5), r2 = Object.entries(n2).some(([e6, t3]) => e6.includes(`.`) || Array.isArray(t3) && t3.some((e7) => typeof e7 == `object`));
701
- return t2 && r2 ? new URLSearchParams({ ".r": Lt(JSON.stringify(e5)) }) : Object.entries(n2).reduce((e6, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
699
+ function Pt(e5, t2) {
700
+ let n2 = It(e5), r2 = Object.entries(n2).some(([e6, t3]) => e6.includes(`.`) || Array.isArray(t3) && t3.some((e7) => typeof e7 == `object`));
701
+ return t2 && r2 ? new URLSearchParams({ ".r": Rt(JSON.stringify(e5)) }) : Object.entries(n2).reduce((e6, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
702
702
  r3 == null || Array.isArray(n3) && typeof r3 == `object` || e6.append(t3, r3);
703
703
  }), e6), new URLSearchParams());
704
704
  }
705
- function Pt(e5) {
706
- let t2 = Xt(Jt(e5.host), e5.domainToMappings);
707
- return on(nn(e5.protoPath, e5.data || {}), t2);
705
+ function Ft(e5) {
706
+ let t2 = Zt(Yt(e5.host), e5.domainToMappings);
707
+ return sn(rn(e5.protoPath, e5.data || {}), t2);
708
708
  }
709
- function Ft(e5, t2 = ``) {
709
+ function It(e5, t2 = ``) {
710
710
  let n2 = {};
711
711
  return Object.entries(e5).forEach(([e6, r2]) => {
712
- let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = It(t2, e6);
712
+ let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = Lt(t2, e6);
713
713
  if (i2) {
714
- let e7 = Ft(r2, a2);
714
+ let e7 = It(r2, a2);
715
715
  Object.assign(n2, e7);
716
716
  } else n2[a2] = r2;
717
717
  }), n2;
718
718
  }
719
- function It(e5, t2) {
719
+ function Lt(e5, t2) {
720
720
  return `${e5}${e5 ? `.` : ``}${t2}`;
721
721
  }
722
- var Lt = (e5) => {
722
+ var Rt = (e5) => {
723
723
  let t2 = new TextEncoder().encode(e5);
724
724
  return (typeof btoa < `u` ? btoa(String.fromCodePoint(...t2)) : Buffer.from(e5, `utf-8`).toString(`base64`)).replace(/=/g, ``).replace(/\+/g, `-`).replace(/\//g, `_`);
725
725
  };
726
- var Rt = [`wix.com`, `editorx.com`];
727
- var zt = `_`;
728
- var Bt = `*.`;
729
- var Vt = RegExp(`\\.(${Rt.join(`|`)})$`);
730
- var Ht = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
731
- var Ut = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
732
- var Wt = `dev.wix-code.com`;
733
- var Gt = /{(.*)}/;
734
- var Kt = RegExp(`\\.(${Ht.join(`|`)})$`);
735
- var qt = RegExp(`.*\\.${Wt}$`);
736
- function Jt(e5) {
737
- return Yt(e5).replace(Vt, `._base_domain_`).replace(Kt, `._api_base_domain_`).replace(qt, `*.dev.wix-code.com`);
738
- }
726
+ var zt = [`wix.com`, `editorx.com`];
727
+ var Bt = `_`;
728
+ var Vt = `*.`;
729
+ var Ht = RegExp(`\\.(${zt.join(`|`)})$`);
730
+ var Ut = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
731
+ var Wt = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
732
+ var Gt = `dev.wix-code.com`;
733
+ var Kt = /{(.*)}/;
734
+ var qt = RegExp(`\\.(${Ut.join(`|`)})$`);
735
+ var Jt = RegExp(`.*\\.${Gt}$`);
739
736
  function Yt(e5) {
740
- return Ut[e5] ?? e5;
737
+ return Xt(e5).replace(Ht, `._base_domain_`).replace(qt, `._api_base_domain_`).replace(Jt, `*.dev.wix-code.com`);
741
738
  }
742
- function Xt(e5, t2) {
739
+ function Xt(e5) {
740
+ return Wt[e5] ?? e5;
741
+ }
742
+ function Zt(e5, t2) {
743
743
  let n2 = t2[e5];
744
744
  if (n2) return n2;
745
- let r2 = Zt(e5, t2) ?? Qt(e5, t2);
745
+ let r2 = Qt(e5, t2) ?? $t(e5, t2);
746
746
  if (!r2) {
747
- if (en(e5)) {
748
- let e6 = t2[tn];
747
+ if (tn(e5)) {
748
+ let e6 = t2[nn];
749
749
  if (e6) return e6;
750
750
  }
751
- let n3 = t2[zt];
751
+ let n3 = t2[Bt];
752
752
  if (n3) return n3;
753
753
  }
754
754
  return r2 ?? [];
755
755
  }
756
- function Zt(e5, t2) {
756
+ function Qt(e5, t2) {
757
757
  return Object.entries(t2).find(([t3]) => {
758
758
  let [, ...n2] = e5.split(`.`);
759
759
  return n2.join(`.`) === t3;
760
760
  })?.[1];
761
761
  }
762
- function Qt(e5, t2) {
763
- let [n2] = Object.entries(t2).filter(([t3]) => $t(e5, t3)).sort(([e6], [t3]) => t3.length - e6.length);
762
+ function $t(e5, t2) {
763
+ let [n2] = Object.entries(t2).filter(([t3]) => en(e5, t3)).sort(([e6], [t3]) => t3.length - e6.length);
764
764
  if (!n2) return;
765
765
  let [, r2] = n2;
766
766
  return r2;
767
767
  }
768
- function $t(e5, t2) {
769
- if (!t2.startsWith(Bt)) return false;
768
+ function en(e5, t2) {
769
+ if (!t2.startsWith(Vt)) return false;
770
770
  let n2 = t2.slice(1);
771
771
  return e5.length > n2.length && e5.endsWith(n2);
772
772
  }
773
- function en(e5) {
773
+ function tn(e5) {
774
774
  return !!e5.match(/\._base_domain_$/);
775
775
  }
776
- var tn = `www._base_domain_`;
777
- function nn(e5, t2) {
778
- return e5.split(`/`).map((e6) => rn(e6, t2)).join(`/`);
779
- }
776
+ var nn = `www._base_domain_`;
780
777
  function rn(e5, t2) {
781
- let n2 = e5.match(Gt) || [], r2 = n2[1];
782
- return r2 ? an(t2, r2, e5, e5.replace(n2[0], ``)) : e5;
778
+ return e5.split(`/`).map((e6) => an(e6, t2)).join(`/`);
779
+ }
780
+ function an(e5, t2) {
781
+ let n2 = e5.match(Kt) || [], r2 = n2[1];
782
+ return r2 ? on(t2, r2, e5, e5.replace(n2[0], ``)) : e5;
783
783
  }
784
- function an(e5, t2, n2, r2) {
784
+ function on(e5, t2, n2, r2) {
785
785
  let i2 = e5;
786
786
  for (let e6 of t2.split(`.`)) {
787
787
  if (!i2) return n2;
@@ -789,40 +789,40 @@ function an(e5, t2, n2, r2) {
789
789
  }
790
790
  return `${i2}${r2}`;
791
791
  }
792
- function on(e5, t2) {
792
+ function sn(e5, t2) {
793
793
  let n2 = t2?.find((t3) => e5.startsWith(t3.destPath));
794
794
  return n2 ? n2.srcPath + e5.slice(n2.destPath.length) : e5;
795
795
  }
796
- function sn(e5) {
797
- return jt(e5);
798
- }
799
796
  function cn(e5) {
800
- return e5 === `NaN` ? NaN : e5 === `Infinity` ? 1 / 0 : e5 === `-Infinity` ? -1 / 0 : e5;
797
+ return Mt(e5);
801
798
  }
802
799
  function ln(e5) {
803
- return e5 && dt({ formatted: e5.formattedAddress, location: e5.geocode, addressLine1: e5.addressLine, addressLine2: e5.addressLine2, streetAddress: e5.streetAddress && { name: e5.streetAddress.name, number: e5.streetAddress.number, apt: e5.streetAddress.apt, formattedAddressLine: e5.streetAddress.formattedAddressLine }, hint: e5.hint, city: e5.city, subdivision: e5.subdivision, country: e5.country, postalCode: e5.postalCode, countryFullname: e5.countryFullname, subdivisionFullname: e5.subdivisionFullname });
800
+ return e5 === `NaN` ? NaN : e5 === `Infinity` ? 1 / 0 : e5 === `-Infinity` ? -1 / 0 : e5;
804
801
  }
805
- var un;
802
+ function un(e5) {
803
+ return e5 && ft({ formatted: e5.formattedAddress, location: e5.geocode, addressLine1: e5.addressLine, addressLine2: e5.addressLine2, streetAddress: e5.streetAddress && { name: e5.streetAddress.name, number: e5.streetAddress.number, apt: e5.streetAddress.apt, formattedAddressLine: e5.streetAddress.formattedAddressLine }, hint: e5.hint, city: e5.city, subdivision: e5.subdivision, country: e5.country, postalCode: e5.postalCode, countryFullname: e5.countryFullname, subdivisionFullname: e5.subdivisionFullname });
804
+ }
805
+ var dn;
806
806
  (function(e5) {
807
807
  e5.QUERY_PARAM = `QUERY_PARAM`, e5.SUBDOMAIN = `SUBDOMAIN`, e5.SUBDIRECTORY = `SUBDIRECTORY`;
808
- })(un ||= {});
809
- var dn = { cs: `\u010Ce\u0161tina`, da: `Dansk`, de: `Deutsch`, en: `English`, es: `Espa\xF1ol`, fr: `Fran\xE7ais`, hi: `\u0939\u093F\u0928\u094D\u0926\u0940`, id: `Bahasa Indonesia`, it: `Italiano`, ja: `\u65E5\u672C\u8A9E`, ko: `\uD55C\uAD6D\uC5B4`, nl: `Nederlands`, no: `Norsk`, pl: `Polski`, pt: `Portugu\xEAs`, ru: `\u0420\u0443\u0441\u0441\u043A\u0438\u0439`, sv: `Svenska`, th: `\u0E44\u0E17\u0E22`, tr: `T\xFCrk\xE7e`, uk: `\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430`, vi: `Ti\u1EBFng Vi\u1EC7t`, zh: `\u7E41\u9AD4\u4E2D\u6587`, sq: `Shqip`, am: `\u12A0\u121B\u122D\u129B`, ar: `\u0627\u0644\u0639\u0631\u0628\u064A\u0629`, hy: `\u0540\u0561\u0575\u0565\u0580\u0565\u0576`, az: `Az\u0259rbaycan dili`, eu: `Euskara`, be: `\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F`, bn: `\u09AC\u09BE\u0982\u09B2\u09BE`, bs: `Bosanski`, bg: `\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438`, ca: `Catal\xE0`, ny: `ChiChe\u0175a`, co: `Corsu`, hr: `Hrvatski`, et: `Eesti`, fj: `Vosa Vakaviti`, fi: `Suomi`, ga: `Gaeilge`, gl: `Galego`, ka: `\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8`, el: `\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC`, gu: `\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0`, ht: `Krey\xF2l Ayisyen`, ha: `Hausa`, he: `\u05E2\u05D1\u05E8\u05D9\u05EA`, hu: `Magyar`, is: `\xCDslenska`, ig: `Igbo`, kn: `\u0C95\u0CA8\u0CCD\u0CA8\u0CA1`, kk: `\u049A\u0430\u0437\u0430\u049B \u0442\u0456\u043B\u0456`, km: `\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A`, ku: `Kurd\xEE`, ky: `\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430`, lb: `L\xEBtzebuergesch`, lo: `\u0EA5\u0EB2\u0EA7`, la: `Latina`, lv: `Latvie\u0161u`, lt: `Lietuvi\u0173`, mk: `\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438`, mg: `Malagasy`, ms: `Bahasa Melayu`, ml: `\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02`, mt: `Malti`, mn: `\u041C\u043E\u043D\u0433\u043E\u043B`, ne: `\u0928\u0947\u092A\u093E\u0932\u0940`, ps: `\u067E\u069A\u062A\u0648`, fa: `\u0641\u0627\u0631\u0633\u06CC`, ro: `Rom\xE2n\u0103`, sm: `Gagana Samoa`, sr: `\u0421\u0440\u043F\u0441\u043A\u0438`, sn: `Shona`, sd: `\u0633\u0646\u068C\u064A`, si: `\u0DC3\u0DD2\u0D82\u0DC4\u0DBD`, sk: `Sloven\u010Dina`, sl: `Sloven\u0161\u010Dina`, so: `Soomaaliga`, su: `Basa Sunda`, sw: `Kiswahili`, tl: `Filipino`, tg: `\u0422\u043E\u04B7\u0438\u043A\u04E3`, ta: `\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD`, te: `\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41`, tk: `T\xFCrkmen`, ur: `\u0627\u0631\u062F\u0648`, uz: `O'zbek`, cy: `Cymraeg`, xh: `isiXhosa`, yi: `\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9`, yo: `Yor\xF9b\xE1`, zu: `isiZulu`, kl: `Kalaallisut`, fo: `F\xF8royskt`, ln: `Ling\xE1la`, mi: `M\u0101ori`, mr: `\u092E\u0930\u093E\u0920\u0940`, my: `\u1019\u103C\u1014\u103A\u1019\u102C`, se: `S\xE1megiella`, ug: `\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5`, qu: `Runa Simi`, aa: `Afar`, ab: `\u0410\u04A7\u0441\u0443\u0430`, ae: `Avestan`, ak: `Akan`, an: `Aragon\xE9s`, as: `\u0985\u09B8\u09AE\u09C0\u09AF\u09BC\u09BE`, av: `\u0410\u0432\u0430\u0440`, ay: `Aymar aru`, ba: `\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430`, bh: `\u092D\u094B\u091C\u092A\u0941\u0930\u0940`, bi: `Bislama`, bm: `Bamanankan`, bo: `\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B`, br: `Brezhoneg`, ce: `\u041D\u043E\u0445\u0447\u0438\u0439\u043D`, ch: `Chamoru`, cr: `\u14C0\u1426\u1403\u152D\u140D\u140F\u1423`, cu: `\u0426\u0440\u044C\u043A\u044A\u0432\u044C\u043D\u043E\u0441\u043B\u043E\u0432\u0463\u043D\u044C\u0441\u043A\u044A`, cv: `\u0427\u04D1\u0432\u0430\u0448\u043B\u0430`, dv: `\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0784\u07A6\u0790\u07B0`, dz: `\u0F62\u0FAB\u0F7C\u0F44\u0F0B\u0F41`, ee: `E\u028Begbe`, eo: `Esperanto`, ff: `Fulah`, fy: `Frysk`, gd: `G\xE0idhlig`, gn: `Ava\xF1e'\u1EBD`, gv: `Gaelg`, ho: `Hiri Motu`, hz: `Otjiherero`, ia: `Interlingua`, ie: `Interlingue`, ii: `\uA188\uA320\uA259`, ik: `I\xF1upiaq`, io: `Ido`, iu: `\u1403\u14C4\u1483\u144E\u1450\u1466`, jv: `Basa Jawa`, ki: `Gikuyu`, kr: `Kanuri`, ks: `\u06A9\u0672\u0634\u064F\u0631`, kw: `Kernewek`, lg: `Luganda`, li: `Limburgs`, lu: `Tshiluba`, mh: `Kajin M\u0327aje\u013C`, na: `Dorerin Naoero`, nb: `Norsk Bokm\xE5l`, nd: `isiNdebele`, ng: `Oshiwambo`, nn: `Norsk Nynorsk`, nr: `isiNdebele (South)`, nv: `Din\xE9 Bizaad`, oc: `Occitan`, oj: `Anishinaabemowin`, om: `Afaan Oromoo`, or: `\u0B13\u0B21\u0B3C\u0B3F\u0B06`, os: `\u0418\u0440\u043E\u043D`, pa: `\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40`, pi: `\u{11005}\u{1102F}\u{11022}`, rm: `Rumantsch`, rn: `Ikirundi`, rw: `Kinyarwanda`, sa: `\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D`, sc: `Sardu`, sg: `S\xE4ng\xF6`, ss: `SiSwati`, st: `Sesotho`, ti: `\u1275\u130D\u122D\u129B`, tn: `Setswana`, to: `Faka Tonga`, ts: `Xitsonga`, tt: `\u0422\u0430\u0442\u0430\u0440\u0447\u0430`, tw: `Twi`, ty: `Reo Tahiti`, ve: `Tshiven\u1E13a`, vo: `Volap\xFCk`, wa: `Walon`, wo: `Wolof`, za: `Sa\u026F cue\u014B\u0185` };
810
- var fn = (e5, t2) => {
808
+ })(dn ||= {});
809
+ var fn = { cs: `\u010Ce\u0161tina`, da: `Dansk`, de: `Deutsch`, en: `English`, es: `Espa\xF1ol`, fr: `Fran\xE7ais`, hi: `\u0939\u093F\u0928\u094D\u0926\u0940`, id: `Bahasa Indonesia`, it: `Italiano`, ja: `\u65E5\u672C\u8A9E`, ko: `\uD55C\uAD6D\uC5B4`, nl: `Nederlands`, no: `Norsk`, pl: `Polski`, pt: `Portugu\xEAs`, ru: `\u0420\u0443\u0441\u0441\u043A\u0438\u0439`, sv: `Svenska`, th: `\u0E44\u0E17\u0E22`, tr: `T\xFCrk\xE7e`, uk: `\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430`, vi: `Ti\u1EBFng Vi\u1EC7t`, zh: `\u7E41\u9AD4\u4E2D\u6587`, sq: `Shqip`, am: `\u12A0\u121B\u122D\u129B`, ar: `\u0627\u0644\u0639\u0631\u0628\u064A\u0629`, hy: `\u0540\u0561\u0575\u0565\u0580\u0565\u0576`, az: `Az\u0259rbaycan dili`, eu: `Euskara`, be: `\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F`, bn: `\u09AC\u09BE\u0982\u09B2\u09BE`, bs: `Bosanski`, bg: `\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438`, ca: `Catal\xE0`, ny: `ChiChe\u0175a`, co: `Corsu`, hr: `Hrvatski`, et: `Eesti`, fj: `Vosa Vakaviti`, fi: `Suomi`, ga: `Gaeilge`, gl: `Galego`, ka: `\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8`, el: `\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC`, gu: `\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0`, ht: `Krey\xF2l Ayisyen`, ha: `Hausa`, he: `\u05E2\u05D1\u05E8\u05D9\u05EA`, hu: `Magyar`, is: `\xCDslenska`, ig: `Igbo`, kn: `\u0C95\u0CA8\u0CCD\u0CA8\u0CA1`, kk: `\u049A\u0430\u0437\u0430\u049B \u0442\u0456\u043B\u0456`, km: `\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A`, ku: `Kurd\xEE`, ky: `\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430`, lb: `L\xEBtzebuergesch`, lo: `\u0EA5\u0EB2\u0EA7`, la: `Latina`, lv: `Latvie\u0161u`, lt: `Lietuvi\u0173`, mk: `\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438`, mg: `Malagasy`, ms: `Bahasa Melayu`, ml: `\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02`, mt: `Malti`, mn: `\u041C\u043E\u043D\u0433\u043E\u043B`, ne: `\u0928\u0947\u092A\u093E\u0932\u0940`, ps: `\u067E\u069A\u062A\u0648`, fa: `\u0641\u0627\u0631\u0633\u06CC`, ro: `Rom\xE2n\u0103`, sm: `Gagana Samoa`, sr: `\u0421\u0440\u043F\u0441\u043A\u0438`, sn: `Shona`, sd: `\u0633\u0646\u068C\u064A`, si: `\u0DC3\u0DD2\u0D82\u0DC4\u0DBD`, sk: `Sloven\u010Dina`, sl: `Sloven\u0161\u010Dina`, so: `Soomaaliga`, su: `Basa Sunda`, sw: `Kiswahili`, tl: `Filipino`, tg: `\u0422\u043E\u04B7\u0438\u043A\u04E3`, ta: `\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD`, te: `\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41`, tk: `T\xFCrkmen`, ur: `\u0627\u0631\u062F\u0648`, uz: `O'zbek`, cy: `Cymraeg`, xh: `isiXhosa`, yi: `\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9`, yo: `Yor\xF9b\xE1`, zu: `isiZulu`, kl: `Kalaallisut`, fo: `F\xF8royskt`, ln: `Ling\xE1la`, mi: `M\u0101ori`, mr: `\u092E\u0930\u093E\u0920\u0940`, my: `\u1019\u103C\u1014\u103A\u1019\u102C`, se: `S\xE1megiella`, ug: `\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5`, qu: `Runa Simi`, aa: `Afar`, ab: `\u0410\u04A7\u0441\u0443\u0430`, ae: `Avestan`, ak: `Akan`, an: `Aragon\xE9s`, as: `\u0985\u09B8\u09AE\u09C0\u09AF\u09BC\u09BE`, av: `\u0410\u0432\u0430\u0440`, ay: `Aymar aru`, ba: `\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430`, bh: `\u092D\u094B\u091C\u092A\u0941\u0930\u0940`, bi: `Bislama`, bm: `Bamanankan`, bo: `\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B`, br: `Brezhoneg`, ce: `\u041D\u043E\u0445\u0447\u0438\u0439\u043D`, ch: `Chamoru`, cr: `\u14C0\u1426\u1403\u152D\u140D\u140F\u1423`, cu: `\u0426\u0440\u044C\u043A\u044A\u0432\u044C\u043D\u043E\u0441\u043B\u043E\u0432\u0463\u043D\u044C\u0441\u043A\u044A`, cv: `\u0427\u04D1\u0432\u0430\u0448\u043B\u0430`, dv: `\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0784\u07A6\u0790\u07B0`, dz: `\u0F62\u0FAB\u0F7C\u0F44\u0F0B\u0F41`, ee: `E\u028Begbe`, eo: `Esperanto`, ff: `Fulah`, fy: `Frysk`, gd: `G\xE0idhlig`, gn: `Ava\xF1e'\u1EBD`, gv: `Gaelg`, ho: `Hiri Motu`, hz: `Otjiherero`, ia: `Interlingua`, ie: `Interlingue`, ii: `\uA188\uA320\uA259`, ik: `I\xF1upiaq`, io: `Ido`, iu: `\u1403\u14C4\u1483\u144E\u1450\u1466`, jv: `Basa Jawa`, ki: `Gikuyu`, kr: `Kanuri`, ks: `\u06A9\u0672\u0634\u064F\u0631`, kw: `Kernewek`, lg: `Luganda`, li: `Limburgs`, lu: `Tshiluba`, mh: `Kajin M\u0327aje\u013C`, na: `Dorerin Naoero`, nb: `Norsk Bokm\xE5l`, nd: `isiNdebele`, ng: `Oshiwambo`, nn: `Norsk Nynorsk`, nr: `isiNdebele (South)`, nv: `Din\xE9 Bizaad`, oc: `Occitan`, oj: `Anishinaabemowin`, om: `Afaan Oromoo`, or: `\u0B13\u0B21\u0B3C\u0B3F\u0B06`, os: `\u0418\u0440\u043E\u043D`, pa: `\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40`, pi: `\u{11005}\u{1102F}\u{11022}`, rm: `Rumantsch`, rn: `Ikirundi`, rw: `Kinyarwanda`, sa: `\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D`, sc: `Sardu`, sg: `S\xE4ng\xF6`, ss: `SiSwati`, st: `Sesotho`, ti: `\u1275\u130D\u122D\u129B`, tn: `Setswana`, to: `Faka Tonga`, ts: `Xitsonga`, tt: `\u0422\u0430\u0442\u0430\u0440\u0447\u0430`, tw: `Twi`, ty: `Reo Tahiti`, ve: `Tshiven\u1E13a`, vo: `Volap\xFCk`, wa: `Walon`, wo: `Wolof`, za: `Sa\u026F cue\u014B\u0185` };
810
+ var pn = (e5, t2) => {
811
811
  e5.searchParams.set(`lang`, t2);
812
812
  };
813
- var pn = (e5, t2) => {
813
+ var mn = (e5, t2) => {
814
814
  let n2 = e5.hostname.split(`.`);
815
815
  n2[0] === `www` && (n2 = n2.slice(1)), n2 = [t2, ...n2], e5.hostname = n2.join(`.`);
816
816
  };
817
- var mn = (e5, t2) => {
817
+ var hn = (e5, t2) => {
818
818
  e5.pathname = `/${t2}${e5.pathname}`;
819
819
  };
820
- var hn = (e5, t2) => {
820
+ var gn = (e5, t2) => {
821
821
  if (!t2.languageCode || !t2?.resolutionMethod) return e5;
822
822
  let n2 = new URL(e5);
823
- return (t2?.resolutionMethod === `QUERY_PARAM` ? fn : t2?.resolutionMethod === `SUBDOMAIN` ? pn : mn)(n2, t2.languageCode), n2.href;
823
+ return (t2?.resolutionMethod === `QUERY_PARAM` ? pn : t2?.resolutionMethod === `SUBDOMAIN` ? mn : hn)(n2, t2.languageCode), n2.href;
824
824
  };
825
- var gn = (e5, t2) => {
825
+ var _n = (e5, t2) => {
826
826
  if (!e5?.length) return e5;
827
827
  let n2;
828
828
  try {
@@ -843,97 +843,97 @@ var gn = (e5, t2) => {
843
843
  }
844
844
  return n2.href;
845
845
  };
846
- function _n() {
847
- let e5 = vn();
848
- return e5 ? yn(e5) : [];
849
- }
850
846
  function vn() {
847
+ let e5 = yn();
848
+ return e5 ? bn(e5) : [];
849
+ }
850
+ function yn() {
851
851
  let e5 = typeof globals < `u` ? globals?.$ns?.[`wix-window`]?.multilingual : void 0, t2 = typeof window < `u` ? window?.essentials?.multilingual : void 0;
852
852
  return e5 ?? t2 ?? globalThis?.__wix_site_metadata__?.multilingual;
853
853
  }
854
- function yn(e5) {
854
+ function bn(e5) {
855
855
  try {
856
856
  if (e5?.supportedLanguages?.length) {
857
- let t2 = e5.supportedLanguages, n2 = t2.map((e6) => e6.languageCode).filter(Boolean), r2 = e5.cleanUrl ?? Cn(n2);
858
- return t2.map((e6) => ({ id: e6.languageCode, displayName: bn(e6), regionalFormat: [e6.locale?.languageCode, e6.locale?.country].filter(Boolean).join(`-`), url: xn(e6, r2), primary: e6.isPrimary, resolutionMethod: e6.resolutionMethod }));
857
+ let t2 = e5.supportedLanguages, n2 = t2.map((e6) => e6.languageCode).filter(Boolean), r2 = e5.cleanUrl ?? wn(n2);
858
+ return t2.map((e6) => ({ id: e6.languageCode, displayName: xn(e6), regionalFormat: [e6.locale?.languageCode, e6.locale?.country].filter(Boolean).join(`-`), url: Sn(e6, r2), primary: e6.isPrimary, resolutionMethod: e6.resolutionMethod }));
859
859
  }
860
860
  if (e5?.siteLanguages?.length) {
861
- let t2 = e5.siteLanguages, n2 = Cn(t2.map((e6) => e6.languageCode).filter(Boolean));
862
- return t2.map((e6) => ({ id: e6.languageCode, displayName: bn(e6), regionalFormat: e6.locale, url: xn(e6, n2), primary: e6.isPrimaryLanguage, resolutionMethod: e6.resolutionMethod ? Sn(e6.resolutionMethod) : void 0 }));
861
+ let t2 = e5.siteLanguages, n2 = wn(t2.map((e6) => e6.languageCode).filter(Boolean));
862
+ return t2.map((e6) => ({ id: e6.languageCode, displayName: xn(e6), regionalFormat: e6.locale, url: Sn(e6, n2), primary: e6.isPrimaryLanguage, resolutionMethod: e6.resolutionMethod ? Cn(e6.resolutionMethod) : void 0 }));
863
863
  }
864
864
  } catch (e6) {
865
865
  return console.warn(`[Multilingual Manager] listSupportedLanguages failed`, e6), [];
866
866
  }
867
867
  return console.warn(`[Multilingual Manager] listSupportedLanguages is not available`), [];
868
868
  }
869
- function bn(e5) {
870
- let t2 = dn[e5.languageCode];
869
+ function xn(e5) {
870
+ let t2 = fn[e5.languageCode];
871
871
  if (t2) return t2;
872
872
  let n2 = e5.name ?? e5.countryCode;
873
873
  if (n2) return n2;
874
874
  }
875
- function xn(e5, t2) {
875
+ function Sn(e5, t2) {
876
876
  if (e5.url || !t2 || !e5.resolutionMethod) return e5.url;
877
877
  if (e5.languageCode) try {
878
- return hn(t2, { languageCode: e5.languageCode, countryCode: e5.countryCode, resolutionMethod: Sn(e5.resolutionMethod), locale: { languageCode: e5.languageCode, country: e5.countryCode } });
878
+ return gn(t2, { languageCode: e5.languageCode, countryCode: e5.countryCode, resolutionMethod: Cn(e5.resolutionMethod), locale: { languageCode: e5.languageCode, country: e5.countryCode } });
879
879
  } catch (e6) {
880
880
  console.warn(`[Multilingual Manager] buildUrlForLanguage failed`, e6);
881
881
  return;
882
882
  }
883
883
  }
884
- function Sn(e5) {
884
+ function Cn(e5) {
885
885
  switch (e5) {
886
886
  case `QUERY_PARAM`:
887
887
  case `QueryParam`:
888
- return un.QUERY_PARAM;
888
+ return dn.QUERY_PARAM;
889
889
  case `SUBDOMAIN`:
890
890
  case `Subdomain`:
891
- return un.SUBDOMAIN;
891
+ return dn.SUBDOMAIN;
892
892
  case `SUBDIRECTORY`:
893
893
  case `Subdirectory`:
894
- return un.SUBDIRECTORY;
894
+ return dn.SUBDIRECTORY;
895
895
  default:
896
896
  return;
897
897
  }
898
898
  }
899
- function Cn(e5) {
899
+ function wn(e5) {
900
900
  let t2 = typeof window < `u` && window.location?.href ? window.location.href : ``;
901
901
  try {
902
- return gn(t2, e5);
902
+ return _n(t2, e5);
903
903
  } catch (e6) {
904
904
  return console.warn(`[Multilingual Manager] cleanCurrentUrl failed`, e6), t2;
905
905
  }
906
906
  }
907
- var wn = `x-wix-currency`;
908
- var Tn = () => {
909
- let e5 = Mn(`currency`);
910
- if (e5) return { [wn]: e5 };
907
+ var Tn = `x-wix-currency`;
908
+ var En = () => {
909
+ let e5 = Nn(`currency`);
910
+ if (e5) return { [Tn]: e5 };
911
911
  };
912
- var En = `x-wix-linguist`;
913
- var Dn = `00000000-0000-0000-0000-000000000000`;
914
- var On = `false`;
915
- var kn = () => {
916
- let e5 = Mn(`language`), t2 = Mn(`locale`);
917
- if (e5) return { [En]: [e5, t2 || e5, On, Dn].join(`|`) };
912
+ var Dn = `x-wix-linguist`;
913
+ var On = `00000000-0000-0000-0000-000000000000`;
914
+ var kn = `false`;
915
+ var An = () => {
916
+ let e5 = Nn(`language`), t2 = Nn(`locale`);
917
+ if (e5) return { [Dn]: [e5, t2 || e5, kn, On].join(`|`) };
918
918
  };
919
- function An() {
919
+ function jn() {
920
920
  let e5 = null, t2 = null;
921
921
  return { promise: new Promise((n2, r2) => {
922
922
  e5 = n2, t2 = r2;
923
923
  }), resolve: e5, reject: t2 };
924
924
  }
925
- var jn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
926
- var Mn = (e5) => jn()?.[e5];
927
- var Nn = ({ createHost: e5 }) => ({ __type: `host`, create: (e6) => ({}), host: (t2) => {
928
- let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e5(t2), o2 = Fn();
929
- return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: Mn(`language`), locale: Mn(`locale`), get passThroughHeaders() {
930
- let e6 = { ...kn(), ...Tn() };
925
+ var Mn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
926
+ var Nn = (e5) => Mn()?.[e5];
927
+ var Pn = ({ createHost: e5 }) => ({ __type: `host`, create: (e6) => ({}), host: (t2) => {
928
+ let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e5(t2), o2 = In();
929
+ return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: Nn(`language`), locale: Nn(`locale`), get passThroughHeaders() {
930
+ let e6 = { ...An(), ...En() };
931
931
  return Object.keys(e6).length > 0 ? e6 : void 0;
932
932
  } } };
933
933
  }, auth: (e6) => {
934
934
  let t2 = typeof window < `u` ? window.wixEmbedsAPI : void 0;
935
- !e6 && Pn() && (e6 = t2?.getAccessTokenFunction?.());
936
- let n2 = false, { resolve: r2, promise: i2 } = An();
935
+ !e6 && Fn() && (e6 = t2?.getAccessTokenFunction?.());
936
+ let n2 = false, { resolve: r2, promise: i2 } = jn();
937
937
  return { getAuthHeaders: async () => {
938
938
  if (!e6 && n2 && (e6 = await i2), !e6) throw Error(`Failed to resolve auth token`);
939
939
  return { headers: { Authorization: await e6() } };
@@ -941,37 +941,37 @@ var Nn = ({ createHost: e5 }) => ({ __type: `host`, create: (e6) => ({}), host:
941
941
  r2(e7);
942
942
  }) };
943
943
  } });
944
- function Pn() {
944
+ function Fn() {
945
945
  return typeof document < `u` && document.currentScript?.tagName === `SCRIPT`;
946
946
  }
947
- function Fn() {
947
+ function In() {
948
948
  let e5 = (typeof window < `u` ? window.wixEmbedsAPI : void 0)?.getExternalBaseUrl?.();
949
949
  if (!e5) return;
950
950
  let t2 = new URL(e5);
951
951
  return t2?.pathname && t2.pathname !== `/` ? `${t2.hostname}${t2.pathname}` : t2.hostname;
952
952
  }
953
- var In = ({ clientSdk: e5, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
953
+ var Ln = ({ clientSdk: e5, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
954
954
  if (!e5) throw Error(`Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction`);
955
955
  return e5.invoke({ namespace: n2, method: r2, args: i2, applicationId: t2, accessToken: `accessToken` });
956
956
  }, getAccessToken: () => {
957
957
  throw Error(`Not implemented`);
958
958
  }, observeState: () => ({ disconnect: () => {
959
959
  } }) });
960
- var Ln = Nn({ createHost: function(e5) {
960
+ var Rn = Pn({ createHost: function(e5) {
961
961
  let t2 = (typeof $wixContext < `u` ? $wixContext.clientSdk : void 0) ?? e5?.clientSdk ?? (typeof window < `u` ? window?.clientSdk : void 0), { applicationId: n2 } = e5 || {};
962
962
  if (!n2) throw Error(`"createHost" was called without a required field "applicationId"`);
963
- return { channel: In({ clientSdk: t2, applicationId: n2 }), close: () => {
963
+ return { channel: Ln({ clientSdk: t2, applicationId: n2 }), close: () => {
964
964
  } };
965
965
  } });
966
- var Rn = (e5, t2) => {
967
- let n2 = Ln.host({ applicationId: e5, componentId: t2 }), r2 = Ln.auth();
968
- return Be({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
966
+ var zn = (e5, t2) => {
967
+ let n2 = Rn.host({ applicationId: e5, componentId: t2 }), r2 = Rn.auth();
968
+ return Ve({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
969
969
  };
970
- var zn = (e5) => Rn(`13d21c63-b5ec-5912-8397-c3a5ddb27a97`, e5);
971
- function Bn() {
970
+ var Bn = (e5) => zn(`13d21c63-b5ec-5912-8397-c3a5ddb27a97`, e5);
971
+ function Vn() {
972
972
  let e5 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
973
973
  if (e5) return { initWixModules(t3, n3) {
974
- return Vn(() => e5(t3, n3));
974
+ return Hn(() => e5(t3, n3));
975
975
  }, fetchWithAuth() {
976
976
  throw Error(`fetchWithAuth is not available in this context`);
977
977
  }, graphql() {
@@ -981,10 +981,10 @@ function Bn() {
981
981
  if (t2 || n2) return { initWixModules(e6, r2) {
982
982
  if (r2) {
983
983
  if (!n2) throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);
984
- return Vn(() => n2.use(e6));
984
+ return Hn(() => n2.use(e6));
985
985
  }
986
986
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
987
- return Vn(() => t2.use(e6));
987
+ return Hn(() => t2.use(e6));
988
988
  }, fetchWithAuth: (e6, n3) => {
989
989
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
990
990
  return t2.fetchWithAuth(e6, n3);
@@ -996,7 +996,7 @@ function Bn() {
996
996
  return t2.graphql(e6, n3, r2);
997
997
  } };
998
998
  }
999
- function Vn(e5) {
999
+ function Hn(e5) {
1000
1000
  let t2 = globalThis.__wix_context__, n2 = { client: g.client, elevatedClient: g.elevatedClient }, r2;
1001
1001
  globalThis.__wix_context__ = void 0, g.client = void 0, g.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
1002
1002
  try {
@@ -1005,71 +1005,71 @@ function Vn(e5) {
1005
1005
  globalThis.__wix_context__ = t2, g.client = n2.client, g.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
1006
1006
  }
1007
1007
  }
1008
- function Hn(e5, t2) {
1008
+ function Un(e5, t2) {
1009
1009
  return { ...e5, ...Object.fromEntries(t2.map((t3) => [t3, (...n2) => {
1010
- let r2 = Bn();
1010
+ let r2 = Vn();
1011
1011
  if (!r2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
1012
1012
  return r2.initWixModules(e5)[t3].apply(void 0, n2);
1013
1013
  }])) };
1014
1014
  }
1015
- function Un(e5) {
1016
- return Hn({ __type: `host`, create: (t2) => Object.entries(e5).reduce((e6, [n2, r2]) => ({ ...e6, [n2]: r2(t2) }), {}) }, Object.keys(e5));
1015
+ function Wn(e5) {
1016
+ return Un({ __type: `host`, create: (t2) => Object.entries(e5).reduce((e6, [n2, r2]) => ({ ...e6, [n2]: r2(t2) }), {}) }, Object.keys(e5));
1017
1017
  }
1018
- var L = (e5) => typeof e5 == `string`;
1019
- var Wn = () => {
1018
+ var I = (e5) => typeof e5 == `string`;
1019
+ var Gn = () => {
1020
1020
  let e5, t2, n2 = new Promise((n3, r2) => {
1021
1021
  e5 = n3, t2 = r2;
1022
1022
  });
1023
1023
  return n2.resolve = e5, n2.reject = t2, n2;
1024
1024
  };
1025
- var Gn = (e5) => e5 == null ? `` : `` + e5;
1026
- var Kn = (e5, t2, n2) => {
1025
+ var Kn = (e5) => e5 == null ? `` : `` + e5;
1026
+ var qn = (e5, t2, n2) => {
1027
1027
  e5.forEach((e6) => {
1028
1028
  t2[e6] && (n2[e6] = t2[e6]);
1029
1029
  });
1030
1030
  };
1031
- var qn = /###/g;
1032
- var Jn = (e5) => e5 && e5.indexOf(`###`) > -1 ? e5.replace(qn, `.`) : e5;
1033
- var Yn = (e5) => !e5 || L(e5);
1034
- var Xn = (e5, t2, n2) => {
1035
- let r2 = L(t2) ? t2.split(`.`) : t2, i2 = 0;
1031
+ var Jn = /###/g;
1032
+ var Yn = (e5) => e5 && e5.indexOf(`###`) > -1 ? e5.replace(Jn, `.`) : e5;
1033
+ var Xn = (e5) => !e5 || I(e5);
1034
+ var Zn = (e5, t2, n2) => {
1035
+ let r2 = I(t2) ? t2.split(`.`) : t2, i2 = 0;
1036
1036
  for (; i2 < r2.length - 1; ) {
1037
- if (Yn(e5)) return {};
1038
- let t3 = Jn(r2[i2]);
1037
+ if (Xn(e5)) return {};
1038
+ let t3 = Yn(r2[i2]);
1039
1039
  !e5[t3] && n2 && (e5[t3] = new n2()), e5 = Object.prototype.hasOwnProperty.call(e5, t3) ? e5[t3] : {}, ++i2;
1040
1040
  }
1041
- return Yn(e5) ? {} : { obj: e5, k: Jn(r2[i2]) };
1041
+ return Xn(e5) ? {} : { obj: e5, k: Yn(r2[i2]) };
1042
1042
  };
1043
- var Zn = (e5, t2, n2) => {
1044
- let { obj: r2, k: i2 } = Xn(e5, t2, Object);
1043
+ var Qn = (e5, t2, n2) => {
1044
+ let { obj: r2, k: i2 } = Zn(e5, t2, Object);
1045
1045
  if (r2 !== void 0 || t2.length === 1) {
1046
1046
  r2[i2] = n2;
1047
1047
  return;
1048
1048
  }
1049
- let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 = Xn(e5, o2, Object);
1050
- for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = Xn(e5, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
1049
+ let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 = Zn(e5, o2, Object);
1050
+ for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = Zn(e5, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
1051
1051
  s2.obj[`${s2.k}.${a2}`] = n2;
1052
1052
  };
1053
- var Qn = (e5, t2, n2, r2) => {
1054
- let { obj: i2, k: a2 } = Xn(e5, t2, Object);
1053
+ var $n = (e5, t2, n2, r2) => {
1054
+ let { obj: i2, k: a2 } = Zn(e5, t2, Object);
1055
1055
  i2[a2] = i2[a2] || [], i2[a2].push(n2);
1056
1056
  };
1057
- var $n = (e5, t2) => {
1058
- let { obj: n2, k: r2 } = Xn(e5, t2);
1057
+ var er = (e5, t2) => {
1058
+ let { obj: n2, k: r2 } = Zn(e5, t2);
1059
1059
  if (n2 && Object.prototype.hasOwnProperty.call(n2, r2)) return n2[r2];
1060
1060
  };
1061
- var er = (e5, t2, n2) => {
1062
- let r2 = $n(e5, n2);
1063
- return r2 === void 0 ? $n(t2, n2) : r2;
1064
- };
1065
1061
  var tr = (e5, t2, n2) => {
1066
- for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (r2 in e5 ? L(e5[r2]) || e5[r2] instanceof String || L(t2[r2]) || t2[r2] instanceof String ? n2 && (e5[r2] = t2[r2]) : tr(e5[r2], t2[r2], n2) : e5[r2] = t2[r2]);
1062
+ let r2 = er(e5, n2);
1063
+ return r2 === void 0 ? er(t2, n2) : r2;
1064
+ };
1065
+ var nr = (e5, t2, n2) => {
1066
+ for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (r2 in e5 ? I(e5[r2]) || e5[r2] instanceof String || I(t2[r2]) || t2[r2] instanceof String ? n2 && (e5[r2] = t2[r2]) : nr(e5[r2], t2[r2], n2) : e5[r2] = t2[r2]);
1067
1067
  return e5;
1068
1068
  };
1069
- var R = (e5) => e5.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1070
- var nr = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1071
- var rr = (e5) => L(e5) ? e5.replace(/[&<>"'\/]/g, (e6) => nr[e6]) : e5;
1072
- var ir = class {
1069
+ var L = (e5) => e5.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1070
+ var rr = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1071
+ var ir = (e5) => I(e5) ? e5.replace(/[&<>"'\/]/g, (e6) => rr[e6]) : e5;
1072
+ var ar = class {
1073
1073
  constructor(e5) {
1074
1074
  this.capacity = e5, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
1075
1075
  }
@@ -1080,20 +1080,20 @@ var ir = class {
1080
1080
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e5, n2), this.regExpQueue.push(e5), n2;
1081
1081
  }
1082
1082
  };
1083
- var ar = [` `, `,`, `?`, `!`, `;`];
1084
- var or = new ir(20);
1085
- var sr = (e5, t2, n2) => {
1083
+ var or = [` `, `,`, `?`, `!`, `;`];
1084
+ var sr = new ar(20);
1085
+ var cr = (e5, t2, n2) => {
1086
1086
  t2 ||= ``, n2 ||= ``;
1087
- let r2 = ar.filter((e6) => t2.indexOf(e6) < 0 && n2.indexOf(e6) < 0);
1087
+ let r2 = or.filter((e6) => t2.indexOf(e6) < 0 && n2.indexOf(e6) < 0);
1088
1088
  if (r2.length === 0) return true;
1089
- let i2 = or.getRegExp(`(${r2.map((e6) => e6 === `?` ? `\\?` : e6).join(`|`)})`), a2 = !i2.test(e5);
1089
+ let i2 = sr.getRegExp(`(${r2.map((e6) => e6 === `?` ? `\\?` : e6).join(`|`)})`), a2 = !i2.test(e5);
1090
1090
  if (!a2) {
1091
1091
  let t3 = e5.indexOf(n2);
1092
1092
  t3 > 0 && !i2.test(e5.substring(0, t3)) && (a2 = true);
1093
1093
  }
1094
1094
  return a2;
1095
1095
  };
1096
- var cr = (e5, t2, n2 = `.`) => {
1096
+ var lr = (e5, t2, n2 = `.`) => {
1097
1097
  if (!e5) return;
1098
1098
  if (e5[t2]) return Object.prototype.hasOwnProperty.call(e5, t2) ? e5[t2] : void 0;
1099
1099
  let r2 = t2.split(n2), i2 = e5;
@@ -1109,8 +1109,8 @@ var cr = (e5, t2, n2 = `.`) => {
1109
1109
  }
1110
1110
  return i2;
1111
1111
  };
1112
- var lr = (e5) => e5?.replace(/_/g, `-`);
1113
- var ur = { type: `logger`, log(e5) {
1112
+ var ur = (e5) => e5?.replace(/_/g, `-`);
1113
+ var dr = { type: `logger`, log(e5) {
1114
1114
  this.output(`log`, e5);
1115
1115
  }, warn(e5) {
1116
1116
  this.output(`warn`, e5);
@@ -1119,12 +1119,12 @@ var ur = { type: `logger`, log(e5) {
1119
1119
  }, output(e5, t2) {
1120
1120
  console?.[e5]?.apply?.(console, t2);
1121
1121
  } };
1122
- var z = new class e2 {
1122
+ var R = new class e2 {
1123
1123
  constructor(e5, t2 = {}) {
1124
1124
  this.init(e5, t2);
1125
1125
  }
1126
1126
  init(e5, t2 = {}) {
1127
- this.prefix = t2.prefix || `i18next:`, this.logger = e5 || ur, this.options = t2, this.debug = t2.debug;
1127
+ this.prefix = t2.prefix || `i18next:`, this.logger = e5 || dr, this.options = t2, this.debug = t2.debug;
1128
1128
  }
1129
1129
  log(...e5) {
1130
1130
  return this.forward(e5, `log`, ``, true);
@@ -1139,7 +1139,7 @@ var z = new class e2 {
1139
1139
  return this.forward(e5, `warn`, `WARNING DEPRECATED: `, true);
1140
1140
  }
1141
1141
  forward(e5, t2, n2, r2) {
1142
- return r2 && !this.debug ? null : (L(e5[0]) && (e5[0] = `${n2}${this.prefix} ${e5[0]}`), this.logger[t2](e5));
1142
+ return r2 && !this.debug ? null : (I(e5[0]) && (e5[0] = `${n2}${this.prefix} ${e5[0]}`), this.logger[t2](e5));
1143
1143
  }
1144
1144
  create(t2) {
1145
1145
  return new e2(this.logger, { prefix: `${this.prefix}:${t2}:`, ...this.options });
@@ -1148,7 +1148,7 @@ var z = new class e2 {
1148
1148
  return t2 ||= this.options, t2.prefix = t2.prefix || this.prefix, new e2(this.logger, t2);
1149
1149
  }
1150
1150
  }();
1151
- var dr = class {
1151
+ var fr = class {
1152
1152
  constructor() {
1153
1153
  this.observers = {};
1154
1154
  }
@@ -1176,7 +1176,7 @@ var dr = class {
1176
1176
  });
1177
1177
  }
1178
1178
  };
1179
- var fr = class extends dr {
1179
+ var pr = class extends fr {
1180
1180
  constructor(e5, t2 = { ns: [`translation`], defaultNS: `translation` }) {
1181
1181
  super(), this.data = e5 || {}, this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = true);
1182
1182
  }
@@ -1189,23 +1189,23 @@ var fr = class extends dr {
1189
1189
  }
1190
1190
  getResource(e5, t2, n2, r2 = {}) {
1191
1191
  let i2 = r2.keySeparator === void 0 ? this.options.keySeparator : r2.keySeparator, a2 = r2.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r2.ignoreJSONStructure, o2;
1192
- e5.indexOf(`.`) > -1 ? o2 = e5.split(`.`) : (o2 = [e5, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : L(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
1193
- let s2 = $n(this.data, o2);
1194
- return !s2 && !t2 && !n2 && e5.indexOf(`.`) > -1 && (e5 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !L(n2) ? s2 : cr(this.data?.[e5]?.[t2], n2, i2);
1192
+ e5.indexOf(`.`) > -1 ? o2 = e5.split(`.`) : (o2 = [e5, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : I(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
1193
+ let s2 = er(this.data, o2);
1194
+ return !s2 && !t2 && !n2 && e5.indexOf(`.`) > -1 && (e5 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !I(n2) ? s2 : lr(this.data?.[e5]?.[t2], n2, i2);
1195
1195
  }
1196
1196
  addResource(e5, t2, n2, r2, i2 = { silent: false }) {
1197
1197
  let a2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, o2 = [e5, t2];
1198
- n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e5.indexOf(`.`) > -1 && (o2 = e5.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), Zn(this.data, o2, r2), i2.silent || this.emit(`added`, e5, t2, n2, r2);
1198
+ n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e5.indexOf(`.`) > -1 && (o2 = e5.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), Qn(this.data, o2, r2), i2.silent || this.emit(`added`, e5, t2, n2, r2);
1199
1199
  }
1200
1200
  addResources(e5, t2, n2, r2 = { silent: false }) {
1201
- for (let r3 in n2) (L(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e5, t2, r3, n2[r3], { silent: true });
1201
+ for (let r3 in n2) (I(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e5, t2, r3, n2[r3], { silent: true });
1202
1202
  r2.silent || this.emit(`added`, e5, t2, n2);
1203
1203
  }
1204
1204
  addResourceBundle(e5, t2, n2, r2, i2, a2 = { silent: false, skipCopy: false }) {
1205
1205
  let o2 = [e5, t2];
1206
1206
  e5.indexOf(`.`) > -1 && (o2 = e5.split(`.`), r2 = n2, n2 = t2, t2 = o2[1]), this.addNamespaces(t2);
1207
- let s2 = $n(this.data, o2) || {};
1208
- a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? tr(s2, n2, i2) : s2 = { ...s2, ...n2 }, Zn(this.data, o2, s2), a2.silent || this.emit(`added`, e5, t2, n2);
1207
+ let s2 = er(this.data, o2) || {};
1208
+ a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? nr(s2, n2, i2) : s2 = { ...s2, ...n2 }, Qn(this.data, o2, s2), a2.silent || this.emit(`added`, e5, t2, n2);
1209
1209
  }
1210
1210
  removeResourceBundle(e5, t2) {
1211
1211
  this.hasResourceBundle(e5, t2) && delete this.data[e5][t2], this.removeNamespaces(t2), this.emit(`removed`, e5, t2);
@@ -1227,31 +1227,31 @@ var fr = class extends dr {
1227
1227
  return this.data;
1228
1228
  }
1229
1229
  };
1230
- var pr = { processors: {}, addPostProcessor(e5) {
1230
+ var mr = { processors: {}, addPostProcessor(e5) {
1231
1231
  this.processors[e5.name] = e5;
1232
1232
  }, handle(e5, t2, n2, r2, i2) {
1233
1233
  return e5.forEach((e6) => {
1234
1234
  t2 = this.processors[e6]?.process(t2, n2, r2, i2) ?? t2;
1235
1235
  }), t2;
1236
1236
  } };
1237
- var mr = Symbol(`i18next/PATH_KEY`);
1238
- function hr() {
1237
+ var hr = Symbol(`i18next/PATH_KEY`);
1238
+ function gr() {
1239
1239
  let e5 = [], t2 = /* @__PURE__ */ Object.create(null), n2;
1240
- return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === mr ? e5 : (e5.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
1240
+ return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === hr ? e5 : (e5.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
1241
1241
  }
1242
- function B(e5, t2) {
1243
- let { [mr]: n2 } = e5(hr()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`;
1242
+ function z(e5, t2) {
1243
+ let { [hr]: n2 } = e5(gr()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`;
1244
1244
  if (n2.length > 1 && i2) {
1245
1245
  let e6 = t2?.ns, a2 = Array.isArray(e6) ? e6 : null;
1246
1246
  if (a2 && a2.length > 1 && a2.slice(1).includes(n2[0])) return `${n2[0]}${i2}${n2.slice(1).join(r2)}`;
1247
1247
  }
1248
1248
  return n2.join(r2);
1249
1249
  }
1250
- var gr = {};
1251
- var _r = (e5) => !L(e5) && typeof e5 != `boolean` && typeof e5 != `number`;
1252
- var vr = class e3 extends dr {
1250
+ var _r = {};
1251
+ var vr = (e5) => !I(e5) && typeof e5 != `boolean` && typeof e5 != `number`;
1252
+ var yr = class e3 extends fr {
1253
1253
  constructor(e5, t2 = {}) {
1254
- super(), Kn([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e5, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = z.create(`translator`);
1254
+ super(), qn([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e5, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = R.create(`translator`);
1255
1255
  }
1256
1256
  changeLanguage(e5) {
1257
1257
  e5 && (this.language = e5);
@@ -1261,33 +1261,33 @@ var vr = class e3 extends dr {
1261
1261
  if (e5 == null) return false;
1262
1262
  let r2 = this.resolve(e5, n2);
1263
1263
  if (r2?.res === void 0) return false;
1264
- let i2 = _r(r2.res);
1264
+ let i2 = vr(r2.res);
1265
1265
  return !(n2.returnObjects === false && i2);
1266
1266
  }
1267
1267
  extractFromKey(e5, t2) {
1268
1268
  let n2 = t2.nsSeparator === void 0 ? this.options.nsSeparator : t2.nsSeparator;
1269
1269
  n2 === void 0 && (n2 = `:`);
1270
- let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e5.indexOf(n2) > -1, o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !sr(e5, n2, r2);
1270
+ let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e5.indexOf(n2) > -1, o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !cr(e5, n2, r2);
1271
1271
  if (a2 && !o2) {
1272
1272
  let t3 = e5.match(this.interpolator.nestingRegexp);
1273
- if (t3 && t3.length > 0) return { key: e5, namespaces: L(i2) ? [i2] : i2 };
1273
+ if (t3 && t3.length > 0) return { key: e5, namespaces: I(i2) ? [i2] : i2 };
1274
1274
  let a3 = e5.split(n2);
1275
1275
  (n2 !== r2 || n2 === r2 && this.options.ns.indexOf(a3[0]) > -1) && (i2 = a3.shift()), e5 = a3.join(r2);
1276
1276
  }
1277
- return { key: e5, namespaces: L(i2) ? [i2] : i2 };
1277
+ return { key: e5, namespaces: I(i2) ? [i2] : i2 };
1278
1278
  }
1279
1279
  translate(t2, n2, r2) {
1280
1280
  let i2 = typeof n2 == `object` ? { ...n2 } : n2;
1281
1281
  if (typeof i2 != `object` && this.options.overloadTranslationOptionHandler && (i2 = this.options.overloadTranslationOptionHandler(arguments)), typeof i2 == `object` && (i2 = { ...i2 }), i2 ||= {}, t2 == null) return ``;
1282
- typeof t2 == `function` && (t2 = B(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e5) => typeof e5 == `function` ? B(e5, { ...this.options, ...i2 }) : String(e5));
1282
+ typeof t2 == `function` && (t2 = z(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e5) => typeof e5 == `function` ? z(e5, { ...this.options, ...i2 }) : String(e5));
1283
1283
  let a2 = i2.returnDetails === void 0 ? this.options.returnDetails : i2.returnDetails, o2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, { key: s2, namespaces: c2 } = this.extractFromKey(t2[t2.length - 1], i2), l2 = c2[c2.length - 1], u2 = i2.nsSeparator === void 0 ? this.options.nsSeparator : i2.nsSeparator;
1284
1284
  u2 === void 0 && (u2 = `:`);
1285
1285
  let d2 = i2.lng || this.language, f2 = i2.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
1286
1286
  if (d2?.toLowerCase() === `cimode`) return f2 ? a2 ? { res: `${l2}${u2}${s2}`, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : `${l2}${u2}${s2}` : a2 ? { res: s2, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : s2;
1287
- let p2 = this.resolve(t2, i2), m2 = p2?.res, h2 = p2?.usedKey || s2, g2 = p2?.exactUsedKey || s2, _2 = [`[object Number]`, `[object Function]`, `[object RegExp]`], v2 = i2.joinArrays === void 0 ? this.options.joinArrays : i2.joinArrays, y2 = !this.i18nFormat || this.i18nFormat.handleAsObject, b2 = i2.count !== void 0 && !L(i2.count), x2 = e3.hasDefaultValue(i2), S2 = b2 ? this.pluralResolver.getSuffix(d2, i2.count, i2) : ``, C2 = i2.ordinal && b2 ? this.pluralResolver.getSuffix(d2, i2.count, { ordinal: false }) : ``, w2 = b2 && !i2.ordinal && i2.count === 0, T2 = w2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${S2}`] || i2[`defaultValue${C2}`] || i2.defaultValue, E2 = m2;
1287
+ let p2 = this.resolve(t2, i2), m2 = p2?.res, h2 = p2?.usedKey || s2, g2 = p2?.exactUsedKey || s2, _2 = [`[object Number]`, `[object Function]`, `[object RegExp]`], v2 = i2.joinArrays === void 0 ? this.options.joinArrays : i2.joinArrays, y2 = !this.i18nFormat || this.i18nFormat.handleAsObject, b2 = i2.count !== void 0 && !I(i2.count), x2 = e3.hasDefaultValue(i2), S2 = b2 ? this.pluralResolver.getSuffix(d2, i2.count, i2) : ``, C2 = i2.ordinal && b2 ? this.pluralResolver.getSuffix(d2, i2.count, { ordinal: false }) : ``, w2 = b2 && !i2.ordinal && i2.count === 0, T2 = w2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${S2}`] || i2[`defaultValue${C2}`] || i2.defaultValue, E2 = m2;
1288
1288
  y2 && !m2 && x2 && (E2 = T2);
1289
- let D2 = _r(E2), O2 = Object.prototype.toString.apply(E2);
1290
- if (y2 && E2 && D2 && _2.indexOf(O2) < 0 && !(L(v2) && Array.isArray(E2))) {
1289
+ let D2 = vr(E2), O2 = Object.prototype.toString.apply(E2);
1290
+ if (y2 && E2 && D2 && _2.indexOf(O2) < 0 && !(I(v2) && Array.isArray(E2))) {
1291
1291
  if (!i2.returnObjects && !this.options.returnObjects) {
1292
1292
  this.options.returnedObjectHandler || this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);
1293
1293
  let e5 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h2, E2, { ...i2, ns: c2 }) : `key '${s2} (${this.language})' returned an object instead of string.`;
@@ -1297,11 +1297,11 @@ var vr = class e3 extends dr {
1297
1297
  let e5 = Array.isArray(E2), t3 = e5 ? [] : {}, n3 = e5 ? g2 : h2;
1298
1298
  for (let e6 in E2) if (Object.prototype.hasOwnProperty.call(E2, e6)) {
1299
1299
  let r3 = `${n3}${o2}${e6}`;
1300
- t3[e6] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: _r(T2) ? T2[e6] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e6] === r3 && (t3[e6] = E2[e6]);
1300
+ t3[e6] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: vr(T2) ? T2[e6] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e6] === r3 && (t3[e6] = E2[e6]);
1301
1301
  }
1302
1302
  m2 = t3;
1303
1303
  }
1304
- } else if (y2 && L(v2) && Array.isArray(m2)) m2 = m2.join(v2), m2 &&= this.extendTranslation(m2, t2, i2, r2);
1304
+ } else if (y2 && I(v2) && Array.isArray(m2)) m2 = m2.join(v2), m2 &&= this.extendTranslation(m2, t2, i2, r2);
1305
1305
  else {
1306
1306
  let e5 = false, n3 = false;
1307
1307
  !this.isValidLookup(m2) && x2 && (e5 = true, m2 = T2), this.isValidLookup(m2) || (n3 = true, m2 = s2);
@@ -1333,32 +1333,32 @@ var vr = class e3 extends dr {
1333
1333
  if (this.i18nFormat?.parse) e5 = this.i18nFormat.parse(e5, { ...this.options.interpolation.defaultVariables, ...n2 }, n2.lng || this.language || r2.usedLng, r2.usedNS, r2.usedKey, { resolved: r2 });
1334
1334
  else if (!n2.skipInterpolation) {
1335
1335
  n2.interpolation && this.interpolator.init({ ...n2, interpolation: { ...this.options.interpolation, ...n2.interpolation } });
1336
- let a3 = L(e5) && (n2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n2.interpolation.skipOnVariables), o3;
1336
+ let a3 = I(e5) && (n2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n2.interpolation.skipOnVariables), o3;
1337
1337
  if (a3) {
1338
1338
  let t3 = e5.match(this.interpolator.nestingRegexp);
1339
1339
  o3 = t3 && t3.length;
1340
1340
  }
1341
- let s2 = n2.replace && !L(n2.replace) ? n2.replace : n2;
1341
+ let s2 = n2.replace && !I(n2.replace) ? n2.replace : n2;
1342
1342
  if (this.options.interpolation.defaultVariables && (s2 = { ...this.options.interpolation.defaultVariables, ...s2 }), e5 = this.interpolator.interpolate(e5, s2, n2.lng || this.language || r2.usedLng, n2), a3) {
1343
1343
  let t3 = e5.match(this.interpolator.nestingRegexp), r3 = t3 && t3.length;
1344
1344
  o3 < r3 && (n2.nest = false);
1345
1345
  }
1346
1346
  !n2.lng && r2 && r2.res && (n2.lng = this.language || r2.usedLng), n2.nest !== false && (e5 = this.interpolator.nest(e5, (...e6) => i2?.[0] === e6[0] && !n2.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e6[0]} in key: ${t2[0]}`), null) : this.translate(...e6, t2), n2)), n2.interpolation && this.interpolator.reset();
1347
1347
  }
1348
- let a2 = n2.postProcess || this.options.postProcess, o2 = L(a2) ? [a2] : a2;
1349
- return e5 != null && o2?.length && n2.applyPostProcessor !== false && (e5 = pr.handle(o2, e5, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e5;
1348
+ let a2 = n2.postProcess || this.options.postProcess, o2 = I(a2) ? [a2] : a2;
1349
+ return e5 != null && o2?.length && n2.applyPostProcessor !== false && (e5 = mr.handle(o2, e5, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e5;
1350
1350
  }
1351
1351
  resolve(e5, t2 = {}) {
1352
1352
  let n2, r2, i2, a2, o2;
1353
- return L(e5) && (e5 = [e5]), Array.isArray(e5) && (e5 = e5.map((e6) => typeof e6 == `function` ? B(e6, { ...this.options, ...t2 }) : e6)), e5.forEach((e6) => {
1353
+ return I(e5) && (e5 = [e5]), Array.isArray(e5) && (e5 = e5.map((e6) => typeof e6 == `function` ? z(e6, { ...this.options, ...t2 }) : e6)), e5.forEach((e6) => {
1354
1354
  if (this.isValidLookup(n2)) return;
1355
1355
  let s2 = this.extractFromKey(e6, t2), c2 = s2.key;
1356
1356
  r2 = c2;
1357
1357
  let l2 = s2.namespaces;
1358
1358
  this.options.fallbackNS && (l2 = l2.concat(this.options.fallbackNS));
1359
- let u2 = t2.count !== void 0 && !L(t2.count), d2 = u2 && !t2.ordinal && t2.count === 0, f2 = t2.context !== void 0 && (L(t2.context) || typeof t2.context == `number`) && t2.context !== ``, p2 = t2.lngs ? t2.lngs : this.languageUtils.toResolveHierarchy(t2.lng || this.language, t2.fallbackLng);
1359
+ let u2 = t2.count !== void 0 && !I(t2.count), d2 = u2 && !t2.ordinal && t2.count === 0, f2 = t2.context !== void 0 && (I(t2.context) || typeof t2.context == `number`) && t2.context !== ``, p2 = t2.lngs ? t2.lngs : this.languageUtils.toResolveHierarchy(t2.lng || this.language, t2.fallbackLng);
1360
1360
  l2.forEach((e7) => {
1361
- this.isValidLookup(n2) || (o2 = e7, !gr[`${p2[0]}-${e7}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o2) && (gr[`${p2[0]}-${e7}`] = true, this.logger.warn(`key "${r2}" for languages "${p2.join(`, `)}" won't get resolved as namespace "${o2}" was not yet loaded`, `This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)), p2.forEach((r3) => {
1361
+ this.isValidLookup(n2) || (o2 = e7, !_r[`${p2[0]}-${e7}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o2) && (_r[`${p2[0]}-${e7}`] = true, this.logger.warn(`key "${r2}" for languages "${p2.join(`, `)}" won't get resolved as namespace "${o2}" was not yet loaded`, `This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)), p2.forEach((r3) => {
1362
1362
  if (this.isValidLookup(n2)) return;
1363
1363
  a2 = r3;
1364
1364
  let o3 = [c2];
@@ -1385,7 +1385,7 @@ var vr = class e3 extends dr {
1385
1385
  return this.i18nFormat?.getResource ? this.i18nFormat.getResource(e5, t2, n2, r2) : this.resourceStore.getResource(e5, t2, n2, r2);
1386
1386
  }
1387
1387
  getUsedParamsDetails(e5 = {}) {
1388
- let t2 = [`defaultValue`, `ordinal`, `context`, `replace`, `lng`, `lngs`, `fallbackLng`, `ns`, `keySeparator`, `nsSeparator`, `returnObjects`, `returnDetails`, `joinArrays`, `postProcess`, `interpolation`], n2 = e5.replace && !L(e5.replace), r2 = n2 ? e5.replace : e5;
1388
+ let t2 = [`defaultValue`, `ordinal`, `context`, `replace`, `lng`, `lngs`, `fallbackLng`, `ns`, `keySeparator`, `nsSeparator`, `returnObjects`, `returnDetails`, `joinArrays`, `postProcess`, `interpolation`], n2 = e5.replace && !I(e5.replace), r2 = n2 ? e5.replace : e5;
1389
1389
  if (n2 && e5.count !== void 0 && (r2.count = e5.count), this.options.interpolation.defaultVariables && (r2 = { ...this.options.interpolation.defaultVariables, ...r2 }), !n2) {
1390
1390
  r2 = { ...r2 };
1391
1391
  for (let e6 of t2) delete r2[e6];
@@ -1397,22 +1397,22 @@ var vr = class e3 extends dr {
1397
1397
  return false;
1398
1398
  }
1399
1399
  };
1400
- var yr = class {
1400
+ var br = class {
1401
1401
  constructor(e5) {
1402
- this.options = e5, this.supportedLngs = this.options.supportedLngs || false, this.logger = z.create(`languageUtils`);
1402
+ this.options = e5, this.supportedLngs = this.options.supportedLngs || false, this.logger = R.create(`languageUtils`);
1403
1403
  }
1404
1404
  getScriptPartFromCode(e5) {
1405
- if (e5 = lr(e5), !e5 || e5.indexOf(`-`) < 0) return null;
1405
+ if (e5 = ur(e5), !e5 || e5.indexOf(`-`) < 0) return null;
1406
1406
  let t2 = e5.split(`-`);
1407
1407
  return t2.length === 2 || (t2.pop(), t2[t2.length - 1].toLowerCase() === `x`) ? null : this.formatLanguageCode(t2.join(`-`));
1408
1408
  }
1409
1409
  getLanguagePartFromCode(e5) {
1410
- if (e5 = lr(e5), !e5 || e5.indexOf(`-`) < 0) return e5;
1410
+ if (e5 = ur(e5), !e5 || e5.indexOf(`-`) < 0) return e5;
1411
1411
  let t2 = e5.split(`-`);
1412
1412
  return this.formatLanguageCode(t2[0]);
1413
1413
  }
1414
1414
  formatLanguageCode(e5) {
1415
- if (L(e5) && e5.indexOf(`-`) > -1) {
1415
+ if (I(e5) && e5.indexOf(`-`) > -1) {
1416
1416
  let t2;
1417
1417
  try {
1418
1418
  t2 = Intl.getCanonicalLocales(e5)[0];
@@ -1445,7 +1445,7 @@ var yr = class {
1445
1445
  }
1446
1446
  getFallbackCodes(e5, t2) {
1447
1447
  if (!e5) return [];
1448
- if (typeof e5 == `function` && (e5 = e5(t2)), L(e5) && (e5 = [e5]), Array.isArray(e5)) return e5;
1448
+ if (typeof e5 == `function` && (e5 = e5(t2)), I(e5) && (e5 = [e5]), Array.isArray(e5)) return e5;
1449
1449
  if (!t2) return e5.default || [];
1450
1450
  let n2 = e5[t2];
1451
1451
  return n2 ||= e5[this.getScriptPartFromCode(t2)], n2 ||= e5[this.formatLanguageCode(t2)], n2 ||= e5[this.getLanguagePartFromCode(t2)], n2 ||= e5.default, n2 || [];
@@ -1454,29 +1454,29 @@ var yr = class {
1454
1454
  let n2 = this.getFallbackCodes((t2 === false ? [] : t2) || this.options.fallbackLng || [], e5), r2 = [], i2 = (e6) => {
1455
1455
  e6 && (this.isSupportedCode(e6) ? r2.push(e6) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e6}`));
1456
1456
  };
1457
- return L(e5) && (e5.indexOf(`-`) > -1 || e5.indexOf(`_`) > -1) ? (this.options.load !== `languageOnly` && i2(this.formatLanguageCode(e5)), this.options.load !== `languageOnly` && this.options.load !== `currentOnly` && i2(this.getScriptPartFromCode(e5)), this.options.load !== `currentOnly` && i2(this.getLanguagePartFromCode(e5))) : L(e5) && i2(this.formatLanguageCode(e5)), n2.forEach((e6) => {
1457
+ return I(e5) && (e5.indexOf(`-`) > -1 || e5.indexOf(`_`) > -1) ? (this.options.load !== `languageOnly` && i2(this.formatLanguageCode(e5)), this.options.load !== `languageOnly` && this.options.load !== `currentOnly` && i2(this.getScriptPartFromCode(e5)), this.options.load !== `currentOnly` && i2(this.getLanguagePartFromCode(e5))) : I(e5) && i2(this.formatLanguageCode(e5)), n2.forEach((e6) => {
1458
1458
  r2.indexOf(e6) < 0 && i2(this.formatLanguageCode(e6));
1459
1459
  }), r2;
1460
1460
  }
1461
1461
  };
1462
- var br = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
1463
- var xr = { select: (e5) => e5 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
1464
- var Sr = class {
1462
+ var xr = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
1463
+ var Sr = { select: (e5) => e5 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
1464
+ var Cr = class {
1465
1465
  constructor(e5, t2 = {}) {
1466
- this.languageUtils = e5, this.options = t2, this.logger = z.create(`pluralResolver`), this.pluralRulesCache = {};
1466
+ this.languageUtils = e5, this.options = t2, this.logger = R.create(`pluralResolver`), this.pluralRulesCache = {};
1467
1467
  }
1468
1468
  clearCache() {
1469
1469
  this.pluralRulesCache = {};
1470
1470
  }
1471
1471
  getRule(e5, t2 = {}) {
1472
- let n2 = lr(e5 === `dev` ? `en` : e5), r2 = t2.ordinal ? `ordinal` : `cardinal`, i2 = JSON.stringify({ cleanedCode: n2, type: r2 });
1472
+ let n2 = ur(e5 === `dev` ? `en` : e5), r2 = t2.ordinal ? `ordinal` : `cardinal`, i2 = JSON.stringify({ cleanedCode: n2, type: r2 });
1473
1473
  if (i2 in this.pluralRulesCache) return this.pluralRulesCache[i2];
1474
1474
  let a2;
1475
1475
  try {
1476
1476
  a2 = new Intl.PluralRules(n2, { type: r2 });
1477
1477
  } catch {
1478
- if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`), xr;
1479
- if (!e5.match(/-|_/)) return xr;
1478
+ if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`), Sr;
1479
+ if (!e5.match(/-|_/)) return Sr;
1480
1480
  let n3 = this.languageUtils.getLanguagePartFromCode(e5);
1481
1481
  a2 = this.getRule(n3, t2);
1482
1482
  }
@@ -1491,26 +1491,26 @@ var Sr = class {
1491
1491
  }
1492
1492
  getSuffixes(e5, t2 = {}) {
1493
1493
  let n2 = this.getRule(e5, t2);
1494
- return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e6, t3) => br[e6] - br[t3]).map((e6) => `${this.options.prepend}${t2.ordinal ? `ordinal${this.options.prepend}` : ``}${e6}`) : [];
1494
+ return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e6, t3) => xr[e6] - xr[t3]).map((e6) => `${this.options.prepend}${t2.ordinal ? `ordinal${this.options.prepend}` : ``}${e6}`) : [];
1495
1495
  }
1496
1496
  getSuffix(e5, t2, n2 = {}) {
1497
1497
  let r2 = this.getRule(e5, n2);
1498
1498
  return r2 ? `${this.options.prepend}${n2.ordinal ? `ordinal${this.options.prepend}` : ``}${r2.select(t2)}` : (this.logger.warn(`no plural rule found for: ${e5}`), this.getSuffix(`dev`, t2, n2));
1499
1499
  }
1500
1500
  };
1501
- var Cr = (e5, t2, n2, r2 = `.`, i2 = true) => {
1502
- let a2 = er(e5, t2, n2);
1503
- return !a2 && i2 && L(n2) && (a2 = cr(e5, n2, r2), a2 === void 0 && (a2 = cr(t2, n2, r2))), a2;
1501
+ var wr = (e5, t2, n2, r2 = `.`, i2 = true) => {
1502
+ let a2 = tr(e5, t2, n2);
1503
+ return !a2 && i2 && I(n2) && (a2 = lr(e5, n2, r2), a2 === void 0 && (a2 = lr(t2, n2, r2))), a2;
1504
1504
  };
1505
- var wr = (e5) => e5.replace(/\$/g, `$$$$`);
1506
- var Tr = class {
1505
+ var Tr = (e5) => e5.replace(/\$/g, `$$$$`);
1506
+ var Er = class {
1507
1507
  constructor(e5 = {}) {
1508
- this.logger = z.create(`interpolator`), this.options = e5, this.format = e5?.interpolation?.format || ((e6) => e6), this.init(e5);
1508
+ this.logger = R.create(`interpolator`), this.options = e5, this.format = e5?.interpolation?.format || ((e6) => e6), this.init(e5);
1509
1509
  }
1510
1510
  init(e5 = {}) {
1511
1511
  e5.interpolation ||= { escapeValue: true };
1512
1512
  let { escape: t2, escapeValue: n2, useRawValueToEscape: r2, prefix: i2, prefixEscaped: a2, suffix: o2, suffixEscaped: s2, formatSeparator: c2, unescapeSuffix: l2, unescapePrefix: u2, nestingPrefix: d2, nestingPrefixEscaped: f2, nestingSuffix: p2, nestingSuffixEscaped: m2, nestingOptionsSeparator: h2, maxReplaces: g2, alwaysFormat: _2 } = e5.interpolation;
1513
- this.escape = t2 === void 0 ? rr : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? R(i2) : a2 || `{{`, this.suffix = o2 ? R(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 || `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 || ``, this.nestingPrefix = d2 ? R(d2) : f2 || R(`$t(`), this.nestingSuffix = p2 ? R(p2) : m2 || R(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1513
+ this.escape = t2 === void 0 ? ir : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? L(i2) : a2 || `{{`, this.suffix = o2 ? L(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 || `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 || ``, this.nestingPrefix = d2 ? L(d2) : f2 || L(`$t(`), this.nestingSuffix = p2 ? L(p2) : m2 || L(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1514
1514
  }
1515
1515
  reset() {
1516
1516
  this.options && this.init(this.options);
@@ -1522,27 +1522,27 @@ var Tr = class {
1522
1522
  interpolate(e5, t2, n2, r2) {
1523
1523
  let i2, a2, o2, s2 = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c2 = (e6) => {
1524
1524
  if (e6.indexOf(this.formatSeparator) < 0) {
1525
- let i4 = Cr(t2, s2, e6, this.options.keySeparator, this.options.ignoreJSONStructure);
1525
+ let i4 = wr(t2, s2, e6, this.options.keySeparator, this.options.ignoreJSONStructure);
1526
1526
  return this.alwaysFormat ? this.format(i4, void 0, n2, { ...r2, ...t2, interpolationkey: e6 }) : i4;
1527
1527
  }
1528
1528
  let i3 = e6.split(this.formatSeparator), a3 = i3.shift().trim(), o3 = i3.join(this.formatSeparator).trim();
1529
- return this.format(Cr(t2, s2, a3, this.options.keySeparator, this.options.ignoreJSONStructure), o3, n2, { ...r2, ...t2, interpolationkey: a3 });
1529
+ return this.format(wr(t2, s2, a3, this.options.keySeparator, this.options.ignoreJSONStructure), o3, n2, { ...r2, ...t2, interpolationkey: a3 });
1530
1530
  };
1531
1531
  this.resetRegExp();
1532
1532
  let l2 = r2?.missingInterpolationHandler || this.options.missingInterpolationHandler, u2 = r2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r2.interpolation.skipOnVariables;
1533
- return [{ regex: this.regexpUnescape, safeValue: (e6) => wr(e6) }, { regex: this.regexp, safeValue: (e6) => this.escapeValue ? wr(this.escape(e6)) : wr(e6) }].forEach((t3) => {
1533
+ return [{ regex: this.regexpUnescape, safeValue: (e6) => Tr(e6) }, { regex: this.regexp, safeValue: (e6) => this.escapeValue ? Tr(this.escape(e6)) : Tr(e6) }].forEach((t3) => {
1534
1534
  for (o2 = 0; i2 = t3.regex.exec(e5); ) {
1535
1535
  let n3 = i2[1].trim();
1536
1536
  if (a2 = c2(n3), a2 === void 0) {
1537
1537
  if (typeof l2 == `function`) {
1538
1538
  let t4 = l2(e5, i2, r2);
1539
- a2 = L(t4) ? t4 : ``;
1539
+ a2 = I(t4) ? t4 : ``;
1540
1540
  } else if (r2 && Object.prototype.hasOwnProperty.call(r2, n3)) a2 = ``;
1541
1541
  else if (u2) {
1542
1542
  a2 = i2[0];
1543
1543
  continue;
1544
1544
  } else this.logger.warn(`missed to pass in variable ${n3} for interpolating ${e5}`), a2 = ``;
1545
- } else !L(a2) && !this.useRawValueToEscape && (a2 = Gn(a2));
1545
+ } else !I(a2) && !this.useRawValueToEscape && (a2 = Kn(a2));
1546
1546
  let s3 = t3.safeValue(a2);
1547
1547
  if (e5 = e5.replace(i2[0], s3), u2 ? (t3.regex.lastIndex += a2.length, t3.regex.lastIndex -= i2[0].length) : t3.regex.lastIndex = 0, o2++, o2 >= this.maxReplaces) break;
1548
1548
  }
@@ -1552,7 +1552,7 @@ var Tr = class {
1552
1552
  let r2, i2, a2, o2 = (e6, t3) => {
1553
1553
  let n3 = this.nestingOptionsSeparator;
1554
1554
  if (e6.indexOf(n3) < 0) return e6;
1555
- let r3 = e6.split(RegExp(`${R(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
1555
+ let r3 = e6.split(RegExp(`${L(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
1556
1556
  e6 = r3[0], i3 = this.interpolate(i3, a2);
1557
1557
  let o3 = i3.match(/'/g), s2 = i3.match(/"/g);
1558
1558
  ((o3?.length ?? 0) % 2 == 0 && !s2 || (s2?.length ?? 0) % 2 != 0) && (i3 = i3.replace(/'/g, `"`));
@@ -1565,15 +1565,15 @@ var Tr = class {
1565
1565
  };
1566
1566
  for (; r2 = this.nestingRegexp.exec(e5); ) {
1567
1567
  let s2 = [];
1568
- a2 = { ...n2 }, a2 = a2.replace && !L(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1568
+ a2 = { ...n2 }, a2 = a2.replace && !I(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1569
1569
  let c2 = /{.*}/.test(r2[1]) ? r2[1].lastIndexOf(`}`) + 1 : r2[1].indexOf(this.formatSeparator);
1570
- if (c2 !== -1 && (s2 = r2[1].slice(c2).split(this.formatSeparator).map((e6) => e6.trim()).filter(Boolean), r2[1] = r2[1].slice(0, c2)), i2 = t2(o2.call(this, r2[1].trim(), a2), a2), i2 && r2[0] === e5 && !L(i2)) return i2;
1571
- L(i2) || (i2 = Gn(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e5}`), ``), s2.length && (i2 = s2.reduce((e6, t3) => this.format(e6, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), e5 = e5.replace(r2[0], i2), this.regexp.lastIndex = 0;
1570
+ if (c2 !== -1 && (s2 = r2[1].slice(c2).split(this.formatSeparator).map((e6) => e6.trim()).filter(Boolean), r2[1] = r2[1].slice(0, c2)), i2 = t2(o2.call(this, r2[1].trim(), a2), a2), i2 && r2[0] === e5 && !I(i2)) return i2;
1571
+ I(i2) || (i2 = Kn(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e5}`), ``), s2.length && (i2 = s2.reduce((e6, t3) => this.format(e6, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), e5 = e5.replace(r2[0], i2), this.regexp.lastIndex = 0;
1572
1572
  }
1573
1573
  return e5;
1574
1574
  }
1575
1575
  };
1576
- var Er = (e5) => {
1576
+ var Dr = (e5) => {
1577
1577
  let t2 = e5.toLowerCase().trim(), n2 = {};
1578
1578
  if (e5.indexOf(`(`) > -1) {
1579
1579
  let r2 = e5.split(`(`);
@@ -1588,23 +1588,23 @@ var Er = (e5) => {
1588
1588
  }
1589
1589
  return { formatName: t2, formatOptions: n2 };
1590
1590
  };
1591
- var Dr = (e5) => {
1591
+ var Or = (e5) => {
1592
1592
  let t2 = {};
1593
1593
  return (n2, r2, i2) => {
1594
1594
  let a2 = i2;
1595
1595
  i2 && i2.interpolationkey && i2.formatParams && i2.formatParams[i2.interpolationkey] && i2[i2.interpolationkey] && (a2 = { ...a2, [i2.interpolationkey]: void 0 });
1596
1596
  let o2 = r2 + JSON.stringify(a2), s2 = t2[o2];
1597
- return s2 || (s2 = e5(lr(r2), i2), t2[o2] = s2), s2(n2);
1597
+ return s2 || (s2 = e5(ur(r2), i2), t2[o2] = s2), s2(n2);
1598
1598
  };
1599
1599
  };
1600
- var Or = (e5) => (t2, n2, r2) => e5(lr(n2), r2)(t2);
1601
- var kr = class {
1600
+ var kr = (e5) => (t2, n2, r2) => e5(ur(n2), r2)(t2);
1601
+ var Ar = class {
1602
1602
  constructor(e5 = {}) {
1603
- this.logger = z.create(`formatter`), this.options = e5, this.init(e5);
1603
+ this.logger = R.create(`formatter`), this.options = e5, this.init(e5);
1604
1604
  }
1605
1605
  init(e5, t2 = { interpolation: {} }) {
1606
1606
  this.formatSeparator = t2.interpolation.formatSeparator || `,`;
1607
- let n2 = t2.cacheInBuiltFormats ? Dr : Or;
1607
+ let n2 = t2.cacheInBuiltFormats ? Or : kr;
1608
1608
  this.formats = { number: n2((e6, t3) => {
1609
1609
  let n3 = new Intl.NumberFormat(e6, { ...t3 });
1610
1610
  return (e7) => n3.format(e7);
@@ -1626,7 +1626,7 @@ var kr = class {
1626
1626
  this.formats[e5.toLowerCase().trim()] = t2;
1627
1627
  }
1628
1628
  addCached(e5, t2) {
1629
- this.formats[e5.toLowerCase().trim()] = Dr(t2);
1629
+ this.formats[e5.toLowerCase().trim()] = Or(t2);
1630
1630
  }
1631
1631
  format(e5, t2, n2, r2 = {}) {
1632
1632
  let i2 = t2.split(this.formatSeparator);
@@ -1635,7 +1635,7 @@ var kr = class {
1635
1635
  i2[0] = [i2[0], ...i2.splice(1, e6)].join(this.formatSeparator);
1636
1636
  }
1637
1637
  return i2.reduce((e6, t3) => {
1638
- let { formatName: i3, formatOptions: a2 } = Er(t3);
1638
+ let { formatName: i3, formatOptions: a2 } = Dr(t3);
1639
1639
  if (this.formats[i3]) {
1640
1640
  let t4 = e6;
1641
1641
  try {
@@ -1650,12 +1650,12 @@ var kr = class {
1650
1650
  }, e5);
1651
1651
  }
1652
1652
  };
1653
- var Ar = (e5, t2) => {
1653
+ var jr = (e5, t2) => {
1654
1654
  e5.pending[t2] !== void 0 && (delete e5.pending[t2], e5.pendingCount--);
1655
1655
  };
1656
- var jr = class extends dr {
1656
+ var Mr = class extends fr {
1657
1657
  constructor(e5, t2, n2, r2 = {}) {
1658
- super(), this.backend = e5, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = z.create(`backendConnector`), this.waitingReads = [], this.maxParallelReads = r2.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r2.maxRetries >= 0 ? r2.maxRetries : 5, this.retryTimeout = r2.retryTimeout >= 1 ? r2.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n2, r2.backend, r2);
1658
+ super(), this.backend = e5, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = R.create(`backendConnector`), this.waitingReads = [], this.maxParallelReads = r2.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r2.maxRetries >= 0 ? r2.maxRetries : 5, this.retryTimeout = r2.retryTimeout >= 1 ? r2.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n2, r2.backend, r2);
1659
1659
  }
1660
1660
  queueLoad(e5, t2, n2, r2) {
1661
1661
  let i2 = {}, a2 = {}, o2 = {}, s2 = {};
@@ -1672,7 +1672,7 @@ var jr = class extends dr {
1672
1672
  t2 && this.emit(`failedLoading`, i2, a2, t2), !t2 && n2 && this.store.addResourceBundle(i2, a2, n2, void 0, void 0, { skipCopy: true }), this.state[e5] = t2 ? -1 : 2, t2 && n2 && (this.state[e5] = 0);
1673
1673
  let o2 = {};
1674
1674
  this.queue.forEach((n3) => {
1675
- Qn(n3.loaded, [i2], a2), Ar(n3, e5), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e6) => {
1675
+ $n(n3.loaded, [i2], a2), jr(n3, e5), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e6) => {
1676
1676
  o2[e6] || (o2[e6] = {});
1677
1677
  let t3 = n3.loaded[e6];
1678
1678
  t3.length && t3.forEach((t4) => {
@@ -1714,7 +1714,7 @@ var jr = class extends dr {
1714
1714
  }
1715
1715
  prepareLoading(e5, t2, n2 = {}, r2) {
1716
1716
  if (!this.backend) return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`), r2 && r2();
1717
- L(e5) && (e5 = this.languageUtils.toResolveHierarchy(e5)), L(t2) && (t2 = [t2]);
1717
+ I(e5) && (e5 = this.languageUtils.toResolveHierarchy(e5)), I(t2) && (t2 = [t2]);
1718
1718
  let i2 = this.queueLoad(e5, t2, n2, r2);
1719
1719
  if (!i2.toLoad.length) return i2.pending.length || r2(), null;
1720
1720
  i2.toLoad.forEach((e6) => {
@@ -1754,9 +1754,9 @@ var jr = class extends dr {
1754
1754
  }
1755
1755
  }
1756
1756
  };
1757
- var Mr = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS: [`translation`], fallbackLng: [`dev`], fallbackNS: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: `all`, preload: false, simplifyPluralSuffix: true, keySeparator: `.`, nsSeparator: `:`, pluralSeparator: `_`, contextSeparator: `_`, partialBundledLanguages: false, saveMissing: false, updateMissing: false, saveMissingTo: `fallback`, saveMissingPlurals: true, missingKeyHandler: false, missingInterpolationHandler: false, postProcess: false, postProcessPassResolved: false, returnNull: false, returnEmptyString: true, returnObjects: false, joinArrays: false, returnedObjectHandler: false, parseMissingKeyHandler: false, appendNamespaceToMissingKey: false, appendNamespaceToCIMode: false, overloadTranslationOptionHandler: (e5) => {
1757
+ var Nr = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS: [`translation`], fallbackLng: [`dev`], fallbackNS: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: `all`, preload: false, simplifyPluralSuffix: true, keySeparator: `.`, nsSeparator: `:`, pluralSeparator: `_`, contextSeparator: `_`, partialBundledLanguages: false, saveMissing: false, updateMissing: false, saveMissingTo: `fallback`, saveMissingPlurals: true, missingKeyHandler: false, missingInterpolationHandler: false, postProcess: false, postProcessPassResolved: false, returnNull: false, returnEmptyString: true, returnObjects: false, joinArrays: false, returnedObjectHandler: false, parseMissingKeyHandler: false, appendNamespaceToMissingKey: false, appendNamespaceToCIMode: false, overloadTranslationOptionHandler: (e5) => {
1758
1758
  let t2 = {};
1759
- if (typeof e5[1] == `object` && (t2 = e5[1]), L(e5[1]) && (t2.defaultValue = e5[1]), L(e5[2]) && (t2.tDescription = e5[2]), typeof e5[2] == `object` || typeof e5[3] == `object`) {
1759
+ if (typeof e5[1] == `object` && (t2 = e5[1]), I(e5[1]) && (t2.defaultValue = e5[1]), I(e5[2]) && (t2.tDescription = e5[2]), typeof e5[2] == `object` || typeof e5[3] == `object`) {
1760
1760
  let n2 = e5[3] || e5[2];
1761
1761
  Object.keys(n2).forEach((e6) => {
1762
1762
  t2[e6] = n2[e6];
@@ -1764,23 +1764,23 @@ var Mr = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS:
1764
1764
  }
1765
1765
  return t2;
1766
1766
  }, interpolation: { escapeValue: true, format: (e5) => e5, prefix: `{{`, suffix: `}}`, formatSeparator: `,`, unescapePrefix: `-`, nestingPrefix: `$t(`, nestingSuffix: `)`, nestingOptionsSeparator: `,`, maxReplaces: 1e3, skipOnVariables: true }, cacheInBuiltFormats: true });
1767
- var Nr = (e5) => (L(e5.ns) && (e5.ns = [e5.ns]), L(e5.fallbackLng) && (e5.fallbackLng = [e5.fallbackLng]), L(e5.fallbackNS) && (e5.fallbackNS = [e5.fallbackNS]), e5.supportedLngs?.indexOf?.(`cimode`) < 0 && (e5.supportedLngs = e5.supportedLngs.concat([`cimode`])), typeof e5.initImmediate == `boolean` && (e5.initAsync = e5.initImmediate), e5);
1768
- var Pr = () => {
1767
+ var Pr = (e5) => (I(e5.ns) && (e5.ns = [e5.ns]), I(e5.fallbackLng) && (e5.fallbackLng = [e5.fallbackLng]), I(e5.fallbackNS) && (e5.fallbackNS = [e5.fallbackNS]), e5.supportedLngs?.indexOf?.(`cimode`) < 0 && (e5.supportedLngs = e5.supportedLngs.concat([`cimode`])), typeof e5.initImmediate == `boolean` && (e5.initAsync = e5.initImmediate), e5);
1768
+ var Fr = () => {
1769
1769
  };
1770
- var Fr = (e5) => {
1770
+ var Ir = (e5) => {
1771
1771
  Object.getOwnPropertyNames(Object.getPrototypeOf(e5)).forEach((t2) => {
1772
1772
  typeof e5[t2] == `function` && (e5[t2] = e5[t2].bind(e5));
1773
1773
  });
1774
1774
  };
1775
- var Ir = `__i18next_supportNoticeShown`;
1776
- var Lr = () => !!(typeof globalThis < `u` && globalThis[Ir] || typeof process < `u` && {}.I18NEXT_NO_SUPPORT_NOTICE || typeof process < `u`);
1777
- var Rr = () => {
1778
- typeof globalThis < `u` && (globalThis[Ir] = true);
1775
+ var Lr = `__i18next_supportNoticeShown`;
1776
+ var Rr = () => !!(typeof globalThis < `u` && globalThis[Lr] || typeof process < `u` && {}.I18NEXT_NO_SUPPORT_NOTICE || typeof process < `u`);
1777
+ var zr = () => {
1778
+ typeof globalThis < `u` && (globalThis[Lr] = true);
1779
1779
  };
1780
- var zr = (e5) => !!(e5?.modules?.backend?.name?.indexOf(`Locize`) > 0 || e5?.modules?.backend?.constructor?.name?.indexOf(`Locize`) > 0 || e5?.options?.backend?.backends && e5.options.backend.backends.some((e6) => e6?.name?.indexOf(`Locize`) > 0 || e6?.constructor?.name?.indexOf(`Locize`) > 0) || e5?.options?.backend?.projectId || e5?.options?.backend?.backendOptions && e5.options.backend.backendOptions.some((e6) => e6?.projectId));
1781
- var V = class e4 extends dr {
1780
+ var Br = (e5) => !!(e5?.modules?.backend?.name?.indexOf(`Locize`) > 0 || e5?.modules?.backend?.constructor?.name?.indexOf(`Locize`) > 0 || e5?.options?.backend?.backends && e5.options.backend.backends.some((e6) => e6?.name?.indexOf(`Locize`) > 0 || e6?.constructor?.name?.indexOf(`Locize`) > 0) || e5?.options?.backend?.projectId || e5?.options?.backend?.backendOptions && e5.options.backend.backendOptions.some((e6) => e6?.projectId));
1781
+ var B = class e4 extends fr {
1782
1782
  constructor(e5 = {}, t2) {
1783
- if (super(), this.options = Nr(e5), this.services = {}, this.logger = z, this.modules = { external: [] }, Fr(this), t2 && !this.isInitialized && !e5.isClone) {
1783
+ if (super(), this.options = Pr(e5), this.services = {}, this.logger = R, this.modules = { external: [] }, Ir(this), t2 && !this.isInitialized && !e5.isClone) {
1784
1784
  if (!this.options.initAsync) return this.init(e5, t2), this;
1785
1785
  setTimeout(() => {
1786
1786
  this.init(e5, t2);
@@ -1788,26 +1788,26 @@ var V = class e4 extends dr {
1788
1788
  }
1789
1789
  }
1790
1790
  init(e5 = {}, t2) {
1791
- this.isInitializing = true, typeof e5 == `function` && (t2 = e5, e5 = {}), e5.defaultNS == null && e5.ns && (L(e5.ns) ? e5.defaultNS = e5.ns : e5.ns.indexOf(`translation`) < 0 && (e5.defaultNS = e5.ns[0]));
1792
- let n2 = Mr();
1793
- this.options = { ...n2, ...this.options, ...Nr(e5) }, this.options.interpolation = { ...n2.interpolation, ...this.options.interpolation }, e5.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e5.keySeparator), e5.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e5.nsSeparator), typeof this.options.overloadTranslationOptionHandler != `function` && (this.options.overloadTranslationOptionHandler = n2.overloadTranslationOptionHandler), this.options.showSupportNotice !== false && !zr(this) && !Lr() && (typeof console < `u` && console.info !== void 0 && console.info(`\u{1F310} i18next is made possible by our own product, Locize \u2014 consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \u{1F499}`), Rr());
1791
+ this.isInitializing = true, typeof e5 == `function` && (t2 = e5, e5 = {}), e5.defaultNS == null && e5.ns && (I(e5.ns) ? e5.defaultNS = e5.ns : e5.ns.indexOf(`translation`) < 0 && (e5.defaultNS = e5.ns[0]));
1792
+ let n2 = Nr();
1793
+ this.options = { ...n2, ...this.options, ...Pr(e5) }, this.options.interpolation = { ...n2.interpolation, ...this.options.interpolation }, e5.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e5.keySeparator), e5.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e5.nsSeparator), typeof this.options.overloadTranslationOptionHandler != `function` && (this.options.overloadTranslationOptionHandler = n2.overloadTranslationOptionHandler), this.options.showSupportNotice !== false && !Br(this) && !Rr() && (typeof console < `u` && console.info !== void 0 && console.info(`\u{1F310} i18next is made possible by our own product, Locize \u2014 consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \u{1F499}`), zr());
1794
1794
  let r2 = (e6) => e6 ? typeof e6 == `function` ? new e6() : e6 : null;
1795
1795
  if (!this.options.isClone) {
1796
- this.modules.logger ? z.init(r2(this.modules.logger), this.options) : z.init(null, this.options);
1796
+ this.modules.logger ? R.init(r2(this.modules.logger), this.options) : R.init(null, this.options);
1797
1797
  let e6;
1798
- e6 = this.modules.formatter ? this.modules.formatter : kr;
1799
- let t3 = new yr(this.options);
1800
- this.store = new fr(this.options.resources, this.options);
1798
+ e6 = this.modules.formatter ? this.modules.formatter : Ar;
1799
+ let t3 = new br(this.options);
1800
+ this.store = new pr(this.options.resources, this.options);
1801
1801
  let i3 = this.services;
1802
- i3.logger = z, i3.resourceStore = this.store, i3.languageUtils = t3, i3.pluralResolver = new Sr(t3, { prepend: this.options.pluralSeparator, simplifyPluralSuffix: this.options.simplifyPluralSuffix }), this.options.interpolation.format && this.options.interpolation.format !== n2.interpolation.format && this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`), e6 && (!this.options.interpolation.format || this.options.interpolation.format === n2.interpolation.format) && (i3.formatter = r2(e6), i3.formatter.init && i3.formatter.init(i3, this.options), this.options.interpolation.format = i3.formatter.format.bind(i3.formatter)), i3.interpolator = new Tr(this.options), i3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i3.backendConnector = new jr(r2(this.modules.backend), i3.resourceStore, i3, this.options), i3.backendConnector.on(`*`, (e7, ...t4) => {
1802
+ i3.logger = R, i3.resourceStore = this.store, i3.languageUtils = t3, i3.pluralResolver = new Cr(t3, { prepend: this.options.pluralSeparator, simplifyPluralSuffix: this.options.simplifyPluralSuffix }), this.options.interpolation.format && this.options.interpolation.format !== n2.interpolation.format && this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`), e6 && (!this.options.interpolation.format || this.options.interpolation.format === n2.interpolation.format) && (i3.formatter = r2(e6), i3.formatter.init && i3.formatter.init(i3, this.options), this.options.interpolation.format = i3.formatter.format.bind(i3.formatter)), i3.interpolator = new Er(this.options), i3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i3.backendConnector = new Mr(r2(this.modules.backend), i3.resourceStore, i3, this.options), i3.backendConnector.on(`*`, (e7, ...t4) => {
1803
1803
  this.emit(e7, ...t4);
1804
- }), this.modules.languageDetector && (i3.languageDetector = r2(this.modules.languageDetector), i3.languageDetector.init && i3.languageDetector.init(i3, this.options.detection, this.options)), this.modules.i18nFormat && (i3.i18nFormat = r2(this.modules.i18nFormat), i3.i18nFormat.init && i3.i18nFormat.init(this)), this.translator = new vr(this.services, this.options), this.translator.on(`*`, (e7, ...t4) => {
1804
+ }), this.modules.languageDetector && (i3.languageDetector = r2(this.modules.languageDetector), i3.languageDetector.init && i3.languageDetector.init(i3, this.options.detection, this.options)), this.modules.i18nFormat && (i3.i18nFormat = r2(this.modules.i18nFormat), i3.i18nFormat.init && i3.i18nFormat.init(this)), this.translator = new yr(this.services, this.options), this.translator.on(`*`, (e7, ...t4) => {
1805
1805
  this.emit(e7, ...t4);
1806
1806
  }), this.modules.external.forEach((e7) => {
1807
1807
  e7.init && e7.init(this);
1808
1808
  });
1809
1809
  }
1810
- if (this.format = this.options.interpolation.format, t2 ||= Pr, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1810
+ if (this.format = this.options.interpolation.format, t2 ||= Fr, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1811
1811
  let e6 = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
1812
1812
  e6.length > 0 && e6[0] !== `dev` && (this.options.lng = e6[0]);
1813
1813
  }
@@ -1816,7 +1816,7 @@ var V = class e4 extends dr {
1816
1816
  }), [`addResource`, `addResources`, `addResourceBundle`, `removeResourceBundle`].forEach((e6) => {
1817
1817
  this[e6] = (...t3) => (this.store[e6](...t3), this);
1818
1818
  });
1819
- let i2 = Wn(), a2 = () => {
1819
+ let i2 = Gn(), a2 = () => {
1820
1820
  let e6 = (e7, n3) => {
1821
1821
  this.isInitializing = false, this.isInitialized && !this.initializedStoreOnce && this.logger.warn(`init: i18next is already initialized. You should call init just once!`), this.isInitialized = true, this.options.isClone || this.logger.log(`initialized`, this.options), this.emit(`initialized`, this.options), i2.resolve(n3), t2(e7, n3);
1822
1822
  };
@@ -1825,8 +1825,8 @@ var V = class e4 extends dr {
1825
1825
  };
1826
1826
  return this.options.resources || !this.options.initAsync ? a2() : setTimeout(a2, 0), i2;
1827
1827
  }
1828
- loadResources(e5, t2 = Pr) {
1829
- let n2 = t2, r2 = L(e5) ? e5 : this.language;
1828
+ loadResources(e5, t2 = Fr) {
1829
+ let n2 = t2, r2 = I(e5) ? e5 : this.language;
1830
1830
  if (typeof e5 == `function` && (n2 = e5), !this.options.resources || this.options.partialBundledLanguages) {
1831
1831
  if (r2?.toLowerCase() === `cimode` && (!this.options.preload || this.options.preload.length === 0)) return n2();
1832
1832
  let e6 = [], t3 = (t4) => {
@@ -1840,15 +1840,15 @@ var V = class e4 extends dr {
1840
1840
  } else n2(null);
1841
1841
  }
1842
1842
  reloadResources(e5, t2, n2) {
1843
- let r2 = Wn();
1844
- return typeof e5 == `function` && (n2 = e5, e5 = void 0), typeof t2 == `function` && (n2 = t2, t2 = void 0), e5 ||= this.languages, t2 ||= this.options.ns, n2 ||= Pr, this.services.backendConnector.reload(e5, t2, (e6) => {
1843
+ let r2 = Gn();
1844
+ return typeof e5 == `function` && (n2 = e5, e5 = void 0), typeof t2 == `function` && (n2 = t2, t2 = void 0), e5 ||= this.languages, t2 ||= this.options.ns, n2 ||= Fr, this.services.backendConnector.reload(e5, t2, (e6) => {
1845
1845
  r2.resolve(), n2(e6);
1846
1846
  }), r2;
1847
1847
  }
1848
1848
  use(e5) {
1849
1849
  if (!e5) throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);
1850
1850
  if (!e5.type) throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);
1851
- return e5.type === `backend` && (this.modules.backend = e5), (e5.type === `logger` || e5.log && e5.warn && e5.error) && (this.modules.logger = e5), e5.type === `languageDetector` && (this.modules.languageDetector = e5), e5.type === `i18nFormat` && (this.modules.i18nFormat = e5), e5.type === `postProcessor` && pr.addPostProcessor(e5), e5.type === `formatter` && (this.modules.formatter = e5), e5.type === `3rdParty` && this.modules.external.push(e5), this;
1851
+ return e5.type === `backend` && (this.modules.backend = e5), (e5.type === `logger` || e5.log && e5.warn && e5.error) && (this.modules.logger = e5), e5.type === `languageDetector` && (this.modules.languageDetector = e5), e5.type === `i18nFormat` && (this.modules.i18nFormat = e5), e5.type === `postProcessor` && mr.addPostProcessor(e5), e5.type === `formatter` && (this.modules.formatter = e5), e5.type === `3rdParty` && this.modules.external.push(e5), this;
1852
1852
  }
1853
1853
  setResolvedLanguage(e5) {
1854
1854
  if (e5 && this.languages && !([`cimode`, `dev`].indexOf(e5) > -1)) {
@@ -1864,7 +1864,7 @@ var V = class e4 extends dr {
1864
1864
  }
1865
1865
  changeLanguage(e5, t2) {
1866
1866
  this.isLanguageChangingTo = e5;
1867
- let n2 = Wn();
1867
+ let n2 = Gn();
1868
1868
  this.emit(`languageChanging`, e5);
1869
1869
  let r2 = (e6) => {
1870
1870
  this.language = e6, this.languages = this.services.languageUtils.toResolveHierarchy(e6), this.resolvedLanguage = void 0, this.setResolvedLanguage(e6);
@@ -1872,7 +1872,7 @@ var V = class e4 extends dr {
1872
1872
  a3 ? this.isLanguageChangingTo === e5 && (r2(a3), this.translator.changeLanguage(a3), this.isLanguageChangingTo = void 0, this.emit(`languageChanged`, a3), this.logger.log(`languageChanged`, a3)) : this.isLanguageChangingTo = void 0, n2.resolve((...e6) => this.t(...e6)), t2 && t2(i3, (...e6) => this.t(...e6));
1873
1873
  }, a2 = (t3) => {
1874
1874
  !e5 && !t3 && this.services.languageDetector && (t3 = []);
1875
- let n3 = L(t3) ? t3 : t3 && t3[0], a3 = this.store.hasLanguageSomeTranslations(n3) ? n3 : this.services.languageUtils.getBestMatchFromCodes(L(t3) ? [t3] : t3);
1875
+ let n3 = I(t3) ? t3 : t3 && t3[0], a3 = this.store.hasLanguageSomeTranslations(n3) ? n3 : this.services.languageUtils.getBestMatchFromCodes(I(t3) ? [t3] : t3);
1876
1876
  a3 && (this.language || r2(a3), this.translator.language || this.translator.changeLanguage(a3), this.services.languageDetector?.cacheUserLanguage?.(a3)), this.loadResources(a3, (e6) => {
1877
1877
  i2(e6, a3);
1878
1878
  });
@@ -1884,11 +1884,11 @@ var V = class e4 extends dr {
1884
1884
  let a2;
1885
1885
  a2 = typeof t3 == `object` ? { ...t3 } : this.options.overloadTranslationOptionHandler([e6, t3].concat(i2)), a2.lng = a2.lng || r2.lng, a2.lngs = a2.lngs || r2.lngs, a2.ns = a2.ns || r2.ns, a2.keyPrefix !== `` && (a2.keyPrefix = a2.keyPrefix || n2 || r2.keyPrefix);
1886
1886
  let o2 = { ...this.options, ...a2 };
1887
- typeof a2.keyPrefix == `function` && (a2.keyPrefix = B(a2.keyPrefix, o2));
1887
+ typeof a2.keyPrefix == `function` && (a2.keyPrefix = z(a2.keyPrefix, o2));
1888
1888
  let s2 = this.options.keySeparator || `.`, c2;
1889
- return a2.keyPrefix && Array.isArray(e6) ? c2 = e6.map((e7) => (typeof e7 == `function` && (e7 = B(e7, o2)), `${a2.keyPrefix}${s2}${e7}`)) : (typeof e6 == `function` && (e6 = B(e6, o2)), c2 = a2.keyPrefix ? `${a2.keyPrefix}${s2}${e6}` : e6), this.t(c2, a2);
1889
+ return a2.keyPrefix && Array.isArray(e6) ? c2 = e6.map((e7) => (typeof e7 == `function` && (e7 = z(e7, o2)), `${a2.keyPrefix}${s2}${e7}`)) : (typeof e6 == `function` && (e6 = z(e6, o2)), c2 = a2.keyPrefix ? `${a2.keyPrefix}${s2}${e6}` : e6), this.t(c2, a2);
1890
1890
  };
1891
- return L(e5) ? r2.lng = e5 : r2.lngs = e5, r2.ns = t2, r2.keyPrefix = n2, r2;
1891
+ return I(e5) ? r2.lng = e5 : r2.lngs = e5, r2.ns = t2, r2.keyPrefix = n2, r2;
1892
1892
  }
1893
1893
  t(...e5) {
1894
1894
  return this.translator?.translate(...e5);
@@ -1915,16 +1915,16 @@ var V = class e4 extends dr {
1915
1915
  return !!(this.hasResourceBundle(n2, e5) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a2(n2, e5) && (!r2 || a2(i2, e5)));
1916
1916
  }
1917
1917
  loadNamespaces(e5, t2) {
1918
- let n2 = Wn();
1919
- return this.options.ns ? (L(e5) && (e5 = [e5]), e5.forEach((e6) => {
1918
+ let n2 = Gn();
1919
+ return this.options.ns ? (I(e5) && (e5 = [e5]), e5.forEach((e6) => {
1920
1920
  this.options.ns.indexOf(e6) < 0 && this.options.ns.push(e6);
1921
1921
  }), this.loadResources((e6) => {
1922
1922
  n2.resolve(), t2 && t2(e6);
1923
1923
  }), n2) : (t2 && t2(), Promise.resolve());
1924
1924
  }
1925
1925
  loadLanguages(e5, t2) {
1926
- let n2 = Wn();
1927
- L(e5) && (e5 = [e5]);
1926
+ let n2 = Gn();
1927
+ I(e5) && (e5 = [e5]);
1928
1928
  let r2 = this.options.preload || [], i2 = e5.filter((e6) => r2.indexOf(e6) < 0 && this.services.languageUtils.isSupportedCode(e6));
1929
1929
  return i2.length ? (this.options.preload = r2.concat(i2), this.loadResources((e6) => {
1930
1930
  n2.resolve(), t2 && t2(e6);
@@ -1940,24 +1940,24 @@ var V = class e4 extends dr {
1940
1940
  }
1941
1941
  } catch {
1942
1942
  }
1943
- let t2 = `ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`), n2 = this.services?.languageUtils || new yr(Mr());
1943
+ let t2 = `ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`), n2 = this.services?.languageUtils || new br(Nr());
1944
1944
  return e5.toLowerCase().indexOf(`-latn`) > 1 ? `ltr` : t2.indexOf(n2.getLanguagePartFromCode(e5)) > -1 || e5.toLowerCase().indexOf(`-arab`) > 1 ? `rtl` : `ltr`;
1945
1945
  }
1946
1946
  static createInstance(t2 = {}, n2) {
1947
1947
  let r2 = new e4(t2, n2);
1948
1948
  return r2.createInstance = e4.createInstance, r2;
1949
1949
  }
1950
- cloneInstance(t2 = {}, n2 = Pr) {
1950
+ cloneInstance(t2 = {}, n2 = Fr) {
1951
1951
  let r2 = t2.forkResourceStore;
1952
1952
  r2 && delete t2.forkResourceStore;
1953
1953
  let i2 = { ...this.options, ...t2, isClone: true }, a2 = new e4(i2);
1954
1954
  if ((t2.debug !== void 0 || t2.prefix !== void 0) && (a2.logger = a2.logger.clone(t2)), [`store`, `services`, `language`].forEach((e5) => {
1955
1955
  a2[e5] = this[e5];
1956
- }), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new fr(Object.keys(this.store.data).reduce((e5, t3) => (e5[t3] = { ...this.store.data[t3] }, e5[t3] = Object.keys(e5[t3]).reduce((n3, r3) => (n3[r3] = { ...e5[t3][r3] }, n3), e5[t3]), e5), {}), i2), a2.services.resourceStore = a2.store), t2.interpolation) {
1957
- let e5 = { ...Mr().interpolation, ...this.options.interpolation, ...t2.interpolation }, n3 = { ...i2, interpolation: e5 };
1958
- a2.services.interpolator = new Tr(n3);
1956
+ }), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new pr(Object.keys(this.store.data).reduce((e5, t3) => (e5[t3] = { ...this.store.data[t3] }, e5[t3] = Object.keys(e5[t3]).reduce((n3, r3) => (n3[r3] = { ...e5[t3][r3] }, n3), e5[t3]), e5), {}), i2), a2.services.resourceStore = a2.store), t2.interpolation) {
1957
+ let e5 = { ...Nr().interpolation, ...this.options.interpolation, ...t2.interpolation }, n3 = { ...i2, interpolation: e5 };
1958
+ a2.services.interpolator = new Er(n3);
1959
1959
  }
1960
- return a2.translator = new vr(a2.services, i2), a2.translator.on(`*`, (e5, ...t3) => {
1960
+ return a2.translator = new yr(a2.services, i2), a2.translator.on(`*`, (e5, ...t3) => {
1961
1961
  a2.emit(e5, ...t3);
1962
1962
  }), a2.init(i2, n2), a2.translator.options = i2, a2.translator.backendConnector.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, a2;
1963
1963
  }
@@ -1965,14 +1965,14 @@ var V = class e4 extends dr {
1965
1965
  return { options: this.options, store: this.store, language: this.language, languages: this.languages, resolvedLanguage: this.resolvedLanguage };
1966
1966
  }
1967
1967
  }.createInstance();
1968
- V.createInstance, V.dir, V.init, V.loadResources, V.reloadResources, V.use, V.changeLanguage, V.getFixedT, V.t, V.exists, V.setDefaultNamespace, V.hasLoadedNamespace, V.loadNamespaces, V.loadLanguages;
1969
- var Br = function() {
1970
- return Br = Object.assign || function(e5) {
1968
+ B.createInstance, B.dir, B.init, B.loadResources, B.reloadResources, B.use, B.changeLanguage, B.getFixedT, B.t, B.exists, B.setDefaultNamespace, B.hasLoadedNamespace, B.loadNamespaces, B.loadLanguages;
1969
+ var Vr = function() {
1970
+ return Vr = Object.assign || function(e5) {
1971
1971
  for (var t2, n2 = 1, r2 = arguments.length; n2 < r2; n2++) for (var i2 in t2 = arguments[n2], t2) Object.prototype.hasOwnProperty.call(t2, i2) && (e5[i2] = t2[i2]);
1972
1972
  return e5;
1973
- }, Br.apply(this, arguments);
1973
+ }, Vr.apply(this, arguments);
1974
1974
  };
1975
- function Vr(e5) {
1975
+ function Hr(e5) {
1976
1976
  var t2 = typeof Symbol == `function` && Symbol.iterator, n2 = t2 && e5[t2], r2 = 0;
1977
1977
  if (n2) return n2.call(e5);
1978
1978
  if (e5 && typeof e5.length == `number`) return { next: function() {
@@ -1980,7 +1980,7 @@ function Vr(e5) {
1980
1980
  } };
1981
1981
  throw TypeError(t2 ? `Object is not iterable.` : `Symbol.iterator is not defined.`);
1982
1982
  }
1983
- function H(e5, t2) {
1983
+ function V(e5, t2) {
1984
1984
  var n2 = typeof Symbol == `function` && e5[Symbol.iterator];
1985
1985
  if (!n2) return e5;
1986
1986
  var r2 = n2.call(e5), i2, a2 = [], o2;
@@ -1997,57 +1997,57 @@ function H(e5, t2) {
1997
1997
  }
1998
1998
  return a2;
1999
1999
  }
2000
- function Hr(e5, t2, n2) {
2000
+ function Ur(e5, t2, n2) {
2001
2001
  if (n2 || arguments.length === 2) for (var r2 = 0, i2 = t2.length, a2; r2 < i2; r2++) (a2 || !(r2 in t2)) && (a2 ||= Array.prototype.slice.call(t2, 0, r2), a2[r2] = t2[r2]);
2002
2002
  return e5.concat(a2 || Array.prototype.slice.call(t2));
2003
2003
  }
2004
- var Ur = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
2005
- var Wr = { "&amp;": `&`, "&#38;": `&`, "&lt;": `<`, "&#60;": `<`, "&gt;": `>`, "&#62;": `>`, "&apos;": `'`, "&#39;": `'`, "&quot;": `"`, "&#34;": `"`, "&nbsp;": ` `, "&#160;": ` `, "&copy;": `\xA9`, "&#169;": `\xA9`, "&reg;": `\xAE`, "&#174;": `\xAE`, "&hellip;": `\u2026`, "&#8230;": `\u2026`, "&#x2F;": `/`, "&#47;": `/` };
2006
- var Gr = (e5) => Wr[e5];
2007
- var Kr = { bindI18n: `languageChanged`, bindI18nStore: ``, transEmptyNodeValue: ``, transSupportBasicHtmlNodes: true, transWrapTextNodes: ``, transKeepBasicHtmlNodesFor: [`br`, `strong`, `i`, `p`], useSuspense: true, unescape: (e5) => e5.replace(Ur, Gr), transDefaultProps: void 0 };
2008
- var qr = (e5 = {}) => {
2009
- Kr = { ...Kr, ...e5 };
2004
+ var Wr = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
2005
+ var Gr = { "&amp;": `&`, "&#38;": `&`, "&lt;": `<`, "&#60;": `<`, "&gt;": `>`, "&#62;": `>`, "&apos;": `'`, "&#39;": `'`, "&quot;": `"`, "&#34;": `"`, "&nbsp;": ` `, "&#160;": ` `, "&copy;": `\xA9`, "&#169;": `\xA9`, "&reg;": `\xAE`, "&#174;": `\xAE`, "&hellip;": `\u2026`, "&#8230;": `\u2026`, "&#x2F;": `/`, "&#47;": `/` };
2006
+ var Kr = (e5) => Gr[e5];
2007
+ var qr = { bindI18n: `languageChanged`, bindI18nStore: ``, transEmptyNodeValue: ``, transSupportBasicHtmlNodes: true, transWrapTextNodes: ``, transKeepBasicHtmlNodesFor: [`br`, `strong`, `i`, `p`], useSuspense: true, unescape: (e5) => e5.replace(Wr, Kr), transDefaultProps: void 0 };
2008
+ var Jr = (e5 = {}) => {
2009
+ qr = { ...qr, ...e5 };
2010
2010
  };
2011
- var Jr = { type: `3rdParty`, init(e5) {
2012
- qr(e5.options.react);
2011
+ var Yr = { type: `3rdParty`, init(e5) {
2012
+ Jr(e5.options.react);
2013
2013
  } };
2014
- var Yr = /* @__PURE__ */ new Map();
2015
- var Xr = 500;
2016
- var Zr;
2017
- function Qr() {
2018
- if (Zr === void 0) try {
2019
- Zr = new Intl.NumberFormat(`en-US`, { useGrouping: false, maximumFractionDigits: 0 }).format(`9007199254740993`) === `9007199254740993`;
2014
+ var Xr = /* @__PURE__ */ new Map();
2015
+ var Zr = 500;
2016
+ var Qr;
2017
+ function $r() {
2018
+ if (Qr === void 0) try {
2019
+ Qr = new Intl.NumberFormat(`en-US`, { useGrouping: false, maximumFractionDigits: 0 }).format(`9007199254740993`) === `9007199254740993`;
2020
2020
  } catch {
2021
- Zr = false;
2021
+ Qr = false;
2022
2022
  }
2023
- return Zr;
2024
- }
2025
- var $r = 15;
2026
- function ei(e5) {
2027
- if (!(typeof e5 != `string` || Qr()) && e5.replace(/[^0-9]/g, ``).replace(/^0+/, ``).length > $r) throw Error(`Cannot format the amount '${e5}' exactly: this runtime's Intl implementation predates ES2023 string support and would lose precision. Use a runtime with ES2023 Intl support (for example Node 20+), or pass a value within 15 significant digits.`);
2023
+ return Qr;
2028
2024
  }
2029
- function ti(e5, t2, n2) {
2030
- return `${e5}|${t2}|${Object.entries(n2).filter(([, e6]) => e6 !== void 0).sort(([e6], [t3]) => e6 < t3 ? -1 : 1).map(([e6, t3]) => `${e6}=${String(t3)}`).join(`&`)}`;
2025
+ var ei = 15;
2026
+ function ti(e5) {
2027
+ if (!(typeof e5 != `string` || $r()) && e5.replace(/[^0-9]/g, ``).replace(/^0+/, ``).length > ei) throw Error(`Cannot format the amount '${e5}' exactly: this runtime's Intl implementation predates ES2023 string support and would lose precision. Use a runtime with ES2023 Intl support (for example Node 20+), or pass a value within 15 significant digits.`);
2031
2028
  }
2032
2029
  function ni(e5, t2, n2) {
2033
- let r2 = ti(e5, t2, n2), i2 = Yr.get(r2);
2034
- return i2 || (i2 = new Intl.NumberFormat(e5, { ...n2, style: `currency`, currency: t2 }), Yr.size >= Xr && Yr.clear(), Yr.set(r2, i2)), i2;
2030
+ return `${e5}|${t2}|${Object.entries(n2).filter(([, e6]) => e6 !== void 0).sort(([e6], [t3]) => e6 < t3 ? -1 : 1).map(([e6, t3]) => `${e6}=${String(t3)}`).join(`&`)}`;
2035
2031
  }
2036
- function ri(e5, { value: t2, currency: n2 }, r2 = {}) {
2037
- return ei(t2), ni(e5, n2, r2).format(t2);
2032
+ function ri(e5, t2, n2) {
2033
+ let r2 = ni(e5, t2, n2), i2 = Xr.get(r2);
2034
+ return i2 || (i2 = new Intl.NumberFormat(e5, { ...n2, style: `currency`, currency: t2 }), Xr.size >= Zr && Xr.clear(), Xr.set(r2, i2)), i2;
2038
2035
  }
2039
2036
  function ii(e5, { value: t2, currency: n2 }, r2 = {}) {
2040
- return ei(t2), ni(e5, n2, r2).formatToParts(t2);
2037
+ return ti(t2), ri(e5, n2, r2).format(t2);
2038
+ }
2039
+ function ai(e5, { value: t2, currency: n2 }, r2 = {}) {
2040
+ return ti(t2), ri(e5, n2, r2).formatToParts(t2);
2041
2041
  }
2042
- function ai(e5) {
2043
- return _n().find((e6) => e6.primary)?.id ?? e5;
2042
+ function oi(e5) {
2043
+ return vn().find((e6) => e6.primary)?.id ?? e5;
2044
2044
  }
2045
- function oi(e5, t2) {
2045
+ function si(e5, t2) {
2046
2046
  let { locale: n2, ...r2 } = t2 ?? {}, i2 = n2 ?? e5.essentials?.locale;
2047
2047
  if (!i2) throw Error(`Host locale is not available on the current host. Make sure to use an updated version of the host initialization package.`);
2048
2048
  return { locale: i2, formatOptions: r2 };
2049
2049
  }
2050
- var si = Un({ getLanguage: (e5) => () => {
2050
+ var ci = Wn({ getLanguage: (e5) => () => {
2051
2051
  let t2 = e5.essentials?.language;
2052
2052
  if (!t2) throw Error(`Host language is not available on the current host. Make sure to use an updated version of the host initialization package.`);
2053
2053
  return t2;
@@ -2056,20 +2056,20 @@ var si = Un({ getLanguage: (e5) => () => {
2056
2056
  if (!t2) throw Error(`Host locale is not available on the current host. Make sure to use an updated version of the host initialization package.`);
2057
2057
  return t2;
2058
2058
  }, formatCurrency: (e5) => (t2, n2) => {
2059
- let { locale: r2, formatOptions: i2 } = oi(e5, n2);
2060
- return ri(r2, t2, i2);
2061
- }, formatCurrencyToParts: (e5) => (t2, n2) => {
2062
- let { locale: r2, formatOptions: i2 } = oi(e5, n2);
2059
+ let { locale: r2, formatOptions: i2 } = si(e5, n2);
2063
2060
  return ii(r2, t2, i2);
2061
+ }, formatCurrencyToParts: (e5) => (t2, n2) => {
2062
+ let { locale: r2, formatOptions: i2 } = si(e5, n2);
2063
+ return ai(r2, t2, i2);
2064
2064
  }, getTranslationFunction: (e5) => () => {
2065
2065
  let t2 = e5.translations?.();
2066
2066
  if (!t2) throw Error(`Host translation resources are not available.`);
2067
- let n2 = V.createInstance(), r2 = ai(e5.essentials?.language) || `en`, i2 = { lng: e5.essentials?.language || r2, fallbackLng: r2, resources: t2 };
2068
- return n2.use(Jr).init(i2, (e6) => {
2067
+ let n2 = B.createInstance(), r2 = oi(e5.essentials?.language) || `en`, i2 = { lng: e5.essentials?.language || r2, fallbackLng: r2, resources: t2 };
2068
+ return n2.use(Yr).init(i2, (e6) => {
2069
2069
  if (e6) throw e6;
2070
2070
  }), n2.t.bind(n2);
2071
2071
  } });
2072
- var ci = class {
2072
+ var li = class {
2073
2073
  constructor(e5) {
2074
2074
  this.message = e5, this.captureException = () => {
2075
2075
  console.error(this.message);
@@ -2084,42 +2084,42 @@ var ci = class {
2084
2084
  };
2085
2085
  }
2086
2086
  };
2087
- var li = (e5) => new ci(e5);
2088
- var ui = Un({ getMonitoringClient: (e5) => () => e5.getMonitoringClient ? e5.getMonitoringClient() : li(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
2089
- var U = { service: `service`, services: `services`, categories: `categories`, locations: `locations`, sessions: `sessions`, timeSlots: `time-slots`, serviceAddOns: `service-addons`, bookingsSettings: `bookings-settings`, serviceCta: `service-cta`, preferences: `preferences`, bookingSummary: `booking-summary`, bookingCheckout: `booking-checkout`, formValues: `form-values`, paymentOptions: `payment-options`, seo: `seo`, warmup: `warmup`, reschedule: `reschedule` };
2090
- function di(e5) {
2087
+ var ui = (e5) => new li(e5);
2088
+ var di = Wn({ getMonitoringClient: (e5) => () => e5.getMonitoringClient ? e5.getMonitoringClient() : ui(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
2089
+ var H = { service: `service`, services: `services`, categories: `categories`, locations: `locations`, sessions: `sessions`, timeSlots: `time-slots`, serviceAddOns: `service-addons`, bookingsSettings: `bookings-settings`, serviceCta: `service-cta`, preferences: `preferences`, bookingSummary: `booking-summary`, bookingCheckout: `booking-checkout`, formValues: `form-values`, paymentOptions: `payment-options`, seo: `seo`, warmup: `warmup`, reschedule: `reschedule` };
2090
+ function fi(e5) {
2091
2091
  try {
2092
- let t2 = ui.getMonitoringClient?.();
2092
+ let t2 = di.getMonitoringClient?.();
2093
2093
  return t2 && typeof t2[e5] == `function` ? t2 : null;
2094
2094
  } catch {
2095
2095
  return null;
2096
2096
  }
2097
2097
  }
2098
- function fi(e5, { feature: t2, action: n2, level: r2 = `error`, contexts: i2 }) {
2099
- let a2 = di(`captureException`);
2098
+ function pi(e5, { feature: t2, action: n2, level: r2 = `error`, contexts: i2 }) {
2099
+ let a2 = fi(`captureException`);
2100
2100
  if (!a2) return;
2101
2101
  let o2 = e5 instanceof Error ? e5 : Error(String(e5));
2102
2102
  a2.captureException(o2, { level: r2, tags: { feature: t2, action: n2 }, ...i2 ? { contexts: i2 } : {} });
2103
2103
  }
2104
- function pi(e5, { feature: t2, tags: n2 }, r2) {
2105
- let i2 = di(`startSpanManual`);
2104
+ function mi(e5, { feature: t2, tags: n2 }, r2) {
2105
+ let i2 = fi(`startSpanManual`);
2106
2106
  if (!i2) return r2;
2107
2107
  let a2 = i2.startSpanManual({ name: e5, tags: { feature: t2, ...n2 } });
2108
2108
  return r2.then(() => a2.end(), (e6) => a2.fail(e6)), r2;
2109
2109
  }
2110
- var mi = class extends e {
2110
+ var hi = class extends e {
2111
2111
  state = { hasError: false };
2112
2112
  static getDerivedStateFromError() {
2113
2113
  return { hasError: true };
2114
2114
  }
2115
2115
  componentDidCatch(e5, t2) {
2116
- fi(e5, { feature: this.props.feature ?? `service`, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
2116
+ pi(e5, { feature: this.props.feature ?? `service`, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
2117
2117
  }
2118
2118
  render() {
2119
2119
  return this.state.hasError ? this.props.fallback : this.props.children;
2120
2120
  }
2121
2121
  };
2122
- function hi(e5) {
2122
+ function gi(e5) {
2123
2123
  let t2 = e5;
2124
2124
  return t2.__state || (t2.__state = { status: `pending` }, t2.then((e6) => {
2125
2125
  t2.__state = { status: `fulfilled`, value: e6 };
@@ -2127,42 +2127,42 @@ function hi(e5) {
2127
2127
  t2.__state = { status: `rejected`, reason: e6 };
2128
2128
  })), t2.__state;
2129
2129
  }
2130
- function gi(e5) {
2131
- let t2 = hi(e5);
2130
+ function _i(e5) {
2131
+ let t2 = gi(e5);
2132
2132
  if (t2.status === `fulfilled`) return t2.value;
2133
2133
  throw t2.status === `rejected` ? t2.reason : e5;
2134
2134
  }
2135
- function _i(e5) {
2135
+ function vi(e5) {
2136
2136
  let t2 = Promise.resolve(e5);
2137
2137
  return t2.__state = { status: `fulfilled`, value: e5 }, t2;
2138
2138
  }
2139
- var vi = /* @__PURE__ */ new WeakMap();
2140
- function yi(e5, t2, n2) {
2141
- let r2 = vi.get(e5);
2142
- r2 || (r2 = /* @__PURE__ */ new WeakMap(), vi.set(e5, r2));
2139
+ var yi = /* @__PURE__ */ new WeakMap();
2140
+ function bi(e5, t2, n2) {
2141
+ let r2 = yi.get(e5);
2142
+ r2 || (r2 = /* @__PURE__ */ new WeakMap(), yi.set(e5, r2));
2143
2143
  let i2 = r2.get(t2);
2144
2144
  i2 || (i2 = /* @__PURE__ */ new WeakMap(), r2.set(t2, i2));
2145
2145
  let a2 = i2.get(n2);
2146
2146
  if (!a2) {
2147
2147
  let r3 = e5;
2148
- a2 = r3.__state?.status === `fulfilled` ? _i(t2(r3.__state.value)) : r3.__state?.status === `rejected` ? _i(n2(r3.__state.reason)) : e5.then(t2, n2), i2.set(n2, a2);
2148
+ a2 = r3.__state?.status === `fulfilled` ? vi(t2(r3.__state.value)) : r3.__state?.status === `rejected` ? vi(n2(r3.__state.reason)) : e5.then(t2, n2), i2.set(n2, a2);
2149
2149
  }
2150
2150
  return a2;
2151
2151
  }
2152
- function W(e5) {
2152
+ function U(e5) {
2153
2153
  return e5;
2154
2154
  }
2155
- var bi = W(`@wix/site-service-url`);
2156
- var xi = `appSectionParams`;
2157
- function Si(e5) {
2158
- let t2 = e5.searchParams.get(xi);
2155
+ var xi = U(`@wix/site-service-url`);
2156
+ var Si = `appSectionParams`;
2157
+ function Ci(e5) {
2158
+ let t2 = e5.searchParams.get(Si);
2159
2159
  if (t2 === null) return e5;
2160
2160
  let n2 = new URL(e5);
2161
- n2.searchParams.delete(xi);
2162
- for (let [e6, r2] of Object.entries(Ci(t2))) typeof r2 == `string` && !n2.searchParams.has(e6) && n2.searchParams.set(e6, r2);
2161
+ n2.searchParams.delete(Si);
2162
+ for (let [e6, r2] of Object.entries(wi(t2))) typeof r2 == `string` && !n2.searchParams.has(e6) && n2.searchParams.set(e6, r2);
2163
2163
  return n2;
2164
2164
  }
2165
- function Ci(e5) {
2165
+ function wi(e5) {
2166
2166
  try {
2167
2167
  let t2 = JSON.parse(e5);
2168
2168
  return t2 && typeof t2 == `object` && !Array.isArray(t2) ? t2 : {};
@@ -2170,16 +2170,16 @@ function Ci(e5) {
2170
2170
  return {};
2171
2171
  }
2172
2172
  }
2173
- var wi = `bookings-uou:url-change`;
2174
- var Ti = (e5) => {
2173
+ var Ti = `bookings-uou:url-change`;
2174
+ var Ei = (e5) => {
2175
2175
  let t2 = new URL(e5);
2176
2176
  return t2.searchParams.sort(), t2.href;
2177
2177
  };
2178
- function Ei(e5, { disableScrollToTop: t2, skipHistory: n2 } = {}) {
2178
+ function Di(e5, { disableScrollToTop: t2, skipHistory: n2 } = {}) {
2179
2179
  let r2 = globalThis.window;
2180
2180
  if (!r2?.history) return;
2181
2181
  let i2 = new URL(r2.location.href);
2182
- if (Ti(i2) === Ti(e5)) return;
2182
+ if (Ei(i2) === Ei(e5)) return;
2183
2183
  let a2 = { scrollY: r2.scrollY };
2184
2184
  if (n2) r2.history.replaceState(a2, ``, e5.href);
2185
2185
  else {
@@ -2190,71 +2190,71 @@ function Ei(e5, { disableScrollToTop: t2, skipHistory: n2 } = {}) {
2190
2190
  return;
2191
2191
  }
2192
2192
  }
2193
- r2.dispatchEvent(new Event(wi));
2193
+ r2.dispatchEvent(new Event(Ti));
2194
2194
  }
2195
- function Di(e5) {
2195
+ function Oi(e5) {
2196
2196
  let t2 = globalThis.window;
2197
- return t2 ? (t2.addEventListener(wi, e5), t2.addEventListener(`popstate`, e5), () => {
2198
- t2.removeEventListener(wi, e5), t2.removeEventListener(`popstate`, e5);
2197
+ return t2 ? (t2.addEventListener(Ti, e5), t2.addEventListener(`popstate`, e5), () => {
2198
+ t2.removeEventListener(Ti, e5), t2.removeEventListener(`popstate`, e5);
2199
2199
  }) : () => {
2200
2200
  };
2201
2201
  }
2202
- var Oi = (e5) => {
2202
+ var ki = (e5) => {
2203
2203
  try {
2204
2204
  return decodeURIComponent(e5);
2205
2205
  } catch {
2206
2206
  return e5;
2207
2207
  }
2208
2208
  };
2209
- function ki(e5, t2) {
2209
+ function Ai(e5, t2) {
2210
2210
  let n2 = t2 ? new URL(t2).pathname : `/`;
2211
- return `./${Oi(new URL(e5).pathname.replace(n2, ``).replace(/^\/|\/$/g, ``))}`;
2212
- }
2213
- function Ai() {
2214
- let e5 = p(bi), t2 = i(() => e5.currentUrl, [e5]), n2 = d(Di, t2, t2), r2 = c(() => Si(new URL(n2)), [n2]), a2 = e5.siteUrl.replace(/\/$/, ``);
2215
- return { pathname: r2.pathname, search: r2.search, searchParams: r2.searchParams, href: r2.href, getParsedUrl: () => Si(new URL(e5.currentUrl)), getRelativeUrl: () => ki(e5.currentUrl, a2), getExternalBaseUrl: () => a2, pushUrl: Ei };
2216
- }
2217
- var ji = W(`@wix/site-service-editor-context`);
2218
- var Mi = W(`@wix/site-service-pages`);
2219
- var Ni = W(`@wix/site-service-router`);
2220
- var Pi = W(`@wix/site-service-renderer-configuration`);
2221
- var Fi = `13d21c63-b5ec-5912-8397-c3a5ddb27a97`;
2222
- var Ii = `shopping_cart`;
2223
- var Li = `thank_you_page`;
2224
- var G = function(e5) {
2211
+ return `./${ki(new URL(e5).pathname.replace(n2, ``).replace(/^\/|\/$/g, ``))}`;
2212
+ }
2213
+ function ji() {
2214
+ let e5 = p(xi), t2 = i(() => e5.currentUrl, [e5]), n2 = d(Oi, t2, t2), r2 = c(() => Ci(new URL(n2)), [n2]), a2 = e5.siteUrl.replace(/\/$/, ``);
2215
+ return { pathname: r2.pathname, search: r2.search, searchParams: r2.searchParams, href: r2.href, getParsedUrl: () => Ci(new URL(e5.currentUrl)), getRelativeUrl: () => Ai(e5.currentUrl, a2), getExternalBaseUrl: () => a2, pushUrl: Di };
2216
+ }
2217
+ var Mi = U(`@wix/site-service-editor-context`);
2218
+ var Ni = U(`@wix/site-service-pages`);
2219
+ var Pi = U(`@wix/site-service-router`);
2220
+ var Fi = U(`@wix/site-service-renderer-configuration`);
2221
+ var Ii = `13d21c63-b5ec-5912-8397-c3a5ddb27a97`;
2222
+ var Li = `shopping_cart`;
2223
+ var Ri = `thank_you_page`;
2224
+ var W = function(e5) {
2225
2225
  return e5.BOOK_ONLINE = `bookingsBookOnline`, e5.SERVICE_PAGE = `bookingsServicePage`, e5.CALENDAR_PAGE = `bookingsCalendar`, e5.FORM_PAGE = `bookingsForm`, e5;
2226
2226
  }({});
2227
- var Ri = `{{(.*?)}}`;
2228
- var zi = `[{{}}]`;
2229
- var Bi = `([^/]+)`;
2230
- var K;
2227
+ var zi = `{{(.*?)}}`;
2228
+ var Bi = `[{{}}]`;
2229
+ var Vi = `([^/]+)`;
2230
+ var G;
2231
2231
  (function(e5) {
2232
2232
  e5.product_page = `product_page`, e5.blog = `blog`, e5.post = `post`, e5.forum = `forum`, e5.group = `group`, e5.bookings = `Booking Service Page`, e5.challenges = `challenge_page`;
2233
- })(K ||= {});
2234
- var q;
2233
+ })(G ||= {});
2234
+ var K;
2235
2235
  (function(e5) {
2236
2236
  e5.PRODUCT_PAGE = `wix.stores.sub_pages.product`, e5.BLOG_POST = `wix.blog.sub_pages.post`, e5.BLOG_POST_EDIT = `wix.blog.sub_pages.post.edit`, e5.BLOG_POST_PREVIEW = `wix.blog.sub_pages.post.preview`, e5.BLOG_CATEGORY = `wix.blog.sub_pages.category`, e5.FORUM_CATEGORY = `wix.forum.sub_pages.category`, e5.FORUM_CATEGORY_PAGINATION = `wix.forum.sub_pages.category.pagination`, e5.FORUM_CATEGORY_CREATE_POST = `wix.forum.sub_pages.category.create-post`, e5.FORUM_CATEGORY_CREATE_QUESTION = `wix.forum.sub_pages.category.create-question`, e5.FORUM_POST = `wix.forum.sub_pages.post`, e5.FORUM_POST_EDIT = `wix.forum.sub_pages.post.edit`, e5.FORUM_POST_PAGINATION = `wix.forum.sub_pages.post.pagination`, e5.FORUM_POST_DEEP_LINK_DATA = `wix.forum.sub_pages.post.deep-link-data`, e5.FORUM_POST_PAGINATION_AND_DEEP_LINK_DATA = `wix.forum.sub_pages.post.pagination-and-deep-link-data`, e5.GROUP = `wix.groups.sub_pages.group`, e5.GROUP_POST = `wix.groups.sub_pages.post`, e5.BOOKINGS_SERVICE = `wix.bookings.sub_pages.service_page`, e5.CHALLENGES_PAGE = `wix.online_programs.sub_pages.online_program`;
2237
- })(q ||= {});
2238
- var Vi = {};
2239
- var Hi = (Vi[q.PRODUCT_PAGE] = { variables: [`slug`], required: [`slug`] }, Vi);
2240
- var J = `{{main-mapping}}`;
2241
- var Ui = {};
2242
- var Wi;
2243
- var Gi = (Ui[q.BLOG_POST] = { variables: [`slug`], required: [`slug`], subMappings: (Wi = {}, Wi[q.BLOG_POST_EDIT] = { defaultMapping: `${J}/edit` }, Wi[q.BLOG_POST_PREVIEW] = { required: [`instance`], defaultMapping: `${J}/preview/{{instance}}` }, Wi) }, Ui);
2244
- var Ki = {};
2245
- var qi = (Ki[q.BLOG_CATEGORY] = { variables: [`slug`], required: [`slug`], defaultPrefix: `categories` }, Ki);
2246
- var Ji = {};
2247
- var Yi;
2237
+ })(K ||= {});
2238
+ var Hi = {};
2239
+ var Ui = (Hi[K.PRODUCT_PAGE] = { variables: [`slug`], required: [`slug`] }, Hi);
2240
+ var q = `{{main-mapping}}`;
2241
+ var Wi = {};
2242
+ var Gi;
2243
+ var Ki = (Wi[K.BLOG_POST] = { variables: [`slug`], required: [`slug`], subMappings: (Gi = {}, Gi[K.BLOG_POST_EDIT] = { defaultMapping: `${q}/edit` }, Gi[K.BLOG_POST_PREVIEW] = { required: [`instance`], defaultMapping: `${q}/preview/{{instance}}` }, Gi) }, Wi);
2244
+ var qi = {};
2245
+ var Ji = (qi[K.BLOG_CATEGORY] = { variables: [`slug`], required: [`slug`], defaultPrefix: `categories` }, qi);
2246
+ var Yi = {};
2247
+ var J;
2248
2248
  var Xi;
2249
- var Zi = (Ji[q.FORUM_POST] = { variables: [`categorySlug`, `postSlug`], required: [`categorySlug`, `postSlug`], subMappings: (Yi = {}, Yi[q.FORUM_POST_EDIT] = { defaultMapping: `${J}/edit` }, Yi[q.FORUM_POST_PAGINATION] = { required: [`page`], defaultMapping: `${J}/p-{{page}}` }, Yi[q.FORUM_POST_DEEP_LINK_DATA] = { required: [`deepLinkData`], defaultMapping: `${J}/dl-{{deepLinkData}}` }, Yi[q.FORUM_POST_PAGINATION_AND_DEEP_LINK_DATA] = { required: [`page`, `deepLinkData`], defaultMapping: `${J}/p-{{page}}/dl-{{deepLinkData}}` }, Yi) }, Ji[q.FORUM_CATEGORY] = { variables: [`slug`], required: [`slug`], subMappings: (Xi = {}, Xi[q.FORUM_CATEGORY_CREATE_POST] = { defaultMapping: `${J}/create-post` }, Xi[q.FORUM_CATEGORY_CREATE_QUESTION] = { defaultMapping: `${J}/create-question` }, Xi[q.FORUM_CATEGORY_PAGINATION] = { required: [`page`], defaultMapping: `${J}/p-{{page}}` }, Xi) }, Ji);
2249
+ var Zi = (Yi[K.FORUM_POST] = { variables: [`categorySlug`, `postSlug`], required: [`categorySlug`, `postSlug`], subMappings: (J = {}, J[K.FORUM_POST_EDIT] = { defaultMapping: `${q}/edit` }, J[K.FORUM_POST_PAGINATION] = { required: [`page`], defaultMapping: `${q}/p-{{page}}` }, J[K.FORUM_POST_DEEP_LINK_DATA] = { required: [`deepLinkData`], defaultMapping: `${q}/dl-{{deepLinkData}}` }, J[K.FORUM_POST_PAGINATION_AND_DEEP_LINK_DATA] = { required: [`page`, `deepLinkData`], defaultMapping: `${q}/p-{{page}}/dl-{{deepLinkData}}` }, J) }, Yi[K.FORUM_CATEGORY] = { variables: [`slug`], required: [`slug`], subMappings: (Xi = {}, Xi[K.FORUM_CATEGORY_CREATE_POST] = { defaultMapping: `${q}/create-post` }, Xi[K.FORUM_CATEGORY_CREATE_QUESTION] = { defaultMapping: `${q}/create-question` }, Xi[K.FORUM_CATEGORY_PAGINATION] = { required: [`page`], defaultMapping: `${q}/p-{{page}}` }, Xi) }, Yi);
2250
2250
  var Qi = {};
2251
- var $i = (Qi[q.GROUP] = { variables: [`groupId`, `tabName`], required: [`groupId`, `tabName`] }, Qi[q.GROUP_POST] = { variables: [`groupId`, `tabName`, `postId`], required: [`groupId`, `tabName`, `postId`] }, Qi);
2251
+ var $i = (Qi[K.GROUP] = { variables: [`groupId`, `tabName`], required: [`groupId`, `tabName`] }, Qi[K.GROUP_POST] = { variables: [`groupId`, `tabName`, `postId`], required: [`groupId`, `tabName`, `postId`] }, Qi);
2252
2252
  var ea = {};
2253
- var ta = (ea[q.BOOKINGS_SERVICE] = { variables: [`slug`], required: [`slug`], defaultPrefix: `service-page` }, ea);
2253
+ var ta = (ea[K.BOOKINGS_SERVICE] = { variables: [`slug`], required: [`slug`], defaultPrefix: `service-page` }, ea);
2254
2254
  var na = {};
2255
- var ra = (na[q.CHALLENGES_PAGE] = { variables: [`slug`], required: [`slug`], defaultPrefix: `challenge-page` }, na);
2255
+ var ra = (na[K.CHALLENGES_PAGE] = { variables: [`slug`], required: [`slug`], defaultPrefix: `challenge-page` }, na);
2256
2256
  var Y = {};
2257
- var ia = (Y[K.product_page] = Hi, Y[K.post] = Gi, Y[K.blog] = qi, Y[K.forum] = Zi, Y[K.group] = $i, Y[K.bookings] = ta, Y[K.challenges] = ra, Y);
2257
+ var ia = (Y[G.product_page] = Ui, Y[G.post] = Ki, Y[G.blog] = Ji, Y[G.forum] = Zi, Y[G.group] = $i, Y[G.bookings] = ta, Y[G.challenges] = ra, Y);
2258
2258
  var aa = function(e5) {
2259
2259
  return Object.values(oa()).some(function(t2) {
2260
2260
  return !!t2?.subMappings?.[e5];
@@ -2262,7 +2262,7 @@ var aa = function(e5) {
2262
2262
  };
2263
2263
  var oa = function() {
2264
2264
  return Object.values(ia).reduce(function(e5, t2) {
2265
- return Br(Br({}, e5), t2);
2265
+ return Vr(Vr({}, e5), t2);
2266
2266
  }, {}) || {};
2267
2267
  };
2268
2268
  var sa = function(e5) {
@@ -2271,26 +2271,26 @@ var sa = function(e5) {
2271
2271
  };
2272
2272
  var ca = function(e5) {
2273
2273
  return Object.entries(ia).filter(function(t2) {
2274
- var n2 = H(t2, 2)[1];
2274
+ var n2 = V(t2, 2)[1];
2275
2275
  return Object.keys(n2).includes(e5);
2276
2276
  }).map(function(e6) {
2277
- return H(e6, 1)[0];
2277
+ return V(e6, 1)[0];
2278
2278
  })[0];
2279
2279
  };
2280
2280
  var la = function(e5) {
2281
2281
  return Object.entries(oa()).find(function(t2) {
2282
- var n2 = H(t2, 2);
2282
+ var n2 = V(t2, 2);
2283
2283
  return n2[0], !!n2[1]?.subMappings?.[e5];
2284
2284
  });
2285
2285
  };
2286
2286
  var ua = function(e5) {
2287
2287
  var t2 = [];
2288
2288
  if (aa(e5)) {
2289
- var n2 = H(la(e5), 2);
2289
+ var n2 = V(la(e5), 2);
2290
2290
  n2[0];
2291
2291
  var r2 = n2[1];
2292
- t2.push.apply(t2, Hr(Hr([], H(r2?.required || []), false), H(r2?.subMappings?.[e5]?.required || []), false));
2293
- } else t2.push.apply(t2, Hr([], H(sa(e5)?.required || []), false));
2292
+ t2.push.apply(t2, Ur(Ur([], V(r2?.required || []), false), V(r2?.subMappings?.[e5]?.required || []), false));
2293
+ } else t2.push.apply(t2, Ur([], V(sa(e5)?.required || []), false));
2294
2294
  return t2;
2295
2295
  };
2296
2296
  var da = function(e5, t2) {
@@ -2302,7 +2302,7 @@ var da = function(e5, t2) {
2302
2302
  var fa = function(e5, t2) {
2303
2303
  return Error(`Url Mappings Error - [${e5}]: ${t2}`);
2304
2304
  };
2305
- var pa = Object.values(q);
2305
+ var pa = Object.values(K);
2306
2306
  var ma = fa(`key`, `must be one of: ${pa.toString()}`);
2307
2307
  var ha = function(e5) {
2308
2308
  if (typeof e5 != `string` || !pa.includes(e5)) return ma;
@@ -2330,7 +2330,7 @@ var ba = function(e5) {
2330
2330
  };
2331
2331
  var xa = function(e5) {
2332
2332
  return function(t2) {
2333
- var n2 = new RegExp(zi, `g`), r2 = t2.replace(n2, ``);
2333
+ var n2 = new RegExp(Bi, `g`), r2 = t2.replace(n2, ``);
2334
2334
  return e5?.[r2];
2335
2335
  };
2336
2336
  };
@@ -2340,13 +2340,13 @@ var Sa = function(e5, t2, n2, r2) {
2340
2340
  if (i2) throw i2;
2341
2341
  var a2 = (da(e5, t2) || {}).mapping, o2 = (r2 || {}).baseUrl;
2342
2342
  if (o2 ??= ``, o2 = o2.endsWith(`/`) ? o2?.slice(0, -1) : o2, a2 && typeof a2 == `string`) {
2343
- var s2 = new RegExp(Ri, `g`), c2 = a2.replace(s2, xa(n2));
2343
+ var s2 = new RegExp(zi, `g`), c2 = a2.replace(s2, xa(n2));
2344
2344
  return o2.concat(`/${c2}`);
2345
2345
  }
2346
2346
  };
2347
2347
  var Ca = /[.*+?^$()|]/g;
2348
2348
  var wa = function(e5) {
2349
- var t2 = e5.replace(Ca, `\\$&`).replace(new RegExp(Ri, `g`), Bi);
2349
+ var t2 = e5.replace(Ca, `\\$&`).replace(new RegExp(zi, `g`), Vi);
2350
2350
  return RegExp(`^${t2}$`);
2351
2351
  };
2352
2352
  var Ta = function(e5, t2) {
@@ -2374,7 +2374,7 @@ var ka = function(e5, t2) {
2374
2374
  });
2375
2375
  };
2376
2376
  var Aa = function(e5) {
2377
- return (e5.match(new RegExp(Ri, `g`))?.length || 0) <= 1;
2377
+ return (e5.match(new RegExp(zi, `g`))?.length || 0) <= 1;
2378
2378
  };
2379
2379
  var ja = function(e5) {
2380
2380
  return e5?.split(`/`).every(Aa);
@@ -2386,7 +2386,7 @@ var Na = function(e5, t2) {
2386
2386
  return t2 === void 0 && (t2 = []), function(n2, r2) {
2387
2387
  var i2 = n2.split(`/`), a2 = n2 === r2;
2388
2388
  if (i2.length < 1 || a2) return true;
2389
- var o2 = H(r2.split(`/`), 1)[0], s2 = H(i2, 1)[0];
2389
+ var o2 = V(r2.split(`/`), 1)[0], s2 = V(i2, 1)[0];
2390
2390
  return t2.includes(s2) ? true : e5.every(function(e6) {
2391
2391
  return e6 === o2 || e6 !== s2;
2392
2392
  });
@@ -2407,12 +2407,12 @@ var Fa = function(e5, t2) {
2407
2407
  }), e5);
2408
2408
  };
2409
2409
  var Ia = function(e5) {
2410
- e5 = e5.replace(new RegExp(Ri, `ig`), ``);
2410
+ e5 = e5.replace(new RegExp(zi, `ig`), ``);
2411
2411
  var t2 = new RegExp(/[^\]_.~!*'();:@&=+$,<>\\#^%?`"]/, `g`), n2 = !/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|[\ud83c[\ude32-\ude3a]|[\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g.test(e5), r2 = !e5.replace(t2, ``);
2412
2412
  return n2 && r2;
2413
2413
  };
2414
2414
  var La = function(e5) {
2415
- var t2 = H(e5, 1)[0], n2 = e5.slice(-1);
2415
+ var t2 = V(e5, 1)[0], n2 = e5.slice(-1);
2416
2416
  return t2 !== `/` && n2 !== `/`;
2417
2417
  };
2418
2418
  var Ra = function(e5, t2) {
@@ -2442,8 +2442,8 @@ var za = function() {
2442
2442
  }, enumerable: false, configurable: true }), e5.prototype.validate = function(e6) {
2443
2443
  var t2, n2;
2444
2444
  try {
2445
- for (var r2 = Vr(this.validators), i2 = r2.next(); !i2.done; i2 = r2.next()) {
2446
- var a2 = H(i2.value, 2), o2 = a2[0], s2 = a2[1], c2 = !!o2(e6, this.validatorProps);
2445
+ for (var r2 = Hr(this.validators), i2 = r2.next(); !i2.done; i2 = r2.next()) {
2446
+ var a2 = V(i2.value, 2), o2 = a2[0], s2 = a2[1], c2 = !!o2(e6, this.validatorProps);
2447
2447
  if (!c2) return { isValid: c2, error: s2 };
2448
2448
  }
2449
2449
  } catch (e7) {
@@ -2460,14 +2460,14 @@ var za = function() {
2460
2460
  }();
2461
2461
  var Ba = function(e5, t2) {
2462
2462
  var n2 = oa()[e5] || { required: [`slug`] }, r2 = n2.required, i2 = n2.defaultPrefix, a2 = {};
2463
- return t2 && typeof t2 == `object` ? (a2.savedPrefix = t2.savedPrefix ?? ``, a2.publishedPrefix = t2.publishedPrefix ?? ``) : (a2.savedPrefix = za.FALLBACK_PATH_PREFIX, a2.publishedPrefix = za.FALLBACK_PATH_PREFIX), { defaultSaved: Hr([a2.savedPrefix, i2], H(r2?.map(function(e6) {
2463
+ return t2 && typeof t2 == `object` ? (a2.savedPrefix = t2.savedPrefix ?? ``, a2.publishedPrefix = t2.publishedPrefix ?? ``) : (a2.savedPrefix = za.FALLBACK_PATH_PREFIX, a2.publishedPrefix = za.FALLBACK_PATH_PREFIX), { defaultSaved: Ur([a2.savedPrefix, i2], V(r2?.map(function(e6) {
2464
2464
  return `{{${e6}}}`;
2465
- })), false).filter(Boolean).join(`/`), defaultPublished: Hr([a2.publishedPrefix, i2], H(r2?.map(function(e6) {
2465
+ })), false).filter(Boolean).join(`/`), defaultPublished: Ur([a2.publishedPrefix, i2], V(r2?.map(function(e6) {
2466
2466
  return `{{${e6}}}`;
2467
2467
  })), false).filter(Boolean).join(`/`) };
2468
2468
  };
2469
2469
  function Va(e5, t2) {
2470
- return t2 ? Sa(e5, q.BOOKINGS_SERVICE, { slug: t2 }, { baseUrl: `` }) : void 0;
2470
+ return t2 ? Sa(e5, K.BOOKINGS_SERVICE, { slug: t2 }, { baseUrl: `` }) : void 0;
2471
2471
  }
2472
2472
  function Ha(e5) {
2473
2473
  if (!e5) return;
@@ -2562,7 +2562,7 @@ var Xa = class extends Ja {
2562
2562
  function Za(e5) {
2563
2563
  let t2 = (n2) => ({ query: n2, async find() {
2564
2564
  try {
2565
- let r2 = e5.requestTransformer(e5.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e5.func(r2), { [We]: a2, [Ge]: o2 } = e5.responseTransformer(i2);
2565
+ let r2 = e5.requestTransformer(e5.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e5.func(r2), { [Ge]: a2, [Ke]: o2 } = e5.responseTransformer(i2);
2566
2566
  if (e5.pagingMethod === `OFFSET`) {
2567
2567
  let e6 = n2;
2568
2568
  return new Xa({ items: a2 ?? [], fetchNextPage: () => t2({ ...e6, paging: { offset: e6.paging.offset + e6.paging.limit, limit: e6.paging.limit } }).find(), fetchPrevPage: () => t2({ ...n2, paging: { offset: Math.max(e6.paging.offset - e6.paging.limit, 0), limit: e6.paging.limit } }).find(), offset: e6.paging.offset, limit: e6.paging.limit, totalCount: o2?.total, tooManyToCount: o2?.tooManyToCount, originQuery: this });
@@ -2643,10 +2643,10 @@ function Za(e5) {
2643
2643
  }
2644
2644
  function Q(e5, t2) {
2645
2645
  let n2 = Object.entries(e5).find(([e6]) => e6 === t2 || t2.startsWith(`${e6}.`))?.[0];
2646
- return n2 ? t2.replace(n2, e5[n2]) : qe(t2, { ...e5, ...Ke });
2646
+ return n2 ? t2.replace(n2, e5[n2]) : Je(t2, { ...e5, ...qe });
2647
2647
  }
2648
2648
  function Qa(e5, t2, n2 = {}) {
2649
- let r2 = (r3, i3) => Qa(e5, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [Je(e5, t2)]: n2 };
2649
+ let r2 = (r3, i3) => Qa(e5, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [Ye(e5, t2)]: n2 };
2650
2650
  return { get filter() {
2651
2651
  return i2();
2652
2652
  }, eq: (e6) => r2(`$eq`, e6), ne: (e6) => r2(`$ne`, e6), gt: (e6) => r2(`$gt`, e6), gte: (e6) => r2(`$gte`, e6), lt: (e6) => r2(`$lt`, e6), lte: (e6) => r2(`$lte`, e6), startsWith: (e6) => r2(`$startsWith`, e6), endsWith: (e6) => r2(`$endsWith`, e6), contains: (e6) => r2(`$contains`, e6), in: (e6) => r2(`$in`, e6), nin: (e6) => r2(`$nin`, e6), hasSome: (e6) => r2(`$hasSome`, e6), hasAll: (e6) => r2(`$hasAll`, e6), exists: (e6 = true) => r2(`$exists`, e6), isEmpty: (e6 = true) => r2(`$isEmpty`, e6), isNotEmpty: () => r2(`$ne`, null) };
@@ -2655,14 +2655,14 @@ function $a(e5) {
2655
2655
  return Object.assign((t2) => Qa(t2, e5), { and: (...e6) => ({ filter: { $and: e6.map((e7) => e7.filter) } }), or: (...e6) => ({ filter: { $or: e6.map((e7) => e7.filter) } }), not: (e6) => ({ filter: { $not: e6.filter } }) });
2656
2656
  }
2657
2657
  function eo(e5) {
2658
- return (t2) => ({ asc: () => ({ sort: { fieldName: Je(t2, e5), order: `ASC` } }), desc: () => ({ sort: { fieldName: Je(t2, e5), order: `DESC` } }) });
2658
+ return (t2) => ({ asc: () => ({ sort: { fieldName: Ye(t2, e5), order: `ASC` } }), desc: () => ({ sort: { fieldName: Ye(t2, e5), order: `DESC` } }) });
2659
2659
  }
2660
2660
  function to(e5) {
2661
2661
  return () => {
2662
2662
  let t2 = {}, n2 = { withFilter(e6) {
2663
2663
  return t2 = { ...t2, filter: e6.filter }, n2;
2664
2664
  }, withFields(...r2) {
2665
- return t2 = { ...t2, fields: r2.map((t3) => Je(t3, e5)) }, n2;
2665
+ return t2 = { ...t2, fields: r2.map((t3) => Ye(t3, e5)) }, n2;
2666
2666
  }, withSorting(...e6) {
2667
2667
  return t2 = { ...t2, sort: e6.map((e7) => e7.sort) }, n2;
2668
2668
  }, withPaging(e6) {
@@ -2711,7 +2711,7 @@ function ho(e5, t2) {
2711
2711
  }
2712
2712
  }
2713
2713
  function go(e5) {
2714
- return Pt(Object.assign(e5, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/v1/serviceOptionsAndVariants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], _: [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/v1/serviceOptionsAndVariants`, destPath: `/v1/serviceOptionsAndVariants` }], "*.dev.wix-code.com": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "editor._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/bookings/v1/serviceOptionsAndVariants`, destPath: `/v1/serviceOptionsAndVariants` }], "bo._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "wixbo.ai": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "wix-bo.com": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "www._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/service-options-and-variants` }] } }));
2714
+ return Ft(Object.assign(e5, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/v1/serviceOptionsAndVariants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], _: [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/v1/serviceOptionsAndVariants`, destPath: `/v1/serviceOptionsAndVariants` }], "*.dev.wix-code.com": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "editor._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/bookings/v1/serviceOptionsAndVariants`, destPath: `/v1/serviceOptionsAndVariants` }], "bo._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "wixbo.ai": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "wix-bo.com": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "www._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/service-options-and-variants` }] } }));
2715
2715
  }
2716
2716
  var _o = `@wix/auto_sdk_bookings_service-options-and-variants`;
2717
2717
  function vo(e5) {
@@ -2733,22 +2733,22 @@ function yo() {
2733
2733
  }
2734
2734
  }, requestTransformer: (e6) => {
2735
2735
  let t3 = [e6, {}];
2736
- return M({ ...t3?.[1], query: t3?.[0] });
2736
+ return j({ ...t3?.[1], query: t3?.[0] });
2737
2737
  }, responseTransformer: ({ data: e6 }) => {
2738
- let t3 = N(F(e6, []));
2738
+ let t3 = M(P(e6, []));
2739
2739
  return { items: t3?.serviceOptionsAndVariantsList, pagingMetadata: t3?.pagingMetadata };
2740
2740
  }, errorTransformer: (e6) => {
2741
- throw I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2741
+ throw F(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2742
2742
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
2743
2743
  }
2744
2744
  async function bo(e5) {
2745
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = vo(M({ query: e5 }));
2745
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = vo(j({ query: e5 }));
2746
2746
  n2?.onSiteCall?.();
2747
2747
  try {
2748
2748
  let e6 = await t2.request(r2);
2749
- return n2?.onSuccess?.(e6), N(e6.data);
2749
+ return n2?.onSuccess?.(e6), M(e6.data);
2750
2750
  } catch (e6) {
2751
- let t3 = I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
2751
+ let t3 = F(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
2752
2752
  throw n2?.onError?.(e6), t3;
2753
2753
  }
2754
2754
  }
@@ -2765,19 +2765,19 @@ function Co(e5) {
2765
2765
  }
2766
2766
  return n2;
2767
2767
  }
2768
- var wo = Mt(Co);
2768
+ var wo = Nt(Co);
2769
2769
  function To(e5) {
2770
2770
  if (e5) return e5.url;
2771
2771
  }
2772
2772
  var Eo = [{ path: `services.createdDate` }, { path: `services.updatedDate` }, { path: `services.media.items.image.urlExpirationDate` }, { path: `services.media.mainMedia.image.urlExpirationDate` }, { path: `services.media.coverMedia.image.urlExpirationDate` }, { path: `services.payment.subscription.recurringStartDate` }, { path: `services.bookingPolicy.createdDate` }, { path: `services.bookingPolicy.updatedDate` }, { path: `services.schedule.firstSessionStart` }, { path: `services.schedule.lastSessionEnd` }, { path: `services.staffMembers.mainMedia.image.urlExpirationDate` }, { path: `services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate` }, { path: `services.supportedSlugs.createdDate` }, { path: `services.mainSlug.createdDate` }];
2773
2773
  var Do = [{ path: `services.locations.business.address.geocode.latitude` }, { path: `services.locations.business.address.geocode.longitude` }, { path: `services.locations.custom.address.geocode.latitude` }, { path: `services.locations.custom.address.geocode.longitude` }, { path: `services.locations.calculatedAddress.geocode.latitude` }, { path: `services.locations.calculatedAddress.geocode.longitude` }];
2774
2774
  function Oo(e5) {
2775
- return Pt(Object.assign(e5, { domainToMappings: { "*.dev.wix-code.com": [{ srcPath: `/_api/services-2`, destPath: `` }, { srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "www.wixapis.com": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }, { srcPath: `/bookings/services/v2/bulk/services`, destPath: `/v2/bulk/services` }], "manage._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "editor._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "blocks._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "create.editorx": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], _: [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "www._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "bo._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "wixbo.ai": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "wix-bo.com": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "editor.wixapps.net": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "api._api_base_domain_": [{ srcPath: `/services-2`, destPath: `` }] } }));
2775
+ return Ft(Object.assign(e5, { domainToMappings: { "*.dev.wix-code.com": [{ srcPath: `/_api/services-2`, destPath: `` }, { srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "www.wixapis.com": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }, { srcPath: `/bookings/services/v2/bulk/services`, destPath: `/v2/bulk/services` }], "manage._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "editor._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "blocks._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "create.editorx": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], _: [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "www._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "bo._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "wixbo.ai": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "wix-bo.com": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "editor.wixapps.net": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "api._api_base_domain_": [{ srcPath: `/services-2`, destPath: `` }] } }));
2776
2776
  }
2777
2777
  var ko = `@wix/auto_sdk_bookings_services`;
2778
2778
  function Ao(e5) {
2779
2779
  function t2({ host: t3 }) {
2780
- return { entityFqdn: `wix.bookings.services.v2.service`, method: `POST`, methodFqn: `wix.bookings.services.v2.ServicesService.QueryServices`, packageName: ko, migrationOptions: { optInTransformResponse: true }, url: Oo({ protoPath: `/v2/services/query`, data: e5, host: t3 }), data: e5, transformResponse: (e6) => F(e6, [{ transformFn: P, paths: Eo }, { transformFn: cn, paths: Do }]) };
2780
+ return { entityFqdn: `wix.bookings.services.v2.service`, method: `POST`, methodFqn: `wix.bookings.services.v2.ServicesService.QueryServices`, packageName: ko, migrationOptions: { optInTransformResponse: true }, url: Oo({ protoPath: `/v2/services/query`, data: e5, host: t3 }), data: e5, transformResponse: (e6) => P(e6, [{ transformFn: N, paths: Eo }, { transformFn: ln, paths: Do }]) };
2781
2781
  }
2782
2782
  return t2;
2783
2783
  }
@@ -2800,22 +2800,22 @@ function Lo(e5) {
2800
2800
  }
2801
2801
  }, requestTransformer: (t3) => {
2802
2802
  let n3 = [t3, e5];
2803
- return M({ ...n3?.[1], query: n3?.[0] });
2803
+ return j({ ...n3?.[1], query: n3?.[0] });
2804
2804
  }, responseTransformer: ({ data: e6 }) => {
2805
- let t3 = N(F(e6, [{ transformFn: Ha, paths: jo }, { transformFn: ln, paths: Mo }, { transformFn: To, paths: No }]));
2805
+ let t3 = M(P(e6, [{ transformFn: Ha, paths: jo }, { transformFn: un, paths: Mo }, { transformFn: To, paths: No }]));
2806
2806
  return { items: t3?.services, pagingMetadata: t3?.pagingMetadata };
2807
2807
  }, errorTransformer: (e6) => {
2808
- throw I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2808
+ throw F(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2809
2809
  }, pagingMethod: `OFFSET`, transformationPaths: {} });
2810
2810
  }
2811
2811
  async function Ro(e5, t2) {
2812
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Ao(M({ query: e5, ...t2 }));
2812
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Ao(j({ query: e5, ...t2 }));
2813
2813
  r2?.onSiteCall?.();
2814
2814
  try {
2815
2815
  let e6 = await n2.request(i2);
2816
- return r2?.onSuccess?.(e6), N(F(e6.data, [{ transformFn: Ha, paths: jo }, { transformFn: ln, paths: Mo }, { transformFn: To, paths: No }]));
2816
+ return r2?.onSuccess?.(e6), M(P(e6.data, [{ transformFn: Ha, paths: jo }, { transformFn: un, paths: Mo }, { transformFn: To, paths: No }]));
2817
2817
  } catch (e6) {
2818
- let t3 = I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
2818
+ let t3 = F(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
2819
2819
  throw r2?.onError?.(e6), t3;
2820
2820
  }
2821
2821
  }
@@ -2832,40 +2832,40 @@ function Vo(e5) {
2832
2832
  }
2833
2833
  return n2;
2834
2834
  }
2835
- var Ho = Mt(Vo);
2835
+ var Ho = Nt(Vo);
2836
2836
  var Uo = [{ path: `bookingsSettings.createdDate` }, { path: `bookingsSettings.updatedDate` }];
2837
2837
  var Wo = [{ path: `bookingsSettings.siteProperties.address.coordinates.latitude` }, { path: `bookingsSettings.siteProperties.address.coordinates.longitude` }];
2838
2838
  function Go(e5) {
2839
- return Pt(Object.assign(e5, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "dev._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], _: [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "api._api_base_domain_": [{ srcPath: `/bookings-settings`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "editor.wixapps.net": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }] } }));
2839
+ return Ft(Object.assign(e5, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "dev._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], _: [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "api._api_base_domain_": [{ srcPath: `/bookings-settings`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "editor.wixapps.net": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }] } }));
2840
2840
  }
2841
2841
  var Ko = `@wix/auto_sdk_bookings_bookings-settings`;
2842
2842
  function qo(e5) {
2843
2843
  function t2({ host: t3 }) {
2844
- return { entityFqdn: `wix.bookings.v2.bookings_settings`, method: `GET`, methodFqn: `wix.bookings.settings.v2.BookingsSettingsService.GetBookingsSettings`, packageName: Ko, migrationOptions: { optInTransformResponse: true }, url: Go({ protoPath: `/v2/settings`, data: e5, host: t3 }), params: Nt(e5), transformResponse: (e6) => F(e6, [{ transformFn: P, paths: Uo }, { transformFn: cn, paths: Wo }]), fallback: [{ method: `GET`, url: Go({ protoPath: `/v2/settings`, data: e5, host: t3 }), params: Nt(e5) }] };
2844
+ return { entityFqdn: `wix.bookings.v2.bookings_settings`, method: `GET`, methodFqn: `wix.bookings.settings.v2.BookingsSettingsService.GetBookingsSettings`, packageName: Ko, migrationOptions: { optInTransformResponse: true }, url: Go({ protoPath: `/v2/settings`, data: e5, host: t3 }), params: Pt(e5), transformResponse: (e6) => P(e6, [{ transformFn: N, paths: Uo }, { transformFn: ln, paths: Wo }]), fallback: [{ method: `GET`, url: Go({ protoPath: `/v2/settings`, data: e5, host: t3 }), params: Pt(e5) }] };
2845
2845
  }
2846
2846
  return t2;
2847
2847
  }
2848
2848
  var Jo = ((e5) => (e5.BUSINESS_TIME_ZONE = `BUSINESS_TIME_ZONE`, e5.CUSTOMER_TIME_ZONE = `CUSTOMER_TIME_ZONE`, e5))(Jo || {});
2849
2849
  async function Yo() {
2850
- let { httpClient: e5, sideEffects: t2 } = arguments[0], n2 = qo(M({}));
2850
+ let { httpClient: e5, sideEffects: t2 } = arguments[0], n2 = qo(j({}));
2851
2851
  t2?.onSiteCall?.();
2852
2852
  try {
2853
2853
  let r2 = await e5.request(n2);
2854
- return t2?.onSuccess?.(r2), N(r2.data)?.bookingsSettings;
2854
+ return t2?.onSuccess?.(r2), M(r2.data)?.bookingsSettings;
2855
2855
  } catch (e6) {
2856
- let n3 = I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: {}, singleArgumentUnchanged: false }, []);
2856
+ let n3 = F(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: {}, singleArgumentUnchanged: false }, []);
2857
2857
  throw t2?.onError?.(e6), n3;
2858
2858
  }
2859
2859
  }
2860
2860
  function Xo(e5) {
2861
2861
  return () => Yo({ httpClient: e5 });
2862
2862
  }
2863
- var Zo = Mt(Xo);
2863
+ var Zo = Nt(Xo);
2864
2864
  var Qo = (e5) => e5 === Po.APPOINTMENT;
2865
2865
  var $o = (e5) => e5.payment?.rateType === Fo.VARIED;
2866
2866
  var es = [`STAFF_MEMBER_DETAILS`, `STAFF_WORKING_HOURS_LOCATIONS`, `DISCOUNT_INFO_DETAILS`];
2867
2867
  function ts() {
2868
- return Ho({ conditionalFields: es }).eq(`appId`, Fi).eq(`hidden`, false);
2868
+ return Ho({ conditionalFields: es }).eq(`appId`, Ii).eq(`hidden`, false);
2869
2869
  }
2870
2870
  async function ns({ limit: e5, offset: t2, categoryId: n2, locationId: r2, serviceIds: i2, categoryIds: a2 }) {
2871
2871
  if (n2 && a2?.length && !a2.includes(n2)) return { services: [], hasMore: false, totalPages: 1 };
@@ -2886,11 +2886,11 @@ function as(e5, t2, n2) {
2886
2886
  function os(e5, t2) {
2887
2887
  switch (e5) {
2888
2888
  case `servicePage`:
2889
- return (t2.slug ? t2.buildCustomServiceUrl(t2.slug) : void 0) ?? as(t2.appSectionUrl, G.SERVICE_PAGE, t2.slug);
2889
+ return (t2.slug ? t2.buildCustomServiceUrl(t2.slug) : void 0) ?? as(t2.appSectionUrl, W.SERVICE_PAGE, t2.slug);
2890
2890
  case `bookingCalendar`:
2891
- return t2.isMultiService ? is(t2.appSectionUrl, G.CALENDAR_PAGE) : as(t2.appSectionUrl, G.CALENDAR_PAGE, t2.slug);
2891
+ return t2.isMultiService ? is(t2.appSectionUrl, W.CALENDAR_PAGE) : as(t2.appSectionUrl, W.CALENDAR_PAGE, t2.slug);
2892
2892
  case `bookingForm`:
2893
- return t2.serviceId ? as(t2.appSectionUrl, G.FORM_PAGE, t2.slug) : null;
2893
+ return t2.serviceId ? as(t2.appSectionUrl, W.FORM_PAGE, t2.slug) : null;
2894
2894
  default:
2895
2895
  return null;
2896
2896
  }
@@ -2900,24 +2900,24 @@ var cs = (e5, t2) => t2 === `/` ? e5 : new URL(`.${t2}`, `${e5}/`).href;
2900
2900
  var ls = (e5, t2, n2) => n2 ? `.${t2}` : us(e5, t2);
2901
2901
  var us = (e5, t2) => e5 ? cs(e5, t2) : t2;
2902
2902
  var ds = () => {
2903
- let { previewMode: e5 } = p(ji), t2 = p(bi), n2 = t2.siteUrl.replace(/\/$/, ``), { navigateTo: r2 } = p(Ni), a2 = p(Pi), o2 = f(), s2 = i(async (t3) => {
2903
+ let { previewMode: e5 } = p(Mi), t2 = p(xi), n2 = t2.siteUrl.replace(/\/$/, ``), { navigateTo: r2 } = p(Pi), a2 = p(Fi), o2 = f(), s2 = i(async (t3) => {
2904
2904
  let i2 = ls(n2, t3, e5);
2905
2905
  await r2({ href: i2 });
2906
2906
  }, [e5, n2, r2]), c2 = i(async (e6) => {
2907
2907
  await r2(ss(e6) ? { href: e6.href, type: `ExternalLink`, target: `_blank` } : { href: e6.href });
2908
- }, [r2]), l2 = i((e6) => us(n2, e6), [n2]), u2 = i((e6) => t2.appSectionRelativeUrl(Fi, e6), [t2]), d2 = i((e6) => Va(a2.urlMappings, e6), [a2]), m2 = i((e6, t3) => os(e6, { ...t3, appSectionUrl: u2, buildCustomServiceUrl: d2 }), [u2, d2]), h2 = i((e6, t3) => {
2908
+ }, [r2]), l2 = i((e6) => us(n2, e6), [n2]), u2 = i((e6) => t2.appSectionRelativeUrl(Ii, e6), [t2]), d2 = i((e6) => Va(a2.urlMappings, e6), [a2]), m2 = i((e6, t3) => os(e6, { ...t3, appSectionUrl: u2, buildCustomServiceUrl: d2 }), [u2, d2]), h2 = i((e6, t3) => {
2909
2909
  let r3 = m2(e6, t3);
2910
2910
  return r3 && n2 ? cs(n2, r3) : null;
2911
2911
  }, [m2, n2]), g2 = i((e6, t3) => {
2912
2912
  let n3 = m2(e6, t3);
2913
2913
  n3 && s2(n3);
2914
- }, [m2, s2]), _2 = i(() => u2(G.FORM_PAGE) || void 0, [u2]), v2 = i((e6) => Object.values(o2(Mi).pages).some((t3) => t3.appPageId === e6 && (!t3.appDefinitionId || t3.appDefinitionId === `1380b703-ce81-ff05-f115-39571d94dfcd`)) && t2.appSectionRelativeUrl(`1380b703-ce81-ff05-f115-39571d94dfcd`, e6) || void 0, [t2, o2]);
2915
- return { navigate: s2, navigateToHref: c2, resolvePath: m2, toHref: l2, resolveAbsoluteUrl: h2, navigateTo: g2, getBookingFormPath: _2, getCartPagePath: i(() => v2(Ii), [v2]), getThankYouPagePath: i((e6) => {
2916
- let t3 = v2(Li);
2914
+ }, [m2, s2]), _2 = i(() => u2(W.FORM_PAGE) || void 0, [u2]), v2 = i((e6) => Object.values(o2(Ni).pages).some((t3) => t3.appPageId === e6 && (!t3.appDefinitionId || t3.appDefinitionId === `1380b703-ce81-ff05-f115-39571d94dfcd`)) && t2.appSectionRelativeUrl(`1380b703-ce81-ff05-f115-39571d94dfcd`, e6) || void 0, [t2, o2]);
2915
+ return { navigate: s2, navigateToHref: c2, resolvePath: m2, toHref: l2, resolveAbsoluteUrl: h2, navigateTo: g2, getBookingFormPath: _2, getCartPagePath: i(() => v2(Li), [v2]), getThankYouPagePath: i((e6) => {
2916
+ let t3 = v2(Ri);
2917
2917
  return t3 ? `${t3}/${e6}?origin=bookings` : void 0;
2918
2918
  }, [v2]) };
2919
2919
  };
2920
- var fs = W(`@wix/site-service-warmup-data`);
2920
+ var fs = U(`@wix/site-service-warmup-data`);
2921
2921
  function ps() {
2922
2922
  try {
2923
2923
  return f();
@@ -2939,7 +2939,7 @@ function hs() {
2939
2939
  try {
2940
2940
  return await e5.get(n2);
2941
2941
  } catch (e6) {
2942
- return fi(e6, { feature: U.warmup, action: `read`, level: `warning`, contexts: { warmup: { key: n2 } } }), null;
2942
+ return pi(e6, { feature: H.warmup, action: `read`, level: `warning`, contexts: { warmup: { key: n2 } } }), null;
2943
2943
  }
2944
2944
  }, set: (n2, r2) => {
2945
2945
  if (t2 && e5) try {
@@ -2948,12 +2948,12 @@ function hs() {
2948
2948
  }
2949
2949
  } };
2950
2950
  }
2951
- var gs = W(`@wix/site-service-locale`);
2952
- var _s = W;
2951
+ var gs = U(`@wix/site-service-locale`);
2952
+ var _s = U;
2953
2953
  var vs = _s(`@wix/viewer-service-multilingual`);
2954
2954
  function ys() {
2955
2955
  try {
2956
- return si.getLanguage() ?? `en`;
2956
+ return ci.getLanguage() ?? `en`;
2957
2957
  } catch {
2958
2958
  return `en`;
2959
2959
  }
@@ -2970,96 +2970,85 @@ function xs() {
2970
2970
  return t2?.multilingualEnabled && t2.currentLocale?.languageCode || e5?.language || ys();
2971
2971
  }
2972
2972
  function Ss() {
2973
- return p(Pi).currency;
2973
+ return p(Fi).currency;
2974
2974
  }
2975
2975
  function Cs() {
2976
- return globalThis.commonConfig?.currency;
2976
+ return bs(gs)?.currency;
2977
2977
  }
2978
- function ws(e5) {
2979
- let t2 = globalThis.window;
2980
- if (!t2) return () => {
2981
- };
2982
- let n2 = t2.navigation, r2 = true, i2 = () => queueMicrotask(() => {
2983
- r2 && e5();
2984
- });
2985
- return n2?.addEventListener(`currententrychange`, i2), t2.addEventListener(`popstate`, e5), () => {
2986
- r2 = false, n2?.removeEventListener(`currententrychange`, i2), t2.removeEventListener(`popstate`, e5);
2987
- };
2978
+ var ws = /^[A-Z]{3}$/;
2979
+ function Ts(e5) {
2980
+ return ws.test(e5) ? typeof Intl.supportedValuesOf != `function` || Intl.supportedValuesOf(`currency`).includes(e5) : false;
2988
2981
  }
2989
- var Ts = /^[A-Z]{3}$/;
2990
2982
  function Es(e5) {
2991
- return Ts.test(e5) ? typeof Intl.supportedValuesOf != `function` || Intl.supportedValuesOf(`currency`).includes(e5) : false;
2992
- }
2993
- function Ds(e5) {
2994
2983
  let t2 = e5?.toUpperCase();
2995
- return t2 && Es(t2) ? t2 : null;
2984
+ return t2 && Ts(t2) ? t2 : null;
2996
2985
  }
2997
- function Os(e5, t2) {
2998
- let n2 = Ds(e5);
2999
- return n2 && n2 !== Ds(t2) ? n2 : null;
2986
+ function Ds(e5, t2) {
2987
+ let n2 = Es(e5);
2988
+ return n2 && n2 !== Es(t2) ? n2 : null;
3000
2989
  }
3001
- function ks() {
3002
- let e5 = d(ws, Cs, Cs), t2 = Ss();
3003
- return o(Os(e5, t2));
2990
+ function Os() {
2991
+ let e5 = Cs(), t2 = Ss();
2992
+ return o(Ds(e5, t2));
3004
2993
  }
3005
- var As = `bookings-uou`;
3006
- function js(e5) {
2994
+ var ks = `bookings-uou`;
2995
+ function As(e5) {
3007
2996
  return e5 ? `:currency-${e5}` : ``;
3008
2997
  }
3009
- function Ms(e5, t2, n2, r2, i2, a2, o2 = [], s2 = []) {
2998
+ function js(e5, t2, n2, r2, i2, a2, o2 = [], s2 = []) {
3010
2999
  let c2 = o2.length ? `:ids-${encodeURIComponent(JSON.stringify([...o2].sort()))}` : ``, l2 = s2.length ? `:cats-${encodeURIComponent(JSON.stringify([...s2].sort()))}` : ``;
3011
- return `${As}:${e5}:services:${n2 ?? `all`}:${r2 ?? `all`}:page-${i2}:limit-${a2}${c2}${l2}${js(t2)}`;
3000
+ return `${ks}:${e5}:services:${n2 ?? `all`}:${r2 ?? `all`}:page-${i2}:limit-${a2}${c2}${l2}${As(t2)}`;
3012
3001
  }
3013
- function Ns(e5, t2, n2, r2) {
3014
- return `${As}:${e5}:services-variants:ids-${encodeURIComponent(JSON.stringify([...n2].sort()))}:refresh-${r2}${js(t2)}`;
3002
+ function Ms(e5, t2, n2, r2) {
3003
+ return `${ks}:${e5}:services-variants:ids-${encodeURIComponent(JSON.stringify([...n2].sort()))}:refresh-${r2}${As(t2)}`;
3015
3004
  }
3016
- function Ps() {
3017
- return `${As}:bookings-settings`;
3005
+ function Ns() {
3006
+ return `${ks}:bookings-settings`;
3018
3007
  }
3019
- var Fs = 5e3;
3020
- var Is = 100;
3021
- var Ls = `wix-warmup-data`;
3022
- var Rs = null;
3023
- function zs(e5) {
3008
+ var Ps = 5e3;
3009
+ var Fs = 100;
3010
+ var Is = `wix-warmup-data`;
3011
+ var Ls = null;
3012
+ function Rs(e5) {
3024
3013
  if (typeof document < `u`) try {
3025
- let t2 = document.getElementById(Ls)?.textContent;
3026
- return t2 ? (Rs?.text !== t2 && (Rs = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), Rs.data[e5] ?? void 0) : void 0;
3014
+ let t2 = document.getElementById(Is)?.textContent;
3015
+ return t2 ? (Ls?.text !== t2 && (Ls = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), Ls.data[e5] ?? void 0) : void 0;
3027
3016
  } catch {
3028
3017
  return;
3029
3018
  }
3030
3019
  }
3031
- var Bs = () => ({ promises: /* @__PURE__ */ new Map(), invalidatedWarmup: /* @__PURE__ */ new Set() });
3032
- var Vs = Bs();
3020
+ var zs = () => ({ promises: /* @__PURE__ */ new Map(), invalidatedWarmup: /* @__PURE__ */ new Set() });
3021
+ var Bs = zs();
3022
+ var Vs = /* @__PURE__ */ new WeakMap();
3033
3023
  var Hs = /* @__PURE__ */ new WeakMap();
3034
- var Us = /* @__PURE__ */ new WeakMap();
3035
- function Ws(e5) {
3036
- if (!e5) return Vs;
3037
- let t2 = Hs.get(e5);
3038
- return t2 || (t2 = Bs(), Hs.set(e5, t2)), t2;
3024
+ function Us(e5) {
3025
+ if (!e5) return Bs;
3026
+ let t2 = Vs.get(e5);
3027
+ return t2 || (t2 = zs(), Vs.set(e5, t2)), t2;
3039
3028
  }
3040
- function Gs({ key: e5, warmupData: t2, fetchData: n2, refresh: r2 = false }) {
3029
+ function Ws({ key: e5, warmupData: t2, fetchData: n2, refresh: r2 = false }) {
3041
3030
  if (e5 === null) return n2();
3042
3031
  if (typeof window > `u`) {
3043
3032
  let r3 = () => n2().then((n3) => (t2.set(e5, n3), n3)), { scope: i3 } = t2;
3044
3033
  if (!i3) return r3();
3045
- let a3 = Us.get(i3);
3046
- a3 || (a3 = /* @__PURE__ */ new Map(), Us.set(i3, a3));
3034
+ let a3 = Hs.get(i3);
3035
+ a3 || (a3 = /* @__PURE__ */ new Map(), Hs.set(i3, a3));
3047
3036
  let o3 = a3.get(e5);
3048
3037
  if (o3) return o3;
3049
3038
  let s3 = r3();
3050
3039
  return a3.set(e5, s3), s3.catch(() => a3.delete(e5)), s3;
3051
3040
  }
3052
- let i2 = Ws(t2.scope), a2 = Date.now();
3041
+ let i2 = Us(t2.scope), a2 = Date.now();
3053
3042
  for (let [e6, t3] of i2.promises) t3.expiresAt <= a2 && i2.promises.delete(e6);
3054
3043
  let o2 = i2.promises.get(e5);
3055
3044
  if (o2 && !r2) return o2.promise;
3056
3045
  r2 && i2.invalidatedWarmup.add(e5);
3057
3046
  let s2 = !i2.invalidatedWarmup.has(e5);
3058
3047
  if (s2) {
3059
- let t3 = zs(e5);
3048
+ let t3 = Rs(e5);
3060
3049
  if (t3 !== void 0) {
3061
- let n3 = _i(t3);
3062
- return i2.promises.set(e5, { promise: n3, expiresAt: a2 + Fs }), n3;
3050
+ let n3 = vi(t3);
3051
+ return i2.promises.set(e5, { promise: n3, expiresAt: a2 + Ps }), n3;
3063
3052
  }
3064
3053
  }
3065
3054
  let c2 = (async () => {
@@ -3069,62 +3058,62 @@ function Gs({ key: e5, warmupData: t2, fetchData: n2, refresh: r2 = false }) {
3069
3058
  }
3070
3059
  return n2();
3071
3060
  })();
3072
- i2.promises.size >= Is && i2.promises.delete(i2.promises.keys().next().value);
3061
+ i2.promises.size >= Fs && i2.promises.delete(i2.promises.keys().next().value);
3073
3062
  let l2 = { promise: c2, expiresAt: 1 / 0 };
3074
3063
  return i2.promises.set(e5, l2), c2.then(() => {
3075
- l2.expiresAt = Date.now() + Fs;
3064
+ l2.expiresAt = Date.now() + Ps;
3076
3065
  }, () => {
3077
3066
  i2.promises.get(e5) === l2 && i2.promises.delete(e5);
3078
3067
  }), c2;
3079
3068
  }
3080
- var Ks = 100;
3081
- async function qs(e5) {
3069
+ var Gs = 100;
3070
+ async function Ks(e5) {
3082
3071
  if (e5.length === 0) return {};
3083
3072
  let t2 = [];
3084
- for (let n3 = 0; n3 < e5.length; n3 += Ks) t2.push(e5.slice(n3, n3 + Ks));
3085
- let n2 = await Promise.all(t2.map((e6) => wo().in(`serviceId`, e6).limit(Ks).find())), r2 = {};
3073
+ for (let n3 = 0; n3 < e5.length; n3 += Gs) t2.push(e5.slice(n3, n3 + Gs));
3074
+ let n2 = await Promise.all(t2.map((e6) => wo().in(`serviceId`, e6).limit(Gs).find())), r2 = {};
3086
3075
  for (let e6 of n2.flatMap((e7) => e7.items ?? [])) e6.serviceId && (r2[e6.serviceId] = e6);
3087
3076
  return r2;
3088
3077
  }
3089
- var Js = W(`@wix/site-service-rendering-context`);
3090
- var Ys = () => {
3091
- let { SSR: e5 } = p(Js);
3078
+ var qs = U(`@wix/site-service-rendering-context`);
3079
+ var Js = () => {
3080
+ let { SSR: e5 } = p(qs);
3092
3081
  return { isSSR: () => e5 };
3093
3082
  };
3094
- var Xs = _s(`@wix/site-service-business-logger`);
3095
- function Zs(e5) {
3083
+ var Ys = _s(`@wix/site-service-business-logger`);
3084
+ function Xs(e5) {
3096
3085
  return { evid: 1222, src: 16, endpoint: ``, params: e5 };
3097
3086
  }
3098
- function Qs(e5) {
3087
+ function Zs(e5) {
3099
3088
  return { evid: 32, src: 16, endpoint: ``, params: e5 };
3100
3089
  }
3101
- var $s = { SERVICES: `services_context`, SERVICE: `service_context`, TIME_SLOTS: `time_slots_context`, BOOKING_CHECKOUT: `booking_checkout_context`, CATEGORIES: `categories_context`, LOCATIONS: `locations_context`, SERVICE_ADD_ONS: `service_addons_context`, PREFERENCES: `preferences_context` };
3102
- var ec = G.BOOK_ONLINE;
3103
- var tc = `new_bookings_server`;
3104
- var nc = `load more`;
3105
- var rc = (e5) => {
3106
- let { reportBi: t2 } = p(Xs);
3090
+ var Qs = { SERVICES: `services_context`, SERVICE: `service_context`, TIME_SLOTS: `time_slots_context`, BOOKING_CHECKOUT: `booking_checkout_context`, CATEGORIES: `categories_context`, LOCATIONS: `locations_context`, SERVICE_ADD_ONS: `service_addons_context`, PREFERENCES: `preferences_context` };
3091
+ var $s = W.BOOK_ONLINE;
3092
+ var ec = `new_bookings_server`;
3093
+ var tc = `load more`;
3094
+ var nc = (e5) => {
3095
+ let { reportBi: t2 } = p(Ys);
3107
3096
  return i((n2) => {
3108
- t2({ widget_name: e5, bookingsPlatform: tc, is_over_editor: false, ...n2.params, src: n2.src, evid: n2.evid }, { endpoint: n2.endpoint });
3097
+ t2({ widget_name: e5, bookingsPlatform: ec, is_over_editor: false, ...n2.params, src: n2.src, evid: n2.evid }, { endpoint: n2.endpoint });
3109
3098
  }, [t2, e5]);
3110
3099
  };
3111
- function ic(e5) {
3100
+ function rc(e5) {
3112
3101
  return { evid: 540, src: 16, endpoint: `wixboost-ugc`, params: e5 };
3113
3102
  }
3114
- var ac = W(`seo/seo-service`);
3115
- function oc() {
3103
+ var ic = U(`seo/seo-service`);
3104
+ function ac() {
3116
3105
  let e5 = f();
3117
3106
  try {
3118
- return e5(ac);
3107
+ return e5(ic);
3119
3108
  } catch {
3120
3109
  return null;
3121
3110
  }
3122
3111
  }
3123
- function sc() {
3124
- let e5 = oc();
3112
+ function oc() {
3113
+ let e5 = ac();
3125
3114
  return { resolved: !!e5, send: (t2) => {
3126
3115
  if (!e5) return Promise.resolve(`unavailable`);
3127
- let n2 = (e6) => fi(e6, { feature: U.seo, action: `send-seo-entity`, level: `warning`, contexts: { seo: { itemType: t2.itemType } } });
3116
+ let n2 = (e6) => pi(e6, { feature: H.seo, action: `send-seo-entity`, level: `warning`, contexts: { seo: { itemType: t2.itemType } } });
3128
3117
  try {
3129
3118
  return e5.setSeoEntity(t2).then(() => `sent`).catch((e6) => (n2(e6), `failed`));
3130
3119
  } catch (e6) {
@@ -3132,38 +3121,38 @@ function sc() {
3132
3121
  }
3133
3122
  } };
3134
3123
  }
3135
- var cc = `SERVICES_COMPONENT`;
3136
- var lc = `PAGINATED_COMPONENT`;
3137
- function uc(e5, t2, n2) {
3138
- return { itemType: cc, itemData: { services: e5.map((e6) => ({ ...e6, urls: { servicePage: { url: t2(e6) ?? `` } } })), pagination: n2 } };
3124
+ var sc = `SERVICES_COMPONENT`;
3125
+ var cc = `PAGINATED_COMPONENT`;
3126
+ function lc(e5, t2, n2) {
3127
+ return { itemType: sc, itemData: { services: e5.map((e6) => ({ ...e6, urls: { servicePage: { url: t2(e6) ?? `` } } })), pagination: n2 } };
3139
3128
  }
3140
- function dc(e5) {
3141
- return { itemType: lc, itemData: { pagination: e5 } };
3129
+ function uc(e5) {
3130
+ return { itemType: cc, itemData: { pagination: e5 } };
3142
3131
  }
3143
- var fc = /* @__PURE__ */ new WeakSet();
3144
- function pc({ servicesPromise: e5, currentPage: t2, pageQueryParam: n2 }) {
3145
- let { services: r2, totalPages: i2 } = gi(e5), { resolveAbsoluteUrl: a2 } = ds(), { send: o2 } = sc();
3132
+ var dc = /* @__PURE__ */ new WeakSet();
3133
+ function fc({ servicesPromise: e5, currentPage: t2, pageQueryParam: n2 }) {
3134
+ let { services: r2, totalPages: i2 } = _i(e5), { resolveAbsoluteUrl: a2 } = ds(), { send: o2 } = oc();
3146
3135
  return u(() => {
3147
- if (fc.has(e5)) return true;
3148
- fc.add(e5);
3136
+ if (dc.has(e5)) return true;
3137
+ dc.add(e5);
3149
3138
  let s2 = { currentPage: t2, totalPages: i2, queryParam: n2 };
3150
- return o2(uc(r2, (e6) => a2(`servicePage`, { slug: e6.mainSlug?.name ?? null, serviceId: e6._id ?? null }), s2)), i2 > 1 && o2(dc(s2)), true;
3139
+ return o2(lc(r2, (e6) => a2(`servicePage`, { slug: e6.mainSlug?.name ?? null, serviceId: e6._id ?? null }), s2)), i2 > 1 && o2(uc(s2)), true;
3151
3140
  }), null;
3152
3141
  }
3153
- function mc(e5) {
3154
- return Pt(Object.assign(e5, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/events-3`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }, { srcPath: `/_api/calendar/v3/ro/events`, destPath: `/v3/events` }], "www.wixapis.com": [{ srcPath: `/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], _: [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "*.dev.wix-code.com": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "editor._base_domain_": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "blocks._base_domain_": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "create.editorx": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }] } }));
3142
+ function pc(e5) {
3143
+ return Ft(Object.assign(e5, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/events-3`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }, { srcPath: `/_api/calendar/v3/ro/events`, destPath: `/v3/events` }], "www.wixapis.com": [{ srcPath: `/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], _: [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "*.dev.wix-code.com": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "editor._base_domain_": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "blocks._base_domain_": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "create.editorx": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }] } }));
3155
3144
  }
3156
- var hc = `@wix/auto_sdk_calendar_events`;
3157
- function gc(e5) {
3145
+ var mc = `@wix/auto_sdk_calendar_events`;
3146
+ function hc(e5) {
3158
3147
  function t2({ host: t3 }) {
3159
- return { entityFqdn: `wix.calendar.v3.event`, method: `POST`, methodFqn: `wix.calendar.events.v3.EventsService.QueryEvents`, packageName: hc, migrationOptions: { optInTransformResponse: true }, url: mc({ protoPath: `/v3/events/query`, data: e5, host: t3 }), data: e5, transformResponse: (e6) => F(e6, [{ transformFn: P, paths: [{ path: `events.createdDate` }, { path: `events.updatedDate` }, { path: `events.start.utcDate` }, { path: `events.end.utcDate` }, { path: `events.adjustedStart.utcDate` }, { path: `events.adjustedEnd.utcDate` }, { path: `events.recurrenceRule.until.utcDate` }, { path: `events.recurrenceRule.adjustedUntil.utcDate` }] }]) };
3148
+ return { entityFqdn: `wix.calendar.v3.event`, method: `POST`, methodFqn: `wix.calendar.events.v3.EventsService.QueryEvents`, packageName: mc, migrationOptions: { optInTransformResponse: true }, url: pc({ protoPath: `/v3/events/query`, data: e5, host: t3 }), data: e5, transformResponse: (e6) => P(e6, [{ transformFn: N, paths: [{ path: `events.createdDate` }, { path: `events.updatedDate` }, { path: `events.start.utcDate` }, { path: `events.end.utcDate` }, { path: `events.adjustedStart.utcDate` }, { path: `events.adjustedEnd.utcDate` }, { path: `events.recurrenceRule.until.utcDate` }, { path: `events.recurrenceRule.adjustedUntil.utcDate` }] }]) };
3160
3149
  }
3161
3150
  return t2;
3162
3151
  }
3163
- function _c(e5) {
3152
+ function gc(e5) {
3164
3153
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
3165
3154
  return Za({ func: async (r2) => {
3166
- let i2 = gc({ ...r2, ...e5 ?? {} });
3155
+ let i2 = hc({ ...r2, ...e5 ?? {} });
3167
3156
  n2?.onSiteCall?.();
3168
3157
  try {
3169
3158
  let e6 = await t2.request(i2);
@@ -3173,177 +3162,177 @@ function _c(e5) {
3173
3162
  }
3174
3163
  }, requestTransformer: (t3) => {
3175
3164
  let n3 = [t3, e5];
3176
- return M({ ...n3?.[1], query: n3?.[0] });
3165
+ return j({ ...n3?.[1], query: n3?.[0] });
3177
3166
  }, responseTransformer: ({ data: e6 }) => {
3178
- let t3 = N(F(e6, []));
3167
+ let t3 = M(P(e6, []));
3179
3168
  return { items: t3?.events, pagingMetadata: t3?.pagingMetadata };
3180
3169
  }, errorTransformer: (e6) => {
3181
- throw I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3170
+ throw F(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3182
3171
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
3183
3172
  }
3184
- async function vc(e5, t2) {
3185
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = gc(M({ query: e5, ...t2 }));
3173
+ async function _c(e5, t2) {
3174
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = hc(j({ query: e5, ...t2 }));
3186
3175
  r2?.onSiteCall?.();
3187
3176
  try {
3188
3177
  let e6 = await n2.request(i2);
3189
- return r2?.onSuccess?.(e6), N(e6.data);
3178
+ return r2?.onSuccess?.(e6), M(e6.data);
3190
3179
  } catch (e6) {
3191
- let t3 = I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
3180
+ let t3 = F(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
3192
3181
  throw r2?.onError?.(e6), t3;
3193
3182
  }
3194
3183
  }
3195
3184
  ({ ...no() });
3196
- function yc(e5) {
3197
- return (t2) => _c(t2, { httpClient: e5 });
3185
+ function vc(e5) {
3186
+ return (t2) => gc(t2, { httpClient: e5 });
3198
3187
  }
3199
- function bc(e5) {
3200
- return (t2, n2) => vc(t2, n2, { httpClient: e5 });
3201
- }
3202
- var xc = _(`wix.calendar.v3.event_cancelled`, true, (e5) => N(F(e5, [{ transformFn: P, paths: [{ path: `data.event.createdDate` }, { path: `data.event.updatedDate` }, { path: `data.event.start.utcDate` }, { path: `data.event.end.utcDate` }, { path: `data.event.adjustedStart.utcDate` }, { path: `data.event.adjustedEnd.utcDate` }, { path: `data.event.recurrenceRule.until.utcDate` }, { path: `data.event.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }] }])))();
3203
- var Sc = _(`wix.calendar.v3.event_created`, true, (e5) => N(F(e5, [{ transformFn: P, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.start.utcDate` }, { path: `entity.end.utcDate` }, { path: `entity.adjustedStart.utcDate` }, { path: `entity.adjustedEnd.utcDate` }, { path: `entity.recurrenceRule.until.utcDate` }, { path: `entity.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }] }])))();
3204
- var Cc = _(`wix.calendar.v3.event_recurring_split`, true, (e5) => N(F(e5, [{ transformFn: P, paths: [{ path: `data.updatedRecurringEventEndingBeforeSplit.createdDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.updatedDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.start.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.end.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.adjustedStart.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.adjustedEnd.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.recurrenceRule.until.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.recurrenceRule.adjustedUntil.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.createdDate` }, { path: `data.newRecurringEventStartingFromSplit.updatedDate` }, { path: `data.newRecurringEventStartingFromSplit.start.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.end.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.adjustedStart.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.adjustedEnd.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.recurrenceRule.until.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }] }])))();
3205
- var wc = _(`wix.calendar.v3.event_updated`, true, (e5) => N(F(e5, [{ transformFn: P, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.start.utcDate` }, { path: `entity.end.utcDate` }, { path: `entity.adjustedStart.utcDate` }, { path: `entity.adjustedEnd.utcDate` }, { path: `entity.recurrenceRule.until.utcDate` }, { path: `entity.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.start.utcDate` }, { path: `modifiedFields.end.utcDate` }, { path: `modifiedFields.adjustedStart.utcDate` }, { path: `modifiedFields.adjustedEnd.utcDate` }, { path: `modifiedFields.recurrenceRule.until.utcDate` }, { path: `modifiedFields.recurrenceRule.adjustedUntil.utcDate` }] }])))();
3206
- function Tc(e5) {
3207
- let t2 = po({ builderQueryFunction: (t3) => yc(e5)(t3), typedQueryFunction: (t3, n3) => bc(e5)(t3, n3), hasOptionsParameter: true });
3188
+ function yc(e5) {
3189
+ return (t2, n2) => _c(t2, n2, { httpClient: e5 });
3190
+ }
3191
+ var bc = _(`wix.calendar.v3.event_cancelled`, true, (e5) => M(P(e5, [{ transformFn: N, paths: [{ path: `data.event.createdDate` }, { path: `data.event.updatedDate` }, { path: `data.event.start.utcDate` }, { path: `data.event.end.utcDate` }, { path: `data.event.adjustedStart.utcDate` }, { path: `data.event.adjustedEnd.utcDate` }, { path: `data.event.recurrenceRule.until.utcDate` }, { path: `data.event.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }] }])))();
3192
+ var xc = _(`wix.calendar.v3.event_created`, true, (e5) => M(P(e5, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.start.utcDate` }, { path: `entity.end.utcDate` }, { path: `entity.adjustedStart.utcDate` }, { path: `entity.adjustedEnd.utcDate` }, { path: `entity.recurrenceRule.until.utcDate` }, { path: `entity.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }] }])))();
3193
+ var Sc = _(`wix.calendar.v3.event_recurring_split`, true, (e5) => M(P(e5, [{ transformFn: N, paths: [{ path: `data.updatedRecurringEventEndingBeforeSplit.createdDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.updatedDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.start.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.end.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.adjustedStart.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.adjustedEnd.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.recurrenceRule.until.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.recurrenceRule.adjustedUntil.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.createdDate` }, { path: `data.newRecurringEventStartingFromSplit.updatedDate` }, { path: `data.newRecurringEventStartingFromSplit.start.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.end.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.adjustedStart.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.adjustedEnd.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.recurrenceRule.until.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }] }])))();
3194
+ var Cc = _(`wix.calendar.v3.event_updated`, true, (e5) => M(P(e5, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.start.utcDate` }, { path: `entity.end.utcDate` }, { path: `entity.adjustedStart.utcDate` }, { path: `entity.adjustedEnd.utcDate` }, { path: `entity.recurrenceRule.until.utcDate` }, { path: `entity.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.start.utcDate` }, { path: `modifiedFields.end.utcDate` }, { path: `modifiedFields.adjustedStart.utcDate` }, { path: `modifiedFields.adjustedEnd.utcDate` }, { path: `modifiedFields.recurrenceRule.until.utcDate` }, { path: `modifiedFields.recurrenceRule.adjustedUntil.utcDate` }] }])))();
3195
+ function wc(e5) {
3196
+ let t2 = po({ builderQueryFunction: (t3) => vc(e5)(t3), typedQueryFunction: (t3, n3) => yc(e5)(t3, n3), hasOptionsParameter: true });
3208
3197
  function n2(e6, n3) {
3209
3198
  return t2(...arguments);
3210
3199
  }
3211
3200
  return n2;
3212
3201
  }
3213
- var Ec = Mt(Tc);
3214
- sn(xc), sn(Sc), sn(Cc), sn(wc);
3215
- var Dc = (e5) => {
3202
+ var Tc = Nt(wc);
3203
+ cn(bc), cn(xc), cn(Sc), cn(Cc);
3204
+ var Ec = (e5) => {
3216
3205
  let t2 = (e6) => e6 < 10 ? `0${e6}` : `${e6}`;
3217
3206
  return `${e5.getFullYear()}-${t2(e5.getMonth() + 1)}-${t2(e5.getDate())}`;
3218
3207
  };
3219
- var Oc = (e5) => `${Dc(e5)}T00:00:00`;
3220
- var kc = 1e3;
3221
- async function Ac(e5, t2) {
3208
+ var Dc = (e5) => `${Ec(e5)}T00:00:00`;
3209
+ var Oc = 1e3;
3210
+ async function kc(e5, t2) {
3222
3211
  let n2 = [], r2;
3223
3212
  do {
3224
- let i2 = await Ec({ filter: e5, cursorPaging: { limit: kc, ...r2 ? { cursor: r2 } : {} } }, t2);
3213
+ let i2 = await Tc({ filter: e5, cursorPaging: { limit: Oc, ...r2 ? { cursor: r2 } : {} } }, t2);
3225
3214
  n2.push(...i2.events ?? []), r2 = i2.pagingMetadata?.hasNext ? i2.pagingMetadata.cursors?.next ?? void 0 : void 0;
3226
3215
  } while (r2);
3227
3216
  return n2;
3228
3217
  }
3229
- async function jc(e5, t2) {
3230
- return e5.length === 0 ? [] : Ac({ appId: Fi, scheduleId: { $in: e5 } }, { recurrenceType: [`MASTER`, `NONE`], fromLocalDate: Oc(/* @__PURE__ */ new Date()), ...t2 ? { timeZone: t2 } : {} });
3218
+ async function Ac(e5, t2) {
3219
+ return e5.length === 0 ? [] : kc({ appId: Ii, scheduleId: { $in: e5 } }, { recurrenceType: [`MASTER`, `NONE`], fromLocalDate: Dc(/* @__PURE__ */ new Date()), ...t2 ? { timeZone: t2 } : {} });
3231
3220
  }
3232
- function Mc(e5) {
3221
+ function jc(e5) {
3233
3222
  let t2 = {};
3234
3223
  for (let n2 of e5) n2.scheduleId && (t2[n2.scheduleId] ??= []).push(n2);
3235
3224
  return t2;
3236
3225
  }
3237
- var Nc = { displayTimeZonePolicy: { basedOn: Jo.BUSINESS_TIME_ZONE, customerCanChange: false }, multiServiceAppointmentsEnabled: false };
3238
- async function Pc() {
3226
+ var Mc = { displayTimeZonePolicy: { basedOn: Jo.BUSINESS_TIME_ZONE, customerCanChange: false }, multiServiceAppointmentsEnabled: false };
3227
+ async function Nc() {
3239
3228
  try {
3240
3229
  let e5 = await Zo();
3241
3230
  return { displayTimeZonePolicy: { basedOn: e5.displayTimeZone?.basedOn ?? Jo.BUSINESS_TIME_ZONE, customerCanChange: e5.displayTimeZone?.customerCanChange ?? false }, multiServiceAppointmentsEnabled: e5.multiServiceAppointments?.enabled ?? false };
3242
3231
  } catch (e5) {
3243
- return fi(e5, { feature: U.bookingsSettings, action: `fetch-bookings-settings`, level: `warning` }), Nc;
3232
+ return pi(e5, { feature: H.bookingsSettings, action: `fetch-bookings-settings`, level: `warning` }), Mc;
3244
3233
  }
3245
3234
  }
3246
3235
  n(null);
3247
- function Fc(e5) {
3236
+ function Pc(e5) {
3248
3237
  return e5.basedOn === Jo.CUSTOMER_TIME_ZONE ? Intl.DateTimeFormat().resolvedOptions().timeZone : void 0;
3249
3238
  }
3250
- function Ic({ categoryId: e5, locationId: t2, serviceItems: n2, isLoading: r2, hasError: i2, children: a2 }) {
3239
+ function Fc({ categoryId: e5, locationId: t2, serviceItems: n2, isLoading: r2, hasError: i2, children: a2 }) {
3251
3240
  let o2 = { serviceItems: n2, bookingsSettings: null, hasMore: false, isLoading: r2, hasError: i2, categoryId: e5, locationId: t2, loadMore: async () => {
3252
3241
  } };
3253
- return m(Jc.Provider, { value: o2, children: a2 });
3242
+ return m(qc.Provider, { value: o2, children: a2 });
3254
3243
  }
3255
- function Lc({ categoryId: e5, locationId: t2, children: n2 }) {
3256
- return m(Ic, { categoryId: e5, locationId: t2, serviceItems: [], isLoading: true, hasError: false, children: n2 });
3244
+ function Ic({ categoryId: e5, locationId: t2, children: n2 }) {
3245
+ return m(Fc, { categoryId: e5, locationId: t2, serviceItems: [], isLoading: true, hasError: false, children: n2 });
3257
3246
  }
3258
- function Rc({ categoryId: e5, locationId: t2, children: n2 }) {
3259
- return m(Ic, { categoryId: e5, locationId: t2, serviceItems: [], isLoading: false, hasError: true, children: n2 });
3247
+ function Lc({ categoryId: e5, locationId: t2, children: n2 }) {
3248
+ return m(Fc, { categoryId: e5, locationId: t2, serviceItems: [], isLoading: false, hasError: true, children: n2 });
3260
3249
  }
3261
- function zc(e5) {
3250
+ function Rc(e5) {
3262
3251
  let t2 = e5?.$in ?? (e5?.$eq == null ? [] : [e5.$eq]);
3263
3252
  return [...new Set(t2.filter((e6) => typeof e6 == `string` && e6 !== ``))].sort().join(`,`);
3264
3253
  }
3265
3254
  function $(e5) {
3266
3255
  return e5 ? e5.split(`,`) : null;
3267
3256
  }
3257
+ var zc = [];
3268
3258
  var Bc = [];
3269
- var Vc = [];
3259
+ var Vc = {};
3270
3260
  var Hc = {};
3271
- var Uc = {};
3272
- function Wc(e5, t2) {
3261
+ function Uc(e5, t2) {
3273
3262
  return Object.keys(t2).length === 0 ? e5 : { ...e5, ...t2 };
3274
3263
  }
3275
- function Gc(e5, t2, n2, r2, i2, a2) {
3264
+ function Wc(e5, t2, n2, r2, i2, a2) {
3276
3265
  let o2 = [...new Set(e5.filter((e6) => !Qo(e6.type)).map((e6) => e6.schedule?._id).filter((e6) => !!e6))], s2 = e5.filter($o).map((e6) => e6._id).filter((e6) => !!e6);
3277
- return Promise.all([o2.length === 0 ? Hc : jc(o2, t2).then(Mc).catch(() => Hc), s2.length === 0 ? Uc : Gs({ key: Ns(r2, i2, s2, n2), warmupData: a2, fetchData: () => qs(s2) }).catch((e6) => (fi(e6, { feature: U.services, action: `fetch-service-variants`, level: `warning` }), null))]);
3266
+ return Promise.all([o2.length === 0 ? Vc : Ac(o2, t2).then(jc).catch(() => Vc), s2.length === 0 ? Hc : Ws({ key: Ms(r2, i2, s2, n2), warmupData: a2, fetchData: () => Ks(s2) }).catch((e6) => (pi(e6, { feature: H.services, action: `fetch-service-variants`, level: `warning` }), null))]);
3278
3267
  }
3279
- var Kc = { services: [], hasMore: false, totalPages: 1, hasError: true };
3280
- function qc(e5) {
3268
+ var Gc = { services: [], hasMore: false, totalPages: 1, hasError: true };
3269
+ function Kc(e5) {
3281
3270
  let t2 = Math.floor(Number(e5));
3282
3271
  return !e5 || !Number.isSafeInteger(t2) || t2 < 1 ? 1 : t2;
3283
3272
  }
3284
- var Jc = n(null);
3285
- var Yc = `useServicesContext must be used within ServicesContextProvider`;
3286
- function Xc() {
3287
- let e5 = a(Jc);
3288
- if (!e5) throw Error(Yc);
3273
+ var qc = n(null);
3274
+ var Jc = `useServicesContext must be used within ServicesContextProvider`;
3275
+ function Yc() {
3276
+ let e5 = a(qc);
3277
+ if (!e5) throw Error(Jc);
3289
3278
  return e5;
3290
3279
  }
3291
- function Zc(e5, t2) {
3280
+ function Xc(e5, t2) {
3292
3281
  return { firstPage: e5, services: e5.services, hasMore: e5.hasMore, isLoadingMore: false, cursor: { offset: (t2.paginationIndex - 1) * t2.safeLimit + e5.services.length, hasMore: e5.hasMore, pending: null, dropped: false } };
3293
3282
  }
3294
- function Qc({ query: e5, isQueryPending: t2, settingsPromise: n2, categoryId: a2, locationId: o2, children: d2 }) {
3295
- let { firstPagePromise: f2, safeLimit: p2, serviceIdsKey: h2, categoryIdsKey: g2, refreshSignal: _2, language: v2, currency: y2 } = e5, b2 = gi(f2), x2 = gi(n2), [S2, C2] = u(() => Zc(b2, e5)), [w2, T2] = u({}), [E2, D2] = u({});
3296
- S2.firstPage !== b2 && (C2(Zc(b2, e5)), T2({}), D2({}));
3283
+ function Zc({ query: e5, isQueryPending: t2, settingsPromise: n2, categoryId: a2, locationId: o2, children: d2 }) {
3284
+ let { firstPagePromise: f2, safeLimit: p2, serviceIdsKey: h2, categoryIdsKey: g2, refreshSignal: _2, language: v2, currency: y2 } = e5, b2 = _i(f2), x2 = _i(n2), [S2, C2] = u(() => Xc(b2, e5)), [w2, T2] = u({}), [E2, D2] = u({});
3285
+ S2.firstPage !== b2 && (C2(Xc(b2, e5)), T2({}), D2({}));
3297
3286
  let { cursor: O2 } = S2;
3298
3287
  s(() => (O2.dropped = false, () => {
3299
3288
  O2.dropped = true;
3300
3289
  }), [O2]);
3301
- let ee2 = Fc(x2.displayTimeZonePolicy), k2 = rc($s.SERVICES), { getParsedUrl: te2 } = Ai(), ne2 = l(null), re2 = hs(), A2 = l(re2);
3302
- A2.current = re2, s(() => {
3303
- ne2.current !== b2 && (ne2.current = b2, k2(Qs({ referralInfo: te2().searchParams.get(rs.referral) ?? void 0 })), k2(ic({ numOfServices: b2.services.length })));
3290
+ let ee2 = Pc(x2.displayTimeZonePolicy), k2 = nc(Qs.SERVICES), { getParsedUrl: te2 } = ji(), ne2 = l(null), re2 = hs(), ie2 = l(re2);
3291
+ ie2.current = re2, s(() => {
3292
+ ne2.current !== b2 && (ne2.current = b2, k2(Zs({ referralInfo: te2().searchParams.get(rs.referral) ?? void 0 })), k2(rc({ numOfServices: b2.services.length })));
3304
3293
  }, [k2, te2, b2]), s(() => {
3305
3294
  let e6 = false;
3306
- return Gc(b2.services, ee2, _2, v2, y2, A2.current).then(([t3, n3]) => {
3295
+ return Wc(b2.services, ee2, _2, v2, y2, ie2.current).then(([t3, n3]) => {
3307
3296
  e6 || r(() => {
3308
- T2((e7) => Wc(e7, t3)), n3 && D2((e7) => Wc(e7, n3));
3297
+ T2((e7) => Uc(e7, t3)), n3 && D2((e7) => Uc(e7, n3));
3309
3298
  });
3310
3299
  }), () => {
3311
3300
  e6 = true;
3312
3301
  };
3313
3302
  }, [b2.services, ee2, _2, v2, y2]);
3314
- let ie2 = i(async () => {
3315
- if (k2(Zs({ pageName: ec, buttonName: nc })), O2.pending) return O2.pending;
3303
+ let ae2 = i(async () => {
3304
+ if (k2(Xs({ pageName: $s, buttonName: tc })), O2.pending) return O2.pending;
3316
3305
  if (!O2.hasMore) return;
3317
3306
  let t3 = (e6) => C2((t4) => t4.cursor === O2 ? e6(t4) : t4);
3318
3307
  return t3((e6) => ({ ...e6, isLoadingMore: true })), O2.pending = ns({ limit: p2, offset: O2.offset, categoryId: e5.categoryId, locationId: e5.locationId, serviceIds: $(h2), categoryIds: $(g2) }).then((e6) => {
3319
- O2.dropped || (O2.hasMore = e6.hasMore, O2.offset += e6.services.length, t3((t4) => ({ ...t4, services: [...t4.services, ...e6.services], hasMore: e6.hasMore })), Gc(e6.services, ee2, _2, v2, y2, A2.current).then(([e7, t4]) => {
3308
+ O2.dropped || (O2.hasMore = e6.hasMore, O2.offset += e6.services.length, t3((t4) => ({ ...t4, services: [...t4.services, ...e6.services], hasMore: e6.hasMore })), Wc(e6.services, ee2, _2, v2, y2, ie2.current).then(([e7, t4]) => {
3320
3309
  O2.dropped || r(() => {
3321
- T2((t5) => Wc(t5, e7)), t4 && D2((e8) => Wc(e8, t4));
3310
+ T2((t5) => Uc(t5, e7)), t4 && D2((e8) => Uc(e8, t4));
3322
3311
  });
3323
3312
  }));
3324
3313
  }).catch(() => {
3325
3314
  }).finally(() => {
3326
3315
  O2.pending = null, t3((e6) => ({ ...e6, isLoadingMore: false }));
3327
3316
  }), O2.pending;
3328
- }, [O2, p2, e5.categoryId, e5.locationId, h2, g2, k2, ee2, _2, v2, y2]), { resolvePath: ae2, toHref: oe2 } = ds(), se2 = c(() => S2.services.map((e6) => {
3329
- let t3 = ae2(`servicePage`, { slug: e6.mainSlug?.name ?? null, serviceId: e6._id ?? null });
3330
- return { serviceId: e6._id ?? null, refreshSignal: _2, service: e6, masterEvents: w2[e6.schedule?._id ?? ``] ?? Bc, serviceOptionsAndVariants: E2[e6._id ?? ``] ?? null, bookingsSettings: x2, servicePageLink: t3 ? { href: oe2(t3), target: `_self` } : null };
3331
- }), [ae2, oe2, S2.services, _2, w2, E2, x2]), ce2 = c(() => ({ serviceItems: t2 ? Vc : se2, bookingsSettings: x2, hasMore: !t2 && S2.hasMore, isLoading: t2 || S2.isLoadingMore, hasError: !t2 && b2.hasError, categoryId: a2, locationId: o2, loadMore: ie2 }), [t2, se2, x2, S2.hasMore, S2.isLoadingMore, b2.hasError, a2, o2, ie2]);
3332
- return m(Jc.Provider, { value: ce2, children: d2 });
3333
- }
3334
- var $c = (e5) => ({ ...e5, hasError: false });
3335
- var el = () => ({ ...Kc });
3336
- function tl({ categoryData: e5, limit: n2 = 9, servicesPicker: r2, categoriesPicker: i2, refreshSignal: a2 = 0, children: s2 }) {
3337
- let l2 = Math.min(n2 ?? 9, 100), { searchParams: d2 } = Ai(), f2 = e5?.categoryId, p2 = !!f2, g2 = f2 || d2.get(rs.category), _2 = d2.get(rs.location), v2 = p2 ? 1 : qc(d2.get(rs.page)), y2 = zc(r2?.serviceId), b2 = zc(i2?.categoryId), x2 = hs(), S2 = xs(), C2 = ks(), { isSSR: w2 } = Ys(), [T2] = u(() => w2()), E2 = c(() => ({ firstPagePromise: yi(Gs({ key: Ms(S2, C2, g2, _2, v2, l2, $(y2) ?? [], $(b2) ?? []), refresh: a2 !== 0, warmupData: x2, fetchData: () => pi(`services-context-load`, { feature: U.services }, ns({ limit: l2, offset: (v2 - 1) * l2, categoryId: g2, locationId: _2, serviceIds: $(y2), categoryIds: $(b2) })) }), $c, el), safeLimit: l2, paginationIndex: v2, categoryId: g2, locationId: _2, serviceIdsKey: y2, categoryIdsKey: b2, refreshSignal: a2, language: S2, currency: C2 }), [l2, g2, _2, v2, a2, y2, b2, S2, C2]), [D2] = u(() => Gs({ key: Ps(), warmupData: x2, fetchData: Pc })), O2 = o(E2);
3338
- return m(mi, { fallback: m(Rc, { categoryId: g2, locationId: _2, children: s2 }), feature: U.services, children: h(t, { fallback: m(Lc, { categoryId: g2, locationId: _2, children: s2 }), children: [T2 && !p2 && m(pc, { servicesPromise: E2.firstPagePromise, currentPage: v2, pageQueryParam: rs.page }), m(Qc, { query: O2, isQueryPending: O2 !== E2, settingsPromise: D2, categoryId: g2, locationId: _2, children: s2 })] }) });
3339
- }
3340
- var nl = zn(`117fa14c-cf9c-47f5-b2cb-7797094612ce`);
3317
+ }, [O2, p2, e5.categoryId, e5.locationId, h2, g2, k2, ee2, _2, v2, y2]), { resolvePath: oe2, toHref: se2 } = ds(), ce2 = c(() => S2.services.map((e6) => {
3318
+ let t3 = oe2(`servicePage`, { slug: e6.mainSlug?.name ?? null, serviceId: e6._id ?? null });
3319
+ return { serviceId: e6._id ?? null, refreshSignal: _2, service: e6, masterEvents: w2[e6.schedule?._id ?? ``] ?? zc, serviceOptionsAndVariants: E2[e6._id ?? ``] ?? null, bookingsSettings: x2, servicePageLink: t3 ? { href: se2(t3), target: `_self` } : null };
3320
+ }), [oe2, se2, S2.services, _2, w2, E2, x2]), le2 = c(() => ({ serviceItems: t2 ? Bc : ce2, bookingsSettings: x2, hasMore: !t2 && S2.hasMore, isLoading: t2 || S2.isLoadingMore, hasError: !t2 && b2.hasError, categoryId: a2, locationId: o2, loadMore: ae2 }), [t2, ce2, x2, S2.hasMore, S2.isLoadingMore, b2.hasError, a2, o2, ae2]);
3321
+ return m(qc.Provider, { value: le2, children: d2 });
3322
+ }
3323
+ var Qc = (e5) => ({ ...e5, hasError: false });
3324
+ var $c = () => ({ ...Gc });
3325
+ function el({ categoryData: e5, limit: n2 = 9, servicesPicker: r2, categoriesPicker: i2, refreshSignal: a2 = 0, children: s2 }) {
3326
+ let l2 = Math.min(n2 ?? 9, 100), { searchParams: d2 } = ji(), f2 = e5?.categoryId, p2 = !!f2, g2 = f2 || d2.get(rs.category), _2 = d2.get(rs.location), v2 = p2 ? 1 : Kc(d2.get(rs.page)), y2 = Rc(r2?.serviceId), b2 = Rc(i2?.categoryId), x2 = hs(), S2 = xs(), C2 = Os(), { isSSR: w2 } = Js(), [T2] = u(() => w2()), E2 = c(() => ({ firstPagePromise: bi(Ws({ key: js(S2, C2, g2, _2, v2, l2, $(y2) ?? [], $(b2) ?? []), refresh: a2 !== 0, warmupData: x2, fetchData: () => mi(`services-context-load`, { feature: H.services }, ns({ limit: l2, offset: (v2 - 1) * l2, categoryId: g2, locationId: _2, serviceIds: $(y2), categoryIds: $(b2) })) }), Qc, $c), safeLimit: l2, paginationIndex: v2, categoryId: g2, locationId: _2, serviceIdsKey: y2, categoryIdsKey: b2, refreshSignal: a2, language: S2, currency: C2 }), [l2, g2, _2, v2, a2, y2, b2, S2, C2]), [D2] = u(() => Ws({ key: Ns(), warmupData: x2, fetchData: Nc })), O2 = o(E2);
3327
+ return m(hi, { fallback: m(Lc, { categoryId: g2, locationId: _2, children: s2 }), feature: H.services, children: h(t, { fallback: m(Ic, { categoryId: g2, locationId: _2, children: s2 }), children: [T2 && !p2 && m(fc, { servicesPromise: E2.firstPagePromise, currentPage: v2, pageQueryParam: rs.page }), m(Zc, { query: O2, isQueryPending: O2 !== E2, settingsPromise: D2, categoryId: g2, locationId: _2, children: s2 })] }) });
3328
+ }
3329
+ var tl = Bn(`117fa14c-cf9c-47f5-b2cb-7797094612ce`);
3341
3330
  export {
3342
- Yc as SERVICES_CONTEXT_MISSING_PROVIDER_ERROR,
3343
- tl as ServicesContextProvider,
3344
- tl as default,
3345
- nl as injectAccessTokenGetter,
3346
- Jc as servicesContext,
3347
- Xc as useServicesContext
3331
+ Jc as SERVICES_CONTEXT_MISSING_PROVIDER_ERROR,
3332
+ el as ServicesContextProvider,
3333
+ el as default,
3334
+ tl as injectAccessTokenGetter,
3335
+ qc as servicesContext,
3336
+ Yc as useServicesContext
3348
3337
  };
3349
3338
  //# sourceMappingURL=context-services.mjs.map