@tracktor/shared-module 2.1.3 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,5 +1,6 @@
1
- import Ne, { createContext as dt, useMemo as le, useContext as k, useState as vt, useRef as gt, useEffect as Z, Suspense as mt, useCallback as ce } from "react";
2
- var se = { exports: {} }, B = {};
1
+ import We, { createContext as vr, useMemo as fe, useContext as k, useState as gr, useRef as mr, useEffect as ee, Suspense as yr, useCallback as se } from "react";
2
+ import hr from "axios";
3
+ var le = { exports: {} }, G = {};
3
4
  /**
4
5
  * @license React
5
6
  * react-jsx-runtime.development.js
@@ -9,89 +10,89 @@ var se = { exports: {} }, B = {};
9
10
  * This source code is licensed under the MIT license found in the
10
11
  * LICENSE file in the root directory of this source tree.
11
12
  */
12
- var Fe;
13
- function yt() {
14
- return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
15
- var t = Ne, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), j = Symbol.iterator, x = "@@iterator";
13
+ var Ye;
14
+ function pr() {
15
+ return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
16
+ var r = We, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), j = Symbol.iterator, S = "@@iterator";
16
17
  function T(e) {
17
18
  if (e === null || typeof e != "object")
18
19
  return null;
19
- var r = j && e[j] || e[x];
20
- return typeof r == "function" ? r : null;
20
+ var t = j && e[j] || e[S];
21
+ return typeof t == "function" ? t : null;
21
22
  }
22
- var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
23
- function _(e) {
23
+ var D = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
24
+ function w(e) {
24
25
  {
25
- for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), d = 1; d < r; d++)
26
+ for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), d = 1; d < t; d++)
26
27
  o[d - 1] = arguments[d];
27
28
  Y("error", e, o);
28
29
  }
29
30
  }
30
- function Y(e, r, o) {
31
+ function Y(e, t, o) {
31
32
  {
32
- var d = D.ReactDebugCurrentFrame, h = d.getStackAddendum();
33
- h !== "" && (r += "%s", o = o.concat([h]));
33
+ var d = D.ReactDebugCurrentFrame, y = d.getStackAddendum();
34
+ y !== "" && (t += "%s", o = o.concat([y]));
34
35
  var p = o.map(function(m) {
35
36
  return String(m);
36
37
  });
37
- p.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, p);
38
+ p.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, p);
38
39
  }
39
40
  }
40
- var N = !1, W = !1, C = !1, fe = !1, de = !1, M;
41
- M = Symbol.for("react.module.reference");
42
- function We(e) {
43
- return !!(typeof e == "string" || typeof e == "function" || e === c || e === f || de || e === a || e === y || e === E || fe || e === u || N || W || C || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === w || e.$$typeof === v || e.$$typeof === s || e.$$typeof === l || // This needs to include all possible module reference object
41
+ var N = !1, W = !1, C = !1, de = !1, ve = !1, U;
42
+ U = Symbol.for("react.module.reference");
43
+ function Le(e) {
44
+ return !!(typeof e == "string" || typeof e == "function" || e === u || e === f || ve || e === c || e === E || e === h || de || e === a || N || W || C || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === b || e.$$typeof === v || e.$$typeof === s || e.$$typeof === l || // This needs to include all possible module reference object
44
45
  // types supported by any Flight configuration anywhere since
45
46
  // we don't know which Flight build this will end up being used
46
47
  // with.
47
- e.$$typeof === M || e.getModuleId !== void 0));
48
+ e.$$typeof === U || e.getModuleId !== void 0));
48
49
  }
49
- function Le(e, r, o) {
50
+ function Ve(e, t, o) {
50
51
  var d = e.displayName;
51
52
  if (d)
52
53
  return d;
53
- var h = r.displayName || r.name || "";
54
- return h !== "" ? o + "(" + h + ")" : o;
54
+ var y = t.displayName || t.name || "";
55
+ return y !== "" ? o + "(" + y + ")" : o;
55
56
  }
56
- function ve(e) {
57
+ function ge(e) {
57
58
  return e.displayName || "Context";
58
59
  }
59
60
  function I(e) {
60
61
  if (e == null)
61
62
  return null;
62
- if (typeof e.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
63
+ if (typeof e.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
63
64
  return e.displayName || e.name || null;
64
65
  if (typeof e == "string")
65
66
  return e;
66
67
  switch (e) {
67
- case c:
68
+ case u:
68
69
  return "Fragment";
69
70
  case i:
70
71
  return "Portal";
71
72
  case f:
72
73
  return "Profiler";
73
- case a:
74
+ case c:
74
75
  return "StrictMode";
75
- case y:
76
- return "Suspense";
77
76
  case E:
77
+ return "Suspense";
78
+ case h:
78
79
  return "SuspenseList";
79
80
  }
80
81
  if (typeof e == "object")
81
82
  switch (e.$$typeof) {
82
83
  case s:
83
- var r = e;
84
- return ve(r) + ".Consumer";
84
+ var t = e;
85
+ return ge(t) + ".Consumer";
85
86
  case v:
86
87
  var o = e;
87
- return ve(o._context) + ".Provider";
88
+ return ge(o._context) + ".Provider";
88
89
  case l:
89
- return Le(e, e.render, "ForwardRef");
90
- case w:
90
+ return Ve(e, e.render, "ForwardRef");
91
+ case b:
91
92
  var d = e.displayName || null;
92
93
  return d !== null ? d : I(e.type) || "Memo";
93
94
  case R: {
94
- var h = e, p = h._payload, m = h._init;
95
+ var y = e, p = y._payload, m = y._init;
95
96
  try {
96
97
  return I(m(p));
97
98
  } catch {
@@ -101,18 +102,18 @@ function yt() {
101
102
  }
102
103
  return null;
103
104
  }
104
- var L = Object.assign, U = 0, ge, me, ye, he, Ee, pe, Re;
105
- function we() {
105
+ var L = Object.assign, q = 0, me, ye, he, pe, Ee, Re, we;
106
+ function _e() {
106
107
  }
107
- we.__reactDisabledLog = !0;
108
- function Ve() {
108
+ _e.__reactDisabledLog = !0;
109
+ function ze() {
109
110
  {
110
- if (U === 0) {
111
- ge = console.log, me = console.info, ye = console.warn, he = console.error, Ee = console.group, pe = console.groupCollapsed, Re = console.groupEnd;
111
+ if (q === 0) {
112
+ me = console.log, ye = console.info, he = console.warn, pe = console.error, Ee = console.group, Re = console.groupCollapsed, we = console.groupEnd;
112
113
  var e = {
113
114
  configurable: !0,
114
115
  enumerable: !0,
115
- value: we,
116
+ value: _e,
116
117
  writable: !0
117
118
  };
118
119
  Object.defineProperties(console, {
@@ -125,12 +126,12 @@ function yt() {
125
126
  groupEnd: e
126
127
  });
127
128
  }
128
- U++;
129
+ q++;
129
130
  }
130
131
  }
131
- function ze() {
132
+ function Me() {
132
133
  {
133
- if (U--, U === 0) {
134
+ if (q--, q === 0) {
134
135
  var e = {
135
136
  configurable: !0,
136
137
  enumerable: !0,
@@ -138,66 +139,66 @@ function yt() {
138
139
  };
139
140
  Object.defineProperties(console, {
140
141
  log: L({}, e, {
141
- value: ge
142
+ value: me
142
143
  }),
143
144
  info: L({}, e, {
144
- value: me
145
+ value: ye
145
146
  }),
146
147
  warn: L({}, e, {
147
- value: ye
148
+ value: he
148
149
  }),
149
150
  error: L({}, e, {
150
- value: he
151
+ value: pe
151
152
  }),
152
153
  group: L({}, e, {
153
154
  value: Ee
154
155
  }),
155
156
  groupCollapsed: L({}, e, {
156
- value: pe
157
+ value: Re
157
158
  }),
158
159
  groupEnd: L({}, e, {
159
- value: Re
160
+ value: we
160
161
  })
161
162
  });
162
163
  }
163
- U < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
164
+ q < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
164
165
  }
165
166
  }
166
- var ee = D.ReactCurrentDispatcher, te;
167
- function Q(e, r, o) {
167
+ var re = D.ReactCurrentDispatcher, te;
168
+ function J(e, t, o) {
168
169
  {
169
170
  if (te === void 0)
170
171
  try {
171
172
  throw Error();
172
- } catch (h) {
173
- var d = h.stack.trim().match(/\n( *(at )?)/);
173
+ } catch (y) {
174
+ var d = y.stack.trim().match(/\n( *(at )?)/);
174
175
  te = d && d[1] || "";
175
176
  }
176
177
  return `
177
178
  ` + te + e;
178
179
  }
179
180
  }
180
- var re = !1, J;
181
+ var ne = !1, H;
181
182
  {
182
- var Me = typeof WeakMap == "function" ? WeakMap : Map;
183
- J = new Me();
183
+ var Ue = typeof WeakMap == "function" ? WeakMap : Map;
184
+ H = new Ue();
184
185
  }
185
- function _e(e, r) {
186
- if (!e || re)
186
+ function be(e, t) {
187
+ if (!e || ne)
187
188
  return "";
188
189
  {
189
- var o = J.get(e);
190
+ var o = H.get(e);
190
191
  if (o !== void 0)
191
192
  return o;
192
193
  }
193
194
  var d;
194
- re = !0;
195
- var h = Error.prepareStackTrace;
195
+ ne = !0;
196
+ var y = Error.prepareStackTrace;
196
197
  Error.prepareStackTrace = void 0;
197
198
  var p;
198
- p = ee.current, ee.current = null, Ve();
199
+ p = re.current, re.current = null, ze();
199
200
  try {
200
- if (r) {
201
+ if (t) {
201
202
  var m = function() {
202
203
  throw Error();
203
204
  };
@@ -231,148 +232,148 @@ function yt() {
231
232
  } catch ($) {
232
233
  if ($ && d && typeof $.stack == "string") {
233
234
  for (var g = $.stack.split(`
234
- `), S = d.stack.split(`
235
- `), b = g.length - 1, P = S.length - 1; b >= 1 && P >= 0 && g[b] !== S[P]; )
235
+ `), x = d.stack.split(`
236
+ `), _ = g.length - 1, P = x.length - 1; _ >= 1 && P >= 0 && g[_] !== x[P]; )
236
237
  P--;
237
- for (; b >= 1 && P >= 0; b--, P--)
238
- if (g[b] !== S[P]) {
239
- if (b !== 1 || P !== 1)
238
+ for (; _ >= 1 && P >= 0; _--, P--)
239
+ if (g[_] !== x[P]) {
240
+ if (_ !== 1 || P !== 1)
240
241
  do
241
- if (b--, P--, P < 0 || g[b] !== S[P]) {
242
+ if (_--, P--, P < 0 || g[_] !== x[P]) {
242
243
  var O = `
243
- ` + g[b].replace(" at new ", " at ");
244
- return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && J.set(e, O), O;
244
+ ` + g[_].replace(" at new ", " at ");
245
+ return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && H.set(e, O), O;
245
246
  }
246
- while (b >= 1 && P >= 0);
247
+ while (_ >= 1 && P >= 0);
247
248
  break;
248
249
  }
249
250
  }
250
251
  } finally {
251
- re = !1, ee.current = p, ze(), Error.prepareStackTrace = h;
252
+ ne = !1, re.current = p, Me(), Error.prepareStackTrace = y;
252
253
  }
253
- var z = e ? e.displayName || e.name : "", $e = z ? Q(z) : "";
254
- return typeof e == "function" && J.set(e, $e), $e;
254
+ var M = e ? e.displayName || e.name : "", Fe = M ? J(M) : "";
255
+ return typeof e == "function" && H.set(e, Fe), Fe;
255
256
  }
256
- function Ue(e, r, o) {
257
- return _e(e, !1);
257
+ function qe(e, t, o) {
258
+ return be(e, !1);
258
259
  }
259
- function qe(e) {
260
- var r = e.prototype;
261
- return !!(r && r.isReactComponent);
260
+ function Be(e) {
261
+ var t = e.prototype;
262
+ return !!(t && t.isReactComponent);
262
263
  }
263
- function X(e, r, o) {
264
+ function K(e, t, o) {
264
265
  if (e == null)
265
266
  return "";
266
267
  if (typeof e == "function")
267
- return _e(e, qe(e));
268
+ return be(e, Be(e));
268
269
  if (typeof e == "string")
269
- return Q(e);
270
+ return J(e);
270
271
  switch (e) {
271
- case y:
272
- return Q("Suspense");
273
272
  case E:
274
- return Q("SuspenseList");
273
+ return J("Suspense");
274
+ case h:
275
+ return J("SuspenseList");
275
276
  }
276
277
  if (typeof e == "object")
277
278
  switch (e.$$typeof) {
278
279
  case l:
279
- return Ue(e.render);
280
- case w:
281
- return X(e.type, r, o);
280
+ return qe(e.render);
281
+ case b:
282
+ return K(e.type, t, o);
282
283
  case R: {
283
- var d = e, h = d._payload, p = d._init;
284
+ var d = e, y = d._payload, p = d._init;
284
285
  try {
285
- return X(p(h), r, o);
286
+ return K(p(y), t, o);
286
287
  } catch {
287
288
  }
288
289
  }
289
290
  }
290
291
  return "";
291
292
  }
292
- var H = Object.prototype.hasOwnProperty, be = {}, Ce = D.ReactDebugCurrentFrame;
293
- function K(e) {
293
+ var X = Object.prototype.hasOwnProperty, Ce = {}, Pe = D.ReactDebugCurrentFrame;
294
+ function Z(e) {
294
295
  if (e) {
295
- var r = e._owner, o = X(e.type, e._source, r ? r.type : null);
296
- Ce.setExtraStackFrame(o);
296
+ var t = e._owner, o = K(e.type, e._source, t ? t.type : null);
297
+ Pe.setExtraStackFrame(o);
297
298
  } else
298
- Ce.setExtraStackFrame(null);
299
+ Pe.setExtraStackFrame(null);
299
300
  }
300
- function Be(e, r, o, d, h) {
301
+ function Ge(e, t, o, d, y) {
301
302
  {
302
- var p = Function.call.bind(H);
303
+ var p = Function.call.bind(X);
303
304
  for (var m in e)
304
305
  if (p(e, m)) {
305
306
  var g = void 0;
306
307
  try {
307
308
  if (typeof e[m] != "function") {
308
- var S = Error((d || "React class") + ": " + o + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
309
- throw S.name = "Invariant Violation", S;
309
+ var x = Error((d || "React class") + ": " + o + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
310
+ throw x.name = "Invariant Violation", x;
310
311
  }
311
- g = e[m](r, m, d, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
312
- } catch (b) {
313
- g = b;
312
+ g = e[m](t, m, d, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
313
+ } catch (_) {
314
+ g = _;
314
315
  }
315
- g && !(g instanceof Error) && (K(h), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", d || "React class", o, m, typeof g), K(null)), g instanceof Error && !(g.message in be) && (be[g.message] = !0, K(h), _("Failed %s type: %s", o, g.message), K(null));
316
+ g && !(g instanceof Error) && (Z(y), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", d || "React class", o, m, typeof g), Z(null)), g instanceof Error && !(g.message in Ce) && (Ce[g.message] = !0, Z(y), w("Failed %s type: %s", o, g.message), Z(null));
316
317
  }
317
318
  }
318
319
  }
319
- var Ge = Array.isArray;
320
- function ne(e) {
321
- return Ge(e);
320
+ var Qe = Array.isArray;
321
+ function oe(e) {
322
+ return Qe(e);
322
323
  }
323
- function Qe(e) {
324
+ function Je(e) {
324
325
  {
325
- var r = typeof Symbol == "function" && Symbol.toStringTag, o = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
326
+ var t = typeof Symbol == "function" && Symbol.toStringTag, o = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
326
327
  return o;
327
328
  }
328
329
  }
329
- function Je(e) {
330
+ function He(e) {
330
331
  try {
331
- return Pe(e), !1;
332
+ return je(e), !1;
332
333
  } catch {
333
334
  return !0;
334
335
  }
335
336
  }
336
- function Pe(e) {
337
+ function je(e) {
337
338
  return "" + e;
338
339
  }
339
- function je(e) {
340
- if (Je(e))
341
- return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), Pe(e);
340
+ function Te(e) {
341
+ if (He(e))
342
+ return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), je(e);
342
343
  }
343
- var q = D.ReactCurrentOwner, Xe = {
344
+ var B = D.ReactCurrentOwner, Ke = {
344
345
  key: !0,
345
346
  ref: !0,
346
347
  __self: !0,
347
348
  __source: !0
348
- }, Te, Se, oe;
349
- oe = {};
350
- function He(e) {
351
- if (H.call(e, "ref")) {
352
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
353
- if (r && r.isReactWarning)
349
+ }, xe, Se, ie;
350
+ ie = {};
351
+ function Xe(e) {
352
+ if (X.call(e, "ref")) {
353
+ var t = Object.getOwnPropertyDescriptor(e, "ref").get;
354
+ if (t && t.isReactWarning)
354
355
  return !1;
355
356
  }
356
357
  return e.ref !== void 0;
357
358
  }
358
- function Ke(e) {
359
- if (H.call(e, "key")) {
360
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
361
- if (r && r.isReactWarning)
359
+ function Ze(e) {
360
+ if (X.call(e, "key")) {
361
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
362
+ if (t && t.isReactWarning)
362
363
  return !1;
363
364
  }
364
365
  return e.key !== void 0;
365
366
  }
366
- function Ze(e, r) {
367
- if (typeof e.ref == "string" && q.current && r && q.current.stateNode !== r) {
368
- var o = I(q.current.type);
369
- oe[o] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', I(q.current.type), e.ref), oe[o] = !0);
367
+ function er(e, t) {
368
+ if (typeof e.ref == "string" && B.current && t && B.current.stateNode !== t) {
369
+ var o = I(B.current.type);
370
+ ie[o] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', I(B.current.type), e.ref), ie[o] = !0);
370
371
  }
371
372
  }
372
- function et(e, r) {
373
+ function rr(e, t) {
373
374
  {
374
375
  var o = function() {
375
- Te || (Te = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
376
+ xe || (xe = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
376
377
  };
377
378
  o.isReactWarning = !0, Object.defineProperty(e, "key", {
378
379
  get: o,
@@ -380,10 +381,10 @@ function yt() {
380
381
  });
381
382
  }
382
383
  }
383
- function tt(e, r) {
384
+ function tr(e, t) {
384
385
  {
385
386
  var o = function() {
386
- Se || (Se = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
387
+ Se || (Se = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
387
388
  };
388
389
  o.isReactWarning = !0, Object.defineProperty(e, "ref", {
389
390
  get: o,
@@ -391,13 +392,13 @@ function yt() {
391
392
  });
392
393
  }
393
394
  }
394
- var rt = function(e, r, o, d, h, p, m) {
395
+ var nr = function(e, t, o, d, y, p, m) {
395
396
  var g = {
396
397
  // This tag allows us to uniquely identify this as a React Element
397
398
  $$typeof: n,
398
399
  // Built-in properties that belong on the element
399
400
  type: e,
400
- key: r,
401
+ key: t,
401
402
  ref: o,
402
403
  props: m,
403
404
  // Record the component responsible for creating this element.
@@ -417,44 +418,44 @@ function yt() {
417
418
  configurable: !1,
418
419
  enumerable: !1,
419
420
  writable: !1,
420
- value: h
421
+ value: y
421
422
  }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
422
423
  };
423
- function nt(e, r, o, d, h) {
424
+ function or(e, t, o, d, y) {
424
425
  {
425
- var p, m = {}, g = null, S = null;
426
- o !== void 0 && (je(o), g = "" + o), Ke(r) && (je(r.key), g = "" + r.key), He(r) && (S = r.ref, Ze(r, h));
427
- for (p in r)
428
- H.call(r, p) && !Xe.hasOwnProperty(p) && (m[p] = r[p]);
426
+ var p, m = {}, g = null, x = null;
427
+ o !== void 0 && (Te(o), g = "" + o), Ze(t) && (Te(t.key), g = "" + t.key), Xe(t) && (x = t.ref, er(t, y));
428
+ for (p in t)
429
+ X.call(t, p) && !Ke.hasOwnProperty(p) && (m[p] = t[p]);
429
430
  if (e && e.defaultProps) {
430
- var b = e.defaultProps;
431
- for (p in b)
432
- m[p] === void 0 && (m[p] = b[p]);
431
+ var _ = e.defaultProps;
432
+ for (p in _)
433
+ m[p] === void 0 && (m[p] = _[p]);
433
434
  }
434
- if (g || S) {
435
+ if (g || x) {
435
436
  var P = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
436
- g && et(m, P), S && tt(m, P);
437
+ g && rr(m, P), x && tr(m, P);
437
438
  }
438
- return rt(e, g, S, h, d, q.current, m);
439
+ return nr(e, g, x, y, d, B.current, m);
439
440
  }
440
441
  }
441
- var ie = D.ReactCurrentOwner, xe = D.ReactDebugCurrentFrame;
442
- function V(e) {
442
+ var ae = D.ReactCurrentOwner, Oe = D.ReactDebugCurrentFrame;
443
+ function z(e) {
443
444
  if (e) {
444
- var r = e._owner, o = X(e.type, e._source, r ? r.type : null);
445
- xe.setExtraStackFrame(o);
445
+ var t = e._owner, o = K(e.type, e._source, t ? t.type : null);
446
+ Oe.setExtraStackFrame(o);
446
447
  } else
447
- xe.setExtraStackFrame(null);
448
+ Oe.setExtraStackFrame(null);
448
449
  }
449
- var ae;
450
- ae = !1;
451
- function ue(e) {
450
+ var ue;
451
+ ue = !1;
452
+ function ce(e) {
452
453
  return typeof e == "object" && e !== null && e.$$typeof === n;
453
454
  }
454
- function Oe() {
455
+ function Ae() {
455
456
  {
456
- if (ie.current) {
457
- var e = I(ie.current.type);
457
+ if (ae.current) {
458
+ var e = I(ae.current.type);
458
459
  if (e)
459
460
  return `
460
461
 
@@ -463,140 +464,140 @@ Check the render method of \`` + e + "`.";
463
464
  return "";
464
465
  }
465
466
  }
466
- function ot(e) {
467
+ function ir(e) {
467
468
  {
468
469
  if (e !== void 0) {
469
- var r = e.fileName.replace(/^.*[\\\/]/, ""), o = e.lineNumber;
470
+ var t = e.fileName.replace(/^.*[\\\/]/, ""), o = e.lineNumber;
470
471
  return `
471
472
 
472
- Check your code at ` + r + ":" + o + ".";
473
+ Check your code at ` + t + ":" + o + ".";
473
474
  }
474
475
  return "";
475
476
  }
476
477
  }
477
- var Ae = {};
478
- function it(e) {
478
+ var De = {};
479
+ function ar(e) {
479
480
  {
480
- var r = Oe();
481
- if (!r) {
481
+ var t = Ae();
482
+ if (!t) {
482
483
  var o = typeof e == "string" ? e : e.displayName || e.name;
483
- o && (r = `
484
+ o && (t = `
484
485
 
485
486
  Check the top-level render call using <` + o + ">.");
486
487
  }
487
- return r;
488
+ return t;
488
489
  }
489
490
  }
490
- function De(e, r) {
491
+ function ke(e, t) {
491
492
  {
492
493
  if (!e._store || e._store.validated || e.key != null)
493
494
  return;
494
495
  e._store.validated = !0;
495
- var o = it(r);
496
- if (Ae[o])
496
+ var o = ar(t);
497
+ if (De[o])
497
498
  return;
498
- Ae[o] = !0;
499
+ De[o] = !0;
499
500
  var d = "";
500
- e && e._owner && e._owner !== ie.current && (d = " It was passed a child from " + I(e._owner.type) + "."), V(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, d), V(null);
501
+ e && e._owner && e._owner !== ae.current && (d = " It was passed a child from " + I(e._owner.type) + "."), z(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, d), z(null);
501
502
  }
502
503
  }
503
- function ke(e, r) {
504
+ function Ie(e, t) {
504
505
  {
505
506
  if (typeof e != "object")
506
507
  return;
507
- if (ne(e))
508
+ if (oe(e))
508
509
  for (var o = 0; o < e.length; o++) {
509
510
  var d = e[o];
510
- ue(d) && De(d, r);
511
+ ce(d) && ke(d, t);
511
512
  }
512
- else if (ue(e))
513
+ else if (ce(e))
513
514
  e._store && (e._store.validated = !0);
514
515
  else if (e) {
515
- var h = T(e);
516
- if (typeof h == "function" && h !== e.entries)
517
- for (var p = h.call(e), m; !(m = p.next()).done; )
518
- ue(m.value) && De(m.value, r);
516
+ var y = T(e);
517
+ if (typeof y == "function" && y !== e.entries)
518
+ for (var p = y.call(e), m; !(m = p.next()).done; )
519
+ ce(m.value) && ke(m.value, t);
519
520
  }
520
521
  }
521
522
  }
522
- function at(e) {
523
+ function ur(e) {
523
524
  {
524
- var r = e.type;
525
- if (r == null || typeof r == "string")
525
+ var t = e.type;
526
+ if (t == null || typeof t == "string")
526
527
  return;
527
528
  var o;
528
- if (typeof r == "function")
529
- o = r.propTypes;
530
- else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
529
+ if (typeof t == "function")
530
+ o = t.propTypes;
531
+ else if (typeof t == "object" && (t.$$typeof === l || // Note: Memo only checks outer props here.
531
532
  // Inner props are checked in the reconciler.
532
- r.$$typeof === w))
533
- o = r.propTypes;
533
+ t.$$typeof === b))
534
+ o = t.propTypes;
534
535
  else
535
536
  return;
536
537
  if (o) {
537
- var d = I(r);
538
- Be(o, e.props, "prop", d, e);
539
- } else if (r.PropTypes !== void 0 && !ae) {
540
- ae = !0;
541
- var h = I(r);
542
- _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
538
+ var d = I(t);
539
+ Ge(o, e.props, "prop", d, e);
540
+ } else if (t.PropTypes !== void 0 && !ue) {
541
+ ue = !0;
542
+ var y = I(t);
543
+ w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
543
544
  }
544
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
545
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
545
546
  }
546
547
  }
547
- function ut(e) {
548
+ function cr(e) {
548
549
  {
549
- for (var r = Object.keys(e.props), o = 0; o < r.length; o++) {
550
- var d = r[o];
550
+ for (var t = Object.keys(e.props), o = 0; o < t.length; o++) {
551
+ var d = t[o];
551
552
  if (d !== "children" && d !== "key") {
552
- V(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", d), V(null);
553
+ z(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", d), z(null);
553
554
  break;
554
555
  }
555
556
  }
556
- e.ref !== null && (V(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), V(null));
557
+ e.ref !== null && (z(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), z(null));
557
558
  }
558
559
  }
559
- function Ie(e, r, o, d, h, p) {
560
+ function $e(e, t, o, d, y, p) {
560
561
  {
561
- var m = We(e);
562
+ var m = Le(e);
562
563
  if (!m) {
563
564
  var g = "";
564
565
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
565
- var S = ot(h);
566
- S ? g += S : g += Oe();
567
- var b;
568
- e === null ? b = "null" : ne(e) ? b = "array" : e !== void 0 && e.$$typeof === n ? (b = "<" + (I(e.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, g);
566
+ var x = ir(y);
567
+ x ? g += x : g += Ae();
568
+ var _;
569
+ e === null ? _ = "null" : oe(e) ? _ = "array" : e !== void 0 && e.$$typeof === n ? (_ = "<" + (I(e.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof e, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, g);
569
570
  }
570
- var P = nt(e, r, o, h, p);
571
+ var P = or(e, t, o, y, p);
571
572
  if (P == null)
572
573
  return P;
573
574
  if (m) {
574
- var O = r.children;
575
+ var O = t.children;
575
576
  if (O !== void 0)
576
577
  if (d)
577
- if (ne(O)) {
578
- for (var z = 0; z < O.length; z++)
579
- ke(O[z], e);
578
+ if (oe(O)) {
579
+ for (var M = 0; M < O.length; M++)
580
+ Ie(O[M], e);
580
581
  Object.freeze && Object.freeze(O);
581
582
  } else
582
- _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
583
+ w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
583
584
  else
584
- ke(O, e);
585
+ Ie(O, e);
585
586
  }
586
- return e === c ? ut(P) : at(P), P;
587
+ return e === u ? cr(P) : ur(P), P;
587
588
  }
588
589
  }
589
- function ct(e, r, o) {
590
- return Ie(e, r, o, !0);
590
+ function sr(e, t, o) {
591
+ return $e(e, t, o, !0);
591
592
  }
592
- function st(e, r, o) {
593
- return Ie(e, r, o, !1);
593
+ function lr(e, t, o) {
594
+ return $e(e, t, o, !1);
594
595
  }
595
- var lt = st, ft = ct;
596
- B.Fragment = c, B.jsx = lt, B.jsxs = ft;
597
- }()), B;
596
+ var fr = lr, dr = sr;
597
+ G.Fragment = u, G.jsx = fr, G.jsxs = dr;
598
+ }()), G;
598
599
  }
599
- var G = {};
600
+ var Q = {};
600
601
  /**
601
602
  * @license React
602
603
  * react-jsx-runtime.production.min.js
@@ -606,91 +607,91 @@ var G = {};
606
607
  * This source code is licensed under the MIT license found in the
607
608
  * LICENSE file in the root directory of this source tree.
608
609
  */
609
- var Ye;
610
- function ht() {
611
- if (Ye)
612
- return G;
613
- Ye = 1;
614
- var t = Ne, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
615
- function v(s, l, y) {
616
- var E, w = {}, R = null, u = null;
617
- y !== void 0 && (R = "" + y), l.key !== void 0 && (R = "" + l.key), l.ref !== void 0 && (u = l.ref);
618
- for (E in l)
619
- c.call(l, E) && !f.hasOwnProperty(E) && (w[E] = l[E]);
610
+ var Ne;
611
+ function Er() {
612
+ if (Ne)
613
+ return Q;
614
+ Ne = 1;
615
+ var r = We, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, c = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
616
+ function v(s, l, E) {
617
+ var h, b = {}, R = null, a = null;
618
+ E !== void 0 && (R = "" + E), l.key !== void 0 && (R = "" + l.key), l.ref !== void 0 && (a = l.ref);
619
+ for (h in l)
620
+ u.call(l, h) && !f.hasOwnProperty(h) && (b[h] = l[h]);
620
621
  if (s && s.defaultProps)
621
- for (E in l = s.defaultProps, l)
622
- w[E] === void 0 && (w[E] = l[E]);
623
- return { $$typeof: n, type: s, key: R, ref: u, props: w, _owner: a.current };
622
+ for (h in l = s.defaultProps, l)
623
+ b[h] === void 0 && (b[h] = l[h]);
624
+ return { $$typeof: n, type: s, key: R, ref: a, props: b, _owner: c.current };
624
625
  }
625
- return G.Fragment = i, G.jsx = v, G.jsxs = v, G;
626
+ return Q.Fragment = i, Q.jsx = v, Q.jsxs = v, Q;
626
627
  }
627
- process.env.NODE_ENV === "production" ? se.exports = ht() : se.exports = yt();
628
- var F = se.exports;
629
- const A = dt({}), Ot = ({ children: t, apiURL: n, libraries: i }) => {
630
- const c = le(
628
+ process.env.NODE_ENV === "production" ? le.exports = Er() : le.exports = pr();
629
+ var F = le.exports;
630
+ const A = vr({}), kr = ({ children: r, apiURL: n, libraries: i }) => {
631
+ const u = fe(
631
632
  () => ({
632
633
  apiURL: n,
633
634
  libraries: i
634
635
  }),
635
636
  [n, i]
636
637
  );
637
- return /* @__PURE__ */ F.jsx(A.Provider, { value: c, children: t });
638
- }, At = ({
639
- Fallback: t,
638
+ return /* @__PURE__ */ F.jsx(A.Provider, { value: u, children: r });
639
+ }, Ir = ({
640
+ Fallback: r,
640
641
  isLogged: n,
641
642
  loginPath: i = "/login",
642
- localStorageKey: c = "user",
643
- redirect401Path: a = "/login",
643
+ localStorageKey: u = "user",
644
+ redirect401Path: c = "/login",
644
645
  ...f
645
646
  }) => {
646
- var _, Y, N, W;
647
+ var w, Y, N, W;
647
648
  const { libraries: v } = k(A), s = (f == null ? void 0 : f.axios) || (v == null ? void 0 : v.axios), l = (f == null ? void 0 : f.reactRouter) || (v == null ? void 0 : v.reactRouter);
648
649
  if (!l)
649
650
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
650
651
  if (!s)
651
652
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
652
- const [y, E] = vt(null), { useLocation: w, Navigate: R, Outlet: u } = l, j = w(), x = gt(!1), T = typeof n == "function" ? n() : !!n, D = typeof T == "boolean" ? T : T == null ? void 0 : T.isLogged;
653
- return Z(() => {
654
- x.current || (x.current = !0, s == null || s.interceptors.response.use(
653
+ const [E, h] = gr(null), { useLocation: b, Navigate: R, Outlet: a } = l, j = b(), S = mr(!1), T = typeof n == "function" ? n() : !!n, D = typeof T == "boolean" ? T : T == null ? void 0 : T.isLogged;
654
+ return ee(() => {
655
+ S.current || (S.current = !0, s == null || s.interceptors.response.use(
655
656
  (C) => C,
656
657
  async (C) => {
657
- var M;
658
- return typeof C == "object" && C && "response" in C && C.response && typeof C.response == "object" && "status" in C.response && C.response && typeof C.response == "object" && "status" in C.response && ((M = C == null ? void 0 : C.response) == null ? void 0 : M.status) === 401 && (s.defaults.headers.common.Authorization = null, localStorage.removeItem(c), E(a)), Promise.reject(C);
658
+ var U;
659
+ return typeof C == "object" && C && "response" in C && C.response && typeof C.response == "object" && "status" in C.response && C.response && typeof C.response == "object" && "status" in C.response && ((U = C == null ? void 0 : C.response) == null ? void 0 : U.status) === 401 && (s.defaults.headers.common.Authorization = null, localStorage.removeItem(u), h(c)), Promise.reject(C);
659
660
  }
660
661
  ));
661
- }, [s == null ? void 0 : s.defaults.headers.common, s == null ? void 0 : s.interceptors.response, c, a]), D && !y ? /* @__PURE__ */ F.jsx(mt, { fallback: t, children: (Y = (_ = j.state) == null ? void 0 : _.from) != null && Y.state && ((W = (N = j.state) == null ? void 0 : N.from) == null ? void 0 : W.pathname) === i ? /* @__PURE__ */ F.jsx(R, { to: j.state.from.state.from.pathname + j.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ F.jsx(u, {}) }) : /* @__PURE__ */ F.jsx(R, { to: i, state: { from: j }, replace: !0 });
662
- }, Dt = ({ ...t }) => {
663
- const { libraries: n } = k(A), i = (t == null ? void 0 : t.reactRouter) || (n == null ? void 0 : n.reactRouter), c = (t == null ? void 0 : t.gtm) || (n == null ? void 0 : n.gtm);
662
+ }, [s == null ? void 0 : s.defaults.headers.common, s == null ? void 0 : s.interceptors.response, u, c]), D && !E ? /* @__PURE__ */ F.jsx(yr, { fallback: r, children: (Y = (w = j.state) == null ? void 0 : w.from) != null && Y.state && ((W = (N = j.state) == null ? void 0 : N.from) == null ? void 0 : W.pathname) === i ? /* @__PURE__ */ F.jsx(R, { to: j.state.from.state.from.pathname + j.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ F.jsx(a, {}) }) : /* @__PURE__ */ F.jsx(R, { to: i, state: { from: j }, replace: !0 });
663
+ }, $r = ({ ...r }) => {
664
+ const { libraries: n } = k(A), i = (r == null ? void 0 : r.reactRouter) || (n == null ? void 0 : n.reactRouter), u = (r == null ? void 0 : r.gtm) || (n == null ? void 0 : n.gtm);
664
665
  if (!i)
665
666
  throw new Error(
666
667
  "React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
667
668
  );
668
- if (!c)
669
+ if (!u)
669
670
  throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");
670
- const { useGoogleTagManager: a } = c, { useLocation: f, Outlet: v } = i, { pathname: s } = f(), { sendEvent: l } = a();
671
- return Z(() => {
671
+ const { useGoogleTagManager: c } = u, { useLocation: f, Outlet: v } = i, { pathname: s } = f(), { sendEvent: l } = c();
672
+ return ee(() => {
672
673
  l({ event: "pageView", pathname: s });
673
674
  }, [s, l]), /* @__PURE__ */ F.jsx(v, {});
674
- }, kt = ({
675
- tokenTypeKey: t = "tokenType",
675
+ }, V = hr.create(), Fr = ({
676
+ tokenTypeKey: r = "tokenType",
676
677
  userLocalStorageKey: n = "user",
677
678
  tokenKey: i = "accessToken",
678
- postContentType: c = "application/json",
679
- ...a
679
+ postContentType: u = "application/json",
680
+ ...c
680
681
  }) => {
681
- const { apiURL: f = a.apiURL, libraries: v } = k(A), s = (a == null ? void 0 : a.axios) || (v == null ? void 0 : v.axios);
682
- if (!s)
682
+ const { apiURL: f = c.apiURL } = k(A);
683
+ if (!V)
683
684
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
684
- if (!(s != null && s.defaults))
685
+ if (!(V != null && V.defaults))
685
686
  return null;
686
- const l = localStorage.getItem(n), y = l ? JSON.parse(l) : null, E = y != null && y[t] ? y[t] : null, w = y != null && y[i] ? y[i] : null, R = l ? `${E} ${w}` : null;
687
- return s.defaults.baseURL = f, s.defaults.headers.post["Content-Type"] = c, R && (s.defaults.headers.common.Authorization = R), null;
688
- }, It = ({ debug: t, resources: n, ...i }) => {
689
- const { libraries: c } = k(A), a = (i == null ? void 0 : i.i18) || (c == null ? void 0 : c.i18), { i18next: f, initReactI18next: v, languageDetector: s } = a || {};
690
- if (!a)
687
+ const v = localStorage.getItem(n), s = v ? JSON.parse(v) : null, l = s != null && s[r] ? s[r] : null, E = s != null && s[i] ? s[i] : null, h = v ? `${l} ${E}` : null;
688
+ return V.defaults.baseURL = f, V.defaults.headers.post["Content-Type"] = u, h && (V.defaults.headers.common.Authorization = h), null;
689
+ }, Yr = ({ debug: r, resources: n, ...i }) => {
690
+ const { libraries: u } = k(A), c = (i == null ? void 0 : i.i18) || (u == null ? void 0 : u.i18), { i18next: f, initReactI18next: v, languageDetector: s } = c || {};
691
+ if (!c)
691
692
  throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
692
693
  return f != null && f.isInitialized || (f.use(s).use(v).init({
693
- debug: t,
694
+ debug: r,
694
695
  fallbackLng: "en",
695
696
  interpolation: {
696
697
  escapeValue: !1
@@ -707,91 +708,91 @@ const A = dt({}), Ot = ({ children: t, apiURL: n, libraries: i }) => {
707
708
  }), f.on("languageChanged", (l) => {
708
709
  document.documentElement.setAttribute("lang", l);
709
710
  })), null;
710
- }, $t = ({
711
- dsn: t,
711
+ }, Nr = ({
712
+ dsn: r,
712
713
  integrations: n,
713
714
  tracesSampleRate: i,
714
- replaysSessionSampleRate: c,
715
- replaysOnErrorSampleRate: a,
715
+ replaysSessionSampleRate: u,
716
+ replaysOnErrorSampleRate: c,
716
717
  tracePropagationTargets: f,
717
718
  ignoreErrors: v,
718
719
  debug: s,
719
720
  environment: l,
720
- ...y
721
+ ...E
721
722
  }) => {
722
- const { libraries: E } = k(A), w = (y == null ? void 0 : y.sentry) || (E == null ? void 0 : E.sentry), R = (y == null ? void 0 : y.reactRouter) || (E == null ? void 0 : E.reactRouter);
723
- if (!w)
723
+ const { libraries: h } = k(A), b = (E == null ? void 0 : E.sentry) || (h == null ? void 0 : h.sentry), R = (E == null ? void 0 : E.reactRouter) || (h == null ? void 0 : h.reactRouter);
724
+ if (!b)
724
725
  throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
725
726
  if (!R)
726
727
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
727
- if (w.isInitialized())
728
+ if (b.isInitialized())
728
729
  return null;
729
- const { createRoutesFromChildren: u, matchRoutes: j, useLocation: x, useNavigationType: T } = R;
730
- return (s || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && w.init({
730
+ const { createRoutesFromChildren: a, matchRoutes: j, useLocation: S, useNavigationType: T } = R;
731
+ return (s || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && b.init({
731
732
  debug: s,
732
- dsn: t,
733
+ dsn: r,
733
734
  environment: l || "production",
734
735
  ignoreErrors: [...v || [], /dynamically imported module/],
735
736
  integrations: [
736
- w.reactRouterV6BrowserTracingIntegration({
737
- createRoutesFromChildren: u,
737
+ b.reactRouterV6BrowserTracingIntegration({
738
+ createRoutesFromChildren: a,
738
739
  matchRoutes: j,
739
- useEffect: Z,
740
- useLocation: x,
740
+ useEffect: ee,
741
+ useLocation: S,
741
742
  useNavigationType: T
742
743
  }),
743
744
  ...n || []
744
745
  ],
745
- replaysOnErrorSampleRate: a || 1,
746
- replaysSessionSampleRate: c || 0.1,
746
+ replaysOnErrorSampleRate: c || 1,
747
+ replaysSessionSampleRate: u || 0.1,
747
748
  tracePropagationTargets: f,
748
749
  tracesSampleRate: i || 1
749
750
  }), null;
750
- }, Ft = ({ IMaskMixin: t, ...n }) => {
751
- const i = le(
751
+ }, Wr = ({ IMaskMixin: r, ...n }) => {
752
+ const i = fe(
752
753
  // eslint-disable-next-line react/jsx-props-no-spreading
753
- () => t(({ TextField: c, ...a }) => /* @__PURE__ */ F.jsx(c, { ...a })),
754
- [t]
754
+ () => r(({ TextField: u, ...c }) => /* @__PURE__ */ F.jsx(u, { ...c })),
755
+ [r]
755
756
  );
756
757
  return /* @__PURE__ */ F.jsx(i, { ...n });
757
- }, Yt = ({ accessToken: t, ...n }) => {
758
- const { libraries: i } = k(A), c = (n == null ? void 0 : n.mapbox) || (i == null ? void 0 : i.mapbox);
759
- if (!c)
758
+ }, Lr = ({ accessToken: r, ...n }) => {
759
+ const { libraries: i } = k(A), u = (n == null ? void 0 : n.mapbox) || (i == null ? void 0 : i.mapbox);
760
+ if (!u)
760
761
  throw new Error("Mapbox is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
761
- return t && (c.accessToken = t), null;
762
- }, Nt = ({ language: t, ...n }) => {
763
- const { libraries: i } = k(A), c = (n == null ? void 0 : n.dayjs) || (i == null ? void 0 : i.dayjs), a = (n == null ? void 0 : n.plugin) || (i == null ? void 0 : i.dayjsPlugin);
764
- if (!c)
762
+ return r && (u.accessToken = r), null;
763
+ }, Vr = ({ language: r, ...n }) => {
764
+ const { libraries: i } = k(A), u = (n == null ? void 0 : n.dayjs) || (i == null ? void 0 : i.dayjs), c = (n == null ? void 0 : n.plugin) || (i == null ? void 0 : i.dayjsPlugin);
765
+ if (!u)
765
766
  throw new Error(
766
767
  "Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig."
767
768
  );
768
- return Z(() => {
769
+ return ee(() => {
769
770
  (async () => {
770
771
  var s;
771
- const v = t || ((s = navigator.language) == null ? void 0 : s.slice(0, 2)) || "en";
772
- if (a && a.forEach((l) => {
773
- l && c.extend(l);
772
+ const v = r || ((s = navigator.language) == null ? void 0 : s.slice(0, 2)) || "en";
773
+ if (c && c.forEach((l) => {
774
+ l && u.extend(l);
774
775
  }), v === "fr") {
775
776
  const l = await import("dayjs/locale/fr");
776
- c.locale(l.default);
777
+ u.locale(l.default);
777
778
  }
778
779
  })().then();
779
- }, [c, a, t]), null;
780
- }, Et = (t) => t && typeof t == "function", pt = (t) => t && typeof t == "function", Wt = ({
781
- children: t,
780
+ }, [u, c, r]), null;
781
+ }, Rr = (r) => r && typeof r == "function", wr = (r) => r && typeof r == "function", zr = ({
782
+ children: r,
782
783
  defaultQueriesOptions: n,
783
784
  defaultMutationsOptions: i,
784
- ...c
785
+ ...u
785
786
  }) => {
786
- var l, y;
787
- const { libraries: a } = k(A), f = (c == null ? void 0 : c.QueryClient) || ((l = a == null ? void 0 : a.reactQuery) == null ? void 0 : l.QueryClient), v = (c == null ? void 0 : c.QueryClientProvider) || ((y = a == null ? void 0 : a.reactQuery) == null ? void 0 : y.QueryClientProvider);
787
+ var l, E;
788
+ const { libraries: c } = k(A), f = (u == null ? void 0 : u.QueryClient) || ((l = c == null ? void 0 : c.reactQuery) == null ? void 0 : l.QueryClient), v = (u == null ? void 0 : u.QueryClientProvider) || ((E = c == null ? void 0 : c.reactQuery) == null ? void 0 : E.QueryClientProvider);
788
789
  if (!f)
789
790
  throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
790
791
  if (!v)
791
792
  throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
792
- if (!Et(v))
793
+ if (!Rr(v))
793
794
  throw new Error("Provided QueryClientProvider dependencies are not valid.");
794
- if (!pt(f))
795
+ if (!wr(f))
795
796
  throw new Error("Provided QueryClient dependencies are not valid.");
796
797
  const s = new f({
797
798
  defaultOptions: {
@@ -799,54 +800,54 @@ const A = dt({}), Ot = ({ children: t, apiURL: n, libraries: i }) => {
799
800
  ...i
800
801
  },
801
802
  queries: {
802
- getNextPageParam: (E, w, R) => E.length + (R || 0),
803
+ getNextPageParam: (h, b, R) => h.length + (R || 0),
803
804
  refetchOnWindowFocus: !1,
804
805
  retry: 3,
805
806
  ...n
806
807
  }
807
808
  }
808
809
  });
809
- return /* @__PURE__ */ F.jsx(v, { client: s, children: t });
810
- }, Lt = (t) => {
811
- var y, E, w;
812
- const { libraries: n } = k(A), i = (t == null ? void 0 : t.i18) || (n == null ? void 0 : n.i18), c = ((y = t == null ? void 0 : t.i18) == null ? void 0 : y.translateFunction) || ((E = n == null ? void 0 : n.i18) == null ? void 0 : E.translateFunction), a = ((w = i == null ? void 0 : i.i18next) == null ? void 0 : w.t) || c || ((R) => R), { unknownErrorTranslationKey: f = "error.unknownError" } = t || {}, v = a(f), s = ce(
810
+ return /* @__PURE__ */ F.jsx(v, { client: s, children: r });
811
+ }, Mr = (r) => {
812
+ var E, h, b;
813
+ const { libraries: n } = k(A), i = (r == null ? void 0 : r.i18) || (n == null ? void 0 : n.i18), u = ((E = r == null ? void 0 : r.i18) == null ? void 0 : E.translateFunction) || ((h = n == null ? void 0 : n.i18) == null ? void 0 : h.translateFunction), c = ((b = i == null ? void 0 : i.i18next) == null ? void 0 : b.t) || u || ((R) => R), { unknownErrorTranslationKey: f = "error.unknownError" } = r || {}, v = c(f), s = se(
813
814
  (R) => {
814
- var j, x, T, D, _, Y, N, W, C;
815
- const { response: u } = R || {};
816
- return u != null && u.reason ? String(u.reason) : (j = u == null ? void 0 : u.data) != null && j.reason ? String(u.data.reason) : (x = u == null ? void 0 : u.data) != null && x.message ? String(u.data.message) : (D = (T = u == null ? void 0 : u.data) == null ? void 0 : T.detail) != null && D.length && Array.isArray((_ = u == null ? void 0 : u.data) == null ? void 0 : _.detail) && ((N = (Y = u == null ? void 0 : u.data) == null ? void 0 : Y.detail[0]) != null && N.msg) && typeof ((C = (W = u == null ? void 0 : u.data) == null ? void 0 : W.detail[0]) == null ? void 0 : C.msg) == "string" ? String(u.data.detail[0].msg) : v;
815
+ var j, S, T, D, w, Y, N, W, C;
816
+ const { response: a } = R || {};
817
+ return a != null && a.reason ? String(a.reason) : (j = a == null ? void 0 : a.data) != null && j.reason ? String(a.data.reason) : (S = a == null ? void 0 : a.data) != null && S.message ? String(a.data.message) : (D = (T = a == null ? void 0 : a.data) == null ? void 0 : T.detail) != null && D.length && Array.isArray((w = a == null ? void 0 : a.data) == null ? void 0 : w.detail) && ((N = (Y = a == null ? void 0 : a.data) == null ? void 0 : Y.detail[0]) != null && N.msg) && typeof ((C = (W = a == null ? void 0 : a.data) == null ? void 0 : W.detail[0]) == null ? void 0 : C.msg) == "string" ? String(a.data.detail[0].msg) : v;
817
818
  },
818
819
  [v]
819
820
  );
820
- return { getErrorCode: ce((R) => {
821
- var j, x, T;
822
- const { response: u } = R || {};
823
- return u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (j = u == null ? void 0 : u.data) != null && j.error_code ? String((x = u == null ? void 0 : u.data) == null ? void 0 : x.error_code) : u != null && u.error_code ? String(u == null ? void 0 : u.error_code) : (T = u == null ? void 0 : u.data) != null && T.error_code ? String(u.data.error_code) : "unknown_error_code";
821
+ return { getErrorCode: se((R) => {
822
+ var j, S, T;
823
+ const { response: a } = R || {};
824
+ return a != null && a.error_code ? String(a == null ? void 0 : a.error_code) : (j = a == null ? void 0 : a.data) != null && j.error_code ? String((S = a == null ? void 0 : a.data) == null ? void 0 : S.error_code) : a != null && a.error_code ? String(a == null ? void 0 : a.error_code) : (T = a == null ? void 0 : a.data) != null && T.error_code ? String(a.data.error_code) : "unknown_error_code";
824
825
  }, []), printError: s };
825
- }, Vt = ({
826
- data: t,
826
+ }, Ur = ({
827
+ data: r,
827
828
  fetchNextPage: n,
828
829
  isFetchingNextPage: i,
829
- isInitialLoading: c,
830
- isLoading: a,
830
+ isInitialLoading: u,
831
+ isLoading: c,
831
832
  enabled: f = !0
832
833
  }) => {
833
- const v = ce(
834
+ const v = se(
834
835
  async (l) => {
835
836
  i || !f || await n({ pageParam: (l == null ? void 0 : l.pageParam) || l.visibleRowsCount });
836
837
  },
837
838
  [f, n, i]
838
- ), s = le(() => {
839
- if (t)
840
- return t.pages.reduce((l, y) => [...l, ...y], []);
841
- }, [t]);
839
+ ), s = fe(() => {
840
+ if (r)
841
+ return r.pages.reduce((l, E) => [...l, ...E], []);
842
+ }, [r]);
842
843
  return {
843
844
  fetchNextPageOnRowsScrollEnd: v,
844
- isLoading: i || a,
845
- loadingVariant: c ? "skeleton" : "linear",
845
+ isLoading: i || c,
846
+ loadingVariant: u ? "skeleton" : "linear",
846
847
  rows: s
847
848
  };
848
- }, zt = (t) => {
849
- const { libraries: n } = k(A), i = (t == null ? void 0 : t.axios) || (n == null ? void 0 : n.axios);
849
+ }, qr = (r) => {
850
+ const { libraries: n } = k(A), i = (r == null ? void 0 : r.axios) || (n == null ? void 0 : n.axios);
850
851
  if (!i)
851
852
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
852
853
  return {
@@ -857,56 +858,56 @@ const A = dt({}), Ot = ({ children: t, apiURL: n, libraries: i }) => {
857
858
  i.defaults.headers.common.Authorization = `${f} ${v}`;
858
859
  }
859
860
  };
860
- }, Rt = ({ library: t, date: n, format: i = "ll" }) => t(n).format(i), wt = (t, n = "km") => {
861
- const i = Number(t);
861
+ }, _r = ({ library: r, date: n, format: i = "ll" }) => r(n).format(i), br = (r, n = "km") => {
862
+ const i = Number(r);
862
863
  return Number.isNaN(i) ? `0 ${n}` : `${i.toFixed(2)} ${n}`;
863
- }, _t = (t) => t != null && t.startsWith("/") ? t != null && t.startsWith("/files") ? t : `/files${t}` : t != null && t.startsWith("files") ? `/${t}` : t != null && t.startsWith("files") ? `/${t}` : `/files/${t}`, bt = ({ path: t, size: n, apiURL: i }) => {
864
- if (!t)
864
+ }, Cr = (r) => r != null && r.startsWith("/") ? r != null && r.startsWith("/files") ? r : `/files${r}` : r != null && r.startsWith("files") ? `/${r}` : r != null && r.startsWith("files") ? `/${r}` : `/files/${r}`, Pr = ({ path: r, size: n, apiURL: i }) => {
865
+ if (!r)
865
866
  return "";
866
- const c = _t(t), a = `${i}${c}`, f = a.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
867
- return typeof n == "number" && f ? `${a.replace("/files", `/thumbs/${n}`)}` : a;
868
- }, Mt = (t) => {
869
- const { apiURL: n, libraries: i } = k(A), c = (t == null ? void 0 : t.dayjs) || (i == null ? void 0 : i.dayjs);
867
+ const u = Cr(r), c = `${i}${u}`, f = c.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
868
+ return typeof n == "number" && f ? `${c.replace("/files", `/thumbs/${n}`)}` : c;
869
+ }, Br = (r) => {
870
+ const { apiURL: n, libraries: i } = k(A), u = (r == null ? void 0 : r.dayjs) || (i == null ? void 0 : i.dayjs);
870
871
  return {
871
872
  dateAdapter: (v, s) => {
872
- if (!c)
873
+ if (!u)
873
874
  throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
874
- return Rt({
875
+ return _r({
875
876
  date: v,
876
877
  format: s,
877
- library: c
878
+ library: u
878
879
  });
879
880
  },
880
- distanceAdapter: wt,
881
+ distanceAdapter: br,
881
882
  filePathAdapter: (v, s) => {
882
883
  if (!n)
883
884
  throw new Error(
884
885
  "API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter."
885
886
  );
886
- return bt({
887
+ return Pr({
887
888
  apiURL: n,
888
889
  path: v,
889
890
  size: s
890
891
  });
891
892
  }
892
893
  };
893
- }, Ct = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), Pt = (t) => {
894
- const c = t.split("/").filter((a) => a.length > 0).map((a) => a.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
895
- return c.charAt(0).toLowerCase() + c.slice(1);
896
- }, jt = (t) => (t.split("/").pop() || t).replace(/\.json$/, "").replace(/^openapi\./, ""), Tt = (t, n, i) => {
897
- const c = Pt(n), a = Ct(i);
898
- return `${c}${a}`;
899
- }, St = (t) => {
900
- if (t)
901
- return (t == null ? void 0 : t.reduce((n, i) => (n[i] = {
894
+ }, jr = (r) => r.charAt(0).toUpperCase() + r.slice(1).toLowerCase(), Tr = (r) => {
895
+ const u = r.split("/").filter((c) => c.length > 0).map((c) => c.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
896
+ return u.charAt(0).toLowerCase() + u.slice(1);
897
+ }, xr = (r) => (r.split("/").pop() || r).replace(/\.json$/, "").replace(/^openapi\./, ""), Sr = (r, n, i) => {
898
+ const u = Tr(n), c = jr(i);
899
+ return `${u}${c}`;
900
+ }, Or = (r) => {
901
+ if (r)
902
+ return (r == null ? void 0 : r.reduce((n, i) => (n[i] = {
902
903
  query: {
903
904
  useInfinite: !0,
904
905
  useInfiniteQueryParam: "offset",
905
906
  useQuery: !0
906
907
  }
907
908
  }, n), {})) || {};
908
- }, Ut = (t) => (Array.isArray(t) ? t : [t]).reduce((i, c) => {
909
- const { output: a, operationsToGenerateInfiniteQueryHook: f, input: v = "./openapi.json" } = c || {}, s = jt(v);
909
+ }, Gr = (r) => (Array.isArray(r) ? r : [r]).reduce((i, u) => {
910
+ const { output: c, operationsToGenerateInfiniteQueryHook: f, input: v = "./openapi.json" } = u || {}, s = xr(v);
910
911
  return {
911
912
  ...i,
912
913
  [s]: {
@@ -915,11 +916,11 @@ const A = dt({}), Ot = ({ children: t, apiURL: n, libraries: i }) => {
915
916
  },
916
917
  input: v,
917
918
  output: {
918
- baseUrl: a == null ? void 0 : a.baseUrl,
919
+ baseUrl: c == null ? void 0 : c.baseUrl,
919
920
  client: "react-query",
920
921
  mode: "tags-split",
921
922
  override: {
922
- ...(f == null ? void 0 : f.length) && { operations: St(f) },
923
+ ...(f == null ? void 0 : f.length) && { operations: Or(f) },
923
924
  header: (l) => [
924
925
  "Generated by orval 🍺",
925
926
  ...l.title ? [l.title] : [],
@@ -929,35 +930,35 @@ const A = dt({}), Ot = ({ children: t, apiURL: n, libraries: i }) => {
929
930
  name: "axiosCustomInstance",
930
931
  path: `${__dirname}/config/orval/mutator/axiosCustomInstance.ts`
931
932
  },
932
- operationName: Tt,
933
+ operationName: Sr,
933
934
  query: {
934
935
  useQuery: !0
935
936
  }
936
937
  },
937
- schemas: (a == null ? void 0 : a.schemas) || `src/api/${s}/model`,
938
- target: (a == null ? void 0 : a.target) || `src/api/${s}/services/api.ts`,
939
- ...a
938
+ schemas: (c == null ? void 0 : c.schemas) || `src/api/${s}/model`,
939
+ target: (c == null ? void 0 : c.target) || `src/api/${s}/services/api.ts`,
940
+ ...c
940
941
  }
941
942
  }
942
943
  };
943
944
  }, {});
944
945
  export {
945
- Dt as GTMSendPageView,
946
- kt as InitializeAxiosConfig,
947
- Nt as InitializeDaysJSConfig,
948
- It as InitializeI18nConfig,
949
- Yt as InitializeMapBoxConfig,
950
- $t as InitializeSentryConfig,
946
+ $r as GTMSendPageView,
947
+ Fr as InitializeAxiosConfig,
948
+ Vr as InitializeDaysJSConfig,
949
+ Yr as InitializeI18nConfig,
950
+ Lr as InitializeMapBoxConfig,
951
+ Nr as InitializeSentryConfig,
951
952
  A as InjectDependenciesContext,
952
- Ot as InjectDependenciesProvider,
953
- Ft as MaskTextField,
954
- Wt as QueryClientProviderWithConfig,
955
- At as RequireAuth,
956
- Rt as dateAdapter,
957
- wt as distanceAdapter,
958
- Ut as getOrvalConfig,
959
- Mt as useAdapter,
960
- zt as useAuth,
961
- Vt as useInfiniteDataGrid,
962
- Lt as useResponseError
953
+ kr as InjectDependenciesProvider,
954
+ Wr as MaskTextField,
955
+ zr as QueryClientProviderWithConfig,
956
+ Ir as RequireAuth,
957
+ _r as dateAdapter,
958
+ br as distanceAdapter,
959
+ Gr as getOrvalConfig,
960
+ Br as useAdapter,
961
+ qr as useAuth,
962
+ Ur as useInfiniteDataGrid,
963
+ Mr as useResponseError
963
964
  };